/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
var _gsScope;((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,l,e,S,_,w,x,v,i,y,C,T,b,p,f,g,n;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,h,y){var g=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},v=function(t,e,i){var n,s,o=t.cycle;for(n in o)s=o[n],t[n]="function"==typeof s?s(i,e[i]):s[i%s.length];delete t.cycle},T=function(t,e,i){y.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=T.prototype.render},b=1e-10,_=y._internals,w=_.isSelector,S=_.isArray,t=T.prototype=y.to({},.1,{}),x=[];T.version="1.20.3",t.constructor=T,t.kill()._gc=!1,T.killTweensOf=T.killDelayedCallsTo=y.killTweensOf,T.getTweensOf=y.getTweensOf,T.lagSmoothing=y.lagSmoothing,T.ticker=y.ticker,T.render=y.render,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),y.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,n=this.ratio,s=this.vars.immediateRender||t.immediateRender;for(i in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[i]=t[i];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&y._onPluginEvent("_onDisable",this),.998<this._time/this._duration){var o=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._initted=!1,this._init(),0<this._time||s)for(var r,a=1/(1-n),l=this._firstPT;l;)r=l.s+l.c,l.c*=a,l.s=r-l.c,l=l._next;return this},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,s,o,r,a,l,c,h,d,u=this._dirty?this.totalDuration():this._totalDuration,p=this._time,f=this._totalTime,m=this._cycle,g=this._duration,v=this._rawPrevTime;if(u-1e-7<=t&&0<=t?(this._totalTime=u,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(v<0||t<=0&&-1e-7<=t||v===b&&"isPause"!==this.data)&&v!==t&&(i=!0,b<v&&(s="onReverseComplete")),this._rawPrevTime=h=!e||t||v===t?t:b)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==f||0===g&&0<v)&&(s="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||i)&&(0<=v&&(i=!0),this._rawPrevTime=h=!e||t||v===t?t:b)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(r=g+this._repeatDelay,this._cycle=this._totalTime/r>>0,0!==this._cycle&&this._cycle===this._totalTime/r&&f<=t&&this._cycle--,this._time=this._totalTime-this._cycle*r,this._yoyo&&0!=(1&this._cycle)&&(this._time=g-this._time,(d=this._yoyoEase||this.vars.yoyoEase)&&(this._yoyoEase||(!0!==d||this._initted?this._yoyoEase=d=!0===d?this._ease:d instanceof Ease?d:Ease.map[d]:(d=this.vars.ease,this._yoyoEase=d=d?d instanceof Ease?d:"function"==typeof d?new Ease(d,this.vars.easeParams):Ease.map[d]||y.defaultEase:y.defaultEase)),this.ratio=d?1-d.getRatio((g-this._time)/g):0)),this._time>g?this._time=g:this._time<0&&(this._time=0)),this._easeType&&!d?(a=this._time/g,(1===(l=this._easeType)||3===l&&.5<=a)&&(a=1-a),3===l&&(a*=2),1===(c=this._easePower)?a*=a:2===c?a*=a*a:3===c?a*=a*a*a:4===c&&(a*=a*a*a*a),1===l?this.ratio=1-a:2===l?this.ratio=a:this._time/g<.5?this.ratio=a/2:this.ratio=1-a/2):d||(this.ratio=this._ease.getRatio(this._time/g))),p!==this._time||i||m!==this._cycle){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=p,this._totalTime=f,this._rawPrevTime=v,this._cycle=m,_.lazyTweens.push(this),void(this._lazy=[t,e]);!this._time||n||d?n&&this._ease._calcEnd&&!d&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/g)}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&0<=t&&(this._active=!0),0===f&&(2===this._initted&&0<t&&this._init(),this._startAt&&(0<=t?this._startAt.render(t,!0,i):s||(s="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===g)&&(e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,!0,i),e||(this._totalTime!==f||s)&&this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),s&&(!this._gc||i)&&(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===g&&this._rawPrevTime===b&&h!==b&&(this._rawPrevTime=0))}else f!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},T.to=function(t,e,i){return new T(t,e,i)},T.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new T(t,e,i)},T.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new T(t,e,n)},T.staggerTo=T.allTo=function(t,e,i,n,s,o,r){n=n||0;var a,l,c,h,d=0,u=[],p=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),s.apply(r||i.callbackScope||this,o||x)},f=i.cycle,m=i.startAt&&i.startAt.cycle;for(S(t)||("string"==typeof t&&(t=y.selector(t)||t),w(t)&&(t=g(t))),t=t||[],n<0&&((t=g(t)).reverse(),n*=-1),a=t.length-1,c=0;c<=a;c++){for(h in l={},i)l[h]=i[h];if(f&&(v(l,t,c),null!=l.duration&&(e=l.duration,delete l.duration)),m){for(h in m=l.startAt={},i.startAt)m[h]=i.startAt[h];v(l.startAt,t,c)}l.delay=d+(l.delay||0),c===a&&s&&(l.onComplete=p),u[c]=new T(t[c],e,l),d+=n}return u},T.staggerFrom=T.allFrom=function(t,e,i,n,s,o,r){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,T.staggerTo(t,e,i,n,s,o,r)},T.staggerFromTo=T.allFromTo=function(t,e,i,n,s,o,r,a){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,T.staggerTo(t,e,n,s,o,r,a)},T.delayedCall=function(t,e,i,n,s){return new T(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:s,overwrite:0})},T.set=function(t,e){return new T(t,0,e)},T.isTweening=function(t){return 0<y.getTweensOf(t,!0).length};var o=function(t,e){for(var i=[],n=0,s=t._first;s;)s instanceof y?i[n++]=s:(e&&(i[n++]=s),n=(i=i.concat(o(s,e))).length),s=s._next;return i},d=T.getAllTweens=function(t){return o(n._rootTimeline,t).concat(o(n._rootFramesTimeline,t))};T.killAll=function(t,e,i,n){null==e&&(e=!0),null==i&&(i=!0);var s,o,r,a=d(0!=n),l=a.length,c=e&&i&&n;for(r=0;r<l;r++)o=a[r],(c||o instanceof h||(s=o.target===o.vars.onComplete)&&i||e&&!s)&&(t?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},T.killChildTweensOf=function(t,e){if(null!=t){var i,n,s,o,r,a=_.tweenLookup;if("string"==typeof t&&(t=y.selector(t)||t),w(t)&&(t=g(t)),S(t))for(o=t.length;-1<--o;)T.killChildTweensOf(t[o],e);else{for(s in i=[],a)for(n=a[s].target.parentNode;n;)n===t&&(i=i.concat(a[s].tweens)),n=n.parentNode;for(r=i.length,o=0;o<r;o++)e&&i[o].totalTime(i[o].totalDuration()),i[o]._enabled(!1,!1)}}};var s=function(t,e,i,n){e=!1!==e,i=!1!==i;for(var s,o,r=d(n=!1!==n),a=e&&i&&n,l=r.length;-1<--l;)o=r[l],(a||o instanceof h||(s=o.target===o.vars.onComplete)&&i||e&&!s)&&o.paused(t)};return T.pauseAll=function(t,e,i){s(!0,t,e,i)},T.resumeAll=function(t,e,i){s(!1,t,e,i)},T.globalTimeScale=function(t){var e=n._rootTimeline,i=y.ticker.time;return arguments.length?(t=t||b,e._startTime=i-(i-e._startTime)*e._timeScale/t,e=n._rootFramesTimeline,i=y.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=n._rootTimeline._timeScale=t,t):e._timeScale},t.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},t.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},t.duration=function(t){return arguments.length?n.prototype.duration.call(this,t):this._duration},t.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},T},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(h,d,u){var p=function(t){d.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var e,i,n=this.vars;for(i in n)e=n[i],g(e)&&-1!==e.join("").indexOf("{self}")&&(n[i]=this._swapSelfInParams(e));g(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},m=1e-10,t=u._internals,e=p._internals={},f=t.isSelector,g=t.isArray,v=t.lazyTweens,y=t.lazyRender,r=_gsScope._gsDefine.globals,T=function(t){var e,i={};for(e in t)i[e]=t[e];return i},b=function(t,e,i){var n,s,o=t.cycle;for(n in o)s=o[n],t[n]="function"==typeof s?s(i,e[i]):s[i%s.length];delete t.cycle},o=e.pauseCallback=function(){},_=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},i=p.prototype=new d;return p.version="1.20.3",i.constructor=p,i.kill()._gc=i._forcingPlayhead=i._hasPause=!1,i.to=function(t,e,i,n){var s=i.repeat&&r.TweenMax||u;return e?this.add(new s(t,e,i),n):this.set(t,i,n)},i.from=function(t,e,i,n){return this.add((i.repeat&&r.TweenMax||u).from(t,e,i),n)},i.fromTo=function(t,e,i,n,s){var o=n.repeat&&r.TweenMax||u;return e?this.add(o.fromTo(t,e,i,n),s):this.set(t,n,s)},i.staggerTo=function(t,e,i,n,s,o,r,a){var l,c,h=new p({onComplete:o,onCompleteParams:r,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),d=i.cycle;for("string"==typeof t&&(t=u.selector(t)||t),f(t=t||[])&&(t=_(t)),(n=n||0)<0&&((t=_(t)).reverse(),n*=-1),c=0;c<t.length;c++)(l=T(i)).startAt&&(l.startAt=T(l.startAt),l.startAt.cycle&&b(l.startAt,t,c)),d&&(b(l,t,c),null!=l.duration&&(e=l.duration,delete l.duration)),h.to(t[c],e,l,c*n);return this.add(h,s)},i.staggerFrom=function(t,e,i,n,s,o,r,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,s,o,r,a)},i.staggerFromTo=function(t,e,i,n,s,o,r,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,s,o,r,a,l)},i.call=function(t,e,i,n){return this.add(u.delayedCall(0,t,e,i),n)},i.set=function(t,e,i){return i=this._parseTimeOrLabel(i,0,!0),null==e.immediateRender&&(e.immediateRender=i===this._time&&!this._paused),this.add(new u(t,0,e),i)},p.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,n,s,o,r=new p(t),a=r._timeline;for(null==e&&(e=!0),a._remove(r,!0),r._startTime=0,r._rawPrevTime=r._time=r._totalTime=a._time,s=a._first;s;)o=s._next,e&&s instanceof u&&s.target===s.vars.onComplete||((n=s._startTime-s._delay)<0&&(i=1),r.add(s,n)),s=o;return a.add(r,0),i&&r.totalDuration(),r},i.add=function(t,e,i,n){var s,o,r,a,l,c;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,t)),!(t instanceof h)){if(t instanceof Array||t&&t.push&&g(t)){for(i=i||"normal",n=n||0,s=e,o=t.length,r=0;r<o;r++)g(a=t[r])&&(a=new p({tweens:a})),this.add(a,s),"string"!=typeof a&&"function"!=typeof a&&("sequence"===i?s=a._startTime+a.totalDuration()/a._timeScale:"start"===i&&(a._startTime-=a.delay())),s+=n;return this._uncache(!0)}if("string"==typeof t)return this.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=u.delayedCall(0,t)}if(d.prototype.add.call(this,t,e),t._time&&t.render((this.rawTime()-t._startTime)*t._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=(l=this).rawTime()>t._startTime;l._timeline;)c&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return this},i.remove=function(t){if(t instanceof h){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?h._rootFramesTimeline:h._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&g(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},i._remove=function(t,e){return d.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},i.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},i.insert=i.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},i.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,n){var s=u.delayedCall(0,o,i,n||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},i.removeLabel=function(t){return delete this._labels[t],this},i.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},i._parseTimeOrLabel=function(t,e,i,n){var s,o;if(n instanceof h&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&g(n)))for(o=n.length;-1<--o;)n[o]instanceof h&&n[o].timeline===this&&this.remove(n[o]);if(s="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-s:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=s);else{if(-1===(o=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=s+e:e:this._labels[t]+e;e=parseInt(t.charAt(o-1)+"1",10)*Number(t.substr(o+1)),t=1<o?this._parseTimeOrLabel(t.substr(0,o-1),0,i):s}return Number(t)+e},i.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},i.stop=function(){return this.paused(!0)},i.gotoAndPlay=function(t,e){return this.play(t,e)},i.gotoAndStop=function(t,e){return this.pause(t,e)},i.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,o,r,a,l,c,h=this._time,d=this._dirty?this.totalDuration():this._totalDuration,u=this._startTime,p=this._timeScale,f=this._paused;if(h!==this._time&&(t+=this._time-h),d-1e-7<=t&&0<=t)this._totalTime=this._time=d,this._reversed||this._hasPausedChild()||(s=!0,r="onComplete",a=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||this._rawPrevTime<0||this._rawPrevTime===m)&&this._rawPrevTime!==t&&this._first&&(a=!0,this._rawPrevTime>m&&(r="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:m,t=d+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==h||0===this._duration&&this._rawPrevTime!==m&&(0<this._rawPrevTime||t<0&&0<=this._rawPrevTime))&&(r="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(a=s=!0,r="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(a=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:m,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(a=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(h<=t)for(n=this._first;n&&n._startTime<=t&&!l;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(l=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!l;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(l=n),n=n._prev;l&&(this._time=t=l._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==h&&this._first||i||a||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==h&&0<t&&(this._active=!0),0===h&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),h<=(c=this._time))for(n=this._first;n&&(o=n._next,c===this._time&&(!this._paused||f));)(n._active||n._startTime<=c&&!n._paused&&!n._gc)&&(l===n&&this.pause(),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=o;else for(n=this._last;n&&(o=n._prev,c===this._time&&(!this._paused||f));){if(n._active||n._startTime<=h&&!n._paused&&!n._gc){if(l===n){for(l=n._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,this.pause()}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=o}this._onUpdate&&(e||(v.length&&y(),this._callback("onUpdate"))),r&&(this._gc||(u===this._startTime||p!==this._timeScale)&&(0===this._time||d>=this.totalDuration())&&(s&&(v.length&&y(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof p&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,n){n=n||-9999999999;for(var s=[],o=this._first,r=0;o;)o._startTime<n||(o instanceof u?!1!==e&&(s[r++]=o):(!1!==i&&(s[r++]=o),!1!==t&&(r=(s=s.concat(o.getChildren(!0,e,i))).length))),o=o._next;return s},i.getTweensOf=function(t,e){var i,n,s=this._gc,o=[],r=0;for(s&&this._enabled(!0,!0),n=(i=u.getTweensOf(t)).length;-1<--n;)(i[n].timeline===this||e&&this._contains(i[n]))&&(o[r++]=i[n]);return s&&this._enabled(!1,!0),o},i.recent=function(){return this._recent},i._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},i.shiftChildren=function(t,e,i){i=i||0;for(var n,s=this._first,o=this._labels;s;)s._startTime>=i&&(s._startTime+=t),s=s._next;if(e)for(n in o)o[n]>=i&&(o[n]+=t);return this._uncache(!0)},i._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,s=!1;-1<--n;)i[n]._kill(t,e)&&(s=!0);return s},i.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},i.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return h.prototype.invalidate.call(this)},i._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return d.prototype._enabled.call(this,t,e)},i.totalTime=function(t,e,i){this._forcingPlayhead=!0;var n=h.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},i.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},i.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,n=0,s=this._last,o=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>o&&this._sortChildren&&!s._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(s,s._startTime-s._delay),this._calculatingDuration=0):o=s._startTime,s._startTime<0&&!s._paused&&(n-=s._startTime,this._timeline.smoothChildTiming&&(this._startTime+=s._startTime/this._timeScale,this._time-=s._startTime,this._totalTime-=s._startTime,this._rawPrevTime-=s._startTime),this.shiftChildren(-s._startTime,!1,-9999999999),o=0),n<(i=s._startTime+s._totalDuration/s._timeScale)&&(n=i),s=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration},i.paused=function(t){if(!t)for(var e=this._first,i=this._time;e;)e._startTime===i&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return h.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===h._rootFramesTimeline},i.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},p},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,a,t){var i=function(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},P=1e-10,n=a._internals,E=n.lazyTweens,A=n.lazyRender,l=_gsScope._gsDefine.globals,c=new t(null,null,1,0),s=i.prototype=new e;return s.constructor=i,s.kill()._gc=!1,i.version="1.20.3",s.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},s.addCallback=function(t,e,i,n){return this.add(a.delayedCall(0,t,i,n),e)},s.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,s=this._parseTimeOrLabel(e);-1<--n;)i[n]._startTime===s&&i[n]._enabled(!1,!1);return this},s.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},s.tweenTo=function(t,e){e=e||{};var i,n,s,o={ease:c,useFrames:this.usesFrames(),immediateRender:!1},r=e.repeat&&l.TweenMax||a;for(n in e)o[n]=e[n];return o.time=this._parseTimeOrLabel(t),i=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,s=new r(this,i,o),o.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&i===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||s,e.onStartParams||[])},s},s.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},s.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,o,r,a,l,c,h,d=this._time,u=this._dirty?this.totalDuration():this._totalDuration,p=this._duration,f=this._totalTime,m=this._startTime,g=this._timeScale,v=this._rawPrevTime,y=this._paused,T=this._cycle;if(d!==this._time&&(t+=this._time-d),u-1e-7<=t&&0<=t)this._locked||(this._totalTime=u,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,r="onComplete",a=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||v<0||v===P)&&v!==t&&this._first&&(a=!0,P<v&&(r="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:P,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:t=(this._time=p)+1e-4;else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),((this._time=0)!==d||0===p&&v!==P&&(0<v||t<0&&0<=v)&&!this._locked)&&(r="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(a=s=!0,r="onReverseComplete"):0<=v&&this._first&&(a=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=p||!e||t||this._rawPrevTime===t?t:P,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(a=!0)}else if(0===p&&v<0&&(a=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(l=p+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&f<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=p-this._time),this._time>p?t=(this._time=p)+1e-4:this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(d<=(t=this._time)||this._repeat&&T!==this._cycle)for(n=this._first;n&&n._startTime<=t&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(c=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!c;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(c=n),n=n._prev;c&&c._startTime<p&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==T&&!this._locked){var b=this._yoyo&&0!=(1&T),_=b===(this._yoyo&&0!=(1&this._cycle)),w=this._totalTime,S=this._cycle,x=this._rawPrevTime,C=this._time;if(this._totalTime=T*p,this._cycle<T?b=!b:this._totalTime+=p,this._time=d,this._rawPrevTime=0===p?v-1e-4:v,this._cycle=T,this._locked=!0,d=b?0:p,this.render(d,e,0===p),e||this._gc||this.vars.onRepeat&&(this._cycle=S,this._locked=!1,this._callback("onRepeat")),d!==this._time)return;if(_&&(this._cycle=T,this._locked=!0,d=b?p+1e-4:-1e-4,this.render(d,!0,!1)),this._locked=!1,this._paused&&!y)return;this._time=C,this._totalTime=w,this._cycle=S,this._rawPrevTime=x}if(this._time!==d&&this._first||i||a||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==f&&0<t&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),d<=(h=this._time))for(n=this._first;n&&(o=n._next,h===this._time&&(!this._paused||y));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(c===n&&this.pause(),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=o;else for(n=this._last;n&&(o=n._prev,h===this._time&&(!this._paused||y));){if(n._active||n._startTime<=d&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}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=o}this._onUpdate&&(e||(E.length&&A(),this._callback("onUpdate"))),r&&(this._locked||this._gc||(m===this._startTime||g!==this._timeScale)&&(0===this._time||u>=this.totalDuration())&&(s&&(E.length&&A(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r)))}else f!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},s.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,s,o=[],r=this.getChildren(t,e,i),a=0,l=r.length;for(n=0;n<l;n++)(s=r[n]).isActive()&&(o[a++]=s);return o},s.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;e<n;e++)if(i[e].time>t)return i[e].name;return null},s.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},s.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},s.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},s.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},s.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},s.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},s.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},s.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},i},!0),S=180/Math.PI,_=[],w=[],x=[],v={},i=_gsScope._gsDefine.globals,y=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},C=function(t,e,i,n){var s={a:t},o={},r={},a={c:n},l=(t+e)/2,c=(e+i)/2,h=(i+n)/2,d=(l+c)/2,u=(c+h)/2,p=(u-d)/8;return s.b=l+(t-l)/4,o.b=d+p,s.c=o.a=(s.b+o.b)/2,o.c=r.a=(d+u)/2,r.b=u-p,a.b=h+(n-h)/4,r.c=a.a=(r.b+a.b)/2,[s,o,r,a]},T=function(t,e,i,n,s){var o,r,a,l,c,h,d,u,p,f,m,g,v,y=t.length-1,T=0,b=t[0].a;for(o=0;o<y;o++)r=(c=t[T]).a,a=c.d,l=t[T+1].d,u=s?(m=_[o],v=((g=w[o])+m)*e*.25/(n?.5:x[o]||.5),a-((h=a-(a-r)*(n?.5*e:0!==m?v/m:0))+(((d=a+(l-a)*(n?.5*e:0!==g?v/g:0))-h)*(3*m/(m+g)+.5)/4||0))):a-((h=a-(a-r)*e*.5)+(d=a+(l-a)*e*.5))/2,h+=u,d+=u,c.c=p=h,c.b=0!==o?b:b=c.a+.6*(c.c-c.a),c.da=a-r,c.ca=p-r,c.ba=b-r,i?(f=C(r,b,p,a),t.splice(T,1,f[0],f[1],f[2],f[3]),T+=4):T++,b=d;(c=t[T]).b=b,c.c=b+.4*(c.d-b),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=b-c.a,i&&(f=C(c.a,b,c.c,c.d),t.splice(T,1,f[0],f[1],f[2],f[3]))},b=function(t,e,i,n){var s,o,r,a,l,c,h=[];if(n)for(o=(t=[n].concat(t)).length;-1<--o;)"string"==typeof(c=t[o][e])&&"="===c.charAt(1)&&(t[o][e]=n[e]+Number(c.charAt(0)+c.substr(2)));if((s=t.length-2)<0)return h[0]=new y(t[0][e],0,0,t[0][e]),h;for(o=0;o<s;o++)r=t[o][e],a=t[o+1][e],h[o]=new y(r,0,0,a),i&&(l=t[o+2][e],_[o]=(_[o]||0)+(a-r)*(a-r),w[o]=(w[o]||0)+(l-a)*(l-a));return h[o]=new y(t[o][e],0,0,t[o+1][e]),h},p=function(t,e,i,n,s,o){var r,a,l,c,h,d,u,p,f={},m=[],g=o||t[0];for(a in s="string"==typeof s?","+s+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])m.push(a);if(1<t.length){for(p=t[t.length-1],u=!0,r=m.length;-1<--r;)if(a=m[r],.05<Math.abs(g[a]-p[a])){u=!1;break}u&&(t=t.concat(),o&&t.unshift(o),t.push(t[1]),o=t[t.length-3])}for(_.length=w.length=x.length=0,r=m.length;-1<--r;)a=m[r],v[a]=-1!==s.indexOf(","+a+","),f[a]=b(t,a,v[a],o);for(r=_.length;-1<--r;)_[r]=Math.sqrt(_[r]),w[r]=Math.sqrt(w[r]);if(!n){for(r=m.length;-1<--r;)if(v[a])for(d=(l=f[m[r]]).length-1,c=0;c<d;c++)h=l[c+1].da/w[c]+l[c].da/_[c]||0,x[c]=(x[c]||0)+h*h;for(r=x.length;-1<--r;)x[r]=Math.sqrt(x[r])}for(r=m.length,c=i?4:1;-1<--r;)l=f[a=m[r]],T(l,e,i,n,v[a]),u&&(l.splice(0,c),l.splice(l.length-c,c));return f},f=function(t,e,i){for(var n,s,o,r,a,l,c,h,d,u,p,f=1/i,m=t.length;-1<--m;)for(o=(u=t[m]).a,r=u.d-o,a=u.c-o,l=u.b-o,n=s=0,h=1;h<=i;h++)n=s-(s=((c=f*h)*c*r+3*(d=1-c)*(c*a+d*l))*c),e[p=m*i+h-1]=(e[p]||0)+n*n},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,s,o,r,a,l=e.values||[],c={},h=l[0],d=e.autoRotate||i.vars.orientToBezier;for(n in this._autoRotate=d?d instanceof Array?d:[["x","y","rotation",!0===d?0:Number(d)||0]]:null,h)this._props.push(n);for(o=this._props.length;-1<--o;)n=this._props[o],this._overwriteProps.push(n),s=this._func[n]="function"==typeof t[n],c[n]=s?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),a||c[n]!==l[0][n]&&(a=c);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?p(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):function(t,e,i){var n,s,o,r,a,l,c,h,d,u,p,f={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,v=[];if(g&&i&&(t=[i].concat(t)),null==t||t.length<m+1)throw"invalid Bezier data";for(d in t[0])v.push(d);for(l=v.length;-1<--l;){for(f[d=v[l]]=a=[],u=0,h=t.length,c=0;c<h;c++)n=null==i?t[c][d]:"string"==typeof(p=t[c][d])&&"="===p.charAt(1)?i[d]+Number(p.charAt(0)+p.substr(2)):Number(p),g&&1<c&&c<h-1&&(a[u++]=(n+a[u-2])/2),a[u++]=n;for(h=u-m+1,c=u=0;c<h;c+=m)n=a[c],s=a[c+1],o=a[c+2],r=2===m?0:a[c+3],a[u++]=p=3===m?new y(n,s,o,r):new y(n,(2*s+n)/3,(2*s+o)/3,o);a.length=u}return f}(l,e.type,c),this._segCount=this._beziers[n].length,this._timeRes){var u=function(t,e){var i,n,s,o,r=[],a=[],l=0,c=0,h=(e=e>>0||6)-1,d=[],u=[];for(i in t)f(t[i],r,e);for(s=r.length,n=0;n<s;n++)l+=Math.sqrt(r[n]),u[o=n%e]=l,o===h&&(c+=l,d[o=n/e>>0]=u,a[o]=c,l=0,u=[]);return{length:c,lengths:a,segments:d}}(this._beziers,this._timeRes);this._length=u.length,this._lengths=u.lengths,this._segments=u.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(d=this._autoRotate)for(this._initialRotations=[],d[0]instanceof Array||(this._autoRotate=d=[d]),o=d.length;-1<--o;){for(r=0;r<3;r++)n=d[o][r],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=d[o][2],this._initialRotations[o]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,n,s,o,r,a,l,c,h,d=this._segCount,u=this._func,p=this._target,f=t!==this._startRatio;if(this._timeRes){if(c=this._lengths,h=this._curSeg,t*=this._length,n=this._li,t>this._l2&&n<d-1){for(l=d-1;n<l&&(this._l2=c[++n])<=t;);this._l1=c[n-1],this._li=n,this._curSeg=h=this._segments[n],this._s2=h[this._s1=this._si=0]}else if(t<this._l1&&0<n){for(;0<n&&(this._l1=c[--n])>=t;);0===n&&t<this._l1?this._l1=0:n++,this._l2=c[n],this._li=n,this._curSeg=h=this._segments[n],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(e=n,t-=this._l1,n=this._si,t>this._s2&&n<h.length-1){for(l=h.length-1;n<l&&(this._s2=h[++n])<=t;);this._s1=h[n-1],this._si=n}else if(t<this._s1&&0<n){for(;0<n&&(this._s1=h[--n])>=t;);0===n&&t<this._s1?this._s1=0:n++,this._s2=h[n],this._si=n}r=(n+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else r=(t-(e=t<0?0:1<=t?d-1:d*t>>0)*(1/d))*d;for(i=1-r,n=this._props.length;-1<--n;)s=this._props[n],a=(r*r*(o=this._beziers[s][e]).da+3*i*(r*o.ca+i*o.ba))*r+o.a,this._mod[s]&&(a=this._mod[s](a,p)),u[s]?p[s](a):p[s]=a;if(this._autoRotate){var m,g,v,y,T,b,_,w=this._autoRotate;for(n=w.length;-1<--n;)s=w[n][2],b=w[n][3]||0,_=!0===w[n][4]?1:S,o=this._beziers[w[n][0]],m=this._beziers[w[n][1]],o&&m&&(o=o[e],m=m[e],g=o.a+(o.b-o.a)*r,g+=((y=o.b+(o.c-o.b)*r)-g)*r,y+=(o.c+(o.d-o.c)*r-y)*r,v=m.a+(m.b-m.a)*r,v+=((T=m.b+(m.c-m.b)*r)-v)*r,T+=(m.c+(m.d-m.c)*r-T)*r,a=f?Math.atan2(T-v,y-g)*_+b:this._initialRotations[n],this._mod[s]&&(a=this._mod[s](a,p)),u[s]?p[s](a):p[s]=a)}}}),n=g.prototype,g.bezierThrough=p,g.cubicToQuadratic=C,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new y(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t=i.CSSPlugin;if(t){var e=t._internals,p=e._parseToProxy,f=e._setPluginRatio,m=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,i,n,s,o){e instanceof Array&&(e={values:e}),o=new g;var r,a,l,c=e.values,h=c.length-1,d=[],u={};if(h<0)return s;for(r=0;r<=h;r++)l=p(t,c[r],n,s,o,h!==r),d[r]=l.end;for(a in e)u[a]=e[a];return u.values=d,(s=new m(t,"bezier",0,0,l.pt,2)).data=l,s.plugin=o,s.setRatio=f,0===u.autoRotate&&(u.autoRotate=!0),!u.autoRotate||u.autoRotate instanceof Array||(r=!0===u.autoRotate?0:Number(u.autoRotate),u.autoRotate=null!=l.end.left?[["left","top","rotation",r,!1]]:null!=l.end.x&&[["x","y","rotation",r,!1]]),u.autoRotate&&(n._transform||n._enableTransforms(!1),l.autoRotate=n._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,n._overwriteProps.push("rotation")),o._onInitTween(l.proxy,u,n._tween),s}})}},n._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;-1<--n;)(e=t[i[n]])&&"function"==typeof e&&(this._mod[i[n]]=e)},n._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;-1<--i;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;-1<--i;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(o,N){var f,x,P,m,X=function(){o.call(this,"css"),this._overwriteProps.length=0,this.setRatio=X.prototype.setRatio},c=_gsScope._gsDefine.globals,g={},t=X.prototype=new o("css");(t.constructor=X).version="1.20.3",X.API=2,X.defaultTransformPerspective=0,X.defaultSkewType="compensated",X.defaultSmoothOrigin=!0,t="px",X.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};var E,v,y,F,T,C,A,M,e,i,k=/(?:\-|\.|\b)(\d|\.|e\-)+/g,I=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,h=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,D=/(?:\d|\-|\+|=|#|\.)*/g,O=/opacity *= *([^)]*)/i,_=/opacity:([^;]*)/i,r=/alpha\(opacity *=.+?\)/i,w=/^(rgb|hsl)/,a=/([A-Z])/g,l=/-([a-z])/gi,S=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,d=function(t,e){return e.toUpperCase()},p=/(?:Left|Right|Width)/i,u=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,B=/[\s,\(]/i,$=Math.PI/180,W=180/Math.PI,z={},n={style:{}},G=_gsScope.document||{createElement:function(){return n}},R=function(t,e){return G.createElementNS?G.createElementNS(e||"http://www.w3.org/1999/xhtml",t):G.createElement(t)},Y=R("div"),V=R("img"),s=X._internals={_specialProps:g},j=(_gsScope.navigator||{}).userAgent||"",q=(e=j.indexOf("Android"),i=R("a"),y=-1!==j.indexOf("Safari")&&-1===j.indexOf("Chrome")&&(-1===e||3<parseFloat(j.substr(e+8,2))),T=y&&parseFloat(j.substr(j.indexOf("Version/")+8,2))<6,F=-1!==j.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(j))&&(C=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),U=function(t){return O.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},K=function(t){_gsScope.console&&console.log(t)},Z="",Q="",J=function(t,e){var i,n,s=(e=e||Y).style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===s[i[n]+t];);return 0<=n?(Z="-"+(Q=3===n?"ms":i[n]).toLowerCase()+"-",Q+t):null},tt=G.defaultView?G.defaultView.getComputedStyle:function(){},et=X.getStyle=function(t,e,i,n,s){var o;return q||"opacity"!==e?(!n&&t.style[e]?o=t.style[e]:(i=i||tt(t))?o=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(a,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==s||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:s):U(t)},it=s.convertToPixels=function(t,e,i,n,s){if("px"===n||!n&&"lineHeight"!==e)return i;if("auto"===n||!i)return 0;var o,r,a,l=p.test(e),c=t,h=Y.style,d=i<0,u=1===i;if(d&&(i=-i),u&&(i*=100),"lineHeight"!==e||n)if("%"===n&&-1!==e.indexOf("border"))o=i/100*(l?t.clientWidth:t.clientHeight);else{if(h.cssText="border:0 solid red;position:"+et(t,"position")+";line-height:0;","%"!==n&&c.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)h[l?"borderLeftWidth":"borderTopWidth"]=i+n;else{if(c=t.parentNode||G.body,-1!==et(c,"display").indexOf("flex")&&(h.position="absolute"),r=c._gsCache,a=N.ticker.frame,r&&l&&r.time===a)return r.width*i/100;h[l?"width":"height"]=i+n}c.appendChild(Y),o=parseFloat(Y[l?"offsetWidth":"offsetHeight"]),c.removeChild(Y),l&&"%"===n&&!1!==X.cacheWidths&&((r=c._gsCache=c._gsCache||{}).time=a,r.width=o/i*100),0!==o||s||(o=it(t,e,i,n,!0))}else r=tt(t).lineHeight,t.style.lineHeight=i,o=parseFloat(tt(t).lineHeight),t.style.lineHeight=r;return u&&(o/=100),d?-o:o},nt=s.calculateOffset=function(t,e,i){if("absolute"!==et(t,"position",i))return 0;var n="left"===e?"Left":"Top",s=et(t,"margin"+n,i);return t["offset"+n]-(it(t,e,parseFloat(s),s.replace(D,""))||0)},st=function(t,e){var i,n,s,o={};if(e=e||tt(t,null))if(i=e.length)for(;-1<--i;)(-1===(s=e[i]).indexOf("-transform")||Lt===s)&&(o[s.replace(l,d)]=e.getPropertyValue(s));else for(i in e)(-1===i.indexOf("Transform")||Ht===i)&&(o[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===o[i]&&(o[i.replace(l,d)]=e[i]);return q||(o.opacity=U(t)),n=qt(t,e,!1),o.rotation=n.rotation,o.skewX=n.skewX,o.scaleX=n.scaleX,o.scaleY=n.scaleY,o.x=n.x,o.y=n.y,zt&&(o.z=n.z,o.rotationX=n.rotationX,o.rotationY=n.rotationY,o.scaleZ=n.scaleZ),o.filters&&delete o.filters,o},ot=function(t,e,i,n,s){var o,r,a,l={},c=t.style;for(r in i)"cssText"!==r&&"length"!==r&&isNaN(r)&&(e[r]!==(o=i[r])||s&&s[r])&&-1===r.indexOf("Origin")&&("number"==typeof o||"string"==typeof o)&&(l[r]="auto"!==o||"left"!==r&&"top"!==r?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[r]||""===e[r].replace(h,"")?o:0:nt(t,r),void 0!==c[r]&&(a=new bt(c,r,c[r],a)));if(n)for(r in n)"className"!==r&&(l[r]=n[r]);return{difs:l,firstMPT:a}},rt={width:["Left","Right"],height:["Top","Bottom"]},at=["marginLeft","marginRight","marginTop","marginBottom"],lt=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||tt(t))[e]||0;if(t.getCTM&&Yt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=rt[e],o=s.length;for(i=i||tt(t,null);-1<--o;)n-=parseFloat(et(t,"padding"+s[o],i,!0))||0,n-=parseFloat(et(t,"border"+s[o]+"Width",i,!0))||0;return n},ct=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,n=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(3<n.length&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(ct(n[i]));return t.join(",")}return null==o?o="center"===s?"50%":"0":"center"===o&&(o="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),t=s+" "+o+(2<n.length?" "+n[2]:""),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(s.replace(h,"")),e.oy=parseFloat(o.replace(h,"")),e.v=t),e||t},ht=function(t,e){return"function"==typeof t&&(t=t(M,A)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},dt=function(t,e){return"function"==typeof t&&(t=t(M,A)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ut=function(t,e,i,n){var s,o,r,a,l;return"function"==typeof t&&(t=t(M,A)),(a=null==t?e:"number"==typeof t?t:(s=360,o=t.split("_"),r=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(o[0].substr(2)):parseFloat(o[0]))*(-1===t.indexOf("rad")?1:W)-(l?0:e),o.length&&(n&&(n[i]=e+r),-1!==t.indexOf("short")&&((r%=s)!==r%180&&(r=r<0?r+s:r-s)),-1!==t.indexOf("_cw")&&r<0?r=(r+3599999999640)%s-(r/s|0)*s:-1!==t.indexOf("ccw")&&0<r&&(r=(r-3599999999640)%s-(r/s|0)*s)),e+r))<1e-6&&-1e-6<a&&(a=0),a},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]},ft=function(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},mt=X.parseColor=function(t,e){var i,n,s,o,r,a,l,c,h,d,u;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),pt[t])i=pt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(n=t.charAt(1))+n+(s=t.charAt(2))+s+(o=t.charAt(3))+o),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=u=t.match(k),e){if(-1!==t.indexOf("="))return t.match(I)}else r=Number(i[0])%360/360,a=Number(i[1])/100,n=2*(l=Number(i[2])/100)-(s=l<=.5?l*(a+1):l+a-l*a),3<i.length&&(i[3]=Number(i[3])),i[0]=ft(r+1/3,n,s),i[1]=ft(r,n,s),i[2]=ft(r-1/3,n,s);else i=t.match(k)||pt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=pt.black;return e&&!u&&(n=i[0]/255,s=i[1]/255,o=i[2]/255,l=((c=Math.max(n,s,o))+(h=Math.min(n,s,o)))/2,c===h?r=a=0:(d=c-h,a=.5<l?d/(2-c-h):d/(c+h),r=c===n?(s-o)/d+(s<o?6:0):c===s?(o-n)/d+2:(n-s)/d+4,r*=60),i[0]=r+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},gt=function(t,e){var i,n,s,o=t.match(vt)||[],r=0,a="";if(!o.length)return t;for(i=0;i<o.length;i++)n=o[i],r+=(s=t.substr(r,t.indexOf(n,r)-r)).length+n.length,3===(n=mt(n,e)).length&&n.push(1),a+=s+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return a+t.substr(r)},vt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in pt)vt+="|"+t+"\\b";vt=new RegExp(vt+")","gi"),X.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];vt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=gt(t[0],e),t[1]=gt(t[1],e)),vt.lastIndex=0},N.defaultStringFilter||(N.defaultStringFilter=X.colorStringFilter);var yt=function(t,e,o,r){if(null==t)return function(t){return t};var a,l=e?(t.match(vt)||[""])[0]:"",c=t.split(l).join("").match(b)||[],h=t.substr(0,t.indexOf(c[0])),d=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",p=c.length,f=0<p?c[0].replace(k,""):"";return p?a=e?function(t){var e,i,n,s;if("number"==typeof t)t+=f;else if(r&&L.test(t)){for(s=t.replace(L,"|").split("|"),n=0;n<s.length;n++)s[n]=a(s[n]);return s.join(",")}if(e=(t.match(vt)||[l])[0],n=(i=t.split(e).join("").match(b)||[]).length,p>n--)for(;++n<p;)i[n]=o?i[(n-1)/2|0]:c[n];return h+i.join(u)+u+e+d+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,n;if("number"==typeof t)t+=f;else if(r&&L.test(t)){for(i=t.replace(L,"|").split("|"),n=0;n<i.length;n++)i[n]=a(i[n]);return i.join(",")}if(n=(e=t.match(b)||[]).length,p>n--)for(;++n<p;)e[n]=o?e[(n-1)/2|0]:c[n];return h+e.join(u)+d}:function(t){return t}},Tt=function(c){return c=c.split(","),function(t,e,i,n,s,o,r){var a,l=(e+"").split(" ");for(r={},a=0;a<4;a++)r[c[a]]=l[a]=l[a]||l[(a-1)/2>>0];return n.parse(t,r,s,o)}},bt=(s._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,s,o,r=this.data,a=r.proxy,l=r.firstMPT;l;)e=a[l.v],l.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(r.autoRotate&&(r.autoRotate.rotation=r.mod?r.mod(a.rotation,this.t):a.rotation),1===t||0===t)for(l=r.firstMPT,o=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)s+=i["xn"+n]+i["xs"+(n+1)];i[o]=s}}else i[o]=i.s+i.xs0;l=l._next}},function(t,e,i,n,s){this.t=t,this.p=e,this.v=i,this.r=s,n&&((n._prev=this)._next=n)}),_t=(s._parseToProxy=function(t,e,i,n,s,o){var r,a,l,c,h,d=n,u={},p={},f=i._transform,m=z;for(i._transform=null,z=e,n=h=i.parse(t,e,n,s),z=m,o&&(i._transform=f,d&&(d._prev=null,d._prev&&(d._prev._next=null)));n&&n!==d;){if(n.type<=1&&(p[a=n.p]=n.s+n.c,u[a]=n.s,o||(c=new bt(n,"s",a,c,n.r),n.c=0),1===n.type))for(r=n.l;0<--r;)l="xn"+r,p[a=n.p+"_"+l]=n.data[l],u[a]=n[l],o||(c=new bt(n,l,a,c,n.rxp[l]));n=n._next}return{proxy:u,end:p,firstMPT:c,pt:h}},s.CSSPropTween=function(t,e,i,n,s,o,r,a,l,c,h){this.t=t,this.p=e,this.s=i,this.c=n,this.n=r||e,t instanceof _t||m.push(this.n),this.r=a,this.type=o||0,l&&(this.pr=l,f=!0),this.b=void 0===c?i:c,this.e=void 0===h?i+n:h,s&&((this._next=s)._prev=this)}),wt=function(t,e,i,n,s,o){var r=new _t(t,e,i,n-i,s,-1,o);return r.b=i,r.e=r.xs0=n,r},St=X.parseComplex=function(t,e,i,n,s,o,r,a,l,c){i=i||o||"","function"==typeof n&&(n=n(M,A)),r=new _t(t,e,0,0,r,c?2:1,null,!1,a,i,n),n+="",s&&vt.test(n+i)&&(n=[i,n],X.colorStringFilter(n),i=n[0],n=n[1]);var h,d,u,p,f,m,g,v,y,T,b,_,w,S=i.split(", ").join(",").split(" "),x=n.split(", ").join(",").split(" "),C=S.length,P=!1!==E;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(x=-1!==(n+i).indexOf("rgb")||-1!==(n+i).indexOf("hsl")?(S=S.join(" ").replace(L,", ").split(" "),x.join(" ").replace(L,", ").split(" ")):(S=S.join(" ").split(",").join(", ").split(" "),x.join(" ").split(",").join(", ").split(" ")),C=S.length),C!==x.length&&(C=(S=(o||"").split(" ")).length),r.plugin=l,r.setRatio=c,h=vt.lastIndex=0;h<C;h++)if(p=S[h],f=x[h],(v=parseFloat(p))||0===v)r.appendXtra("",v,ht(f,v),f.replace(I,""),P&&-1!==f.indexOf("px"),!0);else if(s&&vt.test(p))_=")"+((_=f.indexOf(")")+1)?f.substr(_):""),w=-1!==f.indexOf("hsl")&&q,T=f,p=mt(p,w),f=mt(f,w),(y=6<p.length+f.length)&&!q&&0===f[3]?(r["xs"+r.l]+=r.l?" transparent":"transparent",r.e=r.e.split(x[h]).join("transparent")):(q||(y=!1),w?r.appendXtra(T.substr(0,T.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ht(f[0],p[0]),",",!1,!0).appendXtra("",p[1],ht(f[1],p[1]),"%,",!1).appendXtra("",p[2],ht(f[2],p[2]),y?"%,":"%"+_,!1):r.appendXtra(T.substr(0,T.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],f[0]-p[0],",",!0,!0).appendXtra("",p[1],f[1]-p[1],",",!0).appendXtra("",p[2],f[2]-p[2],y?",":_,!0),y&&(p=p.length<4?1:p[3],r.appendXtra("",p,(f.length<4?1:f[3])-p,_,!1))),vt.lastIndex=0;else if(m=p.match(k)){if(!(g=f.match(I))||g.length!==m.length)return r;for(d=u=0;d<m.length;d++)b=m[d],T=p.indexOf(b,u),r.appendXtra(p.substr(u,T-u),Number(b),ht(g[d],b),"",P&&"px"===p.substr(T+b.length,2),0===d),u=T+b.length;r["xs"+r.l]+=p.substr(u)}else r["xs"+r.l]+=r.l||r["xs"+r.l]?" "+f:f;if(-1!==n.indexOf("=")&&r.data){for(_=r.xs0+r.data.s,h=1;h<r.l;h++)_+=r["xs"+h]+r.data["xn"+h];r.e=_+r["xs"+h]}return r.l||(r.type=-1,r.xs0=r.e),r.xfirst||r},xt=9;for((t=_t.prototype).l=t.pr=0;0<--xt;)t["xn"+xt]=0,t["xs"+xt]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,n,s,o){var r=this,a=r.l;return r["xs"+a]+=o&&(a||r["xs"+a])?" "+t:t||"",i||0===a||r.plugin?(r.l++,r.type=r.setRatio?2:1,r["xs"+r.l]=n||"",0<a?(r.data["xn"+a]=e+i,r.rxp["xn"+a]=s,r["xn"+a]=e,r.plugin||(r.xfirst=new _t(r,"xn"+a,e,i,r.xfirst||r,0,r.n,s,r.pr),r.xfirst.xs0=0)):(r.data={s:e+i},r.rxp={},r.s=e,r.c=i,r.r=s)):r["xs"+a]+=e+(n||""),r};var Ct=function(t,e){e=e||{},this.p=e.prefix&&J(t)||t,g[t]=g[this.p]=this,this.format=e.formatter||yt(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},Pt=s._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,s=t.split(","),o=e.defaultValue;for(i=i||[o],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||o,new Ct(s[n],e)},Et=s._registerPluginProp=function(t){if(!g[t]){var l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Pt(t,{parser:function(t,e,i,n,s,o,r){var a=c.com.greensock.plugins[l];return a?(a._cssRegister(),g[i].parse(t,e,i,n,s,o,r)):(K("Error: "+l+" js file not loaded."),s)}})}};(t=Ct.prototype).parseComplex=function(t,e,i,n,s,o){var r,a,l,c,h,d,u=this.keyword;if(this.multi&&(L.test(i)||L.test(e)?(a=e.replace(L,"|").split("|"),l=i.replace(L,"|").split("|")):u&&(a=[e],l=[i])),l){for(c=l.length>a.length?l.length:a.length,r=0;r<c;r++)e=a[r]=a[r]||this.dflt,i=l[r]=l[r]||this.dflt,u&&((h=e.indexOf(u))!==(d=i.indexOf(u))&&(-1===d?a[r]=a[r].split(u).join(""):-1===h&&(a[r]+=" "+u)));e=a.join(", "),i=l.join(", ")}return St(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,s,o)},t.parse=function(t,e,i,n,s,o,r){return this.parseComplex(t.style,this.format(et(t,this.p,P,!1,this.dflt)),this.format(e),s,o)},X.registerSpecialProp=function(t,l,c){Pt(t,{parser:function(t,e,i,n,s,o,r){var a=new _t(t,i,0,0,s,2,i,!1,c);return a.plugin=o,a.setRatio=l(t,e,n._tween,i),a},priority:c})},X.useSVGTransformAttr=!0;var At,Mt,kt,It,Dt,Ot="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ht=J("transform"),Lt=Z+"transform",Bt=J("transformOrigin"),zt=null!==J("perspective"),Gt=s.Transform=function(){this.perspective=parseFloat(X.defaultTransformPerspective)||0,this.force3D=!(!1===X.defaultForce3D||!zt)&&(X.defaultForce3D||"auto")},Rt=_gsScope.SVGElement,Nt=function(t,e,i){var n,s=G.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(n in i)s.setAttributeNS(null,n.replace(o,"$1-$2").toLowerCase(),i[n]);return e.appendChild(s),s},Xt=G.documentElement||{},Ft=(Dt=C||/Android/i.test(j)&&!_gsScope.chrome,G.createElementNS&&!Dt&&(Mt=Nt("svg",Xt),It=(kt=Nt("rect",Mt,{width:100,height:50,x:100})).getBoundingClientRect().width,kt.style[Bt]="50% 50%",kt.style[Ht]="scaleX(0.5)",Dt=It===kt.getBoundingClientRect().width&&!(F&&zt),Xt.removeChild(Mt)),Dt),$t=function(t,e,i,n,s,o){var r,a,l,c,h,d,u,p,f,m,g,v,y,T,b=t._gsTransform,_=jt(t,!0);b&&(y=b.xOrigin,T=b.yOrigin),(!n||(r=n.split(" ")).length<2)&&(0===(u=t.getBBox()).x&&0===u.y&&u.width+u.height===0&&(u={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),r=[(-1!==(e=ct(e).split(" "))[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]),i.xOrigin=c=parseFloat(r[0]),i.yOrigin=h=parseFloat(r[1]),n&&_!==Vt&&(d=_[0],u=_[1],p=_[2],f=_[3],m=_[4],g=_[5],(v=d*f-u*p)&&(a=c*(f/v)+h*(-p/v)+(p*g-f*m)/v,l=c*(-u/v)+h*(d/v)-(d*g-u*m)/v,c=i.xOrigin=r[0]=a,h=i.yOrigin=r[1]=l)),b&&(o&&(i.xOffset=b.xOffset,i.yOffset=b.yOffset,b=i),s||!1!==s&&!1!==X.defaultSmoothOrigin?(a=c-y,l=h-T,b.xOffset+=a*_[0]+l*_[2]-a,b.yOffset+=a*_[1]+l*_[3]-l):b.xOffset=b.yOffset=0),o||t.setAttribute("data-svg-origin",r.join(" "))},Wt=function(t){var e,i=R("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,o=this.style.cssText;if(Xt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Wt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return s?n.insertBefore(this,s):n.appendChild(this),Xt.removeChild(i),this.style.cssText=o,e},Yt=function(t){return!(!Rt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Wt.call(e,!0)}}(t))},Vt=[1,0,0,1,0,0],jt=function(t,e){var i,n,s,o,r,a,l=t._gsTransform||new Gt,c=t.style;if(Ht?n=et(t,Lt,null,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(u))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,!Ht||!(a=!tt(t)||"none"===tt(t).display)&&t.parentNode||(a&&(o=c.display,c.display="block"),t.parentNode||(r=1,Xt.appendChild(t)),i=!(n=et(t,Lt,null,!0))||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,o?c.display=o:a&&Qt(c,"display"),r&&Xt.removeChild(t)),(l.svg||t.getCTM&&Yt(t))&&(i&&-1!==(c[Ht]+"").indexOf("matrix")&&(n=c[Ht],i=0),s=t.getAttribute("transform"),i&&s&&(-1!==s.indexOf("matrix")?(n=s,i=0):-1!==s.indexOf("translate")&&(n="matrix(1,0,0,1,"+s.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Vt;for(s=(n||"").match(k)||[],xt=s.length;-1<--xt;)o=Number(s[xt]),s[xt]=(r=o-(o|=0))?(1e5*r+(r<0?-.5:.5)|0)/1e5+o:o;return e&&6<s.length?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},qt=s.getTransform=function(t,e,i,n){if(t._gsTransform&&i&&!n)return t._gsTransform;var s,o,r,a,l,c,h=i&&t._gsTransform||new Gt,d=h.scaleX<0,u=zt&&(parseFloat(et(t,Bt,e,!1,"0 0 0").split(" ")[2])||h.zOrigin)||0,p=parseFloat(X.defaultTransformPerspective)||0;if(h.svg=!(!t.getCTM||!Yt(t)),h.svg&&($t(t,et(t,Bt,e,!1,"50% 50%")+"",h,t.getAttribute("data-svg-origin")),At=X.useSVGTransformAttr||Ft),(s=jt(t))!==Vt){if(16===s.length){var f,m,g,v,y,T=s[0],b=s[1],_=s[2],w=s[3],S=s[4],x=s[5],C=s[6],P=s[7],E=s[8],A=s[9],M=s[10],k=s[12],I=s[13],D=s[14],O=s[11],H=Math.atan2(C,M);h.zOrigin&&(k=E*(D=-h.zOrigin)-s[12],I=A*D-s[13],D=M*D+h.zOrigin-s[14]),h.rotationX=H*W,H&&(f=S*(v=Math.cos(-H))+E*(y=Math.sin(-H)),m=x*v+A*y,g=C*v+M*y,E=S*-y+E*v,A=x*-y+A*v,M=C*-y+M*v,O=P*-y+O*v,S=f,x=m,C=g),H=Math.atan2(-_,M),h.rotationY=H*W,H&&(m=b*(v=Math.cos(-H))-A*(y=Math.sin(-H)),g=_*v-M*y,A=b*y+A*v,M=_*y+M*v,O=w*y+O*v,T=f=T*v-E*y,b=m,_=g),H=Math.atan2(b,T),h.rotation=H*W,H&&(f=T*(v=Math.cos(H))+b*(y=Math.sin(H)),m=S*v+x*y,g=E*v+A*y,b=b*v-T*y,x=x*v-S*y,A=A*v-E*y,T=f,S=m,E=g),h.rotationX&&359.9<Math.abs(h.rotationX)+Math.abs(h.rotation)&&(h.rotationX=h.rotation=0,h.rotationY=180-h.rotationY),H=Math.atan2(S,x),h.scaleX=(1e5*Math.sqrt(T*T+b*b+_*_)+.5|0)/1e5,h.scaleY=(1e5*Math.sqrt(x*x+C*C)+.5|0)/1e5,h.scaleZ=(1e5*Math.sqrt(E*E+A*A+M*M)+.5|0)/1e5,T/=h.scaleX,S/=h.scaleY,b/=h.scaleX,x/=h.scaleY,2e-5<Math.abs(H)?(h.skewX=H*W,S=0,"simple"!==h.skewType&&(h.scaleY*=1/Math.cos(H))):h.skewX=0,h.perspective=O?1/(O<0?-O:O):0,h.x=k,h.y=I,h.z=D,h.svg&&(h.x-=h.xOrigin-(h.xOrigin*T-h.yOrigin*S),h.y-=h.yOrigin-(h.yOrigin*b-h.xOrigin*x))}else if(!zt||n||!s.length||h.x!==s[4]||h.y!==s[5]||!h.rotationX&&!h.rotationY){var L=6<=s.length,B=L?s[0]:1,z=s[1]||0,G=s[2]||0,R=L?s[3]:1;h.x=s[4]||0,h.y=s[5]||0,r=Math.sqrt(B*B+z*z),a=Math.sqrt(R*R+G*G),l=B||z?Math.atan2(z,B)*W:h.rotation||0,c=G||R?Math.atan2(G,R)*W+l:h.skewX||0,h.scaleX=r,h.scaleY=a,h.rotation=l,h.skewX=c,zt&&(h.rotationX=h.rotationY=h.z=0,h.perspective=p,h.scaleZ=1),h.svg&&(h.x-=h.xOrigin-(h.xOrigin*B+h.yOrigin*G),h.y-=h.yOrigin-(h.xOrigin*z+h.yOrigin*R))}for(o in 90<Math.abs(h.skewX)&&Math.abs(h.skewX)<270&&(d?(h.scaleX*=-1,h.skewX+=h.rotation<=0?180:-180,h.rotation+=h.rotation<=0?180:-180):(h.scaleY*=-1,h.skewX+=h.skewX<=0?180:-180)),h.zOrigin=u,h)h[o]<2e-5&&-2e-5<h[o]&&(h[o]=0)}return i&&((t._gsTransform=h).svg&&(At&&t.style[Ht]?N.delayedCall(.001,function(){Qt(t.style,Ht)}):!At&&t.getAttribute("transform")&&N.delayedCall(.001,function(){t.removeAttribute("transform")}))),h},Ut=function(t){var e,i,n=this.data,s=-n.rotation*$,o=s+n.skewX*$,r=1e5,a=(Math.cos(s)*n.scaleX*r|0)/r,l=(Math.sin(s)*n.scaleX*r|0)/r,c=(Math.sin(o)*-n.scaleY*r|0)/r,h=(Math.cos(o)*n.scaleY*r|0)/r,d=this.t.style,u=this.t.currentStyle;if(u){i=l,l=-c,c=-i,e=u.filter,d.filter="";var p,f,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==u.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+c+", M22="+h,T=n.x+m*n.xPercent/100,b=n.y+g*n.yPercent/100;if(null!=n.ox&&(T+=(p=(n.oxp?m*n.ox*.01:n.ox)-m/2)-(p*a+(f=(n.oyp?g*n.oy*.01:n.oy)-g/2)*l),b+=f-(p*c+f*h)),v?y+=", Dx="+((p=m/2)-(p*a+(f=g/2)*l)+T)+", Dy="+(f-(p*c+f*h)+b)+")":y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?d.filter=e.replace(H,y):d.filter=y+" "+e,(0===t||1===t)&&1===a&&0===l&&0===c&&1===h&&(v&&-1===y.indexOf("Dx=0, Dy=0")||O.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&d.removeAttribute("filter")),!v){var _,w,S,x=C<8?1:-1;for(p=n.ieOffsetX||0,f=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((a<0?-a:a)*m+(l<0?-l:l)*g))/2+T),n.ieOffsetY=Math.round((g-((h<0?-h:h)*g+(c<0?-c:c)*m))/2+b),xt=0;xt<4;xt++)S=(i=-1!==(_=u[w=at[xt]]).indexOf("px")?parseFloat(_):it(this.t,w,parseFloat(_),_.replace(D,""))||0)!==n[w]?xt<2?-n.ieOffsetX:-n.ieOffsetY:xt<2?p-n.ieOffsetX:f-n.ieOffsetY,d[w]=(n[w]=Math.round(i-S*(0===xt||2===xt?1:x)))+"px"}}},Kt=s.set3DTransformRatio=s.setTransformRatio=function(t){var e,i,n,s,o,r,a,l,c,h,d,u,p,f,m,g,v,y,T,b,_,w,S,x=this.data,C=this.t.style,P=x.rotation,E=x.rotationX,A=x.rotationY,M=x.scaleX,k=x.scaleY,I=x.scaleZ,D=x.x,O=x.y,H=x.z,L=x.svg,B=x.perspective,z=x.force3D,G=x.skewY,R=x.skewX;if(G&&(R+=G,P+=G),!((1!==t&&0!==t||"auto"!==z||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&z||H||B||A||E||1!==I)||At&&L||!zt)P||R||L?(P*=$,w=R*$,S=1e5,i=Math.cos(P)*M,o=Math.sin(P)*M,n=Math.sin(P-w)*-k,r=Math.cos(P-w)*k,w&&"simple"===x.skewType&&(e=Math.tan(w-G*$),n*=e=Math.sqrt(1+e*e),r*=e,G&&(e=Math.tan(G*$),i*=e=Math.sqrt(1+e*e),o*=e)),L&&(D+=x.xOrigin-(x.xOrigin*i+x.yOrigin*n)+x.xOffset,O+=x.yOrigin-(x.xOrigin*o+x.yOrigin*r)+x.yOffset,At&&(x.xPercent||x.yPercent)&&(m=this.t.getBBox(),D+=.01*x.xPercent*m.width,O+=.01*x.yPercent*m.height),D<(m=1e-6)&&-m<D&&(D=0),O<m&&-m<O&&(O=0)),T=(i*S|0)/S+","+(o*S|0)/S+","+(n*S|0)/S+","+(r*S|0)/S+","+D+","+O+")",L&&At?this.t.setAttribute("transform","matrix("+T):C[Ht]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+T):C[Ht]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+M+",0,0,"+k+","+D+","+O+")";else{if(F&&(M<(m=1e-4)&&-m<M&&(M=I=2e-5),k<m&&-m<k&&(k=I=2e-5),!B||x.z||x.rotationX||x.rotationY||(B=0)),P||R)P*=$,g=i=Math.cos(P),v=o=Math.sin(P),R&&(P-=R*$,g=Math.cos(P),v=Math.sin(P),"simple"===x.skewType&&(e=Math.tan((R-G)*$),g*=e=Math.sqrt(1+e*e),v*=e,x.skewY&&(e=Math.tan(G*$),i*=e=Math.sqrt(1+e*e),o*=e))),n=-v,r=g;else{if(!(A||E||1!==I||B||L))return void(C[Ht]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+O+"px,"+H+"px)"+(1!==M||1!==k?" scale("+M+","+k+")":""));i=r=1,n=o=0}h=1,s=a=l=c=d=u=0,p=B?-1/B:0,f=x.zOrigin,m=1e-6,b=",",_="0",(P=A*$)&&(g=Math.cos(P),d=p*(l=-(v=Math.sin(P))),s=i*v,a=o*v,p*=h=g,i*=g,o*=g),(P=E*$)&&(e=n*(g=Math.cos(P))+s*(v=Math.sin(P)),y=r*g+a*v,c=h*v,u=p*v,s=n*-v+s*g,a=r*-v+a*g,h*=g,p*=g,n=e,r=y),1!==I&&(s*=I,a*=I,h*=I,p*=I),1!==k&&(n*=k,r*=k,c*=k,u*=k),1!==M&&(i*=M,o*=M,l*=M,d*=M),(f||L)&&(f&&(D+=s*-f,O+=a*-f,H+=h*-f+f),L&&(D+=x.xOrigin-(x.xOrigin*i+x.yOrigin*n)+x.xOffset,O+=x.yOrigin-(x.xOrigin*o+x.yOrigin*r)+x.yOffset),D<m&&-m<D&&(D=_),O<m&&-m<O&&(O=_),H<m&&-m<H&&(H=0)),T=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",T+=(i<m&&-m<i?_:i)+b+(o<m&&-m<o?_:o)+b+(l<m&&-m<l?_:l),T+=b+(d<m&&-m<d?_:d)+b+(n<m&&-m<n?_:n)+b+(r<m&&-m<r?_:r),E||A||1!==I?(T+=b+(c<m&&-m<c?_:c)+b+(u<m&&-m<u?_:u)+b+(s<m&&-m<s?_:s),T+=b+(a<m&&-m<a?_:a)+b+(h<m&&-m<h?_:h)+b+(p<m&&-m<p?_:p)+b):T+=",0,0,0,0,1,0,",T+=D+b+O+b+H+b+(B?1+-H/B:1)+")",C[Ht]=T}};(t=Gt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,Pt("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,i,n,s,o,r){if(n._lastParsedTransform===r)return s;var a,l=(n._lastParsedTransform=r).scale&&"function"==typeof r.scale?r.scale:0;"function"==typeof r[i]&&(a=r[i],r[i]=e),l&&(r.scale=l(M,t));var c,h,d,u,p,f,m,g,v,y=t._gsTransform,T=t.style,b=Ot.length,_=r,w={},S="transformOrigin",x=qt(t,P,!0,_.parseTransform),C=_.transform&&("function"==typeof _.transform?_.transform(M,A):_.transform);if(x.skewType=_.skewType||x.skewType||X.defaultSkewType,n._transform=x,C&&"string"==typeof C&&Ht)(h=Y.style)[Ht]=C,h.display="block",h.position="absolute",G.body.appendChild(Y),c=qt(Y,null,!1),"simple"===x.skewType&&(c.scaleY*=Math.cos(c.skewX*$)),x.svg&&(f=x.xOrigin,m=x.yOrigin,c.x-=x.xOffset,c.y-=x.yOffset,(_.transformOrigin||_.svgOrigin)&&(C={},$t(t,ct(_.transformOrigin),C,_.svgOrigin,_.smoothOrigin,!0),f=C.xOrigin,m=C.yOrigin,c.x-=C.xOffset-x.xOffset,c.y-=C.yOffset-x.yOffset),(f||m)&&(g=jt(Y,!0),c.x-=f-(f*g[0]+m*g[2]),c.y-=m-(f*g[1]+m*g[3]))),G.body.removeChild(Y),c.perspective||(c.perspective=x.perspective),null!=_.xPercent&&(c.xPercent=dt(_.xPercent,x.xPercent)),null!=_.yPercent&&(c.yPercent=dt(_.yPercent,x.yPercent));else if("object"==typeof _){if(c={scaleX:dt(null!=_.scaleX?_.scaleX:_.scale,x.scaleX),scaleY:dt(null!=_.scaleY?_.scaleY:_.scale,x.scaleY),scaleZ:dt(_.scaleZ,x.scaleZ),x:dt(_.x,x.x),y:dt(_.y,x.y),z:dt(_.z,x.z),xPercent:dt(_.xPercent,x.xPercent),yPercent:dt(_.yPercent,x.yPercent),perspective:dt(_.transformPerspective,x.perspective)},null!=(p=_.directionalRotation))if("object"==typeof p)for(h in p)_[h]=p[h];else _.rotation=p;"string"==typeof _.x&&-1!==_.x.indexOf("%")&&(c.x=0,c.xPercent=dt(_.x,x.xPercent)),"string"==typeof _.y&&-1!==_.y.indexOf("%")&&(c.y=0,c.yPercent=dt(_.y,x.yPercent)),c.rotation=ut("rotation"in _?_.rotation:"shortRotation"in _?_.shortRotation+"_short":"rotationZ"in _?_.rotationZ:x.rotation,x.rotation,"rotation",w),zt&&(c.rotationX=ut("rotationX"in _?_.rotationX:"shortRotationX"in _?_.shortRotationX+"_short":x.rotationX||0,x.rotationX,"rotationX",w),c.rotationY=ut("rotationY"in _?_.rotationY:"shortRotationY"in _?_.shortRotationY+"_short":x.rotationY||0,x.rotationY,"rotationY",w)),c.skewX=ut(_.skewX,x.skewX),c.skewY=ut(_.skewY,x.skewY)}for(zt&&null!=_.force3D&&(x.force3D=_.force3D,u=!0),(d=x.force3D||x.z||x.rotationX||x.rotationY||c.z||c.rotationX||c.rotationY||c.perspective)||null==_.scale||(c.scaleZ=1);-1<--b;)(1e-6<(C=c[v=Ot[b]]-x[v])||C<-1e-6||null!=_[v]||null!=z[v])&&(u=!0,s=new _t(x,v,x[v],C,s),v in w&&(s.e=w[v]),s.xs0=0,s.plugin=o,n._overwriteProps.push(s.n));return C=_.transformOrigin,x.svg&&(C||_.svgOrigin)&&(f=x.xOffset,m=x.yOffset,$t(t,ct(C),c,_.svgOrigin,_.smoothOrigin),s=wt(x,"xOrigin",(y?x:c).xOrigin,c.xOrigin,s,S),s=wt(x,"yOrigin",(y?x:c).yOrigin,c.yOrigin,s,S),(f!==x.xOffset||m!==x.yOffset)&&(s=wt(x,"xOffset",y?f:x.xOffset,x.xOffset,s,S),s=wt(x,"yOffset",y?m:x.yOffset,x.yOffset,s,S)),C="0px 0px"),(C||zt&&d&&x.zOrigin)&&(Ht?(u=!0,v=Bt,C=(C||et(t,v,P,!1,"50% 50%"))+"",(s=new _t(T,v,0,0,s,-1,S)).b=T[v],s.plugin=o,s.xs0=s.e=zt?(h=x.zOrigin,C=C.split(" "),x.zOrigin=(2<C.length&&(0===h||"0px"!==C[2])?parseFloat(C[2]):h)||0,s.xs0=s.e=C[0]+" "+(C[1]||"50%")+" 0px",(s=new _t(x,"zOrigin",0,0,s,-1,s.n)).b=h,x.zOrigin):C):ct(C+"",x)),u&&(n._transformType=x.svg&&At||!d&&3!==this._transformType?2:3),a&&(r[i]=a),l&&(r.scale=l),s},prefix:!0}),Pt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Pt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,o){e=this.format(e);var r,a,l,c,h,d,u,p,f,m,g,v,y,T,b,_,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(f=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),r=e.split(" "),a=0;a<w.length;a++)this.p.indexOf("border")&&(w[a]=J(w[a])),-1!==(h=c=et(t,w[a],P,!1,"0px")).indexOf(" ")&&(h=(c=h.split(" "))[0],c=c[1]),d=l=r[a],u=parseFloat(h),v=h.substr((u+"").length),""===(g=(y="="===d.charAt(1))?(p=parseInt(d.charAt(0)+"1",10),d=d.substr(2),p*=parseFloat(d),d.substr((p+"").length-(p<0?1:0))||""):(p=parseFloat(d),d.substr((p+"").length)))&&(g=x[i]||v),g!==v&&(T=it(t,"borderLeft",u,v),b=it(t,"borderTop",u,v),c="%"===g?(h=T/f*100+"%",b/m*100+"%"):"em"===g?(h=T/(_=it(t,"borderLeft",1,"em"))+"em",b/_+"em"):(h=T+"px",b+"px"),y&&(d=parseFloat(h)+p+g,l=parseFloat(c)+p+g)),s=St(S,w[a],h+" "+c,d+" "+l,!1,"0px",s);return s},prefix:!0,formatter:yt("0px 0px 0px 0px",!1,!0)}),Pt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,o){return St(t.style,i,this.format(et(t,i,P,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:yt("0px 0px",!1,!0)}),Pt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,o){var r,a,l,c,h,d,u="background-position",p=P||tt(t,null),f=this.format((p?C?p.getPropertyValue(u+"-x")+" "+p.getPropertyValue(u+"-y"):p.getPropertyValue(u):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),m=this.format(e);if(-1!==f.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&((d=et(t,"backgroundImage").replace(S,""))&&"none"!==d)){for(r=f.split(" "),a=m.split(" "),V.setAttribute("src",d),l=2;-1<--l;)(c=-1!==(f=r[l]).indexOf("%"))!==(-1!==a[l].indexOf("%"))&&(h=0===l?t.offsetWidth-V.width:t.offsetHeight-V.height,r[l]=c?parseFloat(f)/100*h+"px":parseFloat(f)/h*100+"%");f=r.join(" ")}return this.parseComplex(t.style,f,m,s,o)},formatter:ct}),Pt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return ct(-1===(t+="").indexOf(" ")?t+" "+t:t)}}),Pt("perspective",{defaultValue:"0px",prefix:!0}),Pt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Pt("transformStyle",{prefix:!0}),Pt("backfaceVisibility",{prefix:!0}),Pt("userSelect",{prefix:!0}),Pt("margin",{parser:Tt("marginTop,marginRight,marginBottom,marginLeft")}),Pt("padding",{parser:Tt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Pt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,o){var r,a,l;return e=C<9?(a=t.currentStyle,l=C<8?" ":",",r="rect("+a.clipTop+l+a.clipRight+l+a.clipBottom+l+a.clipLeft+")",this.format(e).split(",").join(l)):(r=this.format(et(t,this.p,P,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,r,e,s,o)}}),Pt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Pt("autoRound,strictUnits",{parser:function(t,e,i,n,s){return s}}),Pt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,o){var r=et(t,"borderTopWidth",P,!1,"0px"),a=this.format(e).split(" "),l=a[0].replace(D,"");return"px"!==l&&(r=parseFloat(r)/it(t,"borderTopWidth",1,l)+l),this.parseComplex(t.style,this.format(r+" "+et(t,"borderTopStyle",P,!1,"solid")+" "+et(t,"borderTopColor",P,!1,"#000")),a.join(" "),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(vt)||["#000"])[0]}}),Pt("borderWidth",{parser:Tt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Pt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,s,o){var r=t.style,a="cssFloat"in r?"cssFloat":"styleFloat";return new _t(r,a,0,0,s,-1,i,!1,0,r[a],e)}});var Zt=function(t){var e,i=this.t,n=i.filter||et(this.data,"filter")||"",s=this.s+this.c*t|0;100===s&&(e=-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),!et(this.data,"filter")):(i.filter=n.replace(r,""),!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+s+")"),-1===n.indexOf("pacity")?0===s&&this.xn1||(i.filter=n+" alpha(opacity="+s+")"):i.filter=n.replace(O,"opacity="+s))};Pt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,o){var r=parseFloat(et(t,"opacity",P,!1,"1")),a=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+r),l&&1===r&&"hidden"===et(t,"visibility",P)&&0!==e&&(r=0),q?s=new _t(a,"opacity",r,e-r,s):((s=new _t(a,"opacity",100*r,100*(e-r),s)).xn1=l?1:0,a.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=Zt),l&&((s=new _t(a,"visibility",0,0,s,-1,null,!1,0,0!==r?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var Qt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(a,"-$1").toLowerCase())):t.removeAttribute(e))},Jt=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,i=this.t.style;e;)e.v?i[e.p]=e.v:Qt(i,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)};Pt("className",{parser:function(t,e,i,n,s,o,r){var a,l,c,h,d,u=t.getAttribute("class")||"",p=t.style.cssText;if((s=n._classNamePT=new _t(t,i,0,0,s,2)).setRatio=Jt,s.pr=-11,f=!0,s.b=u,l=st(t,P),c=t._gsClassPT){for(h={},d=c.data;d;)h[d.p]=1,d=d._next;c.setRatio(1)}return(t._gsClassPT=s).e="="!==e.charAt(1)?e:u.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",s.e),a=ot(t,l,st(t),r,h),t.setAttribute("class",u),s.data=a.firstMPT,t.style.cssText=p,s.xfirst=n.parse(t,a.difs,s,o)}});var te=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,s,o,r=this.t.style,a=g.transform.parse;if("all"===this.e)s=!(r.cssText="");else for(n=(e=this.e.split(" ").join("").split(",")).length;-1<--n;)i=e[n],g[i]&&(g[i].parse===a?s=!0:i="transformOrigin"===i?Bt:g[i].p),Qt(r,i);s&&(Qt(r,Ht),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Pt("clearProps",{parser:function(t,e,i,n,s){return(s=new _t(t,i,0,0,s,2)).setRatio=te,s.e=e,s.pr=-10,s.data=n._tween,f=!0,s}}),t="bezier,throwProps,physicsProps,physics2D".split(","),xt=t.length;xt--;)Et(t[xt]);(t=X.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,n){if(!t.nodeType)return!1;this._target=A=t,this._tween=i,this._vars=e,M=n,E=e.autoRound,f=!1,x=e.suffixMap||X.suffixMap,P=tt(t,""),m=this._overwriteProps;var s,o,r,a,l,c,h,d,u,p=t.style;if(v&&""===p.zIndex&&(("auto"===(s=et(t,"zIndex",P))||""===s)&&this._addLazySet(p,"zIndex",0)),"string"==typeof e&&(a=p.cssText,s=st(t,P),p.cssText=a+";"+e,s=ot(t,s,st(t)).difs,!q&&_.test(e)&&(s.opacity=parseFloat(RegExp.$1)),e=s,p.cssText=a),e.className?this._firstPT=o=g.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=o=this.parse(t,e,null),this._transformType){for(u=3===this._transformType,Ht?y&&(v=!0,""===p.zIndex&&(("auto"===(h=et(t,"zIndex",P))||""===h)&&this._addLazySet(p,"zIndex",0)),T&&this._addLazySet(p,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):p.zoom=1,r=o;r&&r._next;)r=r._next;d=new _t(t,"transform",0,0,null,2),this._linkCSSP(d,null,r),d.setRatio=Ht?Kt:Ut,d.data=this._transform||qt(t,P,!0),d.tween=i,d.pr=-1,m.pop()}if(f){for(;o;){for(c=o._next,r=a;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:l)?o._prev._next=o:a=o,(o._next=r)?r._prev=o:l=o,o=c}this._firstPT=a}return!0},t.parse=function(t,e,i,n){var s,o,r,a,l,c,h,d,u,p,f=t.style;for(s in e){if("function"==typeof(c=e[s])&&(c=c(M,A)),o=g[s])i=o.parse(t,c,s,this,i,n,e);else{if("--"===s.substr(0,2)){this._tween._propLookup[s]=this._addTween.call(this._tween,t.style,"setProperty",tt(t).getPropertyValue(s)+"",c+"",s,!1,s);continue}l=et(t,s,P)+"",u="string"==typeof c,"color"===s||"fill"===s||"stroke"===s||-1!==s.indexOf("Color")||u&&w.test(c)?(u||(c=(3<(c=mt(c)).length?"rgba(":"rgb(")+c.join(",")+")"),i=St(f,s,l,c,!0,"transparent",i,0,n)):u&&B.test(c)?i=St(f,s,l,c,!0,null,i,0,n):(h=(r=parseFloat(l))||0===r?l.substr((r+"").length):"",(""===l||"auto"===l)&&(h="width"===s||"height"===s?(r=lt(t,s,P),"px"):"left"===s||"top"===s?(r=nt(t,s,P),"px"):(r="opacity"!==s?0:1,"")),""===(d=(p=u&&"="===c.charAt(1))?(a=parseInt(c.charAt(0)+"1",10),c=c.substr(2),a*=parseFloat(c),c.replace(D,"")):(a=parseFloat(c),u?c.replace(D,""):""))&&(d=s in x?x[s]:h),c=a||0===a?(p?a+r:a)+d:e[s],h!==d&&(""!==d||"lineHeight"===s)&&(a||0===a)&&r&&(r=it(t,s,r,h),"%"===d?(r/=it(t,s,100,"%")/100,!0!==e.strictUnits&&(l=r+"%")):"em"===d||"rem"===d||"vw"===d||"vh"===d?r/=it(t,s,1,d):"px"!==d&&(a=it(t,s,a,d),d="px"),p&&(a||0===a)&&(c=a+r+d)),p&&(a+=r),!r&&0!==r||!a&&0!==a?void 0!==f[s]&&(c||c+""!="NaN"&&null!=c)?(i=new _t(f,s,a||r||0,0,i,-1,s,!1,0,l,c)).xs0="none"!==c||"display"!==s&&-1===s.indexOf("Style")?c:l:K("invalid "+s+" tween value: "+e[s]):(i=new _t(f,s,r,a-r,i,0,s,!1!==E&&("px"===d||"zIndex"===s),0,l,c)).xs0=d)}n&&i&&!i.plugin&&(i.plugin=n)}return i},t.setRatio=function(t){var e,i,n,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&&-1e-6<e&&(e=0),s.type)if(1===s.type)if(2===(n=s.l))s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===n)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===n)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===n)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(i=s.xs0+e+s.xs1,n=1;n<s.l;n++)i+=s["xn"+n]+s["xs"+(n+1)];s.t[s.p]=i}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(n=s.l,i=s.xs0+e+s.xs1,n=1;n<s.l;n++)i+=s["xn"+n]+s["xs"+(n+1)];s.t[s.p]=i}}else s.t[s.p]=e+s.xs0;else s.t[s.p]=s.e;else s.setRatio(t);s=s._next}},t._enableTransforms=function(t){this._transform=this._transform||qt(this._target,P,!0),this._transformType=this._transform.svg&&At||!t&&3!==this._transformType?2:3};var ee=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};t._addLazySet=function(t,e,i){var n=this._firstPT=new _t(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=ee,n.data=this},t._linkCSSP=function(t,e,i,n){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,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._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},t._kill=function(t){var e,i,n,s=t;if(t.autoAlpha||t.alpha){for(i in s={},t)s[i]=t[i];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(t.className&&(e=this._classNamePT)&&((n=e.xfirst)&&n._prev?this._linkCSSP(n._prev,e._next,n._prev._prev):n===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,n._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==i&&e.plugin._kill&&(e.plugin._kill(t),i=e.plugin),e=e._next;return o.prototype._kill.call(this,s)};var ie=function(t,e,i){var n,s,o,r;if(t.slice)for(s=t.length;-1<--s;)ie(t[s],e,i);else for(s=(n=t.childNodes).length;-1<--s;)r=(o=n[s]).type,o.style&&(e.push(st(o)),i&&i.push(o)),1!==r&&9!==r&&11!==r||!o.childNodes.length||ie(o,e,i)};return X.cascadeTo=function(t,e,i){var n,s,o,r,a=N.to(t,e,i),l=[a],c=[],h=[],d=[],u=N._internals.reservedProps;for(t=a._targets||a.target,ie(t,c,d),a.render(e,!0,!0),ie(t,h),a.render(0,!0,!0),a._enabled(!0),n=d.length;-1<--n;)if((s=ot(d[n],c[n],h[n])).firstMPT){for(o in s=s.difs,i)u[o]&&(s[o]=i[o]);for(o in r={},s)r[o]=c[n][o];l.push(N.fromTo(d[n],e,r,s))}return l},o.activate([X]),X},!0),t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),l=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},(e=t.prototype)._onInitAllProps=function(){for(var t,e,i,n=this._tween,s=n.vars.roundProps.join?n.vars.roundProps:n.vars.roundProps.split(","),o=s.length,r={},a=n._propLookup.roundProps;-1<--o;)r[s[o]]=Math.round;for(o=s.length;-1<--o;)for(t=s[o],e=n._firstPT;e;)i=e._next,e.pg?e.t._mod(r):e.n===t&&(2===e.f&&e.t?l(e.t._firstPT):(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:n._firstPT===e&&(n._firstPT=i),e._next=e._prev=null,n._propLookup[t]=a)),e=i;return!1},e._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,n){var s,o;if("function"!=typeof t.setAttribute)return!1;for(s in e)"function"==typeof(o=e[s])&&(o=o(n,t)),this._addTween(t,"setAttribute",t.getAttribute(s)+"",o+"",s,!1,s),this._overwriteProps.push(s);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var s,o,r,a,l,c,h=!0===e.useRadians?2*Math.PI:360;for(s in e)"useRadians"!==s&&("function"==typeof(a=e[s])&&(a=a(n,t)),o=(c=(a+"").split("_"))[0],r=parseFloat("function"!=typeof t[s]?t[s]:t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]()),l=(a=this.finals[s]="string"==typeof o&&"="===o.charAt(1)?r+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-r,c.length&&(-1!==(o=c.join("_")).indexOf("short")&&((l%=h)!==l%(h/2)&&(l=l<0?l+h:l-h)),-1!==o.indexOf("_cw")&&l<0?l=(l+9999999999*h)%h-(l/h|0)*h:-1!==o.indexOf("ccw")&&0<l&&(l=(l-9999999999*h)%h-(l/h|0)*h)),(1e-6<l||l<-1e-6)&&(this._addTween(t,s,r,r+l,s),this._overwriteProps.push(s)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(g){var i,e,t,n=_gsScope.GreenSockGlobals||_gsScope,s=n.com.greensock,o=2*Math.PI,r=Math.PI/2,a=s._class,l=function(t,e){var i=a("easing."+t,function(){},!0),n=i.prototype=new g;return n.constructor=i,n.getRatio=e,i},c=g.register||function(){},h=function(t,e,i,n,s){var o=a("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return c(o,t),o},v=function(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)},d=function(t,e){var i=a("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),n=i.prototype=new g;return n.constructor=i,n.getRatio=e,n.config=function(t){return new i(t)},i},u=h("Back",d("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),d("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),d("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)})),p=a("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),f=p.prototype=new g;return f.constructor=p,f.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},p.ease=new p(.7,.7),f.config=p.config=function(t,e,i){return new p(t,e,i)},(f=(i=a("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new g).constructor=i,f.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},f.config=i.config=function(t,e){return new i(t,e)},(f=(e=a("easing.RoughEase",function(t){for(var e,i,n,s,o,r,a=(t=t||{}).taper||"none",l=[],c=0,h=0|(t.points||20),d=h,u=!1!==t.randomize,p=!0===t.clamp,f=t.template instanceof g?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;-1<--d;)e=u?Math.random():1/h*d,i=f?f.getRatio(e):e,n="none"===a?m:"out"===a?(s=1-e)*s*m:"in"===a?e*e*m:(s=e<.5?2*e:2*(1-e))*s*.5*m,u?i+=Math.random()*n-.5*n:d%2?i+=.5*n:i-=.5*n,p&&(1<i?i=1:i<0&&(i=0)),l[c++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),r=new v(1,1,null),d=h;-1<--d;)o=l[d],r=new v(o.x,o.y,r);this._prev=new v(0,0,0!==r.t?r:r.next)},!0)).prototype=new g).constructor=e,f.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},f.config=function(t){return new e(t)},e.ease=new e,h("Bounce",l("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}),l("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)}),l("BounceInOut",function(t){var e=t<.5;return t=(t=e?1-2*t:2*t-1)<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,e?.5*(1-t):.5*t+.5})),h("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),h("Elastic",(t=function(t,e,i){var n=a("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),s=n.prototype=new g;return s.constructor=n,s.getRatio=e,s.config=function(t,e){return new n(t,e)},n})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),t("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),t("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",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),h("Sine",l("SineOut",function(t){return Math.sin(t*r)}),l("SineIn",function(t){return 1-Math.cos(t*r)}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),a("easing.EaseLookup",{find:function(t){return g.map[t]}},!0),c(n.SlowMo,"SlowMo","ease,"),c(e,"RoughEase","ease,"),c(i,"SteppedEase","ease,"),u},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(u,p){"use strict";var e,i,f={},n=u.document,m=u.GreenSockGlobals=u.GreenSockGlobals||u;if(!m.TweenLite){var t,s,o,g,v,y=function(t){var e,i=t.split("."),n=m;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},d=y("com.greensock"),T=1e-10,l=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},b=function(){},_=(e=Object.prototype.toString,i=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&e.call(t)===i)}),w={},S=function(a,l,c,h){this.sc=w[a]?w[a].sc:[],(w[a]=this).gsClass=null,this.func=c;var d=[];this.check=function(t){for(var e,i,n,s,o=l.length,r=o;-1<--o;)(e=w[l[o]]||new S(l[o],[])).gsClass?(d[o]=e.gsClass,r--):t&&e.sc.push(this);if(0===r&&c){if(n=(i=("com.greensock."+a).split(".")).pop(),s=y(i.join("."))[n]=this.gsClass=c.apply(c,d),h)if(m[n]=f[n]=s,"undefined"!=typeof module&&module.exports)if(a===p)for(o in module.exports=f[p]=s,f)s[o]=f[o];else f[p]&&(f[p][n]=s);else"function"==typeof define&&define.amd&&define((u.GreenSockAMDPath?u.GreenSockAMDPath+"/":"")+a.split(".").pop(),[],function(){return s});for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)},r=u._gsDefine=function(t,e,i,n){return new S(t,e,i,n)},x=d._class=function(t,e,i){return e=e||function(){},r(t,[],function(){return e},i),e};r.globals=m;var a=[0,0,1,1],C=x("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?a.concat(e):a},!0),P=C.map={},c=C.register=function(t,e,i,n){for(var s,o,r,a,l=e.split(","),c=l.length,h=(i||"easeIn,easeOut,easeInOut").split(",");-1<--c;)for(o=l[c],s=n?x("easing."+o,null,!0):d.easing[o]||{},r=h.length;-1<--r;)a=h[r],P[o+"."+a]=P[a+o]=s[a]=t.getRatio?t:t[a]||new t};for((o=C.prototype)._calcEnd=!1,o.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:t<.5?n/2:1-n/2},s=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--s;)o=t[s]+",Power"+s,c(new C(null,null,1,s),o,"easeOut",!0),c(new C(null,null,2,s),o,"easeIn"+(0===s?",easeNone":"")),c(new C(null,null,3,s),o,"easeInOut");P.linear=d.easing.Linear.easeIn,P.swing=d.easing.Quad.easeInOut;var E=x("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(o=E.prototype).addEventListener=function(t,e,i,n,s){s=s||0;var o,r,a=this._listeners[t],l=0;for(this!==g||v||g.wake(),null==a&&(this._listeners[t]=a=[]),r=a.length;-1<--r;)(o=a[r]).c===e&&o.s===i?a.splice(r,1):0===l&&o.pr<s&&(l=r+1);a.splice(l,0,{c:e,s:i,up:n,pr:s})},o.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;-1<--i;)if(n[i].c===e)return void n.splice(i,1)},o.dispatchEvent=function(t){var e,i,n,s=this._listeners[t];if(s)for(1<(e=s.length)&&(s=s.slice(0)),i=this._eventTarget;-1<--e;)(n=s[e])&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var A=u.requestAnimationFrame,M=u.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},I=k();for(s=(t=["ms","moz","webkit","o"]).length;-1<--s&&!A;)A=u[t[s]+"RequestAnimationFrame"],M=u[t[s]+"CancelAnimationFrame"]||u[t[s]+"CancelRequestAnimationFrame"];x("Ticker",function(t,e){var s,o,r,a,l,c=this,h=k(),i=!(!1===e||!A)&&"auto",d=500,u=33,p=function(t){var e,i,n=k()-I;d<n&&(h+=n-u),I+=n,c.time=(I-h)/1e3,e=c.time-l,(!s||0<e||!0===t)&&(c.frame++,l+=e+(a<=e?.004:a-e),i=!0),!0!==t&&(r=o(p)),i&&c.dispatchEvent("tick")};E.call(c),c.time=c.frame=0,c.tick=function(){p(!0)},c.lagSmoothing=function(t,e){return arguments.length?(d=t||1e10,void(u=Math.min(e,d,0))):d<1e10},c.sleep=function(){null!=r&&(i&&M?M(r):clearTimeout(r),o=b,r=null,c===g&&(v=!1))},c.wake=function(t){null!==r?c.sleep():t?h+=-I+(I=k()):10<c.frame&&(I=k()-d+5),o=0===s?b:i&&A?A:function(t){return setTimeout(t,1e3*(l-c.time)+1|0)},c===g&&(v=!0),p(2)},c.fps=function(t){return arguments.length?(a=1/((s=t)||60),l=this.time+a,void c.wake()):s},c.useRAF=function(t){return arguments.length?(c.sleep(),i=t,void c.fps(s)):i},c.fps(t),setTimeout(function(){"auto"===i&&c.frame<5&&"hidden"!==n.visibilityState&&c.useRAF(!1)},1500)}),(o=d.Ticker.prototype=new d.events.EventDispatcher).constructor=d.Ticker;var h=x("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){v||g.wake();var i=this.vars.useFrames?U:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});g=h.ticker=new d.Ticker,(o=h.prototype)._dirty=o._gc=o._initted=o._paused=!1,o._totalTime=o._time=0,o._rawPrevTime=-1,o._next=o._last=o._onUpdate=o._timeline=o.timeline=null,o._paused=!1;var D=function(){v&&2e3<k()-I&&("hidden"!==n.visibilityState||!g.lagSmoothing())&&g.wake();var t=setTimeout(D,2e3);t.unref&&t.unref()};D(),o.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},o.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},o.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},o.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},o.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},o.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},o.render=function(t,e,i){},o.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},o.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-1e-7},o._enabled=function(t,e){return v||g.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},o._kill=function(t,e){return this._enabled(!1,!1)},o.kill=function(t,e){return this._kill(t,e),this},o._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},o._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},o._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],s=e[t+"Scope"]||e.callbackScope||this;switch(n?n.length:0){case 0:i.call(s);break;case 1:i.call(s,n[0]);break;case 2:i.call(s,n[0],n[1]);break;default:i.apply(s,n)}},o.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var s=this.vars;if(1===arguments.length)return s[t];null==e?delete s[t]:(s[t]=e,s[t+"Params"]=_(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,s[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},o.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},o.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},o.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},o.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},o.totalTime=function(t,e,i){if(v||g.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,s=this._timeline;if(n<t&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:s._time)-(this._reversed?n-t:t)/this._timeScale,s._dirty||this._uncache(!1),s._timeline)for(;s._timeline;)s._timeline._time!==(s._startTime+s._totalTime)/s._timeScale&&s.totalTime(s._totalTime,!0),s=s._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(B.length&&Q(),this.render(t,e,!1),B.length&&Q())}return this},o.progress=o.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},o.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},o.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},o.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||T,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},o.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},o.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(v||t||g.wake(),i=(e=n.rawTime())-this._pauseTime,!t&&n.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=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var O=x("core.SimpleTimeline",function(t){h.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(o=O.prototype=new h).constructor=O,o.kill()._gc=!1,o._first=o._last=o._recent=null,o._sortChildren=!1,o.add=o.insert=function(t,e,i,n){var s,o;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),s=this._last,this._sortChildren)for(o=t._startTime;s&&s._startTime>o;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=s,this._recent=t,this._timeline&&this._uncache(!0),this},o._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},o.render=function(t,e,i){var n,s=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;s;)n=s._next,(s._active||t>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n},o.rawTime=function(){return v||g.wake(),this._totalTime};var H=x("TweenLite",function(t,e,i){if(h.call(this,e,i),this.render=H.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:H.selector(t)||t;var n,s,o,r=t.jquery||t.length&&t!==u&&t[0]&&(t[0]===u||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?q[H.defaultOverwrite]:"number"==typeof a?a>>0:q[a],(r||t instanceof Array||t.push&&_(t))&&"number"!=typeof t[0])for(this._targets=o=l(t),this._propLookup=[],this._siblings=[],n=0;n<o.length;n++)(s=o[n])?"string"!=typeof s?s.length&&s!==u&&s[0]&&(s[0]===u||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(n--,1),this._targets=o=o.concat(l(s))):(this._siblings[n]=J(s,this,!1),1===a&&1<this._siblings[n].length&&et(s,this,null,1,this._siblings[n])):"string"==typeof(s=o[n--]=H.selector(s))&&o.splice(n+1,1):o.splice(n--,1);else this._propLookup={},this._siblings=J(t,this,!1),1===a&&1<this._siblings.length&&et(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-T,this.render(Math.min(0,-this._delay)))},!0),L=function(t){return t&&t.length&&t!==u&&t[0]&&(t[0]===u||t[0].nodeType&&t[0].style&&!t.nodeType)};(o=H.prototype=new h).constructor=H,o.kill()._gc=!1,o.ratio=0,o._firstPT=o._targets=o._overwrittenProps=o._startAt=null,o._notifyPluginsOfEnabled=o._lazy=!1,H.version="1.20.3",H.defaultEase=o._ease=new C(null,null,1,1),H.defaultOverwrite="auto",H.ticker=g,H.autoSleep=120,H.lagSmoothing=function(t,e){g.lagSmoothing(t,e)},H.selector=u.$||u.jQuery||function(t){var e=u.$||u.jQuery;return e?(H.selector=e)(t):void 0===n?t:n.querySelectorAll?n.querySelectorAll(t):n.getElementById("#"===t.charAt(0)?t.substr(1):t)};var B=[],z={},G=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,R=/[\+-]=-?[\.\d]/,N=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<1e-6&&-1e-6<e&&!i.blob&&(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},X=function(t,e,i,n){var s,o,r,a,l,c,h,d=[],u=0,p="",f=0;for(d.start=t,d.end=e,t=d[0]=t+"",e=d[1]=e+"",i&&(i(d),t=d[0],e=d[1]),d.length=0,s=t.match(G)||[],o=e.match(G)||[],n&&(n._next=null,n.blob=1,d._firstPT=d._applyPT=n),l=o.length,a=0;a<l;a++)h=o[a],p+=(c=e.substr(u,e.indexOf(h,u)-u))||!a?c:",",u+=c.length,f?f=(f+1)%5:"rgba("===c.substr(-5)&&(f=1),h===s[a]||s.length<=a?p+=h:(p&&(d.push(p),p=""),r=parseFloat(s[a]),d.push(r),d._firstPT={_next:d._firstPT,t:d,p:d.length-1,s:r,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-r)||0,f:0,m:f&&f<4?Math.round:0}),u+=h.length;return(p+=e.substr(u))&&d.push(p),d.setRatio=N,R.test(e)&&(d.end=null),d},F=function(t,e,i,n,s,o,r,a,l){"function"==typeof n&&(n=n(l||0,t));var c=typeof t[e],h="function"!==c?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),d="get"!==i?i:h?r?t[h](r):t[h]():t[e],u="string"==typeof n&&"="===n.charAt(1),p={t:t,p:e,s:d,f:"function"===c,pg:0,n:s||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:u?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-d||0};return("number"!=typeof d||"number"!=typeof n&&!u)&&(r||isNaN(d)||!u&&isNaN(n)||"boolean"==typeof d||"boolean"==typeof n?(p.fp=r,p={t:X(d,u?parseFloat(p.s)+p.c:n,a||H.defaultStringFilter,p),p:"setRatio",s:0,c:1,f:2,pg:0,n:s||e,pr:0,m:0}):(p.s=parseFloat(d),u||(p.c=parseFloat(n)-p.s||0))),p.c?((p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p):void 0},$=H._internals={isArray:_,isSelector:L,lazyTweens:B,blobDif:X},W=H._plugins={},Y=$.tweenLookup={},V=0,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,yoyoEase:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},U=h._rootFramesTimeline=new O,K=h._rootTimeline=new O,Z=30,Q=$.lazyRender=function(){var t,e=B.length;for(z={};-1<--e;)(t=B[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);B.length=0};K._startTime=g.time,U._startTime=g.frame,K._active=U._active=!0,setTimeout(Q,1),h._updateRoot=H.render=function(){var t,e,i;if(B.length&&Q(),K.render((g.time-K._startTime)*K._timeScale,!1,!1),U.render((g.frame-U._startTime)*U._timeScale,!1,!1),B.length&&Q(),g.frame>=Z){for(i in Z=g.frame+(parseInt(H.autoSleep,10)||120),Y){for(t=(e=Y[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete Y[i]}if((!(i=K._first)||i._paused)&&H.autoSleep&&!U._first&&1===g._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||g.sleep()}}},g.addEventListener("tick",h._updateRoot);var J=function(t,e,i){var n,s,o=t._gsTweenID;if(Y[o||(t._gsTweenID=o="t"+V++)]||(Y[o]={target:t,tweens:[]}),e&&((n=Y[o].tweens)[s=n.length]=e,i))for(;-1<--s;)n[s]===e&&n.splice(s,1);return Y[o].tweens},tt=function(t,e,i,n){var s,o,r=t.vars.onOverwrite;return r&&(s=r(t,e,i,n)),(r=H.onOverwrite)&&(o=r(t,e,i,n)),!1!==s&&!1!==o},et=function(t,e,i,n,s){var o,r,a,l;if(1===n||4<=n){for(l=s.length,o=0;o<l;o++)if((a=s[o])!==e)a._gc||a._kill(null,t,e)&&(r=!0);else if(5===n)break;return r}var c,h=e._startTime+T,d=[],u=0,p=0===e._duration;for(o=s.length;-1<--o;)(a=s[o])===e||a._gc||a._paused||(a._timeline!==e._timeline?(c=c||it(e,0,p),0===it(a,c,p)&&(d[u++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((p||!a._initted)&&h-a._startTime<=2e-10||(d[u++]=a)));for(o=u;-1<--o;)if(a=d[o],2===n&&a._kill(i,t,e)&&(r=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!tt(a,e))continue;a._enabled(!1,!1)&&(r=!0)}return r},it=function(t,e,i){for(var n=t._timeline,s=n._timeScale,o=t._startTime;n._timeline;){if(o+=n._startTime,s*=n._timeScale,n._paused)return-100;n=n._timeline}return e<(o/=s)?o-e:i&&o===e||!t._initted&&o-e<2*T?T:(o+=t.totalDuration()/t._timeScale/s)>e+T?0:o-e-T};o._init=function(){var t,e,i,n,s,o,r=this.vars,a=this._overwrittenProps,l=this._duration,c=!!r.immediateRender,h=r.ease;if(r.startAt){for(n in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),s={},r.startAt)s[n]=r.startAt[n];if(s.data="isStart",s.overwrite=!1,s.immediateRender=!0,s.lazy=c&&!1!==r.lazy,s.startAt=s.delay=null,s.onUpdate=r.onUpdate,s.onUpdateParams=r.onUpdateParams,s.onUpdateScope=r.onUpdateScope||r.callbackScope||this,this._startAt=H.to(this.target,0,s),c)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(r.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(n in 0!==this._time&&(c=!1),i={},r)j[n]&&"autoCSS"!==n||(i[n]=r[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=c&&!1!==r.lazy,i.immediateRender=c,this._startAt=H.to(this.target,0,i),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof C?h:"function"==typeof h?new C(h,r.easeParams):P[h]||H.defaultEase:H.defaultEase,r.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,r.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(e&&H._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=r.onUpdate,this._initted=!0},o._initProps=function(t,e,i,n,s){var o,r,a,l,c,h;if(null==t)return!1;for(o in z[t._gsTweenID]&&Q(),this.vars.css||t.style&&t!==u&&t.nodeType&&W.css&&!1!==this.vars.autoCSS&&function(t,e){var i,n={};for(i in t)j[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!W[i]||W[i]&&W[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n}(this.vars,t),this.vars)if(h=this.vars[o],j[o])h&&(h instanceof Array||h.push&&_(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[o]=h=this._swapSelfInParams(h,this));else if(W[o]&&(l=new W[o])._onInitTween(t,this.vars[o],this,s)){for(this._firstPT=c={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:l._priority,m:0},r=l._overwriteProps.length;-1<--r;)e[l._overwriteProps[r]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else e[o]=F.call(this,t,o,"get",h,o,0,null,this.vars.stringFilter,s);return n&&this._kill(n,t)?this._initProps(t,e,i,n,s):1<this._overwrite&&this._firstPT&&1<i.length&&et(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,n,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(z[t._gsTweenID]=!0),a)},o.render=function(t,e,i){var n,s,o,r,a=this._time,l=this._duration,c=this._rawPrevTime;if(l-1e-7<=t&&0<=t)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,s="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(c<0||t<=0&&-1e-7<=t||c===T&&"isPause"!==this.data)&&c!==t&&(i=!0,T<c&&(s="onReverseComplete")),this._rawPrevTime=r=!e||t||c===t?t:T);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&0<c)&&(s="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(0<=c&&(c!==T||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=r=!e||t||c===t?t:T)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var h=t/l,d=this._easeType,u=this._easePower;(1===d||3===d&&.5<=h)&&(h=1-h),3===d&&(h*=2),1===u?h*=h:2===u?h*=h*h:3===u?h*=h*h*h:4===u&&(h*=h*h*h*h),this.ratio=1===d?1-h:2===d?h:t/l<.5?h/2:1-h/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||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=a,this._rawPrevTime=c,B.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&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!==a&&0<=t&&(this._active=!0),0===a&&(this._startAt&&(0<=t?this._startAt.render(t,!0,i):s||(s="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==a||n||i)&&this._callback("onUpdate")),s&&(!this._gc||i)&&(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[s]&&this._callback(s),0===l&&this._rawPrevTime===T&&r!==T&&(this._rawPrevTime=0))}},o._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:H.selector(e)||e;var n,s,o,r,a,l,c,h,d,u=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((_(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;-1<--n;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;-1<--n;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,s=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(c=t||a,h=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(H.onOverwrite||this.vars.onOverwrite)){for(o in c)a[o]&&(d||(d=[]),d.push(o));if((d||!t)&&!tt(this,i,e,d))return!1}for(o in c)(r=a[o])&&(u&&(r.f?r.t[r.p](r.s):r.t[r.p]=r.s,l=!0),r.pg&&r.t._kill(c)&&(l=!0),r.pg&&0!==r.t._overwriteProps.length||(r._prev?r._prev._next=r._next:r===this._firstPT&&(this._firstPT=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete a[o]),h&&(s[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},o.invalidate=function(){return this._notifyPluginsOfEnabled&&H._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],h.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-T,this.render(Math.min(0,-this._delay))),this},o._enabled=function(t,e){if(v||g.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;-1<--i;)this._siblings[i]=J(n[i],this,!0);else this._siblings=J(this.target,this,!0)}return h.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&H._onPluginEvent(t?"_onEnable":"_onDisable",this)},H.to=function(t,e,i){return new H(t,e,i)},H.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new H(t,e,i)},H.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new H(t,e,n)},H.delayedCall=function(t,e,i,n,s){return new H(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:s,overwrite:0})},H.set=function(t,e){return new H(t,0,e)},H.getTweensOf=function(t,e){if(null==t)return[];var i,n,s,o;if(t="string"!=typeof t?t:H.selector(t)||t,(_(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];-1<--i;)n=n.concat(H.getTweensOf(t[i],e));for(i=n.length;-1<--i;)for(o=n[i],s=i;-1<--s;)o===n[s]&&n.splice(i,1)}else if(t._gsTweenID)for(i=(n=J(t).concat()).length;-1<--i;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n||[]},H.killTweensOf=H.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=H.getTweensOf(t,e),s=n.length;-1<--s;)n[s]._kill(i,t)};var nt=x("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(o=nt.prototype,nt.version="1.19.0",nt.API=2,o._firstPT=null,o._addTween=F,o.setRatio=N,o._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},o._mod=o._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},H._onPluginEvent=function(t,e){var i,n,s,o,r,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(r=a._next,n=s;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:o)?a._prev._next=a:s=a,(a._next=n)?n._prev=a:o=a,a=r}a=e._firstPT=s}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},nt.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===nt.API&&(W[(new t[e])._propName]=t[e]);return!0},r.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,s=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},r=x("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){nt.call(this,i,n),this._overwriteProps=s||[]},!0===t.global),a=r.prototype=new nt(i);for(e in(a.constructor=r).API=t.API,o)"function"==typeof t[e]&&(a[o[e]]=t[e]);return r.version=t.version,nt.activate([r]),r},t=u._gsQueue){for(s=0;s<t.length;s++)t[s]();for(o in w)w[o].func||u.console.log("GSAP encountered missing dependency: "+o)}v=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function d(t,e,i,n,s,o){return i=(parseFloat(i||0)-parseFloat(t||0))*s,n=(parseFloat(n||0)-parseFloat(e||0))*o,Math.sqrt(i*i+n*n)}function u(t){return"string"!=typeof t&&t.nodeType||(t=_gsScope.TweenLite.selector(t)).length&&(t=t[0]),t}function m(t){if(!t)return 0;var e,i,n,s,o,r,a,l=(t=u(t)).tagName.toLowerCase(),c=1,h=1;"non-scaling-stroke"===t.getAttribute("vector-effect")&&(c=(h=t.getScreenCTM()).a,h=h.d);try{i=t.getBBox()}catch(t){}if(i&&(i.width||i.height)||"rect"!==l&&"circle"!==l&&"ellipse"!==l||(i={width:parseFloat(t.getAttribute("rect"===l?"width":"circle"===l?"r":"rx")),height:parseFloat(t.getAttribute("rect"===l?"height":"circle"===l?"r":"ry"))},"rect"!==l&&(i.width*=2,i.height*=2)),"path"===l)s=t.style.strokeDasharray,t.style.strokeDasharray="none",e=t.getTotalLength()||0,c!==h&&console.log("Warning: <path> length cannot be measured accurately when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(c+h)/2,t.style.strokeDasharray=s;else if("rect"===l)e=2*i.width*c+2*i.height*h;else if("line"===l)e=d(t.getAttribute("x1"),t.getAttribute("y1"),t.getAttribute("x2"),t.getAttribute("y2"),c,h);else if("polyline"===l||"polygon"===l)for(n=t.getAttribute("points").match(p)||[],"polygon"===l&&n.push(n[0],n[1]),e=0,o=2;o<n.length;o+=2)e+=d(n[o-2],n[o-1],n[o],n[o+1],c,h)||0;else("circle"===l||"ellipse"===l)&&(r=i.width/2*c,a=i.height/2*h,e=Math.PI*(3*(r+a)-Math.sqrt((3*r+a)*(r+3*a))));return e||0}function g(t,e){if(!t)return[0,0];t=u(t),e=e||m(t)+1;var i=v(t),n=i.strokeDasharray||"",s=parseFloat(i.strokeDashoffset),o=n.indexOf(",");return o<0&&(o=n.indexOf(" ")),e<(n=o<0?e:parseFloat(n.substr(0,o))||1e-5)&&(n=e),[Math.max(0,-s),Math.max(0,n-s)]}var t,e=_gsScope.document,v=e.defaultView?e.defaultView.getComputedStyle:function(){},p=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,y=-1!==((_gsScope.navigator||{}).userAgent||"").indexOf("Edge");(t=_gsScope._gsDefine.plugin({propName:"drawSVG",API:2,version:"0.1.4",global:!0,overwriteProps:["drawSVG"],init:function(t,e,i,n){if(!t.getBBox)return!1;var s,o,r,a,l,c,h,d,u,p,f=m(t)+1;return this._style=t.style,"function"==typeof e&&(e=e(n,t)),!0===e||"true"===e?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",s=g(t,f),l=e,c=f,h=s[0],p=l.indexOf(" "),u=-1===p?(d=void 0!==h?h+"":l,l):(d=l.substr(0,p),l.substr(p+1)),d=-1!==d.indexOf("%")?parseFloat(d)/100*c:parseFloat(d),o=(u=-1!==u.indexOf("%")?parseFloat(u)/100*c:parseFloat(u))<d?[u,d]:[d,u],this._length=f+10,0===s[0]&&0===o[0]?(r=Math.max(1e-5,o[1]-f),this._dash=f+r,this._offset=f-s[1]+r,this._addTween(this,"_offset",this._offset,f-o[1]+r,"drawSVG")):(this._dash=s[1]-s[0]||1e-6,this._offset=-s[0],this._addTween(this,"_dash",this._dash,o[1]-o[0]||1e-5,"drawSVG"),this._addTween(this,"_offset",this._offset,-o[0],"drawSVG")),y&&("butt"!==(o=(a=v(t)).strokeLinecap)&&o!==a.strokeLinejoin&&(o=parseFloat(a.strokeMiterlimit),this._addTween(t.style,"strokeMiterlimit",o,o+1e-4,"strokeMiterlimit"))),!0},set:function(t){this._firstPT&&(this._super.setRatio.call(this,t),this._style.strokeDashoffset=this._offset,this._style.strokeDasharray=1===t||0===t?this._offset<.001&&this._length-this._dash<=10?"none":this._offset===this._dash?"0px, 999999px":this._dash+"px,"+this._length+"px":this._dash+"px,"+this._length+"px")}})).getLength=m,t.getPosition=g}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).DrawSVGPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}(),function(i){"use strict";var s=i.GreenSockGlobals||i,t=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}("com.greensock.utils"),S=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=S(t)}else if(3===e||4===e)return t.nodeValue;return i},X=document,F=X.defaultView?X.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,$=function(t,e,i,n){var s;return(i=i||F(t,null))?s=(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()))||i.length?t:i[e]:t.currentStyle&&(s=(i=t.currentStyle)[e]),n?s:parseInt(s,10)||0},r=function(t){return!!(t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},x=/(?:\r|\n|\t\t)/g,C=/(?:\s\s+)/g,P=function(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536},a=" style='position:relative;display:inline-block;"+(X.all&&!X.addEventListener?"*display:inline;*zoom:1;'":"'"),l=function(t,e){var i=-1!==(t=t||"").indexOf("++"),n=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+a+(t?" class='"+t+(i?n++:"")+"'>":">")}},n=t.SplitText=s.SplitText=function(t,e){if("string"==typeof t&&(t=n.selector(t)),!t)throw"cannot split a null element.";this.elements=r(t)?function(t){var e,i,n,s=[],o=t.length;for(e=0;e<o;e++)if(i=t[e],r(i))for(n=i.length,n=0;n<i.length;n++)s.push(i[n]);else s.push(i);return s}(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},W=function(t,e,i){var n=t.nodeType;if(1===n||9===n||11===n)for(t=t.firstChild;t;t=t.nextSibling)W(t,e,i);else(3===n||4===n)&&(t.nodeValue=t.nodeValue.split(e).join(i))},Y=function(t,e){for(var i=e.length;-1<--i;)t.push(e[i])},c=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},V=function(t,e,i){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===i;t=t.parentNode||t._parent}return!1},j=function(t){var e,i,n=c(t.childNodes),s=n.length;for(e=0;e<s;e++)(i=n[e])._isSplit?j(i):(e&&3===i.previousSibling.nodeType?i.previousSibling.nodeValue+=3===i.nodeType?i.nodeValue:i.firstChild.nodeValue:3!==i.nodeType&&t.insertBefore(i.firstChild,i),t.removeChild(i))},h=function(t,e,i,n,s,o,r){var a,l,c,h,d,u,p,f,m,g,v,y,T=F(t),b=$(t,"paddingLeft",T),_=-999,w=$(t,"borderBottomWidth",T)+$(t,"borderTopWidth",T),S=$(t,"borderLeftWidth",T)+$(t,"borderRightWidth",T),x=$(t,"paddingTop",T)+$(t,"paddingBottom",T),C=$(t,"paddingLeft",T)+$(t,"paddingRight",T),P=.2*$(t,"fontSize"),E=$(t,"textAlign",T,!0),A=[],M=[],k=[],I=e.wordDelimiter||" ",D=e.span?"span":"div",O=e.type||e.split||"chars,words,lines",H=s&&-1!==O.indexOf("lines")?[]:null,L=-1!==O.indexOf("words"),B=-1!==O.indexOf("chars"),z="absolute"===e.position||!0===e.absolute,G=e.linesClass,R=-1!==(G||"").indexOf("++"),N=[];for(H&&1===t.children.length&&t.children[0]._isSplit&&(t=t.children[0]),R&&(G=G.split("++").join("")),c=(l=t.getElementsByTagName("*")).length,d=[],a=0;a<c;a++)d[a]=l[a];if(H||z)for(a=0;a<c;a++)((u=(h=d[a]).parentNode===t)||z||B&&!L)&&(y=h.offsetTop,H&&u&&Math.abs(y-_)>P&&"BR"!==h.nodeName&&(p=[],H.push(p),_=y),z&&(h._x=h.offsetLeft,h._y=y,h._w=h.offsetWidth,h._h=h.offsetHeight),H&&((h._isSplit&&u||!B&&u||L&&u||!L&&h.parentNode.parentNode===t&&!h.parentNode._isSplit)&&(p.push(h),h._x-=b,V(h,t,I)&&(h._wordEnd=!0)),"BR"===h.nodeName&&h.nextSibling&&"BR"===h.nextSibling.nodeName&&H.push([])));for(a=0;a<c;a++)u=(h=d[a]).parentNode===t,"BR"!==h.nodeName?(z&&(m=h.style,L||u||(h._x+=h.parentNode._x,h._y+=h.parentNode._y),m.left=h._x+"px",m.top=h._y+"px",m.position="absolute",m.display="block",m.width=h._w+1+"px",m.height=h._h+"px"),!L&&B?h._isSplit?(h._next=h.nextSibling,h.parentNode.appendChild(h)):h.parentNode._isSplit?(h._parent=h.parentNode,!h.previousSibling&&h.firstChild&&(h.firstChild._isFirst=!0),h.nextSibling&&" "===h.nextSibling.textContent&&!h.nextSibling.nextSibling&&N.push(h.nextSibling),h._next=h.nextSibling&&h.nextSibling._isFirst?null:h.nextSibling,h.parentNode.removeChild(h),d.splice(a--,1),c--):u||(y=!h.nextSibling&&V(h.parentNode,t,I),h.parentNode._parent&&h.parentNode._parent.appendChild(h),y&&h.parentNode.appendChild(X.createTextNode(" ")),e.span&&(h.style.display="inline"),A.push(h)):h.parentNode._isSplit&&!h._isSplit&&""!==h.innerHTML?M.push(h):B&&!h._isSplit&&(e.span&&(h.style.display="inline"),A.push(h))):H||z?(h.parentNode&&h.parentNode.removeChild(h),d.splice(a--,1),c--):L||t.appendChild(h);for(a=N.length;-1<--a;)N[a].parentNode.removeChild(N[a]);if(H){for(z&&(g=X.createElement(D),t.appendChild(g),v=g.offsetWidth+"px",y=g.offsetParent===t?0:t.offsetLeft,t.removeChild(g)),m=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(f=" "===I&&(!z||!L&&!B),a=0;a<H.length;a++){for(p=H[a],(g=X.createElement(D)).style.cssText="display:block;text-align:"+E+";position:"+(z?"absolute;":"relative;"),G&&(g.className=G+(R?a+1:"")),k.push(g),c=p.length,l=0;l<c;l++)"BR"!==p[l].nodeName&&(h=p[l],g.appendChild(h),f&&h._wordEnd&&g.appendChild(X.createTextNode(" ")),z&&(0===l&&(g.style.top=h._y+"px",g.style.left=b+y+"px"),h.style.top="0px",y&&(h.style.left=h._x-y+"px")));0===c?g.innerHTML="&nbsp;":L||B||(j(g),W(g,String.fromCharCode(160)," ")),z&&(g.style.width=v,g.style.height=h._h+"px"),t.appendChild(g)}t.style.cssText=m}z&&(r>t.clientHeight&&(t.style.height=r-x+"px",t.clientHeight<r&&(t.style.height=r+w+"px")),o>t.clientWidth&&(t.style.width=o-C+"px",t.clientWidth<o&&(t.style.width=o+S+"px"))),Y(i,A),Y(n,M),Y(s,k)},d=function(t,e,i,n){var s,o,r=c(t.childNodes),a=r.length,l="absolute"===e.position||!0===e.absolute;if(3!==t.nodeType||1<a){for(e.absolute=!1,s=0;s<a;s++)(3!==(o=r[s]).nodeType||/\S+/.test(o.nodeValue))&&(l&&3!==o.nodeType&&"inline"===$(o,"display",null,!0)&&(o.style.display="inline-block",o.style.position="relative"),o._isSplit=!0,d(o,e,i,n));return e.absolute=l,void(t._isSplit=!0)}!function(t,e,i,n){var s,o,r,a,l,c,h,d,u,p=e.span?"span":"div",f=e.type||e.split||"chars,words,lines",m=(f.indexOf("words"),-1!==f.indexOf("chars")),g="absolute"===e.position||!0===e.absolute,v=e.wordDelimiter||" ",y=" "!==v?"":g?"&#173; ":" ",T=e.span?"</span>":"</div>",b=!0,_=X.createElement("div"),w=t.parentNode;for(w.insertBefore(_,t),_.textContent=t.nodeValue,w.removeChild(t),h=-1!==(s=S(t=_)).indexOf("<"),!1!==e.reduceWhiteSpace&&(s=s.replace(C," ").replace(x,"")),h&&(s=s.split("<").join("{{LT}}")),l=s.length,o=(" "===s.charAt(0)?y:"")+i(),r=0;r<l;r++)if((c=s.charAt(r))===v&&s.charAt(r-1)!==v&&r){for(o+=b?T:"",b=!1;s.charAt(r+1)===v;)o+=y,r++;r===l-1?o+=y:")"!==s.charAt(r+1)&&(o+=y+i(),b=!0)}else"{"===c&&"{{LT}}"===s.substr(r,6)?(o+=m?n()+"{{LT}}</"+p+">":"{{LT}}",r+=5):55296<=c.charCodeAt(0)&&c.charCodeAt(0)<=56319||65024<=s.charCodeAt(r+1)&&s.charCodeAt(r+1)<=65039?(d=P(s.substr(r,2)),u=P(s.substr(r+2,2)),a=127462<=d&&d<=127487&&127462<=u&&u<=127487||127995<=u&&u<=127999?4:2,o+=m&&" "!==c?n()+s.substr(r,a)+"</"+p+">":s.substr(r,a),r+=a-1):o+=m&&" "!==c?n()+c+"</"+p+">":c;t.outerHTML=o+(b?T:""),h&&W(w,"{{LT}}","<")}(t,e,i,n)},e=n.prototype;e.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,i,n,s=this.elements.length,o=t.span?"span":"div",r=("absolute"===t.position||t.absolute,l(t.wordsClass,o)),a=l(t.charsClass,o);-1<--s;)n=this.elements[s],this._originals[s]=n.innerHTML,e=n.clientHeight,i=n.clientWidth,d(n,t,r,a),h(n,t,this.chars,this.words,this.lines,i,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;-1<--t;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},n.selector=i.$||i.jQuery||function(t){var e=i.$||i.jQuery;return e?(n.selector=e)(t):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)},n.version="0.5.7"}(_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope).SplitText};"undefined"!=typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd&&define([],e)}(),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a=(_gsScope.document||{}).documentElement,l=_gsScope,r=function(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,s="client"+i,o=document.body;return t===l||t===a||t===o?Math.max(a[n],o[n])-(l["inner"+i]||a[s]||o[s]):t[n]-t["offset"+i]},c=function(t,e){var i="scroll"+("x"===e?"Left":"Top");return t===l&&(null!=t.pageXOffset?i="page"+e.toUpperCase()+"Offset":t=null!=a[i]?a:document.body),function(){return t[i]}},s=function(t,e){var i,n=(i=t,"string"==typeof i&&(i=TweenLite.selector(i)),i.length&&i!==l&&i[0]&&i[0].style&&!i.nodeType&&(i=i[0]),i===l||i.nodeType&&i.style?i:null).getBoundingClientRect(),s=!e||e===l||e===document.body,o=(s?a:e).getBoundingClientRect(),r={x:n.left-o.left,y:n.top-o.top};return!s&&e&&(r.x+=c(e,"x")(),r.y+=c(e,"y")()),r},n=function(t,e,i){var n=typeof t;return isNaN(t)?"number"===n||"string"===n&&"="===t.charAt(1)?t:"max"===t?r(e,i):Math.min(r(e,i),s(t,e)[i]):parseFloat(t)},h=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.0",init:function(t,e,i){return this._wdw=t===l,this._target=t,this._tween=i,"object"!=typeof e?"string"==typeof(e={y:e}).y&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),this.vars=e,this._autoKill=!1!==e.autoKill,this.getX=c(t,"x"),this.getY=c(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=e.x?(this._addTween(this,"x",this.x,n(e.x,t,"x")-(e.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=e.y?(this._addTween(this,"y",this.y,n(e.y,t,"y")-(e.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var e=this._wdw||!this.skipX?this.getX():this.xPrev,i=this._wdw||!this.skipY?this.getY():this.yPrev,n=i-this.yPrev,s=e-this.xPrev,o=h.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(o<s||s<-o)&&e<r(this._target,"x")&&(this.skipX=!0),!this.skipY&&(o<n||n<-o)&&i<r(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.onAutoKillParams||[]))),this._wdw?l.scrollTo(this.skipX?e:this.x,this.skipY?i:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),t=h.prototype;h.max=r,h.getOffset=s,h.buildGetter=c,h.autoKillThreshold=7,t._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};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}(),function(o,r,d){var f=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame||function(t){o.setTimeout(t,1e3/60)},m=function(){var n={},s=r.createElement("div").style,e=function(){for(var t=["t","webkitT","MozT","msT","OT"],e=0,i=t.length;e<i;e++)if(t[e]+"ransform"in s)return t[e].substr(0,t[e].length-1);return!1}();function t(t){return!1!==e&&(""===e?t:e+t.charAt(0).toUpperCase()+t.substr(1))}n.getTime=Date.now||function(){return(new Date).getTime()},n.extend=function(t,e){for(var i in e)t[i]=e[i]},n.addEvent=function(t,e,i,n){t.addEventListener(e,i,!!n)},n.removeEvent=function(t,e,i,n){t.removeEventListener(e,i,!!n)},n.prefixPointerEvent=function(t){return o.MSPointerEvent?"MSPointer"+t.charAt(7).toUpperCase()+t.substr(8):t},n.momentum=function(t,e,i,n,s,o){var r,a,l=t-e,c=d.abs(l)/i;return a=c/(o=void 0===o?6e-4:o),(r=t+c*c/(2*o)*(l<0?-1:1))<n?(r=s?n-s/2.5*(c/8):n,a=(l=d.abs(r-t))/c):0<r&&(r=s?s/2.5*(c/8):0,a=(l=d.abs(t)+r)/c),{destination:d.round(r),duration:a}};var i=t("transform");return n.extend(n,{hasTransform:!1!==i,hasPerspective:t("perspective")in s,hasTouch:"ontouchstart"in o,hasPointer:!(!o.PointerEvent&&!o.MSPointerEvent),hasTransition:t("transition")in s}),n.isBadAndroid=function(){var t=o.navigator.appVersion;if(!/Android/.test(t)||/Chrome\/\d/.test(t))return!1;var e=t.match(/Safari\/(\d+.\d)/);return!(e&&"object"==typeof e&&2<=e.length)||parseFloat(e[1])<535.19}(),n.extend(n.style={},{transform:i,transitionTimingFunction:t("transitionTimingFunction"),transitionDuration:t("transitionDuration"),transitionDelay:t("transitionDelay"),transformOrigin:t("transformOrigin")}),n.hasClass=function(t,e){return new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},n.addClass=function(t,e){if(!n.hasClass(t,e)){var i=t.className.split(" ");i.push(e),t.className=i.join(" ")}},n.removeClass=function(t,e){if(n.hasClass(t,e)){var i=new RegExp("(^|\\s)"+e+"(\\s|$)","g");t.className=t.className.replace(i," ")}},n.offset=function(t){for(var e=-t.offsetLeft,i=-t.offsetTop;t=t.offsetParent;)e-=t.offsetLeft,i-=t.offsetTop;return{left:e,top:i}},n.preventDefaultException=function(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1},n.extend(n.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),n.extend(n.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return d.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){return(t-=1)*t*(5*t+4)+1}},bounce:{style:"",fn:function(t){return(t/=1)<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}},elastic:{style:"",fn:function(t){return 0===t?0:1==t?1:.4*d.pow(2,-10*t)*d.sin((t-.055)*(2*d.PI)/.22)+1}}}),n.tap=function(t,e){var i=r.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)},n.click=function(t){var e,i=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(i.tagName)||((e=r.createEvent(o.MouseEvent?"MouseEvents":"Event")).initEvent("click",!0,!0),e.view=t.view||o,e.detail=1,e.screenX=i.screenX||0,e.screenY=i.screenY||0,e.clientX=i.clientX||0,e.clientY=i.clientY||0,e.ctrlKey=!!t.ctrlKey,e.altKey=!!t.altKey,e.shiftKey=!!t.shiftKey,e.metaKey=!!t.metaKey,e.button=0,e.relatedTarget=null,e._constructed=!0,i.dispatchEvent(e))},n}();function t(t,e){for(var i in this.wrapper="string"==typeof t?r.querySelector(t):t,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!m.hasPointer,disableTouch:m.hasPointer||!m.hasTouch,disableMouse:m.hasPointer||m.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|LABEL)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:void 0===o.onmousedown},e)this.options[i]=e[i];this.translateZ=this.options.HWCompositing&&m.hasPerspective?" translateZ(0)":"",this.options.useTransition=m.hasTransition&&this.options.useTransition,this.options.useTransform=m.hasTransform&&this.options.useTransform,this.options.eventPassthrough=!0===this.options.eventPassthrough?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"!=this.options.eventPassthrough&&this.options.scrollY,this.options.scrollX="horizontal"!=this.options.eventPassthrough&&this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?m.ease[this.options.bounceEasing]||m.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,!0===this.options.tap&&(this.options.tap="tap"),this.options.useTransition||this.options.useTransform||/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function a(t,e,i){var n=r.createElement("div"),s=r.createElement("div");return!0===i&&(n.style.cssText="position:absolute;z-index:9999",s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),s.className="iScrollIndicator",n.className="h"==t?(!0===i&&(n.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",s.style.height="100%"),"iScrollHorizontalScrollbar"):(!0===i&&(n.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",s.style.width="100%"),"iScrollVerticalScrollbar"),n.style.cssText+=";overflow:hidden",e||(n.style.pointerEvents="none"),n.appendChild(s),n}function l(t,e){for(var i in this.wrapper="string"==typeof e.el?r.querySelector(e.el):e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0},e)this.options[i]=e[i];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(m.addEvent(this.indicator,"touchstart",this),m.addEvent(o,"touchend",this)),this.options.disablePointer||(m.addEvent(this.indicator,m.prefixPointerEvent("pointerdown"),this),m.addEvent(o,m.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(m.addEvent(this.indicator,"mousedown",this),m.addEvent(o,"mouseup",this))),this.options.fade){this.wrapperStyle[m.style.transform]=this.scroller.translateZ;var n=m.style.transitionDuration;if(!n)return;this.wrapperStyle[n]=m.isBadAndroid?"0.0001ms":"0ms";var s=this;m.isBadAndroid&&f(function(){"0.0001ms"===s.wrapperStyle[n]&&(s.wrapperStyle[n]="0s")}),this.wrapperStyle.opacity="0"}}t.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if(1!=m.eventType[t.type]&&0!==(t.which?t.button:t.button<2?0:4==t.button?1:2))return;if(this.enabled&&(!this.initiated||m.eventType[t.type]===this.initiated)){!this.options.preventDefault||m.isBadAndroid||m.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var e,i=t.touches?t.touches[0]:t;this.initiated=m.eventType[t.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=m.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,e=this.getComputedPosition(),this._translate(d.round(e.x),d.round(e.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&m.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var e,i,n,s,o=t.touches?t.touches[0]:t,r=o.pageX-this.pointX,a=o.pageY-this.pointY,l=m.getTime();if(this.pointX=o.pageX,this.pointY=o.pageY,this.distX+=r,this.distY+=a,n=d.abs(this.distX),s=d.abs(this.distY),!(300<l-this.endTime&&n<10&&s<10)){if(this.directionLocked||this.options.freeScroll||(n>s+this.options.directionLockThreshold?this.directionLocked="h":s>=n+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);r=0}r=this.hasHorizontalScroll?r:0,a=this.hasVerticalScroll?a:0,e=this.x+r,i=this.y+a,(0<e||e<this.maxScrollX)&&(e=this.options.bounce?this.x+r/3:0<e?0:this.maxScrollX),(0<i||i<this.maxScrollY)&&(i=this.options.bounce?this.y+a/3:0<i?0:this.maxScrollY),this.directionX=0<r?-1:r<0?1:0,this.directionY=0<a?-1:a<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(e,i),300<l-this.startTime&&(this.startTime=l,this.startX=this.x,this.startY=this.y)}}},_end:function(t){if(this.enabled&&m.eventType[t.type]===this.initiated){this.options.preventDefault&&!m.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault();t.changedTouches&&t.changedTouches[0];var e,i,n=m.getTime()-this.startTime,s=d.round(this.x),o=d.round(this.y),r=d.abs(s-this.startX),a=d.abs(o-this.startY),l=0,c="";if(this.isInTransition=0,this.initiated=0,this.endTime=m.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(s,o),!this.moved)return this.options.tap&&m.tap(t,this.options.tap),this.options.click&&m.click(t),void this._execEvent("scrollCancel");if(this._events.flick&&n<200&&r<100&&a<100)this._execEvent("flick");else{if(this.options.momentum&&n<300&&(e=this.hasHorizontalScroll?m.momentum(this.x,this.startX,n,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:s,duration:0},i=this.hasVerticalScroll?m.momentum(this.y,this.startY,n,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:o,duration:0},s=e.destination,o=i.destination,l=d.max(e.duration,i.duration),this.isInTransition=1),this.options.snap){var h=this._nearestSnap(s,o);this.currentPage=h,l=this.options.snapSpeed||d.max(d.max(d.min(d.abs(s-h.x),1e3),d.min(d.abs(o-h.y),1e3)),300),s=h.x,o=h.y,this.directionX=0,this.directionY=0,c=this.options.bounceEasing}if(s!=this.x||o!=this.y)return(0<s||s<this.maxScrollX||0<o||o<this.maxScrollY)&&(c=m.ease.quadratic),void this.scrollTo(s,o,l,c);this._execEvent("scrollEnd")}}}},_resize:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling)},resetPosition:function(t){var e=this.x,i=this.y;return t=t||0,!this.hasHorizontalScroll||0<this.x?e=0:this.x<this.maxScrollX&&(e=this.maxScrollX),!this.hasVerticalScroll||0<this.y?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),(e!=this.x||i!=this.y)&&(this.scrollTo(e,i,t,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=m.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(t,e){this._events[t]||(this._events[t]=[]),this._events[t].push(e)},off:function(t,e){if(this._events[t]){var i=this._events[t].indexOf(e);-1<i&&this._events[t].splice(i,1)}},_execEvent:function(t){if(this._events[t]){var e=0,i=this._events[t].length;if(i)for(;e<i;e++)this._events[t][e].apply(this,[].slice.call(arguments,1))}},scrollBy:function(t,e,i,n){t=this.x+t,e=this.y+e,i=i||0,this.scrollTo(t,e,i,n)},scrollTo:function(t,e,i,n){n=n||m.ease.circular,this.isInTransition=this.options.useTransition&&0<i;var s=this.options.useTransition&&n.style;!i||s?(s&&(this._transitionTimingFunction(n.style),this._transitionTime(i)),this._translate(t,e)):this._animate(t,e,i,n.fn)},scrollToElement:function(t,e,i,n,s){if(t=t.nodeType?t:this.scroller.querySelector(t)){var o=m.offset(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===i&&(i=d.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=d.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=0<o.left?0:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=0<o.top?0:o.top<this.maxScrollY?this.maxScrollY:o.top,e=null==e||"auto"===e?d.max(d.abs(this.x-o.left),d.abs(this.y-o.top)):e,this.scrollTo(o.left,o.top,e,s)}},_transitionTime:function(t){if(this.options.useTransition){t=t||0;var e=m.style.transitionDuration;if(e){if(this.scrollerStyle[e]=t+"ms",!t&&m.isBadAndroid){this.scrollerStyle[e]="0.0001ms";var i=this;f(function(){"0.0001ms"===i.scrollerStyle[e]&&(i.scrollerStyle[e]="0s")})}if(this.indicators)for(var n=this.indicators.length;n--;)this.indicators[n].transitionTime(t)}}},_transitionTimingFunction:function(t){if(this.scrollerStyle[m.style.transitionTimingFunction]=t,this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].transitionTimingFunction(t)},_translate:function(t,e){if(this.options.useTransform?this.scrollerStyle[m.style.transform]="translate("+t+"px,"+e+"px)"+this.translateZ:(t=d.round(t),e=d.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.x=t,this.y=e,this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].updatePosition()},_initEvents:function(t){var e=t?m.removeEvent:m.addEvent,i=this.options.bindToWrapper?this.wrapper:o;e(o,"orientationchange",this),e(o,"resize",this),this.options.click&&e(this.wrapper,"click",this,!0),this.options.disableMouse||(e(this.wrapper,"mousedown",this),e(i,"mousemove",this),e(i,"mousecancel",this),e(i,"mouseup",this)),m.hasPointer&&!this.options.disablePointer&&(e(this.wrapper,m.prefixPointerEvent("pointerdown"),this),e(i,m.prefixPointerEvent("pointermove"),this),e(i,m.prefixPointerEvent("pointercancel"),this),e(i,m.prefixPointerEvent("pointerup"),this)),m.hasTouch&&!this.options.disableTouch&&(e(this.wrapper,"touchstart",this),e(i,"touchmove",this),e(i,"touchcancel",this),e(i,"touchend",this)),e(this.scroller,"transitionend",this),e(this.scroller,"webkitTransitionEnd",this),e(this.scroller,"oTransitionEnd",this),e(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t,e,i=o.getComputedStyle(this.scroller,null);return e=this.options.useTransform?(t=+((i=i[m.style.transform].split(")")[0].split(", "))[12]||i[4]),+(i[13]||i[5])):(t=+i.left.replace(/[^-\d.]/g,""),+i.top.replace(/[^-\d.]/g,"")),{x:t,y:e}},_initIndicators:function(){var t,e=this.options.interactiveScrollbars,i="string"!=typeof this.options.scrollbars,n=[],s=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(t={el:a("v",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:i,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(t.el),n.push(t)),this.options.scrollX&&(t={el:a("h",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:i,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(t.el),n.push(t))),this.options.indicators&&(n=n.concat(this.options.indicators));for(var o=n.length;o--;)this.indicators.push(new l(this,n[o]));function r(t){if(s.indicators)for(var e=s.indicators.length;e--;)t.call(s.indicators[e])}this.options.fadeScrollbars&&(this.on("scrollEnd",function(){r(function(){this.fade()})}),this.on("scrollCancel",function(){r(function(){this.fade()})}),this.on("scrollStart",function(){r(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){r(function(){this.fade(1,!0)})})),this.on("refresh",function(){r(function(){this.refresh()})}),this.on("destroy",function(){r(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){m.addEvent(this.wrapper,"wheel",this),m.addEvent(this.wrapper,"mousewheel",this),m.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,m.removeEvent(this.wrapper,"wheel",this),m.removeEvent(this.wrapper,"mousewheel",this),m.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(t){if(this.enabled){var e,i,n,s,o=this;if(void 0===this.wheelTimeout&&o._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){o.options.snap||o._execEvent("scrollEnd"),o.wheelTimeout=void 0},400),"deltaX"in t)i=1===t.deltaMode?(e=-t.deltaX*this.options.mouseWheelSpeed,-t.deltaY*this.options.mouseWheelSpeed):(e=-t.deltaX,-t.deltaY);else if("wheelDeltaX"in t)e=t.wheelDeltaX/120*this.options.mouseWheelSpeed,i=t.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in t)e=i=t.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in t))return;e=i=-t.detail/3*this.options.mouseWheelSpeed}if(e*=this.options.invertWheelDirection,i*=this.options.invertWheelDirection,this.hasVerticalScroll||(e=i,i=0),this.options.snap)return n=this.currentPage.pageX,s=this.currentPage.pageY,0<e?n--:e<0&&n++,0<i?s--:i<0&&s++,void this.goToPage(n,s);n=this.x+d.round(this.hasHorizontalScroll?e:0),s=this.y+d.round(this.hasVerticalScroll?i:0),this.directionX=0<e?-1:e<0?1:0,this.directionY=0<i?-1:i<0?1:0,0<n?n=0:n<this.maxScrollX&&(n=this.maxScrollX),0<s?s=0:s<this.maxScrollY&&(s=this.maxScrollY),this.scrollTo(n,s,0)}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var t,e,i,n,s,o,r=0,a=0,l=0,c=this.options.snapStepX||this.wrapperWidth,h=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(!0===this.options.snap)for(i=d.round(c/2),n=d.round(h/2);l>-this.scrollerWidth;){for(this.pages[r]=[],s=t=0;s>-this.scrollerHeight;)this.pages[r][t]={x:d.max(l,this.maxScrollX),y:d.max(s,this.maxScrollY),width:c,height:h,cx:l-i,cy:s-n},s-=h,t++;l-=c,r++}else for(t=(o=this.options.snap).length,e=-1;r<t;r++)(0===r||o[r].offsetLeft<=o[r-1].offsetLeft)&&(a=0,e++),this.pages[a]||(this.pages[a]=[]),l=d.max(-o[r].offsetLeft,this.maxScrollX),s=d.max(-o[r].offsetTop,this.maxScrollY),i=l-d.round(o[r].offsetWidth/2),n=s-d.round(o[r].offsetHeight/2),this.pages[a][e]={x:l,y:s,width:o[r].offsetWidth,height:o[r].offsetHeight,cx:i,cy:n},l>this.maxScrollX&&a++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1==0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=d.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=d.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var t=this.options.snapSpeed||d.max(d.max(d.min(d.abs(this.x-this.startX),1e3),d.min(d.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)})},_nearestSnap:function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,n=this.pages.length,s=0;if(d.abs(t-this.absStartX)<this.snapThresholdX&&d.abs(e-this.absStartY)<this.snapThresholdY)return this.currentPage;for(0<t?t=0:t<this.maxScrollX&&(t=this.maxScrollX),0<e?e=0:e<this.maxScrollY&&(e=this.maxScrollY);i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}for(n=this.pages[i].length;s<n;s++)if(e>=this.pages[0][s].cy){e=this.pages[0][s].y;break}return i==this.currentPage.pageX&&((i+=this.directionX)<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),s==this.currentPage.pageY&&((s+=this.directionY)<0?s=0:s>=this.pages[0].length&&(s=this.pages[0].length-1),e=this.pages[0][s].y),{x:t,y:e,pageX:i,pageY:s}},goToPage:function(t,e,i,n){n=n||this.options.bounceEasing,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var s=this.pages[t][e].x,o=this.pages[t][e].y;i=void 0===i?this.options.snapSpeed||d.max(d.max(d.min(d.abs(s-this.x),1e3),d.min(d.abs(o-this.y),1e3)),300):i,this.currentPage={x:s,y:o,pageX:t,pageY:e},this.scrollTo(s,o,i,n)},next:function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;++i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this.goToPage(i,n,t,e)},prev:function(t,e){var i=this.currentPage.pageX,n=this.currentPage.pageY;--i<0&&this.hasVerticalScroll&&(i=0,n--),this.goToPage(i,n,t,e)},_initKeys:function(t){var e,i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(e in this.options.keyBindings)"string"==typeof this.options.keyBindings[e]&&(this.options.keyBindings[e]=this.options.keyBindings[e].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(e in i)this.options.keyBindings[e]=this.options.keyBindings[e]||i[e];m.addEvent(o,"keydown",this),this.on("destroy",function(){m.removeEvent(o,"keydown",this)})},_key:function(t){if(this.enabled){var e,i=this.options.snap,n=i?this.currentPage.pageX:this.x,s=i?this.currentPage.pageY:this.y,o=m.getTime(),r=this.keyTime||0;switch(this.options.useTransition&&this.isInTransition&&(e=this.getComputedPosition(),this._translate(d.round(e.x),d.round(e.y)),this.isInTransition=!1),this.keyAcceleration=o-r<200?d.min(this.keyAcceleration+.25,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?n+=i?1:this.wrapperWidth:s+=i?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?n-=i?1:this.wrapperWidth:s-=i?1:this.wrapperHeight;break;case this.options.keyBindings.end:n=i?this.pages.length-1:this.maxScrollX,s=i?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:s=n=0;break;case this.options.keyBindings.left:n+=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:s+=i?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:n-=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:s-=i?1:5+this.keyAcceleration>>0;break;default:return}i?this.goToPage(n,s):(0<n?(n=0,this.keyAcceleration=0):n<this.maxScrollX&&(n=this.maxScrollX,this.keyAcceleration=0),0<s?(s=0,this.keyAcceleration=0):s<this.maxScrollY&&(s=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(n,s,0),this.keyTime=o)}},_animate:function(o,r,a,l){var c=this,h=this.x,d=this.y,u=m.getTime(),p=u+a;this.isAnimating=!0,function t(){var e,i,n,s=m.getTime();if(p<=s)return c.isAnimating=!1,c._translate(o,r),void(c.resetPosition(c.options.bounceTime)||c._execEvent("scrollEnd"));n=l(s=(s-u)/a),e=(o-h)*n+h,i=(r-d)*n+d,c._translate(e,i),c.isAnimating&&f(t)}()},handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(t);break;case"keydown":this._key(t);break;case"click":this.enabled&&!t._constructed&&(t.preventDefault(),t.stopPropagation())}}},l.prototype={handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(m.removeEvent(this.indicator,"touchstart",this),m.removeEvent(this.indicator,m.prefixPointerEvent("pointerdown"),this),m.removeEvent(this.indicator,"mousedown",this),m.removeEvent(o,"touchmove",this),m.removeEvent(o,m.prefixPointerEvent("pointermove"),this),m.removeEvent(o,"mousemove",this),m.removeEvent(o,"touchend",this),m.removeEvent(o,m.prefixPointerEvent("pointerup"),this),m.removeEvent(o,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=m.getTime(),this.options.disableTouch||m.addEvent(o,"touchmove",this),this.options.disablePointer||m.addEvent(o,m.prefixPointerEvent("pointermove"),this),this.options.disableMouse||m.addEvent(o,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(t){var e,i,n,s,o=t.touches?t.touches[0]:t;m.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,e=o.pageX-this.lastPointX,this.lastPointX=o.pageX,i=o.pageY-this.lastPointY,this.lastPointY=o.pageY,n=this.x+e,s=this.y+i,this._pos(n,s),t.preventDefault(),t.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),m.removeEvent(o,"touchmove",this),m.removeEvent(o,m.prefixPointerEvent("pointermove"),this),m.removeEvent(o,"mousemove",this),this.scroller.options.snap){var e=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),i=this.options.snapSpeed||d.max(d.max(d.min(d.abs(this.scroller.x-e.x),1e3),d.min(d.abs(this.scroller.y-e.y),1e3)),300);this.scroller.x==e.x&&this.scroller.y==e.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=e,this.scroller.scrollTo(e.x,e.y,i,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(t){t=t||0;var e=m.style.transitionDuration;if(e&&(this.indicatorStyle[e]=t+"ms",!t&&m.isBadAndroid)){this.indicatorStyle[e]="0.0001ms";var i=this;f(function(){"0.0001ms"===i.indicatorStyle[e]&&(i.indicatorStyle[e]="0s")})}},transitionTimingFunction:function(t){this.indicatorStyle[m.style.transitionTimingFunction]=t},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(m.addClass(this.wrapper,"iScrollBothScrollbars"),m.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(m.removeClass(this.wrapper,"iScrollBothScrollbars"),m.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=d.max(d.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=8-this.indicatorWidth,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=d.max(d.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=8-this.indicatorHeight,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&d.round(this.sizeRatioX*this.scroller.x)||0,e=this.options.listenY&&d.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(t<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=d.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px"),t=this.minBoundaryX):t>this.maxBoundaryX?t="scale"==this.options.shrink?(this.width=d.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",this.maxPosX+this.indicatorWidth-this.width):this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),e<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=d.max(this.indicatorHeight+3*e,8),this.indicatorStyle.height=this.height+"px"),e=this.minBoundaryY):e>this.maxBoundaryY?e="scale"==this.options.shrink?(this.height=d.max(this.indicatorHeight-3*(e-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",this.maxPosY+this.indicatorHeight-this.height):this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=e,this.scroller.options.useTransform?this.indicatorStyle[m.style.transform]="translate("+t+"px,"+e+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=e+"px")},_pos:function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=this.options.listenX?d.round(t/this.sizeRatioX):this.scroller.x,e=this.options.listenY?d.round(e/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,e)},fade:function(t,e){if(!e||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var i=t?250:500,n=t?0:300;t=t?"1":"0",this.wrapperStyle[m.style.transitionDuration]=i+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),n)}}},t.utils=m,"undefined"!=typeof module&&module.exports?module.exports=t:"function"==typeof define&&define.amd?define(function(){return t}):o.IScroll=t}(window,document,Math),function(t,s){var e="fp-scrollable",o="."+e;"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)}),t.iscrollHandler={refreshId:null,iScrollInstances:[],toggleWheel:function(e){s(".fp-section.active").find(o).each(function(){var t=s(this).data("iscrollInstance");void 0!==t&&t&&(e?t.wheelOn():t.wheelOff())})},onLeave:function(){iscrollHandler.toggleWheel(!1)},beforeLeave:function(){iscrollHandler.onLeave()},afterLoad:function(){iscrollHandler.toggleWheel(!0)},create:function(t,e,i){var n=t.find(o);n.height(e),n.each(function(){var t=s(this),e=t.data("iscrollInstance");e&&s.each(iscrollHandler.iScrollInstances,function(){s(this).destroy()}),(e=new IScroll(t.get(0),i)).on("scrollEnd",function(){this.fp_isAtTop=-30<this.y,this.fp_isAtEnd=this.y-this.maxScrollY<30}),iscrollHandler.iScrollInstances.push(e),e.wheelOff(),t.data("iscrollInstance",e)})},isScrolled:function(t,e){var i=e.data("iscrollInstance");return!i||("top"===t?0<=i.y&&!e.scrollTop():"bottom"===t?0-i.y+e.scrollTop()+1+e.innerHeight()>=e[0].scrollHeight:void 0)},scrollable:function(t){return t.find(".fp-slides").length?t.find(".fp-slide.active").find(o):t.find(o)},scrollHeight:function(t){return t.find(o).children().first().get(0).scrollHeight},remove:function(t){var e=t.find(o);if(e.length){var i=e.data("iscrollInstance");i&&i.destroy(),e.data("iscrollInstance",null)}t.find(o).children().first().children().first().unwrap().unwrap()},update:function(t,e){clearTimeout(iscrollHandler.refreshId),iscrollHandler.refreshId=setTimeout(function(){s.each(iscrollHandler.iScrollInstances,function(){s(this).get(0).refresh()})},150),t.find(o).css("height",e+"px").parent().css("height",e+"px")},wrapContent:function(){return'<div class="'+e+'"><div class="fp-scroller"></div></div>'}}}(window,jQuery),function(u,a,p){p.fn.fp_scrolloverflow=function(){var t="fp-scrollable",s="."+t,e=".active",h=".fp-section",i=h+e,o=".fp-slide",d=".fp-tableCell";function n(){var c=this;function i(){var e;p("body").hasClass("fp-responsive")?(e=c.options.scrollOverflowHandler,n(function(t){t.closest(h).hasClass("fp-auto-height-responsive")&&e.remove(t)})):n(t)}function t(t){if(!t.hasClass("fp-noscroll")){t.css("overflow","hidden");var e,i,n=c.options.scrollOverflowHandler,s=n.wrapContent(),o=t.closest(h),r=n.scrollable(t),a=(i=o.closest(h)).length?parseInt(i.css("padding-bottom"))+parseInt(i.css("padding-top")):0;r.length?e=n.scrollHeight(t):(e=t.get(0).scrollHeight-a,c.options.verticalCentered&&(e=t.find(d).get(0).scrollHeight-a));var l=p(u).height()-a;l<e?r.length?n.update(t,l):(c.options.verticalCentered?t.find(d).wrapInner(s):t.wrapInner(s),n.create(t,l,c.iscrollOptions)):n.remove(t),t.css("overflow","")}}function n(e){p(h).each(function(){var t=p(this).find(o);t.length?t.each(function(){e(p(this))}):e(p(this))})}c.options=null,c.init=function(t,e){return c.options=t,c.iscrollOptions=e,"complete"===a.readyState&&(i(),p.fn.fullpage.shared.afterRenderActions()),p(u).on("load",function(){i(),p.fn.fullpage.shared.afterRenderActions()}),c},c.createScrollBarForAll=i}IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)};var r={refreshId:null,iScrollInstances:[],iscrollOptions:{scrollbars:!0,mouseWheel:!0,hideScrollbars:!(IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)}),fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0},init:function(t){var e="ontouchstart"in u||0<navigator.msMaxTouchPoints||navigator.maxTouchPoints;return r.iscrollOptions.click=e,r.iscrollOptions=p.extend(r.iscrollOptions,t.scrollOverflowOptions),(new n).init(t,r.iscrollOptions)},toggleWheel:function(e){p(i).find(s).each(function(){var t=p(this).data("iscrollInstance");void 0!==t&&t&&(e?t.wheelOn():t.wheelOff())})},onLeave:function(){r.toggleWheel(!1)},beforeLeave:function(){r.onLeave()},afterLoad:function(){r.toggleWheel(!0)},create:function(t,e,i){var n=t.find(s);n.height(e),n.each(function(){var t=p(this),e=t.data("iscrollInstance");e&&p.each(r.iScrollInstances,function(){p(this).destroy()}),e=new IScroll(t.get(0),i),r.iScrollInstances.push(e),e.wheelOff(),t.data("iscrollInstance",e)})},isScrolled:function(t,e){var i=e.data("iscrollInstance");return!i||("top"===t?0<=i.y&&!e.scrollTop():"bottom"===t?0-i.y+e.scrollTop()+1+e.innerHeight()>=e[0].scrollHeight:void 0)},scrollable:function(t){return t.find(".fp-slides").length?t.find(".fp-slide.active").find(s):t.find(s)},scrollHeight:function(t){return t.find(s).children().first().get(0).scrollHeight},remove:function(t){var e=t.find(s);e.length&&(e.data("iscrollInstance").destroy(),e.data("iscrollInstance",null));t.find(s).children().first().children().first().unwrap().unwrap()},update:function(t,e){clearTimeout(r.refreshId),r.refreshId=setTimeout(function(){p.each(r.iScrollInstances,function(){p(this).get(0).refresh(),p.fn.fullpage.silentMoveTo(p(i).index()+1)})},150),t.find(s).css("height",e+"px").parent().css("height",e+getPaddings(t)+"px")},wrapContent:function(){return'<div class="'+t+'"><div class="fp-scroller"></div></div>'}};return{iscrollHandler:r}}()}(window,document,jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(f){"use strict";var m="animsition",g={init:function(s){s=f.extend({inClass:"fade-in",outClass:"fade-out",inDuration:1500,outDuration:800,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"animsition-loading",loadingInner:"",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",transition:function(t){window.location.href=t}},s),g.settings={timer:!1,data:{inClass:"animsition-in-class",inDuration:"animsition-in-duration",outClass:"animsition-out-class",outDuration:"animsition-out-duration",overlay:"animsition-overlay"},events:{inStart:"animsition.inStart",inEnd:"animsition.inEnd",outStart:"animsition.outStart",outEnd:"animsition.outEnd"}};var t=g.supportCheck.call(this,s);return t||!(0<s.browser.length)||t&&this.length?(g.optionCheck.call(this,s)&&f("."+s.overlayClass).length<=0&&g.addOverlay.call(this,s),s.loading&&f("."+s.loadingClass).length<=0&&g.addLoading.call(this,s),this.each(function(){var n=this,t=f(this),e=f(window),i=f(document);t.data(m)||(s=f.extend({},s),t.data(m,{options:s}),s.timeout&&g.addTimer.call(n),s.onLoadEvent&&e.on("load."+m,function(){g.settings.timer&&clearTimeout(g.settings.timer),g.in.call(n)}),e.on("pageshow."+m,function(t){t.originalEvent.persisted&&g.in.call(n)}),e.on("unload."+m,function(){}),i.on("click."+m,s.linkElement,function(t){t.preventDefault();var e=f(this),i=e.attr("href");2===t.which||t.metaKey||t.shiftKey||-1!==navigator.platform.toUpperCase().indexOf("WIN")&&t.ctrlKey?window.open(i,"_blank"):g.out.call(n,e,i)}))})):("console"in window||(window.console={},window.console.log=function(t){return t}),this.length||console.log("Animsition: Element does not exist on page."),t||console.log("Animsition: Does not support this browser."),g.destroy.call(this))},addOverlay:function(t){f(t.overlayParentElement).prepend('<div class="'+t.overlayClass+'"></div>')},addLoading:function(t){f(t.loadingParentElement).append('<div class="'+t.loadingClass+'">'+t.loadingInner+"</div>")},removeLoading:function(){var t=f(this).data(m).options;f(t.loadingParentElement).children("."+t.loadingClass).fadeOut().remove()},addTimer:function(){var t=this,e=f(this).data(m).options;g.settings.timer=setTimeout(function(){g.in.call(t),f(window).off("load."+m)},e.timeoutCountdown)},supportCheck:function(t){var e=f(this),i=t.browser,n=i.length,s=!1;0===n&&(s=!0);for(var o=0;o<n;o++)if("string"==typeof e.css(i[o])){s=!0;break}return s},optionCheck:function(t){var e=f(this);return!(!t.overlay&&!e.data(g.settings.data.overlay))},animationCheck:function(t,e,i){var n=f(this).data(m).options,s=typeof t,o=!e&&"number"===s,r=e&&"string"===s&&0<t.length;return o||r?t=t:e&&i?t=n.inClass:!e&&i?t=n.inDuration:e&&!i?t=n.outClass:e||i||(t=n.outDuration),t},in:function(){var t=this,e=f(this),i=e.data(m).options,n=e.data(g.settings.data.inDuration),s=e.data(g.settings.data.inClass),o=g.animationCheck.call(t,n,!1,!0),r=g.animationCheck.call(t,s,!0,!0),a=g.optionCheck.call(t,i),l=e.data(m).outClass;i.loading&&g.removeLoading.call(t),l&&e.removeClass(l),a?g.inOverlay.call(t,r,o):g.inDefault.call(t,r,o)},inDefault:function(t,e){var i=f(this);i.css({"animation-duration":e+"ms"}).addClass(t).trigger(g.settings.events.inStart).animateCallback(function(){i.removeClass(t).css({opacity:1}).trigger(g.settings.events.inEnd)})},inOverlay:function(t,e){var i=f(this),n=i.data(m).options;i.css({opacity:1}).trigger(g.settings.events.inStart),f(n.overlayParentElement).children("."+n.overlayClass).css({"animation-duration":e+"ms"}).addClass(t).animateCallback(function(){i.trigger(g.settings.events.inEnd)})},out:function(t,e){var i=this,n=f(this),s=n.data(m).options,o=t.data(g.settings.data.outClass),r=n.data(g.settings.data.outClass),a=t.data(g.settings.data.outDuration),l=n.data(g.settings.data.outDuration),c=o||r,h=a||l,d=g.animationCheck.call(i,c,!0,!1),u=g.animationCheck.call(i,h,!1,!1),p=g.optionCheck.call(i,s);n.data(m).outClass=d,p?g.outOverlay.call(i,d,u,e):g.outDefault.call(i,d,u,e)},outDefault:function(t,e,i){var n=f(this),s=n.data(m).options;n.css({"animation-duration":e+1+"ms"}).addClass(t).trigger(g.settings.events.outStart).animateCallback(function(){n.trigger(g.settings.events.outEnd),s.transition(i)})},outOverlay:function(t,e,i){var n=f(this),s=n.data(m).options,o=n.data(g.settings.data.inClass),r=g.animationCheck.call(this,o,!0,!0);f(s.overlayParentElement).children("."+s.overlayClass).css({"animation-duration":e+1+"ms"}).removeClass(r).addClass(t).trigger(g.settings.events.outStart).animateCallback(function(){n.trigger(g.settings.events.outEnd),s.transition(i)})},destroy:function(){return this.each(function(){var t=f(this);f(window).off("."+m),t.css({opacity:1}).removeData(m)})}};f.fn.animateCallback=function(e){var i="animationend webkitAnimationEnd";return this.each(function(){var t=f(this);t.on(i,function(){return t.off(i),e.call(this)})})},f.fn.animsition=function(t){return g[t]?g[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void f.error("Method "+t+" does not exist on jQuery."+m):g.init.apply(this,arguments)}});var NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=.001,SUBDIVISION_PRECISION=1e-7,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1),float32ArraySupported="function"==typeof Float32Array;function A(t,e){return 1-3*e+3*t}function B(t,e){return 3*e-6*t}function C(t){return 3*t}function calcBezier(t,e,i){return((A(e,i)*t+B(e,i))*t+C(e))*t}function getSlope(t,e,i){return 3*A(e,i)*t*t+2*B(e,i)*t+C(e)}function binarySubdivide(t,e,i,n,s){for(var o,r,a=0;0<(o=calcBezier(r=e+(i-e)/2,n,s)-t)?i=r:e=r,Math.abs(o)>SUBDIVISION_PRECISION&&++a<SUBDIVISION_MAX_ITERATIONS;);return r}function newtonRaphsonIterate(t,e,i,n){for(var s=0;s<NEWTON_ITERATIONS;++s){var o=getSlope(e,i,n);if(0===o)return e;e-=(calcBezier(e,i,n)-t)/o}return e}function BezierEasing(t,e,i,n){if(4===arguments.length)return new BezierEasing([t,e,i,n]);if(!(this instanceof BezierEasing))return new BezierEasing(t);if(!t||4!==t.length)throw new Error("BezierEasing: points must contains 4 values");for(var s=0;s<4;++s)if("number"!=typeof t[s]||isNaN(t[s])||!isFinite(t[s]))throw new Error("BezierEasing: points should be integers.");if(t[0]<0||1<t[0]||t[2]<0||1<t[2])throw new Error("BezierEasing x values must be in [0, 1] range.");this._str="BezierEasing("+t+")",this._css="cubic-bezier("+t+")",this._p=t,this._mSampleValues=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize),this._precomputed=!1,this.get=this.get.bind(this)}BezierEasing.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&n===s?t:0===t?0:1===t?1:calcBezier(this._getTForX(t),i,s)},getPoints:function(){return this._p},toString:function(){return this._str},toCSS:function(){return this._css},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<kSplineTableSize;++i)this._mSampleValues[i]=calcBezier(i*kSampleStepSize,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],n=this._mSampleValues,s=0,o=1,r=kSplineTableSize-1;o!==r&&n[o]<=t;++o)s+=kSampleStepSize;var a=s+(t-n[--o])/(n[o+1]-n[o])*kSampleStepSize,l=getSlope(a,e,i);return NEWTON_MIN_SLOPE<=l?newtonRaphsonIterate(t,a,e,i):0===l?a:binarySubdivide(t,s,s+kSampleStepSize,e,i)}},BezierEasing.css={ease:BezierEasing.ease=BezierEasing(.25,.1,.25,1),linear:BezierEasing.linear=BezierEasing(0,0,1,1),"ease-in":BezierEasing.easeIn=BezierEasing(.42,0,1,1),"ease-out":BezierEasing.easeOut=BezierEasing(0,0,.58,1),"ease-in-out":BezierEasing.easeInOut=BezierEasing(.42,0,.58,1)},function(a,s,o,t){var i="curtain",n={scrollSpeed:400,bodyHeight:0,linksArray:[],mobile:!1,scrollButtons:{},controls:null,curtainLinks:".curtain-links",enableKeys:!0,easing:"swing",disabled:!1,nextSlide:function(){},prevSlide:function(){}};function e(t,e){this.element=t,this.options=a.extend({},n,e),this._defaults=n,this._name=i,this._ignoreHashChange=!1,this.init()}e.prototype={init:function(){var t=this,e=a("body");this.$element=a(this.element),this.$li=a(this.element).find(">li"),this.$liLength=this.$li.length,t.$windowHeight=a(s).height(),t.$elDatas={},t.$document=a(o),t.$window=a(s),t.webkit=-1<navigator.userAgent.indexOf("Chrome")||-1<navigator.userAgent.indexOf("Safari"),a.msie=/msie/.test(navigator.userAgent.toLowerCase()),a.mozilla=/firefox/.test(navigator.userAgent.toLowerCase()),a.Android=navigator.userAgent.match(/Android/i),a.iPhone=navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i),a.iPad=navigator.userAgent.match(/iPad/i),a.iOs4=/OS [1-4]_[0-9_]+ like Mac OS X/i.test(navigator.userAgent),(a.iPhone||a.iPad||a.Android||t.options.disabled)&&(this.options.mobile=!0,this.$li.css({position:"relative"}),this.$element.find(".fixed").css({position:"absolute"})),this.options.mobile?this.scrollEl=this.$element:a.mozilla||a.msie?this.scrollEl=a("html"):this.scrollEl=e,t.options.controls&&(t.options.scrollButtons.up=a(t.options.controls).find('[href="#up"]'),t.options.scrollButtons.down=a(t.options.controls).find('[href="#down"]'),a.iOs4||!a.iPhone&&!a.iPad||(t.$element.css({position:"fixed",top:0,left:0,right:0,bottom:0,"-webkit-overflow-scrolling":"touch",overflow:"auto"}),a(t.options.controls).css({position:"absolute"})));var i=function(){t.setDimensions(),t.$li.eq(0).addClass("current"),t.setCache(),t.options.mobile||t.$li.eq(1).length&&t.$li.eq(1).nextAll().addClass("hidden"),t.setEvents(),t.setLinks(),t.isHashIsOnList(location.hash.substring(1))};t.$element.find("img").length?t.imageLoaded(i):i();var n=this.$li.eq(0).data("color");e.hasClass(n)||e.removeClass("light-title dark-title").addClass(n)},scrollToPosition:function(t){var e=null,i=this;if(i.scrollEl.is(":animated"))return!1;if("up"===t||"down"==t){var n="up"===t?i.$current.prev():i.$current.next();if(i.$step){i.$current.find(".current-step").length||i.$step.eq(0).addClass("current-step");var s="up"===t?i.$current.find(".current-step").prev(".step"):i.$current.find(".current-step").next(".step");s.length&&(i.options.mobile,e=s.position().top+i.$elDatas[i.$current.index()]["data-position"])}null!==(e=e||(void 0===i.$elDatas[n.index()]?null:i.$elDatas[n.index()]["data-position"]))&&i.scrollEl.animate({scrollTop:e},i.options.scrollSpeed,i.options.easing)}else if("top"===t)i.scrollEl.animate({scrollTop:0},i.options.scrollSpeed,i.options.easing);else if("bottom"===t)i.scrollEl.animate({scrollTop:i.options.bodyHeight},i.options.scrollSpeed,i.options.easing);else{var o=a("#"+t).index(),r=Math.abs(i.currentIndex-o)*(4*this.options.scrollSpeed)/i.$liLength;i.scrollEl.animate({scrollTop:i.$elDatas[o]["data-position"]||null},r<=i.options.scrollSpeed?i.options.scrollSpeed:r,this.options.easing)}},scrollEvent:function(){var i=this,n=i.$document.scrollTop(),t=a("body");if(n<i.currentP&&0<i.currentIndex)i._ignoreHashChange=!0,i.$current.prev().attr("id")&&i.setHash(i.$current.prev().attr("id")),i.$current.removeClass("current").css(i.webkit?{"-webkit-transform":"translateY(0px) translateZ(0)"}:{marginTop:0}).nextAll().addClass("hidden").end().prev().addClass("current").removeClass("hidden"),i.setCache(),i.options.prevSlide();else if(n<i.currentP+i.currentHeight){if(i.webkit?i.$current.css({"-webkit-transform":"translateY("+-(n-i.currentP)+"px) translateZ(0)"}):i.$current.css({marginTop:-(n-i.currentP)}),i.$fixedLength){parseInt(i.$fixed.attr("data-top"),10);n+i.$windowHeight>=i.currentP+i.currentHeight?i.$fixed.css({position:"fixed"}):i.$fixed.css({position:"absolute",marginTop:Math.abs(n-i.currentP)})}if(i.$stepLength&&a.each(i.$step,function(t,e){if(a(e).position().top+i.currentP<=n+5&&a(e).position().top+i.currentP+a(e).height()>=n+5&&!a(e).hasClass("current-step"))return i.$step.removeClass("current-step"),a(e).addClass("current-step"),!1}),i.parallaxBg){var e=-.07*n;i.parallaxBg.css({"-webkit-transform":"translate3d(0,"+e+"px,0)","-moz-transform":"translate3d(0,"+e+"px,0)",transform:"translate3d(0,"+e+"px,0)"})}i.$fade.length&&i.$fade.css({"z-index":i.z-1,opacity:Math.abs(1-(n-i.currentP)/i.$windowHeight)}),i.$slowScroll.length&&i.$slowScroll.css({"margin-top":n/i.$slowScroll.attr("data-slow-scroll")})}else i._ignoreHashChange=!0,i.$current.next().attr("id")&&i.setHash(i.$current.next().attr("id")),i.$current.removeClass("current").addClass("hidden").next("li").addClass("current").next("li").removeClass("hidden"),i.setCache(),i.options.nextSlide();t.hasClass(i.currentColor)||t.removeClass("light-title dark-title").addClass(i.currentColor)},scrollMobileEvent:function(){var i=this,n=i.$element.scrollTop();n+10<i.currentP&&0<i.currentIndex?(i._ignoreHashChange=!0,i.$current.prev().attr("id")&&i.setHash(i.$current.prev().attr("id")),i.$current.removeClass("current").prev().addClass("current"),i.setCache(),i.options.prevSlide()):n+10<i.currentP+i.currentHeight?i.$stepLength&&a.each(i.$step,function(t,e){a(e).position().top+i.currentP<=n&&a(e).position().top+i.currentP+a(e).outerHeight()>=n&&(a(e).hasClass("current-step")||(i.$step.removeClass("current-step"),a(e).addClass("current-step")))}):(i._ignoreHashChange=!0,i.$current.next().attr("id")&&i.setHash(i.$current.next().attr("id")),i.$current.removeClass("current").next().addClass("current"),i.setCache(),i.options.nextSlide())},setDimensions:function(){var n=this,s=0,o=null;n.$windowHeight=n.$window.height(),this.$li.each(function(t){var e=a(this);if(e.hasClass("cover")?(e.css({height:n.$windowHeight,zIndex:99-t}).attr("data-height",n.$windowHeight).attr("data-position",s),n.$elDatas[e.index()]={"data-height":parseInt(n.$windowHeight,10),"data-position":parseInt(s,10)},s+=n.$windowHeight):(o=e.outerHeight()<=n.$windowHeight?n.$windowHeight:e.outerHeight(),e.css({minHeight:o,zIndex:99-t}).attr("data-height",o).attr("data-position",s),n.$elDatas[e.index()]={"data-height":parseInt(o,10),"data-position":parseInt(s,10)},s+=o),e.find(".fixed").length){var i=e.find(".fixed").css("top");e.find(".fixed").attr("data-top",i)}}),this.options.mobile||this.setBodyHeight()},setEvents:function(){var n=this;a(s).on("resize",function(){n.setDimensions()}),n.options.mobile?n.$element.on("scroll",function(){n.scrollMobileEvent()}):n.$window.on("scroll",function(){n.scrollEvent()}),n.options.enableKeys&&n.$document.on("keydown",function(t){return 38===t.keyCode||37===t.keyCode?(n.scrollToPosition("up"),t.preventDefault(),!1):40===t.keyCode||39===t.keyCode?(n.scrollToPosition("down"),t.preventDefault(),!1):36===t.keyCode?(n.scrollToPosition("top"),t.preventDefault(),!1):35===t.keyCode?(n.scrollToPosition("bottom"),t.preventDefault(),!1):void 0}),n.options.scrollButtons&&(n.options.scrollButtons.up&&n.options.scrollButtons.up.on("click",function(t){t.preventDefault(),n.scrollToPosition("up")}),n.options.scrollButtons.down&&n.options.scrollButtons.down.on("click",function(t){t.preventDefault(),n.scrollToPosition("down")})),n.options.curtainLinks&&a(n.options.curtainLinks).on("click",function(t){t.preventDefault();var e=a(this).attr("href");if(!n.isHashIsOnList(e.substring(1))&&i)return!1;var i=n.$elDatas[a(e).index()]["data-position"]||null;return i&&n.scrollEl.animate({scrollTop:i},n.options.scrollSpeed,n.options.easing),!1}),n.$window.on("hashchange",function(t){!1===n._ignoreHashChange&&n.isHashIsOnList(location.hash.substring(1)),n._ignoreHashChange=!1})},setBodyHeight:function(){var t=0;for(var e in this.$elDatas){t+=this.$elDatas[e]["data-height"]}this.options.bodyHeight=t,a("body").height(t)},setLinks:function(){var e=this;this.$li.each(function(){var t=a(this).attr("id")||0;e.options.linksArray.push(t)})},setHash:function(t){el=a("[href=#"+t+"]"),el.parent().siblings("li").removeClass("active"),el.parent().addClass("active"),history.pushState?history.pushState(null,null,"#"+t):location.hash=t},setCache:function(){var t=this;t.$current=t.$element.find(".current"),t.$fixed=t.$current.find(".fixed"),t.$fixedLength=t.$fixed.length,t.$step=t.$current.find(".step"),t.$stepLength=t.$step.length,t.currentIndex=t.$current.index(),t.currentColor=t.$current.data("color"),t.currentP=t.$elDatas[t.currentIndex]["data-position"],t.currentHeight=t.$elDatas[t.currentIndex]["data-height"],t.z=t.$element.find(".current").css("z-index"),t.parallaxBg=t.$current.find(".thb-bg"),t.$fade=a(".thb-shadow"),t.$slowScroll=t.$current.find("[data-slow-scroll]")},isHashIsOnList:function(i){var n=this;a.each(n.options.linksArray,function(t,e){if(e===i)return n.scrollToPosition(i),!1})},readyElement:function(t,e){var i=setInterval(function(){t.length&&(e(t.length),clearInterval(i))},60)},imageLoaded:function(t){var e=this.$element.find("img"),i=e.length,n="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";e.bind("load.imgloaded",function(){(--i<=0&&this.src!==n||a(this).not(":visible"))&&(e.unbind("load.imgloaded"),t.call(e,this))}).each(function(){if(this.complete||void 0===this.complete){var t=this.src;this.src=n,this.src=t}})}},a.fn[i]=function(t){return this.each(function(){a.data(this,"plugin_"+i)||a.data(this,"plugin_"+i,new e(this,t))})}}(jQuery,window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.glitch=e()}(this,function(){"use strict";function f(s){return"object"!=typeof(s=function(t){var e=!1;if(void 0!==t)try{e=JSON.parse(JSON.stringify(t))}catch(t){}return e}(s))&&(s={}),Object.keys(o).filter(function(t){return"iterations"!==t}).forEach(function(t){var e,i,n;"number"!=typeof s[t]||isNaN(s[t])?s[t]=o[t]:s[t]=(e=s[t],n=100,e<(i=0)?i:n<e?n:e),s[t]=Math.round(s[t])}),("number"!=typeof s.iterations||isNaN(s.iterations)||s.iterations<=0)&&(s.iterations=o.iterations),s.iterations=Math.round(s.iterations),s}function m(t){if(t instanceof HTMLImageElement){if(!t.naturalWidth||!t.naturalHeight||!1===t.complete)throw new Error("This this image hasn't finished loading: "+t.src);var e=new y(t.naturalWidth,t.naturalHeight),i=e.getContext("2d");i.drawImage(t,0,0,e.width,e.height);var n=i.getImageData(0,0,e.width,e.height);return n.data&&n.data.length&&(void 0===n.width&&(n.width=t.naturalWidth),void 0===n.height&&(n.height=t.naturalHeight)),n}throw new Error("This object does not seem to be an image.")}function s(n){return new Promise(function(t,e){var i=new r;i.onload=function(){t(i)},i.onerror=function(t){e(t)},i.src=n})}function g(t,e,i,n){s(t).then(i,n)}function l(t){return{width:t.width||t.naturalWidth,height:t.height||t.naturalHeight}}function v(t,e,a,i){s(t).then(function(t){var e,i,n,s,o=l(t),r=(e=t,i=l(e),n=new y(i.width,i.height),s=n.getContext("2d"),s.drawImage(e,0,0,i.width,i.height),{canvas:n,ctx:s}).ctx.getImageData(0,0,o.width,o.height);r.width||(r.width=o.width),r.height||(r.height=o.height),a(r)},i)}function $(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var o={amount:35,iterations:20,quality:30,seed:25},y=function(t,e){void 0===t&&(t=300),void 0===e&&(e=150),this.canvasEl=document.createElement("canvas"),this.canvasEl.width=t,this.canvasEl.height=e,this.ctx=this.canvasEl.getContext("2d")},t={width:{configurable:!0},height:{configurable:!0}};y.prototype.getContext=function(){return this.ctx},y.prototype.toDataURL=function(t,e,i){if("function"!=typeof i)return this.canvasEl.toDataURL(t,e);i(this.canvasEl.toDataURL(t,e))},t.width.get=function(){return this.canvasEl.width},t.width.set=function(t){this.canvasEl.width=t},t.height.get=function(){return this.canvasEl.height},t.height.set=function(t){this.canvasEl.height=t},Object.defineProperties(y.prototype,t),y.Image=Image;var r=y.Image;"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(t,e){});var e,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,T=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,n,s=arguments,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),r=1;r<arguments.length;r++){for(var a in i=Object(s[r]))h.call(i,a)&&(o[a]=i[a]);if(c){n=c(i);for(var l=0;l<n.length;l++)d.call(i,n[l])&&(o[n[l]]=i[n[l]])}}return o},W="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};return((e={exports:{}}).exports=function(){function c(t){return"function"==typeof t}function e(){var t=setTimeout;return function(){return t(i,1)}}function i(){for(var t=0;t<C;t+=2)(0,H[t])(H[t+1]),H[t]=void 0,H[t+1]=void 0;C=0}function a(t,e){var i=arguments,n=this,s=new this.constructor(h);void 0===s[B]&&T(s);var o,r=n._state;return r?(o=i[r-1],A(function(){return y(r,s,o,n._result)})):g(n,s,t,e),s}function l(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(h);return p(e,t),e}function h(){}function r(t){try{return t.then}catch(t){return N.error=t,N}}function d(t,e,i,n){try{t.call(e,i,n)}catch(t){return t}}function u(t,e,i){var n,s,o,r;e.constructor===t.constructor&&i===a&&e.constructor.resolve===l?(o=t,(r=e)._state===G?f(o,r._result):r._state===R?m(o,r._result):g(r,void 0,function(t){return p(o,t)},function(t){return m(o,t)})):i===N?(m(t,N.error),N.error=null):void 0===i?f(t,e):c(i)?(n=e,s=i,A(function(e){var i=!1,t=d(s,n,function(t){i||(i=!0,n!==t?p(e,t):f(e,t))},function(t){i||(i=!0,m(e,t))},e._label);!i&&t&&(i=!0,m(e,t))},t)):f(t,e)}function p(t,e){var i;t===e?m(t,new TypeError("You cannot resolve a promise with itself")):"function"==typeof(i=e)||"object"==typeof i&&null!==i?u(t,e,r(e)):f(t,e)}function n(t){t._onerror&&t._onerror(t._result),v(t)}function f(t,e){t._state===z&&(t._result=e,t._state=G,0!==t._subscribers.length&&A(v,t))}function m(t,e){t._state===z&&(t._state=R,t._result=e,A(n,t))}function g(t,e,i,n){var s=t._subscribers,o=s.length;t._onerror=null,s[o]=e,s[o+G]=i,s[o+R]=n,0===o&&t._state&&A(v,t)}function v(t){var e=t._subscribers,i=t._state;if(0!==e.length){for(var n=void 0,s=void 0,o=t._result,r=0;r<e.length;r+=3)n=e[r],s=e[r+i],n?y(i,n,s,o):s(o);t._subscribers.length=0}}function t(){this.error=null}function y(t,e,i,n){var s=c(i),o=void 0,r=void 0,a=void 0,l=void 0;if(s){if((o=function(t,e){try{return t(e)}catch(t){return X.error=t,X}}(i,n))===X?(l=!0,r=o.error,o.error=null):a=!0,e===o)return void m(e,new TypeError("A promises callback cannot return that same promise."))}else o=n,a=!0;e._state!==z||(s&&a?p(e,o):l?m(e,r):t===G?f(e,o):t===R&&m(e,o))}function T(t){t[B]=F++,t._state=void 0,t._result=void 0,t._subscribers=[]}function s(t,e){this._instanceConstructor=t,this.promise=new t(h),this.promise[B]||T(this.promise),x(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?f(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&f(this.promise,this._result))):m(this.promise,new Error("Array Methods must be provided an Array"))}function b(t){this[B]=F++,this._result=this._state=void 0,this._subscribers=[],h!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof b?function(e,t){try{t(function(t){p(e,t)},function(t){m(e,t)})}catch(t){m(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}var o,_,w,S,x=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},C=0,P=void 0,E=void 0,A=function(t,e){H[C]=t,H[C+1]=e,2===(C+=2)&&(E?E(i):L())},M="undefined"!=typeof window?window:void 0,k=M||{},I=k.MutationObserver||k.WebKitMutationObserver,D="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),O="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,H=new Array(1e3),L=void 0;L=D?function(){return process.nextTick(i)}:I?(_=0,w=new I(i),S=document.createTextNode(""),w.observe(S,{characterData:!0}),function(){S.data=_=++_%2}):O?((o=new MessageChannel).port1.onmessage=i,function(){return o.port2.postMessage(0)}):void 0===M?function(){try{var t=$();return void 0!==(P=t.runOnLoop||t.runOnContext)?function(){P(i)}:e()}catch(t){return e()}}():e();var B=Math.random().toString(36).substring(16),z=void 0,G=1,R=2,N=new t,X=new t,F=0;return s.prototype._enumerate=function(){for(var t=this.length,e=this._input,i=0;this._state===z&&i<t;i++)this._eachEntry(e[i],i)},s.prototype._eachEntry=function(e,t){var i=this._instanceConstructor,n=i.resolve;if(n===l){var s=r(e);if(s===a&&e._state!==z)this._settledAt(e._state,t,e._result);else if("function"!=typeof s)this._remaining--,this._result[t]=e;else if(i===b){var o=new i(h);u(o,e,s),this._willSettleAt(o,t)}else this._willSettleAt(new i(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},s.prototype._settledAt=function(t,e,i){var n=this.promise;n._state===z&&(this._remaining--,t===R?m(n,i):this._result[e]=i),0===this._remaining&&f(n,this._result)},s.prototype._willSettleAt=function(t,e){var i=this;g(t,void 0,function(t){return i._settledAt(G,e,t)},function(t){return i._settledAt(R,e,t)})},b.all=function(t){return new s(this,t).promise},b.race=function(s){var o=this;return new o(x(s)?function(t,e){for(var i=s.length,n=0;n<i;n++)o.resolve(s[n]).then(t,e)}:function(t,e){return e(new TypeError("You must pass an array to race."))})},b.resolve=l,b.reject=function(t){var e=new this(h);return m(e,t),e},b._setScheduler=function(t){E=t},b._setAsap=function(t){A=t},b._asap=A,b.prototype={constructor:b,then:a,catch:function(t){return this.then(null,t)}},b.polyfill=function(){var t=void 0;if(void 0!==W)t=W;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=b},b.Promise=b}(),e.exports).polyfill(),function(n){function t(){var t=T({},d);return o||T(t,u),t}function e(){var t=T({},d);return c||T(t,p),t}function r(t){return t}function i(i,n,s){return o=function(){return new Promise(function(t,e){if(s)i(n,t,e);else if(i===r)t(n);else try{t(i(n,t,e))}catch(t){e(t)}})},a()?l():e()}function s(n,s,o){return c=function(i){return new Promise(function(t,e){o?n(i,s,t,e):n===r?t(i):n(i,s).then(t,e)})},a()?l():t()}function a(){return o&&c}function l(){return new Promise(function(e,i){o().then(function(t){return i=t,r=n,new Promise(function(t,e){var s,o;(s=i,o=r.quality,new Promise(function(t,e){if((n=s)&&"number"==typeof n.width&&"number"==typeof n.height&&n.data&&"number"==typeof n.data.length&&"object"==typeof n.data){var i=new y(s.width,s.height);i.getContext("2d").putImageData(s,0,0),t(i.toDataURL("image/jpeg",o/100))}else e(new Error("object is not valid imageData"));var n})).then(function(t){return n=i,s=t,o=r,new Promise(function(e,i){h.addEventListener("message",function(t){t.data&&t.data.base64URL?e(t.data.base64URL):i(t.data&&t.data.err?t.data.err:t)}),h.postMessage({params:o,base64URL:s,imageData:n,imageDataWidth:n.width,imageDataHeight:n.height})});var n,s,o},e).then(t,e)});var i,r},i).then(function(t){c(t).then(e,i)},i)})}n=f(n);var o,c,h=new Worker(URL.createObjectURL(new Blob(['function isImageData(a){return a&&"number"==typeof a.width&&"number"==typeof a.height&&a.data&&"number"==typeof a.data.length&&"object"==typeof a.data}function base64ToByteArray(a){for(var e,s=[],t=23,r=a.length;t<r;t++){var i=reversedBase64Map[a.charAt(t)];switch((t-23)%4){case 1:s.push(e<<2|i>>4);break;case 2:s.push((15&e)<<4|i>>2);break;case 3:s.push((3&e)<<6|i)}e=i}return s}function jpgHeaderLength(a){for(var e=417,s=0,t=a.length;s<t;s++)if(255===a[s]&&218===a[s+1]){e=s+2;break}return e}function glitchByteArray(a,e,s,t){for(var r=jpgHeaderLength(a),i=a.length-r-4,p=s/100,n=e/100,h=0;h<t;h++){var g=i/t*h|0,o=g+((i/t*(h+1)|0)-g)*n|0;o>i&&(o=i),a[~~(r+o)]=~~(256*p)}return a}function byteArrayToBase64(a){for(var e,s,t=["data:image/jpeg;base64,"],r=0,i=a.length;r<i;r++){var p=a[r];switch(e=r%3){case 0:t.push(base64Map$1[p>>2]);break;case 1:t.push(base64Map$1[(3&s)<<4|p>>4]);break;case 2:t.push(base64Map$1[(15&s)<<2|p>>6]),t.push(base64Map$1[63&p])}s=p}return 0===e?(t.push(base64Map$1[(3&s)<<4]),t.push("==")):1===e&&(t.push(base64Map$1[(15&s)<<2]),t.push("=")),t.join("")}function glitchImageData(a,e,s){if(isImageData(a))return byteArrayToBase64(glitchByteArray(base64ToByteArray(e),s.seed,s.amount,s.iterations));throw new Error("glitchImageData: imageData seems to be corrupt.")}function fail(a){self.postMessage({err:a.message||a})}function success(a){self.postMessage({base64URL:a})}var base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",base64Map=base64Chars.split(""),reversedBase64Map$1={};base64Map.forEach(function(a,e){reversedBase64Map$1[a]=e});var maps={base64Map:base64Map,reversedBase64Map:reversedBase64Map$1},reversedBase64Map=maps.reversedBase64Map,base64Map$1=maps.base64Map;onmessage=function(a){var e=a.data.imageData,s=a.data.params,t=a.data.base64URL;if(e&&t&&s)try{void 0===e.width&&"number"==typeof a.data.imageDataWidth&&(e.width=a.data.imageDataWidth),void 0===e.height&&"number"==typeof a.data.imageDataHeight&&(e.height=a.data.imageDataHeight),success(glitchImageData(e,t,s))}catch(a){fail(a)}else fail(a.data.imageData?"Parameters are missing.":"ImageData is missing.");self.close()};'],{type:"text/javascript"}))),d={getParams:function(){return n},getInput:t,getOutput:e},u={fromImageData:function(t){return i(r,t)},fromImage:function(t){return i(m,t)}},p={toImage:function(t){return s(g,t,!0)},toDataURL:function(t){return s(r)},toImageData:function(t){return s(v,t,!0)}};return t()}}),function(o,a,t,_){"use strict";function l(t,e,i){return setTimeout(s(t,i),e)}function n(t,e,i){return!!Array.isArray(t)&&(r(t,i[e],i),!0)}function r(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==_)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function e(n,t,e){var s="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,s,e),n.apply(this,arguments)}}function i(t,e,i){var n,s=e.prototype;(n=t.prototype=Object.create(s)).constructor=t,n._super=s,i&&Z(n,i)}function s(t,e){return function(){return t.apply(e,arguments)}}function c(t,e){return typeof t==tt?t.apply(e&&e[0]||_,e):t}function h(t,e){return t===_?e:t}function d(e,t,i){r(f(t),function(t){e.addEventListener(t,i,!1)})}function u(e,t,i){r(f(t),function(t){e.removeEventListener(t,i,!1)})}function w(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function p(t,e){return-1<t.indexOf(e)}function f(t){return t.trim().split(/\s+/g)}function m(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function g(t){return Array.prototype.slice.call(t,0)}function v(t,i,e){for(var n=[],s=[],o=0;o<t.length;){var r=i?t[o][i]:t[o];m(s,r)<0&&n.push(t[o]),s[o]=r,o++}return e&&(n=i?n.sort(function(t,e){return t[i]>e[i]}):n.sort()),n}function y(t,e){for(var i,n,s=e[0].toUpperCase()+e.slice(1),o=0;o<Q.length;){if((n=(i=Q[o])?i+s:e)in t)return n;o++}return _}function T(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}function b(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){c(e.options.enable,[e])&&i.handler(t)},this.init()}function S(t,e,i){var n=i.pointers.length,s=i.changedPointers.length,o=e&pt&&n-s==0,r=e&(ft|mt)&&n-s==0;i.isFirst=!!o,i.isFinal=!!r,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,s=n.length;i.firstInput||(i.firstInput=x(e)),1<s&&!i.firstMultiple?i.firstMultiple=x(e):1===s&&(i.firstMultiple=!1);var o=i.firstInput,r=i.firstMultiple,a=r?r.center:o.center,l=e.center=C(n);e.timeStamp=nt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=M(a,l),e.distance=A(a,l),c=i,h=e,d=h.center,u=c.offsetDelta||{},p=c.prevDelta||{},f=c.prevInput||{},h.eventType!==pt&&f.eventType!==ft||(p=c.prevDelta={x:f.deltaX||0,y:f.deltaY||0},u=c.offsetDelta={x:d.x,y:d.y}),h.deltaX=p.x+(d.x-u.x),h.deltaY=p.y+(d.y-u.y),e.offsetDirection=E(e.deltaX,e.deltaY);var c,h,d,u,p,f;var m=P(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=m.x,e.overallVelocityY=m.y,e.overallVelocity=it(m.x)>it(m.y)?m.x:m.y,e.scale=r?(y=r.pointers,T=n,A(T[0],T[1],Ct)/A(y[0],y[1],Ct)):1,e.rotation=r?(g=r.pointers,v=n,M(v[1],v[0],Ct)+M(g[1],g[0],Ct)):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,s,o,r=t.lastInterval||e,a=e.timeStamp-r.timeStamp;if(e.eventType!=mt&&(ut<a||r.velocity===_)){var l=e.deltaX-r.deltaX,c=e.deltaY-r.deltaY,h=P(a,l,c);n=h.x,s=h.y,i=it(h.x)>it(h.y)?h.x:h.y,o=E(l,c),t.lastInterval=e}else i=r.velocity,n=r.velocityX,s=r.velocityY,o=r.direction;e.velocity=i,e.velocityX=n,e.velocityY=s,e.direction=o}(i,e);var g,v;var y,T;var b=t.element;w(e.srcEvent.target,b)&&(b=e.srcEvent.target),e.target=b}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function x(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:et(t.pointers[i].clientX),clientY:et(t.pointers[i].clientY)},i++;return{timeStamp:nt(),pointers:e,center:C(e),deltaX:t.deltaX,deltaY:t.deltaY}}function C(t){var e=t.length;if(1===e)return{x:et(t[0].clientX),y:et(t[0].clientY)};for(var i=0,n=0,s=0;s<e;)i+=t[s].clientX,n+=t[s].clientY,s++;return{x:et(i/e),y:et(n/e)}}function P(t,e,i){return{x:e/t||0,y:i/t||0}}function E(t,e){return t===e?gt:it(t)>=it(e)?t<0?vt:yt:e<0?Tt:bt}function A(t,e,i){i||(i=xt);var n=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return Math.sqrt(n*n+s*s)}function M(t,e,i){i||(i=xt);var n=e[i[0]]-t[i[0]],s=e[i[1]]-t[i[1]];return 180*Math.atan2(s,n)/Math.PI}function k(){this.evEl=Et,this.evWin=At,this.pressed=!1,b.apply(this,arguments)}function I(){this.evEl=It,this.evWin=Dt,b.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function D(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,b.apply(this,arguments)}function O(){this.evTarget=Lt,this.targetIds={},b.apply(this,arguments)}function H(){b.apply(this,arguments);var t=s(this.handler,this);this.touch=new O(this.manager,t),this.mouse=new k(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function L(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);-1<t&&n.splice(t,1)},Bt)}}function B(t,e){this.manager=t,this.set(e)}function z(t){this.options=Z({},this.defaults,t||{}),this.id=rt++,this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=Yt,this.simultaneous={},this.requireFail=[]}function G(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function R(t){return t==bt?"down":t==Tt?"up":t==vt?"left":t==yt?"right":""}function N(t,e){var i=e.manager;return i?i.get(t):t}function X(){z.apply(this,arguments)}function F(){X.apply(this,arguments),this.pX=null,this.pY=null}function $(){X.apply(this,arguments)}function W(){z.apply(this,arguments),this._timer=null,this._input=null}function Y(){X.apply(this,arguments)}function V(){X.apply(this,arguments)}function j(){z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function q(t,e){return(e=e||{}).recognizers=h(e.recognizers,q.defaults.preset),new U(t,e)}function U(t,e){var i;this.options=Z({},q.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(lt?I:ct?O:at?H:k))(i,S),this.touchAction=new B(this,this.options.touchAction),K(this,!0),r(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function K(i,n){var s,o=i.element;o.style&&(r(i.options.cssProps,function(t,e){s=y(o.style,e),o.style[s]=n?(i.oldCssProps[s]=o.style[s],t):i.oldCssProps[s]||""}),n||(i.oldCssProps={}))}var Z,Q=["","webkit","Moz","MS","ms","o"],J=a.createElement("div"),tt="function",et=Math.round,it=Math.abs,nt=Date.now;Z="function"!=typeof Object.assign?function(t){if(t===_||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==_&&null!==n)for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])}return e}:Object.assign;var st=e(function(t,e,i){for(var n=Object.keys(e),s=0;s<n.length;)(!i||i&&t[n[s]]===_)&&(t[n[s]]=e[n[s]]),s++;return t},"extend","Use `assign`."),ot=e(function(t,e){return st(t,e,!0)},"merge","Use `assign`."),rt=1,at="ontouchstart"in o,lt=y(o,"PointerEvent")!==_,ct=at&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ht="touch",dt="mouse",ut=25,pt=1,ft=4,mt=8,gt=1,vt=2,yt=4,Tt=8,bt=16,_t=vt|yt,wt=Tt|bt,St=_t|wt,xt=["x","y"],Ct=["clientX","clientY"];b.prototype={handler:function(){},init:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&u(this.element,this.evEl,this.domHandler),this.evTarget&&u(this.target,this.evTarget,this.domHandler),this.evWin&&u(T(this.element),this.evWin,this.domHandler)}};var Pt={mousedown:pt,mousemove:2,mouseup:ft},Et="mousedown",At="mousemove mouseup";i(k,b,{handler:function(t){var e=Pt[t.type];e&pt&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=ft),this.pressed&&(e&ft&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:dt,srcEvent:t}))}});var Mt={pointerdown:pt,pointermove:2,pointerup:ft,pointercancel:mt,pointerout:mt},kt={2:ht,3:"pen",4:dt,5:"kinect"},It="pointerdown",Dt="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(It="MSPointerDown",Dt="MSPointerMove MSPointerUp MSPointerCancel"),i(I,b,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),s=Mt[n],o=kt[t.pointerType]||t.pointerType,r=o==ht,a=m(e,t.pointerId,"pointerId");s&pt&&(0===t.button||r)?a<0&&(e.push(t),a=e.length-1):s&(ft|mt)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,s,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))}});var Ot={touchstart:pt,touchmove:2,touchend:ft,touchcancel:mt};i(D,b,{handler:function(t){var e=Ot[t.type];if(e===pt&&(this.started=!0),this.started){var i=function(t,e){var i=g(t.touches),n=g(t.changedTouches);return e&(ft|mt)&&(i=v(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);e&(ft|mt)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ht,srcEvent:t})}}});var Ht={touchstart:pt,touchmove:2,touchend:ft,touchcancel:mt},Lt="touchstart touchmove touchend touchcancel";i(O,b,{handler:function(t){var e=Ht[t.type],i=function(t,e){var i=g(t.touches),n=this.targetIds;if(e&(2|pt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var s,o,r=g(t.changedTouches),a=[],l=this.target;if(o=i.filter(function(t){return w(t.target,l)}),e===pt)for(s=0;s<o.length;)n[o[s].identifier]=!0,s++;for(s=0;s<r.length;)n[r[s].identifier]&&a.push(r[s]),e&(ft|mt)&&delete n[r[s].identifier],s++;return a.length?[v(o.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:ht,srcEvent:t})}});var Bt=2500;i(H,b,{handler:function(t,e,i){var n=i.pointerType==ht,s=i.pointerType==dt;if(!(s&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)(function(t,e){t&pt?(this.primaryTouch=e.changedPointers[0].identifier,L.call(this,e)):t&(ft|mt)&&L.call(this,e)}).call(this,e,i);else if(s&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var s=this.lastTouches[n],o=Math.abs(e-s.x),r=Math.abs(i-s.y);if(o<=25&&r<=25)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var zt=y(J.style,"touchAction"),Gt=zt!==_,Rt="compute",Nt="manipulation",Xt="none",Ft="pan-x",$t="pan-y",Wt=function(){if(!Gt)return!1;var e={},i=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!i||o.CSS.supports("touch-action",t)}),e}();B.prototype={set:function(t){t==Rt&&(t=this.compute()),Gt&&this.manager.element.style&&Wt[t]&&(this.manager.element.style[zt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return r(this.manager.recognizers,function(t){c(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(p(t,Xt))return Xt;var e=p(t,Ft),i=p(t,$t);return e&&i?Xt:e||i?e?Ft:$t:p(t,Nt)?Nt:"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,s=p(n,Xt)&&!Wt[Xt],o=p(n,$t)&&!Wt[$t],r=p(n,Ft)&&!Wt[Ft];if(s){var a=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(a&&l&&c)return}return r&&o?void 0:s||o&&i&_t||r&&i&wt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Yt=1;z.prototype={defaults:{},set:function(t){return Z(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(n(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=N(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return n(t,"dropRecognizeWith",this)||(t=N(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(n(t,"requireFailure",this))return this;var e=this.requireFail;return-1===m(e,t=N(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(n(t,"dropRequireFailure",this))return this;t=N(t,this);var e=m(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){function t(t){i.manager.emit(t,e)}var i=this,n=this.state;n<8&&t(i.options.event+G(n)),t(i.options.event),e.additionalEvent&&t(e.additionalEvent),8<=n&&t(i.options.event+G(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Yt)))return!1;t++}return!0},recognize:function(t){var e=Z({},t);return c(this.options.enable,[this,e])?(56&this.state&&(this.state=Yt),this.state=this.process(e),void(30&this.state&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},i(X,z,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,s=this.attrTest(t);return n&&(i&mt||!s)?16|e:n||s?i&ft?8|e:2&e?4|e:2:32}}),i(F,X,{defaults:{event:"pan",threshold:10,pointers:1,direction:St},getTouchAction:function(){var t=this.options.direction,e=[];return t&_t&&e.push($t),t&wt&&e.push(Ft),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,s=t.direction,o=t.deltaX,r=t.deltaY;return s&e.direction||(n=e.direction&_t?(s=0===o?gt:o<0?vt:yt,i=o!=this.pX,Math.abs(t.deltaX)):(s=0===r?gt:r<0?Tt:bt,i=r!=this.pY,Math.abs(t.deltaY))),t.direction=s,i&&n>e.threshold&&s&e.direction},attrTest:function(t){return X.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=R(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),i($,X,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),i(W,z,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,s=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(ft|mt)&&!s)this.reset();else if(t.eventType&pt)this.reset(),this._timer=l(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&ft)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=nt(),this.manager.emit(this.options.event,this._input)))}}),i(Y,X,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Xt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),i(V,X,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:_t|wt,pointers:1},getTouchAction:function(){return F.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(_t|wt)?e=t.overallVelocity:i&_t?e=t.overallVelocityX:i&wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&it(e)>this.options.velocity&&t.eventType&ft},emit:function(t){var e=R(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),i(j,z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Nt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,s=t.deltaTime<e.time;if(this.reset(),t.eventType&pt&&0===this.count)return this.failTimeout();if(n&&s&&i){if(t.eventType!=ft)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,r=!this.pCenter||A(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,r&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),q.VERSION="2.0.8",q.defaults={domEvents:!1,touchAction:Rt,enable:!0,inputTarget:null,inputClass:null,preset:[[Y,{enable:!1}],[$,{enable:!1},["rotate"]],[V,{direction:_t}],[F,{direction:_t},["swipe"]],[j],[j,{event:"doubletap",taps:2},["tap"]],[W]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};U.prototype={set:function(t){return Z(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,s=e.curRecognizer;(!s||s&&8&s.state)&&(s=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||s&&i!=s&&!i.canRecognizeWith(s)?i.reset():i.recognize(t),!s&&14&i.state&&(s=e.curRecognizer=i),o++}},get:function(t){if(t instanceof z)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(n(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(n(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=m(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==_&&e!==_){var i=this.handlers;return r(f(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==_){var i=this.handlers;return r(f(t),function(t){e?i[t]&&i[t].splice(m(i[t],e),1):delete i[t]}),this}},emit:function(t,e){var i,n,s;this.options.domEvents&&(i=t,n=e,(s=a.createEvent("Event")).initEvent(i,!0,!0),(s.gesture=n).target.dispatchEvent(s));var o=this.handlers[t]&&this.handlers[t].slice();if(o&&o.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<o.length;)o[r](e),r++}},destroy:function(){this.element&&K(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Z(q,{INPUT_START:pt,INPUT_MOVE:2,INPUT_END:ft,INPUT_CANCEL:mt,STATE_POSSIBLE:Yt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:gt,DIRECTION_LEFT:vt,DIRECTION_RIGHT:yt,DIRECTION_UP:Tt,DIRECTION_DOWN:bt,DIRECTION_HORIZONTAL:_t,DIRECTION_VERTICAL:wt,DIRECTION_ALL:St,Manager:U,Input:b,TouchAction:B,TouchInput:O,MouseInput:k,PointerEventInput:I,TouchMouseInput:H,SingleTouchInput:D,Recognizer:z,AttrRecognizer:X,Tap:j,Pan:F,Swipe:V,Pinch:$,Rotate:Y,Press:W,on:d,off:u,each:r,merge:ot,extend:st,assign:Z,inherit:i,bindFn:s,prefixed:y}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=q,"function"==typeof define&&define.amd?define(function(){return q}):"undefined"!=typeof module&&module.exports?module.exports=q:o.Hammer=q}(window,document),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(e,i){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function o(t,e){for(var i in e)t[i]=e[i];return t}function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);var n,s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=(n=s,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?c.call(n):[n]),this.options=o({},this.options),"function"==typeof e?i=e:o(this.options,e),i&&this.on("always",i),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(s||t))}function i(t){this.img=t}function n(t,e){this.url=t,this.element=e,this.img=new Image}var a=e.jQuery,l=e.console,c=Array.prototype.slice;(r.prototype=Object.create(t.prototype)).options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&h[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 h={1:!0,9:!0,11:!0};return r.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)}},r.prototype.addImage=function(t){var e=new i(t);this.images.push(e)},r.prototype.addBackground=function(t,e){var i=new n(t,e);this.images.push(i)},r.prototype.check=function(){function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}var n=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},(i.prototype=Object.create(t.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.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())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(a(this))})},r.makeJQueryPlugin(),r}),function(v,y){function T(t,e){var i=t.getBoundingClientRect(),n=i.top,s=i.bottom,o=i.left,r=i.right,a=v.extend({tolerance:0,viewport:y},e),l=!1,c=a.viewport.jquery?a.viewport:v(a.viewport);c.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),c=v(y));var h,d,u,p=c.height(),f=c.width(),m=c[0].toString();if(c[0]!==y&&"[object Window]"!==m&&"[object DOMWindow]"!==m){var g=c[0].getBoundingClientRect();n-=g.top,s-=g.top,o-=g.left,r-=g.left,f-=T.scrollBarWidth=T.scrollBarWidth||(h=c,u=v("<div></div>").css({width:"100%"}),h.append(u),d=h.width()-u.width(),u.remove(),d)}return a.tolerance=~~Math.round(parseFloat(a.tolerance)),a.tolerance<0&&(a.tolerance=p+a.tolerance),r<=0||f<=o?l:l=a.tolerance?n<=a.tolerance&&s>=a.tolerance:0<s&&n<=p}String.prototype.hasOwnProperty("trim")||(String.prototype.trim=function(){return this.replace(/^\s*(.*?)\s*$/,"$1")});var e=function(t){if(1===arguments.length&&"function"==typeof t&&(t=[t]),!(t instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");for(var e=0;e<t.length;e++)if("function"==typeof t[e])for(var i=0;i<this.length;i++)t[e].call(v(this[i]));else console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on");return this};v.fn.do=function(t){return console.warn("isInViewport: .do is deprecated as it causes issues in IE and some browsers since it's a reserved word. Use $.fn.run instead i.e., $(el).run(fn)."),e(t)},v.fn.run=e;var n=function(t){if(t){var e=t.split(",");return 1===e.length&&isNaN(e[0])&&(e[1]=e[0],e[0]=void 0),{tolerance:e[0]?e[0].trim():void 0,viewport:e[1]?v(e[1].trim()):void 0}}return{}};v.extend(v.expr[":"],{"in-viewport":v.expr.createPseudo?v.expr.createPseudo(function(e){return function(t){return T(t,n(e))}}):function(t,e,i){return T(t,n(i[3]))}}),v.fn.isInViewport=function(i){return this.filter(function(t,e){return T(e,i)})}}(jQuery,window),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";function i(c,s,h){(h=h||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){h.isPlainObject(t)&&(this.options=h.extend(!0,this.options,t))}),h.fn[c]=function(t){if("string"!=typeof t)return n=t,this.each(function(t,e){var i=h.data(e,c);i?(i.option(n),i._init()):(i=new s(e,n),h.data(e,c,i))}),this;var e,o,r,a,l,n,i=d.call(arguments,1);return r=i,l="$()."+c+'("'+(o=t)+'")',(e=this).each(function(t,e){var i=h.data(e,c);if(i){var n=i[o];if(n&&"_"!=o.charAt(0)){var s=n.apply(i,r);a=void 0===a?s:a}else u(l+" is not a valid method")}else u(c+" not initialized. Cannot call methods, i.e. "+l)}),void 0!==a?a:e},n(h))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var d=Array.prototype.slice,s=t.console,u=void 0===s?function(){}:function(t){s.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 v(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function T(t){if(function(){if(!S){S=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=y(t);b=200==Math.round(v(i.width)),T.isBoxSizeOuter=b,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<w;e++)t[_[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,s=0;s<w;s++){var o=_[s],r=e[o],a=parseFloat(r);i[o]=isNaN(a)?0:a}var l=i.paddingLeft+i.paddingRight,c=i.paddingTop+i.paddingBottom,h=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,u=i.borderLeftWidth+i.borderRightWidth,p=i.borderTopWidth+i.borderBottomWidth,f=n&&b,m=v(e.width);!1!==m&&(i.width=m+(f?0:l+u));var g=v(e.height);return!1!==g&&(i.height=g+(f?0:c+p)),i.innerWidth=i.width-(l+u),i.innerHeight=i.height-(c+p),i.outerWidth=i.width+h,i.outerHeight=i.height+d,i}}var b,i="undefined"==typeof console?function(){}:function(t){console.error(t)},_=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],w=_.length,S=!1;return T}),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 i=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]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(c,o){var h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;h.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},h.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,o(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,n){t=h.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void s.push(t);o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}}),s},h.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var d=c.console;return h.htmlInit=function(a,l){h.docReady(function(){var t=h.toDashed(l),s="data-"+t,e=document.querySelectorAll("["+s+"]"),i=document.querySelectorAll(".js-"+t),n=h.makeArray(e).concat(h.makeArray(i)),o=s+"-options",r=c.jQuery;n.forEach(function(e){var t,i=e.getAttribute(s)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(d&&d.error("Error parsing "+s+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,l,n)})})},h}),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,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,s="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],a={transform:o,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},l=i.prototype=Object.create(t.prototype);l.constructor=i,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t){e[a[i]||i]=t[i]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],s=t[i?"top":"bottom"],o=parseFloat(n),r=parseFloat(s),a=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*a.width),-1!=s.indexOf("%")&&(r=r/100*a.height),o=isNaN(o)?0:o,r=isNaN(r)?0:r,o-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=r},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=i?"paddingLeft":"paddingRight",o=i?"left":"right",r=i?"right":"left",a=this.position.x+t[s];e[o]=this.getXValue(a),e[r]="";var l=n?"paddingTop":"paddingBottom",c=n?"top":"bottom",h=n?"bottom":"top",d=this.position.y+t[l];e[c]=this.getYValue(d),e[h]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,s=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!s||this.isTransitioning){var o=t-i,r=e-n,a={};a.transform=this.getTranslate(o,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){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}else this._nonTransition(t)};var c="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var h={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=h[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},l.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})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.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})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(s,o){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,n){return o(s,t,e,i,n)}):"object"==typeof module&&module.exports?module.exports=o(s,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):s.Outlayer=o(s,s.EvEmitter,s.getSize,s.fizzyUIUtils,s.Outlayer.Item)}(window,function(t,e,s,o,n){"use strict";function r(t,e){var i=o.getQueryElement(t);if(i){this.element=i,c&&(this.$element=c(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++h;this.element.outlayerGUID=n,(d[n]=this)._create(),this._getOption("initLayout")&&this.layout()}else l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}var l=t.console,c=t.jQuery,i=function(){},h=0,d={};r.namespace="outlayer",r.Item=n,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 u=r.prototype;o.extend(u,e.prototype),u.option=function(t){o.extend(this.options,t)},u._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"},u._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},u.reloadItems=function(){this.items=this._itemize(this.element.children)},u._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],s=0;s<e.length;s++){var o=new i(e[s],this);n.push(o)}return n},u._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},u.getItemElements=function(){return this.items.map(function(t){return t.element})},u.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},u._init=u.layout,u._resetLayout=function(){this.getSize()},u.getSize=function(){this.size=s(this.element)},u._getMeasurement=function(t,e){var i,n=this.options[t];this[t]=n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),i?s(i)[e]:n):0},u.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},u._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var n=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n)}},u._getItemLayoutPosition=function(){return{x:0,y:0}},u._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},u.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(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))*(p[n]||1):0}(t),this.stagger)},u._positionItem=function(t,e,i,n,s){n?t.goTo(e,i):(t.stagger(s*this.stagger),t.moveTo(e,i))},u._postLayout=function(){this.resizeContainer()},u.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},u._getContainerSize=i,u._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"}},u._emitCompleteOnItems=function(e,t){function i(){s.dispatchEvent(e+"Complete",null,[t])}function n(){++r==o&&i()}var s=this,o=t.length;if(t&&o){var r=0;t.forEach(function(t){t.once(e,n)})}else i()},u.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),c)if(this.$element=this.$element||c(this.element),e){var s=c.Event(e);s.type=t,this.$element.trigger(s,i)}else this.$element.trigger(t,i)},u.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},u.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},u.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},u.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},u._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),o.makeArray(t)},u._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},u._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)}},u._manageStamp=i,u._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=s(t);return{left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom}},u.handleEvent=o.handleEvent,u.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},u.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},u.onresize=function(){this.resize()},o.debounceMethod(r,"onresize",100),u.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.needsResizeLayout=function(){var t=s(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},u.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},u.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)}},u.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.reveal()})}},u.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.hide()})}},u.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},u.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},u.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},u.getItems=function(t){t=o.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getItem(t);e&&i.push(e)},this),i},u.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},u.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 d[e],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},r.data=function(t){var e=(t=o.getQueryElement(t))&&t.outlayerGUID;return e&&d[e]},r.create=function(t,e){var i=a(r);return i.defaults=o.extend({},r.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=a(n),o.htmlInit(i,t),c&&c.bridget&&c.bridget(t,i),i};var p={ms:1,s:1e3};return r.Item=n,r}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var s=i.destroy;return i.destroy=function(){s.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var s=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){s[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),s.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},s._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},s.getColumnWidth=function(){this.getSegmentSize("column","Width")},s.getRowHeight=function(){this.getSegmentSize("row","Height")},s.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var s=this.getFirstItemSize();this[i]=s&&s[n]||this.isotope.size["inner"+e]}},s.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},s.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},s.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(s)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["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,c){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._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},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],e=t&&t.element;this.columnWidth=e&&c(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/i,o=i-n%i;s=Math[o&&o<1?"round":"floor"](s),this.cols=Math.max(s,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=c(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),s={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,r=i+n.col,a=n.col;a<r;a++)this.colYs[a]=o;return s},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._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},i._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)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=1<t&&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)}},i._manageStamp=function(t){var e=c(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,s=n+e.outerWidth,o=Math.floor(n/this.columnWidth);o=Math.max(0,o);var r=Math.floor(s/this.columnWidth);r-=s%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,l=o;l<=r;l++)this.colYs[l]=Math.max(a,this.colYs[l])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,s={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)s[o]||(n[o]=e.prototype[o]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(r,a){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,n,s,o){return a(r,t,e,i,n,s,o)}):"object"==typeof module&&module.exports?module.exports=a(r,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):r.Isotope=a(r,r.Outlayer,r.getSize,r.matchesSelector,r.fizzyUIUtils,r.Isotope.Item,r.Isotope.LayoutMode)}(window,function(t,i,e,n,o,s,r){var a=t.jQuery,c=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},h=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});h.Item=s,h.LayoutMode=r;var l=h.prototype;l._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++){t[e].id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e},l._bindArrangeComplete=function(){function t(){e&&i&&n&&s.dispatchEvent("arrangeComplete",null,[s.filteredItems])}var e,i,n,s=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],s=[],o=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var l=o(a);l&&i.push(a),l&&a.isHidden?n.push(a):l||a.isHidden||s.push(a)}}return{matches:i,needReveal:n,needHide:s}},l._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},l.updateSortData=function(t){var e;e=t?(t=o.makeArray(t),this.getItems(t)):this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=d(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var d=function(t){if("string"!=typeof t)return t;var e,i,n=c(t).split(" "),s=n[0],o=s.match(/^\[(.+)\]$/),r=o&&o[1],a=(i=s,(e=r)?function(t){return t.getAttribute(e)}:function(t){var e=t.querySelector(i);return e&&e.textContent}),l=h.sortDataParsers[n[1]];return l?function(t){return t&&l(a(t))}:function(t){return t&&a(t)}};h.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=o.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=(r=this.sortHistory,a=this.options.sortAscending,function(t,e){for(var i=0;i<r.length;i++){var n=r[i],s=t.sortData[n],o=e.sortData[n];if(o<s||s<o)return(o<s?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0});this.filteredItems.sort(e)}var r,a},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,s=e.length;for(i=0;i<s;i++)n=e[i],this.element.appendChild(n.element);var o=this._filter(e).matches;for(i=0;i<s;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<s;i++)delete e[i].isLayoutInstant;this.reveal(o)}};var u=l.remove;return l.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);u.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var s=e[n];o.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},h}),function(e,i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(t,e,e.document,e.Math)}):"object"==typeof exports&&exports?module.exports=i(require("jquery"),e,e.document,e.Math):i(jQuery,e,e.document,e.Math)}("undefined"!=typeof window?window:this,function(se,oe,re,ae,le){"use strict";var ce="fullpage-wrapper",he="."+ce,de="fp-responsive",ue="fp-notransition",pe="fp-destroyed",fe="fp-enabled",me="fp-viewing",ge="active",ve="."+ge,ye="fp-completely",Te="fp-section",be="."+Te,_e=be+ve,we="fp-tableCell",Se="#fp-nav",xe="fp-tooltip",Ce="fp-slide",Pe="."+Ce,Ee=Pe+ve,Ae=".fp-slides",Me="fp-slidesContainer",ke="."+Me,Ie="fp-table",De="fp-slidesNav",Oe="."+De,He=Oe+" a",t="fp-controlArrow",Le="."+t,Be="fp-prev",ze=Le+".fp-prev",Ge=Le+".fp-next",Re=se(oe),Ne=se(re);se.fn.fullpage=function(_){if(se("html").hasClass(fe))ie();else{var c=se("html, body"),w=se("body"),t=se.fn.fullpage;_=se.extend({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:se.fn.fp_scrolloverflow?se.fn.fp_scrolloverflow.iscrollHandler:null,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,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},_);var S,o,h,l,r=!1,n=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),s="ontouchstart"in oe||0<navigator.msMaxTouchPoints||navigator.maxTouchPoints,a=se(this),x=Re.height(),u=!1,e=!0,C=!0,d=[],p={m:{up:!0,down:!0,left:!0,right:!0}};p.k=se.extend(!0,{},p.m);var i,f,m,g,P,E,v,y=function(){var t;t=oe.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"};return t}(),T={touchmove:"ontouchmove"in oe?"touchmove":y.move,touchstart:"ontouchstart"in oe?"touchstart":y.down},b='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]',A=se.extend(!0,{},_);ie(),se.extend(se.easing,{easeInOutCubic:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i}}),se(this).length&&(t.version="2.9.5",t.setAutoScrolling=R,t.setRecordHistory=N,t.setScrollingSpeed=X,t.setFitToSection=F,t.setLockAnchors=function(t){_.lockAnchors=t},t.setMouseWheelScrolling=$,t.setAllowScrolling=W,t.setKeyboardScrolling=Y,t.moveSectionUp=V,t.moveSectionDown=j,t.silentMoveTo=q,t.moveTo=U,t.moveSlideRight=K,t.moveSlideLeft=Z,t.fitToSection=it,t.reBuild=Q,t.setResponsive=J,t.destroy=function(t){R(!1,"internal"),W(!1),Y(!1),a.addClass(pe),clearTimeout(g),clearTimeout(m),clearTimeout(f),clearTimeout(P),clearTimeout(E),Re.off("scroll",et).off("hashchange",_t).off("resize",Lt),Ne.off("click touchstart",Se+" a").off("mouseenter",Se+" li").off("mouseleave",Se+" li").off("click touchstart",He).off("mouseover",_.normalScrollElements).off("mouseout",_.normalScrollElements),se(be).off("click touchstart",Le),clearTimeout(g),clearTimeout(m),t&&function(){Qt(0),a.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){ft(se(this),"src")}),a.find("img[data-srcset]").each(function(){ft(se(this),"srcset")}),se(Se+", "+Oe+", "+Le).remove(),se(be).css({height:"","background-color":"",padding:""}),se(Pe).css({width:""}),a.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),c.css({overflow:"",height:""}),se("html").removeClass(fe),w.removeClass(de),se.each(w.get(0).className.split(/\s+/),function(t,e){0===e.indexOf(me)&&w.removeClass(e)}),se(be+", "+Pe).each(function(){_.scrollOverflowHandler&&_.scrollOverflowHandler.remove(se(this)),se(this).removeClass(Ie+" "+ge),se(this).attr("style",se(this).data("fp-styles"))}),Gt(a),a.find(".fp-tableCell, "+ke+", "+Ae).each(function(){se(this).replaceWith(this.childNodes)}),a.css({"-webkit-transition":"none",transition:"none"}),c.scrollTop(0);var t=[Te,Ce,Me];se.each(t,function(t,e){se("."+e).removeClass(e)})}()},t.shared={afterRenderActions:tt},function(){_.css3&&(_.css3=function(){var t,e=re.createElement("p"),i={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};for(var n in re.body.insertBefore(e,null),i)e.style[n]!==le&&(e.style[n]="translate3d(1px,1px,1px)",t=oe.getComputedStyle(e).getPropertyValue(i[n]));return re.body.removeChild(e),t!==le&&0<t.length&&"none"!==t}());_.scrollBar=_.scrollBar||_.hybrid,t=a.find(_.sectionSelector),_.anchors.length||(_.anchors=t.filter("[data-anchor]").map(function(){return se(this).data("anchor").toString()}).get()),_.navigationTooltips.length||(_.navigationTooltips=t.filter("[data-tooltip]").map(function(){return se(this).data("tooltip").toString()}).get()),a.addClass(ce),se("html").addClass(fe),x=Re.height(),a.removeClass(pe),a.find(_.sectionSelector).addClass(Te),a.find(_.slideSelector).addClass(Ce),se(be).each(function(t){var e,i,n,s,o=se(this),r=o.find(Pe),a=r.length;o.data("fp-styles",o.attr("style")),n=o,(s=t)||0!==se(_e).length||n.addClass(ge),l=se(_e),_.paddingTop&&n.css("padding-top",_.paddingTop),_.paddingBottom&&n.css("padding-bottom",_.paddingBottom),void 0!==_.sectionsColor[s]&&n.css("background-color",_.sectionsColor[s]),void 0!==_.anchors[s]&&n.attr("data-anchor",_.anchors[s]),e=o,i=t,void 0!==_.anchors[i]&&e.hasClass(ge)&&Rt(_.anchors[i],i),_.menu&&_.css3&&se(_.menu).closest(he).length&&se(_.menu).appendTo(w),0<a?function(t,e,i){var n,s=100*i,o=100/i;e.wrapAll('<div class="'+Me+'" />'),e.parent().wrap('<div class="fp-slides" />'),t.find(ke).css("width",s+"%"),1<i&&(_.controlArrows&&((n=t).find(Ae).after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>'),"#fff"!=_.controlArrowColor&&(n.find(Ge).css("border-color","transparent transparent transparent "+_.controlArrowColor),n.find(ze).css("border-color","transparent "+_.controlArrowColor+" transparent transparent")),_.loopHorizontal||n.find(ze).hide()),_.slidesNavigation&&function(t,e){t.append('<div class="'+De+'"><ul></ul></div>');var i=t.find(Oe);i.addClass(_.slidesNavPosition);for(var n=0;n<e;n++)i.find("ul").append('<li><a href="#"><span></span></a></li>');i.css("margin-left","-"+i.width()/2+"px"),i.find("li").first().find("a").addClass(ge)}(t,i)),e.each(function(t){se(this).css("width",o+"%"),_.verticalCentered&&Xt(se(this))});var r=t.find(Ee);r.length&&(0!==se(_e).index(be)||0===se(_e).index(be)&&0!==r.index())?Zt(r,"internal"):e.eq(0).addClass(ge)}(o,r,a):_.verticalCentered&&Xt(o)}),_.fixedElements&&_.css3&&se(_.fixedElements).appendTo(w),_.navigation&&function(){w.append('<div id="fp-nav"><ul></ul></div>');var t=se(Se);t.addClass(function(){return _.showActiveTooltip?"fp-show-active "+_.navigationPosition:_.navigationPosition});for(var e=0;e<se(be).length;e++){var i="";_.anchors.length&&(i=_.anchors[e]);var n='<li><a href="#'+i+'"><span></span></a>',s=_.navigationTooltips[e];void 0!==s&&""!==s&&(n+='<div class="'+xe+" "+_.navigationPosition+'">'+s+"</div>"),n+="</li>",t.find("ul").append(n)}se(Se).css("margin-top","-"+se(Se).height()/2+"px"),se(Se).find("li").eq(se(_e).index(be)).find("a").addClass(ge)}(),a.find('iframe[src*="youtube.com/embed/"]').each(function(){var t,e,i;t=se(this),e="enablejsapi=1",i=t.attr("src"),t.attr("src",i+(/\?/.test(i)?"&":"?")+e)}),_.scrollOverflow?i=_.scrollOverflowHandler.init(_):tt(),W(!0),R(_.autoScrolling,"internal"),Bt(),Ut(),"complete"===re.readyState&&bt();var t;Re.on("load",bt)}(),Re.on("scroll",et).on("hashchange",_t).blur(Mt).resize(Lt),Ne.keydown(St).keyup(Ct).on("click touchstart",Se+" a",kt).on("click touchstart",He,It).on("click",".fp-tooltip",xt),se(be).on("click touchstart",Le,At),_.normalScrollElements&&(Ne.on("mouseenter touchstart",_.normalScrollElements,function(){W(!1)}),Ne.on("mouseleave touchend",_.normalScrollElements,function(){W(!0)})));var M=!1,k=0,I=0,D=0,O=0,H=0,L=(new Date).getTime(),B=0,z=0,G=x}function R(t,e){t||Qt(0),ee("autoScrolling",t,e);var i=se(_e);_.autoScrolling&&!_.scrollBar?(c.css({overflow:"hidden",height:"100%"}),N(A.recordHistory,"internal"),a.css({"-ms-touch-action":"none","touch-action":"none"}),i.length&&Qt(i.position().top)):(c.css({overflow:"visible",height:"initial"}),N(!1,"internal"),a.css({"-ms-touch-action":"","touch-action":""}),i.length&&c.scrollTop(i.position().top))}function N(t,e){ee("recordHistory",t,e)}function X(t,e){ee("scrollingSpeed",t,e)}function F(t,e){ee("fitToSection",t,e)}function $(t){t?(!function(){var t,e="";oe.addEventListener?t="addEventListener":(t="attachEvent",e="on");var i="onwheel"in re.createElement("div")?"wheel":re.onmousewheel!==le?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==i?re[t](e+"MozMousePixelScroll",ct,!1):re[t](e+i,ct,!1)}(),a.on("mousedown",Pt).on("mouseup",Et)):(re.addEventListener?(re.removeEventListener("mousewheel",ct,!1),re.removeEventListener("wheel",ct,!1),re.removeEventListener("MozMousePixelScroll",ct,!1)):re.detachEvent("onmousewheel",ct),a.off("mousedown",Pt).off("mouseup",Et))}function W(i,t){void 0!==t?(t=t.replace(/ /g,"").split(","),se.each(t,function(t,e){te(i,e,"m")})):(te(i,"all","m"),i?($(!0),(n||s)&&(_.autoScrolling&&w.off(T.touchmove).on(T.touchmove,st),se(he).off(T.touchstart).on(T.touchstart,at).off(T.touchmove).on(T.touchmove,ot))):($(!1),(n||s)&&(_.autoScrolling&&w.off(T.touchmove),se(he).off(T.touchstart).off(T.touchmove))))}function Y(i,t){void 0!==t?(t=t.replace(/ /g,"").split(","),se.each(t,function(t,e){te(i,e,"k")})):(te(i,"all","k"),_.keyboardScrolling=i)}function V(){var t=se(_e).prev(be);t.length||!_.loopTop&&!_.continuousVertical||(t=se(be).last()),t.length&&ut(t,null,!0)}function j(){var t=se(_e).next(be);t.length||!_.loopBottom&&!_.continuousVertical||(t=se(be).first()),t.length&&ut(t,null,!1)}function q(t,e){X(0,"internal"),U(t,e),X(A.scrollingSpeed,"internal")}function U(t,e){var i=$t(t);void 0!==e?Wt(t,e):0<i.length&&ut(i)}function K(t){ht("right",t)}function Z(t){ht("left",t)}function Q(t){if(!a.hasClass(pe)){u=!0,x=Re.height(),se(be).each(function(){var t=se(this).find(Ae),e=se(this).find(Pe);_.verticalCentered,1<e.length&&Ot(t,t.find(Ee))}),_.scrollOverflow&&i.createScrollBarForAll();var e=se(_e).index(be);e&&q(e+1),u=!1,se.isFunction(_.afterResize)&&t&&_.afterResize.call(a),se.isFunction(_.afterReBuild)&&!t&&_.afterReBuild.call(a)}}function J(t){var e=w.hasClass(de);t?e||(R(!1,"internal"),F(!1,"internal"),se(Se).hide(),w.addClass(de),se.isFunction(_.afterResponsive)&&_.afterResponsive.call(a,t)):e&&(R(A.autoScrolling,"internal"),F(A.autoScrolling,"internal"),se(Se).show(),w.removeClass(de),se.isFunction(_.afterResponsive)&&_.afterResponsive.call(a,t))}function tt(){var t,e=se(_e);e.addClass(ye),mt(e),gt(e),_.scrollOverflow&&_.scrollOverflowHandler.afterLoad(),(!(t=$t(wt().section))||t.length&&t.index()===l.index())&&se.isFunction(_.afterLoad)&&_.afterLoad.call(e,e.data("anchor"),e.index(be)+1),se.isFunction(_.afterRender)&&_.afterRender.call(a)}function et(){var t,e,i,n,s,o;if(!_.autoScrolling||_.scrollBar){var r=Re.scrollTop(),a=(o=k<(s=r)?"down":"up",B=k=s,o),l=0,c=r+Re.height()/2,h=w.height()-Re.height()===r,d=re.querySelectorAll(be);if(h)l=d.length-1;else if(r)for(var u=0;u<d.length;++u){d[u].offsetTop<=c&&(l=u)}else l=0;if(e=a,i=se(_e).position().top,n=i+Re.height(),("up"!=e?i<=Re.scrollTop():n>=Re.scrollTop()+Re.height())&&(se(_e).hasClass(ye)||se(_e).addClass(ye).siblings().removeClass(ye)),!(t=se(d).eq(l)).hasClass(ge)){M=!0;var p,f,m=se(_e),g=m.index(be)+1,v=Nt(t),y=t.data("anchor"),T=t.index(be)+1,b=t.find(Ee);b.length&&(f=b.data("anchor"),p=b.index()),C&&(t.addClass(ge).siblings().removeClass(ge),se.isFunction(_.onLeave)&&_.onLeave.call(m,g,T,v),se.isFunction(_.afterLoad)&&_.afterLoad.call(t,y,T),yt(m),mt(t),gt(t),Rt(y,T-1),_.anchors.length&&(S=y),Vt(p,f,y,T)),clearTimeout(P),P=setTimeout(function(){M=!1},100)}_.fitToSection&&(clearTimeout(E),E=setTimeout(function(){_.fitToSection&&se(_e).outerHeight()<=x&&it()},_.fitToSectionDelay))}}function it(){C&&(u=!0,ut(se(_e)),u=!1)}function nt(t){if(p.m[t]){var e="down"===t?j:V;if(_.scrollOverflow){var i=_.scrollOverflowHandler.scrollable(se(_e)),n="down"===t?"bottom":"top";if(0<i.length){if(!_.scrollOverflowHandler.isScrolled(n,i))return!0;e()}else e()}else e()}}function st(t){var e=t.originalEvent;_.autoScrolling&&rt(e)&&t.preventDefault()}function ot(t){var e=t.originalEvent,i=se(e.target).closest(be);if(rt(e)){_.autoScrolling&&t.preventDefault();var n=Kt(e);O=n.y,H=n.x,i.find(Ae).length&&ae.abs(D-H)>ae.abs(I-O)?!r&&ae.abs(D-H)>Re.outerWidth()/100*_.touchSensitivity&&(H<D?p.m.right&&K(i):p.m.left&&Z(i)):_.autoScrolling&&C&&ae.abs(I-O)>Re.height()/100*_.touchSensitivity&&(O<I?nt("down"):I<O&&nt("up"))}}function rt(t){return void 0===t.pointerType||"mouse"!=t.pointerType}function at(t){var e=t.originalEvent;if(_.fitToSection&&c.stop(),rt(e)){var i=Kt(e);I=i.y,D=i.x}}function lt(t,e){for(var i=0,n=t.slice(ae.max(t.length-e,1)),s=0;s<n.length;s++)i+=n[s];return ae.ceil(i/e)}function ct(t){var e=(new Date).getTime(),i=se(".fp-completely").hasClass("fp-normal-scroll");if(_.autoScrolling&&!h&&!i){var n=(t=t||oe.event).wheelDelta||-t.deltaY||-t.detail,s=ae.max(-1,ae.min(1,n)),o=void 0!==t.wheelDeltaX||void 0!==t.deltaX,r=ae.abs(t.wheelDeltaX)<ae.abs(t.wheelDelta)||ae.abs(t.deltaX)<ae.abs(t.deltaY)||!o;149<d.length&&d.shift(),d.push(ae.abs(n)),_.scrollBar&&(t.preventDefault?t.preventDefault():t.returnValue=!1);var a=e-L;if(L=e,200<a&&(d=[]),C){var l=lt(d,10);lt(d,70)<=l&&r&&nt(s<0?"down":"up")}return!1}_.fitToSection&&c.stop()}function ht(t,e){var i=(void 0===e?se(_e):e).find(Ae),n=i.find(Pe).length;if(!(!i.length||r||n<2)){var s=i.find(Ee),o=null;if(!(o="left"===t?s.prev(Pe):s.next(Pe)).length){if(!_.loopHorizontal)return;o="left"===t?s.siblings(":last"):s.siblings(":first")}r=!0,Ot(i,o,t)}}function dt(){se(Ee).each(function(){Zt(se(this),"internal")})}function ut(t,e,i){if(void 0!==t){var n,s,o,r,a,l,c,h,d={element:t,callback:e,isMovementUp:i,dtop:(s=(n=t).position(),o=s.top,r=s.top>B,a=o-x+n.outerHeight(),l=_.bigSectionsDestination,n.outerHeight()>x?(r||l)&&"bottom"!==l||(o=a):(r||u&&n.is(":last-child"))&&(o=a),B=o),yMovement:Nt(t),anchorLink:t.data("anchor"),sectionIndex:t.index(be),activeSlide:t.find(Ee),activeSection:se(_e),leavingSection:se(_e).index(be)+1,localIsResizing:u};d.activeSection.is(t)&&!u||_.scrollBar&&Re.scrollTop()===d.dtop&&!t.hasClass("fp-auto-height")||(d.activeSlide.length&&(c=d.activeSlide.data("anchor"),h=d.activeSlide.index()),se.isFunction(_.onLeave)&&!d.localIsResizing&&!1===_.onLeave.call(d.activeSection,d.leavingSection,d.sectionIndex+1,d.yMovement)||(_.autoScrolling&&_.continuousVertical&&void 0!==d.isMovementUp&&(!d.isMovementUp&&"up"==d.yMovement||d.isMovementUp&&"down"==d.yMovement)&&(d=function(t){t.isMovementUp?se(_e).before(t.activeSection.nextAll(be)):se(_e).after(t.activeSection.prevAll(be).get().reverse());return Qt(se(_e).position().top),dt(),t.wrapAroundElements=t.activeSection,t.dtop=t.element.position().top,t.yMovement=Nt(t.element),t.leavingSection=t.activeSection.index(be)+1,t.sectionIndex=t.element.index(be),t}(d)),d.localIsResizing||yt(d.activeSection),_.scrollOverflow&&_.scrollOverflowHandler.beforeLeave(),t.addClass(ge).siblings().removeClass(ge),mt(t),_.scrollOverflow&&_.scrollOverflowHandler.onLeave(),C=!1,Vt(h,c,d.anchorLink,d.sectionIndex),function(t){if(_.css3&&_.autoScrolling&&!_.scrollBar){var e="translate3d(0px, -"+ae.round(t.dtop)+"px, 0px)";Ft(e,!0),_.scrollingSpeed?(clearTimeout(m),m=setTimeout(function(){pt(t)},_.scrollingSpeed)):pt(t)}else{var i=function(t){var e={};_.autoScrolling&&!_.scrollBar?(e.options={top:-t.dtop},e.element=he):(e.options={scrollTop:t.dtop},e.element="html, body");return e}(t);se(i.element).animate(i.options,_.scrollingSpeed,_.easing).promise().done(function(){_.scrollBar?setTimeout(function(){pt(t)},30):pt(t)})}}(d),S=d.anchorLink,Rt(d.anchorLink,d.sectionIndex)))}}function pt(t){var e;(e=t).wrapAroundElements&&e.wrapAroundElements.length&&(e.isMovementUp?se(".fp-section:first").before(e.wrapAroundElements):se(".fp-section:last").after(e.wrapAroundElements),Qt(se(_e).position().top),dt()),se.isFunction(_.afterLoad)&&!t.localIsResizing&&_.afterLoad.call(t.element,t.anchorLink,t.sectionIndex+1),_.scrollOverflow&&_.scrollOverflowHandler.afterLoad(),t.localIsResizing||gt(t.element),t.element.addClass(ye).siblings().removeClass(ye),C=!0,se.isFunction(t.callback)&&t.callback.call(this)}function ft(t,e){t.attr(e,t.data(e)).removeAttr("data-"+e)}function mt(t){var n;_.lazyLoading&&Tt(t).find("img[data-src], img[data-srcset], source[data-src], source[data-srcset], video[data-src], audio[data-src], iframe[data-src]").each(function(){if(n=se(this),se.each(["src","srcset"],function(t,e){var i=n.attr("data-"+e);void 0!==i&&i&&ft(n,e)}),n.is("source")){var t=n.closest("video").length?"video":"audio";n.closest(t).get(0).load()}})}function gt(t){var e=Tt(t);e.find("video, audio").each(function(){var t=se(this).get(0);t.hasAttribute("data-autoplay")&&"function"==typeof t.play&&t.play()}),e.find('iframe[src*="youtube.com/embed/"]').each(function(){var t=se(this).get(0);t.hasAttribute("data-autoplay")&&vt(t),t.onload=function(){t.hasAttribute("data-autoplay")&&vt(t)}})}function vt(t){t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function yt(t){var e=Tt(t);e.find("video, audio").each(function(){var t=se(this).get(0);t.hasAttribute("data-keepplaying")||"function"!=typeof t.pause||t.pause()}),e.find('iframe[src*="youtube.com/embed/"]').each(function(){var t=se(this).get(0);/youtube\.com\/embed\//.test(se(this).attr("src"))&&!t.hasAttribute("data-keepplaying")&&se(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function Tt(t){var e=t.find(Ee);return e.length&&(t=se(e)),t}function bt(){var t=wt(),e=t.section,i=t.slide;e&&(_.animateAnchor?Wt(e,i):q(e,i))}function _t(){if(!M&&!_.lockAnchors){var t=wt(),e=t.section,i=t.slide;e&&(e&&e!==S&&!(void 0===S)||void 0===S&&void 0===i&&!r||!r&&o!=i)&&Wt(e,i)}}function wt(){var t,e,i=oe.location.hash;if(i.length){var n=i.replace("#","").split("/"),s=-1<i.indexOf("#/");t=s?"/"+n[1]:decodeURIComponent(n[0]);var o=s?n[2]:n[1];o&&o.length&&(e=decodeURIComponent(o))}return{section:t,slide:e}}function St(t){clearTimeout(v);var e=se(":focus"),i=t.which;if(9===i)!function(t){var e=t.shiftKey,i=se(":focus"),n=se(_e),s=n.find(Ee),o=(s.length?s:n).find(b);function r(t){return t.preventDefault(),o.first().focus()}i.length?i.closest(_e,Ee).length||(i=r(t)):r(t);(!e&&i.is(o.last())||e&&i.is(o.first()))&&t.preventDefault()}(t);else if(!e.is("textarea")&&!e.is("input")&&!e.is("select")&&"true"!==e.attr("contentEditable")&&""!==e.attr("contentEditable")&&_.keyboardScrolling&&_.autoScrolling){-1<se.inArray(i,[40,38,32,33,34])&&t.preventDefault(),h=t.ctrlKey,v=setTimeout(function(){!function(t){var e=t.shiftKey;if(!C&&[37,39].indexOf(t.which)<0)return;switch(t.which){case 38:case 33:p.k.up&&V();break;case 32:if(e&&p.k.up){V();break}case 40:case 34:p.k.down&&j();break;case 36:p.k.up&&U(1);break;case 35:p.k.down&&U(se(be).length);break;case 37:p.k.left&&Z();break;case 39:p.k.right&&K();break;default:;}}(t)},150)}}function xt(){se(this).prev().trigger("click")}function Ct(t){e&&(h=t.ctrlKey)}function Pt(t){2==t.which&&(z=t.pageY,a.on("mousemove",Dt))}function Et(t){2==t.which&&a.off("mousemove")}function At(){var t=se(this).closest(be);se(this).hasClass(Be)?p.m.left&&Z(t):p.m.right&&K(t)}function Mt(){h=e=!1}function kt(t){t.preventDefault();var e=se(this).parent().index();ut(se(be).eq(e))}function It(t){t.preventDefault();var e=se(this).closest(be).find(Ae);Ot(e,e.find(Pe).eq(se(this).closest("li").index()))}function Dt(t){C&&(t.pageY<z&&p.m.up?V():t.pageY>z&&p.m.down&&j()),z=t.pageY}function Ot(t,e,i){var n=t.closest(be),s={slides:t,destiny:e,direction:i,destinyPos:e.position(),slideIndex:e.index(),section:n,sectionIndex:n.index(be),anchorLink:n.data("anchor"),slidesNav:n.find(Oe),slideAnchor:qt(e),prevSlide:n.find(Ee),prevSlideIndex:n.find(Ee).index(),localIsResizing:u};s.xMovement=function(t,e){if(t==e)return"none";if(e<t)return"left";return"right"}(s.prevSlideIndex,s.slideIndex),s.localIsResizing||(C=!1),_.onSlideLeave&&!s.localIsResizing&&"none"!==s.xMovement&&se.isFunction(_.onSlideLeave)&&!1===_.onSlideLeave.call(s.prevSlide,s.anchorLink,s.sectionIndex+1,s.prevSlideIndex,s.direction,s.slideIndex)?r=!1:(e.addClass(ge).siblings().removeClass(ge),s.localIsResizing||(yt(s.prevSlide),mt(e)),!_.loopHorizontal&&_.controlArrows&&(n.find(ze).toggle(0!==s.slideIndex),n.find(Ge).toggle(!e.is(":last-child"))),n.hasClass(ge)&&!s.localIsResizing&&Vt(s.slideIndex,s.slideAnchor,s.anchorLink,s.sectionIndex),function(t,e,i){var n=e.destinyPos;if(_.css3){var s="translate3d(-"+ae.round(n.left)+"px, 0px, 0px)";zt(t.find(ke)).css(Jt(s)),g=setTimeout(function(){i&&Ht(e)},_.scrollingSpeed,_.easing)}else t.animate({scrollLeft:ae.round(n.left)},_.scrollingSpeed,_.easing,function(){i&&Ht(e)})}(t,s,!0))}function Ht(t){var e,i;e=t.slidesNav,i=t.slideIndex,e.find(ve).removeClass(ge),e.find("li").eq(i).find("a").addClass(ge),t.localIsResizing||(se.isFunction(_.afterSlideLoad)&&_.afterSlideLoad.call(t.destiny,t.anchorLink,t.sectionIndex+1,t.slideAnchor,t.slideIndex),C=!0,gt(t.destiny)),r=!1}function Lt(){if(Bt(),n){var t=se(re.activeElement);if(!t.is("textarea")&&!t.is("input")&&!t.is("select")){var e=Re.height();ae.abs(e-G)>20*ae.max(G,e)/100&&(Q(!0),G=e)}}else clearTimeout(f),f=setTimeout(function(){Q(!0)},350)}function Bt(){var t=_.responsive||_.responsiveWidth,e=_.responsiveHeight,i=t&&Re.outerWidth()<t,n=e&&Re.height()<e;t&&e?J(i||n):t?J(i):e&&J(n)}function zt(t){var e="all "+_.scrollingSpeed+"ms "+_.easingcss3;return t.removeClass(ue),t.css({"-webkit-transition":e,transition:e})}function Gt(t){return t.addClass(ue)}function Rt(t,e){var i,n,s;i=t,_.menu&&(se(_.menu).find(ve).removeClass(ge),se(_.menu).find('[data-menuanchor="'+i+'"]').addClass(ge)),n=t,s=e,_.navigation&&(se(Se).find(ve).removeClass(ge),n?se(Se).find('a[href="#'+n+'"]').addClass(ge):se(Se).find("li").eq(s).find("a").addClass(ge))}function Nt(t){var e=se(_e).index(be),i=t.index(be);return e==i?"none":i<e?"up":"down"}function Xt(t){t.hasClass(Ie)||t.addClass(Ie).wrapInner('<div class="'+we+'" style="height:'+function(t){var e=x;if(_.paddingTop||_.paddingBottom){var i=t;i.hasClass(Te)||(i=t.closest(be));var n=parseInt(i.css("padding-top"))+parseInt(i.css("padding-bottom"));e=x-n}return e}(t)+'px;" />')}function Ft(t,e){e?zt(a):Gt(a),a.css(Jt(t)),setTimeout(function(){a.removeClass(ue)},10)}function $t(t){var e=a.find(be+'[data-anchor="'+t+'"]');if(!e.length){var i=void 0!==t?t-1:0;e=se(be).eq(i)}return e}function Wt(t,e){var i=$t(t);if(i.length){var n,s,o,r=(n=e,(o=(s=i).find(Pe+'[data-anchor="'+n+'"]')).length||(n=void 0!==n?n:0,o=s.find(Pe).eq(n)),o);t===S||i.hasClass(ge)?Yt(r):ut(i,function(){Yt(r)})}}function Yt(t){t.length&&Ot(t.closest(Ae),t)}function Vt(t,e,i,n){var s="";_.anchors.length&&!_.lockAnchors&&(t?(void 0!==i&&(s=i),void 0===e&&(e=t),jt(s+"/"+(o=e))):(void 0!==t&&(o=e),jt(i))),Ut()}function jt(t){if(_.recordHistory)location.hash=t;else if(n||s)oe.history.replaceState(le,le,"#"+t);else{var e=oe.location.href.split("#")[0];oe.location.replace(e+"#"+t)}}function qt(t){var e=t.data("anchor"),i=t.index();return void 0===e&&(e=i),e}function Ut(){var t=se(_e),e=t.find(Ee),i=qt(t),n=qt(e),s=String(i);e.length&&(s=s+"-"+n),s=s.replace("/","-").replace("#","");var o=new RegExp("\\b\\s?"+me+"-[^\\s]+\\b","g");w[0].className=w[0].className.replace(o,""),w.addClass(me+"-"+s)}function Kt(t){var e=[];return e.y=void 0!==t.pageY&&(t.pageY||t.pageX)?t.pageY:t.touches[0].pageY,e.x=void 0!==t.pageX&&(t.pageY||t.pageX)?t.pageX:t.touches[0].pageX,s&&rt(t)&&(_.scrollBar||!_.autoScrolling)&&(e.y=t.touches[0].pageY,e.x=t.touches[0].pageX),e}function Zt(t,e){X(0,"internal"),void 0!==e&&(u=!0),Ot(t.closest(Ae),t),void 0!==e&&(u=!1),X(A.scrollingSpeed,"internal")}function Qt(t){var e=ae.round(t);_.css3&&_.autoScrolling&&!_.scrollBar?Ft("translate3d(0px, -"+e+"px, 0px)",!1):_.autoScrolling&&!_.scrollBar?a.css("top",-e):c.scrollTop(e)}function Jt(t){return{"-webkit-transform":t,"-moz-transform":t,"-ms-transform":t,transform:t}}function te(i,t,n){"all"!==t?p[n][t]=i:se.each(Object.keys(p[n]),function(t,e){p[n][e]=i})}function ee(t,e,i){_[t]=e,"internal"!==i&&(A[t]=e)}function ie(){se("html").hasClass(fe)?ne("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(_.continuousVertical&&(_.loopTop||_.loopBottom)&&(_.continuousVertical=!1,ne("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),_.scrollBar&&_.scrollOverflow&&ne("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),!_.continuousVertical||!_.scrollBar&&_.autoScrolling||(_.continuousVertical=!1,ne("warn","Scroll bars (`scrollBar:true` or `autoScrolling:false`) are mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),_.scrollOverflow&&!_.scrollOverflowHandler&&(_.scrollOverflow=!1,ne("error","The option `scrollOverflow:true` requires the file `scrolloverflow.min.js`. Please include it before fullPage.js.")),se.each(["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides","offsetSections","dragAndMove","scrollOverflowReset","parallax"],function(t,e){_[e]&&ne("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+e)}),se.each(_.anchors,function(t,e){var i=Ne.find("[name]").filter(function(){return se(this).attr("name")&&se(this).attr("name").toLowerCase()==e.toLowerCase()}),n=Ne.find("[id]").filter(function(){return se(this).attr("id")&&se(this).attr("id").toLowerCase()==e.toLowerCase()});(n.length||i.length)&&(ne("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),n.length&&ne("error",'"'+e+'" is is being used by another element `id` property'),i.length&&ne("error",'"'+e+'" is is being used by another element `name` property'))}))}function ne(t,e){console&&console[t]&&console[t]("fullPage: "+e)}}}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):jQuery&&!jQuery.fn.hoverIntent&&t(jQuery)}(function(l){"use strict";var s,o,r={interval:100,sensitivity:6,timeout:0},c=0,h=function(t){s=t.pageX,o=t.pageY},d=function(t,e,i,n){if(Math.sqrt((i.pX-s)*(i.pX-s)+(i.pY-o)*(i.pY-o))<n.sensitivity)return e.off(i.event,h),delete i.timeoutId,i.isActive=!0,t.pageX=s,t.pageY=o,delete i.pX,delete i.pY,n.over.apply(e[0],[t]);i.pX=s,i.pY=o,i.timeoutId=setTimeout(function(){d(t,e,i,n)},n.interval)};l.fn.hoverIntent=function(t,e,i){var n=c++,a=l.extend({},r);l.isPlainObject(t)?(a=l.extend(a,t),l.isFunction(a.out)||(a.out=a.over)):a=l.isFunction(e)?l.extend(a,{over:t,out:e,selector:i}):l.extend(a,{over:t,out:t,selector:e});var s=function(t){var s=l.extend({},t),o=l(this),e=o.data("hoverIntent");e||o.data("hoverIntent",e={});var r=e[n];r||(e[n]=r={id:n}),r.timeoutId&&(r.timeoutId=clearTimeout(r.timeoutId));var i=r.event="mousemove.hoverIntent.hoverIntent"+n;if("mouseenter"===t.type){if(r.isActive)return;r.pX=s.pageX,r.pY=s.pageY,o.off(i,h).on(i,h),r.timeoutId=setTimeout(function(){d(s,o,r,a)},a.interval)}else{if(!r.isActive)return;o.off(i,h),r.timeoutId=setTimeout(function(){var t,e,i,n;t=s,e=o,i=r,n=a.out,delete e.data("hoverIntent")[i.id],n.apply(e[0],[t])},a.timeout)}};return this.on({"mouseenter.hoverIntent":s,"mouseleave.hoverIntent":s},a.selector)}}),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(t.jQuery)}(this,function(p){"use strict";var n="vide",s={volume:1,playbackRate:1,muted:!0,loop:!0,playsinline:"",autoplay:!0,position:"50% 50%",posterType:"detect",resizing:!0,bgColor:"transparent",className:""},f="Not implemented";function o(t){var e,i,n,s,o,r,a,l={};for(a=0,r=(o=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(",")).length;a<r&&(-1===(i=o[a]).search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));a++)e=i.indexOf(":"),n=i.substring(0,e),(s=i.substring(e+1))||(s=void 0),"string"==typeof s&&(s="true"===s||"false"!==s&&s),"string"==typeof s&&(s=isNaN(s)?s:+s),l[n]=s;return null==n&&null==s?t:l}function r(t,e,i){if(this.$element=p(t),"string"==typeof e&&(e=o(e)),i?"string"==typeof i&&(i=o(i)):i={},"string"==typeof e)e=e.replace(/\.\w*$/,"");else if("object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&(e[n]=e[n].replace(/\.\w*$/,""));this.settings=p.extend({},s,i),this.path=e;try{this.init()}catch(t){if(t.message!==f)throw t}}r.prototype.init=function(){var t,e,i,n,s,o=this,r=o.path,a=r,l="",c=o.$element,h=o.settings,d=function(t){var e,i,n,s=(t=""+t).split(/\s+/),o="50%",r="50%";for(n=0,e=s.length;n<e;n++)"left"===(i=s[n])?o="0%":"right"===i?o="100%":"top"===i?r="0%":"bottom"===i?r="100%":"center"===i?0===n?o="50%":r="50%":0===n?o=i:r=i;return{x:o,y:r}}(h.position),u=h.posterType;e=o.$wrapper=p("<div>").addClass(h.className).css({position:"absolute","z-index":0,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-color":h.bgColor,"background-repeat":"no-repeat","background-position":d.x+" "+d.y}),"object"==typeof r&&(r.poster?a=r.poster:r.mp4?a=r.mp4:r.webm?a=r.webm:r.ogv&&(a=r.ogv)),"detect"===u?(n=function(t){e.css("background-image","url("+t+")")},s=function(){n(this.src)},p('<img src="'+(i=a)+'.gif">').on("load",s),p('<img src="'+i+'.jpg">').on("load",s),p('<img src="'+i+'.jpeg">').on("load",s),p('<img src="'+i+'.png">').on("load",s)):"none"!==u&&e.css("background-image","url("+a+"."+u+")"),"static"===c.css("position")&&c.css("position","relative"),c.prepend(e),t=o.$video="object"==typeof r?(r.mp4&&(l+='<source src="'+r.mp4+'.mp4" type="video/mp4">'),r.webm&&(l+='<source src="'+r.webm+'.webm" type="video/webm">'),r.ogv&&(l+='<source src="'+r.ogv+'.ogv" type="video/ogg">'),p("<video>"+l+"</video>")):p('<video><source src="'+r+'.mp4" type="video/mp4"><source src="'+r+'.webm" type="video/webm"><source src="'+r+'.ogv" type="video/ogg"></video>');try{t.prop({autoplay:h.autoplay,loop:h.loop,volume:h.volume,muted:h.muted,defaultMuted:h.muted,playbackRate:h.playbackRate,defaultPlaybackRate:h.playbackRate})}catch(t){throw new Error(f)}t.attr("playsinline",h.playsinline),t.css({margin:"auto",position:"absolute","z-index":0,top:d.y,left:d.x,"-webkit-transform":"translate(-"+d.x+", -"+d.y+")","-ms-transform":"translate(-"+d.x+", -"+d.y+")","-moz-transform":"translate(-"+d.x+", -"+d.y+")",transform:"translate(-"+d.x+", -"+d.y+")",visibility:"hidden",opacity:0}).one("canplaythrough.vide",function(){o.resize()}).one("canplay playing.vide",function(){t.css({visibility:"visible"}).animate({opacity:1}),e.css("background-image","none")}),c.on("resize.vide",function(){h.resizing&&o.resize()}),e.append(t)},r.prototype.getVideoObject=function(){return this.$video[0]},r.prototype.resize=function(){if(this.$video){var t=this.$wrapper,e=this.$video,i=e[0],n=i.videoHeight,s=i.videoWidth,o=t.height(),r=t.width();o/n<r/s?e.css({width:r+2,height:"auto"}):e.css({width:"auto",height:o+2})}},r.prototype.destroy=function(){delete p.vide.lookup[this.index],this.$video&&this.$video.off(n),this.$element.off(n).removeData(n),this.$wrapper.remove()},p.vide={lookup:[]},p.fn.vide=function(t,e){var i;return this.each(function(){(i=p.data(this,n))&&i.destroy(),(i=new r(this,t,e)).index=p.vide.lookup.push(i)-1,p.data(this,n,i)}),this},p(document).ready(function(){var t=p(window);t.on("resize.vide",function(){for(var t,e=p.vide.lookup.length,i=0;i<e;i++)(t=p.vide.lookup[i])&&t.settings.resizing&&t.resize()}),t.on("unload.vide",function(){return!1}),p(document).find("[data-vide-bg]").each(function(t,e){var i=p(e),n=i.data("vide-options"),s=i.data("vide-bg");i.vide(s,n)})})}),function(t,e){var i=function(n,h){"use strict";if(h.getElementsByClassName){var d,u,p=h.documentElement,o=n.Date,s=n.HTMLPictureElement,r="addEventListener",f="getAttribute",e=n[r],m=n.setTimeout,i=n.requestAnimationFrame||m,a=n.requestIdleCallback,g=/^picture$/i,l=["load","error","lazyincluded","_lazyloaded"],c={},v=Array.prototype.forEach,y=function(t,e){return c[e]||(c[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),c[e].test(t[f]("class")||"")&&c[e]},T=function(t,e){y(t,e)||t.setAttribute("class",(t[f]("class")||"").trim()+" "+e)},b=function(t,e){var i;(i=y(t,e))&&t.setAttribute("class",(t[f]("class")||"").replace(i," "))},_=function(e,i,t){var n=t?r:"removeEventListener";t&&_(e,i),l.forEach(function(t){e[n](t,i)})},w=function(t,e,i,n,s){var o=h.createEvent("CustomEvent");return i||(i={}),i.instance=d,o.initCustomEvent(e,!n,!s,i),t.dispatchEvent(o),o},S=function(t,e){var i;!s&&(i=n.picturefill||u.pf)?(e&&e.src&&!t[f]("srcset")&&t.setAttribute("srcset",e.src),i({reevaluate:!0,elements:[t]})):e&&e.src&&(t.src=e.src)},x=function(t,e){return(getComputedStyle(t,null)||{})[e]},C=function(t,e,i){for(i=i||t.offsetWidth;i<u.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},P=(wt=[],St=_t=[],(Ct=function(t,e){Tt&&!e?t.apply(this,arguments):(St.push(t),bt||(bt=!0,(h.hidden?m:i)(xt)))})._lsFlush=xt=function(){var t=St;for(St=_t.length?wt:_t,bt=!(Tt=!0);t.length;)t.shift()();Tt=!1},Ct),t=function(i,t){return t?function(){P(i)}:function(){var t=this,e=arguments;P(function(){i.apply(t,e)})}},E=function(t){var e,i,n=function(){e=null,t()},s=function(){var t=o.now()-i;t<99?m(s,99-t):(a||n)(n)};return function(){i=o.now(),e||(e=m(s,99))}};!function(){var t,e={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in u=n.lazySizesConfig||n.lazysizesConfig||{},e)t in u||(u[t]=e[t]);n.lazySizesConfig=u,m(function(){u.init&&k()})}();var A=(it=/^img$/i,nt=/^iframe$/i,st="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),at=-1,lt=function(t){rt--,t&&t.target&&_(t.target,lt),(!t||rt<0||!t.target)&&(rt=0)},ct=function(t,e){var i,n=t,s="hidden"==x(h.body,"visibility")||"hidden"!=x(t.parentNode,"visibility")&&"hidden"!=x(t,"visibility");for(F-=e,Y+=e,$-=e,W+=e;s&&(n=n.offsetParent)&&n!=h.body&&n!=p;)(s=0<(x(n,"opacity")||1))&&"visible"!=x(n,"overflow")&&(i=n.getBoundingClientRect(),s=W>i.left&&$<i.right&&Y>i.top-1&&F<i.bottom+1);return s},U=ht=function(){var t,e,i,n,s,o,r,a,l,c=d.elements;if((G=u.loadMode)&&rt<8&&(t=c.length)){e=0,at++,null==j&&("expand"in u||(u.expand=500<p.clientHeight&&500<p.clientWidth?500:370),V=u.expand,j=V*u.expFactor),ot<j&&rt<1&&2<at&&2<G&&!h.hidden?(ot=j,at=0):ot=1<G&&1<at&&rt<6?V:0;for(;e<t;e++)if(c[e]&&!c[e]._lazyRace)if(st)if((a=c[e][f]("data-expand"))&&(o=1*a)||(o=ot),l!==o&&(N=innerWidth+o*q,X=innerHeight+o,r=-1*o,l=o),i=c[e].getBoundingClientRect(),(Y=i.bottom)>=r&&(F=i.top)<=X&&(W=i.right)>=r*q&&($=i.left)<=N&&(Y||W||$||F)&&(u.loadHidden||"hidden"!=x(c[e],"visibility"))&&(B&&rt<3&&!a&&(G<3||at<4)||ct(c[e],o))){if(vt(c[e]),s=!0,9<rt)break}else!s&&B&&!n&&rt<4&&at<4&&2<G&&(L[0]||u.preloadAfterLoad)&&(L[0]||!a&&(Y||W||$||F||"auto"!=c[e][f](u.sizesAttr)))&&(n=L[0]||c[e]);else vt(c[e]);n&&!s&&vt(n)}},Z=rt=ot=0,Q=u.throttleDelay,J=u.ricTimeout,tt=function(){K=!1,Z=o.now(),U()},et=a&&49<J?function(){a(tt,{timeout:J}),J!==u.ricTimeout&&(J=u.ricTimeout)}:t(function(){m(tt)},!0),dt=function(t){var e;(t=!0===t)&&(J=33),K||(K=!0,(e=Q-(o.now()-Z))<0&&(e=0),t||e<9?et():m(et,e))},pt=t(ut=function(t){T(t.target,u.loadedClass),b(t.target,u.loadingClass),_(t.target,ft),w(t.target,"lazyloaded")}),ft=function(t){pt({target:t.target})},mt=function(t){var e,i=t[f](u.srcsetAttr);(e=u.customMedia[t[f]("data-media")||t[f]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)},gt=t(function(t,e,i,n,s){var o,r,a,l,c,h;(c=w(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(i?T(t,u.autosizesClass):t.setAttribute("sizes",n)),r=t[f](u.srcsetAttr),o=t[f](u.srcAttr),s&&(a=t.parentNode,l=a&&g.test(a.nodeName||"")),h=e.firesLoad||"src"in t&&(r||o||l),c={target:t},h&&(_(t,lt,!0),clearTimeout(z),z=m(lt,2500),T(t,u.loadingClass),_(t,ft,!0)),l&&v.call(a.getElementsByTagName("source"),mt),r?t.setAttribute("srcset",r):o&&!l&&(nt.test(t.nodeName)?function(e,i){try{e.contentWindow.location.replace(i)}catch(t){e.src=i}}(t,o):t.src=o),s&&(r||l)&&S(t,{src:o})),t._lazyRace&&delete t._lazyRace,b(t,u.lazyClass),P(function(){(!h||t.complete&&1<t.naturalWidth)&&(h?lt(c):rt--,ut(c))},!0)}),yt=function(){if(!B){if(o.now()-R<999)return void m(yt,999);var t=E(function(){u.loadMode=3,dt()});B=!0,u.loadMode=3,dt(),e("scroll",function(){3==u.loadMode&&(u.loadMode=2),t()},!0)}},{_:function(){R=o.now(),d.elements=h.getElementsByClassName(u.lazyClass),L=h.getElementsByClassName(u.lazyClass+" "+u.preloadClass),q=u.hFac,e("scroll",dt,!0),e("resize",dt,!0),n.MutationObserver?new MutationObserver(dt).observe(p,{childList:!0,subtree:!0,attributes:!0}):(p[r]("DOMNodeInserted",dt,!0),p[r]("DOMAttrModified",dt,!0),setInterval(dt,999)),e("hashchange",dt,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(t){h[r](t,dt,!0)}),/d$|^c/.test(h.readyState)?yt():(e("load",yt),h[r]("DOMContentLoaded",dt),m(yt,2e4)),d.elements.length?(ht(),P._lsFlush()):dt()},checkElems:dt,unveil:vt=function(t){var e,i=it.test(t.nodeName),n=i&&(t[f](u.sizesAttr)||t[f]("sizes")),s="auto"==n;(!s&&B||!i||!t[f]("src")&&!t.srcset||t.complete||y(t,u.errorClass)||!y(t,u.lazyClass))&&(e=w(t,"lazyunveilread").detail,s&&M.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,rt++,gt(t,e,s,n,i))}}),M=(D=t(function(t,e,i,n){var s,o,r;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),g.test(e.nodeName||""))for(s=e.getElementsByTagName("source"),o=0,r=s.length;o<r;o++)s[o].setAttribute("sizes",n);i.detail.dataAttr||S(t,i.detail)}),O=function(t,e,i){var n,s=t.parentNode;s&&(i=C(t,s,i),(n=w(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=n.detail.width)&&i!==t._lazysizesWidth&&D(t,s,n,i))},{_:function(){I=h.getElementsByClassName(u.autosizesClass),e("resize",H)},checkElems:H=E(function(){var t,e=I.length;if(e)for(t=0;t<e;t++)O(I[t])}),updateElem:O}),k=function(){k.i||(k.i=!0,M._(),A._())};return d={cfg:u,autoSizer:M,loader:A,init:k,uP:S,aC:T,rC:b,hC:y,fire:w,gW:C,rAF:P}}var I,D,O,H;var L,B,z,G,R,N,X,F,$,W,Y,V,j,q,U,K,Z,Q,J,tt,et,it,nt,st,ot,rt,at,lt,ct,ht,dt,ut,pt,ft,mt,gt,vt,yt;var Tt,bt,_t,wt,St,xt,Ct}(t,t.document);t.lazySizes=i,"object"==typeof module&&module.exports&&(module.exports=i)}(window),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(h){var s,i=0,a=Array.prototype.slice;h.cleanData=(s=h.cleanData,function(t){var e,i,n;for(n=0;null!=(i=t[n]);n++)try{(e=h._data(i,"events"))&&e.remove&&h(i).triggerHandler("remove")}catch(t){}s(t)}),h.widget=function(t,i,e){var n,s,o,r,a={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t,e||(e=i,i=h.Widget),h.expr[":"][n.toLowerCase()]=function(t){return!!h.data(t,n)},h[l]=h[l]||{},s=h[l][t],o=h[l][t]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new o(t,e)},h.extend(o,s,{version:e.version,_proto:h.extend({},e),_childConstructors:[]}),(r=new i).options=h.widget.extend({},r.options),h.each(e,function(e,n){return h.isFunction(n)?void(a[e]=(s=function(){return i.prototype[e].apply(this,arguments)},o=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t})):void(a[e]=n);var s,o}),o.prototype=h.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:n}),s?(h.each(s._childConstructors,function(t,e){var i=e.prototype;h.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete s._childConstructors):i._childConstructors.push(o),h.widget.bridge(t,o),o},h.widget.extend=function(t){for(var e,i,n=a.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&void 0!==i&&(t[e]=h.isPlainObject(i)?h.isPlainObject(t[e])?h.widget.extend({},t[e],i):h.widget.extend({},i):i);return t},h.widget.bridge=function(o,e){var r=e.prototype.widgetFullName||o;h.fn[o]=function(i){var t="string"==typeof i,n=a.call(arguments,1),s=this;return i=!t&&n.length?h.widget.extend.apply(null,[i].concat(n)):i,t?this.each(function(){var t,e=h.data(this,r);return"instance"===i?(s=e,!1):e?h.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:h.error("no such method '"+i+"' for "+o+" widget instance"):h.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):this.each(function(){var t=h.data(this,r);t?(t.option(i||{}),t._init&&t._init()):h.data(this,r,new e(i,this))}),s}},h.Widget=function(){},h.Widget._childConstructors=[],h.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,e){e=h(e||this.defaultElement||this)[0],this.element=h(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=h(),this.hoverable=h(),this.focusable=h(),e!==this&&(h.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=h(e.style?e.ownerDocument:e.document||e),this.window=h(this.document[0].defaultView||this.document[0].parentWindow)),this.options=h.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:h.noop,_getCreateEventData:h.noop,_create:h.noop,_init:h.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(h.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:h.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return h.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=h.widget.extend({},this.options[t]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(r,a,t){var l,c=this;"boolean"!=typeof r&&(t=a,a=r,r=!1),t?(a=l=h(a),this.bindings=this.bindings.add(a)):(t=a,a=this.element,l=this.widget()),h.each(t,function(t,e){function i(){return r||!0!==c.options.disabled&&!h(this).hasClass("ui-state-disabled")?("string"==typeof e?c[e]:e).apply(c,arguments):void 0}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||h.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+c.eventNamespace,o=n[2];o?l.delegate(o,s,i):a.bind(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e),this.bindings=h(this.bindings.not(t).get()),this.focusable=h(this.focusable.not(t).get()),this.hoverable=h(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){h(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){h(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){h(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){h(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,e,i){var n,s,o=this.options[t];if(i=i||{},(e=h.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!(h.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},h.each({show:"fadeIn",hide:"fadeOut"},function(o,r){h.Widget.prototype["_"+o]=function(e,t,i){"string"==typeof t&&(t={effect:t});var n,s=t?!0===t||"number"==typeof t?r:t.effect||r:o;"number"==typeof(t=t||{})&&(t={duration:t}),n=!h.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&h.effects&&h.effects.effect[s]?e[o](t):s!==o&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){h(this)[o](),i&&i.call(e[0]),t()})}}),h.widget}),function(l){"use strict";l.widget("aerolab.midnight",{options:{headerClass:"midnightHeader",innerClass:"midnightInner",defaultClass:"default",classPrefix:"",sectionSelector:"midnight"},_headers:{},_headerInfo:{top:0,height:0},_$sections:[],_sections:[],_scrollTop:0,_documentHeight:0,_transformMode:!1,refresh:function(){this._headerInfo={top:this.element.position().top,height:this.element.outerHeight()},this._$sections=l("[data-"+this.options.sectionSelector+"]:not(:hidden)"),this._sections=[],this._setupHeaders(),this.recalculate()},_create:function(){var t=this;this._scrollTop=window.pageYOffset||document.documentElement.scrollTop,this._documentHeight=l(document).height(),this._headers={},this._transformMode=this._getSupportedTransform(),this.refresh(),setInterval(function(){t._recalculateSections()},1e3),t.recalculate(),l(window).resize(function(){t.recalculate()}),this._updateHeadersLoop()},recalculate:function(){this._recalculateSections(),this._updateHeaderHeight(),this._recalculateHeaders(),this._updateHeaders()},_getSupportedTransform:function(){for(var t=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],e=0;e<t.length;e++)if(void 0!==document.createElement("div").style[t[e]])return t[e];return!1},_getContainerHeight:function(){var t=this.element.find("> ."+this.options.headerClass),i=0,n=0,s=this;return t.length?t.each(function(){var t=l(this),e=t.find("> ."+s.options.innerClass);e.length?(e.css("bottom","auto").css("overflow","auto"),n=e.outerHeight(),e.css("bottom","0"),e.css("bottom","auto").css("overflow","hidden")):(t.css("bottom","auto"),n=t.outerHeight(),t.css("bottom","0")),i=i<n?n:i}):i=n=this.element.outerHeight(),i},_setupHeaders:function(){var n=this;this._headers[this.options.defaultClass]={};for(var t=0;t<this._$sections.length;t++){"string"==typeof(s=l(this._$sections[t]).data(this.options.sectionSelector))&&(""!==(s=s.trim())&&(n._headers[s]={}))}this.element.css("padding-top"),this.element.css("padding-right"),this.element.css("padding-bottom"),this.element.css("padding-left");this.element.css({position:"fixed",top:this._headerInfo.top,left:0,right:0}),this._updateHeaderHeight(),(e=this.element.find("> ."+this.options.headerClass)).length?e.filter("."+this.options.defaultClass).length||e.filter("."+this.options.headerClass+":first").clone(!0,!0).attr("class",this.options.headerClass+" "+this.options.defaultClass):this.element.wrapInner('<div class="'+this.options.headerClass+" "+this.options.defaultClass+'"></div>');var e,i=(e=this.element.find("> ."+this.options.headerClass)).filter("."+this.options.defaultClass).clone(!0,!0);for(var s in this._headers)if(this._headers.hasOwnProperty(s)&&void 0===this._headers[s].element){var o=e.filter("."+s);o.length?this._headers[s].element=o:this._headers[s].element=i.clone(!0,!0).removeClass(this.options.defaultClass).addClass(s).appendTo(this.element);var r={position:"absolute",overflow:"hidden",top:0,left:0,right:0,bottom:0};this._headers[s].element.css(r),!1!==this._transformMode&&this._headers[s].element.css(this._transformMode,"translateZ(0)"),this._headers[s].element.find("> ."+this.options.innerClass).length||this._headers[s].element.wrapInner('<div class="'+this.options.innerClass+'"></div>'),this._headers[s].inner=this._headers[s].element.find("> ."+this.options.innerClass),this._headers[s].inner.css(r),!1!==this._transformMode&&this._headers[s].inner.css(this._transformMode,"translateZ(0)"),this._headers[s].from="",this._headers[s].progress=0}if(l(".menu-item-has-children",this.element).length){var a=_.pluck(this._headers,"element");l.each(a,function(){var t=l(this);t.hover(function(){t.addClass("overflow-enabled")},function(){t.removeClass("overflow-enabled")})})}e.each(function(){var t=l(this),e=!1;for(var i in n._headers)n._headers.hasOwnProperty(i)&&t.hasClass(i)&&(e=!0);t.find("> ."+n.options.innerClass).length||t.wrapInner('<div class="'+n.options.innerClass+'"></div>'),e?t.show():t.hide()})},_recalculateHeaders:function(){this._scrollTop=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop,this._scrollTop=Math.max(this._scrollTop,0),this._scrollTop=Math.min(this._scrollTop,this._documentHeight);var t=this._headerInfo.height,e=this._scrollTop+0,i=e+t;if("function"==typeof window.getComputedStyle){var n=window.getComputedStyle(this.element[0],null),s=n.top,o=0,r=0;if(!1!==this._transformMode&&"string"==typeof n.transform){var a=n.transform.match(/(-?[0-9\.]+)/g);null!==a&&6<=a.length&&!isNaN(parseFloat(a[5]))&&(r=parseFloat(a[5]))}0<=n.top.indexOf("%")&&!isNaN(parseFloat(s))?o=window.innerHeight*(parseFloat(s)/100):0<=s.indexOf("px")&&!isNaN(parseFloat(s))&&(o=parseFloat(n.top)),e+=o+r,i+=o+r}for(var l in this._headers)this._headers.hasOwnProperty(l)&&(this._headers[l].from="",this._headers[l].progress=0);for(var c=0;c<this._sections.length;c++)i>=this._sections[c].start&&e<=this._sections[c].end&&(this._headers[this._sections[c].className].visible=!0,e>=this._sections[c].start&&i<=this._sections[c].end?(this._headers[this._sections[c].className].from="top",this._headers[this._sections[c].className].progress+=1):i>this._sections[c].end&&e<this._sections[c].end?(this._headers[this._sections[c].className].from="top",this._headers[this._sections[c].className].progress=1-(i-this._sections[c].end)/t):i>this._sections[c].start&&e<this._sections[c].start&&("top"===this._headers[this._sections[c].className].from?this._headers[this._sections[c].className].progress+=(i-this._sections[c].start)/t:(this._headers[this._sections[c].className].from="bottom",this._headers[this._sections[c].className].progress=(i-this._sections[c].start)/t)))},_updateHeaders:function(){if(void 0!==this._headers[this.options.defaultClass]){var t=0,e="";for(var i in this._headers)this._headers.hasOwnProperty(i)&&""!==!this._headers[i].from&&(t+=this._headers[i].progress,e=i);for(var n in t<1&&(""===this._headers[this.options.defaultClass].from?(this._headers[this.options.defaultClass].from="top"===this._headers[e].from?"bottom":"top",this._headers[this.options.defaultClass].progress=1-t):this._headers[this.options.defaultClass].progress+=1-t),this._headers)if(this._headers.hasOwnProperty(n)&&""!==!this._headers[n].from){var s=100*(1-this._headers[n].progress);100<=s&&(s=110),s<=-100&&(s=-110),this._headers[n].element.hasClass("active")&&this._headers[n].element.removeClass("disable-pointers"),"top"===this._headers[n].from?!1!==this._transformMode?(this._headers[n].element.addClass("active"),this._headers[n].element[0].style[this._transformMode]="translateY(-"+s+"%) translateZ(0)",this._headers[n].inner[0].style[this._transformMode]="translateY(+"+s+"%) translateZ(0)"):(this._headers[n].element[0].style.top="-"+s+"%",this._headers[n].inner[0].style.top="+"+s+"%"):!1!==this._transformMode?(this._headers[n].element.removeClass("active"),this._headers[n].element.addClass("disable-pointers"),this._headers[n].element[0].style[this._transformMode]="translateY(+"+s+"%) translateZ(0)",this._headers[n].inner[0].style[this._transformMode]="translateY(-"+s+"%) translateZ(0)"):(this._headers[n].element[0].style.top="+"+s+"%",this._headers[n].inner[0].style.top="-"+s+"%")}}},_recalculateSections:function(){this._documentHeight=l(document).height(),this._sections=[];for(var t=0;t<this._$sections.length;t++){var e=l(this._$sections[t]);this._sections.push({element:e,className:e.data(this.options.sectionSelector),start:e.offset().top,end:e.offset().top+e.outerHeight()})}},_updateHeaderHeight:function(){this._headerInfo.height=this._getContainerHeight(),this.element.css("height",this._headerInfo.height+"px")},_updateHeadersLoop:function(){var t=this;this._requestAnimationFrame(function(){t._updateHeadersLoop()}),this._recalculateHeaders(),this._updateHeaders()},_requestAnimationFrame:function(t){var e=e||window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};e(t)}})}(jQuery),function(t,d){(function(t){if("undefined"!=typeof module&&module.exports)return function(t){module.exports=t()};if("function"==typeof define&&define.amd)return define;if("undefined"!=typeof window)return function(t){window.MobileDetect=t()};throw new Error("unknown environment")})()(function(){"use strict";function e(t,e){return null!=t&&null!=e&&t.toLowerCase()===e.toLowerCase()}function i(t,e){var i,n,s=t.length;if(!s||!e)return!1;for(i=e.toLowerCase(),n=0;n<s;++n)if(i===t[n].toLowerCase())return!0;return!1}function a(t){for(var e in t)h.call(t,e)&&(t[e]=new RegExp(t[e],"i"))}function r(t,e){this.ua=(t||"").substr(0,500),this._cache={},this.maxPhoneWidth=e||600}var l,c={mobileDetectRules:{phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT9a01|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052",Samsung:"\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323|M257)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",NokiaLumia:"Lumia [0-9]{3,4}",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo (3DS|Switch)",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",GoogleTablet:"Android.*Pixel C",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome/[0-9.]+ (?!Mobile)",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-8703F|Tab2A7-10F",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",NokiaLumiaTablet:"Lumia 2520",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)|Qualcore 1027",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9|TECNO DP8D",JXDTablet:"Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",VerizonTablet:"QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",AocTablet:"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",MpmanTablet:"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",KocasoTablet:"\\b(TB-1207)\\b",HisenseTablet:"\\b(F5281|E2371)\\b",Hudl:"Hudl HT7S3|Hudl 2",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad|AppleCoreMedia",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",Edge:"Mobile Safari/[.0-9]* Edge",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",PaleMoon:"Android.*PaleMoon|Mobile.*PaleMoon"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:["Firefox/[VER]","FxiOS/[VER]"],Fennec:"Fennec/[VER]",Edge:"Edge/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]",UCBrowser:["UCWEB[VER]","UC.*Browser/[VER]"],MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",SamsungBrowser:"SamsungBrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",PaleMoon:"PaleMoon/[VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",Goanna:"Goanna/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|Nintendo Switch|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},detectMobileBrowsers:{fullPattern:/(android|bb\d+|meego).+mobile|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|xda|xiino/i,shortPattern:/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,tabletPattern:/android|ipad|playbook|silk/i}},h=Object.prototype.hasOwnProperty;return c.FALLBACK_PHONE="UnknownPhone",c.FALLBACK_TABLET="UnknownTablet",c.FALLBACK_MOBILE="UnknownMobile",l="isArray"in Array?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},function(){var t,e,i,n,s,o,r=c.mobileDetectRules;for(t in r.props)if(h.call(r.props,t)){for(e=r.props[t],l(e)||(e=[e]),s=e.length,n=0;n<s;++n)0<=(o=(i=e[n]).indexOf("[VER]"))&&(i=i.substring(0,o)+"([\\w._\\+]+)"+i.substring(o+5)),e[n]=new RegExp(i,"i");r.props[t]=e}a(r.oss),a(r.phones),a(r.tablets),a(r.uas),a(r.utils),r.oss0={WindowsPhoneOS:r.oss.WindowsPhoneOS,WindowsMobileOS:r.oss.WindowsMobileOS}}(),c.findMatch=function(t,e){for(var i in t)if(h.call(t,i)&&t[i].test(e))return i;return null},c.findMatches=function(t,e){var i=[];for(var n in t)h.call(t,n)&&t[n].test(e)&&i.push(n);return i},c.getVersionStr=function(t,e){var i,n,s,o,r=c.mobileDetectRules.props;if(h.call(r,t))for(s=(i=r[t]).length,n=0;n<s;++n)if(null!==(o=i[n].exec(e)))return o[1];return null},c.getVersion=function(t,e){var i=c.getVersionStr(t,e);return i?c.prepareVersionNo(i):NaN},c.prepareVersionNo=function(t){var e;return 1===(e=t.split(/[a-z._ \/\-]/i)).length&&(t=e[0]),1<e.length&&(t=e[0]+".",e.shift(),t+=e.join("")),Number(t)},c.isMobileFallback=function(t){return c.detectMobileBrowsers.fullPattern.test(t)||c.detectMobileBrowsers.shortPattern.test(t.substr(0,4))},c.isTabletFallback=function(t){return c.detectMobileBrowsers.tabletPattern.test(t)},c.prepareDetectionCache=function(t,e,i){var n,s,o;if(t.mobile===d)return(s=c.findMatch(c.mobileDetectRules.tablets,e))?(t.mobile=t.tablet=s,void(t.phone=null)):(n=c.findMatch(c.mobileDetectRules.phones,e))?(t.mobile=t.phone=n,void(t.tablet=null)):void(c.isMobileFallback(e)?(o=r.isPhoneSized(i))===d?(t.mobile=c.FALLBACK_MOBILE,t.tablet=t.phone=null):o?(t.mobile=t.phone=c.FALLBACK_PHONE,t.tablet=null):(t.mobile=t.tablet=c.FALLBACK_TABLET,t.phone=null):c.isTabletFallback(e)?(t.mobile=t.tablet=c.FALLBACK_TABLET,t.phone=null):t.mobile=t.tablet=t.phone=null)},c.mobileGrade=function(t){var e=null!==t.mobile();return t.os("iOS")&&4.3<=t.version("iPad")||t.os("iOS")&&3.1<=t.version("iPhone")||t.os("iOS")&&3.1<=t.version("iPod")||2.1<t.version("Android")&&t.is("Webkit")||7<=t.version("Windows Phone OS")||t.is("BlackBerry")&&6<=t.version("BlackBerry")||t.match("Playbook.*Tablet")||1.4<=t.version("webOS")&&t.match("Palm|Pre|Pixi")||t.match("hp.*TouchPad")||t.is("Firefox")&&12<=t.version("Firefox")||t.is("Chrome")&&t.is("AndroidOS")&&4<=t.version("Android")||t.is("Skyfire")&&4.1<=t.version("Skyfire")&&t.is("AndroidOS")&&2.3<=t.version("Android")||t.is("Opera")&&11<t.version("Opera Mobi")&&t.is("AndroidOS")||t.is("MeeGoOS")||t.is("Tizen")||t.is("Dolfin")&&2<=t.version("Bada")||(t.is("UC Browser")||t.is("Dolfin"))&&2.3<=t.version("Android")||t.match("Kindle Fire")||t.is("Kindle")&&3<=t.version("Kindle")||t.is("AndroidOS")&&t.is("NookTablet")||11<=t.version("Chrome")&&!e||5<=t.version("Safari")&&!e||4<=t.version("Firefox")&&!e||7<=t.version("MSIE")&&!e||10<=t.version("Opera")&&!e?"A":t.os("iOS")&&t.version("iPad")<4.3||t.os("iOS")&&t.version("iPhone")<3.1||t.os("iOS")&&t.version("iPod")<3.1||t.is("Blackberry")&&5<=t.version("BlackBerry")&&t.version("BlackBerry")<6||5<=t.version("Opera Mini")&&t.version("Opera Mini")<=6.5&&(2.3<=t.version("Android")||t.is("iOS"))||t.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||11<=t.version("Opera Mobi")&&t.is("SymbianOS")?"B":(t.version("BlackBerry")<5||t.match("MSIEMobile|Windows CE.*Mobile")||t.version("Windows Mobile"),"C")},c.detectOS=function(t){return c.findMatch(c.mobileDetectRules.oss0,t)||c.findMatch(c.mobileDetectRules.oss,t)},c.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},r.prototype={constructor:r,mobile:function(){return c.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return c.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return c.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===d&&(this._cache.userAgent=c.findMatch(c.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===d&&(this._cache.userAgents=c.findMatches(c.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===d&&(this._cache.os=c.detectOS(this.ua)),this._cache.os},version:function(t){return c.getVersion(t,this.ua)},versionStr:function(t){return c.getVersionStr(t,this.ua)},is:function(t){return i(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||i(c.findMatches(c.mobileDetectRules.utils,this.ua),t)},match:function(t){return t instanceof RegExp||(t=new RegExp(t,"i")),t.test(this.ua)},isPhoneSized:function(t){return r.isPhoneSized(t||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===d&&(this._cache.grade=c.mobileGrade(this)),this._cache.grade}},r.isPhoneSized="undefined"!=typeof window&&window.screen?function(t){return t<0?d:c.getDeviceSmallerSide()<=t}:function(){},r._impl=c,r.version="1.4.2 2018-06-10",r})}(),function(){var l,t,r,c,A,s,h,u,n,p,i,e,f,M,o,a,d,m,g,v=[].slice;l=/^\(?([^)]*)\)?(?:(.)(d+))?$/,e=document.createElement("div").style,c=null!=e.transition||null!=e.webkitTransition||null!=e.mozTransition||null!=e.oTransition,p=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,s=function(t){var e;return(e=document.createElement("div")).innerHTML=t,e.children[0]},n=function(t,e){return t.className=t.className.replace(new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi")," ")},A=function(t,e){return n(t,e),t.className+=" "+e},f=function(t,e){var i;return null!=document.createEvent?((i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),t.dispatchEvent(i)):void 0},u=function(){var t,e;return null!=(t=null!=(e=window.performance)&&"function"==typeof e.now?e.now():void 0)?t:+new Date},i=function(t,e){return null==e&&(e=0),e?(t*=Math.pow(10,e),t+=.5,t=Math.floor(t),t/=Math.pow(10,e)):Math.round(t)},M=function(t){return t<0?Math.ceil(t):Math.floor(t)},a=!(h=function(t){return t-i(t)}),(o=function(){var t,e,i,n,s;if(!a&&null!=window.jQuery){for(a=!0,s=[],e=0,i=(n=["html","text"]).length;e<i;e++)t=n[e],s.push(function(t){var i;return i=window.jQuery.fn[t],window.jQuery.fn[t]=function(t){var e;return null==t||null==(null!=(e=this[0])?e.odometer:void 0)?i.apply(this,arguments):this[0].odometer.update(t)}}(t));return s}})(),setTimeout(o,0),(r=function(){function d(t){var e,i,n,s,o,r,a,l,c,h=this;if(this.options=t,this.el=this.options.el,null!=this.el.odometer)return this.el.odometer;for(e in this.el.odometer=this,a=d.options)n=a[e],null==this.options[e]&&(this.options[e]=n);null==(s=this.options).duration&&(s.duration=2e3),this.MAX_VALUES=this.options.duration/(1e3/30)/2|0,this.resetFormat(),this.value=this.cleanValue(null!=(l=this.options.value)?l:""),this.renderInside(),this.render();try{for(o=0,r=(c=["innerHTML","innerText","textContent"]).length;o<r;o++)i=c[o],null!=this.el[i]&&function(e){Object.defineProperty(h.el,e,{get:function(){var t;return"innerHTML"===e?h.inside.outerHTML:null!=(t=h.inside.innerText)?t:h.inside.textContent},set:function(t){return h.update(t)}})}(i)}catch(t){t,this.watchForMutations()}}return d.prototype.renderInside=function(){return this.inside=document.createElement("div"),this.inside.className="odometer-inside",this.el.innerHTML="",this.el.appendChild(this.inside)},d.prototype.watchForMutations=function(){var i=this;if(null!=t)try{return null==this.observer&&(this.observer=new t(function(t){var e;return e=i.el.innerText,i.renderInside(),i.render(i.value),i.update(e)})),this.watchMutations=!0,this.startWatchingMutations()}catch(t){t}},d.prototype.startWatchingMutations=function(){return this.watchMutations?this.observer.observe(this.el,{childList:!0}):void 0},d.prototype.stopWatchingMutations=function(){var t;return null!=(t=this.observer)?t.disconnect():void 0},d.prototype.cleanValue=function(t){var e;return"string"==typeof t&&(t=(t=(t=t.replace(null!=(e=this.format.radix)?e:".","<radix>")).replace(/[.,]/g,"")).replace("<radix>","."),t=parseFloat(t,10)||0),i(t,this.format.precision)},d.prototype.bindTransitionEnd=function(){var t,e,i,n,s,o,r=this;if(!this.transitionEndBound){for(this.transitionEndBound=!0,e=!1,o=[],i=0,n=(s="transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd".split(" ")).length;i<n;i++)t=s[i],o.push(this.el.addEventListener(t,function(){return e||(e=!0,setTimeout(function(){return r.render(),e=!1,f(r.el,"odometerdone")},0)),!0},!1));return o}},d.prototype.resetFormat=function(){var t,e,i,n,s,o,r,a;if((t=null!=(r=this.options.format)?r:"(,ddd).dd")||(t="d"),!(i=l.exec(t)))throw new Error("Odometer: Unparsable digit format");return o=(a=i.slice(1,4))[0],s=a[1],n=(null!=(e=a[2])?e.length:void 0)||0,this.format={repeating:o,radix:s,precision:n}},d.prototype.render=function(t){var e,i,n,s,o,r,a;for(null==t&&(t=this.value),this.stopWatchingMutations(),this.resetFormat(),this.inside.innerHTML="",o=this.options.theme,s=[],r=0,a=(e=this.el.className.split(" ")).length;r<a;r++)(i=e[r]).length&&((n=/^odometer-theme-(.+)$/.exec(i))?o=n[1]:/^odometer(-|$)/.test(i)||s.push(i));return s.push("odometer"),c||s.push("odometer-no-transitions"),o?s.push("odometer-theme-"+o):s.push("odometer-auto-theme"),this.el.className=s.join(" "),this.ribbons={},this.formatDigits(t),this.startWatchingMutations()},d.prototype.formatDigits=function(t){var e,i,n,s,o,r,a,l,c;if(this.digits=[],this.options.formatFunction)for(s=0,r=(l=this.options.formatFunction(t).split("").reverse()).length;s<r;s++)(i=l[s]).match(/0-9/)?((e=this.renderDigit()).querySelector(".odometer-value").innerHTML=i,this.digits.push(e),this.insertDigit(e)):this.addSpacer(i);else for(n=!this.format.precision||!h(t)||!1,o=0,a=(c=t.toString().split("").reverse()).length;o<a;o++)"."===(e=c[o])&&(n=!0),this.addDigit(e,n)},d.prototype.update=function(t){var e,i=this;return(e=(t=this.cleanValue(t))-this.value)?(n(this.el,"odometer-animating-up odometer-animating-down odometer-animating"),A(this.el,0<e?"odometer-animating-up":"odometer-animating-down"),this.stopWatchingMutations(),this.animate(t),this.startWatchingMutations(),setTimeout(function(){return i.el.offsetHeight,A(i.el,"odometer-animating")},0),this.value=t):void 0},d.prototype.renderDigit=function(){return s('<span class="odometer-digit"><span class="odometer-digit-spacer">8</span><span class="odometer-digit-inner"><span class="odometer-ribbon"><span class="odometer-ribbon-inner"><span class="odometer-value"></span></span></span></span></span>')},d.prototype.insertDigit=function(t,e){return null!=e?this.inside.insertBefore(t,e):this.inside.children.length?this.inside.insertBefore(t,this.inside.children[0]):this.inside.appendChild(t)},d.prototype.addSpacer=function(t,e,i){var n;return(n=s('<span class="odometer-formatting-mark"></span>')).innerHTML=t,i&&A(n,i),this.insertDigit(n,e)},d.prototype.addDigit=function(t,e){var i,n,s,o;if(null==e&&(e=!0),"-"===t)return this.addSpacer(t,null,"odometer-negation-mark");if("."===t)return this.addSpacer(null!=(o=this.format.radix)?o:".",null,"odometer-radix-mark");if(e)for(s=!1;;){if(!this.format.repeating.length){if(s)throw new Error("Bad odometer format without digits");this.resetFormat(),s=!0}if(i=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),"d"===i)break;this.addSpacer(i)}return(n=this.renderDigit()).querySelector(".odometer-value").innerHTML=t,this.digits.push(n),this.insertDigit(n)},d.prototype.animate=function(t){return c&&"count"!==this.options.animation?this.animateSlide(t):this.animateCount(t)},d.prototype.animateCount=function(i){var n,s,o,r,a,l=this;if(s=+i-this.value)return r=o=u(),n=this.value,(a=function(){var t,e;return u()-r>l.options.duration?(l.value=i,l.render(),void f(l.el,"odometerdone")):(50<(t=u()-o)&&(o=u(),e=t/l.options.duration,n+=s*e,l.render(Math.round(n))),null!=p?p(a):setTimeout(a,50))})()},d.prototype.getDigitCount=function(){var t,e,i,n,s,o;for(t=s=0,o=(n=1<=arguments.length?v.call(arguments,0):[]).length;s<o;t=++s)i=n[t],n[t]=Math.abs(i);return e=Math.max.apply(Math,n),Math.ceil(Math.log(e+1)/Math.log(10))},d.prototype.getFractionalDigitCount=function(){var t,e,i,n,s,o,r;for(e=/^\-?\d*\.(\d*?)0*$/,t=o=0,r=(s=1<=arguments.length?v.call(arguments,0):[]).length;o<r;t=++o)n=s[t],s[t]=n.toString(),i=e.exec(s[t]),s[t]=null==i?0:i[1].length;return Math.max.apply(Math,s)},d.prototype.resetDigits=function(){return this.digits=[],this.ribbons=[],this.inside.innerHTML="",this.resetFormat()},d.prototype.animateSlide=function(t){var e,i,n,s,o,r,a,l,c,h,d,u,p,f,m,g,v,y,T,b,_,w,S,x,C,P,E;if(g=this.value,(l=this.getFractionalDigitCount(g,t))&&(t*=Math.pow(10,l),g*=Math.pow(10,l)),n=t-g){for(this.bindTransitionEnd(),s=this.getDigitCount(g,t),o=[],d=T=e=0;0<=s?T<s:s<T;d=0<=s?++T:--T){if(v=M(g/Math.pow(10,s-d-1)),r=(a=M(t/Math.pow(10,s-d-1)))-v,Math.abs(r)>this.MAX_VALUES){for(h=[],u=r/(this.MAX_VALUES+this.MAX_VALUES*e*.5),i=v;0<r&&i<a||r<0&&a<i;)h.push(Math.round(i)),i+=u;h[h.length-1]!==a&&h.push(a),e++}else h=function(){E=[];for(var t=v;v<=a?t<=a:a<=t;v<=a?t++:t--)E.push(t);return E}.apply(this);for(d=b=0,w=h.length;b<w;d=++b)c=h[d],h[d]=Math.abs(c%10);o.push(h)}for(this.resetDigits(),d=_=0,S=(P=o.reverse()).length;_<S;d=++_)for(h=P[d],this.digits[d]||this.addDigit(" ",l<=d),null==(y=this.ribbons)[d]&&(y[d]=this.digits[d].querySelector(".odometer-ribbon-inner")),this.ribbons[d].innerHTML="",n<0&&(h=h.reverse()),p=C=0,x=h.length;C<x;p=++C)c=h[p],(m=document.createElement("div")).className="odometer-value",m.innerHTML=c,this.ribbons[d].appendChild(m),p===h.length-1&&A(m,"odometer-last-value"),0===p&&A(m,"odometer-first-value");return v<0&&this.addDigit("-"),null!=(f=this.inside.querySelector(".odometer-radix-mark"))&&f.parent.removeChild(f),l?this.addSpacer(this.format.radix,this.digits[l-1],"odometer-radix-mark"):void 0}},d}()).options=null!=(m=window.odometerOptions)?m:{},setTimeout(function(){var t,e,i,n,s;if(window.odometerOptions){for(t in s=[],n=window.odometerOptions)e=n[t],s.push(null!=(i=r.options)[t]?(i=r.options)[t]:i[t]=e);return s}},0),r.init=function(){var t,e,i,n,s,o;if(null!=document.querySelectorAll){for(o=[],i=0,n=(e=document.querySelectorAll(r.options.selector||".odometer")).length;i<n;i++)t=e[i],o.push(t.odometer=new r({el:t,value:null!=(s=t.innerText)?s:t.textContent}));return o}},null!=(null!=(g=document.documentElement)?g.doScroll:void 0)&&null!=document.createEventObject?(d=document.onreadystatechange,document.onreadystatechange=function(){return"complete"===document.readyState&&!1!==r.options.auto&&r.init(),null!=d?d.apply(this,arguments):void 0}):document.addEventListener("DOMContentLoaded",function(){return!1!==r.options.auto?r.init():void 0},!1),"function"==typeof define&&define.amd?define([],function(){return r}):"undefined"!=typeof exports&&null!==exports?module.exports=r:window.Odometer=r}.call(this),function(t,e){"function"==typeof define&&define.amd?define("packery/js/rect",e):"object"==typeof module&&module.exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){function a(t){for(var e in a.defaults)this[e]=a.defaults[e];for(e in t)this[e]=t[e]}a.defaults={x:0,y:0,width:0,height:0};var t=a.prototype;return t.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},t.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,n=t.x+t.width,s=t.y+t.height;return this.x<n&&e>t.x&&this.y<s&&i>t.y},t.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var e,i=[],n=this.x+this.width,s=this.y+this.height,o=t.x+t.width,r=t.y+t.height;return this.y<t.y&&(e=new a({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),i.push(e)),o<n&&(e=new a({x:o,y:this.y,width:n-o,height:this.height}),i.push(e)),r<s&&(e=new a({x:this.x,y:r,width:this.width,height:s-r}),i.push(e)),this.x<t.x&&(e=new a({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),i.push(e)),i},t.canFit=function(t){return this.width>=t.width&&this.height>=t.height},a}),function(t,e){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else if("object"==typeof module&&module.exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(e){function t(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=t.prototype;i.reset=function(){this.spaces=[];var t=new e({x:0,y:0,width:this.width,height:this.height});this.spaces.push(t),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},i.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},i.columnPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.x<=t.x&&i.x+i.width>=t.x+t.width&&i.height>=t.height-.01){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.y<=t.y&&i.y+i.height>=t.y+t.height&&i.width>=t.width-.01){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var n=this.spaces[i],s=n.getMaximalFreeRects(t);s?e.push.apply(e,s):e.push(n)}this.spaces=e,this.mergeSortSpaces()},i.mergeSortSpaces=function(){t.mergeRects(this.spaces),this.spaces.sort(this.sorter)},i.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},t.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var n=0,s=t[e+n];s;){if(s==i)n++;else{if(s.contains(i)){t.splice(e,1),i=t[e];continue t}i.contains(s)?t.splice(e+n,1):n++}s=t[e+n]}i=t[++e]}return t};var n={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return t}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("./rect")):t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){var i="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",n=function(){t.Item.apply(this,arguments)},s=n.prototype=Object.create(t.Item.prototype),o=s._create;s._create=function(){o.call(this),this.rect=new e};var r=s.moveTo;return s.moveTo=function(t,e){var i=Math.abs(this.position.x-t),n=Math.abs(this.position.y-e);return this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&i<1&&n<1?void this.goTo(t,e):void r.apply(this,arguments)},s.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&i&&(this.element.style[i]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},s.disablePlacing=function(){this.isPlacing=!1},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},s.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||((t=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},s.positionDropPlaceholder=function(){this.dropPlaceholder.style[i]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},s.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},n}),function(t,e){"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(h,t,p,e,i){function n(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function s(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}p.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var o=t.create("packery");o.Item=i;var r=o.prototype;r._create=function(){t.prototype._create.call(this),this.packer=new e,this.shiftPacker=new e,this.isEnabled=!0,this.dragItemCount=0;var i=this;this.handleDraggabilly={dragStart:function(){i.itemDragStart(this.element)},dragMove:function(){i.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){i.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(t,e){e&&i.itemDragStart(t.currentTarget)},drag:function(t,e){e&&i.itemDragMove(t.currentTarget,e.position.left,e.position.top)},stop:function(t,e){e&&i.itemDragEnd(t.currentTarget)}}},r._resetLayout=function(){var t,e,i;this.getSize(),this._getMeasurements(),i=this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||0<this.dragItemCount){var e=this._getPackMethod();this.packer[e](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},r.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(t,e){var i=h(t),n=i.outerWidth,s=i.outerHeight;(n||s)&&(n=this._applyGridGutter(n,this.columnWidth),s=this._applyGridGutter(s,this.rowHeight)),e.width=Math.min(n,this.packer.width),e.height=Math.min(s,this.packer.height)},r._applyGridGutter=function(t,e){if(!e)return t+this.gutter;var i=t%(e+=this.gutter);return Math[i&&i<1?"round":"ceil"](t/e)*e},r._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},r._manageStamp=function(t){var e,i=this.getItem(t);if(i&&i.isPlacing)e=i.rect;else{var n=this._getElementOffset(t);e=new p({x:this._getOption("originLeft")?n.left:n.right,y:this._getOption("originTop")?n.top:n.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?s:n;this.items.sort(t)},r.fit=function(t,e,i){var n=this.getItem(t);n&&(this.stamp(n.element),n.enablePlacing(),this.updateShiftTargets(n),e=void 0===e?n.rect.x:e,i=void 0===i?n.rect.y:i,this.shift(n,e,i),this._bindFitEvents(n),n.moveTo(n.rect.x,n.rect.y),this.shiftLayout(),this.unstamp(n.element),this.sortItemsByPosition(),n.disablePlacing())},r._bindFitEvents=function(t){function e(){2==++n&&i.dispatchEvent("fitComplete",null,[t])}var i=this,n=0;t.once("layout",e),this.once("layoutComplete",e)},r.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},r.needsResizeLayout=function(){var t=h(this.element),e=this._getOption("horizontal")?"innerHeight":"innerWidth";return t[e]!=this.size[e]},r.resizeShiftPercentLayout=function(){var t=this._getItemsForLayout(this.items),e=this._getOption("horizontal"),i=e?"y":"x",n=e?"height":"width",s=e?"rowHeight":"columnWidth",o=e?"innerHeight":"innerWidth",r=this[s];if(r=r&&r+this.gutter){this._getMeasurements();var a=this[s]+this.gutter;t.forEach(function(t){var e=Math.round(t.rect[i]/r);t.rect[i]=e*a})}else{var l=h(this.element)[o]+this.gutter,c=this.packer[n];t.forEach(function(t){t.rect[i]=t.rect[i]/c*l})}this.shiftLayout()},r.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},r.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var s=this._getOption("originLeft"),o=this._getOption("originTop");this.stamps.forEach(function(t){var e=this.getItem(t);if(!e||!e.isPlacing){var i=this._getElementOffset(t),n=new p({x:s?i.left:i.right,y:o?i.top:i.bottom});this._setRectSize(t,n),this.shiftPacker.placed(n)}},this);var l=this._getOption("horizontal"),e=l?"rowHeight":"columnWidth",c=l?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var h,d=this[e];if(d=d&&d+this.gutter){var i=Math.ceil(t.rect[c]/d),n=Math.floor((this.shiftPacker[c]+this.gutter)/d);h=(n-i)*d;for(var r=0;r<n;r++)this._addShiftTarget(r*d,0,h)}else h=this.shiftPacker[c]+this.gutter-t.rect[c],this._addShiftTarget(0,0,h);var a=this._getItemsForLayout(this.items),u=this._getPackMethod();a.forEach(function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[u](e),this._addShiftTarget(e.x,e.y,h);var i=l?e.x+e.width:e.x,n=l?e.y:e.y+e.height;if(this._addShiftTarget(i,n,h),d)for(var s=Math.round(e[c]/d),o=1;o<s;o++){var r=l?i:e.x+d*o,a=l?e.y+d*o:n;this._addShiftTarget(r,a,h)}},this)},r._addShiftTarget=function(t,e,i){var n=this._getOption("horizontal")?e:t;if(!(0!==n&&i<n)){var s=t+","+e;-1!=this.shiftTargetKeys.indexOf(s)||(this.shiftTargetKeys.push(s),this.shiftTargets.push({x:t,y:e}))}},r.shift=function(t,e,i){var r,a=1/0,l={x:e,y:i};this.shiftTargets.forEach(function(t){var e,i,n,s,o=(n=(i=l).x-(e=t).x,s=i.y-e.y,Math.sqrt(n*n+s*s));o<a&&(r=t,a=o)}),t.rect.x=r.x,t.rect.y=r.y};r.itemDragMove=function(t,e,i){function n(){o.shift(s,e,i),s.positionDropPlaceholder(),o.layout()}var s=this.isEnabled&&this.getItem(t);if(s){e-=this.size.paddingLeft,i-=this.size.paddingTop;var o=this,r=new Date;this._itemDragTime&&r-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(n,120)):(n(),this._itemDragTime=r)}},r.itemDragEnd=function(t){function e(){2==++n&&(i.element.classList.remove("is-positioning-post-drag"),i.hideDropPlaceholder(),s.dispatchEvent("dragItemPositioned",null,[i]))}var i=this.isEnabled&&this.getItem(t);if(i){clearTimeout(this.dragTimeout),i.element.classList.add("is-positioning-post-drag");var n=0,s=this;i.once("layout",e),this.once("layoutComplete",e),i.moveTo(i.rect.x,i.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),i.disablePlacing(),this.unstamp(i.element)}},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]("dragStart",i.dragStart),t[e]("dragMove",i.dragMove),t[e]("dragEnd",i.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]("dragstart",i.start)[e]("drag",i.drag)[e]("dragstop",i.stop)};var a=r.destroy;return r.destroy=function(){a.apply(this,arguments),this.isEnabled=!1},o.Rect=p,o.Packer=e,o}),function(t,e){"function"==typeof define&&define.amd?define(["isotope-layout/js/layout-mode","packery/js/packery"],e):"object"==typeof module&&module.exports?module.exports=e(require("isotope-layout/js/layout-mode"),require("packery")):e(t.Isotope.LayoutMode,t.Packery)}(window,function(t,e){var i=t.create("packery"),n=i.prototype,s={_getElementOffset:!0,_getMeasurement:!0};for(var o in e.prototype)s[o]||(n[o]=e.prototype[o]);var r=n._resetLayout;n._resetLayout=function(){this.packer=this.packer||new e.Packer,this.shiftPacker=this.shiftPacker||new e.Packer,r.apply(this,arguments)};var a=n._getItemLayoutPosition;n._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,a.call(this,t)};var l=n.needsResizeLayout;n.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():l.call(this)};var c=n._getOption;return n._getOption=function(t){return"horizontal"==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:c.apply(this.isotope,arguments)},i}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.PerfectScrollbar=e()}(this,function(){"use strict";function v(t){return getComputedStyle(t)}function u(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function p(t){var e=document.createElement("div");return e.className=t,e}function a(t,e){if(!i)throw new Error("No element matching method supported");return i.call(t,e)}function n(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function s(t,e){return Array.prototype.filter.call(t.children,function(t){return a(t,e)})}function y(t,e){var i=t.element.classList,n=b.state.scrolling(e);i.contains(n)?clearTimeout(l[e]):i.add(n)}function T(t,e){l[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(b.state.scrolling(e))},t.settings.scrollingThreshold)}function f(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function r(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],l=i[3],c=i[4],h=i[5];void 0===n&&(n=!0),void 0===s&&(s=!1);var d,u,p=t.element;t.reach[l]=null,p[a]<1&&(t.reach[l]="start"),p[a]>t[o]-t[r]-1&&(t.reach[l]="end"),e&&(p.dispatchEvent(f("ps-scroll-"+l)),e<0?p.dispatchEvent(f("ps-scroll-"+c)):0<e&&p.dispatchEvent(f("ps-scroll-"+h)),n&&(y(d=t,u=l),T(d,u))),t.reach[l]&&(e||s)&&p.dispatchEvent(f("ps-"+l+"-reach-"+t.reach[l]))}function m(t){return parseInt(t,10)||0}function o(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function e(e,t){function i(t){p[h]=f+g*(t[r]-m),y(e,d),w(e),t.stopPropagation(),t.preventDefault()}function n(){T(e,d),e[u].classList.remove(b.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",i)}var s=t[0],o=t[1],r=t[2],a=t[3],l=t[4],c=t[5],h=t[6],d=t[7],u=t[8],p=e.element,f=null,m=null,g=null;e.event.bind(e[l],"mousedown",function(t){f=p[h],m=t[r],g=(e[o]-e[s])/(e[a]-e[c]),e.event.bind(e.ownerDocument,"mousemove",i),e.event.once(e.ownerDocument,"mouseup",n),e[u].classList.add(b.state.clicking),t.stopPropagation(),t.preventDefault()})}var i="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),b={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},l={x:null,y:null},c=function(t){this.element=t,this.handlers={}},t={isEmpty:{configurable:!0}};c.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},c.prototype.unbind=function(e,i){var n=this;this.handlers[e]=this.handlers[e].filter(function(t){return!(!i||t===i)||(n.element.removeEventListener(e,t,!1),!1)})},c.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},t.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(c.prototype,t);var g=function(){this.eventElements=[]};g.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new c(e),this.eventElements.push(t)),t},g.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},g.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},g.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},g.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var h=function(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}r(t,i,o,n,s)},_={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},w=function(t){var e=t.element,i=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(s(e,b.element.rail("x")).forEach(function(t){return n(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(s(e,b.element.rail("y")).forEach(function(t){return n(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=o(t,m(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=m((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=o(t,m(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=m(i*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?i.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:i.left=t.scrollLeft,e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n,u(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?s.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:s.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?s.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:s.left=e.scrollbarYLeft+t.scrollLeft,u(e.scrollbarYRail,s),u(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),u(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(b.state.active("x")):(e.classList.remove(b.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(b.state.active("y")):(e.classList.remove(b.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)},S={"click-rail":function(i){i.event.bind(i.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),i.event.bind(i.scrollbarYRail,"mousedown",function(t){var e=t.pageY-window.pageYOffset-i.scrollbarYRail.getBoundingClientRect().top>i.scrollbarYTop?1:-1;i.element.scrollTop+=e*i.containerHeight,w(i),t.stopPropagation()}),i.event.bind(i.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),i.event.bind(i.scrollbarXRail,"mousedown",function(t){var e=t.pageX-window.pageXOffset-i.scrollbarXRail.getBoundingClientRect().left>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=e*i.containerWidth,w(i),t.stopPropagation()})},"drag-thumb":function(t){e(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),e(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(o){var r=o.element;o.event.bind(o.ownerDocument,"keydown",function(t){if(!(t.isDefaultPrevented&&t.isDefaultPrevented()||t.defaultPrevented)&&(a(r,":hover")||a(o.scrollbarX,":focus")||a(o.scrollbarY,":focus"))){var e=document.activeElement?document.activeElement:o.ownerDocument.activeElement;if(e){if("IFRAME"===e.tagName)e=e.contentDocument.activeElement;else for(;e.shadowRoot;)e=e.shadowRoot.activeElement;if(a(s=e,"input,[contenteditable]")||a(s,"select,[contenteditable]")||a(s,"textarea,[contenteditable]")||a(s,"button,[contenteditable]"))return}var i=0,n=0;switch(t.which){case 37:i=t.metaKey?-o.contentWidth:t.altKey?-o.containerWidth:-30;break;case 38:n=t.metaKey?o.contentHeight:t.altKey?o.containerHeight:30;break;case 39:i=t.metaKey?o.contentWidth:t.altKey?o.containerWidth:30;break;case 40:n=t.metaKey?-o.contentHeight:t.altKey?-o.containerHeight:-30;break;case 32:n=t.shiftKey?o.containerHeight:-o.containerHeight;break;case 33:n=o.containerHeight;break;case 34:n=-o.containerHeight;break;case 36:n=o.contentHeight;break;case 35:n=-o.contentHeight;break;default:return}o.settings.suppressScrollX&&0!==i||o.settings.suppressScrollY&&0!==n||(r.scrollTop-=n,r.scrollLeft+=i,w(o),function(t,e){var i=Math.floor(r.scrollTop);if(0===t){if(!o.scrollbarYActive)return!1;if(0===i&&0<e||i>=o.contentHeight-o.containerHeight&&e<0)return!o.settings.wheelPropagation}var n=r.scrollLeft;if(0===e){if(!o.scrollbarXActive)return!1;if(0===n&&t<0||n>=o.contentWidth-o.containerWidth&&0<t)return!o.settings.wheelPropagation}return!0}(i,n)&&t.preventDefault())}var s})},wheel:function(m){function t(t){var e,i,n,s,o,r,a,l,c,h,d=(i=(e=t).deltaX,n=-1*e.deltaY,void 0!==i&&void 0!==n||(i=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(i*=10,n*=10),i!=i&&n!=n&&(i=0,n=e.wheelDelta),e.shiftKey?[-n,-i]:[i,n]),u=d[0],p=d[1];if(!function(t,e,i){if(!_.isWebKit&&g.querySelector("select:focus"))return!0;if(!g.contains(t))return!1;for(var n=t;n&&n!==g;){if(n.classList.contains(b.element.consuming))return!0;var s=v(n);if([s.overflow,s.overflowX,s.overflowY].join("").match(/(scroll|auto)/)){var o=n.scrollHeight-n.clientHeight;if(0<o&&!(0===n.scrollTop&&0<i||n.scrollTop===o&&i<0))return!0;var r=n.scrollWidth-n.clientWidth;if(0<r&&!(0===n.scrollLeft&&e<0||n.scrollLeft===r&&0<e))return!0}n=n.parentNode}return!1}(t.target,u,p)){var f=!1;m.settings.useBothWheelAxes?m.scrollbarYActive&&!m.scrollbarXActive?(p?g.scrollTop-=p*m.settings.wheelSpeed:g.scrollTop+=u*m.settings.wheelSpeed,f=!0):m.scrollbarXActive&&!m.scrollbarYActive&&(u?g.scrollLeft+=u*m.settings.wheelSpeed:g.scrollLeft-=p*m.settings.wheelSpeed,f=!0):(g.scrollTop-=p*m.settings.wheelSpeed,g.scrollLeft+=u*m.settings.wheelSpeed),w(m),(f=f||(s=u,o=p,r=Math.floor(g.scrollTop),a=0===g.scrollTop,l=r+g.offsetHeight===g.scrollHeight,c=0===g.scrollLeft,h=g.scrollLeft+g.offsetWidth===g.scrollWidth,!(Math.abs(o)>Math.abs(s)?a||l:c||h)||!m.settings.wheelPropagation))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault())}}var g=m.element;void 0!==window.onwheel?m.event.bind(g,"wheel",t):void 0!==window.onmousewheel&&m.event.bind(g,"mousewheel",t)},touch:function(a){function l(t,e){d.scrollTop-=e,d.scrollLeft-=t,w(a)}function c(t){return t.targetTouches?t.targetTouches[0]:t}function h(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function t(t){if(h(t)){var e=c(t);u.pageX=e.pageX,u.pageY=e.pageY,p=(new Date).getTime(),null!==n&&clearInterval(n)}}function e(t){if(h(t)){var e=c(t),i={pageX:e.pageX,pageY:e.pageY},n=i.pageX-u.pageX,s=i.pageY-u.pageY;if(function(t,e,i){if(!d.contains(t))return!1;for(var n=t;n&&n!==d;){if(n.classList.contains(b.element.consuming))return!0;var s=v(n);if([s.overflow,s.overflowX,s.overflowY].join("").match(/(scroll|auto)/)){var o=n.scrollHeight-n.clientHeight;if(0<o&&!(0===n.scrollTop&&0<i||n.scrollTop===o&&i<0))return!0;var r=n.scrollLeft-n.clientWidth;if(0<r&&!(0===n.scrollLeft&&e<0||n.scrollLeft===r&&0<e))return!0}n=n.parentNode}return!1}(t.target,n,s))return;l(n,s),u=i;var o=(new Date).getTime(),r=o-p;0<r&&(f.x=n/r,f.y=s/r,p=o),function(t,e){var i=Math.floor(d.scrollTop),n=d.scrollLeft,s=Math.abs(t),o=Math.abs(e);if(s<o){if(e<0&&i===a.contentHeight-a.containerHeight||0<e&&0===i)return 0===window.scrollY&&0<e&&_.isChrome}else if(o<s&&(t<0&&n===a.contentWidth-a.containerWidth||0<t&&0===n))return!0;return!0}(n,s)&&t.preventDefault()}}function i(){a.settings.swipeEasing&&(clearInterval(n),n=setInterval(function(){a.isInitialized?clearInterval(n):f.x||f.y?Math.abs(f.x)<.01&&Math.abs(f.y)<.01?clearInterval(n):(l(30*f.x,30*f.y),f.x*=.8,f.y*=.8):clearInterval(n)},10))}if(_.supportsTouch||_.supportsIePointer){var d=a.element,u={},p=0,f={},n=null;_.supportsTouch?(a.event.bind(d,"touchstart",t),a.event.bind(d,"touchmove",e),a.event.bind(d,"touchend",i)):_.supportsIePointer&&(window.PointerEvent?(a.event.bind(d,"pointerdown",t),a.event.bind(d,"pointermove",e),a.event.bind(d,"pointerup",i)):window.MSPointerEvent&&(a.event.bind(d,"MSPointerDown",t),a.event.bind(d,"MSPointerMove",e),a.event.bind(d,"MSPointerUp",i)))}}},d=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in(this.element=t).classList.add(b.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)i.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s,o,r=function(){return t.classList.add(b.state.focus)},a=function(){return t.classList.remove(b.state.focus)};this.isRtl="rtl"===v(t).direction,this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new g,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=p(b.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=p(b.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=v(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=m(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=m(l.borderLeftWidth)+m(l.borderRightWidth),u(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=m(l.marginLeft)+m(l.marginRight),u(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=p(b.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=p(b.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c,h,d=v(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=m(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?(c=this.scrollbarY,m((h=v(c)).width)+m(h.paddingLeft)+m(h.paddingRight)+m(h.borderLeftWidth)+m(h.borderRightWidth)):null,this.railBorderYWidth=m(d.borderTopWidth)+m(d.borderBottomWidth),u(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=m(d.marginTop)+m(d.marginBottom),u(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return S[t](i)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return i.onScroll(t)}),w(this)};return d.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,u(this.scrollbarXRail,{display:"block"}),u(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=m(v(this.scrollbarXRail).marginLeft)+m(v(this.scrollbarXRail).marginRight),this.railYMarginHeight=m(v(this.scrollbarYRail).marginTop)+m(v(this.scrollbarYRail).marginBottom),u(this.scrollbarXRail,{display:"none"}),u(this.scrollbarYRail,{display:"none"}),w(this),h(this,"top",0,!1,!0),h(this,"left",0,!1,!0),u(this.scrollbarXRail,{display:""}),u(this.scrollbarYRail,{display:""}))},d.prototype.onScroll=function(t){this.isAlive&&(w(this),h(this,"top",this.element.scrollTop-this.lastScrollTop),h(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},d.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),n(this.scrollbarX),n(this.scrollbarY),n(this.scrollbarXRail),n(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},d.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},d}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipeUI_Default=e()}(this,function(){"use strict";return function(s,a){var i,l,o,r,e,n,c,h,d,t,u,p,f,m,g,v,y,T,b=this,_=!1,w=!0,S=!0,x={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!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 s.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return s.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},C=function(t){if(v)return!0;t=t||window.event,g.timeToIdle&&g.mouseUsed&&!d&&H();for(var e,i,n=(t.target||t.srcElement).getAttribute("class")||"",s=0;s<G.length;s++)(e=G[s]).onTap&&-1<n.indexOf("pswp__"+e.name)&&(e.onTap(),i=!0);if(i){t.stopPropagation&&t.stopPropagation(),v=!0;var o=a.features.isOldAndroid?600:30;setTimeout(function(){v=!1},o)}},P=function(t,e,i){a[(i?"add":"remove")+"Class"](t,"pswp__"+e)},E=function(){var t=1===g.getNumItemsFn();t!==m&&(P(l,"ui--one-slide",t),m=t)},A=function(){P(c,"share-modal--hidden",S)},M=function(){return(S=!S)?(a.removeClass(c,"pswp__share-modal--fade-in"),setTimeout(function(){S&&A()},300)):(A(),setTimeout(function(){S||a.addClass(c,"pswp__share-modal--fade-in")},30)),S||I(),!1},k=function(t){var e=(t=t||window.event).target||t.srcElement;return s.shout("shareLinkClick",t,e),!(!e.href||!e.hasAttribute("download")&&(window.open(e.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)),S||M(),1))},I=function(){for(var t,e,i,n,s="",o=0;o<g.shareButtons.length;o++)t=g.shareButtons[o],e=g.getImageURLForShare(t),i=g.getPageURLForShare(t),n=g.getTextForShare(t),s+='<a href="'+t.url.replace("{{url}}",encodeURIComponent(i)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(n))+'" target="_blank" class="pswp__share--'+t.id+'"'+(t.download?"download":"")+">"+t.label+"</a>",g.parseShareButtonOut&&(s=g.parseShareButtonOut(t,s));c.children[0].innerHTML=s,c.children[0].onclick=k},D=function(t){for(var e=0;e<g.closeElClasses.length;e++)if(a.hasClass(t,"pswp__"+g.closeElClasses[e]))return!0},O=0,H=function(){clearTimeout(T),O=0,d&&b.setIdle(!1)},L=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(T),T=setTimeout(function(){b.setIdle(!0)},g.timeToIdleOutside))},B=function(t){p!==t&&(P(u,"preloader--active",!t),p=t)},z=function(t){var e=t.vGap;if(!s.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth){var i=g.barsSize;if(g.captionEl&&"auto"===i.bottom)if(r||((r=a.createEl("pswp__caption pswp__caption--fake")).appendChild(a.createEl("pswp__caption__center")),l.insertBefore(r,o),a.addClass(l,"pswp__ui--fit")),g.addCaptionHTMLFn(t,r,!0)){var n=r.clientHeight;e.bottom=parseInt(n,10)||44}else e.bottom=i.top;else e.bottom="auto"===i.bottom?0:i.bottom;e.top=i.top}else e.top=e.bottom=0},G=[{name:"caption",option:"captionEl",onInit:function(t){o=t}},{name:"share-modal",option:"shareEl",onInit:function(t){c=t},onTap:function(){M()}},{name:"button--share",option:"shareEl",onInit:function(t){n=t},onTap:function(){M()}},{name:"button--zoom",option:"zoomEl",onTap:s.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){e=t}},{name:"button--close",option:"closeEl",onTap:s.close},{name:"button--arrow--left",option:"arrowEl",onTap:s.prev},{name:"button--arrow--right",option:"arrowEl",onTap:s.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){i.isFullscreen()?i.exit():i.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){u=t}}];b.init=function(){var e;a.extend(s.options,x,!0),g=s.options,l=a.getChildByClass(s.scrollWrap,"pswp__ui"),(t=s.listen)("onVerticalDrag",function(t){w&&t<.95?b.hideControls():!w&&.95<=t&&b.showControls()}),t("onPinchClose",function(t){w&&t<.9?(b.hideControls(),e=!0):e&&!w&&.9<t&&b.showControls()}),t("zoomGestureEnded",function(){(e=!1)&&!w&&b.showControls()}),t("beforeChange",b.update),t("doubleTap",function(t){var e=s.currItem.initialZoomLevel;s.getZoomLevel()!==e?s.zoomTo(e,t,333):s.zoomTo(g.getDoubleTapZoom(!1,s.currItem),t,333)}),t("preventDragEvent",function(t,e,i){var n=t.target||t.srcElement;n&&n.getAttribute("class")&&-1<t.type.indexOf("mouse")&&(0<n.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(n.tagName))&&(i.prevent=!1)}),t("bindEvents",function(){a.bind(l,"pswpTap click",C),a.bind(s.scrollWrap,"pswpTap",b.onGlobalTap),s.likelyTouchDevice||a.bind(s.scrollWrap,"mouseover",b.onMouseOver)}),t("unbindEvents",function(){S||M(),y&&clearInterval(y),a.unbind(document,"mouseout",L),a.unbind(document,"mousemove",H),a.unbind(l,"pswpTap click",C),a.unbind(s.scrollWrap,"pswpTap",b.onGlobalTap),a.unbind(s.scrollWrap,"mouseover",b.onMouseOver),i&&(a.unbind(document,i.eventK,b.updateFullscreen),i.isFullscreen()&&(g.hideAnimationDuration=0,i.exit()),i=null)}),t("destroy",function(){g.captionEl&&(r&&l.removeChild(r),a.removeClass(o,"pswp__caption--empty")),c&&(c.children[0].onclick=null),a.removeClass(l,"pswp__ui--over-close"),a.addClass(l,"pswp__ui--hidden"),b.setIdle(!1)}),g.showAnimationDuration||a.removeClass(l,"pswp__ui--hidden"),t("initialZoomIn",function(){g.showAnimationDuration&&a.removeClass(l,"pswp__ui--hidden")}),t("initialZoomOut",function(){a.addClass(l,"pswp__ui--hidden")}),t("parseVerticalMargin",z),function(){var s,o,r,t=function(t){if(t)for(var e=t.length,i=0;i<e;i++){s=t[i],o=s.className;for(var n=0;n<G.length;n++)r=G[n],-1<o.indexOf("pswp__"+r.name)&&(g[r.option]?(a.removeClass(s,"pswp__element--disabled"),r.onInit&&r.onInit(s)):a.addClass(s,"pswp__element--disabled"))}};t(l.children);var e=a.getChildByClass(l,"pswp__top-bar");e&&t(e.children)}(),g.shareEl&&n&&c&&(S=!0),E(),g.timeToIdle&&t("mouseUsed",function(){a.bind(document,"mousemove",H),a.bind(document,"mouseout",L),y=setInterval(function(){2==++O&&b.setIdle(!0)},g.timeToIdle/2)}),g.fullscreenEl&&!a.features.isOldAndroid&&(i||(i=b.getFullscreenAPI()),i?(a.bind(document,i.eventK,b.updateFullscreen),b.updateFullscreen(),a.addClass(s.template,"pswp--supports-fs")):a.removeClass(s.template,"pswp--supports-fs")),g.preloaderEl&&(B(!0),t("beforeChange",function(){clearTimeout(f),f=setTimeout(function(){s.currItem&&s.currItem.loading?(!s.allowProgressiveImg()||s.currItem.img&&!s.currItem.img.naturalWidth)&&B(!1):B(!0)},g.loadingIndicatorDelay)}),t("imageLoadComplete",function(t,e){s.currItem===e&&B(!0)}))},b.setIdle=function(t){P(l,"ui--idle",d=t)},b.update=function(){_=!(!w||!s.currItem||(b.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(s.currItem,o),P(o,"caption--empty",!s.currItem.title)),0)),S||M(),E()},b.updateFullscreen=function(t){t&&setTimeout(function(){s.setScrollOffset(0,a.getScrollY())},50),a[(i.isFullscreen()?"add":"remove")+"Class"](s.template,"pswp--fs")},b.updateIndexIndicator=function(){g.counterEl&&(e.innerHTML=s.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},b.onGlobalTap=function(t){var e=(t=t||window.event).target||t.srcElement;if(!v)if(t.detail&&"mouse"===t.detail.pointerType){if(D(e))return void s.close();a.hasClass(e,"pswp__img")&&(1===s.getZoomLevel()&&s.getZoomLevel()<=s.currItem.fitRatio?g.clickToCloseNonZoomable&&s.close():s.toggleDesktopZoom(t.detail.releasePoint))}else if(g.tapToToggleControls&&(w?b.hideControls():b.showControls()),g.tapToClose&&(a.hasClass(e,"pswp__img")||D(e)))return void s.close()},b.onMouseOver=function(t){var e=(t=t||window.event).target||t.srcElement;P(l,"ui--over-close",D(e))},b.hideControls=function(){a.addClass(l,"pswp__ui--hidden"),w=!1},b.showControls=function(){w=!0,_||b.update(),a.removeClass(l,"pswp__ui--hidden")},b.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},b.getFullscreenAPI=function(){var t,e=document.documentElement,i="fullscreenchange";return e.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:e.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:e.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:e.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){return h=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?s.template[this.enterK]():void s.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return g.closeOnScroll=h,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.PhotoSwipe=e()}(this,function(){"use strict";return function(p,n,t,e){var f={features:null,bind:function(t,e,i,n){var s=(n?"remove":"add")+"EventListener";e=e.split(" ");for(var o=0;o<e.length;o++)e[o]&&t[s](e[o],i,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var i=document.createElement(e||"div");return t&&(i.className=t),i},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,i){f.bind(t,e,i,!0)},removeClass:function(t,e){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){f.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var i=t.firstChild;i;){if(f.hasClass(i,e))return i;i=i.nextSibling}},arraySearch:function(t,e,i){for(var n=t.length;n--;)if(t[n][i]===e)return n;return-1},extend:function(t,e,i){for(var n in e)if(e.hasOwnProperty(n)){if(i&&t.hasOwnProperty(n))continue;t[n]=e[n]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(f.features)return f.features;var t=f.createEl().style,e="",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 n=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var s=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);s&&0<s.length&&1<=(s=parseInt(s[1],10))&&s<8&&(i.isOldIOSPhone=!0)}var o=n.match(/Android\s([0-9\.]*)/),r=o?o[1]:0;1<=(r=parseFloat(r))&&(r<4.4&&(i.isOldAndroid=!0),i.androidVersion=r),i.isMobileOpera=/opera mini|opera mobi/i.test(n)}for(var a,l,c=["transform","perspective","animationName"],h=["","webkit","Moz","ms","O"],d=0;d<4;d++){e=h[d];for(var u=0;u<3;u++)a=c[u],l=e+(e?a.charAt(0).toUpperCase()+a.slice(1):a),!i[a]&&l in t&&(i[a]=l);e&&!i.raf&&(e=e.toLowerCase(),i.raf=window[e+"RequestAnimationFrame"],i.raf&&(i.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!i.raf){var p=0;i.raf=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-p)),n=window.setTimeout(function(){t(e+i)},i);return p=e+i,n},i.caf=function(t){clearTimeout(t)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=i}};f.detectFeatures(),f.features.oldIE&&(f.bind=function(t,e,i,n){e=e.split(" ");for(var s,o=(n?"detach":"attach")+"Event",r=function(){i.handleEvent.call(i)},a=0;a<e.length;a++)if(s=e[a])if("object"==typeof i&&i.handleEvent){if(n){if(!i["oldIE"+s])return!1}else i["oldIE"+s]=r;t[o]("on"+s,i["oldIE"+s])}else t[o]("on"+s,i)});var m=this,g={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t?1:e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(g,e);var l,s,o,v,r,a,c,h,d,y,u,T,b,_,w,S,x,C,P,E,A,M,k,I,D,O,H,L,B,z,G,R,N,X,F,$,W,Y,V,j,q,U,i,K,Z,Q,J,tt,et,it,nt,st,ot,rt,at,lt,ct={x:0,y:0},ht={x:0,y:0},dt={x:0,y:0},ut={},pt=0,ft={},mt={x:0,y:0},gt=0,vt=!0,yt=[],Tt={},bt=!1,_t=function(t,e){f.extend(m,e.publicMethods),yt.push(t)},wt=function(t){var e=Xe();return e-1<t?t-e:t<0?e+t:t},St={},xt=function(t,e){return St[t]||(St[t]=[]),St[t].push(e)},Ct=function(t){var e=St[t];if(e){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;n<e.length;n++)e[n].apply(m,i)}},Pt=function(){return(new Date).getTime()},Et=function(t){rt=t,m.bg.style.opacity=t*g.bgOpacity},At=function(t,e,i,n,s){(!bt||s&&s!==m.currItem)&&(n/=s?s.fitRatio:m.currItem.fitRatio),t[M]=T+e+"px, "+i+"px"+b+" scale("+n+")"},Mt=function(t){et&&(t&&(y>m.currItem.fitRatio?bt||(Ke(m.currItem,!1,!0),bt=!0):bt&&(Ke(m.currItem),bt=!1)),At(et,dt.x,dt.y,y))},kt=function(t){t.container&&At(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},It=function(t,e){e[M]=T+t+"px, 0px"+b},Dt=function(t,e){if(!g.loop&&e){var i=v+(mt.x*pt-t)/mt.x,n=Math.round(t-he.x);(i<0&&0<n||i>=Xe()-1&&n<0)&&(t=he.x+n*g.mainScrollEndFriction)}he.x=t,It(t,r)},Ot=function(t,e){var i=de[t]-ft[t];return ht[t]+ct[t]+i-i*(e/u)},Ht=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Lt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Bt=null,zt=function(){Bt&&(f.unbind(document,"mousemove",zt),f.addClass(p,"pswp--has_mouse"),g.mouseUsed=!0,Ct("mouseUsed")),Bt=setTimeout(function(){Bt=null},100)},Gt=function(t,e){var i=Ve(m.currItem,ut,t);return e&&(tt=i),i},Rt=function(t){return t||(t=m.currItem),t.initialZoomLevel},Nt=function(t){return t||(t=m.currItem),0<t.w?g.maxSpreadZoom:1},Xt=function(t,e,i,n){return n===m.currItem.initialZoomLevel?(i[t]=m.currItem.initialPosition[t],!0):(i[t]=Ot(t,n),i[t]>e.min[t]?(i[t]=e.min[t],!0):i[t]<e.max[t]&&(i[t]=e.max[t],!0))},Ft=function(t){var e="";g.escKey&&27===t.keyCode?e="close":g.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,m[e]()))},$t=function(t){t&&(U||q||it||W)&&(t.preventDefault(),t.stopPropagation())},Wt=function(){m.setScrollOffset(0,f.getScrollY())},Yt={},Vt=0,jt=function(t){Yt[t]&&(Yt[t].raf&&O(Yt[t].raf),Vt--,delete Yt[t])},qt=function(t){Yt[t]&&jt(t),Yt[t]||(Vt++,Yt[t]={})},Ut=function(){for(var t in Yt)Yt.hasOwnProperty(t)&&jt(t)},Kt=function(t,e,i,n,s,o,r){var a,l=Pt();qt(t);var c=function(){if(Yt[t]){if(a=Pt()-l,n<=a)return jt(t),o(i),void(r&&r());o((i-e)*s(a/n)+e),Yt[t].raf=D(c)}};c()},Zt={shout:Ct,listen:xt,viewportSize:ut,options:g,isMainScrollAnimating:function(){return it},getZoomLevel:function(){return y},getCurrentIndex:function(){return v},isDragging:function(){return V},isZooming:function(){return Q},setScrollOffset:function(t,e){ft.x=t,z=ft.y=e,Ct("updateScrollOffset",ft)},applyZoomPan:function(t,e,i,n){dt.x=e,dt.y=i,y=t,Mt(n)},init:function(){if(!l&&!s){var t;m.framework=f,m.template=p,m.bg=f.getChildByClass(p,"pswp__bg"),H=p.className,l=!0,G=f.detectFeatures(),D=G.raf,O=G.caf,M=G.transform,B=G.oldIE,m.scrollWrap=f.getChildByClass(p,"pswp__scroll-wrap"),m.container=f.getChildByClass(m.scrollWrap,"pswp__container"),r=m.container.style,m.itemHolders=S=[{el:m.container.children[0],wrap:0,index:-1},{el:m.container.children[1],wrap:0,index:-1},{el:m.container.children[2],wrap:0,index:-1}],S[0].el.style.display=S[2].el.style.display="none",function(){if(M){var t=G.perspective&&!I;return T="translate"+(t?"3d(":"("),b=G.perspective?", 0px)":")"}M="left",f.addClass(p,"pswp--ie"),It=function(t,e){e.left=t+"px"},kt=function(t){var e=1<t.fitRatio?1:t.fitRatio,i=t.container.style,n=e*t.w,s=e*t.h;i.width=n+"px",i.height=s+"px",i.left=t.initialPosition.x+"px",i.top=t.initialPosition.y+"px"},Mt=function(){if(et){var t=et,e=m.currItem,i=1<e.fitRatio?1:e.fitRatio,n=i*e.w,s=i*e.h;t.width=n+"px",t.height=s+"px",t.left=dt.x+"px",t.top=dt.y+"px"}}}(),d={resize:m.updateSize,orientationchange:function(){clearTimeout(R),R=setTimeout(function(){ut.x!==m.scrollWrap.clientWidth&&m.updateSize()},500)},scroll:Wt,keydown:Ft,click:$t};var e=G.isOldIOSPhone||G.isOldAndroid||G.isMobileOpera;for(G.animationName&&G.transform&&!e||(g.showAnimationDuration=g.hideAnimationDuration=0),t=0;t<yt.length;t++)m["init"+yt[t]]();n&&(m.ui=new n(m,f)).init(),Ct("firstUpdate"),v=v||g.index||0,(isNaN(v)||v<0||v>=Xe())&&(v=0),m.currItem=Ne(v),(G.isOldIOSPhone||G.isOldAndroid)&&(vt=!1),p.setAttribute("aria-hidden","false"),g.modal&&(vt?p.style.position="fixed":(p.style.position="absolute",p.style.top=f.getScrollY()+"px")),void 0===z&&(Ct("initialLayout"),z=L=f.getScrollY());var i="pswp--open ";for(g.mainClass&&(i+=g.mainClass+" "),g.showHideOpacity&&(i+="pswp--animate_opacity "),i+=I?"pswp--touch":"pswp--notouch",i+=G.animationName?" pswp--css_animation":"",i+=G.svg?" pswp--svg":"",f.addClass(p,i),m.updateSize(),a=-1,gt=null,t=0;t<3;t++)It((t+a)*mt.x,S[t].el.style);B||f.bind(m.scrollWrap,h,m),xt("initialZoomInEnd",function(){m.setContent(S[0],v-1),m.setContent(S[2],v+1),S[0].el.style.display=S[2].el.style.display="block",g.focus&&p.focus(),f.bind(document,"keydown",m),G.transform&&f.bind(m.scrollWrap,"click",m),g.mouseUsed||f.bind(document,"mousemove",zt),f.bind(window,"resize scroll orientationchange",m),Ct("bindEvents")}),m.setContent(S[1],v),m.updateCurrItem(),Ct("afterInit"),vt||(_=setInterval(function(){Vt||V||Q||y!==m.currItem.initialZoomLevel||m.updateSize()},1e3)),f.addClass(p,"pswp--visible")}},close:function(){l&&(s=!(l=!1),Ct("close"),f.unbind(window,"resize scroll orientationchange",m),f.unbind(window,"scroll",d.scroll),f.unbind(document,"keydown",m),f.unbind(document,"mousemove",zt),G.transform&&f.unbind(m.scrollWrap,"click",m),V&&f.unbind(window,c,m),clearTimeout(R),Ct("unbindEvents"),Fe(m.currItem,null,!0,m.destroy))},destroy:function(){Ct("destroy"),Be&&clearTimeout(Be),p.setAttribute("aria-hidden","true"),p.className=H,_&&clearInterval(_),f.unbind(m.scrollWrap,h,m),f.unbind(window,"scroll",m),fe(),Ut(),St=null},panTo:function(t,e,i){i||(t>tt.min.x?t=tt.min.x:t<tt.max.x&&(t=tt.max.x),e>tt.min.y?e=tt.min.y:e<tt.max.y&&(e=tt.max.y)),dt.x=t,dt.y=e,Mt()},handleEvent:function(t){t=t||window.event,d[t.type]&&d[t.type](t)},goTo:function(t){var e=(t=wt(t))-v;gt=e,v=t,m.currItem=Ne(v),pt-=e,Dt(mt.x*pt),Ut(),it=!1,m.updateCurrItem()},next:function(){m.goTo(v+1)},prev:function(){m.goTo(v-1)},updateCurrZoomItem:function(t){if(t&&Ct("beforeChange",0),S[1].el.children.length){var e=S[1].el.children[0];et=f.hasClass(e,"pswp__zoom-wrap")?e.style:null}else et=null;tt=m.currItem.bounds,u=y=m.currItem.initialZoomLevel,dt.x=tt.center.x,dt.y=tt.center.y,t&&Ct("afterChange")},invalidateCurrItems:function(){w=!0;for(var t=0;t<3;t++)S[t].item&&(S[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==gt){var e,i=Math.abs(gt);if(!(t&&i<2)){m.currItem=Ne(v),bt=!1,Ct("beforeChange",gt),3<=i&&(a+=gt+(0<gt?-3:3),i=3);for(var n=0;n<i;n++)0<gt?(e=S.shift(),S[2]=e,It((++a+2)*mt.x,e.el.style),m.setContent(e,v-i+n+1+1)):(e=S.pop(),S.unshift(e),It(--a*mt.x,e.el.style),m.setContent(e,v+i-n-1-1));if(et&&1===Math.abs(gt)){var s=Ne(x);s.initialZoomLevel!==y&&(Ve(s,ut),Ke(s),kt(s))}gt=0,m.updateCurrZoomItem(),x=v,Ct("afterChange")}}},updateSize:function(t){if(!vt&&g.modal){var e=f.getScrollY();if(z!==e&&(p.style.top=e+"px",z=e),!t&&Tt.x===window.innerWidth&&Tt.y===window.innerHeight)return;Tt.x=window.innerWidth,Tt.y=window.innerHeight,p.style.height=Tt.y+"px"}if(ut.x=m.scrollWrap.clientWidth,ut.y=m.scrollWrap.clientHeight,Wt(),mt.x=ut.x+Math.round(ut.x*g.spacing),mt.y=ut.y,Dt(mt.x*pt),Ct("beforeResize"),void 0!==a){for(var i,n,s,o=0;o<3;o++)i=S[o],It((o+a)*mt.x,i.el.style),s=v+o-1,g.loop&&2<Xe()&&(s=wt(s)),(n=Ne(s))&&(w||n.needsUpdate||!n.bounds)?(m.cleanSlide(n),m.setContent(i,s),1===o&&(m.currItem=n,m.updateCurrZoomItem(!0)),n.needsUpdate=!1):-1===i.index&&0<=s&&m.setContent(i,s),n&&n.container&&(Ve(n,ut),Ke(n),kt(n));w=!1}u=y=m.currItem.initialZoomLevel,(tt=m.currItem.bounds)&&(dt.x=tt.center.x,dt.y=tt.center.y,Mt(!0)),Ct("resize")},zoomTo:function(e,t,i,n,s){t&&(u=y,de.x=Math.abs(t.x)-dt.x,de.y=Math.abs(t.y)-dt.y,Ht(ht,dt));var o=Gt(e,!1),r={};Xt("x",o,r,e),Xt("y",o,r,e);var a=y,l=dt.x,c=dt.y;Lt(r);var h=function(t){dt.y=1===t?(y=e,dt.x=r.x,r.y):(y=(e-a)*t+a,dt.x=(r.x-l)*t+l,(r.y-c)*t+c),s&&s(t),Mt(1===t)};i?Kt("customZoomTo",0,1,i,n||f.easing.sine.inOut,h):h(1)}},Qt={},Jt={},te={},ee={},ie={},ne=[],se={},oe=[],re={},ae=0,le={x:0,y:0},ce=0,he={x:0,y:0},de={x:0,y:0},ue={x:0,y:0},pe=function(t,e){return re.x=Math.abs(t.x-e.x),re.y=Math.abs(t.y-e.y),Math.sqrt(re.x*re.x+re.y*re.y)},fe=function(){i&&(O(i),i=null)},me=function(){V&&(i=D(me),Me())},ge=function(t,e){return!(!t||t===document)&&!(t.getAttribute("class")&&-1<t.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(e(t)?t:ge(t.parentNode,e))},ve={},ye=function(t,e){return ve.prevent=!ge(t.target,g.isClickableElement),Ct("preventDragEvent",t,e,ve),ve.prevent},Te=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},be=function(t,e,i){i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y)},_e=function(){var t=dt.y-m.currItem.initialPosition.y;return 1-Math.abs(t/(ut.y/2))},we={},Se={},xe=[],Ce=function(t){for(;0<xe.length;)xe.pop();return k?(lt=0,ne.forEach(function(t){0===lt?xe[0]=t:1===lt&&(xe[1]=t),lt++})):-1<t.type.indexOf("touch")?t.touches&&0<t.touches.length&&(xe[0]=Te(t.touches[0],we),1<t.touches.length&&(xe[1]=Te(t.touches[1],Se))):(we.x=t.pageX,we.y=t.pageY,we.id="",xe[0]=we),xe},Pe=function(t,e){var i,n,s,o,r=dt[t]+e[t],a=0<e[t],l=he.x+e.x,c=he.x-se.x;return i=r>tt.min[t]||r<tt.max[t]?g.panEndFriction:1,r=dt[t]+e[t]*i,!g.allowPanToNext&&y!==m.currItem.initialZoomLevel||(et?"h"!==nt||"x"!==t||q||(a?(r>tt.min[t]&&(i=g.panEndFriction,tt.min[t],n=tt.min[t]-ht[t]),(n<=0||c<0)&&1<Xe()?(o=l,c<0&&l>se.x&&(o=se.x)):tt.min.x!==tt.max.x&&(s=r)):(r<tt.max[t]&&(i=g.panEndFriction,tt.max[t],n=ht[t]-tt.max[t]),(n<=0||0<c)&&1<Xe()?(o=l,0<c&&l<se.x&&(o=se.x)):tt.min.x!==tt.max.x&&(s=r))):o=l,"x"!==t)?void(it||K||y>m.currItem.fitRatio&&(dt[t]+=e[t]*i)):(void 0!==o&&(Dt(o,!0),K=o!==se.x),tt.min.x!==tt.max.x&&(void 0!==s?dt.x=s:K||(dt.x+=e.x*i)),void 0!==o)},Ee=function(t){if(!("mousedown"===t.type&&0<t.button)){if(Re)return void t.preventDefault();if(!Y||"mousedown"!==t.type){if(ye(t,!0)&&t.preventDefault(),Ct("pointerDown"),k){var e=f.arraySearch(ne,t.pointerId,"id");e<0&&(e=ne.length),ne[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var i=Ce(t),n=i.length;Z=null,Ut(),V&&1!==n||(V=st=!0,f.bind(window,c,m),$=at=ot=W=K=U=j=q=!1,nt=null,Ct("firstTouchStart",i),Ht(ht,dt),ct.x=ct.y=0,Ht(ee,i[0]),Ht(ie,ee),se.x=mt.x*pt,oe=[{x:ee.x,y:ee.y}],X=N=Pt(),Gt(y,!0),fe(),me()),!Q&&1<n&&!it&&!K&&(u=y,Q=j=!(q=!1),ct.y=ct.x=0,Ht(ht,dt),Ht(Qt,i[0]),Ht(Jt,i[1]),be(Qt,Jt,ue),de.x=Math.abs(ue.x)-dt.x,de.y=Math.abs(ue.y)-dt.y,J=pe(Qt,Jt))}}},Ae=function(t){if(t.preventDefault(),k){var e=f.arraySearch(ne,t.pointerId,"id");if(-1<e){var i=ne[e];i.x=t.pageX,i.y=t.pageY}}if(V){var n=Ce(t);if(nt||U||Q)Z=n;else if(he.x!==mt.x*pt)nt="h";else{var s=Math.abs(n[0].x-ee.x)-Math.abs(n[0].y-ee.y);10<=Math.abs(s)&&(nt=0<s?"h":"v",Z=n)}}},Me=function(){if(Z){var t=Z.length;if(0!==t)if(Ht(Qt,Z[0]),te.x=Qt.x-ee.x,te.y=Qt.y-ee.y,Q&&1<t){if(ee.x=Qt.x,ee.y=Qt.y,!te.x&&!te.y&&(l=Z[1],c=Jt,l.x===c.x&&l.y===c.y))return;Ht(Jt,Z[1]),q||(q=!0,Ct("zoomGestureStarted"));var e=pe(Qt,Jt),i=He(e);i>m.currItem.initialZoomLevel+m.currItem.initialZoomLevel/15&&(at=!0);var n=1,s=Rt(),o=Nt();if(i<s)if(g.pinchToClose&&!at&&u<=m.currItem.initialZoomLevel){var r=1-(s-i)/(s/1.2);Et(r),Ct("onPinchClose",r),ot=!0}else 1<(n=(s-i)/s)&&(n=1),i=s-n*(s/3);else o<i&&(1<(n=(i-o)/(6*s))&&(n=1),i=o+n*s);n<0&&(n=0),be(Qt,Jt,le),ct.x+=le.x-ue.x,ct.y+=le.y-ue.y,Ht(ue,le),dt.x=Ot("x",i),dt.y=Ot("y",i),$=y<i,y=i,Mt()}else{if(!nt)return;if(st&&(st=!1,10<=Math.abs(te.x)&&(te.x-=Z[0].x-ie.x),10<=Math.abs(te.y)&&(te.y-=Z[0].y-ie.y)),ee.x=Qt.x,ee.y=Qt.y,0===te.x&&0===te.y)return;if("v"===nt&&g.closeOnVerticalDrag&&"fit"===g.scaleMode&&y===m.currItem.initialZoomLevel){ct.y+=te.y,dt.y+=te.y;var a=_e();return W=!0,Ct("onVerticalDrag",a),Et(a),void Mt()}(function(t,e,i){if(50<t-X){var n=2<oe.length?oe.shift():{};n.x=e,n.y=i,oe.push(n),X=t}})(Pt(),Qt.x,Qt.y),U=!0,tt=m.currItem.bounds,Pe("x",te)||(Pe("y",te),Lt(dt),Mt())}}var l,c},ke=function(t){if(G.isOldAndroid){if(Y&&"mouseup"===t.type)return;-1<t.type.indexOf("touch")&&(clearTimeout(Y),Y=setTimeout(function(){Y=0},600))}var e;if(Ct("pointerUp"),ye(t,!1)&&t.preventDefault(),k){var i=f.arraySearch(ne,t.pointerId,"id");-1<i&&(e=ne.splice(i,1)[0],navigator.pointerEnabled?e.type=t.pointerType||"mouse":(e.type={4:"mouse",2:"touch",3:"pen"}[t.pointerType],e.type||(e.type=t.pointerType||"mouse")))}var n,s=Ce(t),o=s.length;if("mouseup"===t.type&&(o=0),2===o)return!(Z=null);1===o&&Ht(ie,s[0]),0!==o||nt||it||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),Ct("touchRelease",t,e));var r=-1;if(0===o&&(V=!1,f.unbind(window,c,m),fe(),Q?r=0:-1!==ce&&(r=Pt()-ce)),ce=1===o?Pt():-1,n=-1!==r&&r<150?"zoom":"swipe",Q&&o<2&&(Q=!1,1===o&&(n="zoomPointerUp"),Ct("zoomGestureEnded")),Z=null,U||q||it||W)if(Ut(),F||(F=Ie()),F.calculateSwipeSpeed("x"),W)if(_e()<g.verticalDragRange)m.close();else{var a=dt.y,l=rt;Kt("verticalDrag",0,1,300,f.easing.cubic.out,function(t){dt.y=(m.currItem.initialPosition.y-a)*t+a,Et((1-l)*t+l),Mt()}),Ct("onVerticalDrag",1)}else{if((K||it)&&0===o){if(Oe(n,F))return;n="zoomPointerUp"}if(!it)return"swipe"!==n?void Le():void(!K&&y>m.currItem.fitRatio&&De(F))}},Ie=function(){var e,i,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(t){i=1<oe.length?(e=Pt()-X+50,oe[oe.length-2][t]):(e=Pt()-N,ie[t]),n.lastFlickOffset[t]=ee[t]-i,n.lastFlickDist[t]=Math.abs(n.lastFlickOffset[t]),20<n.lastFlickDist[t]?n.lastFlickSpeed[t]=n.lastFlickOffset[t]/e:n.lastFlickSpeed[t]=0,Math.abs(n.lastFlickSpeed[t])<.1&&(n.lastFlickSpeed[t]=0),n.slowDownRatio[t]=.95,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatio[t]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(dt[e]>tt.min[e]?n.backAnimDestination[e]=tt.min[e]:dt[e]<tt.max[e]&&(n.backAnimDestination[e]=tt.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,Kt("bounceZoomPan"+e,dt[e],n.backAnimDestination[e],t||300,f.easing.sine.out,function(t){dt[e]=t,Mt()}))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,dt[t]+=n.distanceOffset[t])},panAnimLoop:function(){if(Yt.zoomPan&&(Yt.zoomPan.raf=D(n.panAnimLoop),n.now=Pt(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Mt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return dt.x=Math.round(dt.x),dt.y=Math.round(dt.y),Mt(),void jt("zoomPan")}};return n},De=function(t){return t.calculateSwipeSpeed("y"),tt=m.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05?(t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0):(qt("zoomPan"),t.lastNow=Pt(),void t.panAnimLoop())},Oe=function(t,e){var i,n,s;if(it||(ae=v),"swipe"===t){var o=ee.x-ie.x,r=e.lastFlickDist.x<10;30<o&&(r||20<e.lastFlickOffset.x)?n=-1:o<-30&&(r||e.lastFlickOffset.x<-20)&&(n=1)}n&&((v+=n)<0?(v=g.loop?Xe()-1:0,s=!0):v>=Xe()&&(v=g.loop?0:Xe()-1,s=!0),s&&!g.loop||(gt+=n,pt-=n,i=!0));var a,l=mt.x*pt,c=Math.abs(l-he.x);return a=i||l>he.x==0<e.lastFlickSpeed.x?(a=0<Math.abs(e.lastFlickSpeed.x)?c/Math.abs(e.lastFlickSpeed.x):333,a=Math.min(a,400),Math.max(a,250)):333,ae===v&&(i=!1),it=!0,Ct("mainScrollAnimStart"),Kt("mainScroll",he.x,l,a,f.easing.cubic.out,Dt,function(){Ut(),it=!1,ae=-1,(i||ae!==v)&&m.updateCurrItem(),Ct("mainScrollAnimComplete")}),i&&m.updateCurrItem(!0),i},He=function(t){return 1/J*t*u},Le=function(){var t=y,e=Rt(),i=Nt();y<e?t=e:i<y&&(t=i);var n,s=rt;return ot&&!$&&!at&&y<e?m.close():(ot&&(n=function(t){Et((1-s)*t+s)}),m.zoomTo(t,0,200,f.easing.cubic.out,n)),!0};_t("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,i,n,s){C=t+e,P=t+i,E=t+n,A=s?t+s:""};(k=G.pointerEvent)&&G.touch&&(G.touch=!1),k?navigator.pointerEnabled?t("pointer","down","move","up","cancel"):t("MSPointer","Down","Move","Up","Cancel"):G.touch?(t("touch","start","move","end","cancel"),I=!0):t("mouse","down","move","up"),c=P+" "+E+" "+A,h=C,k&&!I&&(I=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),m.likelyTouchDevice=I,d[C]=Ee,d[P]=Ae,d[E]=ke,A&&(d[A]=d[E]),G.touch&&(h+=" mousedown",c+=" mousemove mouseup",d.mousedown=d[C],d.mousemove=d[P],d.mouseup=d[E]),I||(g.allowPanToNext=!1)}}});var Be,ze,Ge,Re,Ne,Xe,Fe=function(r,t,a,e){var l;Be&&clearTimeout(Be),Ge=Re=!0,r.initialLayout?(l=r.initialLayout,r.initialLayout=null):l=g.getThumbBoundsFn&&g.getThumbBoundsFn(v);var c,h,d=a?g.hideAnimationDuration:g.showAnimationDuration,u=function(){jt("initialZoom"),a?(m.template.removeAttribute("style"),m.bg.removeAttribute("style")):(Et(1),t&&(t.style.display="block"),f.addClass(p,"pswp--animated-in"),Ct("initialZoom"+(a?"OutEnd":"InEnd"))),e&&e(),Re=!1};if(!d||!l||void 0===l.x)return Ct("initialZoom"+(a?"Out":"In")),y=r.initialZoomLevel,Ht(dt,r.initialPosition),Mt(),p.style.opacity=a?0:1,Et(1),void(d?setTimeout(function(){u()},d):u());c=o,h=!m.currItem.src||m.currItem.loadError||g.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),a||(y=l.w/r.w,dt.x=l.x,dt.y=l.y-L,m[h?"template":"bg"].style.opacity=.001,Mt()),qt("initialZoom"),a&&!c&&f.removeClass(p,"pswp--animated-in"),h&&(a?f[(c?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){f.addClass(p,"pswp--animate_opacity")},30)),Be=setTimeout(function(){if(Ct("initialZoom"+(a?"Out":"In")),a){var e=l.w/r.w,i=dt.x,n=dt.y,s=y,o=rt,t=function(t){dt.y=1===t?(y=e,dt.x=l.x,l.y-z):(y=(e-s)*t+s,dt.x=(l.x-i)*t+i,(l.y-z-n)*t+n),Mt(),h?p.style.opacity=1-t:Et(o-t*o)};c?Kt("initialZoom",0,1,d,f.easing.cubic.out,t,u):(t(1),Be=setTimeout(u,d+20))}else y=r.initialZoomLevel,Ht(dt,r.initialPosition),Mt(),Et(1),h?p.style.opacity=1:Et(1),Be=setTimeout(u,d+20)},a?25:90)},$e={},We=[],Ye={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 ze.length}},Ve=function(t,e,i){if(!t.src||t.loadError)return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},t.initialPosition=t.bounds.center,t.bounds;var n,s,o,r,a=!i;if(a&&(t.vGap||(t.vGap={top:0,bottom:0}),Ct("parseVerticalMargin",t)),$e.x=e.x,$e.y=e.y-t.vGap.top-t.vGap.bottom,a){var l=$e.x/t.w,c=$e.y/t.h;t.fitRatio=l<c?l:c;var h=g.scaleMode;"orig"===h?i=1:"fit"===h&&(i=t.fitRatio),1<i&&(i=1),t.initialZoomLevel=i,t.bounds||(t.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}return i?(s=(n=t).w*i,o=t.h*i,(r=n.bounds).center.x=Math.round(($e.x-s)/2),r.center.y=Math.round(($e.y-o)/2)+n.vGap.top,r.max.x=s>$e.x?Math.round($e.x-s):r.center.x,r.max.y=o>$e.y?Math.round($e.y-o)+n.vGap.top:r.center.y,r.min.x=s>$e.x?0:r.center.x,r.min.y=o>$e.y?n.vGap.top:r.center.y,a&&i===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds):void 0},je=function(t,e,i,n,s,o){e.loadError||n&&(e.imageAppended=!0,Ke(e,n,e===m.currItem&&bt),i.appendChild(n),o&&setTimeout(function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)},500))},qe=function(t){t.loading=!0,t.loaded=!1;var e=t.img=f.createEl("pswp__img","img"),i=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=i,e.onerror=function(){t.loadError=!0,i()},e.src=t.src,e},Ue=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=g.errorMsg.replace("%url%",t.src),!0},Ke=function(t,e,i){if(t.src){e||(e=t.container.lastChild);var n=i?t.w:Math.round(t.w*t.fitRatio),s=i?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=n+"px",t.placeholder.style.height=s+"px"),e.style.width=n+"px",e.style.height=s+"px"}},Ze=function(){if(We.length){for(var t,e=0;e<We.length;e++)(t=We[e]).holder.index===t.index&&je(t.index,t.item,t.baseDiv,t.img,0,t.clearPlaceholder);We=[]}};_t("Controller",{publicMethods:{lazyLoadItem:function(t){t=wt(t);var e=Ne(t);e&&(!e.loaded&&!e.loading||w)&&(Ct("gettingData",t,e),e.src&&qe(e))},initController:function(){f.extend(g,Ye,!0),m.items=ze=t,Ne=m.getItemAt,Xe=g.getNumItemsFn,g.loop,Xe()<3&&(g.loop=!1),xt("beforeChange",function(t){var e,i=g.preload,n=null===t||0<=t,s=Math.min(i[0],Xe()),o=Math.min(i[1],Xe());for(e=1;e<=(n?o:s);e++)m.lazyLoadItem(v+e);for(e=1;e<=(n?s:o);e++)m.lazyLoadItem(v-e)}),xt("initialLayout",function(){m.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(v)}),xt("mainScrollAnimComplete",Ze),xt("initialZoomInEnd",Ze),xt("destroy",function(){for(var t,e=0;e<ze.length;e++)(t=ze[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);We=null})},getItemAt:function(t){return 0<=t&&void 0!==ze[t]&&ze[t]},allowProgressiveImg:function(){return g.forceProgressiveLoading||!I||g.mouseUsed||1200<screen.width},setContent:function(e,i){g.loop&&(i=wt(i));var t=m.getItemAt(e.index);t&&(t.container=null);var n,s=m.getItemAt(i);if(s){Ct("gettingData",i,s),e.index=i;var o=(e.item=s).container=f.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?o.appendChild(s.html):o.innerHTML=s.html),Ue(s),Ve(s,ut),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&((n=f.createEl("pswp__img","img")).style.opacity=1,n.src=s.src,Ke(s,n),je(0,s,o,n));else{if(s.loadComplete=function(t){if(l){if(e&&e.index===i){if(Ue(t,!0))return t.loadComplete=t.img=null,Ve(t,ut),kt(t),void(e.index===v&&m.updateCurrZoomItem());t.imageAppended?!Re&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null):G.transform&&(it||Re)?We.push({item:t,baseDiv:o,img:t.img,index:i,holder:e,clearPlaceholder:!0}):je(0,t,o,t.img,0,!0)}t.loadComplete=null,t.img=null,Ct("imageLoadComplete",i,t)}},f.features.transform){var r="pswp__img pswp__img--placeholder";r+=s.msrc?"":" pswp__img--placeholder--blank";var a=f.createEl(r,s.msrc?"img":"");s.msrc&&(a.src=s.msrc),Ke(s,a),o.appendChild(a),s.placeholder=a}s.loading||qe(s),m.allowProgressiveImg()&&(!Ge&&G.transform?We.push({item:s,baseDiv:o,img:s.img,index:i,holder:e}):je(0,s,o,s.img,0,!0))}Ge||i!==v?kt(s):(et=o.style,Fe(s,n||s.img)),e.el.innerHTML="",e.el.appendChild(o)}else e.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var Qe,Je,ti={},ei=function(t,e,i){var n=document.createEvent("CustomEvent"),s={origEvent:t,target:t.target,releasePoint:e,pointerType:i||"touch"};n.initCustomEvent("pswpTap",!0,!0,s),t.target.dispatchEvent(n)};_t("Tap",{publicMethods:{initTap:function(){xt("firstTouchStart",m.onTapStart),xt("touchRelease",m.onTapRelease),xt("destroy",function(){ti={},Qe=null})},onTapStart:function(t){1<t.length&&(clearTimeout(Qe),Qe=null)},onTapRelease:function(t,e){if(e&&!U&&!j&&!Vt){var i=e;if(Qe&&(clearTimeout(Qe),Qe=null,n=i,s=ti,Math.abs(n.x-s.x)<25&&Math.abs(n.y-s.y)<25))return void Ct("doubleTap",i);if("mouse"===e.type)return void ei(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||f.hasClass(t.target,"pswp__single-tap"))return void ei(t,e);Ht(ti,i),Qe=setTimeout(function(){ei(t,e),Qe=null},300)}var n,s}}}),_t("DesktopZoom",{publicMethods:{initDesktopZoom:function(){B||(I?xt("mouseUsed",function(){m.setupDesktopZoom()}):m.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Je={};var e="wheel mousewheel DOMMouseScroll";xt("bindEvents",function(){f.bind(p,e,m.handleMouseWheel)}),xt("unbindEvents",function(){Je&&f.unbind(p,e,m.handleMouseWheel)}),m.mouseZoomedIn=!1;var i,n=function(){m.mouseZoomedIn&&(f.removeClass(p,"pswp--zoomed-in"),m.mouseZoomedIn=!1),y<1?f.addClass(p,"pswp--zoom-allowed"):f.removeClass(p,"pswp--zoom-allowed"),s()},s=function(){i&&(f.removeClass(p,"pswp--dragging"),i=!1)};xt("resize",n),xt("afterChange",n),xt("pointerDown",function(){m.mouseZoomedIn&&(i=!0,f.addClass(p,"pswp--dragging"))}),xt("pointerUp",s),t||n()},handleMouseWheel:function(t){if(y<=m.currItem.fitRatio)return g.modal&&(!g.closeOnScroll||Vt||V?t.preventDefault():M&&2<Math.abs(t.deltaY)&&(o=!0,m.close())),!0;if(t.stopPropagation(),Je.x=0,"deltaX"in t)1===t.deltaMode?(Je.x=18*t.deltaX,Je.y=18*t.deltaY):(Je.x=t.deltaX,Je.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(Je.x=-.16*t.wheelDeltaX),t.wheelDeltaY?Je.y=-.16*t.wheelDeltaY:Je.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;Je.y=t.detail}Gt(y,!0);var e=dt.x-Je.x,i=dt.y-Je.y;(g.modal||e<=tt.min.x&&e>=tt.max.x&&i<=tt.min.y&&i>=tt.max.y)&&t.preventDefault(),m.panTo(e,i)},toggleDesktopZoom:function(t){t=t||{x:ut.x/2+ft.x,y:ut.y/2+ft.y};var e=g.getDoubleTapZoom(!0,m.currItem),i=y===e;m.mouseZoomedIn=!i,m.zoomTo(i?m.currItem.initialZoomLevel:e,t,333),f[(i?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});var ii,ni,si,oi,ri,ai,li,ci,hi,di,ui,pi,fi={history:!0,galleryUID:1},mi=function(){return ui.hash.substring(1)},gi=function(){ii&&clearTimeout(ii),si&&clearTimeout(si)},vi=function(){var t=mi(),e={};if(t.length<5)return e;var i,n=t.split("&");for(i=0;i<n.length;i++)if(n[i]){var s=n[i].split("=");s.length<2||(e[s[0]]=s[1])}if(g.galleryPIDs){var o=e.pid;for(i=e.pid=0;i<ze.length;i++)if(ze[i].pid===o){e.pid=i;break}}else e.pid=parseInt(e.pid,10)-1;return e.pid<0&&(e.pid=0),e},yi=function(){if(si&&clearTimeout(si),Vt||V)si=setTimeout(yi,500);else{oi?clearTimeout(ni):oi=!0;var t=v+1,e=Ne(v);e.hasOwnProperty("pid")&&(t=e.pid);var i=li+"&gid="+g.galleryUID+"&pid="+t;ci||-1===ui.hash.indexOf(i)&&(di=!0);var n=ui.href.split("#")[0]+"#"+i;pi?"#"+i!==window.location.hash&&history[ci?"replaceState":"pushState"]("",document.title,n):ci?ui.replace(n):ui.hash=i,ci=!0,ni=setTimeout(function(){oi=!1},60)}};_t("History",{publicMethods:{initHistory:function(){if(f.extend(g,fi,!0),g.history){ui=window.location,ci=hi=di=!1,li=mi(),pi="pushState"in history,-1<li.indexOf("gid=")&&(li=(li=li.split("&gid=")[0]).split("?gid=")[0]),xt("afterChange",m.updateURL),xt("unbindEvents",function(){f.unbind(window,"hashchange",m.onHashChange)});var t=function(){ai=!0,hi||(di?history.back():li?ui.hash=li:pi?history.pushState("",document.title,ui.pathname+ui.search):ui.hash=""),gi()};xt("unbindEvents",function(){o&&t()}),xt("destroy",function(){ai||t()}),xt("firstUpdate",function(){v=vi().pid});var e=li.indexOf("pid=");-1<e&&"&"===(li=li.substring(0,e)).slice(-1)&&(li=li.slice(0,-1)),setTimeout(function(){l&&f.bind(window,"hashchange",m.onHashChange)},40)}},onHashChange:function(){return mi()===li?(hi=!0,void m.close()):void(oi||(ri=!0,m.goTo(vi().pid),ri=!1))},updateURL:function(){gi(),ri||(ci?ii=setTimeout(yi,800):yi())}}}),f.extend(m,Zt)}}),window.requestAnimationFrame||function(){for(var o=0,t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-o)),s=window.setTimeout(function(){t(i+n)},n);return o=i+n,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}(),function(o){"use strict";function s(t,e){this.$body=o(document.body),this.$scrollElement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},s.DEFAULTS,e),".thb_row_pagination"===this.options.target?this.selector=(this.options.target||"")+" li":this.selector=(this.options.target||"")+" li a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(n){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),i="object"==typeof n&&n;e||t.data("bs.scrollspy",e=new s(this,i)),"string"==typeof n&&e[n]()})}s.VERSION="3.3.7",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var t=this,n="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(n="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),i=!!e&&o("#"+(-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):""));return i&&i.length&&i.is(":visible")&&[[i[n]().top+s,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=e)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(o[t])},s.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href$="'+t+'"]',i=o(e).addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},s.prototype.clear=function(){o(this.selector).removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=s,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(t,v){"use strict";function y(t,e){return Math.floor(Math.random()*(e-t+1))+t}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n=[],s=0;s<i;++s)n.push(y(t,e));return n.sort(function(t,e){return t-e}),n}function e(t,e){this.el=t,this.options=n({},this.options),n(this.options,e),this.animate=this._animate;var i=this;return imagesLoaded(this.el,{background:!0},function(){i._init(),i._initEvents(),i.options.onReady()}),i}e.prototype={options:{pieces:4,renderOnLoad:!1,shadows:!0,shadowsAnimation:{opacity:1},parallax:!1,parallaxMovement:{min:10,max:40},animation:{duration:1500,easing:"easeOutQuad",delay:0,translateZ:{min:10,max:65}},onReady:function(){return!1},onAnimationComplete:function(){return!1},onAnimationStart:function(){return!1},positions:[{top:80,left:10,width:30,height:20},{top:2,left:2,width:40,height:40},{top:30,left:60,width:30,height:60},{top:10,left:20,width:50,height:60}]},_init:function(){this.dimensions={width:this.el.offsetWidth,height:this.el.offsetHeight};var t=this.el.style.backgroundImage;this.imgsrc=t.replace("url(","").replace(")","").replace(/\"/gi,""),this._layout();var i=this;this.pieces=[].slice.call(this.el.querySelectorAll(".segmenter__piece-wrap")),this.pieces.forEach(function(t,e){i.options.renderOnLoad&&i._renderPiece(t)}),this.options.renderOnLoad&&(this.active=!0)},_layout:function(){var t=function(){for(var t="clipPath",e=["webkit","moz","ms","o"],i=[t],n=document.createElement("testelement"),s=0,o=e.length;s<o;s++){var r=e[s]+t.charAt(0).toUpperCase()+t.slice(1);i.push(r)}for(s=0,o=i.length;s<o;s++){var a=i[s];if(""===n.style[a]&&(n.style[a]="polygon(50% 0%, 0% 100%, 100% 100%)",""!==n.style[a]))return!0}return!1}(),e=document.createElement("div");e.className="segmenter__background",e.style.backgroundImage="url("+this.imgsrc+")";var i=document.createElement("div"),n="",s=this.options.positions.length;i.className="segmenter__pieces";for(var o=0,r=this.options.pieces;o<r;++o){this.options.parallax&&(n+='<div class="segmenter__piece-parallax">'),n+='<div class="segmenter__piece-wrap">';var a,l,c,h,d,u,p,f,m=o<=s-1?o:0,g="random"===this.options.positions;a=g?y(0,100):this.options.positions[m].top,l=g?y(0,100):this.options.positions[m].left,c=g?y(0,100):this.options.positions[m].width,h=g?y(0,100):this.options.positions[m].height,t||(d=g?a/100*this.dimensions.height:this.options.positions[m].top/100*this.dimensions.height,u=g?l/100*this.dimensions.width:this.options.positions[m].left/100*this.dimensions.width,p=g?c/100*this.dimensions.width+u:this.options.positions[m].width/100*this.dimensions.width+u,f=g?h/100*this.dimensions.height+d:this.options.positions[m].height/100*this.dimensions.height+d),this.options.shadows&&(n+='<div class="segmenter__shadow" style="top: '+a+"%; left: "+l+"%; width: "+c+"%; height: "+h+'%"></div>'),n+=t?'<div class="segmenter__piece" style="background-image: url('+this.imgsrc+"); -webkit-clip-path: polygon("+l+"% "+a+"%, "+(l+c)+"% "+a+"%, "+(l+c)+"% "+(a+h)+"%, "+l+"% "+(a+h)+"%); clip-path: polygon("+l+"% "+a+"%, "+(l+c)+"% "+a+"%, "+(l+c)+"% "+(a+h)+"%, "+l+"% "+(a+h)+'%)"></div>':'<div class="segmenter__piece" style="background-image: url('+this.imgsrc+"); clip: rect("+d+"px,"+p+"px,"+f+"px,"+u+'px)"></div>',n+="</div>",this.options.parallax&&(n+="</div>")}i.innerHTML=n,v(this.el).prepend(i),v(this.el).prepend(e)},_renderPiece:function(t){var e,i=this.pieces.indexOf(t);if(null!=self.options.animation.translateZ)if("object"==typeof self.options.animation.translateZ){var n=a(self.options.animation.translateZ.min,self.options.animation.translateZ.max,self.options.pieces);t.style.transform=t.style.WebkitTransform="translateZ("+n[i]+"px)"}else t.style.transform=t.style.WebkitTransform="translateZ("+self.options.animation.translateZ+"px)";if(null!=self.options.animation.translateY)if("object"==typeof self.options.animation.translateY){n=a(self.options.animation.translateY.min,self.options.animation.translateY.max,self.options.pieces);t.style.transform=t.style.WebkitTransform="translateY("+n[i]+"px)"}else t.style.transform=t.style.WebkitTransform="translateY("+self.options.animation.translateY+"px)";if(null!=self.options.animation.translateX)if("object"==typeof self.options.animation.translateX){n=a(self.options.animation.translateX.min,self.options.animation.translateX.max,self.options.pieces);t.style.transform=t.style.WebkitTransform="translateX("+n[i]+"px)"}else t.style.transform=t.style.WebkitTransform="translateX("+self.options.animation.translateX+"px)";if(null!=self.options.animation.opacity&&(t.style.opacity=self.options.animation.opacity),self.options.shadows&&(e=self.options.shadowsAnimation,0<Object.getOwnPropertyNames(e).length)){var s=t.querySelector(".segmenter__shadow");s.style.opacity=null!=self.options.shadowsAnimation.opacity?self.options.shadowsAnimation.opacity:0,s.style.transform=s.style.WebkitTransform="translateX("+(null!=self.options.shadowsAnimation.translateX?self.options.shadowsAnimation.translateX:0)+"px) translateY("+(null!=self.options.shadowsAnimation.translateY?self.options.shadowsAnimation.translateY:0)+"px)"}},_animate:function(){if(this.active)return!1;this.active=!0;var i=this,t={targets:this.pieces,duration:this.options.animation.duration,delay:function(t,e){return(i.options.pieces-e-1)*i.options.animation.delay},easing:this.options.animation.easing,begin:this.options.onAnimationStart,complete:this.options.onAnimationComplete};if(null!=this.options.animation.translateZ){var n=a(this.options.animation.translateZ.min,this.options.animation.translateZ.max,this.options.pieces);t.translateZ="object"==typeof this.options.animation.translateZ?function(t,e){return n[e]}:this.options.animation.translateZ}null!=this.options.animation.translateX&&(t.translateX="object"==typeof this.options.animation.translateX?function(t,e){return y(0,100)}:this.options.animation.translateX),null!=this.options.animation.translateY&&(t.translateY="object"==typeof this.options.animation.translateY?function(t,e){return y(0,100)}:this.options.animation.translateY),null!=this.options.animation.opacity&&(t.opacity=this.options.animation.opacity);var s=new TimelineMax({paused:!0});return v(this.pieces).each(function(t,e){s.to(e,i.options.animation.duration/1e3,{z:n[t]},"start+="+.1*t).to(e.querySelectorAll(".segmenter__shadow"),i.options.animation.duration/1e3,{opacity:1},"start+="+.1*t)}),s},_initEvents:function(){var n,s,o,r,p=this;if(this.debounceResize=(n=function(t){var u=p.options.positions.length;p.dimensions={width:p.el.offsetWidth,height:p.el.offsetHeight},p.pieces.forEach(function(t,e){var i,n,s,o,r=t.querySelector(".segmenter__piece");if("random"===p.options.positions){var a=y(0,100),l=y(0,100),c=y(0,100),h=y(0,100);i=a/100*p.dimensions.height,n=l/100*p.dimensions.width,s=c/100*p.dimensions.width+n,o=h/100*p.dimensions.height+i}else{var d=e<=u-1?e:0;i=p.options.positions[d].top/100*p.dimensions.height,n=p.options.positions[d].left/100*p.dimensions.width,s=p.options.positions[d].width/100*p.dimensions.width+n,o=p.options.positions[d].height/100*p.dimensions.height+i}r.style.clip="rect("+i+"px,"+s+"px,"+o+"px,"+n+"px)"})},s=10,function(){var t=this,e=arguments,i=o&&!r;clearTimeout(r),r=setTimeout(function(){r=null,o||n.apply(t,e)},s),i&&n.apply(t,e)}),t.addEventListener("resize",this.debounceResize),this.options.parallax){var i=a(this.options.parallaxMovement.min,this.options.parallaxMovement.max,this.options.pieces);this.pieces.forEach(function(t,e){t.setAttribute("data-parallax-translation","object"==typeof p.options.parallaxMovement?i[e]:p.options.parallaxMovement)}),this.mousemove=function(s){if(!p.active)return!1;requestAnimationFrame(function(){p.pieces.forEach(function(t){var e=t.getAttribute("data-parallax-translation"),i=e/p.dimensions.width*s.clientX-e/2,n=e/p.dimensions.height*s.clientY-e/2;t.parentNode.style.transform=t.parentNode.style.WebkitTransform="translate3d("+i+"px,"+n+"px,0)"})})},t.addEventListener("mousemove",this.mousemove),this.handleOrientation=function(){if(!p.active)return!1;var s=event.gamma;s+=90,requestAnimationFrame(function(){p.pieces.forEach(function(t){var e=t.getAttribute("data-parallax-translation"),i=e/p.dimensions.width*s-e/2,n=e/p.dimensions.height*s-e/2;t.parentNode.style.transform=t.parentNode.style.WebkitTransform="translate3d("+i+"px,"+n+"px,0)"})})},t.addEventListener("deviceorientation",this.handleOrientation)}}},t.Segmenter=e}(window,jQuery),function(c,S,x){"use strict";function e(t){if(_=S.documentElement,n=S.body,b(),Q=this,nt=(t=t||{}).constants||{},t.easing)for(var e in t.easing)X[e]=t.easing[e];ht=t.edgeStrategy||"set",et={beforerender:t.beforerender,render:t.render,keyframe:t.keyframe},(it=!1!==t.forceHeight)&&(Et=t.scale||1),st=t.mobileDeceleration||h,rt=!1!==t.smoothScrolling,at=t.smoothScrollingDuration||d,lt={targetTop:Q.getScrollTop()},(Lt=(t.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||c.opera)})())?((tt=S.getElementById("skrollr-body"))&&Z(),F(),_t(_,[o,l],[r])):_t(_,[o,a],[r]),Q.refresh(),pt(c,"resize orientationchange",function(){var t=_.clientWidth,e=_.clientHeight;(e!==Dt||t!==It)&&(Dt=e,It=t,Ot=!0)});var i=N();return function t(){$(),ut=i(t)}(),Q}var _,n,C={get:function(){return Q},init:function(t){return Q||new e(t)},VERSION:"0.6.26"},P=Object.prototype.hasOwnProperty,w=c.Math,s=c.getComputedStyle,E="touchstart",A="touchmove",M="touchcancel",k="touchend",I="skrollable",D=I+"-before",O=I+"-between",H=I+"-after",o="skrollr",r="no-"+o,a=o+"-desktop",l=o+"-mobile",h=.004,d=200,L="___skrollable_id",B=/^(?:input|textarea|button|select)$/i,i=/^\s+|\s+$/g,z=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,u=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,p=/^(@?[a-z\-]+)\[(\w+)\]$/,G=/-([a-z0-9_])/g,R=function(t,e){return e.toUpperCase()},f=/[\-+]?[\d]*\.?[\d]+/g,m=/\{\?\}/g,g=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,v=/[a-z\-]+-gradient/g,y="",T="",b=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(s){var e=s(n,null);for(var i in e)if(y=i.match(t)||+i==i&&e[i].match(t))break;if(!y)return y=T="",x;"-"===(y=y[0]).slice(0,1)?y={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[T=y]:T="-"+y.toLowerCase()+"-"}},N=function(){var t=c.requestAnimationFrame||c[y.toLowerCase()+"RequestAnimationFrame"],n=xt();return(Lt||!t)&&(t=function(t){var e=xt()-n,i=w.max(0,1e3/60-e);return c.setTimeout(function(){n=xt(),t()},i)}),t},X={begin:function(){return 0},end:function(){return 1},linear:function(t){return t},quadratic:function(t){return t*t},cubic:function(t){return t*t*t},swing:function(t){return-w.cos(t*w.PI)/2+.5},sqrt:function(t){return w.sqrt(t)},outCubic:function(t){return w.pow(t-1,3)+1},bounce:function(t){var e;if(t<=.5083)e=3;else if(t<=.8489)e=9;else if(t<=.96208)e=27;else{if(!(t<=.99981))return 1;e=91}return 1-w.abs(3*w.cos(1.028*t*e)/e)}};e.prototype.refresh=function(t){var e,i,n=!1;for(t===x?(n=!0,J=[],Ht=0,t=S.getElementsByTagName("*")):t.length===x&&(t=[t]),e=0,i=t.length;e<i;e++){var s=t[e],o=s,r=[],a=rt,l=ht,c=!1;if(n&&L in s&&delete s[L],s.attributes){for(var h=0,d=s.attributes.length;h<d;h++){var u=s.attributes[h];if("data-anchor-target"!==u.name)if("data-smooth-scrolling"!==u.name)if("data-edge-strategy"!==u.name)if("data-emit-events"!==u.name){var p=u.name.match(z);if(null!==p){var f={props:u.value,element:s,eventType:u.name.replace(G,R)};r.push(f);var m=p[1];m&&(f.constant=m.substr(1));var g=p[2];/p$/.test(g)?(f.isPercentage=!0,f.offset=(0|g.slice(0,-1))/100):f.offset=0|g;var v=p[3],y=p[4]||v;v&&"start"!==v&&"end"!==v?(f.mode="relative",f.anchors=[v,y]):(f.mode="absolute","end"===v?f.isEnd=!0:f.isPercentage||(f.offset=f.offset*Et))}}else c=!0;else l=u.value;else a="off"!==u.value;else if(null===(o=S.querySelector(u.value)))throw'Unable to find anchor target "'+u.value+'"'}var T,b,_;if(r.length)b=!n&&L in s?(_=s[L],T=J[_].styleAttr,J[_].classAttr):(_=s[L]=Ht++,T=s.style.cssText,bt(s)),J[_]={element:s,styleAttr:T,classAttr:b,anchorTarget:o,keyFrames:r,smoothScrolling:a,edgeStrategy:l,emitEvents:c,lastFrameIndex:-1},_t(s,[I],[])}}for(vt(),e=0,i=t.length;e<i;e++){var w=J[t[e][L]];w!==x&&(W(w),V(w))}return Q},e.prototype.relativeToAbsolute=function(t,e,i){var n=_.clientHeight,s=t.getBoundingClientRect(),o=s.top,r=s.bottom-s.top;return"bottom"===e?o-=n:"center"===e&&(o-=n/2),"bottom"===i?o+=r:"center"===i&&(o+=r/2),0|(o+=Q.getScrollTop())+.5},e.prototype.animateTo=function(t,e){e=e||{};var i=xt(),n=Q.getScrollTop();return(ot={startTop:n,topDiff:t-n,targetTop:t,duration:e.duration||1e3,startTime:i,endTime:i+(e.duration||1e3),easing:X[e.easing||"linear"],done:e.done}).topDiff||(ot.done&&ot.done.call(Q,!1),ot=x),Q},e.prototype.stopAnimateTo=function(){ot&&ot.done&&ot.done.call(Q,!0),ot=x},e.prototype.isAnimatingTo=function(){return!!ot},e.prototype.isMobile=function(){return Lt},e.prototype.setScrollTop=function(t,e){return ct=!0===e,Lt?Bt=w.min(w.max(t,0),Pt):c.scrollTo(0,t),Q},e.prototype.getScrollTop=function(){return Lt?Bt:c.pageYOffset||_.scrollTop||n.scrollTop||0},e.prototype.getMaxScrollTop=function(){return Pt},e.prototype.on=function(t,e){return et[t]=e,Q},e.prototype.off=function(t){return delete et[t],Q},e.prototype.destroy=function(){var t;(t=c.cancelAnimationFrame||c[y.toLowerCase()+"CancelAnimationFrame"],(Lt||!t)&&(t=function(t){return c.clearTimeout(t)}),t)(ut),mt(),_t(_,[r],[o,a,l]);for(var e=0,i=J.length;e<i;e++)K(J[e].element);_.style.overflow=n.style.overflow="",_.style.height=n.style.height="",tt&&C.setStyle(tt,"transform","none"),At="down",Lt=Ot=!(Mt=-(Et=1)),Bt=Ht=Dt=It=Pt=0,dt=ht=ct=lt=at=rt=ot=st=nt=it=et=tt=Q=x};var F=function(){var h,d,u,p,f,m,g,v,y,T,b;pt(_,[E,A,M,k].join(" "),function(t){var e=t.changedTouches[0];for(p=t.target;3===p.nodeType;)p=p.parentNode;switch(f=e.clientY,m=e.clientX,y=t.timeStamp,B.test(p.tagName)||t.preventDefault(),t.type){case E:h&&h.blur(),Q.stopAnimateTo(),h=p,d=g=f,u=m,y;break;case A:B.test(p.tagName)&&S.activeElement!==p&&t.preventDefault(),v=f-g,b=y-T,Q.setScrollTop(Bt-v,!0),g=f,T=y;break;default:case M:case k:var i=d-f,n=u-m;if(n*n+i*i<49){if(!B.test(h.tagName)){h.focus();var s=S.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,t.view,1,e.screenX,e.screenY,e.clientX,e.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),h.dispatchEvent(s)}return}h=x;var o=v/b;o=w.max(w.min(o,3),-3);var r=w.abs(o/st),a=o*r+.5*st*r*r,l=Q.getScrollTop()-a,c=0;Pt<l?(c=(Pt-l)/a,l=Pt):l<0&&(c=-l/a,l=0),r*=1-c,Q.animateTo(0|l+.5,{easing:"outCubic",duration:r})}}),c.scrollTo(0,0),_.style.overflow=n.style.overflow="hidden"},$=function(){Ot&&(Ot=!1,vt());var t,e,i=Q.getScrollTop(),n=xt();if(ot)n>=ot.endTime?(i=ot.targetTop,t=ot.done,ot=x):(e=ot.easing((n-ot.startTime)/ot.duration),i=0|ot.startTop+e*ot.topDiff),Q.setScrollTop(i,!0);else if(!ct){lt.targetTop-i&&(lt={startTop:Mt,topDiff:i-Mt,targetTop:i,startTime:kt,endTime:kt+at}),lt.endTime>=n&&(e=X.sqrt((n-lt.startTime)/at),i=0|lt.startTop+e*lt.topDiff)}if(Lt&&tt&&C.setStyle(tt,"transform","translate(0, "+-Bt+"px) "+dt),ct||Mt!==i){var s={curTop:i,lastTop:Mt,maxTop:Pt,direction:At=Mt<i?"down":i<Mt?"up":At};(ct=!1)!==(et.beforerender&&et.beforerender.call(Q,s))&&(function(t,e){for(var i=0,n=J.length;i<n;i++){var s,o,r=J[i],a=r.element,l=r.smoothScrolling?t:e,c=r.keyFrames,h=c.length,d=c[0],u=c[c.length-1],p=d.frame>l,f=l>u.frame,m=p?d:u,g=r.emitEvents,v=r.lastFrameIndex;if(p||f){if(p&&-1===r.edge||f&&1===r.edge)continue;switch(p?(_t(a,[D],[H,O]),g&&-1<v&&(gt(a,d.eventType,At),r.lastFrameIndex=-1)):(_t(a,[H],[D,O]),g&&v<h&&(gt(a,u.eventType,At),r.lastFrameIndex=h)),r.edge=p?-1:1,r.edgeStrategy){case"reset":K(a);continue;case"ease":l=m.frame;break;default:case"set":var y=m.props;for(s in y)P.call(y,s)&&(o=U(y[s].value),0===s.indexOf("@")?a.setAttribute(s.substr(1),o):C.setStyle(a,s,o));continue}}else 0!==r.edge&&(_t(a,[I,O],[D,H]),r.edge=0);for(var T=0;T<h-1;T++)if(l>=c[T].frame&&c[T+1].frame>=l){var b=c[T],_=c[T+1];for(s in b.props)if(P.call(b.props,s)){var w=(l-b.frame)/(_.frame-b.frame);w=b.props[s].easing(w),o=q(b.props[s].value,_.props[s].value,w),o=U(o),0===s.indexOf("@")?a.setAttribute(s.substr(1),o):C.setStyle(a,s,o)}g&&v!==T&&(gt(a,"down"===At?b.eventType:_.eventType,At),r.lastFrameIndex=T);break}}}(i,Q.getScrollTop()),Mt=i,et.render&&et.render.call(Q,s)),t&&t.call(Q,!1)}kt=n},W=function(t){for(var e=0,i=t.keyFrames.length;e<i;e++){for(var n,s,o,r,a=t.keyFrames[e],l={};null!==(r=u.exec(a.props));)o=r[1],s=r[2],n=null!==(n=o.match(p))?(o=n[1],n[2]):"linear",s=s.indexOf("!")?Y(s):[s.slice(1)],l[o]={value:s,easing:X[n]};a.props=l}},Y=function(t){var e=[];return g.lastIndex=0,t=t.replace(g,function(t){return t.replace(f,function(t){return t/255*100+"%"})}),T&&(v.lastIndex=0,t=t.replace(v,function(t){return T+t})),t=t.replace(f,function(t){return e.push(+t),"{?}"}),e.unshift(t),e},V=function(t){var e,i,n={};for(e=0,i=t.keyFrames.length;e<i;e++)j(t.keyFrames[e],n);for(n={},e=t.keyFrames.length-1;0<=e;e--)j(t.keyFrames[e],n)},j=function(t,e){var i;for(i in e)P.call(t.props,i)||(t.props[i]=e[i]);for(i in t.props)e[i]=t.props[i]},q=function(t,e,i){var n,s=t.length;if(s!==e.length)throw"Can't interpolate between \""+t[0]+'" and "'+e[0]+'"';var o=[t[0]];for(n=1;n<s;n++)o[n]=t[n]+(e[n]-t[n])*i;return o},U=function(t){var e=1;return m.lastIndex=0,t[0].replace(m,function(){return t[e++]})},K=function(t,e){for(var i,n,s=0,o=(t=[].concat(t)).length;s<o;s++)n=t[s],(i=J[n[L]])&&(e?(n.style.cssText=i.dirtyStyleAttr,_t(n,i.dirtyClassAttr)):(i.dirtyStyleAttr=n.style.cssText,i.dirtyClassAttr=bt(n),n.style.cssText=i.styleAttr,_t(n,i.classAttr)))},Z=function(){dt="translateZ(0)",C.setStyle(tt,"transform",dt);var t=s(tt),e=t.getPropertyValue("transform"),i=t.getPropertyValue(T+"transform");e&&"none"!==e||i&&"none"!==i||(dt="")};C.setStyle=function(t,e,i){var n=t.style;if("zIndex"===(e=e.replace(G,R).replace("-","")))n[e]=isNaN(i)?i:""+(0|i);else if("float"===e)n.styleFloat=n.cssFloat=i;else try{y&&(n[y+e.slice(0,1).toUpperCase()+e.slice(1)]=i),n[e]=i}catch(t){}};var Q,J,tt,et,it,nt,st,ot,rt,at,lt,ct,ht,dt,ut,pt=C.addEvent=function(t,e,i){for(var n,s=function(t){return(t=t||c.event).target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),i.call(this,t)},o=0,r=(e=e.split(" ")).length;o<r;o++)n=e[o],t.addEventListener?t.addEventListener(n,i,!1):t.attachEvent("on"+n,s),zt.push({element:t,name:n,listener:i})},ft=C.removeEvent=function(t,e,i){for(var n=0,s=(e=e.split(" ")).length;n<s;n++)t.removeEventListener?t.removeEventListener(e[n],i,!1):t.detachEvent("on"+e[n],i)},mt=function(){for(var t,e=0,i=zt.length;e<i;e++)t=zt[e],ft(t.element,t.name,t.listener);zt=[]},gt=function(t,e,i){et.keyframe&&et.keyframe.call(Q,t,e,i)},vt=function(){var t=Q.getScrollTop();Pt=0,it&&!Lt&&(n.style.height=""),function(){var t,e,i,n,s,o,r,a,l,c,h,d=_.clientHeight,u=yt();for(a=0,l=J.length;a<l;a++)for(e=(t=J[a]).element,i=t.anchorTarget,s=0,o=(n=t.keyFrames).length;s<o;s++)c=(r=n[s]).offset,h=u[r.constant]||0,r.frame=c,r.isPercentage&&(c*=d,r.frame=c),"relative"===r.mode&&(K(e),r.frame=Q.relativeToAbsolute(i,r.anchors[0],r.anchors[1])-c,K(e,!0)),r.frame+=h,it&&!r.isEnd&&r.frame>Pt&&(Pt=r.frame);for(Pt=w.max(Pt,Tt()),a=0,l=J.length;a<l;a++){for(s=0,o=(n=(t=J[a]).keyFrames).length;s<o;s++)h=u[(r=n[s]).constant]||0,r.isEnd&&(r.frame=Pt-r.offset+h);t.keyFrames.sort(Ct)}}(),it&&!Lt&&(n.style.height=Pt+_.clientHeight+"px"),Lt?Q.setScrollTop(w.min(Q.getScrollTop(),Pt)):Q.setScrollTop(t,!0),ct=!0},yt=function(){var t,e,i=_.clientHeight,n={};for(t in nt)"function"==typeof(e=nt[t])?e=e.call(Q):/p$/.test(e)&&(e=e.slice(0,-1)/100*i),n[t]=e;return n},Tt=function(){var t=tt&&tt.offsetHeight||0;return w.max(t,n.scrollHeight,n.offsetHeight,_.scrollHeight,_.offsetHeight,_.clientHeight)-_.clientHeight},bt=function(t){var e="className";return c.SVGElement&&t instanceof c.SVGElement&&(t=t[e],e="baseVal"),t[e]},_t=function(t,e,i){var n="className";if(c.SVGElement&&t instanceof c.SVGElement&&(t=t[n],n="baseVal"),i===x)return t[n]=e,x;for(var s=t[n],o=0,r=i.length;o<r;o++)s=St(s).replace(St(i[o])," ");s=wt(s);for(var a=0,l=e.length;a<l;a++)-1===St(s).indexOf(St(e[a]))&&(s+=" "+e[a]);t[n]=wt(s)},wt=function(t){return t.replace(i,"")},St=function(t){return" "+t+" "},xt=Date.now||function(){return+new Date},Ct=function(t,e){return t.frame-e.frame},Pt=0,Et=1,At="down",Mt=-1,kt=xt(),It=0,Dt=0,Ot=!1,Ht=0,Lt=!1,Bt=0,zt=[];"function"==typeof define&&define.amd?define([],function(){return C}):"undefined"!=typeof module&&module.exports?module.exports=C:c.skrollr=C}(window,document),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(c){"use strict";var s,o=window.Slick||{};(s=0,o=function(t,e){var i,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,i=c(t).data("slick")||{},n.options=c.extend({},n.defaults,e,i),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=s++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.addSlide=o.prototype.slickAdd=function(t,e,i){var n=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=n.slideCount)return!1;n.unload(),"number"==typeof e?0===e&&0===n.$slides.length?c(t).appendTo(n.$slideTrack):i?c(t).insertBefore(n.$slides.eq(e)):c(t).insertAfter(n.$slides.eq(e)):!0===i?c(t).prependTo(n.$slideTrack):c(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},o.prototype.animateHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var t=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.animate({height:t},this.options.speed)}},o.prototype.animateSlide=function(t,e){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,e):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,e):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate("+t+"px, 0px)":i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate3d("+t+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(i),e&&setTimeout(function(){n.disableTransition(),e.call()},n.options.speed))},o.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=c(t).not(this.$slider)),t},o.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},o.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},o.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},o.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var t,e;if(!0===this.options.dots){for(this.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(this.options.dotsClass),t=0;t<=this.getDotCount();t+=1)e.append(c("<li />").append(this.options.customPaging.call(this,this,t)));this.$dots=e.appendTo(this.options.appendDots),this.$dots.find("li").first().addClass("slick-active")}},o.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},o.prototype.buildRows=function(){var t,e,i,n,s,o,r,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),1<a.options.rows){for(r=a.options.slidesPerRow*a.options.rows,s=Math.ceil(o.length/r),t=0;t<s;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var h=t*r+(e*a.options.slidesPerRow+i);o.get(h)&&c.appendChild(o.get(h))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(t,e){var i,n,s,o=this,r=!1,a=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=a:"min"===o.respondTo&&(s=Math.min(l,a)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in n=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[i]&&(n=o.breakpoints[i]):s>o.breakpoints[i]&&(n=o.breakpoints[i]));null!==n?null!==o.activeBreakpoint?(n!==o.activeBreakpoint||e)&&(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),r=n):(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),r=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),r=n),t||!1===r||o.$slider.trigger("breakpoint",[o,r])}},o.prototype.changeSlide=function(t,e){var i,n,s=this,o=c(t.currentTarget);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),i=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":n=0===i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-n,!1,e);break;case"next":n=0===i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+n,!1,e);break;case"index":var r=0===t.data.index?0:t.data.index||o.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(r),!1,e),o.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},o.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",c.proxy(this.interrupt,this,!1))},o.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},o.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},o.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},o.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",!1===this.options.fade?this.$slideTrack.css(e):this.$slides.eq(t).css(e)},o.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},o.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(t){null!==t&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},o.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},o.prototype.getLeft=function(t){var e,i,n,s,o=this,r=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,s=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?s=-1.5:1===o.options.slidesToShow&&(s=-2)),r=i*o.options.slidesToShow*s),o.slideCount%o.options.slidesToScroll!=0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(r=t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,(o.options.slidesToShow-(t-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,o.slideCount%o.options.slidesToScroll*i*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,r=(t+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(r=o.slideOffset=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=!1===o.options.vertical?t*o.slideWidth*-1+o.slideOffset:t*i*-1+r,!0===o.options.variableWidth&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(o.$list.width()-n.outerWidth())/2)),e},o.prototype.getOption=o.prototype.slickGetOption=function(t){return this.options[t]},o.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,s=[];for(t=!1===e.options.infinite?e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,2*e.slideCount);i<t;)s.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var i,n,s=this;return n=!0===s.options.centerMode?s.slideWidth*Math.floor(s.options.slidesToShow/2):0,!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-n+c(e).outerWidth()/2>-1*s.swipeLeft)return i=e,!1}),Math.abs(c(i).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},o.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},o.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),s=i.getNavigableIndexes().filter(function(t){return 0<=t&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=s.indexOf(t);c(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&c(this).attr({"aria-describedby":"slick-slide-control"+i.instanceUid+e})}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=s[t];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.$slides.eq(t).attr("tabindex",0);i.activateADA()},o.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},o.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},o.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",c.proxy(this.interrupt,this,!1)))},o.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(t.setPosition)},o.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},o.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){function t(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),i=c(this).attr("data-srcset"),n=c(this).attr("data-sizes")||o.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0},100,function(){i&&(t.attr("srcset",i),n&&t.attr("sizes",n)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,e])})},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},s.src=e})}var e,i,n,o=this;if(!0===o.options.centerMode?n=!0===o.options.infinite?(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,n=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(0<i&&i--,n<=o.slideCount&&n++)),e=o.$slider.find(".slick-slide").slice(i,n),"anticipated"===o.options.lazyLoad)for(var s=i-1,r=n,a=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)s<0&&(s=o.slideCount-1),e=(e=e.add(a.eq(s))).add(a.eq(r)),s--,r++;t(e),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},o.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},o.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&c(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(t){t.preventDefault()},o.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,n,s,o,r=this,a=c("img[data-lazy]",r.$slider);a.length?(e=a.first(),i=e.attr("data-lazy"),n=e.attr("data-srcset"),s=e.attr("data-sizes")||r.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){n&&(e.attr("srcset",n),s&&e.attr("sizes",s)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,e,i]),r.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout(function(){r.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i]),r.progressiveLazyLoad())},o.src=i):r.$slider.trigger("allImagesLoaded",[r])},o.prototype.refresh=function(t){var e,i,n=this;i=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>i&&(n.currentSlide=i),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),e=n.currentSlide,n.destroy(!0),c.extend(n,n.initials,{currentSlide:e}),n.init(),t||n.changeSlide({data:{message:"index",index:e}},!1)},o.prototype.registerBreakpoints=function(){var t,e,i,n=this,s=n.options.responsive||null;if("array"===c.type(s)&&s.length){for(t in n.respondTo=n.options.respondTo||"window",s)if(i=n.breakpoints.length-1,s.hasOwnProperty(t)){for(e=s[t].breakpoint;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=s[t].settings}n.breakpoints.sort(function(t,e){return n.options.mobileFirst?t-e:e-t})}},o.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},o.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},o.prototype.setCSS=function(t){var e,i,n=this,s={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,!1===n.transformsEnabled||(!(s={})===n.cssTransitions?s[n.animType]="translate("+e+", "+i+")":s[n.animType]="translate3d("+e+", "+i+", 0px)"),n.$slideTrack.css(s)},o.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},o.prototype.setFade=function(){var i,n=this;n.$slides.each(function(t,e){i=n.slideWidth*t*-1,!0===n.options.rtl?c(e).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):c(e).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){if(1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical){var t=this.$slides.eq(this.currentSlide).outerHeight(!0);this.$list.css("height",t)}},o.prototype.setOption=o.prototype.slickSetOption=function(){var t,e,i,n,s,o=this,r=!1;if("object"===c.type(arguments[0])?(i=arguments[0],r=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(i=arguments[0],n=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)o.options[i]=n;else if("multiple"===s)c.each(i,function(t,e){o.options[t]=e});else if("responsive"===s)for(e in n)if("array"!==c.type(o.options.responsive))o.options.responsive=[n[e]];else{for(t=o.options.responsive.length-1;0<=t;)o.options.responsive[t].breakpoint===n[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(n[e])}r&&(o.unload(),o.reinit())},o.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},o.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},o.prototype.setSlideClasses=function(t){var e,i,n,s,o=this;if(i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),!0===o.options.centerMode){var r=o.options.slidesToShow%2==0?1:0;e=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(e<=t&&t<=o.slideCount-1-e?o.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=o.options.slidesToShow+t,i.slice(n-e+1+r,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")}else 0<=t&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(s=o.slideCount%o.options.slidesToShow,n=!0===o.options.infinite?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(n-(o.options.slidesToShow-s),n+s).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==o.options.lazyLoad&&"anticipated"!==o.options.lazyLoad||o.lazyLoad()},o.prototype.setupInfinite=function(){var t,e,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(e=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-i;t-=1)e=t-1,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<i+n.slideCount;t+=1)e=t,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},o.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},o.prototype.selectHandler=function(t){var e=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),i=parseInt(e.attr("data-slick-index"));i||(i=0),this.slideCount<=this.options.slidesToShow?this.slideHandler(i,!1,!0):this.slideHandler(i)},o.prototype.slideHandler=function(t,e,i){var n,s,o,r,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),s=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,s]),o=c.currentSlide,c.currentSlide=s,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(o),c.fadeSlide(s,function(){c.postSlide(s)})):c.postSlide(s),void c.animateHeight();!0!==i?c.animateSlide(l,function(){c.postSlide(s)}):c.postSlide(s)}},o.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var t,e,i,n;return t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&0<=n?!1===this.options.rtl?"left":"right":n<=360&&315<=n?!1===this.options.rtl?"left":"right":135<=n&&n<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=n&&n<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1;if(n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},o.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},o.prototype.swipeMove=function(t){var e,i,n,s,o,r,a=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,a.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&4<r?!(a.scrolling=!0):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&4<a.touchObject.swipeLength&&(a.swiping=!0,t.preventDefault()),s=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(s=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,(a.touchObject.edgeHit=!1)===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+n*s:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*s,!0===a.options.verticalSwiping&&(a.swipeLeft=e+n*s),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},o.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},o.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},o.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},o.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").end(),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active"))},o.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){var t,e,i=arguments[0],n=Array.prototype.slice.call(arguments,1),s=this.length;for(t=0;t<s;t++)if("object"==typeof i||void 0===i?this[t].slick=new o(this[t],i):e=this[t].slick[i].apply(this[t].slick,n),void 0!==e)return e;return this}}),function(){var k,I;k=window.jQuery,I=k(window),k.fn.stick_in_parent=function(t){var _,w,e,i,S,n,x,C,P,E,A,M;for(null==t&&(t={}),M=t.sticky_class,S=t.inner_scrolling,A=t.recalc_every,E=t.parent,C=t.offset_top,x=t.spacer,w=t.bottoming,null==C&&(C=0),null==E&&(E=void 0),null==S&&(S=!0),null==M&&(M="is_stuck"),_=k(document),null==w&&(w=!0),P=function(t){var e;return window.getComputedStyle?(t=window.getComputedStyle(t[0]),e=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(e+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),e):t.outerWidth(!0)},e=function(s,o,r,a,l,c,h,d){var u,t,p,f,m,g,v,y,e,T,b,n;if(!s.data("sticky_kit")){if(s.data("sticky_kit",!0),m=_.height(),v=s.parent(),null!=E&&(v=v.closest(E)),!v.length)throw"failed to find stick parent";if(u=p=!1,(b=null!=x?x&&s.closest(x):k("<div />"))&&b.css("position",s.css("position")),(y=function(){var t,e,i;if(!d&&(m=_.height(),t=parseInt(v.css("border-top-width"),10),e=parseInt(v.css("padding-top"),10),o=parseInt(v.css("padding-bottom"),10),r=v.offset().top+t+e,a=v.height(),p&&(u=p=!1,null==x&&(s.insertAfter(b),b.detach()),s.css({position:"",top:"",width:"",bottom:""}).removeClass(M),i=!0),l=s.offset().top-(parseInt(s.css("margin-top"),10)||0)-C,c=s.outerHeight(!0),h=s.css("float"),b&&b.css({width:P(s),height:c,display:s.css("display"),"vertical-align":s.css("vertical-align"),float:h}),i))return n()})(),c!==a)return f=void 0,g=C,T=A,n=function(){var t,e,i,n;if(!d&&(i=!1,null!=T&&(--T<=0&&(T=A,y(),i=!0)),i||_.height()===m||y(),i=I.scrollTop(),null!=f&&(e=i-f),f=i,p?(w&&(n=a+r<i+c+g,u&&!n&&(u=!1,s.css({position:"fixed",bottom:"",top:g}).trigger("sticky_kit:unbottom"))),i<l&&(p=!1,g=C,null==x&&("left"!==h&&"right"!==h||s.insertAfter(b),b.detach()),t={position:"",width:"",top:""},s.css(t).removeClass(M).trigger("sticky_kit:unstick")),S&&((t=I.height())<c+C&&!u&&(g-=e,g=Math.max(t-c,g),g=Math.min(C,g),p&&s.css({top:g+"px"})))):l<i&&(p=!0,(t={position:"fixed",top:g}).width="border-box"===s.css("box-sizing")?s.outerWidth()+"px":s.width()+"px",s.css(t).addClass(M),null==x&&(s.after(b),"left"!==h&&"right"!==h||b.append(s)),s.trigger("sticky_kit:stick")),p&&w&&(null==n&&(n=a+r<i+c+g),!u&&n)))return u=!0,"static"===v.css("position")&&v.css({position:"relative"}),s.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")},e=function(){return y(),n()},t=function(){if(d=!0,I.off("touchmove",n),I.off("scroll",n),I.off("resize",e),k(document.body).off("sticky_kit:recalc",e),s.off("sticky_kit:detach",t),s.removeData("sticky_kit"),s.css({position:"",bottom:"",top:"",width:""}),v.position("position",""),p)return null==x&&("left"!==h&&"right"!==h||s.insertAfter(b),b.remove()),s.removeClass(M)},I.on("touchmove",n),I.on("scroll",n),I.on("resize",e),k(document.body).on("sticky_kit:recalc",e),s.on("sticky_kit:detach",t),setTimeout(n,0)}},i=0,n=this.length;i<n;i++)t=this[i],e(k(t));return this}}.call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Swiper=e()}(this,function(){"use strict";var m="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,R="undefined"==typeof window?{document:m,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,l=function(t){for(var e=0;e<t.length;e+=1)this[e]=t[e];return this.length=t.length,this};function I(t,e){var i=[],n=0;if(t&&!e&&t instanceof l)return t;if(t)if("string"==typeof t){var s,o,r=t.trim();if(0<=r.indexOf("<")&&0<=r.indexOf(">")){var a="div";for(0===r.indexOf("<li")&&(a="ul"),0===r.indexOf("<tr")&&(a="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(a="tr"),0===r.indexOf("<tbody")&&(a="table"),0===r.indexOf("<option")&&(a="select"),(o=m.createElement(a)).innerHTML=r,n=0;n<o.childNodes.length;n+=1)i.push(o.childNodes[n])}else for(s=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||m).querySelectorAll(t.trim()):[m.getElementById(t.trim().split("#")[1])],n=0;n<s.length;n+=1)s[n]&&i.push(s[n])}else if(t.nodeType||t===R||t===m)i.push(t);else if(0<t.length&&t[0].nodeType)for(n=0;n<t.length;n+=1)i.push(t[n]);return new l(i)}function o(t){for(var e=[],i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}I.fn=l.prototype,I.Class=l,I.Dom7=l;var e={addClass:function(t){if(void 0===t)return this;for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(e[i]);return this},removeClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(e[i]);return this},attr:function(t,e){var i=arguments;if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(t,e);else for(var s in t)this[n][s]=t[s],this[n].setAttribute(s,t[s]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){var i;if(void 0!==e){for(var n=0;n<this.length;n+=1)(i=this[n]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0])return i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage?i.dom7ElementDataStorage[t]:i.getAttribute("data-"+t)||void 0},transform:function(t){for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=e[0],o=e[1],r=e[2],s=e[3];function a(t){var e=t.target;if(e){var i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),I(e).is(o))r.apply(e,i);else for(var n=I(e).parents(),s=0;s<n.length;s+=1)I(n[s]).is(o)&&r.apply(n[s],i)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof e[1]&&(n=(t=e)[0],r=t[1],s=t[2],o=void 0),s||(s=!1);for(var c,h=n.split(" "),d=0;d<this.length;d+=1){var u=this[d];if(o)for(c=0;c<h.length;c+=1){var p=h[c];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[p]||(u.dom7LiveListeners[p]=[]),u.dom7LiveListeners[p].push({listener:r,proxyListener:a}),u.addEventListener(p,a,s)}else for(c=0;c<h.length;c+=1){var f=h[c];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:r,proxyListener:l}),u.addEventListener(f,l,s)}}return this},off:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=e[0],s=e[1],o=e[2],r=e[3];"function"==typeof e[1]&&(n=(t=e)[0],o=t[1],r=t[2],s=void 0),r||(r=!1);for(var a=n.split(" "),l=0;l<a.length;l+=1)for(var c=a[l],h=0;h<this.length;h+=1){var d=this[h],u=void 0;if(!s&&d.dom7Listeners?u=d.dom7Listeners[c]:s&&d.dom7LiveListeners&&(u=d.dom7LiveListeners[c]),u&&u.length)for(var p=u.length-1;0<=p;p-=1){var f=u[p];o&&f.listener===o?(d.removeEventListener(c,f.proxyListener,r),u.splice(p,1)):o||(d.removeEventListener(c,f.proxyListener,r),u.splice(p,1))}}return this},trigger:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=t[0].split(" "),n=t[1],s=0;s<i.length;s+=1)for(var o=i[s],r=0;r<this.length;r+=1){var a=this[r],l=void 0;try{l=new R.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(t){(l=m.createEvent("Event")).initEvent(o,!0,!0),l.detail=n}a.dom7EventData=t.filter(function(t,e){return 0<e}),a.dispatchEvent(l),a.dom7EventData=[],delete a.dom7EventData}return this},transitionEnd:function(e){var i,n=["webkitTransitionEnd","transitionend"],s=this;function o(t){if(t.target===this)for(e.call(this,t),i=0;i<n.length;i+=1)s.off(n[i],o)}if(e)for(i=0;i<n.length;i+=1)s.on(n[i],o);return this},outerWidth:function(t){if(0<this.length){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(0<this.length){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(0<this.length){var t=this[0],e=t.getBoundingClientRect(),i=m.body,n=t.clientTop||i.clientTop||0,s=t.clientLeft||i.clientLeft||0,o=t===R?R.scrollY:t.scrollTop,r=t===R?R.scrollX:t.scrollLeft;return{top:e.top+o-n,left:e.left+r-s}}return null},css:function(t,e){var i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(var n in t)this[i].style[n]=t[n];return this}if(this[0])return R.getComputedStyle(this[0],null).getPropertyValue(t)}if(2!==arguments.length||"string"!=typeof t)return this;for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this},each:function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){var e,i,n=this[0];if(!n||void 0===t)return!1;if("string"==typeof t){if(n.matches)return n.matches(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);for(e=I(t),i=0;i<e.length;i+=1)if(e[i]===n)return!0;return!1}if(t===m)return n===m;if(t===R)return n===R;if(t.nodeType||t instanceof l){for(e=t.nodeType?[t]:t,i=0;i<e.length;i+=1)if(e[i]===n)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e,i=this.length;return new l(i-1<t?[]:t<0?(e=i+t)<0?[]:[this[e]]:[this[t]])},append:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];for(var n=0;n<e.length;n+=1){t=e[n];for(var s=0;s<this.length;s+=1)if("string"==typeof t){var o=m.createElement("div");for(o.innerHTML=t;o.firstChild;)this[s].appendChild(o.firstChild)}else if(t instanceof l)for(var r=0;r<t.length;r+=1)this[s].appendChild(t[r]);else this[s].appendChild(t)}return this},prepend:function(t){var e,i;for(e=0;e<this.length;e+=1)if("string"==typeof t){var n=m.createElement("div");for(n.innerHTML=t,i=n.childNodes.length-1;0<=i;i-=1)this[e].insertBefore(n.childNodes[i],this[e].childNodes[0])}else if(t instanceof l)for(i=0;i<t.length;i+=1)this[e].insertBefore(t[i],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},next:function(t){return 0<this.length?t?this[0].nextElementSibling&&I(this[0].nextElementSibling).is(t)?new l([this[0].nextElementSibling]):new l([]):this[0].nextElementSibling?new l([this[0].nextElementSibling]):new l([]):new l([])},nextAll:function(t){var e=[],i=this[0];if(!i)return new l([]);for(;i.nextElementSibling;){var n=i.nextElementSibling;t?I(n).is(t)&&e.push(n):e.push(n),i=n}return new l(e)},prev:function(t){if(0<this.length){var e=this[0];return t?e.previousElementSibling&&I(e.previousElementSibling).is(t)?new l([e.previousElementSibling]):new l([]):e.previousElementSibling?new l([e.previousElementSibling]):new l([])}return new l([])},prevAll:function(t){var e=[],i=this[0];if(!i)return new l([]);for(;i.previousElementSibling;){var n=i.previousElementSibling;t?I(n).is(t)&&e.push(n):e.push(n),i=n}return new l(e)},parent:function(t){for(var e=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?I(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return I(o(e))},parents:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)t?I(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return I(o(e))},closest:function(t){var e=this;return void 0===t?new l([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(t),s=0;s<n.length;s+=1)e.push(n[s]);return new l(e)},children:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].childNodes,s=0;s<n.length;s+=1)t?1===n[s].nodeType&&I(n[s]).is(t)&&e.push(n[s]):1===n[s].nodeType&&e.push(n[s]);return new l(o(e))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,n;for(i=0;i<t.length;i+=1){var s=I(t[i]);for(n=0;n<s.length;n+=1)this[this.length]=s[n],this.length+=1}return this},styles:function(){return this[0]?R.getComputedStyle(this[0],null):{}}};Object.keys(e).forEach(function(t){I.fn[t]=e[t]});var t,i,n,N={deleteProps:function(t){var e=t;Object.keys(e).forEach(function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:function(t,e){return void 0===e&&(e=0),setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t,e){var i,n,s;void 0===e&&(e="x");var o=R.getComputedStyle(t,null);return R.WebKitCSSMatrix?(6<(n=o.transform||o.webkitTransform).split(",").length&&(n=n.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),s=new R.WebKitCSSMatrix("none"===n?"":n)):i=(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(n=R.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=R.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(t){var e,i,n,s,o={},r=t||R.location.href;if("string"==typeof r&&r.length)for(s=(i=(r=-1<r.indexOf("?")?r.replace(/\S*\?/,""):"").split("&").filter(function(t){return""!==t})).length,e=0;e<s;e+=1)n=i[e].replace(/#\S+/g,"").split("="),o[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return o},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=Object(t[0]),n=1;n<t.length;n+=1){var s=t[n];if(null!=s)for(var o=Object.keys(Object(s)),r=0,a=o.length;r<a;r+=1){var l=o[r],c=Object.getOwnPropertyDescriptor(s,l);void 0!==c&&c.enumerable&&(N.isObject(i[l])&&N.isObject(s[l])?N.extend(i[l],s[l]):!N.isObject(i[l])&&N.isObject(s[l])?(i[l]={},N.extend(i[l],s[l])):i[l]=s[l])}}return i}},X=(n=m.createElement("div"),{touch:R.Modernizr&&!0===R.Modernizr.touch||!!("ontouchstart"in R||R.DocumentTouch&&m instanceof R.DocumentTouch),pointerEvents:!(!R.navigator.pointerEnabled&&!R.PointerEvent),prefixedPointerEvents:!!R.navigator.msPointerEnabled,transition:(i=n.style,"transition"in i||"webkitTransition"in i||"MozTransition"in i),transforms3d:R.Modernizr&&!0===R.Modernizr.csstransforms3d||(t=n.style,"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t),flexbox:function(){for(var t=n.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in t)return!0;return!1}(),observer:"MutationObserver"in R||"WebkitMutationObserver"in R,passiveListener:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});R.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in R}),s=function(t){void 0===t&&(t={});var e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(function(t){e.on(t,e.params.on[t])})},r={components:{configurable:!0}};s.prototype.on=function(t,e,i){var n=this;if("function"!=typeof e)return n;var s=i?"unshift":"push";return t.split(" ").forEach(function(t){n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][s](e)}),n},s.prototype.once=function(n,s,t){var o=this;return"function"!=typeof s?o:o.on(n,function t(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];s.apply(o,e),o.off(n,t)},t)},s.prototype.off=function(t,n){var s=this;return s.eventsListeners&&t.split(" ").forEach(function(i){void 0===n?s.eventsListeners[i]=[]:s.eventsListeners[i].forEach(function(t,e){t===n&&s.eventsListeners[i].splice(e,1)})}),s},s.prototype.emit=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,n,s,o=this;return o.eventsListeners&&(s="string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],n=t.slice(1,t.length),o):(i=t[0].events,n=t[0].data,t[0].context||o),(Array.isArray(i)?i:i.split(" ")).forEach(function(t){if(o.eventsListeners&&o.eventsListeners[t]){var e=[];o.eventsListeners[t].forEach(function(t){e.push(t)}),e.forEach(function(t){t.apply(s,n)})}})),o},s.prototype.useModulesParams=function(i){var n=this;n.modules&&Object.keys(n.modules).forEach(function(t){var e=n.modules[t];e.params&&N.extend(i,e.params)})},s.prototype.useModules=function(n){void 0===n&&(n={});var s=this;s.modules&&Object.keys(s.modules).forEach(function(t){var i=s.modules[t],e=n[t]||{};i.instance&&Object.keys(i.instance).forEach(function(t){var e=i.instance[t];s[t]="function"==typeof e?e.bind(s):e}),i.on&&s.on&&Object.keys(i.on).forEach(function(t){s.on(t,i.on[t])}),i.create&&i.create.bind(s)(e)})},r.components.set=function(t){this.use&&this.use(t)},s.installModule=function(e){for(var t=[],i=arguments.length-1;0<i--;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var s=e.name||Object.keys(n.prototype.modules).length+"_"+N.now();return(n.prototype.modules[s]=e).proto&&Object.keys(e.proto).forEach(function(t){n.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){n[t]=e.static[t]}),e.install&&e.install.apply(n,t),n},s.use=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];var n=this;return Array.isArray(t)?(t.forEach(function(t){return n.installModule(t)}),n):n.installModule.apply(n,[t].concat(e))},Object.defineProperties(s,r);var a={updateSize:function(){var t,e,i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientWidth,e=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),N.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){var t=this,e=t.params,i=t.$wrapperEl,n=t.size,s=t.rtlTranslate,o=t.wrongRTL,r=t.virtual&&e.virtual.enabled,a=r?t.virtual.slides.length:t.slides.length,l=i.children("."+t.params.slideClass),c=r?t.virtual.slides.length:l.length,h=[],d=[],u=[],p=e.slidesOffsetBefore;"function"==typeof p&&(p=e.slidesOffsetBefore.call(t));var f=e.slidesOffsetAfter;"function"==typeof f&&(f=e.slidesOffsetAfter.call(t));var m=t.snapGrid.length,g=t.snapGrid.length,v=e.spaceBetween,y=-p,T=0,b=0;if(void 0!==n){var _,w;"string"==typeof v&&0<=v.indexOf("%")&&(v=parseFloat(v.replace("%",""))/100*n),t.virtualSize=-v,s?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),1<e.slidesPerColumn&&(_=Math.floor(c/e.slidesPerColumn)===c/t.params.slidesPerColumn?c:Math.ceil(c/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(_=Math.max(_,e.slidesPerView*e.slidesPerColumn)));for(var S,x=e.slidesPerColumn,C=_/x,P=C-(e.slidesPerColumn*C-c),E=0;E<c;E+=1){w=0;var A=l.eq(E);if(1<e.slidesPerColumn){var M=void 0,k=void 0,I=void 0;"column"===e.slidesPerColumnFill?(I=E-(k=Math.floor(E/x))*x,(P<k||k===P&&I===x-1)&&x<=(I+=1)&&(I=0,k+=1),M=k+I*_/x,A.css({"-webkit-box-ordinal-group":M,"-moz-box-ordinal-group":M,"-ms-flex-order":M,"-webkit-order":M,order:M})):k=E-(I=Math.floor(E/C))*C,A.css("margin-"+(t.isHorizontal()?"top":"left"),0!==I&&e.spaceBetween&&e.spaceBetween+"px").attr("data-swiper-column",k).attr("data-swiper-row",I)}if("none"!==A.css("display")){if("auto"===e.slidesPerView){var D=R.getComputedStyle(A[0],null),O=A[0].style.transform,H=A[0].style.webkitTransform;O&&(A[0].style.transform="none"),H&&(A[0].style.webkitTransform="none"),w=t.isHorizontal()?A[0].getBoundingClientRect().width+parseFloat(D.getPropertyValue("margin-left"))+parseFloat(D.getPropertyValue("margin-right")):A[0].getBoundingClientRect().height+parseFloat(D.getPropertyValue("margin-top"))+parseFloat(D.getPropertyValue("margin-bottom")),O&&(A[0].style.transform=O),H&&(A[0].style.webkitTransform=H),e.roundLengths&&(w=Math.floor(w))}else w=(n-(e.slidesPerView-1)*v)/e.slidesPerView,e.roundLengths&&(w=Math.floor(w)),l[E]&&(t.isHorizontal()?l[E].style.width=w+"px":l[E].style.height=w+"px");l[E]&&(l[E].swiperSlideSize=w),u.push(w),e.centeredSlides?(y=y+w/2+T/2+v,0===T&&0!==E&&(y=y-n/2-v),0===E&&(y=y-n/2-v),Math.abs(y)<.001&&(y=0),e.roundLengths&&(y=Math.floor(y)),b%e.slidesPerGroup==0&&h.push(y),d.push(y)):(e.roundLengths&&(y=Math.floor(y)),b%e.slidesPerGroup==0&&h.push(y),d.push(y),y=y+w+v),t.virtualSize+=w+v,T=w,b+=1}}if(t.virtualSize=Math.max(t.virtualSize,n)+f,s&&o&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:t.virtualSize+e.spaceBetween+"px"}),X.flexbox&&!e.setWrapperSize||(t.isHorizontal()?i.css({width:t.virtualSize+e.spaceBetween+"px"}):i.css({height:t.virtualSize+e.spaceBetween+"px"})),1<e.slidesPerColumn&&(t.virtualSize=(w+e.spaceBetween)*_,t.virtualSize=Math.ceil(t.virtualSize/e.slidesPerColumn)-e.spaceBetween,t.isHorizontal()?i.css({width:t.virtualSize+e.spaceBetween+"px"}):i.css({height:t.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){S=[];for(var L=0;L<h.length;L+=1){var B=h[L];e.roundLengths&&(B=Math.floor(B)),h[L]<t.virtualSize+h[0]&&S.push(B)}h=S}if(!e.centeredSlides){S=[];for(var z=0;z<h.length;z+=1){var G=h[z];e.roundLengths&&(G=Math.floor(G)),h[z]<=t.virtualSize-n&&S.push(G)}h=S,1<Math.floor(t.virtualSize-n)-Math.floor(h[h.length-1])&&h.push(t.virtualSize-n)}0===h.length&&(h=[0]),0!==e.spaceBetween&&(t.isHorizontal()?s?l.css({marginLeft:v+"px"}):l.css({marginRight:v+"px"}):l.css({marginBottom:v+"px"})),N.extend(t,{slides:l,snapGrid:h,slidesGrid:d,slidesSizesGrid:u}),c!==a&&t.emit("slidesLengthChange"),h.length!==m&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),d.length!==g&&t.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&t.updateSlidesOffset()}},updateAutoHeight:function(t){var e,i=this,n=[],s=0;if("number"==typeof t?i.setTransition(t):!0===t&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&1<i.params.slidesPerView)for(e=0;e<Math.ceil(i.params.slidesPerView);e+=1){var o=i.activeIndex+e;if(o>i.slides.length)break;n.push(i.slides.eq(o)[0])}else n.push(i.slides.eq(i.activeIndex)[0]);for(e=0;e<n.length;e+=1)if(void 0!==n[e]){var r=n[e].offsetHeight;s=s<r?r:s}s&&i.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this.params,i=this.slides,n=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var s=-t;n&&(s=t),i.removeClass(e.slideVisibleClass);for(var o=0;o<i.length;o+=1){var r=i[o],a=(s+(e.centeredSlides?this.minTranslate():0)-r.swiperSlideOffset)/(r.swiperSlideSize+e.spaceBetween);if(e.watchSlidesVisibility){var l=-(s-r.swiperSlideOffset),c=l+this.slidesSizesGrid[o];(0<=l&&l<this.size||0<c&&c<=this.size||l<=0&&c>=this.size)&&i.eq(o).addClass(e.slideVisibleClass)}r.progress=n?-a:a}}},updateProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this,i=e.params,n=e.maxTranslate()-e.minTranslate(),s=e.progress,o=e.isBeginning,r=e.isEnd,a=o,l=r;r=0===n?o=!(s=0):(o=(s=(t-e.minTranslate())/n)<=0,1<=s),N.extend(e,{progress:s,isBeginning:o,isEnd:r}),(i.watchSlidesProgress||i.watchSlidesVisibility)&&e.updateSlidesProgress(t),o&&!a&&e.emit("reachBeginning toEdge"),r&&!l&&e.emit("reachEnd toEdge"),(a&&!o||l&&!r)&&e.emit("fromEdge"),e.emit("progress",s)},updateSlidesClasses:function(){var t,e=this.slides,i=this.params,n=this.$wrapperEl,s=this.activeIndex,o=this.realIndex,r=this.virtual&&i.virtual.enabled;e.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(t=r?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+s+'"]'):e.eq(s)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass));var a=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===a.length&&(a=e.eq(0)).addClass(i.slideNextClass);var l=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=e.eq(-1)).addClass(i.slidePrevClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(t){var e,i=this,n=i.rtlTranslate?i.translate:-i.translate,s=i.slidesGrid,o=i.snapGrid,r=i.params,a=i.activeIndex,l=i.realIndex,c=i.snapIndex,h=t;if(void 0===h){for(var d=0;d<s.length;d+=1)void 0!==s[d+1]?n>=s[d]&&n<s[d+1]-(s[d+1]-s[d])/2?h=d:n>=s[d]&&n<s[d+1]&&(h=d+1):n>=s[d]&&(h=d);r.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if((e=0<=o.indexOf(n)?o.indexOf(n):Math.floor(h/r.slidesPerGroup))>=o.length&&(e=o.length-1),h!==a){var u=parseInt(i.slides.eq(h).attr("data-swiper-slide-index")||h,10);N.extend(i,{snapIndex:e,realIndex:u,previousIndex:a,activeIndex:h}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==u&&i.emit("realIndexChange"),i.emit("slideChange")}else e!==c&&(i.snapIndex=e,i.emit("snapIndexChange"))},updateClickedSlide:function(t){var e=this,i=e.params,n=I(t.target).closest("."+i.slideClass)[0],s=!1;if(n)for(var o=0;o<e.slides.length;o+=1)e.slides[o]===n&&(s=!0);if(!n||!s)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(I(n).attr("data-swiper-slide-index"),10):e.clickedIndex=I(n).index(),i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},c={getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this.params,i=this.rtlTranslate,n=this.translate,s=this.$wrapperEl;if(e.virtualTranslate)return i?-n:n;var o=N.getTranslate(s[0],t);return i&&(o=-o),o||0},setTranslate:function(t,e){var i=this,n=i.rtlTranslate,s=i.params,o=i.$wrapperEl,r=i.progress,a=0,l=0;i.isHorizontal()?a=n?-t:t:l=t,s.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),s.virtualTranslate||(X.transforms3d?o.transform("translate3d("+a+"px, "+l+"px, 0px)"):o.transform("translate("+a+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?a:l;var c=i.maxTranslate()-i.minTranslate();(0===c?0:(t-i.minTranslate())/c)!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}},h={slideTo:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0);var s=this,o=t;o<0&&(o=0);var r=s.params,a=s.snapGrid,l=s.slidesGrid,c=s.previousIndex,h=s.activeIndex,d=s.rtlTranslate;if(s.animating&&r.preventInteractionOnTransition)return!1;var u=Math.floor(o/r.slidesPerGroup);u>=a.length&&(u=a.length-1),(h||r.initialSlide||0)===(c||0)&&i&&s.emit("beforeSlideChangeStart");var p,f=-a[u];if(s.updateProgress(f),r.normalizeSlideIndex)for(var m=0;m<l.length;m+=1)-Math.floor(100*f)>=Math.floor(100*l[m])&&(o=m);if(s.initialized&&o!==h){if(!s.allowSlideNext&&f<s.translate&&f<s.minTranslate())return!1;if(!s.allowSlidePrev&&f>s.translate&&f>s.maxTranslate()&&(h||0)!==o)return!1}return p=h<o?"next":o<h?"prev":"reset",d&&-f===s.translate||!d&&f===s.translate?(s.updateActiveIndex(o),r.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==r.effect&&s.setTranslate(f),"reset"!==p&&(s.transitionStart(i,p),s.transitionEnd(i,p)),!1):(0!==e&&X.transition?(s.setTransition(e),s.setTranslate(f),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,p),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,p))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))):(s.setTransition(0),s.setTranslate(f),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,p),s.transitionEnd(i,p)),!0)},slideToLoop:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0);var s=t;return this.params.loop&&(s+=this.loopedSlides),this.slideTo(s,e,i,n)},slideNext:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this.params,s=this.animating;return n.loop?!s&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+n.slidesPerGroup,t,e,i)):this.slideTo(this.activeIndex+n.slidesPerGroup,t,e,i)},slidePrev:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this,s=n.params,o=n.animating,r=n.snapGrid,a=n.slidesGrid,l=n.rtlTranslate;if(s.loop){if(o)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var h,d=c(l?n.translate:-n.translate),u=r.map(function(t){return c(t)}),p=(a.map(function(t){return c(t)}),r[u.indexOf(d)],r[u.indexOf(d)-1]);return void 0!==p&&(h=a.indexOf(p))<0&&(h=n.activeIndex-1),n.slideTo(h,t,e,i)},slideReset:function(t,e,i){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this,s=n.activeIndex,o=Math.floor(s/n.params.slidesPerGroup);if(o<n.snapGrid.length-1){var r=n.rtlTranslate?n.translate:-n.translate,a=n.snapGrid[o];(n.snapGrid[o+1]-a)/2<r-a&&(s=n.params.slidesPerGroup)}return n.slideTo(s,t,e,i)},slideToClickedSlide:function(){var t,e=this,i=e.params,n=e.$wrapperEl,s="auto"===i.slidesPerView?e.slidesPerViewDynamic():i.slidesPerView,o=e.clickedIndex;if(i.loop){if(e.animating)return;t=parseInt(I(e.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?o<e.loopedSlides-s/2||o>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),o=n.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),N.nextTick(function(){e.slideTo(o)})):e.slideTo(o):o>e.slides.length-s?(e.loopFix(),o=n.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),N.nextTick(function(){e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},d={loopCreate:function(){var n=this,t=n.params,e=n.$wrapperEl;e.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var s=e.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var i=t.slidesPerGroup-s.length%t.slidesPerGroup;if(i!==t.slidesPerGroup){for(var o=0;o<i;o+=1){var r=I(m.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);e.append(r)}s=e.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=s.length),n.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>s.length&&(n.loopedSlides=s.length);var a=[],l=[];s.each(function(t,e){var i=I(e);t<n.loopedSlides&&l.push(e),t<s.length&&t>=s.length-n.loopedSlides&&a.push(e),i.attr("data-swiper-slide-index",t)});for(var c=0;c<l.length;c+=1)e.append(I(l[c].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var h=a.length-1;0<=h;h-=1)e.prepend(I(a[h].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){var t,e=this,i=e.params,n=e.activeIndex,s=e.slides,o=e.loopedSlides,r=e.allowSlidePrev,a=e.allowSlideNext,l=e.snapGrid,c=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var h=-l[n]-e.getTranslate();n<o?(t=s.length-3*o+n,t+=o,e.slideTo(t,0,!1,!0)&&0!==h&&e.setTranslate((c?-e.translate:e.translate)-h)):("auto"===i.slidesPerView&&2*o<=n||n>=s.length-o)&&(t=-s.length+n+o,t+=o,e.slideTo(t,0,!1,!0)&&0!==h&&e.setTranslate((c?-e.translate:e.translate)-h)),e.allowSlidePrev=r,e.allowSlideNext=a},loopDestroy:function(){var t=this.$wrapperEl,e=this.params,i=this.slides;t.children("."+e.slideClass+"."+e.slideDuplicateClass).remove(),i.removeAttr("data-swiper-slide-index")}},u={setGrabCursor:function(t){if(!(X.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){X.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},p={appendSlide:function(t){var e=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof t&&"length"in t)for(var n=0;n<t.length;n+=1)t[n]&&e.append(t[n]);else e.append(t);i.loop&&this.loopCreate(),i.observer&&X.observer||this.update()},prependSlide:function(t){var e=this.params,i=this.$wrapperEl,n=this.activeIndex;e.loop&&this.loopDestroy();var s=n+1;if("object"==typeof t&&"length"in t){for(var o=0;o<t.length;o+=1)t[o]&&i.prepend(t[o]);s=n+t.length}else i.prepend(t);e.loop&&this.loopCreate(),e.observer&&X.observer||this.update(),this.slideTo(s,0,!1)},addSlide:function(t,e){var i=this,n=i.$wrapperEl,s=i.params,o=i.activeIndex;s.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+s.slideClass));var r=i.slides.length;if(t<=0)i.prependSlide(e);else if(r<=t)i.appendSlide(e);else{for(var a=t<o?o+1:o,l=[],c=r-1;t<=c;c-=1){var h=i.slides.eq(c);h.remove(),l.unshift(h)}if("object"==typeof e&&"length"in e){for(var d=0;d<e.length;d+=1)e[d]&&n.append(e[d]);a=t<o?o+e.length:o}else n.append(e);for(var u=0;u<l.length;u+=1)n.append(l[u]);s.loop&&i.loopCreate(),s.observer&&X.observer||i.update(),s.loop?i.slideTo(a+i.loopedSlides,0,!1):i.slideTo(a,0,!1)}},removeSlide:function(t){var e=this,i=e.params,n=e.$wrapperEl,s=e.activeIndex;i.loop&&(s-=e.loopedSlides,e.loopDestroy(),e.slides=n.children("."+i.slideClass));var o,r=s;if("object"==typeof t&&"length"in t){for(var a=0;a<t.length;a+=1)o=t[a],e.slides[o]&&e.slides.eq(o).remove(),o<r&&(r-=1);r=Math.max(r,0)}else o=t,e.slides[o]&&e.slides.eq(o).remove(),o<r&&(r-=1),r=Math.max(r,0);i.loop&&e.loopCreate(),i.observer&&X.observer||e.update(),i.loop?e.slideTo(r+e.loopedSlides,0,!1):e.slideTo(r,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},f=function(){var t=R.navigator.userAgent,e={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:R.cordova||R.phonegap,phonegap:R.cordova||R.phonegap},i=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=t.match(/(Android);?[\s\/]+([\d.]+)?/),s=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),r=!s&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(e.os="windows",e.osVersion=i[2],e.windows=!0),n&&!i&&(e.os="android",e.osVersion=n[2],e.android=!0,e.androidChrome=0<=t.toLowerCase().indexOf("chrome")),(s||r||o)&&(e.os="ios",e.ios=!0),r&&!o&&(e.osVersion=r[2].replace(/_/g,"."),e.iphone=!0),s&&(e.osVersion=s[2].replace(/_/g,"."),e.ipad=!0),o&&(e.osVersion=o[3]?o[3].replace(/_/g,"."):null,e.iphone=!0),e.ios&&e.osVersion&&0<=t.indexOf("Version/")&&"10"===e.osVersion.split(".")[0]&&(e.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),e.desktop=!(e.os||e.android||e.webView),e.webView=(r||s||o)&&t.match(/.*AppleWebKit(?!.*Safari)/i),e.os&&"ios"===e.os){var a=e.osVersion.split("."),l=m.querySelector('meta[name="viewport"]');e.minimalUi=!e.webView&&(o||r)&&(1*a[0]==7?1<=1*a[1]:7<1*a[0])&&l&&0<=l.getAttribute("content").indexOf("minimal-ui")}return e.pixelRatio=R.devicePixelRatio||1,e}();function g(){var t=this,e=t.params,i=t.el;if(!i||0!==i.offsetWidth){e.breakpoints&&t.setBreakpoint();var n=t.allowSlideNext,s=t.allowSlidePrev,o=t.snapGrid;if(t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),e.freeMode){var r=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(r),t.updateActiveIndex(),t.updateSlidesClasses(),e.autoHeight&&t.updateAutoHeight()}else t.updateSlidesClasses(),("auto"===e.slidesPerView||1<e.slidesPerView)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);t.allowSlidePrev=s,t.allowSlideNext=n,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}}var v,y={attachEvents:function(){var t=this,e=t.params,i=t.touchEvents,n=t.el,s=t.wrapperEl;t.onTouchStart=function(t){var e=this,i=e.touchEventsData,n=e.params,s=e.touches;if(!e.animating||!n.preventInteractionOnTransition){var o=t;if(o.originalEvent&&(o=o.originalEvent),i.isTouchEvent="touchstart"===o.type,(i.isTouchEvent||!("which"in o)||3!==o.which)&&(!i.isTouched||!i.isMoved))if(n.noSwiping&&I(o.target).closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])e.allowClick=!0;else if(!n.swipeHandler||I(o).closest(n.swipeHandler)[0]){s.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,s.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;var r=s.currentX,a=s.currentY,l=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,c=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!l||!(r<=c||r>=R.screen.width-c)){if(N.extend(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=r,s.startY=a,i.touchStartTime=N.now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,0<n.threshold&&(i.allowThresholdMove=!1),"touchstart"!==o.type){var h=!0;I(o.target).is(i.formElements)&&(h=!1),m.activeElement&&I(m.activeElement).is(i.formElements)&&m.activeElement!==o.target&&m.activeElement.blur(),h&&e.allowTouchMove&&o.preventDefault()}e.emit("touchStart",o)}}}}.bind(t),t.onTouchMove=function(t){var e=this,i=e.touchEventsData,n=e.params,s=e.touches,o=e.rtlTranslate,r=t;if(r.originalEvent&&(r=r.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==r.type){var a="touchmove"===r.type?r.targetTouches[0].pageX:r.pageX,l="touchmove"===r.type?r.targetTouches[0].pageY:r.pageY;if(r.preventedByNestedSwiper)return s.startX=a,void(s.startY=l);if(!e.allowTouchMove)return e.allowClick=!1,void(i.isTouched&&(N.extend(s,{startX:a,startY:l,currentX:a,currentY:l}),i.touchStartTime=N.now()));if(i.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(e.isVertical()){if(l<s.startY&&e.translate<=e.maxTranslate()||l>s.startY&&e.translate>=e.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(a<s.startX&&e.translate<=e.maxTranslate()||a>s.startX&&e.translate>=e.minTranslate())return;if(i.isTouchEvent&&m.activeElement&&r.target===m.activeElement&&I(r.target).is(i.formElements))return i.isMoved=!0,void(e.allowClick=!1);if(i.allowTouchCallbacks&&e.emit("touchMove",r),!(r.targetTouches&&1<r.targetTouches.length)){s.currentX=a,s.currentY=l;var c,h=s.currentX-s.startX,d=s.currentY-s.startY;if(!(e.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(d,2))<e.params.threshold))if(void 0===i.isScrolling&&(e.isHorizontal()&&s.currentY===s.startY||e.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:25<=h*h+d*d&&(c=180*Math.atan2(Math.abs(d),Math.abs(h))/Math.PI,i.isScrolling=e.isHorizontal()?c>n.touchAngle:90-c>n.touchAngle)),i.isScrolling&&e.emit("touchMoveOpposite",r),void 0===i.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){e.allowClick=!1,r.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&r.stopPropagation(),i.isMoved||(n.loop&&e.loopFix(),i.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!n.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",r)),e.emit("sliderMove",r),i.isMoved=!0;var u=e.isHorizontal()?h:d;s.diff=u,u*=n.touchRatio,o&&(u=-u),e.swipeDirection=0<u?"prev":"next",i.currentTranslate=u+i.startTranslate;var p=!0,f=n.resistanceRatio;if(n.touchReleaseOnEdges&&(f=0),0<u&&i.currentTranslate>e.minTranslate()?(p=!1,n.resistance&&(i.currentTranslate=e.minTranslate()-1+Math.pow(-e.minTranslate()+i.startTranslate+u,f))):u<0&&i.currentTranslate<e.maxTranslate()&&(p=!1,n.resistance&&(i.currentTranslate=e.maxTranslate()+1-Math.pow(e.maxTranslate()-i.startTranslate-u,f))),p&&(r.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),0<n.threshold){if(!(Math.abs(u)>n.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=e.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}n.followFinger&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),n.freeMode&&(0===i.velocities.length&&i.velocities.push({position:s[e.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:s[e.isHorizontal()?"currentX":"currentY"],time:N.now()})),e.updateProgress(i.currentTranslate),e.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&e.emit("touchMoveOpposite",r)}.bind(t),t.onTouchEnd=function(t){var e=this,i=e.touchEventsData,n=e.params,s=e.touches,o=e.rtlTranslate,r=e.$wrapperEl,a=e.slidesGrid,l=e.snapGrid,c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var h,d=N.now(),u=d-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap",c),u<300&&300<d-i.lastClickTime&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=N.nextTick(function(){e&&!e.destroyed&&e.emit("click",c)},300)),u<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),e.emit("doubleTap",c))),i.lastClickTime=N.now(),N.nextTick(function(){e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===s.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=n.followFinger?o?e.translate:-e.translate:-i.currentTranslate,n.freeMode){if(h<-e.minTranslate())return void e.slideTo(e.activeIndex);if(h>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(1<i.velocities.length){var p=i.velocities.pop(),f=i.velocities.pop(),m=p.position-f.position,g=p.time-f.time;e.velocity=m/g,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(150<g||300<N.now()-p.time)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var v=1e3*n.freeModeMomentumRatio,y=e.velocity*v,T=e.translate+y;o&&(T=-T);var b,_,w=!1,S=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;if(T<e.maxTranslate())n.freeModeMomentumBounce?(T+e.maxTranslate()<-S&&(T=e.maxTranslate()-S),b=e.maxTranslate(),w=!0,i.allowMomentumBounce=!0):T=e.maxTranslate(),n.loop&&n.centeredSlides&&(_=!0);else if(T>e.minTranslate())n.freeModeMomentumBounce?(T-e.minTranslate()>S&&(T=e.minTranslate()+S),b=e.minTranslate(),w=!0,i.allowMomentumBounce=!0):T=e.minTranslate(),n.loop&&n.centeredSlides&&(_=!0);else if(n.freeModeSticky){for(var x,C=0;C<l.length;C+=1)if(l[C]>-T){x=C;break}T=-(T=Math.abs(l[x]-T)<Math.abs(l[x-1]-T)||"next"===e.swipeDirection?l[x]:l[x-1])}if(_&&e.once("transitionEnd",function(){e.loopFix()}),0!==e.velocity)v=o?Math.abs((-T-e.translate)/e.velocity):Math.abs((T-e.translate)/e.velocity);else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&w?(e.updateProgress(b),e.setTransition(v),e.setTranslate(T),e.transitionStart(!0,e.swipeDirection),e.animating=!0,r.transitionEnd(function(){e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),e.setTranslate(b),r.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(T),e.setTransition(v),e.setTranslate(T),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,r.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(T),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();(!n.freeModeMomentum||u>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var P=0,E=e.slidesSizesGrid[0],A=0;A<a.length;A+=n.slidesPerGroup)void 0!==a[A+n.slidesPerGroup]?h>=a[A]&&h<a[A+n.slidesPerGroup]&&(E=a[(P=A)+n.slidesPerGroup]-a[A]):h>=a[A]&&(P=A,E=a[a.length-1]-a[a.length-2]);var M=(h-a[P])/E;if(u>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(M>=n.longSwipesRatio?e.slideTo(P+n.slidesPerGroup):e.slideTo(P)),"prev"===e.swipeDirection&&(M>1-n.longSwipesRatio?e.slideTo(P+n.slidesPerGroup):e.slideTo(P))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(P+n.slidesPerGroup),"prev"===e.swipeDirection&&e.slideTo(P)}}}.bind(t),t.onClick=function(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(t);var o="container"===e.touchEventsTarget?n:s,r=!!e.nested;if(X.touch||!X.pointerEvents&&!X.prefixedPointerEvents){if(X.touch){var a=!("touchstart"!==i.start||!X.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};o.addEventListener(i.start,t.onTouchStart,a),o.addEventListener(i.move,t.onTouchMove,X.passiveListener?{passive:!1,capture:r}:r),o.addEventListener(i.end,t.onTouchEnd,a)}(e.simulateTouch&&!f.ios&&!f.android||e.simulateTouch&&!X.touch&&f.ios)&&(o.addEventListener("mousedown",t.onTouchStart,!1),m.addEventListener("mousemove",t.onTouchMove,r),m.addEventListener("mouseup",t.onTouchEnd,!1))}else o.addEventListener(i.start,t.onTouchStart,!1),m.addEventListener(i.move,t.onTouchMove,r),m.addEventListener(i.end,t.onTouchEnd,!1);(e.preventClicks||e.preventClicksPropagation)&&o.addEventListener("click",t.onClick,!0),t.on(f.ios||f.android?"resize orientationchange observerUpdate":"resize observerUpdate",g,!0)},detachEvents:function(){var t=this,e=t.params,i=t.touchEvents,n=t.el,s=t.wrapperEl,o="container"===e.touchEventsTarget?n:s,r=!!e.nested;if(X.touch||!X.pointerEvents&&!X.prefixedPointerEvents){if(X.touch){var a=!("onTouchStart"!==i.start||!X.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(i.start,t.onTouchStart,a),o.removeEventListener(i.move,t.onTouchMove,r),o.removeEventListener(i.end,t.onTouchEnd,a)}(e.simulateTouch&&!f.ios&&!f.android||e.simulateTouch&&!X.touch&&f.ios)&&(o.removeEventListener("mousedown",t.onTouchStart,!1),m.removeEventListener("mousemove",t.onTouchMove,r),m.removeEventListener("mouseup",t.onTouchEnd,!1))}else o.removeEventListener(i.start,t.onTouchStart,!1),m.removeEventListener(i.move,t.onTouchMove,r),m.removeEventListener(i.end,t.onTouchEnd,!1);(e.preventClicks||e.preventClicksPropagation)&&o.removeEventListener("click",t.onClick,!0),t.off(f.ios||f.android?"resize orientationchange observerUpdate":"resize observerUpdate",g)}},T={setBreakpoint:function(){var t=this,e=t.activeIndex,i=t.initialized,n=t.loopedSlides;void 0===n&&(n=0);var s=t.params,o=s.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var r=t.getBreakpoint(o);if(r&&t.currentBreakpoint!==r){var a=r in o?o[r]:t.originalParams,l=s.loop&&a.slidesPerView!==s.slidesPerView;N.extend(t.params,a),N.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=r,l&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-n+t.loopedSlides,0,!1)),t.emit("breakpoint",a)}}},getBreakpoint:function(t){if(t){var e=!1,i=[];Object.keys(t).forEach(function(t){i.push(t)}),i.sort(function(t,e){return parseInt(t,10)-parseInt(e,10)});for(var n=0;n<i.length;n+=1){var s=i[n];s>=R.innerWidth&&!e&&(e=s)}return e||"max"}}},D={isIE:!!R.navigator.userAgent.match(/Trident/g)||!!R.navigator.userAgent.match(/MSIE/g),isSafari:(v=R.navigator.userAgent.toLowerCase(),0<=v.indexOf("safari")&&v.indexOf("chrome")<0&&v.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(R.navigator.userAgent)},b={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},_={update:a,translate:c,transition:{setTransition:function(t,e){this.$wrapperEl.transition(t),this.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);var i=this.activeIndex,n=this.params,s=this.previousIndex;n.autoHeight&&this.updateAutoHeight();var o=e;if(o||(o=s<i?"next":i<s?"prev":"reset"),this.emit("transitionStart"),t&&i!==s){if("reset"===o)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===o?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(t,e){void 0===t&&(t=!0);var i=this.activeIndex,n=this.previousIndex;this.animating=!1,this.setTransition(0);var s=e;if(s||(s=n<i?"next":i<n?"prev":"reset"),this.emit("transitionEnd"),t&&i!==n){if("reset"===s)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===s?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}},slide:h,loop:d,grabCursor:u,manipulation:p,events:y,breakpoints:T,checkOverflow:{checkOverflow:function(){var t=this,e=t.isLocked;t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),e&&e!==t.isLocked&&(t.isEnd=!1,t.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,i=this.params,t=this.rtl,n=this.$el,s=[];s.push(i.direction),i.freeMode&&s.push("free-mode"),X.flexbox||s.push("no-flexbox"),i.autoHeight&&s.push("autoheight"),t&&s.push("rtl"),1<i.slidesPerColumn&&s.push("multirow"),f.android&&s.push("android"),f.ios&&s.push("ios"),D.isIE&&(X.pointerEvents||X.prefixedPointerEvents)&&s.push("wp8-"+i.direction),s.forEach(function(t){e.push(i.containerModifierClass+t)}),n.addClass(e.join(" "))},removeClasses:function(){var t=this.$el,e=this.classNames;t.removeClass(e.join(" "))}},images:{loadImage:function(t,e,i,n,s,o){var r;function a(){o&&o()}t.complete&&s?a():e?((r=new R.Image).onload=a,r.onerror=a,n&&(r.sizes=n),i&&(r.srcset=i),e&&(r.src=e)):a()},preloadImages:function(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},w={},S=function(u){function p(){for(var t,e,s,i=[],n=arguments.length;n--;)i[n]=arguments[n];(s=1===i.length&&i[0].constructor&&i[0].constructor===Object?i[0]:(e=(t=i)[0],t[1]))||(s={}),s=N.extend({},s),e&&!s.el&&(s.el=e),u.call(this,s),Object.keys(_).forEach(function(e){Object.keys(_[e]).forEach(function(t){p.prototype[t]||(p.prototype[t]=_[e][t])})});var o=this;void 0===o.modules&&(o.modules={}),Object.keys(o.modules).forEach(function(t){var e=o.modules[t];if(e.params){var i=Object.keys(e.params)[0],n=e.params[i];if("object"!=typeof n)return;if(!(i in s&&"enabled"in n))return;!0===s[i]&&(s[i]={enabled:!0}),"object"!=typeof s[i]||"enabled"in s[i]||(s[i].enabled=!0),s[i]||(s[i]={enabled:!1})}});var r=N.extend({},b);o.useModulesParams(r),o.params=N.extend({},r,w,s),o.originalParams=N.extend({},o.params),o.passedParams=N.extend({},s);var a=(o.$=I)(o.params.el);if(e=a[0]){if(1<a.length){var l=[];return a.each(function(t,e){var i=N.extend({},s,{el:e});l.push(new p(i))}),l}e.swiper=o,a.data("swiper",o);var c,h,d=a.children("."+o.params.wrapperClass);return N.extend(o,{$el:a,el:e,$wrapperEl:d,wrapperEl:d[0],classNames:[],slides:I(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===o.params.direction},isVertical:function(){return"vertical"===o.params.direction},rtl:"rtl"===e.dir.toLowerCase()||"rtl"===a.css("direction"),rtlTranslate:"horizontal"===o.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===a.css("direction")),wrongRTL:"-webkit-box"===d.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEvents:(c=["touchstart","touchmove","touchend"],h=["mousedown","mousemove","mouseup"],X.pointerEvents?h=["pointerdown","pointermove","pointerup"]:X.prefixedPointerEvents&&(h=["MSPointerDown","MSPointerMove","MSPointerUp"]),o.touchEventsTouch={start:c[0],move:c[1],end:c[2]},o.touchEventsDesktop={start:h[0],move:h[1],end:h[2]},X.touch||!o.params.simulateTouch?o.touchEventsTouch:o.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:N.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.useModules(),o.params.init&&o.init(),o}}u&&(p.__proto__=u);var t={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return((p.prototype=Object.create(u&&u.prototype)).constructor=p).prototype.slidesPerViewDynamic=function(){var t=this.params,e=this.slides,i=this.slidesGrid,n=this.size,s=this.activeIndex,o=1;if(t.centeredSlides){for(var r,a=e[s].swiperSlideSize,l=s+1;l<e.length;l+=1)e[l]&&!r&&(o+=1,n<(a+=e[l].swiperSlideSize)&&(r=!0));for(var c=s-1;0<=c;c-=1)e[c]&&!r&&(o+=1,n<(a+=e[c].swiperSlideSize)&&(r=!0))}else for(var h=s+1;h<e.length;h+=1)i[h]-i[s]<n&&(o+=1);return o},p.prototype.update=function(){var i=this;if(i&&!i.destroyed){var t=i.snapGrid,e=i.params;e.breakpoints&&i.setBreakpoint(),i.updateSize(),i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.params.freeMode?(n(),i.params.autoHeight&&i.updateAutoHeight()):(("auto"===i.params.slidesPerView||1<i.params.slidesPerView)&&i.isEnd&&!i.params.centeredSlides?i.slideTo(i.slides.length-1,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0))||n(),e.watchOverflow&&t!==i.snapGrid&&i.checkOverflow(),i.emit("update")}function n(){var t=i.rtlTranslate?-1*i.translate:i.translate,e=Math.min(Math.max(t,i.maxTranslate()),i.minTranslate());i.setTranslate(e),i.updateActiveIndex(),i.updateSlidesClasses()}},p.prototype.init=function(){var t=this;t.initialized||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit),t.attachEvents(),t.initialized=!0,t.emit("init"))},p.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var i=this,n=i.params,s=i.$el,o=i.$wrapperEl,r=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),s.removeAttr("style"),o.removeAttr("style"),r&&r.length&&r.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(t){i.off(t)}),!1!==t&&(i.$el[0].swiper=null,i.$el.data("swiper",null),N.deleteProps(i)),i.destroyed=!0),null},p.extendDefaults=function(t){N.extend(w,t)},t.extendedDefaults.get=function(){return w},t.defaults.get=function(){return b},t.Class.get=function(){return u},t.$.get=function(){return I},Object.defineProperties(p,t),p}(s),x={name:"device",proto:{device:f},static:{device:f}},C={name:"support",proto:{support:X},static:{support:X}},P={name:"browser",proto:{browser:D},static:{browser:D}},E={name:"resize",create:function(){var t=this;N.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){R.addEventListener("resize",this.resize.resizeHandler),R.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){R.removeEventListener("resize",this.resize.resizeHandler),R.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},A={func:R.MutationObserver||R.WebkitMutationObserver,attach:function(t,e){void 0===e&&(e={});var i=this,n=new A.func(function(t){if(1!==t.length){var e=function(){i.emit("observerUpdate",t[0])};R.requestAnimationFrame?R.requestAnimationFrame(e):R.setTimeout(e,0)}else i.emit("observerUpdate",t[0])});n.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.observer.observers.push(n)},init:function(){if(X.observer&&this.params.observer){if(this.params.observeParents)for(var t=this.$el.parents(),e=0;e<t.length;e+=1)this.observer.attach(t[e]);this.observer.attach(this.$el[0],{childList:!1}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(t){t.disconnect()}),this.observer.observers=[]}},M={name:"observer",params:{observer:!1,observeParents:!1},create:function(){N.extend(this,{observer:{init:A.init.bind(this),attach:A.attach.bind(this),destroy:A.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},k={update:function(t){var e=this,i=e.params,n=i.slidesPerView,s=i.slidesPerGroup,o=i.centeredSlides,r=e.virtual,a=r.from,l=r.to,c=r.slides,h=r.slidesGrid,d=r.renderSlide,u=r.offset;e.updateActiveIndex();var p,f,m,g=e.activeIndex||0;p=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",m=o?(f=Math.floor(n/2)+s,Math.floor(n/2)+s):(f=n+(s-1),s);var v=Math.max((g||0)-m,0),y=Math.min((g||0)+f,c.length-1),T=(e.slidesGrid[v]||0)-(e.slidesGrid[0]||0);function b(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(N.extend(e.virtual,{from:v,to:y,offset:T,slidesGrid:e.slidesGrid}),a===v&&l===y&&!t)return e.slidesGrid!==h&&T!==u&&e.slides.css(p,T+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:T,from:v,to:y,slides:function(){for(var t=[],e=v;e<=y;e+=1)t.push(c[e]);return t}()}),void b();var _=[],w=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var S=a;S<=l;S+=1)(S<v||y<S)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+S+'"]').remove();for(var x=0;x<c.length;x+=1)v<=x&&x<=y&&(void 0===l||t?w.push(x):(l<x&&w.push(x),x<a&&_.push(x)));w.forEach(function(t){e.$wrapperEl.append(d(c[t],t))}),_.sort(function(t,e){return t<e}).forEach(function(t){e.$wrapperEl.prepend(d(c[t],t))}),e.$wrapperEl.children(".swiper-slide").css(p,T+"px"),b()},renderSlide:function(t,e){var i=this.params.virtual;if(i.cache&&this.virtual.cache[e])return this.virtual.cache[e];var n=i.renderSlide?I(i.renderSlide.call(this,t,e)):I('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=n),n},appendSlide:function(t){this.virtual.slides.push(t),this.virtual.update(!0)},prependSlide:function(t){if(this.virtual.slides.unshift(t),this.params.virtual.cache){var e=this.virtual.cache,i={};Object.keys(e).forEach(function(t){i[t+1]=e[t]}),this.virtual.cache=i}this.virtual.update(!0),this.slideNext(0)}},O={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null}},create:function(){N.extend(this,{virtual:{update:k.update.bind(this),appendSlide:k.appendSlide.bind(this),prependSlide:k.prependSlide.bind(this),renderSlide:k.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};N.extend(this.params,t),N.extend(this.originalParams,t),this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},H={handle:function(t){var e=this,i=e.rtlTranslate,n=t;n.originalEvent&&(n=n.originalEvent);var s=n.keyCode||n.charCode;if(!e.allowSlideNext&&(e.isHorizontal()&&39===s||e.isVertical()&&40===s))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&37===s||e.isVertical()&&38===s))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||m.activeElement&&m.activeElement.nodeName&&("input"===m.activeElement.nodeName.toLowerCase()||"textarea"===m.activeElement.nodeName.toLowerCase()))){if(e.params.keyboard.onlyInViewport&&(37===s||39===s||38===s||40===s)){var o=!1;if(0<e.$el.parents("."+e.params.slideClass).length&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;var r=R.innerWidth,a=R.innerHeight,l=e.$el.offset();i&&(l.left-=e.$el[0].scrollLeft);for(var c=[[l.left,l.top],[l.left+e.width,l.top],[l.left,l.top+e.height],[l.left+e.width,l.top+e.height]],h=0;h<c.length;h+=1){var d=c[h];0<=d[0]&&d[0]<=r&&0<=d[1]&&d[1]<=a&&(o=!0)}if(!o)return}e.isHorizontal()?(37!==s&&39!==s||(n.preventDefault?n.preventDefault():n.returnValue=!1),(39===s&&!i||37===s&&i)&&e.slideNext(),(37===s&&!i||39===s&&i)&&e.slidePrev()):(38!==s&&40!==s||(n.preventDefault?n.preventDefault():n.returnValue=!1),40===s&&e.slideNext(),38===s&&e.slidePrev()),e.emit("keyPress",s)}},enable:function(){this.keyboard.enabled||(I(m).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(I(m).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},L={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){N.extend(this,{keyboard:{enabled:!1,enable:H.enable.bind(this),disable:H.disable.bind(this),handle:H.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},B={lastScrollTime:N.now(),event:-1<R.navigator.userAgent.indexOf("firefox")?"DOMMouseScroll":function(){var t="onwheel",e=t in m;if(!e){var i=m.createElement("div");i.setAttribute(t,"return;"),e="function"==typeof i[t]}return!e&&m.implementation&&m.implementation.hasFeature&&!0!==m.implementation.hasFeature("","")&&(e=m.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel",normalize:function(t){var e=0,i=0,n=0,s=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,s=10*i,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||s)&&t.deltaMode&&(1===t.deltaMode?(n*=40,s*=40):(n*=800,s*=800)),n&&!e&&(e=n<1?-1:1),s&&!i&&(i=s<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var e=t,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var s=0,o=i.rtlTranslate?-1:1,r=B.normalize(e);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;s=r.pixelX*o}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;s=r.pixelY}else s=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*o:-r.pixelY;if(0===s)return!0;if(n.invert&&(s=-s),i.params.freeMode){i.params.loop&&i.loopFix();var a=i.getTranslate()+s*n.sensitivity,l=i.isBeginning,c=i.isEnd;if(a>=i.minTranslate()&&(a=i.minTranslate()),a<=i.maxTranslate()&&(a=i.maxTranslate()),i.setTransition(0),i.setTranslate(a),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!c&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=N.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),a===i.minTranslate()||a===i.maxTranslate())return!0}else{if(60<N.now()-i.mousewheel.lastScrollTime)if(s<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",e);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",e);i.mousewheel.lastScrollTime=(new R.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},enable:function(){if(!B.event)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=I(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(B.event,this.mousewheel.handle),this.mousewheel.enabled=!0},disable:function(){if(!B.event)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=I(this.params.mousewheel.eventsTarged)),t.off(B.event,this.mousewheel.handle),!(this.mousewheel.enabled=!1)}},z={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextEl,n=e.$prevEl;n&&0<n.length&&(this.isBeginning?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&0<i.length&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},init:function(){var t,e,i=this,n=i.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(t=I(n.nextEl),i.params.uniqueNavElements&&"string"==typeof n.nextEl&&1<t.length&&1===i.$el.find(n.nextEl).length&&(t=i.$el.find(n.nextEl))),n.prevEl&&(e=I(n.prevEl),i.params.uniqueNavElements&&"string"==typeof n.prevEl&&1<e.length&&1===i.$el.find(n.prevEl).length&&(e=i.$el.find(n.prevEl))),t&&0<t.length&&t.on("click",function(t){t.preventDefault(),i.isEnd&&!i.params.loop||i.slideNext()}),e&&0<e.length&&e.on("click",function(t){t.preventDefault(),i.isBeginning&&!i.params.loop||i.slidePrev()}),N.extend(i.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click"),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click"),i.removeClass(this.params.navigation.disabledClass))}},G={update:function(){var t=this,e=t.rtl,s=t.params.pagination;if(s.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var o,i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el,r=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((o=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>i-1-2*t.loopedSlides&&(o-=i-2*t.loopedSlides),r-1<o&&(o-=r),o<0&&"bullets"!==t.params.paginationType&&(o=r+o)):o=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===s.type&&t.pagination.bullets&&0<t.pagination.bullets.length){var a,l,c,h=t.pagination.bullets;if(s.dynamicBullets&&(t.pagination.bulletSize=h.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(s.dynamicMainBullets+4)+"px"),1<s.dynamicMainBullets&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=o-t.previousIndex,t.pagination.dynamicBulletIndex>s.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=s.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),a=o-t.pagination.dynamicBulletIndex,c=((l=a+(Math.min(h.length,s.dynamicMainBullets)-1))+a)/2),h.removeClass(s.bulletActiveClass+" "+s.bulletActiveClass+"-next "+s.bulletActiveClass+"-next-next "+s.bulletActiveClass+"-prev "+s.bulletActiveClass+"-prev-prev "+s.bulletActiveClass+"-main"),1<n.length)h.each(function(t,e){var i=I(e),n=i.index();n===o&&i.addClass(s.bulletActiveClass),s.dynamicBullets&&(a<=n&&n<=l&&i.addClass(s.bulletActiveClass+"-main"),n===a&&i.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),n===l&&i.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next"))});else if(h.eq(o).addClass(s.bulletActiveClass),s.dynamicBullets){for(var d=h.eq(a),u=h.eq(l),p=a;p<=l;p+=1)h.eq(p).addClass(s.bulletActiveClass+"-main");d.prev().addClass(s.bulletActiveClass+"-prev").prev().addClass(s.bulletActiveClass+"-prev-prev"),u.next().addClass(s.bulletActiveClass+"-next").next().addClass(s.bulletActiveClass+"-next-next")}if(s.dynamicBullets){var f=Math.min(h.length,s.dynamicMainBullets+4),m=(t.pagination.bulletSize*f-t.pagination.bulletSize)/2-c*t.pagination.bulletSize,g=e?"right":"left";h.css(t.isHorizontal()?g:"top",m+"px")}}if("fraction"===s.type&&(n.find("."+s.currentClass).text(s.formatFractionCurrent(o+1)),n.find("."+s.totalClass).text(s.formatFractionTotal(r))),"progressbar"===s.type){var v;v=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var y=(o+1)/r,T=1,b=1;"horizontal"===v?T=y:b=y,n.find("."+s.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+b+")").transition(t.params.speed)}"custom"===s.type&&s.renderCustom?(n.html(s.renderCustom(t,o+1,r)),t.emit("paginationRender",t,n[0])):t.emit("paginationUpdate",t,n[0]),n[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](s.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el,s="";if("bullets"===e.type){for(var o=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length,r=0;r<o;r+=1)e.renderBullet?s+=e.renderBullet.call(t,r,e.bulletClass):s+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";n.html(s),t.pagination.bullets=n.find("."+e.bulletClass)}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',n.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',n.html(s)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var i=this,t=i.params.pagination;if(t.el){var e=I(t.el);0!==e.length&&(i.params.uniqueNavElements&&"string"==typeof t.el&&1<e.length&&1===i.$el.find(t.el).length&&(e=i.$el.find(t.el)),"bullets"===t.type&&t.clickable&&e.addClass(t.clickableClass),e.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(e.addClass(""+t.modifierClass+t.type+"-dynamic"),i.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.addClass(t.progressbarOppositeClass),t.clickable&&e.on("click","."+t.bulletClass,function(t){t.preventDefault();var e=I(this).index()*i.params.slidesPerGroup;i.params.loop&&(e+=i.loopedSlides),i.slideTo(e)}),N.extend(i.pagination,{$el:e,el:e[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}}},F={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,i=this.progress,n=t.dragSize,s=t.trackSize,o=t.$dragEl,r=t.$el,a=this.params.scrollbar,l=n,c=(s-n)*i;e?0<(c=-c)?(l=n-c,c=0):s<-c+n&&(l=s+c):c<0?(l=n+c,c=0):s<c+n&&(l=s-c),this.isHorizontal()?(X.transforms3d?o.transform("translate3d("+c+"px, 0, 0)"):o.transform("translateX("+c+"px)"),o[0].style.width=l+"px"):(X.transforms3d?o.transform("translate3d(0px, "+c+"px, 0)"):o.transform("translateY("+c+"px)"),o[0].style.height=l+"px"),a.hide&&(clearTimeout(this.scrollbar.timeout),r[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){r[0].style.opacity=0,r.transition(400)},1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,i=e.$dragEl,n=e.$el;i[0].style.width="",i[0].style.height="";var s,o=t.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,r=t.size/t.virtualSize,a=r*(o/t.size);s="auto"===t.params.scrollbar.dragSize?o*r:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i[0].style.width=s+"px":i[0].style.height=s+"px",n[0].style.display=1<=r?"none":"",t.params.scrollbarHide&&(n[0].style.opacity=0),N.extend(e,{trackSize:o,divider:r,moveDivider:a,dragSize:s}),e.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},setDragPosition:function(t){var e,i=this,n=i.scrollbar,s=i.rtlTranslate,o=n.$el,r=n.dragSize,a=n.trackSize;e=((i.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY)-o.offset()[i.isHorizontal()?"left":"top"]-r/2)/(a-r),e=Math.max(Math.min(e,1),0),s&&(e=1-e);var l=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*e;i.updateProgress(l),i.setTranslate(l),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,n=this.$wrapperEl,s=i.$el,o=i.$dragEl;this.scrollbar.isTouched=!0,t.preventDefault(),t.stopPropagation(),n.transition(100),o.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),s.transition(0),e.hide&&s.css("opacity",1),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,n=e.$el,s=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),n.transition(0),s.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=N.nextTick(function(){i.css("opacity",0),i.transition(400)},1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=t.scrollbar,i=t.touchEvents,n=t.touchEventsDesktop,s=t.params,o=e.$el[0],r=!(!X.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},a=!(!X.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};X.touch||!X.pointerEvents&&!X.prefixedPointerEvents?(X.touch&&(o.addEventListener(i.start,t.scrollbar.onDragStart,r),o.addEventListener(i.move,t.scrollbar.onDragMove,r),o.addEventListener(i.end,t.scrollbar.onDragEnd,a)),(s.simulateTouch&&!f.ios&&!f.android||s.simulateTouch&&!X.touch&&f.ios)&&(o.addEventListener("mousedown",t.scrollbar.onDragStart,r),m.addEventListener("mousemove",t.scrollbar.onDragMove,r),m.addEventListener("mouseup",t.scrollbar.onDragEnd,a))):(o.addEventListener(n.start,t.scrollbar.onDragStart,r),m.addEventListener(n.move,t.scrollbar.onDragMove,r),m.addEventListener(n.end,t.scrollbar.onDragEnd,a))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=t.scrollbar,i=t.touchEvents,n=t.touchEventsDesktop,s=t.params,o=e.$el[0],r=!(!X.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},a=!(!X.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};X.touch||!X.pointerEvents&&!X.prefixedPointerEvents?(X.touch&&(o.removeEventListener(i.start,t.scrollbar.onDragStart,r),o.removeEventListener(i.move,t.scrollbar.onDragMove,r),o.removeEventListener(i.end,t.scrollbar.onDragEnd,a)),(s.simulateTouch&&!f.ios&&!f.android||s.simulateTouch&&!X.touch&&f.ios)&&(o.removeEventListener("mousedown",t.scrollbar.onDragStart,r),m.removeEventListener("mousemove",t.scrollbar.onDragMove,r),m.removeEventListener("mouseup",t.scrollbar.onDragEnd,a))):(o.removeEventListener(n.start,t.scrollbar.onDragStart,r),m.removeEventListener(n.move,t.scrollbar.onDragMove,r),m.removeEventListener(n.end,t.scrollbar.onDragEnd,a))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,n=I(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&1<n.length&&1===e.find(i.el).length&&(n=e.find(i.el));var s=n.find("."+this.params.scrollbar.dragClass);0===s.length&&(s=I('<div class="'+this.params.scrollbar.dragClass+'"></div>'),n.append(s)),N.extend(t,{$el:n,el:n[0],$dragEl:s,dragEl:s[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},$={setTransform:function(t,e){var i=this.rtl,n=I(t),s=i?-1:1,o=n.attr("data-swiper-parallax")||"0",r=n.attr("data-swiper-parallax-x"),a=n.attr("data-swiper-parallax-y"),l=n.attr("data-swiper-parallax-scale"),c=n.attr("data-swiper-parallax-opacity");if(r||a?(r=r||"0",a=a||"0"):this.isHorizontal()?(r=o,a="0"):(a=o,r="0"),r=0<=r.indexOf("%")?parseInt(r,10)*e*s+"%":r*e*s+"px",a=0<=a.indexOf("%")?parseInt(a,10)*e+"%":a*e+"px",null!=c){var h=c-(c-1)*(1-Math.abs(e));n[0].style.opacity=h}if(null==l)n.transform("translate3d("+r+", "+a+", 0px)");else{var d=l-(l-1)*(1-Math.abs(e));n.transform("translate3d("+r+", "+a+", 0px) scale("+d+")")}},setTranslate:function(){var n=this,t=n.$el,e=n.slides,s=n.progress,o=n.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,e){n.parallax.setTransform(e,s)}),e.each(function(t,e){var i=e.progress;1<n.params.slidesPerGroup&&"auto"!==n.params.slidesPerView&&(i+=Math.ceil(t/2)-s*(o.length-1)),i=Math.min(Math.max(i,-1),1),I(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,e){n.parallax.setTransform(e,i)})})},setTransition:function(s){void 0===s&&(s=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,e){var i=I(e),n=parseInt(i.attr("data-swiper-parallax-duration"),10)||s;0===s&&(n=0),i.transition(n)})}},W={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,s=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-e,2)+Math.pow(s-i,2))},onGestureStart:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!X.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,n.scaleStart=W.getDistanceBetweenTouches(t)}n.$slideEl&&n.$slideEl.length||(n.$slideEl=I(t.target).closest(".swiper-slide"),0===n.$slideEl.length&&(n.$slideEl=this.slides.eq(this.activeIndex)),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+e.containerClass),n.maxRatio=n.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==n.$imageWrapEl.length)?(n.$imageEl.transition(0),this.zoom.isScaling=!0):n.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!X.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,n.scaleMove=W.getDistanceBetweenTouches(t)}n.$imageEl&&0!==n.$imageEl.length&&(X.gestures?this.zoom.scale=t.scale*i.currentScale:i.scale=n.scaleMove/n.scaleStart*i.currentScale,i.scale>n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scale<e.minRatio&&(i.scale=e.minRatio+1-Math.pow(e.minRatio-i.scale+1,.5)),n.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!X.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!f.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),e.minRatio),n.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(t){var e=this.zoom,i=e.gesture,n=e.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(f.android&&t.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this.zoom,i=e.gesture,n=e.image,s=e.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=N.getTranslate(i.$imageWrapEl[0],"x")||0,n.startY=N.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(n.startX=-n.startX,n.startY=-n.startY));var o=n.width*e.scale,r=n.height*e.scale;if(!(o<i.slideWidth&&r<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-o/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-r/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!n.isMoved&&!e.isScaling){if(this.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}t.preventDefault(),t.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),s.prevPositionX||(s.prevPositionX=n.touchesCurrent.x),s.prevPositionY||(s.prevPositionY=n.touchesCurrent.y),s.prevTime||(s.prevTime=Date.now()),s.x=(n.touchesCurrent.x-s.prevPositionX)/(Date.now()-s.prevTime)/2,s.y=(n.touchesCurrent.y-s.prevPositionY)/(Date.now()-s.prevTime)/2,Math.abs(n.touchesCurrent.x-s.prevPositionX)<2&&(s.x=0),Math.abs(n.touchesCurrent.y-s.prevPositionY)<2&&(s.y=0),s.prevPositionX=n.touchesCurrent.x,s.prevPositionY=n.touchesCurrent.y,s.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,n=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var s=300,o=300,r=n.x*s,a=i.currentX+r,l=n.y*o,c=i.currentY+l;0!==n.x&&(s=Math.abs((a-i.currentX)/n.x)),0!==n.y&&(o=Math.abs((c-i.currentY)/n.y));var h=Math.max(s,o);i.currentX=a,i.currentY=c;var d=i.width*t.scale,u=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-u/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0,t.scale=1,t.currentScale=1)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,n,s,o,r,a,l,c,h,d,u,p,f,m,g,v=this.zoom,y=this.params.zoom,T=v.gesture,b=v.image;T.$slideEl||(T.$slideEl=this.clickedSlide?I(this.clickedSlide):this.slides.eq(this.activeIndex),T.$imageEl=T.$slideEl.find("img, svg, canvas"),T.$imageWrapEl=T.$imageEl.parent("."+y.containerClass)),T.$imageEl&&0!==T.$imageEl.length&&(T.$slideEl.addClass(""+y.zoomedSlideClass),i=void 0===b.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,"touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=b.touchesStart.x,b.touchesStart.y),v.scale=T.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,v.currentScale=T.$imageWrapEl.attr("data-swiper-zoom")||y.maxRatio,t?(m=T.$slideEl[0].offsetWidth,g=T.$slideEl[0].offsetHeight,n=T.$slideEl.offset().left+m/2-e,s=T.$slideEl.offset().top+g/2-i,a=T.$imageEl[0].offsetWidth,l=T.$imageEl[0].offsetHeight,c=a*v.scale,h=l*v.scale,p=-(d=Math.min(m/2-c/2,0)),f=-(u=Math.min(g/2-h/2,0)),(o=n*v.scale)<d&&(o=d),p<o&&(o=p),(r=s*v.scale)<u&&(r=u),f<r&&(r=f)):r=o=0,T.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+r+"px,0)"),T.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+v.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?I(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+e.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var t=this,e=t.zoom;if(!e.enabled){e.enabled=!0;var i=!("touchstart"!==t.touchEvents.start||!X.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};X.gestures?(t.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,i),t.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,i),t.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,".swiper-slide",e.onGestureStart,i),t.$wrapperEl.on(t.touchEvents.move,".swiper-slide",e.onGestureChange,i),t.$wrapperEl.on(t.touchEvents.end,".swiper-slide",e.onGestureEnd,i)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove)}},disable:function(){var t=this,e=t.zoom;if(e.enabled){t.zoom.enabled=!1;var i=!("touchstart"!==t.touchEvents.start||!X.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};X.gestures?(t.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,i),t.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,i),t.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,".swiper-slide",e.onGestureStart,i),t.$wrapperEl.off(t.touchEvents.move,".swiper-slide",e.onGestureChange,i),t.$wrapperEl.off(t.touchEvents.end,".swiper-slide",e.onGestureEnd,i)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove)}}},Y={loadInSlide:function(t,l){void 0===l&&(l=!0);var c=this,h=c.params.lazy;if(void 0!==t&&0!==c.slides.length){var d=c.virtual&&c.params.virtual.enabled?c.$wrapperEl.children("."+c.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):c.slides.eq(t),e=d.find("."+h.elementClass+":not(."+h.loadedClass+"):not(."+h.loadingClass+")");!d.hasClass(h.elementClass)||d.hasClass(h.loadedClass)||d.hasClass(h.loadingClass)||(e=e.add(d[0])),0!==e.length&&e.each(function(t,e){var n=I(e);n.addClass(h.loadingClass);var s=n.attr("data-background"),o=n.attr("data-src"),r=n.attr("data-srcset"),a=n.attr("data-sizes");c.loadImage(n[0],o||s,r,a,!1,function(){if(null!=c&&c&&(!c||c.params)&&!c.destroyed){if(s?(n.css("background-image",'url("'+s+'")'),n.removeAttr("data-background")):(r&&(n.attr("srcset",r),n.removeAttr("data-srcset")),a&&(n.attr("sizes",a),n.removeAttr("data-sizes")),o&&(n.attr("src",o),n.removeAttr("data-src"))),n.addClass(h.loadedClass).removeClass(h.loadingClass),d.find("."+h.preloaderClass).remove(),c.params.loop&&l){var t=d.attr("data-swiper-slide-index");if(d.hasClass(c.params.slideDuplicateClass)){var e=c.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+c.params.slideDuplicateClass+")");c.lazy.loadInSlide(e.index(),!1)}else{var i=c.$wrapperEl.children("."+c.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');c.lazy.loadInSlide(i.index(),!1)}}c.emit("lazyImageReady",d[0],n[0])}}),c.emit("lazyImageLoad",d[0],n[0])})}},load:function(){var n=this,e=n.$wrapperEl,i=n.params,s=n.slides,t=n.activeIndex,o=n.virtual&&i.virtual.enabled,r=i.lazy,a=i.slidesPerView;function l(t){if(o){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(s[t])return!0;return!1}function c(t){return o?I(t).attr("data-swiper-slide-index"):I(t).index()}if("auto"===a&&(a=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each(function(t,e){var i=o?I(e).attr("data-swiper-slide-index"):I(e).index();n.lazy.loadInSlide(i)});else if(1<a)for(var h=t;h<t+a;h+=1)l(h)&&n.lazy.loadInSlide(h);else n.lazy.loadInSlide(t);if(r.loadPrevNext)if(1<a||r.loadPrevNextAmount&&1<r.loadPrevNextAmount){for(var d=r.loadPrevNextAmount,u=a,p=Math.min(t+u+Math.max(d,u),s.length),f=Math.max(t-Math.max(u,d),0),m=t+a;m<p;m+=1)l(m)&&n.lazy.loadInSlide(m);for(var g=f;g<t;g+=1)l(g)&&n.lazy.loadInSlide(g)}else{var v=e.children("."+i.slideNextClass);0<v.length&&n.lazy.loadInSlide(c(v));var y=e.children("."+i.slidePrevClass);0<y.length&&n.lazy.loadInSlide(c(y))}}},V={LinearSpline:function(t,e){var i,n,s,o,r;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=function(t,e){for(n=-1,i=t.length;1<i-n;)t[s=i+n>>1]<=e?n=s:i=s;return i}(this.x,t),o=r-1,(t-this.x[o])*(this.y[r]-this.y[o])/(this.x[r]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new V.LinearSpline(this.slidesGrid,t.slidesGrid):new V.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,n,s=this,o=s.controller.control;function r(t){var e=s.rtlTranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getInterpolateFunction(t),n=-s.controller.spline.interpolate(-e)),n&&"container"!==s.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(s.maxTranslate()-s.minTranslate()),n=(e-s.minTranslate())*i+t.minTranslate()),s.params.controller.inverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setTranslate(n,s),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(o))for(var a=0;a<o.length;a+=1)o[a]!==e&&o[a]instanceof S&&r(o[a]);else o instanceof S&&e!==o&&r(o)},setTransition:function(e,t){var i,n=this,s=n.controller.control;function o(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&N.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){s&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(s))for(i=0;i<s.length;i+=1)s[i]!==t&&s[i]instanceof S&&o(s[i]);else s instanceof S&&t!==s&&o(s)}},j={makeElFocusable:function(t){return t.attr("tabIndex","0"),t},addElRole:function(t,e){return t.attr("role",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){var e=this,i=e.params.a11y;if(13===t.keyCode){var n=I(t.target);e.navigation&&e.navigation.$nextEl&&n.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(i.lastSlideMessage):e.a11y.notify(i.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&n.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(i.firstSlideMessage):e.a11y.notify(i.prevSlideMessage)),e.pagination&&n.is("."+e.params.pagination.bulletClass)&&n[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){if(!this.params.loop){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;i&&0<i.length&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&0<e.length&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var n=this,s=n.params.a11y;n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.bullets.each(function(t,e){var i=I(e);n.a11y.makeElFocusable(i),n.a11y.addElRole(i,"button"),n.a11y.addElLabel(i,s.paginationBulletMessage.replace(/{{index}}/,i.index()+1))})},init:function(){var t=this;t.$el.append(t.a11y.liveRegion);var e,i,n=t.params.a11y;t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(i=t.navigation.$prevEl),e&&(t.a11y.makeElFocusable(e),t.a11y.addElRole(e,"button"),t.a11y.addElLabel(e,n.nextSlideMessage),e.on("keydown",t.a11y.onEnterKey)),i&&(t.a11y.makeElFocusable(i),t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,n.prevSlideMessage),i.on("keydown",t.a11y.onEnterKey)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown","."+t.params.pagination.bulletClass,t.a11y.onEnterKey)},destroy:function(){var t,e,i=this;i.a11y.liveRegion&&0<i.a11y.liveRegion.length&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(t=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(e=i.navigation.$prevEl),t&&t.off("keydown",i.a11y.onEnterKey),e&&e.off("keydown",i.a11y.onEnterKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown","."+i.params.pagination.bulletClass,i.a11y.onEnterKey)}},q={init:function(){if(this.params.history){if(!R.history||!R.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=q.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||R.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||R.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=q.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=R.location.pathname.slice(1).split("/").filter(function(t){return""!==t}),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory:function(t,e){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(e),n=q.slugify(i.attr("data-history"));R.location.pathname.includes(t)||(n=t+"/"+n);var s=R.history.state;s&&s.value===n||(this.params.history.replaceState?R.history.replaceState({value:n},null,n):R.history.pushState({value:n},null,n))}},slugify:function(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var n=0,s=this.slides.length;n<s;n+=1){var o=this.slides.eq(n);if(q.slugify(o.attr("data-history"))===e&&!o.hasClass(this.params.slideDuplicateClass)){var r=o.index();this.slideTo(r,t,i)}}else this.slideTo(0,t,i)}},U={onHashCange:function(){var t=m.location.hash.replace("#","");t!==this.slides.eq(this.activeIndex).attr("data-hash")&&this.slideTo(this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index())},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&R.history&&R.history.replaceState)R.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var t=this.slides.eq(this.activeIndex),e=t.attr("data-hash")||t.attr("data-history");m.location.hash=e||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var e=m.location.hash.replace("#","");if(e)for(var i=0,n=t.slides.length;i<n;i+=1){var s=t.slides.eq(i);if((s.attr("data-hash")||s.attr("data-history"))===e&&!s.hasClass(t.params.slideDuplicateClass)){var o=s.index();t.slideTo(o,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&I(R).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&I(R).off("hashchange",this.hashNavigation.onHashCange)}},K={run:function(){var t=this,e=t.slides.eq(t.activeIndex),i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),t.autoplay.timeout=N.nextTick(function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},i)},start:function(){return void 0===this.autoplay.timeout&&!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0)},stop:function(){return!!this.autoplay.running&&void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0)},pause:function(t){var e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?(e.$wrapperEl[0].addEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].addEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd)):(e.autoplay.paused=!1,e.autoplay.run())))}},Z={setTranslate:function(){for(var t=this.slides,e=0;e<t.length;e+=1){var i=this.slides.eq(e),n=-i[0].swiperSlideOffset;this.params.virtualTranslate||(n-=this.translate);var s=0;this.isHorizontal()||(s=n,n=0);var o=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+n+"px, "+s+"px, 0px)")}},setTransition:function(t){var i=this,e=i.slides,n=i.$wrapperEl;if(e.transition(t),i.params.virtualTranslate&&0!==t){var s=!1;e.transitionEnd(function(){if(!s&&i&&!i.destroyed){s=!0,i.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],e=0;e<t.length;e+=1)n.trigger(t[e])}})}}},Q={setTranslate:function(){var t,e=this,i=e.$el,n=e.$wrapperEl,s=e.slides,o=e.width,r=e.height,a=e.rtlTranslate,l=e.size,c=e.params.cubeEffect,h=e.isHorizontal(),d=e.virtual&&e.params.virtual.enabled,u=0;c.shadow&&(h?(0===(t=n.find(".swiper-cube-shadow")).length&&(t=I('<div class="swiper-cube-shadow"></div>'),n.append(t)),t.css({height:o+"px"})):0===(t=i.find(".swiper-cube-shadow")).length&&(t=I('<div class="swiper-cube-shadow"></div>'),i.append(t)));for(var p=0;p<s.length;p+=1){var f=s.eq(p),m=p;d&&(m=parseInt(f.attr("data-swiper-slide-index"),10));var g=90*m,v=Math.floor(g/360);a&&(g=-g,v=Math.floor(-g/360));var y=Math.max(Math.min(f[0].progress,1),-1),T=0,b=0,_=0;m%4==0?(T=4*-v*l,_=0):(m-1)%4==0?(T=0,_=4*-v*l):(m-2)%4==0?(T=l+4*v*l,_=l):(m-3)%4==0&&(T=-l,_=3*l+4*l*v),a&&(T=-T),h||(b=T,T=0);var w="rotateX("+(h?0:-g)+"deg) rotateY("+(h?g:0)+"deg) translate3d("+T+"px, "+b+"px, "+_+"px)";if(y<=1&&-1<y&&(u=90*m+90*y,a&&(u=90*-m-90*y)),f.transform(w),c.slideShadows){var S=h?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),x=h?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=I('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),f.append(S)),0===x.length&&(x=I('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),f.append(x)),S.length&&(S[0].style.opacity=Math.max(-y,0)),x.length&&(x[0].style.opacity=Math.max(y,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),c.shadow)if(h)t.transform("translate3d(0px, "+(o/2+c.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var C=Math.abs(u)-90*Math.floor(Math.abs(u)/90),P=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),E=c.shadowScale,A=c.shadowScale/P,M=c.shadowOffset;t.transform("scale3d("+E+", 1, "+A+") translate3d(0px, "+(r/2+M)+"px, "+-r/2/A+"px) rotateX(-90deg)")}var k=D.isSafari||D.isUiWebView?-l/2:0;n.transform("translate3d(0px,0,"+k+"px) rotateX("+(e.isHorizontal()?0:u)+"deg) rotateY("+(e.isHorizontal()?-u:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},J={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i<t.length;i+=1){var n=t.eq(i),s=n[0].progress;this.params.flipEffect.limitRotation&&(s=Math.max(Math.min(n[0].progress,1),-1));var o=-180*s,r=0,a=-n[0].swiperSlideOffset,l=0;if(this.isHorizontal()?e&&(o=-o):(l=a,r=-o,o=a=0),n[0].style.zIndex=-Math.abs(Math.round(s))+t.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===c.length&&(c=I('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),n.append(c)),0===h.length&&(h=I('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),n.append(h)),c.length&&(c[0].style.opacity=Math.max(-s,0)),h.length&&(h[0].style.opacity=Math.max(s,0))}n.transform("translate3d("+a+"px, "+l+"px, 0px) rotateX("+r+"deg) rotateY("+o+"deg)")}},setTransition:function(t){var i=this,e=i.slides,n=i.activeIndex,s=i.$wrapperEl;if(e.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),i.params.virtualTranslate&&0!==t){var o=!1;e.eq(n).transitionEnd(function(){if(!o&&i&&!i.destroyed){o=!0,i.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],e=0;e<t.length;e+=1)s.trigger(t[e])}})}}},tt={setTranslate:function(){for(var t=this.width,e=this.height,i=this.slides,n=this.$wrapperEl,s=this.slidesSizesGrid,o=this.params.coverflowEffect,r=this.isHorizontal(),a=this.translate,l=r?t/2-a:e/2-a,c=r?o.rotate:-o.rotate,h=o.depth,d=0,u=i.length;d<u;d+=1){var p=i.eq(d),f=s[d],m=(l-p[0].swiperSlideOffset-f/2)/f*o.modifier,g=r?c*m:0,v=r?0:c*m,y=-h*Math.abs(m),T=r?0:o.stretch*m,b=r?o.stretch*m:0;Math.abs(b)<.001&&(b=0),Math.abs(T)<.001&&(T=0),Math.abs(y)<.001&&(y=0),Math.abs(g)<.001&&(g=0),Math.abs(v)<.001&&(v=0);var _="translate3d("+b+"px,"+T+"px,"+y+"px)  rotateX("+v+"deg) rotateY("+g+"deg)";if(p.transform(_),p[0].style.zIndex=1-Math.abs(Math.round(m)),o.slideShadows){var w=r?p.find(".swiper-slide-shadow-left"):p.find(".swiper-slide-shadow-top"),S=r?p.find(".swiper-slide-shadow-right"):p.find(".swiper-slide-shadow-bottom");0===w.length&&(w=I('<div class="swiper-slide-shadow-'+(r?"left":"top")+'"></div>'),p.append(w)),0===S.length&&(S=I('<div class="swiper-slide-shadow-'+(r?"right":"bottom")+'"></div>'),p.append(S)),w.length&&(w[0].style.opacity=0<m?m:0),S.length&&(S[0].style.opacity=0<-m?-m:0)}}(X.pointerEvents||X.prefixedPointerEvents)&&(n[0].style.perspectiveOrigin=l+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},et=[x,C,P,E,M,O,L,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){N.extend(this,{mousewheel:{enabled:!1,enable:B.enable.bind(this),disable:B.disable.bind(this),handle:B.handle.bind(this),handleMouseEnter:B.handleMouseEnter.bind(this),handleMouseLeave:B.handleMouseLeave.bind(this),lastScrollTime:N.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){N.extend(this,{navigation:{init:z.init.bind(this),update:z.update.bind(this),destroy:z.destroy.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var e=this.navigation,i=e.$nextEl,n=e.$prevEl;!this.params.navigation.hideOnClick||I(t.target).is(n)||I(t.target).is(i)||(i&&i.toggleClass(this.params.navigation.hiddenClass),n&&n.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){N.extend(this,{pagination:{init:G.init.bind(this),render:G.render.bind(this),update:G.update.bind(this),destroy:G.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){this.params.pagination.el&&this.params.pagination.hideOnClick&&0<this.pagination.$el.length&&!I(t.target).hasClass(this.params.pagination.bulletClass)&&this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var t=this;N.extend(t,{scrollbar:{init:F.init.bind(t),destroy:F.destroy.bind(t),updateSize:F.updateSize.bind(t),setTranslate:F.setTranslate.bind(t),setTransition:F.setTransition.bind(t),enableDraggable:F.enableDraggable.bind(t),disableDraggable:F.disableDraggable.bind(t),setDragPosition:F.setDragPosition.bind(t),onDragStart:F.onDragStart.bind(t),onDragMove:F.onDragMove.bind(t),onDragEnd:F.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){N.extend(this,{parallax:{setTransform:$.setTransform.bind(this),setTranslate:$.setTranslate.bind(this),setTransition:$.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0)},init:function(){this.params.parallax&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,i={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(t){i[t]=W[t].bind(e)}),N.extend(e,{zoom:i})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){N.extend(this,{lazy:{initialImageLoaded:!1,load:Y.load.bind(this),loadInSlide:Y.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){N.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:V.getInterpolateFunction.bind(this),setTranslate:V.setTranslate.bind(this),setTransition:V.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;N.extend(e,{a11y:{liveRegion:I('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(j).forEach(function(t){e.a11y[t]=j[t].bind(e)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){N.extend(this,{history:{init:q.init.bind(this),setHistory:q.setHistory.bind(this),setHistoryPopState:q.setHistoryPopState.bind(this),scrollToSlide:q.scrollToSlide.bind(this),destroy:q.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){N.extend(this,{hashNavigation:{initialized:!1,init:U.init.bind(this),destroy:U.destroy.bind(this),setHash:U.setHash.bind(this),onHashCange:U.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;N.extend(e,{autoplay:{running:!1,paused:!1,run:K.run.bind(e),start:K.start.bind(e),stop:K.stop.bind(e),pause:K.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){N.extend(this,{fadeEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};N.extend(this.params,t),N.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){N.extend(this,{cubeEffect:{setTranslate:Q.setTranslate.bind(this),setTransition:Q.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};N.extend(this.params,t),N.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){N.extend(this,{flipEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};N.extend(this.params,t),N.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){N.extend(this,{coverflowEffect:{setTranslate:tt.setTranslate.bind(this),setTransition:tt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}}];return void 0===S.use&&(S.use=S.Class.use,S.installModule=S.Class.installModule),S.use(et),S}),function(E,_){"use strict";E.fn.thb_3dImg=function(t){var S=E(_),e=E(this),i=document,x=(i.documentElement,i.getElementsByTagName("body")[0]),C=i.getElementsByTagName("html")[0],g=(e.length,new MobileDetect(_.navigator.userAgent)),v="ontouchstart"in S||navigator.msMaxTouchPoints,P=E.extend({},{scale:1.07,processExit:!0,sensitivity:1,threed:!1},t);function y(t,e,i,n,s){var o=i.find(".atvImg-container"),r=x.scrollTop||C.scrollTop,a=x.scrollLeft,l=e?t.touches[0].pageX:t.pageX,c=e?t.touches[0].pageY:t.pageY,h=i[0].getBoundingClientRect(),d=i.width(),u=i.height(),p=320/d,f=.12-(l-h.left-a)/d,m=.12-(c-h.top-r)/u,g=c-h.top-r-u/2,v=l-h.left-a-d/2,y=P.sensitivity*(i.parents(".type-portfolio").hasClass("masonry-tall")?.03:.05),T=.03*P.sensitivity*p*(f-v),b=y*p*(g-m),_={rotationX:b+"deg",rotationY:T+"deg",scale:P.scale,force3D:!0};if(P.threed)TweenMax.set(n[0],{rotationX:b+"deg",rotationY:T+"deg",x:-70*f,y:-70*m,scale:P.scale,z:-.15*S.outerWidth()});else{TweenMax.to(o,.15,_);var w=s;E.each(n,function(t,e){TweenMax.set(E(this),{x:f*w*(2.5*t/p),y:m*s*(2.5*t/p)}),w--})}}function T(t,e){e.addClass("over")}function b(t,e,i){e.removeClass("over"),P.processExit&&(TweenMax.to(e,.15,{scale:1,rotationX:"0deg",rotationY:"0deg"}),E.each(i,function(){TweenMax.set(E(this),{clearProps:"transform"})}))}e.each(function(){var t=E(this),e=t.find(".atvImg-layer"),i=e.length,n=E("<div />").addClass("atvImg-container"),s=E("<div />").addClass("atvImg-shadow"),o=E("<div />").addClass("atvImg-layers"),r=[];e.each(function(){var t=E(this);t.addClass("atvImg-rendered-layer"),t.appendTo(o),r.push(t)}),n.append(s),n.append(o),t.append(n);var a,l,c,h,d,u,p,f,m=t.width();TweenMax.set(t,{perspective:3*m}),v&&!g.mobile()?(S.preventScroll=!1,u=r,p=i,f=n,(d=t).on("touchstart",function(t){S.preventScroll=!0,T(0,f)}),t.on("touchmove",function(t){S.preventScroll&&t.preventDefault(),_.requestAnimationFrame(function(){y(t,!0,d,u,p)})}),t.on("touchend",function(t){S.preventScroll=!1,b(0,f,u)})):(l=r,c=i,h=n,(a=t).on("mouseenter",function(t){T(0,h)}),t.on("mousemove",function(t){y(t,!1,a,l,c)}),t.on("mouseleave",function(t){b(0,h,l)}))})}}(jQuery,this),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Typed=e():t.Typed=e()}(this,function(){return function(i){function n(t){if(s[t])return s[t].exports;var e=s[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var s={};return n.m=i,n.c=s,n.p="",n(0)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),s=i(1),l=i(3),o=function(){function i(t,e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,i),s.initializer.load(this,e,t),this.begin()}return n(i,[{key:"toggle",value:function(){this.pause.status?this.start():this.stop()}},{key:"stop",value:function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))}},{key:"start",value:function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))}},{key:"destroy",value:function(){this.reset(!1),this.options.onDestroy(this)}},{key:"reset",value:function(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0];clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,t&&(this.insertCursor(),this.options.onReset(this),this.begin())}},{key:"begin",value:function(){var t=this;this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){t.currentElContent&&0!==t.currentElContent.length?t.backspace(t.currentElContent,t.currentElContent.length):t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},this.startDelay)}},{key:"typewrite",value:function(s,o){var r=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var t=this.humanizer(this.typeSpeed),a=1;return!0===this.pause.status?void this.setPauseStatus(s,o,!0):void(this.timeout=setTimeout(function(){o=l.htmlParser.typeHtmlChars(s,o,r);var t=0,e=s.substr(o);if("^"===e.charAt(0)&&/^\^\d+/.test(e)){var i=1;i+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e),r.temporaryPause=!0,r.options.onTypingPaused(r.arrayPos,r),s=s.substring(0,o)+s.substring(o+i),r.toggleBlinking(!0)}if("`"===e.charAt(0)){for(;"`"!==s.substr(o+a).charAt(0)&&!(o+ ++a>s.length););var n=s.substring(0,o);s=n+s.substring(n.length+1,o+a)+s.substring(o+a+1),a--}r.timeout=setTimeout(function(){r.toggleBlinking(!1),o===s.length?r.doneTyping(s,o):r.keepTyping(s,o,a),r.temporaryPause&&(r.temporaryPause=!1,r.options.onTypingResumed(r.arrayPos,r))},t)},t))}},{key:"keepTyping",value:function(t,e,i){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=i;var n=t.substr(0,e);this.replaceText(n),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var i=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout(function(){i.backspace(t,e)},this.backDelay))}},{key:"backspace",value:function(i,n){var s=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var t=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){n=l.htmlParser.backSpaceHtmlChars(i,n,s);var t=i.substr(0,n);if(s.replaceText(t),s.smartBackspace){var e=s.strings[s.arrayPos+1];e&&t===e.substr(0,n)?s.stopNum=n:s.stopNum=0}n>s.stopNum?(n--,s.backspace(i,n)):n<=s.stopNum&&(s.arrayPos++,s.arrayPos===s.strings.length?(s.arrayPos=0,s.options.onLastStringBackspaced(),s.shuffleStringsIfNeeded(),s.begin()):s.typewrite(s.strings[s.sequence[s.arrayPos]],n))},t)}else this.setPauseStatus(i,n,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,i){this.pause.typewrite=i,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&((this.cursorBlinking=t)?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)},this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var e=this;this.isInput&&(this.el.addEventListener("focus",function(t){e.stop()}),this.el.addEventListener("blur",function(t){e.el.value&&0!==e.el.value.length||e.start()}))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),i}();e.default=o,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},s=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),o=i(2),l=(n=o)&&n.__esModule?n:{default:n},r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return s(t,[{key:"load",value:function(t,e,i){if(t.el="string"==typeof i?document.querySelector(i):i,t.options=a({},l.default,e),t.isInput="input"===t.el.tagName.toLowerCase(),t.attr=t.options.attr,t.bindInputFocusEvents=t.options.bindInputFocusEvents,t.showCursor=!t.isInput&&t.options.showCursor,t.cursorChar=t.options.cursorChar,t.cursorBlinking=!0,t.elContent=t.attr?t.el.getAttribute(t.attr):t.el.textContent,t.contentType=t.options.contentType,t.typeSpeed=t.options.typeSpeed,t.startDelay=t.options.startDelay,t.backSpeed=t.options.backSpeed,t.smartBackspace=t.options.smartBackspace,t.backDelay=t.options.backDelay,t.fadeOut=t.options.fadeOut,t.fadeOutClass=t.options.fadeOutClass,t.fadeOutDelay=t.options.fadeOutDelay,t.isPaused=!1,t.strings=t.options.strings.map(function(t){return t.trim()}),"string"==typeof t.options.stringsElement?t.stringsElement=document.querySelector(t.options.stringsElement):t.stringsElement=t.options.stringsElement,t.stringsElement){t.strings=[],t.stringsElement.style.display="none";var n=Array.prototype.slice.apply(t.stringsElement.children),s=n.length;if(s)for(var o=0;o<s;o+=1){var r=n[o];t.strings.push(r.innerHTML.trim())}}for(var o in t.strPos=0,t.arrayPos=0,t.stopNum=0,t.loop=t.options.loop,t.loopCount=t.options.loopCount,t.curLoop=0,t.shuffle=t.options.shuffle,t.sequence=[],t.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},t.typingComplete=!1,t.strings)t.sequence[o]=o;t.currentElContent=this.getCurrentElContent(t),t.autoInsertCss=t.options.autoInsertCss,this.appendAnimationCss(t)}},{key:"getCurrentElContent",value:function(t){return t.attr?t.el.getAttribute(t.attr):t.isInput?t.el.value:"html"===t.contentType?t.el.innerHTML:t.el.textContent}},{key:"appendAnimationCss",value:function(t){var e="data-typed-js-css";if(t.autoInsertCss&&(t.showCursor||t.fadeOut)&&!document.querySelector("["+e+"]")){var i=document.createElement("style");i.type="text/css",i.setAttribute(e,!0);var n="";t.showCursor&&(n+="\n        .typed-cursor{\n          opacity: 1;\n        }\n        .typed-cursor.typed-cursor--blink{\n          animation: typedjsBlink 0.7s infinite;\n          -webkit-animation: typedjsBlink 0.7s infinite;\n                  animation: typedjsBlink 0.7s infinite;\n        }\n        @keyframes typedjsBlink{\n          50% { opacity: 0.0; }\n        }\n        @-webkit-keyframes typedjsBlink{\n          0% { opacity: 1; }\n          50% { opacity: 0.0; }\n          100% { opacity: 1; }\n        }\n      "),t.fadeOut&&(n+="\n        .typed-fade-out{\n          opacity: 0;\n          transition: opacity .25s;\n        }\n        .typed-cursor.typed-cursor--blink.typed-fade-out{\n          -webkit-animation: 0;\n          animation: 0;\n        }\n      "),0!==i.length&&(i.innerHTML=n,document.body.appendChild(i))}}}]),t}(),c=new(e.default=r);e.initializer=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onComplete:function(t){},preStringTyped:function(t,e){},onStringTyped:function(t,e){},onLastStringBackspaced:function(t){},onTypingPaused:function(t,e){},onTypingResumed:function(t,e){},onReset:function(t){},onStop:function(t,e){},onStart:function(t,e){},onDestroy:function(t){}},t.exports=e.default},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"typeHtmlChars",value:function(t,e,i){if("html"!==i.contentType)return e;var n=t.substr(e).charAt(0);if("<"===n||"&"===n){var s;for(s="<"===n?">":";";t.substr(e+1).charAt(0)!==s&&!(++e+1>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,i){if("html"!==i.contentType)return e;var n=t.substr(e).charAt(0);if(">"===n||";"===n){var s;for(s=">"===n?"<":"&";t.substr(e-1).charAt(0)!==s&&!(--e<0););e--}return e}}]),t}(),s=new(e.default=n);e.htmlParser=s}])}),function(){"use strict";var t=function(){this.init()};t.prototype={init:function(){var t=this||g;return t._counter=1e3,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.mobileAutoEnable=!0,t._setup(),t},volume:function(t){var e=this||g;if(t=parseFloat(t),e.ctx||d(),void 0!==t&&0<=t&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,g.ctx.currentTime);for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var n=e._howls[i]._getSoundIds(),s=0;s<n.length;s++){var o=e._howls[i]._soundById(n[s]);o&&o._node&&(o._node.volume=o._volume*t)}return e}return e._volume},mute:function(t){var e=this||g;e.ctx||d(),e._muted=t,e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t?0:e._volume,g.ctx.currentTime);for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var n=e._howls[i]._getSoundIds(),s=0;s<n.length;s++){var o=e._howls[i]._soundById(n[s]);o&&o._node&&(o._node.muted=!!t||o._muted)}return e},unload:function(){for(var t=this||g,e=t._howls.length-1;0<=e;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&void 0!==t.ctx.close&&(t.ctx.close(),t.ctx=null,d()),t},codecs:function(t){return(this||g)._codecs[t.replace(/^x-/,"")]},_setup:function(){var e=this||g;if(e.state=e.ctx&&e.ctx.state||"running",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||g,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var i=t.canPlayType("audio/mpeg;").replace(/^no$/,""),n=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),s=n&&parseInt(n[0].split("/")[1],10)<33;return e._codecs={mp3:!(s||!i&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!i,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_enableMobileAudio:function(){var i=this||g,t=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome/i.test(i._navigator&&i._navigator.userAgent);if(!i._mobileEnabled&&i.ctx&&t){i._mobileEnabled=!1,i.mobileAutoEnable=!1,i._mobileUnloaded||44100===i.ctx.sampleRate||(i._mobileUnloaded=!0,i.unload()),i._scratchBuffer=i.ctx.createBuffer(1,1,22050);var n=function(t){g._autoResume();var e=i.ctx.createBufferSource();e.buffer=i._scratchBuffer,e.connect(i.ctx.destination),void 0===e.start?e.noteOn(0):e.start(0),"function"==typeof i.ctx.resume&&i.ctx.resume(),e.onended=function(){e.disconnect(0),i._mobileEnabled=!0,document.removeEventListener("touchstart",n,!0),document.removeEventListener("touchend",n,!0),document.removeEventListener("click",n,!0);for(var t=0;t<i._howls.length;t++)i._howls[t]._emit("unlock")}};return document.addEventListener("touchstart",n,!0),document.addEventListener("touchend",n,!0),document.addEventListener("click",n,!0),i}},_autoSuspend:function(){var t=this;if(t.autoSuspend&&t.ctx&&void 0!==t.ctx.suspend&&g.usingWebAudio){for(var e=0;e<t._howls.length;e++)if(t._howls[e]._webAudio)for(var i=0;i<t._howls[e]._sounds.length;i++)if(!t._howls[e]._sounds[i]._paused)return t;return t._suspendTimer&&clearTimeout(t._suspendTimer),t._suspendTimer=setTimeout(function(){t.autoSuspend&&(t._suspendTimer=null,t.state="suspending",t.ctx.suspend().then(function(){t.state="suspended",t._resumeAfterSuspend&&(delete t._resumeAfterSuspend,t._autoResume())}))},3e4),t}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&g.usingWebAudio)return"running"===e.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var g=new t,e=function(t){t.src&&0!==t.src.length?this.init(t):console.error("An array of source files must be passed with any new Howl.")};e.prototype={init:function(t){var e=this;return g.ctx||d(),e._autoplay=t.autoplay||!1,e._format="string"!=typeof t.format?t.format:[t.format],e._html5=t.html5||!1,e._muted=t.mute||!1,e._loop=t.loop||!1,e._pool=t.pool||5,e._preload="boolean"!=typeof t.preload||t.preload,e._rate=t.rate||1,e._sprite=t.sprite||{},e._src="string"!=typeof t.src?t.src:[t.src],e._volume=void 0!==t.volume?t.volume:1,e._xhrWithCredentials=t.xhrWithCredentials||!1,e._duration=0,e._state="unloaded",e._sounds=[],e._endTimers={},e._queue=[],e._playLock=!1,e._onend=t.onend?[{fn:t.onend}]:[],e._onfade=t.onfade?[{fn:t.onfade}]:[],e._onload=t.onload?[{fn:t.onload}]:[],e._onloaderror=t.onloaderror?[{fn:t.onloaderror}]:[],e._onplayerror=t.onplayerror?[{fn:t.onplayerror}]:[],e._onpause=t.onpause?[{fn:t.onpause}]:[],e._onplay=t.onplay?[{fn:t.onplay}]:[],e._onstop=t.onstop?[{fn:t.onstop}]:[],e._onmute=t.onmute?[{fn:t.onmute}]:[],e._onvolume=t.onvolume?[{fn:t.onvolume}]:[],e._onrate=t.onrate?[{fn:t.onrate}]:[],e._onseek=t.onseek?[{fn:t.onseek}]:[],e._onunlock=t.onunlock?[{fn:t.onunlock}]:[],e._onresume=[],e._webAudio=g.usingWebAudio&&!e._html5,void 0!==g.ctx&&g.ctx&&g.mobileAutoEnable&&g._enableMobileAudio(),g._howls.push(e),e._autoplay&&e._queue.push({event:"play",action:function(){e.play()}}),e._preload&&e.load(),e},load:function(){var t=this,e=null;if(g.noAudio)t._emit("loaderror",null,"No audio support.");else{"string"==typeof t._src&&(t._src=[t._src]);for(var i=0;i<t._src.length;i++){var n,s;if(t._format&&t._format[i])n=t._format[i];else{if("string"!=typeof(s=t._src[i])){t._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(n=/^data:audio\/([^;,]+);/i.exec(s))||(n=/\.([^.]+)$/.exec(s.split("?",1)[0])),n&&(n=n[1].toLowerCase())}if(n||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),n&&g.codecs(n)){e=t._src[i];break}}if(e)return t._src=e,t._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(t._html5=!0,t._webAudio=!1),new o(t),t._webAudio&&a(t),t;t._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,i){var n=this,t=null;if("number"==typeof e)t=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e){e="__default";for(var s=0,o=0;o<n._sounds.length;o++)n._sounds[o]._paused&&!n._sounds[o]._ended&&(s++,t=n._sounds[o]._id);1===s?e=null:t=null}}var r=t?n._soundById(t):n._inactiveSound();if(!r)return null;if(t&&!e&&(e=r._sprite||"__default"),"loaded"!==n._state){r._sprite=e,r._ended=!1;var a=r._id;return n._queue.push({event:"play",action:function(){n.play(a)}}),a}if(t&&!r._paused)return i||n._loadQueue("play"),r._id;n._webAudio&&g._autoResume();var l=Math.max(0,0<r._seek?r._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-l),h=1e3*c/Math.abs(r._rate);if(r._paused=!1,r._ended=!1,r._sprite=e,r._seek=l,r._start=n._sprite[e][0]/1e3,r._stop=(n._sprite[e][0]+n._sprite[e][1])/1e3,r._loop=!(!r._loop&&!n._sprite[e][2]),!(r._seek>=r._stop)){var d=r._node;if(n._webAudio){var u=function(){n._refreshBuffer(r);var t=r._muted||n._muted?0:r._volume;d.gain.setValueAtTime(t,g.ctx.currentTime),r._playStart=g.ctx.currentTime,void 0===d.bufferSource.start?r._loop?d.bufferSource.noteGrainOn(0,l,86400):d.bufferSource.noteGrainOn(0,l,c):r._loop?d.bufferSource.start(0,l,86400):d.bufferSource.start(0,l,c),h!==1/0&&(n._endTimers[r._id]=setTimeout(n._ended.bind(n,r),h)),i||setTimeout(function(){n._emit("play",r._id)},0)};"running"===g.state?u():(n.once("resume",u),n._clearTimer(r._id))}else{var p=function(){d.currentTime=l,d.muted=r._muted||n._muted||g._muted||d.muted,d.volume=r._volume*g.volume(),d.playbackRate=r._rate;try{var t=d.play();if(t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)?(n._playLock=!0,t.then(function(){n._playLock=!1,i||n._emit("play",r._id)}).catch(function(){n._playLock=!1,n._emit("playerror",r._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.")})):i||n._emit("play",r._id),d.playbackRate=r._rate,d.paused)return void n._emit("playerror",r._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||r._loop?n._endTimers[r._id]=setTimeout(n._ended.bind(n,r),h):(n._endTimers[r._id]=function(){n._ended(r),d.removeEventListener("ended",n._endTimers[r._id],!1)},d.addEventListener("ended",n._endTimers[r._id],!1))}catch(t){n._emit("playerror",r._id,t)}},f=window&&window.ejecta||!d.readyState&&g._navigator.isCocoonJS;if(3<=d.readyState||f)p();else{var m=function(){p(),d.removeEventListener(g._canPlayEvent,m,!1)};d.addEventListener(g._canPlayEvent,m,!1),n._clearTimer(r._id)}}return r._id}n._ended(r)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var i=e._getSoundIds(t),n=0;n<i.length;n++){e._clearTimer(i[n]);var s=e._soundById(i[n]);if(s&&!s._paused&&(s._seek=e.seek(i[n]),s._rateSeek=0,s._paused=!0,e._stopFade(i[n]),s._node))if(e._webAudio){if(!s._node.bufferSource)continue;void 0===s._node.bufferSource.stop?s._node.bufferSource.noteOff(0):s._node.bufferSource.stop(0),e._cleanBuffer(s._node)}else isNaN(s._node.duration)&&s._node.duration!==1/0||s._node.pause();arguments[1]||e._emit("pause",s?s._id:null)}return e},stop:function(t,e){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"stop",action:function(){i.stop(t)}}),i;for(var n=i._getSoundIds(t),s=0;s<n.length;s++){i._clearTimer(n[s]);var o=i._soundById(n[s]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,i._stopFade(n[s]),o._node&&(i._webAudio?o._node.bufferSource&&(void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),i._cleanBuffer(o._node)):isNaN(o._node.duration)&&o._node.duration!==1/0||(o._node.currentTime=o._start||0,o._node.pause())),e||i._emit("stop",o._id))}return i},mute:function(t,e){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"mute",action:function(){i.mute(t,e)}}),i;if(void 0===e){if("boolean"!=typeof t)return i._muted;i._muted=t}for(var n=i._getSoundIds(e),s=0;s<n.length;s++){var o=i._soundById(n[s]);o&&(o._muted=t,o._interval&&i._stopFade(o._id),i._webAudio&&o._node?o._node.gain.setValueAtTime(t?0:o._volume,g.ctx.currentTime):o._node&&(o._node.muted=!!g._muted||t),i._emit("mute",o._id))}return i},volume:function(){var t,e,i,n=this,s=arguments;if(0===s.length)return n._volume;if(1===s.length||2===s.length&&void 0===s[1]?0<=n._getSoundIds().indexOf(s[0])?e=parseInt(s[0],10):t=parseFloat(s[0]):2<=s.length&&(t=parseFloat(s[0]),e=parseInt(s[1],10)),!(void 0!==t&&0<=t&&t<=1))return(i=e?n._soundById(e):n._sounds[0])?i._volume:0;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"volume",action:function(){n.volume.apply(n,s)}}),n;void 0===e&&(n._volume=t),e=n._getSoundIds(e);for(var o=0;o<e.length;o++)(i=n._soundById(e[o]))&&(i._volume=t,s[2]||n._stopFade(e[o]),n._webAudio&&i._node&&!i._muted?i._node.gain.setValueAtTime(t,g.ctx.currentTime):i._node&&!i._muted&&(i._node.volume=t*g.volume()),n._emit("volume",i._id));return n},fade:function(t,e,i,n){var s=this;if("loaded"!==s._state||s._playLock)return s._queue.push({event:"fade",action:function(){s.fade(t,e,i,n)}}),s;s.volume(t,n);for(var o=s._getSoundIds(n),r=0;r<o.length;r++){var a=s._soundById(o[r]);if(a){if(n||s._stopFade(o[r]),s._webAudio&&!a._muted){var l=g.ctx.currentTime,c=l+i/1e3;a._volume=t,a._node.gain.setValueAtTime(t,l),a._node.gain.linearRampToValueAtTime(e,c)}s._startFadeInterval(a,t,e,i,o[r],void 0===n)}}return s},_startFadeInterval:function(e,i,n,s,t,o){var r=this,a=i,l=n-i,c=Math.abs(l/.01),h=Math.max(4,0<c?s/c:s),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var t=(Date.now()-d)/s;d=Date.now(),a+=l*t,a=Math.max(0,a),a=Math.min(1,a),a=Math.round(100*a)/100,r._webAudio?e._volume=a:r.volume(a,e._id,!0),o&&(r._volume=a),(n<i&&a<=n||i<n&&n<=a)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,r.volume(n,e._id),r._emit("fade",e._id))},h)},_stopFade:function(t){var e=this._soundById(t);return e&&e._interval&&(this._webAudio&&e._node.gain.cancelScheduledValues(g.ctx.currentTime),clearInterval(e._interval),e._interval=null,this.volume(e._fadeTo,t),e._fadeTo=null,this._emit("fade",t)),this},loop:function(){var t,e,i,n=arguments;if(0===n.length)return this._loop;if(1===n.length){if("boolean"!=typeof n[0])return!!(i=this._soundById(parseInt(n[0],10)))&&i._loop;t=n[0],this._loop=t}else 2===n.length&&(t=n[0],e=parseInt(n[1],10));for(var s=this._getSoundIds(e),o=0;o<s.length;o++)(i=this._soundById(s[o]))&&(i._loop=t,this._webAudio&&i._node&&i._node.bufferSource&&(i._node.bufferSource.loop=t)&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop));return this},rate:function(){var t,e,i,n=this,s=arguments;if(0===s.length)e=n._sounds[0]._id;else if(1===s.length){0<=n._getSoundIds().indexOf(s[0])?e=parseInt(s[0],10):t=parseFloat(s[0])}else 2===s.length&&(t=parseFloat(s[0]),e=parseInt(s[1],10));if("number"!=typeof t)return(i=n._soundById(e))?i._rate:n._rate;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"rate",action:function(){n.rate.apply(n,s)}}),n;void 0===e&&(n._rate=t),e=n._getSoundIds(e);for(var o=0;o<e.length;o++)if(i=n._soundById(e[o])){i._rateSeek=n.seek(e[o]),i._playStart=n._webAudio?g.ctx.currentTime:i._playStart,i._rate=t,n._webAudio&&i._node&&i._node.bufferSource?i._node.bufferSource.playbackRate.setValueAtTime(t,g.ctx.currentTime):i._node&&(i._node.playbackRate=t);var r=n.seek(e[o]),a=1e3*((n._sprite[i._sprite][0]+n._sprite[i._sprite][1])/1e3-r)/Math.abs(i._rate);!n._endTimers[e[o]]&&i._paused||(n._clearTimer(e[o]),n._endTimers[e[o]]=setTimeout(n._ended.bind(n,i),a)),n._emit("rate",i._id)}return n},seek:function(){var t,e,i=this,n=arguments;if(0===n.length)e=i._sounds[0]._id;else if(1===n.length){0<=i._getSoundIds().indexOf(n[0])?e=parseInt(n[0],10):i._sounds.length&&(e=i._sounds[0]._id,t=parseFloat(n[0]))}else 2===n.length&&(t=parseFloat(n[0]),e=parseInt(n[1],10));if(void 0===e)return i;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"seek",action:function(){i.seek.apply(i,n)}}),i;var s=i._soundById(e);if(s){if(!("number"==typeof t&&0<=t)){if(i._webAudio){var o=i.playing(e)?g.ctx.currentTime-s._playStart:0,r=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(r+o*Math.abs(s._rate))}return s._node.currentTime}var a=i.playing(e);a&&i.pause(e,!0),s._seek=t,s._ended=!1,i._clearTimer(e),!i._webAudio&&s._node&&(s._node.currentTime=t);var l=function(){i._emit("seek",e),a&&i.play(e,!0)};if(a&&!i._webAudio){var c=function(){i._playLock?setTimeout(c,0):l()};setTimeout(c,0)}else l()}return i},playing:function(t){if("number"==typeof t){var e=this._soundById(t);return!!e&&!e._paused}for(var i=0;i<this._sounds.length;i++)if(!this._sounds[i]._paused)return!0;return!1},duration:function(t){var e=this._duration,i=this._soundById(t);return i&&(e=this._sprite[i._sprite][1]/1e3),e},state:function(){return this._state},unload:function(){for(var t=this,e=t._sounds,i=0;i<e.length;i++){if(e[i]._paused||t.stop(e[i]._id),!t._webAudio)/MSIE |Trident\//.test(g._navigator&&g._navigator.userAgent)||(e[i]._node.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"),e[i]._node.removeEventListener("error",e[i]._errorFn,!1),e[i]._node.removeEventListener(g._canPlayEvent,e[i]._loadFn,!1);delete e[i]._node,t._clearTimer(e[i]._id)}var n=g._howls.indexOf(t);0<=n&&g._howls.splice(n,1);var s=!0;for(i=0;i<g._howls.length;i++)if(g._howls[i]._src===t._src){s=!1;break}return r&&s&&delete r[t._src],g.noAudio=!1,t._state="unloaded",t._sounds=[],t=null},on:function(t,e,i,n){var s=this["_on"+t];return"function"==typeof e&&s.push(n?{id:i,fn:e,once:n}:{id:i,fn:e}),this},off:function(t,e,i){var n=this["_on"+t],s=0;if("number"==typeof e&&(i=e,e=null),e||i)for(s=0;s<n.length;s++){var o=i===n[s].id;if(e===n[s].fn&&o||!e&&o){n.splice(s,1);break}}else if(t)this["_on"+t]=[];else{var r=Object.keys(this);for(s=0;s<r.length;s++)0===r[s].indexOf("_on")&&Array.isArray(this[r[s]])&&(this[r[s]]=[])}return this},once:function(t,e,i){return this.on(t,e,i,1),this},_emit:function(t,e,i){for(var n=this["_on"+t],s=n.length-1;0<=s;s--)n[s].id&&n[s].id!==e&&"load"!==t||(setTimeout(function(t){t.call(this,e,i)}.bind(this,n[s].fn),0),n[s].once&&this.off(t,n[s].fn,n[s].id));return this._loadQueue(t),this},_loadQueue:function(t){if(0<this._queue.length){var e=this._queue[0];e.event===t&&(this._queue.shift(),this._loadQueue()),t||e.action()}return this},_ended:function(t){var e=this,i=t._sprite;if(!e._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime<t._stop)return setTimeout(e._ended.bind(e,t),100),e;var n=!(!t._loop&&!e._sprite[i][2]);if(e._emit("end",t._id),!e._webAudio&&n&&e.stop(t._id,!0).play(t._id),e._webAudio&&n){e._emit("play",t._id),t._seek=t._start||0,t._rateSeek=0,t._playStart=g.ctx.currentTime;var s=1e3*(t._stop-t._start)/Math.abs(t._rate);e._endTimers[t._id]=setTimeout(e._ended.bind(e,t),s)}return e._webAudio&&!n&&(t._paused=!0,t._ended=!0,t._seek=t._start||0,t._rateSeek=0,e._clearTimer(t._id),e._cleanBuffer(t._node),g._autoSuspend()),e._webAudio||n||e.stop(t._id,!0),e},_clearTimer:function(t){if(this._endTimers[t]){if("function"!=typeof this._endTimers[t])clearTimeout(this._endTimers[t]);else{var e=this._soundById(t);e&&e._node&&e._node.removeEventListener("ended",this._endTimers[t],!1)}delete this._endTimers[t]}return this},_soundById:function(t){for(var e=0;e<this._sounds.length;e++)if(t===this._sounds[e]._id)return this._sounds[e];return null},_inactiveSound:function(){this._drain();for(var t=0;t<this._sounds.length;t++)if(this._sounds[t]._ended)return this._sounds[t].reset();return new o(this)},_drain:function(){var t=this,e=t._pool,i=0,n=0;if(!(t._sounds.length<e)){for(n=0;n<t._sounds.length;n++)t._sounds[n]._ended&&i++;for(n=t._sounds.length-1;0<=n;n--){if(i<=e)return;t._sounds[n]._ended&&(t._webAudio&&t._sounds[n]._node&&t._sounds[n]._node.disconnect(0),t._sounds.splice(n,1),i--)}}},_getSoundIds:function(t){if(void 0!==t)return[t];for(var e=[],i=0;i<this._sounds.length;i++)e.push(this._sounds[i]._id);return e},_refreshBuffer:function(t){return t._node.bufferSource=g.ctx.createBufferSource(),t._node.bufferSource.buffer=r[this._src],t._panner?t._node.bufferSource.connect(t._panner):t._node.bufferSource.connect(t._node),t._node.bufferSource.loop=t._loop,t._loop&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop||0),t._node.bufferSource.playbackRate.setValueAtTime(t._rate,g.ctx.currentTime),this},_cleanBuffer:function(t){if(g._scratchBuffer&&t.bufferSource){t.bufferSource.onended=null,t.bufferSource.disconnect(0);try{t.bufferSource.buffer=g._scratchBuffer}catch(t){}}return t.bufferSource=null,this}};var o=function(t){this._parent=t,this.init()};o.prototype={init:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++g._counter,e._sounds.push(t),t.create(),t},create:function(){var t=this,e=t._parent,i=g._muted||t._muted||t._parent._muted?0:t._volume,n=/MSIE |Trident\//.test(g._navigator&&g._navigator.userAgent);return e._webAudio?(t._node=void 0===g.ctx.createGain?g.ctx.createGainNode():g.ctx.createGain(),t._node.gain.setValueAtTime(i,g.ctx.currentTime),t._node.paused=!0,t._node.connect(g.masterGain)):(t._node=new Audio,t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(g._canPlayEvent,t._loadFn,!1),t._node.src=e._src,t._node.preload="auto",t._node.volume=n?1:i*g.volume(),t._node.load()),t},reset:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++g._counter,t},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var t=this._parent;t._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),this._node.removeEventListener(g._canPlayEvent,this._loadFn,!1)}};var r={},a=function(e){var t=e._src;if(r[t])return e._duration=r[t].duration,void h(e);if(/^data:[^;]+;base64,/.test(t)){for(var i=atob(t.split(",")[1]),n=new Uint8Array(i.length),s=0;s<i.length;++s)n[s]=i.charCodeAt(s);c(n.buffer,e)}else{var o=new XMLHttpRequest;o.open("GET",t,!0),o.withCredentials=e._xhrWithCredentials,o.responseType="arraybuffer",o.onload=function(){var t=(o.status+"")[0];"0"===t||"2"===t||"3"===t?c(o.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+o.status+".")},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete r[t],e.load())},l(o)}},l=function(e){try{e.send()}catch(t){e.onerror()}},c=function(t,e){var i=function(){e._emit("loaderror",null,"Decoding audio data failed.")},n=function(t){t&&0<e._sounds.length?(r[e._src]=t,h(e,t)):i()};"undefined"!=typeof Promise&&1===g.ctx.decodeAudioData.length?g.ctx.decodeAudioData(t).then(n).catch(i):g.ctx.decodeAudioData(t,n,i)},h=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},d=function(){try{"undefined"!=typeof AudioContext?g.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?g.ctx=new webkitAudioContext:g.usingWebAudio=!1}catch(t){g.usingWebAudio=!1}var t=/iP(hone|od|ad)/.test(g._navigator&&g._navigator.platform),e=g._navigator&&g._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i=e?parseInt(e[1],10):null;if(t&&i&&i<9){var n=/safari/.test(g._navigator&&g._navigator.userAgent.toLowerCase());(g._navigator&&g._navigator.standalone&&!n||g._navigator&&!g._navigator.standalone&&!n)&&(g.usingWebAudio=!1)}g.usingWebAudio&&(g.masterGain=void 0===g.ctx.createGain?g.ctx.createGainNode():g.ctx.createGain(),g.masterGain.gain.setValueAtTime(g._muted?0:1,g.ctx.currentTime),g.masterGain.connect(g.ctx.destination)),g._setup()};"function"==typeof define&&define.amd&&define([],function(){return{Howler:g,Howl:e}}),"undefined"!=typeof exports&&(exports.Howler=g,exports.Howl=e),"undefined"!=typeof window?(window.HowlerGlobal=t,window.Howler=g,window.Howl=e,window.Sound=o):"undefined"!=typeof global&&(global.HowlerGlobal=t,global.Howler=g,global.Howl=e,global.Sound=o)}(),function(){"use strict";var e,i,n;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){if(!this.ctx||!this.ctx.listener)return this;for(var e=this._howls.length-1;0<=e;e--)this._howls[e].stereo(t);return this},HowlerGlobal.prototype.pos=function(t,e,i){var n=this;return n.ctx&&n.ctx.listener?(e="number"!=typeof e?n._pos[1]:e,i="number"!=typeof i?n._pos[2]:i,"number"!=typeof t?n._pos:(n._pos=[t,e,i],void 0!==n.ctx.listener.positionX?(n.ctx.listener.positionX.setTargetAtTime(n._pos[0],Howler.ctx.currentTime,.1),n.ctx.listener.positionY.setTargetAtTime(n._pos[1],Howler.ctx.currentTime,.1),n.ctx.listener.positionZ.setTargetAtTime(n._pos[2],Howler.ctx.currentTime,.1)):n.ctx.listener.setPosition(n._pos[0],n._pos[1],n._pos[2]),n)):n},HowlerGlobal.prototype.orientation=function(t,e,i,n,s,o){var r=this;if(!r.ctx||!r.ctx.listener)return r;var a=r._orientation;return e="number"!=typeof e?a[1]:e,i="number"!=typeof i?a[2]:i,n="number"!=typeof n?a[3]:n,s="number"!=typeof s?a[4]:s,o="number"!=typeof o?a[5]:o,"number"!=typeof t?a:(r._orientation=[t,e,i,n,s,o],void 0!==r.ctx.listener.forwardX?(r.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),r.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),r.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),r.ctx.listener.upX.setTargetAtTime(t,Howler.ctx.currentTime,.1),r.ctx.listener.upY.setTargetAtTime(e,Howler.ctx.currentTime,.1),r.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):r.ctx.listener.setOrientation(t,e,i,n,s,o),r)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(t,e){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(t,e)}}),i;var n=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===e){if("number"!=typeof t)return i._stereo;i._stereo=t,i._pos=[t,0,0]}for(var s=i._getSoundIds(e),o=0;o<s.length;o++){var r=i._soundById(s[o]);if(r){if("number"!=typeof t)return r._stereo;r._stereo=t,r._pos=[t,0,0],r._node&&(r._pannerAttr.panningModel="equalpower",r._panner&&r._panner.pan||c(r,n),"spatial"===n?void 0!==r._panner.positionX?(r._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),r._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),r._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):r._panner.setPosition(t,0,0):r._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),i._emit("stereo",r._id)}}return i},Howl.prototype.pos=function(t,e,i,n){var s=this;if(!s._webAudio)return s;if("loaded"!==s._state)return s._queue.push({event:"pos",action:function(){s.pos(t,e,i,n)}}),s;if(e="number"!=typeof e?0:e,i="number"!=typeof i?-.5:i,void 0===n){if("number"!=typeof t)return s._pos;s._pos=[t,e,i]}for(var o=s._getSoundIds(n),r=0;r<o.length;r++){var a=s._soundById(o[r]);if(a){if("number"!=typeof t)return a._pos;a._pos=[t,e,i],a._node&&(a._panner&&!a._panner.pan||c(a,"spatial"),void 0!==a._panner.positionX?(a._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),a._panner.positionY.setValueAtTime(e,Howler.ctx.currentTime),a._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):a._panner.setOrientation(t,e,i)),s._emit("pos",a._id)}}return s},Howl.prototype.orientation=function(t,e,i,n){var s=this;if(!s._webAudio)return s;if("loaded"!==s._state)return s._queue.push({event:"orientation",action:function(){s.orientation(t,e,i,n)}}),s;if(e="number"!=typeof e?s._orientation[1]:e,i="number"!=typeof i?s._orientation[2]:i,void 0===n){if("number"!=typeof t)return s._orientation;s._orientation=[t,e,i]}for(var o=s._getSoundIds(n),r=0;r<o.length;r++){var a=s._soundById(o[r]);if(a){if("number"!=typeof t)return a._orientation;a._orientation=[t,e,i],a._node&&(a._panner||(a._pos||(a._pos=s._pos||[0,0,-.5]),c(a,"spatial")),void 0!==a._panner.orientationX?(a._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),a._panner.orientationY.setValueAtTime(e,Howler.ctx.currentTime),a._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):a._panner.setOrientation(t,e,i)),s._emit("orientation",a._id)}}return s},Howl.prototype.pannerAttr=function(){var t,e,i,n=this,s=arguments;if(!n._webAudio)return n;if(0===s.length)return n._pannerAttr;if(1===s.length){if("object"!=typeof s[0])return(i=n._soundById(parseInt(s[0],10)))?i._pannerAttr:n._pannerAttr;t=s[0],void 0===e&&(t.pannerAttr||(t.pannerAttr={coneInnerAngle:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle,coneOuterGain:t.coneOuterGain,distanceModel:t.distanceModel,maxDistance:t.maxDistance,refDistance:t.refDistance,rolloffFactor:t.rolloffFactor,panningModel:t.panningModel}),n._pannerAttr={coneInnerAngle:void 0!==t.pannerAttr.coneInnerAngle?t.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:void 0!==t.pannerAttr.coneOuterAngle?t.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:void 0!==t.pannerAttr.coneOuterGain?t.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:void 0!==t.pannerAttr.distanceModel?t.pannerAttr.distanceModel:n._distanceModel,maxDistance:void 0!==t.pannerAttr.maxDistance?t.pannerAttr.maxDistance:n._maxDistance,refDistance:void 0!==t.pannerAttr.refDistance?t.pannerAttr.refDistance:n._refDistance,rolloffFactor:void 0!==t.pannerAttr.rolloffFactor?t.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:void 0!==t.pannerAttr.panningModel?t.pannerAttr.panningModel:n._panningModel})}else 2===s.length&&(t=s[0],e=parseInt(s[1],10));for(var o=n._getSoundIds(e),r=0;r<o.length;r++)if(i=n._soundById(o[r])){var a=i._pannerAttr;a={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:a.coneInnerAngle,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:a.coneOuterAngle,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:a.coneOuterGain,distanceModel:void 0!==t.distanceModel?t.distanceModel:a.distanceModel,maxDistance:void 0!==t.maxDistance?t.maxDistance:a.maxDistance,refDistance:void 0!==t.refDistance?t.refDistance:a.refDistance,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:a.rolloffFactor,panningModel:void 0!==t.panningModel?t.panningModel:a.panningModel};var l=i._panner;l?(l.coneInnerAngle=a.coneInnerAngle,l.coneOuterAngle=a.coneOuterAngle,l.coneOuterGain=a.coneOuterGain,l.distanceModel=a.distanceModel,l.maxDistance=a.maxDistance,l.refDistance=a.refDistance,l.rolloffFactor=a.rolloffFactor,l.panningModel=a.panningModel):(i._pos||(i._pos=n._pos||[0,0,-.5]),c(i,"spatial"))}return n},Sound.prototype.init=(i=Sound.prototype.init,function(){var t=this,e=t._parent;t._orientation=e._orientation,t._stereo=e._stereo,t._pos=e._pos,t._pannerAttr=e._pannerAttr,i.call(this),t._stereo?e.stereo(t._stereo):t._pos&&e.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}),Sound.prototype.reset=(n=Sound.prototype.reset,function(){var t=this,e=t._parent;return t._orientation=e._orientation,t._stereo=e._stereo,t._pos=e._pos,t._pannerAttr=e._pannerAttr,t._stereo?e.stereo(t._stereo):t._pos?e.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,e._refreshBuffer(t)),n.call(this)});var c=function(t,e){"spatial"===(e=e||"spatial")?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,void 0!==t._panner.positionX?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),void 0!==t._panner.orientationX?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}}();
/*! This file is auto-generated */
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.7",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+o];switch(o){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(o+1),r=0;r<o;r++)e[r]=arguments[r];return e[o]=t,u.apply(this,e)}}function o(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),tn=i("Error"),rn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=i("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,t){return null!=n&&q.call(n,t)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,o="constructor";for(y(n,o)&&!t.contains(o)&&t.push(o);r--;)(o=J[r])in n&&n[o]!==u[o]&&!t.contains(o)&&t.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var t,r=[];for(t in n)y(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=b(t),e=r.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=r[o];if(t[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,t,r,e){var u;return n===t?0!==n||1/n==1/t:null!=n&&null!=t&&(n!=n?t!=t:("function"==(u=typeof n)||"object"==u||"object"==typeof t)&&function n(t,r,e,u){t instanceof m&&(t=t._wrapped);r instanceof m&&(r=r._wrapped);var o=s.call(t);if(o!==s.call(r))return!1;if(un&&"[object Object]"==o&&h(t)){if(!h(r))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return F.valueOf.call(t)===F.valueOf.call(r);case"[object ArrayBuffer]":case bn:return n(gn(t),gn(r),e,u)}o="[object Array]"===o;if(!o&&vn(t)){var i=d(t);if(i!==d(r))return!1;if(t.buffer===r.buffer&&t.byteOffset===r.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof r)return!1;var i=t.constructor,a=r.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in t&&"constructor"in r)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===t)return u[f]===r;e.push(t);u.push(r);if(o){if((f=t.length)!==r.length)return!1;for(;f--;)if(!mn(t[f],r[f],e,u))return!1}else{var c,l=b(t);if(f=l.length,b(r).length!==f)return!1;for(;f--;)if(c=l[f],!y(r,c)||!mn(t[c],r[c],e,u))return!1}e.pop();u.pop();return!0}(n,t,r,e))}function c(n){if(!o(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var t=c(n);if(g(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==_n||!p(n[wn])}}var wn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(wn,u),_n=t.concat(u),r=["add"].concat(t,wn,"has"),u=a?jn(U):i("Map"),t=a?jn(_n):i("WeakMap"),U=a?jn(r):i("Set"),a=i("WeakSet");function j(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function An(n){for(var t={},r=b(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function xn(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function Sn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),w=Sn(b),Mn=Sn(c,!0);function En(n){var t;return o(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function _(n){return m.toPath(n)}function Nn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function In(n,t,r){n=Nn(n,_(t));return H(n)?r:n}function Tn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function kn(t){return t=_(t),function(n){return Nn(n,t)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,t,r){return u.call(o,n,t,r)};case 4:return function(n,t,r,e){return u.call(o,n,t,r,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,t,r){return null==n?Tn:p(n)?x(n,t,r):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,t){return Dn(n,t,1/0)}function S(n,t,r){return m.iteratee!==Rn?m.iteratee(n,t):Dn(n,t,r)}function Vn(){}function Fn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(t){function r(n){return t[n]}var n="(?:"+b(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(r),r=Pn(An(r)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,t,r,e,u){return e instanceof t?(e=En(n.prototype),o(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,o){function i(){for(var n=0,t=o.length,r=Array(t),e=0;e<t;e++)r[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)r.push(arguments[n++]);return Jn(u,i,this,this,r)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Jn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,t,r,e){if(e=e||[],t||0===t){if(t<=0)return e.concat(n)}else t=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<t)B(a,t-1,r,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else r||(e[u++]=a)}return e}var Hn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var nt=M(Zn,2);function tt(n,t,r){t=S(t,r);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(t(n[e=u[o]],e,n))return e}function rt(o){return function(n,t,r){t=S(t,r);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(t(n[u],u,n))return u;return-1}}var et=rt(1),ut=rt(-1);function ot(n,t,r,e){for(var u=(r=S(r,e,1))(t),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);r(n[a])<u?o=a+1:i=a}return o}function it(o,i,a){return function(n,t,r){var e=0,u=g(n);if("number"==typeof r)0<o?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=i(f.call(n,e,u),fn))?r+e:-1;for(r=0<o?e:u-1;0<=r&&r<u;r+=o)if(n[r]===t)return r;return-1}}var at=it(1,et,ot),ft=it(-1,ut);function ct(n,t,r){t=(E(n)?et:tt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,o=n.length;u<o;u++)t(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)t(n[e[u]],e[u],n);return n}function I(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=t(n[a],a,n)}return o}function lt(p){return function(n,t,r,e){var u=3<=arguments.length,o=n,i=x(t,e,4),a=r,f=!E(o)&&b(o),c=(f||o).length,l=0<p?0:c-1;for(u||(a=o[f?f[l]:l],l+=p);0<=l&&l<c;l+=p){var s=f?f[l]:l;a=i(a,o[s],s,o)}return a}}var st=lt(1),pt=lt(-1);function T(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!t(n[i],i,n))return!1}return!0}function vt(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(t(n[i],i,n))return!0}return!1}function k(n,t,r,e){return E(n)||(n=j(n)),0<=at(n,t,r="number"==typeof r&&!e?r:0)}var yt=l(function(n,r,e){var u,o;return p(r)?o=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),I(n,function(n){var t=o;if(!t){if(null==(n=u&&u.length?Nn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function dt(n,t){return I(n,kn(t))}function gt(n,e,t){var r,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&o<r&&(o=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var bt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mt(n){return n?v(n)?f.call(n):X(n)?n.match(bt):E(n)?I(n,Tn):j(n):[]}function jt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Fn(n.length-1)];for(var e=mt(n),r=g(e),u=(t=Math.max(Math.min(t,r),0),r-1),o=0;o<t;o++){var i=Fn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,t)}function D(o,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);o(u,n,t)}),u}}var wt=D(function(n,t,r){y(n,r)?n[r].push(t):n[r]=[t]}),_t=D(function(n,t,r){n[r]=t}),At=D(function(n,t,r){y(n,r)?n[r]++:n[r]=1}),xt=D(function(n,t,r){n[r?0:1].push(t)},!0);function St(n,t,r){return t in r}var Ot=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=c(n)):(e=St,t=B(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u<o;u++){var i=t[u],a=n[i];e(a,i,n)&&(r[i]=a)}}return r}),Mt=l(function(n,r){var t,e=r[0];return p(e)?(e=Yn(e),1<r.length&&(t=r[1])):(r=I(B(r,!1,!1),String),e=function(n,t){return!k(r,t)}),Ot(n,e,t)});function Et(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Bt(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Et(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Nt=l(function(n,t){return t=B(t,!0,!0),T(n,function(n){return!k(t,n)})}),It=l(function(n,t){return Nt(n,t)});function Tt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=r?r(f,i,n):f;t&&!r?(i&&o===c||u.push(f),o=c):r?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kt=l(function(n){return Tt(B(n,!0,!0))});function Dt(n){for(var t=n&&gt(n,g).length||0,r=Array(t),e=0;e<t;e++)r[e]=dt(n,e);return r}var Rt=l(Dt);function Vt(n,t){return n._chain?m(t).chain():t}function Ft(r){return N(xn(r),function(n){var t=m[n]=r[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Vt(this,t.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];m.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Vt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];m.prototype[n]=function(){var n=this._wrapped;return Vt(this,n=null!=n?t.apply(n,arguments):n)}});n=Ft({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=g(n))&&(v(n)||X(n)||an(n))?0===t:0===g(b(n)))},isMatch:dn,isEqual:function(n,t){return mn(n,t)},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:w,assign:w,defaults:Mn,create:function(n,t){return n=En(n),t&&w(n,t),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,t){return t(n),n},get:In,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!y(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=t(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Vn,toPath:Bn,property:kn,propertyOf:function(t){return null==t?Vn:function(n){return In(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Fn,now:O,escape:qn,unescape:r,templateSettings:Un,template:function(o,n,t){n=Mn({},n=!n&&t?t:n,m.templateSettings);var r,t=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(t,function(n,t,r,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!Cn.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,m)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var o=null==n?void 0:n[t[u]];void 0===o&&(o=r,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var t=++Kn+"";return n?n+t:t},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var t=o.cache,r=""+(u?u.apply(this,arguments):n);return y(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(r,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=r.apply(a,f),i||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(i&&(clearTimeout(i),i=null),l=n,c=r.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,t)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-i;n<r?o=setTimeout(u,r-n):(o=null,e||(f=t.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Yn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Zn,once:nt,findKey:tt,findIndex:et,findLastIndex:ut,sortedIndex:ot,indexOf:at,lastIndexOf:ft,find:ct,detect:ct,findWhere:function(n,t){return ct(n,A(t))},each:N,forEach:N,map:I,collect:I,reduce:st,foldl:st,inject:st,reduceRight:pt,foldr:pt,filter:T,select:T,reject:function(n,t,r){return T(n,Yn(S(t)),r)},every:ht,all:ht,some:vt,any:vt,contains:k,includes:k,include:k,invoke:yt,pluck:dt,where:function(n,t){return T(n,A(t))},max:gt,min:function(n,e,t){var r,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<o&&(o=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jt(n,1/0)},sample:jt,sortBy:function(n,e,t){var u=0;return e=S(e,t),dt(I(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:wt,indexBy:_t,countBy:At,partition:xt,toArray:mt,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Ot,omit:Mt,first:Bt,head:Bt,take:Bt,initial:Et,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:It,uniq:Tt,unique:Tt,union:kt,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(t,o)){for(var i=1;i<r&&k(arguments[i],o);i++);i===r&&t.push(o)}}return t},difference:Nt,unzip:Dt,transpose:Dt,zip:Rt,object:function(n,t){for(var r={},e=0,u=g(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),o=0;o<e;o++,n+=r)u[o]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Ft,default:m});return n._=n});
!function(S,M){"use strict";var v=S(document),j=S(M),w=S("body"),b=S("#wpadminbar"),y=S("#mobile-menu"),d=new BezierEasing(.35,.3,.2,.85),x=new BezierEasing(1,0,0,1),C=new MobileDetect(M.navigator.userAgent),I=I||{};TweenMax.defaultEase=d,TimelineMax.defaultEase=d,I={activeSlider:!1,menuscroll:S("#menu-scroll"),init:function(){var e,a=this;if(S(".header-lateral-off").length){var t=S(".thb-borders").css("border-top-width");j.on("resize",function(){S(".page-padding").css({paddingTop:S(".header").outerHeight()+(S(".page-padding").hasClass("extra")?30:0)+(S(".thb-borders").length?parseInt(t):0)})}).trigger("resize")}function i(){for(e in a)if(a.hasOwnProperty(e)){var t=a[e];void 0!==t.selector&&void 0!==t.init&&0<S(t.selector).length&&t.init()}}"on"!==themeajax.settings.page_transition||w.hasClass("compose-mode")?i():S(".thb-page-transition-on").animsition({inClass:themeajax.settings.page_transition_style+"-in",outClass:themeajax.settings.page_transition_style+"-out",inDuration:parseInt(themeajax.settings.page_transition_in_speed,10),outDuration:parseInt(themeajax.settings.page_transition_out_speed,10),loading:!1,touchSupport:!1,linkElement:'.animsition-link, a[href]:not([target="_blank"]):not([target=" _blank"]):not([href^="'+themeajax.settings.current_url+'#"]):not([href^="#"]):not([href*="javascript"]):not([href*=".rar"]):not([href*=".zip"]):not([href*=".jpg"]):not([href*=".jpeg"]):not([href*=".gif"]):not([href*=".png"]):not([href*=".mov"]):not([href*=".swf"]):not([href*=".mp4"]):not([href*=".flv"]):not([href*=".avi"]):not([href*=".mp3"]):not([href^="mailto:"]):not([class="no-animation"]):not(.add_to_cart_button):not([class*="ftg-lightbox"]):not(.wpcf7-submit)'}).on("animsition.inEnd",function(){i()})},headRoom:{selector:".midnight_off .header",portfolio_header:!1,regular_header:!1,tl:new TimelineMax({paused:!0}),init:function(){var t=this,e=S(t.selector);t.portfolio_header=S(".portfolio-header",e),t.regular_header=S(".regular-header",e),t.portfolio_header.length&&t.tl.to(t.regular_header,.5,{y:"-100%",autoAlpha:0},"s").to(t.portfolio_header,.5,{y:"0%",autoAlpha:1},"s+=0.1"),j.on("scroll",function(){t.scroll(e)})},scroll:function(t){var e=j.scrollTop(),a="hover",i=this;0<e?_.defer(function(){t.addClass(a),i.tl.play()}):_.defer(function(){t.removeClass(a),i.tl.reverse()})}},right_click:{selector:".right-click-on",init:function(){var t=S("#right_click_content"),e=new TimelineLite({paused:!0,onStart:function(){t.css("display","flex")},onReverseComplete:function(){t.css("display","none")}}),a=t.find(".columns>*");e.to(t,.5,{opacity:1,ease:d},"start").staggerFrom(a,.5,{Y:20,opacity:0,ease:d},.1),j.on("contextmenu",function(t){if(3===t.which)return e.play(),!1}),t.on("click",function(){e.reverse()})}},scrollSpy:{selector:".scroll-spy-on",init:function(){S(this.selector);var t=b.outerHeight()+5,e=w.hasClass("disable_header_fill-on")||w.hasClass("midnight_on")?t:S(".header").outerHeight()+t;e=S(".header").hasClass("style3")?0:e,S("#full-menu").length&&!w.hasClass("thb_row_pagination_on")&&w.scrollspy({target:"#full-menu",offset:e})}},search:{selector:"#quick_search",init:function(){var t=S(this.selector),e=S("#searchpopup"),a=S(".searchform",e),i=new TimelineMax({paused:!0,onComplete:function(){a.find("input").get(0).focus()}});i.to(e,.5,{autoAlpha:1}).to(a,.5,{y:0}),t.on("click",function(){S(this);return i.timeScale(1).play(),!1}),S(".thb-search-close, .cc",e).on("click",function(){return i.timeScale(1.6).reverse(),!1}),v.keyup(function(t){27===t.keyCode&&i.timeScale(1.6).reverse()})}},retinaJS:{selector:"img.retina_size",init:function(){S(this.selector).each(function(){S(this).attr("width",function(){return S(this).attr("width")/2}).addClass("retina_active")})}},midnight:{selector:".midnight_on:not(.page-template-template-onepage):not(.header-lateral-on)",init:function(){S(".header").midnight({defaultClass:"dark-title"})}},responsiveNav:{selector:"#wrapper",init:function(){var l=S(this.selector),r=w.hasClass("page-template-template-onepage"),t=(S("#music_toggle"),S(".mobile-toggle")),e=y,a=e.data("behaviour"),i=e.data("animation"),o=S(".thb-close",e),n=S(".thb-mobile-menu"),s=e.find(".thb-mobile-language-switcher>a,.thb-mobile-menu>li>.link_container>.link_inner"),d=e.find(".thb-secondary-menu a, .menu-footer>div"),c=new TimelineMax({paused:!0,onComplete:function(){I.menuscroll.update()},onReverseComplete:function(){TweenMax.set(e,{clearProps:"all"})}}),p=S(".thb-mobile-menu a"),h="thb-submenu"===a?e.find('.thb-mobile-menu li:has(".sub-menu")>.link_container a'):e.find(".thb-mobile-menu .next"),u=new TimelineMax({paused:!0}),f=(new TimelineMax({paused:!0}),themeajax.settings.mobile_menu_speed);if(e.hasClass("style3")?c.set(S(".header"),{className:"+=no-transition"},"start").to(S('div[role="main"], .header'),f,{x:"-100%",strictUnits:!0,ease:x},"start").to(e,f,{x:"0%",strictUnits:!0,ease:x},"start"):e.hasClass("style2")?c.to(e,f,{display:"flex",scale:1,autoAlpha:1}):c.to(e,f,{x:"0%",strictUnits:!0}),"style1"===i&&c.staggerTo(s,.2,{y:"0",strictUnits:!0},.07).staggerTo(d,.1,{y:"0",strictUnits:!0},.02,"-=0.1"),"on"===themeajax.sounds.menu_open_sound)var g=new Howl({src:themeajax.sounds.menu_open_sound_file,preload:!0,volume:50});if("on"===themeajax.sounds.menu_close_sound)var m=new Howl({src:themeajax.sounds.menu_close_sound_file,preload:!0,volume:50});new Hammer(e[0]).on("swiperight",function(t){return"on"===themeajax.sounds.menu_close_sound&&m.play(),l.removeClass("open-menu"),h.length&&0<u.totalProgress()&&u.reverse(),c.reverse(),!1}),h.each(function(){var t=S(this),e=t.parents(".link_container").next(".sub-menu"),a=e.find(">li:eq(0) .back"),i=e.find(">li>.link_container>.link_inner"),o=new TimelineMax({paused:!0,onComplete:function(){I.menuscroll.update()},onReverseComplete:function(){I.menuscroll.update()}});o.set(n,{minHeight:e.outerHeight()}).to(n,.5,{x:"-=100%"},"start").to(n.find(">li>.link_container"),.5,{autoAlpha:0},"start").to(e,.5,{autoAlpha:1},"start").staggerTo(i,.2,{y:"0"},.1,"start"),t.on("click",function(){return(u=o).play(),!1}),a.on("click",function(){return o.reverse(),!1})}),p.on("click",function(t){var e=S(this).attr("href"),a=b.outerHeight(),i=w.hasClass("disable_header_fill-on")||w.hasClass("midnight_on")?0:S(".header").outerHeight(),o=!!e&&(-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):""),n=o?S("#"+o).offset().top-a-i:0,s=C.mobile()?0:1;return o&&r?(l.removeClass("open-menu"),c.reverse(),!0):!(!o||n)||(!o||(n="footer"===o?"max":n,l.removeClass("open-menu"),c.reverse(),TweenMax.to(j,s,{scrollTo:{y:n,autoKill:!1}}),!1))}),t.on("click",function(){return"on"===themeajax.sounds.menu_open_sound&&g.play(),l.toggleClass("open-menu"),c.timeScale(1).restart(),!1}),S(".click-capture").add(o).on("click",function(){return"on"===themeajax.sounds.menu_close_sound&&m.play(),l.removeClass("open-menu"),h.length&&0<u.totalProgress()&&u.reverse(),c.reverse(),!1}),v.keyup(function(t){27===t.keyCode&&(h.length&&u.reverse(),c.reverse())})}},mmBgFill:{selector:".mm-link-animation-bg-fill",init:function(){var t=S('a[data-menubg]:not([data-menubg=""])',y),e=S(".menubg-placeholder",y),a=y.hasClass("style3");t.each(function(){""!==S(this).data("menubg")&&((new Image).src=S(this).data("menubg"))}),t.hoverIntent(function(){e.css({"background-image":"url("+S(this).data("menubg")+")",opacity:a?1:.2})},function(){a||e.css({"background-image":"",opacity:0})}),a&&""!==t.eq(0).data("menubg")&&e.css({"background-image":"url("+t.eq(0).data("menubg")+")",opacity:a?1:.2})}},fullMenu:{selector:".thb-full-menu",init:function(){var t=S(this.selector),s=w.hasClass("page-template-template-onepage"),e=t.find("a");t.find("li.menu-item-has-children").each(function(){var t=S(this),e=t.find(">.sub-menu"),a=e.find(">li>a"),i=new TimelineMax({paused:!0});i.to(e,.5,{autoAlpha:1},"start").staggerTo(a,.1,{opacity:1,y:0},.03,"start"),w.hasClass("header-lateral-on")?t.find(">a").on("click",function(){return t.toggleClass("sfHover"),e.slideToggle("200"),!1}):t.hoverIntent(function(){t.addClass("sfHover"),S(".header").hasClass("style3")?e.slideDown("200"):i.timeScale(1).restart()},function(){t.removeClass("sfHover"),S(".header").hasClass("style3")?e.slideUp("200"):i.timeScale(1.5).reverse()})}),e.on("click",function(t){var e=S(this).attr("href"),a=S("#wpadminbar").outerHeight(),i=w.hasClass("disable_header_fill-on")||w.hasClass("midnight_on")?1:S(".header").outerHeight(),o=-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):"",n=o&&S("#"+o).length?S("#"+o).offset().top-a-i:0;return!(!o||!s)||(!(!o||n)||(!o||(n="footer"===o?"max":n,TweenMax.to(j,1,{scrollTo:{y:n,autoKill:!1}}),!1)))})}},snap_rows:{selector:".snap_rows_on",init:function(){var e=this,t=(S(e.selector),S(".page.type-page>.row.wpb_row, .post.portfolio-detail .post-content>.row.wpb_row, .post.portfolio-detail .post-gallery")),a=[];C.mobile()||(t.imagesLoaded(function(){t.each(function(t){a.push(S(this).offset().top)})}),j.on("resize",function(){a.length=0,t.each(function(t){a.push(S(this).offset().top)})}),j.on("scroll",function(){var t=j.scrollTop();clearTimeout(j.timer),j.isScrolling=!0,j.timer=setTimeout(function(){j.isScrolling=!1,e.goTo(Math.round(t),a)},200)}))},goTo:function(t,e){var a=(w.hasClass("disable-row-offset-on")?0:S(".header.hover").outerHeight())+S("#wpadminbar").outerHeight();if(!j.isScrolling){var i,o,n,s=(i=e,o=t,n=_.map(i,function(t){return[t,Math.abs(t-o)]}),_.reduce(n,function(t,e){return t[1]<e[1]?t:e},[-1,999])[0]);TweenMax.to(j,.3,{scrollTo:{y:s,offsetY:a}})}}},socialSharing:{selector:".thb-portfolio-share .social, .thb-share-icons .social",init:function(){var a=S(this.selector);a.data("pin-no-hover",!0),a.on("click",function(){var t=screen.width/2-320,e=screen.height/2-220-100;if(!a.hasClass("email"))return M.open(S(this).attr("href"),"mywin","left="+t+",top="+e+",width=640,height=440,toolbar=0"),!1})}},hashLinks:{selector:".btn[href*=#], .button[href*=#]",init:function(){S(this.selector).on("click",function(t){var e,a,i=S(this).attr("href"),o=b.outerHeight();i&&(a=(e=-1!==i.indexOf("#")?i.substring(i.indexOf("#")+1):"")&&S("#"+e).length?S("#"+e).offset().top-o:0),e&&a&&(a="footer"===e?"max":a,S("#"+e).hasClass("vc_tta-panel")||TweenMax.to(j,1,{scrollTo:{y:a,autoKill:!1}}),t.preventDefault())})}},custom_scroll:{selector:".custom_scroll",init:function(){S(this.selector).each(function(){var t=S(this),e={suppressScrollX:!0};t.hasClass("portfolio-show-all")&&(e={suppressScrollX:!1,suppressScrollY:!0});var a=new PerfectScrollbar(t[0],e);"menu-scroll"===t.attr("id")&&(I.menuscroll=a)})}},skrollr:{selector:".parallax_bg",init:function(){var t={forceHeight:!1,easing:d,mobileCheck:function(){return!1},render:function(){void 0!==M.vcParallaxSkroll&&vcParallaxSkroll&&vcParallaxSkroll.refresh()}};skrollr.init(t)}},paginationStyle2:{selector:".pagination-style2",init:function(){var s=S(this.selector),t=S(".thb_load_more"),l=!1,e=2;t.on("click",function(){var i=S(this),o=i.text(),n=i.data("count");return!1===l&&(i.html("<span>"+themeajax.l10n.loading+"</span>").addClass("loading"),S.ajax(themeajax.url,{method:"POST",data:{action:"thb_blog_ajax",page:e++},beforeSend:function(){l=!0},success:function(t){l=!1;var e=S.parseHTML(S.trim(t)),a=e?e.length:0;""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?i.html("<span>"+themeajax.l10n.nomore+"</span>").removeClass("loading").off("click"):(S(e).appendTo(s).hide().imagesLoaded({background:!0},function(){s.data("isotope")&&s.isotope("appended",S(e)),S(e).show(),TweenMax.set(S(e),{opacity:0,y:30}),TweenMax.staggerTo(S(e),.5,{y:0,opacity:1},.25)}),a<n?i.html("<span>"+themeajax.l10n.nomore+"</span>").removeClass("loading"):i.html("<span>"+o+"</span>").removeClass("loading"))}})),!1})}},paginationStyle3:{selector:".pagination-style3",init:function(){var i=S(this.selector),t=2,o=!1,n=i.data("count"),s=i.parents(".blog-container").find(".thb-preloader"),l=_.debounce(function(){!1===o&&(s.length&&TweenMax.set(s,{autoAlpha:1}),S.ajax(themeajax.url,{method:"POST",data:{action:"thb_blog_ajax",page:t++},beforeSend:function(){o=!0},success:function(t){o=!1;var e=S.parseHTML(S.trim(t)),a=e?e.length:0;s.length&&TweenMax.to(s,.25,{autoAlpha:0}),""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t?j.off("scroll",l):(S(e).appendTo(i).hide().imagesLoaded(function(){i.data("isotope")&&i.isotope("appended",S(e)),S(e).show(),TweenMax.set(S(e),{opacity:0,y:30}),TweenMax.staggerTo(S(e),.5,{y:0,opacity:1},.25)}),n<=a&&j.on("scroll",l))}}))},30);j.scroll(l)}},isotope:{selector:".masonry",init:function(){var t=S(this.selector),k=S(".logo-holder",".header"),T=b?b.outerHeight():0;Outlayer.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var a=this.size;a.isBorderBox&&(t+=e?a.paddingLeft+a.paddingRight+a.borderLeftWidth+a.borderRightWidth:a.paddingBottom+a.paddingTop+a.borderTopWidth+a.borderBottomWidth),t=Math.max(t,0),t=Math.floor(t),this.element.style[e?"width":"height"]=t+"px"}},!S(".pswp").length&&0<t.find(".portfolio-image-links").length&&w.append('<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> <div class="pswp__bg"></div><div class="pswp__scroll-wrap"> <div class="pswp__container"> <div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div><div class="pswp__ui pswp__ui--hidden"> <div class="pswp__top-bar"> <div class="pswp__counter"></div><button class="pswp__button pswp__button--close" title="Close (Esc)"></button> <button class="pswp__button pswp__button--share" title="Share"></button> <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button> <div class="pswp__preloader"> <div class="pswp__preloader__icn"> <div class="pswp__preloader__cut"> <div class="pswp__preloader__donut"></div></div></div></div></div><div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"> <div class="pswp__share-tooltip"></div></div><button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"> </button> <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"> </button> <div class="pswp__caption"> <div class="pswp__caption__center"></div></div></div></div></div>'),t.each(function(t){var p,n,h=S(this),e=h.data("layoutmode")?h.data("layoutmode"):"masonry",a="nobg"!==h.data("preload")&&".thb-placeholder",i=(h.find(".columns"),h.data("thb-animation")),o=h.data("thb-animation-speed")?h.data("thb-animation-speed"):.5,s=h.find(".thb-preloader:not(.detail)"),u=S(h.data("loadmore")),f=2,l={layoutMode:e,itemSelector:".columns",transitionDuration:0,hiddenStyle:{},visibleStyle:{}},r=S("#"+h.data("filter")),d=h.hasClass("thb-filter-style4"),g=o,c=g/2,m=g/5,v=document.querySelectorAll(".pswp")[0],w=h.find(".portfolio-image-links"),b=w.find(".portfolio-link").length?0:1,y=[],x={galleryUID:t,index:0,hideAnimationDuration:500,showAnimationDuration:500,fullscreenEl:!0,shareEl:!1,captionEl:!0,addCaptionHTMLFn:function(t,e,a){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},getThumbBoundsFn:function(t){var e=w[t],a=M.pageYOffset||document.documentElement.scrollTop,i=e.getBoundingClientRect();return{x:i.left,y:i.top+a,w:i.width}}};if(n="thb-fade"===i?(p={opacity:1},{opacity:0}):"thb-scale"===i?(p={opacity:1,scale:1},{opacity:0,scale:0}):"thb-none"===i?(g=c=0,p={opacity:1},{opacity:m=0}):(p={y:0,opacity:1},{y:30,opacity:0}),u.on("click",function(){var o=u.text(),t=portfolioajax.i,e=portfolioajax.aspect,a=portfolioajax.columns,i=portfolioajax.style,n=portfolioajax.masonry_layout,s=portfolioajax.count,l=portfolioajax.loop,r=portfolioajax.hover_style,d=portfolioajax.title_position,c=portfolioajax.animation_style;return u.prop("title",themeajax.l10n.loading),u.find("span").text(themeajax.l10n.loading).addClass("loading"),S.post(themeajax.url,{action:"thb_ajax",loop:l,i:t,aspect:e,columns:a,masonry_layout:n,style:i,page:f,hover_style:r,title_position:d,animation_style:c},function(t){f++;var e=S.parseHTML(S.trim(t)),a=e?e.length:0;if(""===t||"undefined"===t||"No More Posts"===t||"No $args array created"===t)u.prop("title",themeajax.l10n.nomore),u.find("span").text(themeajax.l10n.nomore).removeClass("loading").off("click");else{var i=S(e);i.imagesLoaded({background:!0},function(){i.appendTo(h).hide(),h.isotope("appended",i),i.show(),TweenMax.staggerTo(i.find(".portfolio-holder"),g,p,m),a<s?(u.prop("title",themeajax.l10n.nomore),u.find("span").text(themeajax.l10n.nomore).removeClass("loading")):(u.prop("title",o),u.find("span").text(o).removeClass("loading"))})}}),!1}),r.length&&r.hasClass("style1")){k.append(r),TweenMax.set(r,{autoAlpha:0,display:"none"});var C=_.debounce(function(){j.scrollTop()+T>=h.offset().top-S(".header").outerHeight()&&j.scrollTop()<=h.offset().top+h.outerHeight()-S(".header").outerHeight()-T&&1025<j.width()?TweenMax.to(r,.5,{autoAlpha:1,display:"inline-flex"}):TweenMax.to(r,.5,{autoAlpha:0,display:"none"})},10);j.scroll(C),j.resize(C)}h.imagesLoaded({background:a},function(){if(s.length&&TweenMax.to(s,.25,{autoAlpha:0}),h.addClass("thb-loaded"),I.style6hover.start(),h.on("layoutComplete",function(t,e){var a=_.map(e,"element");j.scroll(_.debounce(function(){(e=S(a).filter(":in-viewport").filter(function(){return void 0===S(this).data("thb-in-viewport")}))&&(e.data("thb-in-viewport",!0),TweenMax.staggerTo(e.find(".portfolio-holder"),g,p,m,function(){e.data("thb-in-viewport",!0)}))},20)).trigger("scroll"),h.trigger("resize"),w.length&&(w.each(function(){var t=S(this),e=I.isotope.getImageData(t,b);y.push(e)}),h.on("click",".portfolio-image-link",function(t){t.preventDefault();var e=S(this),a=b?w.index(e):w.index(e.parents(".portfolio-image-links"));x.index=a,new PhotoSwipe(v,PhotoSwipeUI_Default,y,x).init()}))}).isotope(l),r.length||d){var o=d?S(".full-menu a[data-filter]").add(S(".thb-mobile-menu a[data-filter]")):r.find("a");o.on("click",function(){var t=S(this),e=t.data("filter"),a=function(){h.on("layoutComplete",function(t,e){var a=_.map(e,"element");TweenMax.staggerTo(S(a).find(".portfolio-holder"),g,p,m)}),h.isotope({filter:e})},i=S(h.isotope("getFilteredItemElements")).find(".portfolio-holder");return o.not(t).removeClass("active"),t.hasClass("active")?(t.removeClass("active"),e="*",o.filter('[data-filter="*"]').addClass("active")):t.addClass("active"),i.length?TweenMax.staggerTo(i,c,n,m,a):a(),!1})}}),h.parents(".vc_tta").length&&S("[data-vc-accordion]").on("show.vc.accordion",function(t){h.isotope("layout")})})},getImageData:function(t,e){var a=e?t.attr("href"):t.find(".portfolio-link").attr("href"),i=t.find(".thb-placeholder").css("background-image").replace("url(","").replace(")","").replace(/\"/gi,""),o=e?t.data("size").split("x"):t.find(".portfolio-link").data("size").split("x");return{msrc:i,src:a,title:t.attr("title"),w:parseInt(o[0],10),h:parseInt(o[1],10)}}},headerFilter:{selector:".thb-portfolio-filter, .thb-portfolio-share",init:function(){S(this.selector).each(function(){var t=S(this),e=t.find("li>a, li>span"),a=new TimelineMax({paused:!0}),i=t.hasClass("thb-portfolio-share"),o=i?.1:.2,n=S("nav.full-menu",".header");a.staggerTo(e,o,{x:"0%"},o-.05),t.hasClass("thb-portfolio-filter")&&t.hasClass("style1")&&n.length&&!S(".header").hasClass("style3")&&a.to(n,1,{opacity:0},0),i&&e.on("click",function(){e.removeClass("active"),S(this).addClass("active")}),t.hoverIntent(function(){t.hasClass("alt")||a.timeScale(1).play()},function(){t.hasClass("alt")||a.timeScale(2).reverse()})})}},verticalDeck:{selector:".vertical-deck",pageIndex:0,init:function(){var t=S(this.selector),e=S(".swiper-pagination"),a=S(".swiper-pagination-current",e);t.curtain({prevSlide:function(){C.mobile()||a.html(S(".vertical-page.current").index()+1)},nextSlide:function(){C.mobile()||a.html(S(".vertical-page.current").index()+1)}})}},slick:{selector:".slick",init:function(t){(t||S(this.selector)).each(function(){var t=S(this),e=t.data("columns"),a=2<e.length?parseInt(e.substr(e.length-1)):e,i=t.find(".columns"),o=2<e.length?5===a?5:12/a:e,n=!!t.data("fade"),s=!0===t.data("navigation"),l=!0===t.data("autoplay"),r=!0===t.data("pagination"),d=!!t.data("center")&&(!!(i.length>o&&o%2)&&t.data("center")),c=!1!==t.data("infinite"),p=t.data("autoplay-speed")?t.data("autoplay-speed"):4e3,h=t.data("asnavfor"),u={dots:r,arrows:s,infinite:c,speed:1e3,fade:n,centerPadding:0,centerMode:d,slidesToShow:o,slidesToScroll:1,rtl:w.hasClass("rtl"),cssEase:"cubic-bezier(0.35, 0.3, 0.2, 0.85)",autoplay:l,autoplaySpeed:p,pauseOnHover:!0,accessibility:!1,focusOnSelect:!0,prevArrow:'<button type="button" class="slick-nav slick-prev"><span><svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="thb-arrow" x="0" y="0" width="16.7" height="11.3" viewBox="0 0 16.7 11.3" enable-background="new 0 0 16.664 11.289" xml:space="preserve"><polygon fill-rule="evenodd" clip-rule="evenodd" points="0 5.6 1.4 4.2 1.4 4.2 5.7 0 7.1 1.4 3.8 4.7 16.7 4.7 16.7 6.7 3.9 6.7 7.1 9.9 5.7 11.3 1.4 7.1 1.4 7.1 0 5.7 0 5.6 "/></svg></span></button>',nextArrow:'<button type="button" class="slick-nav slick-next"><span><svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="thb-arrow" x="0" y="0" width="16.7" height="11.3" viewBox="0 0 16.7 11.3" enable-background="new 0 0 16.664 11.289" xml:space="preserve"><polygon fill-rule="evenodd" clip-rule="evenodd" points="16.7 5.6 15.3 4.2 15.2 4.2 11 0 9.6 1.4 12.9 4.7 0 4.7 0 6.7 12.8 6.7 9.6 9.9 11 11.3 15.2 7.1 15.3 7.1 16.7 5.7 16.7 5.6 "/></svg></span></button>',responsive:[{breakpoint:1025,settings:{slidesToShow:o<3?o:3}},{breakpoint:780,settings:{slidesToShow:o<2?o:2}},{breakpoint:640,settings:{slidesToShow:1}}]};h&&S(h).is(":visible")&&(u.asNavFor=h),t.data("fade")&&(u.fade=!0),t.hasClass("product-thumbnails")&&(u.responsive=!1),d&&t.on("init",function(){t.addClass("centered")}),t.slick(u)})}},onePage:{selector:"#thb_fullscreen_rows",init:function(){var r=S(this.selector),t=S(".footer-container"),a=[],i=[];I.fullPageEnabled=!0,t.length&&t.appendTo(r),S(">.wpb_row",r).each(function(){var t=S(this),e=t.data("onepage-anchor")?t.data("onepage-anchor"):"";i.push(e),a.push(t.data("row-title"))}),r.fullpage({sectionSelector:">.wpb_row",navigation:!0,css3:!0,scrollingSpeed:1150,anchors:i,scrollOverflow:!0,scrollOverflowOptions:{click:!1,preventDefaultException:{tagName:/.*/}},navigationPosition:"right",navigationTooltips:a,afterLoad:function(t,e){var a=S(".wpb_row.fp-section:nth-child("+e+")",r),i=a.data("midnight");I.animation.container(a);var o=a.data("vide");o&&o.getVideoObject().play(),i&&!w.hasClass(i)&&w.removeClass("light-title dark-title").addClass(i),j.trigger("scroll")},onLeave:function(t,e,a){var i=S(".wpb_row.fp-section:nth-child("+t+")",r),o=S(".wpb_row.fp-section:nth-child("+e+")",r),n=(o.data("midnight"),"down"===a?1:-1);function s(){TweenMax.to(i,1.15,{opacity:.8,y:50*n+"%",ease:d,clearProps:"all"})}i.data("vide")&&i.data("vide").getVideoObject().pause(),"down"===a?o.hasClass("footer-container")?i.addClass("before-footer"):s():o.hasClass("before-footer")||s();var l=o.data("vide");l&&l.resize(),_.delay(function(){I.animation.container(o),i.removeClass("active"),o.find(".masonry")&&o.find(".masonry").isotope("layout"),l&&l.getVideoObject().play()},1150)}})}},shopLoading:{selector:".post-type-archive-product ul.products.thb-main-products",thb_loading:!1,scrollInfinite:!1,href:!1,init:function(){var t=S(this.selector),e=themeajax.settings.shop_product_listing_pagination;S(".woocommerce-pagination").length&&w.hasClass("post-type-archive-product")&&("style2"===e?this.loadButton(t):"style3"===e&&this.loadInfinite(t))},loadButton:function(a){var i=this;S(".woocommerce-pagination").before('<div class="thb_load_more_container text-center"><a class="thb_load_more button">'+themeajax.l10n.loadmore+"</a></div>"),0===S(".woocommerce-pagination a.next").length&&S(".thb_load_more_container").addClass("is-hidden"),S(".woocommerce-pagination").hide(),w.on("click",".thb_load_more:not(.no-ajax)",function(t){var e=S(this);return i.href=S(".woocommerce-pagination a.next").attr("href"),!1===i.thb_loading&&(e.html(themeajax.l10n.loading).addClass("loading"),i.loadProducts(e,a)),!1})},loadInfinite:function(t){var e=this;0===S(".woocommerce-pagination a.next").length&&S(".thb_load_more_container").addClass("is-hidden"),S(".woocommerce-pagination").hide(),e.scrollInfinite=_.debounce(function(){!1===e.thb_loading&&j.scrollTop()+j.height()+150>=t.offset().top+t.outerHeight()&&(e.href=S(".woocommerce-pagination a.next").attr("href"),e.loadProducts(!1,t,!0))},30),j.on("scroll",e.scrollInfinite)},loadProducts:function(i,o,n){var s=this;S.ajax(s.href,{method:"GET",beforeSend:function(){s.thb_loading=!0,n&&j.off("scroll",s.scrollInfinite)},success:function(t){var e=S(t),a=e.find("ul.products.thb-main-products li");S(".woocommerce-pagination").html(e.find(".woocommerce-pagination").html()),i?e.find(".woocommerce-pagination .next").length?i.html(themeajax.l10n.loadmore).removeClass("loading"):i.html(themeajax.l10n.nomore_products).removeClass("loading").addClass("no-ajax"):n&&e.find(".woocommerce-pagination .next").length&&j.on("scroll",s.scrollInfinite),a.length&&(a.addClass("will-animate").appendTo(o),TweenMax.set(a,{opacity:0,y:30}),TweenMax.staggerTo(a,.3,{y:0,opacity:1},.15)),s.thb_loading=!1}})}},fsStyle1:{selector:".swiper-container.style1",init:function(){var t=S(this.selector),e={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1e3,pagination:{el:".swiper-pagination",type:"footer_style2"===t.data("footer-style")?"bullets":"fraction",clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!0,autoplay:!!t.data("autoplay")&&{delay:t.data("autoplay")},effect:"fade",direction:"vertical",keyboard:{enabled:!0},mousewheel:{forceToAxis:!0},on:{init:function(){var t=this.activeIndex,e=this.slides.eq(t).data("color");w.hasClass(e)||w.removeClass("light-title dark-title").addClass(e)},slideChangeTransitionStart:function(){var t=this.activeIndex,e=this.slides.eq(t).data("color");w.removeClass("light-title dark-title").addClass(e)}}};I.activeSlider=new Swiper(this.selector,e)}},fsStyle3:{selector:".swiper-container.style3",init:function(){var a,i=S(this.selector),t={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1e3,pagination:{el:".swiper-pagination",type:"footer_style2"===i.data("footer-style")?"bullets":"fraction",clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!1,autoplay:!!i.data("autoplay")&&{delay:i.data("autoplay")},direction:"vertical",keyboard:{enabled:!0},mousewheel:!0,on:{init:function(){(a=i.find("h1")).each(function(t,e){var a=S(e),i=new SplitText(a,{type:"words,chars",charsClass:"char"}),o=new TimelineMax({paused:!0});o.set(a,{display:"flex"}).staggerTo(i.chars,1,{opacity:1,y:"0%"},.1),a.data("tl",o),a.css("font-size",1.5*parseInt((i.chars.length,10))+"vw"),0===t&&o.play()});var t=this.activeIndex,e=this.slides.eq(t).data("color");w.hasClass(e)||w.removeClass("light-title dark-title").addClass(e)},slideChangeTransitionStart:function(){this.slides.eq(this.previousIndex);var t=this.slides.eq(this.activeIndex),e=t.hasClass("light-title")?"light-title":"dark-title";t.find("h1").data("tl");a.eq(this.previousIndex).data("tl").timeScale(2).reverse(),a.eq(this.activeIndex).data("tl").timeScale(1).play(),w.removeClass("light-title dark-title").addClass(e)}}};I.activeSlider=new Swiper(this.selector,t)}},fsStyle4:{selector:".swiper-container.style4",init:function(){var t=S(this.selector),e={speed:1e3,pagination:{el:".swiper-pagination",type:"footer_style2"===t.data("footer-style")?"bullets":"fraction",clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!0,autoplay:!!t.data("autoplay")&&{delay:t.data("autoplay")},effect:"slide",direction:"vertical",keyboard:{enabled:!0},mousewheel:!0};I.activeSlider=new Swiper(this.selector,e);var a=new Swiper(".swiper-container.style4-thumbnails",{speed:1e3,effect:"fade",loop:!0,mousewheel:!0,direction:"vertical"});(I.activeSlider.controller.control=a).controller.control=I.activeSlider}},fsStyle5:{selector:".swiper-container.style5",init:function(){var t=S(this.selector),e="footer_style2"===t.data("footer-style")?"bullets":"fraction",a=(t.find("h1"),!!t.data("autoplay")&&{delay:t.data("autoplay")}),o=[],n=[{pieces:3,positions:[{top:0,left:0,width:30,height:54},{top:62,left:19,width:40,height:38},{top:28,left:55,width:45,height:40}]},{pieces:4,positions:[{top:0,left:7,width:33,height:71},{top:0,left:51,width:22,height:30},{top:38,left:60,width:40,height:51},{top:65,left:0,width:45,height:25}]},{pieces:4,positions:[{top:30,left:0,width:41,height:70},{top:0,left:48,width:33,height:69},{top:18,left:76,width:24,height:36},{top:79,left:63,width:26,height:11}]},{pieces:4,positions:[{top:14,left:5,width:38,height:57},{top:0,left:48,width:33,height:56},{top:50,left:70,width:26,height:50},{top:83,left:30,width:26,height:17}]}],i={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1e3,pagination:{el:".swiper-pagination",type:e,clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!1,autoplay:a,direction:"vertical",keyboard:{enabled:!0},mousewheel:!0,on:{init:function(){this.slides.each(function(t,e){S(e);var a,i={animation:{duration:8e3,translateZ:{min:80,max:140}},onReady:function(){o[t]=a.animate(),0===t&&o[t].play()}};i.pieces=n[t%4].pieces,i.positions=n[t%4].positions,a=new Segmenter(e,i)});var t=this.activeIndex,e=this.slides.eq(t).data("color");w.hasClass(e)||w.removeClass("light-title dark-title").addClass(e)},slideChangeTransitionStart:function(){var t=this.activeIndex,e=this.slides.eq(t).data("color");w.removeClass("light-title dark-title").addClass(e)},slideChangeTransitionEnd:function(){this.slides.eq(this.previousIndex),this.slides.eq(this.activeIndex);o[this.previousIndex].timeScale(2).reverse(),o[this.activeIndex].timeScale(1).play()}}};I.activeSlider=new Swiper(this.selector,i)}},fsStyle6:{selector:".swiper-container.style6",getRandomGlitchParams:function(){return{seed:Math.round(3e3*Math.random()),quality:Math.floor(41*Math.random())+70,amount:Math.floor(75*Math.random())+15,iterations:8}},generateGlitchedImageData:function(t,e){for(var a=[],i=0;i<t;++i)a[i]=glitch(this.getRandomGlitchParams()).fromImage(e).toImage();return a[t]=e,Promise.all(a)},distortCanvas:function(e,t,a){var i=this,o=e.getContext("2d"),n=(j.outerWidth(),j.outerHeight(),1),s=new Image,l=[],r=0,d=!1,c=50;function p(){j.outerWidth()/j.outerHeight()<n?S(e).css({width:"auto",height:j.outerHeight()+"px"}):S(e).css({width:j.outerWidth()+"px",height:"auto"})}function h(){var t=0;d&&(l.length&&(++r>l.length-1?r=0:r+1===l.length&&(t=3e3)),M.requestAnimationFrame(function(){o.drawImage(l[r],0,0,e.width,e.height),setTimeout(h,1e3/c+t)}))}function u(){d=!0,h()}s.onload=function(){e.width=s.naturalWidth,e.height=s.naturalHeight,n=e.width/e.height,i.generateGlitchedImageData(5,s).then(function(t){t[5]=s,l=t,p(),u()})},s.src=e.getAttribute("data-image"),j.on("resize",function(){p()})},init:function(){var s=this,t=S(s.selector),e={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1e3,pagination:{el:".swiper-pagination",type:"footer_style2"===t.data("footer-style")?"bullets":"fraction",clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!1,autoplay:!!t.data("autoplay")&&{delay:t.data("autoplay")},direction:"vertical",keyboard:{enabled:!0},mousewheel:!0,on:{init:function(){var t=this,e=t.activeIndex,a=t.slides.eq(e).data("color"),i=S(".glitch",t.slides.eq(e)),o=S(".glitch-image",t.slides.eq(e)),n=i.data("image");setTimeout(function(){t.slides.eq(e).addClass("thb-animate-slide-text")},900),i.data("active")||(s.distortCanvas(i[0],n,o),i.data("active",1)),w.hasClass(a)||w.removeClass("light-title dark-title").addClass(a)},slideChangeTransitionStart:function(){var t=this.slides.eq(this.previousIndex),e=this.slides.eq(this.activeIndex).hasClass("light-title")?"light-title":"dark-title";t.removeClass("thb-animate-slide-text"),w.removeClass("light-title dark-title").addClass(e)},slideChangeTransitionEnd:function(){this.slides.eq(this.previousIndex);var t=this.slides.eq(this.activeIndex),e=S(".glitch",t),a=S(".glitch-image",t),i=e.data("image");setTimeout(function(){t.addClass("thb-animate-slide-text")},900),e.data("active")||(s.distortCanvas(e[0],i,a),e.data("active",1))}}};I.activeSlider=new Swiper(s.selector,e)}},fsStyle7:{selector:".swiper-container.style7",init:function(){var o=S(this.selector),n=S(".thb-borders"),s=!!n.length&&n.css("border-color"),t={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1500,pagination:{el:".swiper-pagination",type:"footer_style2"===o.data("footer-style")?"bullets":"fraction",clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!0,autoplay:!!o.data("autoplay")&&{delay:o.data("autoplay")},direction:"horizontal",keyboard:{enabled:!0},mousewheel:!0,parallax:!0,on:{init:function(){var t=this.activeIndex,e=this.slides.eq(t).data("color"),a=this.slides.eq(t).data("main-color");if(w.hasClass(e)||w.removeClass("light-title dark-title").addClass(e),n.length){var i=a||s;n.css("border-color",i)}o.find("h1").each(function(t,e){var a=S(e);a.css("font-size",Math.max(Math.min(a.width()/11,parseFloat("180px")),parseFloat("20px")))})},slideChangeTransitionStart:function(){var t=S(".swiper-slide-active").data("color"),e=S(".swiper-slide-active").data("main-color");if(w.removeClass("light-title dark-title").addClass(t),n.length){var a=e||s;n.css("border-color",a)}}}};I.activeSlider=new Swiper(this.selector,t)}},fsStyle8:{selector:".swiper-container.style8",init:function(){var t=S(this.selector),e={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1e3,pagination:{el:".swiper-pagination",type:"footer_style2"===t.data("footer-style")?"bullets":"fraction",clickable:!0,renderFraction:function(t,e){return'<span class="'+t+'"></span> - <span class="'+e+'"></span>'},renderBullet:function(t,e){return'<span class="'+e+'">'+(9<(a=t+1)?""+a:"0"+a)+"</span>";var a}},loop:!0,autoplay:!!t.data("autoplay")&&{delay:t.data("autoplay")},direction:"vertical",keyboard:{enabled:!0},mousewheel:!0,on:{init:function(){var t=this.activeIndex,e=this.slides.eq(t).data("color");w.hasClass(e)||w.removeClass("light-title dark-title").addClass(e)},slideChangeTransitionStart:function(){var t=this.activeIndex,e=this.slides.eq(t).data("color");w.removeClass("light-title dark-title").addClass(e)}}};I.activeSlider=new Swiper(this.selector,e)}},carousel:{selector:".swiper-container.carousel",init:function(){var t=this,e=S(t.selector),o=e.hasClass("thb_change_header"),n=S("div",".thb-swiper-pagination"),i=e.data("autoplay-speed")?e.data("autoplay-speed"):"5000",s=!!e.data("autoplay")&&{delay:i},a=e.find(".thb-preloader"),l=S(".columns",e).length,r=new TimelineMax({paused:!0}),d={navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},speed:1e3,pagination:{el:".thb-swiper-pagination",clickable:!0,bulletElement:"div",renderBullet:function(t,e){return'<div class="'+e+'"><span><span class="progress"></span></span><h6>'+S("[data-swiper-slide-index="+t+"]").data("title")+"</h6></div>"}},slideClass:"columns",slideActiveClass:"slide-active",loop:1<e.find(".type-portfolio").length,autoplay:s,slidesPerView:"auto",loopedSlides:l,keyboard:{enabled:!0},mousewheel:{forceToAxis:!0},on:{paginationRender:function(t,e){var a=s?parseInt(i/1e3,10):5;r.clear().to(S(".progress",e),a,{scaleX:1})},autoplayStart:function(){n&&this.autoplay.running&&r.play()},slideChangeTransitionStart:function(){var t=this.slides.eq(this.activeIndex).attr("data-swiper-slide-index"),e=S("[data-swiper-slide-index="+t+"]").hasClass("light-title"),a=e?"light-title":"dark-title",i=e?"light-pagination":"dark-pagination";this.$wrapperEl.removeClass("light-pagination dark-pagination").addClass(i),o&&w.removeClass("light-title").addClass(a),n&&this.autoplay.running&&r.pause().progress(0)},slideChangeTransitionEnd:function(){n&&this.autoplay.running&&(r.progress(0),r.restart())}}};if(a.length)e.imagesLoaded(function(){TweenMax.to(a,.25,{autoAlpha:0}),e.addClass("thb-loaded");new Swiper(t.selector,d)});else{e.addClass("thb-loaded");new Swiper(t.selector,d)}}},thb_3dImg:{selector:".thb_3dimg",init:function(t){var e=S(this.selector);(t?t.find(this.selector):e).thb_3dImg({scale:1.4,processExit:!1,sensitivity:1.2,threed:!0})}},showAll:{selector:".show-all.style1",init:function(){var t=S(this.selector),e=0,a=S(".curtains"),i=new TimelineMax({paused:!0,onReverseComplete:function(){if(a.length){var t=a.find("li").eq(e).data("position");TweenMax.to(j,2,{scrollTo:t,autoKill:!1})}else I.activeSlider.params.loop&&(e=jQuery(I.activeSlider.slides).filter("[data-swiper-slide-index="+e+"]").index()),I.activeSlider.slideTo(e)},onComplete:function(){j.trigger("resize")}}),o=S(".thb-show-all"),n=S("li>div",o);j.on("resize.show-all",function(){o.find("ul").css({width:n.length*n.eq(0).width()+"px"})}).trigger("resize.show-all"),i.timeScale(1).to(o,1,{autoAlpha:1}).staggerFromTo(n,.5,{y:"100%"},{y:"0%"},.1,"-=0.3"),t.on("click",function(){S(this);return i.play(),!1}),S(".thb-close").on("click",function(){return i.timeScale(1.6).reverse(),!1}),n.on("click",function(){e=S(this).parents("li").index(),i.timeScale(1.6).reverse()}),v.keyup(function(t){27===t.keyCode&&i.timeScale(1.6).reverse()})}},listPortfolio:{selector:".thb-list-portfolio",init:function(){var a=S(this.selector);a.each(function(){var t=S(this),n=t.data("zoom-effect"),s=t.find(".thb-content-side"),l=t.find(".portfolio-image"),r=t.find(".type-portfolio"),e=t.find(".thb-preloader");r.on("hover touchstart",function(){var t,e,a,i=S(this).index(),o=S(this).data("color");r.removeClass("active"),S(this).addClass("active"),s.hasClass(o)||s.removeClass("light-title dark-title").addClass(o),t=i,e=this,a=new TimelineMax,l.eq(t).is(":visible")||a.to(l.filter(":visible"),.5,{autoAlpha:0,scale:1,display:"none"},0).to(l.eq(t),.5,{autoAlpha:1,display:"block"},0),n&&a.add(TweenMax.to(l.eq(t),5,{scale:1.05})),e.animation=a}).eq(0).trigger("hover touchstart"),e.length?a.imagesLoaded({background:".portfolio-image"},function(){a.addClass("thb-loaded"),TweenMax.to(e,.25,{autoAlpha:0})}):(a.addClass("thb-loaded"),TweenMax.to(e,.25,{autoAlpha:0}))})}},rowPagination:{selector:".thb_row_pagination_on",init:function(){var t=S(".row.wpb_row:not(.vc_inner)"),e=w.hasClass("row_pagination_position-right")?"row_pagination_position-right":"",i=S('<ul class="thb_row_pagination '+e+'"/>'),a=w.hasClass("disable-row-offset-on")?0:S(".header").outerHeight(),o=1;i.appendTo('#wrapper div[role="main"]'),w.scrollspy({target:".thb_row_pagination",offset:a+b.outerHeight()+5}),t.each(function(){var t=S(this),e=t.attr("id"),a=t.data("row-title")?"<span>"+t.data("row-title")+"</span>":"";e||t.attr("id","thb_id_"+Math.random().toString(35).substr(2,7)),""!==a&&(w.hasClass("row_pagination_position-right")?S('<li href="#'+t.attr("id")+'">'+a+"<b>"+o+"</b></li>").appendTo(i):S('<li href="#'+t.attr("id")+'"><b>'+o+"</b>"+a+"</li>").appendTo(i),o++)}),w.scrollspy("refresh"),TweenMax.staggerTo(i.find("li"),.2,{delay:1,y:0,opacity:1},.1),i.on("click","li",function(){var t=S(this).attr("href"),e=w.hasClass("disable-row-offset-on")?0:S(".header").outerHeight();TweenMax.to(j,1,{scrollTo:{y:t,offsetY:e-1,autoKill:!1},ease:d})})}},sounds:{selector:"#wrapper",init:function(){var t=S("#music_toggle");if("on"===themeajax.sounds.music_sound&&("on"!==themeajax.sounds.music_sound_toggle_home||w.hasClass("home")))var e=new Howl({src:[themeajax.sounds.music_sound_file],preload:!0,loop:!0,volume:.5}).on("load",function(){e.play(),t.length&&(t.data("state","on").addClass("on"),t.on("click",function(){return t.toggleClass("on"),"on"===t.data("state")?(e.pause(),t.data("state","off")):(e.play(),t.data("state","on")),!1}))});if("on"===themeajax.sounds.menu_item_hover_sound){var a=new Howl({src:[themeajax.sounds.menu_item_hover_sound_file],preload:!0,volume:.5});S("a",y).add(".thb-full-menu a").on("hover",function(){a.play()})}if("on"===themeajax.sounds.click_sound){var i=new Howl({src:[themeajax.sounds.click_sound_file],preload:!0,volume:.3});S(document).on("click",function(){i.play()})}}},toTop:{selector:"#scroll_to_top",init:function(){var t=this;S(t.selector).on("click",function(){return TweenMax.to(j,1,{scrollTo:{y:0,autoKill:!1}}),!1}),j.scroll(_.debounce(function(){t.control()},20))},control:function(){var t=S(this.selector);100<j.scrollTop()?t.addClass("active"):t.removeClass("active")}},toBottom:{selector:".scroll-bottom",init:function(){S(this.selector).each(function(){var o=S(this);o.on("click",function(){if(I.fullPageEnabled)S.fn.fullpage.moveSectionDown();else{var t=o.parents(".post-gallery").length?o.parents(".post-gallery"):o.closest(".row"),e=t.outerHeight(),a=S(".header:not(.style3)").outerHeight(),i=t.offset().top+e-(w.hasClass("disable_header_fill-on")||w.hasClass("midnight_on")?0:a);TweenMax.to(j,1,{scrollTo:{y:i,autoKill:!1}})}return!1})})}},animation:{selector:".animation, .thb-counter, .thb-iconbox, .portfolio-title:not(.not-activated), .thb-fadetype",init:function(){var t=this,e=S(t.selector);S("#thb_fullscreen_rows").length||(t.control(e,!0),j.on("scroll.thb-animation",function(){t.control(e,!0)}).trigger("scroll.thb-animation"))},container:function(t){var e=S(this.selector,t);this.control(e,!1)},control:function(t,e){var a=0;(e?t.filter(":in-viewport"):t).each(function(){var t=S(this);t.hasClass("thb-iconbox")?I.iconbox.control(t,.3*a):t.hasClass("thb-counter")?I.counter.control(t,.3*a):t.hasClass("portfolio-title")?I.portfolioTitle.control(t,.3*a):t.hasClass("thb-fadetype")?I.fadeType.control(t,.3*a):void 0===t.data("thb-animated")&&(t.data("thb-animated",!0),TweenMax.to(t,.75,{autoAlpha:1,x:0,y:0,scale:1,delay:.3*a})),a++})}},portfolioFloat:{selector:".portfolio-floating-button",init:function(){var t=S(this.selector),e=t.find(".thb-toggle"),a=t.find(".header-content"),i=t.find(".custom_scroll"),o=new TimelineMax({paused:!0,onComplete:function(){i.update()}}),n=S(".header"),s=S(".thb-borders").css("border-top-width"),l=n.hasClass("style3")?30:n.outerHeight();j.on("resize",_.debounce(function(){t.css({marginTop:l+(S(".thb-borders").length?parseInt(s):0)+15})},30)).trigger("resize"),o.set(a,{display:"flex",autoAlpha:1}).from(a,1,{width:0,height:0,padding:0}).to(t.find(">div"),1,{autoAlpha:1}),e.on("click",function(t){return e.data("toggled")?(e.find(".hide-message").hide(),e.find(".show-message").css("display","inline-flex"),o.timeScale(1.5).reverse(),e.removeData("toggled")):(o.timeScale(1).restart(),e.find(".show-message").hide(),e.find(".hide-message").css("display","inline-flex"),e.data("toggled",!0)),t.preventDefault(),!1})}},fixedMe:{selector:".thb-fixed, .woocommerce-MyAccount-navigation",init:function(t){var e=t||S(this.selector),a=b?b.outerHeight():0;(e.parents(".sidebar").length||e.hasClass("woocommerce-MyAccount-navigation")||e.hasClass("header-offset"))&&(a+=S(".header").outerHeight()),C.mobile()||(e.each(function(){S(this).stick_in_parent({offset_top:a,spacer:".sticky-content-spacer",recalc_every:50})}),S(".post-content, .products, .product-images").imagesLoaded(function(){S(document.body).trigger("sticky_kit:recalc")}),j.on("resize",_.debounce(function(){S(document.body).trigger("sticky_kit:recalc")},30)))}},pswpGallery:{selector:".thb_gallery",init:function(t){var e=S(this.selector);S(".pswp").length||w.append('<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> <div class="pswp__bg"></div><div class="pswp__scroll-wrap"> <div class="pswp__container"> <div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div><div class="pswp__ui pswp__ui--hidden"> <div class="pswp__top-bar"> <div class="pswp__counter"></div><button class="pswp__button pswp__button--close" title="Close (Esc)"></button> <button class="pswp__button pswp__button--share" title="Share"></button> <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button> <div class="pswp__preloader"> <div class="pswp__preloader__icn"> <div class="pswp__preloader__cut"> <div class="pswp__preloader__donut"></div></div></div></div></div><div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"> <div class="pswp__share-tooltip"></div></div><button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"> </button> <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"> </button> <div class="pswp__caption"> <div class="pswp__caption__center"></div></div></div></div></div>'),e.each(function(t){var e=S(this),a=document.querySelectorAll(".pswp")[0],o=e.find("a[data-size]"),n=[],i={galleryUID:t,index:0,hideAnimationDuration:500,showAnimationDuration:500,fullscreenEl:!0,shareEl:!1,captionEl:!0,addCaptionHTMLFn:function(t,e,a){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)}};o.each(function(){var t=S(this),e=t.attr("href"),a=t.find("img").attr("src"),i=t.data("size").split("x"),o={msrc:a,src:e,title:t.attr("title"),w:parseInt(i[0],10),h:parseInt(i[1],10)};n.push(o)}),o.on("click",function(t){t.preventDefault();var e=S(this).parents(".thb_gallery").find("a[data-size]").index(S(this));i.index=e,i.getThumbBoundsFn=function(t){var e=o[t],a=M.pageYOffset||document.documentElement.scrollTop,i=e.getBoundingClientRect();return{x:i.left,y:i.top+a,w:i.width}},new PhotoSwipe(a,PhotoSwipeUI_Default,n,i).init()})})}},pswp:{selector:'[rel="magnific"]',init:function(t){var e=S(this.selector),r={index:0,hideAnimationDuration:500,showAnimationDuration:500,fullscreenEl:!0,shareEl:!1,captionEl:!0,addCaptionHTMLFn:function(t,e,a){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)}};S(".pswp").length||w.append('<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> <div class="pswp__bg"></div><div class="pswp__scroll-wrap"> <div class="pswp__container"> <div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div><div class="pswp__ui pswp__ui--hidden"> <div class="pswp__top-bar"> <div class="pswp__counter"></div><button class="pswp__button pswp__button--close" title="Close (Esc)"></button> <button class="pswp__button pswp__button--share" title="Share"></button> <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button> <div class="pswp__preloader"> <div class="pswp__preloader__icn"> <div class="pswp__preloader__cut"> <div class="pswp__preloader__donut"></div></div></div></div></div><div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"> <div class="pswp__share-tooltip"></div></div><button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"> </button> <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"> </button> <div class="pswp__caption"> <div class="pswp__caption__center"></div></div></div></div></div>'),e.on("click",function(t){var o=S(this),e=document.querySelectorAll(".pswp")[0],a=o.attr("href"),i=o.find("img"),n=i.attr("src"),s=!!o.data("size")&&o.data("size").split("x"),l=[{msrc:n,src:a,title:o.attr("title")}];return l[0].h=s?(l[0].w=parseInt(s[0],10),parseInt(s[1],10)):(l[0].w=i.attr("width"),i.attr("height")),r.getThumbBoundsFn=function(t){var e=o[0],a=M.pageYOffset||document.documentElement.scrollTop,i=e.getBoundingClientRect();return{x:i.left,y:i.top+a,w:i.width}},new PhotoSwipe(e,PhotoSwipeUI_Default,l,r).init(),!1})}},portfolioTitle:{selector:".portfolio-title",tl:!1,control:function(t,e,a){if((void 0===t.data("thb-in-viewport")||a)&&"on"===themeajax.settings.portfolio_title_animation){t.data("thb-in-viewport",!0);var i=t.find(".entry-title"),o=t.find("h4"),n=t.find("p"),s=t.find(".attribute"),l=new SplitText(i,{type:"lines"}),r=!!o.length&&new SplitText(o,{type:"lines"}),d=!!n.length&&new SplitText(n,{type:"lines"}),c=S(l.lines).add(!!r&&S(r.lines)).add(!!d&&S(d.lines)).add(s);if(this.tl=new TimelineMax({paused:!0}),this.tl.set(t,{display:"block",autoAlpha:1}).staggerFrom(c,.75,{autoAlpha:0,delay:e,y:20},.2,"+=0",function(){l.revert(),n.length&&j.one("resize",function(){d.revert()}),o.length&&j.one("resize",function(){r.revert()})}),a)return this.tl;this.tl.play()}}},style6hover:{selector:".type-portfolio.style6",start:function(){var t=S(this.selector),s=(b.outerHeight(),S(".portfolio-hover-content"));s.length&&t.each(function(){var i,o,n=S(this),t=n.find(".style6-box"),e=t.data("id");n.hoverIntent(function(){s.addClass("active"),t.imagesLoaded(function(){s.data("active-box")!==e&&(s.find(".thb-replace").html(t.html()),s.data("active-box",e)),s.addClass("loaded"),i=s.outerWidth(),o=s.outerHeight()})},function(){s.removeClass("active loaded")}),n.data("binded")||n.bind("mousemove",function(t){n.data("binded",1);n.offset();var e=t.clientX+i+40>j.outerWidth()?t.clientX-i-40:t.clientX+40,a=t.clientY+o/2>j.outerHeight()?t.clientY-Math.abs(t.clientY+o-j.outerHeight()):t.clientY-o/2;a<0&&(a=0),e<0&&(e=0),TweenMax.set(s,{x:e,y:a,force3D:!0})})})}},autoType:{selector:".thb-autotype",init:function(){S(this.selector).each(function(){var t=S(this).find(".thb-autotype-entry"),e=t.data("strings"),a=t.data("speed")?t.data("speed"):50,i=!!t.data("thb-loop")&&t.data("thb-loop");new Typed(t[0],{strings:e,loop:i,contentType:"html",typeSpeed:a,backDelay:1e3})})}},fadeType:{selector:".thb-fadetype",control:function(t,e,a){if(void 0===t.data("thb-in-viewport")||a){t.data("thb-in-viewport",!0);var i=new SplitText(t.find(".thb-fadetype-entry"));(new TimelineMax).set(t,{visibility:"visible"}).staggerFrom(i.chars,1,{autoAlpha:0,delay:e},.05,"+=0",function(){i.revert()})}}},keyNavigation:{selector:".portfolio_nav",init:function(){var e=S(this.selector),t=function(t){78===t.keyCode&&e.find(".post_nav_link.next").length&&e.find(".post_nav_link.next")[0].click(),80===t.keyCode&&e.find(".post_nav_link.prev").length&&e.find(".post_nav_link.prev")[0].click()};v.bind("keyup",t),S("input, textarea").on("focus",function(){v.unbind("keyup",t)}),S("input, textarea").on("blur",function(){v.bind("keyup",t)})}},counter:{selector:".thb-counter",control:function(t,e){if(void 0===t.data("thb-in-viewport")){t.data("thb-in-viewport",!0);var a=t,i=a.find(".h1")[0],o=a.find(".h1").data("count"),n=a.find(".h1").data("speed"),s=a.find("svg"),l=s.find("path, circle, rect, ellipse"),r=new Odometer({el:i,value:0,duration:n,theme:"minimal"}),d=new TimelineMax({paused:!0});d.set(a,{visibility:"visible"}).set(s,{display:"block"}).staggerFrom(l,n/2e3,{drawSVG:"0%"},n/1e4,"s"),setTimeout(function(){d.play(),r.update(o)},e)}}},iconbox:{selector:".thb-iconbox",control:function(t,e){if(void 0===t.data("thb-in-viewport")&&!t.hasClass("animation-off")){t.data("thb-in-viewport",!0);var a=t,i=""!==a.data("animation_speed")?a.data("animation_speed"):"1.5",o=a.find("svg"),n=a.find("img"),s=o.find("path, circle, rect, ellipse"),l=a.find("h5"),r=a.find("p"),d=!!r.length&&new SplitText(r,{type:"lines"}),c=new TimelineMax({delay:e,paused:!0,onComplete:function(){r.length&&d.revert()}}),p=l.add(!!d&&S(d.lines)).add(n);c.set(a,{visibility:"visible"}).set(o,{display:"block"}).staggerFrom(s,i,{drawSVG:"0%"},.2,"s").staggerFrom(p,i/2,{autoAlpha:0,y:"20px"},.1,"s+="+i/2),c.play()}}},contact:{selector:".contact_map:not(.disabled)",init:function(){var g=this;S(g.selector).each(function(){var p,t=S(this),e=t.data("map-zoom"),a=t.data("map-style"),i=t.data("map-type"),o=t.data("pan-control"),n=t.data("zoom-control"),s=t.data("maptype-control"),l=t.data("scale-control"),r=t.data("streetview-control"),h=t.find(".thb-location"),u=new google.maps.LatLngBounds,d={styles:a,zoom:e,draggable:!("ontouchend"in document),scrollwheel:!1,panControl:o,zoomControl:n,mapTypeControl:s,scaleControl:l,streetViewControl:r,mapTypeId:i},f=new google.maps.Map(t[0],d);f.addListener("tilesloaded",function(){p||(h.each(function(t){var e=S(this).data("option"),a=e.latitude,i=e.longitude,o=new google.maps.LatLng(a,i),n=e.marker_image,s=e.marker_size,l=e.retina_marker,r=e.marker_title,d=e.marker_description,c=new Image;u.extend(o),c.src=n,S(c).on("load",function(){g.setMarkers(t,h.length,f,a,i,n,s,r,d,l)}),p=!0}),0<e?(f.setCenter(u.getCenter()),f.setZoom(e)):(f.setCenter(u.getCenter()),f.fitBounds(u)))}),j.on("resize.google_map",_.debounce(function(){f.setCenter(u.getCenter())},50)).trigger("resize.google_map")})},setMarkers:function(t,e,n,s,l,r,d,c,p,h){setTimeout(function(t){var e=r.toLowerCase().split(".");e=e[e.length-1],(S.inArray(e,["svg"])||h)&&(r=new google.maps.MarkerImage(r,null,null,null,new google.maps.Size(d[0]/2,d[1]/2)));var a=new google.maps.Marker({position:new google.maps.LatLng(s,l),map:n,animation:google.maps.Animation.DROP,icon:r,optimized:!1}),i="<h3>"+c+"</h3><div>"+p+"</div>",o=new google.maps.InfoWindow({content:i});a.addListener("click",function(){o.open(n,a)})},250*t,t)}},ajaxAddToCart:{selector:".add_to_cart_button",init:function(){S(this.selector);w.on("added_to_cart",function(t,e,a,i){i.find(".thb_button_icon").html(themeajax.l10n.added_svg),i.find("span").text(themeajax.l10n.added)})}},variations:{selector:"form.variations_form",init:function(){var t=S(this.selector),a=S("#product-images"),i=S("#product-thumbnails"),o=".woocommerce-product-gallery__image:first-of-type img",e=S(o,a).attr("src"),n=S(o,i).attr("src"),s=S("p.price",".product-information").eq(0),l=s.html();t.on("show_variation",function(t,e){s.html(e.price_html),e.hasOwnProperty("image")&&e.image.src&&(S(o,a).attr("src",e.image.src).attr("srcset",""),S(o,i).attr("src",e.image.thumb_src).attr("srcset",""),a.hasClass("slick-initialized")&&a.slick("slickGoTo",0))}).on("reset_image",function(){s.html(l),S(o,a).attr("src",e).attr("srcset",""),S(o,i).attr("src",n).attr("srcset","")})}},footerUnfold:{selector:".fixed-footer-container",init:function(){var t=this,e=S(t.selector);t.run(e),j.on("resize",_.debounce(function(){t.run(e)},50))},run:function(t){var e;t.imagesLoaded({background:!0},function(){e=t.outerHeight(),w.css("padding-bottom",e)})}},wooWidgets:{selector:".widget.woo",init:function(){var t=S(this.selector);S(".thb-demo-holder");S("h6",t).on("click",function(){return S(this).parents(".widget").toggleClass("active"),!1})}},demoSwitcher:{selector:"#toggle-demos",init:function(){var t=S(this.selector),e=S(".thb-demo-holder");t.on("click",function(){return t.data("toggled")?(t.data("toggled",!1),TweenMax.to(e,.5,{autoAlpha:0})):(t.data("toggled",!0),TweenMax.to(e,.5,{autoAlpha:1})),!1}),e.find("svg").on("click",function(){t.data("toggled",!1),TweenMax.to(e,.5,{autoAlpha:0})})}}},v.ready(function(){S("#vc_inline-anchor").length?j.on("vc_reload",function(){I.init()}):I.init()})}(jQuery,this);
(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&6<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})();
(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return 1170<screen_w?"desktop_wide":960<screen_w&&1169>screen_w?"desktop":768<screen_w&&959>screen_w?"tablet":300<screen_w&&767>screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){"loaded"!==script.readyState&&"complete"!==script.readyState||(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('<div class="vc_video-bg vc_hidden-xs"><div class="inner"></div></div>').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i<prefix.length;i++)prefix[i]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")}(),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function($parent){($parent?$parent.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var this_element=jQuery(this),sliderTimeout=1e3*parseInt(this_element.attr("data-interval")),sliderFx=this_element.attr("data-flex_fx"),slideshow=!0;0===sliderTimeout&&(slideshow=!1),this_element.is(":visible")&&this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:800,smoothHeight:!0})})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){0<jQuery(".wpb_googleplus").length&&function(){var po=document.createElement("script");po.type="text/javascript",po.async=!0,po.src="//apis.google.com/js/plusone.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po,s)}()}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){0<jQuery(".wpb_pinterest").length&&function(){var po=document.createElement("script");po.type="text/javascript",po.async=!0,po.src="//assets.pinterest.com/js/pinit.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po,s)}()}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.waypoint&&jQuery(".vc_progress_bar").waypoint(function(){jQuery(this).find(".vc_single_bar").each(function(index){var $this=jQuery(this),bar=$this.find(".vc_bar"),val=bar.data("percentage-value");setTimeout(function(){bar.css({width:val+"%"})},200*index)})},{offset:"85%"})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.waypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").waypoint(function(){jQuery(this).addClass("wpb_start_animation animated")},{offset:"85%"})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function($el){function event(e){e&&e.preventDefault&&e.preventDefault();var title=jQuery(this),element=title.closest(".vc_toggle"),content=element.find(".vc_toggle_content");element.hasClass("vc_toggle_active")?content.slideUp({duration:300,complete:function(){element.removeClass("vc_toggle_active")}}):content.slideDown({duration:300,complete:function(){element.addClass("vc_toggle_active")}})}$el?$el.hasClass("vc_toggle_title")?$el.unbind("click").click(event):$el.find(".vc_toggle_title").unbind("click").click(event):jQuery(".vc_toggle_title").unbind("click").on("click",event)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function($tab){if(jQuery.ui){var $call=$tab||jQuery(".wpb_tabs, .wpb_tour"),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",old_version=1===parseInt(ver[0])&&9>parseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&0<interval)try{$tabs.tabs("rotate",1e3*interval)}catch(e){window.console&&window.console.log&&console.log(e)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").click(function(e){return e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").click(function(e){if(e.preventDefault(),old_version){var index=$tabs.tabs("option","selected");jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,0>index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt($this.data("active-tab"))&&parseInt($this.data("active-tab"))-1),collapsible=!1===active_tab||"yes"===$this.data("collapsible");$tabs=$this.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1");var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){location.href.indexOf("#!prettyPhoto")>-1&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width})}}),$(document).trigger("vc-full-width-row",$elements)}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,offsetTop<windowHeight&&(fullHeight=100-offsetTop/(windowHeight/100),$element.css("min-height",fullHeight+"vh"))}$(document).trigger("vc-full-height-row",$element)}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),function(){(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')})}(),vc_initVideoBackgrounds(),function(){var vcSkrollrOptions,callSkrollInit=!1;window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),!(!callSkrollInit||!window.skrollr)&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll)}()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()});
/*!
 * imagesLoaded PACKAGED v3.1.8
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
/*!
 * Isotope PACKAGED v2.0.0
 * Filter & sort magical layouts
 * http://isotope.metafizzy.co
 */
(function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function n(e,i){t.fn[e]=function(n){if("string"==typeof n){for(var s=o.call(arguments,1),a=0,u=this.length;u>a;a++){var p=this[a],h=t.data(p,e);if(h)if(t.isFunction(h[n])&&"_"!==n.charAt(0)){var f=h[n].apply(h,s);if(void 0!==f)return f}else r("no such method '"+n+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+n+"'")}return this}return this.each(function(){var o=t.data(this,e);o?(o.option(n),o._init()):(o=new i(this,n),t.data(this,e,o))})}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),n(t,e)},t.bridget}}var o=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i(t.jQuery)})(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,o=function(){};i.addEventListener?o=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(o=function(t,i,o){t[i+o]=o.handleEvent?function(){var i=e(t);o.handleEvent.call(o,i)}:function(){var i=e(t);o.call(t,i)},t.attachEvent("on"+i,t[i+o])});var n=function(){};i.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(o){t[e+i]=void 0}});var r={bind:o,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(this),function(t){function e(t){"function"==typeof t&&(e.isReady?t():r.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==n.readyState;if(!e.isReady&&!i){e.isReady=!0;for(var o=0,s=r.length;s>o;o++){var a=r[o];a()}}}function o(o){return o.bind(n,"DOMContentLoaded",i),o.bind(n,"readystatechange",i),o.bind(t,"load",i),e}var n=t.document,r=[];e.isReady=!1,"function"==typeof define&&define.amd?(e.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],o)):t.docReady=o(t.eventie)}(this),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var o=t.prototype,n=this,r=n.EventEmitter;o.getListeners=function(t){var e,i,o=this._getEvents();if(t instanceof RegExp){e={};for(i in o)o.hasOwnProperty(i)&&t.test(i)&&(e[i]=o[i])}else e=o[t]||(o[t]=[]);return e},o.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},o.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},o.addListener=function(t,i){var o,n=this.getListenersAsObject(t),r="object"==typeof i;for(o in n)n.hasOwnProperty(o)&&-1===e(n[o],i)&&n[o].push(r?i:{listener:i,once:!1});return this},o.on=i("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=i("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,i){var o,n,r=this.getListenersAsObject(t);for(n in r)r.hasOwnProperty(n)&&(o=e(r[n],i),-1!==o&&r[n].splice(o,1));return this},o.off=i("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,i){var o,n,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(o=i.length;o--;)r.call(this,e,i[o]);else for(o in e)e.hasOwnProperty(o)&&(n=e[o])&&("function"==typeof n?r.call(this,o,n):s.call(this,o,n));return this},o.removeEvent=function(t){var e,i=typeof t,o=this._getEvents();if("string"===i)delete o[t];else if(t instanceof RegExp)for(e in o)o.hasOwnProperty(e)&&t.test(e)&&delete o[e];else delete this._events;return this},o.removeAllListeners=i("removeEvent"),o.emitEvent=function(t,e){var i,o,n,r,s=this.getListenersAsObject(t);for(n in s)if(s.hasOwnProperty(n))for(o=s[n].length;o--;)i=s[n][o],i.once===!0&&this.removeListener(t,i.listener),r=i.listener.apply(this,e||[]),r===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},o.trigger=i("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},o._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=r,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof o[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,n=0,r=i.length;r>n;n++)if(e=i[n]+t,"string"==typeof o[e])return e}}var i="Webkit Moz ms Ms O".split(" "),o=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=s.length;i>e;e++){var o=s[e];t[o]=0}return t}function o(t){function o(t){if("string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var o=r(t);if("none"===o.display)return i();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var h=n.isBorderBox=!(!p||!o[p]||"border-box"!==o[p]),f=0,c=s.length;c>f;f++){var d=s[f],l=o[d];l=a(t,l);var y=parseFloat(l);n[d]=isNaN(y)?0:y}var m=n.paddingLeft+n.paddingRight,g=n.paddingTop+n.paddingBottom,v=n.marginLeft+n.marginRight,_=n.marginTop+n.marginBottom,I=n.borderLeftWidth+n.borderRightWidth,L=n.borderTopWidth+n.borderBottomWidth,z=h&&u,S=e(o.width);S!==!1&&(n.width=S+(z?0:m+I));var b=e(o.height);return b!==!1&&(n.height=b+(z?0:g+L)),n.innerWidth=n.width-(m+I),n.innerHeight=n.height-(g+L),n.outerWidth=n.width+v,n.outerHeight=n.height+_,n}}function a(t,e){if(n||-1===e.indexOf("%"))return e;var i=t.style,o=i.left,r=t.runtimeStyle,s=r&&r.left;return s&&(r.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=o,s&&(r.left=s),e}var u,p=t("boxSizing");return function(){if(p){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[p]="border-box";var i=document.body||document.documentElement;i.appendChild(t);var o=r(t);u=200===e(o.width),i.removeChild(t)}}(),o}var n=t.getComputedStyle,r=n?function(t){return n(t,null)}:function(t){return t.currentStyle},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],o):"object"==typeof exports?module.exports=o(require("get-style-property")):t.getSize=o(t.getStyleProperty)}(window),function(t,e){function i(t,e){return t[a](e)}function o(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function n(t,e){o(t);for(var i=t.parentNode.querySelectorAll(e),n=0,r=i.length;r>n;n++)if(i[n]===t)return!0;return!1}function r(t,e){return o(t),i(t,e)}var s,a=function(){if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0,o=t.length;o>i;i++){var n=t[i],r=n+"MatchesSelector";if(e[r])return r}}();if(a){var u=document.createElement("div"),p=i(u,"div");s=p?i:r}else s=n;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return s}):window.matchesSelector=s}(this,Element.prototype),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){for(var e in t)return!1;return e=null,!0}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function n(t,n,r){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=r("transition"),p=r("transform"),h=u&&p,f=!!r("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[u],d=["transform","transition","transitionDuration","transitionProperty"],l=function(){for(var t={},e=0,i=d.length;i>e;e++){var o=d[e],n=r(o);n&&n!==o&&(t[o]=n)}return t}();e(a.prototype,t.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=n(this.element)},a.prototype.css=function(t){var e=this.element.style;for(var i in t){var o=l[i]||i;e[o]=t[i]}},a.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,o=e.isOriginTop,n=parseInt(t[i?"left":"right"],10),r=parseInt(t[o?"top":"bottom"],10);n=isNaN(n)?0:n,r=isNaN(r)?0:r;var a=this.layout.size;n-=i?a.paddingLeft:a.paddingRight,r-=o?a.paddingTop:a.paddingBottom,this.position.x=n,this.position.y=r},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var y=f?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=parseInt(t,10),r=parseInt(e,10),s=n===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return this.layoutPosition(),void 0;var a=t-i,u=e-o,p={},h=this.layout.options;a=h.isOriginLeft?a:-a,u=h.isOriginTop?u:-u,p.transform=y(a,u),this.transition({to:p,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=h?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(t),void 0;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);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var m=p&&o(p)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:m,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},a.prototype.transition=a.prototype[u?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(c,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(v)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},a.prototype.remove=function(){if(!u||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}var r=t.getComputedStyle,s=r?function(t){return r(t,null)}:function(t){return t.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],n):(t.Outlayer={},t.Outlayer.Item=n(t.EventEmitter,t.getSize,t.getStyleProperty))}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===f.call(t)}function o(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var o=0,n=t.length;n>o;o++)e.push(t[o]);else e.push(t);return e}function n(t,e){var i=d(e,t);-1!==i&&e.splice(i,1)}function r(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}function s(i,s,f,d,l,y){function m(t,i){if("string"==typeof t&&(t=a.querySelector(t)),!t||!c(t))return u&&u.error("Bad "+this.constructor.namespace+" element: "+t),void 0;this.element=t,this.options=e({},this.constructor.defaults),this.option(i);var o=++g;this.element.outlayerGUID=o,v[o]=this,this._create(),this.options.isInitLayout&&this.layout()}var g=0,v={};return m.namespace="outlayer",m.Item=y,m.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e(m.prototype,f.prototype),m.prototype.option=function(t){e(this.options,t)},m.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},m.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},m.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0,r=e.length;r>n;n++){var s=e[n],a=new i(s,this);o.push(a)}return o},m.prototype._filterFindItemElements=function(t){t=o(t);for(var e=this.options.itemSelector,i=[],n=0,r=t.length;r>n;n++){var s=t[n];if(c(s))if(e){l(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),u=0,p=a.length;p>u;u++)i.push(a[u])}else i.push(s)}return i},m.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},m.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},m.prototype._init=m.prototype.layout,m.prototype._resetLayout=function(){this.getSize()},m.prototype.getSize=function(){this.size=d(this.element)},m.prototype._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):c(o)&&(i=o),this[t]=i?d(i)[e]:o):this[t]=0},m.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},m.prototype._getItemsForLayout=function(t){for(var e=[],i=0,o=t.length;o>i;i++){var n=t[i];n.isIgnored||e.push(n)}return e},m.prototype._layoutItems=function(t,e){function i(){o.emitEvent("layoutComplete",[o,t])}var o=this;if(!t||!t.length)return i(),void 0;this._itemsOn(t,"layout",i);for(var n=[],r=0,s=t.length;s>r;r++){var a=t[r],u=this._getItemLayoutPosition(a);u.item=a,u.isInstant=e||a.isLayoutInstant,n.push(u)}this._processLayoutQueue(n)},m.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},m.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var o=t[e];this._positionItem(o.item,o.x,o.y,o.isInstant)}},m.prototype._positionItem=function(t,e,i,o){o?t.goTo(e,i):t.moveTo(e,i)},m.prototype._postLayout=function(){this.resizeContainer()},m.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},m.prototype._getContainerSize=h,m.prototype._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"}},m.prototype._itemsOn=function(t,e,i){function o(){return n++,n===r&&i.call(s),!0}for(var n=0,r=t.length,s=this,a=0,u=t.length;u>a;a++){var p=t[a];p.on(e,o)}},m.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},m.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},m.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var o=t[e];this.ignore(o)}}},m.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var o=t[e];n(o,this.stamps),this.unignore(o)}},m.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o(t)):void 0},m.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},m.prototype._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)}},m.prototype._manageStamp=h,m.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=d(t),n={left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom};return n},m.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},m.prototype.bindResize=function(){this.isResizeBound||(i.bind(t,"resize",this),this.isResizeBound=!0)},m.prototype.unbindResize=function(){this.isResizeBound&&i.unbind(t,"resize",this),this.isResizeBound=!1},m.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},m.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},m.prototype.needsResizeLayout=function(){var t=d(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},m.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},m.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},m.prototype.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)}},m.prototype.reveal=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var o=t[i];o.reveal()}},m.prototype.hide=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var o=t[i];o.hide()}},m.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var o=this.items[e];if(o.element===t)return o}},m.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,o=t.length;o>i;i++){var n=t[i],r=this.getItem(n);r&&e.push(r)}return e}},m.prototype.remove=function(t){t=o(t);var e=this.getItems(t);if(e&&e.length){this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,r=e.length;r>i;i++){var s=e[i];s.remove(),n(s,this.items)}}},m.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var o=this.items[e];o.destroy()}this.unbindResize(),delete this.element.outlayerGUID,p&&p.removeData(this.element,this.constructor.namespace)},m.data=function(t){var e=t&&t.outlayerGUID;return e&&v[e]},m.create=function(t,i){function o(){m.apply(this,arguments)}return Object.create?o.prototype=Object.create(m.prototype):e(o.prototype,m.prototype),o.prototype.constructor=o,o.defaults=e({},m.defaults),e(o.defaults,i),o.prototype.settings={},o.namespace=t,o.data=m.data,o.Item=function(){y.apply(this,arguments)},o.Item.prototype=new y,s(function(){for(var e=r(t),i=a.querySelectorAll(".js-"+e),n="data-"+e+"-options",s=0,h=i.length;h>s;s++){var f,c=i[s],d=c.getAttribute(n);try{f=d&&JSON.parse(d)}catch(l){u&&u.error("Error parsing "+n+" on "+c.nodeName.toLowerCase()+(c.id?"#"+c.id:"")+": "+l);continue}var y=new o(c,f);p&&p.data(c,t,y)}}),p&&p.bridget&&p.bridget(t,o),o},m.Item=y,m}var a=t.document,u=t.console,p=t.jQuery,h=function(){},f=Object.prototype.toString,c="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},d=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],s):t.Outlayer=s(t.eventie,t.docReady,t.EventEmitter,t.getSize,t.matchesSelector,t.Outlayer.Item)}(window),function(t){function e(t){function e(){t.Item.apply(this,arguments)}return e.prototype=new t.Item,e.prototype._create=function(){this.id=this.layout.itemGUID++,t.Item.prototype._create.call(this),this.sortData={}},e.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}},e}"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window),function(t){function e(t,e){function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}return function(){function t(t){return function(){return e.prototype[t].apply(this.isotope,arguments)}}for(var o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,r=o.length;r>n;n++){var s=o[n];i.prototype[s]=t(s)}}(),i.prototype.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!==this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},i.prototype.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=new i,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window),function(t){function e(t,e){var o=t.create("masonry");return o.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},o.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},o.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},o.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,o=e&&1>e?"round":"ceil",n=Math[o](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this._getColGroup(n),s=Math.min.apply(Math,r),a=i(r,s),u={x:this.columnWidth*a,y:s},p=s+t.size.outerHeight,h=this.cols+1-r.length,f=0;h>f;f++)this.colYs[a+f]=p;return u},o.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;i>o;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},o.prototype._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this.options.isOriginLeft?o.left:o.right,r=n+i.outerWidth,s=Math.floor(n/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=(this.options.isOriginTop?o.top:o.bottom)+i.outerHeight,p=s;a>=p;p++)this.colYs[p]=Math.max(u,this.colYs[p])},o.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},o.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},o}var i=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++){var n=t[i];if(n===e)return i}return-1};"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):t.Masonry=e(t.Outlayer,t.getSize)}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t,i){var o=t.create("masonry"),n=o.prototype._getElementOffset,r=o.prototype.layout,s=o.prototype._getMeasurement;e(o.prototype,i.prototype),o.prototype._getElementOffset=n,o.prototype.layout=r,o.prototype._getMeasurement=s;var a=o.prototype.measureColumns;o.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var u=o.prototype._manageStamp;return o.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,u.apply(this,arguments)},o}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],i):i(t.Isotope.LayoutMode,t.Masonry)}(window),function(t){function e(t){var e=t.create("fitRows");return e.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0},e.prototype._getItemLayoutPosition=function(t){t.getSize(),0!==this.x&&t.size.outerWidth+this.x>this.isotope.size.innerWidth&&(this.x=0,this.y=this.maxY);var e={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=t.size.outerWidth,e},e.prototype._getContainerSize=function(){return{height:this.maxY}},e}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):e(t.Isotope.LayoutMode)}(window),function(t){function e(t){var e=t.create("vertical",{horizontalAlignment:0});return e.prototype._resetLayout=function(){this.y=0},e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e.prototype._getContainerSize=function(){return{height:this.y}},e}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):e(t.Isotope.LayoutMode)}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===h.call(t)}function o(t){var e=[];if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var o=0,n=t.length;n>o;o++)e.push(t[o]);else e.push(t);return e}function n(t,e){var i=f(e,t);-1!==i&&e.splice(i,1)}function r(t,i,r,u,h){function f(t,e){return function(i,o){for(var n=0,r=t.length;r>n;n++){var s=t[n],a=i.sortData[s],u=o.sortData[s];if(a>u||u>a){var p=void 0!==e[s]?e[s]:e,h=p?1:-1;return(a>u?1:-1)*h}}return 0}}var c=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=u,c.LayoutMode=h,c.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var e in h.modes)this._initLayoutMode(e)},c.prototype.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},c.prototype._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),i=0,o=e.length;o>i;i++){var n=e[i];n.id=this.itemGUID++}return this._updateItemsSortData(e),e},c.prototype._initLayoutMode=function(t){var i=h.modes[t],o=this.options[t]||{};this.options[t]=i.options?e(i.options,o):o,this.modes[t]=new i(this)},c.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?(this.arrange(),void 0):(this._layout(),void 0)},c.prototype._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},c.prototype.arrange=function(t){this.option(t),this._getIsInstant(),this.filteredItems=this._filter(this.items),this._sort(),this._layout()},c.prototype._init=c.prototype.arrange,c.prototype._getIsInstant=function(){var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=t,t},c.prototype._filter=function(t){function e(){f.reveal(n),f.hide(r)}var i=this.options.filter;i=i||"*";for(var o=[],n=[],r=[],s=this._getFilterTest(i),a=0,u=t.length;u>a;a++){var p=t[a];if(!p.isIgnored){var h=s(p);h&&o.push(p),h&&p.isHidden?n.push(p):h||p.isHidden||r.push(p)}}var f=this;return this._isInstant?this._noTransition(e):e(),o},c.prototype._getFilterTest=function(t){return s&&this.options.isJQueryFiltering?function(e){return s(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return r(e.element,t)}},c.prototype.updateSortData=function(t){this._getSorters(),t=o(t);var e=this.getItems(t);e=e.length?e:this.items,this._updateItemsSortData(e)
},c.prototype._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=d(i)}},c.prototype._updateItemsSortData=function(t){for(var e=0,i=t.length;i>e;e++){var o=t[e];o.updateSortData()}};var d=function(){function t(t){if("string"!=typeof t)return t;var i=a(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),r=n&&n[1],s=e(r,o),u=c.sortDataParsers[i[1]];return t=u?function(t){return t&&u(s(t))}:function(t){return t&&s(t)}}function e(t,e){var i;return i=t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&p(i)}}return t}();c.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},c.prototype._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=f(e,this.options.sortAscending);this.filteredItems.sort(i),t!==this.sortHistory[0]&&this.sortHistory.unshift(t)}},c.prototype._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw Error("No layout mode: "+t);return e.options=this.options[t],e},c.prototype._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},c.prototype._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},c.prototype._manageStamp=function(t){this._mode()._manageStamp(t)},c.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},c.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.prototype.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},c.prototype.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();var o=this._filterRevealAdded(e);this.layoutItems(i),this.filteredItems=o.concat(this.filteredItems)}},c.prototype._filterRevealAdded=function(t){var e=this._noTransition(function(){return this._filter(t)});return this.layoutItems(e,!0),this.reveal(e),t},c.prototype.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;n>i;i++)o=e[i],this.element.appendChild(o.element);var r=this._filter(e);for(this._noTransition(function(){this.hide(r)}),i=0;n>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;n>i;i++)delete e[i].isLayoutInstant;this.reveal(r)}};var l=c.prototype.remove;return c.prototype.remove=function(t){t=o(t);var e=this.getItems(t);if(l.call(this,t),e&&e.length)for(var i=0,r=e.length;r>i;i++){var s=e[i];n(s,this.filteredItems)}},c.prototype._noTransition=function(t){var e=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.call(this);return this.options.transitionDuration=e,i},c}var s=t.jQuery,a=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=document.documentElement,p=u.textContent?function(t){return t.textContent}:function(t){return t.innerText},h=Object.prototype.toString,f=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],r):t.Isotope=r(t.Outlayer,t.getSize,t.matchesSelector,t.Isotope.Item,t.Isotope.LayoutMode)}(window);
!function($){function getHashtag(){var url=location.href;return hashtag=-1!==url.indexOf("#prettyPhoto")&&decodeURI(url.substring(url.indexOf("#prettyPhoto")+1,url.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function setHashtag(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function clearHashtag(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function getParam(name,url){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regexS="[\\?&]"+name+"=([^&#]*)",regex=new RegExp(regexS),results=regex.exec(url);return null==results?"":results[1]}$.prettyPhoto={version:"3.1.6"};var options=$.prettyPhoto.options={hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder" {vc-data}> \t\t\t\t\t\t<div class="ppt">&nbsp;</div> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"></div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand</a> \t\t\t\t\t\t\t\t\t\t<div class="pp_hoverContainer"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next</a> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"></div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details"> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0</p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"></p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_social">{pp_social}</div> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_close" href="#">Close</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t<div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t<div> \t\t\t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t</ul> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t</div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'};$.fn.prettyPhoto=function(pp_settings){function _showContent(){$(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(windowHeight/2-pp_dimensions.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:pp_dimensions.contentHeight,width:pp_dimensions.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:windowWidth/2-pp_dimensions.containerWidth/2<0?0:windowWidth/2-pp_dimensions.containerWidth/2,width:pp_dimensions.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(pp_dimensions.height).width(pp_dimensions.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==_getFileType(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(pp_dimensions.resized?$("a.pp_expand,a.pp_contract").show():$("a.pp_expand").hide()),!settings.autoplay_slideshow||pp_slideshow||pp_open||$.prettyPhoto.startSlideshow(),settings.changepicturecallback(),pp_open=!0}),_insert_gallery(),pp_settings.ajaxcallback()}function _hideContent(callback){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){$(".pp_loaderIcon").show(),callback()})}function _checkPosition(setCount){setCount>1?$(".pp_nav").show():$(".pp_nav").hide()}function _fitToViewport(width,height){if(resized=!1,_getDimensions(width,height),imageWidth=width,imageHeight=height,(pp_containerWidth>windowWidth||pp_containerHeight>windowHeight)&&doresize&&settings.allow_resize&&!percentBased){for(resized=!0,fitting=!1;!fitting;)pp_containerWidth>windowWidth?(imageWidth=windowWidth-200,imageHeight=height/width*imageWidth):pp_containerHeight>windowHeight?(imageHeight=windowHeight-200,imageWidth=width/height*imageHeight):fitting=!0,pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;(pp_containerWidth>windowWidth||pp_containerHeight>windowHeight)&&_fitToViewport(pp_containerWidth,pp_containerHeight),_getDimensions(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+2*settings.horizontal_padding,contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized}}function _getDimensions(width,height){width=parseFloat(width),height=parseFloat(height),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(width),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(width),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo($("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),pp_contentHeight=height+detailsHeight,pp_contentWidth=width,pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),pp_containerWidth=width}function _getFileType(itemSrc){return itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)?"youtube":itemSrc.match(/vimeo\.com/i)?"vimeo":itemSrc.match(/\b.mov\b/i)?"quicktime":itemSrc.match(/\b.swf\b/i)?"flash":itemSrc.match(/\biframe=true\b/i)?"iframe":itemSrc.match(/\bajax=true\b/i)?"ajax":itemSrc.match(/\bcustom=true\b/i)?"custom":"#"==itemSrc.substr(0,1)?"inline":"image"}function _center_overlay(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=_get_scroll(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=windowHeight/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>windowHeight)return;$pp_pic_holder.css({top:projectedTop,left:windowWidth/2+scroll_pos.scrollLeft-contentwidth/2})}}function _get_scroll(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height($(document).height()).width(windowWidth)}function _insert_gallery(){isSet&&settings.overlay_gallery&&"image"==_getFileType(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((pp_dimensions.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,0==totalPage?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,$.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}function _build_overlay(caller){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),$("body").append(settings.markup),$pp_pic_holder=$(".pp_pic_holder"),$ppt=$(".ppt"),$pp_overlay=$("div.pp_overlay"),$pp_pic_holder.toggleClass("is-single",pp_images.length<=1),isSet&&settings.overlay_gallery){currentGalleryPage=0,toInject="";for(var i=0;i<pp_images.length;i++)pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[i]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=$(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return $.prettyPhoto.changeGalleryPage("next"),$.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return $.prettyPhoto.changeGalleryPage("previous"),$.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(i){$(this).find("a").click(function(){return $.prettyPhoto.changePage(i),$.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return $.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.addClass("pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:$(document).height(),width:$(window).width()}).bind("click",function(){settings.modal||$.prettyPhoto.close()}),$("a.pp_close").bind("click",function(e){return e&&e.preventDefault&&e.preventDefault(),$.prettyPhoto.close(),!1}),settings.allow_expand&&$("a.pp_expand").bind("click",function(e){return $(this).hasClass("pp_expand")?($(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):($(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),_hideContent(function(){$.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return $.prettyPhoto.changePage("previous"),$.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return $.prettyPhoto.changePage("next"),$.prettyPhoto.stopSlideshow(),!1}),_center_overlay()}pp_settings=jQuery.extend({},options,pp_settings);var pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,pp_slideshow,matchedObjects=this,percentBased=!1,windowHeight=$(window).height(),windowWidth=$(window).width();return doresize=!0,scroll_pos=_get_scroll(),$(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){_center_overlay(),_resize_overlay()}),pp_settings.keyboard_shortcuts&&$(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(e){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(e.keyCode){case 37:$.prettyPhoto.changePage("previous"),e.preventDefault();break;case 39:$.prettyPhoto.changePage("next"),e.preventDefault();break;case 27:settings.modal||$.prettyPhoto.close(),e.preventDefault()}}),$.prettyPhoto.initialize=function(){return settings=pp_settings,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=$(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(matchedObjects,function(n,i){if(-1!=$(n).attr(settings.hook).indexOf(theRel))return $(n).attr("href")}):$.makeArray($(this).attr("href")),pp_titles=isSet?jQuery.map(matchedObjects,function(n,i){if(-1!=$(n).attr(settings.hook).indexOf(theRel))return $(n).find("img").attr("alt")?$(n).find("img").attr("alt"):""}):$.makeArray($(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(matchedObjects,function(n,i){if(-1!=$(n).attr(settings.hook).indexOf(theRel))return $(n).attr("title")?$(n).attr("title"):""}):$.makeArray($(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray($(this).attr("href"),pp_images),rel_index=isSet?set_position:$("a["+settings.hook+"^='"+theRel+"']").index($(this)),_build_overlay(this),settings.allow_resize&&$(window).bind("scroll.prettyphoto",function(){_center_overlay()}),$.prettyPhoto.open(),!1},$.prettyPhoto.open=function(event){return"undefined"==typeof settings&&(settings=pp_settings,pp_images=$.makeArray(arguments[0]),pp_titles=arguments[1]?$.makeArray(arguments[1]):$.makeArray(""),pp_descriptions=arguments[2]?$.makeArray(arguments[2]):$.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,_build_overlay(event.target)),settings.hideflash&&$("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),_checkPosition($(pp_images).size()),$(".pp_loaderIcon").show(),settings.deeplinking&&setHashtag(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+$(pp_images).size()),void 0!==pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(getParam("width",pp_images[set_position]))?getParam("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(getParam("height",pp_images[set_position]))?getParam("height",pp_images[set_position]):settings.default_height.toString(),percentBased=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat($(window).height()*parseFloat(movie_height)/100-150),percentBased=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat($(window).width()*parseFloat(movie_width)/100-150),percentBased=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&void 0!==pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;"),imgPreloader="",skipInjection=!1,_getFileType(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position<$(pp_images).size()-1&&(nextImage.src=pp_images[set_position+1]),prevImage=new Image,isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]),imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height),_showContent()},imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist."),$.prettyPhoto.close()},imgPreloader.src=pp_images[set_position];break;case"youtube":pp_dimensions=_fitToViewport(movie_width,movie_height),movie_id=getParam("v",pp_images[set_position]),""==movie_id&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="http://www.youtube.com/embed/"+movie_id,getParam("rel",pp_images[set_position])?movie+="?rel="+getParam("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions.width).replace(/{height}/g,pp_dimensions.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":pp_dimensions=_fitToViewport(movie_width,movie_height),movie_id=pp_images[set_position];var match=movie_id.match(/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/);movie="http://player.vimeo.com/video/"+match[3]+"?title=0&amp;byline=0&amp;portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=pp_dimensions.width+"/embed/?moog_width="+pp_dimensions.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions.height).replace(/{path}/g,movie);break;case"quicktime":pp_dimensions=_fitToViewport(movie_width,movie_height),pp_dimensions.height+=15,pp_dimensions.contentHeight+=15,pp_dimensions.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions.width).replace(/{height}/g,pp_dimensions.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":pp_dimensions=_fitToViewport(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions.width).replace(/{height}/g,pp_dimensions.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":pp_dimensions=_fitToViewport(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions.width).replace(/{height}/g,pp_dimensions.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,pp_dimensions=_fitToViewport(movie_width,movie_height),doresize=!0,skipInjection=!0,$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,_showContent()});break;case"custom":pp_dimensions=_fitToViewport(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=$(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo($("body")).show(),doresize=!1,pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height()),doresize=!0,$(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,_showContent())}),!1},$.prettyPhoto.changePage=function(direction){currentGalleryPage=0,"previous"==direction?--set_position<0&&(set_position=$(pp_images).size()-1):"next"==direction?++set_position>$(pp_images).size()-1&&(set_position=0):set_position=direction,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&$(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),_hideContent(function(){$.prettyPhoto.open()})},$.prettyPhoto.changeGalleryPage=function(direction){"next"==direction?++currentGalleryPage>totalPage&&(currentGalleryPage=0):"previous"==direction?--currentGalleryPage<0&&(currentGalleryPage=totalPage):currentGalleryPage=direction,slide_speed="next"==direction||"previous"==direction?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},$.prettyPhoto.startSlideshow=function(){void 0===pp_slideshow?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return $.prettyPhoto.stopSlideshow(),!1}),pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow)):$.prettyPhoto.changePage("next")},$.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return $.prettyPhoto.startSlideshow(),!1}),clearInterval(pp_slideshow),pp_slideshow=void 0},$.prettyPhoto.close=function(){$pp_overlay.is(":animated")||($.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),$("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){$(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&$("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),$(this).remove(),$(window).unbind("scroll.prettyphoto"),clearHashtag(),settings.callback(),doresize=!0,pp_open=!1,delete settings}))},!pp_alreadyInitialized&&getHashtag()&&(pp_alreadyInitialized=!0,hashIndex=getHashtag(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){$("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",$.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;