⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.170
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ecommerce_pg
/
public
/
new_ui
/
js
/
View File Name :
flickity-docs.min.js
!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<g;e++){var i=a[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||h("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function r(){if(!p){p=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var r=o(e);n=200==Math.round(t(r.width)),d.isBoxSizeOuter=n,i.removeChild(e)}}function d(e){if(r(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var d=o(e);if("none"==d.display)return i();var h={};h.width=e.offsetWidth,h.height=e.offsetHeight;for(var p=h.isBorderBox="border-box"==d.boxSizing,u=0;u<g;u++){var f=a[u],m=d[f],s=parseFloat(m);h[f]=isNaN(s)?0:s}var l=h.paddingLeft+h.paddingRight,c=h.paddingTop+h.paddingBottom,b=h.marginLeft+h.marginRight,x=h.marginTop+h.marginBottom,y=h.borderLeftWidth+h.borderRightWidth,v=h.borderTopWidth+h.borderBottomWidth,W=p&&n,w=t(d.width);w!==!1&&(h.width=w+(W?0:l+y));var B=t(d.height);return B!==!1&&(h.height=B+(W?0:c+v)),h.innerWidth=h.width-(l+y),h.innerHeight=h.height-(c+v),h.outerWidth=h.width+b,h.outerHeight=h.height+x,h}}var n,h="undefined"==typeof console?e:function(t){console.error(t)},a=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],g=a.length,p=!1;return d}); !function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],o=0;o<t.length;o++){var r=t[o],n=r+"MatchesSelector";if(e[n])return n}}();return function(t,o){return t[e](o)}}); !function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return i.indexOf(t)==-1&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{},i=n[e]=n[e]||{};return i[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return i!=-1&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var i=this._onceEvents&&this._onceEvents[e],s=0;s<n.length;s++){var o=n[s],f=i&&i[o];f&&(this.off(e,o),delete i[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}); !function(e,t){"function"==typeof define&&define.amd?define(["desandro-matches-selector/matches-selector"],function(r){return t(e,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){"use strict";var r={};r.extend=function(e,t){for(var r in t)e[r]=t[r];return e},r.modulo=function(e,t){return(e%t+t)%t};var n=Array.prototype.slice;r.makeArray=function(e){if(Array.isArray(e))return e;if(null===e||void 0===e)return[];var t="object"==typeof e&&"number"==typeof e.length;return t?n.call(e):[e]},r.removeFrom=function(e,t){var r=e.indexOf(t);r!=-1&&e.splice(r,1)},r.getParent=function(e,r){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,r))return e},r.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},r.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.filterFindElements=function(e,n){e=r.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!n)return void o.push(e);t(e,n)&&o.push(e);for(var r=e.querySelectorAll(n),u=0;u<r.length;u++)o.push(r[u])}}),o},r.debounceMethod=function(e,t,r){r=r||100;var n=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,u=this;this[o]=setTimeout(function(){n.apply(u,t),delete u[o]},r)}},r.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},r.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,r){return t+"-"+r}).toLowerCase()};var o=e.console;return r.htmlInit=function(t,n){r.docReady(function(){var u=r.toDashed(n),a="data-"+u,i=document.querySelectorAll("["+a+"]"),c=document.querySelectorAll(".js-"+u),d=r.makeArray(i).concat(r.makeArray(c)),f=a+"-options",s=e.jQuery;d.forEach(function(e){var r,u=e.getAttribute(a)||e.getAttribute(f);try{r=u&&JSON.parse(u)}catch(i){return void(o&&o.error("Error parsing "+a+" on "+e.className+": "+i))}var c=new t(e,r);s&&s.data(e,n,c)})})},r}); !function(t,n){"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("ev-emitter")):t.Unipointer=n(t,t.EvEmitter)}(window,function(t,n){"use strict";function e(){}function i(){}var o=i.prototype=Object.create(n.prototype);o.bindStartEvent=function(t){this._bindStartEvent(t,!0)},o.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},o._bindStartEvent=function(n,e){e=void 0===e||e;var i=e?"addEventListener":"removeEventListener",o="mousedown";t.PointerEvent?o="pointerdown":"ontouchstart"in t&&(o="touchstart"),n[i](o,this)},o.handleEvent=function(t){var n="on"+t.type;this[n]&&this[n](t)},o.getTouch=function(t){for(var n=0;n<t.length;n++){var e=t[n];if(e.identifier==this.pointerIdentifier)return e}},o.onmousedown=function(t){var n=t.button;n&&0!==n&&1!==n||this._pointerDown(t,t)},o.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},o.onpointerdown=function(t){this._pointerDown(t,t)},o._pointerDown=function(t,n){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==n.pointerId?n.pointerId:n.identifier,this.pointerDown(t,n))},o.pointerDown=function(t,n){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,n])};var r={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return o._bindPostStartEvents=function(n){if(n){var e=r[n.type];e.forEach(function(n){t.addEventListener(n,this)},this),this._boundPointerEvents=e}},o._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(n){t.removeEventListener(n,this)},this),delete this._boundPointerEvents)},o.onmousemove=function(t){this._pointerMove(t,t)},o.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},o.ontouchmove=function(t){var n=this.getTouch(t.changedTouches);n&&this._pointerMove(t,n)},o._pointerMove=function(t,n){this.pointerMove(t,n)},o.pointerMove=function(t,n){this.emitEvent("pointerMove",[t,n])},o.onmouseup=function(t){this._pointerUp(t,t)},o.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},o.ontouchend=function(t){var n=this.getTouch(t.changedTouches);n&&this._pointerUp(t,n)},o._pointerUp=function(t,n){this._pointerDone(),this.pointerUp(t,n)},o.pointerUp=function(t,n){this.emitEvent("pointerUp",[t,n])},o._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},o._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},o.pointerDone=e,o.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},o.ontouchcancel=function(t){var n=this.getTouch(t.changedTouches);n&&this._pointerCancel(t,n)},o._pointerCancel=function(t,n){this._pointerDone(),this.pointerCancel(t,n)},o.pointerCancel=function(t,n){this.emitEvent("pointerCancel",[t,n])},i.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},i}); !function(t,i){"function"==typeof define&&define.amd?define(["unipointer/unipointer"],function(n){return i(t,n)}):"object"==typeof module&&module.exports?module.exports=i(t,require("unipointer")):t.Unidragger=i(t,t.Unipointer)}(window,function(t,i){"use strict";function n(){}var e=n.prototype=Object.create(i.prototype);e.bindHandles=function(){this._bindHandles(!0)},e.unbindHandles=function(){this._bindHandles(!1)},e._bindHandles=function(i){i=void 0===i||i;for(var n=i?"addEventListener":"removeEventListener",e=i?this._touchActionValue:"",o=0;o<this.handles.length;o++){var r=this.handles[o];this._bindStartEvent(r,i),r[n]("click",this),t.PointerEvent&&(r.style.touchAction=e)}},e._touchActionValue="none",e.pointerDown=function(t,i){var n=this.okayPointerDown(t);n&&(this.pointerDownPointer=i,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,i]))};var o={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},r={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return e.okayPointerDown=function(t){var i=o[t.target.nodeName],n=r[t.target.type],e=!i||n;return e||this._pointerReset(),e},e.pointerDownBlur=function(){var t=document.activeElement,i=t&&t.blur&&t!=document.body;i&&t.blur()},e.pointerMove=function(t,i){var n=this._dragPointerMove(t,i);this.emitEvent("pointerMove",[t,i,n]),this._dragMove(t,i,n)},e._dragPointerMove=function(t,i){var n={x:i.pageX-this.pointerDownPointer.pageX,y:i.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(t,i),n},e.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},e.pointerUp=function(t,i){this.emitEvent("pointerUp",[t,i]),this._dragPointerUp(t,i)},e._dragPointerUp=function(t,i){this.isDragging?this._dragEnd(t,i):this._staticClick(t,i)},e._dragStart=function(t,i){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,i)},e.dragStart=function(t,i){this.emitEvent("dragStart",[t,i])},e._dragMove=function(t,i,n){this.isDragging&&this.dragMove(t,i,n)},e.dragMove=function(t,i,n){t.preventDefault(),this.emitEvent("dragMove",[t,i,n])},e._dragEnd=function(t,i){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,i)},e.dragEnd=function(t,i){this.emitEvent("dragEnd",[t,i])},e.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},e._staticClick=function(t,i){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,i),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},e.staticClick=function(t,i){this.emitEvent("staticClick",[t,i])},n.getPointerPoint=i.getPointerPoint,n}); !function(e,t){"function"==typeof define&&define.amd?define(["get-size/get-size"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=t(e,e.getSize))}(window,function(e,t){"use strict";function i(e,t){this.element=e,this.parent=t,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},n.destroy=function(){this.unselect(),this.element.style.position="";var e=this.parent.originSide;this.element.style[e]=""},n.getSize=function(){this.size=t(this.element)},n.setPosition=function(e){this.x=e,this.updateTarget(),this.renderPosition(e)},n.updateTarget=n.setDefaultTarget=function(){var e="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign},n.renderPosition=function(e){var t=this.parent.originSide;this.element.style[t]=this.parent.getPositionValue(e)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(e){this.shift=e,this.renderPosition(this.x+this.parent.slideableWidth*e)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}); !function(t,i){"function"==typeof define&&define.amd?define(i):"object"==typeof module&&module.exports?module.exports=i():(t.Flickity=t.Flickity||{},t.Flickity.Slide=i())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var i=t.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),1==this.cells.length){this.x=t.x;var i=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[i]}},i.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",i=this.getLastCell(),e=i?i.size[t]:0,s=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+s*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})},t}); !function(t,i){"function"==typeof define&&define.amd?define(["fizzy-ui-utils/utils"],function(s){return i(t,s)}):"object"==typeof module&&module.exports?module.exports=i(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=i(t,t.fizzyUIUtils))}(window,function(t,i){"use strict";var s={};return s.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},s.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var i=this;requestAnimationFrame(function(){i.animate()})}},s.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()},s.setTranslateX=function(t,i){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var s=this.getPositionValue(t);this.slider.style.transform=i?"translate3d("+s+",0,0)":"translateX("+s+")"},s.dispatchScrollEvent=function(){var t=this.slides[0];if(t){var i=-this.x-t.target,s=i/this.slidesWidth;this.dispatchEvent("scroll",null,[s,i])}},s.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},s.getPositionValue=function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},s.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},s.shiftWrapCells=function(t){var i=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,i,-1);var s=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,s,1)},s._shiftCells=function(t,i,s){for(var e=0;e<t.length;e++){var n=t[e],o=i>0?s:0;n.wrapShift(o),i-=n.size.outerWidth}},s._unshiftCells=function(t){if(t&&t.length)for(var i=0;i<t.length;i++)t[i].wrapShift(0)},s.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},s.applyForce=function(t){this.velocity+=t},s.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},s.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},s.applyDragForce=function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x,i=t-this.velocity;this.applyForce(i)}},s.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown;if(!t&&!this.isFreeScrolling&&this.slides.length){var i=this.selectedSlide.target*-1-this.x,s=i*this.options.selectedAttraction;this.applyForce(s)}},s}); !function(e,t){if("function"==typeof define&&define.amd)define(["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(i,s,l,n,h,r){return t(e,i,s,l,n,h,r)});else if("object"==typeof module&&module.exports)module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var i=e.Flickity;e.Flickity=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,function(e,t,i,s,l,n,h){"use strict";function r(e,t){for(e=s.makeArray(e);e.length;)t.appendChild(e.shift())}function o(e,t){var i=s.getQueryElement(e);if(!i)return void(d&&d.error("Bad element for Flickity: "+(i||e)));if(this.element=i,this.element.flickityGUID){var l=u[this.element.flickityGUID];return l.option(t),l}c&&(this.$element=c(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(t),this._create()}var c=e.jQuery,a=e.getComputedStyle,d=e.console,f=0,u={};o.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},o.createMethods=[];var v=o.prototype;s.extend(v,t.prototype),v._create=function(){var t=this.guid=++f;this.element.flickityGUID=t,u[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)&&e.addEventListener("resize",this);for(var i in this.options.on){var s=this.options.on[i];this.on(i,s)}o.createMethods.forEach(function(e){this[e]()},this),this.options.watchCSS?this.watchCSS():this.activate()},v.option=function(e){s.extend(this.options,e)},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 e=this._filterFindCellElements(this.element.children);r(e,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 e=document.createElement("div");e.className="flickity-slider",e.style[this.originSide]=0,this.slider=e},v._filterFindCellElements=function(e){return s.filterFindElements(e,this.options.cellSelector)},v.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},v._makeCells=function(e){var t=this._filterFindCellElements(e),i=t.map(function(e){return new l(e,this)},this);return i},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(e){e=e||0,this.maxCellHeight=e?this.maxCellHeight||0:0;var t=0;if(e>0){var i=this.cells[e-1];t=i.x+i.size.outerWidth}for(var s=this.cells.length,l=e;l<s;l++){var n=this.cells[l];n.setPosition(t),t+=n.size.outerWidth,this.maxCellHeight=Math.max(n.size.outerHeight,this.maxCellHeight)}this.slideableWidth=t,this.updateSlides(),this._containSlides(),this.slidesWidth=s?this.getLastSlide().target-this.slides[0].target:0},v._sizeCells=function(e){e.forEach(function(e){e.getSize()})},v.updateSlides=function(){if(this.slides=[],this.cells.length){var e=new n(this);this.slides.push(e);var t="left"==this.originSide,i=t?"marginRight":"marginLeft",s=this._getCanCellFit();this.cells.forEach(function(t,l){if(!e.cells.length)return void e.addCell(t);var h=e.outerWidth-e.firstMargin+(t.size.outerWidth-t.size[i]);s.call(this,l,h)?e.addCell(t):(e.updateTarget(),e=new n(this),this.slides.push(e),e.addCell(t))},this),e.updateTarget(),this.updateSelectedSlide()}},v._getCanCellFit=function(){var e=this.options.groupCells;if(!e)return function(){return!1};if("number"==typeof e){var t=parseInt(e,10);return function(e){return e%t!==0}}var i="string"==typeof e&&e.match(/^(\d+)%$/),s=i?parseInt(i[1],10)/100:1;return function(e,t){return t<=(this.size.innerWidth+1)*s}},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};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return v.setCellAlign=function(){var e=g[this.options.cellAlign];this.cellAlign=e?e[this.originSide]:this.options.cellAlign},v.setGallerySize=function(){if(this.options.setGallerySize){var e=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=e+"px"}},v._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},v._getGapCells=function(e,t,i){for(var s=[];e>0;){var l=this.cells[t];if(!l)break;s.push(l),t+=i,e-=l.size.outerWidth}return s},v._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var e=this.options.rightToLeft,t=e?"marginRight":"marginLeft",i=e?"marginLeft":"marginRight",s=this.slideableWidth-this.getLastCell().size[i],l=s<this.size.innerWidth,n=this.cursorPosition+this.cells[0].size[t],h=s-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(e){l?e.target=s*this.cellAlign:(e.target=Math.max(e.target,n),e.target=Math.min(e.target,h))},this)}},v.dispatchEvent=function(e,t,i){var s=t?[t].concat(i):i;if(this.emitEvent(e,s),c&&this.$element){e+=this.options.namespaceJQueryEvents?".flickity":"";var l=e;if(t){var n=c.Event(t);n.type=e,l=n}this.$element.trigger(l,i)}},v.select=function(e,t,i){if(this.isActive&&(e=parseInt(e,10),this._wrapSelect(e),(this.options.wrapAround||t)&&(e=s.modulo(e,this.slides.length)),this.slides[e])){var l=this.selectedIndex;this.selectedIndex=e,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[e]),e!=l&&this.dispatchEvent("change",null,[e]),this.dispatchEvent("cellSelect")}},v._wrapSelect=function(e){var t=this.slides.length,i=this.options.wrapAround&&t>1;if(!i)return e;var l=s.modulo(e,t),n=Math.abs(l-this.selectedIndex),h=Math.abs(l+t-this.selectedIndex),r=Math.abs(l-t-this.selectedIndex);!this.isDragSelect&&h<n?e+=t:!this.isDragSelect&&r<n&&(e-=t),e<0?this.x-=this.slideableWidth:e>=t&&(this.x+=this.slideableWidth)},v.previous=function(e,t){this.select(this.selectedIndex-1,e,t)},v.next=function(e,t){this.select(this.selectedIndex+1,e,t)},v.updateSelectedSlide=function(){var e=this.slides[this.selectedIndex];e&&(this.unselectSelectedSlide(),this.selectedSlide=e,e.select(),this.selectedCells=e.cells,this.selectedElements=e.getCellElements(),this.selectedCell=e.cells[0],this.selectedElement=this.selectedElements[0])},v.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},v.selectInitialIndex=function(){var e=this.options.initialIndex;if(this.isInitActivated)return void this.select(this.selectedIndex,!1,!0);if(e&&"string"==typeof e){var t=this.queryCell(e);if(t)return void this.selectCell(e,!1,!0)}var i=0;e&&this.slides[e]&&(i=e),this.select(i,!1,!0)},v.selectCell=function(e,t,i){var s=this.queryCell(e);if(s){var l=this.getCellSlideIndex(s);this.select(l,t,i)}},v.getCellSlideIndex=function(e){for(var t=0;t<this.slides.length;t++){var i=this.slides[t],s=i.cells.indexOf(e);if(s!=-1)return t}},v.getCell=function(e){for(var t=0;t<this.cells.length;t++){var i=this.cells[t];if(i.element==e)return i}},v.getCells=function(e){e=s.makeArray(e);var t=[];return e.forEach(function(e){var i=this.getCell(e);i&&t.push(i)},this),t},v.getCellElements=function(){return this.cells.map(function(e){return e.element})},v.getParentCell=function(e){var t=this.getCell(e);return t?t:(e=s.getParent(e,".flickity-slider > *"),this.getCell(e))},v.getAdjacentCellElements=function(e,t){if(!e)return this.selectedSlide.getCellElements();t=void 0===t?this.selectedIndex:t;var i=this.slides.length;if(1+2*e>=i)return this.getCellElements();for(var l=[],n=t-e;n<=t+e;n++){var h=this.options.wrapAround?s.modulo(n,i):n,r=this.slides[h];r&&(l=l.concat(r.getCellElements()))}return l},v.queryCell=function(e){if("number"==typeof e)return this.cells[e];if("string"==typeof e){if(e.match(/^[#\.]?[\d\/]/))return;e=this.element.querySelector(e)}return this.getCell(e)},v.uiChange=function(){this.emitEvent("uiChange")},v.childUIPointerDown=function(e){"touchstart"!=e.type&&e.preventDefault(),this.focus()},v.onresize=function(){this.watchCSS(),this.resize()},s.debounceMethod(o,"onresize",150),v.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=s.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var e=this.selectedElements&&this.selectedElements[0];this.selectCell(e,!1,!0)}},v.watchCSS=function(){var e=this.options.watchCSS;if(e){var t=a(this.element,":after").content;t.indexOf("flickity")!=-1?this.activate():this.deactivate()}},v.onkeydown=function(e){var t=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!t){var i=o.keyboardHandlers[e.keyCode];i&&i.call(this)}},o.keyboardHandlers={37:function(){var e=this.options.rightToLeft?"next":"previous";this.uiChange(),this[e]()},39:function(){var e=this.options.rightToLeft?"previous":"next";this.uiChange(),this[e]()}},v.focus=function(){var t=e.pageYOffset;this.element.focus({preventScroll:!0}),e.pageYOffset!=t&&e.scrollTo(e.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(e){e.destroy()}),this.element.removeChild(this.viewport),r(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(),e.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),c&&this.$element&&c.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},s.extend(v,h),o.data=function(e){e=s.getQueryElement(e);var t=e&&e.flickityGUID;return t&&u[t]},s.htmlInit(o,"flickity"),c&&c.bridget&&c.bridget("flickity",o),o.setJQuery=function(e){c=e},o.Cell=l,o.Slide=n,o}); !function(t,e){"function"==typeof define&&define.amd?define(["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,s,n){return e(t,i,s,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,i,s){"use strict";function n(){return{x:t.pageXOffset,y:t.pageYOffset}}s.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var r=e.prototype;s.extend(r,i.prototype),r._touchActionValue="pan-y";var a="createTouch"in document,o=!1;r._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),a&&!o&&(t.addEventListener("touchmove",function(){}),o=!0)},r.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},r.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},r.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")},r.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},r.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},r._uiChangeDrag=function(){delete this.isFreeScrolling},r.pointerDown=function(e,i){if(!this.isDraggable)return void this._pointerDownDefault(e,i);var s=this.okayPointerDown(e);s&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=n(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i))},r._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var h={INPUT:!0,TEXTAREA:!0,SELECT:!0};return r.pointerDownFocus=function(t){var e=h[t.target.nodeName];e||this.focus()},r._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,s=h[t.target.nodeName];e||i||s||t.preventDefault()},r.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},r.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},r.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},r.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},r.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},r.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var s=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var n=this.dragStartPosition+i.x*s;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);n=n>r?.5*(n+r):n;var a=Math.min(-this.getLastSlide().target,this.dragStartPosition);n=n<a?.5*(n+a):n}this.dragX=n,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},r.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var s=this.getRestingPosition();this.isFreeScrolling=-s>this.slides[0].target&&-s<this.getLastSlide().target}else 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])}},r.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),s=this._getClosestResting(t,e,-1),n=i.distance<s.distance?i.index:s.index;return n},r._getClosestResting=function(t,e,i){for(var s=this.selectedIndex,n=1/0,r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};r(e,n)&&(s+=i,n=e,e=this.getSlideDistance(-t,s),null!==e);)e=Math.abs(e);return{distance:n,index:s-i}},r.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&i>1,r=n?s.modulo(e,i):e,a=this.slides[r];if(!a)return null;var o=n?this.slideableWidth*Math.floor(e/i):0;return t-(a.target+o)},r.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!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},r.staticClick=function(t,e){var i=this.getParentCell(t.target),s=i&&i.element,n=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,s,n])},r.onscroll=function(){var t=n(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}); !function(t,e){"function"==typeof define&&define.amd?define(["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):e(t,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";function s(t,e){this.direction=t,this.parent=e,this._create()}function r(t){return"string"==typeof t?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 o="http://www.w3.org/2000/svg";s.prototype=Object.create(i.prototype),s.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var 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");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t=document.createElementNS(o,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(o,"path"),i=r(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},s.prototype.handleEvent=n.handleEvent,s.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)return void this.enable();var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()},s.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s((-1),this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=s,e}); !function(t,e){"function"==typeof define&&define.amd?define(["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(i,s,o){return e(t,i,s,o)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):e(t,t.Flickity,t.Unipointer,t.fizzyUIUtils)}(window,function(t,e,i,s){"use strict";function o(t){this.parent=t,this._create()}o.prototype=Object.create(i.prototype),o.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))},o.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},o.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},o.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],s=this.dots.length,o=s+t,n=s;n<o;n++){var a=document.createElement("li");a.className="dot",a.setAttribute("aria-label","Page dot "+(n+1)),e.appendChild(a),i.push(a)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},o.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},o.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"))},o.prototype.onTap=o.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=o,s.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var n=e.prototype;return n._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(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))},n.activatePageDots=function(){this.pageDots.activate()},n.updateSelectedPageDots=function(){this.pageDots.updateSelected()},n.updatePageDots=function(){this.pageDots.setDots()},n.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=o,e}); !function(t,e){"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){var t=document.hidden;if(t)return void document.addEventListener("visibilitychange",this.onVisibilityPlay);this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}); !function(e,t){"function"==typeof define&&define.amd?define(["./flickity","fizzy-ui-utils/utils"],function(i,l){return t(e,i,l)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./flickity"),require("fizzy-ui-utils")):t(e,e.Flickity,e.fizzyUIUtils)}(window,function(e,t,i){"use strict";function l(e){var t=document.createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element)}),t}var s=t.prototype;return s.insert=function(e,t){var i=this._makeCells(e);if(i&&i.length){var s=this.cells.length;t=void 0===t?s:t;var n=l(i),c=t==s;if(c)this.slider.appendChild(n);else{var h=this.cells[t].element;this.slider.insertBefore(n,h)}if(0===t)this.cells=i.concat(this.cells);else if(c)this.cells=this.cells.concat(i);else{var r=this.cells.splice(t,s-t);this.cells=this.cells.concat(i).concat(r)}this._sizeCells(i),this.cellChange(t,!0)}},s.append=function(e){this.insert(e,this.cells.length)},s.prepend=function(e){this.insert(e,0)},s.remove=function(e){var t=this.getCells(e);if(t&&t.length){var l=this.cells.length-1;t.forEach(function(e){e.remove();var t=this.cells.indexOf(e);l=Math.min(t,l),i.removeFrom(this.cells,e)},this),this.cellChange(l,!0)}},s.cellSizeChange=function(e){var t=this.getCell(e);if(t){t.getSize();var i=this.cells.indexOf(t);this.cellChange(i)}},s.cellChange=function(e,t){var i=this.selectedElement;this._positionCells(e),this._getWrapShiftCells(),this.setGallerySize();var l=this.getCell(i);l&&(this.selectedIndex=this.getCellSlideIndex(l)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[e]),this.select(this.selectedIndex),t&&this.positionSliderAtSelected()},t}); !function(t,i){"function"==typeof define&&define.amd?define(["./flickity","fizzy-ui-utils/utils"],function(e,a){return i(t,e,a)}):"object"==typeof module&&module.exports?module.exports=i(t,require("./flickity"),require("fizzy-ui-utils")):i(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,i,e){"use strict";function a(t){if("IMG"==t.nodeName){var i=t.getAttribute("data-flickity-lazyload"),a=t.getAttribute("data-flickity-lazyload-src"),l=t.getAttribute("data-flickity-lazyload-srcset");if(i||a||l)return[t]}var o="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",r=t.querySelectorAll(o);return e.makeArray(r)}function l(t,i){this.img=t,this.flickity=i,this.load()}i.createMethods.push("_createLazyload");var o=i.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var i="number"==typeof t?t:0,e=this.getAdjacentCellElements(i),o=[];e.forEach(function(t){var i=a(t);o=o.concat(i)}),o.forEach(function(t){new l(t,this)},this)}},l.prototype.handleEvent=e.handleEvent,l.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"),i=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,i&&this.img.setAttribute("srcset",i),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},l.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},l.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},l.prototype.complete=function(t,i){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var e=this.flickity.getParentCell(this.img),a=e&&e.element;this.flickity.cellSizeChange(a),this.img.classList.add(i),this.flickity.dispatchEvent("lazyLoad",t,a)},i.LazyLoader=l,i}); !function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e){for(var i in e)t[i]=e[i];return t}function o(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?d.call(t):[t]}function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=o(s),this.options=i({},this.options),"function"==typeof e?n=e:i(this.options,e),n&&this.on("always",n),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||t))}function n(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console,d=Array.prototype.slice;r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&m[e]){for(var i=t.querySelectorAll("img"),o=0;o<i.length;o++){var r=i[o];this.addImage(r)}if("string"==typeof this.options.background){var n=t.querySelectorAll(this.options.background);for(o=0;o<n.length;o++){var s=n[o];this.addElementBackgroundImages(s)}}}};var m={1:!0,9:!0,11:!0};return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,o=i.exec(e.backgroundImage);null!==o;){var r=o&&o[2];r&&this.addBackground(r,t),o=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){var e=new n(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},r.prototype.check=function(){function t(t,i,o){setTimeout(function(){e.progress(t,i,o)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},r.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&&a&&a.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},n.prototype=Object.create(e.prototype),n.prototype.check=function(){var t=this.getIsImageComplete();return t?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),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},n.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(n.prototype),s.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(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(h=e,h.fn.imagesLoaded=function(t,e){var i=new r(this,t,e);return i.jqDeferred.promise(h(this))})},r.makeJQueryPlugin(),r}); !function(e,i){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,o){return i(e,t,o)}):"object"==typeof module&&module.exports?module.exports=i(e,require("flickity"),require("imagesloaded")):e.Flickity=i(e,e.Flickity,e.imagesLoaded)}(window,function(e,i,t){"use strict";i.createMethods.push("_createImagesLoaded");var o=i.prototype;return o._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},o.imagesLoaded=function(){function e(e,t){var o=i.getParentCell(t.img);i.cellSizeChange(o&&o.element),i.options.freeScroll||i.positionSliderAtSelected()}if(this.options.imagesLoaded){var i=this;t(this.slider).on("progress",e)}},i}); !function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):e.Flickity=t(e.Flickity,e.fizzyUIUtils)}(window,function(e,t){"use strict";function i(e,t,i){return(t-e)*i+e}e.createMethods.push("_createAsNavFor");var n=e.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(e){var t=this;setTimeout(function(){t.setNavCompanion(e)})}},n.setNavCompanion=function(i){i=t.getQueryElement(i);var n=e.data(i);if(n&&n!=this){this.navCompanion=n;var a=this;this.onNavCompanionSelect=function(){a.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(e){if(this.navCompanion){var t=this.navCompanion.selectedCells[0],n=this.navCompanion.cells.indexOf(t),a=n+this.navCompanion.selectedCells.length-1,o=Math.floor(i(n,a,this.navCompanion.cellAlign));if(this.selectCell(o,!1,e),this.removeNavSelectedElements(),!(o>=this.cells.length)){var s=this.cells.slice(n,a+1);this.navSelectedElements=s.map(function(e){return e.element}),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(e,t,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},e}); !function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):e(t.Flickity,t.fizzyUIUtils)}(window,function(t,e){"use strict";function i(t,e,i){this.element=t,this.url=e,this.img=new Image,this.flickity=i,this.load()}t.createMethods.push("_createBgLazyLoad");var o=t.prototype;return o._createBgLazyLoad=function(){this.on("select",this.bgLazyLoad)},o.bgLazyLoad=function(){var t=this.options.bgLazyLoad;if(t)for(var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=0;o<i.length;o++){var a=i[o];this.bgLazyLoadElem(a);for(var l=a.querySelectorAll("[data-flickity-bg-lazyload]"),n=0;n<l.length;n++)this.bgLazyLoadElem(l[n])}},o.bgLazyLoadElem=function(t){var e=t.getAttribute("data-flickity-bg-lazyload");e&&new i(t,e,this)},i.prototype.handleEvent=e.handleEvent,i.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.element.removeAttribute("data-flickity-bg-lazyload")},i.prototype.onload=function(t){this.element.style.backgroundImage='url("'+this.url+'")',this.complete(t,"flickity-bg-lazyloaded")},i.prototype.onerror=function(t){this.complete(t,"flickity-bg-lazyerror")},i.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this),this.element.classList.add(e),this.flickity.dispatchEvent("bgLazyLoad",t,this.element)},t.BgLazyLoader=i,t}); !function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity")):t(e.Flickity)}(window,function(e){"use strict";function t(e,t){this.name=e,this.createButton(),this.createIcon(),this.onClick=function(){t[e+"Fullscreen"]()},this.clickHandler=this.onClick.bind(this)}function i(e){return e[0].toUpperCase()+e.slice(1)}e.createMethods.push("_createFullscreen");var n=e.prototype;n._createFullscreen=function(){this.isFullscreen=!1,this.options.fullscreen&&(this.viewFullscreenButton=new t("view",this),this.exitFullscreenButton=new t("exit",this),this.on("activate",this._changeFullscreenActive),this.on("deactivate",this._changeFullscreenActive))},n._changeFullscreenActive=function(){var e=this.isActive?"appendChild":"removeChild";this.element[e](this.viewFullscreenButton.element),this.element[e](this.exitFullscreenButton.element);var t=this.isActive?"activate":"deactivate";this.viewFullscreenButton[t](),this.exitFullscreenButton[t]()},n.viewFullscreen=function(){this._changeFullscreen(!0),this.focus()},n.exitFullscreen=function(){this._changeFullscreen(!1)},n._changeFullscreen=function(e){if(this.isFullscreen!=e){this.isFullscreen=e;var t=e?"add":"remove";document.documentElement.classList[t]("is-flickity-fullscreen"),this.element.classList[t]("is-fullscreen"),this.resize(),this.isFullscreen&&this.reposition(),this.dispatchEvent("fullscreenChange",null,[e])}},n.toggleFullscreen=function(){this._changeFullscreen(!this.isFullscreen)};var s=n.setGallerySize;n.setGallerySize=function(){this.options.setGallerySize&&(this.isFullscreen?this.viewport.style.height="":s.call(this))},e.keyboardHandlers[27]=function(){this.exitFullscreen()},t.prototype.createButton=function(){var e=this.element=document.createElement("button");e.className="flickity-button flickity-fullscreen-button flickity-fullscreen-button-"+this.name,e.setAttribute("type","button");var t=i(this.name+" full-screen");e.setAttribute("aria-label",t),e.title=t};var l="http://www.w3.org/2000/svg",c={view:"M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z",exit:"M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z"};return t.prototype.createIcon=function(){var e=document.createElementNS(l,"svg");e.setAttribute("class","flickity-button-icon"),e.setAttribute("viewBox","0 0 32 32");var t=document.createElementNS(l,"path"),i=c[this.name];t.setAttribute("d",i),e.appendChild(t),this.element.appendChild(e)},t.prototype.activate=function(){this.element.addEventListener("click",this.clickHandler)},t.prototype.deactivate=function(){this.element.removeEventListener("click",this.clickHandler)},e.FullscreenButton=t,e}); !function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity")):e(t.Flickity)}(window,function(t){"use strict";t.createMethods.push("_createHash");var e=t.prototype;e._createHash=function(){this.options.hash&&(this.connectedHashLinks=[],this.onHashLinkClick=function(t){t.preventDefault(),this.selectCell(t.currentTarget.hash),history.replaceState(null,"",t.currentTarget.hash)}.bind(this),this.on("activate",this.activateHash),this.on("deactivate",this.deactivateHash))},e.activateHash=function(){if(this.on("change",this.onChangeHash),void 0===this.options.initialIndex&&location.hash){var t=this.queryCell(location.hash);t&&(this.options.initialIndex=this.getCellSlideIndex(t))}this.connectHashLinks()},e.deactivateHash=function(){this.off("change",this.onChangeHash),this.disconnectHashLinks()},e.onChangeHash=function(){var t=this.selectedElement.id;if(t){var e="#"+t;history.replaceState(null,"",e)}},e.connectHashLinks=function(){for(var t=document.querySelectorAll("a"),e=0;e<t.length;e++)this.connectHashLink(t[e])};var n=document.createElement("a");return e.connectHashLink=function(t){if(t.hash&&(n.href=t.href,n.pathname==location.pathname)){var e=this.queryCell(t.hash);e&&(t.addEventListener("click",this.onHashLinkClick),this.connectedHashLinks.push(t))}},e.disconnectHashLinks=function(){this.connectedHashLinks.forEach(function(t){t.removeEventListener("click",this.onHashLinkClick)},this),this.connectedHashLinks=[]},t}); !function(e,t){"function"==typeof define&&define.amd?define(["flickity/js/index","fizzy-ui-utils/utils"],t):"object"==typeof module&&module.exports?module.exports=t(require("flickity"),require("fizzy-ui-utils")):t(e.Flickity,e.fizzyUIUtils)}(this,function(e,t){var i=e.Slide,s=i.prototype.updateTarget;i.prototype.updateTarget=function(){if(s.apply(this,arguments),this.parent.options.fade){var e=this.target-this.x,t=this.cells[0].x;this.cells.forEach(function(i){var s=i.x-t-e;i.renderPosition(s)})}},i.prototype.setOpacity=function(e){this.cells.forEach(function(t){t.element.style.opacity=e})};var a=e.prototype;e.createMethods.push("_createFade"),a._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};var d=a.updateSlides;a.updateSlides=function(){d.apply(this,arguments),this.options.fade&&this.slides.forEach(function(e,t){var i=t==this.selectedIndex?1:0;e.setOpacity(i)},this)},a.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},a.onSettleFade=function(){if(delete this.didDragEnd,this.options.fade){this.selectedSlide.setOpacity(1);var e=this.slides[this.fadeIndex];e&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0)}},a.onDragEndFade=function(){this.didDragEnd=!0},a.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},a.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach(function(e){e.setOpacity("")}))};var n=a.positionSlider;a.positionSlider=function(){return this.options.fade?(this.fadeSlides(),void this.dispatchScrollEvent()):void n.apply(this,arguments)};var h=a.positionSliderAtSelected;a.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),h.apply(this,arguments)},a.fadeSlides=function(){if(!(this.slides.length<2)){var e=this.getFadeIndexes(),t=this.slides[e.a],i=this.slides[e.b],s=this.wrapDifference(t.target,i.target),a=this.wrapDifference(t.target,-this.x);a/=s,t.setOpacity(1-a),i.setOpacity(a);var d=e.a;this.isDragging&&(d=a>.5?e.a:e.b);var n=void 0!=this.fadeHideIndex&&this.fadeHideIndex!=d&&this.fadeHideIndex!=e.a&&this.fadeHideIndex!=e.b;n&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=d}},a.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},a.getFadeDragWrapIndexes=function(){var e=this.slides.map(function(e,t){return this.getSlideDistance(-this.x,t)},this),i=e.map(function(e){return Math.abs(e)}),s=Math.min.apply(Math,i),a=i.indexOf(s),d=e[a],n=this.slides.length,h=d>=0?1:-1;return{a:a,b:t.modulo(a+h,n)}},a.getFadeDragLimitIndexes=function(){for(var e=0,t=0;t<this.slides.length-1;t++){var i=this.slides[t];if(-this.x<i.target)break;e=t}return{a:e,b:e+1}},a.wrapDifference=function(e,t){var i=t-e;if(!this.options.wrapAround)return i;var s=i+this.slideableWidth,a=i-this.slideableWidth;return Math.abs(s)<Math.abs(i)&&(i=s),Math.abs(a)<Math.abs(i)&&(i=a),i};var o=a._getWrapShiftCells;a._getWrapShiftCells=function(){this.options.fade||o.apply(this,arguments)};var r=a.shiftWrapCells;return a.shiftWrapCells=function(){this.options.fade||r.apply(this,arguments)},e}); !function(t,i){"function"==typeof define&&define.amd?define(["get-size/get-size","unidragger/unidragger"],function(e,n){return i(t,e,n)}):"object"==typeof module&&module.exports?module.exports=i(t,require("get-size"),require("unidragger")):t.Draggabilly=i(t,t.getSize,t.Unidragger)}(window,function(t,i,e){"use strict";function n(t,i){for(var e in i)t[e]=i[e];return t}function s(){}function o(t,i){this.element="string"==typeof t?document.querySelector(t):t,a&&(this.$element=a(this.element)),this.options=n({},this.constructor.defaults),this.option(i),this._create()}function r(t,i,e){return e=e||"round",i?Math[e](t/i)*i:t}var a=t.jQuery,h=o.prototype=Object.create(e.prototype);o.defaults={},h.option=function(t){n(this.options,t)};var d={relative:!0,absolute:!0,fixed:!0};return h._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=n({},this.position);var t=getComputedStyle(this.element);d[t.position]||(this.element.style.position="relative"),this.on("pointerDown",this.onPointerDown),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},h.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},h.dispatchEvent=function(t,i,e){var n=[i].concat(e);this.emitEvent(t,n),this.dispatchJQueryEvent(t,i,e)},h.dispatchJQueryEvent=function(i,e,n){var s=t.jQuery;if(s&&this.$element){var o=s.Event(e);o.type=i,this.$element.trigger(o,n)}},h._getPosition=function(){var t=getComputedStyle(this.element),i=this._getPositionCoord(t.left,"width"),e=this._getPositionCoord(t.top,"height");this.position.x=isNaN(i)?0:i,this.position.y=isNaN(e)?0:e,this._addTransformPosition(t)},h._getPositionCoord=function(t,e){if(t.indexOf("%")!=-1){var n=i(this.element.parentNode);return n?parseFloat(t)/100*n[e]:0}return parseInt(t,10)},h._addTransformPosition=function(t){var i=t.transform;if(0===i.indexOf("matrix")){var e=i.split(","),n=0===i.indexOf("matrix3d")?12:4,s=parseInt(e[n],10),o=parseInt(e[n+1],10);this.position.x+=s,this.position.y+=o}},h.onPointerDown=function(t,i){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",t,[i])},h.dragStart=function(t,i){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",t,[i]),this.animate())},h.measureContainment=function(){var t=this.getContainer();if(t){var e=i(this.element),n=i(t),s=this.element.getBoundingClientRect(),o=t.getBoundingClientRect(),r=n.borderLeftWidth+n.borderRightWidth,a=n.borderTopWidth+n.borderBottomWidth,h=this.relativeStartPosition={x:s.left-(o.left+n.borderLeftWidth),y:s.top-(o.top+n.borderTopWidth)};this.containSize={width:n.width-r-h.x-e.width,height:n.height-a-h.y-e.height}}},h.getContainer=function(){var t=this.options.containment;if(t){var i=t instanceof HTMLElement;return i?t:"string"==typeof t?document.querySelector(t):this.element.parentNode}},h.onPointerMove=function(t,i,e){this.dispatchJQueryEvent("pointerMove",t,[i,e])},h.dragMove=function(t,i,e){if(this.isEnabled){var n=e.x,s=e.y,o=this.options.grid,a=o&&o[0],h=o&&o[1];n=r(n,a),s=r(s,h),n=this.containDrag("x",n,a),s=this.containDrag("y",s,h),n="y"==this.options.axis?0:n,s="x"==this.options.axis?0:s,this.position.x=this.startPosition.x+n,this.position.y=this.startPosition.y+s,this.dragPoint.x=n,this.dragPoint.y=s,this.dispatchEvent("dragMove",t,[i,e])}},h.containDrag=function(t,i,e){if(!this.options.containment)return i;var n="x"==t?"width":"height",s=this.relativeStartPosition[t],o=r(-s,e,"ceil"),a=this.containSize[n];return a=r(a,e,"floor"),Math.max(o,Math.min(a,i))},h.onPointerUp=function(t,i){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",t,[i])},h.dragEnd=function(t,i){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",t,[i]))},h.animate=function(){if(this.isDragging){this.positionDrag();var t=this;requestAnimationFrame(function(){t.animate()})}},h.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},h.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},h.staticClick=function(t,i){this.dispatchEvent("staticClick",t,[i])},h.setPosition=function(t,i){this.position.x=t,this.position.y=i,this.setLeftTop()},h.enable=function(){this.isEnabled=!0},h.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},h.destroy=function(){this.disable(),this.element.style.transform="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},h._init=s,a&&a.bridget&&a.bridget("draggabilly",o),o}); !function(){window.FizzyDocs={},window.filterBind=function(n,t,i,e){n.addEventListener(t,function(n){matchesSelector(n.target,i)&&e(n)})}}(); FizzyDocs["commercial-license-agreement"]=function(e){"use strict";function t(e){var t=o.querySelector(".is-selected");t&&t.classList.remove("is-selected"),e.classList.add("is-selected");var i=e.getAttribute("data-license-option"),n=r[i];l.forEach(function(e){e.element.textContent=n[e.property]})}var r={developer:{title:"Developer","for-official":"one (1) Licensed Developer","for-plain":"one individual Developer"},team:{title:"Team","for-official":"up to eight (8) Licensed Developer(s)","for-plain":"up to 8 Developers"},organization:{title:"Organization","for-official":"an unlimited number of Licensed Developer(s)","for-plain":"an unlimited number of Developers"}},o=e.querySelector(".button-group"),i=e.querySelector("h2"),n=i.cloneNode(!0);n.style.borderTop="none",n.style.marginTop=0,n.id="",n.innerHTML=n.innerHTML.replace("Commercial License",'Commercial <span data-license-property="title"></span> License'),i.textContent="",o.parentNode.insertBefore(n,o.nextSibling);for(var l=[],a=e.querySelectorAll("[data-license-property]"),c=0,s=a.length;c<s;c++){var p=a[c],u={property:p.getAttribute("data-license-property"),element:p};l.push(u)}t(o.querySelector(".button--developer")),filterBind(o,"click",".button",function(e){t(e.target)})}; !function(){var t=0;FizzyDocs["gh-button"]=function(n){function e(t){return t.toString().replace(/(\d)(?=(\d{3})+$)/g,"$1,")}var a=n.href.split("/"),r=a[3],c=a[4],o=n.querySelector(".gh-button__stat__text");t++;var u="ghButtonCallback"+t;window[u]=function(t){var n=e(t.data.stargazers_count);o.textContent=n};var i=document.createElement("script");i.src="https://api.github.com/repos/"+r+"/"+c+"?callback="+u,document.head.appendChild(i)}}(); FizzyDocs["shirt-promo"]=function(e){var t=new Date(2017,9,6),o=Math.round((t-new Date)/864e5),r=e.querySelector(".shirt-promo__title");r.textContent+=". Only on sale for "+o+" more days."}; !function(){"use strict";var e=window.FlickityDocs={};window.utils=fizzyUIUtils,e.makeCellElem=function(e){var t=document.createElement("div");t.className="carousel-cell";var n=document.createElement("span");return n.className="carousel-cell__number",n.textContent=e,t.appendChild(n),t},window.filterBind=function(e,t,n,c){e.addEventListener(t,function(e){matchesSelector(e.target,n)&&c(e)})}}(); FlickityDocs["hero-carousel"]=function(e){"use strict";var r=e.querySelector(".hero-carousel__cell--1"),c=r.querySelector(".hero-illustration");if(c){var i=document.createElement("img");i.onload=function(){c.src=i.src},i.src="img/flickity-illustration.gif"}}; FlickityDocs["page-nav"]=function(c){"use strict";new Stickeroo(c)}; !function(t){"use strict";function e(e){e&&(this.element=e,this.isActive=!1,this.isFixed=!1,t.addEventListener("resize",this),this.onresize())}function i(t,e,i){var s=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){if(!this[n]){s.apply(this,arguments);var t=this;this[n]=setTimeout(function(){s.apply(t,arguments),delete t[n]},i||100)}}}e.prototype.handleEvent=utils.handleEvent,e.prototype.onresize=function(){var e=getComputedStyle(this.element,":after").content,i=getSize(this.element);e.indexOf("sticky")!=-1&&i.innerHeight<=t.innerHeight?this.activate():this.deactivate()},utils.debounceMethod(e,"onresize"),e.prototype.activate=function(){this.isActive||(this.isActive=!0,this.originalY=this.element.getBoundingClientRect().top+t.pageYOffset,t.addEventListener("scroll",this),this.onscroll())},e.prototype.deactivate=function(){this.isActive&&(this.isActive=!1,this.isFixed=!1,this.element.classList.remove("is-fixed"),t.removeEventListener("scroll",this))},e.prototype.onscroll=function(){var e=t.pageYOffset>=this.originalY;e!=this.isFixed&&(this.element.classList.toggle("is-fixed"),this.isFixed=e)},i(e,"onscroll",50),t.Stickeroo=e}(window); FlickityDocs.append=function(e){"use strict";var t=e.querySelector(".carousel"),c=new Flickity(t,{initialIndex:2}),i=c.cells.length+1,l=FlickityDocs.makeCellElem,n=e.querySelector(".button");n.addEventListener("click",function(){c.append([l(i++),l(i++)])})}; FlickityDocs["arrow-wiz"]=function(e){"use strict";function t(e,t,n,o,r){r&&(s.strokeStyle=r),s.beginPath(),s.moveTo(e,t),s.lineTo(n,o),s.stroke(),s.closePath()}function n(){var e,n;for(e=0;e<11;e++){var o=20*e+.5;n=e%5?v:w,t(0,o,f,o,n)}for(e=0;e<11;e++){var r=20*e+.5;n=e%5?v:w,t(r,0,r,h,n)}t(0,h-.5,f,h-.5,w),t(f-.5,0,f-.5,h,w)}function o(e,t){return function(){var n=r(e);S[t]=n,x()}}function r(e){return{x:e.position.x/2,y:50-e.position.y/2}}function i(){s.strokeStyle="#333",s.fillStyle="hsla(0, 0%, 0%, 0.4)",s.beginPath(),s.moveTo(2*S[0].x,100),s.lineTo(2*S[1].x,100-2*S[1].y),s.lineTo(2*S[2].x,100-2*S[2].y),s.lineTo(2*S[3].x,100),s.lineTo(2*S[2].x,100+2*S[2].y),s.lineTo(2*S[1].x,100+2*S[1].y),s.lineTo(2*S[0].x,100),s.fill(),s.stroke(),s.closePath()}function l(){s.clearRect(0,0,f,h),n(),i()}function a(){q.textContent="arrowShape: { \n x0: "+S[0].x+",\n x1: "+S[1].x+", y1: "+S[1].y+",\n x2: "+S[2].x+", y2: "+S[2].y+",\n x3: "+S[3].x+"\n}"}function c(){var e="M "+S[0].x+",50 L "+S[1].x+","+(50+S[1].y)+" L "+S[2].x+","+(50+S[2].y)+" L "+S[3].x+",50 L "+S[2].x+","+(50-S[2].y)+" L "+S[1].x+","+(50-S[1].y)+" Z";m.setAttribute("d",e),L.setAttribute("d",e)}function x(){l(),a(),c()}var u=e,y=u.querySelector("canvas"),s=y.getContext("2d"),f=y.width,h=y.height,v="hsla(210, 50%, 50%, 0.25)",w="hsla(210, 50%, 50%, 0.5)";n();for(var S=[],d=[],T=0;T<4;T++){var g=u.querySelector(".arrow-wiz-illo__point--"+T),p=new Draggabilly(g,{containment:!0,grid:[10,10]}),k=o(p,T);p.on("dragMove",k),d.push(p),S[T]=r(p)}var q=u.querySelector(".arrow-wiz-code code"),b=new Flickity(u.querySelector(".carousel"),{initialIndex:2}),m=b.prevButton.element.querySelector("path"),L=b.nextButton.element.querySelector("path");x()}; FlickityDocs["custom-nav"]=function(e){"use strict";var t=e.querySelector(".carousel"),c=new Flickity(t,{prevNextButtons:!1,pageDots:!1}),r=e.querySelector(".button-group--cells"),n=utils.makeArray(r.children);c.on("select",function(){var e=r.querySelector(".is-selected"),t=r.children[c.selectedIndex];e.classList.remove("is-selected"),t.classList.add("is-selected")}),filterBind(r,"click",".button",function(e){var t=n.indexOf(e.target);c.select(t)});var i=e.querySelector(".button--previous");i.addEventListener("click",function(){c.previous()});var s=e.querySelector(".button--next");s.addEventListener("click",function(){c.next()})}; FlickityDocs.destroy=function(e){"use strict";var t=e.querySelector(".carousel"),c=new Flickity(t),i=!0,r=e.querySelector(".button");r.addEventListener("click",function(){i?c.destroy():c=new Flickity(t),i=!i})}; FlickityDocs["events-table"]=function(e){"use strict";function t(e,t){var n=document.createElement("tr"),c=document.createElement("td"),a=document.createElement("td"),o=document.createElement("td");c.className="event-table__time",a.className="event-table__event",o.className="event-table__message";var r=new Date,i=r.getHours()+":"+r.getMinutes()+":"+r.getSeconds()+"."+r.getMilliseconds();c.textContent=i,a.textContent=e,o.textContent=t||"",n.appendChild(c),n.appendChild(a),n.appendChild(o);var d=l.children;1==d.length?l.appendChild(n):l.insertBefore(n,d[1]);var s=l.children[11];s&&l.removeChild(s)}function n(e){return function(){t(e)}}var c=e.querySelector(".event-table"),l=c.querySelector("tbody"),a=e.querySelector(".carousel"),o=new Flickity(a,{on:{ready:function(){t("ready")}}});o.on("change",function(e){t("change","changed to cell "+(e+1))}),o.on("select",function(e){t("select","selected cell "+(e+1))}),o.on("settle",function(e){t("settle","settled at cell "+(e+1))}),o.on("staticClick",function(e,n,c,l){var a=c?"clicked cell "+l:"";t("staticClick",a)}),["dragStart","dragMove","dragEnd","pointerDown","pointerMove","pointerUp"].forEach(function(e){var t=n(e);o.on(e,t)})}; FlickityDocs["view-fullscreen-demo"]=function(e){"use strict";var c=e.querySelector(".carousel"),l=new Flickity(c,{fullscreen:!0}),t=e.querySelector(".button");t.addEventListener("click",function(){l.viewFullscreen()})}; FlickityDocs.insert=function(e){"use strict";var t=e.querySelector(".carousel"),i=new Flickity(t,{initialIndex:1}),c=i.cells.length+1,l=FlickityDocs.makeCellElem,n=e.querySelector(".button");n.addEventListener("click",function(){var e=[l(c++),l(c++)];i.insert(e,2)})}; FlickityDocs.keyhole=function(e){"use strict";var t="string"==typeof e.style.transform?"transform":"WebkitTransform",r=e.querySelector(".carousel"),l=new Flickity(r,{imagesLoaded:!0}),o=r.querySelectorAll(".keyhole-cell img");l.on("scroll",function(){l.slides.forEach(function(e,r){var s=o[r],c=(e.target+l.x)*-1/3;s.style[t]="translateX("+c+"px)"})})}; FlickityDocs.next=function(e){"use strict";var t=e.querySelector(".carousel"),n=new Flickity(t),c=e.querySelector(".button--next");c.addEventListener("click",function(){n.next()});var r=e.querySelector(".button--next-wrapped");r.addEventListener("click",function(){n.next(!0)})}; FlickityDocs.parallax=function(l){"use strict";function e(l,e,r){l.style.left=100*(.5-(.5+4*r)*t*e)+"%"}var r=l.querySelector(".carousel"),a=new Flickity(r),t=.6,c=.8,o=1.25,i=l.querySelector(".parallax__layer--bg"),n=l.querySelector(".parallax__layer--fg");a.on("scroll",function(l){e(i,c,l),e(n,o,l)}),a.reposition()}; FlickityDocs.player=function(e){"use strict";function t(){u.textContent=r.player.state}var n=e.querySelector(".carousel"),r=new Flickity(n,{autoPlay:1e3}),u=e.querySelector(".player-status");t(),e.querySelector(".button--play").addEventListener("click",function(){r.playPlayer(),t()}),e.querySelector(".button--stop").addEventListener("click",function(){r.stopPlayer(),t()}),e.querySelector(".button--pause").addEventListener("click",function(){r.pausePlayer(),t()}),e.querySelector(".button--unpause").addEventListener("click",function(){r.unpausePlayer(),t()})}; FlickityDocs.prepend=function(e){"use strict";var c=e.querySelector(".carousel"),t=new Flickity(c),l=t.cells.length+1,i=FlickityDocs.makeCellElem,n=e.querySelector(".button");n.addEventListener("click",function(){t.prepend([i(l++),i(l++)])})}; FlickityDocs.previous=function(e){"use strict";var r=e.querySelector(".carousel"),t=new Flickity(r),i=e.querySelector(".button--previous");i.addEventListener("click",function(){t.previous()});var c=e.querySelector(".button--previous-wrapped");c.addEventListener("click",function(){t.previous(!0)})}; FlickityDocs["progress-bar"]=function(r){"use strict";var e=r.querySelector(".carousel"),t=r.querySelector(".progress-bar__bar"),o=new Flickity(e);o.on("scroll",function(r){r=Math.max(0,Math.min(1,r)),t.style.width=100*r+"%"}),o.reposition()}; FlickityDocs.remove=function(i){"use strict";var e=i.querySelector(".carousel"),c=new Flickity(e,{initialIndex:1});c.on("staticClick",function(i,e,t){t&&c.remove(t)})}; FlickityDocs.reposition=function(i){"use strict";var t=i.querySelector(".carousel"),c=new Flickity(t);c.on("staticClick",function(i,t,e){e&&(e.classList.toggle("is-expanded"),c.reposition())})}; FlickityDocs.resize=function(e){"use strict";var t=e.querySelector(".carousel"),i=new Flickity(t),c=e.querySelector(".button");c.addEventListener("click",function(){t.classList.toggle("is-expanded"),i.resize()})}; FlickityDocs["resize-show"]=function(e){"use strict";var t=e.querySelector(".carousel"),c=new Flickity(t),i=e.querySelector(".button");i.addEventListener("click",function(){t.style.display="block",c.resize()})}; FlickityDocs.select=function(t){"use strict";var e=window.fizzyUIUtils,r=new Flickity(t.querySelector(".carousel")),c=t.querySelector(".button-group"),i=e.makeArray(c.querySelectorAll(".button"));filterBind(c,"click",".button",function(t){var e=i.indexOf(t.target);r.select(e)})}; FlickityDocs["select-cell"]=function(e){"use strict";var t=window.fizzyUIUtils,l=new Flickity(e.querySelector(".carousel"),{groupCells:!0}),r=e.querySelector(".button-group"),c=t.makeArray(r.querySelectorAll(".button"));filterBind(r,"click",".button",function(e){var t=c.indexOf(e.target);l.selectCell(t)})}; FlickityDocs["select-cell-selector"]=function(e){"use strict";var t=new Flickity(e.querySelector(".carousel"),{groupCells:!0}),l=e.querySelector(".button-group");filterBind(l,"click",".button",function(e){var l=e.target.getAttribute("data-selector");t.selectCell(l)})}; FlickityDocs["select-instant"]=function(t){"use strict";var e=window.fizzyUIUtils,i=new Flickity(t.querySelector(".carousel")),r=t.querySelector(".button-group"),c=e.makeArray(r.querySelectorAll(".button"));filterBind(r,"click",".button",function(t){var e=c.indexOf(t.target);i.select(e,!1,!0)})}; FlickityDocs["static-click"]=function(c){"use strict";var i=c.querySelector(".carousel"),e=new Flickity(i,{initialIndex:1}),t=c.querySelector(".logger");e.on("staticClick",function(c,e,l,s){if(l){var r=i.querySelector(".is-clicked");r&&r.classList.remove("is-clicked"),l.classList.add("is-clicked"),t.textContent="Cell "+(s+1)+" clicked"}})}; !function(){"use strict";for(var t=document.querySelectorAll("[data-js]"),e=0;e<t.length;e++){var c=t[e],r=c.getAttribute("data-js"),a=FlickityDocs[r]||FizzyDocs[r];a&&a(c)}}();