/*!
 * Flickity PACKAGED v2.3.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2021 Metafizzy
 */
(function(e,i){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)})(window,function(e,r){"use strict";function n(h,s,c){function i(t,r,o){var a,l="$()."+h+'("'+r+'")';return t.each(function(t,e){var i=c.data(e,h),n,s;if(!i){u(h+" not initialized. Cannot call methods, i.e. "+l);return}if(n=i[r],!n||r.charAt(0)=="_"){u(l+" is not a valid method");return}s=n.apply(i,o);a=a===undefined?s:a}),a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=c.data(e,h);i?(i.option(n),i._init()):(i=new s(e,n),c.data(e,h,i))})}(c=c||r||e.jQuery,c)&&(s.prototype.option||(s.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[h]=function(t){if(typeof t=="string"){var e=o.call(arguments,1);return i(this,t,e)}return n(this,t),this},a(c))}function a(t){!t||t&&t.bridget||(t.bridget=n)}var o=Array.prototype.slice,i=e.console,u=typeof i=="undefined"?function(){}:function(t){i.error(t)};return a(r||e.jQuery),n}),function(t,e){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",e):typeof module=="object"&&module.exports?module.exports=e():t.EvEmitter=e()}(typeof window!="undefined"?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t],n;if(i&&i.length)return n=i.indexOf(e),n!=-1&&i.splice(n,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t],n,s,r,o;if(i&&i.length){for(i=i.slice(0),e=e||[],n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++)r=i[s],o=n&&n[r],o&&(this.off(t,r),delete n[r]),r.apply(this,e);return this}},e.allOff=function(){delete this._events;delete this._onceEvents},t});
/*!
 * getSize v2.0.3
 * measure size of elements
 * MIT license
 */
(function(t,e){typeof define=="function"&&define.amd?define("get-size/get-size",e):typeof module=="object"&&module.exports?module.exports=e():t.getSize=e()})(window,function(){"use strict";function m(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function E(){for(var i,t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<b;e++)i=y[e],t[i]=0;return t}function S(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function x(){var t,e,i;n||(n=!0,t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box",e=document.body||document.documentElement,e.appendChild(t),i=S(t),C=Math.round(m(i.width))==200,s.isBoxSizeOuter=C,e.removeChild(t))}function s(t){var e,i,n,s,g;if(x(),typeof t=="string"&&(t=document.querySelector(t)),t&&typeof t=="object"&&t.nodeType){if(e=S(t),e.display=="none")return E();for(i={},i.width=t.offsetWidth,i.height=t.offsetHeight,n=i.isBorderBox=e.boxSizing=="border-box",s=0;s<b;s++){var r=y[s],o=e[r],a=parseFloat(o);i[r]=isNaN(a)?0:a}var l=i.paddingLeft+i.paddingRight,h=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,u=i.marginTop+i.marginBottom,d=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,p=n&&C,v=m(e.width);return v!==!1&&(i.width=v+(p?0:l+d)),g=m(e.height),g!==!1&&(i.height=g+(p?0:h+f)),i.innerWidth=i.width-(l+d),i.innerHeight=i.height-(h+f),i.outerWidth=i.width+c,i.outerHeight=i.height+u,i}}var i=typeof console=="undefined"?e:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=y.length,n=!1,C;return s}),function(t,e){"use strict";typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",e):typeof module=="object"&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var n=function(){var t=window.Element.prototype,e,i,n,s;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(e=["webkit","moz","ms","o"],i=0;i<e.length;i++)if(n=e[i],s=n+"MatchesSelector",t[s])return s}();return function(e,i){return e[n](i)}}),function(e,i){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(h,r){var c={},i,u;return c.extend=function(t,e){for(var i in e)t[i]=e[i];return t},c.modulo=function(t,e){return(t%e+e)%e},i=Array.prototype.slice,c.makeArray=function(t){if(Array.isArray(t))return t;if(t===null||t===undefined)return[];var e=typeof t=="object"&&typeof t.length=="number";return e?i.call(t):[t]},c.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},c.getParent=function(t,e){while(t.parentNode&&t!=document.body)if(t=t.parentNode,r(t,e))return t},c.getQueryElement=function(t){return typeof t=="string"?document.querySelector(t):t},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.filterFindElements=function(t,n){t=c.makeArray(t);var s=[];return t.forEach(function(t){var e,i;if(t instanceof HTMLElement){if(!n){s.push(t);return}for(r(t,n)&&s.push(t),e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}}),s},c.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e,i;clearTimeout(t);e=arguments;i=this;this[r]=setTimeout(function(){s.apply(i,e);delete i[r]},n)}},c.docReady=function(t){var e=document.readyState;e=="complete"||e=="interactive"?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},u=h.console,c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l),s="data-"+t,e=document.querySelectorAll("["+s+"]"),i=document.querySelectorAll(".js-"+t),n=c.makeArray(e).concat(c.makeArray(i)),r=s+"-options",o=h.jQuery;n.forEach(function(e){var t=e.getAttribute(s)||e.getAttribute(r),i,n;try{i=t&&JSON.parse(t)}catch(t){u&&u.error("Error parsing "+s+" on "+e.className+": "+t);return}n=new a(e,i);o&&o.data(e,l,n)})})},c}),function(e,i){typeof define=="function"&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=i(e,e.getSize))}(window,function(e,i){function n(t,e){this.element=t;this.parent=e;this.create()}var s=n.prototype;return s.create=function(){this.element.style.position="absolute";this.element.setAttribute("aria-hidden","true");this.x=0;this.shift=0;this.element.style[this.parent.originSide]=0},s.destroy=function(){this.unselect();this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="";this.element.style.transform="";this.element.removeAttribute("aria-hidden")},s.getSize=function(){this.size=i(this.element)},s.setPosition=function(t){this.x=t;this.updateTarget();this.renderPosition(t)},s.updateTarget=s.setDefaultTarget=function(){var t=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},s.renderPosition=function(t){var e=this.parent.originSide==="left"?1:-1,i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"},s.select=function(){this.element.classList.add("is-selected");this.element.removeAttribute("aria-hidden")},s.unselect=function(){this.element.classList.remove("is-selected");this.element.setAttribute("aria-hidden","true")},s.wrapShift=function(t){this.shift=t;this.renderPosition(this.x+this.parent.slideableWidth*t)},s.remove=function(){this.element.parentNode.removeChild(this.element)},n}),function(t,e){typeof define=="function"&&define.amd?define("flickity/js/slide",e):typeof module=="object"&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function e(t){this.parent=t;this.isOriginLeft=t.originSide=="left";this.cells=[];this.outerWidth=0;this.height=0}var i=e.prototype;return i.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),this.cells.length==1){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},i.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},i.getLastCell=function(){return this.cells[this.cells.length-1]},i.select=function(){this.cells.forEach(function(t){t.select()})},i.unselect=function(){this.cells.forEach(function(t){t.unselect()})},i.getCellElements=function(){return this.cells.map(function(t){return t.element})},e}),function(e,i){typeof define=="function"&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("fizzy-ui-utils")):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=i(e,e.fizzyUIUtils))}(window,function(e,i){var n={};return n.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},n.animate=function(){var t,e;this.applyDragForce();this.applySelectedAttraction();t=this.x;this.integratePhysics();this.positionSlider();this.settle(t);this.isAnimating&&(e=this,requestAnimationFrame(function(){e.animate()}))},n.positionSlider=function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=i.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t));this.setTranslateX(t,this.isAnimating);this.dispatchScrollEvent()},n.setTranslateX=function(t,e){t+=this.cursorPosition;t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},n.dispatchScrollEvent=function(){var t=this.slides[0],e,i;t&&(e=-this.x-t.target,i=e/this.slidesWidth,this.dispatchEvent("scroll",null,[i,e]))},n.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},n.getPositionValue=function(t){return this.options.percentPosition?Math.round(t/this.size.innerWidth*1e4)*.01+"%":Math.round(t)+"px"},n.settle=function(t){var e=!this.isPointerDown&&Math.round(this.x*100)==Math.round(t*100);e&&this.restingFrames++;this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},n.shiftWrapCells=function(t){var e=this.cursorPosition+t,i;this._shiftCells(this.beforeShiftCells,e,-1);i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},n._shiftCells=function(t,e,i){for(var s,r,n=0;n<t.length;n++)s=t[n],r=e>0?i:0,s.wrapShift(r),e-=s.size.outerWidth},n._unshiftCells=function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},n.integratePhysics=function(){this.x+=this.velocity;this.velocity*=this.getFrictionFactor()},n.applyForce=function(t){this.velocity+=t},n.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},n.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},n.applyDragForce=function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x,e=t-this.velocity;this.applyForce(e)}},n.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown,e,i;t||this.isFreeScrolling||!this.slides.length||(e=this.selectedSlide.target*-1-this.x,i=e*this.options.selectedAttraction,this.applyForce(i))},n}),function(o,a){if(typeof define=="function"&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,r){return a(o,t,e,i,n,s,r)});else if(typeof module=="object"&&module.exports)module.exports=a(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var t=o.Flickity;o.Flickity=a(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}(window,function(n,e,i,a,s,o,r){function u(t,e){for(t=a.makeArray(t);t.length;)e.appendChild(t.shift())}function p(t,e){var i=a.getQueryElement(t),n;if(!i){c&&c.error("Bad element for Flickity: "+(i||t));return}if(this.element=i,this.element.flickityGUID)return n=f[this.element.flickityGUID],n&&n.option(e),n;l&&(this.$element=l(this.element));this.options=a.extend({},this.constructor.defaults);this.option(e);this._create()}var l=n.jQuery,h=n.getComputedStyle,c=n.console,d=0,f={},v,g;return p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[],v=p.prototype,a.extend(v,e.prototype),v._create=function(){var t=this.guid=++d,e,i;this.element.flickityGUID=t;f[t]=this;this.selectedIndex=0;this.restingFrames=0;this.x=0;this.velocity=0;this.originSide=this.options.rightToLeft?"right":"left";this.viewport=document.createElement("div");this.viewport.className="flickity-viewport";this._createSlider();(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this);for(e in this.options.on){i=this.options.on[e];this.on(e,i)}p.createMethods.forEach(function(t){this[t]()},this);this.options.watchCSS?this.watchCSS():this.activate()},v.option=function(t){a.extend(this.options,t)},v.activate=function(){if(!this.isActive){this.isActive=!0;this.element.classList.add("flickity-enabled");this.options.rightToLeft&&this.element.classList.add("flickity-rtl");this.getSize();var t=this._filterFindCellElements(this.element.children);u(t,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport);this.reloadCells();this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this));this.emitEvent("activate");this.selectInitialIndex();this.isInitActivated=!0;this.dispatchEvent("ready")}},v._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider";t.style[this.originSide]=0;this.slider=t},v._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)},v.reloadCells=function(){this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()},v._makeCells=function(t){var e=this._filterFindCellElements(t);return e.map(function(t){return new s(t,this)},this)},v.getLastCell=function(){return this.cells[this.cells.length-1]},v.getLastSlide=function(){return this.slides[this.slides.length-1]},v.positionCells=function(){this._sizeCells(this.cells);this._positionCells(0)},v._positionCells=function(t){var e,i,n,s,r;for(t=t||0,this.maxCellHeight=t?this.maxCellHeight||0:0,e=0,t>0&&(i=this.cells[t-1],e=i.x+i.size.outerWidth),n=this.cells.length,s=t;s<n;s++)r=this.cells[s],r.setPosition(e),e+=r.size.outerWidth,this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight);this.slideableWidth=e;this.updateSlides();this._containSlides();this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},v._sizeCells=function(t){t.forEach(function(t){t.getSize()})},v.updateSlides=function(){var n;if(this.slides=[],this.cells.length){n=new o(this);this.slides.push(n);var t=this.originSide=="left",s=t?"marginRight":"marginLeft",r=this._getCanCellFit();this.cells.forEach(function(t,e){if(!n.cells.length){n.addCell(t);return}var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);r.call(this,e,i)?n.addCell(t):(n.updateTarget(),n=new o(this),this.slides.push(n),n.addCell(t))},this);n.updateTarget();this.updateSelectedSlide()}},v._getCanCellFit=function(){var t=this.options.groupCells,e,i,n;if(t){if(typeof t=="number")return e=parseInt(t,10),function(t){return t%e!=0}}else return function(){return!1};return i=typeof t=="string"&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1,function(t,e){return e<=(this.size.innerWidth+1)*n}},v._init=v.reposition=function(){this.positionCells();this.positionSliderAtSelected()},v.getSize=function(){this.size=i(this.element);this.setCellAlign();this.cursorPosition=this.size.innerWidth*this.cellAlign},g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}},v.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},v.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},v._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);t=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(t,0,1)}},v._getGapCells=function(t,e,i){for(var n=[],s;t>0;){if(s=this.cells[e],!s)break;n.push(s);e+=i;t-=s.size.outerWidth}return n},v._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,r=this.cursorPosition+this.cells[0].size[e],o=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,r),t.target=Math.min(t.target,o))},this)}},v.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i,s,r;this.emitEvent(t,n);l&&this.$element&&(t+=this.options.namespaceJQueryEvents?".flickity":"",s=t,e&&(r=new l.Event(e),r.type=t,s=r),this.$element.trigger(s,i))},v.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=a.modulo(t,this.slides.length)),this.slides[t])){var n=this.selectedIndex;this.selectedIndex=t;this.updateSelectedSlide();i?this.positionSliderAtSelected():this.startAnimation();this.options.adaptiveHeight&&this.setGallerySize();this.dispatchEvent("select",null,[t]);t!=n&&this.dispatchEvent("change",null,[t]);this.dispatchEvent("cellSelect")}},v._wrapSelect=function(t){var e=this.slides.length,i=this.options.wrapAround&&e>1;if(!i)return t;var n=a.modulo(t,e),s=Math.abs(n-this.selectedIndex),r=Math.abs(n+e-this.selectedIndex),o=Math.abs(n-e-this.selectedIndex);!this.isDragSelect&&r<s?t+=e:!this.isDragSelect&&o<s&&(t-=e);t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},v.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},v.next=function(t,e){this.select(this.selectedIndex+1,t,e)},v.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},v.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},v.selectInitialIndex=function(){var t=this.options.initialIndex,e,i;if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(t&&typeof t=="string"&&(e=this.queryCell(t),e)){this.selectCell(t,!1,!0);return}i=0;t&&this.slides[t]&&(i=t);this.select(i,!1,!0)},v.selectCell=function(t,e,i){var n=this.queryCell(t),s;n&&(s=this.getCellSlideIndex(n),this.select(s,e,i))},v.getCellSlideIndex=function(t){for(var i,n,e=0;e<this.slides.length;e++)if(i=this.slides[e],n=i.cells.indexOf(t),n!=-1)return e},v.getCell=function(t){for(var i,e=0;e<this.cells.length;e++)if(i=this.cells[e],i.element==t)return i},v.getCells=function(t){t=a.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getCell(t);e&&i.push(e)},this),i},v.getCellElements=function(){return this.cells.map(function(t){return t.element})},v.getParentCell=function(t){var e=this.getCell(t);return e?e:(t=a.getParent(t,".flickity-slider > *"),this.getCell(t))},v.getAdjacentCellElements=function(t,e){var i,n,s,r,o;if(!t)return this.selectedSlide.getCellElements();if(e=e===undefined?this.selectedIndex:e,i=this.slides.length,1+t*2>=i)return this.getCellElements();for(n=[],s=e-t;s<=e+t;s++)r=this.options.wrapAround?a.modulo(s,i):s,o=this.slides[r],o&&(n=n.concat(o.getCellElements()));return n},v.queryCell=function(t){if(typeof t=="number")return this.cells[t];if(typeof t=="string"){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},v.uiChange=function(){this.emitEvent("uiChange")},v.childUIPointerDown=function(t){t.type!="touchstart"&&t.preventDefault();this.focus()},v.onresize=function(){this.watchCSS();this.resize()},a.debounceMethod(p,"onresize",150),v.resize=function(){if(this.isActive&&!this.isAnimating&&!this.isDragging){this.getSize();this.options.wrapAround&&(this.x=a.modulo(this.x,this.slideableWidth));this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},v.watchCSS=function(){var t=this.options.watchCSS,e;t&&(e=h(this.element,":after").content,e.indexOf("flickity")!=-1?this.activate():this.deactivate())},v.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element,i;this.options.accessibility&&!e&&(i=p.keyboardHandlers[t.keyCode],i&&i.call(this))},p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange();this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange();this[t]()}},v.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:!0});n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)},v.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),u(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},v.destroy=function(){this.deactivate();n.removeEventListener("resize",this);this.allOff();this.emitEvent("destroy");l&&this.$element&&l.removeData(this.element,"flickity");delete this.element.flickityGUID;delete f[this.guid]},a.extend(v,r),p.data=function(t){t=a.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]},a.htmlInit(p,"flickity"),l&&l.bridget&&l.bridget("flickity",p),p.setJQuery=function(t){l=t},p.Cell=s,p.Slide=o,p});
/*!
 * Unipointer v2.4.0
 * base class for doing one thing with pointer event
 * MIT license
 */
