!function(e){"use strict";function t(e){if(e){if("string"==typeof o[e])return e;e=e.charat(0).touppercase()+e.slice(1);for(var t,r=0,i=n.length;i>r;r++)if(t=n[r]+e,"string"==typeof o[t])return t}}var n="webkit moz ms ms o".split(" "),o=document.documentelement.style;"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof exports?module.exports=t:e.getstyleproperty=t}(window); !function(t){"use strict";function e(t){var e=parsefloat(t),r=-1===t.indexof("%")&&!isnan(e);return r&&e}function r(){}function i(){for(var t={width:0,height:0,innerwidth:0,innerheight:0,outerwidth:0,outerheight:0},e=0,r=d.length;r>e;e++){var i=d[e];t[i]=0}return t}function n(r){function n(){if(!p){p=!0;var i=t.getcomputedstyle;if(a=function(){var t=i?function(t){return i(t,null)}:function(t){return t.currentstyle};return function(e){var r=t(e);return r||o("style returned "+r+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),r}}(),u=r("boxsizing")){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[u]="border-box";var d=document.body||document.documentelement;d.appendchild(n);var f=a(n);g=200===e(f.width),d.removechild(n)}}}function f(t){if(n(),"string"==typeof t&&(t=document.queryselector(t)),t&&"object"==typeof t&&t.nodetype){var r=a(t);if("none"===r.display)return i();var o={};o.width=t.offsetwidth,o.height=t.offsetheight;for(var f=o.isborderbox=!(!u||!r[u]||"border-box"!==r[u]),p=0,l=d.length;l>p;p++){var y=d[p],c=r[y];c=h(t,c);var m=parsefloat(c);o[y]=isnan(m)?0:m}var s=o.paddingleft+o.paddingright,v=o.paddingtop+o.paddingbottom,b=o.marginleft+o.marginright,x=o.margintop+o.marginbottom,w=o.borderleftwidth+o.borderrightwidth,s=o.bordertopwidth+o.borderbottomwidth,w=f&&g,b=e(r.width);b!==!1&&(o.width=b+(w?0:s+w));var l=e(r.height);return l!==!1&&(o.height=l+(w?0:v+s)),o.innerwidth=o.width-(s+w),o.innerheight=o.height-(v+s),o.outerwidth=o.width+b,o.outerheight=o.height+x,o}}function h(e,r){if(t.getcomputedstyle||-1===r.indexof("%"))return r;var i=e.style,n=i.left,o=e.runtimestyle,d=o&&o.left;return d&&(o.left=e.currentstyle.left),i.left=r,r=i.pixelleft,i.left=n,d&&(o.left=d),r}var a,u,g,p=!1;return f}var o="undefined"==typeof console?r:function(t){console.error(t)},d=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"];"function"==typeof define&&define.amd?define(["get-style-property/get-style-property"],n):"object"==typeof exports?module.exports=n(require("desandro-get-style-property")):t.getsize=n(t.getstyleproperty)}(window); !function(e){"use strict";function t(e,t){return e[i](t)}function n(e){if(!e.parentnode){var t=document.createdocumentfragment();t.appendchild(e)}}function r(e,t){n(e);for(var r=e.parentnode.queryselectorall(t),o=0,c=r.length;c>o;o++)if(r[o]===e)return!0;return!1}function o(e,r){return n(e),t(e,r)}var c,i=function(){if(e.matchesselector)return"matchesselector";for(var t=["webkit","moz","ms","o"],n=0,r=t.length;r>n;n++){var o=t[n],c=o+"matchesselector";if(e[c])return c}}();if(i){var u=document.createelement("div"),f=t(u,"div");c=f?t:o}else c=r;"function"==typeof define&&define.amd?define(function(){return c}):"object"==typeof exports?module.exports=c:window.matchesselector=c}(element.prototype); (function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var r=e.prototype,i=this,s=i.eventemitter;r.getlisteners=function(e){var t,n,r=this._getevents();if(e instanceof regexp){t={};for(n in r)r.hasownproperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},r.flattenlisteners=function(e){var t,n=[];for(t=0;te;e++){var i=a[e];i()}}function d(d){return"complete"===o.readystate?i():(d.bind(o,"domcontentloaded",n),d.bind(o,"readystatechange",n),d.bind(e,"load",n)),t}var o=e.document,a=[];t.isready=!1,"function"==typeof define&&define.amd?define(["eventie/eventie"],d):"object"==typeof exports?module.exports=d(require("eventie")):e.docready=d(e.eventie)}(window); !function(s){"use strict";function e(s){return new regexp("(^|\\s+)"+s+"(\\s+|$)")}function n(s,e){var n=t(s,e)?c:a;n(s,e)}var t,a,c;"classlist"in document.documentelement?(t=function(s,e){return s.classlist.contains(e)},a=function(s,e){s.classlist.add(e)},c=function(s,e){s.classlist.remove(e)}):(t=function(s,n){return e(n).test(s.classname)},a=function(s,e){t(s,e)||(s.classname=s.classname+" "+e)},c=function(s,n){s.classname=s.classname.replace(e(n)," ")});var o={hasclass:t,addclass:a,removeclass:c,toggleclass:n,has:t,add:a,remove:c,toggle:n};"function"==typeof define&&define.amd?define(o):"object"==typeof exports?module.exports=o:s.classie=o}(window); !function(e,t){"use strict";"function"==typeof define&&define.amd?define(["eventemitter/eventemitter","eventie/eventie"],function(i,n){return t(e,i,n)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesloaded=t(e,e.eventemitter,e.eventie)}(window,function(e,t,i){"use strict";function n(e,t){for(var i in t)e[i]=t[i];return e}function o(e){return"[object array]"===d.call(e)}function r(e){var t=[];if(o(e))t=e;else if("number"==typeof e.length)for(var i=0,n=e.length;n>i;i++)t.push(e[i]);else t.push(e);return t}function s(e,t,i){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.queryselectorall(e)),this.elements=r(e),this.options=n({},this.options),"function"==typeof t?i=t:n(this.options,t),i&&this.on("always",i),this.getimages(),c&&(this.jqdeferred=new c.deferred);var o=this;settimeout(function(){o.check()})}function h(e){this.img=e}function f(e){this.src=e,p[e]=this}var c=e.jquery,a=e.console,u="undefined"!=typeof a,d=object.prototype.tostring;s.prototype=new t,s.prototype.options={},s.prototype.getimages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var i=this.elements[e];"img"===i.nodename&&this.addimage(i);var n=i.nodetype;if(n&&(1===n||9===n||11===n))for(var o=i.queryselectorall("img"),r=0,s=o.length;s>r;r++){var h=o[r];this.addimage(h)}}},s.prototype.addimage=function(e){var t=new h(e);this.images.push(t)},s.prototype.check=function(){function e(e,o){return t.options.debug&&u&&a.log("confirm",e,o),t.progress(e),i++,i===n&&t.complete(),!0}var t=this,i=0,n=this.images.length;if(this.hasanybroken=!1,!n)return void this.complete();for(var o=0;n>o;o++){var r=this.images[o];r.on("confirm",e),r.check()}},s.prototype.progress=function(e){this.hasanybroken=this.hasanybroken||!e.isloaded;var t=this;settimeout(function(){t.emit("progress",t,e),t.jqdeferred&&t.jqdeferred.notify&&t.jqdeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasanybroken?"fail":"done";this.iscomplete=!0;var t=this;settimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqdeferred){var i=t.hasanybroken?"reject":"resolve";t.jqdeferred[i](t)}})},c&&(c.fn.imagesloaded=function(e,t){var i=new s(this,e,t);return i.jqdeferred.promise(c(this))}),h.prototype=new t,h.prototype.check=function(){var e=p[this.img.src]||new f(this.img.src);if(e.isconfirmed)return void this.confirm(e.isloaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalwidth)return void this.confirm(0!==this.img.naturalwidth,"naturalwidth");var t=this;e.on("confirm",function(e,i){return t.confirm(e.isloaded,i),!0}),e.check()},h.prototype.confirm=function(e,t){this.isloaded=e,this.emit("confirm",this,t)};var p={};return f.prototype=new t,f.prototype.check=function(){if(!this.ischecked){var e=new image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.src,this.ischecked=!0}},f.prototype.handleevent=function(e){var t="on"+e.type;this[t]&&this[t](e)},f.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindproxyevents(e)},f.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindproxyevents(e)},f.prototype.confirm=function(e,t){this.isconfirmed=!0,this.isloaded=e,this.emit("confirm",this,t)},f.prototype.unbindproxyevents=function(e){i.unbind(e.target,"load",this),i.unbind(e.target,"error",this)},s}); !function(e,t){"use strict";"function"==typeof define&&define.amd?define(["doc-ready/doc-ready","matches-selector/matches-selector"],function(n,r){return t(e,n,r)}):"object"==typeof exports?module.exports=t(e,require("doc-ready"),require("desandro-matches-selector")):e.utils=t(e,e.docready,e.matchesselector)}(window,function(e,t,n){"use strict";function r(e){return e.replace(/(.)([a-z])/g,function(e,t,n){return t+"-"+n}).tolowercase()}var o={};o.extend=function(e,t){for(var n in t)e[n]=t[n];return e},o.modulo=function(e,t){return(e%t+t)%t};var u=object.prototype.tostring;o.isarray=function(e){return"[object array]"==u.call(e)},o.makearray=function(e){var t=[];if(o.isarray(e))t=e;else if(e&&"number"==typeof e.length)for(var n=0,r=e.length;r>n;n++)t.push(e[n]);else t.push(e);return t},o.indexof=array.prototype.indexof?function(e,t){return e.indexof(t)}:function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},o.removefrom=function(e,t){var n=o.indexof(t,e);-1!=n&&t.splice(n,1)},o.iselement="function"==typeof htmlelement||"object"==typeof htmlelement?function(e){return e instanceof htmlelement}:function(e){return e&&"object"==typeof e&&1==e.nodetype&&"string"==typeof e.nodename},o.settext=function(){function e(e,n){t=t||(void 0!==document.documentelement.textcontent?"textcontent":"innertext"),e[t]=n}var t;return e}(),o.getparent=function(e,t){for(;e!=document.body;)if(e=e.parentnode,n(e,t))return e},o.getqueryelement=function(e){return"string"==typeof e?document.queryselector(e):e},o.filterfindelements=function(e,t){e=o.makearray(e);for(var r=[],u=0,i=e.length;i>u;u++){var c=e[u];if(o.iselement(c))if(t){n(c,t)&&r.push(c);for(var f=c.queryselectorall(t),a=0,s=f.length;s>a;a++)r.push(f[a])}else r.push(c)}return r},o.debouncemethod=function(e,t,n){var r=e.prototype[t],o=t+"timeout";e.prototype[t]=function(){var e=this[o];e&&cleartimeout(e);var t=arguments,u=this;this[o]=settimeout(function(){r.apply(u,t),delete u[o]},n||100)}};var i=e.jquery;return o.htmlinit=function(e,n){t(function(){for(var t=r(n),o=document.queryselectorall(".js-"+t),u="data-"+t+"-options",c=0,f=o.length;f>c;c++){var a,s=o[c],l=s.getattribute(u);try{a=l&&json.parse(l)}catch(d){console&&console.error("error parsing "+u+" on "+s.nodename.tolowercase()+(s.id?"#"+s.id:"")+": "+d);continue}var m=new e(s,a);i&&i.data(s,n,m)}})},o}); !function(t,n){"use strict";"function"==typeof define&&define.amd?define(["eventie/eventie"],function(o){return n(t,o)}):"object"==typeof exports?module.exports=n(t,require("eventie")):t.unipointer=n(t,t.eventie)}(window,function(t,n){"use strict";function o(){}function e(){}function i(){return!1}e.prototype.handleevent=function(t){var n="on"+t.type;this[n]&&this[n](t)},e.prototype.gettouch=function(t){for(var n=0,o=t.length;o>n;n++){var e=t[n];if(e.identifier==this.pointeridentifier)return e}},e.prototype.bindhandles=function(n){var o;o=t.navigator.pointerenabled?this.bindpointer:t.navigator.mspointerenabled?this.bindmspointer:this.bindmousetouch,n=void 0===n?!0:!!n;for(var e=0,i=this.handles.length;i>e;e++){var r=this.handles[e];o.call(this,r,n)}},e.prototype.bindpointer=function(t,o){var e=o?"bind":"unbind";n[e](t,"pointerdown",this),t.style.touchaction=o?"none":""},e.prototype.bindmspointer=function(t,o){var e=o?"bind":"unbind";n[e](t,"mspointerdown",this),t.style.mstouchaction=o?"none":""},e.prototype.bindmousetouch=function(t,o){var e=o?"bind":"unbind";n[e](t,"mousedown",this),n[e](t,"touchstart",this),o&&p(t)};var r="attachevent"in document.documentelement,p=r?function(t){"img"==t.nodename&&(t.ondragstart=i);for(var n=t.queryselectorall("img"),o=0,e=n.length;e>o;o++){var r=n[o];r.ondragstart=i}}:o;e.prototype.onmousedown=function(t){var n=t.button;n&&0!==n&&1!==n||this._pointerdown(t,t)},e.prototype.ontouchstart=function(t){this._pointerdown(t,t.changedtouches[0])},e.prototype.onmspointerdown=e.prototype.onpointerdown=function(t){this._pointerdown(t,t)};var s={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],mspointerdown:["mspointermove","mspointerup","mspointercancel"]};return e.prototype._pointerdown=function(n,o){this.ispointerdown||(this.ispointerdown=!0,this.pointeridentifier=void 0!==o.pointerid?o.pointerid:o.identifier,this._bindpoststartevents({events:s[n.type],node:n.preventdefault?t:document}),this.pointerdown(n,o),this.emitevent("pointerdown",[this,n,o]))},e.prototype.pointerdown=o,e.prototype._bindpoststartevents=function(t){for(var o=0,e=t.events.length;e>o;o++){var i=t.events[o];n.bind(t.node,i,this)}this._boundpointerevents=t},e.prototype._unbindpoststartevents=function(){var t=this._boundpointerevents;if(t&&t.events){for(var o=0,e=t.events.length;e>o;o++){var i=t.events[o];n.unbind(t.node,i,this)}delete this._boundpointerevents}},e.prototype.onmousemove=function(t){this._pointermove(t,t)},e.prototype.onmspointermove=e.prototype.onpointermove=function(t){t.pointerid==this.pointeridentifier&&this._pointermove(t,t)},e.prototype.ontouchmove=function(t){var n=this.gettouch(t.changedtouches);n&&this._pointermove(t,n)},e.prototype._pointermove=function(t,n){this.pointermove(t,n),this.emitevent("pointermove",[this,t,n])},e.prototype.pointermove=o,e.prototype.onmouseup=function(t){this._pointerup(t,t)},e.prototype.onmspointerup=e.prototype.onpointerup=function(t){t.pointerid==this.pointeridentifier&&this._pointerup(t,t)},e.prototype.ontouchend=function(t){var n=this.gettouch(t.changedtouches);n&&this._pointerup(t,n)},e.prototype._pointerup=function(t,n){this.ispointerdown=!1,delete this.pointeridentifier,this._unbindpoststartevents(),this.pointerup(t,n),this.emitevent("pointerup",[this,t,n])},e.prototype.pointerup=o,e.prototype.onmspointercancel=e.prototype.onpointercancel=function(t){t.pointerid==this.pointeridentifier&&this._pointerup(t,t)},e.prototype.ontouchcancel=function(t){var n=this.gettouch(t.changedtouches);this._pointerup(t,n)},e.getpointerpoint=function(t){return{x:void 0!==t.pagex?t.pagex:t.clientx,y:void 0!==t.pagey?t.pagey:t.clienty}},e.setpointerpoint=function(t,n){t.x=void 0!==n.pagex?n.pagex:n.clientx,t.y=void 0!==n.pagey?n.pagey:n.clienty},e}); !function(t,e){"use strict";"function"==typeof define&&define.amd?define(["get-size/get-size"],function(i){return e(t,i)}):"object"==typeof exports?module.exports=e(t,require("get-size")):(t.flickity=t.flickity||{},t.flickity.cell=e(t,t.getsize))}(window,function(t,e){"use strict";function i(t,e){this.element=t,this.parent=e,this.create()}return i.prototype.create=function(){this.element.style.position="absolute",this.x=0,this.shift=0},i.prototype.destroy=function(){this.element.style.position="";var t=this.parent.originside;this.element.style[t]=""},i.prototype.getsize=function(){this.size=e(this.element)},i.prototype.setposition=function(t){this.x=t,this.setdefaulttarget(),this.renderposition(t)},i.prototype.setdefaulttarget=function(){var t="left"==this.parent.originside?"marginleft":"marginright";this.target=this.x+this.size[t]+this.size.width*this.parent.cellalign},i.prototype.renderposition=function(t){var e=this.parent.originside;this.element.style[e]=this.parent.getpositionvalue(t)},i.prototype.wrapshift=function(t){this.shift=t,this.renderposition(this.x+this.parent.slideablewidth*t)},i.prototype.remove=function(){this.element.parentnode.removechild(this.element)},i}); !function(t,e){"use strict";"function"==typeof define&&define.amd?define(["./utils"],function(i){return e(t,i)}):"object"==typeof exports?module.exports=e(t,require("./utils")):(t.flickity=t.flickity||{},t.flickity.prevnextbutton=e(t,t.utils))}(window,function(t,e){"use strict";function i(t,e){this.direction=t,this.parent=e,this._create()}var n="http://www.w3.org/2000/svg",s=function(){function t(){if(void 0!==e)return e;var t=document.createelement("div");return t.innerhtml="",e=(t.firstchild&&t.firstchild.namespaceuri)==n}var e;return t}();return i.prototype._create=function(){this.isenabled=!0,this.isprevious=-1==this.direction;var t=this.parent.options.righttoleft?1:-1;if(this.isleft=this.direction==t,this.element=document.createelement("button"),this.element.classname="flickity-prev-next-button",this.element.classname+=this.isprevious?" previous":" next",s()){var e=this.createsvg();this.element.appendchild(e)}else this.setarrowtext(),this.element.classname+=" no-svg";var i=this;this.onselect=function(){i.update()},this.parent.on("select",this.onselect),this.element.onclick=function(){i.onclick()}},i.prototype.activate=function(){this.parent.element.appendchild(this.element)},i.prototype.deactivate=function(){this.parent.element.removechild(this.element)},i.prototype.createsvg=function(){var t=document.createelementns(n,"svg");t.setattribute("viewbox","0 0 100 100");var e=document.createelementns(n,"path");e.setattribute("d","m 50,0 l 60,10 l 20,50 l 60,90 l 50,100 l 0,50 z"),e.setattribute("class","arrow");var i=this.isleft?"translate(15,0)":"translate(85,100) rotate(180)";return e.setattribute("transform",i),t.appendchild(e),t},i.prototype.setarrowtext=function(){var t=this.parent.options,i=this.isleft?t.leftarrowtext:t.rightarrowtext;e.settext(this.element,i)},i.prototype.onclick=function(){if(this.isenabled){this.parent.uichange();var t=this.isprevious?"previous":"next";this.parent[t]()}},i.prototype.enable=function(){this.isenabled||(this.element.disabled=!1,this.isenabled=!0)},i.prototype.disable=function(){this.isenabled&&(this.element.disabled=!0,this.isenabled=!1)},i.prototype.update=function(){if(this.parent.options.wraparound)return void this.enable();var t=this.isprevious?0:this.parent.cells.length-1,e=this.parent.selectedindex==t?"disable":"enable";this[e]()},i}); !function(t,e){"use strict";"function"==typeof define&&define.amd?define(["eventie/eventie","./utils"],function(i,o){return e(t,i,o)}):"object"==typeof exports?module.exports=e(t,require("eventie"),require("./utils")):(t.flickity=t.flickity||{},t.flickity.pagedots=e(t,t.eventie,t.utils))}(window,function(t,e,i){"use strict";function o(t){this.parent=t,this._create()}return o.prototype._create=function(){this.holder=document.createelement("ol"),this.holder.classname="flickity-page-dots",this.dots=[];var t=this;this.onselect=function(){t.updateselected()},this.parent.on("select",this.onselect),e.bind(this.holder,"click",this)},o.prototype.activate=function(){this.setdots(),this.updateselected(),this.parent.element.appendchild(this.holder)},o.prototype.deactivate=function(){this.parent.element.removechild(this.holder)},o.prototype.setdots=function(){var t=this.parent.cells.length-this.dots.length;t>0?this.adddots(t):0>t&&this.removedots(-t)},o.prototype.adddots=function(t){for(var e=document.createdocumentfragment(),i=[];t;){var o=document.createelement("li");o.classname="dot",e.appendchild(o),i.push(o),t--}this.holder.appendchild(e),this.dots=this.dots.concat(i)},o.prototype.removedots=function(t){for(var e=this.dots.splice(this.dots.length-t,t),i=0,o=e.length;o>i;i++){var s=e[i];this.holder.removechild(s)}},o.prototype.updateselected=function(){this.selecteddot&&(this.selecteddot.classname="dot"),this.selecteddot=this.dots[this.parent.selectedindex],this.selecteddot.classname="dot is-selected"},o.prototype.handleevent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onclick=function(t){var e=t.target;if("li"==e.nodename){this.parent.uichange();var o=i.indexof(this.dots,e);this.parent.select(o)}},o}); !function(t,i){"use strict";"function"==typeof define&&define.amd?define(function(){return i()}):"object"==typeof exports?module.exports=i():(t.flickity=t.flickity||{},t.flickity.player=i())}(window,function(){"use strict";function t(t){this.isplaying=!1,this.parent=t}return t.prototype.play=function(){this.isplaying=!0,delete this.ispaused,this.tick()},t.prototype.tick=function(){if(this.isplaying&&!this.ispaused){var t=this.parent.options.autoplay;t="number"==typeof t?t:3e3;var i=this;this.timeout=settimeout(function(){i.parent.next(!0),i.tick()},t)}},t.prototype.stop=function(){this.isplaying=!1,delete this.ispaused,this.clear()},t.prototype.clear=function(){cleartimeout(this.timeout)},t.prototype.pause=function(){this.isplaying&&(this.ispaused=!0,this.clear())},t.prototype.unpause=function(){this.ispaused&&this.play()},t}); !function(t,i){"use strict";"function"==typeof define&&define.amd?define(["./unipointer","classie/classie","eventie/eventie","./utils"],function(e,s,n){return i(t,e,s,n)}):"object"==typeof exports?module.exports=i(t,require("./unipointer"),require("desandro-classie"),require("eventie"),require("./utils")):(t.flickity=t.flickity||{},t.flickity.dragprototype=i(t,t.unipointer,t.classie,t.eventie,t.utils))}(window,function(t,i,e,s,n){"use strict";function r(t){t.preventdefault?t.preventdefault():t.returnvalue=!1}var o={};n.extend(o,i.prototype),o.binddrag=function(){this.options.draggable&&(this.handles=[this.viewport],this.bindhandles(),s.bind(this.viewport,"click",this))},o.unbinddrag=function(){this.options.draggable&&(this.bindhandles(!1),s.unbind(this.viewport,"click",this))};var a={input:!0,a:!0,button:!0};return o.pointerdown=function(t,s){var n=t.target.nodename,o="touchstart"==t.type,h=a[n];(!o||o&&!h)&&r(t);var l=document.activeelement;l&&l.blur&&l!=this.element&&l.blur(),this.options.accessibility&&"input"!=n&&this.element.focus(),this.velocity=0,this.pointerdownpoint=i.getpointerpoint(s),this.player.stop(),e.add(this.viewport,"is-pointer-down")},o.pointermove=function(t,e){var s=i.getpointerpoint(e),n=s.x-this.pointerdownpoint.x;!this.isdragging&&math.abs(n)>3&&this.dragstart(t,e),this.dragmove(s,t,e)},o.pointerup=function(t,i){this.isdragging?this.dragend(t,i):this.staticclick(t,i),e.remove(this.viewport,"is-pointer-down")},o.dragstart=function(t,e){this.isdragging=!0,this.dragstartpoint=i.getpointerpoint(e),this.dragstartposition=this.x,this.startanimation(),this.ispreventingclicks=!0,this.dispatchevent("dragstart",t,[e])},o.dragmove=function(t,i,e){if(this.isdragging){this.previousdragx=this.x;var s=t.x-this.dragstartpoint.x,n=this.options.righttoleft?-1:1;if(this.x=this.dragstartposition+s*n,!this.options.wraparound&&this.cells.length){var r=math.max(-this.cells[0].target,this.dragstartposition);this.x=this.x>r?.5*(this.x-r)+r:this.x;var o=math.min(-this.getlastcell().target,this.dragstartposition);this.x=this.xthis.cells[0].target&&-s=t}:function(t,i){return i>t};r(i,n)&&(s+=e,n=i,i=this.getcelldistance(-t,s),null!==i);)i=math.abs(i);return{distance:n,index:s-e}},o.getcelldistance=function(t,i){var e=this.cells.length,s=this.options.wraparound?n.modulo(i,e):i,r=this.cells[s];if(!r)return null;var o=this.options.wraparound?this.slideablewidth*math.floor(i/e):0;return t-(r.target+o)},o.dragendboostselect=function(){var t=this.getcelldistance(-this.x,this.selectedindex);return t>0&&this.velocity<-1?1:0>t&&this.velocity>1?-1:0},o.onclick=function(t){this.ispreventingclicks&&r(t)},o.staticclick=function(t,i){"input"==t.target.nodename&&"text"==t.target.type&&t.target.focus(),this.dispatchevent("staticclick",t,[i])},o}); !function(t,i){"use strict";"function"==typeof define&&define.amd?define(["get-style-property/get-style-property","./utils"],function(e,s){return i(t,e,s)}):"object"==typeof exports?module.exports=i(t,require("desandro-get-style-property"),require("./utils")):(t.flickity=t.flickity||{},t.flickity.animateprototype=i(t,t.getstyleproperty,t.utils))}(window,function(t,i,e){"use strict";for(var s,n=0,o="webkit moz ms o".split(" "),r=t.requestanimationframe,h=t.cancelanimationframe,l=0;l2&&(this.isanimating=!1,delete this.isfreescrolling,u&&this.positionslider(),this.dispatchevent("settle"))},a.shiftwrapcells=function(t){var i=this.cursorposition+t;this._shiftcells(this.beforeshiftcells,i,-1);var e=this.size.innerwidth-(t+this.slideablewidth+this.cursorposition);this._shiftcells(this.aftershiftcells,e,1)},a._shiftcells=function(t,i,e){for(var s=0,n=t.length;n>s;s++){var o=t[s],r=i>0?e:0;o.wrapshift(r),i-=o.size.outerwidth}},a._unshiftcells=function(t){if(t&&t.length)for(var i=0,e=t.length;e>i;i++)t[i].wrapshift(0)},a.updatephysics=function(){this.velocity+=this.accel,this.x+=this.velocity,this.velocity*=this.getfrictionfactor(),this.accel=0},a.applyforce=function(t){this.accel+=t},a.getfrictionfactor=function(){return 1-this.options[this.isfreescrolling?"freescrollfriction":"friction"]},a.getrestingposition=function(){return this.x+this.velocity/(1-this.getfrictionfactor())},a.applyselectedattraction=function(){if(!this.ispointerdown&&!this.isfreescrolling&&this.cells.length){var t=this.cells[this.selectedindex],i=this.options.wraparound?this.slideablewidth*math.floor(this.selectedindex/this.cells.length):0,e=-1*(t.target+i)-this.x,s=e*this.options.selectedattraction;this.applyforce(s)}},a}); !function(e,t){"use strict";"function"==typeof define&&define.amd?define(["./utils"],function(i){return t(e,i)}):"object"==typeof exports?module.exports=t(e,require("./utils")):(e.flickity=e.flickity||{},e.flickity.cellchangeprototype=t(e,e.utils))}(window,function(e,t){"use strict";function i(e){for(var t=document.createdocumentfragment(),i=0,s=e.length;s>i;i++){var l=e[i];t.appendchild(l.element)}return t}var s={};return s.insert=function(e,t){var s=this._makecells(e);if(s&&s.length){var l=this.cells.length;t=void 0===t?l:t;var n=i(s),c=t==l;if(c)this.slider.appendchild(n);else{var h=this.cells[t].element;this.slider.insertbefore(n,h)}if(0===t)this.cells=s.concat(this.cells);else if(c)this.cells=this.cells.concat(s);else{var o=this.cells.splice(t,l-t);this.cells=this.cells.concat(s).concat(o)}this._sizecells(s),this._celladdedremoved(t)}},s.append=function(e){this.insert(e,this.cells.length)},s.prepend=function(e){this.insert(e,0)},s.remove=function(e){for(var i=this.getcells(e),s=0,l=i.length;l>s;s++){var n=i[s];n.remove(),t.removefrom(n,this.cells)}i.length&&this._celladdedremoved(0)},s._celladdedremoved=function(e){this.pagedots&&this.pagedots.setdots(),this.selectedindex=math.max(0,math.min(this.cells.length-1,this.selectedindex)),this.cellchange(e)},s.cellsizechange=function(e){var i=this.getcell(e);if(i){i.getsize();var s=t.indexof(this.cells,i);this.cellchange(s)}},s.cellchange=function(e){e=e||0,this._positioncells(e),this._getwrapshiftcells(),this.setcontainersize(),this.options.freescroll?this.positionslider():this.select(this.selectedindex)},s}); !function(t,e){"use strict";if("function"==typeof define&&define.amd)define(["classie/classie","eventemitter/eventemitter","eventie/eventie","get-size/get-size","./utils","./cell","./prev-next-button","./page-dots","./player","./drag","./animate","./cell-change"],function(i,s,o,n,l,r,h,a,c,p,d,u){return e(t,i,s,o,n,l,r,h,a,c,p,d,u)});else if("object"==typeof exports)module.exports=e(t,require("desandro-classie"),require("wolfy87-eventemitter"),require("eventie"),require("get-size"),require("./utils"),require("./cell"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./drag"),require("./animate"),require("./cell-change"));else{var i=t.flickity;t.flickity=e(t,t.classie,t.eventemitter,t.eventie,t.getsize,t.utils,i.cell,i.prevnextbutton,i.pagedots,i.player,i.dragprototype,i.animateprototype,i.cellchangeprototype)}}(window,function(t,e,i,s,o,n,l,r,h,a,c,p,d){"use strict";function u(t,e){for(;t.children.length;)e.appendchild(t.children[0])}function f(t,e){var i=n.getqueryelement(t);return i?(this.element=i,v&&(this.$element=v(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),void this._create()):void(m&&m.error("bad element for flickity: "+(i||t)))}var v=t.jquery,g=t.getcomputedstyle,m=t.console,y=t.imagesloaded,c=0,x={};f.defaults={accessibility:!0,freescrollfriction:.075,friction:.28,cellalign:"center",draggable:!0,percentposition:!0,pagedots:!0,prevnextbuttons:!0,resizebound:!0,selectedattraction:.025,leftarrowtext:"←",rightarrowtext:"→"},n.extend(f.prototype,i.prototype),f.prototype._create=function(){var e=this.guid=++c;this.element.flickityguid=e,x[e]=this,this.selectedindex=this.options.initialindex||0,this.restingframes=0,this.x=0,this.velocity=0,this.accel=0,this.originside=this.options.righttoleft?"right":"left",this.viewport=document.createelement("div"),this.viewport.classname="flickity-viewport",this._createslider(),this.options.prevnextbuttons&&(this.prevbutton=new r(-1,this),this.nextbutton=new r(1,this)),this.options.pagedots&&(this.pagedots=new h(this)),this.player=new a(this),(this.options.resizebound||this.options.watchcss)&&s.bind(t,"resize",this),this.options.watchcss?this.watchcss():this.activate()},f.prototype.option=function(t){n.extend(this.options,t)},f.prototype.activate=function(){this.isactive||(this.isactive=!0,e.add(this.element,"flickity-enabled"),u(this.element,this.slider),this.viewport.appendchild(this.slider),this.element.appendchild(this.viewport),this.getsize(),this.reloadcells(),this.setcontainersize(),this.prevbutton&&this.prevbutton.activate(),this.nextbutton&&this.nextbutton.activate(),this.pagedots&&this.pagedots.activate(),this.options.autoplay&&(this.player.play(),s.bind(this.element,"mouseenter",this)),this.positionslideratselected(),this.select(this.selectedindex),this.imagesloaded(),this.binddrag(),this.options.accessibility&&(this.element.tabindex=0,s.bind(this.element,"keydown",this)))},f.prototype._createslider=function(){var t=document.createelement("div");t.classname="flickity-slider",t.style[this.originside]=0,this.slider=t},f.prototype.reloadcells=function(){this.cells=this._makecells(this.slider.children),this.positioncells(this.cells),this._getwrapshiftcells(),this.setcontainersize()},f.prototype._makecells=function(t){for(var e=n.filterfindelements(t,this.options.cellselector),i=[],s=0,o=e.length;o>s;s++){var r=e[s],h=new l(r,this);i.push(h)}return i},f.prototype.getlastcell=function(){return this.cells[this.cells.length-1]},f.prototype.positioncells=function(){this._sizecells(this.cells),this._positioncells(0)},f.prototype._positioncells=function(t){this.maxcellheight=t?this.maxcellheight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerwidth}for(var s,o=this.cells.length,n=t;o>n;n++)s=this.cells[n],s.setposition(e),e+=s.size.outerwidth,this.maxcellheight=math.max(s.size.outerheight,this.maxcellheight);this.slideablewidth=e,this._containcells()},f.prototype._sizecells=function(t){for(var e=0,i=t.length;i>e;e++){var s=t[e];s.getsize()}},f.prototype.getsize=function(){this.size=o(this.element),this.setcellalign(),this.cursorposition=this.size.innerwidth*this.cellalign};var s={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};f.prototype.setcellalign=function(){var t=s[this.options.cellalign];this.cellalign=t?t[this.originside]:this.options.cellalign},f.prototype.setcontainersize=function(){this.viewport.style.height=this.maxcellheight+"px"},f.prototype._getwrapshiftcells=function(){if(this.options.wraparound){this._unshiftcells(this.beforeshiftcells),this._unshiftcells(this.aftershiftcells);var t=this.cursorposition,e=this.cells.length-1;this.beforeshiftcells=this._getgapcells(t,e,-1),t=this.size.innerwidth-this.cursorposition,this.aftershiftcells=this._getgapcells(t,0,1)}},f.prototype._getgapcells=function(t,e,i){for(var s=[];t>0;){var o=this.cells[e];if(!o)break;s.push(o),e+=i,t-=o.size.outerwidth}return s},f.prototype._containcells=function(){if(this.options.contain&&!this.options.wraparound)for(var t=this.getlastcell(),e=this.options.righttoleft?"marginleft":"marginright",i=this.slideablewidth-t.size[e],s=i-this.size.innerwidth*(1-this.cellalign),o=0,n=this.cells.length;n>o;o++){var l=this.cells[o];l.setdefaulttarget(),l.target=math.max(l.target,this.cursorposition),l.target=math.min(l.target,s)}},f.prototype.dispatchevent=function(t,e,i){var s=[e].concat(i);if(this.emitevent(t,s),v&&this.$element)if(e){var o=v.event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.prototype.select=function(t,e){this.isactive&&(this.options.wraparound&&(0>t?this.x-=this.slideablewidth:t>=this.cells.length&&(this.x+=this.slideablewidth)),(this.options.wraparound||e)&&(t=n.modulo(t,this.cells.length)),this.cells[t]&&(this.selectedindex=t,this.setselectedcell(),this.startanimation(),this.dispatchevent("select")))},f.prototype.previous=function(t){this.select(this.selectedindex-1,t)},f.prototype.next=function(t){this.select(this.selectedindex+1,t)},f.prototype.updateprevnextbuttons=function(){this.prevbutton&&this.prevbutton.update(),this.nextbutton&&this.nextbutton.update()},f.prototype.setselectedcell=function(){this._removeselectedcellclass(),this.selectedcell=this.cells[this.selectedindex],e.add(this.selectedcell.element,"is-selected")},f.prototype._removeselectedcellclass=function(){this.selectedcell&&e.remove(this.selectedcell.element,"is-selected")},f.prototype.uichange=function(){this.player.stop(),delete this.isfreescrolling},f.prototype.imagesloaded=function(){function t(t,i){var s=e.getcell(i.img),o=s.element||n.getparent(i.img,".flickity-slider > *");e.cellsizechange(o)}if(this.options.imagesloaded&&y){var e=this;y(this.slider).on("progress",t)}},f.prototype.getcell=function(t){for(var e=0,i=this.cells.length;i>e;e++){var s=this.cells[e];if(s.element==t)return s}},f.prototype.getcells=function(t){t=n.makearray(t);for(var e=[],i=0,s=t.length;s>i;i++){var o=t[i],l=this.getcell(o);l&&e.push(l)}return e},f.prototype.onresize=function(){this.watchcss(),this.resize()},n.debouncemethod(f,"onresize",150),f.prototype.resize=function(){this.isactive&&(this.getsize(),this.options.wraparound&&(this.x=n.modulo(this.x,this.slideablewidth)),this.positioncells(),this._getwrapshiftcells(),this.setcontainersize(),this.positionslideratselected())};var b=f.supportsconditionalcss=function(){var t;return function(){if(void 0!==t)return t;if(!g)return void(t=!1);var e=document.createelement("style"),i=document.createtextnode('body:after { content: "foo"; display: none; }');e.appendchild(i),document.head.appendchild(e);var s=g(document.body,":after").content;return t=-1!=s.indexof("foo"),document.head.removechild(e),t}}();return f.prototype.watchcss=function(){var t=this.options.watchcss;if(t){var e=b();if(!e){var i="fallbackon"==t?"activate":"deactivate";return void this[i]()}var s=g(this.element,":after").content;-1!=s.indexof("flickity")?this.activate():this.deactivate()}},f.prototype.onkeydown=function(t){if(this.options.accessibility&&(!document.activeelement||document.activeelement==this.element))if(37==t.keycode){var e=this.options.righttoleft?"next":"previous";this.uichange(),this[e]()}else if(39==t.keycode){var i=this.options.righttoleft?"previous":"next";this.uichange(),this[i]()}},f.prototype.onmouseenter=function(){this.player.pause(),s.bind(this.element,"mouseleave",this)},f.prototype.onmouseleave=function(){this.player.unpause(),s.unbind(this.element,"mouseleave",this)},f.prototype.deactivate=function(){if(this.isactive){e.remove(this.element,"flickity-enabled");for(var t=0,i=this.cells.length;i>t;t++){var o=this.cells[t];o.destroy()}this._removeselectedcellclass(),this.element.removechild(this.viewport),u(this.slider,this.element),this.prevbutton&&this.prevbutton.deactivate(),this.nextbutton&&this.nextbutton.deactivate(),this.pagedots&&this.pagedots.deactivate(),this.player.stop(),this.unbinddrag(),this.options.accessibility&&(this.element.removeattribute("tabindex"),s.unbind(this.element,"keydown",this)),this.isactive=!1,this.isanimating=!1}},f.prototype.destroy=function(){this.deactivate(),(this.options.resizebound||this.options.watch)&&s.unbind(t,"resize",this),delete this.element.flickityguid,delete x[this.guid]},n.extend(f.prototype,c),n.extend(f.prototype,p),n.extend(f.prototype,d),f.data=function(t){t=n.getqueryelement(t);var e=t&&t.flickityguid;return e&&x[e]},n.htmlinit(f,"flickity"),v&&v.bridget&&v.bridget("flickity",f),f.cell=l,f.prevnextbutton=r,f.pagedots=h,f.player=a,f});