whoami7 - Manager
:
/
home
/
dataiclx
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
libs
/
Upload File:
files >> /home/dataiclx/public_html/wp-content/themes/woodmart/js/libs/flickity-all.min.js
!function(a,b){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("jquery")):a.jQueryBridget=b(a,a.jQuery)}(window,function(a,b){"use strict";function c(c,f,h){function i(a,b,d){var e,f="$()."+c+'("'+b+'")';return a.each(function(a,i){var j=h.data(i,c);if(!j)return void g(c+" not initialized. Cannot call methods, i.e. "+f);var k=j[b];if(!k||"_"==b.charAt(0))return void g(f+" is not a valid method");var l=k.apply(j,d);e=void 0===e?l:e}),void 0!==e?e:a}function j(a,b){a.each(function(a,d){var e=h.data(d,c);e?(e.option(b),e._init()):(e=new f(d,b),h.data(d,c,e))})}(h=h||b||a.jQuery)&&(f.prototype.option||(f.prototype.option=function(a){h.isPlainObject(a)&&(this.options=h.extend(!0,this.options,a))}),h.fn[c]=function(a){if("string"==typeof a){return i(this,a,e.call(arguments,1))}return j(this,a),this},d(h))}function d(a){!a||a&&a.bridget||(a.bridget=c)}var e=Array.prototype.slice,f=a.console,g=void 0===f?function(){}:function(a){f.error(a)};return d(b||a.jQuery),c}),function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b()}("undefined"!=typeof window?window:this,function(){function a(){}var b=a.prototype;return b.on=function(a,b){if(a&&b){var c=this._events=this._events||{},d=c[a]=c[a]||[];return-1==d.indexOf(b)&&d.push(b),this}},b.once=function(a,b){if(a&&b){this.on(a,b);var c=this._onceEvents=this._onceEvents||{};return(c[a]=c[a]||{})[b]=!0,this}},b.off=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=c.indexOf(b);return-1!=d&&c.splice(d,1),this}},b.emitEvent=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){c=c.slice(0),b=b||[];for(var d=this._onceEvents&&this._onceEvents[a],e=0;e<c.length;e++){var f=c[e];d&&d[f]&&(this.off(a,f),delete d[f]),f.apply(this,b)}return this}},b.allOff=function(){delete this._events,delete this._onceEvents},a}),function(a,b){"function"==typeof define&&define.amd?define("get-size/get-size",b):"object"==typeof module&&module.exports?module.exports=b():a.getSize=b()}(window,function(){"use strict";function a(a){var b=parseFloat(a);return-1==a.indexOf("%")&&!isNaN(b)&&b}function b(){}function c(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0;b<j;b++){a[i[b]]=0}return a}function d(a){var b=getComputedStyle(a);return b||h("Style returned "+b+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),b}function e(){if(!k){k=!0;var b=document.createElement("div");b.style.width="200px",b.style.padding="1px 2px 3px 4px",b.style.borderStyle="solid",b.style.borderWidth="1px 2px 3px 4px",b.style.boxSizing="border-box";var c=document.body||document.documentElement;c.appendChild(b);var e=d(b);g=200==Math.round(a(e.width)),f.isBoxSizeOuter=g,c.removeChild(b)}}function f(b){if(e(),"string"==typeof b&&(b=document.querySelector(b)),b&&"object"==typeof b&&b.nodeType){var f=d(b);if("none"==f.display)return c();var h={};h.width=b.offsetWidth,h.height=b.offsetHeight;for(var k=h.isBorderBox="border-box"==f.boxSizing,l=0;l<j;l++){var m=i[l],n=f[m],o=parseFloat(n);h[m]=isNaN(o)?0:o}var p=h.paddingLeft+h.paddingRight,q=h.paddingTop+h.paddingBottom,r=h.marginLeft+h.marginRight,s=h.marginTop+h.marginBottom,t=h.borderLeftWidth+h.borderRightWidth,u=h.borderTopWidth+h.borderBottomWidth,v=k&&g,w=a(f.width);!1!==w&&(h.width=w+(v?0:p+t));var x=a(f.height);return!1!==x&&(h.height=x+(v?0:q+u)),h.innerWidth=h.width-(p+t),h.innerHeight=h.height-(q+u),h.outerWidth=h.width+r,h.outerHeight=h.height+s,h}}var g,h="undefined"==typeof console?b:function(a){console.error(a)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],j=i.length,k=!1;return f}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",b):"object"==typeof module&&module.exports?module.exports=b():a.matchesSelector=b()}(window,function(){"use strict";var a=function(){var a=window.Element.prototype;if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0;c<b.length;c++){var d=b[c],e=d+"MatchesSelector";if(a[e])return e}}();return function(b,c){return b[a](c)}}),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.matchesSelector)}(window,function(a,b){var c={};c.extend=function(a,b){for(var c in b)a[c]=b[c];return a},c.modulo=function(a,b){return(a%b+b)%b};var d=Array.prototype.slice;c.makeArray=function(a){return Array.isArray(a)?a:null===a||void 0===a?[]:"object"==typeof a&&"number"==typeof a.length?d.call(a):[a]},c.removeFrom=function(a,b){var c=a.indexOf(b);-1!=c&&a.splice(c,1)},c.getParent=function(a,c){for(;a.parentNode&&a!=document.body;)if(a=a.parentNode,b(a,c))return a},c.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},c.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},c.filterFindElements=function(a,d){a=c.makeArray(a);var e=[],f=function(a){return"object"==typeof HTMLElement?a instanceof HTMLElement:a&&"object"==typeof a&&null!==a&&1===a.nodeType&&"string"==typeof a.nodeName};return a.forEach(function(a){if(f(a)){if(!d)return void e.push(a);b(a,d)&&e.push(a);for(var c=a.querySelectorAll(d),g=0;g<c.length;g++)e.push(c[g])}}),e},c.debounceMethod=function(a,b,c){c=c||100;var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c)}},c.docReady=function(a){var b=document.readyState;"complete"==b||"interactive"==b?setTimeout(a):document.addEventListener("DOMContentLoaded",a)},c.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var e=a.console;return c.htmlInit=function(b,d){c.docReady(function(){var f=c.toDashed(d),g="data-"+f,h=document.querySelectorAll("["+g+"]"),i=document.querySelectorAll(".js-"+f),j=c.makeArray(h).concat(c.makeArray(i)),k=g+"-options",l=a.jQuery;j.forEach(function(a){var c,f=a.getAttribute(g)||a.getAttribute(k);try{c=f&&JSON.parse(f)}catch(i){return void(e&&e.error("Error parsing "+g+" on "+a.className+": "+i))}var h=new b(a,c);l&&l.data(a,d,h)})})},c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("get-size")):(a.Flickity=a.Flickity||{},a.Flickity.Cell=b(a,a.getSize))}(window,function(a,b){function c(a,b){this.element=a,this.parent=b,this.create()}var d=c.prototype;return d.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},d.destroy=function(){this.unselect(),this.element.style.position="";var a=this.parent.originSide;this.element.style[a]=""},d.getSize=function(){this.size=b(this.element)},d.setPosition=function(a){this.x=a,this.updateTarget(),this.renderPosition(a)},d.updateTarget=d.setDefaultTarget=function(){var a="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[a]+this.size.width*this.parent.cellAlign},d.renderPosition=function(a){var b=this.parent.originSide;this.element.style[b]=this.parent.getPositionValue(a)},d.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},d.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},d.wrapShift=function(a){this.shift=a,this.renderPosition(this.x+this.parent.slideableWidth*a)},d.remove=function(){this.element.parentNode.removeChild(this.element)},c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/slide",b):"object"==typeof module&&module.exports?module.exports=b():(a.Flickity=a.Flickity||{},a.Flickity.Slide=b())}(window,function(){"use strict";function a(a){this.parent=a,this.isOriginLeft="left"==a.originSide,this.cells=[],this.outerWidth=0,this.height=0}var b=a.prototype;return b.addCell=function(a){if(this.cells.push(a),this.outerWidth+=a.size.outerWidth,this.height=Math.max(a.size.outerHeight,this.height),1==this.cells.length){this.x=a.x;var b=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=a.size[b]}},b.updateTarget=function(){var a=this.isOriginLeft?"marginRight":"marginLeft",b=this.getLastCell(),c=b?b.size[a]:0,d=this.outerWidth-(this.firstMargin+c);this.target=this.x+this.firstMargin+d*this.parent.cellAlign},b.getLastCell=function(){return this.cells[this.cells.length-1]},b.select=function(){this.cells.forEach(function(a){a.select()})},b.unselect=function(){this.cells.forEach(function(a){a.unselect()})},b.getCellElements=function(){return this.cells.map(function(a){return a.element})},a}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("fizzy-ui-utils")):(a.Flickity=a.Flickity||{},a.Flickity.animatePrototype=b(a,a.fizzyUIUtils))}(window,function(a,b){var c={};return c.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},c.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var a=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(a),this.isAnimating){var b=this;requestAnimationFrame(function(){b.animate()})}},c.positionSlider=function(){var a=this.x;this.options.wrapAround&&this.cells.length>1&&(a=b.modulo(a,this.slideableWidth),a-=this.slideableWidth,this.shiftWrapCells(a)),this.setTranslateX(a,this.isAnimating),this.dispatchScrollEvent()},c.setTranslateX=function(a,b){a+=this.cursorPosition,a=this.options.rightToLeft?-a:a;var c=this.getPositionValue(a);this.slider.style.transform=b?"translate3d("+c+",0,0)":"translateX("+c+")"},c.dispatchScrollEvent=function(){var a=this.slides[0];if(a){var b=-this.x-a.target,c=b/this.slidesWidth;this.dispatchEvent("scroll",null,[c,b])}},c.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},c.getPositionValue=function(a){return this.options.percentPosition?.01*Math.round(a/this.size.innerWidth*1e4)+"%":Math.round(a)+"px"},c.settle=function(a){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*a)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},c.shiftWrapCells=function(a){var b=this.cursorPosition+a;this._shiftCells(this.beforeShiftCells,b,-1);var c=this.size.innerWidth-(a+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,c,1)},c._shiftCells=function(a,b,c){for(var d=0;d<a.length;d++){var e=a[d],f=b>0?c:0;e.wrapShift(f),b-=e.size.outerWidth}},c._unshiftCells=function(a){if(a&&a.length)for(var b=0;b<a.length;b++)a[b].wrapShift(0)},c.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},c.applyForce=function(a){this.velocity+=a},c.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},c.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},c.applyDragForce=function(){if(this.isDraggable&&this.isPointerDown){var a=this.dragX-this.x,b=a-this.velocity;this.applyForce(b)}},c.applySelectedAttraction=function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var a=-1*this.selectedSlide.target-this.x,b=a*this.options.selectedAttraction;this.applyForce(b)}},c}),function(a,b){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)});else if("object"==typeof module&&module.exports)module.exports=b(a,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var c=a.Flickity;a.Flickity=b(a,a.EvEmitter,a.getSize,a.fizzyUIUtils,c.Cell,c.Slide,c.animatePrototype)}}(window,function(a,b,c,d,e,f,g){function h(a,b){for(a=d.makeArray(a);a.length;)b.appendChild(a.shift())}function i(a,b){var c=d.getQueryElement(a);if(!c)return void(l&&l.error("Bad element for Flickity: "+(c||a)));if(this.element=c,this.element.flickityGUID){var e=n[this.element.flickityGUID];return e.option(b),e}j&&(this.$element=j(this.element)),this.options=d.extend({},this.constructor.defaults),this.option(b),this._create()}var j=a.jQuery,k=a.getComputedStyle,l=a.console,m=0,n={};i.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},i.createMethods=[];var o=i.prototype;d.extend(o,b.prototype),o._create=function(){var b=this.guid=++m;this.element.flickityGUID=b,n[b]=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)&&a.addEventListener("resize",this);for(var c in this.options.on){var d=this.options.on[c];this.on(c,d)}i.createMethods.forEach(function(a){this[a]()},this),this.options.watchCSS?this.watchCSS():this.activate()},o.option=function(a){d.extend(this.options,a)},o.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();h(this._filterFindCellElements(this.element.children),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")}},o._createSlider=function(){var a=document.createElement("div");a.className="flickity-slider",a.style[this.originSide]=0,this.slider=a},o._filterFindCellElements=function(a){return d.filterFindElements(a,this.options.cellSelector)},o.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},o._makeCells=function(a){return this._filterFindCellElements(a).map(function(a){return new e(a,this)},this)},o.getLastCell=function(){return this.cells[this.cells.length-1]},o.getLastSlide=function(){return this.slides[this.slides.length-1]},o.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},o._positionCells=function(a){a=a||0,this.maxCellHeight=a?this.maxCellHeight||0:0;var b=0;if(a>0){var c=this.cells[a-1];b=c.x+c.size.outerWidth}for(var d=this.cells.length,e=a;e<d;e++){var f=this.cells[e];f.setPosition(b),b+=f.size.outerWidth,this.maxCellHeight=Math.max(f.size.outerHeight,this.maxCellHeight)}this.slideableWidth=b,this.updateSlides(),this._containSlides(),this.slidesWidth=d?this.getLastSlide().target-this.slides[0].target:0},o._sizeCells=function(a){a.forEach(function(a){a.getSize()})},o.updateSlides=function(){if(this.slides=[],this.cells.length){var a=new f(this);this.slides.push(a);var b="left"==this.originSide,c=b?"marginRight":"marginLeft",d=this._getCanCellFit();this.cells.forEach(function(b,e){if(!a.cells.length)return void a.addCell(b);var g=a.outerWidth-a.firstMargin+(b.size.outerWidth-b.size[c]);d.call(this,e,g)?a.addCell(b):(a.updateTarget(),a=new f(this),this.slides.push(a),a.addCell(b))},this),a.updateTarget(),this.updateSelectedSlide()}},o._getCanCellFit=function(){var a=this.options.groupCells;if(!a)return function(){return!1};if("number"==typeof a){var b=parseInt(a,10);return function(a){return a%b!=0}}var c="string"==typeof a&&a.match(/^(\d+)%$/),d=c?parseInt(c[1],10)/100:1;return function(a,b){return b<=(this.size.innerWidth+1)*d}},o._init=o.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},o.getSize=function(){this.size=c(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var p={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return o.setCellAlign=function(){var a=p[this.options.cellAlign];this.cellAlign=a?a[this.originSide]:this.options.cellAlign},o.setGallerySize=function(){if(this.options.setGallerySize){var a=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=a+"px"}},o._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var a=this.cursorPosition,b=this.cells.length-1;this.beforeShiftCells=this._getGapCells(a,b,-1),a=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(a,0,1)}},o._getGapCells=function(a,b,c){for(var d=[];a>0;){var e=this.cells[b];if(!e)break;d.push(e),b+=c,a-=e.size.outerWidth}return d},o._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var a=this.options.rightToLeft,b=a?"marginRight":"marginLeft",c=a?"marginLeft":"marginRight",d=this.slideableWidth-this.getLastCell().size[c],e=d<this.size.innerWidth,f=this.cursorPosition+this.cells[0].size[b],g=d-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(a){e?a.target=d*this.cellAlign:(a.target=Math.max(a.target,f),a.target=Math.min(a.target,g))},this)}},o.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),j&&this.$element){a+=this.options.namespaceJQueryEvents?".flickity":"";var e=a;if(b){var f=j.Event(b);f.type=a,e=f}this.$element.trigger(e,c)}},o.select=function(a,b,c){if(this.isActive&&(a=parseInt(a,10),this._wrapSelect(a),(this.options.wrapAround||b)&&(a=d.modulo(a,this.slides.length)),this.slides[a])){var e=this.selectedIndex;this.selectedIndex=a,this.updateSelectedSlide(),c?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[a]),a!=e&&this.dispatchEvent("change",null,[a]),this.dispatchEvent("cellSelect")}},o._wrapSelect=function(a){var b=this.slides.length;if(!(this.options.wrapAround&&b>1))return a;var c=d.modulo(a,b),e=Math.abs(c-this.selectedIndex),f=Math.abs(c+b-this.selectedIndex),g=Math.abs(c-b-this.selectedIndex);!this.isDragSelect&&f<e?a+=b:!this.isDragSelect&&g<e&&(a-=b),a<0?this.x-=this.slideableWidth:a>=b&&(this.x+=this.slideableWidth)},o.previous=function(a,b){this.select(this.selectedIndex-1,a,b)},o.next=function(a,b){this.select(this.selectedIndex+1,a,b)},o.updateSelectedSlide=function(){var a=this.slides[this.selectedIndex];a&&(this.unselectSelectedSlide(),this.selectedSlide=a,a.select(),this.selectedCells=a.cells,this.selectedElements=a.getCellElements(),this.selectedCell=a.cells[0],this.selectedElement=this.selectedElements[0])},o.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},o.selectInitialIndex=function(){var a=this.options.initialIndex;if(this.isInitActivated)return void this.select(this.selectedIndex,!1,!0);if(a&&"string"==typeof a){if(this.queryCell(a))return void this.selectCell(a,!1,!0)}var b=0;a&&this.slides[a]&&(b=a),this.select(b,!1,!0)},o.selectCell=function(a,b,c){var d=this.queryCell(a);if(d){var e=this.getCellSlideIndex(d);this.select(e,b,c)}},o.getCellSlideIndex=function(a){for(var b=0;b<this.slides.length;b++){if(-1!=this.slides[b].cells.indexOf(a))return b}},o.getCell=function(a){for(var b=0;b<this.cells.length;b++){var c=this.cells[b];if(c.element==a)return c}},o.getCells=function(a){a=d.makeArray(a);var b=[];return a.forEach(function(a){var c=this.getCell(a);c&&b.push(c)},this),b},o.getCellElements=function(){return this.cells.map(function(a){return a.element})},o.getParentCell=function(a){var b=this.getCell(a);return b||(a=d.getParent(a,".flickity-slider > *"),this.getCell(a))},o.getAdjacentCellElements=function(a,b){if(!a)return this.selectedSlide.getCellElements();b=void 0===b?this.selectedIndex:b;var c=this.slides.length;if(1+2*a>=c)return this.getCellElements();for(var e=[],f=b-a;f<=b+a;f++){var g=this.options.wrapAround?d.modulo(f,c):f,h=this.slides[g];h&&(e=e.concat(h.getCellElements()))}return e},o.queryCell=function(a){if("number"==typeof a)return this.cells[a];if("string"==typeof a){if(a.match(/^[#\.]?[\d\/]/))return;a=this.element.querySelector(a)}return this.getCell(a)},o.uiChange=function(){this.emitEvent("uiChange")},o.childUIPointerDown=function(a){"touchstart"!=a.type&&a.preventDefault(),this.focus()},o.onresize=function(){this.watchCSS(),this.resize()},d.debounceMethod(i,"onresize",150),o.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=d.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var a=this.selectedElements&&this.selectedElements[0];this.selectCell(a,!1,!0)}},o.watchCSS=function(){this.options.watchCSS&&(-1!=k(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},o.onkeydown=function(a){var b=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!b){var c=i.keyboardHandlers[a.keyCode];c&&c.call(this)}},i.keyboardHandlers={37:function(){var a=this.options.rightToLeft?"next":"previous";this.uiChange(),this[a]()},39:function(){var a=this.options.rightToLeft?"previous":"next";this.uiChange(),this[a]()}},o.focus=function(){var b=a.pageYOffset;this.element.focus({preventScroll:!0}),a.pageYOffset!=b&&a.scrollTo(a.pageXOffset,b)},o.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(a){a.destroy()}),this.element.removeChild(this.viewport),h(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},o.destroy=function(){this.deactivate(),a.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),j&&this.$element&&j.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete n[this.guid]},d.extend(o,g),i.data=function(a){a=d.getQueryElement(a);var b=a&&a.flickityGUID;return b&&n[b]},d.htmlInit(i,"flickity"),j&&j.bridget&&j.bridget("flickity",i),i.setJQuery=function(a){j=a},i.Cell=e,i.Slide=f,i}),function(a,b){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter")):a.Unipointer=b(a,a.EvEmitter)}(window,function(a,b){function c(){}function d(){}var e=d.prototype=Object.create(b.prototype);e.bindStartEvent=function(a){this._bindStartEvent(a,!0)},e.unbindStartEvent=function(a){this._bindStartEvent(a,!1)},e._bindStartEvent=function(b,c){c=void 0===c||c;var d=c?"addEventListener":"removeEventListener",e="mousedown";a.PointerEvent?e="pointerdown":"ontouchstart"in a&&(e="touchstart"),b[d](e,this)},e.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},e.getTouch=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier==this.pointerIdentifier)return c}},e.onmousedown=function(a){var b=a.button;b&&0!==b&&1!==b||this._pointerDown(a,a)},e.ontouchstart=function(a){this._pointerDown(a,a.changedTouches[0])},e.onpointerdown=function(a){this._pointerDown(a,a)},e._pointerDown=function(a,b){a.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==b.pointerId?b.pointerId:b.identifier,this.pointerDown(a,b))},e.pointerDown=function(a,b){this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,b])};var f={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return e._bindPostStartEvents=function(b){if(b){var c=f[b.type];c.forEach(function(b){a.addEventListener(b,this)},this),this._boundPointerEvents=c}},e._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(b){a.removeEventListener(b,this)},this),delete this._boundPointerEvents)},e.onmousemove=function(a){this._pointerMove(a,a)},e.onpointermove=function(a){a.pointerId==this.pointerIdentifier&&this._pointerMove(a,a)},e.ontouchmove=function(a){var b=this.getTouch(a.changedTouches);b&&this._pointerMove(a,b)},e._pointerMove=function(a,b){this.pointerMove(a,b)},e.pointerMove=function(a,b){this.emitEvent("pointerMove",[a,b])},e.onmouseup=function(a){this._pointerUp(a,a)},e.onpointerup=function(a){a.pointerId==this.pointerIdentifier&&this._pointerUp(a,a)},e.ontouchend=function(a){var b=this.getTouch(a.changedTouches);b&&this._pointerUp(a,b)},e._pointerUp=function(a,b){this._pointerDone(),this.pointerUp(a,b)},e.pointerUp=function(a,b){this.emitEvent("pointerUp",[a,b])},e._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},e._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},e.pointerDone=c,e.onpointercancel=function(a){a.pointerId==this.pointerIdentifier&&this._pointerCancel(a,a)},e.ontouchcancel=function(a){var b=this.getTouch(a.changedTouches);b&&this._pointerCancel(a,b)},e._pointerCancel=function(a,b){this._pointerDone(),this.pointerCancel(a,b)},e.pointerCancel=function(a,b){this.emitEvent("pointerCancel",[a,b])},d.getPointerPoint=function(a){return{x:a.pageX,y:a.pageY}},d}),function(a,b){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("unipointer")):a.Unidragger=b(a,a.Unipointer)}(window,function(a,b){function c(){}var d=c.prototype=Object.create(b.prototype);d.bindHandles=function(){this._bindHandles(!0)},d.unbindHandles=function(){this._bindHandles(!1)},d._bindHandles=function(b){b=void 0===b||b;for(var c=b?"addEventListener":"removeEventListener",d=b?this._touchActionValue:"",e=0;e<this.handles.length;e++){var f=this.handles[e];this._bindStartEvent(f,b),f[c]("click",this),a.PointerEvent&&(f.style.touchAction=d)}},d._touchActionValue="none",d.pointerDown=function(a,b){this.okayPointerDown(a)&&(this.pointerDownPointer=b,a.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,b]))};var e={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},f={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return d.okayPointerDown=function(a){var b=e[a.target.nodeName],c=f[a.target.type],d=!b||c;return d||this._pointerReset(),d},d.pointerDownBlur=function(){var a=document.activeElement;a&&a.blur&&a!=document.body&&a.blur()},d.pointerMove=function(a,b){var c=this._dragPointerMove(a,b);this.emitEvent("pointerMove",[a,b,c]),this._dragMove(a,b,c)},d._dragPointerMove=function(a,b){var c={x:b.pageX-this.pointerDownPointer.pageX,y:b.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(c)&&this._dragStart(a,b),c},d.hasDragStarted=function(a){return Math.abs(a.x)>3||Math.abs(a.y)>3},d.pointerUp=function(a,b){this.emitEvent("pointerUp",[a,b]),this._dragPointerUp(a,b)},d._dragPointerUp=function(a,b){this.isDragging?this._dragEnd(a,b):this._staticClick(a,b)},d._dragStart=function(a,b){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(a,b)},d.dragStart=function(a,b){this.emitEvent("dragStart",[a,b])},d._dragMove=function(a,b,c){this.isDragging&&this.dragMove(a,b,c)},d.dragMove=function(a,b,c){a.preventDefault(),this.emitEvent("dragMove",[a,b,c])},d._dragEnd=function(a,b){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(a,b)},d.dragEnd=function(a,b){this.emitEvent("dragEnd",[a,b])},d.onclick=function(a){this.isPreventingClicks&&a.preventDefault()},d._staticClick=function(a,b){this.isIgnoringMouseUp&&"mouseup"==a.type||(this.staticClick(a,b),"mouseup"!=a.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},d.staticClick=function(a,b){this.emitEvent("staticClick",[a,b])},c.getPointerPoint=b.getPointerPoint,c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):a.Flickity=b(a,a.Flickity,a.Unidragger,a.fizzyUIUtils)}(window,function(a,b,c,d){function e(){return{x:a.pageXOffset,y:a.pageYOffset}}d.extend(b.defaults,{draggable:">1",dragThreshold:3}),b.createMethods.push("_createDrag");var f=b.prototype;d.extend(f,c.prototype),f._touchActionValue="pan-y";var g="createTouch"in document,h=!1;f._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),g&&!h&&(a.addEventListener("touchmove",function(){}),h=!0)},f.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},f.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},f.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},f.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},f.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},f._uiChangeDrag=function(){delete this.isFreeScrolling},f.pointerDown=function(b,c){if(!this.isDraggable)return void this._pointerDownDefault(b,c);this.okayPointerDown(b)&&(this._pointerDownPreventDefault(b),this.pointerDownFocus(b),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=e(),a.addEventListener("scroll",this),this._pointerDownDefault(b,c))},f._pointerDownDefault=function(a,b){this.pointerDownPointer={pageX:b.pageX,pageY:b.pageY},this._bindPostStartEvents(a),this.dispatchEvent("pointerDown",a,[b])};var i={INPUT:!0,TEXTAREA:!0,SELECT:!0};return f.pointerDownFocus=function(a){i[a.target.nodeName]||this.focus()},f._pointerDownPreventDefault=function(a){var b="touchstart"==a.type,c="touch"==a.pointerType,d=i[a.target.nodeName];b||c||d||a.preventDefault()},f.hasDragStarted=function(a){return Math.abs(a.x)>this.options.dragThreshold},f.pointerUp=function(a,b){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",a,[b]),this._dragPointerUp(a,b)},f.pointerDone=function(){a.removeEventListener("scroll",this),delete this.pointerDownScroll},f.dragStart=function(b,c){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),a.removeEventListener("scroll",this),this.dispatchEvent("dragStart",b,[c]))},f.pointerMove=function(a,b){var c=this._dragPointerMove(a,b);this.dispatchEvent("pointerMove",a,[b,c]),this._dragMove(a,b,c)},f.dragMove=function(a,b,c){if(this.isDraggable){a.preventDefault(),this.previousDragX=this.dragX;var d=this.options.rightToLeft?-1:1 ;this.options.wrapAround&&(c.x=c.x%this.slideableWidth);var e=this.dragStartPosition+c.x*d;if(!this.options.wrapAround&&this.slides.length){var f=Math.max(-this.slides[0].target,this.dragStartPosition);e=e>f?.5*(e+f):e;var g=Math.min(-this.getLastSlide().target,this.dragStartPosition);e=e<g?.5*(e+g):e}this.dragX=e,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",a,[b,c])}},f.dragEnd=function(a,b){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var c=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var d=this.getRestingPosition();this.isFreeScrolling=-d>this.slides[0].target&&-d<this.getLastSlide().target}else this.options.freeScroll||c!=this.selectedIndex||(c+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(c),delete this.isDragSelect,this.dispatchEvent("dragEnd",a,[b])}},f.dragEndRestingSelect=function(){var a=this.getRestingPosition(),b=Math.abs(this.getSlideDistance(-a,this.selectedIndex)),c=this._getClosestResting(a,b,1),d=this._getClosestResting(a,b,-1);return c.distance<d.distance?c.index:d.index},f._getClosestResting=function(a,b,c){for(var d=this.selectedIndex,e=1/0,f=this.options.contain&&!this.options.wrapAround?function(a,b){return a<=b}:function(a,b){return a<b};f(b,e)&&(d+=c,e=b,null!==(b=this.getSlideDistance(-a,d)));)b=Math.abs(b);return{distance:e,index:d-c}},f.getSlideDistance=function(a,b){var c=this.slides.length,e=this.options.wrapAround&&c>1,f=e?d.modulo(b,c):b,g=this.slides[f];if(!g)return null;var h=e?this.slideableWidth*Math.floor(b/c):0;return a-(g.target+h)},f.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var a=this.getSlideDistance(-this.dragX,this.selectedIndex),b=this.previousDragX-this.dragX;return a>0&&b>0?1:a<0&&b<0?-1:0},f.staticClick=function(a,b){var c=this.getParentCell(a.target),d=c&&c.element,e=c&&this.cells.indexOf(c);this.dispatchEvent("staticClick",a,[b,d,e])},f.onscroll=function(){var a=e(),b=this.pointerDownScroll.x-a.x,c=this.pointerDownScroll.y-a.y;(Math.abs(b)>3||Math.abs(c)>3)&&this._pointerDone()},b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):b(a,a.Flickity,a.Unipointer,a.fizzyUIUtils)}(window,function(a,b,c,d){"use strict";function e(a,b){this.direction=a,this.parent=b,this._create()}function f(a){return"string"==typeof a?a:"M "+a.x0+",50 L "+a.x1+","+(a.y1+50)+" L "+a.x2+","+(a.y2+50)+" L "+a.x3+",50 L "+a.x2+","+(50-a.y2)+" L "+a.x1+","+(50-a.y1)+" Z"}var g="http://www.w3.org/2000/svg";e.prototype=Object.create(c.prototype),e.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var a=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==a;var b=this.element=document.createElement("button");b.className="flickity-button flickity-prev-next-button",b.className+=this.isPrevious?" previous":" next",b.setAttribute("type","button"),this.disable(),b.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var c=this.createSVG();b.appendChild(c),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},e.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},e.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},e.prototype.createSVG=function(){var a=document.createElementNS(g,"svg");a.setAttribute("class","flickity-button-icon"),a.setAttribute("viewBox","0 0 100 100");var b=document.createElementNS(g,"path"),c=f(this.parent.options.arrowShape);return b.setAttribute("d",c),b.setAttribute("class","arrow"),this.isLeft||b.setAttribute("transform","translate(100, 100) rotate(180) "),a.appendChild(b),a},e.prototype.handleEvent=d.handleEvent,e.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var a=this.isPrevious?"previous":"next";this.parent[a]()}},e.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},e.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},e.prototype.update=function(){var a=this.parent.slides;if(this.parent.options.wrapAround&&a.length>1)return void this.enable();var b=a.length?a.length-1:0,c=this.isPrevious?0:b;this[this.parent.selectedIndex==c?"disable":"enable"]()},e.prototype.destroy=function(){this.deactivate(),this.allOff()},d.extend(b.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),b.createMethods.push("_createPrevNextButtons");var h=b.prototype;return h._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new e(-1,this),this.nextButton=new e(1,this),this.on("activate",this.activatePrevNextButtons))},h.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},h.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},b.PrevNextButton=e,b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(c,d,e){return b(a,c,d,e)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):b(a,a.Flickity,a.Unipointer,a.fizzyUIUtils)}(window,function(a,b,c,d){function e(a){this.parent=a,this._create()}e.prototype=Object.create(c.prototype),e.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))},e.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},e.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},e.prototype.setDots=function(){var a=this.parent.slides.length-this.dots.length;a>0?this.addDots(a):a<0&&this.removeDots(-a)},e.prototype.addDots=function(a){for(var b=document.createDocumentFragment(),c=[],d=this.dots.length,e=d+a,f=d;f<e;f++){var g=document.createElement("li");g.className="dot",g.setAttribute("aria-label","Page dot "+(f+1)),b.appendChild(g),c.push(g)}this.holder.appendChild(b),this.dots=this.dots.concat(c)},e.prototype.removeDots=function(a){this.dots.splice(this.dots.length-a,a).forEach(function(a){this.holder.removeChild(a)},this)},e.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"))},e.prototype.onTap=e.prototype.onClick=function(a){var b=a.target;if("LI"==b.nodeName){this.parent.uiChange();var c=this.dots.indexOf(b);this.parent.select(c)}},e.prototype.destroy=function(){this.deactivate(),this.allOff()},b.PageDots=e,d.extend(b.defaults,{pageDots:!0}),b.createMethods.push("_createPageDots");var f=b.prototype;return f._createPageDots=function(){this.options.pageDots&&(this.pageDots=new e(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))},f.activatePageDots=function(){this.pageDots.activate()},f.updateSelectedPageDots=function(){this.pageDots.updateSelected()},f.updatePageDots=function(){this.pageDots.setDots()},f.deactivatePageDots=function(){this.pageDots.deactivate()},b.PageDots=e,b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(a,c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):b(a.EvEmitter,a.fizzyUIUtils,a.Flickity)}(window,function(a,b,c){function d(a){this.parent=a,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}d.prototype=Object.create(a.prototype),d.prototype.play=function(){if("playing"!=this.state){if(document.hidden)return void document.addEventListener("visibilitychange",this.onVisibilityPlay);this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},d.prototype.tick=function(){if("playing"==this.state){var a=this.parent.options.autoPlay;a="number"==typeof a?a:3e3;var b=this;this.clear(),this.timeout=setTimeout(function(){b.parent.next(!0),b.tick()},a)}},d.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},d.prototype.clear=function(){clearTimeout(this.timeout)},d.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},d.prototype.unpause=function(){"paused"==this.state&&this.play()},d.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},d.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},b.extend(c.defaults,{pauseAutoPlayOnHover:!0}),c.createMethods.push("_createPlayer");var e=c.prototype;return e._createPlayer=function(){this.player=new d(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},e.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},e.playPlayer=function(){this.player.play()},e.stopPlayer=function(){this.player.stop()},e.pausePlayer=function(){this.player.pause()},e.unpausePlayer=function(){this.player.unpause()},e.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},e.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},e.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},c.Player=d,c}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("fizzy-ui-utils")):b(a,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c){function d(a){var b=document.createDocumentFragment();return a.forEach(function(a){b.appendChild(a.element)}),b}var e=b.prototype;return e.insert=function(a,b){var c=this._makeCells(a);if(c&&c.length){var e=this.cells.length;b=void 0===b?e:b;var f=d(c),g=b==e;if(g)this.slider.appendChild(f);else{var h=this.cells[b].element;this.slider.insertBefore(f,h)}if(0===b)this.cells=c.concat(this.cells);else if(g)this.cells=this.cells.concat(c);else{var i=this.cells.splice(b,e-b);this.cells=this.cells.concat(c).concat(i)}this._sizeCells(c),this.cellChange(b,!0)}},e.append=function(a){this.insert(a,this.cells.length)},e.prepend=function(a){this.insert(a,0)},e.remove=function(a){var b=this.getCells(a);if(b&&b.length){var d=this.cells.length-1;b.forEach(function(a){a.remove();var b=this.cells.indexOf(a);d=Math.min(b,d),c.removeFrom(this.cells,a)},this),this.cellChange(d,!0)}},e.cellSizeChange=function(a){var b=this.getCell(a);if(b){b.getSize();var c=this.cells.indexOf(b);this.cellChange(c)}},e.cellChange=function(a,b){var c=this.selectedElement;this._positionCells(a),this._getWrapShiftCells(),this.setGallerySize();var d=this.getCell(c);d&&(this.selectedIndex=this.getCellSlideIndex(d)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[a]),this.select(this.selectedIndex),b&&this.positionSliderAtSelected()},b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("./flickity"),require("fizzy-ui-utils")):b(a,a.Flickity,a.fizzyUIUtils)}(window,function(a,b,c){"use strict";function d(a){if("IMG"==a.nodeName){var b=a.getAttribute("data-flickity-lazyload"),d=a.getAttribute("data-flickity-lazyload-src"),e=a.getAttribute("data-flickity-lazyload-srcset");if(b||d||e)return[a]}var f="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",g=a.querySelectorAll(f);return c.makeArray(g)}function e(a,b){this.img=a,this.flickity=b,this.load()}b.createMethods.push("_createLazyload");var f=b.prototype;return f._createLazyload=function(){this.on("select",this.lazyLoad)},f.lazyLoad=function(){var a=this.options.lazyLoad;if(a){var b="number"==typeof a?a:0,c=this.getAdjacentCellElements(b),f=[];c.forEach(function(a){var b=d(a);f=f.concat(b)}),f.forEach(function(a){new e(a,this)},this)}},e.prototype.handleEvent=c.handleEvent,e.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var a=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),b=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=a,b&&this.img.setAttribute("srcset",b),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},e.prototype.onload=function(a){this.complete(a,"flickity-lazyloaded")},e.prototype.onerror=function(a){this.complete(a,"flickity-lazyerror")},e.prototype.complete=function(a,b){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var c=this.flickity.getParentCell(this.img),d=c&&c.element;this.flickity.cellSizeChange(d),this.img.classList.add(b),this.flickity.dispatchEvent("lazyLoad",a,d)},b.LazyLoader=e,b}),function(a,b){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],b):"object"==typeof module&&module.exports&&(module.exports=b(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(a){return a}),function(a,b){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],b):"object"==typeof module&&module.exports?module.exports=b(require("flickity"),require("fizzy-ui-utils")):a.Flickity=b(a.Flickity,a.fizzyUIUtils)}(window,function(a,b){function c(a,b,c){return(b-a)*c+a}a.createMethods.push("_createAsNavFor");var d=a.prototype;return d._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var a=this.options.asNavFor;if(a){var b=this;setTimeout(function(){b.setNavCompanion(a)})}},d.setNavCompanion=function(c){c=b.getQueryElement(c);var d=a.data(c);if(d&&d!=this){this.navCompanion=d;var e=this;this.onNavCompanionSelect=function(){e.navCompanionSelect()},d.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},d.navCompanionSelect=function(a){if(this.navCompanion){var b=this.navCompanion.selectedCells[0],d=this.navCompanion.cells.indexOf(b),e=d+this.navCompanion.selectedCells.length-1,f=Math.floor(c(d,e,this.navCompanion.cellAlign));if(this.selectCell(f,!1,a),this.removeNavSelectedElements(),!(f>=this.cells.length)){var g=this.cells.slice(d,e+1);this.navSelectedElements=g.map(function(a){return a.element}),this.changeNavSelectedClass("add")}}},d.changeNavSelectedClass=function(a){this.navSelectedElements.forEach(function(b){b.classList[a]("is-nav-selected")})},d.activateAsNavFor=function(){this.navCompanionSelect(!0)},d.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},d.onNavStaticClick=function(a,b,c,d){"number"==typeof d&&this.navCompanion.selectCell(d)},d.deactivateAsNavFor=function(){this.removeNavSelectedElements()},d.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},a}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter")):a.imagesLoaded=b(a,a.EvEmitter)}("undefined"!=typeof window?window:this,function(a,b){function c(a,b){for(var c in b)a[c]=b[c];return a}function d(a){return Array.isArray(a)?a:"object"==typeof a&&"number"==typeof a.length?j.call(a):[a]}function e(a,b,f){if(!(this instanceof e))return new e(a,b,f);var g=a;if("string"==typeof a&&(g=document.querySelectorAll(a)),!g)return void i.error("Bad element for imagesLoaded "+(g||a));this.elements=d(g),this.options=c({},this.options),"function"==typeof b?f=b:c(this.options,b),f&&this.on("always",f),this.getImages(),h&&(this.jqDeferred=new h.Deferred),setTimeout(this.check.bind(this))}function f(a){this.img=a}function g(a,b){this.url=a,this.element=b,this.img=new Image}var h=a.jQuery,i=a.console,j=Array.prototype.slice;e.prototype=Object.create(b.prototype),e.prototype.options={},e.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},e.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),!0===this.options.background&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&k[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var k={1:!0,9:!0,11:!0};return e.prototype.addElementBackgroundImages=function(a){var b=getComputedStyle(a);if(b)for(var c=/url\((['"])?(.*?)\1\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[2];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}},e.prototype.addImage=function(a){var b=new f(a);this.images.push(b)},e.prototype.addBackground=function(a,b){var c=new g(a,b);this.images.push(c)},e.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();this.images.forEach(function(b){b.once("progress",a),b.check()})},e.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emitEvent("progress",[this,a,b]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&i&&i.log("progress: "+c,a,b)},e.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(a,[this]),this.emitEvent("always",[this]),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},f.prototype=Object.create(b.prototype),f.prototype.check=function(){if(this.getIsImageComplete())return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");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},f.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},f.prototype.confirm=function(a,b){this.isLoaded=a,this.emitEvent("progress",[this,this.img,b])},f.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},f.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},f.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},f.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},g.prototype=Object.create(f.prototype),g.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},g.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},g.prototype.confirm=function(a,b){this.isLoaded=a,this.emitEvent("progress",[this,this.element,b])},e.makeJQueryPlugin=function(b){(b=b||a.jQuery)&&(h=b,h.fn.imagesLoaded=function(a,b){return new e(this,a,b).jqDeferred.promise(h(this))})},e.makeJQueryPlugin(),e}),function(a,b){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("flickity"),require("imagesloaded")):a.Flickity=b(a,a.Flickity,a.imagesLoaded)}(window,function(a,b,c){"use strict";b.createMethods.push("_createImagesLoaded");var d=b.prototype;return d._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},d.imagesLoaded=function(){function a(a,c){var d=b.getParentCell(c.img);b.cellSizeChange(d&&d.element),b.options.freeScroll||b.positionSliderAtSelected()}if(this.options.imagesLoaded){var b=this;c(this.slider).on("progress",a)}},b});
Copyright ©2021 || Defacer Indonesia