(function(e,i){typeof define=="function"&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("ev-emitter")):e.Unipointer=i(e,e.EvEmitter)})(window,function(s,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype),o;return r.bindStartEvent=function(t){this._bindStartEvent(t,!0)},r.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},r._bindStartEvent=function(t,e){e=e===undefined?!0:e;var i=e?"addEventListener":"removeEventListener",n="mousedown";"ontouchstart"in s?n="touchstart":s.PointerEvent&&(n="pointerdown");t[i](n,this)},r.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.getTouch=function(t){for(var i,e=0;e<t.length;e++)if(i=t[e],i.identifier==this.pointerIdentifier)return i},r.onmousedown=function(t){var e=t.button;e&&e!==0&&e!==1||this._pointerDown(t,t)},r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},r.onpointerdown=function(t){this._pointerDown(t,t)},r._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=e.pointerId!==undefined?e.pointerId:e.identifier,this.pointerDown(t,e))},r.pointerDown=function(t,e){this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])},o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]},r._bindPostStartEvents=function(t){if(t){var e=o[t.type];e.forEach(function(t){s.addEventListener(t,this)},this);this._boundPointerEvents=e}},r._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this),delete this._boundPointerEvents)},r.onmousemove=function(t){this._pointerMove(t,t)},r.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},r._pointerMove=function(t,e){this.pointerMove(t,e)},r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},r.onmouseup=function(t){this._pointerUp(t,t)},r.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},r._pointerUp=function(t,e){this._pointerDone();this.pointerUp(t,e)},r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},r._pointerDone=function(){this._pointerReset();this._unbindPostStartEvents();this.pointerDone()},r._pointerReset=function(){this.isPointerDown=!1;delete this.pointerIdentifier},r.pointerDone=i,r.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},r._pointerCancel=function(t,e){this._pointerDone();this.pointerCancel(t,e)},r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n});
/*!
 * Unidragger v2.4.0
 * Draggable base class
 * MIT license
 */
