1!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.enquire=t()}}(function(){return function t(e,n,i){function o(s,u){if(!n[s]){if(!e[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var h=n[s]={exports:{}};e[s][0].call(h.exports,function(t){var n=e[s][1][t];return o(n||t)},h,h.exports,t,e,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){function i(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var n=this;this.listener=function(t){n.mql=t.currentTarget||t,n.assess()},this.mql.addListener(this.listener)}var o=t(3),r=t(4).each;i.prototype={constuctor:i,addHandler:function(t){var e=new o(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;r(e,function(n,i){if(n.equals(t))return n.destroy(),!e.splice(i,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";r(this.handlers,function(e){e[t]()})}},e.exports=i},{3:3,4:4}],2:[function(t,e,n){function i(){if(!window.matchMedia)throw new Error("matchMedia n
1ot present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var o=t(1),r=t(4),s=r.each,u=r.isFunction,a=r.isArray;i.prototype={constructor:i,register:function(t,e,n){var i=this.queries,r=n&&this.browserIsIncapable;return i[t]||(i[t]=new o(t,r)),u(e)&&(e={match:e}),a(e)||(e=[e]),s(e,function(e){u(e)&&(e={match:e}),i[t].addHandler(e)}),this},unregister:function(t,e){var n=this.queries[t];return n&&(e?n.removeHandler(e):(n.clear(),delete this.queries[t])),this}},e.exports=i},{1:1,4:4}],3:[function(t,e,n){function i(t){this.options=t,!t.deferSetup&&this.setup()}i.prototype={constructor:i,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},e.exports=i},{}],4:[function(t,e,n){function i(t,e){var n=0,i=t.length;for(n;n<i&&!1!==e(t[n],n);n++);}function o(t){return"[object Array]"===Object.prototype.toString.apply(t)}function r(t){return"function"==typeof t}e.exports={isFunction:r,isArray:o,each:i}},{}],5:[function(t,e,n){var i=t(2);e.exports=new i},{2:2}]},{},[5])(5)}); 2!function(n,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():n.NProgress=e()}(this,function(){function n(n,e,t){return n<e?e:n>t?t:n}function e(n){return 100*(-1+n)}function t(n,t,r){var i;return i="translate3d"===c.positionUsing?{transform:"translate3d("+e(n)+"%,0,0)"}:"translate"===c.positionUsing?{transform:"translate("+e(n)+"%,0)"}:{"margin-left":e(n)+"%"},i.transition="all "+t+"ms "+r,i}function r(n,e){return("string"==typeof n?n:s(n)).indexOf(" "+e+" ")>=0}function i(n,e){var t=s(n),i=t+e;r(t,e)||(n.className=i.substring(1))}function o(n,e){var t,i=s(n);
2r(n,e)&&(t=i.replace(" "+e+" "," "),n.className=t.substring(1,t.length-1))}function s(n){return(" "+(n&&n.className||"")+" ").replace(/\s+/gi," ")}function a(n){n&&n.parentNode&&n.parentNode.removeChild(n)}var u={};u.version="0.2.0";var c=u.settings={minimum:.08,easing:"linear",positionUsing:"",speed:350,trickle:!0,trickleSpeed:250,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};u.configure=function(n){var e,t;for(e in n)void 0!==(t=n[e])&&n.hasOwnProperty(e)&&(c[e]=t);return this},u.status=null,u.set=function(e){var r=u.isStarted();e=n(e,c.minimum,1),u.status=1===e?null:e;var i=u.render(!r),o=i.querySelector(c.barSelector),s=c.speed,a=c.easing;return i.offsetWidth,l(function(n){""===c.positionUsing&&(c.positionUsing=u.getPositioningCSS()),f(o,t(e,s,a)),1===e?(f(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){f(i,{transition:"all "+s+"ms linear",opacity:0}),setTimeout(function(){u.remove(),n()},s)},s)):setTimeout(n,s)}),this},u.isStarted=function(){return"number"==typeof u.status},u.start=function(){u.status||u.set(0);var n=function(){setTimeout(function(){u.status&&(u.trickle(),n())},c.trickleSpeed)};return c.trickle&&n(),this},u.done=function(n){return n||u.status?u.inc(.3+.5*Math.random()).set(1):this},u.inc=function(e){var t=u.status;return t?t>1?void 0:("number"!=typeof e&&(e=t>=0&&t<.25?(3*Math.random()+3)/100:t>=.25&&t<.65?3*Math.random()/100:t>=.65&&t<.9?2*Math.random()/100:t>=.9&&t<.99?.005:0),t=n(t+e,0,.994),u.set(t)):u.start()},u.trickle=function(){return u.inc()},function(){var n=0,e=0;u.promise=function(t){return t&&"resolved"!==t.state()?(0===e&&u.start(),n++,e++,t.always(function(){e--,0===e?(n=0,u.done()):u.set((n-e)/n)}),this):this}}(),u.render=function(n){if(u.isRendered())return document.getElementById("nprogress");i(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=c.template;var r,o=t.querySelector(c.barSelector),s=n?"-100":e(u.status||0),l=document.querySelector(c.parent);return f(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),c.showSpinner||(r=t.querySelector(c.spinnerSelector))&&a(r),l!=document.body&&i(l,"nprogress-custom-parent"),l.appendChild(t),t},u.remove=function(){o(document.documentElement,"nprogress-busy"),o(document.querySelector(c.parent),"nprogress-custom-parent");var n=document.getElementById("nprogress");n&&a(n)},u.isRendered=function(){return!!document.getElementById("nprogress")},u.getPositioningCSS=function(){var n=document.body.style,e="WebkitTransform"in n?"Webkit":"MozTransform"in n?"Moz":"msTransform"in n?"ms":"OTransform"in n?"O":"";return e+"Perspective"in n?"translate3d":e+"Transform"in n?"translate":"margin"};var l=function(){function n(){var t=e.shift();t&&t(n)}var e=[];return function(t){e.push(t),1==e.length&&n()}}(),f=function(){function n(n){return n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,e){return e.toUpperCase()})}function e(n){var e=document.body.style;if(n in e)return n;for(var t,r=i.length,o=n.charAt(0).toUpperCase()+n.slice(1);r--;)if((t=i[r]+o)in e)return t;return n}function t(t){return t=n(t),o[t]||(o[t]=e(t))}function r(n,e,r){e=t(e),n.style[e]=r}var i=["Webkit","O","Moz","ms"],o={};return function(n,e){var t,i,o=arguments;if(2==o.length)for(t in e)void 0!==(i=e[t])&&e.hasOwnProperty(t)&&r(n,t,i);else r(n,o[1],o[2])}}();return u}); 3!function(){"use strict";function t(e,o){var i;if(o=o||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=o.touchBoundary||10,this.layer=e,this.tapDelay=o.tapDelay||200,this.tapTimeout=o.tapTimeout||700,!t.notNeeded(e)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,c=0,s=r.length;c<s;c++)a[r[c]]=function(t,e){return function(){return t.apply(e,arguments)}}(a[r[c]],a);n&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,o){var i=Node.prototype.removeEventListener;"click"===t?i.call(e,t,n.hijacked||n,o):i.call(e,t,n,o)},e.addEventListener=function(t,n,o){var i=Node.prototype.addEventListener;"click"===t?i.call(e,t,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),o):i.call(e,t,n,o)}),"function"==typeof e.onclick&&(i=e.onclick,e.addEventListener("click",function(t){i(t)},!1),e.onclick=null)}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!e,o=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,i=o&&/OS 4_\d(_\d)?/.test(navigator.userAgent),r=o&&/OS [6-7]_\d/.test(navigator.userAgent),a=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(o&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var n,o;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),o=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,
3!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},t.prototype.determineEventType=function(t){return n&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;o&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,n;if(!(e=t.fastClickScrollParent)||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,n,r;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],o){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!i){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],n=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n},t.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,a,c,s,u,l=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,a=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,r&&(u=t.changedTouches[0],l=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(c=l.tagName.toLowerCase())){if(e=this.findControl(l)){if(this.focus(l),n)return!1;l=e}}else if(this.needsFocus(l))return t.timeStamp-a>100||o&&window.top!==window&&"input"===c?(this.targetElement=null,!1):(this.focus(l),this.sendClick(l,t),o&&"select"===c||(this.targetElement=null,t.preventDefault()),!1);return!(!o||i||!(s=l.fastClickScrollParent)||s.fastClickLastScrollTop===s.scrollTop)||(this.needsClick(l)||(t.preventDefault(),this.sendClick(l,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;n&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,o,i;if(void 0===window.ontouchstart)return!0;
3if(o=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(o>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(a&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},t.attach=function(e,n){return new t(e,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?(module.exports=t.attach,module.exports.FastClick=t):window.FastClick=t}(); 4!function(t){t.fn.isOnScreen=function(o,i){null!=o&&void 0!==o||(o=1),null!=i&&void 0!==i||(i=1);var r=t(window),e={top:r.scrollTop(),left:r.scrollLeft()};e.right=e.left+r.width(),e.bottom=e.top+r.height();var h=this.outerHeight(),f=this.outerWidth();if(!f||!h)return!1;var l=this.offset();if(l.right=l.left+f,l.bottom=l.top+h,!!(e.right<l.left||e.left>l.right||e.bottom<l.top||e.top>l.bottom))return!1;var n={top:Math.min(1,(l.bottom-e.top)/h),bottom:Math.min(1,(e.bottom-l.top)/h),left:Math.min(1,(l.right-e.left)/f),right:Math.min(1,(e.right-l.left)/f)};return n.left*n.right>=o&&n.top*n.bottom>=i}}(jQuery); 5!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||[])[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),setTimeout(function(){this.check()}.bind(this))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var h=t.jQuery,a=t.console;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&u[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};
5return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new r(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new s(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();this.images.forEach(function(e){e.once("progress",t),e.check()})},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},r.prototype=Object.create(e.prototype),r.prototype.check=function(){if(this.getIsImageComplete())return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(h=e,h.fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o}); 6!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(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}(a=a||e||t.jQuery)&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){return h(this,t,o.call(arguments,1))}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s=void 0===r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<u;e++){t[h[e]]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;l<u;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);!1!==b&&(a.width=b+(E?0:p+_));var x=t(r.height);return!1!==x&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(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 n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
6sandro-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(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null===t||void 0===t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(e){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+e))}var a=new e(t,i);l&&l.data(t,n,a)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var o=document.documentElement.style,r="string"==typeof o.transition?"transition":"WebkitTransition",s="string"==typeof o.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:s,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},u=n.prototype=Object.create(t.prototype);u.constructor=n,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.getSize=function(){this.size=e(this.element)},u.css=function(t){var e=this.element.style;for(var i in t){e[h[i]||i]=t[i]}},u.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},u.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},u.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},u.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},u._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},u.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},u.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},u._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},u.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var d="opacity,"+function(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}(s);u.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},u.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},u.onotransitionend=function(t){this.ontransitionend(t)};var l={"-webkit-transform":"transform"};u.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=l[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){e.onEnd[n].call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},u._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(c)},u.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){if(!r||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();this.once("transitionEnd",function(){this.removeElem()}),this.hide()},u.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},u.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.f
vendor: 4,122 bytes, line 6
6izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];return i.length?(i=parseFloat(i))*(m[n]||1):0}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){++s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})}
vendor: 7,025 bytes, lines 6-7
6,f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t);return{left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom}},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&s<1?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;u<h;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=t>1&&i+t>this.cols?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;l<=h;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}); 7!function(){"use strict";if("undefined"!=typeof window){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),e=!!t&&parseInt(t[1],10)>=16;if("objectFit"in document.documentElement.style!=!1&&!e)return void(window.objectFitPolyfill=function(){return!1});var i=function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),o=e.getPropertyValue("display");
7i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),o&&"inline"!==o||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")},n=function(t){var e=window.getComputedStyle(t,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var n in i){e.getPropertyValue(n)!==i[n]&&(t.style[n]=i[n])}},o=function(t,e,i){var n,o,l,a,d;if(i=i.split(" "),i.length<2&&(i[1]=i[0]),"x"===t)n=i[0],o=i[1],l="left",a="right",d=e.clientWidth;else{if("y"!==t)return;n=i[1],o=i[0],l="top",a="bottom",d=e.clientHeight}return n===l||o===l?void(e.style[l]="0"):n===a||o===a?void(e.style[a]="0"):"center"===n||"50%"===n?(e.style[l]="50%",void(e.style["margin-"+l]=d/-2+"px")):n.indexOf("%")>=0?(n=parseInt(n),void(n<50?(e.style[l]=n+"%",e.style["margin-"+l]=d*(n/-100)+"px"):(n=100-n,e.style[a]=n+"%",e.style["margin-"+a]=d*(n/-100)+"px"))):void(e.style[l]=n)},l=function(t){var e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"),l=t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position");e=e||"cover",l=l||"50% 50%";var a=t.parentNode;i(a),n(t),t.style.position="absolute",t.style.height="100%",t.style.width="auto","scale-down"===e&&(t.style.height="auto",t.clientWidth<a.clientWidth&&t.clientHeight<a.clientHeight?(o("x",t,l),o("y",t,l)):(e="contain",t.style.height="100%")),"none"===e?(t.style.width="auto",t.style.height="auto",o("x",t,l),o("y",t,l)):"cover"===e&&t.clientWidth>a.clientWidth||"contain"===e&&t.clientWidth<a.clientWidth?(t.style.top="0",t.style.marginTop="0",o("x",t,l)):"scale-down"!==e&&(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",o("y",t,l))},a=function(t){if(void 0===t)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else{if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;t=t}for(var i=0;i<t.length;i++)if(t[i].nodeName){var n=t[i].nodeName.toLowerCase();"img"!==n||e?"video"===n&&(t[i].readyState>0?l(t[i]):t[i].addEventListener("loadedmetadata",function(){l(this)})):t[i].complete?l(t[i]):t[i].addEventListener("load",function(){l(this)})}return!0};document.addEventListener("DOMContentLoaded",function(){a()}),window.addEventListener("resize",function(){a()}),window.objectFitPolyfill=a}}(); 8!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(t,e){"use strict";function i(i,o,a){function l(t,e,n){var s,o="$()."+i+'("'+e+'")';return t.each(function(t,l){var h=a.data(l,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+o);var c=h[e];if(!c||"_"==e.charAt(0))return void r(o+" is not a valid method");var d=c.apply(h,n);s=void 0===s?d:s}),void 0!==s?s:t}function h(t,e){t.each(function(t,n){var s=a.data(n,i);s?(s.option(e),s._init()):(s=new o(n,e),a.data(n,i,s))})}(a=a||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){return l(this,t,s.call(arguments,1))}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var s=Array.prototype.slice,o=t.console,r=void 0===o?function(){}:function(t){o.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){t[l[e]]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function s(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var s=n(e);r=200==Math.round(t(s.width)),o.isBoxSizeOuter=r,i.removeChild(e)}}function o(e){if(s(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var o=n(e);if("none"==o.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==o.boxSizing,d=0;d<h;d++){var u=l[d],f=o[u],p=parseFloat(f);a[u]=isNaN(p)?0:p}var g=a.paddingLeft+a.paddingRight,v=a.paddingTop+a.paddingBottom,m=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,b=a.borderLeftWidth+a.borderRightWidth,E=a.borderTopWidth+a.borderBottomWidth,S=c&&r,C=t(o.width);!1!==C&&(a.width=C+(S?0:g+b));var x=t(o.height);return!1!==x&&(a.height=x+(S?0:v+E)),a.innerWidth=a.width-(g+b),a.innerHeight=a.height-(v+E),a.outerWidth=a.width+m,a.outerHeight=a.height+y,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=l.length,c=!1;return o}
8),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(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 n=e[i],s=n+"MatchesSelector";if(t[s])return s}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-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(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null===t||void 0===t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void s.push(t);e(t,n)&&s.push(t);for(var i=t.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}}),s},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],s=e+"Timeout";t.prototype[e]=function(){var t=this[s];clearTimeout(t);var e=arguments,o=this;this[s]=setTimeout(function(){n.apply(o,e),delete o[s]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var s=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var o=i.toDashed(n),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),h=i.makeArray(a).concat(i.makeArray(l)),c=r+"-options",d=t.jQuery;h.forEach(function(t){var i,o=t.getAttribute(r)||t.getAttribute(c);try{i=o&&JSON.parse(o)}catch(e){return void(s&&s.error("Error parsing "+r+" on "+t.className+": "+e))}var a=new e(t,i);d&&d.data(t,n,a)})})},i}),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(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-selected","false"),this.x=0,this.shift=0},n.destroy=function(){this.element.style.position="";var t=this.parent.originSide;this.element.removeAttribute("aria-selected"),this.element.style[t]=""},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.changeSelected(!0)},e.unselect=function(){this.changeSelected(!1)},e.changeSelected=function(t){var e=t?"add":"remove";
8this.cells.forEach(function(i){i.element.classList[e]("is-selected"),i.element.setAttribute("aria-selected",t.toString())})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),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,e){var i={};return i.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},i.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},i.positionSlider=function(){var t=this.x;this.options.wrapAround&&this.cells.length>1&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=this.isAnimating?"translate3d("+i+",0,0)":"translateX("+i+")";var n=this.slides[0];if(n){var s=-this.x-n.target,o=s/this.slidesWidth;this.dispatchEvent("scroll",null,[o,s])}},i.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},i.getPositionValue=function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},i.settle=function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},i.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)},i._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=e>0?i:0;s.wrapShift(o),e-=s.size.outerWidth}},i._unshiftCells=function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},i.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},i.applyForce=function(t){this.velocity+=t},i.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},i.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},i.applyDragForce=function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x,e=t-this.velocity;this.applyForce(e)}},i.applySelectedAttraction=function(){if((!this.isDraggable||!this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=-1*this.selectedSlide.target-this.x,e=t*this.options.selectedAttraction;this.applyForce(e)}},i}),function(t,e){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(i,n,s,o,r,a){return e(t,i,n,s,o,r,a)});else if("object"==typeof module&&module.exports)module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./sli
vendor: 9,670 bytes, line 8
8de"),require("./animate"));else{var i=t.Flickity;t.Flickity=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}}(window,function(t,e,i,n,s,o,r){function a(t,e){for(t=n.makeArray(t);t.length;)e.appendChild(t.shift())}function l(t,e){var i=n.getQueryElement(t);if(!i)return void(d&&d.error("Bad element for Flickity: "+(i||t)));if(this.element=i,this.element.flickityGUID){var s=f[this.element.flickityGUID];return s.option(e),s}h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),this._create()}var h=t.jQuery,c=t.getComputedStyle,d=t.console,u=0,f={};l.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},l.createMethods=[];var p=l.prototype;n.extend(p,e.prototype),p._create=function(){var e=this.guid=++u;this.element.flickityGUID=e,f[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)&&t.addEventListener("resize",this);for(var i in this.options.on){var n=this.options.on[i];this.on(i,n)}l.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){n.extend(this.options,t)},p.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();a(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate");var t,e=this.options.initialIndex;t=this.isInitActivated?this.selectedIndex:void 0!==e&&this.cells[e]?e:0,this.select(t,!1,!0),this.isInitActivated=!0,this.dispatchEvent("ready")}},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new s(t,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var t=new o(this);this.slides.push(t);var e="left"==this.originSide,i=e?"marginRight":"marginLeft",n=this._getCanCellFit();this.cells.forEach(function(e,s){if(!t.cells.length)return void t.addCell(e);var r=t.outerWidth-t.firstMargin+(e.size.outerWidth-e.size[i]);n.call(this,s,r)?t.addCell(e):(t.updateTarget(),t=new o(this),this.slides.push(t),t.addCell(e))},this),t.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,i){for(var n=[];t>0;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),h&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var s=t;if(e){var o=h.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},p.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=n.modulo(t,this.slides.length)),this.slides[t])){var s=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=s&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&e>1))return t;var i=n.modulo(t,e),s=Math.abs(i-this.selectedIndex),o=Math.abs(i+e-this.selectedIndex),r=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&o<s?t+=e:!this.isDragSelect&&r<s&&(t-=e),t<0?this.x-=this.slideableWidth:t>=e&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.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])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){if(-1!=this.slides[e].cells.indexOf(t))return e}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getCell(t);i&&e.push(i)},this),e},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=n.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(1+2*t>=i)return this.getCellElements();for(var s=[],o=e-t;o<=e+t;o++){var r=this.options.wrapAround?n.modulo(o,i):o,a=this.slides[r];a&&(s=s.concat(a.getCellElements()))}return s},p.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&(t=this.element.querySelector(t)),this.getCell(t))},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){this.emitEvent("childUIPointerDown",[t])},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(l,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=n.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)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=c(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=l.keyboardHandlers[t.keyCode];i&&i.call(this)}},l.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var e=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=e&&t.scrollTo(t.pageXOffset,e)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEac
8h(function(t){t.destroy()}),this.element.removeChild(this.viewport),a(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.emitEvent("destroy"),h&&this.$element&&h.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete f[this.guid]},n.extend(p,r),l.data=function(t){t=n.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]},n.htmlInit(l,"flickity"),h&&h.bridget&&h.bridget("flickity",l),l.setJQuery=function(t){h=t},l.Cell=s,l}),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(t,e){function i(){}function n(){}var s=n.prototype=Object.create(e.prototype);s.bindStartEvent=function(t){this._bindStartEvent(t,!0)},s.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},s._bindStartEvent=function(e,i){i=void 0===i||i;var n=i?"addEventListener":"removeEventListener",s="mousedown";t.PointerEvent?s="pointerdown":"ontouchstart"in t&&(s="touchstart"),e[n](s,this)},s.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},s.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},s.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},s.onpointerdown=function(t){this._pointerDown(t,t)},s._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},s.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return s._bindPostStartEvents=function(e){if(e){var i=o[e.type];i.forEach(function(e){t.addEventListener(e,this)},this),this._boundPointerEvents=i}},s._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){t.removeEventListener(e,this)},this),delete this._boundPointerEvents)},s.onmousemove=function(t){this._pointerMove(t,t)},s.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},s.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},s._pointerMove=function(t,e){this.pointerMove(t,e)},s.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},s.onmouseup=function(t){this._pointerUp(t,t)},s.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},s.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},s._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},s.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},s._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},s._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},s.pointerDone=i,s.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},s.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},s._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},s.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},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(t,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(e){e=void 0===e||e;for(var i=e?"addEventListener":"removeEventListener",n=e?this._touchActionValue:"",s=0;s<this.handles.length;s++){var o=this.handles[s];this._bindStartEvent(o,e),o[i]("click",this),t.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=s[t.target.nodeName],i=o[t.target.type],n=!e||i;
vendor: 1,086 bytes, line 8
8return n||this._pointerReset(),n},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},n.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventing
8Clicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},i.getPointerPoint=e.getPointerPoint,i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):t.Flickity=e(t,t.Flickity,t.Unidragger,t.fizzyUIUtils)}(window,function(t,e,i,n){function s(){return{x:t.pageXOffset,y:t.pageYOffset}}n.extend(e.defaults,{draggable:">1",dragThreshold:3}),e.createMethods.push("_createDrag");var o=e.prototype;n.extend(o,i.prototype),o._touchActionValue="pan-y";var r="createTouch"in document,a=!1;o._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("childUIPointerDown",this._childUIPointerDownDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),r&&!a&&(t.addEventListener("touchmove",function(){}),a=!0)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o._childUIPointerDownDrag=function(t){t.preventDefault(),this.pointerDownFocus(t)},o.pointerDown=function(e,i){if(!this.isDraggable)return void this._pointerDownDefault(e,i);this.okayPointerDown(e)&&(this._pointerDownPreventDefault(e),this.pointerDownFocus(e),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=s(),t.addEventListener("scroll",this),this._pointerDownDefault(e,i))},o._pointerDownDefault=function(t,e){this.pointerDownPointer=e,this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var l={INPUT:!0,TEXTAREA:!0,SELECT:!0};return o.pointerDownFocus=function(t){l[t.target.nodeName]||this.focus()},o._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=l[t.target.nodeName];e||i||n||t.preventDefault()},o.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},o.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},o.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(e,i){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",e,[i]))},o.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},o.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>o?.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<r?.5*(s+r):s}this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},o.dragEnd=function(t,e){if(this.isDraggable){ 9this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<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])}},o.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index}
9,o._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:s,index:n-i}},o.getSlideDistance=function(t,e){var i=this.slides.length,s=this.options.wrapAround&&i>1,o=s?n.modulo(e,i):e,r=this.slides[o];if(!r)return null;var a=s?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+a)},o.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},o.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},o.onscroll=function(){var t=s(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this._pointerDone()},e}),function(t,e){"function"==typeof define&&define.amd?define("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(t,e){function i(t){this.bindTap(t)}var n=i.prototype=Object.create(e.prototype);return n.bindTap=function(t){t&&(this.unbindTap(),this.tapElement=t,this._bindStartEvent(t,!0))},n.unbindTap=function(){this.tapElement&&(this._bindStartEvent(this.tapElement,!0),delete this.tapElement)},n.pointerUp=function(i,n){if(!this.isIgnoringMouseUp||"mouseup"!=i.type){var s=e.getPointerPoint(n),o=this.tapElement.getBoundingClientRect(),r=t.pageXOffset,a=t.pageYOffset;if(s.x>=o.left+r&&s.x<=o.right+r&&s.y>=o.top+a&&s.y<=o.bottom+a&&this.emitEvent("tap",[i,n]),"mouseup"!=i.type){this.isIgnoringMouseUp=!0;var l=this;setTimeout(function(){delete l.isIgnoringMouseUp},400)}}},n.destroy=function(){this.pointerDone(),this.unbindTap()},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";function s(t,e){this.direction=t,this.parent=e,this._create()}function o(t){return"string"==typeof t?t:"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}var r="http://www.w3.org/2000/svg";s.prototype=Object.create(i.prototype),s.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-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.on("tap",this.onTap),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.bindTap(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.element),i.prototype.destroy.call(this),this.element.removeEventListener("click",this)},s.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path"),i=o(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},s.prototype.onTap=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},s.prototype.handleEvent=n.handleEvent,s.prototype.onclick=function(t){var e=document.activeElement;e&&e==this.element&&this.onTap(t,t)},s.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},s.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},s.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1)return void this.enable();var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()},s.prototype.destroy=function(){this.deactivate()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var a=e.prototype;return a._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new s(-1,this),this.nextButton=new s(1,this),this.on("activate",this.activatePrevNextButtons))},a.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},a.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","tap-listener/tap-listener","fizzy-ui-utils/utils"],function(i,n,s){return e(t,i,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("tap-listener"),require("fizzy-ui-utils")):e(t,t.Flickity,t.TapListener,t.fizzyUIUtils)}
9(window,function(t,e,i,n){function s(t){this.parent=t,this._create()}s.prototype=new i,s.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))},s.prototype.activate=function(){this.setDots(),this.bindTap(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.parent.element.removeChild(this.holder),i.prototype.destroy.call(this)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.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)}},s.prototype.destroy=function(){this.deactivate()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(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()},e.PageDots=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):e(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if("playing"!=this.state){if(document.hidden)return void document.addEventListener("visibilitychange",this.onVisibilityPlay);this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}
9(window,function(t,e,i){function n(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}var s=e.prototype;return s.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var s=this.cells.length;e=void 0===e?s:e;var o=n(i),r=e==s;if(r)this.slider.appendChild(o);else{var a=this.cells[e].element;this.slider.insertBefore(o,a)}if(0===e)this.cells=i.concat(this.cells);else if(r)this.cells=this.cells.concat(i);else{var l=this.cells.splice(e,s-e);this.cells=this.cells.concat(i).concat(l)}this._sizeCells(i),this.cellChange(e,!0)}},s.append=function(t){this.insert(t,this.cells.length)},s.prepend=function(t){this.insert(t,0)},s.remove=function(t){var e=this.getCells(t);if(e&&e.length){var n=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);n=Math.min(e,n),i.removeFrom(this.cells,t)},this),this.cellChange(n,!0)}},s.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},s.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./flickity"),require("fizzy-ui-utils")):e(t,t.Flickity,t.fizzyUIUtils)}(window,function(t,e,i){"use strict";function n(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),n=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(e||n||s)return[t]}var o=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(o)}function s(t,e){this.img=t,this.flickity=e,this.load()}e.createMethods.push("_createLazyload");var o=e.prototype;return o._createLazyload=function(){this.on("select",this.lazyLoad)},o.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),o=[];i.forEach(function(t){var e=n(t);o=o.concat(e)}),o.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(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(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(t,e){function i(t,e,i){return(e-t)*i+t}t.createMethods.push("_createAsNavFor");var n=t.prototype;return n._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},n.setNavCompanion=function(i){i=e.getQueryElement(i);var n=t.data(i);if(n&&n!=this){this.navCompanion=n;var s=this;this.onNavCompanionSelect=function(){s.navCompanionSelect()},n.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},n.navCompanionSelect=function(t){if(this.navCompanion){var e=this.navCompanion.selectedCells[0],n=this.navCompanion.cells.indexOf(e),s=n+this.navCompanion.selectedCells.length-1,o=Math.floor(i(n,s,this.navCompanion.cellAlign));if(this.selectCell(o,!1,t),this.removeNavSelectedElements(),!(o>=this.cells.length)){var r=this.cells.slice(n,s+1);this.navSelectedElements=r.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},n.changeNavSelectedClass=function(t){this.navSelectedElements.forEac
9h(function(e){e.classList[t]("is-nav-selected")})},n.activateAsNavFor=function(){this.navCompanionSelect(!0)},n.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},n.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},n.deactivateAsNavFor=function(){this.removeNavSelectedElements()},n.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?h.call(t):[t]}
9function s(t,e,o){if(!(this instanceof s))return new s(t,e,o);var r=t;if("string"==typeof t&&(r=document.querySelectorAll(t)),!r)return void l.error("Bad element for imagesLoaded "+(r||t));this.elements=n(r),this.options=i({},this.options),"function"==typeof e?o=e:i(this.options,e),o&&this.on("always",o),this.getImages(),a&&(this.jqDeferred=new a.Deferred),setTimeout(this.check.bind(this))}function o(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,l=t.console,h=Array.prototype.slice;s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var c={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new o(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var i=new r(t,e);this.images.push(i)},s.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();this.images.forEach(function(e){e.once("progress",t),e.check()})},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){if(this.getIsImageComplete())return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},o.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(o.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(a=e,a.fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(a(this))})},s.makeJQueryPlugin(),s}),function(t,e){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("flickity"),require("imagesloaded")):t.Flickity=e(t,t.Flickity,t.imagesLoaded)}
9(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){function t(t,i){var n=e.getParentCell(i.img);e.cellSizeChange(n&&n.element),e.options.freeScroll||e.positionSliderAtSelected()}if(this.options.imagesLoaded){var e=this;i(this.slider).on("progress",t)}},e}); 10jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,e,t,u,a){return jQuery.easing[jQuery.easing.def](n,e,t,u,a)},easeInQuad:function(n,e,t,u,a){return u*(e/=a)*e+t},easeOutQuad:function(n,e,t,u,a){return-u*(e/=a)*(e-2)+t},easeInOutQuad:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e+t:-u/2*(--e*(e-2)-1)+t},easeInCubic:function(n,e,t,u,a){return u*(e/=a)*e*e+t},easeOutCubic:function(n,e,t,u,a){return u*((e=e/a-1)*e*e+1)+t},easeInOutCubic:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e+t:u/2*((e-=2)*e*e+2)+t},easeInQuart:function(n,e,t,u,a){return u*(e/=a)*e*e*e+t},easeOutQuart:function(n,e,t,u,a){return-u*((e=e/a-1)*e*e*e-1)+t},easeInOutQuart:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e+t:-u/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(n,e,t,u,a){return u*(e/=a)*e*e*e*e+t},easeOutQuint:function(n,e,t,u,a){return u*((e=e/a-1)*e*e*e*e+1)+t},easeInOutQuint:function(n,e,t,u,a){return(e/=a/2)<1?u/2*e*e*e*e*e+t:u/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(n,e,t,u,a){return-u*Math.cos(e/a*(Math.PI/2))+u+t},easeOutSine:function(n,e,t,u,a){return u*Math.sin(e/a*(Math.PI/2))+t},easeInOutSine:function(n,e,t,u,a){return-u/2*(Math.cos(Math.PI*e/a)-1)+t},easeInExpo:function(n,e,t,u,a){return 0==e?t:u*Math.pow(2,10*(e/a-1))+t},easeOutExpo:function(n,e,t,u,a){return e==a?t+u:u*(1-Math.pow(2,-10*e/a))+t},easeInOutExpo:function(n,e,t,u,a){return 0==e?t:e==a?t+u:(e/=a/2)<1?u/2*Math.pow(2,10*(e-1))+t:u/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(n,e,t,u,a){return-u*(Math.sqrt(1-(e/=a)*e)-1)+t},easeOutCirc:function(n,e,t,u,a){return u*Math.sqrt(1-(e=e/a-1)*e)+t},easeInOutCirc:function(n,e,t,u,a){return(e/=a/2)<1?-u/2*(Math.sqrt(1-e*e)-1)+t:u/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return-s*Math.pow(2,10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i)+t},easeOutElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(1==(e/=a))return t+u;if(i||(i=.3*a),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return s*Math.pow(2,-10*e)*Math.sin((e*a-r)*(2*Math.PI)/i)+u+t},easeInOutElastic:function(n,e,t,u,a){var r=1.70158,i=0,s=u;if(0==e)return t;if(2==(e/=a/2))return t+u;if(i||(i=a*(.3*1.5)),s<Math.abs(u)){s=u;var r=i/4}else var r=i/(2*Math.PI)*Math.asin(u/s);return e<1?s*Math.pow(2,10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i)*-.5+t:s*Math.pow(2,-10*(e-=1))*Math.sin((e*a-r)*(2*Math.PI)/i)*.5+u+t},easeInBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*(e/=a)*e*((r+1)*e-r)+t},easeOutBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),u*((e=e/a-1)*e*((r+1)*e+r)+1)+t},easeInOutBack:function(n,e,t,u,a,r){return void 0==r&&(r=1.70158),(e/=a/2)<1?u/2*(e*e*((1+(r*=1.525))*e-r))+t:u/2*((e-=2)*e*((1+(r*=1.525))*e+r)+2)+t},easeInBounce:function(n,e,t,u,a){return u-jQuery.easing.easeOutBounce(n,a-e,0,u,a)+t},easeOutBounce:function(n,e,t,u,a){return(e/=a)<1/2.75?u*(7.5625*e*e)+t:e<2/2.75?u*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?u*(7.5625*(e-=2.25/2.75)*e+.9375)+t:u*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(n,e,t,u,a){return e<a/2?.5*jQuery.easing.easeInBounce(n,2*e,0,u,a)+t:.5*jQuery.easing.easeOutBounce(n,2*e-a,0,u,a)+.5*u+t}}); 11!function(t,e){"use strict";var i={},s=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!s.TweenLite){var n,r,a,o,l,h=function(t){var e,i=t.split("."),n=s;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},_=h("com.greensock"),u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},f=function(){},c=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)}}(),m={},p=function(e,n,r,a){this.sc=m[e]?m[e].sc:[],m[e]=this,this.gsClass=null,this.func=r;var o=[];this.check=function(l){for(var _,u,f,c,d,v=n.length,g=v;--v>-1;)(_=m[n[v]]||new p(n[v],[])).gsClass?(o[v]=_.gsClass,g--):l&&_.sc.push(this);if(0===g&&r){if(u=("com.greensock."+e).split("."),f=u.pop(),c=h(u.join("."))[f]=this.gsClass=r.apply(r,o),a)if(s[f]=i[f]=c,!(d="undefined"!=typeof module&&module.exports)&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+e.split(".").pop(),[],function(){return c});else if(d)if("TweenLite"===e){module.exports=i.TweenLite=c;for(v in i)c[v]=i[v]}else i.TweenLite&&(i.TweenLite[f]=c);for(v=0;v<this.sc.length;v++)this.sc[v].check()}},this.check(!0)}
11,d=t._gsDefine=function(t,e,i,s){return new p(t,e,i,s)},v=_._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=s;var g=[0,0,1,1],T=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),y=T.map={},w=T.register=function(t,e,i,s){for(var n,r,a,o,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(r=l[h],n=s?v("easing."+r,null,!0):_.easing[r]||{},a=u.length;--a>-1;)o=u[a],y[r+"."+o]=y[o+r]=n[o]=t.getRatio?t:t[o]||new t};for(a=T.prototype,a._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:t<.5?s/2:1-s/2},n=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=n.length;--r>-1;)a=n[r]+",Power"+r,w(new T(null,null,1,r),a,"easeOut",!0),w(new T(null,null,2,r),a,"easeIn"+(0===r?",easeNone":"")),w(new T(null,null,3,r),a,"easeInOut");y.linear=_.easing.Linear.easeIn,y.swing=_.easing.Quad.easeInOut;var P=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});a=P.prototype,a.addEventListener=function(t,e,i,s,n){n=n||0;var r,a,h=this._listeners[t],_=0;for(this!==o||l||o.wake(),null==h&&(this._listeners[t]=h=[]),a=h.length;--a>-1;)r=h[a],r.c===e&&r.s===i?h.splice(a,1):0===_&&r.pr<n&&(_=a+1);h.splice(_,0,{c:e,s:i,up:s,pr:n})},a.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return void s.splice(i,1)},a.dispatchEvent=function(t){var e,i,s,n=this._listeners[t];if(n)for(e=n.length,e>1&&(n=n.slice(0)),i=this._eventTarget;--e>-1;)(s=n[e])&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var b=t.requestAnimationFrame,k=t.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},S=A();for(n=["ms","moz","webkit","o"],r=n.length;--r>-1&&!b;)b=t[n[r]+"RequestAnimationFrame"],k=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,n,r,a,h=this,_=A(),u=!(!1===e||!b)&&"auto",c=500,m=33,p=function(t){var e,o,l=A()-S;l>c&&(_+=l-m),S+=l,h.time=(S-_)/1e3,e=h.time-a,(!i||e>0||!0===t)&&(h.frame++,a+=e+(e>=r?.004:r-e),o=!0),!0!==t&&(n=s(p)),o&&h.dispatchEvent("tick")};P.call(h),h.time=h.frame=0,h.tick=function(){p(!0)},h.lagSmoothing=function(t,e){c=t||1e10,m=Math.min(e,c,0)},h.sleep=function(){null!=n&&(u&&k?k(n):clearTimeout(n),s=f,n=null,h===o&&(l=!1))},h.wake=function(t){null!==n?h.sleep():t?_+=-S+(S=A()):h.frame>10&&(S=A()-c+5),s=0===i?f:u&&b?b:function(t){return setTimeout(t,1e3*(a-h.time)+1|0)},h===o&&(l=!0),p(2)},h.fps=function(t){if(!arguments.length)return i;i=t,r=1/(i||60),a=this.time+r,h.wake()},h.useRAF=function(t){if(!arguments.length)return u;h.sleep(),u=t,h.fps(i)},h.fps(t),setTimeout(function(){"auto"===u&&h.frame<5&&"hidden"!==document.visibilityState&&h.useRAF(!1)},1500)}),a=_.Ticker.prototype=new _.events.EventDispatcher,a.constructor=_.Ticker;var x=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,K){l||o.wake();var i=this.vars.useFrames?$:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=x.ticker=new _.Ticker,a=x.prototype,a._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var R=function(){l&&A()-S>2e3&&o.wake(),setTimeout(R,2e3)};R(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)}
vendor: 4,455 bytes, line 11
11,a.render=function(t,e,i){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},a._enabled=function(t,e){return l||o.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},a._callback=function(t){var e=this.vars,i=e[t],s=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(s?s.length:0){case 0:i.call(n);break;case 1:i.call(n,s[0]);break;case 2:i.call(n,s[0],s[1]);break;default:i.apply(n,s)}},a.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=c(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,i){if(l||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,n=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?s-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||(O.length&&J(),this.render(t,e,!1),O.length&&J())}return this},a.progress=a.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},a.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},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||1e-10,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},a.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},a.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(l||t||o.wake(),e=s.rawTime(),i=e-this._pauseTime,!t&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=s.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var C=v("core.SimpleTimeline",function(t){x.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});a=C.prototype=new x,a.constructor=C,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,
vendor: 6,236 bytes, line 11
11i,s){var n,r;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(r=t._startTime;n&&n._startTime>r;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,i){var s,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)s=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=s},a.rawTime=function(){return l||o.wake(),this._totalTime};var D=v("TweenLite",function(e,i,s){if(x.call(this,i,s),this.render=D.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:D.selector(e)||e;var n,r,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?B[D.defaultOverwrite]:"number"==typeof l?l>>0:B[l],(o||e instanceof Array||e.push&&c(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],n=0;n<a.length;n++)r=a[n],r?"string"!=typeof r?r.length&&r!==t&&r[0]&&(r[0]===t||r[0].nodeType&&r[0].style&&!r.nodeType)?(a.splice(n--,1),this._targets=a=a.concat(u(r))):(this._siblings[n]=V(r,this,!1),1===l&&this._siblings[n].length>1&&X(r,this,null,1,this._siblings[n])):"string"==typeof(r=a[n--]=D.selector(r))&&a.splice(n+1,1):a.splice(n--,1);else this._propLookup={},this._siblings=V(e,this,!1),1===l&&this._siblings.length>1&&X(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))},!0),I=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},E=function(t,e){var i,s={};for(i in t)q[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!G[i]||G[i]&&G[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};a=D.prototype=new x,a.constructor=D,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,D.version="1.19.0",D.defaultEase=a._ease=new T(null,null,1,1),D.defaultOverwrite="auto",D.ticker=o,D.autoSleep=120,D.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},D.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(D.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var O=[],z={},F=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=function(t){for(var e,i=this._firstPT;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<1e-6&&e>-1e-6&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},N=function(t,e,i,s){var n,r,a,o,l,h,_,u=[t,e],f=0,c="",m=0;for(u.start=t,i&&(i(u),t=u[0],e=u[1]),u.length=0,n=t.match(F)||[],r=e.match(F)||[],s&&(s._next=null,s.blob=1,u._firstPT=u._applyPT=s),l=r.length,o=0;o<l;o++)_=r[o],h=e.substr(f,e.indexOf(_,f)-f),c+=h||!o?h:",",f+=h.length,m?m=(m+1)%5:"rgba("===h.substr(-5)&&(m=1),_===n[o]||n.length<=o?c+=_:(c&&(u.push(c),c=""),a=parseFloat(n[o]),u.push(a),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:a,c:("="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*parseFloat(_.substr(2)):parseFloat(_)-a)||0,f:0,m:m&&m<4?Math.round:0}),f+=_.length;return c+=e.substr(f),c&&u.push(c),u.setRatio=L,u},U=function(t,e,i,s,n,r,a,o,l){"function"==typeof s&&(s=s(l||0,t));var h,_,u="get"===i?t[e]:i,f=typeof t[e],c="string"==typeof s&&"="===s.charAt(1),m={t:t,p:e,s:u,f:"function"===f,pg:0,n:n||e,m:r?"function"==typeof r?r:Math.round:0,pr:0,c:c?parseInt(s.charAt(0)+"1",10)*parseFloat(s.substr(2)):parseFloat(s)-u||0};if("number"!==f&&("function"===f&&"get"===i&&(_=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),m.s=u=a?t[_](a):t[_]()),"string"==typeof u&&(a||isNaN(u))?(m.fp=a,h=N(u,s,o||D.defaultStringFilter,m),m={t:h,p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):c||(m.s=parseFloat(u),m.c=parseFloat(s)-m.s||0)),m.c)return(m._next=this._firstPT)&&(m._next._prev=m),this._firstPT=m,m},j=D._internals={isArray:c,isSelector:I,lazyTweens:O,blobDif:N},G=D._plugins={},M=j.tweenLookup={},Q=0,q=j.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},B={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},$=x._rootFramesTimeline=new C,K=x._rootTimeline=new C,H=30,J=j.lazyRender=function(){var t,e=O.length;for(z={};--e>-1;)(t=O[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);O.length=0};K._startTime=o.time,$._startTime=o.frame,K._active=$._active=!0,setTimeout(J,1),x._updateRoot=D.render=function(){var t,e,i;if(O.length&&J(),K.render((o.time-K._startTime)*K._timeScale,!1,!1),$.render((o.frame-$._startTime)*$._timeScale,!1,!1),O.length&&J(),o.frame>=H){H=o.frame+(parseInt(D.autoSleep,10)||120);for(i in M){for(e=M[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete M[i]}if((!(i=K._first)||i._paused)&&D.autoSleep&&!$._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",x._updateRoot);
11var V=function(t,e,i){var s,n,r=t._gsTweenID;if(M[r||(t._gsTweenID=r="t"+Q++)]||(M[r]={target:t,tweens:[]}),e&&(s=M[r].tweens,s[n=s.length]=e,i))for(;--n>-1;)s[n]===e&&s.splice(n,1);return M[r].tweens},W=function(t,e,i,s){var n,r,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,s)),a=D.onOverwrite,a&&(r=a(t,e,i,s)),!1!==n&&!1!==r},X=function(t,e,i,s,n){var r,a,o,l;if(1===s||s>=4){for(l=n.length,r=0;r<l;r++)if((o=n[r])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===s)break;return a}var h,_=e._startTime+1e-10,u=[],f=0,c=0===e._duration;for(r=n.length;--r>-1;)(o=n[r])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||Y(e,0,c),0===Y(o,h,c)&&(u[f++]=o)):o._startTime<=_&&o._startTime+o.totalDuration()/o._timeScale>_&&((c||!o._initted)&&_-o._startTime<=2e-10||(u[f++]=o)));for(r=f;--r>-1;)if(o=u[r],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!W(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},Y=function(t,e,i){for(var s=t._timeline,n=s._timeScale,r=t._startTime;s._timeline;){if(r+=s._startTime,n*=s._timeScale,s._paused)return-100;s=s._timeline}return r/=n,r>e?r-e:i&&r===e||!t._initted&&r-e<2e-10?1e-10:(r+=t.totalDuration()/t._timeScale/n)>e+1e-10?0:r-e-1e-10};a._init=function(){var t,e,i,s,n,r,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,_=a.ease;if(a.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={};for(s in a.startAt)n[s]=a.startAt[s];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==a.lazy,n.startAt=n.delay=null,this._startAt=D.to(this.target,0,n),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(h=!1),i={};for(s in a)q[s]&&"autoCSS"!==s||(i[s]=a[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=D.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=_=_?_ instanceof T?_:"function"==typeof _?new T(_,a.easeParams):y[_]||D.defaultEase:D.defaultEase,a.easeParams instanceof Array&&_.config&&(this._ease=_.config.apply(_,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(r=this._targets.length,t=0;t<r;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&D._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},a._initProps=function(e,i,s,n,r){var a,o,l,h,_,u;if(null==e)return!1;z[e._gsTweenID]&&J(),this.vars.css||e.style&&e!==t&&e.nodeType&&G.css&&!1!==this.vars.autoCSS&&E(this.vars,e);for(a in this.vars)if(u=this.vars[a],q[a])u&&(u instanceof Array||u.push&&c(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[a]=u=this._swapSelfInParams(u,this));else if(G[a]&&(h=new G[a])._onInitTween(e,this.vars[a],this,r)){for(this._firstPT=_={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;--o>-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),_._next&&(_._next._prev=_)}else i[a]=U.call(this,e,a,"get",u,a,0,null,this.vars.stringFilter,r);return n&&this._kill(n,e)?this._initProps(e,i,s,n,r):this._overwrite>1&&this._firstPT&&s.length>1&&X(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,n,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(z[e._gsTweenID]=!0),l)},a.render=function(t,e,i){var s,n,r,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(h<0||t<=0&&t>=-1e-7||1e-10===h&&"isPause"!==this.data)&&h!==t&&(i=!0,h>1e-10&&(n="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:1e-10);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(n="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(1e-10!==h||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:1e-10)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var _=t/l,u=this._easeType,f=this._easePower;(1===u||3===u&&_>=.5)&&(_=1-_),3===u&&(_*=2),1===f?_*=_:2===f?_*=_*_:3===f?_*=_*_*_:4===f&&(_*=_*_*_*_),this.ratio=1===u?1-_:2===u?_:t/l<.5?_/2:1-_/2}else this.ratio=this._ease.getRatio(t/l);
vendor: 6,820 bytes, lines 11-12
11if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,O.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&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!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==o||s||i)&&this._callback("onUpdate")),n&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&1e-10===this._rawPrevTime&&1e-10!==a&&(this._rawPrevTime=0)))}},a._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:D.selector(e)||e;var s,n,r,a,o,l,h,_,u,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((c(e)||I(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s],i)&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,_=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(D.onOverwrite||this.vars.onOverwrite)){for(r in h)o[r]&&(u||(u=[]),u.push(r));if((u||!t)&&!W(this,i,e,u))return!1}for(r in h)(a=o[r])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[r]),_&&(n[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},a.invalidate=function(){return this._notifyPluginsOfEnabled&&D._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],x.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},a._enabled=function(t,e){if(l||o.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=V(s[i],this,!0);else this._siblings=V(this.target,this,!0)}return x.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&D._onPluginEvent(t?"_onEnable":"_onDisable",this)},D.to=function(t,e,i){return new D(t,e,i)},D.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new D(t,e,i)},D.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new D(t,e,s)},D.delayedCall=function(t,e,i,s,n){return new D(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},D.set=function(t,e){return new D(t,0,e)},D.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:D.selector(t)||t;var i,s,n,r;if((c(t)||I(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(D.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(r=s[i],n=i;--n>-1;)r===s[n]&&s.splice(i,1)}else for(s=V(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},D.killTweensOf=D.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=D.getTweensOf(t,e),n=s.length;--n>-1;)s[n]._kill(i,t)};var Z=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Z.prototype},!0);if(a=Z.prototype,Z.version="1.19.0",Z.API=2,a._firstPT=null,a._addTween=U,a.setRatio=L,a._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},a._mod=a._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},D._onPluginEvent=function(t,e){var i,s,n,r,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=n;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:r)?o._prev._next=o:n=o,(o._next=s)?s._prev=o:r=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},Z.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===Z.API&&(G[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,n=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Z.call(this,i,s),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new Z(i);o.constructor=a,a.API=t.API;for(e in r)"function"==typeof t[e]&&(o[r[e]]=t[e]);return a.version=t.version,Z.activate([a]),a},n=t._gsQueue){for(r=0;r<n.length;r++)n[r]();for(a in m)m[a].func||t.console.log("GSAP encountered missing dependency: "+a)}l=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window); 12var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var n,e,i,o=_gsScope.GreenSockGlobals||_gsScope,s=o.com.greensock,r=2*Math.PI,u=Math.PI/2,p=s._class,c=function(n,e){var i=p("easing."+n,function(){},!0),o=i.prototype=new t;return o.constructor=i,o.getRatio=e,i},a=t.register||function(){},h=function(t,n,e,i,o){var s=p("easing."+t,{easeOut:new n,easeIn:new e,easeInOut:new i},!0);return a(s,t),s},f=function(t,n,e){this.t=t,this.v=n,e&&(this.next=e,e.prev=this,this.c=e.v-n,this.gap=e.t-t)}
12,_=function(n,e){var i=p("easing."+n,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),o=i.prototype=new t;return o.constructor=i,o.getRatio=e,o.config=function(t){return new i(t)},i},g=h("Back",_("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),_("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),_("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),l=p("easing.SlowMo",function(t,n,e){n=n||0===n?n:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?n:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===e},!0),w=l.prototype=new t;return w.constructor=l,w.getRatio=function(t){var n=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:n-(t=1-t/this._p1)*t*t*t*n:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:n+(t-n)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:n},l.ease=new l(.7,.7),w.config=l.config=function(t,n,e){return new l(t,n,e)},n=p("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),w=n.prototype=new t,w.constructor=n,w.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},w.config=n.config=function(t){return new n(t)},e=p("easing.RoughEase",function(n){n=n||{};for(var e,i,o,s,r,u,p=n.taper||"none",c=[],a=0,h=0|(n.points||20),_=h,g=!1!==n.randomize,l=!0===n.clamp,w=n.template instanceof t?n.template:null,M="number"==typeof n.strength?.4*n.strength:.4;--_>-1;)e=g?Math.random():1/h*_,i=w?w.getRatio(e):e,"none"===p?o=M:"out"===p?(s=1-e,o=s*s*M):"in"===p?o=e*e*M:e<.5?(s=2*e,o=s*s*.5*M):(s=2*(1-e),o=s*s*.5*M),g?i+=Math.random()*o-.5*o:_%2?i+=.5*o:i-=.5*o,l&&(i>1?i=1:i<0&&(i=0)),c[a++]={x:e,y:i};for(c.sort(function(t,n){return t.x-n.x}),u=new f(1,1,null),_=h;--_>-1;)r=c[_],u=new f(r.x,r.y,u);this._prev=new f(0,0,0!==u.t?u:u.next)},!0),w=e.prototype=new t,w.constructor=e,w.getRatio=function(t){var n=this._prev;if(t>n.t){for(;n.next&&t>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&t<=n.t;)n=n.prev;return this._prev=n,n.v+(t-n.t)/n.gap*n.c},w.config=function(t){return new e(t)},e.ease=new e,h("Bounce",c("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),c("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),c("BounceInOut",function(t){var n=t<.5;return t=n?1-2*t:2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,n?.5*(1-t):.5*t+.5})),h("Circ",c("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),c("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),c("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),i=function(n,e,i){var o=p("easing."+n,function(t,n){this._p1=t>=1?t:1,this._p2=(n||i)/(t<1?t:1),this._p3=this._p2/r*(Math.asin(1/this._p1)||0),this._p2=r/this._p2},!0),s=o.prototype=new t;return s.constructor=o,s.getRatio=e,s.config=function(t,n){return new o(t,n)},o},h("Elastic",i("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),i("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),i("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),h("Expo",c("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),c("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),c("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),h("Sine",c("SineOut",function(t){return Math.sin(t*u)}),c("SineIn",function(t){return 1-Math.cos(t*u)}),c("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),p("easing.EaseLookup",{find:function(n){return t.map[n]}},!0),a(o.SlowMo,"SlowMo","ease,"),a(e,"RoughEase","ease,"),a(n,"SteppedEase","ease,"),g},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";var t=function(){return _gsScope.GreenSockGlobals||_gsScope};"function"==typeof define&&define.amd?define(["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=t())}(); 13var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var r,i,s,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},f=a.prototype=new t("css");f.constructor=a,a.version="1.19.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,f="px",a.suffixMap={top:f,right:f,bottom:f,left:f,width:f,height:f,fontSize:f,padding:f,margin:f,perspective:f,lineHeight:""};var p,h,c,u,x,d,g,y,m=/(?:\-|\.|\b)(\d|\.|e\-)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\
vendor: 18,278 bytes, line 13
13-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,O=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,w=/opacity *= *([^)]*)/i,P=/opacity:([^;]*)/i,T=/alpha\(opacity *=.+?\)/i,M=/^(rgb|hsl)/,k=/([A-Z])/g,X=/-([a-z])/gi,S=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,R=function(t,e){return e.toUpperCase()},F=/(?:Left|Right|Width)/i,Y=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,C=/,(?=[^\)]*(?:\(|$))/gi,z=/[\s,\(]/i,N=Math.PI/180,B=180/Math.PI,j={},V=document,L=function(t){return V.createElementNS?V.createElementNS("http://www.w3.org/1999/xhtml",t):V.createElement(t)},I=L("div"),D=L("img"),W=a._internals={_specialProps:l},Z=navigator.userAgent,E=function(){var t=Z.indexOf("Android"),e=L("a");return c=-1!==Z.indexOf("Safari")&&-1===Z.indexOf("Chrome")&&(-1===t||Number(Z.substr(t+8,1))>3),x=c&&Number(Z.substr(Z.indexOf("Version/")+8,1))<6,u=-1!==Z.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Z)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(Z))&&(d=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),q=function(t){return w.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},$=function(t){window.console&&console.log(t)},H="",G="",U=function(t,e){e=e||I;var r,i,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===s[r[i]+t];);return i>=0?(G=3===i?"ms":r[i],H="-"+G.toLowerCase()+"-",G+t):null},Q=V.defaultView?V.defaultView.getComputedStyle:function(){},J=a.getStyle=function(t,e,r,i,s){var n;return E||"opacity"!==e?(!i&&t.style[e]?n=t.style[e]:(r=r||Q(t))?n=r[e]||r.getPropertyValue(e)||r.getPropertyValue(e.replace(k,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):q(t)},K=W.convertToPixels=function(t,r,i,s,n){if("px"===s||!s)return i;if("auto"===s||!i)return 0;var o,l,f,p=F.test(r),h=t,c=I.style,u=i<0,x=1===i;if(u&&(i=-i),x&&(i*=100),"%"===s&&-1!==r.indexOf("border"))o=i/100*(p?t.clientWidth:t.clientHeight);else{if(c.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==s&&h.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)c[p?"borderLeftWidth":"borderTopWidth"]=i+s;else{if(h=t.parentNode||V.body,l=h._gsCache,f=e.ticker.frame,l&&p&&l.time===f)return l.width*i/100;c[p?"width":"height"]=i+s}h.appendChild(I),o=parseFloat(I[p?"offsetWidth":"offsetHeight"]),h.removeChild(I),p&&"%"===s&&!1!==a.cacheWidths&&(l=h._gsCache=h._gsCache||{},l.time=f,l.width=o/i*100),0!==o||n||(o=K(t,r,i,s,!0))}return x&&(o/=100),u?-o:o},tt=W.calculateOffset=function(t,e,r){if("absolute"!==J(t,"position",r))return 0;var i="left"===e?"Left":"Top",s=J(t,"margin"+i,r);return t["offset"+i]-(K(t,e,parseFloat(s),s.replace(b,""))||0)},et=function(t,e){var r,i,s,n={};if(e=e||Q(t,null))if(r=e.length)for(;--r>-1;)s=e[r],-1!==s.indexOf("-transform")&&Xt!==s||(n[s.replace(X,R)]=e.getPropertyValue(s));else for(r in e)-1!==r.indexOf("Transform")&&kt!==r||(n[r]=e[r]);else if(e=t.currentStyle||t.style)for(r in e)"string"==typeof r&&void 0===n[r]&&(n[r.replace(X,R)]=e[r]);return E||(n.opacity=q(t)),i=It(t,e,!1),n.rotation=i.rotation,n.skewX=i.skewX,n.scaleX=i.scaleX,n.scaleY=i.scaleY,n.x=i.x,n.y=i.y,Rt&&(n.z=i.z,n.rotationX=i.rotationX,n.rotationY=i.rotationY,n.scaleZ=i.scaleZ),n.filters&&delete n.filters,n},rt=function(t,e,r,i,s){var n,a,o,l={},f=t.style;for(a in r)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=r[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"!=typeof n&&"string"!=typeof n||(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(O,"")?n:0:tt(t,a),void 0!==f[a]&&(o=new yt(f,a,f[a],o))));if(i)for(a in i)"className"!==a&&(l[a]=i[a]);return{difs:l,firstMPT:o}},it={width:["Left","Right"],height:["Top","Bottom"]},st=["marginLeft","marginRight","marginTop","marginBottom"],nt=function(t,e,r){if("svg"===(t.nodeName+"").toLowerCase())return(r||Q(t))[e]||0;if(t.getBBox&&jt(t))return t.getBBox()[e]||0;var i=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=it[e],n=s.length;for(r=r||Q(t,null);--n>-1;)i-=parseFloat(J(t,"padding"+s[n],r,!0))||0,i-=parseFloat(J(t,"border"+s[n]+"Width",r,!0))||0;return i},at=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var r,i=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],n=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];if(i.length>3&&!e){for(i=t.split(", ").join(",").split(","),t=[],r=0;r<i.length;r++)t.push(at(i[r]));return t.join(",")}return null==n?n="center"===s?"50%":"0":"center"===n&&(n="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),t=s+" "+n+(i.length>2?" "+i[2]:""),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==n.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===n.charAt(1),e.ox=parseFloat(s.replace(O,"")),e.oy=parseFloat(n.replace(O,"")),e.v=t),e||t},ot=function(t,e){return"function"==typeof t&&(t=t(y,g)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return"function"==typeof t&&(t=t(y,g)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ft=function(t,e,r,i){var s,n,a,o,l;return"function"==typeof t&&(t=t(y,g)),null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:B)-(l?0:e),n.length&&(i&&(i[r]=e+a),-1!==t.indexOf("short")&&(a%=s)!==a%(s/2)&&(a=a<0?a+s:a-s),-1!==t.indexOf("_cw")&&a<0?a=(a+9999999999*s)%s-(a/s|0)*s:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*s)%s-(a/s|0)*s)),o=e+a),o<1e-6&&o>-1e-6&&(o=0),o},pt={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]},ht=function(t,e,r){return t=t<0?t+1:t>1?t-1:t,255*(6*t<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)+.5|0},ct=a.parseColor=function(t,e){var r,i,s,n,a,o,l,f,p,h,c;if(t)if("number"==typeof t)r=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),pt[t])r=pt[t];else if("#"===t.charAt(0))4===t.length&&(i=t.charAt(1),s=t.charAt(2),n=t.charAt(3),t="#"+i+i+s+s+n+n),t=parseInt(t.substr(1),16),r=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(r=c=t.match(m),e){if(-1!==t.indexOf("="))return t.match(v)}else a=Number(r[0])%360/360,o=Number(r[1])/100,l=Number(r[2])/100,s=l<=.5?l*(o+1):l+o-l*o,i=2*l-s,r.length>3&&(r[3]=Number(t[3])),r[0]=ht(a+1/3,i,s),r[1]=ht(a,i,s),r[2]=ht(a-1/3,i,s);else r=t.match(m)||pt.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),r.length>3&&(r[3]=Number(r[3]))}else r=pt.black;return e&&!c&&(i=r[0]/255,s=r[1]/255,n=r[2]/255,f=Math.max(i,s,n),p=Math.min(i,s,n),l=(f+p)/2,f===p?a=o=0:(h=f-p,o=l>.5?h/(2-f-p):h/(f+p),a=f===i?(s-n)/h+(s<n?6:0):f===s?(n-i)/h+2:(i-s)/h+4,a*=60),r[0]=a+.5|0,r[1]=100*o+.5|0,r[2]=100*l+.5|0),r},ut=function(t,e){var r,i,s,n=t.match(xt)||[],a=0,o=n.length?"":t;for(r=0;r<n.length;r++)i=n[r],s=t.substr(a,t.indexOf(i,a)-a),a+=s.length+i.length,i=ct(i,e),3===i.length&&i.push(1),o+=s+(e?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return o+t.substr(a)},xt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(f in pt)xt+="|"+f+"\\b";xt=new RegExp(xt+")","gi"),a.colorStringFilter=function(t){var e,r=t[0]+t[1];xt.test(r)&&(e=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),t[0]=ut(t[0],e),t[1]=ut(t[1],e)),xt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=a.colorStringFilter);var dt=function(t,e,r,i){if(null==t)return function(t){return t};var s,n=e?(t.match(xt)||[""])[0]:"",a=t.split(n).join("").match(_)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",f=-1!==t.indexOf(" ")?" ":",",p=a.length,h=p>0?a[0].replace(m,""):"";return p?s=e?function(t){var e,c,u,x;if("number"==typeof t)t+=h;else if(i&&C.test(t)){for(x=t.replace(C,"|").split("|"),u=0;u<x.length;u++)x[u]=s(x[u]);return x.join(",")}if(e=(t.match(xt)||[n])[0],c=t.split(e).join("").match(_)||[],u=c.length,p>u--)for(;++u<p;)c[u]=r?c[(u-1)/2|0]:a[u];return o+c.join(f)+f+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,c;if("number"==typeof t)t+=h;else if(i&&C.test(t)){for(n=t.replace(C,"|").split("|"),c=0;c<n.length;c++)n[c]=s(n[c]);return n.join(",")}if(e=t.match(_)||[],c=e.length,p>c--)for(;++c<p;)e[c]=r?e[(c-1)/2|0]:a[c];return o+e.join(f)+l}:function(t){return t}},gt=function(t){return t=t.split(","),function(e,r,i,s,n,a,o){var l,f=(r+"").split(" ");for(o={},l=0;l<4;l++)o[t[l]]=f[l]=f[l]||f[(l-1)/2>>0];return s.parse(e,o,n,a)}},yt=(W._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,r,i,s,n,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=Math.round(e):e<1e-6&&e>-1e-6&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,n=1===t?"e":"b";l;){if(r=l.t,r.type){if(1===r.type){for(s=r.xs0+r.s+r.xs1,i=1;i<r.l;i++)s+=r["xn"+i]+r["xs"+(i+1)];r[n]=s}}else r[n]=r.s+r.xs0;l=l._next}},function(t,e,r,i,s){this.t=t,this.p=e,this.v=r,this.r=s,i&&(i._prev=this,this._next=i)}),mt=(W._parseToProxy=function(t,e,r,i,s,n){var a,o,l,f,p,h=i,c={},u={},x=r._transform,d=j;for(r._transform=null,j=e,i=p=r.parse(t,e,i,s),j=d,n&&(r._transform=x,h&&(h._prev=null,h._prev&&(h._prev._next=null)));i&&i!==h;){if(i.type<=1&&(o=i.p,u[o]=i.s+i.c,c[o]=i.s,n||(f=new yt(i,"s",o,f,i.r),i.c=0),1===i.type))for(a=i.l;--a>0;)l="xn"+a,o=i.p+"_"+l,u[o]=i.data[l],c[o]=i[l],n||(f=new yt(i,l,o,f,i.rxp[l]));i=i._next}return{proxy:c,end:u,firstMPT:f,pt:p}},W.CSSPropTween=function(t,e,i,s,a,o,l,f,p,h,c){this.t=t,this.p=e,this.s=i,this.c=s,this.n=l||e,t instanceof mt||n.push(this.n),this.r=f,this.type=o||0,p&&(this.pr=p,r=!0),this.b=void 0===h?i:h,this.e=void 0===c?i+s:c,a&&(this._next=a,a._prev=this)}),vt=function(t,e,r,i,s,n){var a=new mt(t,e,r,i-r,s,-1,n);return a.b=r,a.e=a.xs0=i,a},_t=a.parseComplex=function(t,e,r,i,s,n,o,l,f,h){r=r||n||"","function"==typeof i&&(i=i(y,g)),o=new mt(t,e,0,0,o,h?2:1,null,!1,l,r,i),i+="",s&&xt.test(i+r)&&(i=[r,i],a.colorStringFilter(i),r=i[0],i=i[1]);var c,u,x,d,_,O,b,w,P,T,M,k,X,S=r.split(", ").join(",").split(" "),R=i.split(", ").join(",").split(" "),F=S.length,Y=!1!==p;for(-1===i.indexOf(",")&&-1===r.indexOf(",")||(S=S.join(" ").replace(C,", ").split(" "),R=R.join(" ").replace(C,", ").split(" "),F=S.length),F!==R.length&&(S=(n||"").split(" "),F=S.length),o.plugin=f,o.setRatio=h,xt.lastIndex=0,c=0;c<F;c++)if(d=S[c],_=R[c],(w=parseFloat(d))||0===w)o.appendXtra("",w,ot(_,w),_.replace(v,""),Y&&-1!==_.indexOf("px"),!0);else if(s&&xt.test(d))k=_.indexOf(")")+1,k=")"+(k?_.substr(k):""),X=-1!==_.indexOf("hsl")&&E,d=ct(d,X),_=ct(_,X),P=d.length+_.length>6,P&&!E&&0===_[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(R[c]).join("transparent")):(E||(P=!1),X?o.appendXtra(P?"hsla(":"hsl(",d[0],ot(_[0],d[0]),",",!1,!0).appendXtra("",d[1],ot(_[1],d[1]),"%,",!1).appendXtra("",d[2],ot(_[2],d[2]),P?"%,":"%"+k,!1):o.appendXtra(P?"rgba(":"rgb(",d[0],_[0]-d[0],",",!0,!0).appendXtra("",d[1],_[1]-d[1],",",!0).appendXtra("",d[2],_[2]-d[2],P?",":k,!0),P&&(d=d.length<4?1:d[3],o.appendXtra("",d,(_.length<4?1:_[3])-d,k,!1))),xt.lastIndex=0;else if(O=d.match(m)){if(!(b=_.match(v))||b.length!==O.length)return o;for(x=0,u=0;u<O.length;u++)M=O[u],T=d.indexOf(M,x),o.appendXtra(d.substr(x,T-x),Number(M),ot(b[u],M),"",Y&&"px"===d.substr(T+M.length,2),0===u),x=T+M.length;o["xs"+o.l]+=d.substr(x)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+_:_;if(-1!==i.indexOf("=")&&o.data){for(k=o.xs0+o.data.s,c=1;c<o.l;c++)k+=o["xs"+c]+o.data["xn"+c];o.e=k+o["xs"+c]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},Ot=9;for(f=mt.prototype,f.l=f.pr=0;--Ot>0;)f["xn"+Ot]=0,f["xs"+Ot]="";f.xs0="",f._next=f._prev=f.xfirst=f.data=f.plugin=f.setRatio=f.rxp=null,f.appendXtra=function(t,e,r,i,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&(o||a["xs"+o])?" "+t:t||"",r||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=i||"",o>0?(a.data["xn"+o]=e+r,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new mt(a,"xn"+o,e,r,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+r},a.rxp={},a.s=e,a.c=r,a.r=s,a)):(a["xs"+o]+=e+(i||""),a)};var bt=function(t,e){e=e||{},this.p=e.prefix?U(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||dt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},wt=W._registerComplexSpecialProp=function(t,e,r){"object"!=typeof e&&(e={parser:r});var i,s=t.split(","),n=e.defaultValue;for(r=r||[n],i=0;i<s.length;i++)e.prefix=0===i&&e.prefix,e.defaultValue=r[i]||n,new bt(s[i],e)},Pt=W._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";wt(t,{parser:function(t,r,i,s,n,a,f){var p=o.com.greensock.plugins[e];return p?(p._cssRegister(),l[i].parse(t,r,i,s,n,a,f)):($("Error: "+e+" js file not loaded."),n)}})}};f=bt.prototype,f.parseComplex=function(t,e,r,i,s,n){var a,o,l,f,p,h,c=this.keyword;if(this.multi&&(C.test(r)||C.test(e)?(o=e.replace(C,"|").split("|"),l=r.replace(C,"|").split("|")):c&&(o=[e],l=[r])),l){for(f=l.length>o.length?l.length:o.length,a=0;a<f;a++)e=o[a]=o[a]||this.dflt,r=l[a]=l[a]||this.dflt,c&&(p=e.indexOf(c),h=r.indexOf(c),p!==h&&(-1===h?o[a]=o[a].split(c).join(""):-1===p&&(o[a]+=" "+c)));e=o.join(", "),r=l.join(", ")}return _t(t,this.p,e,r,this.clrs,this.dflt,i,this.pr,s,n)},f.parse=function(t,e,r,i,n,a,o){return this.parseComplex(t.style,this.format(J(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerSpecialProp=function(t,e,r){wt(t,{parser:function(t,i,s,n,a,o,l){var f=new mt(t,s,0,0,a,2,s,!1,r);return f.plugin=o,f.setRatio=e(t,i,n._tween,s),f},priority:r})},a.useSVGTransformAttr=c||u;var Tt,Mt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),kt=U("transform"),Xt=H+"transform",St=U("transformOrigin"),Rt=null!==U("perspective"),Ft=W.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(!1===a.defaultForce3D||!Rt)&&(a.defaultForce3D||"auto")},Yt=window.SVGElement,At=function(t,e,r){var i,s=V.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(i in r)s.setAttributeNS(null,i.replace(n,"$1-$2").toLowerCase(),r[i]);return e.appendChild(s),s},Ct=V.documentElement,zt=function(){var t,e,r,i=d||/Android/i.test(Z)&&!window.chrome;return V.createElementNS&&!i&&(t=At("svg",Ct),e=At("rect",t,{width:100,height:50,x:100}),r=e.getBoundingClientRect().width,e.style[St]="50% 50%",e.style[kt]="scaleX(0.5)",i=r===e.getBoundingClientRect().width&&!(u&&Rt),Ct.removeChild(t)),i}(),Nt=function(t,e,r,i,s,n){var o,l,f,p,h,c,u,x,d,g,y,m,v,_,O=t._gsTransform,b=Lt(t,!0);O&&(v=O.xOrigin,_=O.yOrigin),(!i||(o=i.split(" ")).length<2)&&(u=t.getBBox(),e=at(e).split(" "),o=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*u.width:parseFloat(e[0]))+u.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*u.height:parseFloat(e[1]))+u.y]),r.xOrigin=p=parseFloat(o[0]),r.yOrigin=h=parseFloat(o[1]),i&&b!==Vt&&(c=b[0],u=b[1],x=b[2],d=b[3],g=b[4],y=b[5],m=c*d-u*x,l=p*(d/m)+h*(-x/m)+(x*y-d*g)/m,f=p*(-u/m)+h*(c/m)-(c*y-u*g)/m,p=r.xOrigin=o[0]=l,h=r.yOrigin=o[1]=f),O&&(n&&(r.xOffset=O.xOffset,r.yOffset=O.yOffset,O=r),s||!1!==s&&!1!==a.defaultSmoothOrigin?(l=p-v,f=h-_,O.xOffset+=l*b[0]+f*b[2]-l,O.yOffset+=l*b[1]+f*b[3]-f):O.xOffset=O.yOffset=0),n||t.setAttribute("data-svg-origin",o.join(" "))},Bt=function(t){try{return t.getBBox()}catch(t){}},jt=function(t){return!!(Yt&&t.getBBox&&t.getCTM&&Bt(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Vt=[1,0,0,1,0,0],Lt=function(t,e){var r,i,s,n,a,o,l=t._gsTransform||new Ft,f=t.style;if(kt?i=J(t,Xt,null,!0):t.currentStyle&&(i=t.currentStyle.filter.match(Y),i=i&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),l.x||0,l.y||0].join(","):""),r=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,r&&kt&&((o="none"===Q(t).display)||!t.parentNode)&&(o&&(n=f.display,f.display="block"),t.parentNode||(a=1,Ct.appendChild(t)),i=J(t,Xt,null,!0),r=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,n?f.display=n:o&&Et(f,"display"),a&&Ct.removeChild(t)),(l.svg||t.getBBox&&jt(t))&&(r&&-1!==(f[kt]+"").indexOf("matrix")&&(i=f[kt],r=0),s=t.getAttribute("transform"),r&&s&&(-1!==s.indexOf("matrix")?(i=s,r=0):-1!==s.indexOf("translate")&&(i="matrix(1,0,0,1,"+s.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",r=0))),r)return Vt;for(s=(i||"").match(m)||[],Ot=s.length;--Ot>-1;)n=Number(s[Ot]),s[Ot]=(a=n-(n|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+n:n;return e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},It=W.getTransform=function(t,r,i,s){if(t._gsTransform&&i&&!s)return t._gsTransform;var n,o,l,f,p,h,c=i?t._gsTransform||new Ft:new Ft,u=c.scaleX<0,x=Rt?parseFloat(J(t,St,r,!1,"0 0 0").split(" ")[2])||c.zOrigin||0:0,d=parseFloat(a.defaultTransformPerspective)||0;if(c.svg=!(!t.getBBox||!jt(t)),c.svg&&(Nt(t,J(t,St,r,!1,"50% 50%")+"",c,t.getAttribute("data-svg-origin")),Tt=a.useSVGTransformAttr||zt),(n=Lt(t))!==Vt){if(16===n.length){var g,y,m,v,_,O=n[0],b=n[1],w=n[2],P=n[3],T=n[4],M=n[5],k=n[6],X=n[7],S=n[8],R=n[9],F=n[10],Y=n[12],A=n[13],C=n[14],z=n[11],N=Math.atan2(k,F);c.zOrigin&&(C=-c.zOrigin,Y=S*C-n[12],A=R*C-n[13],C=F*C+c.zOrigin-n[14]),c.rotationX=N*B,N&&(v=Math.cos(-N),_=Math.sin(-N),g=T*v+S*_,y=M*v+R*_,m=k*v+F*_,S=T*-_+S*v,R=M*-_+R*v,F=k*-_+F*v,z=X*-_+z*v,T=g,M=y,k=m),N=Math.atan2(-w,F),c.rotationY=N*B,N&&(v=Math.cos(-N),_=Math.sin(-N),g=O*v-S*_,y=b*v-R*_,m=w*v-F*_,R=b*_+R*v,F=w*_+F*v,z=P*_+z*v,O=g,b=y,w=m),N=Math.atan2(b,O),c.rotation=N*B,N&&(v=Math.cos(-N),_=Math.sin(-N),O=O*v+T*_,y=b*v+M*_,M=b*-_+M*v,k=w*-_+k*v,b=y),c.rotationX&&Math.abs(c.rotationX)+Math.abs(c.rotation)>
13359.9&&(c.rotationX=c.rotation=0,c.rotationY=180-c.rotationY),c.scaleX=(1e5*Math.sqrt(O*O+b*b)+.5|0)/1e5,c.scaleY=(1e5*Math.sqrt(M*M+R*R)+.5|0)/1e5,c.scaleZ=(1e5*Math.sqrt(k*k+F*F)+.5|0)/1e5,c.rotationX||c.rotationY?c.skewX=0:(c.skewX=T||M?Math.atan2(T,M)*B+c.rotation:c.skewX||0,Math.abs(c.skewX)>90&&Math.abs(c.skewX)<270&&(u?(c.scaleX*=-1,c.skewX+=c.rotation<=0?180:-180,c.rotation+=c.rotation<=0?180:-180):(c.scaleY*=-1,c.skewX+=c.skewX<=0?180:-180))),c.perspective=z?1/(z<0?-z:z):0,c.x=Y,c.y=A,c.z=C,c.svg&&(c.x-=c.xOrigin-(c.xOrigin*O-c.yOrigin*T),c.y-=c.yOrigin-(c.yOrigin*b-c.xOrigin*M))}else if(!Rt||s||!n.length||c.x!==n[4]||c.y!==n[5]||!c.rotationX&&!c.rotationY){var j=n.length>=6,V=j?n[0]:1,L=n[1]||0,I=n[2]||0,D=j?n[3]:1;c.x=n[4]||0,c.y=n[5]||0,l=Math.sqrt(V*V+L*L),f=Math.sqrt(D*D+I*I),p=V||L?Math.atan2(L,V)*B:c.rotation||0,h=I||D?Math.atan2(I,D)*B+p:c.skewX||0,Math.abs(h)>90&&Math.abs(h)<270&&(u?(l*=-1,h+=p<=0?180:-180,p+=p<=0?180:-180):(f*=-1,h+=h<=0?180:-180)),c.scaleX=l,c.scaleY=f,c.rotation=p,c.skewX=h,Rt&&(c.rotationX=c.rotationY=c.z=0,c.perspective=d,c.scaleZ=1),c.svg&&(c.x-=c.xOrigin-(c.xOrigin*V+c.yOrigin*I),c.y-=c.yOrigin-(c.xOrigin*L+c.yOrigin*D))}c.zOrigin=x;for(o in c)c[o]<2e-5&&c[o]>-2e-5&&(c[o]=0)}return i&&(t._gsTransform=c,c.svg&&(Tt&&t.style[kt]?e.delayedCall(.001,function(){Et(t.style,kt)}):!Tt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),c},Dt=function(t){var e,r,i=this.data,s=-i.rotation*N,n=s+i.skewX*N,a=(Math.cos(s)*i.scaleX*1e5|0)/1e5,o=(Math.sin(s)*i.scaleX*1e5|0)/1e5,l=(Math.sin(n)*-i.scaleY*1e5|0)/1e5,f=(Math.cos(n)*i.scaleY*1e5|0)/1e5,p=this.t.style,h=this.t.currentStyle;if(h){r=o,o=-l,l=-r,e=h.filter,p.filter="";var c,u,x=this.t.offsetWidth,g=this.t.offsetHeight,y="absolute"!==h.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+o+", M21="+l+", M22="+f,v=i.x+x*i.xPercent/100,_=i.y+g*i.yPercent/100;if(null!=i.ox&&(c=(i.oxp?x*i.ox*.01:i.ox)-x/2,u=(i.oyp?g*i.oy*.01:i.oy)-g/2,v+=c-(c*a+u*o),_+=u-(c*l+u*f)),y?(c=x/2,u=g/2,m+=", Dx="+(c-(c*a+u*o)+v)+", Dy="+(u-(c*l+u*f)+_)+")"):m+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?p.filter=e.replace(A,m):p.filter=m+" "+e,0!==t&&1!==t||1===a&&0===o&&0===l&&1===f&&(y&&-1===m.indexOf("Dx=0, Dy=0")||w.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&p.removeAttribute("filter")),!y){var O,P,T,M=d<8?1:-1;for(c=i.ieOffsetX||0,u=i.ieOffsetY||0,i.ieOffsetX=Math.round((x-((a<0?-a:a)*x+(o<0?-o:o)*g))/2+v),i.ieOffsetY=Math.round((g-((f<0?-f:f)*g+(l<0?-l:l)*x))/2+_),Ot=0;Ot<4;Ot++)P=st[Ot],O=h[P],r=-1!==O.indexOf("px")?parseFloat(O):K(this.t,P,parseFloat(O),O.replace(b,""))||0,T=r!==i[P]?Ot<2?-i.ieOffsetX:-i.ieOffsetY:Ot<2?c-i.ieOffsetX:u-i.ieOffsetY,p[P]=(i[P]=Math.round(r-T*(0===Ot||2===Ot?1:M)))+"px"}}},Wt=W.set3DTransformRatio=W.setTransformRatio=function(t){var e,r,i,s,n,a,o,l,f,p,h,c,x,d,g,y,m,v,_,O,b,w,P,T=this.data,M=this.t.style,k=T.rotation,X=T.rotationX,S=T.rotationY,R=T.scaleX,F=T.scaleY,Y=T.scaleZ,A=T.x,C=T.y,z=T.z,B=T.svg,j=T.perspective,V=T.force3D;if(((1===t||0===t)&&"auto"===V&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!V)&&!z&&!j&&!S&&!X&&1===Y||Tt&&B||!Rt)return void(k||T.skewX||B?(k*=N,w=T.skewX*N,P=1e5,e=Math.cos(k)*R,s=Math.sin(k)*R,r=Math.sin(k-w)*-F,n=Math.cos(k-w)*F,w&&"simple"===T.skewType&&(m=Math.tan(w-T.skewY*N),m=Math.sqrt(1+m*m),r*=m,n*=m,T.skewY&&(m=Math.tan(T.skewY*N),m=Math.sqrt(1+m*m),e*=m,s*=m)),B&&(A+=T.xOrigin-(T.xOrigin*e+T.yOrigin*r)+T.xOffset,C+=T.yOrigin-(T.xOrigin*s+T.yOrigin*n)+T.yOffset,Tt&&(T.xPercent||T.yPercent)&&(d=this.t.getBBox(),A+=.01*T.xPercent*d.width,C+=.01*T.yPercent*d.height),d=1e-6,A<d&&A>-d&&(A=0),C<d&&C>-d&&(C=0)),_=(e*P|0)/P+","+(s*P|0)/P+","+(r*P|0)/P+","+(n*P|0)/P+","+A+","+C+")",B&&Tt?this.t.setAttribute("transform","matrix("+_):M[kt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+_):M[kt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix(":"matrix(")+R+",0,0,"+F+","+A+","+C+")");if(u&&(d=1e-4,R<d&&R>-d&&(R=Y=2e-5),F<d&&F>-d&&(F=Y=2e-5),!j||T.z||T.rotationX||T.rotationY||(j=0)),k||T.skewX)k*=N,g=e=Math.cos(k),y=s=Math.sin(k),T.skewX&&(k-=T.skewX*N,g=Math.cos(k),y=Math.sin(k),"simple"===T.skewType&&(m=Math.tan((T.skewX-T.skewY)*N),m=Math.sqrt(1+m*m),g*=m,y*=m,T.skewY&&(m=Math.tan(T.skewY*N),m=Math.sqrt(1+m*m),e*=m,s*=m))),r=-y,n=g;else{if(!(S||X||1!==Y||j||B))return void(M[kt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) translate3d(":"translate3d(")+A+"px,"+C+"px,"+z+"px)"+(1!==R||1!==F?" scale("+R+","+F+")":""));e=n=1,r=s=0}f=1,i=a=o=l=p=h=0,c=j?-1/j:0,x=T.zOrigin,d=1e-6,O=",",b="0",k=S*N,k&&(g=Math.cos(k),y=Math.sin(k),o=-y,p=c*-y,i=e*y,a=s*y,f=g,c*=g,e*=g,s*=g),k=X*N,k&&(g=Math.cos(k),y=Math.sin(k),m=r*g+i*y,v=n*g+a*y,l=f*y,h=c*y,i=r*-y+i*g,a=n*-y+a*g,f*=g,c*=g,r=m,n=v),1!==Y&&(i*=Y,a*=Y,f*=Y,c*=Y),1!==F&&(r*=F,n*=F,l*=F,h*=F),1!==R&&(e*=R,s*=R,o*=R,p*=R),(x||B)&&(x&&(A+=i*-x,C+=a*-x,z+=f*-x+x),B&&(A+=T.xOrigin-(T.xOrigin*e+T.yOrigin*r)+T.xOffset,C+=T.yOrigin-(T.xOrigin*s+T.yOrigin*n)+T.yOffset),A<d&&A>-d&&(A=b),C<d&&C>-d&&(C=b),z<d&&z>-d&&(z=0)),_=T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix3d(":"matrix3d(",_+=(e<d&&e>-d?b:e)+O+(s<d&&s>-d?b:s)+O+(o<d&&o>-d?b:o),_+=O+(p<d&&p>-d?b:p)+O+(r<d&&r>-d?b:r)+O+(n<d&&n>-d?b:n),X||S||1!==Y?(_+=O+(l<d&&l>-d?b:l)+O+(h<d&&h>-d?b:h)+O+(i<d&&i>-d?b:i),_+=O+(a<d&&a>-d?b:a)+O+(f<d&&f>-d?b:f)+O+(c<d&&c>-d?b:c)+O):_+=",0,0,0,0,1,0,",_+=A+O+C+O+z+O+(j?1+-z/j:1)+")",M[kt]=_};f=Ft.prototype,f.x=f.y=f.z=f.skewX=f.skewY=f.rotation=f.rotationX=f.rotationY=f.zOrigin=f.xPercent=f.yPercent=f.xOffset=f.yOffset=0,f.scaleX=f.scaleY=f.scaleZ=1,wt("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(t,e,r,i,n,o,l){if(i._lastParsedTransform===l)return n;i._lastParsedTransform=l;var f;"function"==typeof l[r]&&(f=l[r],l[r]=e);var p,h,c,u,x,d,m,v,_,O=t._gsTransform,b=t.style,w=Mt.length,P=l,T={},M=It(t,s,!0,P.parseTransform),k=P.transform&&("function"==typeof P.transform?P.transform(y,g):P.transform);if(i._transform=M,k&&"string"==typeof k&&kt)h=I.style,h[kt]=k,h.display="block",h.position="absolute",V.body.appendChild(I),p=It(I,null,!1),M.svg&&(d=M.xOrigin,m=M.yOrigin,p.x-=M.xOffset,p.y-=M.yOffset,(P.transformOrigin||P.svgOrigin)&&(k={},Nt(t,at(P.transformOrigin),k,P.svgOrigin,P.smoothOrigin,!0),d=k.xOrigin,m=k.yOrigin,p.x-=k.xOffset-M.xOffset,p.y-=k.yOffset-M.yOffset),(d||m)&&(v=Lt(I,!0),p.x-=d-(d*v[0]+m*v[2]),p.y-=m-(d*v[1]+m*v[3]))),V.body.removeChild(I),p.perspective||(p.perspective=M.perspective),null!=P.xPercent&&(p.xPercent=lt(P.xPercent,M.xPercent)),null!=P.yPercent&&(p.yPercent=lt(P.yPercent,M.yPercent));else if("object"==typeof P){if(p={scaleX:lt(null!=P.scaleX?P.scaleX:P.scale,M.scaleX),scaleY:lt(null!=P.scaleY?P.scaleY:P.scale,M.scaleY),scaleZ:lt(P.scaleZ,M.scaleZ),x:lt(P.x,M.x),y:lt(P.y,M.y),z:lt(P.z,M.z),xPercent:lt(P.xPercent,M.xPercent),yPercent:lt(P.yPercent,M.yPercent),perspective:lt(P.transformPerspective,M.perspective)},null!=(x=P.directionalRotation))if("object"==typeof x)for(h in x)P[h]=x[h];else P.rotation=x;"string"==typeof P.x&&-1!==P.x.indexOf("%")&&(p.x=0,p.xPercent=lt(P.x,M.xPercent)),"string"==typeof P.y&&-1!==P.y.indexOf("%")&&(p.y=0,p.yPercent=lt(P.y,M.yPercent)),p.rotation=ft("rotation"in P?P.rotation:"shortRotation"in P?P.shortRotation+"_short":"rotationZ"in P?P.rotationZ:M.rotation-M.skewY,M.rotation-M.skewY,"rotation",T),Rt&&(p.rotationX=ft("rotationX"in P?P.rotationX:"shortRotationX"in P?P.shortRotationX+"_short":M.rotationX||0,M.rotationX,"rotationX",T),p.rotationY=ft("rotationY"
13in P?P.rotationY:"shortRotationY"in P?P.shortRotationY+"_short":M.rotationY||0,M.rotationY,"rotationY",T)),p.skewX=ft(P.skewX,M.skewX-M.skewY),(p.skewY=ft(P.skewY,M.skewY))&&(p.skewX+=p.skewY,p.rotation+=p.skewY)}for(Rt&&null!=P.force3D&&(M.force3D=P.force3D,u=!0),M.skewType=P.skewType||M.skewType||a.defaultSkewType,c=M.force3D||M.z||M.rotationX||M.rotationY||p.z||p.rotationX||p.rotationY||p.perspective,c||null==P.scale||(p.scaleZ=1);--w>-1;)_=Mt[w],((k=p[_]-M[_])>1e-6||k<-1e-6||null!=P[_]||null!=j[_])&&(u=!0,n=new mt(M,_,M[_],k,n),_ in T&&(n.e=T[_]),n.xs0=0,n.plugin=o,i._overwriteProps.push(n.n));return k=P.transformOrigin,M.svg&&(k||P.svgOrigin)&&(d=M.xOffset,m=M.yOffset,Nt(t,at(k),p,P.svgOrigin,P.smoothOrigin),n=vt(M,"xOrigin",(O?M:p).xOrigin,p.xOrigin,n,"transformOrigin"),n=vt(M,"yOrigin",(O?M:p).yOrigin,p.yOrigin,n,"transformOrigin"),d===M.xOffset&&m===M.yOffset||(n=vt(M,"xOffset",O?d:M.xOffset,M.xOffset,n,"transformOrigin"),n=vt(M,"yOffset",O?m:M.yOffset,M.yOffset,n,"transformOrigin")),k=Tt?null:"0px 0px"),(k||Rt&&c&&M.zOrigin)&&(kt?(u=!0,_=St,k=(k||J(t,_,s,!1,"50% 50%"))+"",n=new mt(b,_,0,0,n,-1,"transformOrigin"),n.b=b[_],n.plugin=o,Rt?(h=M.zOrigin,k=k.split(" "),M.zOrigin=(k.length>2&&(0===h||"0px"!==k[2])?parseFloat(k[2]):h)||0,n.xs0=n.e=k[0]+" "+(k[1]||"50%")+" 0px",n=new mt(M,"zOrigin",0,0,n,-1,n.n),n.b=h,n.xs0=n.e=M.zOrigin):n.xs0=n.e=k):at(k+"",M)),u&&(i._transformType=M.svg&&Tt||!c&&3!==this._transformType?2:3),f&&(l[r]=f),n},prefix:!0}),wt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),wt("borderRadius",{defaultValue:"0px",parser:function(t,e,r,n,a,o){e=this.format(e);var l,f,p,h,c,u,x,d,g,y,m,v,_,O,b,w,P=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],T=t.style;for(g=parseFloat(t.offsetWidth),y=parseFloat(t.offsetHeight),l=e.split(" "),f=0;f<P.length;f++)this.p.indexOf("border")&&(P[f]=U(P[f])),c=h=J(t,P[f],s,!1,"0px"),-1!==c.indexOf(" ")&&(h=c.split(" "),c=h[0],h=h[1]),u=p=l[f],x=parseFloat(c),v=c.substr((x+"").length),_="="===u.charAt(1),_?(d=parseInt(u.charAt(0)+"1",10),u=u.substr(2),d*=parseFloat(u),m=u.substr((d+"").length-(d<0?1:0))||""):(d=parseFloat(u),m=u.substr((d+"").length)),""===m&&(m=i[r]||v),m!==v&&(O=K(t,"borderLeft",x,v),b=K(t,"borderTop",x,v),"%"===m?(c=O/g*100+"%",h=b/y*100+"%"):"em"===m?(w=K(t,"borderLeft",1,"em"),c=O/w+"em",h=b/w+"em"):(c=O+"px",h=b+"px"),_&&(u=parseFloat(c)+d+m,p=parseFloat(h)+d+m)),a=_t(T,P[f],c+" "+h,u+" "+p,!1,"0px",a);return a},prefix:!0,formatter:dt("0px 0px 0px 0px",!1,!0)}),wt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,r,i,n,a){return _t(t.style,r,this.format(J(t,r,s,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:dt("0px 0px",!1,!0)}),wt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,r,i,n,a){var o,l,f,p,h,c,u="background-position",x=s||Q(t,null),g=this.format((x?d?x.getPropertyValue(u+"-x")+" "+x.getPropertyValue(u+"-y"):x.getPropertyValue(u):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),y=this.format(e);if(-1!==g.indexOf("%")!=(-1!==y.indexOf("%"))&&y.split(",").length<2&&(c=J(t,"backgroundImage").replace(S,""))&&"none"!==c){for(o=g.split(" "),l=y.split(" "),D.setAttribute("src",c),f=2;--f>-1;)g=o[f],(p=-1!==g.indexOf("%"))!==(-1!==l[f].indexOf("%"))&&(h=0===f?t.offsetWidth-D.width:t.offsetHeight-D.height,o[f]=p?parseFloat(g)/100*h+"px":parseFloat(g)/h*100+"%");g=o.join(" ")}return this.parseComplex(t.style,g,y,n,a)},formatter:at}),wt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",at(-1===t.indexOf(" ")?t+" "+t:t)}}),wt("perspective",{defaultValue:"0px",prefix:!0}),wt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),wt("transformStyle",{prefix:!0}),wt("backfaceVisibility",{prefix:!0}),wt("userSelect",{prefix:!0}),wt("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),wt("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),wt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,r,i,n,a){var o,l,f;return d<9?(l=t.currentStyle,f=d<8?" ":",",o="rect("+l.clipTop+f+l.clipRight+f+l.clipBottom+f+l.clipLeft+")",e=this.format(e).split(",").join(f)):(o=this.format(J(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}
vendor: 6,626 bytes, lines 13-14
13),wt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),wt("autoRound,strictUnits",{parser:function(t,e,r,i,s){return s}}),wt("border",{defaultValue:"0px solid #000",parser:function(t,e,r,i,n,a){var o=J(t,"borderTopWidth",s,!1,"0px"),l=this.format(e).split(" "),f=l[0].replace(b,"");return"px"!==f&&(o=parseFloat(o)/K(t,"borderTopWidth",1,f)+f),this.parseComplex(t.style,this.format(o+" "+J(t,"borderTopStyle",s,!1,"solid")+" "+J(t,"borderTopColor",s,!1,"#000")),l.join(" "),n,a)},color:!0,formatter:function(t){var e=t.split(" ") 14;return e[0]+" "+(e[1]||"solid")+" "+(t.match(xt)||["#000"])[0]}}),wt("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),wt("float,cssFloat,styleFloat",{parser:function(t,e,r,i,s,n){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new mt(a,o,0,0,s,-1,r,!1,0,a[o],e)}});var Zt=function(t){var e,r=this.t,i=r.filter||J(this.data,"filter")||"",s=this.s+this.c*t|0;100===s&&(-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(r.removeAttribute("filter"),e=!J(this.data,"filter")):(r.filter=i.replace(T,""),e=!0)),e||(this.xn1&&(r.filter=i=i||"alpha(opacity="+s+")"),-1===i.indexOf("pacity")?0===s&&this.xn1||(r.filter=i+" alpha(opacity="+s+")"):r.filter=i.replace(w,"opacity="+s))};wt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,r,i,n,a){var o=parseFloat(J(t,"opacity",s,!1,"1")),l=t.style,f="autoAlpha"===r;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),f&&1===o&&"hidden"===J(t,"visibility",s)&&0!==e&&(o=0),E?n=new mt(l,"opacity",o,e-o,n):(n=new mt(l,"opacity",100*o,100*(e-o),n),n.xn1=f?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=Zt),f&&(n=new mt(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",i._overwriteProps.push(n.n),i._overwriteProps.push(r)),n}});var Et=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(k,"-$1").toLowerCase())):t.removeAttribute(e))},qt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,r=this.t.style;e;)e.v?r[e.p]=e.v:Et(r,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};wt("className",{parser:function(t,e,i,n,a,o,l){var f,p,h,c,u,x=t.getAttribute("class")||"",d=t.style.cssText;if(a=n._classNamePT=new mt(t,i,0,0,a,2),a.setRatio=qt,a.pr=-11,r=!0,a.b=x,p=et(t,s),h=t._gsClassPT){for(c={},u=h.data;u;)c[u.p]=1,u=u._next;h.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:x.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),f=rt(t,p,et(t),l,c),t.setAttribute("class",x),a.data=f.firstMPT,t.style.cssText=d,a=a.xfirst=n.parse(t,f.difs,a,o)}});var $t=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,r,i,s,n,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),i=e.length;--i>-1;)r=e[i],l[r]&&(l[r].parse===o?s=!0:r="transformOrigin"===r?St:l[r].p),Et(a,r);s&&(Et(a,kt),(n=this.t._gsTransform)&&(n.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(wt("clearProps",{parser:function(t,e,i,s,n){return n=new mt(t,i,0,0,n,2),n.setRatio=$t,n.e=e,n.pr=-10,n.data=s._tween,r=!0,n}}),f="bezier,throwProps,physicsProps,physics2D".split(","),Ot=f.length;Ot--;)Pt(f[Ot]);f=a.prototype,f._firstPT=f._lastParsedTransform=f._transform=null,f._onInitTween=function(t,e,o,f){if(!t.nodeType)return!1;this._target=g=t,this._tween=o,this._vars=e,y=f,p=e.autoRound,r=!1,i=e.suffixMap||a.suffixMap,s=Q(t,""),n=this._overwriteProps;var u,d,m,v,_,O,b,w,T,M=t.style;if(h&&""===M.zIndex&&("auto"!==(u=J(t,"zIndex",s))&&""!==u||this._addLazySet(M,"zIndex",0)),"string"==typeof e&&(v=M.cssText,u=et(t,s),M.cssText=v+";"+e,u=rt(t,u,et(t)).difs,!E&&P.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,M.cssText=v),e.className?this._firstPT=d=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=d=this.parse(t,e,null),this._transformType){for(T=3===this._transformType,kt?c&&(h=!0,""===M.zIndex&&("auto"!==(b=J(t,"zIndex",s))&&""!==b||this._addLazySet(M,"zIndex",0)),x&&this._addLazySet(M,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(T?"visible":"hidden"))):M.zoom=1,m=d;m&&m._next;)m=m._next;w=new mt(t,"transform",0,0,null,2),this._linkCSSP(w,null,m),w.setRatio=kt?Wt:Dt,w.data=this._transform||It(t,s,!0),w.tween=o,w.pr=-1,n.pop()}if(r){for(;d;){for(O=d._next,m=v;m&&m.pr>d.pr;)m=m._next;(d._prev=m?m._prev:_)?d._prev._next=d:v=d,(d._next=m)?m._prev=d:_=d,d=O}this._firstPT=v}return!0},f.parse=function(t,e,r,n){var a,o,f,h,c,u,x,d,m,v,_=t.style;for(a in e)u=e[a],"function"==typeof u&&(u=u(y,g)),o=l[a],o?r=o.parse(t,u,a,this,r,n,e):(c=J(t,a,s)+"",m="string"==typeof u,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&M.test(u)?(m||(u=ct(u),u=(u.length>3?"rgba(":"rgb(")+u.join(",")+")"),r=_t(_,a,c,u,!0,"transparent",r,0,n)):m&&z.test(u)?r=_t(_,a,c,u,!0,null,r,0,n):(f=parseFloat(c),x=f||0===f?c.substr((f+"").length):"",""!==c&&"auto"!==c||("width"===a||"height"===a?(f=nt(t,a,s),x="px"):"left"===a||"top"===a?(f=tt(t,a,s),x="px"):(f="opacity"!==a?0:1,x="")),v=m&&"="===u.charAt(1),v?(h=parseInt(u.charAt(0)+"1",10),u=u.substr(2),h*=parseFloat(u),d=u.replace(b,"")):(h=parseFloat(u),d=m?u.replace(b,""):""),""===d&&(d=a in i?i[a]:x),u=h||0===h?(v?h+f:h)+d:e[a],x!==d&&""!==d&&(h||0===h)&&f&&(f=K(t,a,f,x),"%"===d?(f/=K(t,a,100,"%")/100,!0!==e.strictUnits&&(c=f+"%")):"em"===d||"rem"===d||"vw"===d||"vh"===d?f/=K(t,a,1,d):"px"!==d&&(h=K(t,a,h,d),d="px"),v&&(h||0===h)&&(u=h+f+d)),v&&(h+=f),!f&&0!==f||!h&&0!==h?void 0!==_[a]&&(u||u+""!="NaN"&&null!=u)?(r=new mt(_,a,h||f||0,0,r,-1,a,!1,0,c,u),r.xs0="none"!==u||"display"!==a&&-1===a.indexOf("Style")?u:c):$("invalid "+a+" tween value: "+e[a]):(r=new mt(_,a,f,h-f,r,0,a,!1!==p&&("px"===d||"zIndex"===a),0,c,u),r.xs0=d))),n&&r&&!r.plugin&&(r.plugin=n);return r},f.setRatio=function(t){var e,r,i,s=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):e<1e-6&&e>
14-1e-6&&(e=0),s.type)if(1===s.type)if(2===(i=s.l))s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===i)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===i)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===i)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(r=s.xs0+e+s.xs1,i=1;i<s.l;i++)r+=s["xn"+i]+s["xs"+(i+1)];s.t[s.p]=r}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;){if(2!==s.type)if(s.r&&-1!==s.type)if(e=Math.round(s.s+s.c),s.type){if(1===s.type){for(i=s.l,r=s.xs0+e+s.xs1,i=1;i<s.l;i++)r+=s["xn"+i]+s["xs"+(i+1)];s.t[s.p]=r}}else s.t[s.p]=e+s.xs0;else s.t[s.p]=s.e;else s.setRatio(t);s=s._next}},f._enableTransforms=function(t){this._transform=this._transform||It(this._target,s,!0),this._transformType=this._transform.svg&&Tt||!t&&3!==this._transformType?2:3};var Ht=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};f._addLazySet=function(t,e,r){var i=this._firstPT=new mt(t,e,0,0,this._firstPT,2);i.e=r,i.setRatio=Ht,i.data=this},f._linkCSSP=function(t,e,r,i){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,i=!0),r?r._next=t:i||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=r),t},f._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},f._kill=function(e){var r,i,s,n=e;if(e.autoAlpha||e.alpha){n={};for(i in e)n[i]=e[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(e.className&&(r=this._classNamePT)&&(s=r.xfirst,s&&s._prev?this._linkCSSP(s._prev,r._next,s._prev._prev):s===this._firstPT&&(this._firstPT=r._next),r._next&&this._linkCSSP(r._next,r._next._next,s._prev),this._classNamePT=null),r=this._firstPT;r;)r.plugin&&r.plugin!==i&&r.plugin._kill&&(r.plugin._kill(e),i=r.plugin),r=r._next;return t.prototype._kill.call(this,n)};var Gt=function(t,e,r){var i,s,n,a;if(t.slice)for(s=t.length;--s>-1;)Gt(t[s],e,r);else for(i=t.childNodes,s=i.length;--s>-1;)n=i[s],a=n.type,n.style&&(e.push(et(n)),r&&r.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||Gt(n,e,r)};return a.cascadeTo=function(t,r,i){var s,n,a,o,l=e.to(t,r,i),f=[l],p=[],h=[],c=[],u=e._internals.reservedProps;for(t=l._targets||l.target,Gt(t,p,c),l.render(r,!0,!0),Gt(t,h),l.render(0,!0,!0),l._enabled(!0),s=c.length;--s>-1;)if(n=rt(c[s],p[s],h[s]),n.firstMPT){n=n.difs;for(a in i)u[a]&&(n[a]=i[a]);o={};for(a in n)o[a]=p[s][a];f.push(e.fromTo(c[s],r,o,n))}return f},t.activate([a]),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).CSSPlugin};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}(); 15var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=document.documentElement,e=_gsScope,s=function(s,i){var o="x"===i?"Width":"Height",n="scroll"+o,l="client"+o,h=document.body;return s===e||s===t||s===h?Math.max(t[n],h[n])-(e["inner"+o]||t[l]||h[l]):s[n]-s["offset"+o]},i=function(t){return"string"==typeof t&&(t=TweenLite.selector(t)),t.length&&t!==e&&t[0]&&t[0].style&&!t.nodeType&&(t=t[0]),t===e||t.nodeType&&t.style?t:null},o=function(s,i){var o="scroll"+("x"===i?"Left":"Top");return s===e&&(null!=s.pageXOffset?o="page"+i.toUpperCase()+"Offset":s=null!=t[o]?t:document.body),function(){return s[o]}},n=function(s,n){var l=i(s).getBoundingClientRect(),h=!n||n===e||n===document.body,r=(h?t:n).getBoundingClientRect(),u={x:l.left-r.left,y:l.top-r.top};return!h&&n&&(u.x+=o(n,"x")(),u.y+=o(n,"y")()),u},l=function(t,e,i){var o=typeof t;return"number"===o||"string"===o&&"="===t.charAt(1)?t:"max"===t?s(e,i):Math.min(s(e,i),n(t,e)[i])},h=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.8.1",init:function(t,s,i){return this._wdw=t===e,this._target=t,this._tween=i,"object"!=typeof s?(s={y:s},"string"==typeof s.y&&"max"!==s.y&&"="!==s.y.charAt(1)&&(s.x=s.y)):s.nodeType&&(s={y:s,x:s}),this.vars=s,this._autoKill=!1!==s.autoKill,this.getX=o(t,"x"),this.getY=o(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=s.x?(this._addTween(this,"x",this.x,l(s.x,t,"x")-(s.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=s.y?(this._addTween(this,"y",this.y,l(s.y,t,"y")-(s.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var i=this._wdw||!this.skipX?this.getX():this.xPrev,o=this._wdw||!this.skipY?this.getY():this.yPrev,n=o-this.yPrev,l=i-this.xPrev,r=h.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(l>r||l<-r)&&i<s(this._target,"x")&&(this.skipX=!0),!this.skipY&&(n>r||n<-r)&&o<s(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParam
15s||[]))),this._wdw?e.scrollTo(this.skipX?i:this.x,this.skipY?o:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),r=h.prototype;h.max=s,h.getOffset=n,h.autoKillThreshold=7,r._kill=function(t){return t.scrollTo_x&&(this.skipX=!0),t.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).ScrollToPlugin};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}(); 16!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.ScrollMagic=t()}(this,function(){"use strict";var e=function(){r.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};e.version="2.0.5",window.addEventListener("mousewheel",function(){});e.Controller=function(n){var o,i,l="ScrollMagic.Controller",a=t.defaults,s=this,c=r.extend({},a,n),u=[],f=!1,d=0,g="PAUSED",p=!0,h=0,v=!0,m=function(){c.refreshInterval>0&&(i=window.setTimeout(F,c.refreshInterval))},w=function(){return c.vertical?r.get.scrollTop(c.container):r.get.scrollLeft(c.container)},y=function(){return c.vertical?r.get.height(c.container):r.get.width(c.container)},S=this._setScrollPos=function(e){c.vertical?p?window.scrollTo(r.get.scrollLeft(),e):c.container.scrollTop=e:p?window.scrollTo(e,r.get.scrollTop()):c.container.scrollLeft=e},E=function(){if(v&&f){var e=r.type.Array(f)?f:u.slice(0);f=!1;var t=d;d=s.scrollPos();var n=d-t;0!==n&&(g=n>0?"FORWARD":"REVERSE"),"REVERSE"===g&&e.reverse(),e.forEach(function(t,n){T(3,"updating Scene "+(n+1)+"/"+e.length+" ("+u.length+" total)"),t.update(!0)}),0===e.length&&c.loglevel>=3&&T(3,"updating 0 Scenes (nothing added to controller)")}},R=function(){o=r.rAF(E)},b=function(e){T(3,"event fired causing an update:",e.type),"resize"==e.type&&(h=y(),g="PAUSED"),!0!==f&&(f=!0,R())},F=function(){if(!p&&h!=y()){var e;try{e=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){e=document.createEvent("Event"),e.initEvent("resize",!1,!1)}c.container.dispatchEvent(e)}u.forEach(function(e,t){e.refresh()}),m()},T=this._log=function(e,t){c.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+l+") ->"),r.log.apply(window,arguments))};this._options=c;var O=function(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),t};return this.addScene=function(t){if(r.type.Array(t))t.forEach(function(e,t){s.addScene(e)});else if(t instanceof e.Scene){if(t.controller()!==s)t.addTo(s);else if(u.indexOf(t)<0){u.push(t),u=O(u),t.on("shift.controller_sort",function(){u=O(u)});for(var n in c.globalSceneOptions)t[n]&&t[n].call(t,c.globalSceneOptions[n]);T(3,"adding Scene (now "+u.length+" total)")}}else T(1,"ERROR: invalid argument supplied for '.addScene()'");return s},this.removeScene=function(e){if(r.type.Array(e))e.forEach(function(e,t){s.removeScene(e)});else{var t=u.indexOf(e);t>-1&&(e.off("shift.controller_sort"),u.splice(t,1),T(3,"removing Scene (now "+u.length+" left)"),e.remove())}return s},this.updateScene=function(t,n){return r.type.Array(t)?t.forEach(function(e,t){s.updateScene(e,n)}):n?t.update(!0):!0!==f&&t instanceof e.Scene&&(f=f||[],-1==f.indexOf(t)&&f.push(t),f=O(f),R()),s},this.update=function(e){return b({type:"resize"}),e&&E(),s},this.scrollTo=function(t,n){if(r.type.Number(t))S.call(c.container,t,n);else if(t instanceof e.Scene)t.controller()===s?s.scrollTo(t.scrollOffset(),n):T(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",t);else if(r.type.Function(t))S=t;else{var o=r.get.elements(t)[0];if(o){for(;o.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)o=o.parentNode;var i=c.vertical?"top":"left",l=r.get.offset(c.container),a=r.get.offset(o);p||(l[i]-=s.scrollPos()),s.scrollTo(a[i]-l[i],n)}
16else T(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",t)}return s},this.scrollPos=function(e){return arguments.length?(r.type.Function(e)?w=e:T(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),s):w.call(s)},this.info=function(e){var t={size:h,vertical:c.vertical,scrollPos:d,scrollDirection:g,container:c.container,isDocument:p};return arguments.length?void 0!==t[e]?t[e]:void T(1,'ERROR: option "'+e+'" is not available'):t},this.loglevel=function(e){return arguments.length?(c.loglevel!=e&&(c.loglevel=e),s):c.loglevel},this.enabled=function(e){return arguments.length?(v!=e&&(v=!!e,s.updateScene(u,!0)),s):v},this.destroy=function(e){window.clearTimeout(i);for(var t=u.length;t--;)u[t].destroy(e);return c.container.removeEventListener("resize",b),c.container.removeEventListener("scroll",b),r.cAF(o),T(3,"destroyed "+l+" (reset: "+(e?"true":"false")+")"),null},function(){for(var t in c)a.hasOwnProperty(t)||(T(2,'WARNING: Unknown option "'+t+'"'),delete c[t]);if(c.container=r.get.elements(c.container)[0],!c.container)throw T(1,"ERROR creating object "+l+": No valid scroll container supplied"),l+" init failed.";p=c.container===window||c.container===document.body||!document.body.contains(c.container),p&&(c.container=window),h=y(),c.container.addEventListener("resize",b),c.container.addEventListener("scroll",b),c.refreshInterval=parseInt(c.refreshInterval)||a.refreshInterval,m(),T(3,"added new "+l+" controller (v"+e.version+")")}(),s};var t={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};e.Controller.addOption=function(e,n){t.defaults[e]=n},e.Controller.extend=function(t){var n=this;e.Controller=function(){return n.apply(this,arguments),this.$super=r.extend({},this),t.apply(this,arguments)||this},r.extend(e.Controller,n),e.Controller.prototype=n.prototype,e.Controller.prototype.constructor=e.Controller},e.Scene=function(t){var o,i,l="ScrollMagic.Scene",a=n.defaults,s=this,c=r.extend({}
16,a,t),u="BEFORE",f=0,d={start:0,end:0},g=0,p=!0,h={};this.on=function(e,t){return r.type.Function(t)?(e=e.trim().split(" "),e.forEach(function(e){var n=e.split("."),r=n[0],o=n[1];"*"!=r&&(h[r]||(h[r]=[]),h[r].push({namespace:o||"",callback:t}))})):v(1,"ERROR when calling '.on()': Supplied callback for '"+e+"' is not a valid function!"),s},this.off=function(e,t){return e?(e=e.trim().split(" "),e.forEach(function(e,n){var r=e.split("."),o=r[0],i=r[1]||"";("*"===o?Object.keys(h):[o]).forEach(function(e){for(var n=h[e]||[],r=n.length;r--;){var o=n[r];!o||i!==o.namespace&&"*"!==i||t&&t!=o.callback||n.splice(r,1)}n.length||delete h[e]})}),s):(v(1,"ERROR: Invalid event name supplied."),s)},this.trigger=function(t,n){if(t){var r=t.trim().split("."),o=r[0],i=r[1],l=h[o];v(3,"event fired:",o,n?"->":"",n||""),l&&l.forEach(function(t,r){i&&i!==t.namespace||t.callback.call(s,new e.Event(o,t.namespace,s,n))})}else v(1,"ERROR: Invalid event name supplied.");return s},s.on("change.internal",function(e){"loglevel"!==e.what&&"tweenChanges"!==e.what&&("triggerElement"===e.what?y():"reverse"===e.what&&s.update())}).on("shift.internal",function(e){m(),s.update()});var v=this._log=function(e,t){c.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+l+") ->"),r.log.apply(window,arguments))};this.addTo=function(t){return t instanceof e.Controller?i!=t&&(i&&i.removeScene(s),i=t,R(),w(!0),y(!0),m(),i.info("container").addEventListener("resize",S),t.addScene(s),s.trigger("add",{controller:i}),v(3,"added "+l+" to controller"),s.update()):v(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),s},this.enabled=function(e){return arguments.length?(p!=e&&(p=!!e,s.update(!0)),s):p},this.remove=function(){if(i){i.info("container").removeEventListener("resize",S);var e=i;i=void 0,e.removeScene(s),s.trigger("remove"),v(3,"removed "+l+" from controller")}return s},this.destroy=function(e){return s.trigger("destroy",{reset:e}),s.remove(),s.off("*.*"),v(3,"destroyed "+l+" (reset: "+(e?"true":"false")+")"),null},this.update=function(e){if(i)if(e)if(i.enabled()&&p){var t,n=i.info("scrollPos");t=c.duration>0?(n-d.start)/(d.end-d.start):n>=d.start?1:0,s.trigger("update",{startPos:d.start,endPos:d.end,scrollPos:n}),s.progress(t)}else T&&"DURING"===u&&C(!0);else i.updateScene(s,!1);return s},this.refresh=function(){return w(),y(),s},this.progress=function(e){if(arguments.length){var t=!1,n=u,r=i?i.info("scrollDirection"):"PAUSED",o=c.reverse||e>=f;if(0===c.duration?(t=f!=e,f=e<1&&o?0:1,u=0===f?"BEFORE":"DURING"):e<0&&"BEFORE"!==u&&o?(f=0,u="BEFORE",t=!0):e>=0&&e<1&&o?(f=e,u="DURING",t=!0):e>=1&&"AFTER"!==u?(f=1,u="AFTER",t=!0):"DURING"!==u||o||C(),t){var l={progress:f,state:u,scrollDirection:r},a=u!=n,d=function(e){s.trigger(e,l)};a&&"DURING"!==n&&(d("enter"),d("BEFORE"===n?"start":"end")),d("progress"),a&&"DURING"!==u&&(d("BEFORE"===u?"start":"end"),d("leave"))}return s}return f};var m=function(){d={start:g+c.offset},i&&c.triggerElement&&(d.start-=i.info("size")*c.triggerHook),d.end=d.start+c.duration},w=function(e){if(o){b("duration",o.call(s))&&!e&&(s.trigger("change",{what:"duration",newval:c.duration}),s.trigger("shift",{reason:"duration"}))}},y=function(e){var t=0,n=c.triggerElement;if(i&&n){for(var o=i.info(),l=r.get.offset(o.container),a=o.vertical?"top":"left";n.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)n=n.parentNode;var u=r.get.offset(n);o.isDocument||(l[a]-=i.scrollPos()),t=u[a]-l[a]}var f=t!=g;g=t,f&&!e&&s.trigger("shift",{reason:"triggerElementPosition"})},S=function(e){c.triggerHook>0&&s.trigger("shift",{reason:"containerResize"})},E=r.extend(n.validate,{duration:function(e){if(r.type.String(e)&&e.match(/^(\.|\d)*\d+%$/)){var t=parseFloat(e)/100;e=function(){return i?i.info("size")*t:0}}if(r.type.Function(e)){o=e;try{e=parseFloat(o())}catch(t){e=-1}}if(e=parseFloat(e),!r.type.Number(e)||e<0)throw o?(o=void 0,['Invalid return value of supplied function for option "duration":',e]):['Invalid value for option "duration":',e];return e}}),R=function(e){e=arguments.length?[e]:Object.keys(E),e.forEach(function(e,t){var n;if(E[e])try{n=E[e](c[e])}catch(t){n=a[e];var o=r.type.String(t)?[t]:t;r.type.Array(o)?(o[0]="ERROR: "+o[0],o.unshift(1),v.apply(this,o)):v(1,"ERROR: Problem executing validation callback for option '"+e+"':",t.message)}finally{c[e]=n}})},b=function(e,t){var n=!1,r=c[e];return c[e]!=t&&(c[e]=t,R(e),n=r!=c[e]),n},F=function(e){s[e]||(s[e]=function(t){return arguments.length?("duration"===e&&(o=void 0),b(e,t)&&(s.trigger("change",{what:e,newval:c[e]}),n.shifts.indexOf(e)>-1&&s.trigger("shift",{reason:e})),s):c[e]})};this.controller=function(){return i},this.state=function(){return u},this.scrollOffset=function(){return d.start},this.triggerPosition=function(){var e=c.offset;return i&&(c.triggerElement?e+=g:e+=i.info("size")*s.triggerHook()),e};var T,O;s.on("shift.internal",function(e){var t="duration"===e.reason;("AFTER"===u&&t||"DURING"===u&&0===c.duration)&&C(),t&&x()}).on("progress.internal",function(e){C()}).on("add.internal",function(e){x()}).on("destroy.internal",function(e){s.removePin(e.reset)});var C=function(e){if(T&&i){var t=i.info(),n=O.spacer.firstChild;if(e||"DURING"!==u){var o={position:O.inFlow?"relative":"absolute",top:0,left:0},l=r.css(n,"position")!=o.position;O.pushFollowers?c.duration>0&&("AFTER"===u&&0===parseFloat(r.css(O.spacer,"padding-top"))?l=!0:"BEFORE"===u&&0===parseFloat(r.css(O.spacer,"padding-bottom"))&&(l=!0)):o[t.vertical?"top":"left"]=c.duration*f,r.css(n,o),l&&x()}else{"fixed"!=r.css(n,"position")&&(r.css(n,{position:"fixed"}),x());var a=r.get.offset(O.spacer,!0),s=c.reverse||0===c.duration?t.scrollPos-d.start:Math.round(f*c.duration*10)/10;a[t.vertical?"top":"left"]+=s,r.css(O.spacer.firstChild,{top:a.top,left
16:a.left})}}},x=function(){if(T&&i&&O.inFlow){var e="DURING"===u,t=i.info("vertical"),n=O.spacer.firstChild,o=r.isMarginCollapseType(r.css(O.spacer,"display")),l={};O.relSize.width||O.relSize.autoFullWidth?e?r.css(T,{width:r.get.width(O.spacer)}):r.css(T,{width:"100%"}):(l["min-width"]=r.get.width(t?T:n,!0,!0),l.width=e?l["min-width"]:"auto"),O.relSize.height?e?r.css(T,{height:r.get.height(O.spacer)-(O.pushFollowers?c.duration:0)}):r.css(T,{height:"100%"}):(l["min-height"]=r.get.height(t?n:T,!0,!o),l.height=e?l["min-height"]:"auto"),O.pushFollowers&&(l["padding"+(t?"Top":"Left")]=c.duration*f,l["padding"+(t?"Bottom":"Right")]=c.duration*(1-f)),r.css(O.spacer,l)}},I=function(){i&&T&&"DURING"===u&&!i.info("isDocument")&&C()},N=function(){i&&T&&"DURING"===u&&((O.relSize.width||O.relSize.autoFullWidth)&&r.get.width(window)!=r.get.width(O.spacer.parentNode)||O.relSize.height&&r.get.height(window)!=r.get.height(O.spacer.parentNode))&&x()},z=function(e){i&&T&&"DURING"===u&&!i.info("isDocument")&&(e.preventDefault(),i._setScrollPos(i.info("scrollPos")-((e.wheelDelta||e[i.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-e.detail)))};this.setPin=function(e,t){var n={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"};if(t=r.extend({},n,t),!(e=r.get.elements(e)[0]))return v(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),s;if("fixed"===r.css(e,"position"))return v(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),s;if(T){if(T===e)return s;s.removePin()}T=e;var o=T.parentNode.style.display,i=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];T.parentNode.style.display="none";var l="absolute"!=r.css(T,"position"),a=r.css(T,i.concat(["display"])),u=r.css(T,["width","height"]);T.parentNode.style.display=o,!l&&t.pushFollowers&&(v(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),t.pushFollowers=!1),window.setTimeout(function(){T&&0===c.duration&&t.pushFollowers&&v(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0);var f=T.parentNode.insertBefore(document.createElement("div"),T),d=r.extend(a,{position:l?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(l||r.extend(d,r.css(T,["width","height"])),r.css(f,d),f.setAttribute("data-scrollmagic-pin-spacer",""),r.addClass(f,t.spacerClass),O={spacer:f,relSize:{width:"%"===u.width.slice(-1),height:"%"===u.height.slice(-1),autoFullWidth:"auto"===u.width&&l&&r.isMarginCollapseType(a.display)},pushFollowers:t.pushFollowers,inFlow:l},!T.___origStyle){T.___origStyle={};var g=T.style;i.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach(function(e){T.___origStyle[e]=g[e]||""})}return O.relSize.width&&r.css(f,{width:u.width}),O.relSize.height&&r.css(f,{height:u.height}),f.appendChild(T),r.css(T,{position:l?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(O.relSize.width||O.relSize.autoFullWidth)&&r.css(T,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",I),window.addEventListener("resize",I),window.addEventListener("resize",N),T.addEventListener("mousewheel",z),T.addEventListener("DOMMouseScroll",z),v(3,"added pin"),C(),s},this.removePin=function(e){if(T){if("DURING"===u&&C(!0),e||!i){var t=O.spacer.firstChild;if(t.hasAttribute("data-scrollmagic-pin-spacer")){var n=O.spacer.style,o=["margin","marginLeft","marginRight","marginTop","marginBottom"];margins={},o.forEach(function(e){margins[e]=n[e]||""}),r.css(t,margins)}O.spacer.parentNode.insertBefore(t,O.spacer),O.spacer.parentNode.removeChild(O.spacer),T.parentNode.hasAttribute("data-scrollmagic-pin-spacer")||(r.css(T,T.___origStyle),delete T.___origStyle)}window.removeEventListener("scroll",I),window.removeEventListener("resize",I),window.removeEventListener("resize",N),T.removeEventListener("mousewheel",z),T.removeEventListener("DOMMouseScroll",z),T=void 0,v(3,"removed pin (reset: "+(e?"true":"false")+")")}return s};var A,P=[];return s.on("destroy.internal",function(e){s.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){var n=r.get.elements(e);return 0!==n.length&&r.type.String(t)?(P.length>
160&&s.removeClassToggle(),A=t,P=n,s.on("enter.internal_class leave.internal_class",function(e){var t="enter"===e.type?r.addClass:r.removeClass;P.forEach(function(e,n){t(e,A)})}),s):(v(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===n.length?"element":"classes")+" supplied."),s)},this.removeClassToggle=function(e){return e&&P.forEach(function(e,t){r.removeClass(e,A)}),s.off("start.internal_class end.internal_class"),A=void 0,P=[],s},function(){for(var e in c)a.hasOwnProperty(e)||(v(2,'WARNING: Unknown option "'+e+'"'),delete c[e]);for(var t in a)F(t);R()}(),s};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!r.type.Number(e))throw['Invalid value for option "offset":',e];return e},triggerElement:function(e){if(e=e||void 0){var t=r.get.elements(e)[0];if(!t)throw['Element defined in option "triggerElement" was not found:',e];e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(r.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw['Invalid value for option "triggerHook": ',e];e=t[e]}return e},reverse:function(e){return!!e},loglevel:function(e){if(e=parseInt(e),!r.type.Number(e)||e<0||e>3)throw['Invalid value for option "loglevel":',e];return e}},shifts:["duration","offset","triggerHook"]};e.Scene.addOption=function(t,r,o,i){t in n.defaults?e._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+t+"', because it already exists."):(n.defaults[t]=r,n.validate[t]=o,i&&n.shifts.push(t))},e.Scene.extend=function(t){var n=this;e.Scene=function(){return n.apply(this,arguments),this.$super=r.extend({},this),t.apply(this,arguments)||this},r.extend(e.Scene,n),e.Scene.prototype=n.prototype,e.Scene.prototype.constructor=e.Scene},e.Event=function(e,t,n,r){r=r||{};for(var o in r)this[o]=r[o];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this};var r=e._util=function(e){var t,n={},r=function(e){return parseFloat(e)||0},o=function(t){return t.currentStyle?t.currentStyle:e.getComputedStyle(t)},i=function(t,n,i,l){if((n=n===document?e:n)===e)l=!1;else if(!p.DomElement(n))return 0;t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase();var a=(i?n["offset"+t]||n["outer"+t]:n["client"+t]||n["inner"+t])||0;if(i&&l){var s=o(n);a+="Height"===t?r(s.marginTop)+r(s.marginBottom):r(s.marginLeft)+r(s.marginRight)}return a},l=function(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})};n.extend=function(e){for(e=e||{},t=1;t<arguments.length;t++)if(arguments[t])for(var n in arguments[t])arguments[t].hasOwnProperty(n)&&(e[n]=arguments[t][n]);return e},n.isMarginCollapseType=function(e){return["block","flex","list-item","table","-webkit-box"].indexOf(e)>-1};var a=0,s=["ms","moz","webkit","o"],c=e.requestAnimationFrame,u=e.cancelAnimationFrame;for(t=0;!c&&t<s.length;++t)c=e[s[t]+"RequestAnimationFrame"],u=e[s[t]+"CancelAnimationFrame"]||e[s[t]+"CancelRequestAnimationFrame"];c||(c=function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-a)),o=e.setTimeout(function(){t(n+r)},r);return a=n+r,o}),u||(u=function(t){e.clearTimeout(t)}),n.rAF=c.bind(e),n.cAF=u.bind(e);var f=["error","warn","log"],d=e.console||{};for(d.log=d.log||function(){},t=0;t<f.length;t++){var g=f[t];d[g]||(d[g]=d.log)}n.log=function(e){(e>f.length||e<=0)&&(e=f.length);var t=new Date,n=("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+":"+("00"+t.getMilliseconds()).slice(-3),r=f[e-1],o=Array.prototype.splice.call(arguments,1),i=Function.prototype.bind.call(d[r],d);o.unshift(n),i.apply(d,o)};var p=n.type=function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};p.String=function(e){return"string"===p(e)},p.Function=function(e){return"function"===p(e)},p.Array=function(e){return Array.isArray(e)},p.Number=function(e){return!p.Array(e)&&e-parseFloat(e)+1>=0},p.DomElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName};var h=n.get={};return h.elements=function(t){var n=[];if(p.String(t))try{t=document.querySelectorAll(t)}catch(e){return n}if("nodelist"===p(t)||p.Array(t))for(var r=0,o=n.length=t.length;r<o;r++){var i=t[r];n[r]=p.DomElement(i)?i:h.elements(i)}else(p.DomElement(t)||t===document||t===e)&&(n=[t]);return n},h.scrollTop=function(t){return t&&"number"==typeof t.scrollTop?t.scrollTop:e.pageYOffset||0},h.scrollLeft=function(t){return t&&"number"==typeof t.scrollLeft?t.scrollLeft:e.pageXOffset||0},h.width=function(e,t,n){return i("width",e,t,n)},h.height=function(e,t,n){return i("height",e,t,n)},h.offset=function(e,t){var n={top:0,left:0};if(e&&e.getBoundingClientRect){var r=e.getBoundingClientRect();n.top=r.top,n.left=r.left,t||(n.top+=h.scrollTop(),n.left+=h.scrollLeft())}return n},n.addClass=function(e,t){t&&(e.classList?e.classList.add(t):e.className+=" "+t)},n.removeClass=function(e,t){t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},n.css=function(e,t){if(p.String(t))return o(e)[l(t)];if(p.Array(t)){var n={},r=o(e);return t.forEach(function(e,t){n[e]=r[l(e)]}),n}for(var i in t){var a=t[i];a==parseFloat(a)&&(a+="px"),e.style[l(i)]=a}},n}(window||{});return e.Scene.prototype.addIndicators=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},e.Scene.prototype.removeIndicators=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},e.Scene.prototype.setTween=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},e.Scene.prototype.removeTween=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},e.Scene.prototype.setVelocity=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},e.Scene.prototype.removeVelocity=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},e}); 17!function(e,r){"function"==typeof define&&define.amd?define(["ScrollMagic"],r):r("object"==typeof exports?require("scrollmagic"):e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic)}(this,function(e){"use strict";var r="debug.addIndicators",t=window.console||{},i=Function.prototype.bind.call(t.error||t.log||function(){},t);e||i("("+r+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");var o=e._util,n=0;e.Scene.extend(function(){var e,r=this;r.addIndicators=function(t){if(!e){var i={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};t=o.extend({},i,t),n++,e=new s(r,t),r.on("add.plugin_addIndicators",e.add),r.on("remove.plugin_addIndicators",e.remove),r.on("destroy.plugin_addIndicators",r.removeIndicators),r.controller()&&e.add()}return r},r.removeIndicators=function(){return e&&(e.remove(),this.off("*.plugin_addIndicators"),e=void 0),r}}),e.Controller.addOption("addIndicators",!1),e.Controller.extend(function(){var t=this,i=t.info(),n=i.container,s=i.isDocument,d=i.vertical,a={groups:[]};t._indicators&&function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+r+")","->"),t._log.apply(this,arguments))}
17(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=a;var l=function(){a.updateBoundsPositions()},g=function(){a.updateTriggerGroupPositions()};return n.addEventListener("resize",g),s||(window.addEventListener("resize",g),window.addEventListener("scroll",g)),n.addEventListener("resize",l),n.addEventListener("scroll",l),this._indicators.updateBoundsPositions=function(e){for(var r,t,i,s=e?[o.extend({},e.triggerGroup,{members:[e]})]:a.groups,l=s.length,g={},c=d?"left":"top",p=d?"width":"height",u=d?o.get.scrollLeft(n)+o.get.width(n)-15:o.get.scrollTop(n)+o.get.height(n)-15;l--;)for(i=s[l],r=i.members.length,t=o.get[p](i.element.firstChild);r--;)g[c]=u-t,o.css(i.members[r].bounds,g)},this._indicators.updateTriggerGroupPositions=function(e){for(var r,i,l,g,c,p=e?[e]:a.groups,u=p.length,f=s?document.body:n,m=s?{top:0,left:0}:o.get.offset(f,!0),h=d?o.get.width(n)-15:o.get.height(n)-15,v=d?"width":"height",b=d?"Y":"X";u--;)r=p[u],i=r.element,l=r.triggerHook*t.info("size"),g=o.get[v](i.firstChild.firstChild),c=l>g?"translate"+b+"(-100%)":"",o.css(i,{top:m.top+(d?l:h-r.members[0].options.indent),left:m.left+(d?h-r.members[0].options.indent:l)}),o.css(i.firstChild.firstChild,{"-ms-transform":c,"-webkit-transform":c,transform:c})},this._indicators.updateTriggerGroupLabel=function(e){var r="trigger"+(e.members.length>1?"":" "+e.members[0].options.name),t=e.element.firstChild.firstChild;t.textContent!==r&&(t.textContent=r,d&&a.updateBoundsPositions())},this.addScene=function(r){this._options.addIndicators&&r instanceof e.Scene&&r.controller()===t&&r.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){n.removeEventListener("resize",g),s||(window.removeEventListener("resize",g),window.removeEventListener("scroll",g)),n.removeEventListener("resize",l),n.removeEventListener("scroll",l),this.$super.destroy.apply(this,arguments)},t});var s=function(e,t){var i,s,a=this,l=d.bounds(),g=d.start(t.colorStart),c=d.end(t.colorEnd),p=t.parent&&o.get.elements(t.parent)[0],u=function(){e._log&&(Array.prototype.splice.call(arguments,1,0,"("+r+")","->"),e._log.apply(this,arguments))};t.name=t.name||n,g.firstChild.textContent+=" "+t.name,c.textContent+=" "+t.name,l.appendChild(g),l.appendChild(c),a.options=t,a.bounds=l,a.triggerGroup=void 0,this.add=function(){s=e.controller(),i=s.info("vertical");var r=s.info("isDocument");p||(p=r?document.body:s.info("container")),r||"static"!==o.css(p,"position")||o.css(p,{position:"relative"}),e.on("change.plugin_addIndicators",m),e.on("shift.plugin_addIndicators",f),_(),b(),setTimeout(function(){s._indicators.updateBoundsPositions(a)},0),u(3,"added indicators")},this.remove=function(){if(a.triggerGroup){if(e.off("change.plugin_addIndicators",m),e.off("shift.plugin_addIndicators",f),a.triggerGroup.members.length>1){var r=a.triggerGroup;r.members.splice(r.members.indexOf(a),1),s._indicators.updateTriggerGroupLabel(r),s._indicators.updateTriggerGroupPositions(r),a.triggerGroup=void 0}else w();v(),u(3,"removed indicators")}};var f=function(){b()},m=function(e){"triggerHook"===e.what&&_()},h=function(){var e=s.info("vertical");o.css(g.firstChild,{"border-bottom-width":e?1:0,"border-right-width":e?0:1,bottom:e?-1:t.indent,right:e?t.indent:-1,padding:e?"0 8px":"2px 4px"}),o.css(c,{"border-top-width":e?1:0,"border-left-width":e?0:1,top:e?"100%":"",right:e?t.indent:"",bottom:e?"":t.indent,left:e?"":"100%",padding:e?"0 8px":"2px 4px"}),p.appendChild(l)},v=function(){l.parentNode.removeChild(l)},b=function(){l.parentNode!==p&&h();var r={};r[i?"top":"left"]=e.triggerPosition(),r[i?"height":"width"]=e.duration(),o.css(l,r),o.css(c,{display:e.duration()>0?"":"none"})},G=function(){var r=d.trigger(t.colorTrigger),n={};n[i?"right":"bottom"]=0,n[i?"border-top-width":"border-left-width"]=1,o.css(r.firstChild,n),o.css(r.firstChild.firstChild,{padding:i?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(r);var l={triggerHook:e.triggerHook(),element:r,members:[a]};s._indicators.groups.push(l),a.triggerGroup=l,s._indicators.updateTriggerGroupLabel(l),s._indicators.updateTriggerGroupPositions(l)},w=function(){s._indicators.groups.splice(s._indicators.groups.indexOf(a.triggerGroup),1),a.triggerGroup.element.parentNode.removeChild(a.triggerGroup.element),a.triggerGroup=void 0},_=function(){var r=e.triggerHook();if(!(a.triggerGroup&&Math.abs(a.triggerGroup.triggerHook-r)<1e-4)){for(var t,i=s._indicators.groups,o=i.length;o--;)if(t=i[o],Math.abs(t.triggerHook-r)<1e-4)return a.triggerGroup&&(1===a.triggerGroup.members.length?w():(a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),s._indicators.updateTriggerGroupLabel(a.triggerGroup),s._indicators.updateTriggerGroupPositions(a.triggerGroup))),t.members.push(a),a.triggerGroup=t,void s._indicators.updateTriggerGroupLabel(t);if(a.triggerGroup){if(1===a.triggerGroup.members.length)return a.triggerGroup.triggerHook=r,void s._indicators.updateTriggerGroupPositions(a.triggerGroup);a.triggerGroup.members.splice(a.triggerGroup.members.indexOf(a),1),s._indicators.updateTriggerGroupLabel(a.triggerGroup),s._indicators.updateTriggerGroupPositions(a.triggerGroup),a.triggerGroup=void 0}G()}}},d={start:function(e){var r=document.createElement("div");r.textContent="start",o.css(r,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e});var t=document.createElement("div");return o.css(t,{position:"absolute",overflow:"visible",width:0,height:0}),t.appendChild(r),t},end:function(e){var r=document.createElement("div");return r.textContent="end",o.css(r,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),r},bounds:function(){var e=document.createElement("div");return o.css(e,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":"0.85em"}),e.style.zIndex="9999",e},trigger:function(e){var r=document.createElement("div");r.textContent="trigger",o.css(r,{position:"relative"});var t=document.createElement("div");o.css(t,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),t.appendChild(r);var i=document.createElement("div");return o.css(i,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":"0.85em"}),i.style.zIndex="9999",i.appendChild(t),i}}}); 18!function(e,o){"function"==typeof define&&define.amd?define(["ScrollMagic","jquery"],o):"object"==typeof exports?o(require("scrollmagic"),require("jquery")):o(e.ScrollMagic,e.jQuery)}(this,function(e,o){"use strict";var r=window.console||{},l=Function.prototype.bind.call(r.error||r.log||function(){},r);e||l("(jquery.ScrollMagic) -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),o||l("(jquery.ScrollMagic) -> ERROR: jQuery could not be found. Please make sure it's loaded before ScrollMagic or use an asynchronous loader like requirejs."),e._util.get.elements=function(e){return o(e).toArray()},e._util.addClass=function(e,r){o(e).addClass(r)},e._util.removeClass=function(e,r){o(e).removeClass(r)},o.ScrollMagic=e}); 19!function(e,n){"function"==typeof define&&define.amd?define(["ScrollMagic","TweenMax","TimelineMax"],n):"object"==typeof exports?(require("gsap"),n(require("scrollmagic"),TweenMax,TimelineMax)):n(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.TweenMax||e.TweenLite,e.TimelineMax||e.TimelineLite)}(this,function(e,n,o){"use strict";var t=window.console||{},r=Function.prototype.bind.call(t.error||t.log||function(){},t);e||r("(animation.gsap) -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),n||r("(animation.gsap) -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),e.Scene.addOption("tweenChanges",!1,function(e){return!!e}),e.Scene.extend(function(){var e,t=this,r=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"(animation.gsap)","->"),t._log.apply(this,arguments))};t.on("progress.plugin_gsap",function(){i()}),t.on("destroy.plugin_gsap",function(e){t.removeTween(e.reset)});var i=function(){if(e){var n=t.progress(),o=t.state();e.repeat&&-1===e.repeat()?"DURING"===o&&e.paused()?e.play():"DURING"===o||e.paused()||e.pause():n!=e.progress()&&(0===t.duration()?n>0?e.play():e.reverse():t.tweenChanges()&&e.tweenTo?e.tweenTo(n*e.duration()):e.progress(n).pause())}};t.setTween=function(a,s,l){var c;arguments.length>1&&(arguments.length<3&&(l=s,s=1),a=n.to(a,s,l));try{c=o?new o({smoothChildTiming:!0}).add(a):a,c.pause()}catch(e){return r(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),t}if(e&&t.removeTween(),e=c,a.repeat&&-1===a.repeat()&&(e.repeat(-1),e.yoyo(a.yoyo())),t.tweenChanges()&&!e.tweenTo&&r(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),e&&t.controller()&&t.triggerElement()&&t.loglevel()>=2){var u=n.getTweensOf(t.triggerElement()),p=t.controller().info("vertical");u.forEach(function(e,n){var o=e.vars.css||e.vars;if(p?void 0!==o.top||void 0!==o.bottom:void 0!==o.left||void 0!==o.right)return r(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1})}if(parseFloat(TweenLite.version)>=1.14)for(var g,d,f=e.getChildren?e.getChildren(!0,!0,!1):[e],w=function(){r(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},h=0;h<f.length;h++)g=f[h],d!==w&&(d=g.vars.onOverwrite,g.vars.onOverwrite=function(){d&&d.apply(this,arguments),w.apply(this,arguments)});return r(3,"added tween"),i(),t},t.removeTween=function(n){return e&&(n&&e.progress(0).pause(),e.kill(),e=void 0,r(3,"removed tween (reset: "+(n?"true":"false")+")")),t}})}); 20!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(e,t,n,i){var o={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[o](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){o.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){o.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(o.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(o.features)return o.features;var e=o.createEl(),t=e.style,n="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!i.pointerEvent){var a=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var r=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);r&&r.length>0&&(r=parseInt(r[1],10))>=1&&r<8&&(i.isOldIOSPhone=!0)}var l=a.match(/Android\s([0-9\.]*)/),s=l?l[1]:0;s=parseFloat(s),s>=1&&(s<4.4&&(i.isOldAndroid=!0),i.androidVersion=s),i.isMobileOpera=/opera mini|o
20pera mobi/i.test(a)}for(var u,c,d=["transform","perspective","animationName"],p=["","webkit","Moz","ms","O"],m=0;m<4;m++){n=p[m];for(var f=0;f<3;f++)u=d[f],c=n+(n?u.charAt(0).toUpperCase()+u.slice(1):u),!i[u]&&c in t&&(i[u]=c);n&&!i.raf&&(n=n.toLowerCase(),i.raf=window[n+"RequestAnimationFrame"],i.raf&&(i.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!i.raf){var h=0;i.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),i=window.setTimeout(function(){e(t+n)},n);return h=t+n,i},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=i,i}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(o=t[l])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=r;e[a]("on"+o,n["oldIE"+o])}else e[a]("on"+o,n)});var a=this,r={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(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};o.extend(r,i);var l,s,u,c,d,p,m,f,h,y,v,x,g,w,b,I,C,D,M,T,S,A,E,O,k,R,Z,P,F,L,_,z,N,U,H,Y,B,W,G,X,V,K,q,$,j,J,Q,ee,te,ne,ie,oe,ae,re,le,se,ue=function(){return{x:0,y:0}},ce=ue(),de=ue(),pe=ue(),me={},fe=0,he={},ye=ue(),ve=0,xe=!0,ge=[],we={},be=!1,Ie=function(e,t){o.extend(a,t.publicMethods),ge.push(e)},Ce=function(e){var t=qt();return e>t-1?e-t:e<0?t+e:e},De={},Me=function(e,t){return De[e]||(De[e]=[]),De[e].push(t)},Te=function(e){var t=De[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(a,n)}},Se=function(){return(new Date).getTime()},Ae=function(e){re=e,a.bg.style.opacity=e*r.bgOpacity},Ee=function(e,t,n,i,o){(!be||o&&o!==a.currItem)&&(i/=o?o.fitRatio:a.currItem.fitRatio),e[A]=x+t+"px, "+n+"px"+g+" scale("+i+")"},Oe=function(e){te&&(e&&(y>a.currItem.fitRatio?be||(sn(a.currItem,!1,!0),be=!0):be&&(sn(a.currItem),be=!1)),Ee(te,pe.x,pe.y,y))},ke=function(e){e.container&&Ee(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Re=function(e,t){t[A]=x+e+"px, 0px"+g},Ze=function(e,t){if(!r.loop&&t){var n=c+(ye.x*fe-e)/ye.x,i=Math.round(e-ft.x);(n<0&&i>0||n>=qt()-1&&i<0)&&(e=ft.x+i*r.mainScrollEndFriction)}ft.x=e,Re(e,d)},Pe=function(e,t){var n=ht[e]-he[e];return de[e]+ce[e]+n-n*(t/v)},Fe=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Le=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},_e=null,ze=function(){_e&&(o.unbind(document,"mousemove",ze),o.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Te("mouseUsed")),_e=setTimeout(function(){_e=null},100)},Ne=function(){o.bind(document,"keydown",a),_.transform&&o.bind(a.scrollWrap,"click",a),r.mouseUsed||o.bind(document,"mousemove",ze),o.bind(window,"resize scroll",a),Te("bindEvents")},Ue=function(){o.unbind(window,"resize",a),o.unbind(window,"scroll",h.scroll),o.unbind(document,"keydown",a),o.unbind(document,"mousemove",ze),_.transform&&o.unbind(a.scrollWrap,"click",a),W&&o.unbind(window,m,a),Te("unbindEvents")},He=function(e,t){var n=on(a.currItem,me,e);return t&&(ee=n),n},Ye=function(e){return e||(e=a.currItem),e.initialZoomLevel},Be=function(e){return e||(e=a.currItem),e.w>0?r.maxSpreadZoom:1},We=function(e,t,n,i){return i===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Pe(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Ge=function(){if(A){var t=_.perspective&&!O;return x="translate"+(t?"3d(":"("),void(g=_.perspective?", 0px)":")")}A="left",o.addClass(e,"pswp--ie"),Re=function(e,t){t.left=e+"px"},ke=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,i=t*e.w,o=t*e.h;n.width=i+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"}
20,Oe=function(){if(te){var e=te,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,i=n*t.w,o=n*t.h;e.width=i+"px",e.height=o+"px",e.left=pe.x+"px",e.top=pe.y+"px"}}},Xe=function(e){var t="";r.escKey&&27===e.keyCode?t="close":r.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,a[t]()))},Ve=function(e){e&&(V||X||ne||Y)&&(e.preventDefault(),e.stopPropagation())},Ke=function(){a.setScrollOffset(0,o.getScrollY())},qe={},$e=0,je=function(e){qe[e]&&(qe[e].raf&&R(qe[e].raf),$e--,delete qe[e])},Je=function(e){qe[e]&&je(e),qe[e]||($e++,qe[e]={})},Qe=function(){for(var e in qe)qe.hasOwnProperty(e)&&je(e)},et=function(e,t,n,i,o,a,r){var l,s=Se();Je(e);var u=function(){if(qe[e]){if((l=Se()-s)>=i)return je(e),a(n),void(r&&r());a((n-t)*o(l/i)+t),qe[e].raf=k(u)}};u()},tt={shout:Te,listen:Me,viewportSize:me,options:r,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return y},getCurrentIndex:function(){return c},isDragging:function(){return W},isZooming:function(){return j},setScrollOffset:function(e,t){he.x=e,L=he.y=t,Te("updateScrollOffset",he)},applyZoomPan:function(e,t,n,i){pe.x=t,pe.y=n,y=e,Oe(i)},init:function(){if(!l&&!s){var n;a.framework=o,a.template=e,a.bg=o.getChildByClass(e,"pswp__bg"),Z=e.className,l=!0,_=o.detectFeatures(),k=_.raf,R=_.caf,A=_.transform,F=_.oldIE,a.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),a.container=o.getChildByClass(a.scrollWrap,"pswp__container"),d=a.container.style,a.itemHolders=I=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],I[0].el.style.display=I[2].el.style.display="none",Ge(),h={resize:a.updateSize,scroll:Ke,keydown:Xe,click:Ve};var i=_.isOldIOSPhone||_.isOldAndroid||_.isMobileOpera;for(_.animationName&&_.transform&&!i||(r.showAnimationDuration=r.hideAnimationDuration=0),n=0;n<ge.length;n++)a["init"+ge[n]]();if(t){(a.ui=new t(a,o)).init()}Te("firstUpdate"),c=c||r.index||0,(isNaN(c)||c<0||c>=qt())&&(c=0),a.currItem=Kt(c),(_.isOldIOSPhone||_.isOldAndroid)&&(xe=!1),e.setAttribute("aria-hidden","false"),r.modal&&(xe?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===L&&(Te("initialLayout"),L=P=o.getScrollY());var u="pswp--open ";for(r.mainClass&&(u+=r.mainClass+" "),r.showHideOpacity&&(u+="pswp--animate_opacity "),u+=O?"pswp--touch":"pswp--notouch",u+=_.animationName?" pswp--css_animation":"",u+=_.svg?" pswp--svg":"",o.addClass(e,u),a.updateSize(),p=-1,ve=null,n=0;n<3;n++)Re((n+p)*ye.x,I[n].el.style);F||o.bind(a.scrollWrap,f,a),Me("initialZoomInEnd",function(){a.setContent(I[0],c-1),a.setContent(I[2],c+1),I[0].el.style.display=I[2].el.style.display="block",r.focus&&e.focus(),Ne()}),a.setContent(I[1],c),a.updateCurrItem(),Te("afterInit"),xe||(w=setInterval(function(){$e||W||j||y!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){l&&(l=!1,s=!0,Te("close"),Ue(),jt(a.currItem,null,!0,a.destroy))},destroy:function(){Te("destroy"),Wt&&clearTimeout(Wt),e.setAttribute("aria-hidden","true"),e.className=Z,w&&clearInterval(w),o.unbind(a.scrollWrap,f,a),o.unbind(window,"scroll",a),wt(),Qe(),De=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),pe.x=e,pe.y=t,Oe()},handleEvent:function(e){e=e||window.event,h[e.type]&&h[e.type](e)},goTo:function(e){e=Ce(e);var t=e-c;ve=t,c=e,a.currItem=Kt(c),fe-=t,Ze(ye.x*fe),Qe(),ne=!1,a.updateCurrItem()},next:function(){a.goTo(c+1)},prev:function(){a.goTo(c-1)},updateCurrZoomItem:function(e){if(e&&Te("beforeChange",0),I[1].el.children.length){var t=I[1].el.children[0];te=o.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=a.currItem.bounds,v=y=a.currItem.initialZoomLevel,pe.x=ee.center.x,pe.y=ee.center.y,e&&Te("afterChange")},invalidateCurrItems:function(){b=!0;for(var e=0;e<3;e++)I[e].item&&(I[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ve){var t,n=Math.abs(ve);if(!(e&&n<2)){a.currItem=Kt(c),be=!1,Te("beforeChange",ve),n>=3&&(p+=ve+(ve>0?-3:3),n=3);for(var i=0;i<n;i++)ve>0?(t=I.shift(),I[2]=t,p++,Re((p+2)*ye.x,t.el.style),a.setContent(t,c-n+i+1+1)):(t=I.pop(),I.unshift(t),p--,Re(p*ye.x,t.el.style),a.setContent(t,c+n-i-1-1));if(te&&1===Math.abs(ve)){var o=Kt(C);o.initialZoomLevel!==y&&(on(o,me),sn(o),ke(o))}ve=0,a.updateCurrZoomItem(),C=c,Te("afterChange")}}},updateSize:function(t){if(!xe&&r.modal){var n=o.getScrollY();if(L!==n&&(e.style.top=n+"px",L=n),!t&&we.x===window.innerWidth&&we.y===window.innerHeight)return;we.x=window.innerWidth,we.y=window.innerHeight,e.style.height=we.y+"px"}if(me.x=a.scrollWrap.clientWidth,me.y=a.scrollWrap.clientHeight,Ke(),ye.x=me.x+Math.round(me.x*r.spacing),ye.y=me.y,Ze(ye.x*fe),Te("beforeResize"),void 0!==p){for(var i,l,s,u=0;u<3;u++)i=I[u],Re((u+p)*ye.x,i.el.style),s=c+u-1,r.loop&&qt()>2&&(s=Ce(s)),l=Kt(s),l&&(b||l.needsUpdate||!l.bounds)?(a.cleanSlide(l),a.setContent(i,s),1===u&&(a.currItem=l,a.updateCurrZoomItem(!0)),l.needsUpdate=!1):-1===i.index&&s>=0&&a.setContent(i,s),l&&l.container&&(on(l,me),sn(l),ke(l));b=!1}v=y=a.currItem.initialZoomLevel,ee=a.currItem.bounds,ee&&(pe.x=ee.center.x,pe.y=ee.center.y,Oe(!0)),Te("resize")},zoomTo:function(e,t,n,i,a){t&&(v=y,ht.x=Math.abs(t.x)-pe.x,ht.y=Math.abs(t.y)-pe.y,Fe(de,pe));var r=He(e,!1),l={};We("x",r,l,e),We("y",r,l,e);var s=y,u={x:pe.x,y:pe.y};Le(l);var c=function(t){1===t?(y=e,pe.x=l.x,pe.y=l.y):(y=(e-s)*t+s,pe.x=(l.x-u.x)*t+u.x,pe.
20y=(l.y-u.y)*t+u.y),a&&a(t),Oe(1===t)};n?et("customZoomTo",0,1,n,i||o.easing.sine.inOut,c):c(1)}},nt={},it={},ot={},at={},rt={},lt=[],st={},ut=[],ct={},dt=0,pt=ue(),mt=0,ft=ue(),ht=ue(),yt=ue(),vt=function(e,t){return e.x===t.x&&e.y===t.y},xt=function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25},gt=function(e,t){return ct.x=Math.abs(e.x-t.x),ct.y=Math.abs(e.y-t.y),Math.sqrt(ct.x*ct.x+ct.y*ct.y)},wt=function(){K&&(R(K),K=null)},bt=function(){W&&(K=k(bt),_t())},It=function(){return!("fit"===r.scaleMode&&y===a.currItem.initialZoomLevel)},Ct=function(e,t){return!(!e||e===document)&&(!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:Ct(e.parentNode,t)))},Dt={},Mt=function(e,t){return Dt.prevent=!Ct(e.target,r.isClickableElement),Te("preventDragEvent",e,t,Dt),Dt.prevent},Tt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},St=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},At=function(e,t,n){if(e-N>50){var i=ut.length>2?ut.shift():{};i.x=t,i.y=n,ut.push(i),N=e}},Et=function(){var e=pe.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(me.y/2))},Ot={},kt={},Rt=[],Zt=function(e){for(;Rt.length>0;)Rt.pop();return E?(se=0,lt.forEach(function(e){0===se?Rt[0]=e:1===se&&(Rt[1]=e),se++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Rt[0]=Tt(e.touches[0],Ot),e.touches.length>1&&(Rt[1]=Tt(e.touches[1],kt))):(Ot.x=e.pageX,Ot.y=e.pageY,Ot.id="",Rt[0]=Ot),Rt},Pt=function(e,t){var n,i,o,l,s=pe[e]+t[e],u=t[e]>0,c=ft.x+t.x,d=ft.x-st.x;if(n=s>ee.min[e]||s<ee.max[e]?r.panEndFriction:1,s=pe[e]+t[e]*n,(r.allowPanToNext||y===a.currItem.initialZoomLevel)&&(te?"h"!==ie||"x"!==e||X||(u?(s>ee.min[e]&&(n=r.panEndFriction,ee.min[e]-s,i=ee.min[e]-de[e]),(i<=0||d<0)&&qt()>1?(l=c,d<0&&c>st.x&&(l=st.x)):ee.min.x!==ee.max.x&&(o=s)):(s<ee.max[e]&&(n=r.panEndFriction,s-ee.max[e],i=de[e]-ee.max[e]),(i<=0||d>0)&&qt()>1?(l=c,d>0&&c<st.x&&(l=st.x)):ee.min.x!==ee.max.x&&(o=s))):l=c,"x"===e))return void 0!==l&&(Ze(l,!0),q=l!==st.x),ee.min.x!==ee.max.x&&(void 0!==o?pe.x=o:q||(pe.x+=t.x*n)),void 0!==l;ne||q||y>a.currItem.fitRatio&&(pe[e]+=t[e]*n)},Ft=function(e){if(!("mousedown"===e.type&&e.button>0)){if(Vt)return void e.preventDefault();if(!B||"mousedown"!==e.type){if(Mt(e,!0)&&e.preventDefault(),Te("pointerDown"),E){var t=o.arraySearch(lt,e.pointerId,"id");t<0&&(t=lt.length),lt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Zt(e),i=n.length;$=null,Qe(),W&&1!==i||(W=oe=!0,o.bind(window,m,a),H=le=ae=Y=q=V=G=X=!1,ie=null,Te("firstTouchStart",n),Fe(de,pe),ce.x=ce.y=0,Fe(at,n[0]),Fe(rt,at),st.x=ye.x*fe,ut=[{x:at.x,y:at.y}],N=z=Se(),He(y,!0),wt(),bt()),!j&&i>1&&!ne&&!q&&(v=y,X=!1,j=G=!0,ce.y=ce.x=0,Fe(de,pe),Fe(nt,n[0]),Fe(it,n[1]),St(nt,it,yt),ht.x=Math.abs(yt.x)-pe.x,ht.y=Math.abs(yt.y)-pe.y,J=Q=gt(nt,it))}}},Lt=function(e){if(e.preventDefault(),E){var t=o.arraySearch(lt,e.pointerId,"id");if(t>-1){var n=lt[t];n.x=e.pageX,n.y=e.pageY}}if(W){var i=Zt(e);if(ie||V||j)$=i;else if(ft.x!==ye.x*fe)ie="h";else{var a=Math.abs(i[0].x-at.x)-Math.abs(i[0].y-at.y);Math.abs(a)>=10&&(ie=a>0?"h":"v",$=i)}}},_t=function(){if($){var e=$.length;if(0!==e)if(Fe(nt,$[0]),ot.x=nt.x-at.x,ot.y=nt.y-at.y,j&&e>1){if(at.x=nt.x,at.y=nt.y,!ot.x&&!ot.y&&vt($[1],it))return;Fe(it,$[1]),X||(X=!0,Te("zoomGestureStarted"));var t=gt(nt,it),n=Yt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(le=!0);var i=1,o=Ye(),l=Be();if(n<o)if(r.pinchToClose&&!le&&v<=a.currItem.initialZoomLevel){var s=o-n,u=1-s/(o/1.2);Ae(u),Te("onPinchClose",u),ae=!0}else i=(o-n)/o,i>1&&(i=1),n=o-i*(o/3);else n>l&&(i=(n-l)/(6*o),i>1&&(i=1),n=l+i*o);i<0&&(i=0),J=t,St(nt,it,pt),ce.x+=pt.x-yt.x,ce.y+=pt.y-yt.y,Fe(yt,pt),pe.x=Pe("x",n),pe.y=Pe("y",n),H=n>y,y=n,Oe()}else{if(!ie)return;if(oe&&(oe=!1,Math.abs(ot.x)>=10&&(ot.x-=$[0].x-rt.x),Math.abs(ot.y)>=10&&(ot.y-=$[0].y-rt.y)),at.x=nt.x,at.y=nt.y,0===ot.x&&0===ot.y)return;if("v"===ie&&r.closeOnVerticalDrag&&!It()){ce.y+=ot.y,pe.y+=ot.y;var c=Et();return Y=!0,Te("onVerticalDrag",c),Ae(c),void Oe()}At(Se(),nt.x,nt.y),V=!0,ee=a.currItem.bounds;var d=Pt("x",ot);d||(Pt("y",ot),Le(pe),Oe())}}},zt=function(e){if(_.isOldAndroid){if(B&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(B),B=setTimeout(function(){B=0},600))}Te("pointerUp"),Mt(e,!1)&&e.preventDefault();var t;if(E){var n=o.arraySearch(lt,e.pointerId,"id");if(n>-1)if(t=lt.splice(n,1)[0],navigator.pointerEnabled)t.type=e.pointerType||"mouse";else{var i={4:"mouse",2:"touch",3:"pen"};t.type=i[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}}var l,s=Zt(e),u=s.length;if("mouseup"===e.type&&(u=0),2===u)return $=null,!0;1===u&&Fe(rt,s[0]),0!==u||ie||ne||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Te("touchRelease",e,t));var c=-1;if(0===u&&(W=!1,o.unbind(window,m,a),wt(),j?c=0:-1!==mt&&(c=Se()-mt)),mt=1===u?Se():-1,l=-1!==c&&c<150?"zoom":"swipe",j&&u<2&&(j=!1,1===u&&(l="zoomPointerUp"),Te("zoomGestureEnded")),$=null,V||X||ne||Y)if(Qe(),U||(U=Nt()),U.calculateSwipeSpeed("x"),Y){var d=Et();if(d<r.verticalDragRange)a.close();else{var p=pe.y,f=re;et("verticalDrag",0,1,300,o.easing.cubic.out,function(e){pe.y=(a.currItem.initialPosition.y-p)*e+p,Ae((1-f)*e+f),Oe()}),Te("onVerticalDrag",1)}}else{if((q||ne)&&0===u){var h=Ht(l,U);if(h)return;l="zoomPointerUp"}if(!ne)return"swipe"!==l?void Bt():void(!q&&y>a.currItem.fitRatio&&Ut(U))}},Nt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
20,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){ut.length>1?(e=Se()-N+50,t=ut[ut.length-2][i]):(e=Se()-z,t=rt[i]),n.lastFlickOffset[i]=at[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/e:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(pe[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:pe[e]<ee.max[e]&&(n.backAnimDestination[e]=ee.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,et("bounceZoomPan"+e,pe[e],n.backAnimDestination[e],t||300,o.easing.sine.out,function(t){pe[e]=t,Oe()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,pe[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(qe.zoomPan&&(qe.zoomPan.raf=k(n.panAnimLoop),n.now=Se(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Oe(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return pe.x=Math.round(pe.x),pe.y=Math.round(pe.y),Oe(),void je("zoomPan")}};return n},Ut=function(e){if(e.calculateSwipeSpeed("y"),ee=a.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;Je("zoomPan"),e.lastNow=Se(),e.panAnimLoop()},Ht=function(e,t){var n;ne||(dt=c);var i;if("swipe"===e){var l=at.x-rt.x,s=t.lastFlickDist.x<10;l>30&&(s||t.lastFlickOffset.x>20)?i=-1:l<-30&&(s||t.lastFlickOffset.x<-20)&&(i=1)}var u;i&&(c+=i,c<0?(c=r.loop?qt()-1:0,u=!0):c>=qt()&&(c=r.loop?0:qt()-1,u=!0),u&&!r.loop||(ve+=i,fe-=i,n=!0));var d,p=ye.x*fe,m=Math.abs(p-ft.x);return n||p>ft.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,dt===c&&(n=!1),ne=!0,Te("mainScrollAnimStart"),et("mainScroll",ft.x,p,d,o.easing.cubic.out,Ze,function(){Qe(),ne=!1,dt=-1,(n||dt!==c)&&a.updateCurrItem(),Te("mainScrollAnimComplete")}),n&&a.updateCurrItem(!0),n},Yt=function(e){return 1/Q*e*v},Bt=function(){var e=y,t=Ye(),n=Be();y<t?e=t:y>n&&(e=n);var i,r=re;return ae&&!H&&!le&&y<t?(a.close(),!0):(ae&&(i=function(e){Ae((1-r)*e+r)}),a.zoomTo(e,0,200,o.easing.cubic.out,i),!0)};Ie("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,i,o){D=e+t,M=e+n,T=e+i,S=o?e+o:""};E=_.pointerEvent,E&&_.touch&&(_.touch=!1),E?navigator.pointerEnabled?e("pointer","down","move","up","cancel"):e("MSPointer","Down","Move","Up","Cancel"):_.touch?(e("touch","start","move","end","cancel"),O=!0):e("mouse","down","move","up"),m=M+" "+T+" "+S,f=D,E&&!O&&(O=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=O,h[D]=Ft,h[M]=Lt,h[T]=zt,S&&(h[S]=h[T]),_.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[D],h.mousemove=h[M],h.mouseup=h[T]),O||(r.allowPanToNext=!1)}}});var Wt,Gt,Xt,Vt,Kt,qt,$t,jt=function(t,n,i,l){Wt&&clearTimeout(Wt),Vt=!0,Xt=!0;var s;t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=r.getThumbBoundsFn&&r.getThumbBoundsFn(c);var d=i?r.hideAnimationDuration:r.showAnimationDuration,p=function(){je("initialZoom"),i?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Ae(1),n&&(n.style.display="block"),o.addClass(e,"pswp--animated-in"),Te("initialZoom"+(i?"OutEnd":"InEnd"))),l&&l(),Vt=!1};if(!d||!s||void 0===s.x)return Te("initialZoom"+(i?"Out":"In")),y=t.initialZoomLevel,Fe(pe,t.initialPosition),Oe(),e.style.opacity=i?0:1,Ae(1),void(d?setTimeout(function(){p()},d):p());!function(){var n=u,l=!a.currItem.src||a.currItem.loadError||r.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(y=s.w/t.w,pe.x=s.x,pe.y=s.y-P,a[l?"template":"bg"].style.opacity=.001,Oe()),Je("initialZoom"),i&&
20!n&&o.removeClass(e,"pswp--animated-in"),l&&(i?o[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Wt=setTimeout(function(){if(Te("initialZoom"+(i?"Out":"In")),i){var a=s.w/t.w,r={x:pe.x,y:pe.y},u=y,c=re,m=function(t){1===t?(y=a,pe.x=s.x,pe.y=s.y-L):(y=(a-u)*t+u,pe.x=(s.x-r.x)*t+r.x,pe.y=(s.y-L-r.y)*t+r.y),Oe(),l?e.style.opacity=1-t:Ae(c-t*c)};n?et("initialZoom",0,1,d,o.easing.cubic.out,m,p):(m(1),Wt=setTimeout(p,d+20))}else y=t.initialZoomLevel,Fe(pe,t.initialPosition),Oe(),Ae(1),l?e.style.opacity=1:Ae(1),Wt=setTimeout(p,d+20)},i?25:90)}()},Jt={},Qt=[],en={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 Gt.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},nn=function(e,t,n){var i=e.bounds;i.center.x=Math.round((Jt.x-t)/2),i.center.y=Math.round((Jt.y-n)/2)+e.vGap.top,i.max.x=t>Jt.x?Math.round(Jt.x-t):i.center.x,i.max.y=n>Jt.y?Math.round(Jt.y-n)+e.vGap.top:i.center.y,i.min.x=t>Jt.x?0:i.center.x,i.min.y=n>Jt.y?e.vGap.top:i.center.y},on=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),Te("parseVerticalMargin",e)),Jt.x=t.x,Jt.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=Jt.x/e.w,a=Jt.y/e.h;e.fitRatio=o<a?o:a;var l=r.scaleMode;"orig"===l?n=1:"fit"===l&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=tn())}if(!n)return;return nn(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tn(),e.initialPosition=e.bounds.center,e.bounds},an=function(e,t,n,i,o,r){t.loadError||i&&(t.imageAppended=!0,sn(t,i,t===a.currItem&&be),n.appendChild(i),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},rn=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},ln=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.
20src),!0},sn=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),o=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=o+"px"),t.style.width=i+"px",t.style.height=o+"px"}},un=function(){if(Qt.length){for(var e,t=0;t<Qt.length;t++)e=Qt[t],e.holder.index===e.index&&an(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Qt=[]}};Ie("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ce(e);var t=Kt(e);t&&(!t.loaded&&!t.loading||b)&&(Te("gettingData",e,t),t.src&&rn(t))},initController:function(){o.extend(r,en,!0),a.items=Gt=n,Kt=a.getItemAt,qt=r.getNumItemsFn,$t=r.loop,qt()<3&&(r.loop=!1),Me("beforeChange",function(e){var t,n=r.preload,i=null===e||e>=0,o=Math.min(n[0],qt()),l=Math.min(n[1],qt());for(t=1;t<=(i?l:o);t++)a.lazyLoadItem(c+t);for(t=1;t<=(i?o:l);t++)a.lazyLoadItem(c-t)}),Me("initialLayout",function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(c)}),Me("mainScrollAnimComplete",un),Me("initialZoomInEnd",un),Me("destroy",function(){for(var e,t=0;t<Gt.length;t++)e=Gt[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);Qt=null})},getItemAt:function(e){return e>=0&&(void 0!==Gt[e]&&Gt[e])},allowProgressiveImg:function(){return r.forceProgressiveLoading||!O||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=Ce(t));var n=a.getItemAt(e.index);n&&(n.container=null);var i,s=a.getItemAt(t);if(!s)return void(e.el.innerHTML="");Te("gettingData",t,s),e.index=t,e.item=s;var u=s.container=o.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?u.appendChild(s.html):u.innerHTML=s.html),ln(s),on(s,me),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&(i=o.createEl("pswp__img","img"),i.style.opacity=1,i.src=s.src,sn(s,i),an(0,s,u,i));else{if(s.loadComplete=function(n){if(l){if(e&&e.index===t){if(ln(n,!0))return n.loadComplete=n.img=null,on(n,me),ke(n),void(e.index===c&&a.updateCurrZoomItem());n.imageAppended?!Vt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):_.transform&&(ne||Vt)?Qt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):an(0,n,u,n.img,0,!0)}n.loadComplete=null,n.img=null,Te("imageLoadComplete",t,n)}},o.features.transform){var d="pswp__img pswp__img--placeholder";d+=s.msrc?"":" pswp__img--placeholder--blank";var p=o.createEl(d,s.msrc?"img":"");s.msrc&&(p.src=s.msrc),sn(s,p),u.appendChild(p),s.placeholder=p}s.loading||rn(s),a.allowProgressiveImg()&&(!Xt&&_.transform?Qt.push({item:s,baseDiv:u,img:s.img,index:t,holder:e}):an(0,s,u,s.img,0,!0))}Xt||t!==c?ke(s):(te=u.style,jt(s,i||s.img)),e.el.innerHTML="",e.el.appendChild(u)},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var cn,dn={},pn=function(e,t,n){var i=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(i)};Ie("Tap",{publicMethods:{initTap:function(){Me("firstTouchStart",a.onTapStart),Me("touchRelease",a.onTapRelease),Me("destroy",function(){dn={},cn=null})},onTapStart:function(e){e.length>1&&(clearTimeout(cn),cn=null)},onTapRelease:function(e,t){if(t&&!V&&!G&&!$e){var n=t;if(cn&&(clearTimeout(cn),cn=null,xt(n,dn)))return void Te("doubleTap",n);if("mouse"===t.type)return void pn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void pn(e,t);Fe(dn,n),cn=setTimeout(function(){pn(e,t),cn=null},300)}}}});var mn;Ie("DesktopZoom",{publicMethods:{initDesktopZoom:function(){F||(O?Me("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){mn={};var n="wheel mousewheel DOMMouseScroll";Me("bindEvents",function(){o.bind(e,n,a.handleMouseWheel)}),Me("unbindEvents",function(){mn&&o.unbind(e,n,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var i,r=function(){a.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),y<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),l()},l=function(){i&&(o.removeClass(e,"pswp--dragging"),i=!1)};Me("resize",r),Me("afterChange",r),Me("pointerDown",function(){a.mouseZoomedIn&&(i=!0,o.addClass(e,"pswp--dragging"))}),Me("pointerUp",l),t||r()},handleMouseWheel:function(e){if(y<=a.currItem.fitRatio)return r.modal&&(!r.closeOnScroll||$e||W?e.preventDefault():A&&Math.abs(e.deltaY)>2&&(u=!0,a.close())),!0;if(e.stopPropagation(),mn.x=0,"deltaX"in e)1===e.deltaMode?(mn.x=18*e.deltaX,mn.y=18*e.deltaY):(mn.x=e.deltaX,mn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(mn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?mn.y=-.16*e.wheelDeltaY:mn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;mn.y=e.detail}He(y,!0);var t=pe.x-mn.x,n=pe.y-mn.y;(r.modal||t<=ee.min.x&&t>=ee.max.x&&n<=ee.min.y&&n>=ee.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:me.x/2+he.x,y:me.y/2+he.y};var n=r.getDoubleTapZoom(!0,a.currItem),i=y===n;a.mouseZoomedIn=!i,a.zoomTo(i?a.currItem.initialZoomLevel:n,t,333),o[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var fn,hn,yn,vn,xn,gn,wn,bn,In,Cn,Dn,Mn,Tn={history:!0,galleryUID:1},Sn=function(){return Dn.hash.substring(1)},An=function(){fn&&clearTimeout(fn),yn&&clearTimeout(yn)},En=function(){var e=Sn(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var o=i[n].split("=");o.length<2||(t[o[0]]=o[1])}if(r.galleryPIDs){var a=t.pid;for(t.pid=0,n=0;n<Gt.length;n++)if(Gt[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},On=function(){if(yn&&clearTimeout(yn),$e||W)return void(yn=setTimeout(On,500));vn?clearTimeout(hn):vn=!0;var e=c+1,t=Kt(c);t.hasOwnProperty("pid")&&(e=t.pid);var n=wn+"&gid="+r.galleryUID+"&pid="+e;bn||-1===Dn.hash.indexOf(n)&&(Cn=!0);var i=Dn.href.split("#")[0]+"#"+n;Mn?"#"+n!==window.location.hash&&history[bn?"replaceState":"pushState"]("",document.title,i):bn?Dn.replace(i):Dn.hash=n,bn=!0,hn=setTimeout(function(){vn=!1},60)};Ie("History",{publicMethods:{initHistory:function(){if(o.extend(r,Tn,!0),r.history){Dn=window.location,Cn=!1,In=!1,bn=!1,wn=Sn(),Mn="pushState"in history,wn.indexOf("gid=")>-1&&(wn=wn.split("&gid=")[0],wn=wn.split("?gid=")[0]),Me("afterChange",a.updateURL),Me("unbindEvents",function(){o.unbind(window,"hashchange",a.onHashChange)});var e=function(){gn=!0,In||(Cn?history.back():wn?Dn.hash=wn:Mn?history.pushState("",document.title,Dn.pathname+Dn.search):Dn.hash=""),An()};Me("unbindEvents",function(){u&&e()}),Me("destroy",function(){gn||e()}),Me("firstUpdate",function(){c=En().pid});var t=wn.indexOf("pid=");t>-1&&(wn=wn.substring(0,t),"&"===wn.slice(-1)&&(wn=wn.slice(0,-1))),setTimeout(function(){l&&o.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){if(Sn()===wn)return In=!0,void a.close();vn||(xn=!0,a.goTo(En().pid),xn=!1)},updateURL:function(){An(),xn||(bn?fn=setTimeout(On,800):On())}}}),o.extend(a,tt)}}); 21!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(e,t){var n,o,l,r,i,s,a,u,c,p,d,m,f,h,w,g,v,b,_,C=this,T=!1,I=!0,E=!0,F={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl
21:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},x=function(e){if(g)return!0;e=e||window.event,w.timeToIdle&&w.mouseUsed&&!c&&D();for(var n,o,l=e.target||e.srcElement,r=l.getAttribute("class")||"",i=0;i<N.length;i++)n=N[i],n.onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),g=!0;var s=t.features.isOldAndroid?600:30;v=setTimeout(function(){g=!1},s)}},S=function(){return!e.likelyTouchDevice||w.mouseUsed||screen.width>w.fitControlsWidth},k=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},K=function(){var e=1===w.getNumItemsFn();e!==h&&(k(o,"ui--one-slide",e),h=e)},L=function(){k(a,"share-modal--hidden",E)},O=function(){return E=!E,E?(t.removeClass(a,"pswp__share-modal--fade-in"),setTimeout(function(){E&&L()},300)):(L(),setTimeout(function(){E||t.addClass(a,"pswp__share-modal--fade-in")},30)),E||y(),!1},R=function(t){t=t||window.event;var n=t.target||t.srcElement;return e.shout("shareLinkClick",t,n),!!n.href&&(!!n.hasAttribute("download")||(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),E||O(),!1))},y=function(){for(var e,t,n,o,l,r="",i=0;i<w.shareButtons.length;i++)e=w.shareButtons[i],n=w.getImageURLForShare(e),o=w.getPageURLForShare(e),l=w.getTextForShare(e),t=e.url.replace("{{url}}",encodeURIComponent(o)).replace("{{image_url}}",encodeURIComponent(n)).replace("{{raw_image_url}}",n).replace("{{text}}",encodeURIComponent(l)),r+='<a href="'+t+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",w.parseShareButtonOut&&(r=w.parseShareButtonOut(e,r));a.children[0].innerHTML=r,a.children[0].onclick=R},z=function(e){for(var n=0;n<w.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+w.closeElClasses[n]))return!0},M=0,D=function(){clearTimeout(_),M=0,c&&C.setIdle(!1)},A=function(e){e=e||window.event;var t=e.relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(_),_=setTimeout(function(){C.setIdle(!0)},w.timeToIdleOutside))},P=function(){w.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=C.getFullscreenAPI()),n?(t.bind(document,n.eventK,C.updateFullscreen),C.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs"))},U=function(){w.preloaderEl&&(Z(!0),p("beforeChange",function(){clearTimeout(f),f=setTimeout(function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&Z(!1):Z(!0)},w.loadingIndicatorDelay)}),p("imageLoadComplete",function(t,n){e.currItem===n&&Z(!0)}))},Z=function(e){m!==e&&(k(d,"preloader--active",!e),m=e)},q=function(e){var n=e.vGap;if(S()){var i=w.barsSize;if(w.captionEl&&"auto"===i.bottom)if(r||(r=t.createEl("pswp__caption pswp__caption--fake"),r.appendChild(t.createEl("pswp__caption__center")),o.insertBefore(r,l),t.addClass(o,"pswp__ui--fit")),w.addCaptionHTMLFn(e,r,!0)){var s=r.clientHeight;n.bottom=parseInt(s,10)||44}else n.bottom=i.top;else n.bottom="auto"===i.bottom?0:i.bottom;n.top=i.top}else n.top=n.bottom=0},B=function(){w.timeToIdle&&p("mouseUsed",function(){t.bind(document,"mousemove",D),t.bind(document,"mouseout",A),b=setInterval(function(){2===++M&&C.setIdle(!0)},w.timeToIdle/2)})},H=function(){p("onVerticalDrag",function(e){I&&e<.95?C.hideControls():!I&&e>=.95&&C.showControls()});var e;p("onPinchClose",function(t){I&&t<.9?(C.hideControls(),e=!0):e&&!I&&t>.9&&C.showControls()}),p("zoomGestureEnded",function(){(e=!1)&&!I&&C.showControls()})},N=[{name:"caption",option:"captionEl",onInit:function(e){l=e}},{name:"share-modal",option:"shareEl",onInit:function(e){a=e},onTap:function(){O()}},{name:"button--share",option:"shareEl",onInit:function(e){s=e},onTap:function(){O()}}
21,{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){i=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){d=e}}],W=function(){var e,n,l,r=function(o){if(o)for(var r=o.length,i=0;i<r;i++){e=o[i],n=e.className;for(var s=0;s<N.length;s++)l=N[s],n.indexOf("pswp__"+l.name)>-1&&(w[l.option]?(t.removeClass(e,"pswp__element--disabled"),l.onInit&&l.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};r(o.children);var i=t.getChildByClass(o,"pswp__top-bar");i&&r(i.children)};C.init=function(){t.extend(e.options,F,!0),w=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),p=e.listen,H(),p("beforeChange",C.update),p("doubleTap",function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(w.getDoubleTapZoom(!1,e.currItem),t,333)}),p("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),p("bindEvents",function(){t.bind(o,"pswpTap click",x),t.bind(e.scrollWrap,"pswpTap",C.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",C.onMouseOver)}),p("unbindEvents",function(){E||O(),b&&clearInterval(b),t.unbind(document,"mouseout",A),t.unbind(document,"mousemove",D),t.unbind(o,"pswpTap click",x),t.unbind(e.scrollWrap,"pswpTap",C.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",C.onMouseOver),n&&(t.unbind(document,n.eventK,C.updateFullscreen),n.isFullscreen()&&(w.hideAnimationDuration=0,n.exit()),n=null)}),p("destroy",function(){w.captionEl&&(r&&o.removeChild(r),t.removeClass(l,"pswp__caption--empty")),a&&(a.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),C.setIdle(!1)}),w.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),p("initialZoomIn",function(){w.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")}),p("initialZoomOut",function(){t.addClass(o,"pswp__ui--hidden")}),p("parseVerticalMargin",q),W(),w.shareEl&&s&&a&&(E=!0),K(),B(),P(),U()},C.setIdle=function(e){c=e,k(o,"ui--idle",e)},C.update=function(){I&&e.currItem?(C.updateIndexIndicator(),w.captionEl&&(w.addCaptionHTMLFn(e.currItem,l),k(l,"caption--empty",!e.currItem.title)),T=!0):T=!1,E||O(),K()},C.updateFullscreen=function(o){o&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},C.updateIndexIndicator=function(){w.counterEl&&(i.innerHTML=e.getCurrentIndex()+1+w.indexIndicatorSep+w.getNumItemsFn())},C.onGlobalTap=function(n){n=n||window.event;var o=n.target||n.srcElement;if(!g)if(n.detail&&"mouse"===n.detail.pointerType){if(z(o))return void e.close();t.hasClass(o,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?w.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(w.tapToToggleControls&&(I?C.hideControls():C.showControls()),w.tapToClose&&(t.hasClass(o,"pswp__img")||z(o)))return void e.close()},C.onMouseOver=function(e){e=e||window.event;var t=e.target||e.srcElement;k(o,"ui--over-close",z(t))},C.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),I=!1},C.showControls=function(){I=!0,T||C.update(),t.removeClass(o,"pswp__ui--hidden")},C.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},C.getFullscreenAPI=function(){var t,n=document.documentElement,o="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}
21),t&&(t.enter=function(){if(u=w.closeOnScroll,w.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return w.closeOnScroll=u,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}); 22!function(n){window.fp_parallaxExtension=function(){function e(n){return{cover:{offsetNormal:n?0:N},reveal:{offsetNormal:n?-N:0}}}function t(n){return{cover:{offsetNormal:n?0:R},reveal:{offsetNormal:n?-R:0}}}function o(n){return n*z/100}function i(n){return n*O/100}function a(){if(F){M(n(P).length?n(P):n(D).first(),0)}}function l(){var t=n(P).length?n(P):n(D).first(),o=T===X,i=o?t.nextAll():t.prevAll(),a=o?t.prevAll():t.nextAll();i.each(function(){M(n(this),e(o)[T].offsetNormal,"silent")}),a.each(function(){M(n(this),0,"silent")}),n(D).each(function(){n(this).find(U).length&&r(n(this).find(J).length?n(this).find(J):n(this).find(U).first())})}function r(e){var o=T===X,i=o?e.nextAll():e.prevAll(),a=o?e.prevAll():e.nextAll();i.each(function(){q(n(this),t(o)[T].offsetNormal,"silent")}),a.each(function(){q(n(this),0,"silent")})}function s(n,e){O=pn.width(),e&&!E.scrollBar?(m(),x()):h()}function f(n){k.destroy(),sn=!1}function c(){n(G).on("setAutoScrolling",s).on("destroy",f).on("onScroll",g).on("afterResponsive",p).on("onGrab",d).on("onContinuosHorizontal",u).on("onContinuousVertical",v).on("onResize",A)}function d(n,e){e?h():dn=!0}function p(e,t){n(W).data("final-x",0),n(W).data("final-y",0),B=document.querySelectorAll(D),l()}function u(e,t){fn=!0,r("left"===t.xMovement?n(P).find(U).first():n(P).find(U).last()),setTimeout(function(){k.applyHorizontal(t)})}function v(n,e){cn=!0,l(),setTimeout(function(){k.apply(e)})}function g(){!en&&sn&&(E.scrollBar||!E.autoScrolling||_.usingExtension("dragAndMove"))&&(requestAnimationFrame(y),en=!0)}function m(){var n=".fp-bg{transition: transform "+E.scrollingSpeed+"ms "+E.easingcss3+"}.fp-slide, .fp-section{will-change: transform;transition: background-position "+E.scrollingSpeed+"ms "+E.easingcss3+";}";E.autoScrolling&&!E.scrollBar&&C(Y,n)}function x(){var n=".fp-bg-animate{ transition: all "+E.scrollingSpeed+"ms "+E.easingcss3+"}";C($,n)}function h(){n(Z).remove()}function A(){clearTimeout(un),un=setTimeout(w,350)}function w(){z=pn.height(),O=pn.width(),N=o(E.parallaxOptions.percentage),R=i(E.parallaxOptions.percentage),a(),l(),S(),!E.autoScrolling||E.scrollBar}function S(){n(W).height(z)}function y(){var t=_.usingExtension("dragAndMove")?Math.abs(n.fn.fullpage.dragAndMove.getCurrentScroll()):n(window).scrollTop(),o=tn>t,i=n(P).index(D),a=z+t;tn=t;for(var l=0;l<B.length;++l){var r=B[l],s=z+r.offsetTop;!o&&r.offsetTop<=a?i=l:o&&s>=t&&r.offsetTop<t&&B.length>l+1&&(i=l+1)}var f=z-(B[i].offsetTop-t),c=f*N/z;T!==X&&(i-=1);var d=T!==X?c:-N+c;M(n(D).eq(i),d),i-1>=0&&M(n(B[i-1]),e(!1)[T].offsetNormal),void 0!==B[i+1]&&M(n(B[i+1]),e(!0)[T].offsetNormal),en=!1}function b(n){return Math.round(2*n)/2}function M(n,e,t){var o=b(e,1),i=n.find(U);if(i.length){var a=(n.index(D),i.filter(j));n=a.length?a:i.first()}if(F)n.css({"background-position-y":o+"px"});else if(!n.hasClass(Q)||n.hasClass(L)||void 0!==t){var l=n.find(W),r=void 0!==l.data("final-x")?l.data("final-x"):0;l.toggleClass(K,void 0!==t).css({transform:"translate3d("+r+"px, "+o+"px, 0)"}).data("final-x",r).data("final-y",o)}}function q(n,e,t){var o=b(e,1),i=F?n:n.find(W);if(!E.scrollBar&&E.autoScrolling||i.addClass("fp-bg-animate"),F)i.toggleClass(K,void 0!==t).css("background-position-x",o+"px");else{var a=0,l=i.data("final-y");"none"!==l&&void 0!==l&&(a=l),i.toggleClass(K,void 0!==t).css({transform:"translate3d("+o+"px, "+a+"px, 0)"}).data("final-x",o).data("final-y",a)}}function I(n){return n.find(U).length?n.find(U).length>1?n.find(U):[n.find(U)]:[n]}function C(e,t){n("#"+e).length||n('<style id="'+e+'">'+t+"</style>").appendTo("head")}var T,N,R,z,O,B,F,V,k=this,H=n.fn.fullpage.getFullpageData(),E=H.options,_=H.internals,G=".fullpage-wrapper",L="active",j="."+L,D=".fp-section",P=D+j,Q="fp-slide",U="."+Q,J=U+j,K="fp-notransition",W=".fp-bg",X="reveal",Y="fp-parallax-transitions",Z="#"+Y,$="fp-parallax-transition-class",nn="#"+$,en=!1,tn=0,on=!1,an=!1,ln=!0,rn=!0,sn=!1,fn=!1,cn=!1,dn=!1,pn=n(window);!function(){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;window.requestAnimationFrame=n}(),k.apply=function(t){if(dn&&m(),!t.localIsResizing&&!E.scrollBar&&E.autoScrolling){if(g_isAboutToRewindVertical="up"!==t.yMovement&&!t.sectionIndex||t.isMovementUp&&!(t.leavingSection-1),g_isAboutToRewindVertical&&E.continuousVertical&&!cn)return void(g_isAboutToRewindVertical=!1);on="up"===t.yMovement;var o=e(on),i=o[T].offsetNormal;M(n(D).eq(t.sectionIndex),0),M(n(D).eq(t.leavingSection-1),i),ln=1===Math.abs(t.leavingSection-1-t.sectionIndex);for(var a=Math.min(t.leavingSection-1,t.sectionIndex)+1;a<Math.max(t.leavingSection-1,t.sectionIndex);a++)M(n(D).eq(a),0,"silent")}},k.applyHorizontal=function(n){if(!n.localIsResizing&&"none"!=n.xMovement){if((V=void 0!==n.direction&&n.direction!==n.xMovement)&&E.continuousHorizontal&&!fn)return void(V=!1);an=V?"left"===n.direction:"left"===n.xMovement;var e=t(an),o=e[T].offsetNormal;
22q(n.section.find(U).eq(n.slideIndex),0),q(n.section.find(U).eq(n.prevSlideIndex),o),rn=1===Math.abs(n.slideIndex-n.prevSlideIndex);for(var i=Math.min(n.slideIndex,n.prevSlideIndex)+1;i<Math.max(n.slideIndex,n.prevSlideIndex);i++)q(n.section.find(U).eq(i),0,"silent")}},k.init=function(){if(z=pn.height(),O=pn.width(),T=E.parallaxOptions.type,N=o(E.parallaxOptions.percentage),R=i(E.parallaxOptions.percentage),B=document.querySelectorAll(E.sectionSelector),F="background"===E.parallaxOptions.property,S(),c(),!F){C("fp-parallax-stylesheet",".fp-bg{top:0;bottom:0;width: 100%;position:absolute;z-index: -1;}.fp-section, .fp-slide, .fp-section.fp-table, .fp-slide.fp-table, .fp-section .fp-tableCell, .fp-slide .fp-tableCell {position:relative;overflow: hidden;}"),m()}x(),a(),l(),sn=!0},k.destroy=function(){h(),n(nn).remove(),N=o(0),R=i(0),l(),n(W).height(""),n(G).off("setAutoScrolling").off("destroy").off("onScroll").off("afterResponsive").off("onGrab").off("onContinuosHorizontal").off("onContinuousVertical").off("onResize")},k.setOption=function(n,e){"offset"===n?(E.parallaxOptions.percentage=e,N=o(e),R=i(e)):"type"===n&&(E.parallaxOptions.type=e,T=e),l()};var un;k.applyProperties=M,k.afterSlideLoads=function(){if((F?I(n(P)):n(P).find(W)).removeClass("fp-bg-animate"),(fn||V)&&(r(n(P).find(J)),fn=!1),!rn){var e=t(an),o=e[T].offsetNormal,i=n(P).find(J),a=an?i.nextAll():i.prevAll();(T===X&&an||"cover"===T&&!an)&&a.each(function(){q(n(this),o,"silent")})}},k.afterLoad=function(){if((!E.scrollBar||!E.autoScrolling||_.usingExtension("dragAndMove"))&&((cn||V)&&(l(),cn=!1),!ln)){var t=e(on),o=t[T].offsetNormal,i=on?n(P).nextAll():n(P).prevAll();(T===X&&on||"cover"===T&&!on)&&i.each(function(){M(n(this),o,"silent")})}},k.c=_.c;var vn=k["common".charAt(0)];return"complete"===document.readyState&&vn("parallax"),n(window).on("load",function(){vn("parallax")}),k}}(jQuery); 23!function(e,n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,e,e.document,e.Math)}):"object"==typeof exports&&exports?module.exports=n(require("jquery"),e,e.document,e.Math):n(jQuery,e,e.document,e.Math)}("undefined"!=typeof window?window:this,function(e,n,t,o,i){"use strict";var r="fullpage-wrapper",a="."+r,l="fp-scrollable",s="."+l,c="fp-responsive",d="fp-notransition",f="fp-destroyed",u="fp-enabled",h="fp-viewing",v="active",p="."+v,g="fp-completely",m="."+g,S="fp-section",w="."+S,b=w+p,x=w+":first",y=w+":last",C="fp-tableCell",A="."+C,T="fp-nav",I="#"+T,k="fp-tooltip",L="."+k,M="fp-slide",O="."+M,E=O+p,R="fp-slides",H="."+R,z="fp-slidesContainer",B="."+z,D="fp-table",P="fp-slidesNav",F="."+P,V=F+" a",W="fp-controlArrow",j="."+W,Z="fp-prev",Y="."+Z,N=W+" "+Z,q=j+Y,U="fp-next",G=W+" "+U,X=j+".fp-next",Q=e(n),_=e(t),K={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0};e.fn.fullpage=function(l){function s(n,t){n||tt(0),ut("autoScrolling",n,t);var o=e(b);l.autoScrolling&&!l.scrollBar?(pt.css({overflow:"hidden",height:"100%"}),W(Wt.recordHistory,"internal"),Tt.css({"-ms-touch-action":"none","touch-action":"none"}),o.length&&tt(o.position().top)):(pt.css({overflow:"visible",height:"initial"}),W(!1,"internal"),Tt.css({"-ms-touch-action":"","touch-action":""}),lt(Tt),o.length&&pt.scrollTop(o.position().top)),Tt.trigger("setAutoScrolling",[n])}function W(e,n){ut("recordHistory",e,n)}function Y(e,n){"internal"!==n&&l.fadingEffect&&mt.fadingEffect&&mt.fadingEffect.update(e),ut("scrollingSpeed",e,n)}function U(e,n){ut("fitToSection",e,n)}function $(e){l.lockAnchors=e}function ee(e){e?(Xn(),Qn()):(Gn(),_n())}function ne(n,t){void 0!==t?(t=t.replace(/ /g,"").split(","),e.each(t,function(e,t){it(n,t,"m")})):n?(ee(!0),Kn()):(ee(!1),Jn())}function te(n,t){void 0!==t?(t=t.replace(/ /g,"").split(","),e.each(t,function(e,t){it(n,t,"k")})):l.keyboardScrolling=n}function oe(){var n=e(b).prev(w);n.length||!l.loopTop&&!l.continuousVertical||(n=e(w).last()),n.length&&Ye(n,null,!0)}function ie(){var n=e(b).next(w);n.length||!l.loopBottom&&!l.continuousVertical||(n=e(w).first()),n.length&&Ye(n,null,!1)}function re(e,n){Y(0,"internal"),ae(e,n),Y(Wt.scrollingSpeed,"internal")}function ae(e,n){var t=Pn(e);void 0!==n?Vn(e,n):t.length>0&&Ye(t)}function le(e){We("right",e)}function se(e){We("left",e)}function ce(n){if(!Tt.hasClass(f)){kt=!0,It=Q.height(),e(w).each(function(){var n=e(this).find(H),t=e(this).find(O);l.verticalCentered&&e(this).find(A).css("height",Bn(e(this))+"px"),e(this).css("height",ge(e(this))+"px"),l.scrollOverflow&&(t.length?t.each(function(){Hn(e(this))}):Hn(e(this))),t.length>1&&wn(n,n.find(E))});var t=e(b),o=t.index(w);o&&re(o+1),kt=!1,e.isFunction(l.afterResize)&&n&&l.afterResize.call(Tt),e.isFunction(l.afterReBuild)&&!n&&l.afterReBuild.call(Tt)}}function de(n){var t=gt.hasClass(c);n?t||(s(!1,"internal"),U(!1,"internal"),e(I).hide(),gt.addClass(c),e.isFunction(l.afterResponsive)&&l.afterResponsive.call(Tt,n),l.responsiveSlides&&mt.responsiveSlides&&mt.responsiveSlides.toSections(),Tt.trigger("afterResponsive",[n])):t&&(s(Wt.autoScrolling,"internal"),U(Wt.autoScrolling,"internal"),e(I).show(),gt.removeClass(c),e.isFunction(l.afterResponsive)&&l.afterResponsive.call(Tt,n),l.responsiveSlides&&mt.responsiveSlides&&mt.responsiveSlides.toSlides(),Tt.trigger("afterResponsive",[n]))}function fe(){return{options:l,internals:{canScroll:Mt,isScrollAllowed:Et,getDestinationPosition:Ze,isTouch:At,c:rn,getXmovement:Rn,removeAnimation:kn,getTransforms:ot,lazyLoad:_e,addAnimation:In,performHorizontalMove:yn,landscape
23Scroll:wn,silentLandscapeScroll:nt,keepSlidesPosition:je,silentScroll:tt,styleSlides:pe,scrollHandler:Le,getEventsPage:et,getMSPointer:$n,isReallyTouch:De,checkParentForNormalScrollElement:Be,usingExtension:st,toggleControlArrows:bn}}}function ue(e){var t="fp_"+e+"Extension";jt[e]=l[e+"Key"],mt[e]=void 0!==n[t]?new n[t]:null,mt[e]&&mt[e].c(e)}function he(){var n=Tt.find(l.sectionSelector);l.anchors.length||(l.anchors=n.filter("[data-anchor]").map(function(){return e(this).data("anchor").toString()}).get()),l.navigationTooltips.length||(l.navigationTooltips=n.filter("[data-tooltip]").map(function(){return e(this).data("tooltip").toString()}).get())}function ve(){Tt.css({height:"100%",position:"relative"}),Tt.addClass(r),e("html").addClass(u),It=Q.height(),Tt.removeClass(f),we(),ct("parallax","init"),e(w).each(function(n){var t=e(this),o=t.find(O),i=o.length;me(t,n),Se(t,n),i>0?pe(t,o,i):l.verticalCentered&&zn(t)}),l.fixedElements&&l.css3&&e(l.fixedElements).appendTo(gt),l.navigation&&xe(),Ce(),l.fadingEffect&&mt.fadingEffect&&mt.fadingEffect.apply(),l.scrollOverflow?("complete"===t.readyState&&ye(),Q.on("load",ye)):Ie()}function pe(n,t,o){var i=100*o,r=100/o;t.wrapAll('<div class="'+z+'" />'),t.parent().wrap('<div class="'+R+'" />'),n.find(B).css("width",i+"%"),o>1&&(l.controlArrows&&be(n),l.slidesNavigation&&jn(n,o)),t.each(function(n){e(this).css("width",r+"%"),l.verticalCentered&&zn(e(this))});var a=n.find(E);a.length&&(0!==e(b).index(w)||0===e(b).index(w)&&0!==a.index())?nt(a,"internal"):t.eq(0).addClass(v)}function ge(e){return l.offsetSections&&mt.offsetSections?mt.offsetSections.getWindowHeight(e):It}function me(n,t){t||0!==e(b).length||n.addClass(v),xt=e(b),n.css("height",ge(n)+"px"),l.paddingTop&&n.css("padding-top",l.paddingTop),l.paddingBottom&&n.css("padding-bottom",l.paddingBottom),void 0!==l.sectionsColor[t]&&n.css("background-color",l.sectionsColor[t]),void 0!==l.anchors[t]&&n.attr("data-anchor",l.anchors[t])}function Se(n,t){void 0!==l.anchors[t]&&n.hasClass(v)&&On(l.anchors[t],t),l.menu&&l.css3&&e(l.menu).closest(a).length&&e(l.menu).appendTo(gt)}function we(){Tt.find(l.sectionSelector).addClass(S),Tt.find(l.slideSelector).addClass(M)}function be(e){e.find(H).after('<div class="'+N+'"></div><div class="'+G+'"></div>'),"#fff"!=l.controlArrowColor&&(e.find(X).css("border-color","transparent transparent transparent "+l.controlArrowColor),e.find(q).css("border-color","transparent "+l.controlArrowColor+" transparent transparent")),l.loopHorizontal||e.find(q).hide()}function xe(){gt.append('<div id="'+T+'"><ul></ul></div>');var n=e(I);n.addClass(function(){return l.showActiveTooltip?"fp-show-active "+l.navigationPosition:l.navigationPosition});for(var t=0;t<e(w).length;t++){var o="";l.anchors.length&&(o=l.anchors[t]);var i='<li><a href="#'+o+'"><span></span></a>',r=l.navigationTooltips[t];void 0!==r&&""!==r&&(i+='<div class="'+k+" "+l.navigationPosition+'">'+r+"</div>"),i+="</li>",n.find("ul").append(i)}e(I).css("margin-top","-"+e(I).height()/2+"px"),e(I).find("li").eq(e(b).index(w)).find("a").addClass(v)}function ye(){e(w).each(function(){var n=e(this).find(O);n.length?n.each(function(){Hn(e(this))}):Hn(e(this))}),Ie()}function Ce(){Tt.find('iframe[src*="youtube.com/embed/"]').each(function(){Ae(e(this),"enablejsapi=1")})}function Ae(e,n){var t=e.attr("src");e.attr("src",t+Te(t)+n)}function Te(e){return/\?/.test(e)?"&":"?"}function Ie(){var n=e(b);n.addClass(g),l.scrollOverflowHandler.afterRender&&l.scrollOverflowHandler.afterRender(n),_e(n),Ke(n),l.scrollOverflowHandler.afterLoad(),ke()&&e.isFunction(l.afterLoad)&&l.afterLoad.call(n,n.data("anchor"),n.index(w)+1),e.isFunction(l.afterRender)&&l.afterRender.call(Tt)}function ke(){var e=n.location.hash.replace("#","").split("/"),t=Pn(decodeURIComponent(e[0]));return!t.length||t.length&&t.index()===xt.index()}function Le(){Qt||(requestAnimationFrame(Me),Qt=!0)}function Me(){Tt.trigger("onScroll");var n;if((!l.autoScrolling||l.scrollBar||st("dragAndMove"))&&!ft()){var i=st("dragAndMove")?o.abs(mt.dragAndMove.getCurrentScroll()):Q.scrollTop(),r=(Ee(i),0),a=i+Q.height()/2,s=st("dragAndMove")?mt.dragAndMove.getDocumentHeight():gt.height()-Q.height(),c=s===i,d=t.querySelectorAll(w);if(c)r=d.length-1;else if(i)for(var f=0;f<d.length;++f){var u=d[f];u.offsetTop<=a&&(r=f)}else r=0;if(n=e(d).eq(r),!n.hasClass(v)){Zt=!0;var h,p,g=e(b),m=g.index(w)+1,S=En(n),x=n.data("anchor"),y=n.index(w)+1,C=n.find(E);C.length&&(p=C.data("anchor"),h=C.index()),Mt&&(n.addClass(v).siblings().removeClass(v),ct("parallax","afterLoad"),e.isFunction(l.onLeave)&&l.onLeave.call(g,m,y,S),e.isFunction(l.afterLoad)&&l.afterLoad.call(n,x,y),l.resetSliders&&mt.resetSliders&&mt.resetSliders.apply({localIsResizing:kt,leavingSection:m}),$e(g),_e(n),Ke(n),On(x,y-1),l.anchors.length&&(St=x),Zn(h,p,x,y)),clearTimeout(Bt),Bt=setTimeout(function(){Zt=!1},100)}l.fitToSection&&(clearTimeout(Dt),Dt=setTimeout(function(){l.fitToSection&&Oe()},l.fitToSectionDelay))}Qt=!1}function Oe(){Mt&&(kt=!0,Ye(e(b)),kt=!1)}function Ee(e){var n=e>Yt?"down":"up";return Yt=e,_t=e,n}function Re(e,n){if(Et.m[e]){var t="down"===e?"bottom":"top",o="down"===e?ie:oe;if(mt.scrollHorizontally&&(o=mt.scrollHorizontally.getScrollSection(e,o)),n.length>0){if(!l.scrollOverflowHandler.isScrolled(t,n))return!0;o()}else o()}}function He(e){var n=e.originalEvent;!Be(e.target)&&l.autoScrolling&&De(n)&&e.preventDefault()}function ze(n){var t=n.originalEvent,i=e(t.target).closest(w);if(!Be(n.target)&&De(t)){l.autoScrolling&&n.preventDefault();var r=l.scrollOverflowHandler.scrollable(i),a=et(t);Ut=a.y,Gt=a.x,i.find(H).length&&o.abs(qt-Gt)>o.abs(Nt-Ut)?!yt&&o.abs(qt-Gt)>Q.outerWidth()/100*l.touchSensitivity&&(qt>Gt?Et.m.right&&le(i):Et.m.left&&se(i)):l.autoScrolling&&Mt&&o.abs(Nt-Ut)>Q.height()/100*l.touchSensitivity&&(Nt>Ut?Re("down",r):Ut>Nt&&Re("up",r))}}function Be(n,t){t=t||0;var o=e(n).parent();return!!(t<l.normalScrollElementTouchThreshold&&o.is(l.normalScrollElements))||t!=l.normalScrollElementTouchThreshold&&Be(o,++t)}function De(e){return void 0===e.pointerType||"mouse"!=e.pointerType}function Pe(e){var n=e.originalEvent;if(l.fitToSection&&pt.stop(),De(n)){var t=et(n);Nt=t.y,qt=t.x}}function Fe(e,n){for(var t=0,i=e.slice(o.max(e.length-n,1)),r=0;r<i.length;r++)t+=i[r];return o.ceil(t/n)}function Ve(t){var i=(new Date).getTime(),r=e(m).hasClass("fp-normal-scroll");
23if(l.autoScrolling&&!bt&&!r){t=t||n.event;var a=t.wheelDelta||-t.deltaY||-t.detail,s=o.max(-1,o.min(1,a)),c=void 0!==t.wheelDeltaX||void 0!==t.deltaX,d=o.abs(t.wheelDeltaX)<o.abs(t.wheelDelta)||o.abs(t.deltaX)<o.abs(t.deltaY)||!c;Ot.length>149&&Ot.shift(),Ot.push(o.abs(a)),l.scrollBar&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var f=e(b),u=l.scrollOverflowHandler.scrollable(f),h=i-Xt;return Xt=i,h>200&&(Ot=[]),Mt&&!dt()&&Fe(Ot,10)>=Fe(Ot,70)&&d&&(s<0?Re("down",u):Re("up",u)),!1}l.fitToSection&&pt.stop()}function We(n,t){var o=void 0===t?e(b):t,i=o.find(H);if(!(!i.length||dt()||yt||i.find(O).length<2)){var r=i.find(E),a=null;if(a="left"===n?r.prev(O):r.next(O),!a.length){if(!l.loopHorizontal)return;a="left"===n?r.siblings(":last"):r.siblings(":first")}yt=!0,wn(i,a,n)}}function je(){e(E).each(function(){nt(e(this),"internal")})}function Ze(e){var n=e.position(),t=n.top,o=st("dragAndMove")&&mt.dragAndMove.isGrabbing?mt.dragAndMove.isScrollingDown():n.top>_t,i=t-It+e.outerHeight(),r=l.bigSectionsDestination;return e.outerHeight()>It?(o||r)&&"bottom"!==r||(t=i):(o||kt&&e.is(":last-child"))&&(t=i),l.offsetSections&&mt.offsetSections&&(t=mt.offsetSections.getSectionPosition(o,t,e)),_t=t,t}function Ye(n,t,o){if(void 0!==n&&n.length){var i,r,a=Ze(n),s={element:n,callback:t,isMovementUp:o,dtop:a,yMovement:En(n),anchorLink:n.data("anchor"),sectionIndex:n.index(w),activeSlide:n.find(E),activeSection:e(b),leavingSection:e(b).index(w)+1,localIsResizing:kt};s.activeSection.is(n)&&!kt||l.scrollBar&&Q.scrollTop()===s.dtop&&!n.hasClass("fp-auto-height")||(s.activeSlide.length&&(i=s.activeSlide.data("anchor"),r=s.activeSlide.index()),ct("parallax","apply",s),l.autoScrolling&&l.continuousVertical&&void 0!==s.isMovementUp&&(!s.isMovementUp&&"up"==s.yMovement||s.isMovementUp&&"down"==s.yMovement)&&(s=Ue(s)),e.isFunction(l.onLeave)&&!s.localIsResizing&&!1===l.onLeave.call(s.activeSection,s.leavingSection,s.sectionIndex+1,s.yMovement)||(st("scrollOverflowReset")&&mt.scrollOverflowReset.setPrevious(s.activeSection),s.localIsResizing||$e(s.activeSection),l.scrollOverflowHandler.beforeLeave(),n.addClass(v).siblings().removeClass(v),_e(n),l.scrollOverflowHandler.onLeave(),Mt=!1,Zn(r,i,s.anchorLink,s.sectionIndex),Ne(s),St=s.anchorLink,On(s.anchorLink,s.sectionIndex)))}}function Ne(n){if(l.css3&&l.autoScrolling&&!l.scrollBar)Dn("translate3d(0px, -"+o.round(n.dtop)+"px, 0px)",!0),l.scrollingSpeed?(clearTimeout(Ht),Ht=setTimeout(function(){Xe(n)},l.scrollingSpeed)):Xe(n);else{var t=qe(n);e(t.element).animate(t.options,l.scrollingSpeed,l.easing).promise().done(function(){l.scrollBar?setTimeout(function(){Xe(n)},30):Xe(n)})}}function qe(e){var n={};return l.autoScrolling&&!l.scrollBar?(n.options={top:-e.dtop},n.element=a):(n.options={scrollTop:e.dtop},n.element="html, body"),n}function Ue(n){return n.isMovementUp?n.activeSection.before(n.activeSection.nextAll(w)):n.activeSection.after(n.activeSection.prevAll(w).get().reverse()),tt(e(b).position().top),je(),n.wrapAroundElements=n.activeSection,n.dtop=n.element.position().top,n.yMovement=En(n.element),n.leavingSection=n.activeSection.index(w)+1,n.sectionIndex=n.element.index(w),e(a).trigger("onContinuousVertical",[n]),n}function Ge(n){n.wrapAroundElements&&n.wrapAroundElements.length&&(n.isMovementUp?e(x).before(n.wrapAroundElements):e(y).after(n.wrapAroundElements),tt(e(b).position().top),je(),n.sectionIndex=n.element.index(w),n.leavingSection=n.activeSection.index(w)+1)}function Xe(n){Ge(n),e.isFunction(l.afterLoad)&&!n.localIsResizing&&l.afterLoad.call(n.element,n.anchorLink,n.sectionIndex+1),l.scrollOverflowHandler.afterLoad(),ct("parallax","afterLoad"),st("scrollOverflowReset")&&mt.scrollOverflowReset.reset(),l.resetSliders&&mt.resetSliders&&mt.resetSliders.apply(n),n.localIsResizing||Ke(n.element),n.element.addClass(g).siblings().removeClass(g),Mt=!0,e.isFunction(n.callback)&&n.callback.call(this)}function Qe(e,n){e.attr(n,e.data(n)).removeAttr("data-"+n)}function _e(n){if(l.lazyLoading){var t;en(n).find("img[data-src], img[data-srcset], source[data-src], audio[data-src], iframe[data-src]").each(function(){t=e(this),e.each(["src","srcset"],function(e,n){var o=t.attr("data-"+n);void 0!==o&&o&&Qe(t,n)}),t.is("source")&&t.closest("video").get(0).load()})}}function Ke(n){var t=en(n);t.find("video, audio").each(function(){var n=e(this).get(0);n.hasAttribute("data-autoplay")&&"function"==typeof n.play&&n.play()}),t.find('iframe[src*="youtube.com/embed/"]').each(function(){var n=e(this).get(0);n.hasAttribute("data-autoplay")&&Je(n),n.onload=function(){n.hasAttribute("data-autoplay")&&Je(n)}})}function Je(e){e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function $e(n){var t=en(n);t.find("video, audio").each(function(){var n=e(this).get(0);n.hasAttribute("data-keepplaying")||"function"!=typeof n.pause||n.pause()}),t.find('iframe[src*="youtube.com/embed/"]').each(function(){var n=e(this).get(0);/youtube\.com\/embed\//.test(e(this).attr("src"))&&!n.hasAttribute("data-keepplaying")&&e(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function en(n){var t=n.find(E);return t.length&&(n=e(t)),n}function nn(e){function n(e){var n,o,r,a,l,s,c,d="",f=0;for(e=e.replace(/[^A-Za-z0-9+\/=]/g,"");f<e.length;)a=i.indexOf(e.charAt(f++)),l=i.indexOf(e.charAt(f++)),s=i.indexOf(e.charAt(f++)),c=i.indexOf(e.charAt(f++)),n=a<<2|l>>4,o=(15&l)<<4|s>>2,r=(3&s)<<6|c,d+=String.fromCharCode(n),64!=s&&(d+=String.fromCharCode(o)),64!=c&&(d+=String.fromCharCode(r));return d=t(d)}function t(e){for(var n,t="",o=0,i=0,r=0;o<e.length;)i=e.charCodeAt(o),i<128?(t+=String.fromCharCode(i),o++):i>191&&i<224?(r=e.charCodeAt(o+1),t+=String.fromCharCode((31&i)<<6|63&r),o+=2):(r=e.charCodeAt(o+1),n=e.charCodeAt(o+2),t+=String.fromCharCode((1
235&i)<<12|(63&r)<<6|63&n),o+=3);return t}function o(e){return e.slice(3).slice(0,-3)}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(e){return e}(function(e){var t=e.split("_");if(t.length>1){var i=t[1];return e.replace(o(t[1]),"").split("_")[0]+"_"+n(i.slice(3).slice(0,-3))}return o(e)}(n(e)))}function tn(){if(t.domain.length){for(var e=t.domain.replace(/^(www\.)/,"").split(".");e.length>2;)e.shift();return e.join(".").replace(/(^\.*)|(\.*$)/g,"")}return""}function on(e){var n=tn(),t=["localhost","127.0.0.1","jshell.net","UDdDQU5ZNlNN"],o=t[0],i=t[1],r=t[2],a=nn(t[3]),l=[o,i,r].indexOf(n)<0&&0!==n.length,s=void 0!==jt[e]&&jt[e].length;if(!s&&l)return!1;var c=s?nn(jt[e]):"";c=c.split("_");var d=c.length>1&&c[1].indexOf(e,c[1].length-e.length)>-1;return!(c[0].indexOf(n,c[0].length-n.length)<0&&l&&a!=c[0])&&d||!l}function rn(e){if(st(e)&&mt[e]){var n=nn("MTIzPGRpdiBzdHlsZT0iei1pbmRleDo5OTk5OTk5O3Bvc2l0aW9uOmZpeGVkOyB0b3A6IDIwcHg7IGxlZnQ6MjBweDsgYmFja2dyb3VuZDpyZWQ7IHBhZGRpbmc6IDdweCAxNXB4OyBmb250LXNpemU6IDE0cHg7IGZvbnQtZmFtaWx5OiBhcmlhbDsgY29sb3I6ICNmZmY7IGRpc3BsYXk6IGlubGluZS1ibG9jazsiPjxhIGhyZWY9Imh0dHA6Ly9hbHZhcm90cmlnby5jb20vZnVsbFBhZ2UvZXh0ZW5zaW9ucy8iIHN0eWxlPSJjb2xvcjogI2ZmZjsgdGV4dC1kZWNvcmF0aW9uOm5vbmU7Ij5VbmxpY2Vuc2VkIGZ1bGxQYWdlLmpzIEV4dGVuc2lvbjwvYT48L2Rpdj4xMjM="),t=o.random()<.5;if(!on(e)){var i,r=function(){i=t?gt.find("div").first():gt.find("div").last(),"9999999"!==i.css("z-index")&&(t?gt.prepend(n):gt.append(n))};r(),setInterval(r,2e3)}}}function an(){var e=n.location.hash.replace("#","").split("/"),t=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]);t&&(l.animateAnchor?Vn(t,o):re(t,o))}function ln(){if(!Zt&&!l.lockAnchors){var e=n.location.hash.replace("#","").split("/"),t=decodeURIComponent(e[0]),o=decodeURIComponent(e[1]),i=void 0===St,r=void 0===St&&void 0===o&&!yt;t.length&&(t&&t!==St&&!i||r||!yt&&wt!=o)&&Vn(t,o)}}function sn(n){clearTimeout(Pt);var t=e(":focus");if(!t.is("textarea")&&!t.is("input")&&!t.is("select")&&"true"!==t.attr("contentEditable")&&""!==t.attr("contentEditable")&&l.keyboardScrolling&&l.autoScrolling){var o=n.which,i=[40,38,32,33,34];e.inArray(o,i)>-1&&n.preventDefault(),bt=n.ctrlKey,Pt=setTimeout(function(){mn(n)},150)}}function cn(){e(this).prev().trigger("click")}function dn(e){Lt&&(bt=e.ctrlKey)}function fn(e){2==e.which&&(Kt=e.pageY,Tt.on("mousemove",Sn))}function un(e){2==e.which&&Tt.off("mousemove")}function hn(){var n=e(this).closest(w);e(this).hasClass(Z)?Et.m.left&&se(n):Et.m.right&&le(n)}function vn(){Lt=!1,bt=!1}function pn(n){n.preventDefault();var t=e(this).parent().index();Ye(e(w).eq(t))}function gn(n){n.preventDefault();var t=e(this).closest(w).find(H);wn(t,t.find(O).eq(e(this).closest("li").index()))}function mn(n){var t=n.shiftKey;if(Mt||!([37,39].indexOf(n.which)<0))switch(n.which){case 38:case 33:Et.k.up&&oe();break;case 32:if(t&&Et.k.up){oe();break}case 40:case 34:Et.k.down&&ie();break;case 36:Et.k.up&&ae(1);break;case 35:Et.k.down&&ae(e(w).length);break;case 37:Et.k.left&&se();break;case 39:Et.k.right&&le();break;default:return}}function Sn(e){Mt&&(e.pageY<Kt&&Et.m.up?oe():e.pageY>Kt&&Et.m.down&&ie()),Kt=e.pageY}function wn(n,t,o){var i=n.closest(w),r={slides:n,destiny:t,direction:o,destinyPos:t.position(),slideIndex:t.index(),section:i,sectionIndex:i.index(w),anchorLink:i.data("anchor"),slidesNav:i.find(F),slideAnchor:Nn(t),prevSlide:i.find(E),prevSlideIndex:i.find(E).index(),localIsResizing:kt};return r.xMovement=Rn(r.prevSlideIndex,r.slideIndex),r.localIsResizing||(Mt=!1),ct("parallax","applyHorizontal",r),l.onSlideLeave&&!r.localIsResizing&&"none"!==r.xMovement&&e.isFunction(l.onSlideLeave)&&!1===l.onSlideLeave.call(r.prevSlide,r.anchorLink,r.sectionIndex+1,r.prevSlideIndex,r.xMovement,r.slideIndex)?void(yt=!1):(t.addClass(v).siblings().removeClass(v),r.localIsResizing||($e(r.prevSlide),_e(t)),bn(r),i.hasClass(v)&&!r.localIsResizing&&Zn(r.slideIndex,r.slideAnchor,r.anchorLink,r.sectionIndex),mt.continuousHorizontal&&mt.continuousHorizontal.apply(r),ft()?xn(r):yn(n,r,!0),void(l.interlockedSlides&&mt.interlockedSlides&&mt.interlockedSlides.apply(r)))}function bn(e){!l.loopHorizontal&&l.controlArrows&&(e.section.find(q).toggle(0!==e.slideIndex),e.section.find(X).toggle(!e.destiny.is(":last-child")))}function xn(n){mt.continuousHorizontal&&mt.continuousHorizontal.afterSlideLoads(n),Cn(n.slidesNav,n.slideIndex),n.localIsResizing||(ct("parallax","afterSlideLoads"),e.isFunction(l.afterSlideLoad)&&l.afterSlideLoad.call(n.destiny,n.anchorLink,n.sectionIndex+1,n.slideAnchor,n.slideIndex),Mt=!0,Ke(n.destiny)),yt=!1,mt.interlockedSlides&&mt.interlockedSlides.apply(n)}function yn(e,n,t){var i=n.destinyPos;
23if(l.css3){var r="translate3d(-"+o.round(i.left)+"px, 0px, 0px)";In(e.find(B)).css(ot(r)),zt=setTimeout(function(){t&&xn(n)},l.scrollingSpeed,l.easing)}else e.animate({scrollLeft:o.round(i.left)},l.scrollingSpeed,l.easing,function(){t&&xn(n)})}function Cn(e,n){e.find(p).removeClass(v),e.find("li").eq(n).find("a").addClass(v)}function An(){if(Tt.trigger("onResize"),Tn(),Ct){var n=e(t.activeElement);if(!n.is("textarea")&&!n.is("input")&&!n.is("select")){var i=Q.height();o.abs(i-Jt)>20*o.max(Jt,i)/100&&(ce(!0),Jt=i)}}else clearTimeout(Rt),Rt=setTimeout(function(){ce(!0)},350)}function Tn(){var e=l.responsive||l.responsiveWidth,n=l.responsiveHeight,t=e&&Q.outerWidth()<e,o=n&&Q.height()<n;e&&n?de(t||o):e?de(t):n&&de(o)}function In(e){var n="all "+l.scrollingSpeed+"ms "+l.easingcss3;return e.removeClass(d),e.css({"-webkit-transition":n,transition:n})}function kn(e){return e.addClass(d)}function Ln(n,t){l.navigation&&(e(I).find(p).removeClass(v),n?e(I).find('a[href="#'+n+'"]').addClass(v):e(I).find("li").eq(t).find("a").addClass(v))}function Mn(n){l.menu&&(e(l.menu).find(p).removeClass(v),e(l.menu).find('[data-menuanchor="'+n+'"]').addClass(v))}function On(e,n){Mn(e),Ln(e,n)}function En(n){var t=e(b).index(w),o=n.index(w);return t==o?"none":t>o?"up":"down"}function Rn(e,n){return e==n?"none":e>n?"left":"right"}function Hn(e){if(!e.hasClass("fp-noscroll")){e.css("overflow","hidden");var n,t=l.scrollOverflowHandler,o=t.wrapContent(),i=e.closest(w),r=t.scrollable(e);r.length?n=t.scrollHeight(e):(n=e.get(0).scrollHeight,l.verticalCentered&&(n=e.find(A).get(0).scrollHeight));var a=Bn(i);n>a?r.length?t.update(e,a):(l.verticalCentered?e.find(A).wrapInner(o):e.wrapInner(o),t.create(e,a,l.scrollOverflowOptions)):t.remove(e),e.css("overflow","")}}function zn(e){e.hasClass(D)||e.addClass(D).wrapInner('<div class="'+C+'" style="height:'+Bn(e)+'px;" />')}function Bn(e){var n=ge(e);if(l.paddingTop||l.paddingBottom){var t=e;t.hasClass(S)||(t=e.closest(w));var o=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom"));n=It-o}return n}function Dn(e,n){n?In(Tt):kn(Tt),Tt.css(ot(e)),setTimeout(function(){Tt.removeClass(d)},10)}function Pn(n){if(!n)return[];var t=Tt.find(w+'[data-anchor="'+n+'"]');return t.length||(t=e(w).eq(n-1)),t}function Fn(e,n){var t=n.find(H),o=t.find(O+'[data-anchor="'+e+'"]');return o.length||(o=t.find(O).eq(e)),o}function Vn(e,n){var t=Pn(e);t.length&&(void 0===n&&(n=0),e===St||t.hasClass(v)?Wn(t,n):Ye(t,function(){Wn(t,n)}))}function Wn(e,n){if(void 0!==n){var t=e.find(H),o=Fn(n,e);o.length&&wn(t,o)}}function jn(e,n){e.append('<div class="'+P+'"><ul></ul></div>');var t=e.find(F);t.addClass(l.slidesNavPosition);for(var o=0;o<n;o++)t.find("ul").append('<li><a href="#"><span></span></a></li>');t.css("margin-left","-"+t.width()/2+"px"),t.find("li").first().find("a").addClass(v)}function Zn(e,n,t,o){var i="";l.anchors.length&&!l.lockAnchors&&(e?(void 0!==t&&(i=t),void 0===n&&(n=e),wt=n,Yn(i+"/"+n)):void 0!==e?(wt=n,Yn(t)):Yn(t)),qn()}function Yn(e){if(l.recordHistory)location.hash=e;else if(Ct||At)n.history.replaceState(i,i,"#"+e);else{var t=n.location.href.split("#")[0];n.location.replace(t+"#"+e)}}function Nn(e){var n=e.data("anchor"),t=e.index();return void 0===n&&(n=t),n}function qn(){var n=e(b),t=n.find(E),o=Nn(n),i=Nn(t),r=String(o);t.length&&(r=r+"-"+i),r=r.replace("/","-").replace("#","");var a=new RegExp("\\b\\s?"+h+"-[^\\s]+\\b","g");gt[0].className=gt[0].className.replace(a,""),gt.addClass(h+"-"+r)}function Un(){var e,o=t.createElement("p"),r={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};t.body.insertBefore(o,null);for(var a in r)o.style[a]!==i&&(o.style[a]="translate3d(1px,1px,1px)",e=n.getComputedStyle(o).getPropertyValue(r[a]));return t.body.removeChild(o),e!==i&&e.length>0&&"none"!==e}function Gn(){t.addEventListener?(t.removeEventListener("mousewheel",Ve,!1),t.removeEventListener("wheel",Ve,!1),t.removeEventListener("MozMousePixelScroll",Ve,!1)):t.detachEvent("onmousewheel",Ve)}function Xn(){var e,o="";n.addEventListener?e="addEventListener":(e="attachEvent",o="on");var r="onwheel"in t.createElement("div")?"wheel":t.onmousewheel!==i?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==r?t[e](o+"MozMousePixelScroll",Ve,!1):t[e](o+r,Ve,!1)}function Qn(){Tt.on("mousedown",fn).on("mouseup",un)}function _n(){Tt.off("mousedown",fn).off("mouseup",un)}function Kn(){(Ct||At)&&(l.autoScrolling&>.off(Vt.touchmove).on(Vt.touchmove,He),e(a).off(Vt.touchstart).on(Vt.touchstart,Pe).off(Vt.touchmove).on(Vt.touchmove,ze))}function Jn(){(Ct||At)&&e(a).off(Vt.touchstart).off(Vt.touchmove)}function $n(){return n.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function et(e){var n=[];return n.y=void 0!==e.pageY&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,n.x=void 0!==e.pageX&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,At&&De(e)&&l.scrollBar&&(n.y=e.touches[0].pageY,n.x=e.touches[0].pageX),n}function nt(e,n){Y(0,"internal"),void 0!==n&&(kt=!0),wn(e.closest(H),e),void 0!==n&&(kt=!1),Y(Wt.scrollingSpeed,"internal")}
23function tt(e){var n=o.round(e);l.css3&&l.autoScrolling&&!l.scrollBar?Dn("translate3d(0px, -"+n+"px, 0px)",!1):l.autoScrolling&&!l.scrollBar?Tt.css("top",-n):pt.scrollTop(n)}function ot(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function it(e,n,t){switch(n){case"up":Et[t].up=e;break;case"down":Et[t].down=e;break;case"left":Et[t].left=e;break;case"right":Et[t].right=e;break;case"all":"m"==t?ne(e):te(e)}}function rt(n){Tt.trigger("destroy",[n]),s(!1,"internal"),ne(!1),te(!1),Tt.addClass(f),clearTimeout(zt),clearTimeout(Ht),clearTimeout(Rt),clearTimeout(Bt),clearTimeout(Dt),Q.off("scroll",Le).off("hashchange",ln).off("resize",An),_.off("click touchstart",I+" a").off("mouseenter",I+" li").off("mouseleave",I+" li").off("click touchstart",V).off("mouseover",l.normalScrollElements).off("mouseout",l.normalScrollElements),e(w).off("click touchstart",j),st("dragAndMove")&&mt.dragAndMove.destroy(),clearTimeout(zt),clearTimeout(Ht),n&&at()}function at(){tt(0),Tt.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){Qe(e(this),"src")}),Tt.find("img[data-srcset]").each(function(){Qe(e(this),"srcset")}),e(I+", "+F+", "+j).remove(),e(w).css({height:"","background-color":"",padding:""}),e(O).css({width:""}),Tt.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),pt.css({overflow:"",height:""}),e("html").removeClass(u),gt.removeClass(c),e.each(gt.get(0).className.split(/\s+/),function(e,n){0===n.indexOf(h)&>.removeClass(n)}),e(w+", "+O).each(function(){l.scrollOverflowHandler.remove(e(this)),e(this).removeClass(D+" "+v)}),lt(Tt),Tt.find(A+", "+B+", "+H).each(function(){e(this).replaceWith(this.childNodes)}),pt.scrollTop(0);var n=[S,M,z];e.each(n,function(n,t){e("."+t).removeClass(t)})}function lt(e){return e.css({"-webkit-transition":"none",transition:"none"})}function st(e){return null!==l[e]&&"object"==typeof l[e]?l[e].enabled&&mt[e]:l[e]&&mt[e]}function ct(e,n,t){var o=Array.isArray(t)?t.join(", "):t;st(e)&&mt[e][n](o)}function dt(){return st("dragAndMove")&&mt.dragAndMove.isAnimating}function ft(){return st("dragAndMove")&&mt.dragAndMove.isGrabbing}function ut(e,n,t){l[e]=n,"internal"!==t&&(Wt[e]=n)}function ht(){return e("html").hasClass(u)?void vt("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(l.continuousVertical&&(l.loopTop||l.loopBottom)&&(l.continuousVertical=!1,vt("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),l.scrollBar&&l.scrollOverflow&&vt("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),!l.continuousVertical||!l.scrollBar&&l.autoScrolling||(l.continuousVertical=!1,vt("warn","Scroll bars (`scrollBar:true` or `autoScrolling:false`) are mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),void e.each(l.anchors,function(n,t){var o=_.find("[name]").filter(function(){return e(this).attr("name")&&e(this).attr("name").toLowerCase()==t.toLowerCase()}),i=_.find("[id]").filter(function(){return e(this).attr("id")&&e(this).attr("id").toLowerCase()==t.toLowerCase()});(i.length||o.length)&&(vt("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),i.length&&vt("error",'"'+t+'" is is being used by another element `id` property'),o.length&&vt("error",'"'+t+'" is is being used by another element `name` property'))}))}function vt(e,n){console&&console[e]&&console[e]("fullPage: "+n)}if(e("html").hasClass(u))return void ht();var pt=e("html, body"),gt=e("body"),mt=e.fn.fullpage;l=e.extend(!0,{menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:J,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRe
23nder:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},l);var St,wt,bt,xt,yt=!1,Ct=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),At="ontouchstart"in n||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,Tt=e(this),It=Q.height(),kt=!1,Lt=!0,Mt=!0,Ot=[],Et={};Et.m={up:!0,down:!0,left:!0,right:!0},Et.k=e.extend(!0,{},Et.m);var Rt,Ht,zt,Bt,Dt,Pt,Ft=$n(),Vt={touchmove:"ontouchmove"in n?"touchmove":Ft.move,touchstart:"ontouchstart"in n?"touchstart":Ft.down},Wt=e.extend(!0,{},l),jt={};ht(),K.click=At,l.scrollOverflowOptions=e.extend(K,l.scrollOverflowOptions),e.extend(e.easing,{easeInOutCubic:function(e,n,t,o,i){return(n/=i/2)<1?o/2*n*n*n+t:o/2*((n-=2)*n*n+2)+t}}),e(this).length&&(mt.setAutoScrolling=s,mt.setRecordHistory=W,mt.setScrollingSpeed=Y,mt.setFitToSection=U,mt.setLockAnchors=$,mt.setMouseWheelScrolling=ee,mt.setAllowScrolling=ne,mt.setKeyboardScrolling=te,mt.moveSectionUp=oe,mt.moveSectionDown=ie,mt.silentMoveTo=re,mt.moveTo=ae,mt.moveSlideRight=le,mt.moveSlideLeft=se,mt.fitToSection=Oe,mt.reBuild=ce,mt.setResponsive=de,mt.getFullpageData=fe,mt.destroy=rt,mt.landscapeScroll=wn,ue("continuousHorizontal"),ue("scrollHorizontally"),ue("resetSliders"),ue("interlockedSlides"),ue("responsiveSlides"),ue("fadingEffect"),ue("dragAndMove"),ue("offsetSections"),ue("scrollOverflowReset"),ue("parallax"), 24st("dragAndMove")&&mt.dragAndMove.init(),function(){l.css3&&(l.css3=Un()),l.scrollBar=l.scrollBar||l.hybrid,he(),ve(),ne(!0),s(l.autoScrolling,"internal"),Tn(),qn(),"complete"===t.readyState&&an(),Q.on("load",an)}(),function(){Q.on("scroll",Le).on("hashchange",ln).blur(vn).resize(An),_.keydown(sn).keyup(dn).on("click touchstart",I+" a",pn).on("click touchstart",V,gn).on("click",L,cn),e(w).on("click touchstart",j,hn),l.normalScrollElements&&(_.on("mouseenter",l.normalScrollElements,function(){ee(!1)}),_.on("mouseleave",l.normalScrollElements,function(){ee(!0)}))}(),st("dragAndMove")&&mt.dragAndMove.turnOffTouch());var Zt=!1,Yt=0,Nt=0,qt=0,Ut=0,Gt=0;!function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame;n.requestAnimationFrame=e}();var Xt=(new Date).getTime(),Qt=!1,_t=0,Kt=0,Jt=It},"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var J={refreshId:null,iScrollInstances:[],toggleWheel:function(n){e(b).find(s).each(function(){var t=e(this).data("iscrollInstance");void 0!==t&&t&&(n?t.wheelOn():t.wheelOff())})},onLeave:function(){J.toggleWheel(!1)},beforeLeave:function(){J.onLeave()},afterLoad:function(){J.toggleWheel(!0)},create:function(n,t,o){var i=n.find(s);i.height(t),i.each(function(){var n=e(this),t=n.data("iscrollInstance");t&&e.each(J.iScrollInstances,function(){e(this).destroy()}),t=new IScroll(n.get(0),o),t.on("scrollEnd",function(){this.fp_isAtTop=this.y>-30,this.fp_isAtEnd=this.y-this.maxScrollY<30}),J.iScrollInstances.push(t),t.wheelOff(),n.data("iscrollInstance",t)})},isScrolled:function(e,n){var t=n.data("iscrollInstance");return!t||("top"===e?t.y>=0&&!n.scrollTop():"bottom"===e?0-t.y+n.scrollTop()+1+n.innerHeight()>=n[0].scrollHeight:void 0)},scrollable:function(e){return e.find(H).length?e.find(E).find(s):e.find(s)},scrollHeight:function(e){return e.find(s).children().first().get(0).scrollHeight},remove:function(e){var n=e.find(s);if(n.length){var t=n.data("iscrollInstance");t&&t.destroy(),n.data("iscrollInstance",null)}e.find(s).children().first().children().first().unwrap().unwrap()},update:function(n,t){clearTimeout(J.refreshId),J.refreshId=setTimeout(function(){e.each(J.iScrollInstances,function(){e(this).get(0).refresh()})},150),n.find(s).css("height",t+"px").parent().css("height",t+"px")},wrapContent:function(){return'<div class="'+l+'"><div class="fp-scroller"></div></div>'}}}); 25!function(){"use strict";function e(n){return void 0===this||Object.getPrototypeOf(this)!==e.prototype?new e(n):(O=this,O.version="3.3.2",O.tools=new E,O.isSupported()?(O.tools.extend(O.defaults,n||{}),O.defaults.container=t(O.defaults),O.store={elements:{},containers:[]},O.sequences={},O.history=[],O.uid=0,O.initialized=!1):"undefined"!=typeof console&&null!==console&&console.log("ScrollReveal is not supported in this browser."),O)}function t(e){if(e&&e.container){if("string"==typeof e.container)return window.document.documentElement.querySelector(e.container);if(O.tools.isNode(e.container))return e.container;console.log('ScrollReveal: invalid container "'+e.container+'" provided.'),console.log("ScrollReveal: falling back to default container.")}return O.defaults.container}function n(e,t){return"string"==typeof e?Array.prototype.slice.call(t.querySelectorAll(e)):O.tools.isNode(e)?[e]:O.tools.isNodeList(e)?Array.prototype.slice.call(e):[]}function i(){return++O.uid}function o(e,t,n){t.container&&(t.container=n),e.config?e.config=O.tools.extendClone(e.config,t):e.config=O.tools.extendClone(O.defaults,t),"top"===e.config.origin||"bottom"===e.config.origin?e.config.axis="Y":e.config.axis="X"}function r(e){var t=window.getComputedStyle(e.domEl);e.styles||(e.styles={transition:{},transform:{},computed:{}},e.styles.inline=e.domEl.getAttribute("style")||"",e.styles.inline+="; visibility: visible;
25 ",e.styles.computed.opacity=t.opacity,t.transition&&"all 0s ease 0s"!==t.transition?e.styles.computed.transition=t.transition+", ":e.styles.computed.transition=""),e.styles.transition.instant=s(e,0),e.styles.transition.delayed=s(e,e.config.delay),e.styles.transform.initial=" -webkit-transform:",e.styles.transform.target=" -webkit-transform:",a(e),e.styles.transform.initial+="transform:",e.styles.transform.target+="transform:",a(e)}function s(e,t){var n=e.config;return"-webkit-transition: "+e.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; transition: "+e.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; "}function a(e){var t,n=e.config,i=e.styles.transform;t="top"===n.origin||"left"===n.origin?/^-/.test(n.distance)?n.distance.substr(1):"-"+n.distance:n.distance,parseInt(n.distance)&&(i.initial+=" translate"+n.axis+"("+t+")",i.target+=" translate"+n.axis+"(0)"),n.scale&&(i.initial+=" scale("+n.scale+")",i.target+=" scale(1)"),n.rotate.x&&(i.initial+=" rotateX("+n.rotate.x+"deg)",i.target+=" rotateX(0)"),n.rotate.y&&(i.initial+=" rotateY("+n.rotate.y+"deg)",i.target+=" rotateY(0)"),n.rotate.z&&(i.initial+=" rotateZ("+n.rotate.z+"deg)",i.target+=" rotateZ(0)"),i.initial+="; opacity: "+n.opacity+";",i.target+="; opacity: "+e.styles.computed.opacity+";"}function l(e){var t=e.config.container;t&&-1===O.store.containers.indexOf(t)&&O.store.containers.push(e.config.container),O.store.elements[e.id]=e}function c(e,t,n){var i={target:e,config:t,interval:n};O.history.push(i)}function d(){if(O.isSupported()){y();for(var e=0;e<O.store.containers.length;e++)O.store.containers[e].addEventListener("scroll",f),O.store.containers[e].addEventListener("resize",f);O.initialized||(window.addEventListener("scroll",f),window.addEventListener("resize",f),O.initialized=!0)}return O}function f(){S(y)}function u(){var e,t,n,i;O.tools.forOwn(O.sequences,function(o){i=O.sequences[o],e=!1;for(var r=0;r<i.elemIds.length;r++)n=i.elemIds[r],t=O.store.elements[n],q(t)&&!e&&(e=!0);i.active=e})}function y(){var e,t;u(),O.tools.forOwn(O.store.elements,function(n){t=O.store.elements[n],e=w(t),g(t)?(t.config.beforeReveal(t.domEl),e?t.domEl.setAttribute("style",t.styles.inline+t.
25styles.transform.target+t.styles.transition.delayed):t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.target+t.styles.transition.instant),p("reveal",t,e),t.revealing=!0,t.seen=!0,t.sequence&&m(t,e)):v(t)&&(t.config.beforeReset(t.domEl),t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.initial+t.styles.transition.instant),p("reset",t),t.revealing=!1)})}function m(e,t){var n=0,i=0,o=O.sequences[e.sequence.id];o.blocked=!0,t&&"onload"===e.config.useDelay&&(i=e.config.delay),e.sequence.timer&&(n=Math.abs(e.sequence.timer.started-new Date),window.clearTimeout(e.sequence.timer)),e.sequence.timer={started:new Date},e.sequence.timer.clock=window.setTimeout(function(){o.blocked=!1,e.sequence.timer=null,f()},Math.abs(o.interval)+i-n)}function p(e,t,n){var i=0,o=0,r="after";switch(e){case"reveal":o=t.config.duration,n&&(o+=t.config.delay),r+="Reveal";break;case"reset":o=t.config.duration,r+="Reset"}t.timer&&(i=Math.abs(t.timer.started-new Date),window.clearTimeout(t.timer.clock)),t.timer={started:new Date},t.timer.clock=window.setTimeout(function(){t.config[r](t.domEl),t.timer=null},o-i)}function g(e){if(e.sequence){var t=O.sequences[e.sequence.id];return t.active&&!t.blocked&&!e.revealing&&!e.disabled}return q(e)&&!e.revealing&&!e.disabled}function w(e){var t=e.config.useDelay;return"always"===t||"onload"===t&&!O.initialized||"once"===t&&!e.seen}function v(e){if(e.sequence){return!O.sequences[e.sequence.id].active&&e.config.reset&&e.revealing&&!e.disabled}return!q(e)&&e.config.reset&&e.revealing&&!e.disabled}function b(e){return{width:e.clientWidth,height:e.clientHeight}}function h(e){if(e&&e!==window.document.documentElement){var t=x(e);return{x:e.scrollLeft+t.left,y:e.scrollTop+t.top}}return{x:window.pageXOffset,y:window.pageYOffset}}function x(e){var t=0,n=0,i=e.offsetHeight,o=e.offsetWidth;do{isNaN(e.offsetTop)||(t+=e.offsetTop),isNaN(e.offsetLeft)||(n+=e.offsetLeft),e=e.offsetParent}while(e);return{top:t,left:n,height:i,width:o}}function q(e){var t=x(e.domEl),n=b(e.config.container),i=h(e.config.container),o=e.config.viewFactor,r=t.height,s=t.width,a=t.top,l=t.left,c=a+r,d=l+s;return function(){var t=a+r*o,f=l+s*o,u=c-r*o,y=d-s*o,m=i.y+e.config.viewOffset.top,p=i.x+e.config.viewOffset.left,g=i.y-e.config.viewOffset.bottom+n.height,w=i.x-e.config.viewOffset.right+n.width;return t<g&&u>m&&f>p&&y<w}()||function(){return"fixed"===window.getComputedStyle(e.domEl).position}()}function E(){}var O,S;e.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier(0.6, 0.2, 0.1, 1)",container:window.document.documentElement,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},beforeReveal:function(e){},beforeReset:function(e){},afterReveal:function(e){},afterReset:function(e){}},e.prototype.isSupported=function(){var e=document.documentElement.style;return"WebkitTransition"in e&&"WebkitTransform"in e||"transition"in e&&"transform"in e},e.prototype.reveal=function(e,s,a,f){var u,y,m,p,g,w;if(void 0!==s&&"number"==typeof s?(a=s,s={}):void 0!==s&&null!==s||(s={}),u=t(s),y=n(e,u),!y.length)return console.log('ScrollReveal: reveal on "'+e+'" failed, no elements found.'),O;a&&"number"==typeof a&&(w=i(),g=O.sequences[w]={id:w,interval:a,elemIds:[],active:!1});for(var v=0;v<y.length;v++)p=y[v].getAttribute("data-sr-id"),p?m=O.store.elements[p]:(m={id:i(),domEl:y[v],seen:!1,revealing:!1},m.domEl.setAttribute("data-sr-id",m.id)),g&&(m.sequence={id:g.id,index:g.elemIds.length},g.elemIds.push(m.id)),o(m,s,u),r(m),l(m),O.tools.isMobile()&&!m.config.mobile||!O.isSupported()?(m.domEl.setAttribute("style",m.styles.inline),m.disabled=!0):m.revealing||m.domEl.setAttribute("style",m.styles.inline+m.styles.transform.initial);return!f&&O.isSupported()&&(c(e,s,a),O.initTimeout&&window.clearTimeout(O.initTimeout),O.initTimeout=window.setTimeout(d,0)),O},e.prototype.sync=function(){if(O.history.length&&O.isSupported()){for(var e=0;e<O.history.length;e++){var t=O.history[e];O.reveal(t.target,t.config,t.interval,!0)}d()}else console.log("ScrollReveal: sync failed, no reveals found.");return O},E.prototype.isObject=function(e){return null!==e&&"object"==typeof e&&e.constructor===Object},E.prototype.isNode=function(e){return"object"==typeof window.Node?e instanceof window.Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},E.prototype.isNodeList=function(e){var t=Object.prototype.toString.call(e),n=/^\[object (HTMLCollection|NodeList|Object)\]$/;return"object"==typeof window.NodeList?e instanceof window.NodeList:e&&"object"==typeof e&&n.test(t)&&"number"==typeof e.length&&(0===e.length||this.isNode(e[0]))},E.prototype.forOwn=function(e,t){if(!this.isObject(e))throw new TypeError('Expected "object", but received "'+typeof e+'".');for(var n in e)e.hasOwnProperty(n)&&t(n)},E.prototype.extend=function(e,t){return this.forOwn(t,function(n){this.isObject(t[n])?(e[n]&&this.isObject(e[n])||(e[n]={}),this.extend(e[n],t[n])):e[n]=t[n]}.bind(this)),e},E.prototype.extendClone=function(e,t){return this.extend(this.extend({},e),t)},E.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},S=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof module&&module.exports?module.exports=e:window.ScrollReveal=e}(); 26function sempliceSetApgHistory(){var e={horFull:{}};return jQuery('[data-module="advancedportfoliogrid"]').each(function(t){if("horizontal-fullscreen"==jQuery(this).attr("data-apg-preset")){var n=jQuery(this).find(".apg").data("flickity");e.horFull[t]=n.selectedIndex}}),e}var overlayFadeOut=!1,postTransition={in:"",out:"",custom:"",extra:""},srStatus=semplice.sr_status,blogSrStatus=semplice.blog_sr_status,isPreview=semplice.is_preview,activeCoverSlider=!1,sempliceDebug=!1,coverSliderTimeout=!1,sempliceGallery=!1,sempliceEvents={appendContent:new Event("sempliceAppendContent"),transitions:{start:new Event("sempliceTransitionsStart"),out_start:new Event("sempliceTransitionOutStart"),in_start:new Event("sempliceTransitionInStart"),out_done:new Event("sempliceTransitionsOutDone"),in_done:new Event("sempliceTransitionInDone"),done:new Event("sempliceTransitionsDone")},menu:{open_start:new Event("sempliceMenuOpenStart"),close_start:new Event("sempliceMenuCloseStart"),open_done:new Event("sempliceMenuOpenDone"),close_done:new Event("sempliceMenuCloseDone")}},sempliceExecuteStack={};!0===sempliceDebug&&(console.log("# Scroll Reveal Status on First load: "+srStatus),console.log("# Blog SR Status: "+blogSrStatus),console.log("# is Preview: "+isPreview)),function(e){"use strict";var t,n,o,i,a=e("#content-holder"),s=".overlay-menu-inner",r=".semplice-cover",l=a.attr("data-active-post"),c=semplice.frontend_mode,p=semplice.transition,d=!1,m=!1,u={},h=".semplice-navbar",f={viewFactor:.2,opacity:0,distance:"0px",easing:"ease-out",duration:700,scale:1,mobile:!1},v={init:function(){if(v.helper.registerBreakpoints(),v.helper.isMobile()&&FastClick.attach(document.body),v.menu.init(),void 0!==semplice.sr_options){var t=["viewFactor","distance","easing","duration","opacity","scale","mobile"];e.each(t,function(e,t){if(void 0!==semplice.sr_options[t]){var n=semplice.sr_options[t];f[t]="distance"==t?n+"px":n,"mobile"==t&&(f[t]=!1,"true"==n&&(f[t]=!0)),"viewFactor"==t&&(0==n?f[t]=.01:n>=.5&&(f[t]=.5))}})}if(window.sr=new ScrollReveal,"enabled"==srStatus&&"static"==c)v.helper.reveal(!0);else if("disabled"==srStatus&&"enabled"==semplice.static_transitions&&"static"==c){TweenLite.to(e(".content-container"),.8,{opacity:1,ease:"Linear",onComplete:function(){}})}v.helper.photoSwipeIndexes("init"),v.helper.initVideos(),v.helper.resizeElements("frontend.init"),v.helper.textGridEvents()},main:{init:function(e,t,n){if(t)v.menu.showNavbar(!1,!1,!0),v.show.postFirstLoad(),"enabled"==srStatus&&v.helper.reveal(!0);else{var o=v.helper.getPostInfo(e);v.get.post(o,!1,!1,n)}}},get:{post:function(n,o,i,s){l=a.attr("data-active-post"),t=v.helper.generateId("post"),!0===sempliceDebug&&console.log("# Active Element ID: "+l+"\n# New Element ID: "+t);var r="normal";o||"enabled"!=p.status||"enabled"!=p.optimize||(r="delayed");var c={id:n.id,term:n.term,taxonomy:n.taxonomy,page:n.page,script_execution:r};!0===d&&(c.hide_cover=!0);var m=semplice.semplice_api_url+"/posts";"notfound"==n.id?m=semplice.semplice_api_url+"/notfound":"category"!=n.taxonomy&&"post_tag"!=n.taxonomy&&"posts"!=n.id&&(m+="/"+n.id),e.ajax({type:"GET",url:m,data:c,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",semplice.nonce)},success:function(t){!0===sempliceDebug&&console.log(t),e("body").attr({"data-
26post-type":t.post_type,"data-post-id":n.id});var a=e.extend(!0,{},t);sempliceExecuteStack={},v.show.post(a,o,i,s)},error:function(e){console.log(e)}})}},show:{postFirstLoad:function(){NProgress.done()},post:function(e,n,o,i){v.helper.setSrStatus(e),a.append('<div id="content-'+t+'" class="content-container is-top"></div>'),n||"disabled"==p.status?(v.helper.updateSiteMeta(e),v.helper.changeActiveDivStatus(t,o),v.helper.appendContent(t,e),v.helper.killCoverSlider(!0),v.helper.restoreScrollPosition(o),v.helper.restoreApgPosition(o),NProgress.done(),v.helper.afterPageTransitions()):(v.helper.updateSiteMeta(e),m=!0,!0===i.status?v.customTransitions.init(i,e,o):v.transitions.init(p.out.effect,p.in.effect,p.out,p.in,e,o,!1))}},transitions:{init:function(n,o,i,a,s,r,c){window.dispatchEvent(sempliceEvents.transitions.out_start),v.transitions[n]("out",e("#content-"+l),i,!0,!0,c),v.helper.changeActiveDivStatus(t,r),v.helper.appendContent(t,s),window.dispatchEvent(sempliceEvents.transitions.in_start),v.transitions[o]("in",e("#content-"+t),a,!1,!1,c)},fadeIn:function(e,t,n,o,i,a){var s=0;void 0!==n.delay&&(s=n.delay),postTransition[e]=TweenLite.to(t,n.duration,{opacity:1,ease:n.ease,clearProps:"opacity",delay:s,onComplete:function(){v.transitions.onComplete(t,o,i,a)}})},fadeOut:function(e,t,n,o,i,a){postTransition[e]=TweenLite.to(t,n.duration,{opacity:0,ease:n.ease,clearProps:"opacity",onComplete:function(){v.transitions.onComplete(t,o,i,a)}})},moveLeftToRight:function(e,t,n,o,i,a){postTransition[e]=TweenLite.to(t,n.duration,{xPercent:n.to,ease:n.ease,clearProps:"xPercent",onComplete:function(){v.transitions.onComplete(t,o,i,a)}})},moveRightToLeft:function(e,t,n,o,i,a){postTransition[e]=TweenLite.to(t,n.duration,{xPercent:n.to,ease:n.ease,clearProps:"xPercent",onComplete:function(){v.transitions.onComplete(t,o,i,a)}})},moveTopToBottom:function(e,t,n,o,i,a){postTransition[e]=TweenLite.to(t,n.duration,{yPercent:100,ease:n.ease,clearProps:"yPercent",onComplete:function(){v.transitions.onComplete(t,o,i,a)}})},moveBottomToTop:function(e,t,n,o,i,a){postTransition[e]=TweenLite.to(t,n.duration,{yPercent:-100,ease:n.ease,clearProps:"yPercent",onComplete:function(){v.transitions.onComplete(t,o,i,a)}})},onComplete:function(n,o,i,a){if(!1===a){n.removeClass("position-right position-left position-bottom position-normal position-top hide-on-init is-top");var s="in";p.out.duration>p.in.duration&&(s="out"),o?(e(n).hide(),window.dispatchEvent(sempliceEvents.transitions.out_done),"out"==s&&v.helper.afterPageTransitions()):(postTransition.out.totalProgress(1),v.helper.killCoverSlider(!0),e("#content-"+l).remove(),window.dispatchEvent(sempliceEvents.transitions.in_done),NProgress.done(),"in"==s&&v.helper.afterPageTransitions(),e("#content-"+t).removeClass("transition-hidden"))}else v.transitions.customOnComplete(n,a,o)},customOnComplete:function(t,n,o){switch(n.id){case"default":!0===o?(t.removeClass("position-right position-left position-bottom position-normal position-top hide-on-init is-top"),v.helper.killCoverSlider(!0),e("#content-"+l).remove(),NProgress.done(),v.helper.afterPageTransitions()):t.removeClass("position-right position-left position-bottom position-normal position-top hide-on-init is-top transition-hidden")}}},customTransitions:{init:function(t,n,o){switch(t.name){case"horizontal-fullscreen":v.customTransitions.horizontalFullscreen(e("#content-"+l),t,n,o)}},horizontalFullscreen:function(t,n,o,i){e("#content-"+l).css("z-index",2);var a=e('[data-transition-element="'+n.element+'"]'),s=a.closest(".column-content").attr("id"),r=a.closest(".apg"),c=r.attr("data-title-visibility"),p=(Math.abs(a.closest(".flickity-slider").position().left),r.attr("data-object-fit")),d=r.attr("data-mouseover"),m=a.closest("div"),u=parseInt(m.find(".post-thumbnail").attr("data-scale")),h=m.offset().top-e(window).scrollTop();m.find(".apg-post-title").is(".fadeout, .fadeout-top, .fadeout-right, .fadeout-bottom, .fadeout-left")&&m.find(".apg-post-title").remove(),m.clone().attr({id:"apg-transition-"+s,class:"apg-transition-clone","data-apg-preset":"horizontal-fullscreen"}).css({position:"fixed",width:m.width(),height:m.height(),top:h,left:m.offset().left,backgroundColor:m.css("background-color"),zIndex:10}).appendTo(".content-container").find(".post-thumbnail").addClass("post-object-fit-"+p),"scale-opacity"==d&&e(".apg-transition-clone").find(".post-thumbnail").css("transform","scale("+(1+u/100)+")"),e("#apg-transition-"+s).find(".apg-grid-item").attr("data-title-visibility",c);TweenLite.to(e("#apg-transition-"+s).find(".apg-post-title"),.75,{opacity:0}
26);postTransition.custom=TweenLite.to(e("#apg-transition-"+s),1,{width:"100%",height:e(window).height(),maxWidth:"100%",left:0,top:h,zIndex:10,ease:"Expo.easeInOut",onComplete:function(){e(window).scrollTop(0);var t=v.customTransitions.getAtts(.5,"Power0.easeNone","Power4.easeIn","fade","top",0,""),n=v.customTransitions.getAtts(0,"Power0.easeNone","Power4.easeIn","fade","bottom",0,"");v.transitions.init("fadeOut","fadeIn",t,n,o,i,{type:"out",endTransition:"out",id:"default"})}}),"scale-opacity"==d&&u>0&&(postTransition.extra=TweenLite.to(e("#apg-transition-"+s).find(".post-thumbnail"),1,{scale:1,ease:"Expo.easeInOut"}))},getAtts:function(e,t,n,o,i,a,s){return{duration:e,ease:t,easing:n,effect:o,position:i,delay:a,visibility:s}}},menu:{init:function(){if("align-top"==e(s+" nav").data("align")&&e(s+" nav").css("top",e(h).outerHeight()+"px"),"align-top"!=e(s+" nav").data("align")&&v.menu.responsiveOverlay(),"enabled"==semplice.static_transitions)if(0==e(".no-menu-transition").length){TweenLite.to(e(h),.8,{yPercent:100,ease:Expo.easeOut,onComplete:function(){e(h).css("transform","none")}})}else{TweenLite.to(e(h),.8,{opacity:1,ease:Expo.easeOut,onComplete:function(){e(h).css("transform","none")}})}},open:function(t){window.dispatchEvent(sempliceEvents.menu.open_start),e(".hamburger").attr({disabled:"disabled","data-status":"open"}),t.removeClass("open-menu").addClass("close-menu"),i=v.helper.getRgba(e(h).css("background-color")),v.menu.navbarBgOverlayVisibility(e(h).data("bg-overlay-visibility")),e("#overlay-menu").stop().show().css("z-index","119"),TweenLite.to("#overlay-menu",.35,{opacity:1,onComplete:function(){v.menu.afterOpenMenu(),window.dispatchEvent(sempliceEvents.menu.open_done)}}),setTimeout(function(){v.menu.showMenuItems(e(s+" nav ul li"))},50)},close:function(t){if("disabled"!==e(".hamburger").attr("disabled")){window.dispatchEvent(sempliceEvents.menu.close_start);var n="open-menu";e("nav.standard").length>0&&(n+=" responsive-menu"),e(".hamburger").attr({disabled:"disabled","data-status":"closed"}),t.removeClass("close-menu").addClass(n),v.menu.navbarBgOverlayVisibility("visible"),"enabled"==e(h).attr("data-cover-transparent")&&e(window).scrollTop()<=e(r).height()-(e(h).height()+20)&&e(h).css("background-color",""),e(h).insertBefore("#overlay-menu"),!e(h).hasClass("non-sticky-nav")&&e(window).width()>767.9&&e(h).css("position","fixed"),e("body").removeClass("open-menu"),a.css("width","100%"),TweenLite.to("#overlay-menu",.35,{opacity:0,onComplete:function(){v.menu.afterCloseMenu(),window.dispatchEvent(sempliceEvents.menu.close_done)}})}},showMenuItems:function(t){var n=0;return t.each(function(){var t=e(this);t.addClass("before-fade"),TweenLite.to(e(this),.35,{opacity:1,y:0,clearProps:"y",delay:n,onComplete:function(){t.removeClass("before-fade")}}),n+=.08})},responsiveOverlay:function(){o=e("header").outerHeight(),t=e(s+" nav").height();var t=2*o+(t+40);t>=e(window).height()?e(s+" nav").addClass("align-top").css("top",o+40):e(s+" nav").removeClass("align-top").css("top","")},afterOpenMenu:function(){e(h).insertBefore(".overlay-menu-inner").css("position","absolute");var t=e(window).width();e("body").addClass("open-menu");var n=e(window).width(),o=100*t/n;a.css("width",o+"%"),e(".hamburger").removeAttr("disabled")},afterCloseMenu:function(){e("#overlay-menu").css({zIndex:"-1",display:"none"}),e(s+" nav ul li").removeAttr("style"),e(".hamburger").removeAttr("disabled")},navbarBgOverlayVisibility:function(t){var n=0;"visible"==t&&(n=i.alpha),e(h).css("background-color","rgba("+i.red+", "+i.green+", "+i.blue+", "+n+")")},loadNav:function(e,t){if("false"!=t){var n;void 0!==semplice.menus[e]&&"object"==typeof semplice.menus[e]?(n=semplice.menus[e],!0===sempliceDebug&&console.log("# Navigation: "+e)):void 0!==semplice.menus.default?(n=semplice.menus[semplice.menus.default],!0===sempliceDebug&&console.log("# Navigation (default): "+semplice.menus.default)):(n=semplice.menus.system_default,!0===sempliceDebug&&console.log("# Navigation (system default)")),v.menu.showNavbar(!0,n,!1)}},showNavbar:function(n,o,i){var a="";void 0!==o.css&&(a=o.css.replace(/#content-holder/g,"#content-"+t).replace(/body/g,"#content-"+t));var r=.6;e(".no-menu-transition").length>0&&(r=0),n?(e("#"+t+"-post-css").append(a),e(".active-content").prepend(o.html),v.helper.setActiveMenuItem(e(".active-content"),i),e(h).css("opacity",1)):(e(".active-content").prepend(e("#overlay-menu")),e(".active-content").prepend(e(h)),v.helper.setActiveMenuItem(e(".active-content"),i),e(h).css("transform","translate(0px, -"+e(h).outerHeight()+"px)"),TweenLite.to(h,r,{opacity:1,y:0,ease:Expo.easeOutIn,clearProps:"y",onComplete:function(){e(h).css("transform","none")}})),"align-top"==e(s+" nav").data("align")&&e(s+" nav").css("top",e(h).outerHeight()+"px"),"align-top"!=e(s+" nav").data("align")&&v.menu.responsiveOverlay()},hideMenuOnPageChange:function(){a.css("width","100%"),e("body").removeClass("open-menu")}},helper:{registerBreakpoints:function(){var t={xl:"screen and (min-width: 1170px)",lg:"screen and (min-width: 992px) and (max-width: 1169.9px)",md:"screen and (min-width: 768px) and (max-width: 991.9px)",sm:"screen and (min-width: 544px) and (max-width: 767.9px)",xs:"screen and (max-width: 543.9px)"};e.each(t,function(t,n){enquire.register(n,{match:function(){e("body").attr("data-breakpoint-js",t)}})})},getUrl:function(e,t){var n={new:{full:v.helper.removeSlash(e),noHash:"",hash:""},active:{full:v.helper.removeSlash(t),noHash:""}},o=v.helper.parseUrl(n.new.full),i=v.helper.parseUrl(n.active.full);return n.new.noHash=n.new.full.replace(o.hash,""),n.active.noHash=n.active.full.replace(i.hash,""),n.new.noHash=n.new.noHash.replace(/\?.*/,""),n.active.noHash=n.active.noHash.replace(/\?.*/,""),n.new.noHash=v.helper.removeSlash(n.new.noHash),n.active.noHash=v.helper.removeSlash(n.active.noHash),o.hash&&(n.new.hash=o.hash),n},getPostSlug:function(e){return e=v.helper.removeSlash(e,"last"),e.substr(e.lastIndexOf("/")+1)},getPostInfo:function(e){var t={id:"",term:"",taxonomy:"",slug:"",page:0,hash:""};e=v.helper.removeSlash(e);var n=v.helper.parseUrl(e),o=n.pathname.match(/\/page\/([0-9]+)/);
26return null!==o&&(t.page=o[1],n.pathname=n.pathname.replace(o[0],"")),n.hash&&(t.hash=n.hash),t.slug=v.helper.getPostSlug(n.pathname),t.id=semplice.post_ids[t.slug],e=v.helper.removeSlash(e.split("#")[0]),e==semplice.base_url?t.id=semplice.frontpage_id:e==semplice.blog_home?t.id="posts":n.pathname.indexOf(semplice.category_base)>-1?(t.term=t.slug,t.id="category",t.taxonomy="category"):n.pathname.indexOf(semplice.tag_base)>-1?(t.term=t.slug,t.id="post_tag",t.taxonomy="post_tag"):void 0==t.id&&(t.id="notfound"),!0===sempliceDebug&&console.log("# Pathname: "+n.pathname+"\n# Pagination: "+t.page+"\n# Slug: "+t.slug+"\n# Post-ID: "+t.id+"\n# Taxonomy: "+t.taxonomy+"\n# Term: "+t.term+"\n# Hash: "+t.hash),t},parseUrl:function(e){var t=document.createElement("a");return t.href=e,t},removeSlash:function(e){return"/"==e.slice(-1)&&(e=e.replace(/\/+$/,"")),e},getHash:function(){var e=window.location.hash;return!!e&&e.replace("/","")},noHash:function(e){var t=document.createElement("a");return t.href=e,t.hash?e.replace(t.hash,""):e},goToHash:function(t){var n=.8;e("body").hasClass("open-menu")&&(n=0),e(t).length>0?TweenLite.to(window,n,{scrollTo:{y:e(t).offset().top-e(h).height()},ease:Expo.easeInOut,onComplete:function(){window.location.hash=t}}):window.location.hash=t},isValidUrl:function(e){var t=!0;return v.helper.isExternal(e.new.full)&&(t=!1),"wp-admin"==v.helper.getPostSlug(e.new.full)&&(t=!1),"#"==e.new.full.charAt(0)&&(t=!1),e.new.full.indexOf("replyto")>-1&&(t=!1),t},checkDomain:function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace(/([a-z])?:\/\//,"$1").split("/")[0]},isExternal:function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&v.helper.checkDomain(location.href)!==v.helper.checkDomain(e)},changePage:function(t,o,i,a){var s=e(window).scrollTop(),r=v.helper.generateId("page");if(history.replaceState({id:r,apg:sempliceSetApgHistory()},"",o),u[r]=s,!0===sempliceDebug&&console.log("#############################################################\n# Action: Click on Link\n# History Page ID: "+r+" \n# Active URL: "+o+" \n# Scroll Position: "+s+"\n# New URL: "+t),!0===a.status);else{if(e(".non-sticky-nav").length>0){s<e(h).height()?e(h).css("top","-"+s+"px"):e(h).css("top","-2000px")}TweenLite.to(e(".content-container"),0,{height:e(window).height(),overflow:"hidden"}),e(".transition-wrap").css("top","-"+s+"px")}history.pushState(null,i,t),v.main.init(t,!1,a),n=t},getDataAttributes:function(t){return{handler:e(t).attr("data-handler"),postId:e(t).attr("data-post-id"),postType:e(t).attr("data-post-type")}},getPostType:function(e){return semplice.posts[e][type]},updateSiteMeta:function(t){var n={"head > title":t.title,'link[rel="canonical"]':window.location.href},o={_yoast_wpseo_metadesc:'meta[name="description"]',"_yoast_wpseo_opengraph-image":'meta[property="og:image"]',"_yoast_wpseo_opengraph-title":'meta[property="og:title"]',"_yoast_wpseo_opengraph-description":'meta[property="og:description"]',"_yoast_wpseo_twitter-image":'meta[name="twitter:image"]',"_yoast_wpseo_twitter-title":'meta[name="twitter:title"]',"_yoast_wpseo_twitter-description":'meta[name="twitter:description"]',_yoast_wpseo_canonical:'link[rel="canonical"]'};if(void 0!==t.post_settings){var i=t.post_settings;void 0!==i.seo&&e.each(i.seo,function(e,t){n[o[e]]=t})}e.each(n,function(t,n){"head > title"==t?e(t).html(n):'link[rel="canonical"]'==t?e(t).attr("href",n):e(t).attr("content",n)})},getActiveContentDiv:function(){return e(".active-content").attr("data-content-div")},changeActiveDivStatus:function(t,n){e(".content-container").removeClass("active-content position-right position-left position-bottom position-top"),a.attr("data-active-post",t),n||"disabled"==p.status?e("#content-"+t).addClass("active-content"):e("#content-"+t).addClass("active-content position-"+p.in.position+" "+p.in.visibility),"topToBottom"!=p.preset&&"bottomToTop"!=p.preset||e(".active-content").css({height:"100%",overflowY:"hidden"})},appendContent:function(t,n){var o=["posts","post","category"];void 0!==n.content&&(e("head").append('<style type="text/css" id="'+t+'-post-css">'+n.content.css.replace(/#content-holder/g,"#content-"+t).replace(/body/g,"#content-"+t)+"</style>"),n.has_password?(e("#content-"+t).html(semplice.password_form),e(".post-password-submit").attr("data-id",n.id)):e("#content-"+t).html(n.content.html),void 0===n.content.js||e.isEmptyObject(n.content.js)||n.has_password||e("body").append('<script type="text/javascript" id="'+t+'-motion-js">'+n.content.js+"<\/script>")),void 0!==n.post_settings&&n.post_settings?void 0!==n.post_settings.meta.navbar?v.menu.loadNav(n.post_settings.meta.navbar,n.post_settings.meta.navbar_visibility):v.menu.loadNav(!1,n.post_settings.meta.navbar_visibility):o.indexOf(n.post_type)>-1&&semplice.blog_navbar?v.menu.loadNav(semplice.blog_navbar,!0):v.menu.loadNav(!1,!0),v.helper.resizeElements("appendConent"),v.helper.initVideos(),v.helper.photoSwipeIndexes(t),window.dispatchEvent(sempliceEvents.appendContent)},afterPageTransitions:function(){window.dispatchEvent(sempliceEvents.transitions.done),m=!1,e(".content-container").css({top:"",height:"",overflowY:""}),e("#content-"+l).remove(),e("#"+l+"-post-css").remove(),e("#"+l+"-motion-js").remove(),e(window).scroll(),!0===sempliceDebug&&(console.log("# Transition Status: Done!"),console.log("#############################################################")),"enabled"==srStatus&&v.helper.reveal(!1);var t=v.helper.getHash();t&&v.helper.goToHash(t)},generateId:function(e){return e+"_"+Math.random().toString(36).substr(2,9)},restoreScrollPosition:function(t){t&&(null!=history.state?setTimeout(function(){!0===sempliceDebug&&console.log("#############################################################\n# Action: Browser Button\n# Page ID: "+history.state.id+" \n# URL: "+window.location.href+" \n# Restore Scroll Position: "+u[history.state.id]+"\n#############################################################"),e(document).scrollTop(u[history.state.id])},0):setTimeout(function(){!0===sempliceDebug&&console.log("#############################################################\n# Action: Browser Button\n# Page ID: Most Recent \n# URL: "+window.location.href+" \n# Restore Scroll Position: "+u.most_recent+"\n#############################################################"),e(document).scrollTop(u.most_recent)},0))},restoreApgPosition:function(t){t&&null!=history.state&&void 0!==history.state.apg&&setTimeout(function(){!0===sempliceDebug&&console.log("#############################################################\n# Action: Browser Button\n# Page ID: "+history.state.id+" \n# URL: "+window.location.href+" \n# Restore Scroll Position: "+u[history.state.id]+"\n#############################################################"),e('[data-module="advancedportfoliogrid"]').each(function(t){if("horizontal-fullscreen"==e(this).attr("data-apg-preset")&&void 0!==history.state.apg.horFull[t]&&e.isNumeric(history.state.apg.horFull[t])){e(this).find(".apg").flickity("select",history.state.apg.horFull[t])}})}
26,0)},reveal:function(t){var n=e("section").length,o=0;e("section").each(function(){e(this).isOnScreen(.01,.01)&&1!=t||e(this).addClass("reveal"),o+=1,n==o&&(sr.reveal(".reveal",f),t&&e(".active-content").removeClass("hide-on-init"))})},isMobile:function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|android|ipad|playbook|silk|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},getRgba:function(e){var t={red:null,green:null,blue:null,alpha:null};if("string"==typeof e)if(0===e.indexOf("#"))e=e.substr(1),t=3==e.length?{red:parseInt(e[0]+e[0],16),green:parseInt(e[1]+e[1],16),blue:parseInt(e[2]+e[2],16),alpha:1}:{red:parseInt(e.substr(0,2),16),green:parseInt(e.substr(2,2),16),blue:parseInt(e.substr(4,2),16),alpha:1};else if(0===e.indexOf("rgb(")){var n=e.indexOf(",");t={red:parseInt(e.substr(4,n)),green:parseInt(e.substr(n+1,e.indexOf(",",n))),blue:parseInt(e.substr(e.indexOf(",",n+1)+1,e.indexOf(")"))),alpha:1}}else if(0===e.indexOf("rgba(")){var n=e.indexOf(","),o=e.indexOf(",",n+1);t={red:parseInt(e.substr(5,n)),green:parseInt(e.substr(n+1,o)),blue:parseInt(e.substr(e.indexOf(",",n+1)+1,e.indexOf(",",o))),alpha:parseFloat(e.substr(e.indexOf(",",o+1)+1,e.indexOf(")")))}}else{var i={acqua:"#0ff",teal:"#008080",blue:"#00f",navy:"#000080",yellow:"#ff0",olive:"#808000",lime:"#0f0",green:"#008000",fuchsia:"#f0f",purple:"#800080",red:"#f00",maroon:"#800000",white:"#fff",gray:"#808080",silver:"#c0c0c0",black:"#000"};void 0!=i[e]&&(t=getColorValues(i[e]))}return t},setSrStatus:function(e){srStatus="enabled",void 0!==e.content.branding&&void 0!==e.content.branding.scroll_reveal?(srStatus=e.content.branding.scroll_reveal,!0===sempliceDebug&&console.log("# Changing Scroll Reveal Status to "+srStatus)):"posts"!=e.post_type&&"post"!=e.post_type&&"category"!=e.post_type||(srStatus=blogSrStatus,!0===sempliceDebug&&console.log("# Changing Blog Scroll Reveal Status to "+blogSrStatus))},photoSwipe:function(t){var n=document.querySelectorAll(".pswp")[0],o=[];e(".lightbox-item").each(function(){var t="";void 0!==e(this).attr("caption")&&(t=e(this).attr("caption")),o.push({src:e(this).attr("src"),w:e(this).attr("width"),h:e(this).attr("height"),msrc:e(this).attr("src"),title:t})});var i={index:parseInt(t),history:!1,shareEl:!1,getThumbBoundsFn:function(e){var t=document.querySelectorAll(".lightbox-item")[e],n=window.pageYOffset||document.documentElement.scrollTop,o=t.getBoundingClientRect();return{x:o.left,y:o.top+n,w:o.width}}};sempliceGallery=new PhotoSwipe(n,PhotoSwipeUI_Default,o,i),sempliceGallery.init()},photoSwipeIndexes:function(t){t="init"==t?"#content-holder":"#content-"+t,e("#content-holder .post").find(".gallery").length>0&&e(".gallery-item").each(function(){e(this).find("a").addClass("semplice-lightbox"),e(this).find("img").addClass("lightbox-item")});var n=0;e(t).find(".lightbox-item").each(function(){e(this).attr("data-photoswipe-index",n),n++})},scrollToTop:function(e){TweenLite.to(window,.9,{scrollTo:{y:0,autoKill:!1},ease:Expo.easeInOut})},scrollToContent:function(t){var n;n="absolute"==e(h).css("position")?0:e(h).height()-1,e(h).hasClass("scroll-to-top")&&(n=0),TweenLite.to(window,1,{scrollTo:{y:e(r).height()-n,autoKill:!1},ease:Expo.easeInOut})},initVideos:function(){e("#content-holder .post").length>0&&(e("iframe").wrap('<div class="responsive-video"></div>'),e(".wp-video, .wp-block-video").each(function(){e(this).attr("style","").wrap('<div class="responsive-video"></div>')})),e(".ce-video video, .wp-video video, .wp-audio-shortcode, .wp-block-video video").mediaelementplayer({pauseOtherPlayers:!1,stretching:"responsive",success:function(t,n){var o=e(t.i
26d?"#"+t.id:t);o.children("video").addClass("is-content"),o.attr("poster",""),t.addEventListener("ended",function(e){o.parents(".mejs-inner").find(".mejs-poster").show()}),"object"!=typeof n.getAttribute("autoplay")&&"object"!=typeof n.getAttribute("muted")?n.play():n.pause()}})},postPassword:function(n){var o=e(n).attr("data-id"),i=e('[name="post_password"]').val();e.ajax({type:"GET",url:semplice.semplice_api_url+"/post-password",data:{id:o,password:i},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",semplice.nonce)},success:function(n){if("wrong-password"!=n){e(".sections").remove(),e(".post-password-form").remove(),e(".active-content").append('<div class="transition-wrap"><div class="sections">'+n.html+"</div></div>");var i=o+"-motion-js";if(void 0!==t&&(i=t+"-motion-js"),void 0===n.js||e.isEmptyObject(n.js)||e("body").append('<script type="text/javascript" id="'+i+'">'+n.js+"<\/script>"),void 0!==n.css&&!e.isEmptyObject(n.css)){var a=i.replace("-motion-js","-post-css");e("#"+a).append(n.css)}"enabled"==srStatus&&v.helper.reveal(!0),e(window).scroll(),v.helper.resizeElements("appendConent"),v.helper.initVideos(),v.helper.photoSwipeIndexes(t)}else e(".post-password-input").css("border","1px solid #f14c4c")},error:function(e){console.log(e)}})},setActiveMenuItem:function(t,n){var o=v.helper.removeSlash(window.location.href);n||(t.find(".menu-item, .page_item").removeClass("current-menu-item current_page_item"),t.find(".menu-item").each(function(){v.helper.removeSlash(e(this).find("a").attr("href"))==o&&e(this).addClass("current-menu-item")}))},removeCommentReplyLink:function(){e("#reply-title a").remove()},changeSlide:function(t){var n=t.attr("data-type"),o=t.attr("data-direction");"vertical"==n?"next"==o?e.fn.fullpage.moveSectionDown():e.fn.fullpage.moveSectionUp():"next"==o?e.fn.fullpage.moveSlideRight():e.fn.fullpage.moveSlideLeft()},killCoverSlider:function(n){var o=!0;!0===activeCoverSlider&&(!0===n&&e("#content-"+t).find("#coverslider").length>0&&(o=!1),!0===o&&(e.fn.fullpage.destroy("all"),e("#fp-parallax-stylesheet").remove(),e("#fp-parallax-transitions").remove(),e("#fp-parallax-transition-class").remove(),activeCoverSlider=!1))},resizeElements:function(t){e(".semplice-cover").each(function(){e(this).css("height",e(window).height())}),e(".transitions-preloader").each(function(){e(this).css("height",e(window).height())}),e('[data-apg-preset="horizontal-fullscreen"]').each(function(){e(this).css("height",e(window).height())}),e('[data-apg-preset="text"]').each(function(){e(this).css("min-height",e(window).height()),e(this).find(".apg-text").css("min-height",e(window).height())}),setTimeout(function(){if(e('[data-nav="logo-middle-menu-sides"]').length>0){var t=e(h).width(),n=e(".logo").outerWidth(),o=(t-n)/2;e(".menu-left, .menu-right").css("width",o)}},0)},hideCover:function(e){return!!e.hasClass("cs-hide-covers")},addFocusBeforeWrap:function(t){t.parent().hasClass("menu-item")?(e(".menu-item").removeClass("current-menu-item current_page_item"),t.parent().addClass("wrap-focus")):t.parent().hasClass("thumb")?t.find(".thumb-inner").addClass("wrap-focus"):t.addClass("wrap-focus")},getCustomTransition:function(t){var n={status:!1,name:!1,element:!1};if(void 0!==t.attr("data-custom-transition")){var o=!0;if("horizontal-fullscreen"==t.attr("data-custom-transition")){if(12==t.closest(".apg-post").attr("data-"+e("body").attr("data-breakpoint-js")+"-width"))var o=!1}n={status:o,name:t.attr("data-custom-transition"),element:t.attr("data-transition-element")}}return n},textGridEvents:function(){e("body").on("mouseenter",".apg-post-text",function(t){var n=.7,o=1.1,i=e(this).closest(".apg"),a=e(this),s=i.attr("data-mouseover-effect");"none"!=s&&"fade_title"!=s||(n=0),"original_mouse"==i.attr("data-image-mode")?("enabled"==i.attr("data-mask-effect")&&i.hasClass("column-dir")?(o=1,a.find(".post-thumbnail img").css("z-index",4),a.find(".apg-post-title").css("z-index",10),a.find(".title").clone().attr("class","title title-hover").appendTo(a.find(".apg-post-title")).wrap('<div class="mask"></div>')):"fade_both"!=s&&"fade_title"!=s||i.find(".apg-post-text, .apg-text-seperator").removeClass("apg-text-active").addClass("apg-text-active"),a.mousemove(function(t){if(t.pageX||t.pageY)var n=t.pageX,o=t.pageY;else var n=t.clientX+document.body.scrollLeft,o=t.clientY+document.body.scrollTop;var s=i.offset(),r=a.find(".post-thumbnail img"),l=r.width(),c=r.height();
26if(a.find(".post-thumbnail img").css({top:o-c/2-s.top,left:n-l/2-s.left}),"enabled"==i.attr("data-mask-effect")){a.find(".mask").css({width:l,height:a.find(".title").height(),top:a.find(".title").offset().top-s.top,left:n-l/2-s.left});var p=e(this).find(".mask").offset().left-e(this).find(".title").offset().left;p>=0?a.find(".title-hover").css({top:0,left:"-"+p+"px"}):a.find(".title-hover").css({top:0,left:(p*=-1)+"px"})}})):"original_mouse"!=i.attr("data-image-mode")&&(a.unbind("mousemove"),"fade_both"!=s&&"fade_title"!=s||i.find(".apg-post-text, .apg-text-seperator").removeClass("apg-text-active").addClass("apg-text-active"));TweenLite.to(a.find(".post-thumbnail img"),n,{opacity:1,visibility:"visible",scale:o,ease:"Expo.easeOut"})}),e("body").on("mouseleave",".apg-post-text",function(){var t=e(this).closest(".apg"),n=e(this),o=t.attr("data-mouseover-effect"),i=.7 27;"none"!=o&&"fade_title"!=o||(i=0),"original_mouse"==t.attr("data-image-mode")?"enabled"==t.attr("data-mask-effect")?(n.find(".mask").remove(),n.find(".apg-post-title").css("z-index",1),n.find(".post-thumbnail img").css("z-index",0)):n.closest(".apg").find(".apg-post-text, .apg-text-seperator").removeClass("apg-text-active"):"original_mouse"!=t.attr("data-image-mode")&&n.closest(".apg").find(".apg-post-text, .apg-text-seperator").removeClass("apg-text-active");TweenLite.to(n.find(".post-thumbnail img"),i,{opacity:0,scale:1,ease:"Expo.easeOut",onComplete:function(){n.find(".post-thumbnail img").css("visibility","hidden")}})})},filterMasonry:function(t){var n=e(t.attr("data-masonry-element")),o=t.attr("data-category"),i=n.closest(".column-content");n.find(".masonry-item").addClass("masonry-filter-transition"),"show-all"!=o?n.find(".masonry-item").each(function(){e(this).hasClass("cat-"+o)?e(this).show():e(this).hide()}):n.find(".masonry-item").show(),i.find(".pg-filter-active").removeClass("pg-filter-active"),i.find('[data-category="'+o+'"]').addClass("pg-filter-active"),n.masonry(),setTimeout(function(){n.find(".masonry-item").removeClass("masonry-filter-transition"),console.log("removed")},500)},lazyLoad:function(t){var n=t.attr("data-type"),o=t.attr("data-content-id"),i=parseInt(t.attr("data-offset")),a=parseInt(t.attr("data-load"));e.ajax({type:"GET",url:semplice.semplice_api_url+"/lazy-load/"+n,data:{post_id:e("body").attr("data-post-id"),content_id:o,offset:i,load:a},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",semplice.nonce)},success:function(n){t.attr("data-offset",i+a);var s=e("#masonry-"+o);s.append(n.items),e("#"+o+"-style").append(n.css),s.masonry("reloadItems");var r=s.find(".pg-lazy-load");!function(t,n){var o=t.data("masonry"),i=o.options.itemSelector;n.imagesLoaded().progress(function(t,n){var a=e(n.img).parents(i);o.layout(),TweenLite.to(a,1.1,{opacity:1,y:0,ease:"Expo.easeOut",scale:1,onComplete:function(){a.removeClass("pg-lazy-load")}})})}(s,r),!0===n.fin&&e("#"+o).find(".load-more-wrapper img").fadeOut("fast")},error:function(e){console.log(e)}})}},execute:{masonry:function(n){var o=e(".active-content").find("#masonry-"+n.id);o.append(n.html),v.helper.photoSwipeIndexes(t),o.find(".ce-video video").mediaelementplayer({pauseOtherPlayers:!1,stretching:"responsive",success:function(t,n){var o=e(t.id?"#"+t.id:t);o.attr("poster",""),t.addEventListener("ended",function(e){o.parents(".mejs-inner").find(".mejs-poster").show()})}})},coverslider:function(t){e(".coverslider-holder").replaceWith(t.html),TweenLite.to(e("#coverslider"),1,{opacity:1,ease:"Expo.easeIn"})}}};if(v.init(),"static"!=c?(NProgress.configure({showSpinner:!1}),NProgress.start(),v.main.init(window.location.href,!0,!1),e(document).on("click","a",function(t){if(e(this).hasClass("semplice-event"))v[e(this).attr("data-event-type")][e(this).attr("data-event")](e(this));else if("_blank"!=e(this).attr("target")&&void 0!==e(this).attr("href")&&!1!==e(this).attr("href")){var o=e(this).attr("href");if("#"==o.charAt(0)){var i=v.helper.parseUrl(window.location.href);n=i.href.replace(i.hash,""),o=n+o}o=v.helper.getUrl(o,window.location.href);var a=e(this).text(),s=v.helper.getCustomTransition(e(this));if(e(this).hasClass("semplice-lightbox"))t.preventDefault();else if(v.helper.isValidUrl(o)){if(t.metaKey||t.shiftKey||t.ctrlKey)return;t.preventDefault(),0==m&&(o.new.noHash!=o.active.noHash?("object"==typeof window.sempliceAnimationsController&&window.sempliceAnimationsController.destroy(),v.helper.addFocusBeforeWrap(e(this)),NProgress.start(),d=v.helper.hideCover(e(this)),e("body").hasClass("open-menu")?(v.menu.hideMenuOnPageChange(),overlayFadeOut=TweenLite.to("#overlay-menu",.35,{opacity:0,onComplete:function(){v.helper.changePage(
27o.new.full,o.active.full,a,s)}})):v.helper.changePage(o.new.full,o.active.full,a,s)):o.new.hash&&o.new.hash!=window.location.hash?v.helper.goToHash(o.new.hash):e("body").hasClass("open-menu")&&v.menu.close(e(".close-menu")))}else if(o.new.full.indexOf("replyto")>-1){var r=o.new.full.match(/replytocom=\d+/);if(null!==r&&(r=parseInt(r[0].replace("replytocom=","")),e.isNumeric(r))){v.helper.goToHash("#reply-title"),e("#comment_parent").val(r);var l=e("#comment-"+r).find("cite").first().text();e("#reply-title").html(""),e("#reply-title").append('Leave a reply to <a href="#comment-'+r+'">'+l+'</a><a rel="nofollow" class="semplice-event" data-event-type="helper" data-event="removeCommentReplyLink" id="cancel-comment-reply-link">Cancel Reply</a>')}t.preventDefault()}}}),window.onpopstate=function(e){if(TweenLite.killTweensOf(".content-container"),TweenLite.killTweensOf(postTransition.custom.target),TweenLite.killTweensOf(postTransition.custom.extra),v.helper.noHash(n)!=v.helper.noHash(window.location.href)){d=!1,!1!==overlayFadeOut&&overlayFadeOut.isActive()&&(overlayFadeOut.kill(),v.menu.hideMenuOnPageChange()),!1!==sempliceGallery&&sempliceGallery.close(),t!=l&&(v.helper.killCoverSlider(!1),a.html(""));var o=window.location.href.replace(/\?.*/,""),i=v.helper.getPostInfo(o);v.get.post(i,!0,!0,!1),n=o}}):(v.helper.restoreApgPosition(!0),e(document).on("click","a",function(t){if(e(this).hasClass("semplice-event"))v[e(this).attr("data-event-type")][e(this).attr("data-event")](e(this));else if(d=v.helper.hideCover(e(this)),history.replaceState({apg:sempliceSetApgHistory()},"",window.location.href),"enabled"==semplice.static_transitions){if("_blank"!=e(this).attr("target")&&void 0!==e(this).attr("href")&&!1!==e(this).attr("href")){var n=e(this).attr("href");if(n=v.helper.getUrl(n,window.location.href),v.helper.isValidUrl(n)&&!n.new.hash){if(0==e(".no-menu-transition").length){TweenLite.to(e(h),.7,{yPercent:-100,ease:"Expo.easeInOut",onComplete:function(){}})}TweenLite.to(a,.7,{opacity:0,ease:"Linear",onComplete:function(){!0===d?(e("#coverslider-form").attr("action",n.new.full),document.getElementById("coverslider-form").submit()):window.location=n.new.full}});return!1}}}else if(!0===d)return e("#coverslider-form").attr("action",e(this).attr("href")),document.getElementById("coverslider-form").submit(),!1})),e("#content-holder").on("click",".semplice-lightbox",function(){v.helper.photoSwipe(e(this).children("img").attr("data-photoswipe-index"))}),e("#content-holder").on("click",".semplice-menu",function(){"open"==e(".hamburger").attr("data-status")?v.menu.close(e(".close-menu")):v.menu.open(e(".open-menu"))}),e("#content-holder").on("mouseenter",".video-hover",function(){e(this).find("video").trigger("play")}),e("#content-holder").on("mouseleave",".video-hover",function(){e(this).find("video").trigger("pause")}),e(window).on("scroll",function(t){if("static"!=c&&(null==history.state&&e(document).scrollTop()>0?u.most_recent=e(window).scrollTop():e(document).scrollTop()>0&&(u[history.state.id]=e(window).scrollTop())),"parallax"==e(r).attr("data-parallax")&&"zoom"!=e(".cover-image").attr("data-cover-zoom")&&0==e("#coverslider").length){var n=e(window).scrollTop()/3;e(".cover-image").css({transform:"translate3d(0px, "+n+"px, 0px)"})}"enabled"==e(h).attr("data-cover-transparent")&&(e(this).scrollTop()>=e(r).height()-(e(".semplice-navbar").height()+20)?e(".semplice-navbar").removeClass("cover-transparent"):e(r).isOnScreen(.01,.01)&&e(".semplice-navbar").addClass("cover-transparent")),e(this).scrollTop()>400&&0==e(".corner-navbar").length?e(".back-to-top").stop().fadeIn(700):e(".back-to-top").stop().fadeOut(700)}),e(window).on("resize",function(t){"align-top"!=e(s+" nav").data("align")&&v.menu.responsiveOverlay(),v.helper.resizeElements("resize")}),e(window).on("hashchange",function(t){e("body").hasClass("open-menu")&&v.menu.close(e(".close-menu"))}),e(window).bind("pageshow",function(e){e.originalEvent.persisted&&window.location.reload()}),!0===sempliceDebug){var g=["sempliceTransitionsStart","sempliceTransitionOutStart","sempliceTransitionInStart","sempliceTransitionsOutDone","sempliceTransitionInDone","sempliceTransitionsDone","sempliceMenuOpenStart","sempliceMenuCloseStart","sempliceMenuOpenDone","sempliceMenuCloseDone"];e.each(g,function(e,t){window.addEventListener(t,function(e){console.log("Event: "+t+" just triggered.")},!1)})}window.addEventListener("sempliceTransitionsDone",function(t){e.isEmptyObject(sempliceExecuteStack)||e.each(sempliceExecuteStack,function(e,t){v.execute[t.type](t)})},!1)}(jQuery);
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.