1!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i;i="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,i.domDelegate=e()}}(function(){return function d(s,l,o){function e(p,t){if(!l[p]){if(!s[p]){var i="function"==typeof require&&require;if(!t&&i)return i(p,!0);if(n)return n(p,!0);var c=new Error("Cannot find module '"+p+"'");throw c.code="MODULE_NOT_FOUND",c}var a=l[p]={exports:{}};s[p][0].call(a.exports,function(n){var t=s[p][1][n];return e(t?t:n)},a,a.exports,d,s,l,o)}return l[p].exports}for(var n="function"==typeof require&&require,t=0;t<o.length;t++)e(o[t]);return e}({1:[function(e,i){"use strict";function o(e){this.listenerMap=[{},{}],e&&this.root(e),this.handle=o.prototype.handle.bind(this)}function l(e,i){return e.toLowerCase()===i.tagName.toLowerCase()}function d(e,i){return this.rootElement===window?i===document:this.rootElement===i}function n(e,i){return e===i.id}i.exports=o,o.prototype.root=function(e){var i,o=this.listenerMap;if(this.rootElement){for(i in o[1])o[1].hasOwnProperty(i)&&this.rootElement.removeEventListener(i,this.handle,!0);for(i in o[0])o[0].hasOwnProperty(i)&&this.rootElement.removeEventListener(i,this.handle,!1)}if(!e||!e.addEventListener)return this.rootElement&&delete this.rootElement,this;for(i in this.rootElement=e,o[1])o[1].hasOwnProperty(i)&&this.rootElement.addEventListener(i,this.handle,!0);for(i in o[0])o[0].hasOwnProperty(i)&&this.rootElement.addEventListener(i,this.handle,!1);return this},o.prototype.captureForType=function(t){return-1!==["blur","error","focus","load","resize","scroll"].indexOf(t)},o.prototype.on=function(t,e,i,p){var c,m,u,h;if(!t)throw new TypeError("Invalid event type: "+t);if("function"==typeof e&&(p=i,i=e,e=null),void 0===p&&(p=this.captureForType(t)),"function"!=typeof i)throw new TypeError("Handler must be a type of Function");return c=this.rootElement,m=this.listenerMap[p?1:0],m[t]||(c&&c.addEventListener(t,this.handle,p),m[t]=[]),e?/^[a-z]+$/i.test(e)?(h=e,u=l):/^#[a-z0-9\-_]+$/i.test(e)?(h=e.slice(1),u=n):(h=e,u=s):(h=null,u=d.bind(this)),m[t].push({selector:e,handler:i,matcher:u,matcherParam:h}),this},o.prototype.off=function(e,i,n,o){var r,a,s,l,d;if("function"==typeof i&&(o=n,n=i,i=null),void 0===o)return this.off(e,i,n,!0),this.off(e,i,n,!1),this;if(s=this.listenerMap[o?1:0],!e){for(d in s)s.hasOwnProperty(d)&&this.off(d,i,n);return this}if(l=s[e],!l||!l.length)return this;for(r=l.length-1;0<=r;r--)a=l[r],i&&i!==a.selector||n&&n!==a.handler||l.splice(r,1);return l.length||(delete s[e],this.rootElement&&this.rootElement.removeEventListener(e,this.handle,o)),this},o.prototype.handle=function(e){var t,n,o,r,a,s,l,h=e.type,f=[];if(!0!==e.ftLabsDelegateIgnore){switch(l=e.target,3===l.nodeType&&(l=l.parentNode),o=this.rootElement,r=e.eventPhase||(e.target===e.currentTarget?2:3)){case 1:f=this.listenerMap[1][h];break;case 2:this.listenerMap[0]&&this.listenerMap[0][h]&&(f=f.concat(this.listenerMap[0][h])),this.listenerMap[1]&&this.listenerMap[1][h]&&(f=f.concat(this.listenerMap[1][h]));break;case 3:f=this.listenerMap[0][h]}for(n=f.length;l&&n;){for(t=0;t<n&&(a=f[t]);t++)if(a.matcher.call(l,a.matcherParam,l)&&(s=this.fire(e,l,a)),!1===s)return e.ftLabsDelegateIgnore=!0,void e.preventDefault();if(l===o)break;n=f.length,l=l.parentElement}}},o.prototype.fire=function(t,e,i){return i.handler.call(e,t,e)};var s=function(e){if(e){var i=e.prototype;return i.matches||i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector}}(Element);o.prototype.destroy=function(){this.off(),this.root()}},{}],2:[function(e,i){"use strict";var n=e("./delegate");i.exports=function(e){return new n(e)},i.exports.Delegate=n},{"./delegate":1}]},{},[2])(2)});var disableBodyScroll=function(){var n,o=!1,a=!1,d=function(e){!1!==a&&e.target.closest(o)||e.preventDefault()},c=function(e){1===e.targetTouches.length&&(n=e.targetTouches[0].clientY)},l=function(e){if(1===e.targetTouches.length){var t=e.targetTouches[0].clientY-n;0===a.scrollTop&&0<t&&e.preventDefault(),a.scrollHeight-a.scrollTop<=a.clientHeight&&0>t&&e.preventDefault()}};return function(e,t){"undefined"!=typeof t&&(o=t,a=document.querySelector(t));var n=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){n=!0}}))}catch(t){}
1!0===e?(a&&(a.addEventListener("touchstart",c,!1),a.addEventListener("touchmove",l,!1)),document.body.addEventListener("touchmove",d,!!n&&{capture:!1,passive:!1})):(a&&(a.removeEventListener("touchstart",c,!1),a.removeEventListener("touchmove",l,!1)),document.body.removeEventListener("touchmove",d,!!n&&{capture:!1,passive:!1}))}}();!function(t){"use strict";function i(){var i=this;i.reads=[],i.writes=[],i.raf=l.bind(t),s("initialized",i)}function c(t){t.scheduled||(t.scheduled=!0,t.raf(n.bind(null,t)),s("flush scheduled"))}function n(e){s("flush");var t,n=e.writes,r=e.reads;try{s("flushing reads",r.length),o(r),s("flushing writes",n.length),o(n)}catch(i){t=i}if(e.scheduled=!1,(r.length||n.length)&&c(e),t){if(s("task errored",t.message),!e["catch"])throw t;e["catch"](t)}}function o(e){s("run tasks");for(var i;i=e.shift();)i()}function r(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function a(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}var s=function(){},l=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};i.prototype={constructor:i,measure:function(e,t){s("measure");var i=t?e.bind(t):e;return this.reads.push(i),c(this),i},mutate:function(e,t){s("mutate");var i=t?e.bind(t):e;return this.writes.push(i),c(this),i},clear:function(e){return s("clear",e),r(this.reads,e)||r(this.writes,e)},extend:function(t){if(s("extend",t),"object"!=typeof t)throw new Error("expected object");var i=Object.create(this);return a(i,t),i.fastdom=this,i.initialize&&i.initialize(),i},catch:null};var d=t.fastdom=t.fastdom||new i;"function"==typeof define?define(function(){return d}):"object"==typeof module&&(module.exports=d)}("undefined"==typeof window?this:window),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(s,i){"use strict";function e(g,a,p){function n(t,o,c){var r,m="$()."+g+"(\""+o+"\")";return t.each(function(t,i){var a=p.data(i,g);if(!a)return void d(g+" not initialized. Cannot call methods, i.e. "+m);var s=a[o];if(!s||"_"==o.charAt(0))return void d(m+" is not a valid method");var n=s.apply(a,c);r=void 0===r?n:r}),void 0===r?t:r}function e(t,r){t.each(function(t,i){var n=p.data(i,g);n?(n.option(r),n._init()):(n=new a(i,r),p.data(i,g,n))})}p=p||i||s.jQuery,p&&(a.prototype.option||(a.prototype.option=function(t){p.isPlainObject(t)&&(this.options=p.extend(!0,this.options,t))}),p.fn[g]=function(r){if("string"==typeof r){var i=t.call(arguments,1);return n(this,r,i)}return e(this,r),this},l(p))}function l(t){!t||t&&t.bridget||(t.bridget=e)}var t=Array.prototype.slice,n=s.console,d="undefined"==typeof n?function(){}:function(e){n.error(e)};return l(i||s.jQuery),e}),function(e,i){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",i):"object"==typeof module&&module.exports?module.exports=i():e.EvEmitter=i()}("undefined"==typeof window?this:window,function(){function e(){}var i=e.prototype;return i.on=function(i,n){if(i&&n){var o=this._events=this._events||{},t=o[i]=o[i]||[];return-1==t.indexOf(n)&&t.push(n),this}},i.once=function(i,n){if(i&&n){this.on(i,n);var o=this._onceEvents=this._onceEvents||{},t=o[i]=o[i]||{};return t[n]=!0,this}},i.off=function(i,n){var o=this._events&&this._events[i];if(o&&o.length){var t=o.indexOf(n);return-1!=t&&o.splice(t,1),this}},i.emitEvent=function(e,i){var o=this._events&&this._events[e];if(o&&o.length){o=o.slice(0),i=i||[];for(var r=this._onceEvents&&this._onceEvents[e],a=0;a<o.length;a++){var l=o[a],d=r&&r[l];d&&(this.off(e,l),delete r[l]),l.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,i){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return i()}):"object"==typeof module&&module.exports?module.exports=i():e.getSize=i()}(window,function(){"use strict";function d(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function a(){for(var e,o={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0;n<g;n++)e=l[n],o[e]=0;return o}function p(e){var t=getComputedStyle(e);return t||o("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function u(){if(!r){r=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var t=document.body||document.documentElement;t.appendChild(e);var o=p(e);n.isBoxSizeOuter=s=200==d(o.width),t.removeChild(e)}}function n(e){if(u(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var c=p(e);if("none"==c.display)return a();for(var o={width:e.offsetWidth,height:e.offsetHeight},n=o.isBorderBox="border-box"==c.boxSizing,i=0;i<g;i++){var m=l[i],h=c[m],v=parseFloat(h);o[m]=isNaN(v)?0:v}var T=o.paddingLeft+o.paddingRight,b=o.paddingTop+o.paddingBottom,E=o.marginLeft+o.marginRight,k=o.marginTop+o.marginBottom,P=o.borderLeftWidth+o.borderRightWidth,O=o.borderTopWidth+o.borderBottomWidth,w=n&&s,S=d(c.width);!1!==S&&(o.width=S+(w?0:T+P));var C=d(c.height);return!1!==C&&(o.height=C+(w?0:b+O)),o.innerWidth=o.width-(T+P),o.innerHeight=o.height-(b+O),o.outerWidth=o.width+E,o.outerHeight=o.height+k,o}}var s,o="undefined"==typeof console?function(){}:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],g=l.length,r=!1;return n}),function(e,i){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",i):"object"==typeof module&&module.exports?module.exports=i():e.matchesSelector=i()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],r=o+"MatchesSelector";if(t[r])return r}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(n,t){var m={};m.extend=function(t,e){for(var i in e)t[i]=e[i];return t},m.modulo=function(e,i){return(e%i+i)%i},m.makeArray=function(e){var i=[];if(Array.isArray(e))i=e;else if(e&&"object"==typeof e&&"number"==typeof e.length)for(var n=0;n<e.length;n++)i.push(e[n]);else i.push(e);return i},m.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},m.getParent=function(i,o){for(;i.parentNode&&i!=document.body;)if(i=i.parentNode,t(i,o))return i},m.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},m.handleEvent=function(e){var i="on"+e.type;this[i]&&this[i](e)},m.filterFindElements=function(i,s){i=m.makeArray(i);var n=[];return i.forEach(function(i){if(i instanceof HTMLElement){if(!s)return void n.push(i);t(i,s)&&n.push(i);for(var o=i.querySelectorAll(s),r=0;r<o.length;r++)n.push(o[r])}}),n},m.debounceMethod=function(i,t,n){var o=i.prototype[t],r=t+"Timeout";i.prototype[t]=function(){var a=this[r];a&&clearTimeout(a);var t=arguments,e=this;this[r]=setTimeout(function(){o.apply(e,t),delete e[r]},n||100)}},m.docReady=function(e){var i=document.readyState;"complete"==i||"interactive"==i?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},m.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var i=n.console;return m.htmlInit=function(e,t){m.docReady(function(){var o=m.toDashed(t),d="data-"+o,r=document.querySelectorAll("["+d+"]"),a=document.querySelectorAll(".js-"+o),s=m.makeArray(r).concat(m.makeArray(a)),p=n.jQuery;s.forEach(function(n){var o,a=n.getAttribute(d)||n.getAttribute(d+"-options");try{o=a&&JSON.parse(a)}catch(e){return void(i&&i.error("Error parsing "+d+" on "+n.className+": "+e))}var s=new e(n,o);p&&p.data(n,t,s)})})},m}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("get-size")):(t.Flickity=t.Flickity||{},t.Flickity.Cell=e(t,t.getSize))}(window,function(i,n){function o(e,i){this.element=e,this.parent=i,this.create()}var t=o.prototype;return t.create=function(){this.element.style.position="absolute",this.x=0,this.shift=0},t.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},t.getSize=function(){this.size=n(this.element)},t.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},t.updateTarget=t.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},t.renderPosition=function(e){var i=this.parent.originSide;this.element.style[i]=this.parent.getPositionValue(e)},t.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},t.remove=function(){this.element.parentNode.removeChild(this.element)},o}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/slide",i):"object"==typeof module&&module.exports?module.exports=i():(e.Flickity=e.Flickity||{},e.Flickity.Slide=i())}(window,function(){"use strict";function e(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var i=e.prototype;return i.addCell=function(e){if(this.cells.push(e),this.outerWidth+=e.size.outerWidth,this.height=Math.max(e.size.outerHeight,this.height),1==this.cells.length){this.x=e.x;var i=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=e.size[i]}},i.updateTarget=function(){var i=this.isOriginLeft?"marginRight":"marginLeft",n=this.getLastCell(),o=n?n.size[i]:0,t=this.outerWidth-(this.firstMargin+o);this.target=this.x+this.firstMargin+t*this.parent.cellAlign},i.getLastCell=function(){return this.cells[this.cells.length-1]},i.select=function(){this.changeSelectedClass("add")},i.unselect=function(){this.changeSelectedClass("remove")}
1,i.changeSelectedClass=function(e){this.cells.forEach(function(i){i.element.classList[e]("is-selected")})},i.getCellElements=function(){return this.cells.map(function(t){return t.element})},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("fizzy-ui-utils")):(t.Flickity=t.Flickity||{},t.Flickity.animatePrototype=e(t,t.fizzyUIUtils))}(window,function(t,a){var o=Math.round,s=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=0;s||(s=function(n){var r=new Date().getTime(),o=Math.max(0,16-(r-i)),t=setTimeout(n,o);return i=r+o,t});var l={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var e=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(e),this.isAnimating){var t=this;s(function(){t.animate()})}}},p=function(){var t=document.documentElement.style;return"string"==typeof t.transform?"transform":"WebkitTransform"}();return l.positionSlider=function(){var e=this.x;this.options.wrapAround&&1<this.cells.length&&(e=a.modulo(e,this.slideableWidth),e-=this.slideableWidth,this.shiftWrapCells(e)),e+=this.cursorPosition,e=this.options.rightToLeft&&p?-e:e;var s=this.getPositionValue(e);this.slider.style[p]=this.isAnimating?"translate3d("+s+",0,0)":"translateX("+s+")";var n=this.slides[0];if(n){var o=-this.x-n.target,i=o/this.slidesWidth;this.dispatchEvent("scroll",null,[i,o])}},l.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.positionSlider())},l.getPositionValue=function(t){return this.options.percentPosition?.01*o(1e4*(t/this.size.innerWidth))+"%":o(t)+"px"},l.settle=function(t){this.isPointerDown||o(100*this.x)!=o(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle"))},l.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},l._shiftCells=function(e,n,o){for(var r=0;r<e.length;r++){var a=e[r],s=0<n?o:0;a.wrapShift(s),n-=a.size.outerWidth}},l._unshiftCells=function(e){if(e&&e.length)for(var i=0;i<e.length;i++)e[i].wrapShift(0)},l.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},l.applyForce=function(t){this.velocity+=t},l.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},l.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},l.applyDragForce=function(){if(this.isPointerDown){var e=this.dragX-this.x,i=e-this.velocity;this.applyForce(i)}},l.applySelectedAttraction=function(){if(!this.isPointerDown&&!this.isFreeScrolling&&this.cells.length){var e=-1*this.selectedSlide.target-this.x,i=e*this.options.selectedAttraction;this.applyForce(i)}},l}),function(o,r){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(a,s,l,t,e,i){return r(o,a,s,l,t,e,i)});else if("object"==typeof module&&module.exports)module.exports=r(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
1de"),require("./animate"));else{var t=o.Flickity;o.Flickity=r(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}(window,function(r,n,o,_,a,s,d){function l(e,t){for(e=_.makeArray(e);e.length;)t.appendChild(e.shift())}function p(e,i){var n=_.getQueryElement(e);if(!n)return void(y&&y.error("Bad element for Flickity: "+(n||e)));if(this.element=n,this.element.flickityGUID){var o=b[this.element.flickityGUID];return o.option(i),o}u&&(this.$element=u(this.element)),this.options=_.extend({},this.constructor.defaults),this.option(i),this._create()}var c=Math.abs,m=Math.max,u=r.jQuery,g=r.getComputedStyle,y=r.console,h=0,b={};p.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},p.createMethods=[];var t=p.prototype;_.extend(t,n.prototype),t._create=function(){var e=this.guid=++h;this.element.flickityGUID=e,b[e]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&r.addEventListener("resize",this),p.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},t.option=function(t){_.extend(this.options,t)},t.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var i=this._filterFindCellElements(this.element.children);l(i,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var t,n=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==n&&this.cells[n]?n:0,this.select(t,!1,!0),this.isInitActivated=!0}},t._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},t._filterFindCellElements=function(t){return _.filterFindElements(t,this.options.cellSelector)},t.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},t._makeCells=function(e){var i=this._filterFindCellElements(e),n=i.map(function(e){return new a(e,this)},this);return n},t.getLastCell=function(){return this.cells[this.cells.length-1]},t.getLastSlide=function(){return this.slides[this.slides.length-1]},t.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},t._positionCells=function(e){e=e||0,this.maxCellHeight=e?this.maxCellHeight||0:0;var i=0;if(0<e){var s=this.cells[e-1];i=s.x+s.size.outerWidth}for(var o,d=this.cells.length,a=e;a<d;a++)o=this.cells[a],o.setPosition(i),i+=o.size.outerWidth,this.maxCellHeight=m(o.size.outerHeight,this.maxCellHeight);this.slideableWidth=i,this.updateSlides(),this._containSlides(),this.slidesWidth=d?this.getLastSlide().target-this.slides[0].target:0},t._sizeCells=function(t){t.forEach(function(t){t.getSize()})},t.updateSlides=function(){if(this.slides=[],this.cells.length){var r=new s(this);this.slides.push(r);var e="left"==this.originSide,l=e?"marginRight":"marginLeft",a=this._getCanCellFit();this.cells.forEach(function(n,i){if(!r.cells.length)return void r.addCell(n);var t=r.outerWidth-r.firstMargin+(n.size.outerWidth-n.size[l]);a.call(this,i,t)?r.addCell(n):(r.updateTarget(),r=new s(this),this.slides.push(r),r.addCell(n))},this),r.updateTarget(),this.updateSelectedSlide()}},t._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var i=parseInt(t,10);return function(e){return 0!=e%i}}var n="string"==typeof t&&t.match(/^(\d+)%$/),r=n?parseInt(n[1],10)/100:1;return function(t,i){return i<=(this.size.innerWidth+1)*r}},t._init=t.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},t.getSize=function(){this.size=o(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var v={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return t.setCellAlign=function(){var t=v[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},t.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},t._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var e=this.cursorPosition,t=this.cells.length-1;this.beforeShiftCells=this._getGapCells(e,t,-1),e=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(e,0,1)}},t._getGapCells=function(e,t,r){for(var a,l=[];0<e&&(a=this.cells[t],!!a);)l.push(a),t+=r,e-=a.size.outerWidth;return l}
1,t._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var r=this.options.rightToLeft,e=r?"marginRight":"marginLeft",t=r?"marginLeft":"marginRight",o=this.slideableWidth-this.getLastCell().size[t],i=o<this.size.innerWidth,a=this.cursorPosition+this.cells[0].size[e],s=o-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){i?t.target=o*this.cellAlign:(t.target=m(t.target,a),t.target=Math.min(t.target,s))},this)}},t.dispatchEvent=function(e,o,i){var r=o?[o].concat(i):i;if(this.emitEvent(e,r),u&&this.$element){e+=this.options.namespaceJQueryEvents?".flickity":"";var a=e;if(o){var s=u.Event(o);s.type=e,a=s}this.$element.trigger(a,i)}},t.select=function(t,i,o){this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||i)&&(t=_.modulo(t,this.slides.length)),this.slides[t]&&(this.selectedIndex=t,this.updateSelectedSlide(),o?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select"),this.dispatchEvent("cellSelect")))},t._wrapSelect=function(t){var l=this.slides.length,i=this.options.wrapAround&&1<l;if(!i)return t;var n=_.modulo(t,l),o=c(n-this.selectedIndex),r=c(n+l-this.selectedIndex),a=c(n-l-this.selectedIndex);!this.isDragSelect&&r<o?t+=l:!this.isDragSelect&&a<o&&(t-=l),0>t?this.x-=this.slideableWidth:t>=l&&(this.x+=this.slideableWidth)},t.previous=function(e,i){this.select(this.selectedIndex-1,e,i)},t.next=function(e,i){this.select(this.selectedIndex+1,e,i)},t.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},t.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},t.selectCell=function(e,t,r){var n;"number"==typeof e?n=this.cells[e]:("string"==typeof e&&(e=this.element.querySelector(e)),n=this.getCell(e));for(var a=0;n&&a<this.slides.length;a++){var s=this.slides[a],l=s.cells.indexOf(n);if(-1!=l)return void this.select(a,t,r)}},t.getCell=function(e){for(var i,n=0;n<this.cells.length;n++)if(i=this.cells[n],i.element==e)return i},t.getCells=function(e){e=_.makeArray(e);var i=[];return e.forEach(function(n){var e=this.getCell(n);e&&i.push(e)},this),i},t.getCellElements=function(){return this.cells.map(function(t){return t.element})},t.getParentCell=function(e){var t=this.getCell(e);return t?t:(e=_.getParent(e,".flickity-slider > *"),this.getCell(e))},t.getAdjacentCellElements=function(e,n){if(!e)return this.selectedSlide.getCellElements();n=void 0===n?this.selectedIndex:n;var o=this.slides.length;if(1+2*e>=o)return this.getCellElements();for(var r=[],s=n-e;s<=n+e;s++){var l=this.options.wrapAround?_.modulo(s,o):s,d=this.slides[l];d&&(r=r.concat(d.getCellElements()))}return r},t.uiChange=function(){this.emitEvent("uiChange")},t.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},t.onresize=function(){this.watchCSS(),this.resize()},_.debounceMethod(p,"onresize",150),t.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=_.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},t.watchCSS=function(){var t=this.options.watchCSS;if(t){var e=g(this.element,":after").content;-1==e.indexOf("flickity")?this.deactivate():this.activate()}},t.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]()}},t.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.cells.forEach(function(t){t.destroy()}),this.unselectSelectedSlide(),this.element.removeChild(this.viewport),l(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},t.destroy=function(){this.deactivate(),r.removeEventListener("resize",this),this.emitEvent("destroy"),u&&this.$element&&u.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete b[this.guid]},_.extend(t,d),p.data=function(e){e=_.getQueryElement(e);var t=e&&e.flickityGUID;return t&&b[t]},_.htmlInit(p,"flickity"),u&&u.bridget&&u.bridget("flickity",p),p.setJQuery=function(e){u=e},p.Cell=a,p}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(i,r){function n(){}var o=n.prototype=Object.create(r.prototype);o.bindStartEvent=function(t){this._bindStartEvent(t,!0)},o.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},o._bindStartEvent=function(n,t){t=void 0===t||!!t;var r=t?"addEventListener":"removeEventListener";i.PointerEvent?n[r]("pointerdown",this):(n[r]("mousedown",this),n[r]("touchstart",this))},o.handleEvent=function(e){var i="on"+e.type;this[i]&&this[i](e)},o.getTouch=function(e){for(var i,n=0;n<e.length;n++)if(i=e[n],i.identifier==this.pointerIdentifier)return i},o.onmousedown=function(e){var i=e.button;i&&0!==i&&1!==i||this._pointerDown(e,e)},o.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},o.onpointerdown=function(t){this._pointerDown(t,t)},o._pointerDown=function(e,i){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0===i.pointerId?i.identifier:i.pointerId,this.pointerDown(e,i))},o.pointerDown=function(e,i){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,i])};var t={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return o._bindPostStartEvents=function(e){if(e){var o=t[e.type];o.forEach(function(t){i.addEventListener(t,this)},this),this._boundPointerEvents=o}},o._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEac
1h(function(t){i.removeEventListener(t,this)},this),delete this._boundPointerEvents)},o.onmousemove=function(t){this._pointerMove(t,t)},o.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},o.ontouchmove=function(e){var i=this.getTouch(e.changedTouches);i&&this._pointerMove(e,i)},o._pointerMove=function(e,i){this.pointerMove(e,i)},o.pointerMove=function(e,i){this.emitEvent("pointerMove",[e,i])},o.onmouseup=function(t){this._pointerUp(t,t)},o.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},o.ontouchend=function(e){var i=this.getTouch(e.changedTouches);i&&this._pointerUp(e,i)},o._pointerUp=function(e,i){this._pointerDone(),this.pointerUp(e,i)},o.pointerUp=function(e,i){this.emitEvent("pointerUp",[e,i])},o._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},o.pointerDone=function(){},o.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},o.ontouchcancel=function(e){var i=this.getTouch(e.changedTouches);i&&this._pointerCancel(e,i)},o._pointerCancel=function(e,i){this._pointerDone(),this.pointerCancel(e,i)},o.pointerCancel=function(e,i){this.emitEvent("pointerCancel",[e,i])},n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},n}),function(t,e){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.Unidragger=e(t,t.Unipointer)}(window,function(i,a){function n(){}var o=Math.abs,t=n.prototype=Object.create(a.prototype);return t.bindHandles=function(){this._bindHandles(!0)},t.unbindHandles=function(){this._bindHandles(!1)},t._bindHandles=function(t){t=void 0===t||!!t;for(var n,r=t?"addEventListener":"removeEventListener",a=0;a<this.handles.length;a++)n=this.handles[a],this._bindStartEvent(n,t),n[r]("click",this),i.PointerEvent&&(n.style.touchAction=t?this._touchActionValue:"")},t._touchActionValue="none",t.pointerDown=function(t,e){if("INPUT"==t.target.nodeName&&"range"==t.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(t,e);var i=document.activeElement;i&&i.blur&&i.blur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])},t._dragPointerDown=function(t,i){this.pointerDownPoint=a.getPointerPoint(i);var n=this.canPreventDefaultOnPointerDown(t,i);n&&t.preventDefault()},t.canPreventDefaultOnPointerDown=function(t){return"SELECT"!=t.target.nodeName},t.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},t._dragPointerMove=function(n,o){var e=a.getPointerPoint(o),t={x:e.x-this.pointerDownPoint.x,y:e.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(t)&&this._dragStart(n,o),t},t.hasDragStarted=function(t){return 3<o(t.x)||3<o(t.y)},t.pointerUp=function(e,i){this.emitEvent("pointerUp",[e,i]),this._dragPointerUp(e,i)},t._dragPointerUp=function(e,i){this.isDragging?this._dragEnd(e,i):this._staticClick(e,i)},t._dragStart=function(i,e){this.isDragging=!0,this.dragStartPoint=a.getPointerPoint(e),this.isPreventing
1Clicks=!0,this.dragStart(i,e)},t.dragStart=function(e,i){this.emitEvent("dragStart",[e,i])},t._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},t.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},t._dragEnd=function(e,i){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,i)},t.dragEnd=function(e,i){this.emitEvent("dragEnd",[e,i])},t.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},t._staticClick=function(t,e){if(!this.isIgnoringMouseUp||"mouseup"!=t.type){var i=t.target.nodeName;"INPUT"!=i&&"TEXTAREA"!=i||t.target.focus(),this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400))}},t.staticClick=function(e,i){this.emitEvent("staticClick",[e,i])},n.getPointerPoint=a.getPointerPoint,n}),function(r,o){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return o(r,t,e,i)}):"object"==typeof module&&module.exports?module.exports=o(r,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):r.Flickity=o(r,r.Flickity,r.Unidragger,r.fizzyUIUtils)}(window,function(u,e,o,f){function s(i){var n="touchstart"==i.type,o="touch"==i.pointerType,t=a[i.target.nodeName];return n||o||t}function g(){return{x:u.pageXOffset,y:u.pageYOffset}}var d=Math.abs;f.extend(e.defaults,{draggable:!0,dragThreshold:3}),e.createMethods.push("_createDrag");var n=e.prototype;f.extend(n,o.prototype),n._touchActionValue="pan-y pinch-zoom";var r="createTouch"in document,i=!1;n._createDrag=function(){this.on("activate",this.bindDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.unbindDrag),r&&!i&&(u.addEventListener("touchmove",function(){}),i=!0)},n.bindDrag=function(){this.options.draggable&&!this.isDragBound&&(this.element.classList.add("is-draggable"),this.handles=[this.viewport],this.bindHandles(),this.isDragBound=!0)},n.unbindDrag=function(){this.isDragBound&&(this.element.classList.remove("is-draggable"),this.unbindHandles(),delete this.isDragBound)},n._uiChangeDrag=function(){delete this.isFreeScrolling},n._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)};var p={TEXTAREA:!0,INPUT:!0,OPTION:!0},c={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};n.pointerDown=function(i,o){var n=p[i.target.nodeName]&&!c[i.target.type];if(n)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(i,o);var t=document.activeElement;t&&t.blur&&t!=this.element&&t!=document.body&&t.blur(),this.pointerDownFocus(i),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this._bindPostStartEvents(i),this.pointerDownScroll=g(),u.addEventListener("scroll",this),this.dispatchEvent("pointerDown",i,[o])},n.pointerDownFocus=function(i){var n=s(i);if(this.options.accessibility&&!n){var t=u.pageYOffset;this.element.focus(),u.pageYOffset!=t&&u.scrollTo(u.pageXOffset,t)}};var a={INPUT:!0,SELECT:!0};return n.canPreventDefaultOnPointerDown=function(i){var t=s(i);return!t},n.hasDragStarted=function(e){return d(e.x)>this.options.dragThreshold},n.pointerUp=function(e,i){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[i]),this._dragPointerUp(e,i)},n.pointerDone=function(){u.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(t,e){this.dragStartPosition=this.x,this.startAnimation(),u.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e])},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(o,r,t){o.preventDefault(),this.previousDragX=this.dragX;var e=this.options.rightToLeft?-1:1,i=this.dragStartPosition+t.x*e;if(!this.options.wrapAround&&this.slides.length){var a=Math.max(-this.slides[0].target,this.dragStartPosition);i=i>a?.5*(i+a):i;var l=Math.min(-this.getLastSlide().target,this.dragStartPosition);i=i<l?.5*(i+l):i}this.dragX=i,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",o,[r,t])},n.dragEnd=function(t,e){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var o=this.getRestingPosition();this.isFreeScrolling=-o>this.slides[0].target&&-o<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])},n.dragEndRestingSelect=function(){var e=this.getRestingPosition(),n=d(this.getSlideDistance(-e,this.selectedIndex)),o=this._getClosestResting(e,n,1),r=this._getClosestResting(e,n,-1),i=o.distance<r.distance?o.index:r.index;return i},n._getClosestResting=function(e,i,o){for(var r=this.selectedIndex,a=1/0,p=this.options.contain&&!this.options.wrapAround?function(e,i){return e<=i}:function(e,i){return e<i};p(i,a)&&(r+=o,a=i,i=this.getSlideDistance(-e,r),null!==i);)i=d(i);return{distance:a,index:r-o}},n.getSlideDistance=function(a,t){var e=this.slides.length,s=this.options.wrapAround&&1<e,i=s?f.modulo(t,e):t,n=this.slides[i];if(!n)return null;var o=s?this.slideableWidth*Math.floor(t/e):0;return a-(n.target+o)},n.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var e=this.getSlideDistance(-this.dragX,this.selectedIndex),i=this.previousDragX-this.dragX;return 0<e&&0<i?1:0>e&&0>i?-1:0},n.staticClick=function(r,o){var t=this.getParentCell(r.target),e=t&&t.element,i=t&&this.cells.indexOf(t);this.dispatchEvent("staticClick",r,[o,e,i])},n.onscroll=function(){var i=g(),t=this.pointerDownScroll.x-i.x,e=this.pointerDownScroll.y-i.y;(3<d(t)||3<d(e))&&this._pointerDone()},e}),function(t,e){"function"==typeof define&&define.amd?define("tap-listener/tap-listener",["unipointer/unipointer"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("unipointer")):t.TapListener=e(t,t.Unipointer)}(window,function(d,t){function e(t){this.bindTap(t)}var i=e.prototype=Object.create(t.prototype);return i.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},i.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},i.pointerUp=function(e,i){if(!this.isIgnoringMouseUp||"mouseup"!=e.type){var n=t.getPointerPoint(i),r=this.tapElement.getBoundingClientRect(),s=d.pageXOffset,o=d.pageYOffset,a=n.x>=r.left+s&&n.x<=r.right+s&&n.y>=r.top+o&&n.y<=r.bottom+o;if(a&&this.emitEvent("tap",[e,i]),"mouseup"!=e.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},i.destroy=function(){this.pointerDone(),this.unbindTap()},e}),function(r,o){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(t,e,
1i){return o(r,t,e,i)}):"object"==typeof module&&module.exports?module.exports=o(r,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):o(r,r.Flickity,r.TapListener,r.fizzyUIUtils)}(window,function(e,i,n,o){"use strict";function r(e,i){this.direction=e,this.parent=i,this._create()}function a(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}r.prototype=new n,r.prototype._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"previous":"next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},r.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},r.prototype.deactivate=function(){this.parent.element.removeChild(this.element),n.prototype.destroy.call(this),this.element.removeEventListener("click",this)},r.prototype.createSVG=function(){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("viewBox","0 0 100 100");var t=document.createElementNS("http://www.w3.org/2000/svg","path"),e=a(this.parent.options.arrowShape);return t.setAttribute("d",e),t.setAttribute("class","arrow"),this.isLeft||t.setAttribute("transform","translate(100, 100) rotate(180) "),n.appendChild(t),n},r.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},r.prototype.handleEvent=o.handleEvent,r.prototype.onclick=function(){var t=document.activeElement;t&&t==this.element&&this.onTap()},r.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},r.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},r.prototype.update=function(){var i=this.parent.slides;if(this.parent.options.wrapAround&&1<i.length)return void this.enable();var n=i.length?i.length-1:0,o=this.isPrevious?0:n,t=this.parent.selectedIndex==o?"disable":"enable";this[t]()},r.prototype.destroy=function(){this.deactivate()},o.extend(i.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),i.createMethods.push("_createPrevNextButtons");var s=i.prototype;return s._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new r(-1,this),this.nextButton=new r(1,this),this.on("activate",this.activatePrevNextButtons))},s.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},s.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},i.PrevNextButton=r,i}),function(r,o){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(t,e,i){return o(r,t,e,i)}):"object"==typeof module&&module.exports?module.exports=o(r,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):o(r,r.Flickity,r.TapListener,r.fizzyUIUtils)}(window,function(e,i,n,r){function a(t){this.parent=t,this._create()}a.prototype=new n,a.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))},a.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},a.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),n.prototype.destroy.call(this)},a.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):0>t&&this.removeDots(-t)},a.prototype.addDots=function(t){for(var n,a=document.createDocumentFragment(),r=[];t;)n=document.createElement("li"),n.className="dot",a.appendChild(n),r.push(n),t--;this.holder.appendChild(a),this.dots=this.dots.concat(r)},a.prototype.removeDots=function(e){var i=this.dots.splice(this.dots.length-e,e);
1i.forEach(function(t){this.holder.removeChild(t)},this)},a.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot"),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected")},a.prototype.onTap=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},a.prototype.destroy=function(){this.deactivate()},i.PageDots=a,r.extend(i.defaults,{pageDots:!0}),i.createMethods.push("_createPageDots");var o=i.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new a(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},i.PageDots=a,i}),function(t,i){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(n,o,e){return i(n,o,e)}):"object"==typeof module&&module.exports?module.exports=i(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):i(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(o,r,t){function e(t){this.parent=t,this.state="stopped",a&&(this.onVisibilityChange=function(){this.visibilityChange()}.bind(this),this.onVisibilityPlay=function(){this.visibilityPlay()}.bind(this))}var i,a;"hidden"in document?(i="hidden",a="visibilitychange"):"webkitHidden"in document&&(i="webkitHidden",a="webkitvisibilitychange"),e.prototype=Object.create(o.prototype),e.prototype.play=function(){if("playing"!=this.state){var e=document[i];if(a&&e)return void document.addEventListener(a,this.onVisibilityPlay);this.state="playing",a&&document.addEventListener(a,this.onVisibilityChange),this.tick()}},e.prototype.tick=function(){if("playing"==this.state){var e=this.parent.options.autoPlay;e="number"==typeof e?e:3e3;var t=this;this.clear(),this.timeout=setTimeout(function(){t.parent.next(!0),t.tick()},e)}},e.prototype.stop=function(){this.state="stopped",this.clear(),a&&document.removeEventListener(a,this.onVisibilityChange)},e.prototype.clear=function(){clearTimeout(this.timeout)},e.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},e.prototype.unpause=function(){"paused"==this.state&&this.play()},e.prototype.visibilityChange=function(){var e=document[i];this[e?"pause":"unpause"]()},e.prototype.visibilityPlay=function(){this.play(),document.removeEventListener(a,this.onVisibilityPlay)},r.extend(t.defaults,{pauseAutoPlayOnHover:!0}),t.createMethods.push("_createPlayer");var s=t.prototype;return s._createPlayer=function(){this.player=new e(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},t.Player=e,t}),function(i,n){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(o,t){return n(i,o,t)}):"object"==typeof module&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(o,i,n){function a(e){var t=document.createDocumentFragment();return e.forEach(function(i){t.appendChild(i.element)}),t}var e=i.prototype;return e.insert=function(e,t){var p=this._makeCells(e);if(p&&p.length){var o=this.cells.length;t=void 0===t?o:t;var c=a(p),r=t==o;if(r)this.slider.appendChild(c);else{var s=this.cells[t].element;this.slider.insertBefore(c,s)}if(0===t)this.cells=p.concat(this.cells);else if(r)this.cells=this.cells.concat(p);else{var i=this.cells.splice(t,o-t);this.cells=this.cells.concat(p).concat(i)}this._sizeCells(p);var l=t>this.selectedIndex?0:p.length;this._cellAddedRemoved(t,l)}},e.append=function(t){this.insert(t,this.cells.length)},e.prepend=function(t){this.insert(t,0)}
1,e.remove=function(e){var t,r,d=this.getCells(e),a=0,c=d.length;for(t=0;t<c;t++){r=d[t];var l=this.cells.indexOf(r)<this.selectedIndex;a-=l?1:0}for(t=0;t<c;t++)r=d[t],r.remove(),n.removeFrom(this.cells,r);d.length&&this._cellAddedRemoved(0,a)},e._cellAddedRemoved=function(e,i){i=i||0,this.selectedIndex+=i,this.selectedIndex=Math.max(0,Math.min(this.slides.length-1,this.selectedIndex)),this.cellChange(e,!0),this.emitEvent("cellAddedRemoved",[e,i])},e.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},e.cellChange=function(i,n){var o=this.slideableWidth;if(this._positionCells(i),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("cellChange",[i]),this.options.freeScroll){var t=o-this.slideableWidth;this.x+=t*this.cellAlign,this.positionSlider()}else n&&this.positionSliderAtSelected(),this.select(this.selectedIndex)},i}),function(i,n){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(o,t){return n(i,o,t)}):"object"==typeof module&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(a,o,r){"use strict";function t(t){if("IMG"==t.nodeName&&t.getAttribute("data-flickity-lazyload"))return[t];var e=t.querySelectorAll("img[data-flickity-lazyload]");return r.makeArray(e)}function e(e,i){this.img=e,this.flickity=i,this.load()}o.createMethods.push("_createLazyload");var i=o.prototype;return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var i=this.options.lazyLoad;if(i){var a="number"==typeof i?i:0,n=this.getAdjacentCellElements(a),r=[];n.forEach(function(e){var i=t(e);r=r.concat(i)}),r.forEach(function(i){new e(i,this)},this)}},e.prototype.handleEvent=r.handleEvent,e.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")},e.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},e.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},e.prototype.complete=function(i,n){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var o=this.flickity.getParentCell(this.img),t=o&&o.element;this.flickity.cellSizeChange(t),this.img.classList.add(n),this.flickity.dispatchEvent("lazyLoad",i,t)},o.LazyLoader=e,o}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],i):"object"==typeof module&&module.exports&&(module.exports=i(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(t){return t}),function(e,i){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],i):"object"==typeof module&&module.exports?module.exports=i(require("flickity"),require("fizzy-ui-utils")):e.Flickity=i(e.Flickity,e.fizzyUIUtils)}(window,function(t,e){function a(t,e,i){return(e-t)*i+t}t.createMethods.push("_createAsNavFor");var i=t.prototype;return i._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(e){var i=this;setTimeout(function(){i.setNavCompanion(e)})}},i.setNavCompanion=function(i){i=e.getQueryElement(i);var o=t.data(i);if(o&&o!=this){this.navCompanion=o;var a=this;this.onNavCompanionSelect=function(){a.navCompanionSelect()},o.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},i.navCompanionSelect=function(n){if(this.navCompanion){var o=this.navCompanion.selectedCells[0],s=this.navCompanion.cells.indexOf(o),i=s+this.navCompanion.selectedCells.length-1,r=Math.floor(a(s,i,this.navCompanion.cellAlign));if(this.selectCell(r,!1,n),this.removeNavSelectedElements(),!(r>=this.cells.length)){var t=this.cells.slice(s,i+1);this.navSelectedElements=t.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},i.changeNavSelectedClass=function(e){this.navSelectedElements.forEac
1h(function(i){i.classList[e]("is-nav-selected")})},i.activateAsNavFor=function(){this.navCompanionSelect(!0)},i.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},i.onNavStaticClick=function(i,n,o,t){"number"==typeof t&&this.navCompanion.selectCell(t)},i.deactivateAsNavFor=function(){this.removeNavSelectedElements()},i.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(){var t;t=function(){function t(t,e){var i,o;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},"object"==typeof t)for(i in t)o=t[i],this.options[i]=o;this.context=null==e?this:e,this.unique=this._genKey()}return t.prototype.hasNext=function(){return"string"==typeof this.context.nextUrl&&0<this.context.nextUrl.length},t.prototype.next=function(){return!!this.hasNext()&&this.run(this.context.nextUrl)},t.prototype.run=function(e){var i,o,r;if("string"!=typeof this.options.clientId&&"string"!=typeof this.options.accessToken)throw new Error("Missing clientId or accessToken.");if("string"!=typeof this.options.accessToken&&"string"!=typeof this.options.clientId)throw new Error("Missing clientId or accessToken.");return null!=this.options.before&&"function"==typeof this.options.before&&this.options.before.call(this),"undefined"!=typeof document&&null!==document&&(r=document.createElement("script"),r.id="instafeed-fetcher",r.src=e||this._buildUrl(),i=document.getElementsByTagName("head"),i[0].appendChild(r),o="instafeedCache"+this.unique,window[o]=new t(this.options,this),window[o].unique=this.unique),!0},t.prototype.parse=function(e){var i,n,o,r,a,s,l,d,p,c,m,u,g,f,h,_,y,x,v,b,T,w,k,P,S,C,E,O,A,D,z,M;if("object"!=typeof e){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response")}if(200!==e.meta.code){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,e.meta.error_message),!1;throw new Error("Error from Instagram: "+e.meta.error_message)}if(0===e.data.length){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram")}if(null!=this.options.success&&"function"==typeof this.options.success&&this.options.success.call(this,e),this.context.nextUrl="",null!=e.pagination&&(this.context.nextUrl=e.pagination.next_url),"none"!==this.options.sortBy)switch(D="random"===this.options.sortBy?["","random"]:this.options.sortBy.split("-"),A="least"===D[0],D[1]){case"random":e.data.sort(function(){return .5-Math.random()});break;case"recent":e.data=this._sortBy(e.data,"created_time",A);break;case"liked":e.data=this._sortBy(e.data,"likes.count",A);break;case"commented":e.data=this._sortBy(e.data,"comments.count",A);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.")}if("undefined"!=typeof document&&null!==document&&!1===this.options.mock){if(h=e.data,O=parseInt(this.options.limit,10),null!=this.options.limit&&h.length>O&&(h=h.slice(0,O)),s=document.createDocumentFragment(),null!=this.options.filter&&"function"==typeof this.options.filter&&(h=this._filter(h,this.options.filter)),null!=this.options.template&&"string"==typeof this.options.template){for(d="",g="",v="",M=document.createElement("div"),c=0,P=h.length;c<P;c++){if(m=h[c],u=m.images[this.options.resolution],"object"!=typeof u)throw a="No image found for resolution: "+this.options.resolution+".",new Error(a);b=u.width,y=u.height,x="square",b>y&&(x="landscape"),b<y&&(x="portrait"),f=u.url,p=0<=window.location.protocol.indexOf("http"),p&&!this.options.useHttp&&(f=f.replace(/https?:\/\//,"//")),g=this._makeTemplate(this.options.template,{model:m,id:m.id,link:m.link,type:m.type,image:f,width:b,height:y,orientation:x,caption:this._getObjectProperty(m,"caption.text"),likes:m.likes.count,comments:m.comments.count,location:this._getObjectProperty(m,"location.name")}
1),d+=g}for(M.innerHTML=d,r=[],o=0,n=M.childNodes.length;o<n;)r.push(M.childNodes[o]),o+=1;for(w=0,S=r.length;w<S;w++)E=r[w],s.appendChild(E)}else for(k=0,C=h.length;k<C;k++){if(m=h[k],_=document.createElement("img"),u=m.images[this.options.resolution],"object"!=typeof u)throw a="No image found for resolution: "+this.options.resolution+".",new Error(a);f=u.url,p=0<=window.location.protocol.indexOf("http"),p&&!this.options.useHttp&&(f=f.replace(/https?:\/\//,"//")),_.src=f,!0===this.options.links?(i=document.createElement("a"),i.href=m.link,i.appendChild(_),s.appendChild(i)):s.appendChild(_)}if(z=this.options.target,"string"==typeof z&&(z=document.getElementById(z)),null==z)throw a="No element with id=\""+this.options.target+"\" on page.",new Error(a);z.appendChild(s),l=document.getElementsByTagName("head")[0],l.removeChild(document.getElementById("instafeed-fetcher")),T="instafeedCache"+this.unique,window[T]=void 0;try{delete window[T]}catch(t){}}return null!=this.options.after&&"function"==typeof this.options.after&&this.options.after.call(this),!0},t.prototype._buildUrl=function(){var e,t,i;switch(e="https://api.instagram.com/v1",this.options.get){case"popular":t="media/popular";break;case"tagged":if(!this.options.tagName)throw new Error("No tag name specified. Use the 'tagName' option.");t="tags/"+this.options.tagName+"/media/recent";break;case"location":if(!this.options.locationId)throw new Error("No location specified. Use the 'locationId' option.");t="locations/"+this.options.locationId+"/media/recent";break;case"user":if(!this.options.userId)throw new Error("No user specified. Use the 'userId' option.");t="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.")}return i=e+"/"+t,i+=null==this.options.accessToken?"?client_id="+this.options.clientId:"?access_token="+this.options.accessToken,null!=this.options.limit&&(i+="&count="+this.options.limit),i+="&callback=instafeedCache"+this.unique+".parse"},t.prototype._genKey=function(){var t;return t=function(){return(0|65536*(1+Math.random())).toString(16).substring(1)},""+t()+t()+t()+t()},t.prototype._makeTemplate=function(t,e){var i,o,r,a,s;for(o=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,i=t;o.test(i);)a=i.match(o)[1],s=null==(r=this._getObjectProperty(e,a))?"":r,i=i.replace(o,function(){return""+s});return i},t.prototype._getObjectProperty=function(e,t){var i,n;for(t=t.replace(/\[(\w+)\]/g,".$1"),n=t.split(".");n.length;){if(i=n.shift(),!(null!=e&&i in e))return null;e=e[i]}return e},t.prototype._sortBy=function(t,r,a){var i;return i=function(e,t){var i,s;return i=this._getObjectProperty(e,r),s=this._getObjectProperty(t,r),a?i>s?1:-1:i<s?1:-1},t.sort(i.bind(this)),t},t.prototype._filter=function(n,e){var t,r,a,s,l;for(t=[],r=function(i){if(e(i))return t.push(i)},a=0,l=n.length;a<l;a++)s=n[a],r(s);return t},t}(),function(e,i){return"function"==typeof define&&define.amd?define([],i):"object"==typeof module&&module.exports?module.exports=i():e.Instafeed=i()}(this,function(){return t})}.call(this),function(e,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():e.PhotoSwipe=i()}(this,function(){"use strict";var i=Math.PI,h=Math.abs,a=Math.min,c=Math.round,p=Math.max,t=function(u,t,e,n){var w={features:null,bind:function(e,i,r,s){var a=(s?"remove":"add")+"EventListener";i=i.split(" ");for(var n=0;n<i.length;n++)i[n]&&e[a](i[n],r,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var i=document.createElement(e||"div");return t&&(i.className=t),i},getScrollY:function(){var t=window.pageYOffset;return void 0===t?document.documentElement.scrollTop:t},unbind:function(t,e,i){w.bind(t,e,i,!0)},removeClass:function(t,e){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,i){w.hasClass(e,i)||(e.className+=(e.className?" ":"")+i)},hasClass:function(e,i){return e.className&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e.className)},getChildByClass:function(t,e){for(var i=t.firstChild;i;){if(w.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(i,n,o){for(var t=i.length;t--;)if(i[t][o]===n)return t;return-1},extend:function(i,n,o){for(var t in n)if(n.hasOwnProperty(t)){if(o&&i.hasOwnProperty(t))continue;i[t]=n[t]}},easing:{sine:{out:function(t){return Math.sin(t*(i/2))},inOut:function(t){return-(Math.cos(i*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(w.features)return w.features;var i=w.createEl(),n=i.style,t="",s={};if(s.oldIE=document.all&&!document.addEventListener,s.touch="ontouchstart"in window,window.requestAnimationFrame&&(s.raf=window.requestAnimationFrame,s.caf=window.cancelAnimationFrame),s.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!s.pointerEvent){var r=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var o=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);o&&0<o.length&&(o=parseInt(o[1],10),1<=o&&8>o&&(s.isOldIOSPhone=!0))}var d=r.match(/Android\s([0-9\.]*)/),c=d?d[1]:0;c=parseFloat(c),1<=c&&(4.4>c&&(s.isOldAndroid=!0),s.androidVersion=c),s.isMobileOpera=/opera mini|o
1pera mobi/i.test(r)}for(var m,y,b=["transform","perspective","animationName"],h=["","webkit","Moz","ms","O"],u=0;4>u;u++){t=h[u];for(var T=0;3>T;T++)m=b[T],y=t+(t?m.charAt(0).toUpperCase()+m.slice(1):m),!s[m]&&y in n&&(s[m]=y);t&&!s.raf&&(t=t.toLowerCase(),s.raf=window[t+"RequestAnimationFrame"],s.raf&&(s.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!s.raf){var k=0;s.raf=function(o){var t=new Date().getTime(),e=p(0,16-(t-k)),i=window.setTimeout(function(){o(t+e)},e);return k=t+e,i},s.caf=function(t){clearTimeout(t)}}return s.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,w.features=s,s}};w.detectFeatures(),w.features.oldIE&&(w.bind=function(e,i,r,o){i=i.split(" ");for(var a,s=(o?"detach":"attach")+"Event",p=function(){r.handleEvent.call(r)},d=0;d<i.length;d++)if(a=i[d])if("object"==typeof r&&r.handleEvent){if(!o)r["oldIE"+a]=p;else if(!r["oldIE"+a])return!1;e[s]("on"+a,r["oldIE"+a])}else e[s]("on"+a,r)});var k=this,_={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(e,i){return e?1:.7>i.initialZoomLevel?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};w.extend(_,n);var l,s,o,y,d,m,f,x,P,S,C,E,O,z,r,L,R,I,F,N,M,B,U,X,j,W,Y,H,Z,V,G,q,Q,$,K,J,ee,ne,oe,re,ae,se,le,de,pe,ce,me,ue,ge,fe,_e,ye,Te,we,ke,Pe,Oe,De=function(){return{x:0,y:0}},xt=De(),Tt=De(),vt=De(),ht={},yt=0,wt={},kt=De(),Pt=0,St=!0,Ct=[],Ot={},Dt=!1,zt=function(e,i){w.extend(k,i.publicMethods),Ct.push(e)},Lt=function(e){var i=hn();return e>i-1?e-i:0>e?i+e:e},It={},Ft=function(e,i){return It[e]||(It[e]=[]),It[e].push(i)},jt=function(i){var n=It[i];if(n){var o=Array.prototype.slice.call(arguments);o.shift();for(var t=0;t<n.length;t++)n[t].apply(k,o)}},Wt=function(){return new Date().getTime()},Xt=function(t){ke=t,k.bg.style.opacity=t*_.bgOpacity},Mt=function(i,n,t,e,a){(!Dt||a&&a!==k.currItem)&&(e/=a?a.fitRatio:k.currItem.fitRatio),i[B]=E+n+"px, "+t+"px"+O+" scale("+e+")"},Bt=function(t){fe&&(t&&(S>k.currItem.fitRatio?Dt||(Mn(k.currItem,!1,!0),Dt=!0):Dt&&(Mn(k.currItem),Dt=!1)),Mt(fe,vt.x,vt.y,S))},Yt=function(t){t.container&&Mt(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Ht=function(i,t){t[B]=E+i+"px, 0px"+O},Zt=function(e,t){if(!_.loop&&t){var o=y+(kt.x*yt-e)/kt.x,n=c(e-ji.x);(0>o&&0<n||o>=hn()-1&&0>n)&&(e=ji.x+n*_.mainScrollEndFriction)}ji.x=e,Ht(e,d)},Gt=function(t,e){var i=Hi[t]-wt[t];return Tt[t]+xt[t]+i-i*(e/C)},Jt=function(e,i){e.x=i.x,e.y=i.y,i.id&&(e.id=i.id)},$t=function(t){t.x=c(t.x),t.y=c(t.y)},Vt=null,ti=function(){Vt&&(w.unbind(document,"mousemove",ti),w.addClass(u,"pswp--has_mouse"),_.mouseUsed=!0,jt("mouseUsed")),Vt=setTimeout(function(){Vt=null},100)},ci=function(){w.bind(document,"keydown",k),G.transform&&w.bind(k.scrollWrap,"click",k),_.mouseUsed||w.bind(document,"mousemove",ti),w.bind(window,"resize scroll orientationchange",k),jt("bindEvents")},mi=function(){w.unbind(window,"resize scroll orientationchange",k),w.unbind(window,"scroll",P.scroll),w.unbind(document,"keydown",k),w.unbind(document,"mousemove",ti),G.transform&&w.unbind(k.scrollWrap,"click",k),oe&&w.unbind(window,f,k),clearTimeout(q),jt("unbindEvents")},oi=function(t,e){var i=In(k.currItem,ht,t);return e&&(ge=i),i},ri=function(t){return t||(t=k.currItem),t.fitRatio},ai=function(t){return t||(t=k.currItem),0<t.w?_.maxSpreadZoom:1},si=function(i,n,o,t){return t===k.currItem.initialZoomLevel?(o[i]=k.currItem.initialPosition[i],!0):(o[i]=Gt(i,t),o[i]>n.min[i]?(o[i]=n.min[i],!0):o[i]<n.max[i]&&(o[i]=n.max[i],!0))},fi=function(){if(B){var t=G.perspective&&!X;return E="translate"+(t?"3d(":"("),void(O=G.perspective?", 0px)":")")}B="left",w.addClass(u,"pswp--ie"),Ht=function(e,i){i.left=e+"px"},Yt=function(r){var o=1<r.fitRatio?1:r.fitRatio,t=r.container.style,e=o*r.w,i=o*r.h;
1t.width=e+"px",t.height=i+"px",t.left=r.initialPosition.x+"px",t.top=r.initialPosition.y+"px"},Bt=function(){if(fe){var r=fe,o=k.currItem,t=1<o.fitRatio?1:o.fitRatio,e=t*o.w,i=t*o.h;r.width=e+"px",r.height=i+"px",r.left=vt.x+"px",r.top=vt.y+"px"}}},Kt=function(e){var i="";_.escKey&&27===e.keyCode?i="close":_.arrowKeys&&(37===e.keyCode?i="prev":39===e.keyCode&&(i="next")),i&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,k[i]()))},li=function(t){t&&(se||ae||_e||ee)&&(t.preventDefault(),t.stopPropagation())},ei=function(){k.setScrollOffset(0,w.getScrollY())},ni={},di=0,bi=function(t){ni[t]&&(ni[t].raf&&W(ni[t].raf),di--,delete ni[t])},Ti=function(t){ni[t]&&bi(t),ni[t]||(di++,ni[t]={})},wi=function(){for(var t in ni)ni.hasOwnProperty(t)&&bi(t)},Pi=function(e,i,n,r,o,s,a){var l,c=Wt();Ti(e);var d=function(){if(ni[e]){if(l=Wt()-c,l>=r)return bi(e),s(n),void(a&&a());s((n-i)*o(l/r)+i),ni[e].raf=j(d)}};d()},hi={},_i={},yi={},Si={},ui={},xi=[],gi={},ki=[],Ci={},Ei=0,Oi=De(),Ai=0,ji=De(),Hi=De(),ln=De(),Zi=function(e,i){return e.x===i.x&&e.y===i.y},Gi=function(e,i){return 25>h(e.x-i.x)&&25>h(e.y-i.y)},qi=function(e,i){return Ci.x=h(e.x-i.x),Ci.y=h(e.y-i.y),Math.sqrt(Ci.x*Ci.x+Ci.y*Ci.y)},dn=function(){le&&(W(le),le=null)},cn=function(){oe&&(le=j(cn),rn())},Ri=function(){return"fit"!==_.scaleMode||S!==k.currItem.initialZoomLevel},Qi=function(e,i){return e&&e!==document&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(i(e)?e:Qi(e.parentNode,i))},Fi={},Ki=function(e,i){return Fi.prevent=!Qi(e.target,_.isClickableElement),jt("preventDragEvent",e,i,Fi),Fi.prevent},Ni=function(e,i){return i.x=e.pageX,i.y=e.pageY,i.id=e.identifier,i},$i=function(t,e,i){i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y)},Mi=function(i,n,o){if(50<i-$){var t=2<ki.length?ki.shift():{};t.x=n,t.y=o,ki.push(t),$=i}},Ji=function(){var t=vt.y-k.currItem.initialPosition.y;return 1-h(t/(ht.y/2))},en={},Ui={},tn=[],nn=function(t){for(;0<tn.length;)tn.pop();return U?(Oe=0,xi.forEach(function(t){0===Oe?tn[0]=t:1==Oe&&(tn[1]=t),Oe++}
1)):-1<t.type.indexOf("touch")?t.touches&&0<t.touches.length&&(tn[0]=Ni(t.touches[0],en),1<t.touches.length&&(tn[1]=Ni(t.touches[1],Ui))):(en.x=t.pageX,en.y=t.pageY,en.id="",tn[0]=en),tn},on=function(t,e){var i,o,r,a,s=0,p=vt[t]+e[t],h=0<e[t],y=ji.x+e.x,u=ji.x-gi.x;return i=p>ge.min[t]||p<ge.max[t]?_.panEndFriction:1,p=vt[t]+e[t]*i,_.allowPanToNext&&(fe?"h"!==ye||"x"!==t||ae||(h?(p>ge.min[t]&&(i=_.panEndFriction,s=ge.min[t]-p,o=ge.min[t]-Tt[t]),(0>=o||0>u)&&1<hn()?(a=y,0>u&&y>gi.x&&(a=gi.x)):ge.min.x!==ge.max.x&&(r=p)):(p<ge.max[t]&&(i=_.panEndFriction,s=p-ge.max[t],o=Tt[t]-ge.max[t]),(0>=o||0<u)&&1<hn()?(a=y,0<u&&y<gi.x&&(a=gi.x)):ge.min.x!==ge.max.x&&(r=p))):a=y,"x"===t)?(void 0!==a&&(Zt(a,!0),de=a!==gi.x),ge.min.x!==ge.max.x&&(void 0===r?de||(vt.x+=e.x*i):vt.x=r),void 0!==a):void(_e||de||S>k.currItem.fitRatio&&(vt[t]+=e[t]*i))},sn=function(e){if(!("mousedown"===e.type&&0<e.button)){if(gn)return void e.preventDefault();if(!ne||"mousedown"!==e.type){if(Ki(e,!0)&&e.preventDefault(),jt("pointerDown"),U){var n=w.arraySearch(xi,e.pointerId,"id");0>n&&(n=xi.length),xi[n]={x:e.pageX,y:e.pageY,id:e.pointerId}}var o=nn(e),r=o.length;pe=null,wi(),oe&&1!==r||(oe=Te=!0,w.bind(window,f,k),J=Pe=we=ee=de=se=re=ae=!1,ye=null,jt("firstTouchStart",o),Jt(Tt,vt),xt.x=xt.y=0,Jt(Si,o[0]),Jt(ui,Si),gi.x=kt.x*yt,ki=[{x:Si.x,y:Si.y}],$=Q=Wt(),oi(S,!0),dn(),cn()),ce||!(1<r)||_e||de||(C=S,ae=!1,ce=re=!0,xt.y=xt.x=0,Jt(Tt,vt),Jt(hi,o[0]),Jt(_i,o[1]),$i(hi,_i,ln),Hi.x=h(ln.x)-vt.x,Hi.y=h(ln.y)-vt.y,me=ue=qi(hi,_i))}}},Bi=function(r){if(r.preventDefault(),U){var o=w.arraySearch(xi,r.pointerId,"id");if(-1<o){var t=xi[o];t.x=r.pageX,t.y=r.pageY}}if(oe){var e=nn(r);if(ye||se||ce)pe=e;else if(ji.x!==kt.x*yt)ye="h";else{var i=h(e[0].x-Si.x)-h(e[0].y-Si.y);10<=h(i)&&(ye=0<i?"h":"v",pe=e)}}},rn=function(){if(pe){var t=pe.length;if(0!==t)if(Jt(hi,pe[0]),yi.x=hi.x-Si.x,yi.y=hi.y-Si.y,ce&&1<t){if(Si.x=hi.x,Si.y=hi.y,!yi.x&&!yi.y&&Zi(pe[1],_i))return;Jt(_i,pe[1]),ae||(ae=!0,jt("zoomGestureStarted"));var e=qi(hi,_i),i=Ii(e);i>k.currItem.initialZoomLevel+k.currItem.initialZoomLevel/15&&(Pe=!0);var o=1,m=ri(),s=ai();if(!(i<m))i>s&&(o=(i-s)/(6*m),1<o&&(o=1),i=s+o*m);else if(_.pinchToClose&&!Pe&&C<=k.currItem.initialZoomLevel){var l=m-i,p=1-l/(m/1.2);Xt(p),jt("onPinchClose",p),we=!0}else o=(m-i)/m,1<o&&(o=1),i=m-o*(m/3);0>o&&(o=0),me=e,$i(hi,_i,Oi),xt.x+=Oi.x-ln.x,xt.y+=Oi.y-ln.y,Jt(ln,Oi),vt.x=Gt("x",i),vt.y=Gt("y",i),J=i>S,S=i,Bt()}else{if(!ye)return;if(Te&&(Te=!1,10<=h(yi.x)&&(yi.x-=pe[0].x-ui.x),10<=h(yi.y)&&(yi.y-=pe[0].y-ui.y)),Si.x=hi.x,Si.y=hi.y,0===yi.x&&0===yi.y)return;if("v"===ye&&_.closeOnVerticalDrag&&!Ri()){xt.y+=yi.y,vt.y+=yi.y;var d=Ji();return ee=!0,jt("onVerticalDrag",d),Xt(d),void Bt()}Mi(Wt(),hi.x,hi.y),se=!0,ge=k.currItem.bounds;var c=on("x",yi);c||(on("y",yi),$t(vt),Bt())}}},pn=function(e){if(G.isOldAndroid){if(ne&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(ne),ne=setTimeout(function(){ne=0},600))}jt("pointerUp"),Ki(e,!1)&&e.preventDefault();var i;if(U){var a=w.arraySearch(xi,e.pointerId,"id");if(-1<a)if(i=xi.splice(a,1)[0],navigator.pointerEnabled)i.type=e.pointerType||"mouse";else{var n={4:"mouse",2:"touch",3:"pen"};i.type=n[e.pointerType],i.type||(i.type=e.pointerType||"mouse")}}var o,l=nn(e),s=l.length;if("mouseup"===e.type&&(s=0),2===s)return pe=null,!0;1===s&&Jt(ui,l[0]),0!==s||ye||_e||(i||("mouseup"===e.type?i={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(i={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),jt("touchRelease",e,i));var c=-1;if(0===s&&(oe=!1,w.unbind(window,f,k),dn(),ce?c=0:-1!==Ai&&(c=Wt()-Ai)),Ai=1===s?Wt():-1,o=-1!=c&&150>c?"zoom":"swipe",ce&&2>s&&(ce=!1,1===s&&(o="zoomPointerUp"),jt("zoomGestureEnded")),pe=null,se||ae||_e||ee)if(wi(),K||(K=zi()),K.calculateSwipeSpeed("x"),ee){var y=Ji();if(y<_.verticalDragRange)k.close();else{var g=vt.y,m=ke;Pi("verticalDrag",0,1,300,w.easing.cubic.out,function(t){vt.y=(k.currItem.initialPosition.y-g)*t+g,Xt((1-m)*t+m),Bt()}),jt("onVerticalDrag",1)}}else{if((de||_e)&&0===s){var h=an(o,K);if(h)return;o="zoomPointerUp"}if(!_e)return"swipe"===o?void(!de&&S>k.currItem.fitRatio&&Wi(K)):void Xi()}},zi=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){1<ki.length?(t=Wt()-$+50,n=ki[ki.length-2][i]):(t=Wt()-Q,n=ui[i]),o.lastFlickOffset[i]=Si[i]-n,o.lastFlickDist[i]=h(o.lastFlickOffset[i]),o.lastFlickSpeed[i]=20<o.lastFlickDist[i]?o.lastFlickOffset[i]/t:0,.1>h(o.lastFlickSpeed[i])&&(o.lastFlickSpeed[i]=0),o.slowDownRatio[i]=.95,o.slowDownRatioReverse[i]=1-o.slowDownRatio[i],o.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,i){o.backAnimStarted[e]||(vt[e]>ge.min[e]?o.backAnimDestination[e]=ge.min[e]:vt[e]<ge.max[e]&&(o.backAnimDestination[e]=ge.max[e]),void 0!==o.backAnimDestination[e]&&(o.slowDownRatio[e]=.7,o.slowDownRatioReverse[e]=1-o.slowDownRatio[e],.05>o.speedDecelerationRatioAbs[e]&&(o.lastFlickSpeed[e]=0,o.backAnimStarted[e]=!0,Pi("bounceZoomPan"+e,vt[e],o.backAnimDestination[e],i||300,w.easing.sine.out,function(i){vt[e]=i,Bt()}))))},calculateAnimOffset:function(t){o.backAnimStarted[t]||(o.speedDecelerationRatio[t]*=o.slowDownRatio[t]+o.slowDownRatioReverse[t]-o.slowDownRatioReverse[t]*o.timeDiff/10,o.speedDecelerationRatioAbs[t]=h(o.lastFlickSpeed[t]*o.speedDecelerationRatio[t]),o.distanceOffset[t]=o.lastFlickSpeed[t]*o.speedDecelerationRatio[t]*o.timeDiff,vt[t]+=o.distanceOffset[t])},panAnimLoop:function(){if(ni.zoomPan&&(ni.zoomPan.raf=j(o.panAnimLoop),o.now=Wt(),o.timeDiff=o.now-o.lastNow,o.lastNow=o.now,o.calculateAnimOffset("x"),o.calculateAnimOffset("y"),Bt(),o.calculateOverBoundsAnimOffset("x"),o.calculateOverBoundsAnimOffset("y"),.05>o.speedDecelerationRatioAbs.x&&.05>o.speedDecelerationRatioAbs.y))return vt.x=c(vt.x),vt.y=c(vt.y),Bt(),void bi("zoomPan")}};return o},Wi=function(t){return t.calculateSwipeSpeed("y"),ge=k.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},.05>=h(t.lastFlickSpeed.x)&&.05>=h(t.lastFlickSpeed.y)?(t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0):(Ti("zoomPan"),t.lastNow=Wt(),void t.panAnimLoop())},an=function(t,e){var n;_e||(Ei=y);var o;if("swipe"===t){var d=Si.x-ui.x,c=10>e.lastFlickDist.x;30<d&&(c||20<e.lastFlickOffset.x)?o=-1:-30>d&&(c||-20>e.lastFlickOffset.x)&&(o=1)}var s;o&&(y+=o,0>y?(y=_.loop?hn()-1:0,s=!0):y>=hn()&&(y=_.loop?0:hn()-1,s=!0),s&&!_.loop||(Pt+=o,yt-=o,n=!0));var u,g=kt.x*yt,x=h(g-ji.x);return n||g>ji.x==0<e.lastFlickSpeed.x?(u=0<h(e.lastFlickSpeed.x)?x/h(e.lastFlickSpeed.x):333,u=a(u,400),u=p(u,250)):u=333,Ei===y&&(n=!1),_e=!0,jt("mainScrollAnimStart"),Pi("mainScroll",ji.x,g,u,w.easing.cubic.out,Zt,function(){wi(),_e=!1,Ei=-1,(n||Ei!==y)&&k.updateCurrItem(),jt("mainScrollAnimComplete")}),n&&k.updateCurrItem(!0),n},Ii=function(t){return 1/ue*t*C},Xi=function(){var e=S,t=ri(),o=ai();S<t?e=t:S>o&&(e=o);var n,l=1,a=ke;return we&&!J&&!Pe&&S<t?(k.close(),!0):(we&&(n=function(t){Xt((1-a)*t+a)}),k.zoomTo(e,0,200,w.easing.cubic.out,n),!0)};zt("Gestures",{publicMethods:{initGestures:function(){var t=function(o,r,t,e,i){I=o+r,F=o+t,N=o+e,M=i?o+i:""};U=G.pointerEvent,U&&G.touch&&(G.touch=!1),U?navigator.pointerEnabled?t("pointer","down","move","up","cancel"):t("MSPointer","Down","Move","Up","Cancel"):G.touch?(t("touch","start","move","end","cancel"),X=!0):t("mouse","down","move","up"),f=F+" "+N+" "+M,x=I,U&&!X&&(X=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),k.likelyTouchDevice=X,P[I]=sn,P[F]=Bi,P[N]=pn,M&&(P[M]=P[N]),G.touch&&(x+=" mousedown",f+=" mousemove mouseup",P.mousedown=P[I],P.mousemove=P[F],P.mouseup=P[N]),X||(_.allowPanToNext=!1)}}});
1var Vi,mn,un,gn,fn,hn,_n,yn=function(i,a,g,n){Vi&&clearTimeout(Vi),gn=!0,un=!0;var p;i.initialLayout?(p=i.initialLayout,i.initialLayout=null):p=_.getThumbBoundsFn&&_.getThumbBoundsFn(y);var f=g?_.hideAnimationDuration:_.showAnimationDuration,c=function(){bi("initialZoom"),g?(k.template.removeAttribute("style"),k.bg.removeAttribute("style")):(Xt(1),a&&(a.style.display="block"),w.addClass(u,"pswp--animated-in"),jt("initialZoom"+(g?"OutEnd":"InEnd"))),n&&n(),gn=!1};if(!f||!p||void 0===p.x)return jt("initialZoom"+(g?"Out":"In")),S=i.initialZoomLevel,Jt(vt,i.initialPosition),Bt(),u.style.opacity=g?0:1,Xt(1),void(f?setTimeout(function(){c()},f):c());var t=function(){var r=o,a=!k.currItem.src||k.currItem.loadError||_.showHideOpacity;i.miniImg&&(i.miniImg.style.webkitBackfaceVisibility="hidden"),g||(S=p.w/i.w,vt.x=p.x,vt.y=p.y-H,k[a?"template":"bg"].style.opacity=.001,Bt()),Ti("initialZoom"),g&&!r&&w.removeClass(u,"pswp--animated-in"),a&&(g?w[(r?"remove":"add")+"Class"](u,"pswp--animate_opacity"):setTimeout(function(){w.addClass(u,"pswp--animate_opacity")},30)),Vi=setTimeout(function(){if(jt("initialZoom"+(g?"Out":"In")),g){var n=p.w/i.w,o={x:vt.x,y:vt.y},s=S,l=ke,t=function(t){1===t?(S=n,vt.x=p.x,vt.y=p.y-V):(S=(n-s)*t+s,vt.x=(p.x-o.x)*t+o.x,vt.y=(p.y-V-o.y)*t+o.y),Bt(),a?u.style.opacity=1-t:Xt(l-t*l)};r?Pi("initialZoom",0,1,f,w.easing.cubic.out,t,c):(t(1),Vi=setTimeout(c,f+20))}else S=i.initialZoomLevel,Jt(vt,i.initialPosition),Bt(),Xt(1),a?u.style.opacity=1:Xt(1),Vi=setTimeout(c,f+20)},g?25:90)};t()},xn={},Sn=[],Dn={index:0,errorMsg:"<div class=\"pswp__error-msg\"><a href=\"%url%\" target=\"_blank\">The image</a> could not be loaded.</div>",forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return mn.length}},Ln=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},Rn=function(i,n,o){var t=i.bounds;t.center.x=c((xn.x-n)/2),t.center.y=c((xn.y-o)/2)+i.vGap.top,t.max.x=n>xn.x?c(xn.x-n):t.center.x,t.max.y=o>xn.y?c(xn.y-o)+i.vGap.top:t.center.y,t.min.x=n>xn.x?0:t.center.x,t.min.y=o>xn.y?i.vGap.top:t.center.y},In=function(i,n,t){if(i.src&&!i.loadError){var r=!t;if(r&&(i.vGap||(i.vGap={top:0,bottom:0}),jt("parseVerticalMargin",i)),xn.x=n.x,xn.y=n.y-i.vGap.top-i.vGap.bottom,r){var a=xn.x/i.w,o=xn.y/i.h;i.fitRatio=a<o?a:o;var l=_.scaleMode;"orig"===l?t=1:"fit"===l?t=i.fitRatio:"zoom"===l&&(t=p(i.initialZoomLevel||1,i.fitRatio)),1<t&&(t=1),i.initialZoomLevel=t,i.bounds||(i.bounds=Ln())}return t?(Rn(i,i.w*t,i.h*t),r&&t===i.initialZoomLevel&&(i.initialPosition=i.bounds.center),i.bounds):void 0}return i.w=i.h=0,i.initialZoomLevel=i.fitRatio=1,i.bounds=Ln(),i.initialPosition=i.bounds.center,i.bounds},On=function(e,i,n,r,o,a){i.loadError||r&&(i.imageAppended=!0,Mn(i,r,i===k.currItem&&Dt),n.appendChild(r),a&&setTimeout(function(){i&&i.loaded&&i.placeholder&&(i.placeholder.style.display="none",i.placeholder=null)},500))},Fn=function(e){e.loading=!0,e.loaded=!1;var i=e.img=w.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,i.onload=i.onerror=null,i=null};return i.onload=n,i.onerror=function(){e.loadError=!0,n()},i.src=e.src,i},Nn=function(e,i){if(e.src&&e.loadError&&e.container)return i&&(e.container.innerHTML=""),e.container.innerHTML=_.errorMsg.replace("%url%",e.
1src),!0},Mn=function(e,i,n){if(e.src){i||(i=e.container.lastChild);var a=n?e.w:c(e.w*e.fitRatio),o=n?e.h:c(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=a+"px",e.placeholder.style.height=o+"px"),i.style.width=a+"px",i.style.height=o+"px"}},Cn=function(){if(Sn.length){for(var e,t=0;t<Sn.length;t++)e=Sn[t],e.holder.index===e.index&&On(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);Sn=[]}};zt("Controller",{publicMethods:{lazyLoadItem:function(e){e=Lt(e);var t=fn(e);t&&(!t.loaded&&!t.loading||r)&&(jt("gettingData",e,t),t.src&&Fn(t))},initController:function(){w.extend(_,Dn,!0),k.items=mn=e,fn=k.getItemAt,hn=_.getNumItemsFn,_n=_.loop,3>hn()&&(_.loop=!1),Ft("beforeChange",function(t){var e,i=_.preload,s=null===t||0<=t,o=a(i[0],hn()),l=a(i[1],hn());for(e=1;e<=(s?l:o);e++)k.lazyLoadItem(y+e);for(e=1;e<=(s?o:l);e++)k.lazyLoadItem(y-e)}),Ft("initialLayout",function(){k.currItem.initialLayout=_.getThumbBoundsFn&&_.getThumbBoundsFn(y)}),Ft("mainScrollAnimComplete",Cn),Ft("initialZoomInEnd",Cn),Ft("destroy",function(){for(var e,t=0;t<mn.length;t++)e=mn[t],e.container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Sn=null})},getItemAt:function(t){return 0<=t&&void 0!==mn[t]&&mn[t]},allowProgressiveImg:function(){return _.forceProgressiveLoading||!X||_.mouseUsed||1200<screen.width},setContent:function(o,r){_.loop&&(r=Lt(r));var e=k.getItemAt(o.index);e&&(e.container=null);var n,a=k.getItemAt(r);if(!a)return void(o.el.innerHTML="");jt("gettingData",r,a),o.index=r,o.item=a;var d=a.container=w.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?d.appendChild(a.html):d.innerHTML=a.html),Nn(a),In(a,ht),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&(n=w.createEl("pswp__img","img"),n.style.opacity=1,n.src=a.src,Mn(a,n),On(r,a,d,n,!0));else{if(a.loadComplete=function(t){if(l){if(o&&o.index===r){if(Nn(t,!0))return t.loadComplete=t.img=null,In(t,ht),Yt(t),void(o.index===y&&k.updateCurrZoomItem());t.imageAppended?!gn&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null):G.transform&&(_e||gn)?Sn.push({item:t,baseDiv:d,img:t.img,index:r,holder:o,clearPlaceholder:!0}):On(r,t,d,t.img,_e||gn,!0)}t.loadComplete=null,t.img=null,jt("imageLoadComplete",r,t)}},w.features.transform){var s="pswp__img pswp__img--placeholder";s+=a.msrc?"":" pswp__img--placeholder--blank";var c=w.createEl(s,a.msrc?"img":"");a.msrc&&(c.src=a.msrc),Mn(a,c),d.appendChild(c),a.placeholder=c}a.loading||Fn(a),k.allowProgressiveImg()&&(!un&&G.transform?Sn.push({item:a,baseDiv:d,img:a.img,index:r,holder:o}):On(r,a,d,a.img,!0,!0))}un||r!==y?Yt(a):(fe=d.style,yn(a,n||a.img)),o.el.innerHTML="",o.el.appendChild(d)},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var zn,Bn={},Xn=function(r,o,t){var e=document.createEvent("CustomEvent"),i={origEvent:r,target:r.target,releasePoint:o,pointerType:t||"touch"};e.initCustomEvent("pswpTap",!0,!0,i),r.target.dispatchEvent(e)};zt("Tap",{publicMethods:{initTap:function(){Ft("firstTouchStart",k.onTapStart),Ft("touchRelease",k.onTapRelease),Ft("destroy",function(){Bn={},zn=null})},onTapStart:function(t){1<t.length&&(clearTimeout(zn),zn=null)},onTapRelease:function(i,n){if(n&&!se&&!re&&!di){var o=n;if(zn&&(clearTimeout(zn),zn=null,Gi(o,Bn)))return void jt("doubleTap",o);if("mouse"===n.type)return void Xn(i,n,"mouse");var t=i.target.tagName.toUpperCase();if("BUTTON"===t||w.hasClass(i.target,"pswp__single-tap"))return void Xn(i,n);Jt(Bn,o),zn=setTimeout(function(){Xn(i,n),zn=null},300)}}}});var jn;zt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){Z||(X?Ft("mouseUsed",function(){k.setupDesktopZoom()}):k.setupDesktopZoom(!0))},setupDesktopZoom:function(e){jn={};var i="wheel mousewheel DOMMouseScroll";Ft("bindEvents",function(){w.bind(u,"wheel mousewheel DOMMouseScroll",k.handleMouseWheel)}),Ft("unbindEvents",function(){jn&&w.unbind(u,"wheel mousewheel DOMMouseScroll",k.handleMouseWheel)}),k.mouseZoomedIn=!1;var n,a=function(){k.mouseZoomedIn&&(w.removeClass(u,"pswp--zoomed-in"),k.mouseZoomedIn=!1),1>S?w.addClass(u,"pswp--zoom-allowed"):w.removeClass(u,"pswp--zoom-allowed"),o()},o=function(){n&&(w.removeClass(u,"pswp--dragging"),n=!1)};Ft("resize",a),Ft("afterChange",a),Ft("pointerDown",function(){k.mouseZoomedIn&&(n=!0,w.addClass(u,"pswp--dragging"))}),Ft("pointerUp",o),e||a()},handleMouseWheel:function(t){if(S<=k.currItem.fitRatio)return _.modal&&(!_.closeOnScroll||di||oe?t.preventDefault():B&&2<h(t.deltaY)&&(o=!0,k.close())),!0;if(t.stopPropagation(),jn.x=0,"deltaX"in t)1===t.deltaMode?(jn.x=18*t.deltaX,jn.y=18*t.deltaY):(jn.x=t.deltaX,jn.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(jn.x=-.16*t.wheelDeltaX),jn.y=t.
1wheelDeltaY?-.16*t.wheelDeltaY:-.16*t.wheelDelta;else{if(!("detail"in t))return;jn.y=t.detail}oi(S,!0);var e=vt.x-jn.x,i=vt.y-jn.y;(_.modal||e<=ge.min.x&&e>=ge.max.x&&i<=ge.min.y&&i>=ge.max.y)&&t.preventDefault(),k.panTo(e,i)},toggleDesktopZoom:function(e){e=e||{x:ht.x/2+wt.x,y:ht.y/2+wt.y};var n=_.getDoubleTapZoom(!0,k.currItem),o=S===n;k.mouseZoomedIn=!o,k.zoomTo(o?k.currItem.initialZoomLevel:n,e,333),w[(o?"remove":"add")+"Class"](u,"pswp--zoomed-in")}}}),w.extend(k,{shout:jt,listen:Ft,viewportSize:ht,options:_,isMainScrollAnimating:function(){return _e},getZoomLevel:function(){return S},getCurrentIndex:function(){return y},isDragging:function(){return oe},isZooming:function(){return ce},setScrollOffset:function(e,i){wt.x=e,V=wt.y=i,jt("updateScrollOffset",wt)},applyZoomPan:function(i,n,o,t){vt.x=n,vt.y=o,S=i,Bt(t)},init:function(){if(!l&&!s){var e;k.framework=w,k.template=u,k.bg=w.getChildByClass(u,"pswp__bg"),Y=u.className,l=!0,G=w.detectFeatures(),j=G.raf,W=G.caf,B=G.transform,Z=G.oldIE,k.scrollWrap=w.getChildByClass(u,"pswp__scroll-wrap"),k.container=w.getChildByClass(k.scrollWrap,"pswp__container"),d=k.container.style,k.itemHolders=L=[{el:k.container.children[0],wrap:0,index:-1},{el:k.container.children[1],wrap:0,index:-1},{el:k.container.children[2],wrap:0,index:-1}],L[0].el.style.display=L[2].el.style.display="none",fi(),P={resize:k.updateSize,orientationchange:function(){clearTimeout(q),q=setTimeout(function(){ht.x!==k.scrollWrap.clientWidth&&k.updateSize()},500)},scroll:ei,keydown:Kt,click:li};var n=G.isOldIOSPhone||G.isOldAndroid||G.isMobileOpera;for(G.animationName&&G.transform&&!n||(_.showAnimationDuration=_.hideAnimationDuration=0),e=0;e<Ct.length;e++)k["init"+Ct[e]]();if(t){var r=k.ui=new t(k,w);r.init()}jt("firstUpdate"),y=y||_.index||0,(isNaN(y)||0>y||y>=hn())&&(y=0),k.currItem=fn(y),(G.isOldIOSPhone||G.isOldAndroid)&&(St=!1),u.setAttribute("aria-hidden","false"),_.modal&&(St?u.style.position="fixed":(u.style.position="absolute",u.style.top=w.getScrollY()+"px")),void 0===V&&(jt("initialLayout"),V=H=w.getScrollY());var a="pswp--open ";for(_.mainClass&&(a+=_.mainClass+" "),_.showHideOpacity&&(a+="pswp--animate_opacity "),a+=X?"pswp--touch":"pswp--notouch",a+=G.animationName?" pswp--css_animation":"",a+=G.svg?" pswp--svg":"",w.addClass(u,a),k.updateSize(),m=-1,Pt=null,e=0;3>e;e++)Ht((e+m)*kt.x,L[e].el.style);Z||w.bind(k.scrollWrap,x,k),Ft("initialZoomInEnd",function(){k.setContent(L[0],y-1),k.setContent(L[2],y+1),L[0].el.style.display=L[2].el.style.display="block",_.focus&&u.focus(),ci()}),k.setContent(L[1],y),k.updateCurrItem(),jt("afterInit"),St||(z=setInterval(function(){di||oe||ce||S!==k.currItem.initialZoomLevel||k.updateSize()},1e3)),w.addClass(u,"pswp--visible")}}
1,close:function(){l&&(l=!1,s=!0,jt("close"),mi(),yn(k.currItem,null,!0,k.destroy))},destroy:function(){jt("destroy"),Vi&&clearTimeout(Vi),u.setAttribute("aria-hidden","true"),u.className=Y,z&&clearInterval(z),w.unbind(k.scrollWrap,x,k),w.unbind(window,"scroll",k),dn(),wi(),It=null},panTo:function(e,t,i){i||(e>ge.min.x?e=ge.min.x:e<ge.max.x&&(e=ge.max.x),t>ge.min.y?t=ge.min.y:t<ge.max.y&&(t=ge.max.y)),vt.x=e,vt.y=t,Bt()},handleEvent:function(t){t=t||window.event,P[t.type]&&P[t.type](t)},goTo:function(e){e=Lt(e);var t=e-y;Pt=t,y=e,k.currItem=fn(y),yt-=t,Zt(kt.x*yt),wi(),_e=!1,k.updateCurrItem()},next:function(){k.goTo(y+1)},prev:function(){k.goTo(y-1)},updateCurrZoomItem:function(e){if(e&&jt("beforeChange",0),L[1].el.children.length){var i=L[1].el.children[0];fe=w.hasClass(i,"pswp__zoom-wrap")?i.style:null}else fe=null;ge=k.currItem.bounds,C=S=k.currItem.initialZoomLevel,vt.x=ge.center.x,vt.y=ge.center.y,e&&jt("afterChange")},invalidateCurrItems:function(){r=!0;for(var t=0;3>t;t++)L[t].item&&(L[t].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==Pt){var i,n=h(Pt);if(!(e&&2>n)){k.currItem=fn(y),Dt=!1,jt("beforeChange",Pt),3<=n&&(m+=Pt+(0<Pt?-3:3),n=3);for(var s=0;s<n;s++)0<Pt?(i=L.shift(),L[2]=i,m++,Ht((m+2)*kt.x,i.el.style),k.setContent(i,y-n+s+1+1)):(i=L.pop(),L.unshift(i),m--,Ht(m*kt.x,i.el.style),k.setContent(i,y+n-s-1-1));if(fe&&1===h(Pt)){var l=fn(R);l.initialZoomLevel!==S&&(In(l,ht),Mn(l),Yt(l))}Pt=0,k.updateCurrZoomItem(),R=y,jt("afterChange")}}},updateSize:function(e){if(!St&&_.modal){var i=w.getScrollY();if(V!==i&&(u.style.top=i+"px",V=i),!e&&Ot.x===window.innerWidth&&Ot.y===window.innerHeight)return;Ot.x=window.innerWidth,Ot.y=window.innerHeight,u.style.height=Ot.y+"px"}if(ht.x=k.scrollWrap.clientWidth,ht.y=k.scrollWrap.clientHeight,ei(),kt.x=ht.x+c(ht.x*_.spacing),kt.y=ht.y,Zt(kt.x*yt),jt("beforeResize"),void 0!==m){for(var n,o,a,s=0;3>s;s++)n=L[s],Ht((s+m)*kt.x,n.el.style),a=y+s-1,_.loop&&2<hn()&&(a=Lt(a)),o=fn(a),o&&(r||o.needsUpdate||!o.bounds)?(k.cleanSlide(o),k.setContent(n,a),1===s&&(k.currItem=o,k.updateCurrZoomItem(!0)),o.needsUpdate=!1):-1===n.index&&0<=a&&k.setContent(n,a),o&&o.container&&(In(o,ht),Mn(o),Yt(o));r=!1}C=S=k.currItem.initialZoomLevel,ge=k.currItem.bounds,ge&&(vt.x=ge.center.x,vt.y=ge.center.y,Bt(!0)),jt("resize")},zoomTo:function(i,n,o,r,a){n&&(C=S,Hi.x=h(n.x)-vt.x,Hi.y=h(n.y)-vt.y,Jt(Tt,vt));var s=oi(i,!1),l={};si("x",s,l,i),si("y",s,l,i);var d=S,p={x:vt.x,y:vt.y};$t(l);var t=function(t){1===t?(S=i,vt.x=l.x,vt.y=l.y):(S=(i-d)*t+d,vt.x=(l.x-p.x)*t+p.x,vt.y=(l.y-p.y)*t+p.y),a&&a(t),Bt(1===t)};o?Pi("customZoomTo",0,1,o,r||w.easing.sine.inOut,t):t(1)}})};return t}),function(e,i){"function"==typeof define&&define.amd?define([],i):"object"==typeof module&&module.exports?module.exports=i():e.Rellax=i()}(this,function(){var t=Math.round,e=function(i,r){"use strict";var c=Object.create(e.prototype),o=0,b=0,x=[],a=!1,f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){setTimeout(t,1e3/60)},h=window.transformProp||function(){var t=document.createElement("div");if(null==t.style.transform){var e=["Webkit","Moz","ms"];for(var i in e)if(void 0!==t.style[e[i]+"Transform"])return e[i]+"Transform"}return"transform"}(),T=function(t,e,i){return t<=e?e:t>=i?i:t};c.options={speed:-2,center:!1,round:!0,callback:function(){}},r&&Object.keys(r).forEach(function(t){c.options[t]=r[t]}),c.options.speed=T(c.options.speed,-10,10),i||(i=".rellax");var _=document.querySelectorAll(i);if(!(0<_.length))throw new Error("The elements you're trying to select don't exist.");c.elems=_;var s=function(){b=window.innerHeight,d();for(var e,t=0;t<c.elems.length;t++)e=l(c.elems[t]),x.push(e);window.addEventListener("resize",function(){m()}),g(),m()},l=function(e){var i=e.getAttribute("data-rellax-percentage"),o=e.getAttribute("data-rellax-speed"),r=e.getAttribute("data-rellax-zindex")||0,a=i||c.options.center?window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop:0,s=a+e.getBoundingClientRect().top,l=e.clientHeight||e.offsetHeight||e.scrollHeight,n=i?i:(a-s+b)/(l+b);c.options.center&&(n=.5);var m=o?T(o,-10,10):c.options.speed;(i||c.options.center)&&(m=T(o||c.options.speed,-5,5));var u=k(n,m),g=e.style.cssText,f="";if(0<=g.indexOf("transform")){var _=g.indexOf("transform"),y=g.slice(_),x=y.indexOf(";");f=x?" "+y.slice(11,x).replace(/\s/g,""):" "+y.slice(11).replace(/\s/g,"")}return{base:u,top:s,height:l,speed:m,style:g,transform:f,zindex:r}},d=function(){var t=o;return o=void 0===window.pageYOffset?(document.documentElement||document.body.parentNode||document.body).scrollTop:window.pageYOffset,t!=o},k=function(e,i){var n=i*(100*(1-e));return c.options.round?t(n):t(100*n)/100},g=function(){d()&&!1==a&&m(),f(g)},m=function(){for(var e=0;e<c.elems.length;e++){var t=(o-x[e].top+b)/(x[e].height+b),n=k(t,x[e].speed)-x[e].base,s=x[e].zindex,p="translate3d(0,"+n+"px,"+s+"px) "+x[e].transform;c.elems[e].style[h]=p}c.options.callback(n)};return c.destroy=function(){for(var t=0;t<c.elems.length;t++)c.elems[t].style.cssText=x[t].style;a=!0},s(),c};return e}),function(){"use strict";function e(e){var i=["MSIE ","Trident/","Edge/"];return new RegExp(i.join("|")).test(e)}function t(){function _(e,i){this.scrollLeft=e,this.scrollTop=i}function c(t){return .5*(1-Math.cos(Math.PI*t))}function d(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;
1if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function t(e,t){return"Y"===t?e.clientHeight+n<e.scrollHeight:"X"===t?e.clientWidth+n<e.scrollWidth:void 0}function o(t,e){var n=u.getComputedStyle(t,null)["overflow"+e];return"auto"===n||"scroll"===n}function i(r){var i=t(r,"Y")&&o(r,"Y"),n=t(r,"X")&&o(r,"X");return i||n}function r(e){var o;do e=e.parentNode,o=e===f.body;while(!1===o&&!1===i(e));return o=null,e}function y(e){var t,o,r,l=m(),d=(l-e.startTime)/p;d=1<d?1:d,t=c(d),o=e.startX+(e.x-e.startX)*t,r=e.startY+(e.y-e.startY)*t,e.method.call(e.scrollable,o,r),o===e.x&&r===e.y||u.requestAnimationFrame(y.bind(u,e))}function a(n,e,t){var i,d,p,g,h=m();n===f.body?(i=u,d=u.scrollX||u.pageXOffset,p=u.scrollY||u.pageYOffset,g=l.scroll):(i=n,d=n.scrollLeft,p=n.scrollTop,g=_),y({scrollable:i,method:g,startTime:h,startX:d,startY:p,x:e,y:t})}if(!("scrollBehavior"in f.documentElement.style&&!0!==u.__forceSmoothScrollPolyfill__)){var s=u.HTMLElement||u.Element,p=468,n=e(u.navigator.userAgent)?1:0,l={scroll:u.scroll||u.scrollTo,scrollBy:u.scrollBy,elementScroll:s.prototype.scroll||_,scrollIntoView:s.prototype.scrollIntoView},m=u.performance&&u.performance.now?u.performance.now.bind(u.performance):Date.now;u.scroll=u.scrollTo=function(){if(void 0!==arguments[0])return!0===d(arguments[0])?void l.scroll.call(u,void 0===arguments[0].left?"object"==typeof arguments[0]?u.scrollX||u.pageXOffset:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?u.scrollY||u.pageYOffset:arguments[1]:arguments[0].top):void a.call(u,f.body,void 0===arguments[0].left?u.scrollX||u.pageXOffset:~~arguments[0].left,void 0===arguments[0].top?u.scrollY||u.pageYOffset:~~arguments[0].top)},u.scrollBy=function(){if(void 0!==arguments[0])return d(arguments[0])?void l.scrollBy.call(u,void 0===arguments[0].left?"object"==typeof arguments[0]?0:arguments[0]:arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?0:arguments[1]:arguments[0].top):void a.call(u,f.body,~~arguments[0].left+(u.scrollX||u.pageXOffset),~~arguments[0].top+(u.scrollY||u.pageYOffset))},s.prototype.scroll=s.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===d(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value couldn't be converted");return void l.elementScroll.call(this,void 0===arguments[0].left?"object"==typeof arguments[0]?this.scrollLeft:~~arguments[0]:~~arguments[0].left,void 0===arguments[0].top?void 0===arguments[1]?this.scrollTop:~~arguments[1]:~~arguments[0].top)}var e=arguments[0].left,t=arguments[0].top;a.call(this,this,"undefined"==typeof e?this.scrollLeft:~~e,"undefined"==typeof t?this.scrollTop:~~t)}},s.prototype.scrollBy=function(){if(void 0!==arguments[0])return!0===d(arguments[0])?void l.elementScroll.call(this,void 0===arguments[0].left?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,void 0===arguments[0].top?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop):void this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})},s.prototype.scrollIntoView=function(){if(!0===d(arguments[0]))return void l.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var i=r(this),e=i.getBoundingClientRect(),t=this.getBoundingClientRect();i===f.body?u.scrollBy({left:t.left,top:t.top,behavior:"smooth"}):(a.call(this,i,i.scrollLeft+t.left-e.left,i.scrollTop+t.top-e.top),"fixed"!==u.getComputedStyle(i).position&&u.scrollBy({left:e.left,top:e.top,behavior:"smooth"}))}}}var u=window,f=document;"object"==typeof exports?module.exports={polyfill:t}:t()}(),function(x,u){"use strict";function n(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}function p(t){return parseFloat(t)||0}function f(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t}function e(){function t(){x.pageXOffset==r.left?x.pageYOffset!=r.top&&(r.top=x.pageYOffset,r.left=x.pageXOffset,s.forEac
1h(function(t){return t._recalcPosition()})):(r.top=x.pageYOffset,r.left=x.pageXOffset,i.refreshAll())}function a(){p=setInterval(function(){s.forEach(function(t){return t._fastCheck()})},500)}function n(){clearInterval(p)}t(),x.addEventListener("scroll",t),x.addEventListener("resize",i.refreshAll),x.addEventListener("orientationchange",i.refreshAll);var o,d,p=void 0;"hidden"in u?(o="hidden",d="visibilitychange"):"webkitHidden"in u&&(o="webkitHidden",d="webkitvisibilitychange"),d?(u[o]||a(),u.addEventListener(d,function(){u[o]?n():a()})):a()}var o=Math.abs,t=function(){function i(t,e){for(var i,o=0;o<e.length;o++)i=e[o],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(n,o,t){return o&&i(n.prototype,o),t&&i(n,t),n}}(),v=!1;x.getComputedStyle?!function(){var e=u.createElement("div");["","-webkit-","-moz-","-ms-"].some(function(i){try{e.style.position=i+"sticky"}catch(t){}return""!=e.style.position})&&(v=!0)}():v=!0;var b="undefined"!=typeof ShadowRoot,r={top:null,left:null},s=[],l=function(){function i(t){if(n(this,i),!(t instanceof HTMLElement))throw new Error("First argument must be HTMLElement");if(s.some(function(e){return e._node===t}))throw new Error("Stickyfill is already applied to this node");this._node=t,this._stickyMode=null,this._active=!1,s.push(this),this.refresh()}return t(i,[{key:"refresh",value:function(){if(!v&&!this._removed){this._active&&this._deactivate();var e=this._node,d=getComputedStyle(e),t={top:d.top,display:d.display,marginTop:d.marginTop,marginBottom:d.marginBottom,marginLeft:d.marginLeft,marginRight:d.marginRight,cssFloat:d.cssFloat};if(!isNaN(parseFloat(t.top))&&"table-cell"!=t.display&&"none"!=t.display){this._active=!0;var m=e.parentNode,g=b&&m instanceof ShadowRoot?m.host:m,i=e.getBoundingClientRect(),o=g.getBoundingClientRect(),r=getComputedStyle(g);this._parent={node:g,styles:{position:g.style.position},offsetHeight:g.offsetHeight},this._offsetToWindow={left:i.left,right:u.documentElement.clientWidth-i.right},this._offsetToParent={top:i.top-o.top-p(r.borderTopWidth),left:i.left-o.left-p(r.borderLeftWidth),right:-i.right+o.right-p(r.borderRightWidth)},this._styles={position:e.style.position,top:e.style.top,bottom:e.style.bottom,left:e.style.left,right:e.style.right,width:e.style.width,marginTop:e.style.marginTop,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight};var n=p(t.top);this._limits={start:i.top+x.pageYOffset-n,end:o.top+x.pageYOffset+g.offsetHeight-p(r.borderBottomWidth)-e.offsetHeight-n-p(t.marginBottom)};var a=r.position;"absolute"!=a&&"relative"!=a&&(g.style.position="relative"),this._recalcPosition();var s=this._clone={};s.node=u.createElement("div"),c(s.node.style,{width:i.right-i.left+"px",height:i.bottom-i.top+"px",marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,padding:0,border:0,borderSpacing:0,fontSize:"1em",position:"static"}),m.insertBefore(s.node,e),s.docOffsetTop=f(s.node)}}}},{key:"_recalcPosition",value:function(){if(this._active&&!this._removed){var e=r.top<=this._limits.start?"start":r.top>=this._limits.end?"end":"middle";this._stickyMode!=e&&("start"===e?c(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:this._offsetToParent.top+"px",bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0}):"middle"===e?c(this._node.style,{position:"fixed",left:this._offsetToWindow.left+"px",right:this._offsetToWindow.right+"px",top:this._styles.top,bottom:"auto",width:"auto",marginLeft:0,marginRight:0,marginTop:0}):"end"===e?c(this._node.style,{position:"absolute",left:this._offsetToParent.left+"px",right:this._offsetToParent.right+"px",top:"auto",bottom:0,width:"auto",marginLeft:0,marginRight:0}):void 0,this._stickyMode=e)}}},{key:"_fastCheck",value:function(){this._active&&!this._removed&&(1<o(f(this._clone.node)-this._clone.docOffsetTop)||1<o(this._parent.node.offsetHeight-this._parent.offsetHeight))&&this.refresh()}},{key:"_deactivate",value:function(){var i=this;this._active&&!this._removed&&(this._clone.node.parentNode.removeChild(this._clone.node),delete this._clone,c(this._node.style,this._styles),delete this._styles,s.some(function(e){return e!==i&&e._parent&&e._parent.node===i._parent.node})||c(this._parent.node.style,this._parent.styles),delete this._parent,this._stickyMode=null,this._active=!1,delete this._offsetToWindow,delete this._offsetToParent,delete this._limits)}},{key:"remove",value:function(){var t=this;this._deactivate(),s.some(function(e,i){if(e._node===t._node)return s.splice(i,1),!0}),this._removed=!0}}]),i}(),i={stickies:s,Sticky:l,addOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}for(var i=0;i<s.length;i++)if(s[i]._node===e)return s[i];return new l(e)}
1,add:function(o){if(o instanceof HTMLElement&&(o=[o]),o.length){for(var a=[],i=function(t){var i=o[t];return i instanceof HTMLElement?s.some(function(e){if(e._node===i)return a.push(e),!0})?"continue":void a.push(new l(i)):(a.push(void 0),"continue")},e=0;e<o.length;e++)i(e);return a}},refreshAll:function(){s.forEach(function(t){return t.refresh()})},removeOne:function(e){if(!(e instanceof HTMLElement)){if(!e.length||!e[0])return;e=e[0]}s.some(function(i){if(i._node===e)return i.remove(),!0})},remove:function(n){if(n instanceof HTMLElement&&(n=[n]),n.length)for(var i=function(t){var i=n[t];s.some(function(e){if(e._node===i)return e.remove(),!0})},e=0;e<n.length;e++)i(e)},removeAll:function(){for(;s.length;)s[0].remove()}};v||e(),"undefined"!=typeof module&&module.exports?module.exports=i:x.Stickyfill=i}(window,document),function(P,d){"use strict";var h=Math.min,R=Math.round,t={},n=P.document,s=P.GreenSockGlobals=P.GreenSockGlobals||P;if(!s.TweenLite){var e,l,m,x,I,f=function(i){var t,o=i.split("."),r=s;for(t=0;t<o.length;t++)r[o[t]]=r=r[o[t]]||{};return r},a=f("com.greensock"),M=1e-10,y=function(e){var t,r=[],o=e.length;for(t=0;t!==o;r.push(e[t++]));return r},p=function(){},T=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},u=function(i,n,o,r){this.sc=c[i]?c[i].sc:[],c[i]=this,this.gsClass=null,this.func=o;var a=[];this.check=function(e){for(var l,m,g,h,y=n.length,x=y;-1<--y;)(l=c[n[y]]||new u(n[y],[])).gsClass?(a[y]=l.gsClass,x--):e&&l.sc.push(this);if(0===x&&o){if(m=("com.greensock."+i).split("."),g=m.pop(),h=f(m.join("."))[g]=this.gsClass=o.apply(o,a),r)if(s[g]=t[g]=h,!("undefined"!=typeof module&&module.exports))"function"==typeof define&&define.amd&&define((P.GreenSockAMDPath?P.GreenSockAMDPath+"/":"")+i.split(".").pop(),[],function(){return h});else if(i===d)for(y in module.exports=t[d]=h,t)h[y]=t[y];else t[d]&&(t[d][g]=h);for(y=0;y<this.sc.length;y++)this.sc[y].check()}},this.check(!0)},g=P._gsDefine=function(i,n,o,t){return new u(i,n,o,t)},b=a._class=function(e,i,o){return i=i||function(){},g(e,[],function(){return i},o),i};g.globals=s;var w=[0,0,1,1],_=b("easing.Ease",function(i,n,o,t){this._func=i,this._type=o||0,this._power=t||0,this._params=n?w.concat(n):w},!0),k=_.map={},S=_.register=function(i,o,t,r){for(var n,d,p,c,u=o.split(","),f=u.length,h=(t||"easeIn,easeOut,easeInOut").split(",");-1<--f;)for(d=u[f],n=r?b("easing."+d,null,!0):a.easing[d]||{},p=h.length;-1<--p;)c=h[p],k[d+"."+c]=k[c+d]=n[c]=i.getRatio?i:i[c]||new i};for(m=_.prototype,m._calcEnd=!1,m.getRatio=function(i){if(this._func)return this._params[0]=i,this._func.apply(null,this._params);var n=this._type,o=this._power,t=1===n?1-i:2===n?i:.5>i?2*i:2*(1-i);return 1===o?t*=t:2===o?t*=t*t:3===o?t*=t*t*t:4===o&&(t*=t*t*t*t),1===n?1-t:2===n?t:.5>i?t/2:1-t/2},e=["Linear","Quad","Cubic","Quart","Quint,Strong"],l=e.length;-1<--l;)m=e[l]+",Power"+l,S(new _(null,null,1,l),m,"easeOut",!0),S(new _(null,null,2,l),m,"easeIn"+(0===l?",easeNone":"")),S(new _(null,null,3,l),m,"easeInOut");k.linear=a.easing.Linear.easeIn,k.swing=a.easing.Quad.easeInOut;var C=b("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});m=C.prototype,m.addEventListener=function(o,r,t,e,i){i=i||0;var a,s,p=this._listeners[o],c=0;for(this!==x||I||x.wake(),null==p&&(this._listeners[o]=p=[]),s=p.length;-1<--s;)a=p[s],a.c===r&&a.s===t?p.splice(s,1):0===c&&a.pr<i&&(c=s+1);p.splice(c,0,{c:r,s:t,up:e,pr:i})},m.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},m.dispatchEvent=function(e){var i,n,o,r=this._listeners[e];if(r)for(i=r.length,1<i&&(r=r.slice(0)),n=this._eventTarget;-1<--i;)o=r[i],o&&(o.up?o.c.call(o.s||n,{type:e,target:n}):o.c.call(o.s||n))};var E=P.requestAnimationFrame,O=P.cancelAnimationFrame,B=Date.now||function(){return new Date().getTime()},z=B();for(e=["ms","moz","webkit","o"],l=e.length;-1<--l&&!E;)E=P[e[l]+"RequestAnimationFrame"],O=P[e[l]+"CancelAnimationFrame"]||P[e[l]+"CancelRequestAnimationFrame"];b("Ticker",function(e,o){var i,l,d,m,u,v=this,y=B(),s=!1!==o&&E&&"auto",w=500,P=33,S="tick",A=function(n){var t,r,a=B()-z;a>
1w&&(y+=a-P),z+=a,v.time=(z-y)/1e3,t=v.time-u,(!i||0<t||!0===n)&&(v.frame++,u+=t+(t>=m?.004:m-t),r=!0),!0!==n&&(d=l(A)),r&&v.dispatchEvent("tick")};C.call(v),v.time=v.frame=0,v.tick=function(){A(!0)},v.lagSmoothing=function(t,e){return arguments.length?(w=t||1e10,void(P=h(e,w,0))):1e10>w},v.sleep=function(){null!=d&&(s&&O?O(d):clearTimeout(d),l=p,d=null,v===x&&(I=!1))},v.wake=function(t){null===d?t?y+=-z+(z=B()):10<v.frame&&(z=B()-w+5):v.sleep(),l=0===i?p:s&&E?E:function(t){return setTimeout(t,0|1e3*(u-v.time)+1)},v===x&&(I=!0),A(2)},v.fps=function(t){return arguments.length?(i=t,m=1/(i||60),u=this.time+m,void v.wake()):i},v.useRAF=function(e){return arguments.length?(v.sleep(),s=e,void v.fps(i)):s},v.fps(e),setTimeout(function(){"auto"===s&&5>v.frame&&"hidden"!==n.visibilityState&&v.useRAF(!1)},1500)}),m=a.Ticker.prototype=new a.events.EventDispatcher,m.constructor=a.Ticker;var V=b("core.Animation",function(e,i){if(this.vars=i=i||{},this._duration=this._totalDuration=e||0,this._delay=+i.delay||0,this._timeScale=1,this._active=!0===i.immediateRender,this.data=i.data,this._reversed=!0===i.reversed,le){I||x.wake();var n=this.vars.useFrames?se:le;n.add(this,n._time),this.vars.paused&&this.paused(!0)}});x=V.ticker=new a.Ticker,m=V.prototype,m._dirty=m._gc=m._initted=m._paused=!1,m._totalTime=m._time=0,m._rawPrevTime=-1,m._next=m._last=m._onUpdate=m._timeline=m.timeline=null,m._paused=!1;var N=function(){I&&2e3<B()-z&&("hidden"!==n.visibilityState||!x.lagSmoothing())&&x.wake();var t=setTimeout(N,2e3);t.unref&&t.unref()};N(),m.play=function(e,i){return null!=e&&this.seek(e,i),this.reversed(!1).paused(!1)},m.pause=function(e,i){return null!=e&&this.seek(e,i),this.paused(!0)},m.resume=function(e,i){return null!=e&&this.seek(e,i),this.paused(!1)},m.seek=function(e,i){return this.totalTime(+e,!1!==i)},m.restart=function(e,i){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==i,!0)},m.reverse=function(e,i){return null!=e&&this.seek(e||this.totalDuration(),i),this.reversed(!0).paused(!1)},m.render=function(t,e,i){},m.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},m.isActive=function(){var t,o=this._timeline,n=this._startTime;return!o||!this._gc&&!this._paused&&o.isActive()&&(t=o.rawTime(!0))>=n&&t<n+this.totalDuration()/this._timeScale-1e-7},m._enabled=function(e,i){return I||x.wake(),this._gc=!e,this._active=this.isActive(),!0!==i&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},m._kill=function(e,i){return this._enabled(!1,!1)},m.kill=function(e,i){return this._kill(e,i),this},m._uncache=function(e){for(var i=e?this:this.timeline;i;)i._dirty=!0,i=i.timeline;return this},m._swapSelfInParams=function(e){for(var i=e.length,n=e.concat();-1<--i;)"{self}"===e[i]&&(n[i]=this);return n},m._callback=function(e){var i=this.vars,n=i[e],r=i[e+"Params"],a=i[e+"Scope"]||i.callbackScope||this,o=r?r.length:0;0===o?n.call(a):1===o?n.call(a,r[0]):2===o?n.call(a,r[0],r[1]):n.apply(a,r)},m.eventCallback=function(r,o,t,e){if("on"===(r||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[r];null==o?delete i[r]:(i[r]=o,i[r+"Params"]=T(t)&&-1!==t.join("").indexOf("{self}")?this._swapSelfInParams(t):t,i[r+"Scope"]=e),"onUpdate"===r&&(this._onUpdate=o)}return this},m.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},m.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},m.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},m.time=function(e,i){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,i)):this._time},m.totalTime=function(t,o,r){if(I||x.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!r&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var a=this._totalDuration,n=this._timeline;if(t>a&&!r&&(t=a),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?a-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(H.length&&me(),this.render(t,o,!1),H.length&&me())}return this},m.progress=m.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},m.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},m.endTime=function(t){return this._startTime+(0==t?this.duration():this.totalDuration())/this._timeScale},m.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,i;for(e=e||M,this._timeline&&this._timeline.smoothChildTiming&&(t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/e),this._timeScale=e,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},m.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},m.paused=function(e){if(!arguments.length)return this._paused;var i,o,a=this._timeline;return e!=this._paused&&a&&(I||e||x.wake(),i=a.rawTime(),o=i-this._pauseTime,!e&&a.smoothChildTiming&&(this._startTime+=o,this._uncache(!1)),this._pauseTime=e?i:null,this._paused=e,this._active=this.isActive(),!e&&0!==o&&this._initted&&this.duration()&&(i=a.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,this.render(i,i===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var X=b("core.SimpleTimeline",function(t){V.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});m=X.prototype=new V,m.constructor=X,m.kill()._gc=!1,m._first=m._last=m._recent=null,m._sortChildren=!1,m.add=m.insert=function(r,o,t,e){var i,s;if(r._startTime=+(o||0)+r._delay,r._paused&&this!==r._timeline&&(r._pauseTime=r._startTime+(this.rawTime()-r._startTime)/r._timeScale),r.timeline&&r.timeline._remove(r,!0),r.timeline=r._timeline=this,r._gc&&r._enabled(!0,!0),i=this._last,this._sortChildren)for(s=r._startTime;i&&i._startTime>s;)i=i._prev;return i?(r._next=i._next,i._next=r):(r._next=this._first,this._first=r),r._next?r._next._prev=r:this._last=r,r._prev=i,this._recent=r,this._timeline&&this._uncache(!0),this},m._remove=function(e,i){return e.timeline===this&&(i||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},m.render=function(i,n,o){var t,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=i;r;)t=r._next,(r._active||i>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(i-r._startTime)*r._timeScale,n,o):r.render((i-r._startTime)*r._timeScale,n,o)),r=t},m.rawTime=function(){return I||x.wake(),this._totalTime};var j=b("TweenLite",function(e,i,n){if(V.call(this,i,n),this.render=j.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"==typeof e?j.selector(e)||e:e;var o,a,s,c=e.jquery||e.length&&e!==P&&e[0]&&(e[0]===P||e[0].nodeType&&e[0].style&&!e.nodeType),m=this.vars.over
1write;if(this._overwrite=m=null==m?ae[j.defaultOverwrite]:"number"==typeof m?m>>0:ae[m],(c||e instanceof Array||e.push&&T(e))&&"number"!=typeof e[0])for(this._targets=s=y(e),this._propLookup=[],this._siblings=[],o=0;o<s.length;o++)a=s[o],a?"string"==typeof a?(a=s[o--]=j.selector(a),"string"==typeof a&&s.splice(o+1,1)):a.length&&a!==P&&a[0]&&(a[0]===P||a[0].nodeType&&a[0].style&&!a.nodeType)?(s.splice(o--,1),this._targets=s=s.concat(y(a))):(this._siblings[o]=pe(a,this,!1),1===m&&1<this._siblings[o].length&&fe(a,this,null,1,this._siblings[o])):s.splice(o--,1);else this._propLookup={},this._siblings=pe(e,this,!1),1===m&&1<this._siblings.length&&fe(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-M,this.render(h(0,-this._delay)))},!0),W=function(t){return t&&t.length&&t!==P&&t[0]&&(t[0]===P||t[0].nodeType&&t[0].style&&!t.nodeType)},Y=function(t,e){var i,r={};for(i in t)re[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!J[i]||J[i]&&J[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r};m=j.prototype=new V,m.constructor=j,m.kill()._gc=!1,m.ratio=0,m._firstPT=m._targets=m._overwrittenProps=m._startAt=null,m._notifyPluginsOfEnabled=m._lazy=!1,j.version="1.20.3",j.defaultEase=m._ease=new _(null,null,1,1),j.defaultOverwrite="auto",j.ticker=x,j.autoSleep=120,j.lagSmoothing=function(e,i){x.lagSmoothing(e,i)},j.selector=P.$||P.jQuery||function(e){var t=P.$||P.jQuery;return t?(j.selector=t,t(e)):"undefined"==typeof n?e:n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e)};var H=[],Z={},ne=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,q=/[\+-]=-?[\.\d]/,Q=function(e){for(var i,o=this._firstPT,a=1e-6;o;)i=o.blob?1===e&&null!=this.end?this.end:e?this.join(""):this.start:o.c*e+o.s,o.m?i=o.m(i,this._target||o.t):i<a&&i>-a&&!o.blob&&(i=0),o.f?o.fp?o.t[o.p](o.fp,i):o.t[o.p](i):o.t[o.p]=i,o=o._next},ie=function(e,i,a,s){var n,l,d,c,f,_,y,x=[],v=0,w="",k=0;for(x.start=e,x.end=i,e=x[0]=e+"",i=x[1]=i+"",a&&(a(x),e=x[0],i=x[1]),x.length=0,n=e.match(ne)||[],l=i.match(ne)||[],s&&(s._next=null,s.blob=1,x._firstPT=x._applyPT=s),f=l.length,c=0;c<f;c++)y=l[c],_=i.substr(v,i.indexOf(y,v)-v),w+=_||!c?_:",",v+=_.length,k?k=(k+1)%5:"rgba("===_.substr(-5)&&(k=1),y===n[c]||n.length<=c?w+=y:(w&&(x.push(w),w=""),d=parseFloat(n[c]),x.push(d),x._firstPT={_next:x._firstPT,t:x,p:x.length-1,s:d,c:("="===y.charAt(1)?parseInt(y.charAt(0)+"1",10)*parseFloat(y.substr(2)):parseFloat(y)-d)||0,f:0,m:k&&4>k?R:0}),v+=y.length;return w+=i.substr(v),w&&x.push(w),x.setRatio=Q,q.test(i)&&(x.end=null),x},$=function(t,e,i,o,l,c,r,d,p){"function"==typeof o&&(o=o(p||0,t));var a,h=typeof t[e],_="function"==h?e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3):"",m="get"===i?_?r?t[_](r):t[_]():t[e]:i,u="string"==typeof o&&"="===o.charAt(1),g={t:t,p:e,s:m,f:"function"==h,pg:0,n:l||e,m:c?"function"==typeof c?c:R:0,pr:0,c:u?parseInt(o.charAt(0)+"1",10)*parseFloat(o.substr(2)):parseFloat(o)-m||0};if(("number"!=typeof m||"number"!=typeof o&&!u)&&(r||isNaN(m)||!u&&isNaN(o)||"boolean"==typeof m||"boolean"==typeof o?(g.fp=r,a=ie(m,u?parseFloat(g.s)+g.c:o,d||j.defaultStringFilter,g),g={t:a,p:"setRatio",s:0,c:1,f:2,pg:0,n:l||e,pr:0,m:0}):(g.s=parseFloat(m),u||(g.c=parseFloat(o)-g.s||0))),g.c)return(g._next=this._firstPT)&&(g._next._prev=g),this._firstPT=g,g},U=j._internals={isArray:T,isSelector:W,lazyTweens:H,blobDif:ie},J=j._plugins={},ee=U.tweenLookup={},K=0,re=U.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},ae={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},se=V._rootFramesTimeline=new X,le=V._rootTimeline=new X,de=30,me=U.lazyRender=function(){var e,t=H.length;for(Z={};-1<--t;)e=H[t],e&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);H.length=0};le._startTime=x.time,se._startTime=x.frame,le._active=se._active=!0,setTimeout(me,1),V._updateRoot=j.render=function(){var e,t,o;if(H.length&&me(),le.render((x.time-le._startTime)*le._timeScale,!1,!1),se.render((x.frame-se._startTime)*se._timeScale,!1,!1),H.length&&me(),x.frame>=de){for(o in de=x.frame+(parseInt(j.autoSleep,10)||120),ee){for(t=ee[o].tweens,e=t.length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete ee[o]}if(o=le._first,(!o||o._paused)&&j.autoSleep&&!se._first&&1===x._listeners.tick.length){for(;o&&o._paused;)o=o._next;o||x.sleep()}}},x.addEventListener("tick",V._updateRoot);var pe=function(i,n,o){var t,r,s=i._gsTweenID;
1if(ee[s||(i._gsTweenID=s="t"+K++)]||(ee[s]={target:i,tweens:[]}),n&&(t=ee[s].tweens,t[r=t.length]=n,o))for(;-1<--r;)t[r]===n&&t.splice(r,1);return ee[s].tweens},ge=function(o,r,t,e){var i,a,s=o.vars.onOverwrite;return s&&(i=s(o,r,t,e)),s=j.onOverwrite,s&&(a=s(o,r,t,e)),!1!==i&&!1!==a},fe=function(e,i,n,r,o){var a,s,l,d;if(1===r||4<=r){for(d=o.length,a=0;a<d;a++)if((l=o[a])!==i)l._gc||l._kill(null,e,i)&&(s=!0);else if(5===r)break;return s}var c,_=i._startTime+M,h=[],y=0,v=0===i._duration;for(a=o.length;-1<--a;)(l=o[a])===i||l._gc||l._paused||(l._timeline===i._timeline?l._startTime<=_&&l._startTime+l.totalDuration()/l._timeScale>_&&((v||!l._initted)&&2e-10>=_-l._startTime||(h[y++]=l)):(c=c||he(i,0,v),0===he(l,c,v)&&(h[y++]=l)));for(a=y;-1<--a;)if(l=h[a],2===r&&l._kill(n,e,i)&&(s=!0),2!==r||!l._firstPT&&l._initted){if(2!==r&&!ge(l,i))continue;l._enabled(!1,!1)&&(s=!0)}return s},he=function(i,n,o){for(var t=i._timeline,r=t._timeScale,s=i._startTime;t._timeline;){if(s+=t._startTime,r*=t._timeScale,t._paused)return-100;t=t._timeline}return s/=r,s>n?s-n:o&&s===n||!i._initted&&s-n<2*M?M:(s+=i.totalDuration()/i._timeScale/r)>n+M?0:s-n-M};m._init=function(){var e,t,i,n,a,l,g=this.vars,h=this._overwrittenProps,f=this._duration,u=!!g.immediateRender,x=g.ease;if(g.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),a={},g.startAt)a[n]=g.startAt[n];if(a.data="isStart",a.overwrite=!1,a.immediateRender=!0,a.lazy=u&&!1!==g.lazy,a.startAt=a.delay=null,a.onUpdate=g.onUpdate,a.onUpdateParams=g.onUpdateParams,a.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=j.to(this.target,0,a),u)if(0<this._time)this._startAt=null;else if(0!==f)return}else if(g.runBackwards&&0!==f)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(u=!1),i={},g)re[n]&&"autoCSS"!==n||(i[n]=g[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=u&&!1!==g.lazy,i.immediateRender=u,this._startAt=j.to(this.target,0,i),!u)this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null);else if(0===this._time)return}if(this._ease=x=x?x instanceof _?x:"function"==typeof x?new _(x,g.easeParams):k[x]||j.defaultEase:j.defaultEase,g.easeParams instanceof Array&&x.config&&(this._ease=x.config.apply(x,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(l=this._targets.length,e=0;e<l;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],h?h[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(t&&j._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=g.onUpdate,this._initted=!0},m._initProps=function(o,e,t,i,n){var r,s,l,c,m,u;if(null==o)return!1;for(r in Z[o._gsTweenID]&&me(),this.vars.css||o.style&&o!==P&&o.nodeType&&J.css&&!1!==this.vars.autoCSS&&Y(this.vars,o),this.vars)if(u=this.vars[r],re[r])u&&(u instanceof Array||u.push&&T(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[r]=u=this._swapSelfInParams(u,this));else if(J[r]&&(c=new J[r])._onInitTween(o,this.vars[r],this,n)){for(this._firstPT=m={_next:this._firstPT,t:c,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:c._priority,m:0},s=c._overwriteProps.length;-1<--s;)e[c._overwriteProps[s]]=this._firstPT;(c._priority||c._onInitAllProps)&&(l=!0),(c._onDisable||c._onEnable)&&(this._notifyPluginsOfEnabled=!0),m._next&&(m._next._prev=m)}else e[r]=$.call(this,o,r,"get",u,r,0,null,this.vars.stringFilter,n);return i&&this._kill(i,o)?this._initProps(o,e,t,i,n):1<this._overwrite&&this._firstPT&&1<t.length&&fe(o,this,e,this._overwrite,t)?(this._kill(e,o),this._initProps(o,e,t,i,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(Z[o._gsTweenID]=!0),l)},m.render=function(t,i,n){var r,l,c,m,u=this._time,g=this._duration,h=this._rawPrevTime;if(t>=g-1e-7&&0<=t)this._totalTime=this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,l="onComplete",n=n||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||n)&&(this._startTime===this._timeline._duration&&(t=0),(0>h||0>=t&&-1e-7<=t||h===M&&"isPause"!==this.data)&&h!==t&&(n=!0,h>M&&(l="onReverseComplete")),this._rawPrevTime=m=!i||t||h===t?t:M);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==u||0===g&&0<h)&&
1(l="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||n)&&(0<=h&&(h!==M||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=m=!i||t||h===t?t:M)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0);else if(this._totalTime=this._time=t,this._easeType){var _=t/g,y=this._easeType,x=this._easePower;(1===y||3===y&&.5<=_)&&(_=1-_),3===y&&(_*=2),1===x?_*=_:2===x?_*=_*_:3===x?_*=_*_*_:4===x&&(_*=_*_*_*_),this.ratio=1===y?1-_:2===y?_:.5>t/g?_/2:1-_/2}else this.ratio=this._ease.getRatio(t/g);if(this._time!==u||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=u,this._rawPrevTime=h,H.push(this),void(this._lazy=[t,i]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/g):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==u&&0<=t&&(this._active=!0),0===u&&(this._startAt&&(0<=t?this._startAt.render(t,!0,n):l||(l="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==g||i||this._callback("onStart"))),c=this._firstPT;c;)c.f?c.t[c.p](c.c*this.ratio+c.s):c.t[c.p]=c.c*this.ratio+c.s,c=c._next;this._onUpdate&&(0>t&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,n),i||(this._time!==u||r||n)&&this._callback("onUpdate")),l&&(this._gc&&!n||(0>t&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,n),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!i&&this.vars[l]&&this._callback(l),0===g&&this._rawPrevTime===M&&m!==M&&(this._rawPrevTime=0)))}},m._kill=function(e,t,a){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"==typeof t?j.selector(t)||t:t||this._targets||this.target;var o,l,d,p,f,_,y,w,k,P=a&&this._time&&a._startTime===this._startTime&&this._timeline===a._timeline;if((T(t)||W(t))&&"number"!=typeof t[0])for(o=t.length;-1<--o;)this._kill(e,t[o],a)&&(_=!0);else{if(this._targets){for(o=this._targets.length;-1<--o;)if(t===this._targets[o]){f=this._propLookup[o]||{},this._overwrittenProps=this._overwrittenProps||[],l=this._overwrittenProps[o]=e?this._overwrittenProps[o]||{}:"all";break}}else{if(t!==this.target)return!1;f=this._propLookup,l=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(f){if(y=e||f,w=e!==l&&"all"!==l&&e!==f&&("object"!=typeof e||!e._tempKill),a&&(j.onOverwrite||this.vars.onOverwrite)){for(d in y)f[d]&&(k||(k=[]),k.push(d));if((k||!e)&&!ge(this,a,t,k))return!1}for(d in y)(p=f[d])&&(P&&(p.f?p.t[p.p](p.s):p.t[p.p]=p.s,_=!0),p.pg&&p.t._kill(y)&&(_=!0),p.pg&&0!==p.t._overwriteProps.length||(p._prev?p._prev._next=p._next:p===this._firstPT&&(this._firstPT=p._next),p._next&&(p._next._prev=p._prev),p._next=p._prev=null),delete f[d]),w&&(l[d]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return _},m.invalidate=function(){return this._notifyPluginsOfEnabled&&j._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],V.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-M,this.render(h(0,-this._delay))),this},m._enabled=function(t,e){if(I||x.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=pe(r[i],this,!0);else this._siblings=pe(this.target,this,!0)}return V.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT&&j._onPluginEvent(t?"_onEnable":"_onDisable",this)},j.to=function(t,e,i){return new j(t,e,i)},j.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new j(t,e,i)},j.fromTo=function(i,n,o,t){return t.startAt=o,t.immediateRender=0!=t.immediateRender&&0!=o.immediateRender,new j(i,n,t)},j.delayedCall=function(r,o,t,e,i){return new j(o,0,{delay:r,onComplete:o,onCompleteParams:t,callbackScope:e,onReverseComplete:o,onReverseCompleteParams:t,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},j.set=function(e,i){return new j(e,0,i)},j.getTweensOf=function(t,i){if(null==t)return[];t="string"==typeof t?j.selector(t)||t:t;var n,r,a,p;if((T(t)||W(t))&&"number"!=typeof t[0]){for(n=t.length,r=[];-1<--n;)r=r.concat(j.getTweensOf(t[n],i));for(n=r.length;-1<--n;)for(p=r[n],a=n;-1<--a;)p===r[a]&&r.splice(n,1)}else if(t._gsTweenID)for(r=pe(t).concat(),n=r.length;-1<--n;
vendor: 10,913 bytes, line 1
1)(r[n]._gc||i&&!r[n].isActive())&&r.splice(n,1);return r||[]},j.killTweensOf=j.killDelayedCallsTo=function(e,i,o){"object"==typeof i&&(o=i,i=!1);for(var r=j.getTweensOf(e,i),s=r.length;-1<--s;)r[s]._kill(o,e)};var ue=b("plugins.TweenPlugin",function(e,i){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=i||0,this._super=ue.prototype},!0);if(m=ue.prototype,ue.version="1.19.0",ue.API=2,m._firstPT=null,m._addTween=$,m.setRatio=Q,m._kill=function(e){var t,o=this._overwriteProps,n=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=o.length;-1<--t;)null!=e[o[t]]&&o.splice(t,1);for(;n;)null!=e[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},m._mod=m._roundProps=function(e){for(var i,n=this._firstPT;n;)i=e[this._propName]||null!=n.n&&e[n.n.split(this._propName+"_").join("")],i&&"function"==typeof i&&(2===n.f?n.t._applyPT.m=i:n.m=i),n=n._next},j._onPluginEvent=function(t,e){var i,o,r,a,s,l=e._firstPT;if("_onInitAllProps"===t){for(;l;){for(s=l._next,o=r;o&&o.pr>l.pr;)o=o._next;(l._prev=o?o._prev:a)?l._prev._next=l:r=l,(l._next=o)?o._prev=l:a=l,l=s}l=e._firstPT=r}for(;l;)l.pg&&"function"==typeof l.t[t]&&l.t[t]()&&(i=!0),l=l._next;return i},ue.activate=function(e){for(var i=e.length;-1<--i;)e[i].API===ue.API&&(J[new e[i]()._propName]=e[i]);return!0},g.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,o=e.propName,s=e.priority||0,l=e.overwriteProps,a={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},d=b("plugins."+o.charAt(0).toUpperCase()+o.substr(1)+"Plugin",function(){ue.call(this,o,s),this._overwriteProps=l||[]},!0===e.global),n=d.prototype=new ue(o);for(t in n.constructor=d,d.API=e.API,a)"function"==typeof e[t]&&(n[a[t]]=e[t]);return d.version=e.version,ue.activate([d]),d},e=P._gsQueue){for(l=0;l<e.length;l++)e[l]();for(m in c)c[m].func||P.console.log("GSAP encountered missing dependency: "+m)}I=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(g,y,v){var c=function(e){y.call(this,e),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var t,n,a=this.vars;for(n in a)t=a[n],h(t)&&-1!==t.join("").indexOf("{self}")&&(a[n]=this._swapSelfInParams(t));h(a.tweens)&&this.add(a.tweens,0,a.align,a.stagger)},m=1e-10,o=v._internals,s=c._internals={},n=o.isSelector,h=o.isArray,i=o.lazyTweens,l=o.lazyRender,u=_gsScope._gsDefine.globals,_=function(e){var i,o={};for(i in e)o[i]=e[i];return o},t=function(i,n,o){var t,r,l=i.cycle;for(t in l)r=l[t],i[t]="function"==typeof r?r(o,n[o]):r[o%r.length];delete i.cycle},r=s.pauseCallback=function(){},d=function(e){var t,r=[],o=e.length;for(t=0;t!==o;r.push(e[t++]));return r},a=c.prototype=new y;return c.version="1.20.3",a.constructor=c,a.kill()._gc=a._forcingPlayhead=a._hasPause=!1,a.to=function(r,i,t,e){var n=t.repeat&&u.TweenMax||v;return i?this.add(new n(r,i,t),e):this.set(r,t,e)},a.from=function(n,o,i,t){return this.add((i.repeat&&u.TweenMax||v).from(n,o,i),t)},a.fromTo=function(e,n,r,o,a){var i=o.repeat&&u.TweenMax||v;return n?this.add(i.fromTo(e,n,r,o),a):this.set(e,o,a)},a.staggerTo=function(e,i,o,r,p,u,g,l){var h,y,T=new c({onComplete:u,onCompleteParams:g,callbackScope:l,smoothChildTiming:this.smoothChildTiming}),b=o.cycle;for("string"==typeof e&&(e=v.selector(e)||e),e=e||[],n(e)&&(e=d(e)),r=r||0,0>r&&(e=d(e),e.reverse(),r*=-1),y=0;y<e.length;y++)h=_(o),h.startAt&&(h.startAt=_(h.startAt),h.startAt.cycle&&t(h.startAt,e,y)),b&&(t(h,e,y),null!=h.duration&&(i=h.duration,delete h.duration)),T.to(e[y],i,h,y*r);return this.add(T,p)},a.staggerFrom=function(e,i,n,r,s,o,a,l){return n.immediateRender=0!=n.immediateRender,n.runBackwards=!0,this.staggerTo(e,i,n,r,s,o,a,l)},a.staggerFromTo=function(i,n,r,s,o,a,l,d,t){return s.startAt=r,s.immediateRender=0!=s.immediateRender&&0!=r.immediateRender,this.staggerTo(i,n,s,o,a,l,d,t)},a.call=function(n,o,i,t){return this.add(v.delayedCall(0,n,o,i),t)},a.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new v(t,0,e),n)},c.exportRoot=function(e,t){e=e||{},null==e.smoothChildTiming&&(e.smoothChildTiming=!0);var i,a,d,p,u=new c(e),f=u._timeline;for(null==t&&(t=!0),f._remove(u,!0),u._startTime=0,u._rawPrevTime=u._time=u._totalTime=f._time,d=f._first;d;)p=d._next,t&&d instanceof v&&d.target===d.vars.onComplete||(a=d._startTime-d._delay,0>a&&(i=1),u.add(d,a)),d=p;return f.add(u,0),i&&u.totalDuration(),u},a.add=function(i,n,r,s){var d,u,_,x,b,T;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,i)),!(i instanceof g)){if(i instanceof Array||i&&i.push&&h(i)){for(r=r||"normal",s=s||0,d=n,u=i.length,_=0;_<u;_++)h(x=i[_])&&(x=new c({tweens:x})),this.add(x,d),"string"!=typeof x&&"function"!=typeof x&&("sequence"===r?d=x._startTime+x.totalDuration()/x._timeScale:"start"===r&&(x._startTime-=x.delay())),d+=s;return this._uncache(!0)}if("string"==typeof i)return this.addLabel(i,n);if("function"!=typeof i)throw"Cannot add "+i+" into the timeline; it is not a tween, timeline, function, or string.";i=v.delayedCall(0,i)}if(y.prototype.add.call(this,i,n),i._time&&i.render((this.rawTime()-i._startTime)*i._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(b=this,T=b.rawTime()>i._startTime;b._timeline;)T&&b._timeline.smoothChildTiming?b.totalTime(b._totalTime,!0):b._gc&&b._enabled(!0,!1),b=b._timeline;return this},a.remove=function(n){if(n instanceof g){this._remove(n,!1);var i=n._timeline=n.vars.useFrames?g._rootFramesTimeline:g._rootTimeline;return n._startTime=(n._paused?n._pauseTime:i._time)-(n._reversed?n.totalDuration()-n._totalTime:n._totalTime)/n._timeScale,this}if(n instanceof Array||n&&n.push&&h(n)){for(var t=n.length;-1<--t;)this.remove(n[t]);return this}return"string"==typeof n?this.removeLabel(n):this.kill(null,n)},a._remove=function(i,n){y.prototype._remove.call(this,i,n);var e=this._last;return e?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},a.append=function(e,i){return this.add(e,this._parseTimeOrLabel(null,i,!0,e))},a.insert=a.insertMultiple=function(i,n,o,t){return this.add(i,n||0,o,t)},a.appendMultiple=function(i,n,o,t){return this.add(i,this._parseTimeOrLabel(null,n,!0,i),o,t)},a.addLabel=function(e,i){return this._labels[e]=this._parseTimeOrLabel(i),this},a.addPause=function(a,e,i,t){var n=v.delayedCall(0,r,i,t||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,a)},a.removeLabel=function(t){return delete this._labels[t],this},a.getLabelTime=function(t){return null==this._labels[t]?-1:this._labels[t]},a._parseTimeOrLabel=function(t,i,o,a){var n,d;if(a instanceof g&&a.timeline===this)this.remove(a);else if(a&&(a instanceof Array||a.push&&h(a)))for(d=a.length;-1<--d;)a[d]instanceof g&&a[d].timeline===this&&this.remove(a[d]);if(n="number"!=typeof t||i?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,o&&"number"==typeof t&&null==this._labels[i]?t-n:0,o);if(i=i||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(d=t.indexOf("="),-1===d)return null==this._labels[t]?o?this._labels[t]=n+i:i:this._labels[t]+i;i=parseInt(t.charAt(d-1)+"1",10)*+t.substr(d+1),t=1<d?this._parseTimeOrLabel(t.substr(0,d-1),0,o):n}return+t+i},a.seek=function(e,i){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==i)},a.stop=function(){return this.paused(!0)},a.gotoAndPlay=function(e,i){return this.play(e,i)},a.gotoAndStop=function(e,i){return this.pause(e,i)},a.render=function(e,a,n){this._gc&&this._enabled(!0,!1);var o,d,p,c,u,h,y,P=this._time,T=this._dirty?this.totalDuration():this._totalDuration,S=this._startTime,b=this._timeScale,w=this._paused;if(P!==this._time&&(e+=this._time-P),e>=T-1e-7&&0<=e)this._totalTime=this._time=T,this._reversed||this._hasPausedChild()||(d=!0,c="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=e&&-1e-7<=e||0>this._rawPrevTime||this._rawPrevTime===m)&&this._rawPrevTime!==e&&this._first&&(u=!0,this._rawPrevTime>m&&(c="onReverseComplete"))),this._rawPrevTime=this._duration||!a||e||this._rawPrevTime===e?e:m,e=T+1e-4;else if(!(1e-7>e)){if(this._hasPause&&!this._forcingPlayhead&&!a){if(e>=P)for(o=this._first;o&&o._startTime<=e&&!h;)o._duration||"isPause"!==o.data||o.ratio||0===o._startTime&&0===this._rawPrevTime||(h=o),o=o._next;else for(o=this._last;o&&o._startTime>=e&&!h;)o._duration||"isPause"===o.data&&0<o._rawPrevTime&&(h=o),o=o._prev;h&&(this._time=e=h._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=e}else if(this._totalTime=this._time=0,(0!==P||0===this._duration&&this._rawPrevTime!==m&&(0<this._rawPrevTime||0>e&&0<=this._rawPrevTime))&&(c="onReverseComplete",d=this._reversed),0>e)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=d=!0,c="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(u=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=this._duration||!a||e||this._rawPrevTime===e?e:m,0===e&&d)for(o=this._first;o&&0===o._startTime;)o._duration||(d=!1),o=o._next;e=0,this._initted||(u=!0)}if(this._time!==P&&this._first||n||u||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==P&&0<e&&(this._active=!0),0===P&&this.vars.onStart&&(0===this._time&&this._duration||a||this._callback("onStart")),y=this._time,y>=P)for(o=this._first;o&&(p=o._next,y===this._time&&(!this._paused||w));)(o._active||o._startTime<=y&&!o._paused&&!o._gc)&&(h===o&&this.pause(),o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(e-o._startTime)*o._timeScale,a,n):o.render((e-o._startTime)*o._timeScale,a,n)),o=p;else for(o=this._last;o&&(p=o._prev,y===this._time&&(!this._paused||w));){if(o._active||o._startTime<=P&&!o._paused&&!o._gc){if(h===o){for(h=o._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(e-h._startTime)*h._timeScale:(e-h._startTime)*h._timeScale,a,n),h=h._prev;h=null,this.pause()}o._reversed?o.render((o._dirty?o.totalDuration():o._totalDuration)-(e-o._startTime)*o._timeScale,a,n):o.render((e-o._startTime)*o._timeScale,a,n)}o=p}
1this._onUpdate&&(a||(i.length&&l(),this._callback("onUpdate"))),c&&(this._gc||S!==this._startTime&&b===this._timeScale||(0===this._time||T>=this.totalDuration())&&(d&&(i.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!a&&this.vars[c]&&this._callback(c)))}},a._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof c&&t._hasPausedChild())return!0;t=t._next}return!1},a.getChildren=function(n,o,i,t){t=t||-9999999999;for(var r=[],a=this._first,s=0;a;)a._startTime<t||(a instanceof v?!1!==o&&(r[s++]=a):(!1!==i&&(r[s++]=a),!1!==n&&(r=r.concat(a.getChildren(!0,o,i)),s=r.length))),a=a._next;return r},a.getTweensOf=function(t,i){var n,r,s=this._gc,d=[],a=0;for(s&&this._enabled(!0,!0),n=v.getTweensOf(t),r=n.length;-1<--r;)(n[r].timeline===this||i&&this._contains(n[r]))&&(d[a++]=n[r]);return s&&this._enabled(!1,!0),d},a.recent=function(){return this._recent},a._contains=function(e){for(var i=e.timeline;i;){if(i===this)return!0;i=i.timeline}return!1},a.shiftChildren=function(t,e,i){i=i||0;for(var o,r=this._first,d=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(o in d)d[o]>=i&&(d[o]+=t);return this._uncache(!0)},a._kill=function(i,n){if(!i&&!n)return this._enabled(!1,!1);for(var o=n?this.getTweensOf(n):this.getChildren(!0,!0,!1),t=o.length,r=!1;-1<--t;)o[t]._kill(i,n)&&(r=!0);return r},a.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},a.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return g.prototype.invalidate.call(this)},a._enabled=function(i,n){if(i===this._gc)for(var e=this._first;e;)e._enabled(i,!0),e=e._next;return y.prototype._enabled.call(this,i,n)},a.totalTime=function(n,o,e){this._forcingPlayhead=!0;var t=g.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,t},a.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},a.totalDuration=function(e){if(!arguments.length){if(this._dirty){for(var i,n,o=0,r=this._last,s=999999999999;r;)i=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(r,r._startTime-r._delay),this._calculatingDuration=0):s=r._startTime,0>r._startTime&&!r._paused&&(o-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale,this._time-=r._startTime,this._totalTime-=r._startTime,this._rawPrevTime-=r._startTime),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),n=r._startTime+r._totalDuration/r._timeScale,n>o&&(o=n),r=i;this._duration=this._totalDuration=o,this._dirty=!1}return this._totalDuration}return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this},a.paused=function(i){if(!i)for(var e=this._first,o=this._time;e;)e._startTime===o&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return g.prototype.paused.apply(this,arguments)},a.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===g._rootFramesTimeline},a.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&1>this.totalProgress())?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},c},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var i=function(){return(_gsScope.GreenSockGlobals||_gsScope)[e]};"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=i()):"function"==typeof define&&define.amd&&define(["TweenLite"],i)}("TimelineLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a=Math.sqrt,j=Math.cos,X=Math.sin,n=Math.PI,t=Math.abs,i=Math.round;_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(e,T){var E,O,Y,x,K=function(){e.call(this,"css"),this._overwriteProps.length=0,this.setRatio=K.prototype.setRatio},o=_gsScope._gsDefine.globals,I={},r=K.prototype=new e("css");r.constructor=K,K.version="1.20.3",K.API=2,K.defaultTransformPerspective=0,K.defaultSkewType="compensated",K.defaultSmoothOrigin=!0,r="px",K.suffixMap={top:r,right:r,bottom:r,left:r,width:r,height:r,fontSize:r,padding:r,margin:r,perspective:r,lineHeight:""};var H,p,d,g,c,M,$,J,se=/(?:\-|\.|\b)(\d|\.|e\-)+/g,le=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,y=/(?:\+=|\
1-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,f=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,s=/(?:\d|\-|\+|=|#|\.)*/g,D=/opacity *= *([^)]*)/i,_=/opacity:([^;]*)/i,m=/alpha\(opacity *=.+?\)/i,S=/^(rgb|hsl)/,u=/([A-Z])/g,A=/-([a-z])/gi,R=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,F=function(e,i){return i.toUpperCase()},N=/(?:Left|Right|Width)/i,de=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,pe=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,ce=/,(?=[^\)]*(?:\(|$))/gi,h=/[\s,\(]/i,_e=n/180,v=180/n,w={},U={style:{}},ee=_gsScope.document||{createElement:function(){return U}},l=function(e,i){return ee.createElementNS?ee.createElementNS(i||"http://www.w3.org/1999/xhtml",e):ee.createElement(e)},Te=l("div"),we=l("img"),b=K._internals={_specialProps:I},G=(_gsScope.navigator||{}).userAgent||"",te=function(){var e=G.indexOf("Android"),i=l("a");return d=-1!==G.indexOf("Safari")&&-1===G.indexOf("Chrome")&&(-1===e||3<parseFloat(G.substr(e+8,2))),c=d&&6>parseFloat(G.substr(G.indexOf("Version/")+8,2)),g=-1!==G.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(G)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(G))&&(M=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))}(),ie=function(t){return D.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ne=function(t){_gsScope.console&&console.log(t)},oe="",re="",ke=function(e,t){t=t||Te;var i,n,d=t.style;if(void 0!==d[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===d[i[n]+e];);return 0<=n?(re=3===n?"ms":i[n],oe="-"+re.toLowerCase()+"-",re+e):null},Se=ee.defaultView?ee.defaultView.getComputedStyle:function(){},Ae=K.getStyle=function(t,e,i,n,r){var a;return te||"opacity"!==e?(!n&&t.style[e]?a=t.style[e]:(i=i||Se(t))?a=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(u,"-$1").toLowerCase()):t.currentStyle&&(a=t.currentStyle[e]),null==r||a&&"none"!==a&&"auto"!==a&&"auto auto"!==a?a:r):ie(t)},ze=b.convertToPixels=function(e,t,i,n,a){if("px"===n||!n&&"lineHeight"!==t)return i;if("auto"===n||!i)return 0;var r,l,d,g=N.test(t),u=e,f=Te.style,_=0>i,y=1===i;if(_&&(i=-i),y&&(i*=100),!("lineHeight"!==t||n))l=Se(e).lineHeight,e.style.lineHeight=i,r=parseFloat(Se(e).lineHeight),e.style.lineHeight=l;else if("%"===n&&-1!==t.indexOf("border"))r=i/100*(g?e.clientWidth:e.clientHeight);else{if(f.cssText="border:0 solid red;position:"+Ae(e,"position")+";line-height:0;","%"!==n&&u.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)f[g?"borderLeftWidth":"borderTopWidth"]=i+n;else{if(u=e.parentNode||ee.body,-1!==Ae(u,"display").indexOf("flex")&&(f.position="absolute"),l=u._gsCache,d=T.ticker.frame,l&&g&&l.time===d)return l.width*i/100;f[g?"width":"height"]=i+n}u.appendChild(Te),r=parseFloat(Te[g?"offsetWidth":"offsetHeight"]),u.removeChild(Te),g&&"%"==n&&!1!==K.cacheWidths&&(l=u._gsCache=u._gsCache||{},l.time=d,l.width=100*(r/i)),0!==r||a||(r=ze(e,t,i,n,!0))}return y&&(r/=100),_?-r:r},Ie=b.calculateOffset=function(r,o,t){if("absolute"!==Ae(r,"position",t))return 0;var e="left"===o?"Left":"Top",i=Ae(r,"margin"+e,t);return r["offset"+e]-(ze(r,o,parseFloat(i),i.replace(s,""))||0)},fe=function(e,t){var n,o,r,a={};if(t=t||Se(e,null)){if(n=t.length)for(;-1<--n;)r=t[n],-1!==r.indexOf("-transform")&>!==r||(a[r.replace(A,F)]=t.getPropertyValue(r));else for(n in t)-1!==n.indexOf("Transform")&&ut!==n||(a[n]=t[n]);}else if(t=e.currentStyle||e.style)for(n in t)"string"==typeof n&&void 0===a[n]&&(a[n.replace(A,F)]=t[n]);return te||(a.opacity=ie(e)),o=lt(e,t,!1),a.rotation=o.rotation,a.skewX=o.skewX,a.scaleX=o.scaleX,a.scaleY=o.scaleY,a.x=o.x,a.y=o.y,ht&&(a.z=o.z,a.rotationX=o.rotationX,a.rotationY=o.rotationY,a.scaleZ=o.scaleZ),a.filters&&delete a.filters,a},Ne=function(e,i,n,r,o){var a,l,p,m={},c=e.style;for(l in n)"cssText"!==l&&"length"!==l&&isNaN(l)&&(i[l]!==(a=n[l])||o&&o[l])&&-1===l.indexOf("Origin")&&("number"!=typeof a&&"string"!=typeof a||(m[l]="auto"!==a||"left"!==l&&"top"!==l?""!==a&&"auto"!==a&&"none"!==a||"string"!=typeof i[l]||""===i[l].replace(f,"")?a:0:Ie(e,l),void 0!==c[l]&&(p=new je(c,l,c[l],p))));if(r)for(l in r)"className"!==l&&(m[l]=r[l]);return{difs:m,firstMPT:p}},ye={width:["Left","Right"],height:["Top","Bottom"]},xe=["marginLeft","marginRight","marginTop","marginBottom"],Ce=function(t,e,
1i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Se(t))[e]||0;if(t.getCTM&&yt(t))return t.getBBox()[e]||0;var o=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=ye[e],l=s.length;for(i=i||Se(t,null);-1<--l;)o-=parseFloat(Ae(t,"padding"+s[l],i,!0))||0,o-=parseFloat(Ae(t,"border"+s[l]+"Width",i,!0))||0;return o},De=function(t,i){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var n,r=t.split(" "),s=-1===t.indexOf("left")?-1===t.indexOf("right")?r[0]:"100%":"0%",p=-1===t.indexOf("top")?-1===t.indexOf("bottom")?r[1]:"100%":"0%";if(3<r.length&&!i){for(r=t.split(", ").join(",").split(","),t=[],n=0;n<r.length;n++)t.push(De(r[n]));return t.join(",")}return null==p?p="center"===s?"50%":"0":"center"===p&&(p="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),t=s+" "+p+(2<r.length?" "+r[2]:""),i&&(i.oxp=-1!==s.indexOf("%"),i.oyp=-1!==p.indexOf("%"),i.oxr="="===s.charAt(1),i.oyr="="===p.charAt(1),i.ox=parseFloat(s.replace(f,"")),i.oy=parseFloat(p.replace(f,"")),i.v=t),i||t},Le=function(e,t){return"function"==typeof e&&(e=e(J,$)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},Re=function(e,t){return"function"==typeof e&&(e=e(J,$)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},ve=function(t,a,o,r){var n,d,p,u,g,f=1e-6;return"function"==typeof t&&(t=t(J,$)),null==t?u=a:"number"==typeof t?u=t:(n=360,d=t.split("_"),g="="===t.charAt(1),p=(g?parseInt(t.charAt(0)+"1",10)*parseFloat(d[0].substr(2)):parseFloat(d[0]))*(-1===t.indexOf("rad")?1:v)-(g?0:a),d.length&&(r&&(r[o]=a+p),-1!==t.indexOf("short")&&(p%=n,p!==p%(n/2)&&(p=0>p?p+n:p-n)),-1!==t.indexOf("_cw")&&0>p?p=(p+9999999999*n)%n-(0|p/n)*n:-1!==t.indexOf("ccw")&&0<p&&(p=(p-9999999999*n)%n-(0|p/n)*n)),u=a+p),u<f&&u>-f&&(u=0),u},ae={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},be=function(t,i,o){return t=0>t?t+1:1<t?t-1:t,0|255*(1>6*t?i+6*((o-i)*t):.5>t?o:2>3*t?i+6*((o-i)*(2/3-t)):i)+.5},Pe=K.parseColor=function(t,i){var n,r,a,s,d,p,g,h,x,T,k;if(!t)n=ae.black;else if("number"==typeof t)n=[t>>16,255&t>>8,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ae[t])n=ae[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),a=t.charAt(2),s=t.charAt(3),t="#"+r+r+a+a+s+s),t=parseInt(t.substr(1),16),n=[t>>16,255&t>>8,255&t];else if("hsl"!==t.substr(0,3))n=t.match(se)||ae.transparent;else if(n=k=t.match(se),!i)d=+n[0]%360/360,p=+n[1]/100,g=+n[2]/100,a=.5>=g?g*(p+1):g+p-g*p,r=2*g-a,3<n.length&&(n[3]=+n[3]),n[0]=be(d+1/3,r,a),n[1]=be(d,r,a),n[2]=be(d-1/3,r,a);else if(-1!==t.indexOf("="))return t.match(le);n[0]=+n[0],n[1]=+n[1],n[2]=+n[2],3<n.length&&(n[3]=+n[3])}return i&&!k&&(r=n[0]/255,a=n[1]/255,s=n[2]/255,h=Math.max(r,a,s),x=Math.min(r,a,s),g=(h+x)/2,h===x?d=p=0:(T=h-x,p=.5<g?T/(2-h-x):T/(h+x),d=h===r?(a-s)/T+(a<s?6:0):h===a?(s-r)/T+2:(r-a)/T+4,d*=60),n[0]=0|d+.5,n[1]=0|100*p+.5,n[2]=0|100*g+.5),n},ue=function(e,t){var i,o,r,p=e.match(Oe)||[],d=0,c="";if(!p.length)return e;for(i=0;i<p.length;i++)o=p[i],r=e.substr(d,e.indexOf(o,d)-d),d+=r.length+o.length,o=Pe(o,t),3===o.length&&o.push(1),c+=r+(t?"hsla("+o[0]+","+o[1]+"%,"+o[2]+"%,"+o[3]:"rgba("+o.join(","))+")";return c+e.substr(d)},Oe="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(r in ae)Oe+="|"+r+"\\b";Oe=new RegExp(Oe+")","gi"),K.colorStringFilter=function(e){var i,o=e[0]+" "+e[1];Oe.test(o)&&(i=-1!==o.indexOf("hsl(")||-1!==o.indexOf("hsla("),e[0]=ue(e[0],i),e[1]=ue(e[1],i)),Oe.lastIndex=0},T.defaultStringFilter||(T.defaultStringFilter=K.colorStringFilter);var Xe=function(i,o,t,n){if(null==i)return function(t){return t};var r,a=o?(i.match(Oe)||[""])[0]:"",d=i.split(a).join("").match(y)||[],m=i.substr(0,i.indexOf(d[0])),s=")"===i.charAt(i.length-1)?")":"",l=-1===i.indexOf(" ")?",":" ",u=d.length,p=0<u?d[0].replace(se,""):"";return u?r=o?function(e){var o,c,_,x;if("number"==typeof e)e+=p;else if(n&&ce.test(e)){for(x=e.replace(ce,"|").split("|"),_=0;_<x.length;_++)x[_]=r(x[_]);return x.join(",")}if(o=(e.match(Oe)||[a])[0],c=e.split(o).join("").match(y)||[],_=c.length,u>_--)for(;++_<u;)c[_]=t?c[0|(_-1)/2]:d[_];return m+c.join(l)+l+o+s+(-1===e.indexOf("inset")?"":" inset")}:function(e){var o,a,c;if("number"==typeof e)e+=p;else if(n&&ce.test(e)){for(a=e.replace(ce,"|").split("|"),c=0;c<a.length;c++)a[c]=r(a[c]);return a.join(",")}if(o=e.match(y)||[],c=o.length,u>c--)for(;++c<u;)o[c]=t?o[0|(c-1)/2]:d[c];return m+o.join(l)+s}:function(t){return t}},We=function(t){return t=t.split(","),function(e,n,r,s,o,a,l){var d,m=(n+"").split(" ");for(l={},d=0;4>d;d++)l[t[d]]=m[d]=m[d]||m[(d-1)/2>>0];return s.parse(e,l,o,a)}},je=(b._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,o,a,l,p,f=this.data,g=f.proxy,c=f.firstMPT,_=1e-6;c;)t=g[c.v],c.r?t=i(t):t<_&&t>-_&&(t=0),c.t[c.p]=t,c=c._next;if(f.autoRotate&&(f.autoRotate.rotation=f.mod?f.mod(g.rotation,this.t):g.rotation),1===e||0===e)for(c=f.firstMPT,p=1===e?"e":"b";c;){if(o=c.t,!o.type)o[p]+=o.xs0;else if(1===o.type){for(l=o.xs0+o.s+o.xs1,a=1;a<o.l;a++)l+=o["xn"+a]+o["xs"+(a+1)];o[p]=l}c=c._next}},function(r,o,t,e,i){this.t=r,this.p=o,this.v=t,this.r=i,e&&(e._prev=this,this._next=e)}),Ye=(b._parseToProxy=function(i,n,o,t,r,s){var a,p,c,m,u,g=t,b={},v={},T=o._transform,f=w;for(o._transform=null,w=n,t=u=o.parse(i,n,t,r),w=f,s&&(o._transform=T,g&&(g._prev=null,g._prev&&(g._prev._next=null)));t&&t!==g;){if(1>=t.type&&(p=t.p,v[p]=t.s+t.c,b[p]=t.s,s||(m=new je(t,"s",p,m,t.r),t.c=0),1===t.type))for(a=t.l;0<--a;)c="xn"+a,p=t.p+"_"+c,v[p]=t.data[c],b[p]=t[c],s||(m=new je(t,c,p,m,t.rxp[c]));t=t._next}return{proxy:b,end:v,firstMPT:m,pt:u}},b.CSSPropTween=function(o,a,s,l,d,p,t,i,c,e,n){this.t=o,this.p=a,this.s=s,this.c=l,this.n=t||a,o instanceof Ye||x.push(this.n),this.r=i,this.type=p||0,c&&(this.pr=c,E=!0),this.b=void 0===e?s:e,this.e=void 0===n?s+l:n,d&&(this._next=d,d._prev=this)}),Fe=function(r,s,o,a,t,e){var i=new Ye(r,s,o,a-o,t,-1,e);return i.b=o,i.e=i.xs0=a,i}
1,Me=K.parseComplex=function(t,e,i,o,r,s,l,m,u,g){i=i||s||"","function"==typeof o&&(o=o(J,$)),l=new Ye(t,e,0,0,l,g?2:1,null,!1,m,i,o),o+="",r&&Oe.test(o+i)&&(o=[i,o],K.colorStringFilter(o),i=o[0],o=o[1]);var p,_,T,w,S,O,A,z,L,B,U,X,j,W=i.split(", ").join(",").split(" "),Y=o.split(", ").join(",").split(" "),Z=W.length,V=!1!==H;for(-1===o.indexOf(",")&&-1===i.indexOf(",")||(-1!==(o+i).indexOf("rgb")||-1!==(o+i).indexOf("hsl")?(W=W.join(" ").replace(ce,", ").split(" "),Y=Y.join(" ").replace(ce,", ").split(" ")):(W=W.join(" ").split(",").join(", ").split(" "),Y=Y.join(" ").split(",").join(", ").split(" ")),Z=W.length),Z!==Y.length&&(W=(s||"").split(" "),Z=W.length),l.plugin=u,l.setRatio=g,Oe.lastIndex=0,p=0;p<Z;p++)if(w=W[p],S=Y[p],z=parseFloat(w),z||0===z)l.appendXtra("",z,Le(S,z),S.replace(le,""),V&&-1!==S.indexOf("px"),!0);else if(r&&Oe.test(w))X=S.indexOf(")")+1,X=")"+(X?S.substr(X):""),j=-1!==S.indexOf("hsl")&&te,B=S,w=Pe(w,j),S=Pe(S,j),L=6<w.length+S.length,L&&!te&&0===S[3]?(l["xs"+l.l]+=l.l?" transparent":"transparent",l.e=l.e.split(Y[p]).join("transparent")):(te||(L=!1),j?l.appendXtra(B.substr(0,B.indexOf("hsl"))+(L?"hsla(":"hsl("),w[0],Le(S[0],w[0]),",",!1,!0).appendXtra("",w[1],Le(S[1],w[1]),"%,",!1).appendXtra("",w[2],Le(S[2],w[2]),L?"%,":"%"+X,!1):l.appendXtra(B.substr(0,B.indexOf("rgb"))+(L?"rgba(":"rgb("),w[0],S[0]-w[0],",",!0,!0).appendXtra("",w[1],S[1]-w[1],",",!0).appendXtra("",w[2],S[2]-w[2],L?",":X,!0),L&&(w=4>w.length?1:w[3],l.appendXtra("",w,(4>S.length?1:S[3])-w,X,!1))),Oe.lastIndex=0;else if(O=w.match(se)){if(A=S.match(le),!A||A.length!==O.length)return l;for(T=0,_=0;_<O.length;_++)U=O[_],B=w.indexOf(U,T),l.appendXtra(w.substr(T,B-T),+U,Le(A[_],U),"",V&&"px"===w.substr(B+U.length,2),0===_),T=B+U.length;l["xs"+l.l]+=w.substr(T)}else l["xs"+l.l]+=l.l||l["xs"+l.l]?" "+S:S;if(-1!==o.indexOf("=")&&l.data){for(X=l.xs0+l.data.s,p=1;p<l.l;p++)X+=l["xs"+p]+l.data["xn"+p];l.e=X+l["xs"+p]}return l.l||(l.type=-1,l.xs0=l.e),l.xfirst||l},Be=9;for(r=Ye.prototype,r.l=r.pr=0;0<--Be;)r["xn"+Be]=0,r["xs"+Be]="";r.xs0="",r._next=r._prev=r.xfirst=r.data=r.plugin=r.setRatio=r.rxp=null,r.appendXtra=function(e,i,n,r,s,o){var a=this,l=a.l;return a["xs"+l]+=o&&(l||a["xs"+l])?" "+e:e||"",n||0===l||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",0<l?(a.data["xn"+l]=i+n,a.rxp["xn"+l]=s,a["xn"+l]=i,a.plugin||(a.xfirst=new Ye(a,"xn"+l,i,n,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:i+n},a.rxp={},a.s=i,a.c=n,a.r=s,a)):(a["xs"+l]+=i+(r||""),a)};var He=function(e,i){i=i||{},this.p=i.prefix?ke(e)||e:e,I[e]=I[this.p]=this,this.format=i.formatter||Xe(i.defaultValue,i.color,i.collapsible,i.multi),i.parser&&(this.parse=i.parser),this.clrs=i.color,this.multi=i.multi,this.keyword=i.keyword,this.dflt=i.defaultValue,this.pr=i.priority||0},Ze=b._registerComplexSpecialProp=function(e,i,n){"object"!=typeof i&&(i={parser:n});var r,a,c=e.split(","),d=i.defaultValue;for(n=n||[d],r=0;r<c.length;r++)i.prefix=0===r&&i.prefix,i.defaultValue=n[r]||d,a=new He(c[r],i)},Ve=b._registerPluginProp=function(t){if(!I[t]){var p=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Ze(t,{parser:function(r,a,s,l,i,d,t){var e=o.com.greensock.plugins[p];return e?(e._cssRegister(),I[s].parse(r,a,s,l,i,d,t)):(ne("Error: "+p+" js file not loaded."),i)}})}};r=He.prototype,r.parseComplex=function(e,i,o,d,a,l){var s,p,m,u,f,_,y=this.keyword;if(this.multi&&(ce.test(o)||ce.test(i)?(p=i.replace(ce,"|").split("|"),m=o.replace(ce,"|").split("|")):y&&(p=[i],m=[o])),m){for(u=m.length>p.length?m.length:p.length,s=0;s<u;s++)i=p[s]=p[s]||this.dflt,o=m[s]=m[s]||this.dflt,y&&(f=i.indexOf(y),_=o.indexOf(y),f!==_&&(-1===_?p[s]=p[s].split(y).join(""):-1===f&&(p[s]+=" "+y)));i=p.join(", "),o=m.join(", ")}return Me(e,this.p,i,o,this.clrs,this.dflt,d,this.pr,a,l)},r.parse=function(s,o,a,r,t,e,i){return this.parseComplex(s.style,this.format(Ae(s,this.p,Y,!1,this.dflt)),this.format(o),t,e)},K.registerSpecialProp=function(t,n,o){Ze(t,{parser:function(r,a,s,l,d,p,e){var t=new Ye(r,s,0,0,d,2,s,!1,o);return t.plugin=p,t.setRatio=n(r,a,l._tween,s),t},priority:o})},K.useSVGTransformAttr=!0;var Ge,qe=["scaleX","scaleY","scaleZ","x","y","z","skewX","skewY","rotation","rotationX","rotationY","perspective","xPercent","yPercent"],ut=ke("transform"),gt=oe+"transform",ft=ke("transformOrigin"),ht=null!==ke("perspective"),_t=b.Transform=function(){this.perspective=parseFloat(K.defaultTransformPerspective)||0,this.force3D=!1!==K.defaultForce3D&&ht&&(K.defaultForce3D||"auto")},xt=_gsScope.SVGElement,it=function(i,n,o){var t,s=ee.createElementNS("http://www.w3.org/2000/svg",i),r=/([a-z])([A-Z])/g;for(t in o)s.setAttributeNS(null,t.replace(r,"$1-$2").toLowerCase(),o[t]);return n.appendChild(s),s},vt=ee.documentElement||{},bt=function(){var e,t,i,n=M||/Android/i.test(G)&&!_gsScope.chrome;return ee.createElementNS&&!n&&(e=it("svg",vt),t=it("rect",e,{width:100,height:50,x:100}),i=t.getBoundingClientRect().width,t.style[ft]="50% 50%",t.style[ut]="scaleX(0.5)",n=i===t.getBoundingClientRect().width&&!(g&&ht),vt.removeChild(e)),n}(),$e=function(e,n,a,l,i,o){var r,d,p,c,m,u,g,f,h,_,y,x,v,T,w=e._gsTransform,E=rt(e,!0);w&&(v=w.xOrigin,T=w.yOrigin),(!l||2>(r=l.split(" ")).length)&&(g=e.getBBox(),0===g.x&&0===g.y&&0===g.width+g.height&&(g={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),n=De(n).split(" "),r=[(-1===n[0].indexOf("%")?parseFloat(n[0]):parseFloat(n[0])/100*g.width)+g.x,(-1===n[1].indexOf("%")?parseFloat(n[1]):parseFloat(n[1])/100*g.height)+g.y]),a.xOrigin=c=parseFloat(r[0]),a.yOrigin=m=parseFloat(r[1]),l&&E!==Ke&&(u=E[0],g=E[1],f=E[2],h=E[3],_=E[4],y=E[5],x=u*h-g*f,x&&(d=c*(h/x)+m*(-f/x)+(f*y-h*_)/x,p=c*(-g/x)+m*(u/x)-(u*y-g*_)/x,c=a.xOrigin=r[0]=d,m=a.yOrigin=r[1]=p)),w&&(o&&(a.xOffset=w.xOffset,a.yOffset=w.yOffset,w=a),i||
1!1!==i&&!1!==K.defaultSmoothOrigin?(d=c-v,p=m-T,w.xOffset+=d*E[0]+p*E[2]-d,w.yOffset+=d*E[1]+p*E[3]-p):w.xOffset=w.yOffset=0),o||e.setAttribute("data-svg-origin",r.join(" "))},nt=function(e){var i,a=l("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,o=this.nextSibling,n=this.style.cssText;if(vt.appendChild(a),a.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=nt}catch(t){}else this._originalGetBBox&&(i=this._originalGetBBox());return o?s.insertBefore(this,o):s.appendChild(this),vt.removeChild(a),this.style.cssText=n,i},ot=function(e){try{return e.getBBox()}catch(i){return nt.call(e,!0)}},yt=function(t){return xt&&t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&ot(t)},Ke=[1,0,0,1,0,0],rt=function(t,n){var i,r,a,c,u,g,f=t._gsTransform||new _t,h=1e5,_=t.style;if(ut?r=Ae(t,gt,null,!0):t.currentStyle&&(r=t.currentStyle.filter.match(de),r=r&&4===r.length?[r[0].substr(4),+r[2].substr(4),+r[1].substr(4),r[3].substr(4),f.x||0,f.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,!ut||!(g=!Se(t)||"none"===Se(t).display)&&t.parentNode||(g&&(c=_.display,_.display="block"),t.parentNode||(u=1,vt.appendChild(t)),r=Ae(t,gt,null,!0),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,c?_.display=c:g&&mt(_,"display"),u&&vt.removeChild(t)),(f.svg||t.getCTM&&yt(t))&&(i&&-1!==(_[ut]+"").indexOf("matrix")&&(r=_[ut],i=0),a=t.getAttribute("transform"),i&&a&&(-1===a.indexOf("matrix")?-1!==a.indexOf("translate")&&(r="matrix(1,0,0,1,"+a.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0):(r=a,i=0))),i)return Ke;for(a=(r||"").match(se)||[],Be=a.length;-1<--Be;)c=+a[Be],a[Be]=(u=c-(c|=0))?(0|1e5*u+(0>u?-.5:.5))/1e5+c:c;return n&&6<a.length?[a[0],a[1],a[4],a[5],a[12],a[13]]:a},lt=b.getTransform=function(i,e,n,l){var s=Math.atan2;if(i._gsTransform&&n&&!l)return i._gsTransform;var o,d,p,u,g,h,E=n?i._gsTransform||new _t:new _t,x=0>E.scaleX,b=2e-5,w=1e5,k=ht?parseFloat(Ae(i,ft,e,!1,"0 0 0").split(" ")[2])||E.zOrigin||0:0,O=parseFloat(K.defaultTransformPerspective)||0;if(E.svg=i.getCTM&&yt(i),E.svg&&($e(i,Ae(i,ft,e,!1,"50% 50%")+"",E,i.getAttribute("data-svg-origin")),Ge=K.useSVGTransformAttr||bt),o=rt(i),o!==Ke){if(16===o.length){var P,N,M,U,W,Y=o[0],q=o[1],Q=o[2],$=o[3],F=o[4],ee=o[5],ie=o[6],oe=o[7],V=o[8],se=o[9],le=o[10],de=o[12],pe=o[13],ue=o[14],ge=o[11],fe=s(ie,le);E.zOrigin&&(ue=-E.zOrigin,de=V*ue-o[12],pe=se*ue-o[13],ue=le*ue+E.zOrigin-o[14]),E.rotationX=fe*v,fe&&(U=j(-fe),W=X(-fe),P=F*U+V*W,N=ee*U+se*W,M=ie*U+le*W,V=F*-W+V*U,se=ee*-W+se*U,le=ie*-W+le*U,ge=oe*-W+ge*U,F=P,ee=N,ie=M),fe=s(-Q,le),E.rotationY=fe*v,fe&&(U=j(-fe),W=X(-fe),P=Y*U-V*W,N=q*U-se*W,M=Q*U-le*W,se=q*W+se*U,le=Q*W+le*U,ge=$*W+ge*U,Y=P,q=N,Q=M),fe=s(q,Y),E.rotation=fe*v,fe&&(U=j(fe),W=X(fe),P=Y*U+q*W,N=F*U+ee*W,M=V*U+se*W,q=q*U-Y*W,ee=ee*U-F*W,se=se*U-V*W,Y=P,F=N,V=M),E.rotationX&&359.9<t(E.rotationX)+t(E.rotation)&&(E.rotationX=E.rotation=0,E.rotationY=180-E.rotationY),fe=s(F,ee),E.scaleX=(0|1e5*a(Y*Y+q*q+Q*Q)+.5)/1e5,E.scaleY=(0|1e5*a(ee*ee+ie*ie)+.5)/1e5,E.scaleZ=(0|1e5*a(V*V+se*se+le*le)+.5)/1e5,Y/=E.scaleX,F/=E.scaleY,q/=E.scaleX,ee/=E.scaleY,t(fe)>b?(E.skewX=fe*v,F=0,"simple"!==E.skewType&&(E.scaleY*=1/j(fe))):E.skewX=0,E.perspective=ge?1/(0>ge?-ge:ge):0,E.x=de,E.y=pe,E.z=ue,E.svg&&(E.x-=E.xOrigin-(E.xOrigin*Y-E.yOrigin*F),E.y-=E.yOrigin-(E.yOrigin*q-E.xOrigin*ee))}else if(!ht||l||!o.length||E.x!==o[4]||E.y!==o[5]||!E.rotationX&&!E.rotationY){var _e=6<=o.length,ve=_e?o[0]:1,xe=o[1]||0,ye=o[2]||0,be=_e?o[3]:1;E.x=o[4]||0,E.y=o[5]||0,p=a(ve*ve+xe*xe),u=a(be*be+ye*ye),g=ve||xe?s(xe,ve)*v:E.rotation||0,h=ye||be?s(ye,be)*v+g:E.skewX||0,E.scaleX=p,E.scaleY=u,E.rotation=g,E.skewX=h,ht&&(E.rotationX=E.rotationY=E.z=0,E.perspective=O,E.scaleZ=1),E.svg&&(E.x-=E.xOrigin-(E.xOrigin*ve+E.yOrigin*ye),E.y-=E.yOrigin-(E.xOrigin*xe+E.yOrigin*be))}for(d in 90<t(E.skewX)&&270>t(E.skewX)&&(x?(E.scaleX*=-1,E.skewX+=0>=E.rotation?180:-180,E.rotation+=0>=E.rotation?180:-180):(E.scaleY*=-1,E.skewX+=0>=E.skewX?180:-180)),E.zOrigin=k,E)E[d]<b&&E[d]>-b&&(E[d]=0)}return n&&(i._gsTransform=E,E.svg&&(Ge&&i.style[ut]?T.delayedCall(.001,function(){mt(i.style,ut)}):!Ge&&i.getAttribute("transform")&&T.delayedCall(.001,function(){i.removeAttribute("transform")}))),E},at=function(e){var t,r,m=this.data,c=-m.rotation*_e,l=c+m.skewX*_e,u=1e5,a=(0|1e5*(j(c)*m.scaleX))/1e5,d=(0|1e5*(X(c)*m.scaleX))/1e5,y=(0|1e5*(X(l)*-m.scaleY))/1e5,x=(0|1e5*(j(l)*m.scaleY))/1e5,v=this.t.style,f=this.t.currentStyle;if(f){r=d,d=-y,y=-r,t=f.filter,v.filter="";var h,b,T=this.t.offsetWidth,C=this.t.offsetHeight,P="absolute"!==f.position,S="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+d+", M21="+y+", M22="+x,O=m.x+T*m.xPercent/100,A=m.y+C*m.yPercent/100;if(null!=m.ox&&(h=(m.oxp?.01*(T*m.ox):m.ox)-T/2,b=(m.oyp?.01*(C*m.oy):m.oy)-C/2,O+=h-(h*a+b*d),A+=b-(h*y+b*x)),P?(h=T/2,b=C/2,S+=", Dx="+(
1h-(h*a+b*d)+O)+", Dy="+(b-(h*y+b*x)+A)+")"):S+=", sizingMethod='auto expand')",v.filter=-1===t.indexOf("DXImageTransform.Microsoft.Matrix(")?S+" "+t:t.replace(pe,S),0!==e&&1!==e||1===a&&0===d&&0===y&&1===x&&(P&&-1===S.indexOf("Dx=0, Dy=0")||D.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&v.removeAttribute("filter")),!P){var z,B,U,W=8>M?1:-1;for(h=m.ieOffsetX||0,b=m.ieOffsetY||0,m.ieOffsetX=i((T-((0>a?-a:a)*T+(0>d?-d:d)*C))/2+O),m.ieOffsetY=i((C-((0>x?-x:x)*C+(0>y?-y:y)*T))/2+A),Be=0;4>Be;Be++)B=xe[Be],z=f[B],r=-1===z.indexOf("px")?ze(this.t,B,parseFloat(z),z.replace(s,""))||0:parseFloat(z),U=r===m[B]?2>Be?h-m.ieOffsetX:b-m.ieOffsetY:2>Be?-m.ieOffsetX:-m.ieOffsetY,v[B]=(m[B]=i(r-U*(0===Be||2===Be?1:W)))+"px"}}},st=b.set3DTransformRatio=b.setTransformRatio=function(e){var t,n,o,l,p,f,_,v,b,T,w,k,P,S,E,D,N,W,H,Z,q,$,K,te=Math.tan,G=this.data,ee=this.t.style,Q=G.rotation,ne=G.rotationX,ie=G.rotationY,re=G.scaleX,se=G.scaleY,le=G.scaleZ,de=G.x,pe=G.y,ye=G.z,xe=G.svg,fe=G.perspective,we=G.force3D,ve=G.skewY,be=G.skewX;if(ve&&(be+=ve,Q+=ve),((1===e||0===e)&&"auto"===we&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!we)&&!ye&&!fe&&!ie&&!ne&&1===le||Ge&&xe||!ht)return void(Q||be||xe?(Q*=_e,$=be*_e,K=1e5,n=j(Q)*re,p=X(Q)*re,o=X(Q-$)*-se,f=j(Q-$)*se,$&&"simple"===G.skewType&&(t=te($-ve*_e),t=a(1+t*t),o*=t,f*=t,ve&&(t=te(ve*_e),t=a(1+t*t),n*=t,p*=t)),xe&&(de+=G.xOrigin-(G.xOrigin*n+G.yOrigin*o)+G.xOffset,pe+=G.yOrigin-(G.xOrigin*p+G.yOrigin*f)+G.yOffset,Ge&&(G.xPercent||G.yPercent)&&(E=this.t.getBBox(),de+=.01*G.xPercent*E.width,pe+=.01*G.yPercent*E.height),E=1e-6,de<E&&de>-E&&(de=0),pe<E&&pe>-E&&(pe=0)),H=(0|n*K)/K+","+(0|p*K)/K+","+(0|o*K)/K+","+(0|f*K)/K+","+de+","+pe+")",xe&&Ge?this.t.setAttribute("transform","matrix("+H):ee[ut]=(G.xPercent||G.yPercent?"translate("+G.xPercent+"%,"+G.yPercent+"%) matrix(":"matrix(")+H):ee[ut]=(G.xPercent||G.yPercent?"translate("+G.xPercent+"%,"+G.yPercent+"%) matrix(":"matrix(")+re+",0,0,"+se+","+de+","+pe+")");if(g&&(E=1e-4,re<E&&re>-E&&(re=le=2e-5),se<E&&se>-E&&(se=le=2e-5),!fe||G.z||G.rotationX||G.rotationY||(fe=0)),Q||be)Q*=_e,D=n=j(Q),N=p=X(Q),be&&(Q-=be*_e,D=j(Q),N=X(Q),"simple"===G.skewType&&(t=te((be-ve)*_e),t=a(1+t*t),D*=t,N*=t,G.skewY&&(t=te(ve*_e),t=a(1+t*t),n*=t,p*=t))),o=-N,f=D;else{if(!(ie||ne||1!==le||fe||xe))return void(ee[ut]=(G.xPercent||G.yPercent?"translate("+G.xPercent+"%,"+G.yPercent+"%) translate3d(":"translate3d(")+de+"px,"+pe+"px,"+ye+"px)"+(1!==re||1!==se?" scale("+re+","+se+")":""));n=f=1,o=p=0}T=1,l=_=v=b=w=k=0,P=fe?-1/fe:0,S=G.zOrigin,E=1e-6,Z=",",q="0",Q=ie*_e,Q&&(D=j(Q),N=X(Q),v=-N,w=P*-N,l=n*N,_=p*N,T=D,P*=D,n*=D,p*=D),Q=ne*_e,Q&&(D=j(Q),N=X(Q),t=o*D+l*N,W=f*D+_*N,b=T*N,k=P*N,l=o*-N+l*D,_=f*-N+_*D,T*=D,P*=D,o=t,f=W),1!==le&&(l*=le,_*=le,T*=le,P*=le),1!==se&&(o*=se,f*=se,b*=se,k*=se),1!==re&&(n*=re,p*=re,v*=re,w*=re),(S||xe)&&(S&&(de+=l*-S,pe+=_*-S,ye+=T*-S+S),xe&&(de+=G.xOrigin-(G.xOrigin*n+G.yOrigin*o)+G.xOffset,pe+=G.yOrigin-(G.xOrigin*p+G.yOrigin*f)+G.yOffset),de<E&&de>-E&&(de=q),pe<E&&pe>-E&&(pe=q),ye<E&&ye>-E&&(ye=0)),H=G.xPercent||G.yPercent?"translate("+G.xPercent+"%,"+G.yPercent+"%) matrix3d(":"matrix3d(",H+=(n<E&&n>-E?q:n)+Z+(p<E&&p>-E?q:p)+Z+(v<E&&v>-E?q:v),H+=Z+(w<E&&w>-E?q:w)+Z+(o<E&&o>-E?q:o)+Z+(f<E&&f>-E?q:f),ne||ie||1!==le?(H+=Z+(b<E&&b>-E?q:b)+Z+(k<E&&k>-E?q:k)+Z+(l<E&&l>-E?q:l),H+=Z+(_<E&&_>-E?q:_)+Z+(T<E&&T>-E?q:T)+Z+(P<E&&P>-E?q:P)+Z):H+=",0,0,0,0,1,0,",H+=de+Z+pe+Z+ye+Z+(fe?1+-ye/fe:1)+")",ee[ut]=H};r=_t.prototype,r.x=r.y=r.z=r.skewX=r.skewY=r.rotation=r.rotationX=r.rotationY=r.zOrigin=r.xPercent=r.yPercent=r.xOffset=r.yOffset=0,r.scaleX=r.scaleY=r.scaleZ=1,Ze("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(r,o,t,e,i,a,d){if(e._lastParsedTransform===d)return i;e._lastParsedTransform=d;var s,c=d.scale&&"function"==typeof d.scale?d.scale:0;"function"==typeof d[t]&&(s=d[t],d[t]=o),c&&(d.scale=c(J,r));var p,u,g,f,h,_,b,k,P,z=r._gsTransform,D=r.style,R=1e-6,L=qe.length,B=d,U={},I="transformOrigin",N=lt(r,Y,!0,B.parseTransform),F=B.transform&&("function"==typeof B.transform?B.transform(J,$):B.transform);if(N.skewType=B.skewType||N.skewType||K.defaultSkewType,e._transform=N,F&&"string"==typeof F&&ut)u=Te.style,u[ut]=F,u.display="block",u.position="absolute",ee.body.appendChild(Te),p=lt(Te,null,!1),"simple"===N.skewType&&(p.scaleY*=j(p.skewX*_e)),N.svg&&(_=N.xOrigin,b=N.yOrigin,p.x-=N.xOffset,p.y-=N.yOffset,(B.transformOrigin||B.svgOrigin)&&(F={},$e(r,De(B.transformOrigin),F,B.svgOrigin,B.smoothOrigin,!0),_=F.xOrigin,b=F.yOrigin,p.x-=F.xOffset-N.xOffset,p.y-=F.yOffset-N.yOffset),(_||b)&&(k=rt(Te,!0),p.x-=_-(_*k[0]+b*k[2]),p.y-=b-(_*k[1]+b*k[3]))),ee.body.removeChild(Te),p.perspective||(p.perspective=N.perspective),null!=B.xPercent&&(p.xPercent=Re(B.xPercent,N.xPercent)),null!=B.yPercent&&(p.yPercent=Re(B.yPercent,N.yPercent));else if("object"==typeof B){if(p={scaleX:Re(null==B.scaleX?B.scale:B.scaleX,N.scaleX),scaleY:Re(null==B.scaleY?B.scale:B.scaleY,N.scaleY),scaleZ:Re(B.scaleZ,N.scaleZ),x:Re(B.x,N.x),y:Re(B.y,N.y),z:Re(B.z,N.z),xPercent:Re(B.xPercent,N.xPercent),yPercent:Re(B.yPercent,N.yPercent),perspective:Re(B.transformPerspective,N.perspective)},h=B.directionalRotation,null!=h)if("object"==typeof h)for(u in h)B[u]=h[u];else B.rotation=h;"string"==typeof B.x&&-1!==B.x.indexOf("%")&&(p.x=0,p.xPercent=Re(B.x,N.xPercent)),"string"==typeof B.y&&-1!==B.y.indexOf("%")&&(p.y=0,p.yPercent=Re(B.y,N.yPercent)),p.rotation=ve("rotation"in B?B.rotation:"shortRotation"in B?B.shortRotation+"_short":"rotationZ"in B?B.rotationZ:N.rotation,N.rotation,"rotation",U),ht&&(p.rotationX=ve("rotationX"in B?B.rotationX:"shortRotationX"in B?B.shortRotationX+"_short":N.rotationX||0,N.rotationX,"rotationX",U),p.rotationY=ve("rotationY"
1in B?B.rotationY:"shortRotationY"in B?B.shortRotationY+"_short":N.rotationY||0,N.rotationY,"rotationY",U)),p.skewX=ve(B.skewX,N.skewX),p.skewY=ve(B.skewY,N.skewY)}for(ht&&null!=B.force3D&&(N.force3D=B.force3D,f=!0),g=N.force3D||N.z||N.rotationX||N.rotationY||p.z||p.rotationX||p.rotationY||p.perspective,g||null==B.scale||(p.scaleZ=1);-1<--L;)P=qe[L],F=p[P]-N[P],(F>R||F<-R||null!=B[P]||null!=w[P])&&(f=!0,i=new Ye(N,P,N[P],F,i),P in U&&(i.e=U[P]),i.xs0=0,i.plugin=a,e._overwriteProps.push(i.n));return F=B.transformOrigin,N.svg&&(F||B.svgOrigin)&&(_=N.xOffset,b=N.yOffset,$e(r,De(F),p,B.svgOrigin,B.smoothOrigin),i=Fe(N,"xOrigin",(z?N:p).xOrigin,p.xOrigin,i,"transformOrigin"),i=Fe(N,"yOrigin",(z?N:p).yOrigin,p.yOrigin,i,"transformOrigin"),_===N.xOffset&&b===N.yOffset||(i=Fe(N,"xOffset",z?_:N.xOffset,N.xOffset,i,"transformOrigin"),i=Fe(N,"yOffset",z?b:N.yOffset,N.yOffset,i,"transformOrigin")),F="0px 0px"),(F||ht&&g&&N.zOrigin)&&(ut?(f=!0,P=ft,F=(F||Ae(r,P,Y,!1,"50% 50%"))+"",i=new Ye(D,P,0,0,i,-1,"transformOrigin"),i.b=D[P],i.plugin=a,ht?(u=N.zOrigin,F=F.split(" "),N.zOrigin=(2<F.length&&(0===u||"0px"!==F[2])?parseFloat(F[2]):u)||0,i.xs0=i.e=F[0]+" "+(F[1]||"50%")+" 0px",i=new Ye(N,"zOrigin",0,0,i,-1,i.n),i.b=u,i.xs0=i.e=N.zOrigin):i.xs0=i.e=F):De(F+"",N)),f&&(e._transformType=N.svg&&Ge||!g&&3!==this._transformType?2:3),s&&(d[t]=s),c&&(d.scale=c),i},prefix:!0}),Ze("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ze("borderRadius",{defaultValue:"0px",parser:function(e,i,n,r,a,d){i=this.format(i);var s,c,g,f,h,_,y,x,v,b,T,w,S,A,D,j,W=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],U=e.style;for(v=parseFloat(e.offsetWidth),b=parseFloat(e.offsetHeight),s=i.split(" "),c=0;c<W.length;c++)this.p.indexOf("border")&&(W[c]=ke(W[c])),h=f=Ae(e,W[c],Y,!1,"0px"),-1!==h.indexOf(" ")&&(f=h.split(" "),h=f[0],f=f[1]),_=g=s[c],y=parseFloat(h),w=h.substr((y+"").length),S="="===_.charAt(1),S?(x=parseInt(_.charAt(0)+"1",10),_=_.substr(2),x*=parseFloat(_),T=_.substr((x+"").length-(0>x?1:0))||""):(x=parseFloat(_),T=_.substr((x+"").length)),""===T&&(T=O[n]||w),T!==w&&(A=ze(e,"borderLeft",y,w),D=ze(e,"borderTop",y,w),"%"===T?(h=100*(A/v)+"%",f=100*(D/b)+"%"):"em"===T?(j=ze(e,"borderLeft",1,"em"),h=A/j+"em",f=D/j+"em"):(h=A+"px",f=D+"px"),S&&(_=parseFloat(h)+x+T,g=parseFloat(f)+x+T)),a=Me(U,W[c],h+" "+f,_+" "+g,!1,"0px",a);return a},prefix:!0,formatter:Xe("0px 0px 0px 0px",!1,!0)}),Ze("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,i,n,a,o,r){return Me(e.style,n,this.format(Ae(e,n,Y,!1,"0px 0px")),this.format(i),!1,"0px",o)},prefix:!0,formatter:Xe("0px 0px",!1,!0)}),Ze("backgroundPosition",{defaultValue:"0 0",parser:function(o,a,s,r,t,e){var i,l,p,c,m,f,_="background-position",x=Y||Se(o,null),h=this.format((x?M?x.getPropertyValue("background-position-x")+" "+x.getPropertyValue("background-position-y"):x.getPropertyValue("background-position"):o.currentStyle.backgroundPositionX+" "+o.currentStyle.backgroundPositionY)||"0 0"),T=this.format(a);if(-1!==h.indexOf("%")!=(-1!==T.indexOf("%"))&&2>T.split(",").length&&(f=Ae(o,"backgroundImage").replace(R,""),f&&"none"!==f)){for(i=h.split(" "),l=T.split(" "),we.setAttribute("src",f),p=2;-1<--p;)h=i[p],c=-1!==h.indexOf("%"),c!==(-1!==l[p].indexOf("%"))&&(m=0===p?o.offsetWidth-we.width:o.offsetHeight-we.height,i[p]=c?parseFloat(h)/100*m+"px":100*(parseFloat(h)/m)+"%");h=i.join(" ")}return this.parseComplex(o.style,h,T,t,e)},formatter:De}),Ze("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",De(-1===t.indexOf(" ")?t+" "+t:t)}}),Ze("perspective",{defaultValue:"0px",prefix:!0}),Ze("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ze("transformStyle",{prefix:!0}),Ze("backfaceVisibility",{prefix:!0}),Ze("userSelect",{prefix:!0}),Ze("margin",{parser:We("marginTop,marginRight,marginBottom,marginLeft")}),Ze("padding",{parser:We("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ze("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,n,a,l,i,r){var s,p,m;return 9>M?(p=e.currentStyle,m=8>M?" ":",",s="rect("+p.clipTop+m+p.clipRight+m+p.clipBottom+m+p.clipLeft+")",n=this.format(n).split(",").join(m)):(s=this.format(Ae(e,this.p,Y,!1,this.dflt)),n=this.format(n)),this.parseComplex(e.style,s,n,i,r)}}),Ze("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ze("autoRound,strictUnits",{parser:function(r,o,t,e,i){return i}}),Ze("border",{defaultValue:"0px solid #000",parser:function(d,o,a,r,t,e){var i=Ae
vendor: 4,774 bytes, line 1
1(d,"borderTopWidth",Y,!1,"0px"),c=this.format(o).split(" "),p=c[0].replace(s,"");return"px"!==p&&(i=parseFloat(i)/ze(d,"borderTopWidth",1,p)+p),this.parseComplex(d.style,this.format(i+" "+Ae(d,"borderTopStyle",Y,!1,"solid")+" "+Ae(d,"borderTopColor",Y,!1,"#000")),c.join(" "),t,e)},color:!0,formatter:function(e){var i=e.split(" ");return i[0]+" "+(i[1]||"solid")+" "+(e.match(Oe)||["#000"])[0]}}),Ze("borderWidth",{parser:We("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ze("float,cssFloat,styleFloat",{parser:function(e,i,n,r,s,o){var a=e.style,l="cssFloat"in a?"cssFloat":"styleFloat";return new Ye(a,l,0,0,s,-1,n,!1,0,a[l],i)}});var dt=function(e){var t,r=this.t,n=r.filter||Ae(this.data,"filter")||"",s=0|this.s+this.c*e;100==s&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(r.removeAttribute("filter"),t=!Ae(this.data,"filter")):(r.filter=n.replace(m,""),t=!0)),t||(this.xn1&&(r.filter=n=n||"alpha(opacity="+s+")"),-1===n.indexOf("pacity")?0===s&&this.xn1||(r.filter=n+" alpha(opacity="+s+")"):r.filter=n.replace(D,"opacity="+s))};Ze("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,i,r,n,o,l){var p=parseFloat(Ae(e,"opacity",Y,!1,"1")),c=e.style,m="autoAlpha"===r;return"string"==typeof i&&"="===i.charAt(1)&&(i=("-"===i.charAt(0)?-1:1)*parseFloat(i.substr(2))+p),m&&1===p&&"hidden"===Ae(e,"visibility",Y)&&0!==i&&(p=0),te?o=new Ye(c,"opacity",p,i-p,o):(o=new Ye(c,"opacity",100*p,100*(i-p),o),o.xn1=m?1:0,c.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=e,o.plugin=l,o.setRatio=dt),m&&(o=new Ye(c,"visibility",0,0,o,-1,null,!1,0,0===p?"hidden":"inherit",0===i?"hidden":"inherit"),o.xs0="inherit",n._overwriteProps.push(o.n),n._overwriteProps.push(r)),o}});var mt=function(e,i){i&&(e.removeProperty?("ms"!==i.substr(0,2)&&"webkit"!==i.substr(0,6)||(i="-"+i),e.removeProperty(i.replace(u,"-$1").toLowerCase())):e.removeAttribute(i))},Je=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var i=this.data,n=this.t.style;i;)i.v?n[i.p]=i.v:mt(n,i.p),i=i._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ze("className",{parser:function(t,i,o,e,n,d,a){var l,g,f,h,_,v=t.getAttribute("class")||"",y=t.style.cssText;if(n=e._classNamePT=new Ye(t,o,0,0,n,2),n.setRatio=Je,n.pr=-11,E=!0,n.b=v,g=fe(t,Y),f=t._gsClassPT){for(h={},_=f.data;_;)h[_.p]=1,_=_._next;f.setRatio(1)}return t._gsClassPT=n,n.e="="===i.charAt(1)?v.replace(new RegExp("(?:\\s|^)"+i.substr(2)+"(?![\\w-])"),"")+("+"===i.charAt(0)?" "+i.substr(2):""):i,t.setAttribute("class",n.e),l=Ne(t,g,fe(t),a,h),t.setAttribute("class",v),n.data=l.firstMPT,t.style.cssText=y,n=n.xfirst=e.parse(t,l.difs,n,d)}});var pt=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,n,o,r,s,p=this.t.style,m=I.transform.parse;if("all"===this.e)p.cssText="",r=!0;else for(t=this.e.split(" ").join("").split(","),o=t.length;-1<--o;)n=t[o],I[n]&&(I[n].parse===m?r=!0:n="transformOrigin"===n?ft:I[n].p),mt(p,n);r&&(mt(p,ut),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ze("clearProps",{parser:function(t,i,r,e,n){return n=new Ye(t,r,0,0,n,2),n.setRatio=pt,n.e=i,n.pr=-10,n.data=e._tween,E=!0,n}}),r=["bezier","throwProps","physicsProps","physics2D"],Be=r.length;Be--;)Ve(r[Be]);r=K.prototype,r._firstPT=r._lastParsedTransform=r._transform=null,r._onInitTween=function(e,t,a,n){if(!e.nodeType)return!1;this._target=$=e,this._tween=a,this._vars=t,J=n,H=t.autoRound,E=!1,O=t.suffixMap||K.suffixMap,Y=Se(e,""),x=this._overwriteProps;var o,m,v,b,T,w,k,P,S,C=e.style;if(p&&""===C.zIndex&&(o=Ae(e,"zIndex",Y),"auto"!==o&&""!==o||this._addLazySet(C,"zIndex",0)),"string"==typeof t&&(b=C.cssText,o=fe(e,Y),C.cssText=b+";"+t,o=Ne(e,o,fe(e)).difs,!te&&_.test(t)&&(o.opacity=parseFloat(RegExp.$1)),t=o,C.cssText=b),this._firstPT=t.className?m=I.className.parse(e,t.className,"className",this,null,null,t):m=this.parse(e,t,null),this._transformType){for(S=3===this._transformType,ut?d&&(p=!0,""===C.zIndex&&(k=Ae(e,"zIndex",Y),"auto"!==k&&""!==k||this._addLazySet(C,"zIndex",0)),c&&this._addLazySet(C,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):C.zoom=1,v=m;v&&v._next;)v=v._next;P=new Ye(e,"transform",0,0,null,2),this._linkCSSP(P,null,v),P.setRatio=ut?st:at,P.data=this._transform||lt(e,Y,!0),P.tween=a,P.pr=-1,x.pop()}if(E){for(;m;){for(w=m._next,v=b;v&&v.pr>m.pr;)v=v._next;(m._prev=v?v._prev:T)?m._prev._next=m:b=m,(m._next=v)?v._prev=m:T=m,m=w}this._firstPT=b}return!0}
1,r.parse=function(t,e,i,r){var o,d,p,m,u,v,T,w,P,E,A=t.style;for(o in e){if(v=e[o],"function"==typeof v&&(v=v(J,$)),d=I[o])i=d.parse(t,v,o,this,i,r,e);else{if("--"===o.substr(0,2)){this._tween._propLookup[o]=this._addTween.call(this._tween,t.style,"setProperty",Se(t).getPropertyValue(o)+"",v+"",o,!1,o);continue}u=Ae(t,o,Y)+"",P="string"==typeof v,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||P&&S.test(v)?(P||(v=Pe(v),v=(3<v.length?"rgba(":"rgb(")+v.join(",")+")"),i=Me(A,o,u,v,!0,"transparent",i,0,r)):P&&h.test(v)?i=Me(A,o,u,v,!0,null,i,0,r):(p=parseFloat(u),T=p||0===p?u.substr((p+"").length):"",""!==u&&"auto"!==u||("width"===o||"height"===o?(p=Ce(t,o,Y),T="px"):"left"===o||"top"===o?(p=Ie(t,o,Y),T="px"):(p="opacity"===o?1:0,T="")),E=P&&"="===v.charAt(1),E?(m=parseInt(v.charAt(0)+"1",10),v=v.substr(2),m*=parseFloat(v),w=v.replace(s,"")):(m=parseFloat(v),w=P?v.replace(s,""):""),""===w&&(w=o in O?O[o]:T),v=m||0===m?(E?m+p:m)+w:e[o],T!==w&&(""===w&&"lineHeight"!==o||(m||0===m)&&p&&(p=ze(t,o,p,T),"%"===w?(p/=ze(t,o,100,"%")/100,!0!==e.strictUnits&&(u=p+"%")):"em"===w||"rem"===w||"vw"===w||"vh"===w?p/=ze(t,o,1,w):"px"!==w&&(m=ze(t,o,m,w),w="px"),E&&(m||0===m)&&(v=m+p+w))),E&&(m+=p),(p||0===p)&&(m||0===m)?(i=new Ye(A,o,p,m-p,i,0,o,!1!==H&&("px"===w||"zIndex"===o),0,u,v),i.xs0=w):void 0!==A[o]&&(v||"NaN"!=v+""&&null!=v)?(i=new Ye(A,o,m||p||0,0,i,-1,o,!1,0,u,v),i.xs0="none"!==v||"display"!==o&&-1===o.indexOf("Style")?v:u):ne("invalid "+o+" tween value: "+e[o]))}r&&i&&!i.plugin&&(i.plugin=r)}return i},r.setRatio=function(e){var t,o,a,l=this._firstPT,p=1e-6;if(1===e&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;l;){if(2===l.type)l.setRatio(e);else if(!(l.r&&-1!==l.type))l.t[l.p]=l.e;else if(t=i(l.s+l.c),!l.type)l.t[l.p]=t+l.xs0;else if(1===l.type){for(a=l.l,o=l.xs0+t+l.xs1,a=1;a<l.l;a++)o+=l["xn"+a]+l["xs"+(a+1)];l.t[l.p]=o}l=l._next}else if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;l;){if(t=l.c*e+l.s,l.r?t=i(t):t<p&&t>-p&&(t=0),!l.type)l.t[l.p]=t+l.xs0;else if(1!==l.type)-1===l.type?l.t[l.p]=l.xs0:l.setRatio&&l.setRatio(e);else if(a=l.l,2===a)l.t[l.p]=l.xs0+t+l.xs1+l.xn1+l.xs2;else if(3===a)l.t[l.p]=l.xs0+t+l.xs1+l.xn1+l.xs2+l.xn2+l.xs3;else if(4===a)l.t[l.p]=l.xs0+t+l.xs1+l.xn1+l.xs2+l.xn2+l.xs3+l.xn3+l.xs4;else if(5===a)l.t[l.p]=l.xs0+t+l.xs1+l.xn1+l.xs2+l.xn2+l.xs3+l.xn3+l.xs4+l.xn4+l.xs5;else{for(o=l.xs0+t+l.xs1,a=1;a<l.l;a++)o+=l["xn"+a]+l["xs"+(a+1)];l.t[l.p]=o}l=l._next}else for(;l;)2===l.type?l.setRatio(e):l.t[l.p]=l.b,l=l._next},r._enableTransforms=function(t){this._transform=this._transform||lt(this._target,Y,!0),this._transformType=this._transform.svg&&Ge||!t&&3!==this._transformType?2:3};var ct=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};r._addLazySet=function(i,n,o){var t=this._firstPT=new Ye(i,n,0,0,this._firstPT,2);t.e=o,t.setRatio=ct,t.data=this},r._linkCSSP=function(i,n,o,t){return i&&(n&&(n._prev=i),i._next&&(i._next._prev=i._prev),i._prev?i._prev._next=i._next:this._firstPT===i&&(this._firstPT=i._next,t=!0),o?o._next=i:t||null!==this._firstPT||(this._firstPT=i),i._next=n,i._prev=o),i},r._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&e[t.p]===i&&(t.r=1),t=t._next},r._kill=function(r){var i,s,l,d=r;if(r.autoAlpha||r.alpha){for(s in d={},r)d[s]=r[s];d.opacity=1,d.autoAlpha&&(d.visibility=1)}for(r.className&&(i=this._classNamePT)&&(l=i.xfirst,l&&l._prev?this._linkCSSP(l._prev,i._next,l._prev._prev):l===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,l._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==s&&i.plugin._kill&&(i.plugin._kill(r),s=i.plugin),i=i._next;return e.prototype._kill.call(this,d)};var tt=function(i,n,o){var t,r,a,s;if(i.slice)for(r=i.length;-1<--r;)tt(i[r],n,o);else for(t=i.childNodes,r=t.length;-1<--r;)a=t[r],s=a.type,a.style&&(n.push(fe(a)),o&&o.push(a)),(1===s||9===s||11===s)&&a.childNodes.length&&tt(a,n,o)};return K.cascadeTo=function(e,t,n){var o,a,s,l,_=T.to(e,t,n),h=[_],p=[],y=[],d=[],c=T._internals.reservedProps;for(e=_._targets||_.target,tt(e,p,d),_.render(t,!0,!0),tt(e,y),_.render(0,!0,!0),_._enabled(!0),o=d.length;-1<--o;)if(a=Ne(d[o],p[o],y[o]),a.firstMPT){for(s in a=a.difs,n)c[s]&&(a[s]=n[s]);for(s in l={},a)l[s]=p[o][s];h.push(T.fromTo(d[o],t,l,a))}return h},e.activate([K]),K},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var i=function(){return(_gsScope.GreenSockGlobals||_gsScope)[e]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=i()):"function"==typeof define&&define.amd&&define(["TweenLite"],i)}("CSSPlugin");function _classCallCheck(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i,r=0;r<e.length;r++)i=e[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}var Sticky=function(){function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,o),this.selector=e,this.elements=[],this.version="1.2.2",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:i.wrap||!1,marginTop:i.marginTop||0,stickyFor:i.stickyFor||0,stickyClass:i.stickyClass||null,stickyContainer:i.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}var t=Math.max;return _createClass(o,[{key:"run",value:function(){var t=this,i=setInterval(function(){if("complete"===document.readyState){clearInterval(i);var n=document.querySelectorAll(t.selector);t.forEach(n,function(i){return t.renderElement(i)})}},10)}},{key:"renderElement",value:function(e){var i=this;e.sticky={},e.sticky.active=!1,e.sticky.marginTop=parseInt(e.getAttribute("data-margin-top"))||this.options.marginTop,e.sticky.stickyFor=parseInt(e.getAttribute("data-sticky-for"))||this.options.stickyFor,e.sticky.stickyClass=e.getAttribute("data-sticky-class")||this.options.stickyClass,e.sticky.wrap=!!e.hasAttribute("data-sticky-wrap")||this.options.wrap,e.sticky.stickyContainer=this.options.stickyContainer,e.sticky.container=this.getStickyContainer(e),e.sticky.container.rect=this.getRectangle(e.sticky.container),e.sticky.rect=this.getRectangle(e),"img"===e.tagName.toLowerCase()&&(e.onload=function(){return e.sticky.rect=i.getRectangle(e)}),e.sticky.wrap&&this.wrapElement(e),this.activate(e)}},{key:"wrapElement",value:function(t){t.insertAdjacentHTML("beforebegin","<span></span>
1"),t.previousSibling.appendChild(t)}},{key:"activate",value:function(t){t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active&&(t.sticky.active=!0),0>this.elements.indexOf(t)&&this.elements.push(t),t.sticky.resizeEvent||(this.initResizeEvents(t),t.sticky.resizeEvent=!0),t.sticky.scrollEvent||(this.initScrollEvents(t),t.sticky.scrollEvent=!0),this.setPosition(t)}},{key:"initResizeEvents",value:function(e){var i=this;e.sticky.resizeListener=function(){return i.onResizeEvents(e)},window.addEventListener("resize",e.sticky.resizeListener)}},{key:"destroyResizeEvents",value:function(t){window.removeEventListener("resize",t.sticky.resizeListener)}},{key:"onResizeEvents",value:function(t){this.vp=this.getViewportSize(),t.sticky.rect=this.getRectangle(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active?t.sticky.active=!0:(t.sticky.rect.top+t.sticky.rect.height>=t.sticky.container.rect.top+t.sticky.container.rect.height||t.sticky.stickyFor>=this.vp.width&&t.sticky.active)&&(t.sticky.active=!1),this.setPosition(t)}},{key:"initScrollEvents",value:function(e){var i=this;e.sticky.scrollListener=function(){return i.onScrollEvents(e)},window.addEventListener("scroll",e.sticky.scrollListener)}},{key:"destroyScrollEvents",value:function(t){window.removeEventListener("scroll",t.sticky.scrollListener)}},{key:"onScrollEvents",value:function(t){t.sticky.active&&this.setPosition(t)}},{key:"setPosition",value:function(t){this.css(t,{position:"",width:"",top:"",left:""}),this.vp.height<t.sticky.rect.height||!t.sticky.active||(t.sticky.rect.width||(t.sticky.rect=this.getRectangle(t)),t.sticky.wrap&&this.css(t.parentNode,{display:"block",width:t.sticky.rect.width+"px",height:t.sticky.rect.height+"px"}),0===t.sticky.rect.top&&t.sticky.container===this.body?this.css(t,{position:"fixed",top:t.sticky.rect.top+"px",left:t.sticky.rect.left+"px",width:t.sticky.rect.width+"px"}):this.scrollTop>t.sticky.rect.top-t.sticky.marginTop?(this.css(t,{position:"fixed",width:t.sticky.rect.width+"px",left:t.sticky.rect.left+"px"}),this.scrollTop+t.sticky.rect.height+t.sticky.marginTop>t.sticky.container.rect.top+t.sticky.container.offsetHeight?(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{top:t.sticky.container.rect.top+t.sticky.container.offsetHeight-(this.scrollTop+t.sticky.rect.height)+"px"})):(t.sticky.stickyClass&&t.classList.add(t.sticky.stickyClass),this.css(t,{top:t.sticky.marginTop+"px"}))):(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{position:"",width:"",top:"",left:""}),t.sticky.wrap&&this.css(t.parentNode,{display:"",width:"",height:""})))}},{key:"update",value:function(){var t=this;this.forEach(this.elements,function(i){i.sticky.rect=t.getRectangle(i),i.sticky.container.rect=t.getRectangle(i.sticky.container),t.activate(i),t.setPosition(i)})}},{key:"destroy",value:function(){var t=this;window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,function(i){t.destroyResizeEvents(i),t.destroyScrollEvents(i),delete i.sticky})}},{key:"getStickyContainer",value:function(e){for(var i=e.parentNode;!i.hasAttribute("data-sticky-container")&&!i.parentNode.querySelector(e.sticky.stickyContainer)&&i!==this.body;)i=i.parentNode;return i}},{key:"getRectangle",value:function(e){this.css(e,{position:"",width:"",top:"",left:""});for(var a=t(e.offsetWidth,e.clientWidth,e.scrollWidth),o=t(e.offsetHeight,e.clientHeight,e.scrollHeight),n=0,s=0;n+=e.offsetTop||0,s+=e.offsetLeft||0,e=e.offsetParent;);return{top:n,left:s,width:a,height:o}}},{key:"getViewportSize",value:function(){return{width:t(document.documentElement.clientWidth,window.innerWidth||0),height:t(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:"updateScrollTopPosition",value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}}
1,{key:"forEach",value:function(t,e){for(var i=0,r=t.length;i<r;i++)e(t[i])}},{key:"css",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])}}]),o}();!function(e,i){"undefined"==typeof exports?"function"==typeof define&&define.amd?define([],function(){return i}):e.Sticky=i:module.exports=i}(this,Sticky);
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.