(function(e,i){typeof define=="function"&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("unipointer")):e.Unidragger=i(e,e.Unipointer)})(window,function(r,e){function i(){}var n=i.prototype=Object.create(e.prototype),s,o;return n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(t){var e,i,n,s;for(t=t===undefined?!0:t,e=t?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",n=0;n<this.handles.length;n++)s=this.handles[n],this._bindStartEvent(s,t),s[e]("click",this),r.PointerEvent&&(s.style.touchAction=i)},n._touchActionValue="none",n.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))},s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0},n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement,e=t&&t.blur&&t!=document.body;e&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]);this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]);this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0;this.isPreventingClicks=!0;this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault();this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1;setTimeout(function(){delete this.isPreventingClicks}.bind(this));this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&t.type=="mouseup"||(this.staticClick(t,e),t.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}),function(n,s){typeof define=="function"&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):typeof module=="object"&&module.exports?module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}(window,function(n,e,i,a){function o(){return{x:n.pageXOffset,y:n.pageYOffset}}var s,r;return a.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag"),s=e.prototype,a.extend(s,i.prototype),s._touchActionValue="pan-y",s._createDrag=function(){this.on("activate",this.onActivateDrag);this.on("uiChange",this._uiChangeDrag);this.on("deactivate",this.onDeactivateDrag);this.on("cellChange",this.updateDraggable)},s.onActivateDrag=function(){this.handles=[this.viewport];this.bindHandles();this.updateDraggable()},s.onDeactivateDrag=function(){this.unbindHandles();this.element.classList.remove("is-draggable")},s.updateDraggable=function(){this.isDraggable=this.options.draggable==">1"?this.slides.length>1:this.options.draggable;this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},s.bindDrag=function(){this.options.draggable=!0;this.updateDraggable()},s.unbindDrag=function(){this.options.draggable=!1;this.updateDraggable()},s._uiChangeDrag=function(){delete this.isFreeScrolling},s.pointerDown=function(t,e){if(!this.isDraggable){this._pointerDownDefault(t,e);return}var i=this.okayPointerDown(t);i&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=o(),n.addEventListener("scroll",this),this._pointerDownDefault(t,e))},s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};this._bindPostStartEvents(t);this.dispatchEvent("pointerDown",t,[e])},r={INPUT:!0,TEXTAREA:!0,SELECT:!0},s.pointerDownFocus=function(t){var e=r[t.target.nodeName];e||this.focus()},s._pointerDownPreventDefault=function(t){var e=t.type=="touchstart",i=t.pointerType=="touch",n=r[t.target.nodeName];e||i||n||t.preventDefault()},s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},s.pointerUp=function(t,e){delete this.isTouchScrolling;this.viewport.classList.remove("is-pointer-down");this.dispatchEvent("pointerUp",t,[e]);this._dragPointerUp(t,e)},s.pointerDone=function(){n.removeEventListener("scroll",this);delete this.pointerDownScroll},s.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),n.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e]))},s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]);this._dragMove(t,e,i)},s.dragMove=function(t,e,i){var n,s,r,o;this.isDraggable&&(t.preventDefault(),this.previousDragX=this.dragX,n=this.options.rightToLeft?-1:1,this.options.wrapAround&&(i.x%=this.slideableWidth),s=this.dragStartPosition+i.x*n,!this.options.wrapAround&&this.slides.length&&(r=Math.max(-this.slides[0].target,this.dragStartPosition),s=s>r?(s+r)*.5:s,o=Math.min(-this.getLastSlide().target,this.dragStartPosition),s=s<o?(s+o)*.5:s),this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i]))},s.dragEnd=function(t,e){var i,n;this.isDraggable&&(this.options.freeScroll&&(this.isFreeScrolling=!0),i=this.dragEndRestingSelect(),this.options.freeScroll&&!this.options.wrapAround?(n=this.getRestingPosition(),this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target):this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect()),delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e]))},s.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},s._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=Infinity,r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};r(e,s);){if(n+=i,s=e,e=this.getSlideDistance(-t,n),e===null)break;e=Math.abs(e)}return{distance:s,index:n-i}},s.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&i>1,s=n?a.modulo(e,i):e,r=this.slides[s],o;return r?(o=n?this.slideableWidth*Math.floor(e/i):0,t-(r.target+o)):null},s.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},s.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},s.onscroll=function(){var t=o(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}),function(n,s){typeof define=="function"&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):typeof module=="object"&&module.exports?module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}(window,function(e,i,n,s){"use strict";function o(t,e){this.direction=t;this.parent=e;this._create()}function a(t){return typeof t=="string"?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50  L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}var r="http://www.w3.org/2000/svg",l;return o.prototype=Object.create(n.prototype),o.prototype._create=function(){var t,e,i;this.isEnabled=!0;this.isPrevious=this.direction==-1;t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button";e.className+=this.isPrevious?" previous":" next";e.setAttribute("type","button");this.disable();e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");i=this.createSVG();e.appendChild(i);this.parent.on("select",this.update.bind(this));this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element);this.element.addEventListener("click",this);this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element);this.unbindStartEvent(this.element);this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(r,"svg"),e,i;return t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100"),e=document.createElementNS(r,"path"),i=a(this.parent.options.arrowShape),e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=s.handleEvent,o.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1){this.enable();return}var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()},o.prototype.destroy=function(){this.deactivate();this.allOff()},s.extend(i.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),i.createMethods.push("_createPrevNextButtons"),l=i.prototype,l._createPrevNextButtons=function(){if(this.options.prevNextButtons){this.prevButton=new o(-1,this);this.nextButton=new o(1,this);this.on("activate",this.activatePrevNextButtons)}},l.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)},l.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)},i.PrevNextButton=o,i}),function(n,s){typeof define=="function"&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):typeof module=="object"&&module.exports?module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}(window,function(e,i,n,s){function r(t){this.parent=t;this._create()}r.prototype=Object.create(n.prototype);r.prototype._create=function(){this.holder=document.createElement("ol");this.holder.className="flickity-page-dots";this.dots=[];this.handleClick=this.onClick.bind(this);this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};r.prototype.activate=function(){this.setDots();this.holder.addEventListener("click",this.handleClick);this.bindStartEvent(this.holder);this.parent.element.appendChild(this.holder)};r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick);this.unbindStartEvent(this.holder);this.parent.element.removeChild(this.holder)};r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)};r.prototype.addDots=function(t){for(var o,e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,r=n;r<s;r++)o=document.createElement("li"),o.className="dot",o.setAttribute("aria-label","Page dot "+(r+1)),e.appendChild(o),i.push(o);this.holder.appendChild(e);this.dots=this.dots.concat(i)};r.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)};r.prototype.updateSelected=function(){(this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length)&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))};r.prototype.onTap=r.prototype.onClick=function(t){var e=t.target,i;e.nodeName=="LI"&&(this.parent.uiChange(),i=this.dots.indexOf(e),this.parent.select(i))};r.prototype.destroy=function(){this.deactivate();this.allOff()};i.PageDots=r;s.extend(i.defaults,{pageDots:!0});i.createMethods.push("_createPageDots");var o=i.prototype;return o._createPageDots=function(){if(this.options.pageDots){this.pageDots=new r(this);this.on("activate",this.activatePageDots);this.on("select",this.updateSelectedPageDots);this.on("cellChange",this.updatePageDots);this.on("resize",this.updatePageDots);this.on("deactivate",this.deactivatePageDots)}},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},i.PageDots=r,i}),function(t,n){typeof define=="function"&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,e,i){return n(t,e,i)}):typeof module=="object"&&module.exports?module.exports=n(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):n(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(e,i,n){function s(t){this.parent=t;this.state="stopped";this.onVisibilityChange=this.visibilityChange.bind(this);this.onVisibilityPlay=this.visibilityPlay.bind(this)}s.prototype=Object.create(e.prototype);s.prototype.play=function(){if(this.state!="playing"){var t=document.hidden;if(t){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing";document.addEventListener("visibilitychange",this.onVisibilityChange);this.tick()}};s.prototype.tick=function(){var t,e;this.state=="playing"&&(t=this.parent.options.autoPlay,t=typeof t=="number"?t:3e3,e=this,this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0);e.tick()},t))};s.prototype.stop=function(){this.state="stopped";this.clear();document.removeEventListener("visibilitychange",this.onVisibilityChange)};s.prototype.clear=function(){clearTimeout(this.timeout)};s.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())};s.prototype.unpause=function(){this.state=="paused"&&this.play()};s.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()};s.prototype.visibilityPlay=function(){this.play();document.removeEventListener("visibilitychange",this.onVisibilityPlay)};i.extend(n.defaults,{pauseAutoPlayOnHover:!0});n.createMethods.push("_createPlayer");var r=n.prototype;return r._createPlayer=function(){this.player=new s(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)},r.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},r.playPlayer=function(){this.player.play()},r.stopPlayer=function(){this.player.stop()},r.pausePlayer=function(){this.player.pause()},r.unpausePlayer=function(){this.player.unpause()},r.deactivatePlayer=function(){this.player.stop();this.element.removeEventListener("mouseenter",this)},r.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},r.onmouseleave=function(){this.player.unpause();this.element.removeEventListener("mouseleave",this)},n.Player=s,n}),function(i,n){typeof define=="function"&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)}):typeof module=="object"&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(e,i,n){function l(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}var s=i.prototype;return s.insert=function(t,e){var i=this._makeCells(t),n,s,r,o,a;i&&i.length&&(n=this.cells.length,e=e===undefined?n:e,s=l(i),r=e==n,r?this.slider.appendChild(s):(o=this.cells[e].element,this.slider.insertBefore(s,o)),e===0?this.cells=i.concat(this.cells):r?this.cells=this.cells.concat(i):(a=this.cells.splice(e,n-e),this.cells=this.cells.concat(i).concat(a)),this._sizeCells(i),this.cellChange(e,!0))},s.append=function(t){this.insert(t,this.cells.length)},s.prepend=function(t){this.insert(t,0)},s.remove=function(t){var e=this.getCells(t),i;e&&e.length&&(i=this.cells.length-1,e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i);n.removeFrom(this.cells,t)},this),this.cellChange(i,!0))},s.cellSizeChange=function(t){var e=this.getCell(t),i;e&&(e.getSize(),i=this.cells.indexOf(e),this.cellChange(i))},s.cellChange=function(t,e){var i=this.selectedElement,n;this._positionCells(t);this._getWrapShiftCells();this.setGallerySize();n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n));this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex);this.emitEvent("cellChange",[t]);this.select(this.selectedIndex);e&&this.positionSliderAtSelected()},i}),function(i,n){typeof define=="function"&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)}):typeof module=="object"&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(e,i,o){"use strict";function s(t){var s,r;if(t.nodeName=="IMG"){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n)return[t]}return s="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",r=t.querySelectorAll(s),o.makeArray(r)}function r(t,e){this.img=t;this.flickity=e;this.load()}i.createMethods.push("_createLazyload");var n=i.prototype;return n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e=typeof t=="number"?t:0,i=this.getAdjacentCellElements(e),n=[];i.forEach(function(t){var e=s(t);n=n.concat(e)});n.forEach(function(t){new r(t,this)},this)}},r.prototype.handleEvent=o.handleEvent,r.prototype.load=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t;e&&this.img.setAttribute("srcset",e);this.img.removeAttribute("data-flickity-lazyload");this.img.removeAttribute("data-flickity-lazyload-src");this.img.removeAttribute("data-flickity-lazyload-srcset")},r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},r.prototype.complete=function(t,e){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n);this.img.classList.add(e);this.flickity.dispatchEvent("lazyLoad",t,n)},i.LazyLoader=r,i});
/*!
 * Flickity v2.3.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2021 Metafizzy
 */
