window.Modernizr=function(s,c,o){function i(t){m.cssText=t}function r(t,e){return typeof t===e}function n(t,e){return!!~(""+t).indexOf(e)}function a(t,e){for(var i in t){var s=t[i];if(!n(s,"-")&&m[s]!==o)return"pfx"!=e||s}return!1}function l(t,e,i){var s=t.charAt(0).toUpperCase()+t.slice(1),n=(t+" "+w.join(s+" ")+s).split(" ");return r(e,"string")||r(e,"undefined")?a(n,e):function(t,e,i){for(var s in t){var n=e[t[s]];if(n!==o)return!1===i?t[s]:r(n,"function")?n.bind(i||e):n}return!1}(n=(t+" "+T.join(s+" ")+s).split(" "),e,i)}var t,h,p,d={},u=c.documentElement,f="modernizr",e=c.createElement(f),m=e.style,g=c.createElement("input"),v=":)",y={}.toString,_=" -webkit- -moz- -o- -ms- ".split(" "),b="Webkit Moz O ms",w=b.split(" "),T=b.toLowerCase().split(" "),k="http://www.w3.org/2000/svg",x={},S={},C={},P=[],A=P.slice,E=function(t,e,i,s){var n,r,o,a,l=c.createElement("div"),h=c.body,p=h||c.createElement("body");if(parseInt(i,10))for(;i--;)(o=c.createElement("div")).id=s?s[i]:f+(i+1),l.appendChild(o);return n=["&#173;",'<style id="s',f,'">',t,"</style>"].join(""),l.id=f,(h?l:p).innerHTML+=n,p.appendChild(l),h||(p.style.background="",p.style.overflow="hidden",a=u.style.overflow,u.style.overflow="hidden",u.appendChild(p)),r=e(l,t),h?l.parentNode.removeChild(l):(p.parentNode.removeChild(p),u.style.overflow=a),!!r},M=(p={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t,e){e=e||c.createElement(p[t]||"div");var i=(t="on"+t)in e;return i||(e.setAttribute||(e=c.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(t,""),i=r(e[t],"function"),r(e[t],"undefined")||(e[t]=o),e.removeAttribute(t))),e=null,i}),D={}.hasOwnProperty;for(var O in h=r(D,"undefined")||r(D.call,"undefined")?function(t,e){return e in t&&r(t.constructor.prototype[e],"undefined")}:function(t,e){return D.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(s){var n=this;if("function"!=typeof n)throw new TypeError;var r=A.call(arguments,1),o=function(){if(this instanceof o){var t=function(){};t.prototype=n.prototype;var e=new t,i=n.apply(e,r.concat(A.call(arguments)));return Object(i)===i?i:e}return n.apply(s,r.concat(A.call(arguments)))};return o}),x.flexbox=function(){return l("flexWrap")},x.flexboxlegacy=function(){return l("boxDirection")},x.canvas=function(){var t=c.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},x.canvastext=function(){return!(!d.canvas||!r(c.createElement("canvas").getContext("2d").fillText,"function"))},x.webgl=function(){return!!s.WebGLRenderingContext},x.touch=function(){var e;return"ontouchstart"in s||s.DocumentTouch&&c instanceof DocumentTouch?e=!0:E(["@media (",_.join("touch-enabled),("),f,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){e=9===t.offsetTop}),e},x.geolocation=function(){return"geolocation"in navigator},x.postmessage=function(){return!!s.postMessage},x.websqldatabase=function(){return!!s.openDatabase},x.indexedDB=function(){return!!l("indexedDB",s)},x.hashchange=function(){return M("hashchange",s)&&(c.documentMode===o||7<c.documentMode)},x.history=function(){return!(!s.history||!history.pushState)},x.draganddrop=function(){var t=c.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},x.websockets=function(){return"WebSocket"in s||"MozWebSocket"in s},x.rgba=function(){return i("background-color:rgba(150,255,150,.5)"),n(m.backgroundColor,"rgba")},x.hsla=function(){return i("background-color:hsla(120,40%,100%,.5)"),n(m.backgroundColor,"rgba")||n(m.backgroundColor,"hsla")},x.multiplebgs=function(){return i("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(m.background)},x.backgroundsize=function(){return l("backgroundSize")},x.borderimage=function(){return l("borderImage")},x.borderradius=function(){return l("borderRadius")},x.boxshadow=function(){return l("boxShadow")},x.textshadow=function(){return""===c.createElement("div").style.textShadow},x.opacity=function(){return t="opacity:.55",i(_.join(t+";")+(e||"")),/^0.55$/.test(m.opacity);var t,e},x.cssanimations=function(){return l("animationName")},x.csscolumns=function(){return l("columnCount")},x.cssgradients=function(){var t="background-image:";return i((t+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+t)+_.join("linear-gradient(left top,#9f9, white);"+t)).slice(0,-t.length)),n(m.backgroundImage,"gradient")},x.cssreflections=function(){return l("boxReflect")},x.csstransforms=function(){return!!l("transform")},x.csstransforms3d=function(){var e=!!l("perspective");return e&&"webkitPerspective"in u.style&&E("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},x.csstransitions=function(){return l("transition")},x.fontface=function(){var r;return E('@font-face {font-family:"font";src:url("https://")}',function(t,e){var i=c.getElementById("smodernizr"),s=i.sheet||i.styleSheet,n=s?s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText||"":"";r=/src/i.test(n)&&0===n.indexOf(e.split(" ")[0])}),r},x.generatedcontent=function(){var e;return E(["#",f,"{font:0/0 a}#",f,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=3<=t.offsetHeight}),e},x.video=function(){var t=c.createElement("video"),e=!1;try{(e=!!t.canPlayType)&&((e=new Boolean(e)).ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),e.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),e.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(t){}return e},x.audio=function(){var t=c.createElement("audio"),e=!1;try{(e=!!t.canPlayType)&&((e=new Boolean(e)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),e.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),e.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),e.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return e},x.localstorage=function(){try{return localStorage.setItem(f,f),localStorage.removeItem(f),!0}catch(t){return!1}},x.sessionstorage=function(){try{return sessionStorage.setItem(f,f),sessionStorage.removeItem(f),!0}catch(t){return!1}},x.webworkers=function(){return!!s.Worker},x.applicationcache=function(){return!!s.applicationCache},x.svg=function(){return!!c.createElementNS&&!!c.createElementNS(k,"svg").createSVGRect},x.inlinesvg=function(){var t=c.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==k},x.smil=function(){return!!c.createElementNS&&/SVGAnimate/.test(y.call(c.createElementNS(k,"animate")))},x.svgclippaths=function(){return!!c.createElementNS&&/SVGClipPath/.test(y.call(c.createElementNS(k,"clipPath")))},x)h(x,O)&&(t=O.toLowerCase(),d[t]=x[O](),P.push((d[t]?"":"no-")+t));return d.input||(d.input=function(t){for(var e=0,i=t.length;e<i;e++)C[t[e]]=!!(t[e]in g);return C.list&&(C.list=!(!c.createElement("datalist")||!s.HTMLDataListElement)),C}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),d.inputtypes=function(t){for(var e,i,s,n=0,r=t.length;n<r;n++)g.setAttribute("type",i=t[n]),(e="text"!==g.type)&&(g.value=v,g.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(i)&&g.style.WebkitAppearance!==o?(u.appendChild(g),e=(s=c.defaultView).getComputedStyle&&"textfield"!==s.getComputedStyle(g,null).WebkitAppearance&&0!==g.offsetHeight,u.removeChild(g)):/^(search|tel)$/.test(i)||(e=/^(url|email)$/.test(i)?g.checkValidity&&!1===g.checkValidity():g.value!=v)),S[t[n]]=!!e;return S}("search tel url email datetime date month week time datetime-local number range color".split(" "))),d.addTest=function(t,e){if("object"==typeof t)for(var i in t)h(t,i)&&d.addTest(i,t[i]);else{if(t=t.toLowerCase(),d[t]!==o)return d;e="function"==typeof e?e():e,u.className+=" "+(e?"":"no-")+t,d[t]=e}return d},i(""),e=g=null,function(t,l){function h(){var t=f.elements;return"string"==typeof t?t.split(" "):t}function p(t){var e=a[t[s]];return e||(e={},o++,t[s]=o,a[o]=e),e}function c(t,e,i){return e||(e=l),u?e.createElement(t):(i||(i=p(e)),!(s=i.cache[t]?i.cache[t].cloneNode():r.test(t)?(i.cache[t]=i.createElem(t)).cloneNode():i.createElem(t)).canHaveChildren||n.test(t)||s.tagUrn?s:i.frag.appendChild(s));var s}function e(t){t||(t=l);var e,i,s,n,r,o,a=p(t);return!f.shivCSS||d||a.hasCSS||(a.hasCSS=(n="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",r=(s=t).createElement("p"),o=s.getElementsByTagName("head")[0]||s.documentElement,r.innerHTML="x<style>"+n+"</style>",!!o.insertBefore(r.lastChild,o.firstChild))),u||(e=t,(i=a).cache||(i.cache={},i.createElem=e.createElement,i.createFrag=e.createDocumentFragment,i.frag=i.createFrag()),e.createElement=function(t){return f.shivMethods?c(t,e,i):i.createElem(t)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/[\w\-]+/g,function(t){return i.createElem(t),i.frag.createElement(t),'c("'+t+'")'})+");return n}")(f,i.frag)),t}var d,u,i=t.html5||{},n=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,s="_html5shiv",o=0,a={};!function(){try{var t=l.createElement("a");t.innerHTML="<xyz></xyz>",d="hidden"in t,u=1==t.childNodes.length||function(){l.createElement("a");var t=l.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){u=d=!0}}();var f={elements:i.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==i.shivCSS,supportsUnknownElements:u,shivMethods:!1!==i.shivMethods,type:"default",shivDocument:e,createElement:c,createDocumentFragment:function(t,e){if(t||(t=l),u)return t.createDocumentFragment();for(var i=(e=e||p(t)).frag.cloneNode(),s=0,n=h(),r=n.length;s<r;s++)i.createElement(n[s]);return i}};t.html5=f,e(l)}(this,c),d._version="2.8.3",d._prefixes=_,d._domPrefixes=T,d._cssomPrefixes=w,d.mq=function(t){var e,i=s.matchMedia||s.msMatchMedia;return i?i(t)&&i(t).matches||!1:(E("@media "+t+" { #"+f+" { position: absolute; } }",function(t){e="absolute"==(s.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),e)},d.hasEvent=M,d.testProp=function(t){return a([t])},d.testAllProps=l,d.testStyles=E,d.prefixed=function(t,e,i){return e?l(t,e,i):l(t,"pfx")},u.className=u.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+P.join(" "),d}(this,this.document),function(){"use strict";function a(n,t){var e;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=n,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!a.notNeeded(n)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],s=0,r=i.length;s<r;s++)this[i[s]]=o(this[i[s]],this);l&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,e,i){var s=Node.prototype.removeEventListener;"click"===t?s.call(n,t,e.hijacked||e,i):s.call(n,t,e,i)},n.addEventListener=function(t,e,i){var s=Node.prototype.addEventListener;"click"===t?s.call(n,t,e.hijacked||(e.hijacked=function(t){t.propagationStopped||e(t)}),i):s.call(n,t,e,i)}),"function"==typeof n.onclick&&(e=n.onclick,n.addEventListener("click",function(t){e(t)},!1),n.onclick=null)}function o(t,e){return function(){return t.apply(e,arguments)}}}var t=0<=navigator.userAgent.indexOf("Windows Phone"),l=0<navigator.userAgent.indexOf("Android")&&!t,h=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,p=h&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=h&&/OS [6-7]_\d/.test(navigator.userAgent),n=0<navigator.userAgent.indexOf("BB10");a.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(h&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},a.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!l;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},a.prototype.sendClick=function(t,e){var i,s;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),s=e.changedTouches[0],(i=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(t),!0,!0,window,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},a.prototype.determineEventType=function(t){return l&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(t){var e;h&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},a.prototype.updateScrollParent=function(t){var e,i;if(!(e=t.fastClickScrollParent)||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i,t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}e&&(e.fastClickLastScrollTop=e.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},a.prototype.onTouchStart=function(t){var e,i,s;if(1<t.targetTouches.length)return!0;if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],h){if((s=window.getSelection()).rangeCount&&!s.isCollapsed)return!0;if(!p){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},a.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],i=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i},a.prototype.onTouchMove=function(t){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0},a.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(t){var e,i,s,n,r,o=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,i=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(r=t.changedTouches[0],(o=document.elementFromPoint(r.pageX-window.pageXOffset,r.pageY-window.pageYOffset)||o).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(s=o.tagName.toLowerCase())){if(e=this.findControl(o)){if(this.focus(o),l)return!1;o=e}}else if(this.needsFocus(o))return 100<t.timeStamp-i||h&&window.top!==window&&"input"===s?this.targetElement=null:(this.focus(o),this.sendClick(o,t),h&&"select"===s||(this.targetElement=null,t.preventDefault())),!1;return!(!h||p||!(n=o.fastClickScrollParent)||n.fastClickLastScrollTop===n.scrollTop)||(this.needsClick(o)||(t.preventDefault(),this.sendClick(o,t)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},a.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===t.target.type&&0===t.detail||((e=this.onMouse(t))||(this.targetElement=null),e)},a.prototype.destroy=function(){var t=this.layer;l&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(t){var e,i,s;if(void 0===window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!l)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(31<i&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(n&&10<=(s=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=s[2]&&(e=document.querySelector("meta[name=viewport]"))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},a.attach=function(t,e){return new a(t,e)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return a}):"undefined"!=typeof module&&module.exports?(module.exports=a.attach,module.exports.FastClick=a):window.FastClick=a}(),function(){function t(){}function r(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function e(t){return function(){return this[t].apply(this,arguments)}}var i=t.prototype,s=this,n=s.EventEmitter;i.getListeners=function(t){var e,i,s=this._getEvents();if("object"==typeof t)for(i in e={},s)s.hasOwnProperty(i)&&t.test(i)&&(e[i]=s[i]);else e=s[t]||(s[t]=[]);return e},i.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},i.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&((e={})[t]=i),e||i},i.addListener=function(t,e){var i,s=this.getListenersAsObject(t),n="object"==typeof e;for(i in s)s.hasOwnProperty(i)&&-1===r(s[i],e)&&s[i].push(n?e:{listener:e,once:!1});return this},i.on=e("addListener"),i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=e("addOnceListener"),i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,e){var i,s,n=this.getListenersAsObject(t);for(s in n)n.hasOwnProperty(s)&&(-1!==(i=r(n[s],e))&&n[s].splice(i,1));return this},i.off=e("removeListener"),i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},i.manipulateListeners=function(t,e,i){var s,n,r=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(s=i.length;s--;)r.call(this,e,i[s]);else for(s in e)e.hasOwnProperty(s)&&(n=e[s])&&("function"==typeof n?r.call(this,s,n):o.call(this,s,n));return this},i.removeEvent=function(t){var e,i=typeof t,s=this._getEvents();if("string"===i)delete s[t];else if("object"===i)for(e in s)s.hasOwnProperty(e)&&t.test(e)&&delete s[e];else delete this._events;return this},i.removeAllListeners=e("removeEvent"),i.emitEvent=function(t,e){var i,s,n,r=this.getListenersAsObject(t);for(n in r)if(r.hasOwnProperty(n))for(s=r[n].length;s--;)!0===(i=r[n][s]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},i.trigger=e("emitEvent"),i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},i._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return s.EventEmitter=n,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(i){function s(t){var e=i.event;return e.target=e.target||e.srcElement||t,e}var t=document.documentElement,e=function(){};t.addEventListener?e=function(t,e,i){t.addEventListener(e,i,!1)}:t.attachEvent&&(e=function(e,t,i){e[t+i]=i.handleEvent?function(){var t=s(e);i.handleEvent.call(i,t)}:function(){var t=s(e);i.call(e,t)},e.attachEvent("on"+t,e[t+i])});var n=function(){};t.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:t.detachEvent&&(n=function(e,i,s){e.detachEvent("on"+i,e[i+s]);try{delete e[i+s]}catch(t){e[i+s]=void 0}});var r={bind:e,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):i.eventie=r}(this),function(i,s){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(t,e){return s(i,t,e)}):"object"==typeof exports?module.exports=s(i,require("wolfy87-eventemitter"),require("eventie")):i.imagesLoaded=s(i,i.EventEmitter,i.eventie)}(window,function(t,e,i){function n(t,e){for(var i in e)t[i]=e[i];return t}function r(t){var e,i=[];if(e=t,"[object Array]"===c.call(e))i=t;else if("number"==typeof t.length)for(var s=0,n=t.length;s<n;s++)i.push(t[s]);else i.push(t);return i}function o(t,e,i){if(!(this instanceof o))return new o(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=r(t),this.options=n({},this.options),"function"==typeof e?i=e:n(this.options,e),i&&this.on("always",i),this.getImages(),l&&(this.jqDeferred=new l.Deferred);var s=this;setTimeout(function(){s.check()})}function s(t){this.img=t}function a(t){this.src=t,d[t]=this}var l=t.jQuery,h=t.console,p=void 0!==h,c=Object.prototype.toString;(o.prototype=new e).options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;t<e;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);var s=i.nodeType;if(s&&(1===s||9===s||11===s))for(var n=i.querySelectorAll("img"),r=0,o=n.length;r<o;r++){var a=n[r];this.addImage(a)}}},o.prototype.addImage=function(t){var e=new s(t);this.images.push(e)},o.prototype.check=function(){function t(t,e){return i.options.debug&&p&&h.log("confirm",t,e),i.progress(t),++s===n&&i.complete(),!0}var i=this,s=0,n=this.images.length;if(this.hasAnyBroken=!1,n)for(var e=0;e<n;e++){var r=this.images[e];r.on("confirm",t),r.check()}else this.complete()},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var i=this;setTimeout(function(){if(i.emit(e,i),i.emit("always",i),i.jqDeferred){var t=i.hasAnyBroken?"reject":"resolve";i.jqDeferred[t](i)}})},l&&(l.fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(l(this))}),(s.prototype=new e).check=function(){var t=d[this.img.src]||new a(this.img.src);if(t.isConfirmed)this.confirm(t.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var i=this;t.on("confirm",function(t,e){return i.confirm(t.isLoaded,e),!0}),t.check()}},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var d={};return(a.prototype=new e).check=function(){if(!this.isChecked){var t=new Image;i.bind(t,"load",this),i.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},a.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},a.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},a.prototype.unbindProxyEvents=function(t){i.unbind(t.target,"load",this),i.unbind(t.target,"error",this)},o}),function(){function s(t,e,i){return t.call.apply(t.bind,arguments)}function n(e,i,t){if(!e)throw Error();if(2<arguments.length){var s=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(t,s),e.apply(i,t)}}return function(){return e.apply(i,arguments)}}function u(t,e,i){return(u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?s:n).apply(null,arguments)}var r=Date.now||function(){return+new Date};function e(t,e){this.F=t,this.k=e||t,this.H=this.k.document}var a=!!window.FontFace;function l(t,e,i){(t=t.H.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(i,t.lastChild)}function f(t,e,i){e=e||[],i=i||[];for(var s=t.className.split(/\s+/),n=0;n<e.length;n+=1){for(var r=!1,o=0;o<s.length;o+=1)if(e[n]===s[o]){r=!0;break}r||s.push(e[n])}for(e=[],n=0;n<s.length;n+=1){for(r=!1,o=0;o<i.length;o+=1)if(s[n]===i[o]){r=!0;break}r||e.push(s[n])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function o(t,e){for(var i=t.className.split(/\s+/),s=0,n=i.length;s<n;s++)if(i[s]==e)return!0;return!1}function h(t){if("string"==typeof t.fa)return t.fa;var e=t.k.location.protocol;return"about:"==e&&(e=t.F.location.protocol),"https:"==e?"https:":"http:"}function p(t,e,i){function s(){o&&n&&(o(r),o=null)}e=t.createElement("link",{rel:"stylesheet",href:e,media:"all"});var n=!1,r=null,o=i||null;a?(e.onload=function(){n=!0,s()},e.onerror=function(){n=!0,r=Error("Stylesheet failed to load"),s()}):setTimeout(function(){n=!0,s()},0),l(t,"head",e)}function i(t,e,i,s){var n=t.H.getElementsByTagName("head")[0];if(n){var r=t.createElement("script",{src:e}),o=!1;return r.onload=r.onreadystatechange=function(){o||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(o=!0,i&&i(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&n.removeChild(r))},n.appendChild(r),setTimeout(function(){o||(o=!0,i&&i(Error("Script load timeout")))},s||5e3),r}return null}function c(){this.S=0,this.K=null}function d(t){return t.S++,function(){t.S--,g(t)}}function m(t,e){t.K=e,g(t)}function g(t){0==t.S&&t.K&&(t.K(),t.K=null)}function v(t){this.ea=t||"-"}function y(t,e){this.Q=t,this.M=4,this.L="n";var i=(e||"n4").match(/^([nio])([1-9])$/i);i&&(this.L=i[1],this.M=parseInt(i[2],10))}function _(t){var e=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var s=t[i].replace(/['"]/g,"");-1!=s.indexOf(" ")||/^\d/.test(s)?e.push("'"+s+"'"):e.push(s)}return e.join(",")}function b(t){return t.L+t.M}function w(t){var e="normal";return"o"===t.L?e="oblique":"i"===t.L&&(e="italic"),e}function T(t,e){this.a=t,this.j=t.k.document.documentElement,this.O=e,this.f="wf",this.e=new v("-"),this.da=!1!==e.events,this.u=!1!==e.classes}function k(t){if(t.u){var e=o(t.j,t.e.d(t.f,"active")),i=[],s=[t.e.d(t.f,"loading")];e||i.push(t.e.d(t.f,"inactive")),f(t.j,i,s)}x(t,"inactive")}function x(t,e,i){t.da&&t.O[e]&&(i?t.O[e](i.getName(),b(i)):t.O[e]())}function S(){this.t={}}function C(t,e){this.a=t,this.h=e,this.m=this.a.createElement("span",{"aria-hidden":"true"},this.h)}function P(t,e){var i,s=t.m;i="display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+_(e.Q)+";font-style:"+w(e)+";font-weight:"+e.M+"00;",s.style.cssText=i}function A(t){l(t.a,"body",t.m)}function E(t,e,i,s,n,r){this.G=t,this.J=e,this.g=s,this.a=i,this.v=n||3e3,this.h=r||void 0}function M(t,e,i,s,n,r,o){this.G=t,this.J=e,this.a=i,this.g=s,this.h=o||"BESbswy",this.s={},this.v=n||3e3,this.Z=r||null,this.D=this.C=this.A=this.w=null,this.w=new C(this.a,this.h),this.A=new C(this.a,this.h),this.C=new C(this.a,this.h),this.D=new C(this.a,this.h),P(this.w,new y(this.g.getName()+",serif",b(this.g))),P(this.A,new y(this.g.getName()+",sans-serif",b(this.g))),P(this.C,new y("serif",b(this.g))),P(this.D,new y("sans-serif",b(this.g))),A(this.w),A(this.A),A(this.C),A(this.D)}e.prototype.createElement=function(t,e,i){if(t=this.H.createElement(t),e)for(var s in e)e.hasOwnProperty(s)&&("style"==s?t.style.cssText=e[s]:t.setAttribute(s,e[s]));return i&&t.appendChild(this.H.createTextNode(i)),t},v.prototype.d=function(t){for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.ea)},y.prototype.getName=function(){return this.Q},C.prototype.remove=function(){var t=this.m;t.parentNode&&t.parentNode.removeChild(t)},E.prototype.start=function(){var i=this.a.k.document,s=this,n=r();!function e(){var t;r()-n>=s.v?s.J(s.g):i.fonts.load((t=s.g,w(t)+" "+t.M+"00 300px "+_(t.Q)),s.h).then(function(t){1<=t.length?s.G(s.g):setTimeout(e,25)},function(){s.J(s.g)})}()};var D={ia:"serif",ha:"sans-serif"},O=null;function F(){if(null===O){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);O=!!t&&(parseInt(t[1],10)<536||536===parseInt(t[1],10)&&parseInt(t[2],10)<=11)}return O}function I(t,e,i){for(var s in D)if(D.hasOwnProperty(s)&&e===t.s[D[s]]&&i===t.s[D[s]])return!0;return!1}function L(t){var e,i=t.w.m.offsetWidth,s=t.A.m.offsetWidth;(e=i===t.s.serif&&s===t.s["sans-serif"])||(e=F()&&I(t,i,s)),e?r()-t.ga>=t.v?F()&&I(t,i,s)&&(null===t.Z||t.Z.hasOwnProperty(t.g.getName()))?R(t,t.G):R(t,t.J):setTimeout(u(function(){L(this)},t),50):R(t,t.G)}function R(t,e){setTimeout(u(function(){this.w.remove(),this.A.remove(),this.C.remove(),this.D.remove(),e(this.g)},t),0)}function N(t,e,i){this.a=t,this.p=e,this.P=0,this.ba=this.Y=!1,this.v=i}M.prototype.start=function(){this.s.serif=this.C.m.offsetWidth,this.s["sans-serif"]=this.D.m.offsetWidth,this.ga=r(),L(this)};var z=null;function $(t){0==--t.P&&t.Y&&(t.ba?((t=t.p).u&&f(t.j,[t.e.d(t.f,"active")],[t.e.d(t.f,"loading"),t.e.d(t.f,"inactive")]),x(t,"active")):k(t.p))}function t(t){this.F=t,this.q=new S,this.$=0,this.T=this.U=!0}function j(t,e,i){this.N=t||e+"//fonts.googleapis.com/css",this.o=[],this.R=[],this.ca=i||""}N.prototype.V=function(t){var e=this.p;e.u&&f(e.j,[e.e.d(e.f,t.getName(),b(t).toString(),"active")],[e.e.d(e.f,t.getName(),b(t).toString(),"loading"),e.e.d(e.f,t.getName(),b(t).toString(),"inactive")]),x(e,"fontactive",t),this.ba=!0,$(this)},N.prototype.W=function(t){var e=this.p;if(e.u){var i=o(e.j,e.e.d(e.f,t.getName(),b(t).toString(),"active")),s=[],n=[e.e.d(e.f,t.getName(),b(t).toString(),"loading")];i||s.push(e.e.d(e.f,t.getName(),b(t).toString(),"inactive")),f(e.j,s,n)}x(e,"fontinactive",t),$(this)},t.prototype.load=function(t){this.a=new e(this.F,t.context||this.F),this.U=!1!==t.events,this.T=!1!==t.classes,function(n,t,e){var i=[],s=e.timeout;r=t,r.u&&f(r.j,[r.e.d(r.f,"loading")]),x(r,"loading");var r;var i=function(t,e,i){var s,n=[];for(s in e)if(e.hasOwnProperty(s)){var r=t.t[s];r&&n.push(r(e[s],i))}return n}(n.q,e,n.a),o=new N(n.a,t,s);for(n.$=i.length,t=0,e=i.length;t<e;t++)i[t].load(function(t,e,i){var s,l,h,p,c,d;l=o,h=t,p=e,c=i,d=0==--(s=n).$,(s.T||s.U)&&setTimeout(function(){var t=c||null,e=p||{};if(0===h.length&&d)k(l.p);else{l.P+=h.length,d&&(l.Y=d);var i,s=[];for(i=0;i<h.length;i++){var n=h[i],r=e[n.getName()],o=l.p,a=n;o.u&&f(o.j,[o.e.d(o.f,a.getName(),b(a).toString(),"loading")]),x(o,"fontloading",a),(o=null)===z&&(z=!!window.FontFace&&(!(o=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent))||42<parseInt(o[1],10))),o=z?new E(u(l.V,l),u(l.W,l),l.a,n,l.v,r):new M(u(l.V,l),u(l.W,l),l.a,n,l.v,t,r),s.push(o)}for(i=0;i<s.length;i++)s[i].start()}},0)})}(this,new T(this.a,t),t)};function X(t){this.o=t,this.aa=[],this.I={}}j.prototype.d=function(){if(0==this.o.length)throw Error("No fonts to load!");if(-1!=this.N.indexOf("kit="))return this.N;for(var t=this.o.length,e=[],i=0;i<t;i++)e.push(this.o[i].replace(/ /g,"+"));return t=this.N+"?family="+e.join("%7C"),0<this.R.length&&(t+="&subset="+this.R.join(",")),0<this.ca.length&&(t+="&text="+encodeURIComponent(this.ca)),t};var Y={latin:"BESbswy",cyrillic:"&#1081;&#1103;&#1046;",greek:"&#945;&#946;&#931;",khmer:"&#x1780;&#x1781;&#x1782;",Hanuman:"&#x1780;&#x1781;&#x1782;"},B={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},H={i:"i",italic:"i",n:"n",normal:"n"},V=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function W(t,e){this.a=t,this.c=e}X.prototype.parse=function(){for(var t=this.o.length,e=0;e<t;e++){var i=this.o[e].split(":"),s=i[0].replace(/\+/g," "),n=["n4"];if(2<=i.length){var r;if(r=[],o=i[1])for(var o,a=(o=o.split(",")).length,l=0;l<a;l++){var h;if((h=o[l]).match(/^[\w-]+$/))if(null==(h=V.exec(h.toLowerCase())))h="";else{var p;if(null==(p=h[1])||""==p)p="4";else{var c=B[p];p=c||(isNaN(p)?"4":p.substr(0,1))}h=[null==(h=h[2])||""==h?"n":H[h],p].join("")}else h="";h&&r.push(h)}0<r.length&&(n=r),3==i.length&&(r=[],0<(i=(i=i[2])?i.split(","):r).length&&(i=Y[i[0]])&&(this.I[s]=i))}for(this.I[s]||(i=Y[s])&&(this.I[s]=i),i=0;i<n.length;i+=1)this.aa.push(new y(s,n[i]))}};var q={Arimo:!0,Cousine:!0,Tinos:!0};function G(t,e){this.a=t,this.c=e,this.X=[]}function U(t,e){this.a=t,this.c=e}function K(t,e){this.a=t,this.c=e}function Q(t,e){this.a=t,this.c=e}W.prototype.load=function(t){var e=new c,i=this.a,s=new j(this.c.api,h(i),this.c.text),n=this.c.families;!function(t,e){for(var i=e.length,s=0;s<i;s++){var n=e[s].split(":");3==n.length&&t.R.push(n.pop());var r="";2==n.length&&""!=n[1]&&(r=":"),t.o.push(n.join(r))}}(s,n);var r=new X(n);r.parse(),p(i,s.d(),d(e)),m(e,function(){t(r.aa,r.I,q)})},G.prototype.B=function(t){var e=this.a;return h(this.a)+(this.c.api||"//f.fontdeck.com/s/css/js/")+(e.k.location.hostname||e.F.location.hostname)+"/"+t+".js"},G.prototype.load=function(h){var t=this.c.id,e=this.a.k,p=this;t?(e.__webfontfontdeckmodule__||(e.__webfontfontdeckmodule__={}),e.__webfontfontdeckmodule__[t]=function(t,e){for(var i=0,s=e.fonts.length;i<s;++i){var n=e.fonts[i];p.X.push(new y(n.name,(r="font-weight:"+n.weight+";font-style:"+n.style,l=a=o=void 0,o=4,a="n",l=null,r&&((l=r.match(/(normal|oblique|italic)/i))&&l[1]&&(a=l[1].substr(0,1).toLowerCase()),(l=r.match(/([1-9]00|normal|bold)/i))&&l[1]&&(/bold/i.test(l[1])?o=7:/[1-9]00/.test(l[1])&&(o=parseInt(l[1].substr(0,1),10)))),a+o)))}var r,o,a,l;h(p.X)},i(this.a,this.B(t),function(t){t&&h([])})):h([])},U.prototype.B=function(t){return(this.c.api||"https://use.typekit.net")+"/"+t+".js"},U.prototype.load=function(o){var t=this.c.id,a=this.a.k;t?i(this.a,this.B(t),function(t){if(t)o([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var e=[],i=0;i<t.length;i+=2)for(var s=t[i],n=t[i+1],r=0;r<n.length;r++)e.push(new y(s,n[r]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}o(e)}},2e3):o([])},K.prototype.B=function(t,e){return h(this.a)+"//"+(this.c.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"")+"/"+t+".js"+(e?"?v="+e:"")},K.prototype.load=function(o){var a=this.c.projectId,t=this.c.version;if(a){var l=this.a.k;i(this.a,this.B(a,t),function(t){t?o([]):function t(){if(l["__mti_fntLst"+a]){var e,i=l["__mti_fntLst"+a](),s=[];if(i)for(var n=0;n<i.length;n++){var r=i[n].fontfamily;null!=i[n].fontStyle&&null!=i[n].fontWeight?(e=i[n].fontStyle+i[n].fontWeight,s.push(new y(r,e))):s.push(new y(r))}o(s)}else setTimeout(function(){t()},50)}()}).id="__MonotypeAPIScript__"+a}else o([])},Q.prototype.load=function(t){var e,i,s=this.c.urls||[],n=this.c.families||[],r=this.c.testStrings||{},o=new c;for(e=0,i=s.length;e<i;e++)p(this.a,s[e],d(o));var a=[];for(e=0,i=n.length;e<i;e++)if((s=n[e].split(":"))[1])for(var l=s[1].split(","),h=0;h<l.length;h+=1)a.push(new y(s[0],l[h]));else a.push(new y(s[0]));m(o,function(){t(a,r)})};var Z=new t(window);Z.q.t.custom=function(t,e){return new Q(e,t)},Z.q.t.fontdeck=function(t,e){return new G(e,t)},Z.q.t.monotype=function(t,e){return new K(e,t)},Z.q.t.typekit=function(t,e){return new U(e,t)},Z.q.t.google=function(t,e){return new W(e,t)};var J={load:u(Z.load,Z)};"function"==typeof define&&define.amd?define(function(){return J}):"undefined"!=typeof module&&module.exports?module.exports=J:(window.WebFont=J,window.WebFontConfig&&Z.load(window.WebFontConfig))}();var _gsScope,TIAutoSizing={process:function(t,d,u){t.each(function(t,e){for(var i=$(e).html(),s="",n=i.length,r=!1,o=!1,a=!1,l=0;l<n;l++){var h=i.substr(l,1),p=h;if(/&/.test(h)){var c=h+i.substr(l+1,1)+i.substr(l+2,1)+i.substr(l+3,1)+i.substr(l+4,1)+i.substr(l+4,1);/[&nbsp;]+/.test(c)&&(o=r=!0),/[&lt;]+/.test(c)&&(o=r=!0),/[&gt;]+/.test(c)&&(o=r=!0),/[&amp;]+/.test(c)&&(o=r=!0),/[&quot;]+/.test(c)&&(o=r=!0),/[&copy;]+/.test(c)&&(o=r=!0)}/</.test(h)&&(a=!0),r?(a||o&&(d.test(h)&&(p="<span style='font-size:"+u+"'>"+h),o=!1),/;/.test(h)&&(r=!1,a||(p=h+"</span>"))):a||d.test(h)&&(p="<span style='font-size:"+u+"'>"+h+"</span>"),/>/.test(h)&&(a=!1),s+=p}$(e).html(s)})}},Detector=function(){var n=["monospace","sans-serif","serif"],r=document.getElementsByTagName("body")[0],o=document.createElement("span");o.style.fontSize="72px",o.innerHTML="mmmmmmmmmmlli";var a={},l={};for(var t in n)o.style.fontFamily=n[t],r.appendChild(o),a[n[t]]=o.offsetWidth,l[n[t]]=o.offsetHeight,r.removeChild(o);this.detect=function(t){var e=!1;for(var i in n){o.style.fontFamily=t+","+n[i],r.appendChild(o);var s=o.offsetWidth!=a[n[i]]||o.offsetHeight!=l[n[i]];r.removeChild(o),e=e||s}return e}};!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("scrollMonitor",[],e):"object"==typeof exports?exports.scrollMonitor=e():t.scrollMonitor=e()}(this,function(){return function(i){function s(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,s),e.loaded=!0,e.exports}var n={};return s.m=i,s.c=n,s.p="",s(0)}([function(t,e,i){"use strict";var s=i(1).isInBrowser,n=new(i(2))(s?document.body:null);n.setStateFromDOM(null),n.listenToDOM(),s&&(window.scrollMonitor=n),t.exports=n},function(t,e){"use strict";e.VISIBILITYCHANGE="visibilityChange",e.ENTERVIEWPORT="enterViewport",e.FULLYENTERVIEWPORT="fullyEnterViewport",e.EXITVIEWPORT="exitViewport",e.PARTIALLYEXITVIEWPORT="partiallyExitViewport",e.LOCATIONCHANGE="locationChange",e.STATECHANGE="stateChange",e.eventTypes=[e.VISIBILITYCHANGE,e.ENTERVIEWPORT,e.FULLYENTERVIEWPORT,e.EXITVIEWPORT,e.PARTIALLYEXITVIEWPORT,e.LOCATIONCHANGE,e.STATECHANGE],e.isOnServer="undefined"==typeof window,e.isInBrowser=!e.isOnServer,e.defaultOffsets={top:0,bottom:0}},function(t,e,i){"use strict";function a(t){return n?0:t===document.body?window.innerHeight||document.documentElement.clientHeight:t.clientHeight}function l(t){return n?0:t===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):t.scrollHeight}function h(t){return n?0:t===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop}var s=i(1),n=s.isOnServer,r=s.isInBrowser,p=s.eventTypes,c=i(3),o=!1;if(r)try{var d=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,d)}catch(t){}var u=!!o&&{capture:!1,passive:!0},f=function(){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var i,s,n,r=this;this.item=t,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=l(t),this.viewportHeight=a(t),this.DOMListener=function(){o.prototype.DOMListener.apply(r,arguments)},this.eventTypes=p,e&&(this.containerWatcher=e.create(t)),this.update=function(){(function(){if(r.viewportTop=h(t),r.viewportBottom=r.viewportTop+r.viewportHeight,r.documentHeight=l(t),r.documentHeight!==i){for(s=r.watchers.length;s--;)r.watchers[s].recalculateLocation();i=r.documentHeight}})(),function(){for(n=r.watchers.length;n--;)r.watchers[n].update();for(n=r.watchers.length;n--;)r.watchers[n].triggerCallbacks()}()},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}return o.prototype.listenToDOM=function(){r&&(window.addEventListener?(this.item===document.body?window.addEventListener("scroll",this.DOMListener,u):this.item.addEventListener("scroll",this.DOMListener,u),window.addEventListener("resize",this.DOMListener)):(this.item===document.body?window.attachEvent("onscroll",this.DOMListener):this.item.attachEvent("onscroll",this.DOMListener),window.attachEvent("onresize",this.DOMListener)),this.destroy=function(){window.addEventListener?(this.item===document.body?(window.removeEventListener("scroll",this.DOMListener,u),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener,u),window.removeEventListener("resize",this.DOMListener)):(this.item===document.body?(window.detachEvent("onscroll",this.DOMListener),this.containerWatcher.destroy()):this.item.detachEvent("onscroll",this.DOMListener),window.detachEvent("onresize",this.DOMListener))})},o.prototype.destroy=function(){},o.prototype.DOMListener=function(t){this.setStateFromDOM(t)},o.prototype.setStateFromDOM=function(t){var e=h(this.item),i=a(this.item),s=l(this.item);this.setState(e,i,s,t)},o.prototype.setState=function(t,e,i,s){var n=e!==this.viewportHeight||i!==this.contentHeight;if(this.latestEvent=s,this.viewportTop=t,this.viewportHeight=e,this.viewportBottom=t+e,this.contentHeight=i,n)for(var r=this.watchers.length;r--;)this.watchers[r].recalculateLocation();this.updateAndTriggerWatchers(s)},o.prototype.updateAndTriggerWatchers=function(t){for(var e=this.watchers.length;e--;)this.watchers[e].update();for(e=this.watchers.length;e--;)this.watchers[e].triggerCallbacks(t)},o.prototype.createCustomContainer=function(){return new o},o.prototype.createContainer=function(t){"string"==typeof t?t=document.querySelector(t):t&&0<t.length&&(t=t[0]);var e=new o(t,this);return e.setStateFromDOM(),e.listenToDOM(),e},o.prototype.create=function(t,e){"string"==typeof t?t=document.querySelector(t):t&&0<t.length&&(t=t[0]);var i=new c(this,t,e);return this.watchers.push(i),i},o.prototype.beget=function(t,e){return this.create(t,e)},o}();t.exports=f},function(t,e,i){"use strict";function s(t,e,i){function o(t,e){if(0!==t.length)for(l=t.length;l--;)(h=t[l]).callback.call(p,e,p),h.isOne&&t.splice(l,1)}var s,n,r,a,l,h,p=this;this.watchItem=e,this.container=t,this.offsets=i?i===+i?{top:i,bottom:i}:{top:i.top||w.top,bottom:i.bottom||w.bottom}:w,this.callbacks={};for(var c=0,d=b.length;c<d;c++)p.callbacks[b[c]]=[];this.locked=!1,this.triggerCallbacks=function(t){switch(this.isInViewport&&!s&&o(this.callbacks[f],t),this.isFullyInViewport&&!n&&o(this.callbacks[m],t),this.isAboveViewport!==r&&this.isBelowViewport!==a&&(o(this.callbacks[u],t),n||this.isFullyInViewport||(o(this.callbacks[m],t),o(this.callbacks[v],t)),s||this.isInViewport||(o(this.callbacks[f],t),o(this.callbacks[g],t))),!this.isFullyInViewport&&n&&o(this.callbacks[v],t),!this.isInViewport&&s&&o(this.callbacks[g],t),this.isInViewport!==s&&o(this.callbacks[u],t),!0){case s!==this.isInViewport:case n!==this.isFullyInViewport:case r!==this.isAboveViewport:case a!==this.isBelowViewport:o(this.callbacks[_],t)}s=this.isInViewport,n=this.isFullyInViewport,r=this.isAboveViewport,a=this.isBelowViewport},this.recalculateLocation=function(){if(!this.locked){var t=this.top,e=this.bottom;if(this.watchItem.nodeName){var i=this.watchItem.style.display;"none"===i&&(this.watchItem.style.display="");for(var s=0,n=this.container;n.containerWatcher;)s+=n.containerWatcher.top-n.containerWatcher.container.viewportTop,n=n.containerWatcher.container;var r=this.watchItem.getBoundingClientRect();this.top=r.top+this.container.viewportTop-s,this.bottom=r.bottom+this.container.viewportTop-s,"none"===i&&(this.watchItem.style.display=i)}else this.watchItem===+this.watchItem?0<this.watchItem?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===t&&void 0===e||this.top===t&&this.bottom===e||o(this.callbacks[y],null)}},this.recalculateLocation(),this.update(),s=this.isInViewport,n=this.isFullyInViewport,r=this.isAboveViewport,a=this.isBelowViewport}var n=i(1),u=n.VISIBILITYCHANGE,f=n.ENTERVIEWPORT,m=n.FULLYENTERVIEWPORT,g=n.EXITVIEWPORT,v=n.PARTIALLYEXITVIEWPORT,y=n.LOCATIONCHANGE,_=n.STATECHANGE,b=n.eventTypes,w=n.defaultOffsets;s.prototype={on:function(t,e,i){switch(!0){case t===u&&!this.isInViewport&&this.isAboveViewport:case t===f&&this.isInViewport:case t===m&&this.isFullyInViewport:case t===g&&this.isAboveViewport&&!this.isInViewport:case t===v&&this.isInViewport&&this.isAboveViewport:if(e.call(this,this.container.latestEvent,this),i)return}if(!this.callbacks[t])throw new Error("Tried to add a scroll monitor listener of type "+t+". Your options are: "+b.join(", "));this.callbacks[t].push({callback:e,isOne:i||!1})},off:function(t,e){if(!this.callbacks[t])throw new Error("Tried to remove a scroll monitor listener of type "+t+". Your options are: "+b.join(", "));for(var i,s=0;i=this.callbacks[t][s];s++)if(i.callback===e){this.callbacks[t].splice(s,1);break}},one:function(t,e){this.on(t,e,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.top<this.container.viewportTop,this.isBelowViewport=this.bottom>this.container.viewportBottom,this.isInViewport=this.top<this.container.viewportBottom&&this.bottom>this.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var t=this.container.watchers.indexOf(this);this.container.watchers.splice(t,1);for(var e=0,i=b.length;e<i;e++)this.callbacks[b[e]].length=0},lock:function(){this.locked=!0},unlock:function(){this.locked=!1}};for(var r=function(i){return function(t,e){this.on.call(this,i,t,e)}},o=0,a=b.length;o<a;o++){var l=b[o];s.prototype[l]=r(l)}t.exports=s}])}),function(t,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.Headroom=e()}(this,function(){"use strict";function t(t){this.callback=t,this.ticking=!1}function s(t,e){var i;e=function t(e){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var i,s,n,r=e||{};for(s=1;s<arguments.length;s++){var o=arguments[s]||{};for(i in o)"object"!=typeof r[i]||(n=r[i])&&"undefined"!=typeof window&&(n===window||n.nodeType)?r[i]=r[i]||o[i]:r[i]=t(r[i],o[i])}return r}(e,s.options),this.lastKnownScrollY=0,this.elem=t,this.tolerance=(i=e.tolerance)===Object(i)?i:{down:i,up:i},this.classes=e.classes,this.offset=e.offset,this.scroller=e.scroller,this.initialised=!1,this.onPin=e.onPin,this.onUnpin=e.onUnpin,this.onTop=e.onTop,this.onNotTop=e.onNotTop,this.onBottom=e.onBottom,this.onNotBottom=e.onNotBottom}var e={bind:!!function(){}.bind,classList:"classList"in document.documentElement,rAF:!!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)};return window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,t.prototype={constructor:t,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},s.prototype={constructor:s,init:function(){if(s.cutsTheMustard)return this.debouncer=new t(this.update.bind(this)),this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this},destroy:function(){var t=this.classes;for(var e in this.initialised=!1,t)t.hasOwnProperty(e)&&this.elem.classList.remove(t[e]);this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var t=this.elem.classList,e=this.classes;!t.contains(e.pinned)&&t.contains(e.unpinned)||(t.add(e.unpinned),t.remove(e.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var t=this.elem.classList,e=this.classes;t.contains(e.unpinned)&&(t.remove(e.unpinned),t.add(e.pinned),this.onPin&&this.onPin.call(this))},top:function(){var t=this.elem.classList,e=this.classes;t.contains(e.top)||(t.add(e.top),t.remove(e.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notTop)||(t.add(e.notTop),t.remove(e.top),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.bottom)||(t.add(e.bottom),t.remove(e.notBottom),this.onBottom&&this.onBottom.call(this))},notBottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notBottom)||(t.add(e.notBottom),t.remove(e.bottom),this.onNotBottom&&this.onNotBottom.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop},getViewportHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},getElementPhysicalHeight:function(t){return Math.max(t.offsetHeight,t.clientHeight)},getScrollerPhysicalHeight:function(){return this.scroller===window||this.scroller===document.body?this.getViewportHeight():this.getElementPhysicalHeight(this.scroller)},getDocumentHeight:function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)},getElementHeight:function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},getScrollerHeight:function(){return this.scroller===window||this.scroller===document.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(t){var e=t<0,i=t+this.getScrollerPhysicalHeight()>this.getScrollerHeight();return e||i},toleranceExceeded:function(t,e){return Math.abs(t-this.lastKnownScrollY)>=this.tolerance[e]},shouldUnpin:function(t,e){var i=t>this.lastKnownScrollY,s=t>=this.offset;return i&&s&&e},shouldPin:function(t,e){var i=t<this.lastKnownScrollY,s=t<=this.offset;return i&&e||s},update:function(){var t=this.getScrollY(),e=t>this.lastKnownScrollY?"down":"up",i=this.toleranceExceeded(t,e);this.isOutOfBounds(t)||(t<=this.offset?this.top():this.notTop(),t+this.getViewportHeight()>=this.getScrollerHeight()?this.bottom():this.notBottom(),this.shouldUnpin(t,i)?this.unpin():this.shouldPin(t,i)&&this.pin(),this.lastKnownScrollY=t)}},s.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},s.cutsTheMustard=void 0!==e&&e.rAF&&e.bind&&e.classList,s}),function(n){n&&(n.fn.headroom=function(s){return this.each(function(){var t=n(this),e=t.data("headroom"),i="object"==typeof s&&s;i=n.extend(!0,{},Headroom.options,i),e||((e=new Headroom(this,i)).init(),t.data("headroom",e)),"string"==typeof s&&(e[s](),"destroy"===s&&t.removeData("headroom"))})},n("[data-headroom]").each(function(){var t=n(this);t.headroom(t.data())}))}(window.Zepto||window.jQuery),function(e,i){"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(e,t)}):"object"==typeof exports?i(e,require("jquery")):i(e,e.jQuery||e.Zepto)}(this,function(t,o){"use strict";function a(t){if(b&&"none"===t.css("animation-name")&&"none"===t.css("-webkit-animation-name")&&"none"===t.css("-moz-animation-name")&&"none"===t.css("-o-animation-name")&&"none"===t.css("-ms-animation-name"))return 0;var e,i,s,n,r=t.css("animation-duration")||t.css("-webkit-animation-duration")||t.css("-moz-animation-duration")||t.css("-o-animation-duration")||t.css("-ms-animation-duration")||"0s",o=t.css("animation-delay")||t.css("-webkit-animation-delay")||t.css("-moz-animation-delay")||t.css("-o-animation-delay")||t.css("-ms-animation-delay")||"0s",a=t.css("animation-iteration-count")||t.css("-webkit-animation-iteration-count")||t.css("-moz-animation-iteration-count")||t.css("-o-animation-iteration-count")||t.css("-ms-animation-iteration-count")||"1";for(r=r.split(", "),o=o.split(", "),a=a.split(", "),n=0,i=r.length,e=Number.NEGATIVE_INFINITY;n<i;n++)e<(s=parseFloat(r[n])*parseInt(a[n],10)+parseFloat(o[n]))&&(e=s);return e}function n(){if(o(document.body).height()<=o(window).height())return 0;var t,e,i=document.createElement("div"),s=document.createElement("div");return i.style.visibility="hidden",i.style.width="100px",document.body.appendChild(i),t=i.offsetWidth,i.style.overflow="scroll",s.style.width="100%",i.appendChild(s),e=s.offsetWidth,i.parentNode.removeChild(i),t-e}function s(){if(!w){var t,e,i=o("html"),s=h("is-locked");i.hasClass(s)&&(e=o(document.body),t=parseInt(e.css("padding-right"),10)-n(),e.css("padding-right",t+"px"),i.removeClass(s))}}function r(t,e,i,s){var n=h("is",e),r=[h("is",_.CLOSING),h("is",_.OPENING),h("is",_.CLOSED),h("is",_.OPENED)].join(" ");t.$bg.removeClass(r).addClass(n),t.$overlay.removeClass(r).addClass(n),t.$wrapper.removeClass(r).addClass(n),t.$modal.removeClass(r).addClass(n),t.state=e,!i&&t.$modal.trigger({type:e,reason:s},[{reason:s}])}function i(t,e,i){var s=0,n=function(t){t.target===this&&s++},r=function(t){t.target===this&&0==--s&&(o.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){i[e].off(g+" "+v)}),e())};o.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){i[e].on(g,n).on(v,r)}),t(),0===a(i.$bg)&&0===a(i.$overlay)&&0===a(i.$wrapper)&&0===a(i.$modal)&&(o.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){i[e].off(g+" "+v)}),e())}function l(i){i.state!==_.CLOSED&&(o.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){i[e].off(g+" "+v)}),i.$bg.removeClass(i.settings.modifier),i.$overlay.removeClass(i.settings.modifier).hide(),i.$wrapper.hide(),s(),r(i,_.CLOSED,!0))}function h(){for(var t=m,e=0;e<arguments.length;++e)t+="-"+arguments[e];return t}function e(){var t,e,i=location.hash.replace("#","");if(i){try{e=o('[data-remodal-id="'+i+'"]')}catch(t){}e&&e.length&&((t=o[f].lookup[e.data(f)])&&t.settings.hashTracking&&t.open())}else c&&c.state===_.OPENED&&c.settings.hashTracking&&c.close()}function p(t,e){var i=o(document.body),s=this;s.settings=o.extend({},y,e),s.index=o[f].lookup.push(s)-1,s.state=_.CLOSED,s.$overlay=o("."+h("overlay")),null!==s.settings.appendTo&&s.settings.appendTo.length&&(i=o(s.settings.appendTo)),s.$overlay.length||(s.$overlay=o("<div>").addClass(h("overlay")+" "+h("is",_.CLOSED)).hide(),i.append(s.$overlay)),s.$bg=o("."+h("bg")).addClass(h("is",_.CLOSED)),s.$modal=t.addClass(m+" "+h("is-initialized")+" "+s.settings.modifier+" "+h("is",_.CLOSED)).attr("tabindex","-1"),s.$wrapper=o("<div>").addClass(h("wrapper")+" "+s.settings.modifier+" "+h("is",_.CLOSED)).hide().append(s.$modal),i.append(s.$wrapper),s.$wrapper.on("click."+m,'[data-remodal-action="close"]',function(t){t.preventDefault(),s.close()}),s.$wrapper.on("click."+m,'[data-remodal-action="cancel"]',function(t){t.preventDefault(),s.$modal.trigger(Wq.CANCELLATION),s.settings.closeOnCancel&&s.close(Wq.CANCELLATION)}),s.$wrapper.on("click."+m,'[data-remodal-action="confirm"]',function(t){t.preventDefault(),s.$modal.trigger(Wq.CONFIRMATION),s.settings.closeOnConfirm&&s.close(Wq.CONFIRMATION)}),s.$wrapper.on("click."+m,function(t){o(t.target).hasClass(h("wrapper"))&&s.settings.closeOnOutsideClick&&s.close()})}var c,d,u,f="remodal",m=t.REMODAL_GLOBALS&&t.REMODAL_GLOBALS.NAMESPACE||f,g=o.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(t){return t+"."+m}).join(" "),v=o.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(t){return t+"."+m}).join(" "),y=o.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,closeOnEscape:!0,closeOnOutsideClick:!0,modifier:"",appendTo:null},t.REMODAL_GLOBALS&&t.REMODAL_GLOBALS.DEFAULTS),_={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},b=void 0!==(u=document.createElement("div").style).animationName||void 0!==u.WebkitAnimationName||void 0!==u.MozAnimationName||void 0!==u.msAnimationName||void 0!==u.OAnimationName,w=/iPad|iPhone|iPod/.test(navigator.platform);p.prototype.open=function(){var t,e=this;e.state!==_.OPENING&&e.state!==_.CLOSING&&((t=e.$modal.attr("data-remodal-id"))&&e.settings.hashTracking&&(d=o(window).scrollTop(),location.hash=t),c&&c!==e&&l(c),c=e,function(){if(!w){var t,e,i=o("html"),s=h("is-locked");i.hasClass(s)||(e=o(document.body),t=parseInt(e.css("padding-right"),10)+n(),e.css("padding-right",t+"px"),i.addClass(s))}}(),e.$bg.addClass(e.settings.modifier),e.$overlay.addClass(e.settings.modifier).show(),e.$wrapper.show().scrollTop(0),e.$modal.focus(),i(function(){r(e,_.OPENING)},function(){r(e,_.OPENED)},e))},p.prototype.close=function(t){var e=this;e.state!==_.OPENING&&e.state!==_.CLOSING&&(e.settings.hashTracking&&e.$modal.attr("data-remodal-id")===location.hash.substr(1)&&(location.hash="",o(window).scrollTop(d)),i(function(){r(e,_.CLOSING,!1,t)},function(){e.$bg.removeClass(e.settings.modifier),e.$overlay.removeClass(e.settings.modifier).hide(),e.$wrapper.hide(),s(),r(e,_.CLOSED,!1,t)},e))},p.prototype.getState=function(){return this.state},p.prototype.destroy=function(){var t=o[f].lookup;l(this),this.$wrapper.remove(),delete t[this.index],0===o.grep(t,function(t){return!!t}).length&&(this.$overlay.remove(),this.$bg.removeClass(h("is",_.CLOSING)+" "+h("is",_.OPENING)+" "+h("is",_.CLOSED)+" "+h("is",_.OPENED)))},o[f]={lookup:[]},o.fn[f]=function(i){var s,n;return this.each(function(t,e){null==(n=o(e)).data(f)?(s=new p(n,i),n.data(f,s.index),s.settings.hashTracking&&n.attr("data-remodal-id")===location.hash.substr(1)&&s.open()):s=o[f].lookup[n.data(f)]}),s},o(document).ready(function(){o(document).on("click","[data-remodal-target]",function(t){t.preventDefault();var e=t.currentTarget.getAttribute("data-remodal-target"),i=o('[data-remodal-id="'+e+'"]');o[f].lookup[i.data(f)].open()}),o(document).find("."+m).each(function(t,e){var i=o(e),s=i.data("remodal-options");s?("string"==typeof s||s instanceof String)&&(s=function(t){var e,i,s,n,r={};for(n=0,i=(e=(t=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",")).split(",")).length;n<i;n++)e[n]=e[n].split(":"),("string"==typeof(s=e[n][1])||s instanceof String)&&(s="true"===s||"false"!==s&&s),("string"==typeof s||s instanceof String)&&(s=isNaN(s)?s:+s),r[e[n][0]]=s;return r}(s)):s={},i[f](s)}),o(document).on("keydown."+m,function(t){c&&c.settings.closeOnEscape&&c.state===_.OPENED&&27===t.keyCode&&c.close()}),o(window).on("hashchange."+m,e)})}),((_gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window)._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,l,e,k,w,T,x,v,i,y,S,_,b,u,f,g,s;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(s,p,g){var v=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},y=function(t,e,i){var s,n,r=t.cycle;for(s in r)n=r[s],t[s]="function"==typeof n?n.call(e[i],i):n[i%n.length];delete t.cycle},_=function(t,e,i){g.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=_.prototype.render},b=1e-10,w=g._internals,T=w.isSelector,k=w.isArray,t=_.prototype=g.to({},.1,{}),x=[];_.version="1.18.5",t.constructor=_,t.kill()._gc=!1,_.killTweensOf=_.killDelayedCallsTo=g.killTweensOf,_.getTweensOf=g.getTweensOf,_.lagSmoothing=g.lagSmoothing,_.ticker=g.ticker,_.render=g.render,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),g.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,s=this.ratio,n=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||n)if(e)this._initted=!1,n&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&g._onPluginEvent("_onDisable",this),.998<this._time/this._duration){var r=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(r,!0,!1)}else if(this._initted=!1,this._init(),0<this._time||n)for(var o,a=1/(1-s),l=this._firstPT;l;)o=l.s+l.c,l.c*=a,l.s=o-l.c,l=l._next;return this},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var s,n,r,o,a,l,h,p,c=this._dirty?this.totalDuration():this._totalDuration,d=this._time,u=this._totalTime,f=this._cycle,m=this._duration,g=this._rawPrevTime;if(c-1e-7<=t?(this._totalTime=c,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=m,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(s=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===m&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(g<0||t<=0&&-1e-7<=t||g===b&&"isPause"!==this.data)&&g!==t&&(i=!0,b<g&&(n="onReverseComplete")),this._rawPrevTime=p=!e||t||g===t?t:b)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==u||0===m&&0<g)&&(n="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===m&&(this._initted||!this.vars.lazy||i)&&(0<=g&&(i=!0),this._rawPrevTime=p=!e||t||g===t?t:b)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(o=m+this._repeatDelay,this._cycle=this._totalTime/o>>0,0!==this._cycle&&this._cycle===this._totalTime/o&&u<=t&&this._cycle--,this._time=this._totalTime-this._cycle*o,this._yoyo&&0!=(1&this._cycle)&&(this._time=m-this._time),this._time>m?this._time=m:this._time<0&&(this._time=0)),this._easeType?(a=this._time/m,(1===(l=this._easeType)||3===l&&.5<=a)&&(a=1-a),3===l&&(a*=2),1===(h=this._easePower)?a*=a:2===h?a*=a*a:3===h?a*=a*a*a:4===h&&(a*=a*a*a*a),1===l?this.ratio=1-a:2===l?this.ratio=a:this._time/m<.5?this.ratio=a/2:this.ratio=1-a/2):this.ratio=this._ease.getRatio(this._time/m)),d!==this._time||i||f!==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=d,this._totalTime=u,this._rawPrevTime=g,this._cycle=f,w.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/m):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==d&&0<=t&&(this._active=!0),0===u&&(2===this._initted&&0<t&&this._init(),this._startAt&&(0<=t?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===m)&&(e||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==u||n)&&this._callback("onUpdate")),this._cycle!==f&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),n&&(!this._gc||i)&&(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===m&&this._rawPrevTime===b&&p!==b&&(this._rawPrevTime=0))}else u!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},_.to=function(t,e,i){return new _(t,e,i)},_.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new _(t,e,i)},_.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new _(t,e,s)},_.staggerTo=_.allTo=function(t,e,i,s,n,r,o){s=s||0;var a,l,h,p,c=0,d=[],u=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),n.apply(o||i.callbackScope||this,r||x)},f=i.cycle,m=i.startAt&&i.startAt.cycle;for(k(t)||("string"==typeof t&&(t=g.selector(t)||t),T(t)&&(t=v(t))),t=t||[],s<0&&((t=v(t)).reverse(),s*=-1),a=t.length-1,h=0;h<=a;h++){for(p in l={},i)l[p]=i[p];if(f&&(y(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),m){for(p in m=l.startAt={},i.startAt)m[p]=i.startAt[p];y(l.startAt,t,h)}l.delay=c+(l.delay||0),h===a&&n&&(l.onComplete=u),d[h]=new _(t[h],e,l),c+=s}return d},_.staggerFrom=_.allFrom=function(t,e,i,s,n,r,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,_.staggerTo(t,e,i,s,n,r,o)},_.staggerFromTo=_.allFromTo=function(t,e,i,s,n,r,o,a){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,_.staggerTo(t,e,s,n,r,o,a)},_.delayedCall=function(t,e,i,s,n){return new _(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},_.set=function(t,e){return new _(t,0,e)},_.isTweening=function(t){return 0<g.getTweensOf(t,!0).length};var r=function(t,e){for(var i=[],s=0,n=t._first;n;)n instanceof g?i[s++]=n:(e&&(i[s++]=n),s=(i=i.concat(r(n,e))).length),n=n._next;return i},c=_.getAllTweens=function(t){return r(s._rootTimeline,t).concat(r(s._rootFramesTimeline,t))};_.killAll=function(t,e,i,s){null==e&&(e=!0),null==i&&(i=!0);var n,r,o,a=c(0!=s),l=a.length,h=e&&i&&s;for(o=0;o<l;o++)r=a[o],(h||r instanceof p||(n=r.target===r.vars.onComplete)&&i||e&&!n)&&(t?r.totalTime(r._reversed?0:r.totalDuration()):r._enabled(!1,!1))},_.killChildTweensOf=function(t,e){if(null!=t){var i,s,n,r,o,a=w.tweenLookup;if("string"==typeof t&&(t=g.selector(t)||t),T(t)&&(t=v(t)),k(t))for(r=t.length;-1<--r;)_.killChildTweensOf(t[r],e);else{for(n in i=[],a)for(s=a[n].target.parentNode;s;)s===t&&(i=i.concat(a[n].tweens)),s=s.parentNode;for(o=i.length,r=0;r<o;r++)e&&i[r].totalTime(i[r].totalDuration()),i[r]._enabled(!1,!1)}}};var n=function(t,e,i,s){e=!1!==e,i=!1!==i;for(var n,r,o=c(s=!1!==s),a=e&&i&&s,l=o.length;-1<--l;)r=o[l],(a||r instanceof p||(n=r.target===r.vars.onComplete)&&i||e&&!n)&&r.paused(t)};return _.pauseAll=function(t,e,i){n(!0,t,e,i)},_.resumeAll=function(t,e,i){n(!1,t,e,i)},_.globalTimeScale=function(t){var e=s._rootTimeline,i=g.ticker.time;return arguments.length?(t=t||b,e._startTime=i-(i-e._startTime)*e._timeScale/t,e=s._rootFramesTimeline,i=g.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=s._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?s.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},_},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(p,c,d){var u=function(t){c.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,s=this.vars;for(i in s)e=s[i],g(e)&&-1!==e.join("").indexOf("{self}")&&(s[i]=this._swapSelfInParams(e));g(s.tweens)&&this.add(s.tweens,0,s.align,s.stagger)},m=1e-10,t=d._internals,e=u._internals={},f=t.isSelector,g=t.isArray,v=t.lazyTweens,y=t.lazyRender,o=_gsScope._gsDefine.globals,_=function(t){var e,i={};for(e in t)i[e]=t[e];return i},b=function(t,e,i){var s,n,r=t.cycle;for(s in r)n=r[s],t[s]="function"==typeof n?n.call(e[i],i):n[i%n.length];delete t.cycle},r=e.pauseCallback=function(){},w=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},i=u.prototype=new c;return u.version="1.18.5",i.constructor=u,i.kill()._gc=i._forcingPlayhead=i._hasPause=!1,i.to=function(t,e,i,s){var n=i.repeat&&o.TweenMax||d;return e?this.add(new n(t,e,i),s):this.set(t,i,s)},i.from=function(t,e,i,s){return this.add((i.repeat&&o.TweenMax||d).from(t,e,i),s)},i.fromTo=function(t,e,i,s,n){var r=s.repeat&&o.TweenMax||d;return e?this.add(r.fromTo(t,e,i,s),n):this.set(t,s,n)},i.staggerTo=function(t,e,i,s,n,r,o,a){var l,h,p=new u({onComplete:r,onCompleteParams:o,callbackScope:a,smoothChildTiming:this.smoothChildTiming}),c=i.cycle;for("string"==typeof t&&(t=d.selector(t)||t),f(t=t||[])&&(t=w(t)),(s=s||0)<0&&((t=w(t)).reverse(),s*=-1),h=0;h<t.length;h++)(l=_(i)).startAt&&(l.startAt=_(l.startAt),l.startAt.cycle&&b(l.startAt,t,h)),c&&(b(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),p.to(t[h],e,l,h*s);return this.add(p,n)},i.staggerFrom=function(t,e,i,s,n,r,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,n,r,o,a)},i.staggerFromTo=function(t,e,i,s,n,r,o,a,l){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,n,r,o,a,l)},i.call=function(t,e,i,s){return this.add(d.delayedCall(0,t,e,i),s)},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 d(t,0,e),i)},u.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,s,n=new u(t),r=n._timeline;for(null==e&&(e=!0),r._remove(n,!0),n._startTime=0,n._rawPrevTime=n._time=n._totalTime=r._time,i=r._first;i;)s=i._next,e&&i instanceof d&&i.target===i.vars.onComplete||n.add(i,i._startTime-i._delay),i=s;return r.add(n,0),n},i.add=function(t,e,i,s){var n,r,o,a,l,h;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,t)),!(t instanceof p)){if(t instanceof Array||t&&t.push&&g(t)){for(i=i||"normal",s=s||0,n=e,r=t.length,o=0;o<r;o++)g(a=t[o])&&(a=new u({tweens:a})),this.add(a,n),"string"!=typeof a&&"function"!=typeof a&&("sequence"===i?n=a._startTime+a.totalDuration()/a._timeScale:"start"===i&&(a._startTime-=a.delay())),n+=s;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=d.delayedCall(0,t)}if(c.prototype.add.call(this,t,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(h=(l=this).rawTime()>t._startTime;l._timeline;)h&&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 p){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?p._rootFramesTimeline:p._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){c.prototype._remove.call(this,t,e);var i=this._last;return i?this._time>i._startTime+i._totalDuration/i._timeScale&&(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,s){return this.add(t,e||0,i,s)},i.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,s){var n=d.delayedCall(0,r,i,s||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,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,s){var n;if(s instanceof p&&s.timeline===this)this.remove(s);else if(s&&(s instanceof Array||s.push&&g(s)))for(n=s.length;-1<--n;)s[n]instanceof p&&s[n].timeline===this&&this.remove(s[n]);if("string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-this.duration():0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=this.duration());else{if(-1===(n=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=this.duration()+e:e:this._labels[t]+e;e=parseInt(t.charAt(n-1)+"1",10)*Number(t.substr(n+1)),t=1<n?this._parseTimeOrLabel(t.substr(0,n-1),0,i):this.duration()}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 s,n,r,o,a,l,h,p=this._dirty?this.totalDuration():this._totalDuration,c=this._time,d=this._startTime,u=this._timeScale,f=this._paused;if(p-1e-7<=t)this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(n=!0,o="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&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:m,t=p+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==c||0===this._duration&&this._rawPrevTime!==m&&(0<this._rawPrevTime||t<0&&0<=this._rawPrevTime))&&(o="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(a=n=!0,o="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&&n)for(s=this._first;s&&0===s._startTime;)s._duration||(n=!1),s=s._next;t=0,this._initted||(a=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(c<=t)for(s=this._first;s&&s._startTime<=t&&!l;)s._duration||"isPause"!==s.data||s.ratio||0===s._startTime&&0===this._rawPrevTime||(l=s),s=s._next;else for(s=this._last;s&&s._startTime>=t&&!l;)s._duration||"isPause"===s.data&&0<s._rawPrevTime&&(l=s),s=s._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!==c&&this._first||i||a||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&0<t&&(this._active=!0),0===c&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),c<=(h=this._time))for(s=this._first;s&&(r=s._next,h===this._time&&(!this._paused||f));)(s._active||s._startTime<=h&&!s._paused&&!s._gc)&&(l===s&&this.pause(),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=r;else for(s=this._last;s&&(r=s._prev,h===this._time&&(!this._paused||f));){if(s._active||s._startTime<=c&&!s._paused&&!s._gc){if(l===s){for(l=s._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()}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=r}this._onUpdate&&(e||(v.length&&y(),this._callback("onUpdate"))),o&&(this._gc||(d===this._startTime||u!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(n&&(v.length&&y(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof u&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,s){s=s||-9999999999;for(var n=[],r=this._first,o=0;r;)r._startTime<s||(r instanceof d?!1!==e&&(n[o++]=r):(!1!==i&&(n[o++]=r),!1!==t&&(o=(n=n.concat(r.getChildren(!0,e,i))).length))),r=r._next;return n},i.getTweensOf=function(t,e){var i,s,n=this._gc,r=[],o=0;for(n&&this._enabled(!0,!0),s=(i=d.getTweensOf(t)).length;-1<--s;)(i[s].timeline===this||e&&this._contains(i[s]))&&(r[o++]=i[s]);return n&&this._enabled(!1,!0),r},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 s,n=this._first,r=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(s in r)r[s]>=i&&(r[s]+=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),s=i.length,n=!1;-1<--s;)i[s]._kill(t,e)&&(n=!0);return n},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 p.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 c.prototype._enabled.call(this,t,e)},i.totalTime=function(t,e,i){this._forcingPlayhead=!0;var s=p.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,s},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){if(this._dirty){for(var e,i,s=0,n=this._last,r=999999999999;n;)e=n._prev,n._dirty&&n.totalDuration(),n._startTime>r&&this._sortChildren&&!n._paused?this.add(n,n._startTime-n._delay):r=n._startTime,n._startTime<0&&!n._paused&&(s-=n._startTime,this._timeline.smoothChildTiming&&(this._startTime+=n._startTime/this._timeScale),this.shiftChildren(-n._startTime,!1,-9999999999),r=0),s<(i=n._startTime+n._totalDuration/n._timeScale)&&(s=i),n=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},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 p.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===p._rootFramesTimeline},i.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,o,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},C=1e-10,s=o._internals,P=s.lazyTweens,A=s.lazyRender,a=new t(null,null,1,0),n=i.prototype=new e;return n.constructor=i,n.kill()._gc=!1,i.version="1.18.5",n.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)},n.addCallback=function(t,e,i,s){return this.add(o.delayedCall(0,t,i,s),e)},n.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),s=i.length,n=this._parseTimeOrLabel(e);-1<--s;)i[s]._startTime===n&&i[s]._enabled(!1,!1);return this},n.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},n.tweenTo=function(t,e){e=e||{};var i,s,n,r={ease:a,useFrames:this.usesFrames(),immediateRender:!1};for(s in e)r[s]=e[s];return r.time=this._parseTimeOrLabel(t),i=Math.abs(Number(r.time)-this._time)/this._timeScale||.001,n=new o(this,i,r),r.onStart=function(){n.target.paused(!0),n.vars.time!==n.target.time()&&i===n.duration()&&n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale),e.onStart&&n._callback("onStart")},n},n.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 s=this.tweenTo(e,i);return s.duration(Math.abs(s.vars.time-t)/this._timeScale||.001)},n.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,r,o,a,l,h,p,c=this._dirty?this.totalDuration():this._totalDuration,d=this._duration,u=this._time,f=this._totalTime,m=this._startTime,g=this._timeScale,v=this._rawPrevTime,y=this._paused,_=this._cycle;if(c-1e-7<=t)this._locked||(this._totalTime=c,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",a=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||v<0||v===C)&&v!==t&&this._first&&(a=!0,C<v&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:C,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:t=(this._time=d)+1e-4;else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),((this._time=0)!==u||0===d&&v!==C&&(0<v||t<0&&0<=v)&&!this._locked)&&(o="onReverseComplete",n=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(a=n=!0,o="onReverseComplete"):0<=v&&this._first&&(a=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=d||!e||t||this._rawPrevTime===t?t:C,0===t&&n)for(s=this._first;s&&0===s._startTime;)s._duration||(n=!1),s=s._next;t=0,this._initted||(a=!0)}else if(0===d&&v<0&&(a=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(l=d+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=d-this._time),this._time>d?t=(this._time=d)+1e-4:this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(u<=(t=this._time))for(s=this._first;s&&s._startTime<=t&&!h;)s._duration||"isPause"!==s.data||s.ratio||0===s._startTime&&0===this._rawPrevTime||(h=s),s=s._next;else for(s=this._last;s&&s._startTime>=t&&!h;)s._duration||"isPause"===s.data&&0<s._rawPrevTime&&(h=s),s=s._prev;h&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==_&&!this._locked){var b=this._yoyo&&0!=(1&_),w=b===(this._yoyo&&0!=(1&this._cycle)),T=this._totalTime,k=this._cycle,x=this._rawPrevTime,S=this._time;if(this._totalTime=_*d,this._cycle<_?b=!b:this._totalTime+=d,this._time=u,this._rawPrevTime=0===d?v-1e-4:v,this._cycle=_,this._locked=!0,u=b?0:d,this.render(u,e,0===d),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),u!==this._time)return;if(w&&(u=b?d+1e-4:-1e-4,this.render(u,!0,!1)),this._locked=!1,this._paused&&!y)return;this._time=S,this._totalTime=T,this._cycle=k,this._rawPrevTime=x}if(this._time!==u&&this._first||i||a||h){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")),u<=(p=this._time))for(s=this._first;s&&(r=s._next,p===this._time&&(!this._paused||y));)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(h===s&&this.pause(),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=r;else for(s=this._last;s&&(r=s._prev,p===this._time&&(!this._paused||y));){if(s._active||s._startTime<=u&&!s._paused&&!s._gc){if(h===s){for(h=s._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}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=r}this._onUpdate&&(e||(P.length&&A(),this._callback("onUpdate"))),o&&(this._locked||this._gc||(m===this._startTime||g!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(n&&(P.length&&A(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}else f!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate"))},n.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var s,n,r=[],o=this.getChildren(t,e,i),a=0,l=o.length;for(s=0;s<l;s++)(n=o[s]).isActive()&&(r[a++]=n);return r},n.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),s=i.length;for(e=0;e<s;e++)if(i[e].time>t)return i[e].name;return null},n.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},n.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},n.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()},n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},n.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)},n.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},n.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},n.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},n.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},i},!0),k=180/Math.PI,w=[],T=[],x=[],v={},i=_gsScope._gsDefine.globals,y=function(t,e,i,s){i===s&&(i=s-(s-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=s,this.da=s-t,this.ca=i-t,this.ba=e-t},S=function(t,e,i,s){var n={a:t},r={},o={},a={c:s},l=(t+e)/2,h=(e+i)/2,p=(i+s)/2,c=(l+h)/2,d=(h+p)/2,u=(d-c)/8;return n.b=l+(t-l)/4,r.b=c+u,n.c=r.a=(n.b+r.b)/2,r.c=o.a=(c+d)/2,o.b=d-u,a.b=p+(s-p)/4,o.c=a.a=(o.b+a.b)/2,[n,r,o,a]},_=function(t,e,i,s,n){var r,o,a,l,h,p,c,d,u,f,m,g,v,y=t.length-1,_=0,b=t[0].a;for(r=0;r<y;r++)o=(h=t[_]).a,a=h.d,l=t[_+1].d,n?(m=w[r],v=((g=T[r])+m)*e*.25/(s?.5:x[r]||.5),d=a-((p=a-(a-o)*(s?.5*e:0!==m?v/m:0))+(((c=a+(l-a)*(s?.5*e:0!==g?v/g:0))-p)*(3*m/(m+g)+.5)/4||0))):d=a-((p=a-(a-o)*e*.5)+(c=a+(l-a)*e*.5))/2,p+=d,c+=d,h.c=u=p,h.b=0!==r?b:b=h.a+.6*(h.c-h.a),h.da=a-o,h.ca=u-o,h.ba=b-o,i?(f=S(o,b,u,a),t.splice(_,1,f[0],f[1],f[2],f[3]),_+=4):_++,b=c;(h=t[_]).b=b,h.c=b+.4*(h.d-b),h.da=h.d-h.a,h.ca=h.c-h.a,h.ba=b-h.a,i&&(f=S(h.a,b,h.c,h.d),t.splice(_,1,f[0],f[1],f[2],f[3]))},b=function(t,e,i,s){var n,r,o,a,l,h,p=[];if(s)for(r=(t=[s].concat(t)).length;-1<--r;)"string"==typeof(h=t[r][e])&&"="===h.charAt(1)&&(t[r][e]=s[e]+Number(h.charAt(0)+h.substr(2)));if((n=t.length-2)<0)return p[0]=new y(t[0][e],0,0,t[n<-1?0:1][e]),p;for(r=0;r<n;r++)o=t[r][e],a=t[r+1][e],p[r]=new y(o,0,0,a),i&&(l=t[r+2][e],w[r]=(w[r]||0)+(a-o)*(a-o),T[r]=(T[r]||0)+(l-a)*(l-a));return p[r]=new y(t[r][e],0,0,t[r+1][e]),p},u=function(t,e,i,s,n,r){var o,a,l,h,p,c,d,u,f={},m=[],g=r||t[0];for(a in n="string"==typeof n?","+n+",":",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(u=t[t.length-1],d=!0,o=m.length;-1<--o;)if(a=m[o],.05<Math.abs(g[a]-u[a])){d=!1;break}d&&(t=t.concat(),r&&t.unshift(r),t.push(t[1]),r=t[t.length-3])}for(w.length=T.length=x.length=0,o=m.length;-1<--o;)a=m[o],v[a]=-1!==n.indexOf(","+a+","),f[a]=b(t,a,v[a],r);for(o=w.length;-1<--o;)w[o]=Math.sqrt(w[o]),T[o]=Math.sqrt(T[o]);if(!s){for(o=m.length;-1<--o;)if(v[a])for(c=(l=f[m[o]]).length-1,h=0;h<c;h++)p=l[h+1].da/T[h]+l[h].da/w[h]||0,x[h]=(x[h]||0)+p*p;for(o=x.length;-1<--o;)x[o]=Math.sqrt(x[o])}for(o=m.length,h=i?4:1;-1<--o;)l=f[a=m[o]],_(l,e,i,s,v[a]),d&&(l.splice(0,h),l.splice(l.length-h,h));return f},f=function(t,e,i){for(var s,n,r,o,a,l,h,p,c,d,u,f=1/i,m=t.length;-1<--m;)for(r=(d=t[m]).a,o=d.d-r,a=d.c-r,l=d.b-r,s=n=0,p=1;p<=i;p++)s=n-(n=((h=f*p)*h*o+3*(c=1-h)*(h*a+c*l))*h),e[u=m*i+p-1]=(e[u]||0)+s*s},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.6",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var s,n,r,o,a,l=e.values||[],h={},p=l[0],c=e.autoRotate||i.vars.orientToBezier;for(s in this._autoRotate=c?c instanceof Array?c:[["x","y","rotation",!0===c?0:Number(c)||0]]:null,p)this._props.push(s);for(r=this._props.length;-1<--r;)s=this._props[r],this._overwriteProps.push(s),n=this._func[s]="function"==typeof t[s],h[s]=n?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(t[s]),a||h[s]!==l[0][s]&&(a=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?u(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):function(t,e,i){var s,n,r,o,a,l,h,p,c,d,u,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(c in t[0])v.push(c);for(l=v.length;-1<--l;){for(f[c=v[l]]=a=[],d=0,p=t.length,h=0;h<p;h++)s=null==i?t[h][c]:"string"==typeof(u=t[h][c])&&"="===u.charAt(1)?i[c]+Number(u.charAt(0)+u.substr(2)):Number(u),g&&1<h&&h<p-1&&(a[d++]=(s+a[d-2])/2),a[d++]=s;for(p=d-m+1,h=d=0;h<p;h+=m)s=a[h],n=a[h+1],r=a[h+2],o=2===m?0:a[h+3],a[d++]=u=3===m?new y(s,n,r,o):new y(s,(2*n+s)/3,(2*n+r)/3,r);a.length=d}return f}(l,e.type,h),this._segCount=this._beziers[s].length,this._timeRes){var d=function(t,e){var i,s,n,r,o=[],a=[],l=0,h=0,p=(e=e>>0||6)-1,c=[],d=[];for(i in t)f(t[i],o,e);for(n=o.length,s=0;s<n;s++)l+=Math.sqrt(o[s]),d[r=s%e]=l,r===p&&(h+=l,c[r=s/e>>0]=d,a[r]=h,l=0,d=[]);return{length:h,lengths:a,segments:c}}(this._beziers,this._timeRes);this._length=d.length,this._lengths=d.lengths,this._segments=d.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(c=this._autoRotate)for(this._initialRotations=[],c[0]instanceof Array||(this._autoRotate=c=[c]),r=c.length;-1<--r;){for(o=0;o<3;o++)s=c[r][o],this._func[s]="function"==typeof t[s]&&t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)];s=c[r][2],this._initialRotations[r]=(this._func[s]?this._func[s].call(this._target):this._target[s])||0}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,s,n,r,o,a,l,h,p,c=this._segCount,d=this._func,u=this._target,f=t!==this._startRatio;if(this._timeRes){if(h=this._lengths,p=this._curSeg,t*=this._length,s=this._li,t>this._l2&&s<c-1){for(l=c-1;s<l&&(this._l2=h[++s])<=t;);this._l1=h[s-1],this._li=s,this._curSeg=p=this._segments[s],this._s2=p[this._s1=this._si=0]}else if(t<this._l1&&0<s){for(;0<s&&(this._l1=h[--s])>=t;);0===s&&t<this._l1?this._l1=0:s++,this._l2=h[s],this._li=s,this._curSeg=p=this._segments[s],this._s1=p[(this._si=p.length-1)-1]||0,this._s2=p[this._si]}if(e=s,t-=this._l1,s=this._si,t>this._s2&&s<p.length-1){for(l=p.length-1;s<l&&(this._s2=p[++s])<=t;);this._s1=p[s-1],this._si=s}else if(t<this._s1&&0<s){for(;0<s&&(this._s1=p[--s])>=t;);0===s&&t<this._s1?this._s1=0:s++,this._s2=p[s],this._si=s}o=(s+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else o=(t-(e=t<0?0:1<=t?c-1:c*t>>0)*(1/c))*c;for(i=1-o,s=this._props.length;-1<--s;)n=this._props[s],a=(o*o*(r=this._beziers[n][e]).da+3*i*(o*r.ca+i*r.ba))*o+r.a,this._round[n]&&(a=Math.round(a)),d[n]?u[n](a):u[n]=a;if(this._autoRotate){var m,g,v,y,_,b,w,T=this._autoRotate;for(s=T.length;-1<--s;)n=T[s][2],b=T[s][3]||0,w=!0===T[s][4]?1:k,r=this._beziers[T[s][0]],m=this._beziers[T[s][1]],r&&m&&(r=r[e],m=m[e],g=r.a+(r.b-r.a)*o,g+=((y=r.b+(r.c-r.b)*o)-g)*o,y+=(r.c+(r.d-r.c)*o-y)*o,v=m.a+(m.b-m.a)*o,v+=((_=m.b+(m.c-m.b)*o)-v)*o,_+=(m.c+(m.d-m.c)*o-_)*o,a=f?Math.atan2(_-v,y-g)*w+b:this._initialRotations[s],d[n]?u[n](a):u[n]=a)}}}),s=g.prototype,g.bezierThrough=u,g.cubicToQuadratic=S,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,u=e._parseToProxy,f=e._setPluginRatio,m=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,i,s,n,r){e instanceof Array&&(e={values:e}),r=new g;var o,a,l,h=e.values,p=h.length-1,c=[],d={};if(p<0)return n;for(o=0;o<=p;o++)l=u(t,h[o],s,n,r,p!==o),c[o]=l.end;for(a in e)d[a]=e[a];return d.values=c,(n=new m(t,"bezier",0,0,l.pt,2)).data=l,n.plugin=r,n.setRatio=f,0===d.autoRotate&&(d.autoRotate=!0),!d.autoRotate||d.autoRotate instanceof Array||(o=!0===d.autoRotate?0:Number(d.autoRotate),d.autoRotate=null!=l.end.left?[["left","top","rotation",o,!1]]:null!=l.end.x&&[["x","y","rotation",o,!1]]),d.autoRotate&&(s._transform||s._enableTransforms(!1),l.autoRotate=s._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0),r._onInitTween(l.proxy,d,s._tween),n}})}},s._roundProps=function(t,e){for(var i=this._overwriteProps,s=i.length;-1<--s;)(t[i[s]]||t.bezier||t.bezierThrough)&&(this._round[i[s]]=e)},s._kill=function(t){var e,i,s=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=s.length;-1<--i;)s[i]===e&&s.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(r,j){var f,x,S,u,X=function(){r.call(this,"css"),this._overwriteProps.length=0,this.setRatio=X.prototype.setRatio},h=_gsScope._gsDefine.globals,m={},t=X.prototype=new r("css");(t.constructor=X).version="1.18.5",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 P,g,v,z,y,C,e,i,A=/(?:\-|\.|\b)(\d|\.|e\-)+/g,E=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,p=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,M=/(?:\d|\-|\+|=|#|\.)*/g,D=/opacity *= *([^)]*)/i,b=/opacity:([^;]*)/i,o=/alpha\(opacity *=.+?\)/i,w=/^(rgb|hsl)/,a=/([A-Z])/g,l=/-([a-z])/gi,T=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,c=function(t,e){return e.toUpperCase()},k=/(?:Left|Right|Width)/i,d=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,F=/,(?=[^\)]*(?:\(|$))/gi,I=/[\s,\(]/i,$=Math.PI/180,Y=180/Math.PI,L={},R=document,s=function(t){return R.createElementNS?R.createElementNS("http://www.w3.org/1999/xhtml",t):R.createElement(t)},N=s("div"),B=s("img"),n=X._internals={_specialProps:m},H=navigator.userAgent,V=(e=H.indexOf("Android"),i=s("a"),v=-1!==H.indexOf("Safari")&&-1===H.indexOf("Chrome")&&(-1===e||3<Number(H.substr(e+8,1))),y=v&&Number(H.substr(H.indexOf("Version/")+8,1))<6,z=-1!==H.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(H)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(H))&&(C=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),W=function(t){return D.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},q=function(t){window.console&&console.log(t)},G="",U="",K=function(t,e){var i,s,n=(e=e||N).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],s=5;-1<--s&&void 0===n[i[s]+t];);return 0<=s?(G="-"+(U=3===s?"ms":i[s]).toLowerCase()+"-",U+t):null},Q=R.defaultView?R.defaultView.getComputedStyle:function(){},Z=X.getStyle=function(t,e,i,s,n){var r;return V||"opacity"!==e?(!s&&t.style[e]?r=t.style[e]:(i=i||Q(t))?r=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(a,"-$1").toLowerCase()):t.currentStyle&&(r=t.currentStyle[e]),null==n||r&&"none"!==r&&"auto"!==r&&"auto auto"!==r?r:n):W(t)},J=n.convertToPixels=function(t,e,i,s,n){if("px"===s||!s)return i;if("auto"===s||!i)return 0;var r,o,a,l=k.test(e),h=t,p=N.style,c=i<0,d=1===i;if(c&&(i=-i),d&&(i*=100),"%"===s&&-1!==e.indexOf("border"))r=i/100*(l?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+Z(t,"position")+";line-height:0;","%"!==s&&h.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)p[l?"borderLeftWidth":"borderTopWidth"]=i+s;else{if(o=(h=t.parentNode||R.body)._gsCache,a=j.ticker.frame,o&&l&&o.time===a)return o.width*i/100;p[l?"width":"height"]=i+s}h.appendChild(N),r=parseFloat(N[l?"offsetWidth":"offsetHeight"]),h.removeChild(N),l&&"%"===s&&!1!==X.cacheWidths&&((o=h._gsCache=h._gsCache||{}).time=a,o.width=r/i*100),0!==r||n||(r=J(t,e,i,s,!0))}return d&&(r/=100),c?-r:r},tt=n.calculateOffset=function(t,e,i){if("absolute"!==Z(t,"position",i))return 0;var s="left"===e?"Left":"Top",n=Z(t,"margin"+s,i);return t["offset"+s]-(J(t,e,parseFloat(n),n.replace(M,""))||0)},et=function(t,e){var i,s,n,r={};if(e=e||Q(t,null))if(i=e.length)for(;-1<--i;)(-1===(n=e[i]).indexOf("-transform")||Ot===n)&&(r[n.replace(l,c)]=e.getPropertyValue(n));else for(i in e)(-1===i.indexOf("Transform")||Dt===i)&&(r[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(l,c)]=e[i]);return V||(r.opacity=W(t)),s=Ht(t,e,!1),r.rotation=s.rotation,r.skewX=s.skewX,r.scaleX=s.scaleX,r.scaleY=s.scaleY,r.x=s.x,r.y=s.y,It&&(r.z=s.z,r.rotationX=s.rotationX,r.rotationY=s.rotationY,r.scaleZ=s.scaleZ),r.filters&&delete r.filters,r},it=function(t,e,i,s,n){var r,o,a,l={},h=t.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(r=i[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"==typeof r||"string"==typeof r)&&(l[o]="auto"!==r||"left"!==o&&"top"!==o?""!==r&&"auto"!==r&&"none"!==r||"string"!=typeof e[o]||""===e[o].replace(p,"")?r:0:tt(t,o),void 0!==h[o]&&(a=new vt(h,o,h[o],a)));if(s)for(o in s)"className"!==o&&(l[o]=s[o]);return{difs:l,firstMPT:a}},st={width:["Left","Right"],height:["Top","Bottom"]},nt=["marginLeft","marginRight","marginTop","marginBottom"],rt=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Q(t))[e]||0;if(t.getBBox&&Xt(t))return t.getBBox()[e]||0;var s=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=st[e],r=n.length;for(i=i||Q(t,null);-1<--r;)s-=parseFloat(Z(t,"padding"+n[r],i,!0))||0,s-=parseFloat(Z(t,"border"+n[r]+"Width",i,!0))||0;return s},ot=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,s=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":s[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":s[1];if(3<s.length&&!e){for(s=t.split(", ").join(",").split(","),t=[],i=0;i<s.length;i++)t.push(ot(s[i]));return t.join(",")}return null==r?r="center"===n?"50%":"0":"center"===r&&(r="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+r+(2<s.length?" "+s[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(n.replace(p,"")),e.oy=parseFloat(r.replace(p,"")),e.v=t),e||t},at=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ht=function(t,e,i,s){var n,r,o,a,l;return null==t?a=e:"number"==typeof t?a=t:(n=360,r=t.split("_"),o=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:Y)-(l?0:e),r.length&&(s&&(s[i]=e+o),-1!==t.indexOf("short")&&((o%=n)!==o%180&&(o=o<0?o+n:o-n)),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%n-(o/n|0)*n:-1!==t.indexOf("ccw")&&0<o&&(o=(o-3599999999640)%n-(o/n|0)*n)),a=e+o),a<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]},ct=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},dt=X.parseColor=function(t,e){var i,s,n,r,o,a,l,h,p,c,d;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="#"+(s=t.charAt(1))+s+(n=t.charAt(2))+n+(r=t.charAt(3))+r),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(A),e){if(-1!==t.indexOf("="))return t.match(E)}else o=Number(i[0])%360/360,a=Number(i[1])/100,s=2*(l=Number(i[2])/100)-(n=l<=.5?l*(a+1):l+a-l*a),3<i.length&&(i[3]=Number(t[3])),i[0]=ct(o+1/3,s,n),i[1]=ct(o,s,n),i[2]=ct(o-1/3,s,n);else i=t.match(A)||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&&!d&&(s=i[0]/255,n=i[1]/255,r=i[2]/255,l=((h=Math.max(s,n,r))+(p=Math.min(s,n,r)))/2,h===p?o=a=0:(c=h-p,a=.5<l?c/(2-h-p):c/(h+p),o=h===s?(n-r)/c+(n<r?6:0):h===n?(r-s)/c+2:(s-n)/c+4,o*=60),i[0]=o+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},ut=function(t,e){var i,s,n,r=t.match(ft)||[],o=0,a=r.length?"":t;for(i=0;i<r.length;i++)s=r[i],o+=(n=t.substr(o,t.indexOf(s,o)-o)).length+s.length,3===(s=dt(s,e)).length&&s.push(1),a+=n+(e?"hsla("+s[0]+","+s[1]+"%,"+s[2]+"%,"+s[3]:"rgba("+s.join(","))+")";return a+t.substr(o)},ft="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in pt)ft+="|"+t+"\\b";ft=new RegExp(ft+")","gi"),X.colorStringFilter=function(t){var e,i=t[0]+t[1];ft.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ut(t[0],e),t[1]=ut(t[1],e)),ft.lastIndex=0},j.defaultStringFilter||(j.defaultStringFilter=X.colorStringFilter);var mt=function(t,e,r,o){if(null==t)return function(t){return t};var a,l=e?(t.match(ft)||[""])[0]:"",h=t.split(l).join("").match(_)||[],p=t.substr(0,t.indexOf(h[0])),c=")"===t.charAt(t.length-1)?")":"",d=-1!==t.indexOf(" ")?" ":",",u=h.length,f=0<u?h[0].replace(A,""):"";return u?a=e?function(t){var e,i,s,n;if("number"==typeof t)t+=f;else if(o&&F.test(t)){for(n=t.replace(F,"|").split("|"),s=0;s<n.length;s++)n[s]=a(n[s]);return n.join(",")}if(e=(t.match(ft)||[l])[0],s=(i=t.split(e).join("").match(_)||[]).length,u>s--)for(;++s<u;)i[s]=r?i[(s-1)/2|0]:h[s];return p+i.join(d)+d+e+c+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,s;if("number"==typeof t)t+=f;else if(o&&F.test(t)){for(i=t.replace(F,"|").split("|"),s=0;s<i.length;s++)i[s]=a(i[s]);return i.join(",")}if(s=(e=t.match(_)||[]).length,u>s--)for(;++s<u;)e[s]=r?e[(s-1)/2|0]:h[s];return p+e.join(d)+c}:function(t){return t}},gt=function(h){return h=h.split(","),function(t,e,i,s,n,r,o){var a,l=(e+"").split(" ");for(o={},a=0;a<4;a++)o[h[a]]=l[a]=l[a]||l[(a-1)/2>>0];return s.parse(t,o,n,r)}},vt=(n._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,s,n,r,o=this.data,a=o.proxy,l=o.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(o.autoRotate&&(o.autoRotate.rotation=a.rotation),1===t||0===t)for(l=o.firstMPT,r=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,s=1;s<i.l;s++)n+=i["xn"+s]+i["xs"+(s+1)];i[r]=n}}else i[r]=i.s+i.xs0;l=l._next}},function(t,e,i,s,n){this.t=t,this.p=e,this.v=i,this.r=n,s&&((s._prev=this)._next=s)}),yt=(n._parseToProxy=function(t,e,i,s,n,r){var o,a,l,h,p,c=s,d={},u={},f=i._transform,m=L;for(i._transform=null,L=e,s=p=i.parse(t,e,s,n),L=m,r&&(i._transform=f,c&&(c._prev=null,c._prev&&(c._prev._next=null)));s&&s!==c;){if(s.type<=1&&(u[a=s.p]=s.s+s.c,d[a]=s.s,r||(h=new vt(s,"s",a,h,s.r),s.c=0),1===s.type))for(o=s.l;0<--o;)l="xn"+o,u[a=s.p+"_"+l]=s.data[l],d[a]=s[l],r||(h=new vt(s,l,a,h,s.rxp[l]));s=s._next}return{proxy:d,end:u,firstMPT:h,pt:p}},n.CSSPropTween=function(t,e,i,s,n,r,o,a,l,h,p){this.t=t,this.p=e,this.s=i,this.c=s,this.n=o||e,t instanceof yt||u.push(this.n),this.r=a,this.type=r||0,l&&(this.pr=l,f=!0),this.b=void 0===h?i:h,this.e=void 0===p?i+s:p,n&&((this._next=n)._prev=this)}),_t=function(t,e,i,s,n,r){var o=new yt(t,e,i,s-i,n,-1,r);return o.b=i,o.e=o.xs0=s,o},bt=X.parseComplex=function(t,e,i,s,n,r,o,a,l,h){o=new yt(t,e,0,0,o,h?2:1,null,!1,a,i=i||r||"",s),s+="",n&&ft.test(s+i)&&(s=[i,s],X.colorStringFilter(s),i=s[0],s=s[1]);var p,c,d,u,f,m,g,v,y,_,b,w,T,k=i.split(", ").join(",").split(" "),x=s.split(", ").join(",").split(" "),S=k.length,C=!1!==P;for((-1!==s.indexOf(",")||-1!==i.indexOf(","))&&(k=k.join(" ").replace(F,", ").split(" "),x=x.join(" ").replace(F,", ").split(" "),S=k.length),S!==x.length&&(S=(k=(r||"").split(" ")).length),o.plugin=l,o.setRatio=h,p=ft.lastIndex=0;p<S;p++)if(u=k[p],f=x[p],(v=parseFloat(u))||0===v)o.appendXtra("",v,at(f,v),f.replace(E,""),C&&-1!==f.indexOf("px"),!0);else if(n&&ft.test(u))w=")"+((w=f.indexOf(")")+1)?f.substr(w):""),T=-1!==f.indexOf("hsl")&&V,u=dt(u,T),f=dt(f,T),(y=6<u.length+f.length)&&!V&&0===f[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(x[p]).join("transparent")):(V||(y=!1),T?o.appendXtra(y?"hsla(":"hsl(",u[0],at(f[0],u[0]),",",!1,!0).appendXtra("",u[1],at(f[1],u[1]),"%,",!1).appendXtra("",u[2],at(f[2],u[2]),y?"%,":"%"+w,!1):o.appendXtra(y?"rgba(":"rgb(",u[0],f[0]-u[0],",",!0,!0).appendXtra("",u[1],f[1]-u[1],",",!0).appendXtra("",u[2],f[2]-u[2],y?",":w,!0),y&&(u=u.length<4?1:u[3],o.appendXtra("",u,(f.length<4?1:f[3])-u,w,!1))),ft.lastIndex=0;else if(m=u.match(A)){if(!(g=f.match(E))||g.length!==m.length)return o;for(c=d=0;c<m.length;c++)b=m[c],_=u.indexOf(b,d),o.appendXtra(u.substr(d,_-d),Number(b),at(g[c],b),"",C&&"px"===u.substr(_+b.length,2),0===c),d=_+b.length;o["xs"+o.l]+=u.substr(d)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+f:f;if(-1!==s.indexOf("=")&&o.data){for(w=o.xs0+o.data.s,p=1;p<o.l;p++)w+=o["xs"+p]+o.data["xn"+p];o.e=w+o["xs"+p]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},wt=9;for((t=yt.prototype).l=t.pr=0;0<--wt;)t["xn"+wt]=0,t["xs"+wt]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,s,n,r){var o=this,a=o.l;return o["xs"+a]+=r&&(a||o["xs"+a])?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=s||"",0<a?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=n,o["xn"+a]=e,o.plugin||(o.xfirst=new yt(o,"xn"+a,e,i,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0)):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=n)):o["xs"+a]+=e+(s||""),o};var Tt=function(t,e){e=e||{},this.p=e.prefix&&K(t)||t,m[t]=m[this.p]=this,this.format=e.formatter||mt(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},kt=n._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var s,n=t.split(","),r=e.defaultValue;for(i=i||[r],s=0;s<n.length;s++)e.prefix=0===s&&e.prefix,e.defaultValue=i[s]||r,new Tt(n[s],e)},xt=function(t){if(!m[t]){var l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";kt(t,{parser:function(t,e,i,s,n,r,o){var a=h.com.greensock.plugins[l];return a?(a._cssRegister(),m[i].parse(t,e,i,s,n,r,o)):(q("Error: "+l+" js file not loaded."),n)}})}};(t=Tt.prototype).parseComplex=function(t,e,i,s,n,r){var o,a,l,h,p,c,d=this.keyword;if(this.multi&&(F.test(i)||F.test(e)?(a=e.replace(F,"|").split("|"),l=i.replace(F,"|").split("|")):d&&(a=[e],l=[i])),l){for(h=l.length>a.length?l.length:a.length,o=0;o<h;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,d&&((p=e.indexOf(d))!==(c=i.indexOf(d))&&(-1===c?a[o]=a[o].split(d).join(""):-1===p&&(a[o]+=" "+d)));e=a.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,s,this.pr,n,r)},t.parse=function(t,e,i,s,n,r,o){return this.parseComplex(t.style,this.format(Z(t,this.p,S,!1,this.dflt)),this.format(e),n,r)},X.registerSpecialProp=function(t,l,h){kt(t,{parser:function(t,e,i,s,n,r,o){var a=new yt(t,i,0,0,n,2,i,!1,h);return a.plugin=r,a.setRatio=l(t,e,s._tween,i),a},priority:h})},X.useSVGTransformAttr=v||z;var St,Ct,Pt,At,Et,Mt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Dt=K("transform"),Ot=G+"transform",Ft=K("transformOrigin"),It=null!==K("perspective"),Lt=n.Transform=function(){this.perspective=parseFloat(X.defaultTransformPerspective)||0,this.force3D=!(!1===X.defaultForce3D||!It)&&(X.defaultForce3D||"auto")},Rt=window.SVGElement,Nt=function(t,e,i){var s,n=R.createElementNS("http://www.w3.org/2000/svg",t),r=/([a-z])([A-Z])/g;for(s in i)n.setAttributeNS(null,s.replace(r,"$1-$2").toLowerCase(),i[s]);return e.appendChild(n),n},zt=R.documentElement,$t=(Et=C||/Android/i.test(H)&&!window.chrome,R.createElementNS&&!Et&&(Ct=Nt("svg",zt),At=(Pt=Nt("rect",Ct,{width:100,height:50,x:100})).getBoundingClientRect().width,Pt.style[Ft]="50% 50%",Pt.style[Dt]="scaleX(0.5)",Et=At===Pt.getBoundingClientRect().width&&!(z&&It),zt.removeChild(Ct)),Et),jt=function(t,e,i,s,n,r){var o,a,l,h,p,c,d,u,f,m,g,v,y,_,b=t._gsTransform,w=Bt(t,!0);b&&(y=b.xOrigin,_=b.yOrigin),(!s||(o=s.split(" ")).length<2)&&(d=t.getBBox(),o=[(-1!==(e=ot(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*d.width:parseFloat(e[0]))+d.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*d.height:parseFloat(e[1]))+d.y]),i.xOrigin=h=parseFloat(o[0]),i.yOrigin=p=parseFloat(o[1]),s&&w!==Yt&&(c=w[0],d=w[1],u=w[2],f=w[3],m=w[4],a=h*(f/(v=c*f-d*u))+p*(-u/v)+(u*(g=w[5])-f*m)/v,l=h*(-d/v)+p*(c/v)-(c*g-d*m)/v,h=i.xOrigin=o[0]=a,p=i.yOrigin=o[1]=l),b&&(r&&(i.xOffset=b.xOffset,i.yOffset=b.yOffset,b=i),n||!1!==n&&!1!==X.defaultSmoothOrigin?(a=h-y,l=p-_,b.xOffset+=a*w[0]+l*w[2]-a,b.yOffset+=a*w[1]+l*w[3]-l):b.xOffset=b.yOffset=0),r||t.setAttribute("data-svg-origin",o.join(" "))},Xt=function(t){return!!(Rt&&t.getBBox&&t.getCTM&&function(t){try{return t.getBBox()}catch(t){}}(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Yt=[1,0,0,1,0,0],Bt=function(t,e){var i,s,n,r,o,a,l=t._gsTransform||new Lt,h=t.style;if(Dt?s=Z(t,Ot,null,!0):t.currentStyle&&(s=(s=t.currentStyle.filter.match(d))&&4===s.length?[s[0].substr(4),Number(s[2].substr(4)),Number(s[1].substr(4)),s[3].substr(4),l.x||0,l.y||0].join(","):""),(i=!s||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s)&&Dt&&((a="none"===Q(t).display)||!t.parentNode)&&(a&&(r=h.display,h.display="block"),t.parentNode||(o=1,zt.appendChild(t)),i=!(s=Z(t,Ot,null,!0))||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s,r?h.display=r:a&&Gt(h,"display"),o&&zt.removeChild(t)),(l.svg||t.getBBox&&Xt(t))&&(i&&-1!==(h[Dt]+"").indexOf("matrix")&&(s=h[Dt],i=0),n=t.getAttribute("transform"),i&&n&&(-1!==n.indexOf("matrix")?(s=n,i=0):-1!==n.indexOf("translate")&&(s="matrix(1,0,0,1,"+n.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Yt;for(n=(s||"").match(A)||[],wt=n.length;-1<--wt;)r=Number(n[wt]),n[wt]=(o=r-(r|=0))?(1e5*o+(o<0?-.5:.5)|0)/1e5+r:r;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Ht=n.getTransform=function(t,e,i,s){if(t._gsTransform&&i&&!s)return t._gsTransform;var n,r,o,a,l,h,p=i&&t._gsTransform||new Lt,c=p.scaleX<0,d=It&&(parseFloat(Z(t,Ft,e,!1,"0 0 0").split(" ")[2])||p.zOrigin)||0,u=parseFloat(X.defaultTransformPerspective)||0;if(p.svg=!(!t.getBBox||!Xt(t)),p.svg&&(jt(t,Z(t,Ft,e,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),St=X.useSVGTransformAttr||$t),(n=Bt(t))!==Yt){if(16===n.length){var f,m,g,v,y,_=n[0],b=n[1],w=n[2],T=n[3],k=n[4],x=n[5],S=n[6],C=n[7],P=n[8],A=n[9],E=n[10],M=n[12],D=n[13],O=n[14],F=n[11],I=Math.atan2(S,E);p.zOrigin&&(M=P*(O=-p.zOrigin)-n[12],D=A*O-n[13],O=E*O+p.zOrigin-n[14]),p.rotationX=I*Y,I&&(f=k*(v=Math.cos(-I))+P*(y=Math.sin(-I)),m=x*v+A*y,g=S*v+E*y,P=k*-y+P*v,A=x*-y+A*v,E=S*-y+E*v,F=C*-y+F*v,k=f,x=m,S=g),I=Math.atan2(-w,E),p.rotationY=I*Y,I&&(m=b*(v=Math.cos(-I))-A*(y=Math.sin(-I)),g=w*v-E*y,A=b*y+A*v,E=w*y+E*v,F=T*y+F*v,_=f=_*v-P*y,b=m,w=g),I=Math.atan2(b,_),p.rotation=I*Y,I&&(_=_*(v=Math.cos(-I))+k*(y=Math.sin(-I)),m=b*v+x*y,x=b*-y+x*v,S=w*-y+S*v,b=m),p.rotationX&&359.9<Math.abs(p.rotationX)+Math.abs(p.rotation)&&(p.rotationX=p.rotation=0,p.rotationY=180-p.rotationY),p.scaleX=(1e5*Math.sqrt(_*_+b*b)+.5|0)/1e5,p.scaleY=(1e5*Math.sqrt(x*x+A*A)+.5|0)/1e5,p.scaleZ=(1e5*Math.sqrt(S*S+E*E)+.5|0)/1e5,p.rotationX||p.rotationY?p.skewX=0:(p.skewX=k||x?Math.atan2(k,x)*Y+p.rotation:p.skewX||0,90<Math.abs(p.skewX)&&Math.abs(p.skewX)<270&&(c?(p.scaleX*=-1,p.skewX+=p.rotation<=0?180:-180,p.rotation+=p.rotation<=0?180:-180):(p.scaleY*=-1,p.skewX+=p.skewX<=0?180:-180))),p.perspective=F?1/(F<0?-F:F):0,p.x=M,p.y=D,p.z=O,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*_-p.yOrigin*k),p.y-=p.yOrigin-(p.yOrigin*b-p.xOrigin*x))}else if(!It||s||!n.length||p.x!==n[4]||p.y!==n[5]||!p.rotationX&&!p.rotationY){var L=6<=n.length,R=L?n[0]:1,N=n[1]||0,z=n[2]||0,$=L?n[3]:1;p.x=n[4]||0,p.y=n[5]||0,o=Math.sqrt(R*R+N*N),a=Math.sqrt($*$+z*z),l=R||N?Math.atan2(N,R)*Y:p.rotation||0,h=z||$?Math.atan2(z,$)*Y+l:p.skewX||0,90<Math.abs(h)&&Math.abs(h)<270&&(c?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,h+=h<=0?180:-180)),p.scaleX=o,p.scaleY=a,p.rotation=l,p.skewX=h,It&&(p.rotationX=p.rotationY=p.z=0,p.perspective=u,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*R+p.yOrigin*z),p.y-=p.yOrigin-(p.xOrigin*N+p.yOrigin*$))}for(r in p.zOrigin=d,p)p[r]<2e-5&&-2e-5<p[r]&&(p[r]=0)}return i&&((t._gsTransform=p).svg&&(St&&t.style[Dt]?j.delayedCall(.001,function(){Gt(t.style,Dt)}):!St&&t.getAttribute("transform")&&j.delayedCall(.001,function(){t.removeAttribute("transform")}))),p},Vt=function(t){var e,i,s=this.data,n=-s.rotation*$,r=n+s.skewX*$,o=1e5,a=(Math.cos(n)*s.scaleX*o|0)/o,l=(Math.sin(n)*s.scaleX*o|0)/o,h=(Math.sin(r)*-s.scaleY*o|0)/o,p=(Math.cos(r)*s.scaleY*o|0)/o,c=this.t.style,d=this.t.currentStyle;if(d){i=l,l=-h,h=-i,e=d.filter,c.filter="";var u,f,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==d.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+h+", M22="+p,_=s.x+m*s.xPercent/100,b=s.y+g*s.yPercent/100;if(null!=s.ox&&(_+=(u=(s.oxp?m*s.ox*.01:s.ox)-m/2)-(u*a+(f=(s.oyp?g*s.oy*.01:s.oy)-g/2)*l),b+=f-(u*h+f*p)),v?y+=", Dx="+((u=m/2)-(u*a+(f=g/2)*l)+_)+", Dy="+(f-(u*h+f*p)+b)+")":y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=e.replace(O,y):c.filter=y+" "+e,(0===t||1===t)&&1===a&&0===l&&0===h&&1===p&&(v&&-1===y.indexOf("Dx=0, Dy=0")||D.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!v){var w,T,k,x=C<8?1:-1;for(u=s.ieOffsetX||0,f=s.ieOffsetY||0,s.ieOffsetX=Math.round((m-((a<0?-a:a)*m+(l<0?-l:l)*g))/2+_),s.ieOffsetY=Math.round((g-((p<0?-p:p)*g+(h<0?-h:h)*m))/2+b),wt=0;wt<4;wt++)k=(i=-1!==(w=d[T=nt[wt]]).indexOf("px")?parseFloat(w):J(this.t,T,parseFloat(w),w.replace(M,""))||0)!==s[T]?wt<2?-s.ieOffsetX:-s.ieOffsetY:wt<2?u-s.ieOffsetX:f-s.ieOffsetY,c[T]=(s[T]=Math.round(i-k*(0===wt||2===wt?1:x)))+"px"}}},Wt=n.set3DTransformRatio=n.setTransformRatio=function(t){var e,i,s,n,r,o,a,l,h,p,c,d,u,f,m,g,v,y,_,b,w,T,k,x=this.data,S=this.t.style,C=x.rotation,P=x.rotationX,A=x.rotationY,E=x.scaleX,M=x.scaleY,D=x.scaleZ,O=x.x,F=x.y,I=x.z,L=x.svg,R=x.perspective,N=x.force3D;if(!((1!==t&&0!==t||"auto"!==N||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&N||I||R||A||P||1!==D)||St&&L||!It)C||x.skewX||L?(C*=$,T=x.skewX*$,k=1e5,e=Math.cos(C)*E,n=Math.sin(C)*E,i=Math.sin(C-T)*-M,r=Math.cos(C-T)*M,T&&"simple"===x.skewType&&(v=Math.tan(T),i*=v=Math.sqrt(1+v*v),r*=v,x.skewY&&(e*=v,n*=v)),L&&(O+=x.xOrigin-(x.xOrigin*e+x.yOrigin*i)+x.xOffset,F+=x.yOrigin-(x.xOrigin*n+x.yOrigin*r)+x.yOffset,St&&(x.xPercent||x.yPercent)&&(f=this.t.getBBox(),O+=.01*x.xPercent*f.width,F+=.01*x.yPercent*f.height),O<(f=1e-6)&&-f<O&&(O=0),F<f&&-f<F&&(F=0)),_=(e*k|0)/k+","+(n*k|0)/k+","+(i*k|0)/k+","+(r*k|0)/k+","+O+","+F+")",L&&St?this.t.setAttribute("transform","matrix("+_):S[Dt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+_):S[Dt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+M+","+O+","+F+")";else{if(z&&(E<(f=1e-4)&&-f<E&&(E=D=2e-5),M<f&&-f<M&&(M=D=2e-5),!R||x.z||x.rotationX||x.rotationY||(R=0)),C||x.skewX)C*=$,m=e=Math.cos(C),g=n=Math.sin(C),x.skewX&&(C-=x.skewX*$,m=Math.cos(C),g=Math.sin(C),"simple"===x.skewType&&(v=Math.tan(x.skewX*$),m*=v=Math.sqrt(1+v*v),g*=v,x.skewY&&(e*=v,n*=v))),i=-g,r=m;else{if(!(A||P||1!==D||R||L))return void(S[Dt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+O+"px,"+F+"px,"+I+"px)"+(1!==E||1!==M?" scale("+E+","+M+")":""));e=r=1,i=n=0}h=1,s=o=a=l=p=c=0,d=R?-1/R:0,u=x.zOrigin,f=1e-6,b=",",w="0",(C=A*$)&&(m=Math.cos(C),p=d*(a=-(g=Math.sin(C))),s=e*g,o=n*g,d*=h=m,e*=m,n*=m),(C=P*$)&&(v=i*(m=Math.cos(C))+s*(g=Math.sin(C)),y=r*m+o*g,l=h*g,c=d*g,s=i*-g+s*m,o=r*-g+o*m,h*=m,d*=m,i=v,r=y),1!==D&&(s*=D,o*=D,h*=D,d*=D),1!==M&&(i*=M,r*=M,l*=M,c*=M),1!==E&&(e*=E,n*=E,a*=E,p*=E),(u||L)&&(u&&(O+=s*-u,F+=o*-u,I+=h*-u+u),L&&(O+=x.xOrigin-(x.xOrigin*e+x.yOrigin*i)+x.xOffset,F+=x.yOrigin-(x.xOrigin*n+x.yOrigin*r)+x.yOffset),O<f&&-f<O&&(O=w),F<f&&-f<F&&(F=w),I<f&&-f<I&&(I=0)),_=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",_+=(e<f&&-f<e?w:e)+b+(n<f&&-f<n?w:n)+b+(a<f&&-f<a?w:a),_+=b+(p<f&&-f<p?w:p)+b+(i<f&&-f<i?w:i)+b+(r<f&&-f<r?w:r),P||A||1!==D?(_+=b+(l<f&&-f<l?w:l)+b+(c<f&&-f<c?w:c)+b+(s<f&&-f<s?w:s),_+=b+(o<f&&-f<o?w:o)+b+(h<f&&-f<h?w:h)+b+(d<f&&-f<d?w:d)+b):_+=",0,0,0,0,1,0,",_+=O+b+F+b+I+b+(R?1+-I/R:1)+")",S[Dt]=_}};(t=Lt.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,kt("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,s,n,r,o){if(s._lastParsedTransform===o)return n;s._lastParsedTransform=o;var a,l,h,p,c,d,u,f,m,g=t._gsTransform,v=t.style,y=Mt.length,_=o,b={},w="transformOrigin",T=Ht(t,S,!0,o.parseTransform);if(s._transform=T,"string"==typeof _.transform&&Dt)(l=N.style)[Dt]=_.transform,l.display="block",l.position="absolute",R.body.appendChild(N),a=Ht(N,null,!1),T.svg&&(u=T.xOrigin,f=T.yOrigin,a.x-=T.xOffset,a.y-=T.yOffset,(_.transformOrigin||_.svgOrigin)&&(h={},jt(t,ot(_.transformOrigin),h,_.svgOrigin,_.smoothOrigin,!0),u=h.xOrigin,f=h.yOrigin,a.x-=h.xOffset-T.xOffset,a.y-=h.yOffset-T.yOffset),(u||f)&&(m=Bt(N,!0),a.x-=u-(u*m[0]+f*m[2]),a.y-=f-(u*m[1]+f*m[3]))),R.body.removeChild(N),a.perspective||(a.perspective=T.perspective),null!=_.xPercent&&(a.xPercent=lt(_.xPercent,T.xPercent)),null!=_.yPercent&&(a.yPercent=lt(_.yPercent,T.yPercent));else if("object"==typeof _){if(a={scaleX:lt(null!=_.scaleX?_.scaleX:_.scale,T.scaleX),scaleY:lt(null!=_.scaleY?_.scaleY:_.scale,T.scaleY),scaleZ:lt(_.scaleZ,T.scaleZ),x:lt(_.x,T.x),y:lt(_.y,T.y),z:lt(_.z,T.z),xPercent:lt(_.xPercent,T.xPercent),yPercent:lt(_.yPercent,T.yPercent),perspective:lt(_.transformPerspective,T.perspective)},null!=(d=_.directionalRotation))if("object"==typeof d)for(l in d)_[l]=d[l];else _.rotation=d;"string"==typeof _.x&&-1!==_.x.indexOf("%")&&(a.x=0,a.xPercent=lt(_.x,T.xPercent)),"string"==typeof _.y&&-1!==_.y.indexOf("%")&&(a.y=0,a.yPercent=lt(_.y,T.yPercent)),a.rotation=ht("rotation"in _?_.rotation:"shortRotation"in _?_.shortRotation+"_short":"rotationZ"in _?_.rotationZ:T.rotation-T.skewY,T.rotation-T.skewY,"rotation",b),It&&(a.rotationX=ht("rotationX"in _?_.rotationX:"shortRotationX"in _?_.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",b),a.rotationY=ht("rotationY"in _?_.rotationY:"shortRotationY"in _?_.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",b)),a.skewX=ht(_.skewX,T.skewX-T.skewY),(a.skewY=ht(_.skewY,T.skewY))&&(a.skewX+=a.skewY,a.rotation+=a.skewY)}for(It&&null!=_.force3D&&(T.force3D=_.force3D,c=!0),T.skewType=_.skewType||T.skewType||X.defaultSkewType,(p=T.force3D||T.z||T.rotationX||T.rotationY||a.z||a.rotationX||a.rotationY||a.perspective)||null==_.scale||(a.scaleZ=1);-1<--y;)(1e-6<(h=a[i=Mt[y]]-T[i])||h<-1e-6||null!=_[i]||null!=L[i])&&(c=!0,n=new yt(T,i,T[i],h,n),i in b&&(n.e=b[i]),n.xs0=0,n.plugin=r,s._overwriteProps.push(n.n));return h=_.transformOrigin,T.svg&&(h||_.svgOrigin)&&(u=T.xOffset,f=T.yOffset,jt(t,ot(h),a,_.svgOrigin,_.smoothOrigin),n=_t(T,"xOrigin",(g?T:a).xOrigin,a.xOrigin,n,w),n=_t(T,"yOrigin",(g?T:a).yOrigin,a.yOrigin,n,w),(u!==T.xOffset||f!==T.yOffset)&&(n=_t(T,"xOffset",g?u:T.xOffset,T.xOffset,n,w),n=_t(T,"yOffset",g?f:T.yOffset,T.yOffset,n,w)),h=St?null:"0px 0px"),(h||It&&p&&T.zOrigin)&&(Dt?(c=!0,i=Ft,h=(h||Z(t,i,S,!1,"50% 50%"))+"",(n=new yt(v,i,0,0,n,-1,w)).b=v[i],n.plugin=r,It?(l=T.zOrigin,h=h.split(" "),T.zOrigin=(2<h.length&&(0===l||"0px"!==h[2])?parseFloat(h[2]):l)||0,n.xs0=n.e=h[0]+" "+(h[1]||"50%")+" 0px",(n=new yt(T,"zOrigin",0,0,n,-1,n.n)).b=l,n.xs0=n.e=T.zOrigin):n.xs0=n.e=h):ot(h+"",T)),c&&(s._transformType=T.svg&&St||!p&&3!==this._transformType?2:3),n},prefix:!0}),kt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),kt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,n,r){e=this.format(e);var o,a,l,h,p,c,d,u,f,m,g,v,y,_,b,w,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],k=t.style;for(f=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),a=0;a<T.length;a++)this.p.indexOf("border")&&(T[a]=K(T[a])),-1!==(p=h=Z(t,T[a],S,!1,"0px")).indexOf(" ")&&(p=(h=p.split(" "))[0],h=h[1]),c=l=o[a],d=parseFloat(p),v=p.substr((d+"").length),(y="="===c.charAt(1))?(u=parseInt(c.charAt(0)+"1",10),c=c.substr(2),u*=parseFloat(c),g=c.substr((u+"").length-(u<0?1:0))||""):(u=parseFloat(c),g=c.substr((u+"").length)),""===g&&(g=x[i]||v),g!==v&&(_=J(t,"borderLeft",d,v),b=J(t,"borderTop",d,v),"%"===g?(p=_/f*100+"%",h=b/m*100+"%"):"em"===g?(p=_/(w=J(t,"borderLeft",1,"em"))+"em",h=b/w+"em"):(p=_+"px",h=b+"px"),y&&(c=parseFloat(p)+u+g,l=parseFloat(h)+u+g)),n=bt(k,T[a],p+" "+h,c+" "+l,!1,"0px",n);return n},prefix:!0,formatter:mt("0px 0px 0px 0px",!1,!0)}),kt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,s,n,r){return bt(t.style,i,this.format(Z(t,i,S,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:mt("0px 0px",!1,!0)}),kt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,s,n,r){var o,a,l,h,p,c,d="background-position",u=S||Q(t,null),f=this.format((u?C?u.getPropertyValue(d+"-x")+" "+u.getPropertyValue(d+"-y"):u.getPropertyValue(d):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),m=this.format(e);if(-1!==f.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&((c=Z(t,"backgroundImage").replace(T,""))&&"none"!==c)){for(o=f.split(" "),a=m.split(" "),B.setAttribute("src",c),l=2;-1<--l;)(h=-1!==(f=o[l]).indexOf("%"))!==(-1!==a[l].indexOf("%"))&&(p=0===l?t.offsetWidth-B.width:t.offsetHeight-B.height,o[l]=h?parseFloat(f)/100*p+"px":parseFloat(f)/p*100+"%");f=o.join(" ")}return this.parseComplex(t.style,f,m,n,r)},formatter:ot}),kt("backgroundSize",{defaultValue:"0 0",formatter:ot}),kt("perspective",{defaultValue:"0px",prefix:!0}),kt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),kt("transformStyle",{prefix:!0}),kt("backfaceVisibility",{prefix:!0}),kt("userSelect",{prefix:!0}),kt("margin",{parser:gt("marginTop,marginRight,marginBottom,marginLeft")}),kt("padding",{parser:gt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),kt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,s,n,r){var o,a,l;return C<9?(a=t.currentStyle,l=C<8?" ":",",o="rect("+a.clipTop+l+a.clipRight+l+a.clipBottom+l+a.clipLeft+")",e=this.format(e).split(",").join(l)):(o=this.format(Z(t,this.p,S,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,r)}}),kt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),kt("autoRound,strictUnits",{parser:function(t,e,i,s,n){return n}}),kt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,s,n,r){var o=Z(t,"borderTopWidth",S,!1,"0px"),a=this.format(e).split(" "),l=a[0].replace(M,"");return"px"!==l&&(o=parseFloat(o)/J(t,"borderTopWidth",1,l)+l),this.parseComplex(t.style,this.format(o+" "+Z(t,"borderTopStyle",S,!1,"solid")+" "+Z(t,"borderTopColor",S,!1,"#000")),a.join(" "),n,r)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ft)||["#000"])[0]}}),kt("borderWidth",{parser:gt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),kt("float,cssFloat,styleFloat",{parser:function(t,e,i,s,n,r){var o=t.style,a="cssFloat"in o?"cssFloat":"styleFloat";return new yt(o,a,0,0,n,-1,i,!1,0,o[a],e)}});var qt=function(t){var e,i=this.t,s=i.filter||Z(this.data,"filter")||"",n=this.s+this.c*t|0;100===n&&(-1===s.indexOf("atrix(")&&-1===s.indexOf("radient(")&&-1===s.indexOf("oader(")?(i.removeAttribute("filter"),e=!Z(this.data,"filter")):(i.filter=s.replace(o,""),e=!0)),e||(this.xn1&&(i.filter=s=s||"alpha(opacity="+n+")"),-1===s.indexOf("pacity")?0===n&&this.xn1||(i.filter=s+" alpha(opacity="+n+")"):i.filter=s.replace(D,"opacity="+n))};kt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,s,n,r){var o=parseFloat(Z(t,"opacity",S,!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))+o),l&&1===o&&"hidden"===Z(t,"visibility",S)&&0!==e&&(o=0),V?n=new yt(a,"opacity",o,e-o,n):((n=new yt(a,"opacity",100*o,100*(e-o),n)).xn1=l?1:0,a.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=r,n.setRatio=qt),l&&((n=new yt(a,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",s._overwriteProps.push(n.n),s._overwriteProps.push(i)),n}});var Gt=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))},Ut=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:Gt(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)};kt("className",{parser:function(t,e,i,s,n,r,o){var a,l,h,p,c,d=t.getAttribute("class")||"",u=t.style.cssText;if((n=s._classNamePT=new yt(t,i,0,0,n,2)).setRatio=Ut,n.pr=-11,f=!0,n.b=d,l=et(t,S),h=t._gsClassPT){for(p={},c=h.data;c;)p[c.p]=1,c=c._next;h.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:d.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),a=it(t,l,et(t),o,p),t.setAttribute("class",d),n.data=a.firstMPT,t.style.cssText=u,n.xfirst=s.parse(t,a.difs,n,r)}});var Kt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,s,n,r,o=this.t.style,a=m.transform.parse;if("all"===this.e)n=!(o.cssText="");else for(s=(e=this.e.split(" ").join("").split(",")).length;-1<--s;)i=e[s],m[i]&&(m[i].parse===a?n=!0:i="transformOrigin"===i?Ft:m[i].p),Gt(o,i);n&&(Gt(o,Dt),(r=this.t._gsTransform)&&(r.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(kt("clearProps",{parser:function(t,e,i,s,n){return(n=new yt(t,i,0,0,n,2)).setRatio=Kt,n.e=e,n.pr=-10,n.data=s._tween,f=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),wt=t.length;wt--;)xt(t[wt]);(t=X.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i){if(!t.nodeType)return!1;this._target=t,this._tween=i,this._vars=e,P=e.autoRound,f=!1,x=e.suffixMap||X.suffixMap,S=Q(t,""),u=this._overwriteProps;var s,n,r,o,a,l,h,p,c,d=t.style;if(g&&""===d.zIndex&&(("auto"===(s=Z(t,"zIndex",S))||""===s)&&this._addLazySet(d,"zIndex",0)),"string"==typeof e&&(o=d.cssText,s=et(t,S),d.cssText=o+";"+e,s=it(t,s,et(t)).difs,!V&&b.test(e)&&(s.opacity=parseFloat(RegExp.$1)),e=s,d.cssText=o),e.className?this._firstPT=n=m.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=n=this.parse(t,e,null),this._transformType){for(c=3===this._transformType,Dt?v&&(g=!0,""===d.zIndex&&(("auto"===(h=Z(t,"zIndex",S))||""===h)&&this._addLazySet(d,"zIndex",0)),y&&this._addLazySet(d,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(c?"visible":"hidden"))):d.zoom=1,r=n;r&&r._next;)r=r._next;p=new yt(t,"transform",0,0,null,2),this._linkCSSP(p,null,r),p.setRatio=Dt?Wt:Vt,p.data=this._transform||Ht(t,S,!0),p.tween=i,p.pr=-1,u.pop()}if(f){for(;n;){for(l=n._next,r=o;r&&r.pr>n.pr;)r=r._next;(n._prev=r?r._prev:a)?n._prev._next=n:o=n,(n._next=r)?r._prev=n:a=n,n=l}this._firstPT=o}return!0},t.parse=function(t,e,i,s){var n,r,o,a,l,h,p,c,d,u,f=t.style;for(n in e)h=e[n],(r=m[n])?i=r.parse(t,h,n,this,i,s,e):(l=Z(t,n,S)+"",d="string"==typeof h,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||d&&w.test(h)?(d||(h=(3<(h=dt(h)).length?"rgba(":"rgb(")+h.join(",")+")"),i=bt(f,n,l,h,!0,"transparent",i,0,s)):d&&I.test(h)?i=bt(f,n,l,h,!0,null,i,0,s):(p=(o=parseFloat(l))||0===o?l.substr((o+"").length):"",(""===l||"auto"===l)&&("width"===n||"height"===n?(o=rt(t,n,S),p="px"):"left"===n||"top"===n?(o=tt(t,n,S),p="px"):(o="opacity"!==n?0:1,p="")),(u=d&&"="===h.charAt(1))?(a=parseInt(h.charAt(0)+"1",10),h=h.substr(2),a*=parseFloat(h),c=h.replace(M,"")):(a=parseFloat(h),c=d?h.replace(M,""):""),""===c&&(c=n in x?x[n]:p),h=a||0===a?(u?a+o:a)+c:e[n],p!==c&&""!==c&&(a||0===a)&&o&&(o=J(t,n,o,p),"%"===c?(o/=J(t,n,100,"%")/100,!0!==e.strictUnits&&(l=o+"%")):"em"===c||"rem"===c||"vw"===c||"vh"===c?o/=J(t,n,1,c):"px"!==c&&(a=J(t,n,a,c),c="px"),u&&(a||0===a)&&(h=a+o+c)),u&&(a+=o),!o&&0!==o||!a&&0!==a?void 0!==f[n]&&(h||h+""!="NaN"&&null!=h)?(i=new yt(f,n,a||o||0,0,i,-1,n,!1,0,l,h)).xs0="none"!==h||"display"!==n&&-1===n.indexOf("Style")?h:l:q("invalid "+n+" tween value: "+e[n]):(i=new yt(f,n,o,a-o,i,0,n,!1!==P&&("px"===c||"zIndex"===n),0,l,h)).xs0=c)),s&&i&&!i.plugin&&(i.plugin=s);return i},t.setRatio=function(t){var e,i,s,n=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(;n;){if(e=n.c*t+n.s,n.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(s=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,s=1;s<n.l;s++)i+=n["xn"+s]+n["xs"+(s+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=Math.round(n.s+n.c),n.type){if(1===n.type){for(s=n.l,i=n.xs0+e+n.xs1,s=1;s<n.l;s++)i+=n["xn"+s]+n["xs"+(s+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},t._enableTransforms=function(t){this._transform=this._transform||Ht(this._target,S,!0),this._transformType=this._transform.svg&&St||!t&&3!==this._transformType?2:3};var Qt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};t._addLazySet=function(t,e,i){var s=this._firstPT=new yt(t,e,0,0,this._firstPT,2);s.e=i,s.setRatio=Qt,s.data=this},t._linkCSSP=function(t,e,i,s){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,s=!0),i?i._next=t:s||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._kill=function(t){var e,i,s,n=t;if(t.autoAlpha||t.alpha){for(i in n={},t)n[i]=t[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}return t.className&&(e=this._classNamePT)&&((s=e.xfirst)&&s._prev?this._linkCSSP(s._prev,e._next,s._prev._prev):s===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,s._prev),this._classNamePT=null),r.prototype._kill.call(this,n)};var Zt=function(t,e,i){var s,n,r,o;if(t.slice)for(n=t.length;-1<--n;)Zt(t[n],e,i);else for(n=(s=t.childNodes).length;-1<--n;)o=(r=s[n]).type,r.style&&(e.push(et(r)),i&&i.push(r)),1!==o&&9!==o&&11!==o||!r.childNodes.length||Zt(r,e,i)};return X.cascadeTo=function(t,e,i){var s,n,r,o,a=j.to(t,e,i),l=[a],h=[],p=[],c=[],d=j._internals.reservedProps;for(t=a._targets||a.target,Zt(t,h,c),a.render(e,!0,!0),Zt(t,p),a.render(0,!0,!0),a._enabled(!0),s=c.length;-1<--s;)if((n=it(c[s],h[s],p[s])).firstMPT){for(r in n=n.difs,i)d[r]&&(n[r]=i[r]);for(r in o={},n)o[r]=h[s][r];l.push(j.fromTo(c[s],e,o,n))}return l},r.activate([X]),X},!0),t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.5",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),l=function(t){for(;t;)t.f||t.blob||(t.r=1),t=t._next},(e=t.prototype)._onInitAllProps=function(){for(var t,e,i,s=this._tween,n=s.vars.roundProps.join?s.vars.roundProps:s.vars.roundProps.split(","),r=n.length,o={},a=s._propLookup.roundProps;-1<--r;)o[n[r]]=1;for(r=n.length;-1<--r;)for(t=n[r],e=s._firstPT;e;)i=e._next,e.pg?e.t._roundProps(o,!0):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:s._firstPT===e&&(s._firstPT=i),e._next=e._prev=null,s._propLookup[t]=a)),e=i;return!1},e._add=function(t,e,i,s){this._addTween(t,e,i,i+s,e,!0),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.5.0",init:function(t,e,i){var s;if("function"!=typeof t.setAttribute)return!1;for(s in e)this._addTween(t,"setAttribute",t.getAttribute(s)+"",e[s]+"",s,!1,s),this._overwriteProps.push(s);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(t,e,i){"object"!=typeof e&&(e={rotation:e}),this.finals={};var s,n,r,o,a,l=!0===e.useRadians?2*Math.PI:360;for(s in e)"useRadians"!==s&&(n=(a=(e[s]+"").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)]()),o=(this.finals[s]="string"==typeof n&&"="===n.charAt(1)?r+parseInt(n.charAt(0)+"1",10)*Number(n.substr(2)):Number(n)||0)-r,a.length&&(-1!==(n=a.join("_")).indexOf("short")&&((o%=l)!==o%(l/2)&&(o=o<0?o+l:o-l)),-1!==n.indexOf("_cw")&&o<0?o=(o+9999999999*l)%l-(o/l|0)*l:-1!==n.indexOf("ccw")&&0<o&&(o=(o-9999999999*l)%l-(o/l|0)*l)),(1e-6<o||o<-1e-6)&&(this._addTween(t,s,r,r+o,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 e,i,t,s=_gsScope.GreenSockGlobals||_gsScope,n=s.com.greensock,r=2*Math.PI,o=Math.PI/2,a=n._class,l=function(t,e){var i=a("easing."+t,function(){},!0),s=i.prototype=new g;return s.constructor=i,s.getRatio=e,i},h=g.register||function(){},p=function(t,e,i,s,n){var r=a("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return h(r,t),r},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)},c=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),s=i.prototype=new g;return s.constructor=i,s.getRatio=e,s.config=function(t){return new i(t)},i},d=p("Back",c("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),c("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),c("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)})),u=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=u.prototype=new g;return f.constructor=u,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=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},u.ease=new u(.7,.7),f.config=u.config=function(t,e,i){return new u(t,e,i)},(f=(e=a("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0)).prototype=new g).constructor=e,f.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),(this._p2*t>>0)*this._p1},f.config=e.config=function(t){return new e(t)},(f=(i=a("easing.RoughEase",function(t){for(var e,i,s,n,r,o,a=(t=t||{}).taper||"none",l=[],h=0,p=0|(t.points||20),c=p,d=!1!==t.randomize,u=!0===t.clamp,f=t.template instanceof g?t.template:null,m="number"==typeof t.strength?.4*t.strength:.4;-1<--c;)e=d?Math.random():1/p*c,i=f?f.getRatio(e):e,"none"===a?s=m:"out"===a?s=(n=1-e)*n*m:"in"===a?s=e*e*m:s=(n=e<.5?2*e:2*(1-e))*n*.5*m,d?i+=Math.random()*s-.5*s:c%2?i+=.5*s:i-=.5*s,u&&(1<i?i=1:i<0&&(i=0)),l[h++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),o=new v(1,1,null),c=p;-1<--c;)r=l[c],o=new v(r.x,r.y,o);this._prev=new v(0,0,0!==o.t?o:o.next)},!0)).prototype=new g).constructor=i,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 i(t)},i.ease=new i,p("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})),p("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)})),p("Elastic",(t=function(t,e,i){var s=a("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/r*(Math.asin(1/this._p1)||0),this._p2=r/this._p2},!0),n=s.prototype=new g;return n.constructor=s,n.getRatio=e,n.config=function(t,e){return new s(t,e)},s})("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)),p("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)))})),p("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return 1-Math.cos(t*o)}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),a("easing.EaseLookup",{find:function(t){return g.map[t]}},!0),h(s.SlowMo,"SlowMo","ease,"),h(i,"RoughEase","ease,"),h(e,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(u,f){"use strict";var e,i,m={},g=u.GreenSockGlobals=u.GreenSockGlobals||u;if(!g.TweenLite){var t,s,n,v,y,_=function(t){var e,i=t.split("."),s=g;for(e=0;e<i.length;e++)s[i[e]]=s=s[i[e]]||{};return s},c=_("com.greensock"),b=1e-10,l=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},w=function(){},T=(e=Object.prototype.toString,i=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&e.call(t)===i)}),k={},x=function(l,h,p,c){this.sc=k[l]?k[l].sc:[],(k[l]=this).gsClass=null,this.func=p;var d=[];this.check=function(t){for(var e,i,s,n,r,o=h.length,a=o;-1<--o;)(e=k[h[o]]||new x(h[o],[])).gsClass?(d[o]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&p){if(s=(i=("com.greensock."+l).split(".")).pop(),n=_(i.join("."))[s]=this.gsClass=p.apply(p,d),c)if(g[s]=n,!(r="undefined"!=typeof module&&module.exports)&&"function"==typeof define&&define.amd)define((u.GreenSockAMDPath?u.GreenSockAMDPath+"/":"")+l.split(".").pop(),[],function(){return n});else if(r)if(l===f)for(o in module.exports=m[f]=n,m)n[o]=m[o];else m[f]&&(m[f][s]=n);for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)},r=u._gsDefine=function(t,e,i,s){return new x(t,e,i,s)},d=c._class=function(t,e,i){return e=e||function(){},r(t,[],function(){return e},i),e};r.globals=g;var o=[0,0,1,1],a=[],p=d("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?o.concat(e):o},!0),S=p.map={},h=p.register=function(t,e,i,s){for(var n,r,o,a,l=e.split(","),h=l.length,p=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(r=l[h],n=s?d("easing."+r,null,!0):c.easing[r]||{},o=p.length;-1<--o;)a=p[o],S[r+"."+a]=S[a+r]=n[a]=t.getRatio?t:t[a]||new t};for((n=p.prototype)._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:t<.5?s/2:1-s/2},s=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--s;)n=t[s]+",Power"+s,h(new p(null,null,1,s),n,"easeOut",!0),h(new p(null,null,2,s),n,"easeIn"+(0===s?",easeNone":"")),h(new p(null,null,3,s),n,"easeInOut");S.linear=c.easing.Linear.easeIn,S.swing=c.easing.Quad.easeInOut;var C=d("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(n=C.prototype).addEventListener=function(t,e,i,s,n){n=n||0;var r,o,a=this._listeners[t],l=0;for(this!==v||y||v.wake(),null==a&&(this._listeners[t]=a=[]),o=a.length;-1<--o;)(r=a[o]).c===e&&r.s===i?a.splice(o,1):0===l&&r.pr<n&&(l=o+1);a.splice(l,0,{c:e,s:i,up:s,pr:n})},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;-1<--i;)if(s[i].c===e)return void s.splice(i,1)},n.dispatchEvent=function(t){var e,i,s,n=this._listeners[t];if(n)for(e=n.length,i=this._eventTarget;-1<--e;)(s=n[e])&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var P=u.requestAnimationFrame,A=u.cancelAnimationFrame,E=Date.now||function(){return(new Date).getTime()},M=E();for(s=(t=["ms","moz","webkit","o"]).length;-1<--s&&!P;)P=u[t[s]+"RequestAnimationFrame"],A=u[t[s]+"CancelAnimationFrame"]||u[t[s]+"CancelRequestAnimationFrame"];d("Ticker",function(t,e){var n,r,o,a,l,h=this,p=E(),i=!(!1===e||!P)&&"auto",c=500,d=33,u=function(t){var e,i,s=E()-M;c<s&&(p+=s-d),M+=s,h.time=(M-p)/1e3,e=h.time-l,(!n||0<e||!0===t)&&(h.frame++,l+=e+(a<=e?.004:a-e),i=!0),!0!==t&&(o=r(u)),i&&h.dispatchEvent("tick")};C.call(h),h.time=h.frame=0,h.tick=function(){u(!0)},h.lagSmoothing=function(t,e){c=t||1e10,d=Math.min(e,c,0)},h.sleep=function(){null!=o&&(i&&A?A(o):clearTimeout(o),r=w,o=null,h===v&&(y=!1))},h.wake=function(t){null!==o?h.sleep():t?p+=-M+(M=E()):10<h.frame&&(M=E()-c+5),r=0===n?w:i&&P?P:function(t){return setTimeout(t,1e3*(l-h.time)+1|0)},h===v&&(y=!0),u(2)},h.fps=function(t){return arguments.length?(a=1/((n=t)||60),l=this.time+a,void h.wake()):n},h.useRAF=function(t){return arguments.length?(h.sleep(),i=t,void h.fps(n)):i},h.fps(t),setTimeout(function(){"auto"===i&&h.frame<5&&"hidden"!==document.visibilityState&&h.useRAF(!1)},1500)}),(n=c.Ticker.prototype=new c.events.EventDispatcher).constructor=c.Ticker;var D=d("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,U){y||v.wake();var i=this.vars.useFrames?G:U;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});v=D.ticker=new c.Ticker,(n=D.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var O=function(){y&&2e3<E()-M&&v.wake(),setTimeout(O,2e3)};O(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(t,e,i){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},n._enabled=function(t,e){return y||v.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},n._kill=function(t,e){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},n._callback=function(t){var e=this.vars;e[t].apply(e[t+"Scope"]||e.callbackScope||this,e[t+"Params"]||a)},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=T(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.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)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(y||v.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,n=this._timeline;if(s<t&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?s-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(R.length&&Q(),this.render(t,e,!1),R.length&&Q())}return this},n.progress=n.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},n.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},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||b,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.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},n.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(y||t||v.wake(),i=(e=s.rawTime())-this._pauseTime,!t&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=s.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var F=d("core.SimpleTimeline",function(t){D.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(n=F.prototype=new D).constructor=F,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e,i,s){var n,r;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(r=t._startTime;n&&n._startTime>r;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},n._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},n.render=function(t,e,i){var s,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)s=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=s},n.rawTime=function(){return y||v.wake(),this._totalTime};var I=d("TweenLite",function(t,e,i){if(D.call(this,e,i),this.render=I.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:I.selector(t)||t;var s,n,r,o=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[I.defaultOverwrite]:"number"==typeof a?a>>0:q[a],(o||t instanceof Array||t.push&&T(t))&&"number"!=typeof t[0])for(this._targets=r=l(t),this._propLookup=[],this._siblings=[],s=0;s<r.length;s++)(n=r[s])?"string"!=typeof n?n.length&&n!==u&&n[0]&&(n[0]===u||n[0].nodeType&&n[0].style&&!n.nodeType)?(r.splice(s--,1),this._targets=r=r.concat(l(n))):(this._siblings[s]=Z(n,this,!1),1===a&&1<this._siblings[s].length&&tt(n,this,null,1,this._siblings[s])):"string"==typeof(n=r[s--]=I.selector(n))&&r.splice(s+1,1):r.splice(s--,1);else this._propLookup={},this._siblings=Z(t,this,!1),1===a&&1<this._siblings.length&&tt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-b,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)};(n=I.prototype=new D).constructor=I,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,I.version="1.18.5",I.defaultEase=n._ease=new p(null,null,1,1),I.defaultOverwrite="auto",I.ticker=v,I.autoSleep=120,I.lagSmoothing=function(t,e){v.lagSmoothing(t,e)},I.selector=u.$||u.jQuery||function(t){var e=u.$||u.jQuery;return e?(I.selector=e)(t):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var R=[],N={},z=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,$=function(t){for(var e,i=this._firstPT;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(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},j=function(t,e,i,s){var n,r,o,a,l,h,p,c=[t,e],d=0,u="",f=0;for(c.start=t,i&&(i(c),t=c[0],e=c[1]),c.length=0,n=t.match(z)||[],r=e.match(z)||[],s&&(s._next=null,s.blob=1,c._firstPT=s),l=r.length,a=0;a<l;a++)p=r[a],u+=(h=e.substr(d,e.indexOf(p,d)-d))||!a?h:",",d+=h.length,f?f=(f+1)%5:"rgba("===h.substr(-5)&&(f=1),p===n[a]||n.length<=a?u+=p:(u&&(c.push(u),u=""),o=parseFloat(n[a]),c.push(o),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:o,c:("="===p.charAt(1)?parseInt(p.charAt(0)+"1",10)*parseFloat(p.substr(2)):parseFloat(p)-o)||0,f:0,r:f&&f<4}),d+=p.length;return(u+=e.substr(d))&&c.push(u),c.setRatio=$,c},X=function(t,e,i,s,n,r,o,a){var l,h="get"===i?t[e]:i,p=typeof t[e],c="string"==typeof s&&"="===s.charAt(1),d={t:t,p:e,s:h,f:"function"===p,pg:0,n:n||e,r:r,pr:0,c:c?parseInt(s.charAt(0)+"1",10)*parseFloat(s.substr(2)):parseFloat(s)-h||0};return"number"!==p&&("function"===p&&"get"===i&&(l=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),d.s=h=o?t[l](o):t[l]()),"string"==typeof h&&(o||isNaN(h))?(d.fp=o,d={t:j(h,s,a||I.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0}):c||(d.s=parseFloat(h),d.c=parseFloat(s)-d.s||0)),d.c?((d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d):void 0},Y=I._internals={isArray:T,isSelector:L,lazyTweens:R,blobDif:j},B=I._plugins={},H=Y.tweenLookup={},V=0,W=Y.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},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},G=D._rootFramesTimeline=new F,U=D._rootTimeline=new F,K=30,Q=Y.lazyRender=function(){var t,e=R.length;for(N={};-1<--e;)(t=R[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);R.length=0};U._startTime=v.time,G._startTime=v.frame,U._active=G._active=!0,setTimeout(Q,1),D._updateRoot=I.render=function(){var t,e,i;if(R.length&&Q(),U.render((v.time-U._startTime)*U._timeScale,!1,!1),G.render((v.frame-G._startTime)*G._timeScale,!1,!1),R.length&&Q(),v.frame>=K){for(i in K=v.frame+(parseInt(I.autoSleep,10)||120),H){for(t=(e=H[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if((!(i=U._first)||i._paused)&&I.autoSleep&&!G._first&&1===v._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||v.sleep()}}},v.addEventListener("tick",D._updateRoot);var Z=function(t,e,i){var s,n,r=t._gsTweenID;if(H[r||(t._gsTweenID=r="t"+V++)]||(H[r]={target:t,tweens:[]}),e&&((s=H[r].tweens)[n=s.length]=e,i))for(;-1<--n;)s[n]===e&&s.splice(n,1);return H[r].tweens},J=function(t,e,i,s){var n,r,o=t.vars.onOverwrite;return o&&(n=o(t,e,i,s)),(o=I.onOverwrite)&&(r=o(t,e,i,s)),!1!==n&&!1!==r},tt=function(t,e,i,s,n){var r,o,a,l;if(1===s||4<=s){for(l=n.length,r=0;r<l;r++)if((a=n[r])!==e)a._gc||a._kill(null,t,e)&&(o=!0);else if(5===s)break;return o}var h,p=e._startTime+b,c=[],d=0,u=0===e._duration;for(r=n.length;-1<--r;)(a=n[r])===e||a._gc||a._paused||(a._timeline!==e._timeline?(h=h||et(e,0,u),0===et(a,h,u)&&(c[d++]=a)):a._startTime<=p&&a._startTime+a.totalDuration()/a._timeScale>p&&((u||!a._initted)&&p-a._startTime<=2e-10||(c[d++]=a)));for(r=d;-1<--r;)if(a=c[r],2===s&&a._kill(i,t,e)&&(o=!0),2!==s||!a._firstPT&&a._initted){if(2!==s&&!J(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},et=function(t,e,i){for(var s=t._timeline,n=s._timeScale,r=t._startTime;s._timeline;){if(r+=s._startTime,n*=s._timeScale,s._paused)return-100;s=s._timeline}return e<(r/=n)?r-e:i&&r===e||!t._initted&&r-e<2*b?b:(r+=t.totalDuration()/t._timeScale/n)>e+b?0:r-e-b};n._init=function(){var t,e,i,s,n,r=this.vars,o=this._overwrittenProps,a=this._duration,l=!!r.immediateRender,h=r.ease;if(r.startAt){for(s in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={},r.startAt)n[s]=r.startAt[s];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=l&&!1!==r.lazy,n.startAt=n.delay=null,this._startAt=I.to(this.target,0,n),l)if(0<this._time)this._startAt=null;else if(0!==a)return}else if(r.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(s in 0!==this._time&&(l=!1),i={},r)W[s]&&"autoCSS"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&!1!==r.lazy,i.immediateRender=l,this._startAt=I.to(this.target,0,i),l){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 p?h:"function"==typeof h?new p(h,r.easeParams):S[h]||I.defaultEase:I.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(t=this._targets.length;-1<--t;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o);if(e&&I._onPluginEvent("_onInitAllProps",this),o&&(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},n._initProps=function(t,e,i,s){var n,r,o,a,l,h;if(null==t)return!1;for(n in N[t._gsTweenID]&&Q(),this.vars.css||t.style&&t!==u&&t.nodeType&&B.css&&!1!==this.vars.autoCSS&&function(t,e){var i,s={};for(i in t)W[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!B[i]||B[i]&&B[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s}(this.vars,t),this.vars)if(h=this.vars[n],W[n])h&&(h instanceof Array||h.push&&T(h))&&-1!==h.join("").indexOf("{self}")&&(this.vars[n]=h=this._swapSelfInParams(h,this));else if(B[n]&&(a=new B[n])._onInitTween(t,this.vars[n],this)){for(this._firstPT=l={_next:this._firstPT,t:a,p:"setRatio",s:0,c:1,f:1,n:n,pg:1,pr:a._priority},r=a._overwriteProps.length;-1<--r;)e[a._overwriteProps[r]]=this._firstPT;(a._priority||a._onInitAllProps)&&(o=!0),(a._onDisable||a._onEnable)&&(this._notifyPluginsOfEnabled=!0),l._next&&(l._next._prev=l)}else e[n]=X.call(this,t,n,"get",h,n,0,null,this.vars.stringFilter);return s&&this._kill(s,t)?this._initProps(t,e,i,s):1<this._overwrite&&this._firstPT&&1<i.length&&tt(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(N[t._gsTweenID]=!0),o)},n.render=function(t,e,i){var s,n,r,o,a=this._time,l=this._duration,h=this._rawPrevTime;if(l-1e-7<=t)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(h<0||t<=0&&-1e-7<=t||h===b&&"isPause"!==this.data)&&h!==t&&(i=!0,b<h&&(n="onReverseComplete")),this._rawPrevTime=o=!e||t||h===t?t:b);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<h)&&(n="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(0<=h&&(h!==b||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||h===t?t:b)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var p=t/l,c=this._easeType,d=this._easePower;(1===c||3===c&&.5<=p)&&(p=1-p),3===c&&(p*=2),1===d?p*=p:2===d?p*=p*p:3===d?p*=p*p*p:4===d&&(p*=p*p*p*p),this.ratio=1===c?1-p:2===c?p:t/l<.5?p/2:1-p/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=h,R.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&0<=t&&(this._active=!0),0===a&&(this._startAt&&(0<=t?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),r=this._firstPT;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==a||s||i)&&this._callback("onUpdate")),n&&(!this._gc||i)&&(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&this._rawPrevTime===b&&o!==b&&(this._rawPrevTime=0))}},n._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:I.selector(e)||e;var s,n,r,o,a,l,h,p,c,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((T(e)||L(e))&&"number"!=typeof e[0])for(s=e.length;-1<--s;)this._kill(t,e[s],i)&&(l=!0);else{if(this._targets){for(s=this._targets.length;-1<--s;)if(e===this._targets[s]){a=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(h=t||a,p=t!==n&&"all"!==n&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(r in h)a[r]&&(c||(c=[]),c.push(r));if((c||!t)&&!J(this,i,e,c))return!1}for(r in h)(o=a[r])&&(d&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,l=!0),o.pg&&o.t._kill(h)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[r]),p&&(n[r]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-b,this.render(Math.min(0,-this._delay))),this},n._enabled=function(t,e){if(y||v.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;-1<--i;)this._siblings[i]=Z(s[i],this,!0);else this._siblings=Z(this.target,this,!0)}return D.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&I._onPluginEvent(t?"_onEnable":"_onDisable",this)},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new I(t,e,s)},I.delayedCall=function(t,e,i,s,n){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];var i,s,n,r;if(t="string"!=typeof t?t:I.selector(t)||t,(T(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];-1<--i;)s=s.concat(I.getTweensOf(t[i],e));for(i=s.length;-1<--i;)for(r=s[i],n=i;-1<--n;)r===s[n]&&s.splice(i,1)}else for(i=(s=Z(t).concat()).length;-1<--i;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=I.getTweensOf(t,e),n=s.length;-1<--n;)s[n]._kill(i,t)};var it=d("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=it.prototype},!0);if(n=it.prototype,it.version="1.18.0",it.API=2,n._firstPT=null,n._addTween=X,n.setRatio=$,n._kill=function(t){var e,i=this._overwriteProps,s=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(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},I._onPluginEvent=function(t,e){var i,s,n,r,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,s=n;s&&s.pr>a.pr;)s=s._next;(a._prev=s?s._prev:r)?a._prev._next=a:n=a,(a._next=s)?s._prev=a:r=a,a=o}a=e._firstPT=n}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},it.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===it.API&&(B[(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,s=t.priority||0,n=t.overwriteProps,r={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=d("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){it.call(this,i,s),this._overwriteProps=n||[]},!0===t.global),a=o.prototype=new it(i);for(e in(a.constructor=o).API=t.API,r)"function"==typeof t[e]&&(a[r[e]]=t[e]);return o.version=t.version,it.activate([o]),o},t=u._gsQueue){for(s=0;s<t.length;s++)t[s]();for(n in k)k[n].func||u.console.log("GSAP encountered missing dependency: com.greensock."+n)}y=!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";var o=document.documentElement,a=window,r=function(t,e){var i="x"===e?"Width":"Height",s="scroll"+i,n="client"+i,r=document.body;return t===a||t===o||t===r?Math.max(o[s],r[s])-(a["inner"+i]||o[n]||r[n]):t[s]-t["offset"+i]},t=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,version:"1.7.6",init:function(t,e,i){return this._wdw=t===a,this._target=t,this._tween=i,"object"!=typeof e&&(e={y:e}),this.vars=e,this._autoKill=!1!==e.autoKill,this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=e.x?(this._addTween(this,"x",this.x,"max"===e.x?r(t,"x"):e.x,"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=e.y?(this._addTween(this,"y",this.y,"max"===e.y?r(t,"y"):e.y,"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,s=i-this.yPrev,n=e-this.xPrev;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(7<n||n<-7)&&e<r(this._target,"x")&&(this.skipX=!0),!this.skipY&&(7<s||s<-7)&&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?a.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}}),e=t.prototype;t.max=r,e.getX=function(){return this._wdw?null!=a.pageXOffset?a.pageXOffset:null!=o.scrollLeft?o.scrollLeft:document.body.scrollLeft:this._target.scrollLeft},e.getY=function(){return this._wdw?null!=a.pageYOffset?a.pageYOffset:null!=o.scrollTop?o.scrollTop:document.body.scrollTop:this._target.scrollTop},e._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";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(h){"use strict";var n,o=window.Slick||{};n=0,(o=function(t,e){var i,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:h(t),appendDots:h(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return h('<button type="button" data-role="none" role="button" tabindex="0" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!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},s.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,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},h.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=h(t),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,i=h(t).data("slick")||{},s.options=h.extend({},s.defaults,e,i),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=h.proxy(s.autoPlay,s),s.autoPlayClear=h.proxy(s.autoPlayClear,s),s.autoPlayIterator=h.proxy(s.autoPlayIterator,s),s.changeSlide=h.proxy(s.changeSlide,s),s.clickHandler=h.proxy(s.clickHandler,s),s.selectHandler=h.proxy(s.selectHandler,s),s.setPosition=h.proxy(s.setPosition,s),s.swipeHandler=h.proxy(s.swipeHandler,s),s.dragHandler=h.proxy(s.dragHandler,s),s.keyHandler=h.proxy(s.keyHandler,s),s.instanceUid=n++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.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 s=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=s.slideCount)return!1;s.unload(),"number"==typeof e?0===e&&0===s.$slides.length?h(t).appendTo(s.$slideTrack):i?h(t).insertBefore(s.$slides.eq(e)):h(t).insertAfter(s.$slides.eq(e)):!0===i?h(t).prependTo(s.$slideTrack):h(t).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(t,e){h(e).attr("data-slick-index",t)}),s.$slidesCache=s.$slides,s.reinit()},o.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},o.prototype.animateSlide=function(t,e){var i={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(t=-t),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,e):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,e):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),h({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate("+t+"px, 0px)":i[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(s.applyTransition(),t=Math.ceil(t),!1===s.options.vertical?i[s.animType]="translate3d("+t+"px, 0px, 0px)":i[s.animType]="translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(i),e&&setTimeout(function(){s.disableTransition(),e.call()},s.options.speed))},o.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=h(t).not(this.$slider)),t},o.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=h(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(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.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=h(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=h(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,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=h("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(h("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},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){h(e).attr("data-slick-index",t).data("originalStyling",h(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?h('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(!0===t.options.centerMode||!0===t.options.swipeToSlide)&&(t.options.slidesToScroll=1),h("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,s,n,r,o,a=this;if(s=document.createDocumentFragment(),r=a.$slider.children(),1<a.options.rows){for(o=a.options.slidesPerRow*a.options.rows,n=Math.ceil(r.length/o),t=0;t<n;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var h=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var p=t*o+(e*a.options.slidesPerRow+i);r.get(p)&&h.appendChild(r.get(p))}l.appendChild(h)}s.appendChild(l)}a.$slider.empty().append(s),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(t,e){var i,s,n,r=this,o=!1,a=r.$slider.width(),l=window.innerWidth||h(window).width();if("window"===r.respondTo?n=l:"slider"===r.respondTo?n=a:"min"===r.respondTo&&(n=Math.min(l,a)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(i in s=null,r.breakpoints)r.breakpoints.hasOwnProperty(i)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[i]&&(s=r.breakpoints[i]):n>r.breakpoints[i]&&(s=r.breakpoints[i]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||e)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=h.extend({},r.originalSettings,r.breakpointSettings[s]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=h.extend({},r.originalSettings,r.breakpointSettings[s]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=s),t||!1===o||r.$slider.trigger("breakpoint",[r,o])}},o.prototype.changeSlide=function(t,e){var i,s,n=this,r=h(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,t.data.message){case"previous":s=0===i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-s,!1,e);break;case"next":s=0===i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+s,!1,e);break;case"index":var o=0===t.data.index?0:t.data.index||r.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(o),!1,e),r.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 s in e){if(t<e[s]){t=i;break}i=e[s]}return t},o.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&h("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",h.proxy(t.interrupt,t,!0)).off("mouseleave.slick",h.proxy(t.interrupt,t,!1)),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)),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),h(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().off("click.slick",t.selectHandler),h(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),h(window).off("resize.slick.slick-"+t.instanceUid,t.resize),h("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),h(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),h(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",h.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",h.proxy(t.interrupt,t,!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(),h(".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(){h(this).attr("style",h(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){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},o.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(t){t.stopImmediatePropagation();var e=h(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,s=0;if(!0===t.options.infinite)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)s=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else s=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return s-1},o.prototype.getLeft=function(t){var e,i,s,n=this,r=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,r=i*n.options.slidesToShow*-1),n.slideCount%n.options.slidesToScroll!=0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(t-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*i*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(t+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(r=n.slideOffset=0),!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?t*n.slideWidth*-1+n.slideOffset:t*i*-1+r,!0===n.options.variableWidth&&(s=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=!0===n.options.rtl?s[0]?-1*(n.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,!0===n.options.centerMode&&(s=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=!0===n.options.rtl?s[0]?-1*(n.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,e+=(n.$list.width()-s.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,s=0,n=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,s=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)n.push(i),i=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var i,s,n=this;return s=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(t,e){return e.offsetLeft-s+h(e).outerWidth()/2>-1*n.swipeLeft?(i=e,!1):void 0}),Math.abs(h(i).attr("data-slick-index")-n.currentSlide)||1):n.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;h(e.$slider).hasClass("slick-initialized")||(h(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 e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){h(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+t})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(t){h(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+t,id:"slick-slide"+e.instanceUid+t})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.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))},o.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&h("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&h("li",t.$dots).on("mouseenter.slick",h.proxy(t.interrupt,t,!0)).on("mouseleave.slick",h.proxy(t.interrupt,t,!1))},o.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",h.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",h.proxy(t.interrupt,t,!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),h(document).on(t.visibilityChange,h.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&h(t.$slideTrack).children().on("click.slick",t.selectHandler),h(window).on("orientationchange.slick.slick-"+t.instanceUid,h.proxy(t.orientationChange,t)),h(window).on("resize.slick.slick-"+t.instanceUid,h.proxy(t.resize,t)),h("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),h(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),h(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},o.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){function t(t){h("img[data-lazy]",t).each(function(){var t=h(this),e=h(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){t.animate({opacity:0},100,function(){t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,t,e])})},i.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,t,e])},i.src=e})}var e,i,s=this;!0===s.options.centerMode?!0===s.options.infinite?i=(e=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(e=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),i=s.options.slidesToShow/2+1+2+s.currentSlide):(e=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,i=Math.ceil(e+s.options.slidesToShow),!0===s.options.fade&&(0<e&&e--,i<=s.slideCount&&i++)),t(s.$slider.find(".slick-slide").slice(e,i)),s.slideCount<=s.options.slidesToShow?t(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?t(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&t(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},o.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.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(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},o.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&e.initADA())},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,s,n=this,r=h("img[data-lazy]",n.$slider);r.length?(e=r.first(),i=e.attr("data-lazy"),(s=document.createElement("img")).onload=function(){e.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),!0===n.options.adaptiveHeight&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,e,i]),n.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){n.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,i]),n.progressiveLazyLoad())},s.src=i):n.$slider.trigger("allImagesLoaded",[n])},o.prototype.refresh=function(t){var e,i,s=this;i=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>i&&(s.currentSlide=i),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),e=s.currentSlide,s.destroy(!0),h.extend(s,s.initials,{currentSlide:e}),s.init(),t||s.changeSlide({data:{message:"index",index:e}},!1)},o.prototype.registerBreakpoints=function(){var t,e,i,s=this,n=s.options.responsive||null;if("array"===h.type(n)&&n.length){for(t in s.respondTo=s.options.respondTo||"window",n)if(i=s.breakpoints.length-1,e=n[t].breakpoint,n.hasOwnProperty(t)){for(;0<=i;)s.breakpoints[i]&&s.breakpoints[i]===e&&s.breakpoints.splice(i,1),i--;s.breakpoints.push(e),s.breakpointSettings[e]=n[t].settings}s.breakpoints.sort(function(t,e){return s.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&&h(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;h(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=h(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(t,e,i){var s=this;return"boolean"==typeof t?t=!0===(e=t)?0:s.slideCount-1:t=!0===e?--t:t,!(s.slideCount<1||t<0||t>s.slideCount-1)&&(s.unload(),!0===i?s.$slideTrack.children().remove():s.$slideTrack.children(this.options.slide).eq(t).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,void s.reinit())},o.prototype.setCSS=function(t){var e,i,s=this,n={};!0===s.options.rtl&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",n[s.positionProp]=t,!1===s.transformsEnabled||(!(n={})===s.cssTransitions?n[s.animType]="translate("+e+", "+i+")":n[s.animType]="translate3d("+e+", "+i+", 0px)"),s.$slideTrack.css(n)},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,s=this;s.$slides.each(function(t,e){i=s.slideWidth*t*-1,!0===s.options.rtl?h(e).css({position:"relative",right:i,top:0,zIndex:s.options.zIndex-2,opacity:0}):h(e).css({position:"relative",left:i,top:0,zIndex:s.options.zIndex-2,opacity:0})}),s.$slides.eq(s.currentSlide).css({zIndex:s.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},o.prototype.setOption=o.prototype.slickSetOption=function(){var t,e,i,s,n,r=this,o=!1;if("object"===h.type(arguments[0])?(i=arguments[0],o=arguments[1],n="multiple"):"string"===h.type(arguments[0])&&(i=arguments[0],s=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===h.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[i]=s;else if("multiple"===n)h.each(i,function(t,e){r.options[t]=e});else if("responsive"===n)for(e in s)if("array"!==h.type(r.options.responsive))r.options.responsive=[s[e]];else{for(t=r.options.responsive.length-1;0<=t;)r.options.responsive[t].breakpoint===s[e].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(s[e])}o&&(r.unload(),r.reinit())},o.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},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,s,n,r=this;i=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode?(e=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(e<=t&&t<=r.slideCount-1-e?r.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(s=r.options.slidesToShow+t,i.slice(s-e+1,s+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-r.options.slidesToShow).addClass("slick-center"):t===r.slideCount-1&&i.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")):0<=t&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=r.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=r.slideCount%r.options.slidesToShow,s=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?i.slice(s-(r.options.slidesToShow-n),s+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(s,s+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===r.options.lazyLoad&&r.lazyLoad()},o.prototype.setupInfinite=function(){var t,e,i,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(e=null,s.slideCount>s.options.slidesToShow)){for(i=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,t=s.slideCount;t>s.slideCount-i;t-=1)e=t-1,h(s.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(t=0;t<i;t+=1)e=t,h(s.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){h(this).attr("id","")})}},o.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},o.prototype.selectHandler=function(t){var e=this,i=h(t.target).is(".slick-slide")?h(t.target):h(t.target).parents(".slick-slide"),s=parseInt(i.attr("data-slick-index"));return s||(s=0),e.slideCount<=e.options.slidesToShow?(e.setSlideClasses(s),void e.asNavFor(s)):void e.slideHandler(s)},o.prototype.slideHandler=function(t,e,i){var s,n,r,o,a,l=null,h=this;return e=e||!1,!0===h.animating&&!0===h.options.waitForAnimate||!0===h.options.fade&&h.currentSlide===t||h.slideCount<=h.options.slidesToShow?void 0:(!1===e&&h.asNavFor(t),s=t,l=h.getLeft(s),o=h.getLeft(h.currentSlide),h.currentLeft=null===h.swipeLeft?o:h.swipeLeft,!1===h.options.infinite&&!1===h.options.centerMode&&(t<0||t>h.getDotCount()*h.options.slidesToScroll)?void(!1===h.options.fade&&(s=h.currentSlide,!0!==i?h.animateSlide(o,function(){h.postSlide(s)}):h.postSlide(s))):!1===h.options.infinite&&!0===h.options.centerMode&&(t<0||t>h.slideCount-h.options.slidesToScroll)?void(!1===h.options.fade&&(s=h.currentSlide,!0!==i?h.animateSlide(o,function(){h.postSlide(s)}):h.postSlide(s))):(h.options.autoplay&&clearInterval(h.autoPlayTimer),n=s<0?h.slideCount%h.options.slidesToScroll!=0?h.slideCount-h.slideCount%h.options.slidesToScroll:h.slideCount+s:s>=h.slideCount?h.slideCount%h.options.slidesToScroll!=0?0:s-h.slideCount:s,h.animating=!0,h.$slider.trigger("beforeChange",[h,h.currentSlide,n]),r=h.currentSlide,h.currentSlide=n,h.setSlideClasses(h.currentSlide),h.options.asNavFor&&((a=(a=h.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(h.currentSlide)),h.updateDots(),h.updateArrows(),!0===h.options.fade?(!0!==i?(h.fadeSlideOut(r),h.fadeSlide(n,function(){h.postSlide(n)})):h.postSlide(n),void h.animateHeight()):void(!0!==i?h.animateSlide(l,function(){h.postSlide(n)}):h.postSlide(n))))},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,s,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(e,t),(s=Math.round(180*i/Math.PI))<0&&(s=360-Math.abs(s)),s<=45&&0<=s?!1===n.options.rtl?"left":"right":s<=360&&315<=s?!1===n.options.rtl?"left":"right":135<=s&&s<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?35<=s&&s<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(t){var e,i,s=this;if(s.dragging=!1,s.interrupted=!1,s.shouldClick=!(10<s.touchObject.swipeLength),void 0===s.touchObject.curX)return!1;if(!0===s.touchObject.edgeHit&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(i=s.swipeDirection()){case"left":case"down":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=i&&(s.slideHandler(e),s.touchObject={},s.$slider.trigger("swipe",[s,i]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.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,s,n,r,o=this;return r=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!o.dragging||r&&1!==r.length)&&(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==r?r[0].pageX:t.clientX,o.touchObject.curY=void 0!==r?r[0].pageY:t.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2)))),"vertical"!==(i=o.swipeDirection())?(void 0!==t.originalEvent&&4<o.touchObject.swipeLength&&t.preventDefault(),n=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(n=o.touchObject.curY>o.touchObject.startY?1:-1),s=o.touchObject.swipeLength,(o.touchObject.edgeHit=!1)===o.options.infinite&&(0===o.currentSlide&&"right"===i||o.currentSlide>=o.getDotCount()&&"left"===i)&&(s=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=e+s*n:o.swipeLeft=e+s*(o.$list.height()/o.listWidth)*n,!0===o.options.verticalSwiping&&(o.swipeLeft=e+s*n),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))):void 0)},o.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?!(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,void(i.dragging=!0))},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},o.prototype.unload=function(){var t=this;h(".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(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},o.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},h.fn.slick=function(){var t,e,i=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=i.length;for(t=0;t<r;t++)if("object"==typeof s||void 0===s?i[t].slick=new o(i[t],s):e=i[t].slick[s].apply(i[t].slick,n),void 0!==e)return e;return i}}),function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.smoothScroll=e(t)}("undefined"!=typeof global?global:this.window||this.global,function(_){"use strict";var o,e,b,w,T,s={},i="querySelector"in document&&"addEventListener"in _,k={selector:"[data-scroll]",selectorHeader:"[data-scroll-header]",speed:500,easing:"easeInOutCubic",offset:0,updateURL:!0,callback:function(){}},x=function(){var i={},s=!1,t=0,e=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(s=arguments[0],t++);for(var n=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s&&"[object Object]"===Object.prototype.toString.call(t[e])?i[e]=x(!0,i[e],t[e]):i[e]=t[e])};t<e;t++){n(arguments[t])}return i};s.escapeCharacters=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,i=String(t),s=i.length,n=-1,r="",o=i.charCodeAt(0);++n<s;){if(0===(e=i.charCodeAt(n)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");r+=1<=e&&e<=31||127==e||0===n&&48<=e&&e<=57||1===n&&48<=e&&e<=57&&45===o?"\\"+e.toString(16)+" ":128<=e||45===e||95===e||48<=e&&e<=57||65<=e&&e<=90||97<=e&&e<=122?i.charAt(n):"\\"+i.charAt(n)}return"#"+r};var S=function(t){return null===t?0:(e=t,Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)+t.offsetTop);var e};s.animateScroll=function(a,l,t){var e,i,s,n=(e=l?l.getAttribute("data-options"):null)&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(e):{},h=x(o||k,t||{},n),p="[object Number]"===Object.prototype.toString.call(a),c=p?null:"#"===a?_.document.documentElement:_.document.querySelector(a);if(p||c){var d=_.pageYOffset;b||(b=_.document.querySelector(h.selectorHeader)),w||(w=S(b));var u,f,m=p?a:function(t,e,i){var s=0;if(t.offsetParent)for(;s+=t.offsetTop,t=t.offsetParent;);return 0<=(s=s-e-i)?s:0}(c,w,parseInt(h.offset,10)),g=m-d,v=Math.max(_.document.body.scrollHeight,_.document.documentElement.scrollHeight,_.document.body.offsetHeight,_.document.documentElement.offsetHeight,_.document.body.clientHeight,_.document.documentElement.clientHeight),y=0;p||(i=a,s=h.updateURL,_.history.pushState&&(s||"true"===s)&&"file:"!==_.location.protocol&&_.history.pushState(null,null,[_.location.protocol,"//",_.location.host,_.location.pathname,_.location.search,i].join("")));var r=function(){var t,e,i,s,n,r,o;u=1<(u=(y+=16)/parseInt(h.speed,10))?1:u,f=d+g*(n=h.easing,r=u,"easeInQuad"===n&&(o=r*r),"easeOutQuad"===n&&(o=r*(2-r)),"easeInOutQuad"===n&&(o=r<.5?2*r*r:(4-2*r)*r-1),"easeInCubic"===n&&(o=r*r*r),"easeOutCubic"===n&&(o=--r*r*r+1),"easeInOutCubic"===n&&(o=r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1),"easeInQuart"===n&&(o=r*r*r*r),"easeOutQuart"===n&&(o=1- --r*r*r*r),"easeInOutQuart"===n&&(o=r<.5?8*r*r*r*r:1-8*--r*r*r*r),"easeInQuint"===n&&(o=r*r*r*r*r),"easeOutQuint"===n&&(o=1+--r*r*r*r*r),"easeInOutQuint"===n&&(o=r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r),o||r),_.scrollTo(0,Math.floor(f)),t=f,e=m,i=T,s=_.pageYOffset,(t==e||s==e||_.innerHeight+s>=v)&&(clearInterval(i),p||c.focus(),h.callback(a,l))};0===_.pageYOffset&&_.scrollTo(0,0),clearInterval(T),T=setInterval(r,16)}};var n=function(t){if(0===t.button&&!t.metaKey&&!t.ctrlKey){var e=function(t,e){var i,s,n=e.charAt(0),r="classList"in document.documentElement;for("["===n&&1<(i=(e=e.substr(1,e.length-2)).split("=")).length&&(s=!0,i[1]=i[1].replace(/"/g,"").replace(/'/g,""));t&&t!==document;t=t.parentNode){if("."===n)if(r){if(t.classList.contains(e.substr(1)))return t}else if(new RegExp("(^|\\s)"+e.substr(1)+"(\\s|$)").test(t.className))return t;if("#"===n&&t.id===e.substr(1))return t;if("["===n&&t.hasAttribute(i[0])){if(!s)return t;if(t.getAttribute(i[0])===i[1])return t}if(t.tagName.toLowerCase()===e)return t}return null}(t.target,o.selector);if(e&&"a"===e.tagName.toLowerCase()){t.preventDefault();var i=s.escapeCharacters(e.hash);s.animateScroll(i,e,o)}}},r=function(t){e||(e=setTimeout(function(){e=null,w=S(b)},66))};return s.destroy=function(){o&&(_.document.removeEventListener("click",n,!1),_.removeEventListener("resize",r,!1),T=w=b=e=o=null)},s.init=function(t){i&&(s.destroy(),o=x(k,t||{}),b=_.document.querySelector(o.selectorHeader),w=S(b),_.document.addEventListener("click",n,!1),b&&_.addEventListener("resize",r,!1))},s}),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Parallax=t()}(function(){return function r(o,a,l){function h(e,t){if(!a[e]){if(!o[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(p)return p(e,!0);var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}var n=a[e]={exports:{}};o[e][0].call(n.exports,function(t){return h(o[e][1][t]||t)},n,n.exports,r,o,a,l)}return a[e].exports}for(var p="function"==typeof require&&require,t=0;t<l.length;t++)h(l[t]);return h}({1:[function(t,e,i){"use strict";var l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;e.exports=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 s={};return"abcdefghijklmnopqrst".split("").forEach(function(t){s[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,s,n=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 o in i=Object(arguments[r]))h.call(i,o)&&(n[o]=i[o]);if(l){s=l(i);for(var a=0;a<s.length;a++)p.call(i,s[a])&&(n[s[a]]=i[s[a]])}}return n}},{}],2:[function(t,a,e){(function(o){(function(){var t,e,i,s,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:null!=o&&o.hrtime?(a.exports=function(){return(t()-n)/1e6},e=o.hrtime,s=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),r=1e9*o.uptime(),n=s-r):Date.now?(a.exports=function(){return Date.now()-i},i=Date.now()):(a.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,t("_process"))},{_process:3}],3:[function(t,e,i){function s(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(p===setTimeout)return setTimeout(e,0);if((p===s||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function o(){m&&u&&(m=!1,u.length?f=u.concat(f):g=-1,f.length&&a())}function a(){if(!m){var t=r(o);m=!0;for(var e=f.length;e;){for(u=f,f=[];++g<e;)u&&u[g].run();g=-1,e=f.length}u=null,m=!1,function(e){if(c===clearTimeout)return clearTimeout(e);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}(t)}}function l(t,e){this.fun=t,this.array=e}function h(){}var p,c,d=e.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:s}catch(t){p=s}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(t){c=n}}();var u,f=[],m=!1,g=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];f.push(new l(t,e)),1!==f.length||m||r(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=h,d.addListener=h,d.once=h,d.off=h,d.removeListener=h,d.removeAllListeners=h,d.emit=h,d.prependListener=h,d.prependOnceListener=h,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],4:[function(c,d,t){(function(t){for(var s=c("performance-now"),e="undefined"==typeof window?t:window,i=["moz","webkit"],n="AnimationFrame",r=e["request"+n],o=e["cancel"+n]||e["cancelRequest"+n],a=0;!r&&a<i.length;a++)r=e[i[a]+"Request"+n],o=e[i[a]+"Cancel"+n]||e[i[a]+"CancelRequest"+n];if(!r||!o){var l=0,h=0,p=[];r=function(t){if(0===p.length){var e=s(),i=Math.max(0,1e3/60-(e-l));l=i+e,setTimeout(function(){for(var t=p.slice(0),e=p.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return p.push({handle:++h,callback:t,cancelled:!1}),h},o=function(t){for(var e=0;e<p.length;e++)p[e].handle===t&&(p[e].cancelled=!0)}}d.exports=function(t){return r.call(e,t)},d.exports.cancel=function(){o.apply(e,arguments)},d.exports.polyfill=function(){e.requestAnimationFrame=r,e.cancelAnimationFrame=o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":2}],5:[function(t,e,i){"use strict";var s=function(){function s(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}}(),l=t("raf"),r=t("object-assign"),u={propertyCache:{},vendors:[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],clamp:function(t,e,i){return e<i?t<e?e:i<t?i:t:t<i?i:e<t?e:t},data:function(t,e){return u.deserialize(t.getAttribute("data-"+e))},deserialize:function(t){return"true"===t||"false"!==t&&("null"===t?null:!isNaN(parseFloat(t))&&isFinite(t)?parseFloat(t):t)},camelCase:function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},accelerate:function(t){u.css(t,"transform","translate3d(0,0,0) rotate(0.0001deg)"),u.css(t,"transform-style","preserve-3d"),u.css(t,"backface-visibility","hidden")},transformSupport:function(t){for(var e=document.createElement("div"),i=!1,s=null,n=!1,r=null,o=null,a=0,l=u.vendors.length;a<l;a++)if(null!==u.vendors[a]?(r=u.vendors[a][0]+"transform",o=u.vendors[a][1]+"Transform"):o=r="transform",void 0!==e.style[o]){i=!0;break}switch(t){case"2D":n=i;break;case"3D":if(i){var h=document.body||document.createElement("body"),p=document.documentElement,c=p.style.overflow,d=!1;document.body||(d=!0,p.style.overflow="hidden",p.appendChild(h),h.style.overflow="hidden",h.style.background=""),h.appendChild(e),e.style[o]="translate3d(1px,1px,1px)",n=void 0!==(s=window.getComputedStyle(e).getPropertyValue(r))&&0<s.length&&"none"!==s,p.style.overflow=c,h.removeChild(e),d&&(h.removeAttribute("style"),h.parentNode.removeChild(h))}}return n},css:function(t,e,i){var s=u.propertyCache[e];if(!s)for(var n=0,r=u.vendors.length;n<r;n++)if(s=null!==u.vendors[n]?u.camelCase(u.vendors[n][1]+"-"+e):e,void 0!==t.style[s]){u.propertyCache[e]=s;break}t.style[s]=i}},o={relativeInput:!1,clipRelativeInput:!1,inputElement:null,hoverOnly:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5,pointerEvents:!1,precision:1,onReady:null,selector:null},n=function(){function n(t,e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,n),this.element=t;var i={calibrateX:u.data(this.element,"calibrate-x"),calibrateY:u.data(this.element,"calibrate-y"),invertX:u.data(this.element,"invert-x"),invertY:u.data(this.element,"invert-y"),limitX:u.data(this.element,"limit-x"),limitY:u.data(this.element,"limit-y"),scalarX:u.data(this.element,"scalar-x"),scalarY:u.data(this.element,"scalar-y"),frictionX:u.data(this.element,"friction-x"),frictionY:u.data(this.element,"friction-y"),originX:u.data(this.element,"origin-x"),originY:u.data(this.element,"origin-y"),pointerEvents:u.data(this.element,"pointer-events"),precision:u.data(this.element,"precision"),relativeInput:u.data(this.element,"relative-input"),clipRelativeInput:u.data(this.element,"clip-relative-input"),hoverOnly:u.data(this.element,"hover-only"),inputElement:document.querySelector(u.data(this.element,"input-element")),selector:u.data(this.element,"selector")};for(var s in i)null===i[s]&&delete i[s];r(this,o,i,e),this.inputElement||(this.inputElement=this.element),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depthsX=[],this.depthsY=[],this.raf=null,this.bounds=null,this.elementPositionX=0,this.elementPositionY=0,this.elementWidth=0,this.elementHeight=0,this.elementCenterX=0,this.elementCenterY=0,this.elementRangeX=0,this.elementRangeY=0,this.calibrationX=0,this.calibrationY=0,this.inputX=0,this.inputY=0,this.motionX=0,this.motionY=0,this.velocityX=0,this.velocityY=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onDeviceMotion=this.onDeviceMotion.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onMotionTimer=this.onMotionTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.windowWidth=null,this.windowHeight=null,this.windowCenterX=null,this.windowCenterY=null,this.windowRadiusX=null,this.windowRadiusY=null,this.portrait=!1,this.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),this.motionSupport=!!window.DeviceMotionEvent&&!this.desktop,this.orientationSupport=!!window.DeviceOrientationEvent&&!this.desktop,this.orientationStatus=0,this.motionStatus=0,this.initialise()}return s(n,[{key:"initialise",value:function(){void 0===this.transform2DSupport&&(this.transform2DSupport=u.transformSupport("2D"),this.transform3DSupport=u.transformSupport("3D")),this.transform3DSupport&&u.accelerate(this.element),"static"===window.getComputedStyle(this.element).getPropertyValue("position")&&(this.element.style.position="relative"),this.pointerEvents||(this.element.style.pointerEvents="none"),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)}},{key:"doReadyCallback",value:function(){this.onReady&&this.onReady()}},{key:"updateLayers",value:function(){this.selector?this.layers=this.element.querySelectorAll(this.selector):this.layers=this.element.children,this.layers.length||console.warn("ParallaxJS: Your scene does not have any layers."),this.depthsX=[],this.depthsY=[];for(var t=0;t<this.layers.length;t++){var e=this.layers[t];this.transform3DSupport&&u.accelerate(e),e.style.position=t?"absolute":"relative",e.style.display="block",e.style.left=0,e.style.top=0;var i=u.data(e,"depth")||0;this.depthsX.push(u.data(e,"depth-x")||i),this.depthsY.push(u.data(e,"depth-y")||i)}}},{key:"updateDimensions",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.windowCenterX=this.windowWidth*this.originX,this.windowCenterY=this.windowHeight*this.originY,this.windowRadiusX=Math.max(this.windowCenterX,this.windowWidth-this.windowCenterX),this.windowRadiusY=Math.max(this.windowCenterY,this.windowHeight-this.windowCenterY)}},{key:"updateBounds",value:function(){this.bounds=this.inputElement.getBoundingClientRect(),this.elementPositionX=this.bounds.left,this.elementPositionY=this.bounds.top,this.elementWidth=this.bounds.width,this.elementHeight=this.bounds.height,this.elementCenterX=this.elementWidth*this.originX,this.elementCenterY=this.elementHeight*this.originY,this.elementRangeX=Math.max(this.elementCenterX,this.elementWidth-this.elementCenterX),this.elementRangeY=Math.max(this.elementCenterY,this.elementHeight-this.elementCenterY)}},{key:"queueCalibration",value:function(t){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,t)}},{key:"enable",value:function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=!1,window.addEventListener("deviceorientation",this.onDeviceOrientation),this.detectionTimer=setTimeout(this.onOrientationTimer,this.supportDelay)):this.motionSupport?(this.portrait=!1,window.addEventListener("devicemotion",this.onDeviceMotion),this.detectionTimer=setTimeout(this.onMotionTimer,this.supportDelay)):(this.calibrationX=0,this.calibrationY=0,this.portrait=!1,window.addEventListener("mousemove",this.onMouseMove),this.doReadyCallback()),window.addEventListener("resize",this.onWindowResize),this.raf=l(this.onAnimationFrame))}},{key:"disable",value:function(){this.enabled&&(this.enabled=!1,this.orientationSupport?window.removeEventListener("deviceorientation",this.onDeviceOrientation):this.motionSupport?window.removeEventListener("devicemotion",this.onDeviceMotion):window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("resize",this.onWindowResize),l.cancel(this.raf))}},{key:"calibrate",value:function(t,e){this.calibrateX=void 0===t?this.calibrateX:t,this.calibrateY=void 0===e?this.calibrateY:e}},{key:"invert",value:function(t,e){this.invertX=void 0===t?this.invertX:t,this.invertY=void 0===e?this.invertY:e}},{key:"friction",value:function(t,e){this.frictionX=void 0===t?this.frictionX:t,this.frictionY=void 0===e?this.frictionY:e}},{key:"scalar",value:function(t,e){this.scalarX=void 0===t?this.scalarX:t,this.scalarY=void 0===e?this.scalarY:e}},{key:"limit",value:function(t,e){this.limitX=void 0===t?this.limitX:t,this.limitY=void 0===e?this.limitY:e}},{key:"origin",value:function(t,e){this.originX=void 0===t?this.originX:t,this.originY=void 0===e?this.originY:e}},{key:"setInputElement",value:function(t){this.inputElement=t,this.updateDimensions()}},{key:"setPosition",value:function(t,e,i){e=e.toFixed(this.precision)+"px",i=i.toFixed(this.precision)+"px",this.transform3DSupport?u.css(t,"transform","translate3d("+e+","+i+",0)"):this.transform2DSupport?u.css(t,"transform","translate("+e+","+i+")"):(t.style.left=e,t.style.top=i)}},{key:"onOrientationTimer",value:function(){this.orientationSupport&&0===this.orientationStatus?(this.disable(),this.orientationSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onMotionTimer",value:function(){this.motionSupport&&0===this.motionStatus?(this.disable(),this.motionSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onCalibrationTimer",value:function(){this.calibrationFlag=!0}},{key:"onWindowResize",value:function(){this.updateDimensions()}},{key:"onAnimationFrame",value:function(){this.updateBounds();var t=this.inputX-this.calibrationX,e=this.inputY-this.calibrationY;(Math.abs(t)>this.calibrationThreshold||Math.abs(e)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.motionX=this.calibrateX?e:this.inputY,this.motionY=this.calibrateY?t:this.inputX):(this.motionX=this.calibrateX?t:this.inputX,this.motionY=this.calibrateY?e:this.inputY),this.motionX*=this.elementWidth*(this.scalarX/100),this.motionY*=this.elementHeight*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.motionX=u.clamp(this.motionX,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.motionY=u.clamp(this.motionY,-this.limitY,this.limitY)),this.velocityX+=(this.motionX-this.velocityX)*this.frictionX,this.velocityY+=(this.motionY-this.velocityY)*this.frictionY;for(var i=0;i<this.layers.length;i++){var s=this.layers[i],n=this.depthsX[i],r=this.depthsY[i],o=this.velocityX*(n*(this.invertX?-1:1)),a=this.velocityY*(r*(this.invertY?-1:1));this.setPosition(s,o,a)}this.raf=l(this.onAnimationFrame)}},{key:"rotate",value:function(t,e){var i=(t||0)/30,s=(e||0)/30,n=this.windowHeight>this.windowWidth;this.portrait!==n&&(this.portrait=n,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.calibrationX=i,this.calibrationY=s),this.inputX=i,this.inputY=s}},{key:"onDeviceOrientation",value:function(t){var e=t.beta,i=t.gamma;null!==e&&null!==i&&(this.orientationStatus=1,this.rotate(e,i))}},{key:"onDeviceMotion",value:function(t){var e=t.rotationRate.beta,i=t.rotationRate.gamma;null!==e&&null!==i&&(this.motionStatus=1,this.rotate(e,i))}},{key:"onMouseMove",value:function(t){var e=t.clientX,i=t.clientY;if(this.hoverOnly&&(e<this.elementPositionX||e>this.elementPositionX+this.elementWidth||i<this.elementPositionY||i>this.elementPositionY+this.elementHeight))return this.inputX=0,void(this.inputY=0);this.relativeInput?(this.clipRelativeInput&&(e=Math.max(e,this.elementPositionX),e=Math.min(e,this.elementPositionX+this.elementWidth),i=Math.max(i,this.elementPositionY),i=Math.min(i,this.elementPositionY+this.elementHeight)),this.elementRangeX&&this.elementRangeY&&(this.inputX=(e-this.elementPositionX-this.elementCenterX)/this.elementRangeX,this.inputY=(i-this.elementPositionY-this.elementCenterY)/this.elementRangeY)):this.windowRadiusX&&this.windowRadiusY&&(this.inputX=(e-this.windowCenterX)/this.windowRadiusX,this.inputY=(i-this.windowCenterY)/this.windowRadiusY)}},{key:"destroy",value:function(){this.disable(),clearTimeout(this.calibrationTimer),clearTimeout(this.detectionTimer),this.element.removeAttribute("style");for(var t=0;t<this.layers.length;t++)this.layers[t].removeAttribute("style");delete this.element,delete this.layers}},{key:"version",value:function(){return"3.1.0"}}]),n}();e.exports=n},{"object-assign":1,raf:4}]},{},[5])(5)}),function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie)}(window||{},function(f){"use strict";function e(t){t?Math.round:function(t){return t}}function s(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function n(t,e){this.type=t,this.direction=e<0?-1:1}function r(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function o(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function a(t,e){this.type=t,this.target=e}function k(t,e){void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var i,s="";for(i=t;0<i;--i)s+=e[Math.round(Math.random()*(e.length-1))];return s}function l(t,e,i){var s,n,r,o,a,l,h,p;switch(l=i*(1-e),h=i*(1-(a=6*t-(o=Math.floor(6*t)))*e),p=i*(1-(1-a)*e),o%6){case 0:s=i,n=p,r=l;break;case 1:s=h,n=i,r=l;break;case 2:s=l,n=i,r=p;break;case 3:s=l,n=h,r=i;break;case 4:s=p,n=l,r=i;break;case 5:s=i,n=l,r=h}return[s,n,r]}function h(t,e,i){var s,n=Math.max(t,e,i),r=Math.min(t,e,i),o=n-r,a=0===n?0:o/n,l=n/255;switch(n){case r:s=0;break;case t:s=e-i+o*(e<i?6:0),s/=6*o;break;case e:s=i-t+2*o,s/=6*o;break;case i:s=t-e+4*o,s/=6*o}return[s,a,l]}function nt(t,e){var i=h(255*t[0],255*t[1],255*t[2]);return i[1]+=e,1<i[1]?i[1]=1:i[1]<=0&&(i[1]=0),l(i[0],i[1],i[2])}function rt(t,e){var i=h(255*t[0],255*t[1],255*t[2]);return i[2]+=e,1<i[2]?i[2]=1:i[2]<0&&(i[2]=0),l(i[0],i[1],i[2])}function ot(t,e){var i=h(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,1<i[0]?i[0]-=1:i[0]<0&&(i[0]+=1),l(i[0],i[1],i[2])}function t(){}function x(t){return Array.apply(null,{length:t})}function S(t){return document.createElementNS(gt,t)}function m(t){return document.createElement(t)}function p(t,e){var i,s,n=t.length;for(i=0;i<n;i+=1)for(var r in s=t[i].prototype)s.hasOwnProperty(r)&&(e.prototype[r]=s[r])}function c(){this.c=!1,this._length=0,this._maxLength=8,this.v=x(this._maxLength),this.o=x(this._maxLength),this.i=x(this._maxLength)}function d(){}function u(){}function g(){}function v(){}function y(){this._length=0,this._maxLength=4,this.shapes=x(this._maxLength)}function _(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=x(e.length),this.renderer=i,this._mdf=!1,this.k=!1,this.dashStr="",this.dashArray=At("float32",e.length-1),this.dashoffset=At("float32",1);var n,r,o=e.length;for(n=0;n<o;n+=1)r=It.getProp(t,e[n].v,0,0,s),this.k=!!r.k||this.k,this.dataProps[n]={n:e[n].n,p:r};this.k?s.push(this):this.getValue(!0)}function b(t,e,i){this.prop=It.getProp(t,e.k,1,null,[]),this.data=e,this.k=this.prop.k,this.c=At("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=At("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this._mdf=!1,this.prop.k&&i.push(this),this.getValue(!0)}function w(t,e,i){this._mdf=!1,this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._dynamicProperties=[],this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=x(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1}function T(t,e,i){var s={propType:!1},n=It.getProp,r=e.a;this.a={r:r.r?n(t,r.r,0,St,i):s,rx:r.rx?n(t,r.rx,0,St,i):s,ry:r.ry?n(t,r.ry,0,St,i):s,sk:r.sk?n(t,r.sk,0,St,i):s,sa:r.sa?n(t,r.sa,0,St,i):s,s:r.s?n(t,r.s,1,.01,i):s,a:r.a?n(t,r.a,1,0,i):s,o:r.o?n(t,r.o,0,.01,i):s,p:r.p?n(t,r.p,1,0,i):s,sw:r.sw?n(t,r.sw,0,0,i):s,sc:r.sc?n(t,r.sc,1,0,i):s,fc:r.fc?n(t,r.fc,1,0,i):s,fh:r.fh?n(t,r.fh,0,0,i):s,fs:r.fs?n(t,r.fs,0,.01,i):s,fb:r.fb?n(t,r.fb,0,.01,i):s,t:r.t?n(t,r.t,0,0,i):s},this.s=Ut.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function at(t,e,i,s,n,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=n,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function C(t,e,i){this._frameId=-999999,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!0,this.data=e,this.elem=t,this.keysIndex=-1,this.canResize=!1,this.minimumFontSize=1,this.currentData={ascent:0,boxWidth:[0,0],f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:[0,0],fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,__complete:!1,finalSize:0,finalText:[],finalLineHeight:0},this.searchProperty()?i.push(this):this.getValue(!0)}function P(){}function A(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=S("svg");var i=S("g");this.svgElement.appendChild(i),this.layerElement=i;var s=S("defs");this.svgElement.appendChild(s),this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||""},this.globalData={_mdf:!1,frameNum:-1,defs:s,frameId:0,compSize:{w:0,h:0},renderConfig:this.renderConfig,fontManager:new Ft},this.elements=[],this.pendingElements=[],this.destroyed=!1}function E(t,e,i,s){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null,this._isFirstFrame=!0;var n,r=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=x(o),this.solidPath="";var a,l,h,p,c,d,u,f=this.masksProperties,m=0,g=[],v=k(10),y="clipPath",_="clip-path";for(n=0;n<o;n++)if(("a"!==f[n].mode&&"n"!==f[n].mode||f[n].inv||100!==f[n].o.k)&&(_=y="mask"),"s"!=f[n].mode&&"i"!=f[n].mode||0!==m?p=null:((p=S("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w),p.setAttribute("height",this.element.comp.data.h),g.push(p)),a=S("path"),"n"!=f[n].mode){var b;if(m+=1,a.setAttribute("fill","s"===f[n].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==f[n].x.k?(_=y="mask",u=It.getProp(this.element,f[n].x,0,null,s),b="fi_"+k(10),(c=S("filter")).setAttribute("id",b),(d=S("feMorphology")).setAttribute("operator","dilate"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),c.appendChild(d),r.appendChild(c),a.setAttribute("stroke","s"===f[n].mode?"#000000":"#ffffff")):u=d=null,this.storedData[n]={elem:a,x:u,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"==f[n].mode){h=g.length;var w=S("g");for(l=0;l<h;l+=1)w.appendChild(g[l]);var T=S("mask");T.setAttribute("mask-type","alpha"),T.setAttribute("id",v+"_"+m),T.appendChild(a),r.appendChild(T),w.setAttribute("mask","url("+vt+"#"+v+"_"+m+")"),g.length=0,g.push(w)}else g.push(a);f[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:a,lastPath:"",op:It.getProp(this.element,f[n].o,0,.01,s),prop:zt.getShapeProp(this.element,f[n],3,s,null),invRect:p},this.viewData[n].prop.k||this.drawPath(f[n],this.viewData[n].prop.v,this.viewData[n])}else this.viewData[n]={op:It.getProp(this.element,f[n].o,0,.01,s),prop:zt.getShapeProp(this.element,f[n],3,s,null),elem:a},r.appendChild(a);for(this.maskElement=S(y),o=g.length,n=0;n<o;n+=1)this.maskElement.appendChild(g[n]);0<m&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(_,"url("+vt+"#"+v+")"),r.appendChild(this.maskElement))}function M(){}function D(){}function O(){}function F(){}function I(){}function L(t,e){this.elem=t,this.pos=e}function R(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!1,this.pElem=S("path"),this.msElem=null}function N(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e}function z(t,e){this.transform={mProps:t,op:e},this.elements=[]}function $(t,e,i,s){this.o=It.getProp(t,e.o,0,.01,i),this.w=It.getProp(t,e.w,0,null,i),this.d=new _(t,e.d||{},"svg",i),this.c=It.getProp(t,e.c,1,255,i),this.style=s}function j(t,e,i,s){this.o=It.getProp(t,e.o,0,.01,i),this.c=It.getProp(t,e.c,1,255,i),this.style=s}function X(t,e,i,s){this.initGradientData(t,e,i,s)}function Y(t,e,i,s){this.w=It.getProp(t,e.w,0,null,i),this.d=new _(t,e.d||{},"svg",i),this.initGradientData(t,e,i,s)}function B(){this.it=[],this.prevViewData=[],this.gr=S("g")}function H(){}function V(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function W(){}function q(){}function G(){}function U(){}function K(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function Q(t,e,i){this.initElement(t,e,i)}function Z(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?x(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?It.getProp(this,t.tm,0,e.frameRate,this.dynamicProperties):{_placeholder:!0}}function J(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function tt(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.initElement(t,e,i),this.prevViewData=[]}function et(t,e){this.filterManager=e;var i=S("feColorMatrix");if(i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i),(i=S("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result","f2"),t.appendChild(i),this.matrixFilter=i,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var s,n=S("feMerge");t.appendChild(n),(s=S("feMergeNode")).setAttribute("in","SourceGraphic"),n.appendChild(s),(s=S("feMergeNode")).setAttribute("in","f2"),n.appendChild(s)}}function it(t,e){this.filterManager=e;var i=S("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(i),this.matrixFilter=i}function st(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function lt(t,e){this.filterManager=e;var i=S("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i);var s=S("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.matrixFilter=s;var n=S("feFuncR");n.setAttribute("type","table"),s.appendChild(n),this.feFuncR=n;var r=S("feFuncG");r.setAttribute("type","table"),s.appendChild(r),this.feFuncG=r;var o=S("feFuncB");o.setAttribute("type","table"),s.appendChild(o),this.feFuncB=o}function ht(t,e){this.filterManager=e;var i=this.filterManager.effectElements,s=S("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),s=S("feComponentTransfer")),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function pt(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this.filterManager=e;var i=S("feGaussianBlur");i.setAttribute("in","SourceAlpha"),i.setAttribute("result","drop_shadow_1"),i.setAttribute("stdDeviation","0"),this.feGaussianBlur=i,t.appendChild(i);var s=S("feOffset");s.setAttribute("dx","25"),s.setAttribute("dy","0"),s.setAttribute("in","drop_shadow_1"),s.setAttribute("result","drop_shadow_2"),this.feOffset=s,t.appendChild(s);var n=S("feFlood");n.setAttribute("flood-color","#00ff00"),n.setAttribute("flood-opacity","1"),n.setAttribute("result","drop_shadow_3"),this.feFlood=n,t.appendChild(n);var r=S("feComposite");r.setAttribute("in","drop_shadow_3"),r.setAttribute("in2","drop_shadow_2"),r.setAttribute("operator","in"),r.setAttribute("result","drop_shadow_4"),t.appendChild(r);var o,a=S("feMerge");t.appendChild(a),o=S("feMergeNode"),a.appendChild(o),(o=S("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=a,this.originalNodeAdded=!1,a.appendChild(o)}function ct(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=S("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function dt(t){var e,i,s=t.data.ef?t.data.ef.length:0,n=k(10),r=Bt.createFilter(n),o=0;for(this.filters=[],e=0;e<s;e+=1)i=null,20===t.data.ef[e].ty?(o+=1,i=new et(r,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(o+=1,i=new it(r,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?i=new st(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(o+=1,i=new lt(r,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(o+=1,i=new ht(r,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(o+=1,i=new pt(r,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty&&(i=new ct(r,t.effectsManager.effectElements[e],t)),i&&this.filters.push(i);o&&(t.globalData.defs.appendChild(r),t.layerElement.setAttribute("filter","url("+vt+"#"+n+")"))}function ut(){}function ft(){!0===le?re.searchAnimations(he,le,pe):re.searchAnimations()}var mt,gt="http://www.w3.org/2000/svg",vt="",yt=!0,_t=(/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Math.round,Math.pow),bt=Math.sqrt,wt=(Math.abs,Math.floor),Tt=(Math.max,Math.min),kt={};!function(){var t,e=Object.getOwnPropertyNames(Math),i=e.length;for(t=0;t<i;t+=1)kt[e[t]]=Math[e[t]]}(),kt.random=Math.random,kt.abs=function(t){if("object"===typeof t&&t.length){var e,i=x(t.length),s=t.length;for(e=0;e<s;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var xt=150,St=Math.PI/180,Ct=.5519;e(!1);var Pt=function(){var t,e,s=[];for(t=0;t<256;t+=1)e=t.toString(16),s[t]=1==e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+s[t]+s[e]+s[i]}}();t.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,s=0;s<i;s++)this._cbs[t][s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var At="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}:function(t,e){var i,s=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)n.push(i);return n},Et=function(){function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){if(0===t)return this;var e=P(t),i=A(t);return this._t(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1)}function i(t){if(0===t)return this;var e=P(t),i=A(t);return this._t(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1)}function s(t){if(0===t)return this;var e=P(t),i=A(t);return this._t(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1)}function n(t){if(0===t)return this;var e=P(t),i=A(t);return this._t(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1)}function r(t,e){return this._t(1,e,t,1,0,0)}function o(t,e){return this.shear(E(t),E(e))}function a(t,e){var i=P(e),s=A(e);return this._t(i,s,0,0,-s,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,E(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e,i){return i=isNaN(i)?1:i,1==t&&1==e&&1==i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function h(t,e,i,s,n,r,o,a,l,h,p,c,d,u,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=n,this.props[5]=r,this.props[6]=o,this.props[7]=a,this.props[8]=l,this.props[9]=h,this.props[10]=p,this.props[11]=c,this.props[12]=d,this.props[13]=u,this.props[14]=f,this.props[15]=m,this}function p(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function c(t,e,i,s,n,r,o,a,l,h,p,c,d,u,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===n&&1===r&&0===o&&0===a&&0===l&&0===h&&1===p&&0===c)return g[12]=g[12]*t+g[15]*d,g[13]=g[13]*r+g[15]*u,g[14]=g[14]*p+g[15]*f,g[15]=g[15]*m,this._identityCalculated=!1,this;var v=g[0],y=g[1],_=g[2],b=g[3],w=g[4],T=g[5],k=g[6],x=g[7],S=g[8],C=g[9],P=g[10],A=g[11],E=g[12],M=g[13],D=g[14],O=g[15];return g[0]=v*t+y*n+_*l+b*d,g[1]=v*e+y*r+_*h+b*u,g[2]=v*i+y*o+_*p+b*f,g[3]=v*s+y*a+_*c+b*m,g[4]=w*t+T*n+k*l+x*d,g[5]=w*e+T*r+k*h+x*u,g[6]=w*i+T*o+k*p+x*f,g[7]=w*s+T*a+k*c+x*m,g[8]=S*t+C*n+P*l+A*d,g[9]=S*e+C*r+P*h+A*u,g[10]=S*i+C*o+P*p+A*f,g[11]=S*s+C*a+P*c+A*m,g[12]=E*t+M*n+D*l+O*d,g[13]=E*e+M*r+D*h+O*u,g[14]=E*i+M*o+D*p+O*f,g[15]=E*s+M*a+D*c+O*m,this._identityCalculated=!1,this}function d(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function u(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function f(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function m(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function g(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function v(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function y(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function _(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function b(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/e,s=-this.props[1]/e,n=-this.props[4]/e,r=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*i+t[1]*n+o,t[0]*s+t[1]*r+a,0]}function w(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=b(t[e]);return s}function T(t,e,i){var s=At("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var n=this.props[0],r=this.props[1],o=this.props[4],a=this.props[5],l=this.props[12],h=this.props[13];s[0]=t[0]*n+t[1]*o+l,s[1]=t[0]*r+t[1]*a+h,s[2]=e[0]*n+e[1]*o+l,s[3]=e[0]*r+e[1]*a+h,s[4]=i[0]*n+i[1]*o+l,s[5]=i[0]*r+i[1]*a+h}return s}function k(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function x(t,e){return this.isIdentity()?t+","+e:t*this.props[0]+e*this.props[4]+this.props[12]+","+(t*this.props[1]+e*this.props[5]+this.props[13])}function S(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=M(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function C(){var t=this.props;return"matrix("+M(1e4*t[0])/1e4+","+M(1e4*t[1])/1e4+","+M(1e4*t[4])/1e4+","+M(1e4*t[5])/1e4+","+M(1e4*t[12])/1e4+","+M(1e4*t[13])/1e4+")"}var P=Math.cos,A=Math.sin,E=Math.tan,M=Math.round;return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=s,this.rotateZ=n,this.skew=o,this.skewFromAxis=a,this.shear=r,this.scale=l,this.setTransform=h,this.translate=p,this.transform=c,this.applyToPoint=g,this.applyToX=v,this.applyToY=y,this.applyToZ=_,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=x,this.toCSS=S,this.to2dCSS=C,this.clone=f,this.cloneFromProps=m,this.equals=u,this.inversePoints=w,this.inversePoint=b,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=At("float32",16),this.reset()}}();!function(a,l){function h(t){var e,i=t.length,o=this,s=0,n=o.i=o.j=0,r=o.S=[];for(i||(t=[i++]);s<m;)r[s]=s++;for(s=0;s<m;s++)r[s]=r[n=w&n+t[s%i]+(e=r[s])],r[n]=e;o.g=function(t){for(var e,i=0,s=o.i,n=o.j,r=o.S;t--;)e=r[s=w&s+1],i=i*m+r[w&(r[s]=r[n=w&n+e])+(r[n]=e)];return o.i=s,o.j=n,i}}function p(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){for(var i,s=t+"",n=0;n<s.length;)e[w&n]=w&(i^=19*e[w&n])+s.charCodeAt(n++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}var u,f=this,m=256,g=6,v="random",y=l.pow(m,g),_=l.pow(2,52),b=2*_,w=m-1;l["seed"+v]=function(t,e,i){var s=[],n=c(function t(e,i){var s,n=[],r=typeof e;if(i&&"object"==r)for(s in e)try{n.push(t(e[s],i-1))}catch(t){}return n.length?n:"string"==r?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,d(a)]:null===t?function(){try{if(u)return d(u.randomBytes(m));var t=new Uint8Array(m);return(f.crypto||f.msCrypto).getRandomValues(t),d(t)}catch(t){var e=f.navigator,i=e&&e.plugins;return[+new Date,f,i,f.screen,d(a)]}}():t,3),s),r=new h(s),o=function(){for(var t=r.g(g),e=y,i=0;t<_;)t=(t+i)*m,e*=m,i=r.g(1);for(;b<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e};return o.int32=function(){return 0|r.g(4)},o.quick=function(){return r.g(4)/4294967296},o.double=o,c(d(r.S),a),(e.pass||i||function(t,e,i,s){return s&&(s.S&&p(s,r),t.state=function(){return p(r,{})}),i?(l[v]=t,e):t})(o,n,"global"in e?e.global:this==l,e.state)},c(l.random(),a)}([],kt);var Mt=function(){function s(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function r(t){return 3*t}function h(t,e,i){return((s(e,i)*t+n(e,i))*t+r(e))*t}function p(t,e,i){return 3*s(e,i)*t*t+2*n(e,i)*t+r(e)}function a(t){this._p=t,this._mSampleValues=e?new Float32Array(c):new Array(c),this._precomputed=!1,this.get=this.get.bind(this)}var t={getBezierEasing:function(t,e,i,s,n){var r=n||("bez_"+t+"_"+e+"_"+i+"_"+s).replace(/\./g,"p");if(l[r])return l[r];var o=new a([t,e,i,s]);return l[r]=o}},l={},c=11,d=1/(c-1),e="function"==typeof Float32Array;return a.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&s===n?t:0===t?0:1===t?1:h(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<c;++i)this._mSampleValues[i]=h(i*d,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,n=0,r=1,o=c-1;r!==o&&s[r]<=t;++r)n+=d;var a=n+(t-s[--r])/(s[r+1]-s[r])*d,l=p(a,e,i);return.001<=l?function(t,e,i,s){for(var n=0;n<4;++n){var r=p(e,i,s);if(0===r)return e;e-=(h(e,i,s)-t)/r}return e}(t,a,e,i):0===l?a:function(t,e,i,s,n){for(var r,o,a=0;0<(r=h(o=e+(i-e)/2,s,n)-t)?i=o:e=o,1e-7<Math.abs(r)&&++a<10;);return o}(t,n,n+d,e,i)}},t}();!function(){for(var r=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!f.requestAnimationFrame;++e)f.requestAnimationFrame=f[t[e]+"RequestAnimationFrame"],f.cancelAnimationFrame=f[t[e]+"CancelAnimationFrame"]||f[t[e]+"CancelRequestAnimationFrame"];f.requestAnimationFrame||(f.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),s=Math.max(0,16-(i-r)),n=setTimeout(function(){t(i+s)},s);return r=i+s,n}),f.cancelAnimationFrame||(f.cancelAnimationFrame=function(t){clearTimeout(t)})}();var Dt=function(){function v(t,e,i,s,n,r){var o=t*s+e*n+i*r-n*s-r*t-i*e;return-1e-4<o&&o<1e-4}function y(t){this.segmentLength=0,this.points=new Array(t)}function _(t,e){this.partialLength=t,this.point=e}function E(t,e){var i=e.percents,s=e.lengths,n=i.length,r=wt((n-1)*t),o=t*e.addedLength,a=0;if(r===n-1||0===r||o===s[r])return i[r];for(var l=s[r]>o?-1:1,h=!0;h;)if(s[r]<=o&&s[r+1]>o?(a=(o-s[r])/(s[r+1]-s[r]),h=!1):r+=l,r<0||n-1<=r){if(r===n-1)return i[r];h=!1}return i[r]+(i[r+1]-i[r])*a}var b,p=(Math,function(t,e,i,s){var n,r,o,a,l,h,p=xt,c=0,d=[],u=[],f=ie.newElement();for(o=i.length,n=0;n<p;n+=1){for(l=n/(p-1),r=h=0;r<o;r+=1)a=_t(1-l,3)*t[r]+3*_t(1-l,2)*l*i[r]+3*(1-l)*_t(l,2)*s[r]+_t(l,3)*e[r],d[r]=a,null!==u[r]&&(h+=_t(d[r]-u[r],2)),u[r]=d[r];h&&(c+=h=bt(h)),f.percents[n]=l,f.lengths[n]=c}return f.addedLength=c,f}),t=(b={},function(t){var e=t.s,i=t.e,s=t.to,n=t.ti,r=(e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]+"_"+n[0]+"_"+n[1]).replace(/\./g,"p");if(b[r])t.bezierData=b[r];else{var o,a,l,h,p,c,d,u=xt,f=0,m=null;2===e.length&&(e[0]!=i[0]||e[1]!=i[1])&&v(e[0],e[1],i[0],i[1],e[0]+s[0],e[1]+s[1])&&v(e[0],e[1],i[0],i[1],i[0]+n[0],i[1]+n[1])&&(u=2);var g=new y(u);for(l=s.length,o=0;o<u;o+=1){for(d=x(l),p=o/(u-1),a=c=0;a<l;a+=1)h=_t(1-p,3)*e[a]+3*_t(1-p,2)*p*(e[a]+s[a])+3*(1-p)*_t(p,2)*(i[a]+n[a])+_t(p,3)*i[a],d[a]=h,null!==m&&(c+=_t(d[a]-m[a],2));f+=c=bt(c),g.points[o]=new _(c,d),m=d}g.segmentLength=f,t.bezierData=g,b[r]=g}}),M=At("float32",8);return{getSegmentsLength:function(t){var e,i=ee.newElement(),s=t.c,n=t.v,r=t.o,o=t.i,a=t._length,l=i.lengths,h=0;for(e=0;e<a-1;e+=1)l[e]=p(n[e],n[e+1],r[e],o[e+1]),h+=l[e].addedLength;return s&&(l[e]=p(n[e],n[0],r[e],o[0]),h+=l[e].addedLength),i.totalLength=h,i},getNewSegment:function(t,e,i,s,n,r,o){var a,l=E(n=n<0?0:1<n?1:n,o),h=E(r=1<r?1:r,o),p=t.length,c=1-l,d=1-h,u=c*c*c,f=l*c*c*3,m=l*l*c*3,g=l*l*l,v=c*c*d,y=l*c*d+c*l*d+c*c*h,_=l*l*d+c*l*h+l*c*h,b=l*l*h,w=c*d*d,T=l*d*d+c*h*d+c*d*h,k=l*h*d+c*h*h+l*d*h,x=l*h*h,S=d*d*d,C=h*d*d+d*h*d+d*d*h,P=h*h*d+d*h*h+h*d*h,A=h*h*h;for(a=0;a<p;a+=1)M[4*a]=Math.round(1e3*(u*t[a]+f*i[a]+m*s[a]+g*e[a]))/1e3,M[4*a+1]=Math.round(1e3*(v*t[a]+y*i[a]+_*s[a]+b*e[a]))/1e3,M[4*a+2]=Math.round(1e3*(w*t[a]+T*i[a]+k*s[a]+x*e[a]))/1e3,M[4*a+3]=Math.round(1e3*(S*t[a]+C*i[a]+P*s[a]+A*e[a]))/1e3;return M},getPointInSegment:function(t,e,i,s,n,r){var o=E(n,r),a=1-o;return[Math.round(1e3*(a*a*a*t[0]+(o*a*a+a*o*a+a*a*o)*i[0]+(o*o*a+a*o*o+o*a*o)*s[0]+o*o*o*e[0]))/1e3,Math.round(1e3*(a*a*a*t[1]+(o*a*a+a*o*a+a*a*o)*i[1]+(o*o*a+a*o*o+o*a*o)*s[1]+o*o*o*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:v,pointOnLine3D:function(t,e,i,s,n,r,o,a,l){if(0===i&&0===r&&0===l)return v(t,e,s,n,o,a);var h,p=Math.sqrt(Math.pow(s-t,2)+Math.pow(n-e,2)+Math.pow(r-i,2)),c=Math.sqrt(Math.pow(o-t,2)+Math.pow(a-e,2)+Math.pow(l-i,2)),d=Math.sqrt(Math.pow(o-s,2)+Math.pow(a-n,2)+Math.pow(l-r,2));return-1e-4<(h=c<p?d<p?p-c-d:d-c-p:c<d?d-c-p:c-p-d)&&h<1e-4}}}(),Ot=function(){function u(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}}function f(t){var e,i,s;for(e=t.length-1;0<=e;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)m(t[e].ks.k);else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&m(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&m(t[e].ks.k[i].e[0]);else"gr"==t[e].ty&&f(t[e].it)}function m(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function a(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var l,i=function(){function s(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=t[e],s=i.t.d,i.t.d={k:[{s:s,t:0}]})}var n=[4,4,14];return function(t){if(a(n,t.v)&&(s(t.layers),t.assets)){var e,i=t.assets.length;for(e=0;e<i;e+=1)t.assets[e].layers&&s(t.assets[e].layers)}}}(),s=(l=[4,7,99],function(t){if(t.chars&&!a(l,t.v)){var e,i,s,n,r,o=t.chars.length;for(e=0;e<o;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(s=(r=t.chars[e].data.shapes[0].it).length,i=0;i<s;i+=1)(n=r[i].ks.k).__converted||(m(r[i].ks.k),n.__converted=!0)}}),n=function(){function r(t){var e,i,s,n=t.length;for(e=0;e<n;e+=1)if("gr"===t[e].ty)r(t[e].it);else if("fl"===t[e].ty||"st"===t[e].ty)if(t[e].c.k&&t[e].c.k[0].i)for(s=t[e].c.k.length,i=0;i<s;i+=1)t[e].c.k[i].s&&(t[e].c.k[i].s[0]/=255,t[e].c.k[i].s[1]/=255,t[e].c.k[i].s[2]/=255,t[e].c.k[i].s[3]/=255),t[e].c.k[i].e&&(t[e].c.k[i].e[0]/=255,t[e].c.k[i].e[1]/=255,t[e].c.k[i].e[2]/=255,t[e].c.k[i].e[3]/=255);else t[e].c.k[0]/=255,t[e].c.k[1]/=255,t[e].c.k[2]/=255,t[e].c.k[3]/=255}function s(t){var e,i=t.length;for(e=0;e<i;e+=1)4===t[e].ty&&r(t[e].shapes)}var n=[4,1,9];return function(t){if(a(n,t.v)&&(s(t.layers),t.assets)){var e,i=t.assets.length;for(e=0;e<i;e+=1)t.assets[e].layers&&s(t.assets[e].layers)}}}(),r=function(){function h(t){var e,i,s;for(e=t.length-1;0<=e;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)t[e].ks.k.c=t[e].closed;else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&(t[e].ks.k[i].s[0].c=t[e].closed),t[e].ks.k[i].e&&(t[e].ks.k[i].e[0].c=t[e].closed);else"gr"==t[e].ty&&h(t[e].it)}function s(t){var e,i,s,n,r,o,a=t.length;for(i=0;i<a;i+=1){if((e=t[i]).hasMask){var l=e.masksProperties;for(n=l.length,s=0;s<n;s+=1)if(l[s].pt.k.i)l[s].pt.k.c=l[s].cl;else for(o=l[s].pt.k.length,r=0;r<o;r+=1)l[s].pt.k[r].s&&(l[s].pt.k[r].s[0].c=l[s].cl),l[s].pt.k[r].e&&(l[s].pt.k[r].e[0].c=l[s].cl)}4===e.ty&&h(e.shapes)}}var n=[4,4,18];return function(t){if(a(n,t.v)&&(s(t.layers),t.assets)){var e,i=t.assets.length;for(e=0;e<i;e+=1)t.assets[e].layers&&s(t.assets[e].layers)}}}(),t={};return t.completeData=function(t,e){t.__complete||(n(t),i(t),s(t),r(t),function t(e,i,s){var n,r,o,a,l,h,p,c=e.length;for(r=0;r<c;r+=1)if("ks"in(n=e[r])&&!n.completed){if(n.completed=!0,n.tt&&(e[r-1].td=n.tt),n.hasMask){var d=n.masksProperties;for(a=d.length,o=0;o<a;o+=1)if(d[o].pt.k.i)m(d[o].pt.k);else for(h=d[o].pt.k.length,l=0;l<h;l+=1)d[o].pt.k[l].s&&m(d[o].pt.k[l].s[0]),d[o].pt.k[l].e&&m(d[o].pt.k[l].e[0])}0===n.ty?(n.layers=u(n.refId,i),t(n.layers,i,s)):4===n.ty?f(n.shapes):5==n.ty&&(0!==(p=n).t.a.length||"m"in p.t.p||(p.singleShape=!0))}}(t.layers,t.assets,e),t.__complete=!0)},t}(),Ft=function(){function l(t,e){var i=m("span");i.style.fontFamily=e;var s=m("span");s.innerHTML="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var n=s.offsetWidth;return s.style.fontFamily=t+", "+e,{node:s,w:n,parent:i}}function h(t,e){var i=S("text");i.style.fontSize="100px",i.style.fontFamily=e.fFamily,i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.className=e.fClass):i.style.fontFamily=e.fFamily,t.appendChild(i);var s=m("canvas").getContext("2d");return s.font="100px "+e.fFamily,s}var p=5e3,r={w:0,size:0,shapes:[]},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var e=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.loaded=!1,this.initTime=Date.now()};return e.getCombinedCharacterCodes=function(){return t},e.prototype.addChars=function(t){if(t){this.chars||(this.chars=[]);var e,i,s,n=t.length,r=this.chars.length;for(e=0;e<n;e+=1){for(i=0,s=!1;i<r;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),r+=1)}}},e.prototype.addFonts=function(t,e){if(t){if(this.chars)return this.loaded=!0,void(this.fonts=t.list);var i,s=t.list,n=s.length;for(i=0;i<n;i+=1){if(s[i].loaded=!1,s[i].monoCase=l(s[i].fFamily,"monospace"),s[i].sansCase=l(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){var r=m("style");r.type="text/css",r.innerHTML="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(r)}else if("g"===s[i].fOrigin||1===s[i].origin){var o=m("link");o.type="text/css",o.rel="stylesheet",o.href=s[i].fPath,e.appendChild(o)}else if("t"===s[i].fOrigin||2===s[i].origin){var a=m("script");a.setAttribute("src",s[i].fPath),e.appendChild(a)}}else s[i].loaded=!0;s[i].helper=h(e,s[i]),this.fonts.push(s[i])}(function t(){var e,i,s,n=this.fonts.length,r=n;for(e=0;e<n;e+=1)if(this.fonts[e].loaded)r-=1;else if("t"===this.fonts[e].fOrigin||2===this.fonts[e].origin){if(f.Typekit&&f.Typekit.load&&0===this.typekitLoaded){this.typekitLoaded=1;try{f.Typekit.load({async:!0,active:function(){this.typekitLoaded=2}.bind(this)})}catch(t){}}2===this.typekitLoaded&&(this.fonts[e].loaded=!0)}else"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,s=this.fonts[e].monoCase.w,i.offsetWidth!==s?(r-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,s=this.fonts[e].sansCase.w,i.offsetWidth!==s&&(r-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==r&&Date.now()-this.initTime<p?setTimeout(t.bind(this),20):setTimeout(function(){this.loaded=!0}.bind(this),0)}).bind(this)()}else this.loaded=!0},e.prototype.getCharData=function(t,e,i){for(var s=0,n=this.chars.length;s<n;){if(this.chars[s].ch===t&&this.chars[s].style===e&&this.chars[s].fFamily===i)return this.chars[s];s+=1}return console&&console.warn&&console.warn("Missing character from exported characters list: ",t,e,i),r},e.prototype.getFontByName=function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return"sans-serif"},e.prototype.measureText=function(t,e,i){return this.getFontByName(e).helper.measureText(t).width*i/100},e}(),It=function(){function p(t,e,i){var s,n,r,o,a,l,h,p=this.offsetTime;"multidimensional"===this.propType&&(s=At("float32",e.length));for(var c,d,u=i.lastIndex,f=u,m=this.keyframes.length-1,g=!0;g;){if(c=this.keyframes[f],d=this.keyframes[f+1],f==m-1&&t>=d.t-p){c.h&&(c=d),u=0;break}if(d.t-p>t){u=f;break}f<m-1?f+=1:(u=0,g=!1)}if(c.to){c.bezierData||Dt.buildBezierData(c);var v=c.bezierData;if(t>=d.t-p||t<c.t-p){var y=t>=d.t-p?v.points.length-1:0;for(r=v.points[y].point.length,n=0;n<r;n+=1)s[n]=v.points[y].point[n];i._lastBezierData=null}else{c.__fnct?h=c.__fnct:(h=Mt.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,c.__fnct=h),o=h((t-(c.t-p))/(d.t-p-(c.t-p)));var _,b=v.segmentLength*o,w=i.lastFrame<t&&i._lastBezierData===v?i._lastAddedLength:0;for(l=i.lastFrame<t&&i._lastBezierData===v?i._lastPoint:0,g=!0,a=v.points.length;g;){if(w+=v.points[l].partialLength,0===b||0===o||l==v.points.length-1){for(r=v.points[l].point.length,n=0;n<r;n+=1)s[n]=v.points[l].point[n];break}if(w<=b&&b<w+v.points[l+1].partialLength){for(_=(b-w)/v.points[l+1].partialLength,r=v.points[l].point.length,n=0;n<r;n+=1)s[n]=v.points[l].point[n]+(v.points[l+1].point[n]-v.points[l].point[n])*_;break}l<a-1?l+=1:g=!1}i._lastPoint=l,i._lastAddedLength=w-v.points[l].partialLength,i._lastBezierData=v}}else{var T,k,x,S,C;for(m=c.s.length,f=0;f<m;f+=1){if(1!==c.h&&(t>=d.t-p?o=1:t<c.t-p?o=0:(c.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[f]?h=c.__fnct[f]:(T=c.o.x[f]||c.o.x[0],k=c.o.y[f]||c.o.y[0],x=c.i.x[f]||c.i.x[0],S=c.i.y[f]||c.i.y[0],h=Mt.getBezierEasing(T,k,x,S).get,c.__fnct[f]=h)):c.__fnct?h=c.__fnct:(T=c.o.x,k=c.o.y,x=c.i.x,S=c.i.y,h=Mt.getBezierEasing(T,k,x,S).get,c.__fnct=h),o=h((t-(c.t-p))/(d.t-p-(c.t-p))))),this.sh&&1!==c.h){var P=c.s[f],A=c.e[f];P-A<-180?P+=360:180<P-A&&(P-=360),C=P+(A-P)*o}else C=1===c.h?c.s[f]:c.s[f]+(c.e[f]-c.s[f])*o;1===m?s=C:s[f]=C}}return i.lastIndex=u,s}function c(t){for(var e=0;e<this.v.length;)this.pv[e]=t[e],this.v[e]=this.mult?this.pv[e]*this.mult:this.pv[e],this.lastPValue[e]!==this.pv[e]&&(this._mdf=!0,this.lastPValue[e]=this.pv[e]),e+=1}function s(t){this.pv=t,this.v=this.mult?this.pv*this.mult:this.pv,this.lastPValue!=this.pv&&(this._mdf=!0,this.lastPValue=this.pv)}function d(){if(this.elem.globalData.frameId!==this.frameId){this._mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==u&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e))){this._caching.lastIndex=this._caching.lastFrame<t?this._caching.lastIndex:0;var s=this.interpolateValue(t,this.pv,this._caching);this.calculateValueAtCurrentTime(s)}this._caching.lastFrame=t,this.frameId=this.elem.globalData.frameId}}function r(){this._mdf=!1}function o(t,e,i){this.propType="unidimensional",this.mult=i,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.getValue=r}function a(t,e,i){this.propType="multidimensional",this.mult=i,this.data=e,this._mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,n=e.k.length;for(this.v=At("float32",n),this.pv=At("float32",n),this.lastValue=At("float32",n),At("float32",n),this.vel=At("float32",n),s=0;s<n;s+=1)this.v[s]=i?e.k[s]*i:e.k[s],this.pv[s]=e.k[s];this.getValue=r}function l(t,e,i){this.propType="unidimensional",this.keyframes=e.k,this.offsetTime=t.data.st,this.lastValue=u,this.lastPValue=u,this.frameId=-1,this._caching={lastFrame:u,lastIndex:0,value:0},this.k=!0,this.kf=!0,this.data=e,this.mult=i,this.elem=t,this._isFirstFrame=!1,this.comp=t.comp,this.v=i?e.k[0].s[0]*i:e.k[0].s[0],this.pv=e.k[0].s[0],this.getValue=d,this.calculateValueAtCurrentTime=s,this.interpolateValue=p}function h(t,e,i){this.propType="multidimensional";var s,n,r,o,a,l=e.k.length;for(s=0;s<l-1;s+=1)e.k[s].to&&e.k[s].s&&e.k[s].e&&(n=e.k[s].s,r=e.k[s].e,o=e.k[s].to,a=e.k[s].ti,(2===n.length&&(n[0]!==r[0]||n[1]!==r[1])&&Dt.pointOnLine2D(n[0],n[1],r[0],r[1],n[0]+o[0],n[1]+o[1])&&Dt.pointOnLine2D(n[0],n[1],r[0],r[1],r[0]+a[0],r[1]+a[1])||3===n.length&&(n[0]!==r[0]||n[1]!==r[1]||n[2]!==r[2])&&Dt.pointOnLine3D(n[0],n[1],n[2],r[0],r[1],r[2],n[0]+o[0],n[1]+o[1],n[2]+o[2])&&Dt.pointOnLine3D(n[0],n[1],n[2],r[0],r[1],r[2],r[0]+a[0],r[1]+a[1],r[2]+a[2]))&&(e.k[s].to=null,e.k[s].ti=null),n[0]===r[0]&&n[1]===r[1]&&0===o[0]&&0===o[1]&&0===a[0]&&0===a[1]&&(2===n.length||n[2]===r[2]&&0===o[2]&&0===a[2])&&(e.k[s].to=null,e.k[s].ti=null));this.keyframes=e.k,this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i,this.elem=t,this.comp=t.comp,this.getValue=d,this.calculateValueAtCurrentTime=c,this.interpolateValue=p,this.frameId=-1;var h=e.k[0].s.length;this.v=At("float32",h),this.pv=At("float32",h),this.lastValue=At("float32",h),this.lastPValue=At("float32",h),this._caching={lastFrame:u,lastIndex:0,value:At("float32",h)}}var u=-999999;return{getProp:function(t,e,i,s,n){var r;if(0===e.a)r=0===i?new o(t,e,s):new a(t,e,s);else if(1===e.a)r=0===i?new l(t,e,s):new h(t,e,s);else if(e.k.length)if("number"==typeof e.k[0])r=new a(t,e,s);else switch(i){case 0:r=new l(t,e,s);break;case 1:r=new h(t,e,s)}else r=new o(t,e,s);return r.k&&n.push(r),r}}}(),Lt=function(){function s(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.dynamicProperties=[],this._mdf=!1,this.data=e,this.v=new Et,e.p.s?(this.px=It.getProp(t,e.p.x,0,0,this.dynamicProperties),this.py=It.getProp(t,e.p.y,0,0,this.dynamicProperties),e.p.z&&(this.pz=It.getProp(t,e.p.z,0,0,this.dynamicProperties))):this.p=It.getProp(t,e.p,1,0,this.dynamicProperties),e.r)this.r=It.getProp(t,e.r,0,St,this.dynamicProperties);else if(e.rx){if(this.rx=It.getProp(t,e.rx,0,St,this.dynamicProperties),this.ry=It.getProp(t,e.ry,0,St,this.dynamicProperties),this.rz=It.getProp(t,e.rz,0,St,this.dynamicProperties),e.or.k[0].ti){var s,n=e.or.k.length;for(s=0;s<n;s+=1)e.or.k[s].to=e.or.k[s].ti=null}this.or=It.getProp(t,e.or,1,St,this.dynamicProperties),this.or.sh=!0}e.sk&&(this.sk=It.getProp(t,e.sk,0,St,this.dynamicProperties),this.sa=It.getProp(t,e.sa,0,St,this.dynamicProperties)),e.a&&(this.a=It.getProp(t,e.a,1,0,this.dynamicProperties)),e.s&&(this.s=It.getProp(t,e.s,1,.01,this.dynamicProperties)),e.o?this.o=It.getProp(t,e.o,0,.01,i):this.o={_mdf:!1,v:1},this.dynamicProperties.length?i.push(this):this.getValue(!0)}return s.prototype.applyToMatrix=function(t){var e,i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0);this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},s.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId){this._mdf=!1;var e,i,s,n=this.dynamicProperties.length;for(e=0;e<n;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0);if(this._mdf||t)this.v.reset(),this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r?this.v.rotate(-this.r.v):this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&this.p.keyframes&&this.p.getValueAtTime&&(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/this.elem.globalData.frameRate,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/this.elem.globalData.frameRate,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/this.elem.globalData.frameRate,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.01)/this.elem.globalData.frameRate,0)):(i=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/this.elem.globalData.frameRate,this.p.offsetTime)),this.v.rotate(-Math.atan2(i[1]-s[1],i[0]-s[0]))),this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);this.frameId=this.elem.globalData.frameId}},s.prototype.setInverted=function(){this.inverted=!0,this.iv=new Et,this.k||(this.data.p.s?this.iv.translate(this.px.v,this.py.v,-this.pz.v):this.iv.translate(this.p.v[0],this.p.v[1],-this.p.v[2]),this.r?this.iv.rotate(-this.r.v):this.iv.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.s&&this.iv.scale(this.s.v[0],this.s.v[1],1),this.a&&this.iv.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]))},s.prototype.autoOrient=function(){},{getTransformProperty:function(t,e,i){return new s(t,e,i)}}}();c.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=Zt.newElement(),this.o[i]=Zt.newElement(),this.i[i]=Zt.newElement(),i+=1},c.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},c.prototype.doubleArrayLength=function(){this.v=this.v.concat(x(this._maxLength)),this.i=this.i.concat(x(this._maxLength)),this.o=this.o.concat(x(this._maxLength)),this._maxLength*=2},c.prototype.setXYAt=function(t,e,i,s,n){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o}(!r[s]||r[s]&&!n)&&(r[s]=Zt.newElement()),r[s][0]=t,r[s][1]=e},c.prototype.setTripleAt=function(t,e,i,s,n,r,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(i,s,"o",o,a),this.setXYAt(n,r,"i",o,a)},c.prototype.reverse=function(){var t=new c;t.setPathData(this.c,this._length);var e=this.v,s=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],s[0][0],s[0][1],0,!1),r=1);var o=this._length-1,a=this._length;for(i=r;i<a;i+=1)t.setTripleAt(e[o][0],e[o][1],n[o][0],n[o][1],s[o][0],s[o][1],i,!1),o-=1;return t};var Rt,Nt,zt=function(){function t(t,e,i,s){var n,r,o,a,l,h,p,c,d,u=s.lastIndex,f=!1;if(t<this.keyframes[0].t-this.offsetTime)n=this.keyframes[0].s[0],o=!0,u=0;else if(t>=this.keyframes[this.keyframes.length-1].t-this.offsetTime)n=1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-1].s[0]:this.keyframes[this.keyframes.length-2].e[0],o=!0;else{for(var m,g,v=u,y=this.keyframes.length-1,_=!0;_&&(m=this.keyframes[v],!((g=this.keyframes[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:_=!1;if(u=v,!(o=1===m.h)){if(t>=g.t-this.offsetTime)c=1;else if(t<m.t-this.offsetTime)c=0;else{var b;m.__fnct?b=m.__fnct:(b=Mt.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,m.__fnct=b),c=b((t-(m.t-this.offsetTime))/(g.t-this.offsetTime-(m.t-this.offsetTime)))}r=m.e[0]}n=m.s[0]}for(h=e._length,p=n.i[0].length,s.lastIndex=u,a=0;a<h;a+=1)for(l=0;l<p;l+=1)d=o?n.i[a][l]:n.i[a][l]+(r.i[a][l]-n.i[a][l])*c,e.i[a][l]!==d&&(e.i[a][l]=d,i&&(this.pv.i[a][l]=d),f=!0),d=o?n.o[a][l]:n.o[a][l]+(r.o[a][l]-n.o[a][l])*c,e.o[a][l]!==d&&(e.o[a][l]=d,i&&(this.pv.o[a][l]=d),f=!0),d=o?n.v[a][l]:n.v[a][l]+(r.v[a][l]-n.v[a][l])*c,e.v[a][l]!==d&&(e.v[a][l]=d,i&&(this.pv.v[a][l]=d),f=!0);return f}function r(){this.paths=this.localShapeCollection,this.k||(this._mdf=!1)}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.k=!1,this._mdf=!1;var s=3===i?e.pt.k:e.ks.k;this.v=Jt.clone(s),this.pv=Jt.clone(this.v),this.localShapeCollection=te.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r}function l(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.offsetTime=t.data.st,this.keyframes=3===i?e.pt.k:e.ks.k,this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length,this.v=Jt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=Jt.clone(this.v),this.localShapeCollection=te.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=o,this.reset=r,this._caching={lastFrame:o,lastIndex:0}}var o=-999999;a.prototype.interpolateShape=t,a.prototype.getValue=function(){return this.v},l.prototype.getValue=function(){if(this.elem.globalData.frameId!==this.frameId){this._mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;if(s===o||!(s<e&&t<e||i<s&&i<t)){this._caching.lastIndex=s<t?this._caching.lastIndex:0;var n=this.interpolateShape(t,this.v,!0,this._caching);(this._mdf=n)&&(this.paths=this.localShapeCollection)}this._caching.lastFrame=t,this.frameId=this.elem.globalData.frameId}},l.prototype.interpolateShape=t;var h=function(){function i(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=3!==this.d,r=this.v;3!==this.d&&(r.v[0][0]=t,r.v[0][1]=e-s,r.v[1][0]=n?t+i:t-i,r.v[1][1]=e,r.v[2][0]=t,r.v[2][1]=e+s,r.v[3][0]=n?t-i:t+i,r.v[3][1]=e,r.i[0][0]=n?t-i*o:t+i*o,r.i[0][1]=e-s,r.i[1][0]=n?t+i:t-i,r.i[1][1]=e-s*o,r.i[2][0]=n?t+i*o:t-i*o,r.i[2][1]=e+s,r.i[3][0]=n?t-i:t+i,r.i[3][1]=e+s*o,r.o[0][0]=n?t+i*o:t-i*o,r.o[0][1]=e-s,r.o[1][0]=n?t+i:t-i,r.o[1][1]=e+s*o,r.o[2][0]=n?t-i*o:t+i*o,r.o[2][1]=e+s,r.o[3][0]=n?t-i:t+i,r.o[3][1]=e-s*o)}function s(t){var e,i=this.dynamicProperties.length;if(this.elem.globalData.frameId!==this.frameId){for(this._mdf=!1,this.frameId=this.elem.globalData.frameId,e=0;e<i;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e]._mdf&&(this._mdf=!0);this._mdf&&this.convertEllToPath()}}var o=Ct;return function(t,e){this.v=Jt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=te.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.dynamicProperties=[],this.elem=t,this.comp=t.comp,this.frameId=-1,this._mdf=!1,this.getValue=s,this.convertEllToPath=i,this.reset=r,this.p=It.getProp(t,e.p,1,0,this.dynamicProperties),this.s=It.getProp(t,e.s,1,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertEllToPath()}}(),p=function(){function i(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,n=this.os.v,r=2*Math.PI*s/(4*e),o=-Math.PI/2,a=3===this.data.d?-1:1;for(o+=this.r.v,t=this.v._length=0;t<e;t+=1){var l=s*Math.cos(o),h=s*Math.sin(o),p=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),c=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-p*r*n*a,h-c*r*n*a,l+p*r*n*a,h+c*r*n*a,t,!0),o+=i*a}this.paths.length=0,this.paths[0]=this.v}function s(){var t,e,i,s,n=2*Math.floor(this.pt.v),r=2*Math.PI/n,o=!0,a=this.or.v,l=this.ir.v,h=this.os.v,p=this.is.v,c=2*Math.PI*a/(2*n),d=2*Math.PI*l/(2*n),u=-Math.PI/2;u+=this.r.v;var f=3===this.data.d?-1:1;for(t=this.v._length=0;t<n;t+=1){i=o?h:p,s=o?c:d;var m=(e=o?a:l)*Math.cos(u),g=e*Math.sin(u),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*s*i*f,g-y*s*i*f,m+v*s*i*f,g+y*s*i*f,t,!0),o=!o,u+=r*f}}function n(){if(this.elem.globalData.frameId!==this.frameId){this._mdf=!1,this.frameId=this.elem.globalData.frameId;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0);this._mdf&&this.convertToPath()}}return function(t,e){this.v=Jt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.dynamicProperties=[],this._mdf=!1,this.getValue=n,this.reset=r,1===e.sy?(this.ir=It.getProp(t,e.ir,0,0,this.dynamicProperties),this.is=It.getProp(t,e.is,0,.01,this.dynamicProperties),this.convertToPath=s):this.convertToPath=i,this.pt=It.getProp(t,e.pt,0,0,this.dynamicProperties),this.p=It.getProp(t,e.p,1,0,this.dynamicProperties),this.r=It.getProp(t,e.r,0,St,this.dynamicProperties),this.or=It.getProp(t,e.or,0,0,this.dynamicProperties),this.os=It.getProp(t,e.os,0,.01,this.dynamicProperties),this.localShapeCollection=te.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:this.convertToPath()}}(),c=function(){function i(t){if(this.elem.globalData.frameId!==this.frameId){this._mdf=!1,this.frameId=this.elem.globalData.frameId;var e,i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e]._mdf&&(this._mdf=!0);this._mdf&&this.convertRectToPath()}}function s(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=Tt(i,s,this.r.v),r=n*(1-Ct);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+n,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-r,t+i,e+s-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+s,t+i-n,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+n,e+s,t-i+r,e+s,t-i+n,e+s,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+r,t-i,e-s+n,5,!0),this.v.setTripleAt(t-i+n,e-s,t-i+n,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-n,e-s,t+i-r,e-s,t+i-n,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+r,t+i,e-s+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-s,t+i-n,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+n,e-s,t-i+r,e-s,t-i+n,e-s,2,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+n,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i+n,e+s,t-i+n,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-n,e+s,t+i-r,e+s,t+i-n,e+s,6,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-n,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))}return function(t,e){this.v=Jt.newElement(),this.v.c=!0,this.localShapeCollection=te.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.dynamicProperties=[],this._mdf=!1,this.getValue=i,this.convertRectToPath=s,this.reset=r,this.p=It.getProp(t,e.p,1,0,this.dynamicProperties),this.s=It.getProp(t,e.s,1,0,this.dynamicProperties),this.r=It.getProp(t,e.r,0,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertRectToPath()}}(),e={getShapeProp:function(t,e,i,s){var n;if(3===i||4===i){var r=3===i?e.pt:e.ks,o=r.k;n=1===r.a||o.length?new l(t,e,i):new a(t,e,i)}else 5===i?n=new c(t,e):6===i?n=new h(t,e):7===i&&(n=new p(t,e));return n.k&&s.push(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return e}(),$t=(Nt={},(Rt={}).registerModifier=function(t,e){Nt[t]||(Nt[t]=e)},Rt.getModifier=function(t,e,i,s){return new Nt[t](e,i,s)},Rt);d.prototype.initModifierProperties=function(){},d.prototype.addShapeToModifier=function(){},d.prototype.addShape=function(t){if(!this.closed){var e={shape:t.sh,data:t,localShapeCollection:te.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e)}},d.prototype.init=function(t,e,i){this.dynamicProperties=[],this.shapes=[],this.elem=t,this.initModifierProperties(t,e),this.frameId=-999999,this._mdf=!1,this.closed=!1,this.k=!1,this.dynamicProperties.length?(this.k=!0,i.push(this)):this.getValue(!0)},d.prototype.processKeys=function(){if(this.elem.globalData.frameId!==this.frameId){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0);this.frameId=this.elem.globalData.frameId}},p([d],u),u.prototype.initModifierProperties=function(t,e){this.s=It.getProp(t,e.s,0,.01,this.dynamicProperties),this.e=It.getProp(t,e.e,0,.01,this.dynamicProperties),this.o=It.getProp(t,e.o,0,0,this.dynamicProperties),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m},u.prototype.addShapeToModifier=function(t){t.pathsData=[]},u.prototype.calculateShapeEdges=function(t,e,i,s,n){var r=[];e<=1?r.push({s:t,e:e}):1<=t?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var o,a,l=[],h=r.length;for(o=0;o<h;o+=1)if((a=r[o]).e*n<s||a.s*n>s+i);else{var p,c;p=a.s*n<=s?0:(a.s*n-s)/i,c=a.e*n>=s+i?1:(a.e*n-s)/i,l.push([p,c])}return l.length||l.push([0,0]),l},u.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)ee.release(t[e]);return t.length=0,t},u.prototype.processShapes=function(t){var e,i;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),e=this.s.v+s,(i=this.e.v+s)<e){var n=e;e=i,i=n}this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var r,o,a,l,h,p,c,d=this.shapes.length,u=0;if(i===e)for(o=0;o<d;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection;else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(o=0;o<d;o+=1)this.shapes[o].shape._mdf=!0}else{var f,m,g=[];for(o=0;o<d;o+=1)if((f=this.shapes[o]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=f.shape.paths)._length,c=0,!f.shape._mdf&&f.pathsData.length)c=f.totalShapeLength;else{for(h=this.releasePathsData(f.pathsData),a=0;a<l;a+=1)p=Dt.getSegmentsLength(r.shapes[a]),h.push(p),c+=p.totalLength;f.totalShapeLength=c,f.pathsData=h}u+=c,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,_=i,b=0;for(o=d-1;0<=o;o-=1)if((f=this.shapes[o]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&1<d?(v=this.calculateShapeEdges(e,i,f.totalShapeLength,b,u),b+=f.totalShapeLength):v=[[y,_]],l=v.length,a=0;a<l;a+=1){y=v[a][0],_=v[a][1],g.length=0,_<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*_}):1<=y?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(_-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(_-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(1<g.length)if(f.shape.v.c){var T=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],T)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},u.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},u.prototype.addSegment=function(t,e,i,s,n,r,o){n.setXYAt(e[0],e[1],"o",r),n.setXYAt(i[0],i[1],"i",r+1),o&&n.setXYAt(t[0],t[1],"v",r),n.setXYAt(s[0],s[1],"v",r+1)},u.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},u.prototype.addShapes=function(t,e,i){var s,n,r,o,a,l,h,p,c=t.pathsData,d=t.shape.paths.shapes,u=t.shape.paths._length,f=0,m=[],g=!0;for(i?(a=i._length,p=i._length):(i=Jt.newElement(),p=a=0),m.push(i),s=0;s<u;s+=1){for(l=c[s].lengths,i.c=d[s].c,r=d[s].c?l.length:l.length+1,n=1;n<r;n+=1)if(f+(o=l[n-1]).addedLength<e.s)f+=o.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(d[s].v[n-1],d[s].o[n-1],d[s].i[n],d[s].v[n],i,a,g),g=!1):(h=Dt.getNewSegment(d[s].v[n-1],d[s].v[n],d[s].o[n-1],d[s].i[n],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[n-1]),this.addSegmentFromArray(h,i,a,g),g=!1,i.c=!1),f+=o.addedLength,a+=1}if(d[s].c){if(o=l[n-1],f<=e.e){var v=l[n-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(d[s].v[n-1],d[s].o[n-1],d[s].i[0],d[s].v[0],i,a,g),g=!1):(h=Dt.getNewSegment(d[s].v[n-1],d[s].v[0],d[s].o[n-1],d[s].i[0],(e.s-f)/v,(e.e-f)/v,l[n-1]),this.addSegmentFromArray(h,i,a,g),g=!1,i.c=!1)}else i.c=!1;f+=o.addedLength,a+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;s<u-1&&(i=Jt.newElement(),g=!0,m.push(i),a=0)}return m},$t.registerModifier("tm",u),p([d],g),g.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=It.getProp(t,e.r,0,null,this.dynamicProperties)},g.prototype.processPath=function(t,e){var i=Jt.newElement();i.c=t.c;var s,n,r,o,a,l,h,p,c,d,u,f,m,g=t._length,v=0;for(s=0;s<g;s+=1)n=t.v[s],o=t.o[s],r=t.i[s],n[0]===o[0]&&n[1]===o[1]&&n[0]===r[0]&&n[1]===r[1]?0!==s&&s!==g-1||t.c?(a=0===s?t.v[g-1]:t.v[s-1],h=(l=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(l/2,e)/l:0,p=f=n[0]+(a[0]-n[0])*h,c=m=n[1]-(n[1]-a[1])*h,d=p-(p-n[0])*Ct,u=c-(c-n[1])*Ct,i.setTripleAt(p,c,d,u,f,m,v),v+=1,a=s===g-1?t.v[0]:t.v[s+1],h=(l=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(l/2,e)/l:0,p=d=n[0]+(a[0]-n[0])*h,c=u=n[1]+(a[1]-n[1])*h,f=p-(p-n[0])*Ct,m=c-(c-n[1])*Ct,i.setTripleAt(p,c,d,u,f,m,v)):i.setTripleAt(n[0],n[1],o[0],o[1],r[0],r[1],v):i.setTripleAt(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],v),v+=1;return i},g.prototype.processShapes=function(t){var e,i,s,n,r,o,a=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<a;i+=1){if((r=this.shapes[i]).shape.paths,o=r.localShapeCollection,r.shape._mdf||this._mdf||t)for(o.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)o.addShape(this.processPath(e[s],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},$t.registerModifier("rd",g),p([d],v),v.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=It.getProp(t,e.c,0,null,this.dynamicProperties),this.o=It.getProp(t,e.o,0,null,this.dynamicProperties),this.tr=Lt.getTransformProperty(t,e.tr,this.dynamicProperties),this.data=e,this.dynamicProperties.length||this.getValue(!0),this.pMatrix=new Et,this.rMatrix=new Et,this.sMatrix=new Et,this.tMatrix=new Et,this.matrix=new Et},v.prototype.applyTransforms=function(t,e,i,s,n,r){var o=r?-1:1,a=s.s.v[0]+(1-s.s.v[0])*(1-n),l=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*o*n,s.p.v[1]*o*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*o*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/a:a,r?1/l:l),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},v.prototype.init=function(t,e,i,s,n){this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.dynamicProperties=[],this.frameId=-1,this.initModifierProperties(t,e[i]);for(;0<i;)i-=1,this._elements.unshift(e[i]),1;this.dynamicProperties.length?(this.k=!0,n.push(this)):this.getValue(!0)},v.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},v.prototype.cloneElements=function(t){var e=(t.length,JSON.parse(JSON.stringify(t)));return this.resetElements(e),e},v.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},v.prototype.processShapes=function(t){var e,i,s,n,r;if(this._mdf||t){var o,a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:0,ix:6,k:0},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes()}for(s=r=0;s<=this._groups.length-1;s+=1)o=r<a,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),r+=1;this._currentCopies=a;var h=this.o.v,p=h%1,c=0<h?Math.floor(h):Math.ceil(h),d=(this.tr.v.props,this.pMatrix.props),u=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,g,v=0;if(0<h){for(;v<c;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),v+=p)}else if(h<0){for(;c<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),v-=p)}for(s=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,r=this._currentCopies;r;){if(g=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,0!==v){for((0!==s&&1===n||s!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),m=0;m<g;m+=1)i[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<g;m+=1)i[m]=this.matrix.props[m];v+=1,r-=1,s+=n}}else for(r=this._currentCopies,s=0,n=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,s+=n},v.prototype.addShape=function(){},$t.registerModifier("rp",v),y.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(x(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},y.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)Jt.release(this.shapes[t]);this._length=0},_.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId||t){var e=0,i=this.dataProps.length;for(this._mdf=!1,this.frameId=this.elem.globalData.frameId;e<i;){if(this.dataProps[e].p._mdf){this._mdf=!t;break}e+=1}if(this._mdf||t)for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},b.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},b.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},b.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}};var jt,Xt=function(){function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t){var e="";if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e}function n(t){var e=m("img");e.addEventListener("load",i.bind(this),!1),e.addEventListener("error",i.bind(this),!1),e.src=t}function t(t,e){var i;for(this.imagesLoadedCb=e,this.totalAssets=t.length,i=0;i<this.totalAssets;i+=1)t[i].layers||(n.bind(this)(s.bind(this)(t[i])),this.totalImages+=1)}function e(t){this.path=t||""}function r(t){this.assetsPath=t||""}function o(){this.imagesLoadedCb=null}return function(){this.loadAssets=t,this.setAssetsPath=r,this.setPath=e,this.destroy=o,this.assetsPath="",this.path="",this.totalAssets=0,this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null}}(),Yt=(jt={maskType:!0},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(jt.maskType=!1),jt),Bt={createFilter:function(t){var e=S("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},createAlphaToLuminanceFilter:function(){var t=S("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};w.prototype.searchProperties=function(t){var e,i,s=this._textData.a.length,n=It.getProp;for(e=0;e<s;e+=1)i=this._textData.a[e],this._animatorsData[e]=new T(this._elem,i,this._dynamicProperties);this._textData.p&&"m"in this._textData.p?(this._pathData={f:n(this._elem,this._textData.p.f,0,0,this._dynamicProperties),l:n(this._elem,this._textData.p.l,0,0,this._dynamicProperties),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this._dynamicProperties),this._dynamicProperties.length&&t.push(this)},w.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,n,r,o,a,l,h,p,c,d,u,f,m,g,v,y,_,b,w=this._moreOptions.alignment.v,T=this._animatorsData,k=this._textData,x=this.mHelper,S=this._renderType,C=this.renderedLetters.length,P=(this.data,t.l);if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,E=b.v;for(this._pathData.r&&(E=E.reverse()),o={tLength:0,segments:[]},r=E._length-1,n=v=0;n<r;n+=1)A={s:E.v[n],e:E.v[n+1],to:[E.o[n][0]-E.v[n][0],E.o[n][1]-E.v[n][1]],ti:[E.i[n+1][0]-E.v[n+1][0],E.i[n+1][1]-E.v[n+1][1]]},Dt.buildBezierData(A),o.tLength+=A.bezierData.segmentLength,o.segments.push(A),v+=A.bezierData.segmentLength;n=r,b.v.c&&(A={s:E.v[n],e:E.v[0],to:[E.o[n][0]-E.v[n][0],E.o[n][1]-E.v[n][1]],ti:[E.i[0][0]-E.v[0][0],E.i[0][1]-E.v[0][1]]},Dt.buildBezierData(A),o.tLength+=A.bezierData.segmentLength,o.segments.push(A),v+=A.bezierData.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,c=1,p=!(h=d=0),m=o.segments,a<0&&b.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),c=(f=m[d=m.length-1].bezierData.points).length-1;a<0;)a+=f[c].partialLength,(c-=1)<0&&(c=(f=m[d-=1].bezierData.points).length-1);u=(f=m[d].bezierData.points)[c-1],g=(l=f[c]).partialLength}r=P.length,s=i=0;var M,D,O,F,I=1.2*t.finalSize*.714,L=!0;O=T.length;var R,N,z,$,j,X,Y,B,H,V,W,q,G,U=-1,K=a,Q=d,Z=c,J=-1,tt="",et=this.defaultPropsArray;for(n=0;n<r;n+=1){if(x.reset(),j=1,P[n].n)i=0,s+=t.yOffset,s+=L?1:0,a=K,L=!1,0,this._hasMaskedPath&&(c=Z,u=(f=m[d=Q].bezierData.points)[c-1],g=(l=f[c]).partialLength,h=0),G=V=q=tt="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==P[n].line){switch(t.j){case 1:a+=v-t.lineWidths[P[n].line];break;case 2:a+=(v-t.lineWidths[P[n].line])/2}J=P[n].line}U!==P[n].ind&&(P[U]&&(a+=P[U].extra),a+=P[n].an/2,U=P[n].ind),a+=w[0]*P[n].an/200;var it=0;for(D=0;D<O;D+=1)(M=T[D].a).p.propType&&(it+=(R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars)).length?M.p.v[0]*R[0]:M.p.v[0]*R),M.a.propType&&(it+=(R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars)).length?M.a.v[0]*R[0]:M.a.v[0]*R);for(p=!0;p;)a+it<=h+g||!f?(y=(a+it-h)/l.partialLength,z=u.point[0]+(l.point[0]-u.point[0])*y,$=u.point[1]+(l.point[1]-u.point[1])*y,x.translate(-w[0]*P[n].an/200,-w[1]*I/100),p=!1):f&&(h+=l.partialLength,(c+=1)>=f.length&&(c=0,m[d+=1]?f=m[d].bezierData.points:b.v.c?f=m[d=c=0].bezierData.points:(h-=l.partialLength,f=null)),f&&(u=l,g=(l=f[c]).partialLength));N=P[n].an/2-P[n].add,x.translate(-N,0,0)}else N=P[n].an/2-P[n].add,x.translate(-N,0,0),x.translate(-w[0]*P[n].an/200,-w[1]*I/100,0);for(P[n].l/2,D=0;D<O;D+=1)(M=T[D].a).t.propType&&(R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars),this._hasMaskedPath?a+=R.length?M.t*R[0]:M.t*R:i+=R.length?M.t.v*R[0]:M.t.v*R);for(P[n].l/2,t.strokeWidthAnim&&(Y=t.sw||0),t.strokeColorAnim&&(X=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(B=[t.fc[0],t.fc[1],t.fc[2]]),D=0;D<O;D+=1)(M=T[D].a).a.propType&&((R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars)).length?x.translate(-M.a.v[0]*R[0],-M.a.v[1]*R[1],M.a.v[2]*R[2]):x.translate(-M.a.v[0]*R,-M.a.v[1]*R,M.a.v[2]*R));for(D=0;D<O;D+=1)(M=T[D].a).s.propType&&((R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars)).length?x.scale(1+(M.s.v[0]-1)*R[0],1+(M.s.v[1]-1)*R[1],1):x.scale(1+(M.s.v[0]-1)*R,1+(M.s.v[1]-1)*R,1));for(D=0;D<O;D+=1){if(M=T[D].a,R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars),M.sk.propType&&(R.length?x.skewFromAxis(-M.sk.v*R[0],M.sa.v*R[1]):x.skewFromAxis(-M.sk.v*R,M.sa.v*R)),M.r.propType&&(R.length?x.rotateZ(-M.r.v*R[2]):x.rotateZ(-M.r.v*R)),M.ry.propType&&(R.length?x.rotateY(M.ry.v*R[1]):x.rotateY(M.ry.v*R)),M.rx.propType&&(R.length?x.rotateX(M.rx.v*R[0]):x.rotateX(M.rx.v*R)),M.o.propType&&(j+=R.length?(M.o.v*R[0]-j)*R[0]:(M.o.v*R-j)*R),t.strokeWidthAnim&&M.sw.propType&&(Y+=R.length?M.sw.v*R[0]:M.sw.v*R),t.strokeColorAnim&&M.sc.propType)for(H=0;H<3;H+=1)R.length?X[H]=X[H]+(M.sc.v[H]-X[H])*R[0]:X[H]=X[H]+(M.sc.v[H]-X[H])*R;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(H=0;H<3;H+=1)R.length?B[H]=B[H]+(M.fc.v[H]-B[H])*R[0]:B[H]=B[H]+(M.fc.v[H]-B[H])*R;M.fh.propType&&(B=R.length?ot(B,M.fh.v*R[0]):ot(B,M.fh.v*R)),M.fs.propType&&(B=R.length?nt(B,M.fs.v*R[0]):nt(B,M.fs.v*R)),M.fb.propType&&(B=R.length?rt(B,M.fb.v*R[0]):rt(B,M.fb.v*R))}}for(D=0;D<O;D+=1)(M=T[D].a).p.propType&&(R=T[D].s.getMult(P[n].anIndexes[D],k.a[D].s.totalChars),this._hasMaskedPath?R.length?x.translate(0,M.p.v[1]*R[0],-M.p.v[2]*R[1]):x.translate(0,M.p.v[1]*R,-M.p.v[2]*R):R.length?x.translate(M.p.v[0]*R[0],M.p.v[1]*R[1],-M.p.v[2]*R[2]):x.translate(M.p.v[0]*R,M.p.v[1]*R,-M.p.v[2]*R));if(t.strokeWidthAnim&&(V=Y<0?0:Y),t.strokeColorAnim&&(W="rgb("+Math.round(255*X[0])+","+Math.round(255*X[1])+","+Math.round(255*X[2])+")"),t.fillColorAnim&&t.fc&&(q="rgb("+Math.round(255*B[0])+","+Math.round(255*B[1])+","+Math.round(255*B[2])+")"),this._hasMaskedPath){if(x.translate(0,-t.ls),x.translate(0,w[1]*I/100+s,0),k.p.p){_=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var st=180*Math.atan(_)/Math.PI;l.point[0]<u.point[0]&&(st+=180),x.rotate(-st*Math.PI/180)}x.translate(z,$,0),a-=w[0]*P[n].an/200,P[n+1]&&U!==P[n+1].ind&&(a+=P[n].an/2,a+=t.tr/1e3*t.finalSize)}else{switch(x.translate(i,s,0),t.ps&&x.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:x.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line]),0,0);break;case 2:x.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[P[n].line])/2,0,0)}x.translate(0,-t.ls),x.translate(N,0,0),x.translate(w[0]*P[n].an/200,w[1]*I/100,0),i+=P[n].l+t.tr/1e3*t.finalSize}"html"===S?tt=x.toCSS():"svg"===S?tt=x.to2dCSS():et=[x.props[0],x.props[1],x.props[2],x.props[3],x.props[4],x.props[5],x.props[6],x.props[7],x.props[8],x.props[9],x.props[10],x.props[11],x.props[12],x.props[13],x.props[14],x.props[15]],G=j}C<=n?(F=new at(G,V,W,q,tt,et),this.renderedLetters.push(F),C+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[n],this.lettersChangedFlag=F.update(G,V,W,q,tt,et)||this.lettersChangedFlag)}}},w.prototype.getValue=function(){if(this._elem.globalData.frameId!==this._frameId){this._frameId=this._elem.globalData.frameId;var t,e=this._dynamicProperties.length;for(this._mdf=!1,t=0;t<e;t+=1)this._dynamicProperties[t].getValue(),this._mdf=this._dynamicProperties[t]._mdf||this._mdf}},w.prototype.mHelper=new Et,w.prototype.defaultPropsArray=[],at.prototype.update=function(t,e,i,s,n,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var o=this._mdf.p=!1;return this.o!==t&&(this.o=t,o=this._mdf.o=!0),this.sw!==e&&(this.sw=e,o=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,o=this._mdf.sc=!0),this.fc!==s&&(this.fc=s,o=this._mdf.fc=!0),this.m!==n&&(this.m=n,o=this._mdf.m=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,o=this._mdf.p=!0),o},C.prototype.setCurrentData=function(t){var e=this.currentData;e.ascent=t.ascent,e.boxWidth=t.boxWidth?t.boxWidth:e.boxWidth,e.f=t.f,e.fStyle=t.fStyle,e.fWeight=t.fWeight,e.fc=t.fc,e.j=t.j,e.justifyOffset=t.justifyOffset,e.l=t.l,e.lh=t.lh,e.lineWidths=t.lineWidths,e.ls=t.ls,e.of=t.of,e.s=t.s,e.sc=t.sc,e.sw=t.sw,e.sz=t.sz,e.ps=t.ps,e.t=t.t,e.tr=t.tr,e.fillColorAnim=t.fillColorAnim||e.fillColorAnim,e.strokeColorAnim=t.strokeColorAnim||e.strokeColorAnim,e.strokeWidthAnim=t.strokeWidthAnim||e.strokeWidthAnim,e.yOffset=t.yOffset,e.finalSize=t.finalSize,e.finalLineHeight=t.finalLineHeight,e.finalText=t.finalText,e.__complete=!1},C.prototype.searchProperty=function(){return this.kf=1<this.data.d.k.length,this.kf},C.prototype.getValue=function(t){this._mdf=!1;var e=this.elem.globalData.frameId;if(e!==this._frameId&&this.kf||this._isFirstFrame||t){for(var i,s=this.data.d.k,n=this.elem.comp.renderedFrame,r=0,o=s.length;r<=o-1&&(i=s[r].s,!(r===o-1||s[r+1].t>n));)r+=1;this.keysIndex!==r&&(i.__complete||this.completeTextData(i),this.setCurrentData(i),this._mdf=!this._isFirstFrame,this.pv=this.v=this.currentData.t,this.keysIndex=r),this._frameId=e}},C.prototype.buildFinalText=function(t){for(var e=Ft.getCombinedCharacterCodes(),i=[],s=0,n=t.length;s<n;)-1!==e.indexOf(t.charCodeAt(s))?i[i.length-1]+=t.charAt(s):i.push(t.charAt(s)),s+=1;return i},C.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,n,r,o,a,l=this.elem.globalData.fontManager,h=this.data,p=[],c=0,d=h.m.g,u=0,f=0,m=0,g=[],v=0,y=0,_=l.getFontByName(t.f),b=0,w=_.fStyle.split(" "),T="normal",k="normal";for(i=w.length,e=0;e<i;e+=1)switch(w[e].toLowerCase()){case"italic":k="italic";break;case"bold":T="700";break;case"black":T="900";break;case"medium":T="500";break;case"regular":case"normal":T="400";break;case"light":case"thin":T="200"}t.fWeight=_.fWeight||T,t.fStyle=k,i=t.t.length,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),t.finalLineHeight=t.lh;var x=t.tr/1e3*t.finalSize;if(t.sz)for(var S,C,P=!0,A=t.sz[0],E=t.sz[1];P;){v=S=0,i=(C=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var M=-1;for(e=0;e<i;e+=1)s=!1," "===C[e]?M=e:13===C[e].charCodeAt(0)&&(s=!(v=0),S+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(C[e],_.fStyle,_.fFamily),b=s?0:a.w*t.finalSize/100):b=l.measureText(C[e],t.f,t.finalSize),A<v+b&&" "!==C[e]?(-1===M?i+=1:e=M,S+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,M===e?1:0,"\r"),M=-1,v=0):(v+=b,v+=x);S+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&E<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,i=t.finalText.length,P=!1)}v=-x;var D,O=b=0;for(e=0;e<i;e+=1)if(s=!1," "===(D=t.finalText[e])?n=" ":13===D.charCodeAt(0)?(O=0,g.push(v),y=y<v?v:y,v=-2*x,s=!(n=""),m+=1):n=t.finalText[e],l.chars?(a=l.getCharData(D,_.fStyle,l.getFontByName(t.f).fFamily),b=s?0:a.w*t.finalSize/100):b=l.measureText(n,t.f,t.finalSize)," "===D?O+=b+x:(v+=b+x+O,O=0),p.push({l:b,an:b,add:u,n:s,anIndexes:[],val:n,line:m}),2==d){if(u+=b,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(u-=b);f<=e;)p[f].an=u,p[f].ind=c,p[f].extra=b,f+=1;c+=1,u=0}}else if(3==d){if(u+=b,""===n||e===i-1){for(""===n&&(u-=b);f<=e;)p[f].an=u,p[f].ind=c,p[f].extra=b,f+=1;u=0,c+=1}}else p[c].ind=c,p[c].extra=0,c+=1;if(t.l=p,y=y<v?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var F,I,L=h.a;o=L.length;var R,N,z=[];for(r=0;r<o;r+=1){for((F=L[r]).a.sc&&(t.strokeColorAnim=!0),F.a.sw&&(t.strokeWidthAnim=!0),(F.a.fc||F.a.fh||F.a.fs||F.a.fb)&&(t.fillColorAnim=!0),N=0,R=F.s.b,e=0;e<i;e+=1)(I=p[e]).anIndexes[r]=N,(1==R&&""!==I.val||2==R&&""!==I.val&&" "!==I.val||3==R&&(I.n||" "==I.val||e==i-1)||4==R&&(I.n||e==i-1))&&(1===F.s.rn&&z.push(N),N+=1);h.a[r].s.totalChars=N;var $,j=-1;if(1===F.s.rn)for(e=0;e<i;e+=1)j!=(I=p[e]).anIndexes[r]&&(j=I.anIndexes[r],$=z.splice(Math.floor(Math.random()*z.length),1)[0]),I.anIndexes[r]=$}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},C.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.data.d.k[e].s;for(var s in t)i[s]=t[s];this.recalculate(e)},C.prototype.recalculate=function(t){this.data.d.k[t].s.__complete=!1,this.keysIndex=-1,this.getValue(!0)},C.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex)},C.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex)};var Ht,Vt,Wt,qt,Gt,Ut=function(){function s(t){if(this._mdf=t||!1,this.dynamicProperties.length){var e,i=this.dynamicProperties.length;for(e=0;e<i;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)}var s=this.data.totalChars||this.elem.textProperty.currentData.l.length||0;t&&2===this.data.r&&(this.e.v=s);var n=2===this.data.r?1:100/s,r=this.o.v/n,o=this.s.v/n+r,a=this.e.v/n+r;if(a<o){var l=o;o=a,a=l}this.finalS=o,this.finalE=a}function n(t){var e=Mt.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,i=0,s=this.finalS,n=this.finalE,r=this.data.sh;if(2==r)i=e(i=n===s?n<=t?1:0:h(0,p(.5/(n-s)+(t-s)/(n-s),1)));else if(3==r)i=e(i=n===s?n<=t?0:1:1-h(0,p(.5/(n-s)+(t-s)/(n-s),1)));else if(4==r)n===s?i=0:(i=h(0,p(.5/(n-s)+(t-s)/(n-s),1)))<.5?i*=2:i=1-2*(i-.5),i=e(i);else if(5==r){if(n===s)i=0;else{var o=n-s,a=-o/2+(t=p(h(0,t+.5-s),n-s)),l=o/2;i=Math.sqrt(1-a*a/(l*l))}i=e(i)}else 6==r?n===s?i=0:(t=p(h(0,t+.5-s),n-s),i=(1+Math.cos(Math.PI+2*Math.PI*t/(n-s)))/2):t>=c(s)&&(i=t-s<0?1-(s-t):h(0,p(n-t,1))),i=e(i);return i*this.a.v}function r(t,e,i){this._mdf=!1,this.k=!1,this.data=e,this.dynamicProperties=[],this.getValue=s,this.getMult=n,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.s=It.getProp(t,e.s||{k:0},0,0,this.dynamicProperties),this.e="e"in e?It.getProp(t,e.e,0,0,this.dynamicProperties):{v:100},this.o=It.getProp(t,e.o||{k:0},0,0,this.dynamicProperties),this.xe=It.getProp(t,e.xe||{k:0},0,0,this.dynamicProperties),this.ne=It.getProp(t,e.ne||{k:0},0,0,this.dynamicProperties),this.a=It.getProp(t,e.a,0,.01,this.dynamicProperties),this.dynamicProperties.length?i.push(this):this.getValue()}var h=Math.max,p=Math.min,c=Math.floor;return{getTextSelectorProp:function(t,e,i){return new r(t,e,i)}}}(),Kt=function(t,e,i,s){var n=0,r=t,o=x(r);return{newElement:function(){return n?o[n-=1]:e()},release:function(t){n===r&&(o=Qt.double(o),r*=2),i&&i(t),o[n]=t,n+=1}}},Qt={double:function(t){return t.concat(x(t.length))}},Zt=Kt(8,function(){return At("float32",2)}),Jt=((Gt=Kt(4,function(){return new c},function(t){var e,i=t._length;for(e=0;e<i;e+=1)Zt.release(t.v[e]),Zt.release(t.i[e]),Zt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})).clone=function(t){var e,i=Gt.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},Gt),te=(Ht={newShapeCollection:function(){var t;return t=Vt?qt[Vt-=1]:new y,t},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)Jt.release(t.shapes[e]);t._length=0,Vt===Wt&&(qt=Qt.double(qt),Wt*=2),qt[Vt]=t,Vt+=1}},Vt=0,qt=x(Wt=4),Ht),ee=Kt(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)ie.release(t.lengths[e]);t.lengths.length=0}),ie=Kt(8,function(){return{addedLength:0,percents:At("float32",xt),lengths:At("float32",xt)}});P.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;0<=e;e--)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},P.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},P.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},P.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},P.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,s=t.length,n=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<n;){if(this.layers[i].id==t[e].id){this.layers[i]=t[e];break}i+=1}},P.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},P.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},P.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,n=this.layers,r=0,o=n.length;r<o;)n[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==n[r].parent?this.buildElementParenting(t,n[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},P.prototype.addPendingElement=function(t){this.pendingElements.push(t)},P.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},p([P],A),A.prototype.createNull=function(t){return new V(t,this.globalData,this)},A.prototype.createShape=function(t){return new tt(t,this.globalData,this)},A.prototype.createText=function(t){return new J(t,this.globalData,this)},A.prototype.createImage=function(t){return new K(t,this.globalData,this)},A.prototype.createComp=function(t){return new Z(t,this.globalData,this)},A.prototype.createSolid=function(t){return new Q(t,this.globalData,this)},A.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.nm=t.nm,this.globalData.compSize.w=t.w,this.globalData.compSize.h=t.h,this.globalData.frameRate=t.fr,this.data=t;var i=S("clipPath"),s=S("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var n="animationMask_"+k(10);i.setAttribute("id",n),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+vt+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.elements=x(t.layers.length)},A.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},A.prototype.updateContainerSize=function(){},A.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);e[t]=i,mt&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?i.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(i)))}},A.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},A.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},A.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(s=this.elements[n].getBaseElement()),n+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},A.prototype.hide=function(){this.layerElement.style.display="none"},A.prototype.show=function(){this.layerElement.style.display="block"},E.prototype.getMaskProperty=function(t){return this.viewData[t].prop},E.prototype.renderFrame=function(t){var e,i=this.masksProperties.length;for(e=0;e<i;e++)if((this.viewData[e].prop._mdf||this._isFirstFrame)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||this._isFirstFrame)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||this._isFirstFrame)&&(this.viewData[e].invRect.setAttribute("x",-t.props[12]),this.viewData[e].invRect.setAttribute("y",-t.props[13])),this.storedData[e].x&&(this.storedData[e].x._mdf||this._isFirstFrame))){var s=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+vt+"#"+this.storedData[e].filterId+")")),s.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}this._isFirstFrame=!1},E.prototype.getMaskelement=function(){return this.maskElement},E.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},E.prototype.drawPath=function(t,e,i){var s,n,r=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,s=1;s<n;s+=1)r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&1<n&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var o="";i.elem&&(e.c&&(o=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",o)),i.lastPath=r}},E.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},M.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},D.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))}},O.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Lt.getTransformProperty(this,this.data.ks,this.dynamicProperties):{o:0},_matMdf:!1,_opMdf:!1,mat:new Et},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):i=!1;var n,r,o=e.length;for(n=0;n<o;n+=1)r=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Et},F.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){this.maskManager.renderFrame(this.finalTransform.mat),this.renderableEffectsManager.renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},p([F,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.layerElement.style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||(this.layerElement.style.display="block"),this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],I),R.prototype.reset=function(){this.d="",this._mdf=!1},X.prototype.initGradientData=function(t,e,i,s){this.o=It.getProp(t,e.o,0,.01,i),this.s=It.getProp(t,e.s,1,null,i),this.e=It.getProp(t,e.e,1,null,i),this.h=It.getProp(t,e.h||{k:0},0,.01,i),this.a=It.getProp(t,e.a||{k:0},0,St,i),this.g=new b(t,e.g,i),this.style=s,this.stops=[],this.setGradientData(s.pElem,e),this.setGradientOpacity(e,s)},X.prototype.setGradientData=function(t,e){var i="gr_"+k(10),s=S(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var n,r,o,a=[];for(o=4*e.g.p,r=0;r<o;r+=4)n=S("stop"),s.appendChild(n),a.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url(#"+i+")"),this.gf=s,this.cst=a},X.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,n,r=S("mask"),o=S("path");r.appendChild(o);var a="op_"+k(10),l="mk_"+k(10);r.setAttribute("id",l);var h=S(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",a),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(s=4*t.g.p;s<n;s+=2)(i=S("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),p.push(i);o.setAttribute("gf"===t.ty?"fill":"stroke","url(#"+a+")"),this.of=h,this.ms=r,this.ost=p,this.maskId=l,e.msElem=o}},Y.prototype.initGradientData=X.prototype.initGradientData,Y.prototype.setGradientData=X.prototype.setGradientData,Y.prototype.setGradientOpacity=X.prototype.setGradientOpacity,H.prototype.checkMasks=function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},H.prototype.initExpressions=function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},H.prototype.blendModeEnums={1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},H.prototype.getBlendMode=function(){return this.blendModeEnums[this.data.bm]||""},H.prototype.setBlendMode=function(){var t=this.getBlendMode();(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},H.prototype.initBaseData=function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId="ly_"+k(10),this.data.sr||(this.data.sr=1),this.effectsManager=new ut(this.data,this,this.dynamicProperties)},H.prototype.getType=function(){return this.type},V.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},V.prototype.renderFrame=function(){},V.prototype.getBaseElement=function(){return null},V.prototype.destroy=function(){},V.prototype.sourceRectAtTime=function(){},V.prototype.hide=function(){},p([H,O,M,D],V),W.prototype={initRendererElement:function(){this.layerElement=S("g")},createContainerElements:function(){this.matteElement=S("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,s=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var n=S("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n),Yt.maskType||1!=this.data.td||(n.setAttribute("mask-type","luminance"),t=k(10),e=Bt.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(Bt.createAlphaToLuminanceFilter()),(i=S("g")).appendChild(this.layerElement),s=i,n.appendChild(i),i.setAttribute("filter","url("+vt+"#"+t+")"))}else if(2==this.data.td){var r=S("mask");r.setAttribute("id",this.layerId),r.setAttribute("mask-type","alpha");var o=S("g");r.appendChild(o),t=k(10),e=Bt.createFilter(t);var a=S("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 -1 1"),e.appendChild(a),this.globalData.defs.appendChild(e);var l=S("rect");l.setAttribute("width",this.comp.data.w),l.setAttribute("height",this.comp.data.h),l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),o.setAttribute("filter","url("+vt+"#"+t+")"),o.appendChild(l),o.appendChild(this.layerElement),s=o,Yt.maskType||(r.setAttribute("mask-type","luminance"),e.appendChild(Bt.createAlphaToLuminanceFilter()),i=S("g"),o.appendChild(l),i.appendChild(this.layerElement),s=i,o.appendChild(i)),this.globalData.defs.appendChild(r)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var h=S("clipPath"),p=S("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c="cp_"+k(8);if(h.setAttribute("id",c),h.appendChild(p),this.globalData.defs.appendChild(h),this.checkMasks()){var d=S("g");d.setAttribute("clip-path","url("+vt+"#"+c+")"),d.appendChild(this.layerElement),this.transformedElement=d,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+vt+"#"+c+")")}0!==this.data.bm&&this.setBlendMode(),this.renderableEffectsManager=new dt(this)},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},addMasks:function(){this.maskManager=new E(this.data,this,this.globalData,this.dynamicProperties)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+vt+"#"+t+")")}},q.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].reset();for(t=(e=this.shapeModifiers.length)-1;0<=t;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"butt"},searchProcessedElement:function(t){for(var e=0,i=this.processedElements.length;e<i;){if(this.processedElements[e].elem===t)return this.processedElements[e].pos;e+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements.length;i;)if(i-=1,this.processedElements[i].elem===t){this.processedElements[i].pos=e;break}0===i&&this.processedElements.push(new L(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},buildShapeString:function(t,e,i,s){var n,r="";for(n=1;n<e;n+=1)1===n&&(r+=" M"+s.applyToPointStringified(t.v[0][0],t.v[0][1])),r+=" C"+s.applyToPointStringified(t.o[n-1][0],t.o[n-1][1])+" "+s.applyToPointStringified(t.i[n][0],t.i[n][1])+" "+s.applyToPointStringified(t.v[n][0],t.v[n][1]);return 1===e&&(r+=" M"+s.applyToPointStringified(t.v[0][0],t.v[0][1])),i&&e&&(r+=" C"+s.applyToPointStringified(t.o[n-1][0],t.o[n-1][1])+" "+s.applyToPointStringified(t.i[0][0],t.i[0][1])+" "+s.applyToPointStringified(t.v[0][0],t.v[0][1]),r+="z"),r}},G.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textAnimator=new w(t.t,this.renderType,this),this.textProperty=new C(this,t.t,this.dynamicProperties),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},G.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1)},G.prototype.createPathShape=function(t,e){var i,s,n=e.length,r="";for(i=0;i<n;i+=1)s=e[i].ks.k,r+=this.buildShapeString(s,s.i.length,!0,t);return r},G.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e),this.buildNewText(),this.renderInnerContent()},G.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t),this.buildNewText(),this.renderInnerContent()},G.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t),this.buildNewText(),this.renderInnerContent()},G.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,n,0)},G.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},G.prototype.buildShapeString=q.prototype.buildShapeString,G.prototype.emptyProp=new at,G.prototype.destroy=function(){},p([H,O,M,D,I],U),U.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},U.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=0;i<s;i+=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},U.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},U.prototype.setElements=function(t){this.elements=t},U.prototype.getElements=function(){return this.elements},U.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},U.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},p([H,O,W,M,D,I],K),K.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=S("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio","xMidYMid slice"),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},p([K],Q),Q.prototype.createContent=function(){var t=S("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},p([A,U,W],Z),p([H,O,W,M,D,I,G],J),J.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=S("text"))},J.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],n="";e<i;)t[e]===String.fromCharCode(13)?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},J.prototype.buildNewText=function(){var t,e,i=this.textProperty.currentData;this.renderedLetters=x(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var n=i.fWeight,r=i.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",n)}var o=i.l||[],a=this.globalData.fontManager.chars;if(e=o.length){var l,h,p=this.mHelper,c="",d=this.data.singleShape,u=0,f=0,m=!0,g=i.tr/1e3*i.finalSize;if(!d||a||i.sz){var v,y,_=this.textSpans.length;for(t=0;t<e;t+=1)a&&d&&0!==t||(l=t<_?this.textSpans[t]:S(a?"path":"text"),_<=t&&(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=l,this.layerElement.appendChild(l)),l.style.display="inherit"),p.reset(),p.scale(i.finalSize/100,i.finalSize/100),d&&(o[t].n&&(u=-g,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,p,o[t].line,u,f),u+=o[t].l||0,u+=g),a?(h=(v=(y=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily))&&y.data||{}).shapes?v.shapes[0].it:[],d?c+=this.createPathShape(p,h):l.setAttribute("d",this.createPathShape(p,h))):(d&&l.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),l.textContent=o[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&l.setAttribute("d",c)}else{var b=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle"}b.setAttribute("text-anchor",w),b.setAttribute("letter-spacing",g);var T=this.buildTextContents(i.finalText);for(e=T.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(l=this.textSpans[t]||S("tspan")).textContent=T[t],l.setAttribute("x",0),l.setAttribute("y",f),l.style.display="inherit",b.appendChild(l),this.textSpans[t]=l,f+=i.finalLineHeight;this.layerElement.appendChild(b)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0}},J.prototype.sourceRectAtTime=function(t){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},J.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,i,s,n=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;for(e=r.length,t=0;t<e;t+=1)r[t].n||(i=n[t],s=this.textSpans[t],i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},p([H,O,W,q,M,D,I],tt),tt.prototype.initSecondaryElement=function(){},tt.prototype.identityMatrix=new Et,tt.prototype.buildExpressionInterface=function(){},tt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,this.dynamicProperties,0,[],!0)},tt.prototype.createStyleElement=function(t,e,i){var s,n=new R(t,e),r=n.pElem;if("st"===t.ty)s=new $(this,t,i,n);else if("fl"===t.ty)s=new j(this,t,i,n);else if("gf"===t.ty||"gs"===t.ty){s=new("gf"===t.ty?X:Y)(this,t,i,n),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),r.setAttribute("mask","url(#"+s.maskId+")"))}return"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),r.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),this.stylesList.push(n),s},tt.prototype.createGroupElement=function(t){var e=new B;return t.ln&&e.gr.setAttribute("id",t.ln),e},tt.prototype.createTransformElement=function(t,e){return new z(Lt.getTransformProperty(this,t,e),It.getProp(this,t.o,0,.01,e))},tt.prototype.createShapeElement=function(t,e,i,s){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var r=new N(e,i,zt.getShapeProp(this,t,n,s));return this.shapes.push(r.sh),this.addShapeToModifiers(r),r},tt.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},tt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,this.dynamicProperties,0,[],!0),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},tt.prototype.searchShapes=function(t,e,i,s,n,r,o,a){var l,h,p,c,d,u,f=[].concat(o),m=t.length-1,g=[],v=[];for(l=m;0<=l;l-=1){if((u=this.searchProcessedElement(t[l]))?e[l]=i[u-1]:t[l]._render=a,"fl"==t[l].ty||"st"==t[l].ty||"gf"==t[l].ty||"gs"==t[l].ty)u?e[l].style.closed=!1:e[l]=this.createStyleElement(t[l],r,n),t[l]._render&&s.appendChild(e[l].style.pElem),g.push(e[l].style);else if("gr"==t[l].ty){if(u)for(p=e[l].it.length,h=0;h<p;h+=1)e[l].prevViewData[h]=e[l].it[h];else e[l]=this.createGroupElement(t[l]);this.searchShapes(t[l].it,e[l].it,e[l].prevViewData,e[l].gr,n,r+1,f,a),t[l]._render&&s.appendChild(e[l].gr)}else"tr"==t[l].ty?(u||(e[l]=this.createTransformElement(t[l],n)),c=e[l].transform,f.push(c)):"sh"==t[l].ty||"rc"==t[l].ty||"el"==t[l].ty||"sr"==t[l].ty?(u||(e[l]=this.createShapeElement(t[l],f,r,n)),this.setElementStyles(e[l])):"tm"==t[l].ty||"rd"==t[l].ty||"ms"==t[l].ty?(u?(d=e[l]).closed=!1:((d=$t.getModifier(t[l].ty)).init(this,t[l],n),e[l]=d,this.shapeModifiers.push(d)),v.push(d)):"rp"==t[l].ty&&(u?(d=e[l]).closed=!0:(d=$t.getModifier(t[l].ty),(e[l]=d).init(this,t,l,e,n),this.shapeModifiers.push(d),a=!1),v.push(d));this.addProcessedElement(t[l],l+1)}for(m=g.length,l=0;l<m;l+=1)g[l].closed=!0;for(m=v.length,l=0;l<m;l+=1)v[l].closed=!0},tt.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(this.shapesData,this.itemsData,this.layerElement),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},tt.prototype.renderShape=function(t,e,i){var s,n,r=t.length-1;for(s=0;s<=r;s+=1)"tr"==(n=t[s].ty)?((this._isFirstFrame||e[s].transform.op._mdf)&&i.setAttribute("opacity",e[s].transform.op.v),(this._isFirstFrame||e[s].transform.mProps._mdf)&&i.setAttribute("transform",e[s].transform.mProps.v.to2dCSS())):!t[s]._render||"sh"!=n&&"el"!=n&&"rc"!=n&&"sr"!=n?"fl"==n?this.renderFill(t[s],e[s]):"gf"==n?this.renderGradient(t[s],e[s]):"gs"==n?(this.renderGradient(t[s],e[s]),this.renderStroke(t[s],e[s])):"st"==n?this.renderStroke(t[s],e[s]):"gr"==n&&this.renderShape(t[s].it,e[s].it,e[s].gr):this.renderPath(e[s])},tt.prototype.renderPath=function(t){var e,i,s,n,r,o,a,l,h,p,c,d=t.styles.length,u=t.lvl;for(o=0;o<d;o+=1){if(n=t.sh._mdf||this._isFirstFrame,t.styles[o].lvl<u)for(l=this.mHelper.reset(),p=u-t.styles[o].lvl,c=t.transformers.length-1;0<p;)n=t.transformers[c].mProps._mdf||n,h=t.transformers[c].mProps.v.props,l.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),p--,c--;else l=this.identityMatrix;if(i=(a=t.sh.paths)._length,n){for(s="",e=0;e<i;e+=1)(r=a.shapes[e])&&r._length&&(s+=this.buildShapeString(r,r._length,r.c,l));t.caches[o]=s}else s=t.caches[o];t.styles[o].d+=s,t.styles[o]._mdf=n||t.styles[o]._mdf}},tt.prototype.renderFill=function(t,e){var i=e.style;(e.c._mdf||this._isFirstFrame)&&i.pElem.setAttribute("fill","rgb("+wt(e.c.v[0])+","+wt(e.c.v[1])+","+wt(e.c.v[2])+")"),(e.o._mdf||this._isFirstFrame)&&i.pElem.setAttribute("fill-opacity",e.o.v)},tt.prototype.renderGradient=function(t,e){var i,s,n,r,o,a=e.gf,l=e.g._hasOpacity,h=e.s.v,p=e.e.v;if(e.o._mdf||this._isFirstFrame){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||this._isFirstFrame){var d=1===t.t?"x1":"cx",u="x1"===d?"y1":"cy";a.setAttribute(d,h[0]),a.setAttribute(u,h[1]),l&&!e.g._collapsable&&(e.of.setAttribute(d,h[0]),e.of.setAttribute(u,h[1]))}if(e.g._cmdf||this._isFirstFrame){i=e.cst;var f=e.g.c;for(n=i.length,s=0;s<n;s+=1)(r=i[s]).setAttribute("offset",f[4*s]+"%"),r.setAttribute("stop-color","rgb("+f[4*s+1]+","+f[4*s+2]+","+f[4*s+3]+")")}if(l&&(e.g._omdf||this._isFirstFrame)){var m=e.g.o;for(n=(i=e.g._collapsable?e.cst:e.ost).length,s=0;s<n;s+=1)r=i[s],e.g._collapsable||r.setAttribute("offset",m[2*s]+"%"),r.setAttribute("stop-opacity",m[2*s+1])}if(1===t.t)(e.e._mdf||this._isFirstFrame)&&(a.setAttribute("x2",p[0]),a.setAttribute("y2",p[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||this._isFirstFrame)&&(o=Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)),a.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||this._isFirstFrame){o||(o=Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)));var g=Math.atan2(p[1]-h[1],p[0]-h[0]),v=o*(1<=e.h.v?.99:e.h.v<=-1?-.99:e.h.v),y=Math.cos(g+e.a.v)*v+h[0],_=Math.sin(g+e.a.v)*v+h[1];a.setAttribute("fx",y),a.setAttribute("fy",_),l&&!e.g._collapsable&&(e.of.setAttribute("fx",y),e.of.setAttribute("fy",_))}},tt.prototype.renderStroke=function(t,e){var i=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(i.pElem.setAttribute("stroke-dasharray",s.dashStr),i.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||this._isFirstFrame)&&i.pElem.setAttribute("stroke","rgb("+wt(e.c.v[0])+","+wt(e.c.v[1])+","+wt(e.c.v[2])+")"),(e.o._mdf||this._isFirstFrame)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||this._isFirstFrame)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))},tt.prototype.destroy=function(){this.destroyBaseElement(),this.shapeData=null,this.itemsData=null},et.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+s+" 0")}},it.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},st.prototype.initialize=function(){var t,e,i,s,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=S("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<s;i+=1)t=S("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var r=S("mask"),o="stms_"+k(10);r.setAttribute("id",o),r.setAttribute("mask-type","alpha"),r.appendChild(e),this.elem.globalData.defs.appendChild(r);var a=S("g");a.setAttribute("mask","url("+vt+"#"+o+")"),n[0]&&a.appendChild(n[0]),this.elem.layerElement.appendChild(a),this.masker=r,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},st.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,i,s,n=this.paths.length;for(e=0;e<n;e+=1)if(i=this.elem.maskManager.viewData[this.paths[e].m],s=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf){var r;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,l=s.getTotalLength();r="0 0 0 "+l*o+" ";var h,p=l*(a-o),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,d=Math.floor(p/c);for(h=0;h<d;h+=1)r+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";r+="0 "+10*l+" 0 0"}else r="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;s.setAttribute("stroke-dasharray",r)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+wt(255*u[0])+","+wt(255*u[1])+","+wt(255*u[2])+")")}},lt.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,n=s[0]+" "+i[0]+" "+e[0],r=s[1]+" "+i[1]+" "+e[1],o=s[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",o)}},ht.prototype.createFeFunc=function(t,e){var i=S(t);return i.setAttribute("type","table"),e.appendChild(i),i},ht.prototype.getTableValue=function(t,e,i,s,n){for(var r,o,a=0,l=Math.min(t,e),h=Math.max(t,e),p=Array.call(null,{length:256}),c=0,d=n-s,u=e-t;a<=256;)o=(r=a/256)<=l?u<0?n:s:h<=r?u<0?s:n:s+d*Math.pow((r-t)/u,1/i),p[c++]=o,a+=256/255;return p.join(" ")},ht.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},pt.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",Pt(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*St,n=i*Math.cos(s),r=i*Math.sin(s);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",r)}}};var se=[],ne=0;ct.prototype.findSymbol=function(t){for(var e=0,i=se.length;e<i;){if(se[e]===t)return se[e];e+=1}return null},ct.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var s=i.children,n=0,r=s.length;n<r&&s[n]!==t.layerElement;)n+=1;var o;n<=r-2&&(o=s[n+1]);var a=S("use");a.setAttribute("href","#"+e),o?i.insertBefore(a,o):i.appendChild(a)}},ct.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i="matte_"+k(5)+"_"+ne++,s=S("mask");s.setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),se.push(e);var n=t.globalData.defs;n.appendChild(s);var r=S("symbol");r.setAttribute("id",i),this.replaceInParent(e,i),r.appendChild(e.layerElement),n.appendChild(r),useElem=S("use"),useElem.setAttribute("href","#"+i),s.appendChild(useElem),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},ct.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=0,i=this.elem.comp.elements.length;e<i;)this.elem.comp.elements[e].data.ind===t&&this.setElementAsMask(this.elem,this.elem.comp.elements[e]),e+=1;this.initialized=!0},ct.prototype.renderFrame=function(){this.initialized||this.initialize()},dt.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)};var re=function(){function i(t){for(var e=0,i=t.target;e<p;)a[e].animation===i&&(a.splice(e,1),e-=1,p-=1,i.isPaused||n()),e+=1}function l(t,e){if(!t)return null;for(var i=0;i<p;){if(a[i].elem==t&&null!==a[i].elem)return a[i].animation;i+=1}var s=new oe;return r(s,t),s.setData(t,e),s}function s(){d+=1,c&&(c=!1,u&&(f.requestAnimationFrame(t),u=!1))}function n(){0===(d-=1)&&(c=!0)}function r(t,e){t.addEventListener("destroy",i),t.addEventListener("_active",s),t.addEventListener("_idle",n),a.push({elem:e,animation:t}),p+=1}function o(t){var e,i=t-h;for(e=0;e<p;e+=1)a[e].animation.advanceTime(i);h=t,c?u=!0:f.requestAnimationFrame(o)}function t(t){h=t,f.requestAnimationFrame(o)}var e={},a=[],h=0,p=0,c=!0,d=0,u=!0;return e.registerAnimation=l,e.loadAnimation=function(t){var e=new oe;return r(e,null),e.setParams(t),e},e.setSpeed=function(t,e){var i;for(i=0;i<p;i+=1)a[i].animation.setSpeed(t,e)},e.setDirection=function(t,e){var i;for(i=0;i<p;i+=1)a[i].animation.setDirection(t,e)},e.play=function(t){var e;for(e=0;e<p;e+=1)a[e].animation.play(t)},e.pause=function(t){var e;for(e=0;e<p;e+=1)a[e].animation.pause(t)},e.stop=function(t){var e;for(e=0;e<p;e+=1)a[e].animation.stop(t)},e.togglePause=function(t){var e;for(e=0;e<p;e+=1)a[e].animation.togglePause(t)},e.searchAnimations=function(t,e,i){var s,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=n.length;for(s=0;s<r;s+=1)i&&n[s].setAttribute("data-bm-type",i),l(n[s],t);if(e&&0===r){i||(i="svg");var o=document.getElementsByTagName("body")[0];o.innerHTML="";var a=m("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",i),o.appendChild(a),l(a,t)}},e.resize=function(){var t;for(t=0;t<p;t+=1)a[t].animation.resize()},e.goToAndStop=function(t,e,i){var s;for(s=0;s<p;s+=1)a[s].animation.goToAndStop(t,e,i)},e.destroy=function(t){var e;for(e=p-1;0<=e;e-=1)a[e].animation.destroy(t)},e}(),oe=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.pendingElements=0,this.playCount=0,this.animationData={},this.layers=[],this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=k(10),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=yt,this.segments=[],this._idle=!0,this.projectInterface={}};p([t],oe),oe.prototype.setParams=function(t){var e=this;t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var i=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(i){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new A(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}if(this.renderer.setProjectInterface(this.projectInterface),this.animType=i,""===t.loop||null===t.loop||(!1===t.loop?this.loop=!1:!0===t.loop?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,t.animationData)e.configAnimation(t.animationData);else if(t.path){"json"!=t.path.substr(-4)&&("/"!=t.path.substr(-1,1)&&(t.path+="/"),t.path+="data.json");var s=new XMLHttpRequest;-1!=t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.assetsPath=t.assetsPath,this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),s.open("GET",t.path,!0),s.send(),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status)e.configAnimation(JSON.parse(s.responseText));else try{var t=JSON.parse(s.responseText);e.configAnimation(t)}catch(t){}}}},oe.prototype.setData=function(t,e){var i={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:"canvas";var n=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";""===n||(i.loop="false"!==n&&("true"===n||parseInt(n)));var r=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==r,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),this.setParams(i)},oe.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);var e,i,s=this.animationData.layers,n=s.length,r=t.layers,o=r.length;for(i=0;i<o;i+=1)for(e=0;e<n;){if(s[e].id==r[i].id){s[e]=r[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,Ot.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),mt&&mt.initExpressions(this),this.renderer.renderFrame(-1),this.loadNextSegment()},oe.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.animationData.tf);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=new XMLHttpRequest,s=this,n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,i.open("GET",n,!0),i.send(),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status)s.includeLayers(JSON.parse(i.responseText));else try{var t=JSON.parse(i.responseText);s.includeLayers(t)}catch(t){}}},oe.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.animationData.tf),this.loadNextSegment()},oe.prototype.configAnimation=function(t){var e=this;this.renderer&&this.renderer.destroyed||(this.animationData=t,this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.animationData.tf=this.totalFrames,this.renderer.configAnimation(t),t.assets||(t.assets=[]),t.comps&&(t.assets=t.assets.concat(t.comps),t.comps=null),this.renderer.searchExtraCompositions(t.assets),this.layers=this.animationData.layers,this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.firstFrame=Math.round(this.animationData.ip),this.frameMult=this.animationData.fr/1e3,this.trigger("config_ready"),this.imagePreloader=new Xt,this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(t.assets,function(t){t||e.trigger("loaded_images")}),this.loadSegments(),this.updaFrameModifier(),this.renderer.globalData.fontManager?this.waitForFontsLoaded():(Ot.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()))},oe.prototype.waitForFontsLoaded=function(){(function t(){this.renderer.globalData.fontManager.loaded?(Ot.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()):setTimeout(t.bind(this),20)}).bind(this)()},oe.prototype.addPendingElement=function(){this.pendingElements+=1},oe.prototype.elementLoaded=function(){this.pendingElements--,this.checkLoaded()},oe.prototype.checkLoaded=function(){0===this.pendingElements&&(mt&&mt.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.isLoaded=!0,this.gotoFrame(),this.autoplay&&this.play())},oe.prototype.resize=function(){this.renderer.updateContainerSize()},oe.prototype.setSubframe=function(t){this.subframeEnabled=!!t},oe.prototype.gotoFrame=function(){this.currentFrame=this.subframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},oe.prototype.renderFrame=function(){!1!==this.isLoaded&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},oe.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},oe.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},oe.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},oe.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this.setCurrentRawFrameValue(0))},oe.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},oe.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},oe.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e%this.totalFrames)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},oe.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},oe.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},oe.prototype.playSegments=function(t,e){if("object"==typeof t[0]){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);e&&this.checkSegments(0),this.isPaused&&this.play()},oe.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},oe.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},oe.prototype.remove=function(t){t&&this.name!=t||this.renderer.destroy()},oe.prototype.destroy=function(t){t&&this.name!=t||this.renderer&&this.renderer.destroyed||(this.renderer.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},oe.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},oe.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},oe.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},oe.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},oe.prototype.getPath=function(){return this.path},oe.prototype.getAssetsPath=function(t){var e="";if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},oe.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t==this.assets[e].id)return this.assets[e];e+=1}},oe.prototype.hide=function(){this.renderer.hide()},oe.prototype.show=function(){this.renderer.show()},oe.prototype.getAssets=function(){return this.assets},oe.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new s(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"loopComplete":this.triggerEvent(t,new r(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new n(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new o(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new a(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new s(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new r(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new n(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new o(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new a(t,this))};var ae={play:function(t){re.play(t)},pause:function(t){re.pause(t)},setLocationHref:function(t){vt=t},togglePause:function(t){re.togglePause(t)},setSpeed:function(t,e){re.setSpeed(t,e)},setDirection:function(t,e){re.setDirection(t,e)},stop:function(t){re.stop(t)}};ae.searchAnimations=ft,ae.registerAnimation=function(t){return re.registerAnimation(t)},ae.loadAnimation=function(t){return!0===le&&(t.animationData=JSON.parse(he)),re.loadAnimation(t)},ae.setSubframeRendering=function(t){yt=t},ae.resize=function(){re.resize()},ae.goToAndStop=function(t,e,i){re.goToAndStop(t,e,i)},ae.destroy=function(t){return re.destroy(t)},ae.setQuality=function(t){if("string"==typeof t)switch(t){case"high":xt=200;break;case"medium":xt=50;break;case"low":xt=10}else!isNaN(t)&&1<t&&(xt=t);e(!(50<=xt))},ae.inBrowser=function(){return"undefined"!=typeof navigator},ae.installPlugin=function(t,e){"expressions"===t&&(mt=e)},ae.__getFactory=function(t){switch(t){case"propertyFactory":return It;case"shapePropertyFactory":return zt;case"matrix":return Et}},ae.version="5.1.7";var le="__[STANDALONE]__",he="__[ANIMATIONDATA]__",pe="";if(le){var ce=document.getElementsByTagName("script"),de=(ce[ce.length-1]||{src:""}).src.replace(/^[^\?]+\??/,"");pe=function(t){for(var e=de.split("&"),i=0;i<e.length;i++){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}}("renderer")}var ue=setInterval(function(){"complete"===document.readyState&&(clearInterval(ue),ft())},100);return ae}),function(p,l,h){function c(t,e,i){var s=l.createElement(t);return e&&(s.id=J+e),i&&(s.style.cssText=i),p(s)}function d(){return h.innerHeight?h.innerHeight:p(h).height()}function u(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=p(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==Q[t]&&(this.cache[t]=Q[t])),this.cache[t]},this.get=function(t){var e=this.value(t);return p.isFunction(e)?e.call(this.el,this):e}}function r(t){var e=A.length,i=(B+t)%e;return i<0?e+i:i}function f(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():d())/100:1)*parseInt(t,10))}function m(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function g(t,e){return t.get("retinaUrl")&&1<h.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function v(t){"contains"in w[0]&&!w[0].contains(t.target)&&t.target!==b[0]&&(t.stopPropagation(),w.focus())}function y(t){y.str!==t&&(w.add(b).removeClass(y.str).addClass(t),y.str=t)}function _(t){p(l).trigger(t),at.triggerHandler(t)}function s(t){var e,i;if(!q){if(e=p(t).data(Z),z=new u(t,e),i=z.get("rel"),B=0,i&&!1!==i&&"nofollow"!==i?(A=p("."+tt).filter(function(){return new u(this,p.data(this,Z)).get("rel")===i}),-1===(B=A.index(z.el))&&(A=A.add(z.el),B=A.length-1)):A=p(z.el),!V){V=W=!0,y(z.get("className")),w.css({visibility:"hidden",display:"block",opacity:""}),M=c(lt,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),k.css({width:"",height:""}).append(M),$=x.height()+P.height()+k.outerHeight(!0)-k.height(),j=S.width()+C.width()+k.outerWidth(!0)-k.width(),X=M.outerHeight(!0),Y=M.outerWidth(!0);var s=f(z.get("initialWidth"),"x"),n=f(z.get("initialHeight"),"y"),r=z.get("maxWidth"),o=z.get("maxHeight");z.w=Math.max((!1!==r?Math.min(s,f(r,"x")):s)-Y-j,0),z.h=Math.max((!1!==o?Math.min(n,f(o,"y")):n)-X-$,0),M.css({width:"",height:z.h}),U.position(),_(et),z.get("onOpen"),N.add(F).hide(),w.focus(),z.get("trapFocus")&&l.addEventListener&&(l.addEventListener("focus",v,!0),at.one(rt,function(){l.removeEventListener("focus",v,!0)})),z.get("returnFocus")&&at.one(rt,function(){p(z.el).focus()})}var a=parseFloat(z.get("opacity"));b.css({opacity:a==a?a:"",cursor:z.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),z.get("closeButton")?R.html(z.get("close")).appendTo(k):R.appendTo("<div/>"),function(){var t,e,i,s=U.prep,n=++ht;if(H=!(W=!0),_(ot),_(it),z.get("onLoad"),z.h=z.get("height")?f(z.get("height"),"y")-X-$:z.get("innerHeight")&&f(z.get("innerHeight"),"y"),z.w=z.get("width")?f(z.get("width"),"x")-Y-j:z.get("innerWidth")&&f(z.get("innerWidth"),"x"),z.mw=z.w,z.mh=z.h,z.get("maxWidth")&&(z.mw=f(z.get("maxWidth"),"x")-Y-j,z.mw=z.w&&z.w<z.mw?z.w:z.mw),z.get("maxHeight")&&(z.mh=f(z.get("maxHeight"),"y")-X-$,z.mh=z.h&&z.h<z.mh?z.h:z.mh),t=z.get("href"),G=setTimeout(function(){O.show()},100),z.get("inline")){var r=p(t).eq(0);i=p("<div>").hide().insertBefore(r),at.one(ot,function(){i.replaceWith(r)}),s(r)}else z.get("iframe")?s(" "):z.get("html")?s(z.get("html")):m(z,t)?(t=g(z,t),H=z.get("createImg"),p(H).addClass(J+"Photo").bind("error."+J,function(){s(c(lt,"Error").html(z.get("imgError")))}).one("load",function(){n===ht&&setTimeout(function(){var t;z.get("retinaImage")&&1<h.devicePixelRatio&&(H.height=H.height/h.devicePixelRatio,H.width=H.width/h.devicePixelRatio),z.get("scalePhotos")&&(e=function(){H.height-=H.height*t,H.width-=H.width*t},z.mw&&H.width>z.mw&&(t=(H.width-z.mw)/H.width,e()),z.mh&&H.height>z.mh&&(t=(H.height-z.mh)/H.height,e())),z.h&&(H.style.marginTop=Math.max(z.mh-H.height,0)/2+"px"),A[1]&&(z.get("loop")||A[B+1])&&(H.style.cursor="pointer",p(H).bind("click."+J,function(){U.next()})),H.style.width=H.width+"px",H.style.height=H.height+"px",s(H)},1)}),H.src=t):t&&D.load(t,z.get("data"),function(t,e){n===ht&&s("error"===e?c(lt,"Error").html(z.get("xhrError")):p(this).contents())})}()}}function n(){w||(K=!1,E=p(h),w=c(lt).attr({id:Z,class:!1===p.support.opacity?J+"IE":"",role:"dialog",tabindex:"-1"}).hide(),b=c(lt,"Overlay").hide(),O=p([c(lt,"LoadingOverlay")[0],c(lt,"LoadingGraphic")[0]]),T=c(lt,"Wrapper"),k=c(lt,"Content").append(F=c(lt,"Title"),o=c(lt,"Current"),L=p('<button type="button"/>').attr({id:J+"Previous"}),a=p('<button type="button"/>').attr({id:J+"Next"}),I=p('<button type="button"/>').attr({id:J+"Slideshow"}),O),R=p('<button type="button"/>').attr({id:J+"Close"}),T.append(c(lt).append(c(lt,"TopLeft"),x=c(lt,"TopCenter"),c(lt,"TopRight")),c(lt,!1,"clear:left").append(S=c(lt,"MiddleLeft"),k,C=c(lt,"MiddleRight")),c(lt,!1,"clear:left").append(c(lt,"BottomLeft"),P=c(lt,"BottomCenter"),c(lt,"BottomRight"))).find("div div").css({float:"left"}),D=c(lt,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),N=a.add(L).add(o).add(I)),l.body&&!w.parent().length&&p(l.body).append(b,w.append(T,D))}var b,w,T,k,x,S,C,P,A,E,M,D,O,F,o,I,a,L,R,N,z,$,j,X,Y,B,H,V,W,q,G,U,K,Q={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return p(this).attr("href")},title:function(){return this.title},createImg:function(){var i=new Image,t=p(this).data("cbox-img-attrs");return"object"==typeof t&&p.each(t,function(t,e){i[t]=e}),i},createIframe:function(){var i=l.createElement("iframe"),t=p(this).data("cbox-iframe-attrs");return"object"==typeof t&&p.each(t,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Z="colorbox",J="cbox",tt=J+"Element",et=J+"_open",it=J+"_load",st=J+"_complete",nt=J+"_cleanup",rt=J+"_closed",ot=J+"_purge",at=p("<a/>"),lt="div",ht=0,pt={},ct=function(){function t(){clearTimeout(o)}function e(){(z.get("loop")||A[B+1])&&(t(),o=setTimeout(U.next,z.get("slideshowSpeed")))}function i(){I.html(z.get("slideshowStop")).unbind(l).one(l,s),at.bind(st,e).bind(it,t),w.removeClass(a+"off").addClass(a+"on")}function s(){t(),at.unbind(st,e).unbind(it,t),I.html(z.get("slideshowStart")).unbind(l).one(l,function(){U.next(),i()}),w.removeClass(a+"on").addClass(a+"off")}function n(){r=!1,I.hide(),t(),at.unbind(st,e).unbind(it,t),w.removeClass(a+"off "+a+"on")}var r,o,a=J+"Slideshow_",l="click."+J;return function(){r?z.get("slideshow")||(at.unbind(nt,n),n()):z.get("slideshow")&&A[1]&&(r=!0,at.one(nt,n),z.get("slideshowAuto")?i():s(),I.show())}}();p[Z]||(p(n),(U=p.fn[Z]=p[Z]=function(e,t){var i=this;return e=e||{},p.isFunction(i)&&(i=p("<a/>"),e.open=!0),i[0]&&(n(),function(){function t(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),s(this))}return!!w&&(K||(K=!0,a.click(function(){U.next()}),L.click(function(){U.prev()}),R.click(function(){U.close()}),b.click(function(){z.get("overlayClose")&&U.close()}),p(l).bind("keydown."+J,function(t){var e=t.keyCode;V&&z.get("escKey")&&27===e&&(t.preventDefault(),U.close()),V&&z.get("arrowKey")&&A[1]&&!t.altKey&&(37===e?(t.preventDefault(),L.click()):39===e&&(t.preventDefault(),a.click()))}),p.isFunction(p.fn.on)?p(l).on("click."+J,"."+tt,t):p("."+tt).live("click."+J,t)),!0)}()&&(t&&(e.onComplete=t),i.each(function(){var t=p.data(this,Z)||{};p.data(this,Z,p.extend(t,e))}).addClass(tt),new u(i[0],e).get("open")&&s(i[0]))),i}).position=function(e,t){function i(){x[0].style.width=P[0].style.width=k[0].style.width=parseInt(w[0].style.width,10)-j+"px",k[0].style.height=S[0].style.height=C[0].style.height=parseInt(w[0].style.height,10)-$+"px"}var s,n,r,o=0,a=0,l=w.offset();if(E.unbind("resize."+J),w.css({top:-9e4,left:-9e4}),n=E.scrollTop(),r=E.scrollLeft(),z.get("fixed")?(l.top-=n,l.left-=r,w.css({position:"fixed"})):(o=n,a=r,w.css({position:"absolute"})),a+=!1!==z.get("right")?Math.max(E.width()-z.w-Y-j-f(z.get("right"),"x"),0):!1!==z.get("left")?f(z.get("left"),"x"):Math.round(Math.max(E.width()-z.w-Y-j,0)/2),o+=!1!==z.get("bottom")?Math.max(d()-z.h-X-$-f(z.get("bottom"),"y"),0):!1!==z.get("top")?f(z.get("top"),"y"):Math.round(Math.max(d()-z.h-X-$,0)/2),w.css({top:l.top,left:l.left,visibility:"visible"}),T[0].style.width=T[0].style.height="9999px",s={width:z.w+Y+j,height:z.h+X+$,top:o,left:a},e){var h=0;p.each(s,function(t){return s[t]!==pt[t]?void(h=e):void 0}),e=h}pt=s,e||w.css(s),w.dequeue().animate(s,{duration:e||0,complete:function(){i(),W=!1,T[0].style.width=z.w+Y+j+"px",T[0].style.height=z.h+X+$+"px",z.get("reposition")&&setTimeout(function(){E.bind("resize."+J,U.position)},1),p.isFunction(t)&&t()},step:i})},U.resize=function(t){var e;V&&((t=t||{}).width&&(z.w=f(t.width,"x")-Y-j),t.innerWidth&&(z.w=f(t.innerWidth,"x")),M.css({width:z.w}),t.height&&(z.h=f(t.height,"y")-X-$),t.innerHeight&&(z.h=f(t.innerHeight,"y")),t.innerHeight||t.height||(e=M.scrollTop(),M.css({height:"auto"}),z.h=M.height()),M.css({height:z.h}),e&&M.scrollTop(e),U.position("none"===z.get("transition")?0:z.get("speed")))},U.prep=function(t){if(V){var e,n="none"===z.get("transition")?0:z.get("speed");M.remove(),(M=c(lt,"LoadedContent").append(t)).hide().appendTo(D.show()).css({width:(z.w=z.w||M.width(),z.w=z.mw&&z.mw<z.w?z.mw:z.w,z.w),overflow:z.get("scrolling")?"auto":"hidden"}).css({height:(z.h=z.h||M.height(),z.h=z.mh&&z.mh<z.h?z.mh:z.h,z.h)}).prependTo(k),D.hide(),p(H).css({float:"none"}),y(z.get("className")),e=function(){function t(){!1===p.support.opacity&&w[0].style.removeAttribute("filter")}var e,i,s=A.length;V&&(i=function(){clearTimeout(G),O.hide(),_(st),z.get("onComplete")},F.html(z.get("title")).show(),M.show(),1<s?("string"==typeof z.get("current")&&o.html(z.get("current").replace("{current}",B+1).replace("{total}",s)).show(),a[z.get("loop")||B<s-1?"show":"hide"]().html(z.get("next")),L[z.get("loop")||B?"show":"hide"]().html(z.get("previous")),ct(),z.get("preloading")&&p.each([r(-1),r(1)],function(){var t=A[this],e=new u(t,p.data(t,Z)),i=e.get("href");i&&m(e,i)&&(i=g(e,i),l.createElement("img").src=i)})):N.hide(),z.get("iframe")?(e=z.get("createIframe"),z.get("scrolling")||(e.scrolling="no"),p(e).attr({src:z.get("href"),class:J+"Iframe"}).one("load",i).appendTo(M),at.one(ot,function(){e.src="//about:blank"}),z.get("fastIframe")&&p(e).trigger("load")):i(),"fade"===z.get("transition")?w.fadeTo(n,1,t):t())},"fade"===z.get("transition")?w.fadeTo(n,0,function(){U.position(0,e)}):U.position(n,e)}},U.next=function(){!W&&A[1]&&(z.get("loop")||A[B+1])&&(B=r(1),s(A[B]))},U.prev=function(){!W&&A[1]&&(z.get("loop")||B)&&(B=r(-1),s(A[B]))},U.close=function(){V&&!q&&(V=!(q=!0),_(nt),z.get("onCleanup"),E.unbind("."+J),b.fadeTo(z.get("fadeOut")||0,0),w.stop().fadeTo(z.get("fadeOut")||0,0,function(){w.hide(),b.hide(),_(ot),M.remove(),setTimeout(function(){q=!1,_(rt),z.get("onClosed")},1)}))},U.remove=function(){w&&(w.stop(),p[Z].close(),w.stop(!1,!0).remove(),b.remove(),q=!1,w=null,p("."+tt).removeData(Z).removeClass(tt),p(l).unbind("click."+J).unbind("keydown."+J))},U.element=function(){return p(z.el)},U.settings=Q)}(jQuery,document,window);