(function(e,t,n){"use strict";e.fn.backstretch=function(r,s){(r===n||r.length===0)&&e.error("No images were supplied for Backstretch");e(t).scrollTop()===0&&t.scrollTo(0,0);return this.each(function(){var t=e(this),n=t.data("backstretch");if(n){if(typeof r=="string"&&typeof n[r]=="function"){n[r](s);return}s=e.extend(n.options,s);n.destroy(!0)}n=new i(this,r,s);t.data("backstretch",n)})};e.backstretch=function(t,n){return e("body").backstretch(t,n).data("backstretch")};e.expr[":"].backstretch=function(t){return e(t).data("backstretch")!==n};e.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var r={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},img:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999}},i=function(n,i,o){this.options=e.extend({},e.fn.backstretch.defaults,o||{});this.images=e.isArray(i)?i:[i];e.each(this.images,function(){e("")[0].src=this});this.isBody=n===document.body;this.$container=e(n);this.$root=this.isBody?s?e(t):e(document):this.$container;var u=this.$container.children(".backstretch").first();this.$wrap=u.length?u:e('
').css(r.wrap).appendTo(this.$container);if(!this.isBody){var a=this.$container.css("position"),f=this.$container.css("zIndex");this.$container.css({position:a==="static"?"relative":a,zIndex:f==="auto"?0:f,background:"none"});this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&s?"fixed":"absolute"});this.index=0;this.show(this.index);e(t).on("resize.backstretch",e.proxy(this.resize,this)).on("orientationchange.backstretch",e.proxy(function(){if(this.isBody&&t.pageYOffset===0){t.scrollTo(0,1);this.resize()}},this))};i.prototype={resize:function(){try{var e={left:0,top:0},n=this.isBody?this.$root.width():this.$root.innerWidth(),r=n,i=this.isBody?t.innerHeight?t.innerHeight:this.$root.height():this.$root.innerHeight(),s=r/this.$img.data("ratio"),o;if(s>=i){o=(s-i)/2;this.options.centeredY&&(e.top="-"+o+"px")}else{s=i;r=s*this.$img.data("ratio");o=(r-n)/2;this.options.centeredX&&(e.left="-"+o+"px")}this.$wrap.css({width:n,height:i}).find("img:not(.deleteable)").css({width:r,height:s}).css(e)}catch(u){}return this},show:function(t){if(Math.abs(t)>this.images.length-1)return;var n=this,i=n.$wrap.find("img").addClass("deleteable"),s={relatedTarget:n.$container[0]};n.$container.trigger(e.Event("backstretch.before",s),[n,t]);this.index=t;clearInterval(n.interval);n.$img=e("").css(r.img).bind("load",function(r){var o=this.width||e(r.target).width(),u=this.height||e(r.target).height();e(this).data("ratio",o/u);e(this).fadeIn(n.options.speed||n.options.fade,function(){i.remove();n.paused||n.cycle();e(["after","show"]).each(function(){n.$container.trigger(e.Event("backstretch."+this,s),[n,t])})});n.resize()}).appendTo(n.$wrap);n.$img.attr("src",n.images[t]);return n},next:function(){return this.show(this.index1){clearInterval(this.interval);this.interval=setInterval(e.proxy(function(){this.paused||this.next()},this),this.options.duration)}return this},destroy:function(n){e(t).off("resize.backstretch orientationchange.backstretch");clearInterval(this.interval);n||this.$wrap.remove();this.$container.removeData("backstretch")}};var s=function(){var e=navigator.userAgent,n=navigator.platform,r=e.match(/AppleWebKit\/([0-9]+)/),i=!!r&&r[1],s=e.match(/Fennec\/([0-9]+)/),o=!!s&&s[1],u=e.match(/Opera Mobi\/([0-9]+)/),a=!!u&&u[1],f=e.match(/MSIE ([0-9]+)/),l=!!f&&f[1];return!((n.indexOf("iPhone")>-1||n.indexOf("iPad")>-1||n.indexOf("iPod")>-1)&&i&&i<534||t.operamini&&{}.toString.call(t.operamini)==="[object OperaMini]"||u&&a<7458||e.indexOf("Android")>-1&&i&&i<533||o&&o<6||"palmGetResource"in t&&i&&i<534||e.indexOf("MeeGo")>-1&&e.indexOf("NokiaBrowser/8.5.0")>-1||l&&l<=6)}()})(jQuery,window);window.Modernizr=function(e,t,n){function C(e){f.cssText=e}function k(e,t){return C(h.join(e+";")+(t||""))}function L(e,t){return typeof e===t}function A(e,t){return!!~(""+e).indexOf(t)}function O(e,t){for(var r in e){var i=e[r];if(!A(i,"-")&&f[i]!==n)return t=="pfx"?i:!0}return!1}function M(e,t,r){for(var i in e){var s=t[e[i]];if(s!==n)return r===!1?e[i]:L(s,"function")?s.bind(r||t):s}return!1}function _(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+d.join(r+" ")+r).split(" ");if(L(t,"string")||L(t,"undefined"))return O(i,t);i=(e+" "+v.join(r+" ")+r).split(" ");return M(i,t,n)}var r="2.8.0",i={},s=!0,o=t.documentElement,u="modernizr",a=t.createElement(u),f=a.style,l,c={}.toString,h=" -webkit- -moz- -o- -ms- ".split(" "),p="Webkit Moz O ms",d=p.split(" "),v=p.toLowerCase().split(" "),m={},g={},y={},b=[],w=b.slice,E,S=function(e,n,r,i){var s,a,f,l,c=t.createElement("div"),h=t.body,p=h||t.createElement("body");if(parseInt(r,10))while(r--){f=t.createElement("div");f.id=i?i[r]:u+(r+1);c.appendChild(f)}s=["­",'"].join("");c.id=u;(h?c:p).innerHTML+=s;p.appendChild(c);if(!h){p.style.background="";p.style.overflow="hidden";l=o.style.overflow;o.style.overflow="hidden";o.appendChild(p)}a=n(c,e);if(!h){p.parentNode.removeChild(p);o.style.overflow=l}else c.parentNode.removeChild(c);return!!a},x=function(){function r(r,i){i=i||t.createElement(e[r]||"div");r="on"+r;var s=r in i;if(!s){i.setAttribute||(i=t.createElement("div"));if(i.setAttribute&&i.removeAttribute){i.setAttribute(r,"");s=L(i[r],"function");L(i[r],"undefined")||(i[r]=n);i.removeAttribute(r)}}i=null;return s}var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),T={}.hasOwnProperty,N;!L(T,"undefined")&&!L(T.call,"undefined")?N=function(e,t){return T.call(e,t)}:N=function(e,t){return t in e&&L(e.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!="function")throw new TypeError;var r=w.call(arguments,1),i=function(){if(this instanceof i){var e=function(){};e.prototype=n.prototype;var s=new e,o=n.apply(s,r.concat(w.call(arguments)));return Object(o)===o?o:s}return n.apply(t,r.concat(w.call(arguments)))};return i});m.touch=function(){var n;"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:S(["@media (",h.join("touch-enabled),("),u,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=e.offsetTop===9});return n};m.cssanimations=function(){return _("animationName")};m.csstransforms=function(){return!!_("transform")};m.csstransforms3d=function(){var e=!!_("perspective");e&&"webkitPerspective"in o.style&&S("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=t.offsetLeft===9&&t.offsetHeight===3});return e};m.csstransitions=function(){return _("transition")};for(var D in m)if(N(m,D)){E=D.toLowerCase();i[E]=m[D]();b.push((i[E]?"":"no-")+E)}i.addTest=function(e,t){if(typeof e=="object")for(var r in e)N(e,r)&&i.addTest(r,e[r]);else{e=e.toLowerCase();if(i[e]!==n)return i;t=typeof t=="function"?t():t;typeof s!="undefined"&&s&&(o.className+=" "+(t?"":"no-")+e);i[e]=t}return i};C("");a=l=null;i._version=r;i._prefixes=h;i._domPrefixes=v;i._cssomPrefixes=d;i.hasEvent=x;i.testProp=function(e){return O([e])};i.testAllProps=_;i.testStyles=S;i.prefixed=function(e,t,n){return t?_(e,t,n):_(e,"pfx")};o.className=o.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(s?" js "+b.join(" "):"");return i}(this,this.document);(function(e,t,n){function r(e){return"[object Function]"==d.call(e)}function i(e){return"string"==typeof e}function s(){}function o(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function u(){var e=v.shift();m=1,e?e.t?h(function(){("c"==e.t?k.injectCss:k.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),u()):m=0}function a(e,n,r,i,s,a,f){function l(t){if(!d&&o(c.readyState)&&(w.r=d=1,!m&&u(),c.onload=c.onreadystatechange=null,t)){"img"!=e&&h(function(){b.removeChild(c)},50);for(var r in T[n])T[n].hasOwnProperty(r)&&T[n][r].onload()}}var f=f||k.errorTimeout,c=t.createElement(e),d=0,g=0,w={t:r,s:n,e:s,a:a,x:f};1===T[n]&&(g=1,T[n]=[]),"object"==e?c.data=n:(c.src=n,c.type=e),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){l.call(this,g)},v.splice(i,0,w),"img"!=e&&(g||2===T[n]?(b.insertBefore(c,y?null:p),h(l,f)):T[n].push(c))}function f(e,t,n,r,s){return m=0,t=t||"j",i(e)?a("c"==t?E:w,e,t,this.i++,n,r,s):(v.splice(this.i++,0,e),1==v.length&&u()),this}function l(){var e=k;return e.loader={load:f,i:0},e}var c=t.documentElement,h=e.setTimeout,p=t.getElementsByTagName("script")[0],d={}.toString,v=[],m=0,g="MozAppearance"in c.style,y=g&&!!t.createRange().compareNode,b=y?c:p.parentNode,c=e.opera&&"[object Opera]"==d.call(e.opera),c=!!t.attachEvent&&!c,w=g?"object":c?"script":"img",E=c?"script":w,S=Array.isArray||function(e){return"[object Array]"==d.call(e)},x=[],T={},N={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},C,k;k=function(e){function t(e){var e=e.split("!"),t=x.length,n=e.pop(),r=e.length,n={url:n,origUrl:n,prefixes:e},i,s,o;for(s=0;s'+(t+1)+""},dots:!1,draggable:!0,easing:"linear",fade:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,useCSS:!0,vertical:!1};i.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1};e.extend(i,i.initials);i.activeBreakpoint=null;i.animType=null;i.animProp=null;i.breakpoints=[];i.breakpointSettings=[];i.cssTransitions=!1;i.paused=!1;i.positionProp=null;i.$slider=e(n);i.$slidesCache=null;i.transformType=null;i.transitionType=null;i.windowWidth=0;i.windowTimer=null;i.options=e.extend({},i.defaults,r);i.originalSettings=i.options;s=i.options.responsive||null;if(s&&s.length>-1){for(o in s)if(s.hasOwnProperty(o)){i.breakpoints.push(s[o].breakpoint);i.breakpointSettings[s[o].breakpoint]=s[o].settings}i.breakpoints.sort(function(e,t){return t-e})}i.autoPlay=e.proxy(i.autoPlay,i);i.autoPlayClear=e.proxy(i.autoPlayClear,i);i.changeSlide=e.proxy(i.changeSlide,i);i.setPosition=e.proxy(i.setPosition,i);i.swipeHandler=e.proxy(i.swipeHandler,i);i.dragHandler=e.proxy(i.dragHandler,i);i.keyHandler=e.proxy(i.keyHandler,i);i.autoPlayIterator=e.proxy(i.autoPlayIterator,i);i.instanceUid=t++;i.init()}var t=0;return n}();t.prototype.addSlide=function(t,n,r){var i=this;if(typeof n=="boolean"){r=n;n=null}else if(n<0||n>=i.slideCount)return!1;i.unload();typeof n=="number"?n===0&&i.$slides.length===0?e(t).appendTo(i.$slideTrack):r?e(t).insertBefore(i.$slides.eq(n)):e(t).insertAfter(i.$slides.eq(n)):r===!0?e(t).prependTo(i.$slideTrack):e(t).appendTo(i.$slideTrack);i.$slides=i.$slideTrack.children(this.options.slide);i.$slideTrack.children(this.options.slide).remove();i.$slideTrack.append(i.$slides);i.$slidesCache=i.$slides;i.reinit()};t.prototype.animateSlide=function(t,n){var r={},i=this;if(i.transformsEnabled===!1)i.options.vertical===!1?i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,n):i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,n);else if(i.cssTransitions===!1)e({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(e){if(i.options.vertical===!1){r[i.animType]="translate("+e+"px, 0px)";i.$slideTrack.css(r)}else{r[i.animType]="translate(0px,"+e+"px)";i.$slideTrack.css(r)}},complete:function(){n&&n.call()}});else{i.applyTransition();i.options.vertical===!1?r[i.animType]="translate3d("+t+"px, 0px, 0px)":r[i.animType]="translate3d(0px,"+t+"px, 0px)";i.$slideTrack.css(r);n&&setTimeout(function(){i.disableTransition();n.call()},i.options.speed)}};t.prototype.applyTransition=function(e){var t=this,n={};t.options.fade===!1?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(n):t.$slides.eq(e).css(n)};t.prototype.autoPlay=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer);e.slideCount>e.options.slidesToShow&&e.paused!==!0&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var e=this;if(e.options.infinite===!1)if(e.direction===1){e.currentSlide+1===e.slideCount-1&&(e.direction=0);e.slideHandler(e.currentSlide+e.options.slidesToScroll)}else{e.currentSlide-1===0&&(e.direction=1);e.slideHandler(e.currentSlide-e.options.slidesToScroll)}else e.slideHandler(e.currentSlide+e.options.slidesToScroll)};t.prototype.buildArrows=function(){var t=this;if(t.options.arrows===!0&&t.slideCount>t.options.slidesToShow){t.$prevArrow=e('').appendTo(t.$slider);t.$nextArrow=e('').appendTo(t.$slider);t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled")}};t.prototype.buildDots=function(){var t=this,n,r;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){r='";t.$dots=e(r).appendTo(t.$slider);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slidesCache=t.$slides;t.$slider.addClass("slick-slider");t.$slideTrack=t.slideCount===0?e('
').appendTo(t.$slider):t.$slides.wrapAll('
').parent();t.$list=t.$slideTrack.wrap('
').parent();t.$slideTrack.css("opacity",0);if(t.options.centerMode===!0){t.options.infinite=!0;t.options.slidesToScroll=1;t.options.slidesToShow%2===0&&(t.options.slidesToShow=3)}e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.options.accessibility===!0&&t.$list.prop("tabIndex",0);t.setSlideClasses(0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.checkResponsive=function(){var t=this,n,r;if(t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&t.originalSettings.responsive!==null){r=null;for(n in t.breakpoints)t.breakpoints.hasOwnProperty(n)&&e(window).width()t.options.slidesToShow){t.slideOffset=t.slideWidth*t.options.slidesToShow*-1;i=r*t.options.slidesToShow*-1}if(t.slideCount%t.options.slidesToScroll!==0&&e+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow){t.slideOffset=t.slideCount%t.options.slidesToShow*t.slideWidth*-1;i=t.slideCount%t.options.slidesToShow*r*-1}}else if(t.slideCount%t.options.slidesToShow!==0&&e+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow){t.slideOffset=t.options.slidesToShow*t.slideWidth-t.slideCount%t.options.slidesToShow*t.slideWidth;i=t.slideCount%t.options.slidesToShow*r}t.options.centerMode===!0&&(t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth);t.options.vertical===!1?n=e*t.slideWidth*-1+t.slideOffset:n=e*r*-1+i;return n};t.prototype.init=function(){var t=this;if(!e(t.$slider).hasClass("slick-initialized")){e(t.$slider).addClass("slick-initialized");t.buildOut();t.setProps();t.startLoad();t.loadSlider();t.initializeEvents();t.checkResponsive()}t.options.onInit!==null&&t.options.onInit.call(this,t)};t.prototype.initArrowEvents=function(){var e=this;if(e.options.arrows===!0&&e.slideCount>e.options.slidesToShow){e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide);e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide)}};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide)};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);if(t.options.pauseOnHover===!0&&t.options.autoplay===!0){t.$list.on("mouseenter.slick",t.autoPlayClear);t.$list.on("mouseleave.slick",t.autoPlay)}t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler);e(window).on("orientationchange.slick.slick-"+t.instanceUid,function(){t.checkResponsive();t.setPosition()});e(window).on("resize.slick.slick-"+t.instanceUid,function(){if(e(window).width!==t.windowWidth){clearTimeout(t.windowDelay);t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width();t.checkResponsive();t.setPosition()},50)}});e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var e=this;if(e.options.arrows===!0&&e.slideCount>e.options.slidesToShow){e.$prevArrow.show();e.$nextArrow.show()}e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show();e.options.autoplay===!0&&e.autoPlay()};t.prototype.keyHandler=function(e){var t=this;e.keyCode===37?t.changeSlide({data:{message:"previous"}}):e.keyCode===39&&t.changeSlide({data:{message:"next"}})};t.prototype.lazyLoad=function(){var t=this,n,r,i,s;if(t.options.centerMode===!0){i=t.options.slidesToShow+t.currentSlide-1;s=i+t.options.slidesToShow+2}else{i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide;s=i+t.options.slidesToShow}n=t.$slider.find(".slick-slide").slice(i,s);e("img[data-lazy]",n).not("[src]").each(function(){e(this).css({opacity:0}).attr("src",e(this).attr("data-lazy")).removeClass("slick-loading").load(function(){e(this).animate({opacity:1},200)})});if(t.currentSlide>=t.slideCount-t.options.slidesToShow){r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow);e("img[data-lazy]",r).not("[src]").each(function(){e(this).css({opacity:0}).attr("src",e(this).attr("data-lazy")).removeClass("slick-loading").load(function(){e(this).animate({opacity:1},200)})})}else if(t.currentSlide===0){r=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1);e("img[data-lazy]",r).not("[src]").each(function(){e(this).css({opacity:0}).attr("src",e(this).attr("data-lazy")).removeClass("slick-loading").load(function(){e(this).animate({opacity:1},200)})})}};t.prototype.loadSlider=function(){var e=this;e.setPosition();e.$slideTrack.css({opacity:1});e.$slider.removeClass("slick-loading");e.initUI();e.options.lazyLoad==="progressive"&&e.progressiveLazyLoad()};t.prototype.postSlide=function(e){var t=this;t.options.onAfterChange!==null&&t.options.onAfterChange.call(this,t,e);t.animating=!1;t.setPosition();t.swipeLeft=null;t.options.autoplay===!0&&t.paused===!1&&t.autoPlay()};t.prototype.progressiveLazyLoad=function(){var t=this,n,r;n=e("img[data-lazy]").not("[src]").length;if(n>0){r=e(e("img[data-lazy]",t.$slider).not("[src]").get(0));r.attr("src",r.attr("data-lazy")).removeClass("slick-loading").load(function(){t.progressiveLazyLoad()})}};t.prototype.refresh=function(){var t=this;t.destroy();e.extend(t,t.initials);t.init()};t.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide");e.slideCount=e.$slides.length;e.currentSlide>=e.slideCount&&e.currentSlide!==0&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll);e.setProps();e.setupInfinite();e.buildArrows();e.updateArrows();e.initArrowEvents();e.buildDots();e.updateDots();e.initDotEvents();e.setSlideClasses(0);e.setPosition();e.options.onReInit!==null&&e.options.onReInit.call(this,e)};t.prototype.removeSlide=function(e,t){var n=this;if(typeof e=="boolean"){t=e;e=t===!0?0:n.slideCount-1}else e=t===!0?--e:e;if(n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload();n.$slideTrack.children(this.options.slide).eq(e).remove();n.$slides=n.$slideTrack.children(this.options.slide);n.$slideTrack.children(this.options.slide).remove();n.$slideTrack.append(n.$slides);n.$slidesCache=n.$slides;n.reinit()};t.prototype.setCSS=function(e){var t=this,n={},r,i;r=t.positionProp=="left"?e+"px":"0px";i=t.positionProp=="top"?e+"px":"0px";n[t.positionProp]=e;if(t.transformsEnabled===!1)t.$slideTrack.css(n);else{n={};if(t.cssTransitions===!1){n[t.animType]="translate("+r+", "+i+")";t.$slideTrack.css(n)}else{n[t.animType]="translate3d("+r+", "+i+", 0px)";t.$slideTrack.css(n)}}};t.prototype.setDimensions=function(){var e=this;e.options.centerMode===!0?e.$slideTrack.children(".slick-slide").width(e.slideWidth):e.$slideTrack.children(".slick-slide").width(e.slideWidth);if(e.options.vertical===!1){e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length));e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding})}else{e.$list.height(e.$slides.first().outerHeight()*e.options.slidesToShow);e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight()*e.$slideTrack.children(".slick-slide").length));e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})}};t.prototype.setFade=function(){var t=this,n;t.$slides.each(function(r,i){n=t.slideWidth*r*-1;e(i).css({position:"relative",left:n,top:0,zIndex:800,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})};t.prototype.setPosition=function(){var e=this;e.setValues();e.setDimensions();e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade()};t.prototype.setProps=function(){var e=this;e.positionProp=e.options.vertical===!0?"top":"left";e.positionProp==="top"?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical");(document.body.style.WebkitTransition!==undefined||document.body.style.MozTransition!==undefined||document.body.style.msTransition!==undefined)&&e.options.useCSS===!0&&(e.cssTransitions=!0);if(document.body.style.MozTransform!==undefined){e.animType="MozTransform";e.transformType="-moz-transform";e.transitionType="MozTransition"}if(document.body.style.webkitTransform!==undefined){e.animType="webkitTransform";e.transformType="-webkit-transform";e.transitionType="webkitTransition"}if(document.body.style.msTransform!==undefined){e.animType="transform";e.transformType="transform";e.transitionType="transition"}e.transformsEnabled=e.animType!==null};t.prototype.setValues=function(){var e=this;e.listWidth=e.$list.width();e.listHeight=e.$list.height();e.options.vertical===!1?e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow):e.slideWidth=Math.ceil(e.listWidth)};t.prototype.setSlideClasses=function(e){var t=this,n,r,i;t.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center");r=t.$slider.find(".slick-slide");if(t.options.centerMode===!0){n=Math.floor(t.options.slidesToShow/2);if(e>=n&&e<=t.slideCount-1-n)t.$slides.slice(e-n,e+n+1).addClass("slick-active");else{i=t.options.slidesToShow+e;r.slice(i-n+1,i+n+2).addClass("slick-active")}e===0?r.eq(r.length-1-t.options.slidesToShow).addClass("slick-center"):e===t.slideCount-1&&r.eq(t.options.slidesToShow).addClass("slick-center");t.$slides.eq(e).addClass("slick-center")}else if(e>0&&et.options.slidesToShow){t.options.centerMode===!0?i=t.options.slidesToShow+1:i=t.options.slidesToShow;for(n=t.slideCount;n>t.slideCount-i;n-=1){r=n-1;e(t.$slides[r]).clone().attr("id","").prependTo(t.$slideTrack).addClass("slick-cloned")}for(n=0;no.slideCount-o.options.slidesToShow+i)){if(o.options.fade===!1){t=o.currentSlide;o.animateSlide(r,function(){o.postSlide(t)})}return!1}o.options.autoplay===!0&&clearInterval(o.autoPlayTimer);t<0?o.slideCount%o.options.slidesToScroll!==0?n=o.slideCount-o.slideCount%o.options.slidesToScroll:n=o.slideCount-o.options.slidesToScroll:t>o.slideCount-1?n=0:n=t;o.animating=!0;o.options.onBeforeChange!==null&&e!==o.currentSlide&&o.options.onBeforeChange.call(this,o,o.currentSlide,n);o.currentSlide=n;o.setSlideClasses(o.currentSlide);o.updateDots();o.updateArrows();if(o.options.fade===!0){o.fadeSlide(n,function(){o.postSlide(n)});return!1}o.animateSlide(s,function(){o.postSlide(n)})};t.prototype.startLoad=function(){var e=this;if(e.options.arrows===!0&&e.slideCount>e.options.slidesToShow){e.$prevArrow.hide();e.$nextArrow.hide()}e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide();e.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var e,t,n,r,i=this;e=i.touchObject.startX-i.touchObject.curX;t=i.touchObject.startY-i.touchObject.curY;n=Math.atan2(t,e);r=Math.round(n*180/Math.PI);r<0&&(r=360-Math.abs(r));return r<=45&&r>=0?"left":r<=360&&r>=315?"left":r>=135&&r<=225?"right":"vertical"};t.prototype.swipeEnd=function(t){var n=this;n.$list.removeClass("dragging");if(n.touchObject.curX===undefined)return!1;if(n.touchObject.swipeLength>=n.touchObject.minSwipe){e(t.target).on("click.slick",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();e(t.target).off("click.slick")});switch(n.swipeDirection()){case"left":n.slideHandler(n.currentSlide+n.options.slidesToScroll);n.touchObject={};break;case"right":n.slideHandler(n.currentSlide-n.options.slidesToScroll);n.touchObject={}}}else if(n.touchObject.startX!==n.touchObject.curX){n.slideHandler(n.currentSlide);n.touchObject={}}};t.prototype.swipeHandler=function(e){var t=this;if("ontouchend"in document&&t.options.swipe===!1)return!1;if(t.options.draggable===!1&&!e.originalEvent.touches)return!0;t.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==undefined?e.originalEvent.touches.length:1;t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold;switch(e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}};t.prototype.swipeMove=function(e){var t=this,n,r,i,s;s=e.originalEvent!==undefined?e.originalEvent.touches:null;n=t.getLeft(t.currentSlide);if(!t.$list.hasClass("dragging")||s&&s.length!==1 )return!1;t.touchObject.curX=s!==undefined?s[0].pageX:e.clientX;t.touchObject.curY=s!==undefined?s[0].pageY:e.clientY;t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2)));r=t.swipeDirection();if(r==="vertical")return;e.originalEvent!==undefined&&t.touchObject.swipeLength>4&&e.preventDefault();i=t.touchObject.curX>t.touchObject.startX?1:-1;t.options.vertical===!1?t.swipeLeft=n+t.touchObject.swipeLength*i:t.swipeLeft=n+t.touchObject.swipeLength*(t.$list.height()/t.listWidth)*i;if(t.options.fade===!0||t.options.touchMove===!1)return!1;if(t.animating===!0){t.swipeLeft=null;return!1}t.setCSS(t.swipeLeft)};t.prototype.swipeStart=function(e){var t=this,n;if(t.touchObject.fingerCount!==1||t.slideCount<=t.options.slidesToShow){t.touchObject={};return!1}e.originalEvent!==undefined&&e.originalEvent.touches!==undefined&&(n=e.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=n!==undefined?n.pageX:e.clientX;t.touchObject.startY=t.touchObject.curY=n!==undefined?n.pageY:e.clientY;t.$list.addClass("dragging")};t.prototype.unfilterSlides=function(){var e=this;if(e.$slidesCache!==null){e.unload();e.$slideTrack.children(this.options.slide).remove();e.$slidesCache.appendTo(e.$slideTrack);e.reinit()}};t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();if(t.$prevArrow){t.$prevArrow.remove();t.$nextArrow.remove()}t.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")};t.prototype.updateArrows=function(){var e=this;if(e.options.arrows===!0&&e.options.infinite!==!0&&e.slideCount>e.options.slidesToShow){e.$prevArrow.removeClass("slick-disabled");e.$nextArrow.removeClass("slick-disabled");if(e.currentSlide===0){e.$prevArrow.addClass("slick-disabled");e.$nextArrow.removeClass("slick-disabled")}else if(e.currentSlide>=e.slideCount-e.options.slidesToShow){e.$nextArrow.addClass("slick-disabled");e.$prevArrow.removeClass("slick-disabled")}}};t.prototype.updateDots=function(){var e=this;if(e.$dots!==null){e.$dots.find("li").removeClass("slick-active");e.$dots.find("li").eq(e.currentSlide/e.options.slidesToScroll).addClass("slick-active")}};e.fn.slick=function(e){var n=this;return n.each(function(n,r){r.slick=new t(r,e)})};e.fn.slickAdd=function(e,t,n){var r=this;return r.each(function(r,i){i.slick.addSlide(e,t,n)})};e.fn.slickCurrentSlide=function(){var e=this;return e.get(0).slick.getCurrent()};e.fn.slickFilter=function(e){var t=this;return t.each(function(t,n){n.slick.filterSlides(e)})};e.fn.slickGoTo=function(e){var t=this;return t.each(function(t,n){n.slick.slideHandler(e)})};e.fn.slickNext=function(){var e=this;return e.each(function(e,t){t.slick.changeSlide({data:{message:"next"}})})};e.fn.slickPause=function(){var e=this;return e.each(function(e,t){t.slick.autoPlayClear();t.slick.paused=!0})};e.fn.slickPlay=function(){var e=this;return e.each(function(e,t){t.slick.paused=!1;t.slick.autoPlay()})};e.fn.slickPrev=function(){var e=this;return e.each(function(e,t){t.slick.changeSlide({data:{message:"previous"}})})};e.fn.slickRemove=function(e,t){var n=this;return n.each(function(n,r){r.slick.removeSlide(e,t)})};e.fn.slickSetOption=function(e,t,n){var r=this;return r.each(function(r,i){i.slick.options[e]=t;if(n===!0){i.slick.unload();i.slick.reinit()}})};e.fn.slickUnfilter=function(){var e=this;return e.each(function(e,t){t.slick.unfilterSlides()})};e.fn.unslick=function(){var e=this;return e.each(function(e,t){t.slick.destroy()})}});