(function(t,e){typeof define=="function"&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):typeof module=="object"&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))})(window,function(e){return e});
/*!
 * Flickity asNavFor v2.0.2
 * enable asNavFor for Flickity
 */
(function(t,e){typeof define=="function"&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):typeof module=="object"&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)})(window,function(n,s){function a(t,e,i){return(e-t)*i+t}n.createMethods.push("_createAsNavFor");var e=n.prototype;return e._createAsNavFor=function(){var e,i;this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);(e=this.options.asNavFor,e)&&(i=this,setTimeout(function(){i.setNavCompanion(e)}))},e.setNavCompanion=function(t){var e,i;if(t=s.getQueryElement(t),e=n.data(t),e&&e!=this){this.navCompanion=e;i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()};e.on("select",this.onNavCompanionSelect);this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect(!0)}},e.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells,o;if(e){var i=e[0],n=this.navCompanion.cells.indexOf(i),s=n+e.length-1,r=Math.floor(a(n,s,this.navCompanion.cellAlign));(this.selectCell(r,!1,t),this.removeNavSelectedElements(),r>=this.cells.length)||(o=this.cells.slice(n,s+1),this.navSelectedElements=o.map(function(t){return t.element}),this.changeNavSelectedClass("add"))}},e.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})},e.activateAsNavFor=function(){this.navCompanionSelect(!0)},e.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},e.onNavStaticClick=function(t,e,i,n){typeof n=="number"&&this.navCompanion.selectCell(n)},e.deactivateAsNavFor=function(){this.removeNavSelectedElements()},e.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},n});
/*!
 * imagesLoaded v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(e,i){"use strict";typeof define=="function"&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):typeof module=="object"&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)})(typeof window!="undefined"?window:this,function(e,i){function o(t,e){for(var i in e)t[i]=e[i];return t}function a(t){if(Array.isArray(t))return t;var e=typeof t=="object"&&typeof t.length=="number";return e?n.call(t):[t]}function l(t,e,i){if(!(this instanceof l))return new l(t,e,i);var n=t;if(typeof t=="string"&&(n=document.querySelectorAll(t)),!n){r.error("Bad element for imagesLoaded "+(n||t));return}if(this.elements=a(n),this.options=o({},this.options),typeof e=="function"?i=e:o(this.options,e),i)this.on("always",i);this.getImages();s&&(this.jqDeferred=new s.Deferred);setTimeout(this.check.bind(this))}function c(t){this.img=t}function u(t,e){this.url=t;this.element=e;this.img=new Image}var s=e.jQuery,r=e.console,n=Array.prototype.slice,h;return l.prototype=Object.create(i.prototype),l.prototype.options={},l.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)},l.prototype.addElementImages=function(t){var e,i,n,s,r,o;if(t.nodeName=="IMG"&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t),e=t.nodeType,e&&h[e]){for(i=t.querySelectorAll("img"),n=0;n<i.length;n++)s=i[n],this.addImage(s);if(typeof this.options.background=="string")for(r=t.querySelectorAll(this.options.background),n=0;n<r.length;n++)o=r[n],this.addElementBackgroundImages(o)}},h={1:!0,9:!0,11:!0},l.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t),i,n,s;if(e)for(i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);n!==null;)s=n&&n[2],s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)},l.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},l.prototype.addBackground=function(t,e){var i=new u(t,e);this.images.push(i)},l.prototype.check=function(){function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}var n=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}this.images.forEach(function(t){t.once("progress",e);t.check()})},l.prototype.progress=function(t,e,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;this.emitEvent("progress",[this,t,e]);this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t);this.progressedCount==this.images.length&&this.complete();this.options.debug&&r&&r.log("progress: "+i,t,e)},l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",e;this.isComplete=!0;this.emitEvent(t,[this]);this.emitEvent("always",[this]);this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},c.prototype=Object.create(i.prototype),c.prototype.check=function(){var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload");this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror");this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},u.prototype=Object.create(c.prototype),u.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},u.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.element,e])},l.makeJQueryPlugin=function(t){(t=t||e.jQuery,t)&&(s=t,s.fn.imagesLoaded=function(t,e){var i=new l(this,t,e);return i.jqDeferred.promise(s(this))})},l.makeJQueryPlugin(),l});
/*!
 * Flickity imagesLoaded v2.0.0
 * enables imagesLoaded option for Flickity
 */
