PageSourceSearch

https://www.ssh.com/hubfs/hub_generated/template_assets/1/85450812…/template_flickity-1554118425418.min.js

js ssh.com collected 2026-10-01 08:39:25 UTC 56,984 bytes, 1 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.