(function(i,n){typeof define=="function"&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return n(i,t,e)}):typeof module=="object"&&module.exports?module.exports=n(i,require("flickity"),require("imagesloaded")):i.Flickity=n(i,i.Flickity,i.imagesLoaded)})(window,function(e,i,s){"use strict";i.createMethods.push("_createImagesLoaded");var n=i.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){function t(t,e){var i=n.getParentCell(e.img);n.cellSizeChange(i&&i.element);n.options.freeScroll||n.positionSliderAtSelected()}if(this.options.imagesLoaded){var n=this;s(this.slider).on("progress",t)}},i});
/*!
 * parallax.js v1.5.0 (http://pixelcog.github.io/parallax.js/)
 * @copyright 2016 PixelCog, Inc.
 * @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
 */
(function($,window,document,undefined){function Parallax(element,options){var self=this,positions,slider,sliderExisted;if(typeof options=="object"&&(delete options.refresh,delete options.render,$.extend(this,options)),this.$element=$(element),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src")),positions=(this.position+"").toLowerCase().match(/\S+/g)||[],positions.length<1&&positions.push("center"),positions.length==1&&positions.push(positions[0]),(positions[0]=="top"||positions[0]=="bottom"||positions[1]=="left"||positions[1]=="right")&&(positions=[positions[1],positions[0]]),this.positionX!==undefined&&(positions[0]=this.positionX.toLowerCase()),this.positionY!==undefined&&(positions[1]=this.positionY.toLowerCase()),self.positionX=positions[0],self.positionY=positions[1],this.positionX!="left"&&this.positionX!="right"&&(this.positionX=isNaN(parseInt(this.positionX))?"center":parseInt(this.positionX)),this.positionY!="top"&&this.positionY!="bottom"&&(this.positionY=isNaN(parseInt(this.positionY))?"center":parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=$("<div />").prependTo(this.mirrorContainer);slider=this.$element.find(">.parallax-slider");sliderExisted=!1;slider.length==0?this.$slider=$("<img />").prependTo(this.$mirror):(this.$slider=slider.prependTo(this.$mirror),sliderExisted=!0);this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"});this.$slider.addClass("parallax-slider").one("load",function(){self.naturalHeight&&self.naturalWidth||(self.naturalHeight=this.naturalHeight||this.height||1,self.naturalWidth=this.naturalWidth||this.width||1);self.aspectRatio=self.naturalWidth/self.naturalHeight;Parallax.isSetup||Parallax.setup();Parallax.sliders.push(self);Parallax.isFresh=!1;Parallax.requestRender()});sliderExisted||(this.$slider[0].src=this.imageSrc);(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||slider.length>0)&&this.$slider.trigger("load")}function Plugin(option){return this.each(function(){var $this=$(this),options=typeof option=="object"&&option;this==window||this==document||$this.is("body")?Parallax.configure(options):$this.data("px.parallax")?typeof option=="object"&&$.extend($this.data("px.parallax"),options):(options=$.extend({},$this.data(),options),$this.data("px.parallax",new Parallax(this,options)));typeof option=="string"&&(option=="destroy"?Parallax.destroy(this):Parallax[option]())})}(function(){for(var lastTime=0,vendors=["ms","moz","webkit","o"],x=0;x<vendors.length&&!window.requestAnimationFrame;++x)window.requestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(callback){var currTime=(new Date).getTime(),timeToCall=Math.max(0,16-(currTime-lastTime)),id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);return lastTime=currTime+timeToCall,id});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(id){clearTimeout(id)})})();$.extend(Parallax.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,mirrorContainer:"body",refresh:function(){this.boxWidth=this.$element.outerWidth();this.boxHeight=this.$element.outerHeight()+this.bleed*2;this.boxOffsetTop=this.$element.offset().top-this.bleed;this.boxOffsetLeft=this.$element.offset().left;this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var winHeight=Parallax.winHeight,docHeight=Parallax.docHeight,maxOffset=Math.min(this.boxOffsetTop,docHeight-winHeight),minOffset=Math.max(this.boxOffsetTop+this.boxHeight-winHeight,0),imageHeightMin=this.boxHeight+(maxOffset-minOffset)*(1-this.speed)|0,imageOffsetMin=(this.boxOffsetTop-maxOffset)*(1-this.speed)|0,margin;imageHeightMin*this.aspectRatio>=this.boxWidth?(this.imageWidth=imageHeightMin*this.aspectRatio|0,this.imageHeight=imageHeightMin,this.offsetBaseTop=imageOffsetMin,margin=this.imageWidth-this.boxWidth,this.offsetLeft=this.positionX=="left"?0:this.positionX=="right"?-margin:isNaN(this.positionX)?-margin/2|0:Math.max(this.positionX,-margin)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,margin=this.imageHeight-imageHeightMin,this.offsetBaseTop=this.positionY=="top"?imageOffsetMin:this.positionY=="bottom"?imageOffsetMin-margin:isNaN(this.positionY)?imageOffsetMin-margin/2|0:imageOffsetMin+Math.max(this.positionY,-margin))},render:function(){var scrollTop=Parallax.scrollTop,scrollLeft=Parallax.scrollLeft,overScroll=this.overScrollFix?Parallax.overScroll:0,scrollBottom=scrollTop+Parallax.winHeight;this.boxOffsetBottom>scrollTop&&this.boxOffsetTop<=scrollBottom?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-scrollTop,this.mirrorLeft=this.boxOffsetLeft-scrollLeft,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden";this.$mirror.css({transform:"translate3d("+this.mirrorLeft+"px, "+(this.mirrorTop-overScroll)+"px, 0px)",visibility:this.visibility,height:this.boxHeight,width:this.boxWidth});this.$slider.css({transform:"translate3d("+this.offsetLeft+"px, "+this.offsetTop+"px, 0px)",position:"absolute",height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}});$.extend(Parallax,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1073741824,docWidth:1073741824,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){function frameLoop(){if(lastPosition==window.pageYOffset)return window.requestAnimationFrame(frameLoop),!1;lastPosition=window.pageYOffset;self.render();window.requestAnimationFrame(frameLoop)}var lastPosition;if(!this.isReady){var self=this,$doc=$(document),$win=$(window),loadDimensions=function(){Parallax.winHeight=$win.height();Parallax.winWidth=$win.width();Parallax.docHeight=$doc.height();Parallax.docWidth=$doc.width()},loadScrollPosition=function(){var winScrollTop=$win.scrollTop(),scrollTopMax=Parallax.docHeight-Parallax.winHeight,scrollLeftMax=Parallax.docWidth-Parallax.winWidth;Parallax.scrollTop=Math.max(0,Math.min(scrollTopMax,winScrollTop));Parallax.scrollLeft=Math.max(0,Math.min(scrollLeftMax,$win.scrollLeft()));Parallax.overScroll=Math.max(winScrollTop-scrollTopMax,Math.min(winScrollTop,0))};$win.on("resize.px.parallax load.px.parallax",function(){loadDimensions();self.refresh();Parallax.isFresh=!1;Parallax.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){loadScrollPosition();Parallax.requestRender()});loadDimensions();loadScrollPosition();this.isReady=!0;lastPosition=-1;frameLoop()}},configure:function(options){typeof options=="object"&&(delete options.refresh,delete options.render,$.extend(this.prototype,options))},refresh:function(){$.each(this.sliders,function(){this.refresh()});this.isFresh=!0},render:function(){this.isFresh||this.refresh();$.each(this.sliders,function(){this.render()})},requestRender:function(){var self=this;self.render();self.isBusy=!1},destroy:function(el){var i,parallaxElement=$(el).data("px.parallax");for(parallaxElement.$mirror.remove(),i=0;i<this.sliders.length;i+=1)this.sliders[i]==parallaxElement&&this.sliders.splice(i,1);$(el).data("px.parallax",!1);this.sliders.length===0&&($(window).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,Parallax.isSetup=!1)}});var old=$.fn.parallax;$.fn.parallax=Plugin;$.fn.parallax.Constructor=Parallax;$.fn.parallax.noConflict=function(){return $.fn.parallax=old,this};$(function(){$('[data-parallax="scroll"]').parallax()})})(jQuery,window,document);
$(document).ready(function(){var focusSection;$(".hamburger").click(function(){$(this).toggleClass("is-active")});$("#btnSafeSubmit").one("click",function(){$("#btnSafeSubmit").prop("disabled","disabled");$("#btnSafeSubmit span").text("Please wait..");$("#frmSafeSubmit").submit()});$(document).on("click",'a[href^="#"]',function(event){var opened,position;event.preventDefault();opened=$(".navbar-collapse").hasClass("show");opened===!0&&$(".navbar-toggler").click();position=$($.attr(this,"href")).offset().top;$.attr(this,"data-offset")&&(position=position-$.attr(this,"data-offset"));$("html, body").animate({scrollTop:position},500)});ScrollReveal({duration:1e3,reset:!0});var fadeInOnceElements=document.querySelectorAll(".fx-fade-in-once"),fadeInSlowElements=document.querySelectorAll(".fx-fade-in-slow"),scaleUpElements=document.querySelectorAll(".fx-scale-up"),slideLeftElements=document.querySelectorAll(".fx-slide-left"),slideRightElements=document.querySelectorAll(".fx-slide-right"),slideUpElements=document.querySelectorAll(".fx-slide-up");ScrollReveal().reveal(fadeInOnceElements,{delay:0,duration:1500,interval:160,reset:!1});ScrollReveal().reveal(fadeInSlowElements,{delay:0,duration:1500,interval:320});ScrollReveal().reveal(scaleUpElements,{scale:.85});ScrollReveal().reveal(slideLeftElements,{delay:100,distance:"75%",duration:1500,interval:160,opacity:0,origin:"left"});ScrollReveal().reveal(slideRightElements,{delay:100,distance:"75%",duration:1500,interval:160,opacity:0,origin:"right"});ScrollReveal().reveal(slideUpElements,{distance:"75%",duration:1500,opacity:0,origin:"bottom",reset:!1});focusSection=$(".focus-section");focusSection.length&&$("html, body").animate({scrollTop:$(".focus-section").offset().top},500)});
