PageSourceSearch

https://visualizacion.observatoriogeo.mx/omcgeo_infra_covid19/dash…/dash_extensions.v0_0_41m1652944859.min.js

js observatoriogeo.mx collected 2026-09-25 21:55:16 UTC 418,715 bytes, 10 lines download raw bytes

1window.dash_extensions=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=115)}([function(t,e){t.exports=window.PropTypes},function(t,e){t.exports=window.React},function(t,e){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function s(t){return t&&t.__esModule?t:{default:t}}var a=r(1),o=s(a),h=s(r(100)),l=s(r(0)),p=s(r(101)),f=s(r(102)),c=s(r(103));e.default=function(t){var e=function(e){function r(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),function(t,e,r){for(var n=!0;n;){var i=t,s=e,a=r;n=!1,null===i&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,s);if(void 0!==o){if("value"in o)return o.value;var h=o.get;if(void 0===h)return;return h.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;t=l,e=s,r=a,n=!0,o=l=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,e),this.state={isOpen:!1},!t)throw new Error("No styles supplied")}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,e),i(r,[{key:"focusOnFirstMenuItem",value:function(){var t=Array.from(document.getElementsByClassName("bm-item")).shift();t&&t.focus()}},{key:"focusOnLastMenuItem",value:function(){var t=Array.from(document.getElementsByClassName("bm-item")).pop();t&&t.focus()}},{key:"focusOnCrossButton",value:function(){var t=document.getElementById("react-burger-cross-btn");t&&t.focus()}},{key:"focusOnMenuButton",value:function(){var t=document.getElementById("react-burger-menu-btn");t&&t.focus()}},{key:"focusOnMenuItem",value:function(t){if(document.activeElement.className.includes("bm-item")){var e=document.activeElement[t];e?e.focus():this.focusOnCrossButton()}else"previousElementSibling"===t?this.focusOnLastMenuItem():this.focusOnFirstMenuItem()}},{key:"focusOnNextMenuItem",value:function(){this.focusOnMenuItem("nextElementSibling")}},{key:"focusOnPreviousMenuItem",value:function(){this.focusOnMenuItem("previousElementSibling")}},{key:"toggleMenu",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=e.isOpen,n=e.noStateChange,i=e.focusOnLastItem,s={isOpen:void 0!==r?r:!this.state.isOpen};this.applyWrapperStyles(),this.setState(s,(function(){!n&&t.props.onStateChange(s),t.props.disableAutoFocus||(s.isOpen?i?t.focusOnLastMenuItem():t.focusOnFirstMenuItem():document.activeElement?document.activeElement.blur():document.body.blur()),t.timeoutId&&clearTimeout(t.timeoutId),t.timeoutId=setTimeout((function(){t.timeoutId=null,s.isOpen||t.applyWrapperStyles(!1)}),500)}))}},{key:"open",value:function(){"function"==typeof this.props.onOpen?this.props.onOpen():this.toggleMenu()}},{key:"close",value:function(){"function"==typeof this.props.onClose?this.props.onClose():this.toggleMenu()}},{key:"overlayClick",value:function(){!0===this.props.disableOverlayClick||"function"==typeof this.props.disableOverlayClick&&this.props.disableOverlayClick()||this.close()}},{key:"applyWrapperStyles",value:function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0],r=function(t,r){return t.classList[e?"add":"remove"](r)};this.props.htmlClassName&&r(document.querySelector("html"),this.props.htmlClassName),this.props.bodyClassName&&r(document.querySelector("body"),this.props.bodyClassName),t.pageWrap&&this.props.pageWrapId&&this.handleExternalWrapper(this.props.pageWrapId,t.pageWrap,e),t.outerContainer&&this.props.outerContainerId&&this.handleExternalWrapper(this.props.outerContainerId,t.outerContainer,e)}},{key:"handleExternalWrapper",value:function(t,e,r){var n=document.getElementById(t);if(n){var i=this.getStyle(e);for(var s in i)i.hasOwnProperty(s)&&(n.style[s]=r?i[s]:"");var a=function(t){return t.style["overflow-x"]=r?"hidden":""};this.props.htmlClassName||a(document.querySelector("html")),this.props.bodyClassName||a(document.querySelector("body"))}else console.error("Element with ID '"+t+"' not found")}},{key:"getStyles",value:function(e,r,i){var s="bm"+e.replace(e.charAt(0),e.charAt(0).toUpperCase()),a=p.default[e]?this.get
1Style(p.default[e]):{};return t[e]&&(a=n({},a,this.getStyle(t[e],r+1))),this.props.styles[s]&&(a=n({},a,this.props.styles[s])),i&&(a=n({},a,i)),this.props.noTransition&&delete a.transition,a}},{key:"getStyle",value:function(t,e){var r=this.props.width,n="string"!=typeof r?r+"px":r;return t(this.state.isOpen,n,this.props.right,e)}},{key:"listenForKeyDowns",value:function(t){t=t||window.event;if(this.state.isOpen)switch(t.key){case"Escape":this.props.disableCloseOnEsc||(this.close(),this.focusOnMenuButton());break;case"ArrowDown":this.focusOnNextMenuItem();break;case"ArrowUp":this.focusOnPreviousMenuItem();break;case"Home":this.focusOnFirstMenuItem();break;case"End":this.focusOnLastMenuItem()}else if(t.target===document.getElementById("react-burger-menu-btn"))switch(t.key){case"ArrowDown":case"Enter":case" ":this.toggleMenu();break;case"ArrowUp":this.toggleMenu({focusOnLastItem:!0})}}},{key:"componentDidMount",value:function(){this.onKeyDown=this.props.customOnKeyDown?this.props.customOnKeyDown:this.listenForKeyDowns.bind(this),window.addEventListener("keydown",this.onKeyDown),this.props.isOpen&&this.toggleMenu({isOpen:!0,noStateChange:!0})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.onKeyDown),this.applyWrapperStyles(!1),this.timeoutId&&clearTimeout(this.timeoutId)}},{key:"componentDidUpdate",value:function(e){var r,n,i=this;void 0!==this.props.isOpen&&this.props.isOpen!==this.state.isOpen&&this.props.isOpen!==e.isOpen?this.toggleMenu():t.svg&&(r=h.default.findDOMNode(i,"bm-morph-shape"),n=t.svg.lib(r).select("path"),i.state.isOpen?t.svg.animate(n):setTimeout((function(){n.attr("d",t.svg.pathInitial)}),300))}},{key:"render",value:function(){var e=this;return o.default.createElement("div",null,!this.props.noOverlay&&o.default.createElement("div",{className:("bm-overlay "+this.props.overlayClassName).trim(),onClick:function(){return e.overlayClick()},style:this.getStyles("overlay")}),!1!==this.props.customBurgerIcon&&o.default.createElement("div",{style:this.getStyles("burgerIcon")},o.default.createElement(f.default,{onClick:function(){return e.open()},styles:this.props.styles,customIcon:this.props.customBurgerIcon,className:this.props.burgerButtonClassName,barClassName:this.props.burgerBarClassName,onIconStateChange:this.props.onIconStateChange})),o.default.createElement("div",{id:this.props.id,className:("bm-menu-wrap "+this.props.className).trim(),style:this.getStyles("menuWrap"),"aria-hidden":!this.state.isOpen},t.svg&&o.default.createElement("div",{className:("bm-morph-shape "+this.props.morphShapeClassName).trim(),style:this.getStyles("morphShape")},o.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},o.default.createElement("path",{d:t.svg.pathInitial}))),o.default.createElement("div",{className:("bm-menu "+this.props.menuClassName).trim(),style:this.getStyles("menu")},o.default.createElement(this.props.itemListElement,{className:("bm-item-list "+this.props.itemListClassName).trim(),style:this.getStyles("itemList")},o.default.Children.map(this.props.children,(function(t,r){if(t){var n={key:r,className:["bm-item",e.props.itemClassName,t.props.className].filter((function(t){return!!t})).join(" "),style:e.getStyles("item",r,t.props.style),tabIndex:-1};return o.default.cloneElement(t,n)}})))),!1!==this.props.customCrossIcon&&o.default.createElement("div",{style:this.getStyles("closeButton")},o.default.createElement(c.default,{onClick:function(){return e.close()},styles:this.props.styles,customIcon:this.props.customCrossIcon,className:this.props.crossButtonClassName,crossClassName:this.props.crossClassName}))))}}]),r}(a.Component);return e.propTypes={bodyClassName:l.default.string,burgerBarClassName:l.default.string,burgerButtonClassName:l.default.string,className:l.default.string,crossButtonClassName:l.default.string,crossClassName:l.default.string,customBurgerIcon:l.default.oneOfType([l.default.element,l.default.oneOf([
vendor: 4,963 bytes, line 1
1!1])]),customCrossIcon:l.default.oneOfType([l.default.element,l.default.oneOf([!1])]),customOnKeyDown:l.default.func,disableAutoFocus:l.default.bool,disableCloseOnEsc:l.default.bool,disableOverlayClick:l.default.oneOfType([l.default.bool,l.default.func]),htmlClassName:l.default.string,id:l.default.string,isOpen:l.default.bool,itemClassName:l.default.string,itemListClassName:l.default.string,itemListElement:l.default.oneOf(["div","nav"]),menuClassName:l.default.string,morphShapeClassName:l.default.string,noOverlay:l.default.bool,noTransition:l.default.bool,onClose:l.default.func,onIconHoverChange:l.default.func,onOpen:l.default.func,onStateChange:l.default.func,outerContainerId:t&&t.outerContainer?l.default.string.isRequired:l.default.string,overlayClassName:l.default.string,pageWrapId:t&&t.pageWrap?l.default.string.isRequired:l.default.string,right:l.default.bool,styles:l.default.object,width:l.default.oneOfType([l.default.number,l.default.string])},e.defaultProps={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300,onIconHoverChange:function(){},itemListElement:"nav"},e},t.exports=e.default},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){t.exports=!r(11)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(4),i=r(2),s=r(33),a=r(9),o=r(8),h=function(t,e,r){var l,p,f,c=t&h.F,u=t&h.G,d=t&h.S,m=t&h.P,y=t&h.B,g=t&h.W,v=u?i:i[e]||(i[e]={}),b=v.prototype,x=u?n:d?n[e]:(n[e]||{}).prototype;for(l in u&&(r=e),r)(p=!c&&x&&void 0!==x[l])&&o(v,l)||(f=p?x[l]:r[l],v[l]=u&&"function"!=typeof x[l]?r[l]:y&&p?s(f,n):g&&x[l]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?s(Function.call,f):f,m&&((v.virtual||(v.virtual={}))[l]=f,t&h.R&&b&&!b[l]&&a(b,l,f)))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,t.exports=h},function(t,e,r){var n=r(14),i=r(34),s=r(21),a=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=s(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(7),i=r(15);t.exports=r(5)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(37),i=r(22);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(25)("wks"),i=r(18),s=r(4).Symbol,a="function"==typeof s;(t.exports=function(t){return n[t]||(n[t]=a&&s[t]||(a?s:i)("Symbol."+t))}).store=n},function(t,e,r){var n=r(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(36),i=r(26);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e){t.exports=!0},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(22);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(10);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(25)("keys"),i=r(18);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(2),i=r(4),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(17)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
1ing,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports={}},function(t,e,r){var n=r(14),i=r(74),s=r(26),a=r(24)("IE_PROTO"),o=function(){},h=function(){var t,e=r(35)("iframe"),n=s.length;for(e.style.display="none",r(75).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),h=t.F;n--;)delete h.prototype[s[n]];return h()};t.exports=Object.create||function(t,e){var r;return null!==t?(o.prototype=n(t),r=new o,o.prototype=null,r[a]=t):r=h(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(7).f,i=r(8),s=r(13)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},function(t,e,r){e.f=r(13)},function(t,e,r){var n=r(4),i=r(2),s=r(17),a=r(31),o=r(7).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=s?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:a.f(t)})}},function(t,e,r){var n=r(54);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){t.exports=!r(5)&&!r(11)((function(){return 7!=Object.defineProperty(r(35)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(10),i=r(4).document,s=n(i)&&n(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},function(t,e,r){var n=r(8),i=r(12),s=r(56)(!1),a=r(24)("IE_PROTO");t.exports=function(t,e){var r,o=i(t),h=0,l=[];for(r in o)r!=a&&n(o,r)&&l.push(r);for(;e.length>h;)n(o,r=e[h++])&&(~s(l,r)||l.push(r));return l}},function(t,e,r){var n=r(38);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(8),i=r(20),s=r(24)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){"use strict";e.__esModule=!0;var n=a(r(69)),i=a(r(80)),s="function"==typeof i.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===s(n.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,r){"use strict";var n=r(17),i=r(6),s=r(42),a=r(9),o=r(28),h=r(73),l=r(30),p=r(39),f=r(13)("iterator"),c=!([].keys&&"next"in[].keys()),u=function(){return this};t.exports=function(t,e,r,d,m,y,g){h(r,e,d);var v,b,x,E=function(t){if(!c&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=e+" Iterator",_="values"==m,C=!1,P=t.prototype,w=P[f]||P["@@iterator"]||m&&P[m],T=w||E(m),k=m?_?E("entries"):T:void 0,A="Array"==e&&P.entries||w;if(A&&(x=p(A.call(new t)))!==Object.prototype&&x.next&&(l(x,S,!0),n||"function"==typeof x[f]||a(x,f,u)),_&&w&&"values"!==w.name&&(C=!0,T=function(){return w.call(this)}),n&&!g||!c&&!C&&P[f]||a(P,f,T),o[e]=T,o[S]=u,m)if(v={values:_?T:E("values"),keys:y?T:E("keys"),entries:k},g)for(b in v)b in P||s(P,b,v[b]);else i(i.P+i.F*(c||C),e,v);return v}},function(t,e,r){t.exports=r(9)},function(t,e,r){var n=r(36),i=r(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(19),i=r(15),s=r(12),a=r(21),o=r(8),h=r(34),l=Object.getOwnPropertyDescriptor;e.f=r(5)?l:function(t,e){if(t=s(t),e=a(e,!0),h)try{return l(t,e)}catch(t){}if(o(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=void 0;try{t=r(106)}finally{return t}},t.exports=e.default},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});e.pxToNum=function(t){return parseInt(t.slice(0,-2),10)}},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=l(t),a=n[0],o=n[1],h=new s(function(t,e,r){return 3*(e+r)/4-r}(0,a,o)),p=0,f=o>0?a-4:a;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],h[p++]=e>>16&255,h[p++]=e>>8&255,h[p++]=255&e;2===o&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,h[p++]=255&e);1===o&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,h[p++]=e>>8&255,h[p++]=255&e);return h},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,s=[],a=0,o=r-i;a<o;a+=16383)s.push(p(t,a,a+16383>o?o:a+16383));1===i?(e=t[r-1],s.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],s.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return s.join("")};for(var n=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,h=a.length;o<h;++o)n[o]=a[o],i[a.charCodeAt(o)]=o;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function p(t,e,r){for(var i,s,a=[],o=e;o<r;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),a.push(n[(s=i)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=c(r(50)),i=c(r(59)),s=c(r(63)),a=c(r(64)),o=c(r(68)),h=c(r(90)),l=c(r(1)),p=c(r(0)),f=c(r(98));function c(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(){var t,r,n,a;(0,s.default)(this,e);for(var h=arguments.length,l=Array(h),p=0;p<h;p++)l[p]=arguments[p];return r=n=(0,o.default)(this,(t=e.__proto__||(0,i.default)(e)).call.apply(t,[this].concat(l))),n.handleClickToPause=function(){n.anim.isPaused?n.anim.play():n.anim.pause()},a=r,(0,o.default)(n,a)}return(0,h.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.options,r=t.eventListeners,i=e.loop,s=e.autoplay,a=e.animationData,o=e.rendererSettings,h=e.segments;this.options={container:this.el,renderer:"svg",loop:!1!==i,autoplay:!1!==s,segments:!1!==h,animationData:a,rendererSettings:o},this.options=(0,n.default)({},this.options,e),this.anim=f.default.loadAnimation(this.options),this.registerEvents(r)}},{key:"componentWillUpdate",value:function(t){this.options.animationData!==t.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,n.default)({},this.options,t.options),this.anim=f.default.loadAnimation(this.options),this.registerEvents(t.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(t){var e=this;t.forEach((function(t){e.anim.addEventListener(t.eventName,t.callback)}))}},{key:"deRegisterEvents",value:function(t){var e=this;t.forEach((function(t){e.anim.removeEventListener(t.eventName,t.callback)}))}},{key:"render",value:function(){var t=this,e=this.props,r=e.width,i=e.height,s=e.ariaRole,a=e.ariaLabel,o=e.isClickToPauseDisabled,h=e.title,p=function(t){return"number"==typeof t?t+"px":t||"100%"},f=(0,n.default)({width:p(r),height:p(i),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),c=o?function(){return null}:this.handleClickToPause;return l.default.createElement("div",{ref:function(e){t.el=e},style:f,onClick:c,title:h,role:s,"aria-label":a,tabIndex:"0"})}}]),e}(l.default.Component);e.default=u,u.propTypes={eventListeners:p.default.arrayOf(p.default.object),options:p.default.object.isRequired,height:p.default.oneOfType([p.default.string,p.default.number]),width:p.default.oneOfType([p.default.string,p.default.number]),isStopped:p.default.bool,isPaused:p.default.bool,speed:p.default.number,segments:p.default.arrayOf(p.default.number),direction:p.default.number,ariaRole:p.default.string,ariaLabel:p.default.string,isClickToPauseDisabled:p.default.bool,title:p.default.string},u.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""}},function(t,e,r){"use strict";
vendor: 5,341 bytes, line 1
1Object.defineProperty(e,"__esModule",{value:!0}),e.default={slide:r(99),stack:r(104),elastic:r(105),bubble:r(108),push:r(109),pushRotate:r(110),scaleDown:r(111),scaleRotate:r(112),fallDown:r(113),reveal:r(114)},t.exports=e.default},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(51),s=(n=i)&&n.__esModule?n:{default:n};e.default=s.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},function(t,e,r){t.exports={default:r(52),__esModule:!0}},function(t,e,r){r(53),t.exports=r(2).Object.assign},function(t,e,r){var n=r(6);n(n.S+n.F,"Object",{assign:r(55)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(5),i=r(16),s=r(27),a=r(19),o=r(20),h=r(37),l=Object.assign;t.exports=!l||r(11)((function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[r]||Object.keys(l({},e)).join("")!=n}))?function(t,e){for(var r=o(t),l=arguments.length,p=1,f=s.f,c=a.f;l>p;)for(var u,d=h(arguments[p++]),m=f?i(d).concat(f(d)):i(d),y=m.length,g=0;y>g;)u=m[g++],n&&!c.call(d,u)||(r[u]=d[u]);return r}:l},function(t,e,r){var n=r(12),i=r(57),s=r(58);t.exports=function(t){return function(e,r,a){var o,h=n(e),l=i(h.length),p=s(a,l);if(t&&r!=r){for(;l>p;)if((o=h[p++])!=o)return!0}else for(;l>p;p++)if((t||p in h)&&h[p]===r)return t||p||0;return!t&&-1}}},function(t,e,r){var n=r(23),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(23),i=Math.max,s=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):s(t,e)}},function(t,e,r){t.exports={default:r(60),__esModule:!0}},function(t,e,r){r(61),t.exports=r(2).Object.getPrototypeOf},function(t,e,r){var n=r(20),i=r(39);r(62)("getPrototypeOf",(function(){return function(t){return i(n(t))}}))},function(t,e,r){var n=r(6),i=r(2),s=r(11);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*s((function(){r(1)})),"Object",a)}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(65),s=(n=i)&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,s.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){t.exports={default:r(66),__esModule:!0}},function(t,e,r){r(67);var n=r(2).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(6);n(n.S+n.F*!r(5),"Object",{defineProperty:r(7).f})},function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(40),s=(n=i)&&n.__esModule?n:{default:n};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,s.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){t.exports={default:r(70),__esModule:!0}},function(t,e,r){r(71),r(76),t.exports=r(31).f("iterator")},function(t,e,r){"use strict";var n=r(72)(!0);r(41)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(23),i=r(22);t.exports=function(t){return function(e,r){var s,a,o=String(i(e)),h=n(r),l=o.length;return h<0||h>=l?t?"":void 0:(s=o.charCodeAt(h))<55296||s>56319||h+1===l||(a=o.charCodeAt(h+1))<56320||a>57343?t?o.charAt(h):s:t?o.slice(h,h+2):a-56320+(s-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(29),i=r(15),s=r(30),a={};r(9)(a,r(13)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),s(t,e+" Iterator")}},function(t,e,r){var n=r(7),i=r(14),s=r(16);t.exports=r(5)?Object.defineProperties:function(t,e){i(t);for(var r,a=s(e),o=a.length,h=0;o>h;)n.f(t,r=a[h++],e[r]);return t}},function(t,e,r){var n=r(4).document;t.exports=n&&n.documentElement},function(t,e,r){r(77);for(var n=r(4),i=r(9),s=r(28),a=r(13)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),h=0;h<o.length;h++){var l=o[h],p=n[l],f=p&&p.prototype;f&&!f[a]&&i(f,a,l),s[l]=s.Array}},function(t,e,r){"use strict";var n=r(78),i=r(79),s=r(28),a=r(12);t.exports=r(41)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(81),__esModule:!0}}
vendor: 2,028 bytes, line 1
1,function(t,e,r){r(82),r(87),r(88),r(89),t.exports=r(2).Symbol},function(t,e,r){"use strict";var n=r(4),i=r(8),s=r(5),a=r(6),o=r(42),h=r(83).KEY,l=r(11),p=r(25),f=r(30),c=r(18),u=r(13),d=r(31),m=r(32),y=r(84),g=r(85),v=r(14),b=r(10),x=r(20),E=r(12),S=r(21),_=r(15),C=r(29),P=r(86),w=r(44),T=r(27),k=r(7),A=r(16),M=w.f,F=k.f,D=P.f,I=n.Symbol,O=n.JSON,B=O&&O.stringify,R=u("_hidden"),V=u("toPrimitive"),L={}.propertyIsEnumerable,N=p("symbol-registry"),z=p("symbols"),j=p("op-symbols"),G=Object.prototype,H="function"==typeof I&&!!T.f,q=n.QObject,W=!q||!q.prototype||!q.prototype.findChild,Y=s&&l((function(){return 7!=C(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=M(G,e);n&&delete G[e],F(t,e,r),n&&t!==G&&F(G,e,n)}:F,U=function(t){var e=z[t]=C(I.prototype);return e._k=t,e},X=H&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},K=function(t,e,r){return t===G&&K(j,e,r),v(t),e=S(e,!0),v(r),i(z,e)?(r.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),r=C(r,{enumerable:_(0,!1)})):(i(t,R)||F(t,R,_(1,{})),t[R][e]=!0),Y(t,e,r)):F(t,e,r)},$=function(t,e){v(t);for(var r,n=y(e=E(e)),i=0,s=n.length;s>i;)K(t,r=n[i++],e[r]);return t},J=function(t){var e=L.call(this,t=S(t,!0));return!(this===G&&i(z,t)&&!i(j,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,R)&&this[R][t])||e)},Z=function(t,e){if(t=E(t),e=S(e,!0),t!==G||!i(z,e)||i(j,e)){var r=M(t,e);return!r||!i(z,e)||i(t,R)&&t[R][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=D(E(t)),n=[],s=0;r.length>s;)i(z,e=r[s++])||e==R||e==h||n.push(e);return n},tt=function(t){for(var e,r=t===G,n=D(r?j:E(t)),s=[],a=0;n.length>a;)!i(z,e=n[a++])||r&&!i(G,e)||s.push(z[e]);return s};H||(o((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=c(arguments.length>0?arguments[0]:void 0),e=function(r){this===G&&e.call(j,r),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),Y(this,t,_(1,r))};return s&&W&&Y(G,t,{configurable:!0,set:e}),U(t)}).prototype,"toString",(function(){return this._k}
vendor: 4,343 bytes, line 1
1)),w.f=Z,k.f=K,r(43).f=P.f=Q,r(19).f=J,T.f=tt,s&&!r(17)&&o(G,"propertyIsEnumerable",J,!0),d.f=function(t){return U(u(t))}),a(a.G+a.W+a.F*!H,{Symbol:I});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)u(et[rt++]);for(var nt=A(u.store),it=0;nt.length>it;)m(nt[it++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(N,t+="")?N[t]:N[t]=I(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:function(t,e){return void 0===e?C(t):$(C(t),e)},defineProperty:K,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var st=l((function(){T.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return T.f(x(t))}}),O&&a(a.S+a.F*(!H||l((function(){var t=I();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!X(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!X(e))return e}),n[1]=e,B.apply(O,n)}}),I.prototype[V]||r(9)(I.prototype,V,I.prototype.valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(t,e,r){var n=r(18)("meta"),i=r(10),s=r(8),a=r(7).f,o=0,h=Object.isExtensible||function(){return!0},l=!r(11)((function(){return h(Object.preventExtensions({}))})),p=function(t){a(t,n,{value:{i:"O"+ ++o,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,n)){if(!h(t))return"F";if(!e)return"E";p(t)}return t[n].i},getWeak:function(t,e){if(!s(t,n)){if(!h(t))return!0;if(!e)return!1;p(t)}return t[n].w},onFreeze:function(t){return l&&f.NEED&&h(t)&&!s(t,n)&&p(t),t}}},function(t,e,r){var n=r(16),i=r(27),s=r(19);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,o=r(t),h=s.f,l=0;o.length>l;)h.call(t,a=o[l++])&&e.push(a);return e}},function(t,e,r){var n=r(38);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(12),i=r(43).f,s={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==s.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e){},function(t,e,r){r(32)("asyncIterator")},function(t,e,r){r(32)("observable")},function(t,e,r){"use strict";e.__esModule=!0;var n=a(r(91)),i=a(r(95)),s=a(r(40));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,i.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(n.default?(0,n.default)(t,e):t.__proto__=e)}},function(t,e,r){t.exports={default:r(92),__esModule:!0}},function(t,e,r){r(93),t.exports=r(2).Object.setPrototypeOf},function(t,e,r){var n=r(6);n(n.S,"Object",{setPrototypeOf:r(94).set})},function(t,e,r){var n=r(10),i=r(14),s=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=r(33)(Function.call,r(44).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return s(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:s}},function(t,e,r){t.exports={default:r(96),__esModule:!0}},function(t,e,r){r(97);var n=r(2).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(6);n(n.S,"Object",{create:r(29)})},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;"undefined"!=typeof navigator&&function(t,e){void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return e(t)}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window||{},(function(window){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={}
vendor: 4,763 bytes, line 1
1,bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===typeof t&&t.length){var e,r=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,n){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,n){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e,this.currentTime=currentTime}roundValues(!1);var createElementID=(_count=0,function(){return"__lottie_element_"+ ++_count}),_count;function HSVtoRGB(t,e,r){var n,i,s,a,o,h,l,p;switch(h=r*(1-e),l=r*(1-(o=6*t-(a=Math.floor(6*t)))*e),p=r*(1-(1-o)*e),a%6){case 0:n=r,i=p,s=h;break;case 1:n=l,i=r,s=h;break;case 2:n=h,i=r,s=p;break;case 3:n=h,i=l,s=r;break;case 4:n=p,i=h,s=r;break;case 5:n=r,i=h,s=l}return[n,i,s]}function RGBtoHSV(t,e,r){var n,i=Math.max(t,e,r),s=Math.min(t,e,r),a=i-s,o=0===i?0:a/i,h=i/255;switch(i){case s:n=0;break;case t:n=e-r+a*(e<r?6:0),n/=6*a;break;case e:n=r-t+2*a,n/=6*a;break;case r:n=t-e+4*a,n/=6*a}return[n,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1==e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+r[t]+r[e]+r[n]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t].length,n=0;n<r;n++)this._cbs[t][n](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 r=0,n=this._cbs[t].length;r<n;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,n-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray="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 r,n=0,i=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<e;n+=1)i.push(r);return i};function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){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)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};
vendor: 10,669 bytes, lines 1-9
1var getBlendMode=(blendModeEnums={0:"source-over",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"}
2/*!
3 Transformation Matrix v2.0
4 (c) Epistemex 2014-2015
5 www.epistemex.com
6 By Ken Fyrstenberg
7 Contributions by leeoniya.
8 License: MIT, header required.
9 */,function(t){return blendModeEnums[t]||""}),blendModeEnums,Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,n=Math.round;function i(){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 s(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function o(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function h(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(r(t),r(e))}function f(n,i){var s=t(i),a=e(i);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function c(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function u(t,e,r,n,i,s,a,o,h,l,p,f,c,u,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=f,this.props[12]=c,this.props[13]=u,this.props[14]=d,this.props[15]=m,this}function d(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function m(t,e,r,n,i,s,a,o,h,l,p,f,c,u,d,m){var y=this.props;if(1===t&&0===e&&0===r&&0===n&&0===i&&1===s&&0===a&&0===o&&0===h&&0===l&&1===p&&0===f)return y[12]=y[12]*t+y[15]*c,y[13]=y[13]*s+y[15]*u,y[14]=y[14]*p+y[15]*d,y[15]=y[15]*m,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],x=y[3],E=y[4],S=y[5],_=y[6],C=y[7],P=y[8],w=y[9],T=y[10],k=y[11],A=y[12],M=y[13],F=y[14],D=y[15];return y[0]=g*t+v*i+b*h+x*c,y[1]=g*e+v*s+b*l+x*u,y[2]=g*r+v*a+b*p+x*d,y[3]=g*n+v*o+b*f+x*m,y[4]=E*t+S*i+_*h+C*c,y[5]=E*e+S*s+_*l+C*u,y[6]=E*r+S*a+_*p+C*d,y[7]=E*n+S*o+_*f+C*m,y[8]=P*t+w*i+T*h+k*c,y[9]=P*e+w*s+T*l+k*u,y[10]=P*r+w*a+T*p+k*d,y[11]=P*n+w*o+T*f+k*m,y[12]=A*t+M*i+F*h+D*c,y[13]=A*e+M*s+F*l+D*u,y[14]=A*r+M*a+F*p+D*d,y[15]=A*n+M*o+F*f+D*m,this._identityCalculated=!1,this}function y(){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 g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function E(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function S(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function _(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function C(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,n=-this.props[4]/t,i=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=r,o.props[4]=n,o.props[5]=i,o.props[12]=s,o.props[13]=a,o}function P(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function w(t){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n[e]=P(t[e]);return n}function T(t,e,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];n[0]=t[0]*i+t[1]*a+h,n[1]=t[0]*s+t[1]*o+l,n[2]=e[0]*i+e[1]*a+h,n[3]=e[0]*s+e[1]*o+l,n[4]=r[0]*i+r[1]*a+h,n[5]=r[0]*s+r[1]*o+l}return n}function k(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function A(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function M(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=n(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function F(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function D(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=i,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=c,this.setTransform=u,this.translate=d,this.transform=m,this.applyToPoint=x,this.applyToX=E,this.applyToY=S,this.applyToZ=_,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=A,this.toCSS=M,this.to2dCSS=D,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=w,this.inversePoint=P,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,e){var r=this,n=e.pow(256,6),i=e.pow(2,52),s=2*i;function a(t){var e,r=t.length,n=this,i=0,s=n.i=n.j=0,a=n.S=[];for(r||(t=[r++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[s=255&s+t[i%r]+(e=a[i])],a[s]=e;n.g=function(t){for(var e,r=0,i=n.i,s=n.j,a=n.S;t--;)e=a[i=255&i+1],r=256*r+a[255&(a[i]=a[s=255&s+e])+(a[s]=e)];return n.i=i,n.j=s,r}}function o(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){for(var r,n=t+"",i=0;i<n.length;)e[255&i]=255&(r^=19*e[255&i])+n.charCodeAt(i++);return l(e)}function l(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(p,f,c){var u=[],d=h(function t(e,r){var n,i=[],s=typeof e;if(r&&"object"==s)for(n in e)try{i.push(t(e[n],r-1))}catch(t){}return i.length?i:"string"==s?e:e+"\0"}((f=!0===f?{entropy:!0}:f||{}).entropy?[p,l(t)]:null===p?function(){try{void 0;var e=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(e),l(e)}catch(e){var n=r.navigator,i=n&&n.plugins;return[+new Date,r,i,r.screen,l(t)]}}():p,3),u),m=new a(u),y=function(){for(var t=m.g(6),e=n,r=0;t<i;)t=256*(t+r),e*=256,r=m.g(1);for(;t>=s;)t/=2,e/=2,r>>>=1;return(t+r)/e};return y.int32=function(){return 0|m.g(4)},y.quick=function(){return m.g(4)/4294967296},y.double=y,h(l(m.S),t),(f.pass||c||function(t,r,n,i){return i&&(i.S&&o(i,m),t.state=function(){return o(m,{})}),n?(e.random=t,r):t})(y,d,"global"in f?f.global:this==e,f.state)},h(e.random(),t)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,r,n,i,s){var a=s||("bez_"+t+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(e[a])return e[a];var o=new h([t,r,n,i]);return e[a]=o,o}},e={};var r="function"==typeof Float32Array;function n(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function s(t){return 3*t}function a(t,e,r){return((n(e,r)*t+i(e,r))*t+s(e))*t}function o(t,e,r){return 3*n(e,r)*t*t+2*i(e,r)*t+s(e)}function h(t){this._p=t,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===r&&n===i?t:0===t?0:1===t?1:a(this._getTForX(t),r,i)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<11;++r)this._mSampleValues[r]=a(.1*r,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],n=this._mSampleValues,i=0,s=1;10!==s&&n[s]<=t;++s)i+=.1;var h=i+.1*((t-n[--s])/(n[s+1]-n[s])),l=o(h,e,r);return l>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var s=o(e,r,n);if(0===s)return e;e-=(a(e,r,n)-t)/s}return e}(t,h,e,r):0===l?h:function(t,e,r,n,i){var s,o,h=0;do{(s=a(o=e+(r-e)/2,n,i)-t)>0?r=o:e=o}while(Math.abs(s)>1e-7&&++h<10);return o}(t,i,i+.1,e,r)}},t}();function extendPrototype(t,e){var r,n,i=t.length;for(r=0;r<i;r+=1)for(var s in n=t[r].prototype)n.hasOwnProperty(s)&&(e.prototype[s]=n[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){Math;function t(t,e,r,n,i,s){var a=t*n+e*i+r*s-i*n-s*t-r*e;return a>-.001&&a<.001}var e=function(t,e,r,n){var i,s,a,o,h,l,p=defaultCurveSegments,f=0,c=[],u=[],d=bezier_length_pool.newElement();for(a=r.length,i=0;i<p;i+=1){for(h=i/(p-1),l=0,s=0;s<a;s+=1)o=bm_pow(1-h,3)*t[s]+3*bm_pow(1-h,2)*h*r[s]+3*(1-h)*bm_pow(h,2)*n[s]+bm_pow(h,3)*e[s],c[s]=o,null!==u[s]&&(l+=bm_pow(c[s]-u[s],2)),u[s]=c[s];l&&(f+=l=bm_sqrt(l)),d.percents[i]=h,d.lengths[i]=f}return d.addedLength=f,d};function r(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var i,s=(i={},function(e,s,a,o){var h=(e[0]+"_"+e[1]+"_"+s[0]+"_"+s[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!i[h]){var l,p,f,c,u,d,m,y=defaultCurveSegments,g=0,v=null;2===e.length&&(e[0]!=s[0]||e[1]!=s[1])&&t(e[0],e[1],s[0],s[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],s[0],s[1],s[0]+o[0],s[1]+o[1])&&(y=2);var b=new r(y);for(f=a.length,l=0;l<y;l+=1){for(m=createSizedArray(f),u=l/(y-1),d=0,p=0;p<f;p+=1)c=bm_pow(1-u,3)*e[p]+3*bm_pow(1-u,2)*u*(e[p]+a[p])+3*(1-u)*bm_pow(u,2)*(s[p]+o[p])+bm_pow(u,3)*s[p],m[p]=c,null!==v&&(d+=bm_pow(m[p]-v[p],2));g+=d=bm_sqrt(d),b.points[l]=new n(d,m),v=m}b.segmentLength=g,i[h]=b}return i[h]});function a(t,e){var r=e.percents,n=e.lengths,i=r.length,s=bm_floor((i-1)*t),a=t*e.addedLength,o=0;if(s===i-1||0===s||a===n[s])return r[s];for(var h=n[s]>
vendor: 11,124 bytes, line 9
9a?-1:1,l=!0;l;)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),l=!1):s+=h,s<0||s>=i-1){if(s===i-1)return r[s];l=!1}return r[s]+(r[s+1]-r[s])*o}var o=createTypedArray("float32",8);return{getSegmentsLength:function(t){var r,n=segments_length_pool.newElement(),i=t.c,s=t.v,a=t.o,o=t.i,h=t._length,l=n.lengths,p=0;for(r=0;r<h-1;r+=1)l[r]=e(s[r],s[r+1],a[r],o[r+1]),p+=l[r].addedLength;return i&&h&&(l[r]=e(s[r],s[0],a[r],o[0]),p+=l[r].addedLength),n.totalLength=p,n},getNewSegment:function(t,e,r,n,i,s,h){var l,p=a(i=i<0?0:i>1?1:i,h),f=a(s=s>1?1:s,h),c=t.length,u=1-p,d=1-f,m=u*u*u,y=p*u*u*3,g=p*p*u*3,v=p*p*p,b=u*u*d,x=p*u*d+u*p*d+u*u*f,E=p*p*d+u*p*f+p*u*f,S=p*p*f,_=u*d*d,C=p*d*d+u*f*d+u*d*f,P=p*f*d+u*f*f+p*d*f,w=p*f*f,T=d*d*d,k=f*d*d+d*f*d+d*d*f,A=f*f*d+d*f*f+f*d*f,M=f*f*f;for(l=0;l<c;l+=1)o[4*l]=Math.round(1e3*(m*t[l]+y*r[l]+g*n[l]+v*e[l]))/1e3,o[4*l+1]=Math.round(1e3*(b*t[l]+x*r[l]+E*n[l]+S*e[l]))/1e3,o[4*l+2]=Math.round(1e3*(_*t[l]+C*r[l]+P*n[l]+w*e[l]))/1e3,o[4*l+3]=Math.round(1e3*(T*t[l]+k*r[l]+A*n[l]+M*e[l]))/1e3;return o},getPointInSegment:function(t,e,r,n,i,s){var o=a(i,s),h=1-o;return[Math.round(1e3*(h*h*h*t[0]+(o*h*h+h*o*h+h*h*o)*r[0]+(o*o*h+h*o*o+o*h*o)*n[0]+o*o*o*e[0]))/1e3,Math.round(1e3*(h*h*h*t[1]+(o*h*h+h*o*h+h*h*o)*r[1]+(o*o*h+h*o*o+o*h*o)*n[1]+o*o*o*e[1]))/1e3]},buildBezierData:s,pointOnLine2D:t,pointOnLine3D:function(e,r,n,i,s,a,o,h,l){if(0===n&&0===a&&0===l)return t(e,r,i,s,o,h);var p,f=Math.sqrt(Math.pow(i-e,2)+Math.pow(s-r,2)+Math.pow(a-n,2)),c=Math.sqrt(Math.pow(o-e,2)+Math.pow(h-r,2)+Math.pow(l-n,2)),u=Math.sqrt(Math.pow(o-i,2)+Math.pow(h-s,2)+Math.pow(l-a,2));return(p=f>c?f>u?f-c-u:u-c-f:u>c?u-c-f:c-f-u)>-1e-4&&p<1e-4}}}!function(){for(var t=0,e=["ms","moz","webkit","o"],r=0;r<e.length&&!window.requestAnimationFrame;++r)window.requestAnimationFrame=window[e[r]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[r]+"CancelAnimationFrame"]||window[e[r]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,r){var n=(new Date).getTime(),i=Math.max(0,16-(n-t)),s=setTimeout((function(){e(n+i)}),i);return t=n+i,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function t(i,s,a){var o,h,l,f,c,u,d=i.length;for(h=0;h<d;h+=1)if("ks"in(o=i[h])&&!o.completed){if(o.completed=!0,o.tt&&(i[h-1].td=o.tt),[],-1,o.hasMask){var m=o.masksProperties;for(f=m.length,l=0;l<f;l+=1)if(m[l].pt.k.i)n(m[l].pt.k);else for(u=m[l].pt.k.length,c=0;c<u;c+=1)m[l].pt.k[c].s&&n(m[l].pt.k[c].s[0]),m[l].pt.k[c].e&&n(m[l].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,s),t(o.layers,s,a)):4===o.ty?r(o.shapes):5==o.ty&&p(o,a)}}function e(t,e){for(var r=0,n=e.length;r<n;){if(e[r].id===t)return e[r].layers.__used?JSON.parse(JSON.stringify(e[r].layers)):(e[r].layers.__used=!0,e[r].layers);r+=1}}function r(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&n(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&n(t[e].ks.k[i].e[0]);!0}else"gr"==t[e].ty&&r(t[e].it)}function n(t){var e,r=t.i.length;for(e=0;e<r;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 i(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&void 0))}var s,a=function(){var t=[4,4,14];function e(t){var e,r,n,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&(r=t[e],n=void 0,n=r.t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(t,r.v)&&(e(r.layers),r.assets)){var n,s=r.assets.length;for(n=0;n<s;n+=1)r.assets[n].layers&&e(r.assets[n].layers)}}}(),o=(s=[4,7,99],function(t){if(t.chars&&!i(s,t.v)){var e,r,a,o,h,l=t.chars.length;for(e=0;e<l;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(a=(h=t.chars[e].data.shapes[0].it).length,r=0;r<a;r+=1)(o=h[r].ks.k).__converted||(n(h[r].ks.k),o.__converted=!0)}}),h=function(){var t=[4,1,9];function e(t){var r,n,i,s=t.length;for(r=0;r<s;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(i=t[r].c.k.length,n=0;n<i;n+=1)t[r].c.k[n].s&&(t[r].c.k[n].s[0]/=255,t[r].c.k[n].s[1]/=255,t[r].c.k[n].s[2]/=255,t[r].c.k[n].s[3]/=255),t[r].c.k[n].e&&(t[r].c.k[n].e[0]/=255,t[r].c.k[n].e[1]/=255,t[r].c.k[n].e[2]/=255,t[r].c.k[n].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,n=t.length;for(r=0;r<n;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}(),l=function(){var t=[4,4,18];function e(t){var r,n,i;for(r=t.length-1;r>=0;r-=1)if("sh"==t[r].ty){if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(i=t[r].ks.k.length,n=0;n<i;n+=1)t[r].ks.k[n].s&&(t[r].ks.k[n].s[0].c=t[r].closed),t[r].ks.k[n].e&&(t[r].ks.k[n].e[0].c=t[r].closed);!0}else"gr"==t[r].ty&&e(t[r].it)}function r(t){var r,n,i,s,a,o,h=t.length;for(n=0;n<h;n+=1){if((r=t[n]).hasMask){var l=r.masksProperties;for(s=l.length,i=0;i<s;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(o=l[i].pt.k.length,a=0;a<o;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[i].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}();function p(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var f={completeData:function(e,r){e.__complete||(h(e),a(e),o(e),l(e),t(e.layers,e.assets,r),e.__complete=!0)}};return f.checkColors=h,f.checkChars=o,f.checkShapes=l,f.completeLayers=t,f}var dataManager=dataFunctionManager(),FontManager=function(){var t={w:0,size:0,shapes:[]},e=[];function r(t,e){var r=createTag("span");r.style.fontFamily=e;var n=createTag("span");n.innerHTML="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(t){var e,r=t.split(","),n=r.length,i=[];for(e=0;e<n;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&i.push(r[e]);return i.join(",")}(t)+", "+e,{node:n,w:i,parent:r}}function n(t,e){var r=createNS("text");return r.style.fontSize="100px",r.setAttribute("font-family",e.fFamily),r.setAttribute("font-style",e.fStyle),r.setAttribute("font-weight",e.fWeight),r.textContent="1",e.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",e.fClass)):r.style.fontFamily=e.fFamily,t.appendChild(r),createTag("canvas").getContext("2d").font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily,r}e=e.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 i=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return i.getCombinedCharacterCodes=function(){return e},i.prototype={addChars:function(t){if(t){this.chars||(this.chars=[]);var e,r,n,i=t.length,s=this.chars.length;for(e=0;e<i;e+=1){for(r=0,n=!1;r<s;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(n=!0),r+=1;n||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var i,s=t.list,a=s.length,o=a;for(i=0;i<a;i+=1){var h,l,p=!0;if(s[i].loaded=!1,s[i].monoCase=r(s[i].fFamily,"monospace"),s[i].sansCase=r(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((h=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(p=!1),p){var f=createTag("style");f.setAttribute("f-forigin",s[i].fOrigin),f.setAttribute("f-origin",s[i].origin),f.setAttribute("f-family",s[i].fFamily),f.type="text/css",f.innerHTML="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(f)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<h.length;l++)-1!==h[l].href.indexOf(s[i].fPath)&&(p=!1);if(p){var c=createTag("link");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.type="text/css",c.rel="stylesheet",c.href=s[i].fPath,document.body.appendChild(c)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<h.length;l++)s[i].fPath===h[l].src&&(p=!1);if(p){var u=createTag("link");u.setAttribute("f-forigin",s[i].fOrigin),u.setAttribute("f-origin",s[i].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",s[i].fPath),e.appendChild(u)}}}else s[i].loaded=!0,o-=1;s[i].helper=n(e,s[i]),s[i].cache={},this.fonts.push(s[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,n){for(var i=0,s=this.chars.length;i<s;){if(this.chars[i].ch===e&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&console.warn("Missing character from exported characters list: ",e,r,n),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var n=this.getFontByName(e),i=t.charCodeAt(0);if(!n.cache[i+1]){var s=n.helper;if(" "===t){s.textContent="|"+t+"|";var a=s.getComputedTextLength();s.textContent="||";var o=s.getComputedTextLength();n.cache[i+1]=(a-o)/100}else s.textContent=t,n.cache[i+1]=s.getComputedTextLength()/100}return n.cache[i+1]*r},checkLoadedFonts:function(){var t,e,r,n=this.fonts.length,i=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?i-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(i-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},i}(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var s,a,o,h,l,p,f,c,u=e.lastIndex,d=u,m=this.keyframes.length-1,y=!0;y;){if(s=this.keyframes[d],a=this.keyframes[d+1],d===m-1&&t>=a.t-i){s.h&&(s=a),u=0;break}if(a.t-i>t){u=d;break}
vendor: 12,358 bytes, line 9
9d<m-1?d+=1:(u=0,y=!1)}var g,v=a.t-i,b=s.t-i;if(s.to){s.bezierData||(s.bezierData=bez.buildBezierData(s.s,a.s||s.e,s.to,s.ti));var x=s.bezierData;if(t>=v||t<b){var E=t>=v?x.points.length-1:0;for(h=x.points[E].point.length,o=0;o<h;o+=1)r[o]=x.points[E].point[o]}else{s.__fnct?c=s.__fnct:(c=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,s.__fnct=c),l=c((t-b)/(v-b));var S,_=x.segmentLength*l,C=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastAddedLength:0;for(f=e.lastFrame<t&&e._lastKeyframeIndex===d?e._lastPoint:0,y=!0,p=x.points.length;y;){if(C+=x.points[f].partialLength,0===_||0===l||f===x.points.length-1){for(h=x.points[f].point.length,o=0;o<h;o+=1)r[o]=x.points[f].point[o];break}if(_>=C&&_<C+x.points[f+1].partialLength){for(S=(_-C)/x.points[f+1].partialLength,h=x.points[f].point.length,o=0;o<h;o+=1)r[o]=x.points[f].point[o]+(x.points[f+1].point[o]-x.points[f].point[o])*S;break}f<p-1?f+=1:y=!1}e._lastPoint=f,e._lastAddedLength=C-x.points[f].partialLength,e._lastKeyframeIndex=d}}else{var P,w,T,k,A;if(m=s.s.length,g=a.s||s.e,this.sh&&1!==s.h)if(t>=v)r[0]=g[0],r[1]=g[1],r[2]=g[2];else if(t<=b)r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2];else{!function(t,e){var r=e[0],n=e[1],i=e[2],s=e[3],a=Math.atan2(2*n*s-2*r*i,1-2*n*n-2*i*i),o=Math.asin(2*r*n+2*i*s),h=Math.atan2(2*r*s-2*n*i,1-2*r*r-2*i*i);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}(r,function(t,e,r){var n,i,s,a,o,h=[],l=t[0],p=t[1],f=t[2],c=t[3],u=e[0],d=e[1],m=e[2],y=e[3];(i=l*u+p*d+f*m+c*y)<0&&(i=-i,u=-u,d=-d,m=-m,y=-y);1-i>1e-6?(n=Math.acos(i),s=Math.sin(n),a=Math.sin((1-r)*n)/s,o=Math.sin(r*n)/s):(a=1-r,o=r);return h[0]=a*l+o*u,h[1]=a*p+o*d,h[2]=a*f+o*m,h[3]=a*c+o*y,h}(n(s.s),n(g),(t-b)/(v-b)))}else for(d=0;d<m;d+=1)1!==s.h&&(t>=v?l=1:t<b?l=0:(s.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[d]?c=s.__fnct[d]:(P=void 0===s.o.x[d]?s.o.x[0]:s.o.x[d],w=void 0===s.o.y[d]?s.o.y[0]:s.o.y[d],T=void 0===s.i.x[d]?s.i.x[0]:s.i.x[d],k=void 0===s.i.y[d]?s.i.y[0]:s.i.y[d],c=BezierFactory.getBezierEasing(P,w,T,k).get,s.__fnct[d]=c)):s.__fnct?c=s.__fnct:(P=s.o.x,w=s.o.y,T=s.i.x,k=s.i.y,c=BezierFactory.getBezierEasing(P,w,T,k).get,s.__fnct=c),l=c((t-b)/(v-b)))),g=a.s||s.e,A=1===s.h?s.s[d]:s.s[d]+(g[d]-s.s[d])*l,"multidimensional"===this.propType?r[d]=A:r=A}return e.lastIndex=u,r}function n(t){var e=t[0]*degToRads,r=t[1]*degToRads,n=t[2]*degToRads,i=Math.cos(e/2),s=Math.cos(r/2),a=Math.cos(n/2),o=Math.sin(e/2),h=Math.sin(r/2),l=Math.sin(n/2);return[o*h*a+i*s*l,o*s*a+i*h*l,i*h*a-o*s*l,i*s*a-o*h*l]}function i(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function s(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)r=t[n]*this.mult,e(this.v[n]-r)>1e-5&&(this.v[n]=r,this._mdf=!0),n+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,r,n){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.addEffect=o}function l(t,e,r,n){this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i,h=e.k.length;this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h);createTypedArray("float32",h);for(this.vel=createTypedArray("float32",h),i=0;i<h;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=s,this.addEffect=o}function p(e,n,h,l){this.propType="unidimensional",this.keyframes=n.k,this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=o}function f(e,n,h,l){this.propType="multidimensional";var p,f,c,u,d,m=n.k.length;for(p=0;p<m-1;p+=1)n.k[p].to&&n.k[p].s&&n.k[p+1]&&n.k[p+1].s&&(f=n.k[p].s,c=n.k[p+1].s,u=n.k[p].to,d=n.k[p].ti,(2===f.length&&(f[0]!==c[0]||f[1]!==c[1])&&bez.pointOnLine2D(f[0],f[1],c[0],c[1],f[0]+u[0],f[1]+u[1])&&bez.pointOnLine2D(f[0],f[1],c[0],c[1],c[0]+d[0],c[1]+d[1])||3===f.length&&(f[0]!==c[0]||f[1]!==c[1]||f[2]!==c[2])&&bez.pointOnLine3D(f[0],f[1],f[2],c[0],c[1],c[2],f[0]+u[0],f[1]+u[1],f[2]+u[2])&&bez.pointOnLine3D(f[0],f[1],f[2],c[0],c[1],c[2],c[0]+d[0],c[1]+d[1],c[2]+d[2]))&&(n.k[p].to=null,n.k[p].ti=null),f[0]===c[0]&&f[1]===c[1]&&0===u[0]&&0===u[1]&&0===d[0]&&0===d[1]&&(2===f.length||f[2]===c[2]&&0===u[2]&&0===d[2])&&(n.k[p].to=null,n.k[p].ti=null));this.effectsSequence=[i.bind(this)],this.keyframes=n.k,this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.frameId=-1;var y=n.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),p=0;p<y;p+=1)this.v[p]=t,this.pv[p]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(t,e,r,n,i){var s;if(e.k.length)if("number"==typeof e.k[0])s=new l(t,e,n,i);else switch(r){case 0:s=new p(t,e,n,i);break;case 1:s=new f(t,e,n,i)}else s=new h(t,e,n,i);return s.effectsSequence.length&&i.addDynamicProperty(s),s}}}(),TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,i=e.or.k.length;for(n=0;n<i;n+=1)e.or.k[n].to=e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,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.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),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])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&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){var r,n,i=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],n=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(r[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=s.getValueAtTime(s.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(r[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(r=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else r=n=t;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[0]))}this.data.p&&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}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.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.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,n){return new e(t,r,n)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=point_pool.newElement(),this.o[r]=point_pool.newElement(),this.i[r]=point_pool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;
vendor: 6,198 bytes, line 9
9)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,n,i){var s;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o}(!s[n]||s[n]&&!i)&&(s[n]=point_pool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,n,i,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(r,n,"o",a,o),this.setXYAt(i,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,n=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var s,a=this._length-1,o=this._length;for(s=i;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],r[a][0],r[a][1],s,!1),a-=1;return t};var ShapePropertyFactory=function(){function t(t,e,r){var n,i,s,a,o,h,l,p,f,c=r.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)n=u[0].s[0],s=!0,c=0;else if(t>=u[u.length-1].t-this.offsetTime)n=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],s=!0;else{for(var d,m,y=c,g=u.length-1,v=!0;v&&(d=u[y],!((m=u[y+1]).t-this.offsetTime>t));)y<g-1?y+=1:v=!1;if(c=y,!(s=1===d.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<d.t-this.offsetTime)p=0;else{var b;d.__fnct?b=d.__fnct:(b=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=b),p=b((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}i=m.s?m.s[0]:d.e[0]}n=d.s[0]}for(h=e._length,l=n.i[0].length,r.lastIndex=c,a=0;a<h;a+=1)for(o=0;o<l;o+=1)f=s?n.i[a][o]:n.i[a][o]+(i.i[a][o]-n.i[a][o])*p,e.i[a][o]=f,f=s?n.o[a][o]:n.o[a][o]+(i.o[a][o]-n.o[a][o])*p,e.o[a][o]=f,f=s?n.v[a][o]:n.v[a][o]+(i.v[a][o]-n.v[a][o])*p,e.v[a][o]=f}function e(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return-999999!==n&&(n<e&&t<e||n>r&&t>r)||(this._caching.lastIndex=n<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function n(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,n=t._length;for(r=0;r<n;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var t,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?e.pt.k:e.ks.k;this.v=shape_pool.clone(i),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,n,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?n.pt.k:n.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=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=i,s.prototype.setVValue=n,s.prototype.addEffect=a,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=n,o.prototype.addEffect=a;var h=function(){var t=roundCorner;function e(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=r-i,a.v[1][0]=s?e+n:e-n,a.v[1][1]=r,a.v[2][0]=e,a.v[2][1]=r+i,a.v[3][0]=s?e-n:e+n,a.v[3][1]=r,a.i[0][0]=s?e-n*t:e+n*t,a.i[0][1]=r-i,a.i[1][0]=s?e+n:e-n,a.i[1][1]=r-i*t,a.i[2][0]=s?e+n*t:e-n*t,a.i[2][1]=r+i,a.i[3][0]=s?e-n:e+n,a.i[3][1]=r+i*t,a.o[0][0]=s?e+n*t:e-n*t,a.o[0][1]=r-i,a.o[1][0]=s?e+n:e-n,a.o[1][1]=r+i*t,a.o[2][0]=s?e-n*t:e+n*t,a.o[2][1]=r+i,a.o[3][0]=s?e-n:e+n,a.o[3][1]=r-i*t}},extendPrototype([DynamicPropertyContainer],e),e}(),l=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 10,292 bytes, line 9
9pertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,n,i=2*Math.floor(this.pt.v),s=2*Math.PI/i,a=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,f=2*Math.PI*o/(2*i),c=2*Math.PI*h/(2*i),u=-Math.PI/2;u+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){r=a?l:p,n=a?f:c;var m=(e=a?o:h)*Math.cos(u),y=e*Math.sin(u),g=0===m&&0===y?0:y/Math.sqrt(m*m+y*y),v=0===m&&0===y?0:-m/Math.sqrt(m*m+y*y);m+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(m,y,m-g*n*r*d,y-v*n*r*d,m+g*n*r*d,y+v*n*r*d,t,!0),a=!a,u+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,n=this.or.v,i=this.os.v,s=2*Math.PI*n/(4*e),a=-Math.PI/2,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=n*Math.cos(a),l=n*Math.sin(a),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),f=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*s*i*o,l-f*s*i*o,h+p*s*i*o,l+f*s*i*o,t,!0),a+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.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.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bm_min(r,n,this.r.v),s=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+i,t+r,e-n+s,0,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-s,t+r,e+n-i,1,!0),0!==i?(this.v.setTripleAt(t+r-i,e+n,t+r-i,e+n,t+r-s,e+n,2,!0),this.v.setTripleAt(t-r+i,e+n,t-r+s,e+n,t-r+i,e+n,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-i,t-r,e+n-s,4,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+s,t-r,e-n+i,5,!0),this.v.setTripleAt(t-r+i,e-n,t-r+i,e-n,t-r+s,e-n,6,!0),this.v.setTripleAt(t+r-i,e-n,t+r-s,e-n,t+r-i,e-n,7,!0)):(this.v.setTripleAt(t-r,e+n,t-r+s,e+n,t-r,e+n,2),this.v.setTripleAt(t-r,e-n,t-r,e-n+s,t-r,e-n,3))):(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+s,t+r,e-n+i,0,!0),0!==i?(this.v.setTripleAt(t+r-i,e-n,t+r-i,e-n,t+r-s,e-n,1,!0),this.v.setTripleAt(t-r+i,e-n,t-r+s,e-n,t-r+i,e-n,2,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+i,t-r,e-n+s,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-s,t-r,e+n-i,4,!0),this.v.setTripleAt(t-r+i,e+n,t-r+i,e+n,t-r+s,e+n,5,!0),this.v.setTripleAt(t+r-i,e+n,t+r-s,e+n,t+r-i,e+n,6,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-i,t+r,e+n-s,7,!0)):(this.v.setTripleAt(t-r,e-n,t-r+s,e-n,t-r,e-n,1,!0),this.v.setTripleAt(t-r,e+n,t-r,e+n-s,t-r,e+n,2,!0),this.v.setTripleAt(t+r,e+n,t+r-s,e+n,t+r,e+n,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}();var f={getShapeProp:function(t,e,r){var n;return 3===r||4===r?n=(3===r?e.pt:e.ks).k.length?new o(t,e,r):new s(t,e,r):5===r?n=new p(t,e):6===r?n=new h(t,e):7===r&&(n=new l(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return o}};return f}(),ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,n){return new e[t](r,n)},t}();function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,r,n){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var i,s,a=e.length||0;for(i=0;i<a;i+=1)s=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=s.k||this.k,this.dataProps[i]={n:e[i].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,n,i){var s=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,h=[],l=s.length;for(a=0;a<l;a+=1){var p,f;if((o=s[a]).e*i<n||o.s*i>n+r);else p=o.s*i<=n?0:(o.s*i-n)/r,f=o.e*i>=n+r?1:(o.e*i-n)/r,h.push([p,f])}return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segments_length_pool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,n;if(this._mdf||t){var i=this.o.v%360/360;if(i<0&&(i+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+i)>(r=(this.e.v>1?1:this.e.v<0?0:this.e.v)+i)){var s=e;e=r,r=s}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,o,h,l,p,f,c=this.shapes.length,u=0;if(r===e)for(a=0;a<c;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection;else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(a=0;a<c;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var d,m,y=[];for(a=0;a<c;a+=1)if((d=this.shapes[a]).shape._mdf||this._mdf||t||2===this.m){if(h=(n=d.shape.paths)._length,f=0,!d.shape._mdf&&d.pathsData.length)f=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),o=0;o<h;o+=1)p=bez.getSegmentsLength(n.shapes[o]),l.push(p),f+=p.totalLength;d.totalShapeLength=f,d.pathsData=l}u+=f,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var g,v=e,b=r,x=0;for(a=c-1;a>=0;a-=1)if((d=this.shapes[a]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&c>1?(g=this.calculateShapeEdges(e,r,d.totalShapeLength,x,u),x+=d.totalShapeLength):g=[[v,b]],h=g.length,o=0;o<h;o+=1){v=g[o][0],b=g[o][1],y.length=0,b<=1?y.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(b-1)}));var E=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=E.pop();this.addPaths(E,m),E=this.addShapes(d,y[1],S)}else this.addPaths(E,m),E=this.addShapes(d,y[1]);this.addPaths(E,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,n,i,s,a){i.setXYAt(e[0],e[1],"o",s),i.setXYAt(r[0],r[1],"i",s+1),a&&i.setXYAt(t[0],t[1],"v",s),i.setXYAt(n[0],n[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,n){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),n&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var n,i,s,a,o,h,l,p,f=t.pathsData,c=t.shape.paths.shapes,u=t.shape.paths._length,d=0,m=[],y=!0;for(r?(o=r._length,p=r._length):(r=shape_pool.newElement(),o=0,p=0),m.push(r),n=0;n<u;n+=1){for(h=f[n].lengths,r.c=c[n].c,s=c[n].c?h.length:h.length+1,i=1;i<s;i+=1)if(d+(a=h[i-1]).addedLength<e.s)d+=a.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(c[n].v[i-1],c[n].o[i-1],c[n].i[i],c[n].v[i],r,o,y),y=!1):(l=bez.getNewSegment(c[n].v[i-1],c[n].v[i],c[n].o[i-1],c[n].i[i],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,h[i-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),d+=a.addedLength,o+=1}if(c[n].c&&h.length){if(a=h[i-1],d<=e.e){var g=h[i-1].addedLength;
vendor: 4,334 bytes, line 9
9e.s<=d&&e.e>=d+g?(this.addSegment(c[n].v[i-1],c[n].o[i-1],c[n].i[0],c[n].v[0],r,o,y),y=!1):(l=bez.getNewSegment(c[n].v[i-1],c[n].v[0],c[n].o[i-1],c[n].i[0],(e.s-d)/g,(e.e-d)/g,h[i-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=a.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;n<u-1&&(r=shape_pool.newElement(),y=!0,m.push(r),o=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r=shape_pool.newElement();r.c=t.c;var n,i,s,a,o,h,l,p,f,c,u,d,m,y=t._length,g=0;for(n=0;n<y;n+=1)i=t.v[n],a=t.o[n],s=t.i[n],i[0]===a[0]&&i[1]===a[1]&&i[0]===s[0]&&i[1]===s[1]?0!==n&&n!==y-1||t.c?(o=0===n?t.v[y-1]:t.v[n-1],l=(h=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=d=i[0]+(o[0]-i[0])*l,f=m=i[1]-(i[1]-o[1])*l,c=p-(p-i[0])*roundCorner,u=f-(f-i[1])*roundCorner,r.setTripleAt(p,f,c,u,d,m,g),g+=1,o=n===y-1?t.v[0]:t.v[n+1],l=(h=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=c=i[0]+(o[0]-i[0])*l,f=u=i[1]+(o[1]-i[1])*l,d=p-(p-i[0])*roundCorner,m=f-(f-i[1])*roundCorner,r.setTripleAt(p,f,c,u,d,m,g),g+=1):(r.setTripleAt(i[0],i[1],a[0],a[1],s[0],s[1],g),g+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],g),g+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,r,n,i,s,a,o=this.shapes.length,h=this.rd.v;if(0!==h)for(r=0;r<o;r+=1){if((s=this.shapes[r]).shape.paths,a=s.localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,i=s.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,n,i,s){var a=s?-1:1,o=n.s.v[0]+(1-n.s.v[0])*(1-i),h=n.s.v[1]+(1-n.s.v[1])*(1-i);t.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*i),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(s?1/o:o,s?1/h:h),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,n){this.elem=t,this.arr=e,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);for(;r>0;)r-=1,this._elements.unshift(e[r]),1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){t.length;var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,n,i,s;if(this._mdf||t){var a,o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.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:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]}
vendor: 7,753 bytes, line 9
9,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,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes()}for(s=0,n=0;n<=this._groups.length-1;n+=1)a=s<o,this._groups[n]._render=a,this.changeGroupRender(this._groups[n].it,a),s+=1;this._currentCopies=o;var l=this.o.v,p=l%1,f=l>0?Math.floor(l):Math.ceil(l),c=(this.tr.v.props,this.pMatrix.props),u=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,y,g=0;if(l>0){for(;g<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),g+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),g+=p)}else if(l<0){for(;g>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),g-=p)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,s=this._currentCopies;s;){if(y=(r=(e=this.elemsData[n].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,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==g){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&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(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]),this.matrix.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),m=0;m<y;m+=1)r[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<y;m+=1)r[m]=this.matrix.props[m];g+=1,s-=1,n+=i}}else for(s=this._currentCopies,n=0,i=1;s;)r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,n+=i},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;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}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.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},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,n,i=4*this.data.p;for(e=0;e<i;e+=1)r=e%4==0?100:255,n=Math.round(this.prop.v[e]*r),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)r=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,e,r,n){if(0===e)return"";var i,s=t.o,a=t.i,o=t.v,h=" M"+n.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<e;i+=1)h+=" C"+n.applyToPointStringified(s[i-1][0],s[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(o[i][0],o[i][1]);return r&&e&&(h+=" C"+n.applyToPointStringified(s[i-1][0],s[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,r){var n="";if(t.e)n=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=e+i}else n=r,n+=t.u?t.u:"",n+=t.p;return n}function n(t){this._imageLoaded=e.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}return n.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;var r,n=t.length;for(r=0;r<n;r+=1)t[r].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[r])))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loaded:function(){return this.totalImages===this.loadedAssets},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getImage:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}},createImgData:function(e){var n=r(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),i.src=n;var s={img:i,assetData:e};return s},createImageData:function(e){var n=r(e,this.assetsPath,this.path),i=createNS("image");i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n);var s={img:i,assetData:e};return s},imageLoaded:e,setCacheType:function(t){this._createImageData="svg"===t?this.createImageData.bind(this):this.createImgData.bind(this)}},n}(),featureSupport=function(){var t={maskType:!0};return(/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))&&(t.maskType=!1),t}(),filtersFactory=function(){var t={};return t.createFilter=function(t){var e=createNS("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},t.createAlphaToLuminanceFilter=function(){var t=createNS("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},t}(),assetLoader=function(){function t(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}return{load:function(e,r,n){var i,s=new XMLHttpRequest;s.open("GET",e,!0);try{s.responseType="json"}catch(t){}s.send(),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status)i=t(s),r(i);else try{i=t(s),r(i)}catch(t){n&&n(t)}}}}}();function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animators
vendor: 5,227 bytes, line 9
9Data=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function TextAnimatorDataProperty(t,e,r){var n={propType:!1},i=PropertyFactory.getProp,s=e.a;this.a={r:s.r?i(t,s.r,0,degToRads,r):n,rx:s.rx?i(t,s.rx,0,degToRads,r):n,ry:s.ry?i(t,s.ry,0,degToRads,r):n,sk:s.sk?i(t,s.sk,0,degToRads,r):n,sa:s.sa?i(t,s.sa,0,degToRads,r):n,s:s.s?i(t,s.s,1,.01,r):n,a:s.a?i(t,s.a,1,0,r):n,o:s.o?i(t,s.o,0,.01,r):n,p:s.p?i(t,s.p,1,0,r):n,sw:s.sw?i(t,s.sw,0,0,r):n,sc:s.sc?i(t,s.sc,1,0,r):n,fc:s.fc?i(t,s.fc,1,0,r):n,fh:s.fh?i(t,s.fh,0,0,r):n,fs:s.fs?i(t,s.fs,0,.01,r):n,fb:s.fb?i(t,s.fb,0,.01,r):n,t:s.t?i(t,s.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function LetterProps(t,e,r,n,i,s){this.o=t,this.sw=e,this.sc=r,this.fc=n,this.m=i,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),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)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,s,a,o,h,l,p,f,c,u,d,m,y,g,v,b,x,E=this._moreOptions.alignment.v,S=this._animatorsData,_=this._textData,C=this.mHelper,P=this._renderType,w=this.renderedLetters.length,T=(this.data,t.l);if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,A=x.v;for(this._pathData.r&&(A=A.reverse()),a={tLength:0,segments:[]},s=A._length-1,g=0,i=0;i<s;i+=1)k=bez.buildBezierData(A.v[i],A.v[i+1],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[i+1][0]-A.v[i+1][0],A.i[i+1][1]-A.v[i+1][1]]),a.tLength+=k.segmentLength,a.segments.push(k),g+=k.segmentLength;i=s,x.v.c&&(k=bez.buildBezierData(A.v[i],A.v[0],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),a.tLength+=k.segmentLength,a.segments.push(k),g+=k.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,c=0,f=1,l=0,p=!0,m=a.segments,o<0&&x.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),f=(d=m[c=m.length-1].points).length-1;o<0;)o+=d[f].partialLength,(f-=1)<0&&(f=(d=m[c-=1].points).length-1);u=(d=m[c].points)[f-1],y=(h=d[f]).partialLength}s=T.length,r=0,n=0;var M,F,D,I,O=1.2*t.finalSize*.714,B=!0;D=S.length;var R,V,L,N,z,j,G,H,q,W,Y,U,X,K=-1,$=o,J=c,Z=f,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,nt=0,it=2===t.j?-.5:-1,st=0,at=!0;for(i=0;i<s;i+=1)if(T[i].n){for(rt&&(rt+=nt);st<i;)T[st].animatorJustifyOffset=rt,st+=1;rt=0,at=!0}else{for(F=0;F<D;F+=1)(M=S[F].a).t.propType&&(at&&2===t.j&&(nt+=M.t.v*it),(R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars)).length?rt+=M.t.v*R[0]*it:rt+=M.t.v*R*it);at=!1}for(rt&&(rt+=nt);st<i;)T[st].animatorJustifyOffset=rt,st+=1}for(i=0;i<s;i+=1){if(C.reset(),z=1,T[i].n)r=0,n+=t.yOffset,n+=B?1:0,o=$,B=!1,0,this._hasMaskedPath&&(f=Z,u=(d=m[c=J].points)[f-1],y=(h=d[f]).partialLength,l=0),X=W=U=tt="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==T[i].line){switch(t.j){case 1:o+=g-t.lineWidths[T[i].line];break;case 2:o+=(g-t.lineWidths[T[i].line])/2}Q=T[i].line}K!==T[i].ind&&(T[K]&&(o+=T[K].extra),o+=T[i].an/2,K=T[i].ind),o+=E[0]*T[i].an/200;var ot=0;for(F=0;F<D;F+=1)(M=S[F].a).p.propType&&((R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars)).length?ot+=M.p.v[0]*R[0]:ot+=M.p.v[0]*R),M.a.propType&&((R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars)).length?ot+=M.a.v[0]*R[0]:ot+=M.a.v[0]*R);for(p=!0;p;)l+y>=o+ot||!d?(v=(o+ot-l)/h.partialLength,L=u.point[0]+(h.point[0]-u.point[0])*v,N=u.point[1]+(h.point[1]-u.point[1])*v,C.translate(-E[0]*T[i].an/200,-E[1]*O/100),p=!1):d&&(l+=h.partialLength,(f+=1)>=d.length&&(f=0,m[c+=1]?d=m[c].points:x.v.c?(f=0,d=m[c=0].points):(l-=h.partialLength,d=null)),d&&(u=h,y=(h=d[f]).partialLength));V=T[i].an/2-T[i].add,C.translate(-V,0,0)}else V=T[i].an/2-T[i].add,C.translate(-V,0,0),C.translate(-E[0]*T[i].an/200,-E[1]*O/100,0);for(T[i].l/2,F=0;F<D;
vendor: 7,650 bytes, line 9
9F+=1)(M=S[F].a).t.propType&&(R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?R.length?o+=M.t.v*R[0]:o+=M.t.v*R:R.length?r+=M.t.v*R[0]:r+=M.t.v*R));for(T[i].l/2,t.strokeWidthAnim&&(G=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),F=0;F<D;F+=1)(M=S[F].a).a.propType&&((R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars)).length?C.translate(-M.a.v[0]*R[0],-M.a.v[1]*R[1],M.a.v[2]*R[2]):C.translate(-M.a.v[0]*R,-M.a.v[1]*R,M.a.v[2]*R));for(F=0;F<D;F+=1)(M=S[F].a).s.propType&&((R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars)).length?C.scale(1+(M.s.v[0]-1)*R[0],1+(M.s.v[1]-1)*R[1],1):C.scale(1+(M.s.v[0]-1)*R,1+(M.s.v[1]-1)*R,1));for(F=0;F<D;F+=1){if(M=S[F].a,R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars),M.sk.propType&&(R.length?C.skewFromAxis(-M.sk.v*R[0],M.sa.v*R[1]):C.skewFromAxis(-M.sk.v*R,M.sa.v*R)),M.r.propType&&(R.length?C.rotateZ(-M.r.v*R[2]):C.rotateZ(-M.r.v*R)),M.ry.propType&&(R.length?C.rotateY(M.ry.v*R[1]):C.rotateY(M.ry.v*R)),M.rx.propType&&(R.length?C.rotateX(M.rx.v*R[0]):C.rotateX(M.rx.v*R)),M.o.propType&&(R.length?z+=(M.o.v*R[0]-z)*R[0]:z+=(M.o.v*R-z)*R),t.strokeWidthAnim&&M.sw.propType&&(R.length?G+=M.sw.v*R[0]:G+=M.sw.v*R),t.strokeColorAnim&&M.sc.propType)for(q=0;q<3;q+=1)R.length?j[q]=j[q]+(M.sc.v[q]-j[q])*R[0]:j[q]=j[q]+(M.sc.v[q]-j[q])*R;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(q=0;q<3;q+=1)R.length?H[q]=H[q]+(M.fc.v[q]-H[q])*R[0]:H[q]=H[q]+(M.fc.v[q]-H[q])*R;M.fh.propType&&(H=R.length?addHueToRGB(H,M.fh.v*R[0]):addHueToRGB(H,M.fh.v*R)),M.fs.propType&&(H=R.length?addSaturationToRGB(H,M.fs.v*R[0]):addSaturationToRGB(H,M.fs.v*R)),M.fb.propType&&(H=R.length?addBrightnessToRGB(H,M.fb.v*R[0]):addBrightnessToRGB(H,M.fb.v*R))}}for(F=0;F<D;F+=1)(M=S[F].a).p.propType&&(R=S[F].s.getMult(T[i].anIndexes[F],_.a[F].s.totalChars),this._hasMaskedPath?R.length?C.translate(0,M.p.v[1]*R[0],-M.p.v[2]*R[1]):C.translate(0,M.p.v[1]*R,-M.p.v[2]*R):R.length?C.translate(M.p.v[0]*R[0],M.p.v[1]*R[1],-M.p.v[2]*R[2]):C.translate(M.p.v[0]*R,M.p.v[1]*R,-M.p.v[2]*R));if(t.strokeWidthAnim&&(W=G<0?0:G),t.strokeColorAnim&&(Y="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(U="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,E[1]*O/100+n,0),_.p.p){b=(h.point[1]-u.point[1])/(h.point[0]-u.point[0]);var ht=180*Math.atan(b)/Math.PI;h.point[0]<u.point[0]&&(ht+=180),C.rotate(-ht*Math.PI/180)}C.translate(L,N,0),o-=E[0]*T[i].an/200,T[i+1]&&K!==T[i+1].ind&&(o+=T[i].an/2,o+=t.tr/1e3*t.finalSize)}else{switch(C.translate(r,n,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(T[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[i].line]),0,0);break;case 2:C.translate(T[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[i].line])/2,0,0)}C.translate(0,-t.ls),C.translate(V,0,0),C.translate(E[0]*T[i].an/200,E[1]*O/100,0),r+=T[i].l+t.tr/1e3*t.finalSize}"html"===P?tt=C.toCSS():"svg"===P?tt=C.to2dCSS():et=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],X=z}w<=i?(I=new LetterProps(X,W,Y,U,tt,et),this.renderedLetters.push(I),w+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[i],this.lettersChangedFlag=I.update(X,W,Y,U,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,r,n,i,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var n,i=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)s=r!==this.keysIndex?this.effectsSequence[n](s,s.t):this.effectsSequence[n](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,n=t.length;r<=n-1&&(t[r].s,!(r===n-1||t[r+1].t>e));)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r=FontManager.getCombinedCharacterCodes(),n=[],i=0,s=t.length;i<s;)e=t.charCodeAt(i),-1!==r.indexOf(e)?n[n.length-1]+=t.charAt(i):e>=55296&&e<=56319&&(e=t.charCodeAt(i+1))>=56320&&e<=57343?(n.push(t.substr(i,2)),++i):n.push(t.charAt(i)),i+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,n,i,s,a,o,h=this.elem.globalData.fontManager,l=this.data,p=[],f=0,c=l.m.g,u=0,d=0,m=0,y=[],g=0,v=0,b=h.getFontByName(t.f),x=0,E=b.fStyle?b.fStyle.split(" "):[],S="normal",_="normal";for(r=E.length,e=0;e<r;e+=1)switch(E[e].toLowerCase()){case"italic":_="italic";break;case"bold":S="700";break;case"black":S="900";break;case"medium":S="500";break;case"regular":case"normal":S="400";break;case"light":case"thin":S="200"}t.fWeight=b.fWeight||S,t.fStyle=_,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var C,P=t.tr/1e3*t.finalSize;if(t.sz)for(var w,T,k=!0,A=t.sz[0],M=t.sz[1];k;){w=0,g=0,r=(T=this.buildFinalText(t.t)).length,P=t.tr/1e3*t.finalSize;var F=-1;for(e=0;e<r;e+=1)C=T[e].charCodeAt(0),n=!1," "===T[e]?F=e:13!==C&&3!==C||(g=0,n=!0,w+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(T[e],b.fStyle,b.fFamily),x=n?0:o.w*t.finalSize/100):x=h.measureText(T[e],t.f,t.finalSize),g+x>A&&" "!==T[e]?(-1===F?r+=1:e=F,w+=t.finalLineHeight||1.2*t.finalSize,T.splice(e,F===e?1:0,"\r"),F=-1,g=0):(g+=x,g+=P);w+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&M<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=T,r=t.finalText.length,k=!1)}g=-P,x=0;var D,I=0;for(e=0;e<r;
vendor: 5,203 bytes, line 9
9e+=1)if(n=!1,13===(C=(D=t.finalText[e]).charCodeAt(0))||3===C?(I=0,y.push(g),v=g>v?g:v,g=-2*P,i="",n=!0,m+=1):i=D,h.chars?(o=h.getCharData(D,b.fStyle,h.getFontByName(t.f).fFamily),x=n?0:o.w*t.finalSize/100):x=h.measureText(i,t.f,t.finalSize)," "===D?I+=x+P:(g+=x+P+I,I=0),p.push({l:x,an:x,add:u,n:n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==c){if(u+=x,""===i||" "===i||e===r-1){for(""!==i&&" "!==i||(u-=x);d<=e;)p[d].an=u,p[d].ind=f,p[d].extra=x,d+=1;f+=1,u=0}}else if(3==c){if(u+=x,""===i||e===r-1){for(""===i&&(u-=x);d<=e;)p[d].an=u,p[d].ind=f,p[d].extra=x,d+=1;u=0,f+=1}}else p[f].ind=f,p[f].extra=0,f+=1;if(t.l=p,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var O,B,R=l.a;a=R.length;var V,L,N=[];for(s=0;s<a;s+=1){for((O=R[s]).a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),L=0,V=O.s.b,e=0;e<r;e+=1)(B=p[e]).anIndexes[s]=L,(1==V&&""!==B.val||2==V&&""!==B.val&&" "!==B.val||3==V&&(B.n||" "==B.val||e==r-1)||4==V&&(B.n||e==r-1))&&(1===O.s.rn&&N.push(L),L+=1);l.a[s].s.totalChars=L;var z,j=-1;if(1===O.s.rn)for(e=0;e<r;e+=1)j!=(B=p[e]).anIndexes[s]&&(j=B.anIndexes[s],z=N.splice(Math.floor(Math.random()*N.length),1)[0]),B.anIndexes[s]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,s=0,a=1,o=1;this.ne.v>0?i=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(i,s,a,o).get,l=0,p=this.finalS,f=this.finalE,c=this.data.sh;if(2===c)l=h(l=f===p?n>=f?1:0:t(0,e(.5/(f-p)+(n-p)/(f-p),1)));else if(3===c)l=h(l=f===p?n>=f?0:1:1-t(0,e(.5/(f-p)+(n-p)/(f-p),1)));else if(4===c)f===p?l=0:(l=t(0,e(.5/(f-p)+(n-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===c){if(f===p)l=0;else{var u=f-p,d=-u/2+(n=e(t(0,n+.5-p),f-p)),m=u/2;l=Math.sqrt(1-d*d/(m*m))}l=h(l)}else 6===c?(f===p?l=0:(n=e(t(0,n+.5-p),f-p),l=(1+Math.cos(Math.PI+2*Math.PI*n/(f-p)))/2),l=h(l)):(n>=r(p)&&(l=t(0,e(n-p<0?e(f,1)-(p-n):f-n,1))),l=h(l));return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,n=this.s.v/e+r,i=this.e.v/e+r;if(n>i){var s=n;n=i,i=s}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,r){return new n(t,e,r)}}}(),pool_factory=function(t,e,r,n){var i=0,s=t,a=createSizedArray(s);function o(){return i?a[i-=1]:e()}return{newElement:o,release:function(t){i===s&&(a=pooling.double(a),s*=2),r&&r(t),a[i]=t,i+=1}}},pooling={double:function(t){return t.concat(createSizedArray(t.length))}},point_pool=pool_factory(8,(function(){return createTypedArray("float32",2)})),shape_pool=(factory=pool_factory(4,(function(){return new ShapePath}),(function(t){var e,r=t._length;for(e=0;e<r;e+=1)point_pool.release(t.v[e]),point_pool.release(t.i[e]),point_pool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,r=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(r.setLength(n),r.c=t.c,e=0;e<n;e+=1)r.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 r},factory),factory,shapeCollection_pool=function(){var t={newShapeCollection:function(){var t;t=e?n[e-=1]:new ShapeCollection;return t},release:function(t){var i,s=t._length;for(i=0;i<s;i+=1)shape_pool.release(t.shapes[i]);t._length=0,e===r&&(n=pooling.double(n),r*=2);n[e]=t,e+=1}},e=0,r=4,n=createSizedArray(r);return t}
vendor: 2,450 bytes, line 9
9(),segments_length_pool=pool_factory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezier_length_pool.release(t.lengths[e]);t.lengths.length=0})),bezier_length_pool=pool_factory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}}));function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=e.title,this.svgElement.appendChild(n),r+=i}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 8,700 bytes, line 9
9w Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!e||!1!==e.hideOnTransparent,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var a,o,h,l,p,f,c,u=this.masksProperties,d=0,m=[],y=createElementID(),g="clipPath",v="clip-path";for(n=0;n<s;n++)if(("a"!==u[n].mode&&"n"!==u[n].mode||u[n].inv||100!==u[n].o.k||u[n].o.x)&&(g="mask",v="mask"),"s"!=u[n].mode&&"i"!=u[n].mode||0!==d?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),a=createNS("path"),"n"!=u[n].mode){var b;if(d+=1,a.setAttribute("fill","s"===u[n].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==u[n].x.k?(g="mask",v="mask",c=PropertyFactory.getProp(this.element,u[n].x,0,null,this.element),b=createElementID(),(p=createNS("filter")).setAttribute("id",b),(f=createNS("feMorphology")).setAttribute("operator","erode"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),p.appendChild(f),i.appendChild(p),a.setAttribute("stroke","s"===u[n].mode?"#000000":"#ffffff")):(f=null,c=null),this.storedData[n]={elem:a,x:c,expan:f,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"==u[n].mode){h=m.length;var x=createNS("g");for(o=0;o<h;o+=1)x.appendChild(m[o]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",y+"_"+d),E.appendChild(a),i.appendChild(E),x.setAttribute("mask","url("+locationHref+"#"+y+"_"+d+")"),m.length=0,m.push(x)}else m.push(a);u[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,u[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(u[n],this.viewData[n].prop.v,this.viewData[n])}else this.viewData[n]={op:PropertyFactory.getProp(this.element,u[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[n],3),elem:a,lastPath:""},i.appendChild(a);for(this.maskElement=createNS(g),s=m.length,n=0;n<s;n+=1)this.maskElement.appendChild(m[n]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+locationHref+"#"+y+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var n=0,i=t.length;n<i;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}BaseRenderer.prototype.checkLayers=function(t){var e,r,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e--)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.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)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,r,n=t.length,i=this.layers.length;for(e=0;e<n;e+=1)for(r=0;r<i;){if(this.layers[r].id==t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var n=this.elements,i=this.layers,s=0,a=i.length;s<a;)i[s].ind==e&&(n[s]&&!0!==n[s]?(r.push(n[s]),n[s].setAsParent(),void 0!==i[s].parent?this.buildElementParenting(t,i[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.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.svgElement.style.transform="translate3d(0,
90,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+i+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.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},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);e[t]=r,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?r.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(r)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.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,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var n,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRenderer.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRenderer.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRenderer.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore(
9)},CanvasRenderer.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r,n=this.contextData.saved[this.contextData.cArrPos];for(r=0;r<16;r+=1)n[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],n=this.contextData.cTr.props;for(e=0;e<16;e+=1)n[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(t){this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var t,e,r,n;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i=this.renderConfig.preserveAspectRatio.split(" "),s=i[1]||"meet",a=i[0]||"xMidYMid",o=a.substr(0,4),h=a.substr(4);r=t/e,(n=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===s||n<r&&"slice"===s?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(n<r&&"meet"===s||n>r&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(n<r&&"meet"===s||n>r&&"slice"===s)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(n>r&&"meet"===s||n<r&&"slice"===s)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(n>r&&"meet"===s||n<r&&"slice"===s)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"==this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.t
vendor: 19,312 bytes, line 9
9y=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&(this.animationItem.wrapper.innerHTML=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<n;r++)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var i,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRenderer.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRenderer.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextElement(t,this.globalData,this)},HybridRenderer.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},HybridRenderer.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var r=createTag("div");styleDiv(r);var n=createTag("div");styleDiv(n),"3d"===e&&(r.style.width=this.globalData.compSize.w+"px",r.style.height=this.globalData.compSize.h+"px",r.style.transformOrigin=r.style.mozTransformOrigin=r.style.webkitTransformOrigin="50% 50%",n.style.transform=n.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),r.appendChild(n);var i={container:n,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(i),i},HybridRenderer.prototype.build3dContainers=function(){var t,e,r=this.layers.length,n="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==n&&(n="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==n&&(n="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var r=0,n=this.threeDElements.length;r<n;){if(e<=this.threeDElements[r].endPos){for(var i,s=this.threeDElements[r].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.threeDElements[r].container.insertBefore(t,i):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRenderer.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper;e.style.width=t.w+"px",e.style.height=t.h+"px",this.resizerElem=e,styleDiv(e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),e.style.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var i=createNS("defs");n.appendChild(i),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=i,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var t,e,r,n,i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=i/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=i/this.globalData.compSize.w,e=i/this.globalData.compSize.w,r=0,n=(s-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,n=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+n+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t<n;t+=1)this.threeDElements[t].perspectiveElem.style.perspective=this.threeDElements[t].perspectiveElem.style.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px"}},HybridRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length,n=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e++)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&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||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=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("+locationHref+"#"+this.storedData[e].filterId+")")),i.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))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.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,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var n,i,s=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,n=1;n<i;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&i>1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",a)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.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,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<n;r+=1)t=this.hierarchy[r].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 r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):r=!1;var i,s,a=e.length;for(i=0;i<a;i+=1)s=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),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(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].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}}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._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()}})],RenderableDOMElement),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)i=createNS("stop"),n.appendChild(i),o.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+r+")"),this.gf=n,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),h=createElementID();s.setAttribute("id",h);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",o),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(n=4*t.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),p.push(r);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+o+")"),this.of=l,this.ms=s,this.ost=p,this.maskId=h,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(r,n,i){var s,a,o,h,l,p,f,c,u,d,m,y=n.styles.length,g=n.lvl;for(p=0;p<y;p+=1){if(h=n.sh._mdf||i,n.styles[p].lvl<g){for(c=e.reset(),d=g-n.styles[p].lvl,m=n.transformers.length-1;!h&&d>0;)h=n.transformers[m].mProps._mdf||h,d--,m--;if(h)for(d=g-n.styles[p].lvl,m=n.transformers.length-1;d>0;)u=n.transformers[m].mProps.v.props,c.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]),d--,m--}else c=t;if(a=(f=n.sh.paths)._length,h){for(o="",s=0;s<a;s+=1)(l=f.shapes[s])&&l._length&&(o+=buildShapeString(l,l._length,l.c,c));n.caches[p]=o}else o=n.caches[p];n.styles[p].d+=!0===r.hd?"":o,n.styles[p]._mdf=h||n.styles[p]._mdf}}function i(t,e,r){var n=e.style;(e.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function s(t,e,r){a(t,e,r),o(t,e,r)}function a(t,e,r){var n,i,s,a,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,f=e.e.v;if(e.o._mdf||r){var c="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(c,e.o.v)}if(e.s._mdf||r){var u=1===t.t?"x1":"cx",d="x1"===u?"y1":"cy";h.setAttribute(u,p[0]),h.setAttribute(d,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(u,p[0]),e.of.setAttribute(d,p[1]))}if(e.g._cmdf||r){n=e.cst;var m=e.g.c;for(s=n.length,i=0;i<s;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(l&&(e.g._omdf||r)){var y=e.g.o;for(s=(n=e.g._collapsable?e.cst:e.ost).length,i=0;i<s;i+=1)a=n[i],e.g._collapsable||a.setAttribute("offset",y[2*i]+"%"),a.setAttribute("stop-opacity",y[2*i+1])}if(1===t.t)(e.e._mdf||r)&&(h.setAttribute("x2",f[0]),h.setAttribute("y2",f[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",f[0]),e.of.setAttribute("y2",f[1])));else if((e.s._mdf||e.e._mdf||r)&&(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||r){o||(o=Math.sqrt(Math.pow(p[0]-f[0],2)+Math.pow(p[1]-f[1],2)));var g=Math.atan2(f[1]-p[1],f[0]-p[0]),v=o*(e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v),b=Math.cos(g+e.a.v)*v+p[0],x=Math.sin(g+e.a.v)*v+p[1];h.setAttribute("fx",b),h.setAttribute("fy",x),l&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",x))}}function o(t,e,r){var n=e.style,i=e.d;
vendor: 6,283 bytes, line 9
9i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){t.ty;switch(t.ty){case"fl":return i;case"gf":return a;case"gs":return s;case"st":return o;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r}}}}();function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i=4;"rc"==e.ty?i=5:"el"==e.ty?i=6:"sr"==e.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,i,t);var s,a,o=r.length;for(s=0;s<o;s+=1)r[s].closed||(a={transforms:n.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(a),r[s].elements.push(a))}function BaseElement(){}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,r){this.initElement(t,e,r)}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");if(r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.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"),r.setAttribute("result","f1"),t.appendChild(r),(r=createNS("feColorMatrix")).setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result","f2"),t.appendChild(r),this.matrixFilter=r,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var n,i=createNS("feMerge");t.appendChild(i),(n=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),i.appendChild(n),(n=createNS("feMergeNode")).setAttribute("in","f2"),i.appendChild(n)}}function SVGFillFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(r),this.matrixFilter=r}function SVGGaussianBlurEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var r=createNS("feGaussianBlur");t.appendChild(r),this.feGaussianBlur=r}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.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"),r.setAttribute("result","f1"),t.appendChild(r);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),this.matrixFilter=n;var i=createNS("feFuncR");i.setAttribute("type","table"),n.appendChild(i),this.feFuncR=i;var s=createNS("feFuncG");s.setAttribute("type","table"),n.appendChild(s),this.feFuncG=s;var a=createNS("feFuncB");a.setAttribute("type","table"),n.appendChild(a),this.feFuncB=a}function SVGProLevelsFilter(t,e){this.filterManager=e;var r=this.filterManager.effectElements,n=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),n=createNS("feComponentTransfer")),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(t,e){var r=e.container.globalData.renderConfig.filterSize;t.setAttribute("x",r.x),t.setAttribute("y",r.y),t.setAttribute("width",r.width),t.setAttribute("height",r.height),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("in","SourceAlpha"),n.setAttribute("result","drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n);var i=createNS("feOffset");i.setAttribute("dx","25"),i.setAttribute("dy","0"),i.setAttribute("in","drop_shadow_1"),i.setAttribute("result","drop_shadow_2"),this.feOff
vendor: 4,818 bytes, line 9
9set=i,t.appendChild(i);var s=createNS("feFlood");s.setAttribute("flood-color","#00ff00"),s.setAttribute("flood-opacity","1"),s.setAttribute("result","drop_shadow_3"),this.feFlood=s,t.appendChild(s);var a=createNS("feComposite");a.setAttribute("in","drop_shadow_3"),a.setAttribute("in2","drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result","drop_shadow_4"),t.appendChild(a);var o,h=createNS("feMerge");t.appendChild(h),o=createNS("feMergeNode"),h.appendChild(o),(o=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=h,this.originalNodeAdded=!1,h.appendChild(o)}ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,n="_";for(e=0;e<r;e+=1)n+=t[e].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(t,e){for(var r,n=0,i=t.transforms.length,s=e;n<i&&!e;){if(t.transforms[n].transform.mProps._mdf){s=!0;break}n+=1}if(s)for(t.finalTransform.reset(),n=i-1;n>=0;n-=1)r=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=s},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return"_"+this.transform_key_count++}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.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},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)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,r,n=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),n=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),n=r,i.appendChild(r),r.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var s=createNS("mask");s.setAttribute("id",this.layerId),s.setAttribute("mask-type","alpha");var a=createNS("g");s.appendChild(a),t=createElementID(),e=filtersFactory.createFilter(t);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),e.appendChild(o);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),o.appendChild(h),this.globalData.defs.appendChild(e);var l=createNS("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("op
9acity","0"),a.setAttribute("filter","url("+locationHref+"#"+t+")"),a.appendChild(l),a.appendChild(this.layerElement),n=a,featureSupport.maskType||(s.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),a.appendChild(l),r.appendChild(this.layerElement),n=r,a.appendChild(r)),this.globalData.defs.appendChild(s)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),n=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 p=createNS("clipPath"),f=createNS("path");f.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=createElementID();if(p.setAttribute("id",c),p.appendChild(f),this.globalData.defs.appendChild(p),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+locationHref+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,n?n.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+c+")")}0!==this.data.bm&&this.setBlendMode()},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},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,n=e.length;r<n;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===t)return void(r[n].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.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,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,n,i=e.length,s="";for(r=0;r<i;r+=1)n=e[r].ks.k,s+=buildShapeString(n,n.i.length,!0,t);return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,n,i){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[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(n,i,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.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 r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.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()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,n=[],i="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(i),i=""):i+=t[e],e+=1;return n.push(i),n},SVGTextElement.prototype.buildNewText=function(){var t,e,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,o=r.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l,p=this.mHelper,f="",c=this.data.singleShape,u=0,d=0,m=!0,y=r.tr/1e3*r.finalSize;if(!c||h||r.sz){var g,v,b=this.textSpans.length;for(t=0;t<e;t+=1)h&&c&&0!==t||(a=b>t?this.textSpans[t]:createNS(h?"path":"text"),b<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),p.reset(),p.scale(r.finalSize/100,r.finalSize/100),c&&(o[t].n&&(u=-y,d+=r.yOffset,d+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(r,p,o[t].line,u,d),u+=o[t].l||0,u+=y),h?(l=(g=(v=this.globalData.fontManager.getCharData(r.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily))&&v.data||{}).shapes?g.shapes[0].it:[],c?f+=this.createPathShape(p,l):a.setAttribute("d",this.createPathShape(p,l))):(c&&a.setAttribute("transform","translate("+p.props[12]+","+p.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));c&&a&&a.setAttribute("d",f)}else{var x=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle"}x.setAttribute("text-anchor",E),x.setAttribute("letter-spacing",y);var S=this.buildTextContents(r.finalText);for(e=S.length,d=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t]||createNS("tspan")).textContent=S[t],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",x.appendChild(a),this.textSpans[t]=a,d+=r.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextElement.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();
vendor: 13,162 bytes, line 9
9this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,n,i=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n||(r=i[t],n=this.textSpans[t],r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,n,i=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(r=0;r<s;r+=1){for(n=this.stylesList[r],o=!1,a.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,n=new SVGStyleData(t,e),i=n.pElem;if("st"===t.ty)r=new SVGStrokeStyleData(this,t,n);else if("fl"===t.ty)r=new SVGFillStyleData(this,t,n);else if("gf"===t.ty||"gs"===t.ty){r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+locationHref+"#"+r.maskId+")"))}return"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),i.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var i=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.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,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,n,i,s,a){var o,h,l,p,f,c,u=[].concat(s),d=t.length-1,m=[],y=[];for(o=d;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=r[c-1]:t[o]._render=a,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],i),t[o]._render&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"==t[o].ty){if(c)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,i+1,u,a),t[o]._render&&n.appendChild(e[o].gr)}else"tr"==t[o].ty?(c||(e[o]=this.createTransformElement(t[o],n)),p=e[o].transform,u.push(p)):"sh"==t[o].ty||"rc"==t[o].ty||"el"==t[o].ty||"sr"==t[o].ty?(c||(e[o]=this.createShapeElement(t[o],u,i)),this.setElementStyles(e[o])):"tm"==t[o].ty||"rd"==t[o].ty||"ms"==t[o].ty?(c?(f=e[o]).closed=!1:((f=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=f,this.shapeModifiers.push(f)),y.push(f)):"rp"==t[o].ty&&(c?(f=e[o]).closed=!0:(f=ShapeModifiers.getModifier(t[o].ty),e[o]=f,f.init(this,t,o,e),this.shapeModifiers.push(f),a=!1),y.push(f));this.addProcessedElement(t[o],o+1)}for(d=m.length,o=0;o<d;o+=1)m[o].closed=!0;for(d=y.length,o=0;o<d;o+=1)y[o].closed=!0},SVGShapeElement.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(),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"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=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 "+r+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:e,i=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<n;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+locationHref+"#"+a+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=s,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(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,r,n,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.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||r.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,o=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,h=n.getTotalLength();s="0 0 0 "+h*a+" ";var l,p=h*(o-a),f=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,c=Math.floor(p/f);for(l=0;l<c;l+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";s+="0 "+10*h+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;n.setAttribute("stroke-dasharray",s)}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("+bm_floor(255*u[0])+","+bm_floor(255*u[1])+","+bm_floor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+e[0],s=n[1]+" "+r[1]+" "+e[1],a=n[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,n,i){for(var s,a,o=0,h=Math.min(t,e),l=Math.max(t,e),p=Array.call(null,{length:256}),f=0,c=i-n,u=e-t;o<=256;)a=(s=o/256)<=h?u<0?i:n:s>=l?u<0?n:i:n+c*Math.pow((s-t)/u,1/r),p[f++]=a,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.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",rgbToHex(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 r=this.filterManager.effectElements[3].p.v,
vendor: 4,833 bytes, line 9
9n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),s=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGEffects(t){var e,r,n=t.data.ef?t.data.ef.length:0,i=createElementID(),s=filtersFactory.createFilter(i),a=0;for(this.filters=[],e=0;e<n;e+=1)r=null,20===t.data.ef[e].ty?(a+=1,r=new SVGTintFilter(s,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(a+=1,r=new SVGFillFilter(s,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?r=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(a+=1,r=new SVGTritoneFilter(s,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(a+=1,r=new SVGProLevelsFilter(s,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(a+=1,r=new SVGDropShadowEffect(s,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?r=new SVGMatte3Effect(s,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(a+=1,r=new SVGGaussianBlurEffect(s,t.effectsManager.effectElements[e])),r&&this.filters.push(r);a&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+locationHref+"#"+i+")")),this.filters.length&&t.addRenderableComponent(this)}function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var t;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getImage(this.assetData),this.initElement(t,e,r)}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,n=this.masksProperties.length,i=!1;for(r=0;r<n;r++)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVEffects(){}function HBaseElement(t,e,r){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,s=t.ks.or.k.length;for(i=0;i<s;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=ne
vendor: 4,426 bytes, line 9
9w Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var n,i=r.children,s=0,a=i.length;s<a&&i[s]!==t.layerElement;)s+=1;s<=a-2&&(n=i[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),n?r.insertBefore(o,n):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(n);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),i.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,n=e.length;r<n;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,n=t.getContext("2d"),i=this.img.width,s=this.img.height,a=i/s,o=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===h||a<o&&"xMidYMid slice"!==h?e=(r=s)*o:r=(e=i)/o,n.drawImage(this.img,(i-e)/2,(s-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(t){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;
vendor: 6,324 bytes, line 9
9for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,n,i=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t<a;t++)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),n=this.viewData[t].v,e=i.applyToPointArray(n.v[0][0],n.v[0][1],0),s.moveTo(e[0],e[1]);var o,h=n._length;for(o=1;o<h;o++)r=i.applyToTriplePoints(n.o[o-1],n.i[o],n.v[o]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[o-1],n.i[0],n.v[0]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},n={};if("fl"==t.ty||"st"==t.ty?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(r.co="rgb("+bm_floor(n.c.v[0])+","+bm_floor(n.c.v[1])+","+bm_floor(n.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(r.lc=this.lcEnum[t.lc]||"round",r.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(r.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(r.wi=n.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(t){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.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,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,n,i){var s,a,o,h,l,p,f=t.length-1,c=[],u=[],d=[].concat(i);for(s=f;s>=0;s-=1){if((h=this.searchProcessedElement(t[s]))?e[s]=r[h-1]:t[s]._shouldRender=n,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)h?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),c.push(e[s].style);else if("gr"==t[s].ty){if(h)for(o=e[s].it.length,a=0;a<o;a+=1)e[s].prevViewData[a]=e[s].it[a];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,n,d)}else"tr"==t[s].ty?(h||(p=this.createTransformElement(t[s]),e[s]=p),d.push(e[s]),this.addTransformToStyleList(e[s])):"sh"==t[s].ty||"rc"==t[s].ty||"el"==t[s].ty||"sr"==t[s].ty?h||(e[s]=this.createShapeElement(t[s])):"tm"==t[s].ty||"rd"==t[s].ty?(h?(l=e[s]).closed=!1:((l=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=l,this.shapeModifiers.push(l)),u.push(l)):"rp"==t[s].ty&&(h?(l=e[s]).closed=!0:(l=ShapeModifiers.getModifier(t[s].ty),e[s]=l,l.init(this,t,s,e),this.shapeModifiers.push(l),n=!1),u.push(l));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),f=u.length,s=0;s<f;s+=1)u[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,n,i,s,a,o,h,l=this.stylesList.length,p=this.globalData.renderer,f=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(("st"!==(o=(h=this.stylesList[t]).type)&&"gs"!==o||0!==h.wi)&&h.data._shouldRender&&0!==h.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),s=h.elements,"st"===o||"gs"===o?(f.strokeStyle="st"===o?h.co:h.grd,f.lineWidth=h.wi,f.lineCap=h.lc,f.lineJoin=
vendor: 24,632 bytes, line 9
9h.lj,f.miterLimit=h.ml||0):f.fillStyle="fl"===o?h.co:h.grd,p.ctxOpacity(h.coOp),"st"!==o&&"gs"!==o&&f.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),r=s.length,e=0;e<r;e+=1){for("st"!==o&&"gs"!==o||(f.beginPath(),h.da&&(f.setLineDash(h.da),f.lineDashOffset=h.do)),i=(a=s[e].trNodes).length,n=0;n<i;n+=1)"m"==a[n].t?f.moveTo(a[n].p[0],a[n].p[1]):"c"==a[n].t?f.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):f.closePath();"st"!==o&&"gs"!==o||(f.stroke(),h.da&&f.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&f.fill(h.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,n){var i,s;for(s=t,i=e.length-1;i>=0;i-=1)"tr"==e[i].ty?(s=r[i].transform,this.renderShapeTransform(t,s)):"sh"==e[i].ty||"el"==e[i].ty||"rc"==e[i].ty||"sr"==e[i].ty?this.renderPath(e[i],r[i]):"fl"==e[i].ty?this.renderFill(e[i],r[i],s):"st"==e[i].ty?this.renderStroke(e[i],r[i],s):"gf"==e[i].ty||"gs"==e[i].ty?this.renderGradientFill(e[i],r[i],s):"gr"==e[i].ty?this.renderShape(s,e[i].it,r[i].it):e[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,n,i,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var h=t.transforms.finalTransform;for(i=0;i<o;i+=1){var l=a.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&s.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),s.push({t:"c",pts:h.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&s.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(s.push({t:"c",pts:h.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,n=e.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var i=this.globalData.canvasContext,s=e.s.v,a=e.e.v;if(1===t.t)c=i.createLinearGradient(s[0],s[1],a[0],a[1]);else var o=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)),h=Math.atan2(a[1]-s[1],a[0]-s[0]),l=o*(e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v),p=Math.cos(h+e.a.v)*l+s[0],f=Math.sin(h+e.a.v)*l+s[1],c=i.createRadialGradient(p,f,0,s[0],s[1],o);var u,d=t.g.p,m=e.g.c,y=1;for(u=0;u<d;u+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*u+1]),c.addColorStop(m[4*u]/100,"rgba("+m[4*u+1]+","+m[4*u+2]+","+m[4*u+3]+","+y+")");n.grd=c}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n,i,s=this.globalData.fontManager.getFontByName(t.f),a=t.l,o=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,i=t.finalText.length;var h,l,p,f,c,u,d,m,y,g,v=this.data.singleShape,b=t.tr/1e3*t.finalSize,x=0,E=0,S=!0,_=0;for(n=0;n<i;n+=1){for(l=(h=this.globalData.fontManager.getCharData(t.finalText[n],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&h.data||{},o.reset(),v&&a[n].n&&(x=-b,E+=t.yOffset,E+=S?1:0,S=!1),d=(c=l.shapes?l.shapes[0].it:[]).length,o.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,o,a[n].line,x,E),y=createSizedArray(d),u=0;u<d;u+=1){for(f=c[u].ks.k.i.length,m=c[u].ks.k,g=[],p=1;p<f;p+=1)1==p&&g.push(o.applyToX(m.v[0][0],m.v[0][1],0),o.applyToY(m.v[0][0],m.v[0][1],0)),g.push(o.applyToX(m.o[p-1][0],m.o[p-1][1],0),o.applyToY(m.o[p-1][0],m.o[p-1][1],0),o.applyToX(m.i[p][0],m.i[p][1],0),o.applyToY(m.i[p][0],m.i[p][1],0),o.applyToX(m.v[p][0],m.v[p][1],0),o.applyToY(m.v[p][0],m.v[p][1],0));g.push(o.applyToX(m.o[p-1][0],m.o[p-1][1],0),o.applyToY(m.o[p-1][0],m.o[p-1][1],0),o.applyToX(m.i[0][0],m.i[0][1],0),o.applyToY(m.i[0][0],m.i[0][1],0),o.applyToX(m.v[0][0],m.v[0][1],0),o.applyToY(m.v[0][0],m.v[0][1],0)),y[u]=g}v&&(x+=a[n].l,x+=b),this.textSpans[_]?this.textSpans[_].elem=y:this.textSpans[_]={elem:y},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,n,i,s,a=this.canvasContext;this.finalTransform.mat.props;a.font=this.values.fValue,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var p,f,c=null,u=null,d=null;for(t=0;t<e;t+=1)if(!l[t].n){if((o=h[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?c!==o.fc&&(c=o.fc,a.fillStyle=o.fc):c!==this.values.fill&&(c=this.values.fill,a.fillStyle=this.values.fill),n=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(s=(f=p[r]).length,this.globalData.canvasContext.moveTo(f[0],f[1]),i=2;i<s;i+=6)this.globalData.canvasContext.bezierCurveTo(f[i],f[i+1],f[i+2],f[i+3],f[i+4],f[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,a.lineWidth=o.sw):d!==this.values.sWidth&&(d=this.values.sWidth,a.lineWidth=this.values.sWidth),o&&o.sc?u!==o.sc&&(u=o.sc,a.strokeStyle=o.sc):u!==this.values.stroke&&(u=this.values.stroke,a.strokeStyle=this.values.stroke),n=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(s=(f=p[r]).length,this.globalData.canvasContext.moveTo(f[0],f[1]),i=2;i<s;i+=6)this.globalData.canvasContext.bezierCurveTo(f[i],f[i+1],f[i+2],f[i+3],f[i+4],f[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&(this.transformedElement.style.transform=this.transformedElement.style.webkitTransform=this.finalTransform.mat.toCSS()),this.finalTransform._opMdf&&(this.transformedElement.style.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,n,i,s,a,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)n=this.getTransformedPoint(h,o.v[r]),i=this.getTransformedPoint(h,o.o[r]),s=this.getTransformedPoint(h,o.i[r+1]),a=this.getTransformedPoint(h,o.v[r+1]),this.checkBounds(n,i,s,a,e);o.c&&(n=this.getTransformedPoint(h,o.v[r]),i=this.getTransformedPoint(h,o.o[r]),s=this.getTransformedPoint(h,o.i[0]),a=this.getTransformedPoint(h,o.v[0]),this.checkBounds(n,i,s,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,n,i){this.getBoundsOfCurve(t,e,r,n);var s=this.shapeBoundingBox;i.x=bm_min(s.left,i.x),i.xMax=bm_max(s.right,i.xMax),i.y=bm_min(s.top,i.y),i.yMax=bm_max(s.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,n){for(var i,s,a,o,h,l,p,f=[[t[0],n[0]],[t[1],n[1]]],c=0;c<2;++c)if(s=6*t[c]-12*e[c]+6*r[c],i=-3*t[c]+9*e[c]-9*r[c]+3*n[c],a=3*e[c]-3*t[c],s|=0,a|=0,0!==(i|=0))(h=s*s-4*a*i)<0||(0<(l=(-s+bm_sqrt(h))/(2*i))&&l<1&&f[c].push(this.calculateF(l,t,e,r,n,c)),0<(p=(-s-bm_sqrt(h))/(2*i))&&p<1&&f[c].push(this.calculateF(p,t,e,r,n,c)));else{if(0===s)continue;0<(o=-a/s)&&o<1&&f[c].push(this.calculateF(o,t,e,r,n,c))}this.shapeBoundingBox.left=bm_min.apply(null,f[0]),this.shapeBoundingBox.top=bm_min.apply(null,f[1]),this.shapeBoundingBox.right=bm_max.apply(null,f[0]),this.shapeBoundingBox.bottom=bm_max.apply(null,f[1])},HShapeElement.prototype.calculateF=function(t,e,r,n,i,s){return bm_pow(1-t,3)*e[s]+3*bm_pow(1-t,2)*t*r[s]+3*(1-t)*bm_pow(t,2)*n[s]+bm_pow(t,3)*i[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it&&this.calculateBoundingBox(t[r].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),(r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y)&&(this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.shapeCont.style.transform=this.shapeCont.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style;e.color=e.fill=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)",t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r,n,i=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{e.fontFamily=i.fFamily;var s=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=s}var o,h,l,p=t.l;n=p.length;var f,c=this.mHelper,u="",d=0;for(r=0;r<n;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[d]?o=this.textPaths[d]:((o=createNS("path")).setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?l=(h=this.textSpans[d]).children[0]:((h=createTag("div")).style.lineHeight=0,(l=createNS("svg")).appendChild(o),styleDiv(h)))):this.isMasked?o=this.textPaths[d]?this.textPaths[d]:createNS("text"):this.textSpans[d]?(h=this.textSpans[d],o=this.textPaths[d]):(styleDiv(h=createTag("span")),styleDiv(o=createTag("span")),h.appendChild(o)),this.globalData.fontManager.chars){var m,y=this.globalData.fontManager.getCharData(t.finalText[r],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(m=y?y.data:null,c.reset(),m&&m.shapes&&(f=m.shapes[0].it,c.scale(t.finalSize/100,t.finalSize/100),u=this.createPathShape(c,f),o.setAttribute("d",u)),this.isMasked)this.innerElem.appendChild(o);else{if(this.innerElem.appendChild(h),m&&m.shapes){document.body.appendChild(l);var g=l.getBBox();l.setAttribute("width",g.width+2),l.setAttribute("height",g.height+2),l.setAttribute("viewBox",g.x-1+" "+(g.y-1)+" "+(g.width+2)+" "+(g.height+2)),l.style.transform=l.style.webkitTransform="translate("+(g.x-1)+"px,"+(g.y-1)+"px)",p[r].yOffset=g.y-1}else l.setAttribute("width",1),l.setAttribute("height",1);h.appendChild(l)}}else o.textContent=p[r].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(o):(this.innerElem.appendChild(h),o.style.transform=o.style.webkitTransform="translate3d(0,"+-t.finalSize/1.2+"px,0)");this.isMasked?this.textSpans[d]=o:this.textSpans[d]=h,this.textSpans[d].style.display="block",this.textPaths[d]=o,d+=1}for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},HTextElement.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var t,e,r,n,i,s=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n?s+=1:(n=this.textSpans[t],i=this.textPaths[t],r=a[s],s+=1,r._mdf.m&&(this.isMasked?n.setAttribute("transform",r.m):n.style.transform=n.style.webkitTransform=r.m),n.style.opacity=r.o,r.sw&&r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&i.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(i.setAttribute("fill",r.fc),i.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height));this.currentBBox.w===h.width+2&&this.currentBBox.h===h.height+2&&this.currentBBox.x===h.x-1&&this.currentBBox.y===h.y-1||(this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)"3d"===(e=this.comp.threeDElements[t]).type&&(e.perspectiveElem.style.perspective=e.perspectiveElem.style.webkitPerspective=this.pe.v+"px",e.container.style.transformOrigin=e.container.style.mozTransformOrigin=e.container.style.webkitTransformOrigin="0px 0px 0px",e.perspectiveElem.style.transform=e.perspectiveElem.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)")},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/s,i[1]/s,i[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),h=Math.atan2(a[1],o),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-h)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)"3d"===(f=this.comp.threeDElements[t]).type&&(p&&(f.container.style.transform=f.container.style.webkitTransform=this.mat.toCSS()),this.pe._mdf&&(f.perspectiveElem.style.perspective=f.perspectiveElem.style.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=function(){var t={},e=[],r=0,n=0,i=0,s=!0,a=!1;function o(t){for(var r=0,i=t.target;r<n;)e[r].animation===i&&(e.splice(r,1),r-=1,n-=1,i.isPaused||p()),r+=1}function h(t,r){if(!t)return null;for(var i=0;i<n;){if(e[i].elem==t&&null!==e[i].elem)return e[i].animation;i+=1}var s=new AnimationItem;return f(s,t),s.setData(t,r),s}function l(){i+=1,d()}function p(){i-=1}function f(t,r){t.addEventListener("destroy",o),t.addEventListener("_active",l),t.addEventListener("_idle",p),e.push({elem:r,animation:t}),n+=1}function c(t){var o,h=t-r;for(o=0;o<n;o+=1)e[o].animation.advanceTime(h);r=t,i&&!a?window.requestAnimationFrame(c):s=!0}function u(t){r=t,window.requestAnimationFrame(c)}function d(){!a&&i&&s&&(window.requestAnimationFrame(u),s=!1)}return t.registerAnimation=h,t.loadAnimation=function(t){var e=new AnimationItem;return f(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setSpeed(t,r)},t.setDirection=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=i.length;for(n=0;n<s;n+=1)r&&i[n].setAttribute("data-bm-type",r),h(i[n],t);
9if(e&&0===s){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerHTML="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),a.appendChild(o),h(o,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,i){var s;for(s=0;s<n;s+=1)e[s].animation.goToAndStop(t,r,i)},t.destroy=function(t){var r;for(r=n-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,d()},t.getRegisteredAnimations=function(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(e[t].animation);return n},t}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(e),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1: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,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.animationData?this.configAnimation(t.animationData):t.path&&(-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.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,e){var r={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},n=t.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";""===i||(r.loop="false"!==i&&("true"===i||parseInt(i)));
vendor: 8,593 bytes, line 9
9var s=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==s,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,n=this.animationData.layers,i=n.length,s=t.layers,a=s.length;for(r=0;r<a;r+=1)for(e=0;e<i;){if(n[e].id==s[r].id){n[e]=s[r];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(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,assetLoader.load(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.isLoaded||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,r){r&&this.name!=r||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,r){this.goToAndStop(t,e,r),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(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")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var r,n=t.length;for(r=0;r<n;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;
vendor: 5,254 bytes, line 9
9){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var Expressions=function(){var t={};return t.initExpressions=function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0===(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t}();expressionsPlugin=Expressions;var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=typeof t;if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,n=t.length,i=[];for(r=0;r<n;r+=1)i[r]=-t[r];return i}return t.propType?t.v:void 0}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=typeof t,n=typeof e;if("string"===r||"string"===n)return t+e;if(isNumerable(r,t)&&isNumerable(n,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]=t[0]+e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,s=t.length,a=e.length,o=[];i<s||i<a;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?o[i]=t[i]+e[i]:o[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return o}return 0}var add=sum;function sub(t,e){var r=typeof t,n=typeof e;if(isNumerable(r,t)&&isNumerable(n,e))return"string"===r&&(t=parseInt(t)),"string"===n&&(e=parseInt(e)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]=t[0]-e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,s=t.length,a=e.length,o=[];i<s||i<a;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?o[i]=t[i]-e[i]:o[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return o}return 0}function mul(t,e){var r,n,i,s=typeof t,a=typeof e;if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t*e[n];return r}return 0}function div(t,e){var r,n,i,s=typeof t,a=typeof e;if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t/e[n];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t)),"string"==typeof e&&(e=parseInt(e)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var n=r;r=e,e=n}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}
vendor: 10,123 bytes, line 9
9var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,n=Math.min(t.length,e.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(e[r]-t[r],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,n=t[0],i=t[1],s=t[2],a=Math.max(n,i,s),o=Math.min(n,i,s),h=(a+o)/2;if(a==o)e=r=0;else{var l=a-o;switch(r=h>.5?l/(2-a-o):l/(a+o),a){case n:e=(i-s)/l+(i<s?6:0);break;case i:e=(s-n)/l+2;break;case s:e=(n-i)/l+4}e/=6}return[e,r,h,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,n,i=t[0],s=t[1],a=t[2];if(0===s)e=r=n=a;else{var o=a<.5?a*(1+s):a+s-a*s,h=2*a-o;e=hue2rgb(h,o,i+1/3),r=hue2rgb(h,o,i),n=hue2rgb(h,o,i-1/3)}return[e,r,n,t[3]]}function linear(t,e,r,n,i){if(void 0!==n&&void 0!==i||(n=e,i=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return n;if(t>=r)return i;var a=r===e?0:(t-e)/(r-e);if(!n.length)return n+(i-n)*a;var o,h=n.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=n[o]+(i[o]-n[o])*a;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,n=e.length;t||(t=createTypedArray("float32",n));var i=createTypedArray("float32",n),s=BMMath.random();for(r=0;r<n;r+=1)i[r]=t[r]+s*(e[r]-t[r]);return i}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,n){var i,s=t.length,a=shape_pool.newElement();a.setPathData(!!n,s);var o,h,l=[0,0];for(i=0;i<s;i+=1)o=e&&e[i]?e[i]:l,h=r&&r[i]?r[i]:l,a.setTripleAt(t[i][0],t[i][1],h[0]+t[i][0],h[1]+t[i][1],o[0]+t[i][0],o[1]+t[i][1],i,!0);return a}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,__expression_functions=[],scoped_bm_rt;if(data.xf){var i,len=data.xf.length;for(i=0;i<len;i+=1)__expression_functions[i]=eval("(function(){ return "+data.xf[i]+"}())")}var expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,n,i=this.pv.length?this.pv.length:1,s=createTypedArray("float32",i);var a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)s[n]+=-e+2*e*BMMath.random();r+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+s[n]+(-e+2*e*BMMath.random())*h;return l}return this.pv+s[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(t,e,r,n,i){return applyEase(easeOutBez,t,e,r,n,i)}function easeIn(t,e,r,n,i){return applyEase(easeInBez,t,e,r,n,i)}function ease(t,e,r,n,i){return applyEase(easeInOutBez,t,e,r,n,i)}function applyEase(t,e,r,n,i,s){void 0===i?(i=r,s=n):e=(e-r)/(n-r);var a=t(e=e>1?1:e<0?0:e);if($bm_isInstanceOfArray(i)){var o,h=i.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=(s[o]-i[o])*a+i[o];return l}return(s-i)*a+i}function nearestKey(t){var e,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){r=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,n=data.k[e+1].t):(r=e+1,n=data.k[e].t);break}}-1===r&&(r=e+1,n=data.k[e].t)}else r=0,n=0;var s={};return s.index=r,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var i=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(n=i.length,r=0;r<n;r+=1)e[r]=i[r],e.value[r]=i[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,"shape"===scoped_bm_rt.propType&&(scoped_bm_rt=scoped_bm_rt.v),scoped_bm_rt)}return executeExpression}return ob.initiateExpression=initiateExpression,ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),n=0;if(e.length){var i;for(i=0;i<e.length;i+=1)n+=Math.pow(r[i]-e[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,n=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(n.length)for(e=createTypedArray("float32",n.length),r=0;r<n.length;r+=1)e[r]=(i[r]-n[r])/-.001;else e=(i-n)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};!function(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,i,s,a,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(r?i=p-(n=e?Math.abs(p-elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),n=p-(i=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-i)/n)%2!=0)return this.getValueAtTime((n-(h-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((h-i)%n+i)/this.comp.globalData.frameRate,0),d=Math.floor((h-i)/n);if(this.pv.length){for(a=(o=new Array(f.length)).length,s=0;s<a;s+=1)o[s]=(c[s]-f[s])*d+u[s];return o}return(c-f)*d+u}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-y[s])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return m+(h-p)/.001*(m-y)}}return this.getValueAtTime(((h-i)%n+i)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,i,s,a,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(r?i=p+(n=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>l.length-1)&&(e=l.length-1),n=(i=l[e].t)-p),"pingpong"===t){if(Math.floor((p-h)/n)%2==0)return this.getValueAtTime(((p-h)%n+p)
vendor: 5,340 bytes, line 9
9/this.comp.globalData.frameRate,0)}else{if("offset"===t){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(i/this.comp.globalData.frameRate,0),u=this.getValueAtTime((n-(p-h)%n+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/n)+1;if(this.pv.length){for(a=(o=new Array(f.length)).length,s=0;s<a;s+=1)o[s]=u[s]-(c[s]-f[s])*d;return o}return u-(c-f)*d}if("continue"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-y[s])*(p-h)/.001;return o}return m+(m-y)*(p-h)/.001}}return this.getValueAtTime((n-(p-h)%n+p)/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,s=i-t,a=e>1?(i+t-s)/(e-1):1,o=0,h=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(n=this.getValueAtTime(s+o*a),this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]+=n[h];else r+=n;o+=1}if(this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]/=e;else r/=e;return r}function n(t){console.warn("Transform at time not supported")}function i(t){}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var a=s(t,e,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,s,o,h){var l=a(n,i,s,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var p=0;return 0!==s&&(p=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(n,i,l),l.k&&h.addDynamicProperty(l),l};var o=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(t,e){this.k&&this.getValue();var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var n,i=r._length,s=r[t],a=r.v,o=createSizedArray(i);for(n=0;n<i;n+=1)o[n]="i"===t||"o"===t?[s[n][0]-a[n][0],s[n][1]-a[n][1]]:[s[n][0],s[n][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,s=i.lengths,a=i.totalLength*t,o=0,h=s.length,l=0;o<h;){if(l+s[o].addedLength>a){var p=o,f=r.c&&o===h-1?0:o+1,c=(a-l)/s[o].addedLength;n=bez.getPointInSegment(r.v[p],r.v[f],r.o[p],r.i[f],c,s[o]);break}l+=s[o].addedLength,o+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(t,e,r){t=1==t?this.v.c?0:.999:t;var n=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),s=i[0]-n[0],a=i[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===r?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],o),extendPrototype([l],h),h.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},h.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,n,i){var s=p(t,e,r,n,i);return s.propertyIndex=e.ix,s.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,s):4===r&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}(),TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var n={};return this.copyData(n,t),n.t=r.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0};var ShapeExpressionInterface=function(){function t(t,f,c){var u,d=[],m=t?t.length:0;for(u=0;
9u<m;u+=1)"gr"==t[u].ty?d.push(e(t[u],f[u],c)):"fl"==t[u].ty?d.push(r(t[u],f[u],c)):"st"==t[u].ty?d.push(n(t[u],f[u],c)):"tm"==t[u].ty?d.push(i(t[u],f[u],c)):"tr"==t[u].ty||("el"==t[u].ty?d.push(s(t[u],f[u],c)):"sr"==t[u].ty?d.push(a(t[u],f[u],c)):"sh"==t[u].ty?d.push(p(t[u],f[u],c)):"rc"==t[u].ty?d.push(o(t[u],f[u],c)):"rd"==t[u].ty?d.push(h(t[u],f[u],c)):"rp"==t[u].ty&&d.push(l(t[u],f[u],c)));return d}function e(e,r,n){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=function(t){return 1===t?i:n(t-1)};var s=function(e,r,n){var i,s=function(t){for(var e=0,r=i.length;e<r;){if(i[e]._name===t||i[e].mn===t||i[e].propertyIndex===t||i[e].ix===t||i[e].ind===t)return i[e];e+=1}if("number"==typeof t)return i[t-1]};return s.propertyGroup=function(t){return 1===t?s:n(t-1)},i=t(e.it,r.it,s.propertyGroup),s.numProperties=i.length,s.propertyIndex=e.cix,s._name=e.nm,s}(e,r,i.propertyGroup),a=function(t,e,r){function n(t){return 1==t?i:r(--t)}e.transform.mProps.o.setGroupProperty(n),e.transform.mProps.p.setGroupProperty(n),e.transform.mProps.a.setGroupProperty(n),e.transform.mProps.s.setGroupProperty(n),e.transform.mProps.r.setGroupProperty(n),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(n),e.transform.mProps.sa.setGroupProperty(n));function i(e){return t.a.ix===e||"Anchor Point"===e?i.anchorPoint:t.o.ix===e||"Opacity"===e?i.opacity:t.p.ix===e||"Position"===e?i.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?i.rotation:t.s.ix===e||"Scale"===e?i.scale:t.sk&&t.sk.ix===e||"Skew"===e?i.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?i.skewAxis:void 0}return e.transform.op.setGroupProperty(n),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),i.ty="tr",i.mn=t.mn,i.propertyGroup=r,i}(e.it[e.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=s,i.transform=a,Object.defineProperty(i,"_name",{get:function(){return e.nm}}),i.numProperties=e.np,i.propertyIndex=e.ix,i.nm=e.nm,i.mn=e.mn,i}function r(t,e,r){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:void 0}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(r),e.o.setGroupProperty(r),n}function n(t,e,r){function n(t){return 1===t?ob:r(t-1)}function i(t){return 1===t?h:n(t-1)}function s(r){Object.defineProperty(h,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var a,o=t.d?t.d.length:0,h={};for(a=0;a<o;a+=1)s(a),e.d.dataProps[a].p.setGroupProperty(i);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:void 0}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(n),e.o.setGroupProperty(n),e.w.setGroupProperty(n),l}function i(t,e,r){function n(t){return 1==t?i:r(--t)}function i(e){return e===t.e.ix||"End"===e||"end"===e?i.end:e===t.s.ix?i.start:e===t.o.ix?i.offset:void 0}return i.propertyIndex=t.ix,e.s.setGroupProperty(n),e.e.setGroupProperty(n),e.o.setGroupProperty(n),i.propertyIndex=t.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),i.mn=t.mn,i}function s(t,e,r){function n(t){return 1==t?s:r(--t)}s.propertyIndex=t.ix;var i="tm"===e.sh.ty?e.sh.prop:e.sh;function s(e){return t.p.ix===e?s.position:t.s.ix===e?s.size:void 0}
9return i.s.setGroupProperty(n),i.p.setGroupProperty(n),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:t.nm}}),s.mn=t.mn,s}function a(t,e,r){function n(t){return 1==t?s:r(--t)}var i="tm"===e.sh.ty?e.sh.prop:e.sh;function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.rotation:t.pt.ix===e?s.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?s.outerRadius:t.os.ix===e?s.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?s.innerRoundness:void 0:s.innerRadius}return s.propertyIndex=t.ix,i.or.setGroupProperty(n),i.os.setGroupProperty(n),i.pt.setGroupProperty(n),i.p.setGroupProperty(n),i.r.setGroupProperty(n),t.ir&&(i.ir.setGroupProperty(n),i.is.setGroupProperty(n)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:t.nm}}),s.mn=t.mn,s}function o(t,e,r){function n(t){return 1==t?s:r(--t)}var i="tm"===e.sh.ty?e.sh.prop:e.sh;function s(e){return t.p.ix===e?s.position:t.r.ix===e?s.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?s.size:void 0}return s.propertyIndex=t.ix,i.p.setGroupProperty(n),i.s.setGroupProperty(n),i.r.setGroupProperty(n),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:t.nm}}),s.mn=t.mn,s}function h(t,e,r){var n=e;function i(e){if(t.r.ix===e||"Round Corners 1"===e)return i.radius}return i.propertyIndex=t.ix,n.rd.setGroupProperty((function(t){return 1==t?i:r(--t)})),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:t.nm}}),i.mn=t.mn,i}function l(t,e,r){function n(t){return 1==t?s:r(--t)}var i=e;function s(e){return t.c.ix===e||"Copies"===e?s.copies:t.o.ix===e||"Offset"===e?s.offset:void 0}return s.propertyIndex=t.ix,i.c.setGroupProperty(n),i.o.setGroupProperty(n),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:t.nm}}),s.mn=t.mn,s}function p(t,e,r){var n=e.sh;function i(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return i.path}return n.setGroupProperty((function(t){return 1==t?i:r(--t)})),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn}}),i}return function(e,r,n){var i;function s(t){if("number"==typeof t)return i[t-1];for(var e=0,r=i.length;e<r;){if(i[e]._name===t)return i[e];e+=1}}return s.propertyGroup=n,i=t(e,r,s),s.numProperties=i.length,s}}(),TextExpressionInterface=function(t){var e;function r(){}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var r=t.textProperty.currentData.t;return void 0!==r&&(t.textProperty.currentData.t=void 0,(e=new String(r)).value=r||new String(r)),e}}),r},LayerExpressionInterface=function(){function t(t,e){var r=new Matrix;if(r.reset(),this._elem.finalTransform.mProp.applyToMatrix(r),this._elem.hierarchy&&this._elem.hierarchy.length){var n,i=this._elem.hierarchy.length;for(n=0;n<i;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(r);return r.applyToPointArray(t[0],t[1],t[2]||0)}return r.applyToPointArray(t[0],t[1],t[2]||0)}function e(t,e){var r=new Matrix;if(r.reset(),this._elem.finalTransform.mProp.applyToMatrix(r),this._elem.hierarchy&&this._elem.hierarchy.length){var n,i=this._elem.hierarchy.length;for(n=0;n<i;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(r);return r.inversePoint(t)}return r.inversePoint(t)}function r(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function n(){return[1,1,1,1]}return function(i){var s;function a(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return a.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return s;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return a.effect}}a.toWorld=t,a.fromWorld=e,a.toComp=t,a.fromComp=r,a.sampleImage=n,a.sourceRectAtTime=i.sourceRectAtTime.bind(i),a._elem=i;var o=getDescriptor(s=TransformExpressionInterface(i.finalTransform.mProp),"anchorPoint");return Object.defineProperties(a,{hasParent:{get:function(){return i.hierarchy.length}},parent:{get:function(){return i.hierarchy[0].layerInterface}},rotation:getDescriptor(s,"rotation"),scale:getDescriptor(s,"scale"),position:getDescriptor(s,"position"),opacity:getDescriptor(s,"opacity"),anchorPoint:o,anchor_point:o,transform:{get:function(){return s}},active:{get:function(){return i.isInRange}}}),a.startTime=i.data.st,a.index=i.data.ind,a.source=i.data.refId,a.height=0===i.data.ty?i.data.h:100,a.width=0===i.data.ty?i.data.w:100,a.inPoint=i.data.ip/i.comp.globalData.frameRate,a.outPoint=i.data.op/i.comp.globalData.frameRate,a._name=i.data.nm,a.registerMaskInterface=function(t){a.mask=new MaskManagerInterface(t,i)},a.registerEffectsInterface=function(t){a.effect=t},a}}(),CompExpressionInterface=function(t){function e(e){for(var r=0,n=t.layers.length;r<n;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}if(Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}
vendor: 9,164 bytes, line 9
9),t.p)var r=ExpressionPropertyInterface(t.p);return Object.defineProperty(e,"position",{get:function(){return t.p?r():[t.px.v,t.py.v,t.pz?t.pz.v:0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),EffectsExpressionInterface=function(){function t(r,n,i,s){var a,o=[],h=r.ef.length;for(a=0;a<h;a+=1)5===r.ef[a].ty?o.push(t(r.ef[a],n.effectElements[a],n.effectElements[a].propertyGroup,s)):o.push(e(n.effectElements[a],r.ef[a].ty,s,l));function l(t){return 1===t?p:i(t-1)}var p=function(t){for(var e=r.ef,n=0,i=e.length;n<i;){if(t===e[n].nm||t===e[n].mn||t===e[n].ix)return 5===e[n].ty?o[n]:o[n]();n+=1}return o[0]()};return p.propertyGroup=l,"ADBE Color Control"===r.mn&&Object.defineProperty(p,"color",{get:function(){return o[0]()}}),Object.defineProperty(p,"numProperties",{get:function(){return r.np}}),p.active=p.enabled=0!==r.en,p}function e(t,e,r,n){var i=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(n),function(){return 10===e?r.comp.compInterface(t.p.v):i()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var n,i=[],s=e.data.ef,a=e.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(t(s[n],e.effectsManager.effectElements[n],r,e));return function(t){for(var r=e.data.ef||[],n=0,s=r.length;n<s;){if(t===r[n].nm||t===r[n].mn||t===r[n].ix)return i[n];n+=1}}}}}}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e,r){var n,i=createSizedArray(e.viewData.length),s=e.viewData.length;for(n=0;n<s;n+=1)i[n]=new t(e.viewData[n],e.masksProperties[n]);return function(t){for(n=0;n<s;){if(e.masksProperties[n].nm===t)return i[n];n+=1}}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(t.numKeys){var i="";i="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var s="unidimensional"===r?new Number(i):Object.assign({},i);return s.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,s}return 0},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(i){return i?"unidimensional"===i.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.pv*n,s=new Number(i);return s.value=i,r(s,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*n,s.value!==i&&((s=new Number(i)).value=i,r(s,e,"unidimensional")),s}}(i):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv.length,s=createTypedArray("float32",i),a=createTypedArray("float32",i);return s.value=a,r(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<i;e+=1)s[e]=a[e]=t.v[e]*n;return s}}(i):n}}(),TextExpressionSelectorProp,propertyGetTextProp;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(){}function EffectsManager(t,e){var r=t.ef||[];this.effectElements=[];var n,i,s=r.length;for(n=0;n<s;n++)i=new GroupEffect(r[n],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}TextExpressionSelectorProp=function(){function t(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}return function(e,r){this.pv=1,this.comp=e.comp,this.elem=e,this.mult=.01,this.propType="textSelector",this.textTotal=r.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(e,r,this),this.getMult=t,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),propertyGetTextProp=TextSelectorProp.getTextSelectorProp,TextSelectorProp.getTextSelectorProp=function(t,e,r){return 1===e.t?new TextExpressionSelectorProp(t,e,r):propertyGetTextProp(t,e,r)},extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,n,i=this.data.ef.length,s=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,s[r].ty){case 0:n=new SliderEffect(s[r],e,this);break;case 1:n=new AngleEffect(s[r],e,this);break;case 2:n=new ColorEffect(s[r],e,this);break;case 3:n=new PointEffect(s[r],e,this);break;case 4:case 7:n=new CheckboxEffect(s[r],e,this);break;case 10:n=new LayerIndexEffect(s[r],e,this);break;case 11:n=new MaskIndexEffect(s[r],e,this);break;case 5:n=new EffectsManager(s[r],e,this);break;default:n=new NoValueEffect(s[r],e,this)}n&&this.effectElements.push(n)}};var lottie={},_isFrozen=!1;function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r++){var n=e[r].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocationHref,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.__getFactory=getFactory,lottie.version="5.6.10";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,"");renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottie}))},function(t,e,r){"use strict";
9Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({}),t.exports=e.default},function(t,e){t.exports=window.ReactDOM},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={overlay:function(t){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:t?1:0,MozTransform:t?"":"translate3d(100%, 0, 0)",MsTransform:t?"":"translate3d(100%, 0, 0)",OTransform:t?"":"translate3d(100%, 0, 0)",WebkitTransform:t?"":"translate3d(100%, 0, 0)",transform:t?"":"translate3d(100%, 0, 0)",transition:t?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(t,e,r){return{position:"fixed",right:r?0:"inherit",zIndex:1100,width:e,height:"100%",MozTransform:t?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:t?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:t?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:t?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:t?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function s(t){return t&&t.__esModule?t:{default:t}}var a=r(1),o=s(a),h=s(r(0)),l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){for(var n=!0;n;){var i=t,s=e,a=r;n=!1,null===i&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,s);if(void 0!==o){if("value"in o)return o.value;var h=o.get;if(void 0===h)return;return h.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;t=l,e=s,r=a,n=!0,o=l=void 0}}(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.state={hover:!1}}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"getLineStyle",value:function(t){return n({position:"absolute",height:"20%",left:0,right:0,top:2*t*20+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var t=this,e=void 0;if(this.props.customIcon){var r={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmIcon)};e=o.default.cloneElement(this.props.customIcon,r)}else e=o.default.createElement("span",null,[0,1,2].map((function(e){return o.default.createElement("span",{key:e,className:("bm-burger-bars "+t.props.barClassName+" "+(t.state.hover?"bm-burger-bars-hover":"")).trim(),style:n({},t.getLineStyle(e),t.props.styles.bmBurgerBars)})})));return o.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:n({zIndex:1e3},this.props.styles.bmBurgerButton)},o.default.createElement("button",{id:"react-burger-menu-btn",onClick:this.props.onClick,onMouseOver:function(){t.setState({hover:!0}),t.props.onIconHoverChange&&t.props.onIconHoverChange({isMouseIn:!0})},onMouseOut:function(){t.setState({hover:!1}),t.props.onIconHoverChange&&t.props.onIconHoverChange({isMouseIn:!1})},style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",curs
9or:"pointer"}},"Open Menu"),e)}}]),e}(a.Component);e.default=l,l.propTypes={barClassName:h.default.string,customIcon:h.default.element,styles:h.default.object},l.defaultProps={barClassName:"",className:"",styles:{}},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=function(t,e,r){for(var n=!0;n;){var i=t,s=e,a=r;n=!1,null===i&&(i=Function.prototype);var o=Object.getOwnPropertyDescriptor(i,s);if(void 0!==o){if("value"in o)return o.value;var h=o.get;if(void 0===h)return;return h.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return;t=l,e=s,r=a,n=!0,o=l=void 0}};function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=r(1),l=a(h),p=a(r(0)),f=function(t){function e(){o(this,e),s(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"getCrossStyle",value:function(t){return{position:"absolute",width:3,height:14,transform:"before"===t?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var t,e=this;if(this.props.customIcon){var r={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmCross)};t=l.default.cloneElement(this.props.customIcon,r)}else t=l.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map((function(t,r){return l.default.createElement("span",{key:r,className:("bm-cross "+e.props.crossClassName).trim(),style:n({},e.getCrossStyle(t),e.props.styles.bmCross)})})));return l.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:n({},{position:"absolute",width:24,height:24,right:8,top:8},this.props.styles.bmCrossButton)},l.default.createElement("button",{id:"react-burger-cross-btn",onClick:this.props.onClick,style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"},tabIndex:-1},"Close Menu"),t)}}]),e}(h.Component);e.default=f,f.propTypes={crossClassName:p.default.string,customIcon:p.default.element,styles:p.default.object},f.defaultProps={crossClassName:"",className:"",styles:{}},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({menuWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)",MsTransform:t?"":r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)",OTransform:t?"":r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)",WebkitTransform:t?"":r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)",transform:t?"":r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)",transition:t?"transform 0.8s cubic-bezier(0.7, 0, 0.3, 1)":"transform 0.4s cubic-bezier(0.7, 0, 0.3, 1)"}},item:function(t,e,r,n){return{MozTransform:t?"":"translate3d(0, "+500*n+"px, 0)",MsTransform:t?"":"translate3d(0, "+500*n+"px, 0)",OTransform:t?"":"translate3d(0, "+500*n+"px, 0)",WebkitTransform:t?"":"translate3d(0, "+500*n+"px, 0)",transform:t?"":"translate3d(0, "+500*n+"px, 0)",transition:t?"transform 0.8s cubic-bezier(0.7, 0, 0.3, 1)":"transform 0s 0.2s cubic-bezier(0.7, 0, 0.3, 1)"}}}),t.exports=e.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}
9Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(45)),s=n(r(3)),a=r(46),o={svg:{lib:i.default,pathInitial:"M-1,0h101c0,0-97.833,153.603-97.833,396.167C2.167,627.579,100,800,100,800H-1V0z",pathOpen:"M-1,0h101c0,0,0-1,0,395c0,404,0,405,0,405H-1V0z",animate:function(t){t.animate({path:this.pathOpen},400,window.mina.easeinout)}},morphShape:function(t,e,r){return{position:"absolute",width:120,height:"100%",right:r?"inherit":0,left:r?0:"inherit",MozTransform:r?"rotateY(180deg)":"",MsTransform:r?"rotateY(180deg)":"",OTransform:r?"rotateY(180deg)":"",WebkitTransform:r?"rotateY(180deg)":"",transform:r?"rotateY(180deg)":""}},menuWrap:function(t,e,r){return{MozTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.3s"}},menu:function(t,e,r){return{position:"fixed",right:r?0:"inherit",width:(0,a.pxToNum)(e)-120,whiteSpace:"nowrap",boxSizing:"border-box",overflow:"visible"}},itemList:function(t,e,r){if(r)return{position:"relative",left:"-110px",width:"170%",overflow:"auto"}},pageWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",MsTransform:t?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",OTransform:t?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",WebkitTransform:t?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",transform:t?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",transition:t?"all 0.3s":"all 0.3s 0.1s"}},outerContainer:function(t){return{overflow:t?"":"hidden"}}};e.default=(0,s.default)(o),t.exports=e.default},function(t,e,r){window.eve=r(107);var n=function(t){var e,r={},n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16,(new Date).getTime()),!0},i=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},s=0,a="M"+(+new Date).toString(36),o=Date.now||function(){return+new Date},h=function(t){var e=this;if(null==t)return e.s;var r=e.s-t;e.b+=e.dur*r,e.B+=e.dur*r,e.s=t},l=function(t){if(null==t)return this.spd;this.spd=t},p=function(t){var e=this;if(null==t)return e.dur;e.s=e.s*t/e.dur,e.dur=t},f=function(){var e=this;delete r[e.id],e.update(),t("mina.stop."+e.id,e)},c=function(){var t=this;t.pdif||(delete r[t.id],t.update(),t.pdif=t.get()-t.b)},u=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,r[t.id]=t,m())},d=function(){var t,e=this;if(i(e.start)){t=[];for(var r=0,n=e.start.length;r<n;r++)t[r]=+e.start[r]+(e.end[r]-e.start[r])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},m=function(i){if(i){var s=0;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a],h=o.get();s++,o.s=(h-o.b)/(o.dur/o.spd),o.s>=1&&(delete r[a],o.s=1,s--,function(e){setTimeout((function(){t("mina.finish."+e.id,e)}))}(o)),o.update()}e=!!s&&n(m)}else e||(e=n(m))},y=function(t,e,n,i,o,g,v){var b={id:a+(s++).toString(36),start:t,end:e,b:n,s:0,dur:i-n,spd:1,get:o,set:g,easing:v||y.linear,status:h,speed:l,duration:p,stop:f,pause:c,resume:u,update:d};r[b.id]=b;var x,E=0;for(x in r)if(r.hasOwnProperty(x)&&2==++E)break;return 1==E&&m(),b};return y.time=o,y.getById=function(t){return r[t]||null},y.linear=function(t){return t},y.easeout=function(t){return Math.pow(t,1.7)},y.easein=function(t){return Math.pow(t,.48)},y.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,r=Math.sqrt(.1734+e*e),n=r-e,i=-r-e,s=Math.pow(Math.abs(n),1/3)*(n<0?-1:1)+Math.pow(Math.abs(i),1/3)*(i<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},y.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},y.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},y.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},y.bounce=function(t){var e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375},window.mina=y,y}("undefined"==typeof eve?function(){}
vendor: 7,678 bytes, line 9
9:eve),i=function(t){function e(t,n){if(t){if(t.nodeType)return Y(t);if(A(t,"array")&&e.set)return e.set.apply(e,t);if(t instanceof G)return t;if(null==n)try{return Y(t=r.doc.querySelector(String(t)))}catch(t){return null}}return new W(t=null==t?"100%":t,n=null==n?"100%":n)}e.version="0.5.1",e.toString=function(){return"Snap v"+this.version},e._={};var r={win:t.window,doc:t.window.document};e._.glob=r;var n,i,s="hasOwnProperty",a=String,o=parseFloat,h=parseInt,l=Math,p=l.max,f=l.min,c=l.abs,u=(l.pow,l.PI),d=(l.round,Object.prototype.toString),m=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,y=(e._.separator=/[,\s]+/,/[\s]*,[\s]*/),v={hs:1,rg:1},b=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,x=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,E=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,S=0,_="S"+(+new Date).toString(36),C=function(t){return(t&&t.type?t.type:"")+_+(S++).toString(36)},P="http://www.w3.org/1999/xlink",w="http://www.w3.org/2000/svg",T={};e.url=function(t){return"url('#"+t+"')"};function k(t,e){if(e){if("#text"==t&&(t=r.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=r.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=k(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(P,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(w,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[s](n)){var i=a(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(P,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(w,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=r.doc.createElementNS(w,t);return t}function A(t,e){return"finite"==(e=a.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||d.call(t).slice(8,-1).toLowerCase()==e)}function M(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return t.push(t.splice(r,1)[0])}function F(t,e,r){return function n(){var i=Array.prototype.slice.call(arguments,0),a=i.join("␀"),o=n.cache=n.cache||{},h=n.count=n.count||[];return o[s](a)?(M(h,a),r?r(o[a]):o[a]):(h.length>=1e3&&delete o[h.shift()],h.push(a),o[a]=t.apply(e,i),r?r(o[a]):o[a])}}function D(t){return t%360*u/180}e._.$=k,e._.id=C,e.format=(n=/\{([^\}]+)\}/g,i=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,e){return a(t).replace(n,(function(t,r){return function(t,e,r){var n=r;return e.replace(i,(function(t,e,r,i,s){e=e||i,n&&(e in n&&(n=n[e]),"function"==typeof n&&s&&(n=n()))})),n=(null==n||n==r?t:n)+""}(t,r,e)}))}),e._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var r=new e.constructor;for(var n in e)e[s](n)&&(r[n]=t(e[n]));return r},e._.cacher=F,e.rad=D,e.deg=function(t){return 180*t/u%360},e.sin=function(t){return l.sin(e.rad(t))},e.tan=function(t){return l.tan(e.rad(t))},e.cos=function(t){return l.cos(e.rad(t))},e.asin=function(t){return e.deg(l.asin(t))},e.acos=function(t){return e.deg(l.acos(t))},e.atan=function(t){return e.deg(l.atan(t))},e.atan2=function(t){return e.deg(l.atan2(t))},e.angle=function t(e,r,n,i,s,a){if(null==s){var o=e-n,h=r-i;return o||h?(180+180*l.atan2(-h,-o)/u+360)%360:0}return t(e,r,s,a)-t(n,i,s,a)},e.len=function(t,r,n,i){return Math.sqrt(e.len2(t,r,n,i))},e.len2=function(t,e,r,n){return(t-r)*(t-r)+(e-n)*(e-n)},e.closestPoint=function(t,e,r){function n(t){var n=t.x-e,i=t.y-r;return n*n+i*i}for(var i,s,a,o,h=t.node,l=h.getTotalLength(),p=l/h.pathSegList.numberOfItems*.125,f=1/0,c=0;c<=l;c+=p)(o=n(a=h.getPointAtLength(c)))<f&&(i=a,s=c,f=o);for(p*=.5;p>.5;){var u,d,m,y,g,v;(m=s-p)>=0&&(g=n(u=h.getPointAtLength(m)))<f?(i=u,s=m,f=g):(y=s+p)<=l&&(v=n(d=h.getPointAtLength(y)))<f?(i=d,s=y,f=v):p*=.5}return i={x:i.x,y:i.y,length:s,distance:Math.sqrt(f)}},e.is=A,e.snapTo=function(t,e,r){if(r=A(r,"finite")?r:10,A(t,"array")){for(var n=t.length;n--;)if(c(t[n]-e)<=r)return t[n]}else{var i=e%(t=+t);if(i<r)return e-i;if(i>t-r)return e-i+t}return e},e.getRGB=F((function(t){if(!t||(t=a(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:R};if(!v[s](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=I(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R};var r,n,i,c,u,d,g=t.match(m);return g?(g[2]&&(i=h(g[2].substring(5),16),n=h(g[2].substring(3,5),16),r=h(g[2].substring(1,3),16)),g[3]&&(i=h((u=g[3].charAt(3))+u,16),n=h((u=g[3].charAt(2))+u,16),r=h((u=g[3].charAt(1))+u,16)),g[4]&&(d=g[4].split(y),r=o(d[0]),"%"==d[0].slice(-1)&&(r*=2.55),n=o(d[1]),"%"==d[1].slice(-1)&&(n*=2.55),i=o(d[2]),"%"==d[2].slice(-1)&&(i*=2.55),"rgba"==g[1].toLowerCase().slice(0,4)&&(c=o(d[3])),d[3]&&"%"==d[3].slice(-1)&&(c/=100)),g[5]?(d=g[5].split(y),r=o(d[0]),"%"==d[0].slice(-1)&&(r/=100),n=o(d[1]),"%"==d[1].slice(-1)&&(n/=100),i=o(d[2]),"%"==d[2].slice(-1)&&(i/=100),("deg"==d[0].slice(-3)||"°"==d[0].slice(-1))&&(r/=360),"hsba"==g[1].toLowerCase().slice(0,4)&&(c=o(d[3])),d[3]&&"%"==d[3].slice(-1)&&(c/=100),e.hsb2rgb(r,n,i,c)):g[6]?(d=g[6].split(y),r=o(d[0]),"%"==d[0].slice(-1)&&(r/=100),n=o(d[1]),"%"==d[1].slice(-1)&&(n/=100),i=o(d[2]),"%"==d[2].slice(-1)&&(i/=100),("deg"==d[0].slice(-3)||"°"==d[0].slice(-1))&&(r/=360),"hsla"==g[1].toLowerCase().slice(0,4)&&(c=o(d[3])),d[3]&&"%"==d[3].slice(-1)&&(c/=100),e.hsl2rgb(r,n,i,c)):(r=f(l.round(r),255),n=f(l.round(n),255),i=f(l.round(i),255),c=f(p(c,0),1),(g={r:r,g:n,b:i,toString:R}).hex="#"+(16777216|i|n<<8|r<<16).toString(16).slice(1),g.opacity=A(c,"finite")?c:1,g)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:R}}),e),e.hsb=F((function(t,r,n){return e.hsb2rgb(t,r,n).hex})),e.hsl=F((function(t,r,n){return e.hsl2rgb(t,r,n).hex})),e.rgb=F((function(t,e,r,n){if(A(n,"finite")){var i=l.round;return"rgba("+[i(t),i(e),i(r),+n.toFixed(2)]+")"}return"#"+(16777216|r|e<<8|t<<16).toString(16).slice(1)}));var I=function(t){var e=r.doc.getElementsByTagName("head")[0]||r.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(I=F((function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var i=r.doc.defaultView.getComputedStyle(e,"").getPropertyValue("color");return i==n?null:i})))(t)},O=function(){return"hsb("+[this.h,this.s,this.b]+")"},B=function(){return"hsl("+[this.h,this.s,this.l]+")"},R=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},V=function(t,r,n){if(null==r&&A(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,r=t.g,t=t.r),null==r&&A(t,string)){var i=e.getRGB(t);t=i.r,r=i.g,n=i.b}return(t>1||r>1||n>1)&&(t/=255,r/=255,n/=255),[t,r,n]},L=function(t,r,n,i){var s={r:t=l.round(255*t),g:r=l.round(255*r),b:n=l.round(255*n),opacity:A(i,"finite")?i:1,hex:e.rgb(t,r,n),toString:R};return A(i,"finite")&&(s.opacity=i),s};e.color=function(t){var r;return A(t,"object")&&"h"in t&&"s"in t&&"b"in t?(r=e.hsb2rgb(t),t.r=r.r,t.g=r.g,t.b=r.b,t.opacity=1,t.hex=r.hex):A(t,"object")&&"h"in t&&"s"in t&&"l"in t?(r=e.hsl2rgb(t),t.r=r.r,t.g=r.g,t.b=r.b,t.opacity=1,t.hex=r.hex):(A(t,"string")&&(t=e.getRGB(t)),A(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(r=e.rgb2hsl(t),t.h=r.h,t.s=r.s,t.l=r.l,r=e.rgb2hsb(t),t.v=r.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=R,t},e.hsb2rgb=function(t,e,r,n){var i,s,a,o,h;
9return A(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(r=t.b,e=t.s,n=t.o,t=t.h),o=(h=r*e)*(1-c((t=(t*=360)%360/60)%2-1)),i=s=a=r-h,L(i+=[h,o,0,0,o,h][t=~~t],s+=[o,h,h,o,0,0][t],a+=[0,0,o,h,h,o][t],n)},e.hsl2rgb=function(t,e,r,n){var i,s,a,o,h;return A(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(r=t.l,e=t.s,t=t.h),(t>1||e>1||r>1)&&(t/=360,e/=100,r/=100),o=(h=2*e*(r<.5?r:1-r))*(1-c((t=(t*=360)%360/60)%2-1)),i=s=a=r-h/2,L(i+=[h,o,0,0,o,h][t=~~t],s+=[o,h,h,o,0,0][t],a+=[0,0,o,h,h,o][t],n)},e.rgb2hsb=function(t,e,r){var n,i;return t=(r=V(t,e,r))[0],e=r[1],r=r[2],{h:((0==(i=(n=p(t,e,r))-f(t,e,r))?null:n==t?(e-r)/i:n==e?(r-t)/i+2:(t-e)/i+4)+360)%6*60/360,s:0==i?0:i/n,b:n,toString:O}},e.rgb2hsl=function(t,e,r){var n,i,s,a;return t=(r=V(t,e,r))[0],e=r[1],r=r[2],n=((i=p(t,e,r))+(s=f(t,e,r)))/2,{h:((0==(a=i-s)?null:i==t?(e-r)/a:i==e?(r-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:n<.5?a/(2*n):a/(2-2*n),l:n,toString:B}},e.parsePathString=function(t){if(!t)return null;var r=e.path(t);if(r.arr)return e.path.clone(r.arr);var n={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return A(t,"array")&&A(t[0],"array")&&(i=e.path.clone(t)),i.length||a(t).replace(b,(function(t,e,r){var s=[],a=e.toLowerCase();if(r.replace(E,(function(t,e){e&&s.push(+e)})),"m"==a&&s.length>2&&(i.push([e].concat(s.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==s.length&&i.push([e,s[0]]),"r"==a)i.push([e].concat(s));else for(;s.length>=n[a]&&(i.push([e].concat(s.splice(0,n[a]))),n[a]););})),i.toString=e.path.toString,r.arr=e.path.clone(i),i};var N=e.parseTransformString=function(t){if(!t)return null;var r=[];return A(t,"array")&&A(t[0],"array")&&(r=e.path.clone(t)),r.length||a(t).replace(x,(function(t,e,n){var i=[];e.toLowerCase();n.replace(E,(function(t,e){e&&i.push(+e)})),r.push([e].concat(i))})),r.toString=e.path.toString,r};e._.svgTransform2string=function(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,(function(t,r,n){return n=n.split(/\s*,\s*|\s+/),"rotate"==r&&1==n.length&&n.push(0,0),"scale"==r&&(n.length>2?n=n.slice(0,2):2==n.length&&n.push(0,0),1==n.length&&n.push(n[0],0,0)),"skewX"==r?e.push(["m",1,0,l.tan(D(n[0])),1,0,0]):"skewY"==r?e.push(["m",1,l.tan(D(n[0])),0,1,0,0]):e.push([r.charAt(0)].concat(n)),t})),e},e._.rgTransform=/^[a-z][\s]*-?\.?\d/i,e._.transform2matrix=function(t,r){var n=N(t),i=new e.Matr
vendor: 20,208 bytes, line 9
9ix;if(n)for(var s=0,o=n.length;s<o;s++){var h,l,p,f,c,u=n[s],d=u.length,m=a(u[0]).toLowerCase(),y=u[0]!=m,g=y?i.invert():0;"t"==m&&2==d?i.translate(u[1],0):"t"==m&&3==d?y?(h=g.x(0,0),l=g.y(0,0),p=g.x(u[1],u[2]),f=g.y(u[1],u[2]),i.translate(p-h,f-l)):i.translate(u[1],u[2]):"r"==m?2==d?(c=c||r,i.rotate(u[1],c.x+c.width/2,c.y+c.height/2)):4==d&&(y?(p=g.x(u[2],u[3]),f=g.y(u[2],u[3]),i.rotate(u[1],p,f)):i.rotate(u[1],u[2],u[3])):"s"==m?2==d||3==d?(c=c||r,i.scale(u[1],u[d-1],c.x+c.width/2,c.y+c.height/2)):4==d?y?(p=g.x(u[2],u[3]),f=g.y(u[2],u[3]),i.scale(u[1],u[1],p,f)):i.scale(u[1],u[1],u[2],u[3]):5==d&&(y?(p=g.x(u[3],u[4]),f=g.y(u[3],u[4]),i.scale(u[1],u[2],p,f)):i.scale(u[1],u[2],u[3],u[4])):"m"==m&&7==d&&i.add(u[1],u[2],u[3],u[4],u[5],u[6])}return i},e._unit2px=function(t,e,r){var n=z(t).node,i={},s=n.querySelector(".svg---mgr");s||(s=k("rect"),k(s,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),n.appendChild(s));function a(t){if(null==t)return"";if(t==+t)return t;k(s,{width:t});try{return s.getBBox().width}catch(t){return 0}}function o(t){if(null==t)return"";if(t==+t)return t;k(s,{height:t});try{return s.getBBox().height}catch(t){return 0}}function h(n,s){null==e?i[n]=s(t.attr(n)||0):n==e&&(i=s(null==r?t.attr(n)||0:r))}switch(t.type){case"rect":h("rx",a),h("ry",o);case"image":h("width",a),h("height",o);case"text":h("x",a),h("y",o);break;case"circle":h("cx",a),h("cy",o),h("r",a);break;case"ellipse":h("cx",a),h("cy",o),h("rx",a),h("ry",o);break;case"line":h("x1",a),h("x2",a),h("y1",o),h("y2",o);break;case"marker":h("refX",a),h("markerWidth",a),h("refY",o),h("markerHeight",o);break;case"radialGradient":h("fx",a),h("fy",o);break;case"tspan":h("dx",a),h("dy",o);break;default:h(e,a)}return n.removeChild(s),i};r.doc.contains||r.doc.compareDocumentPosition;function z(t){return t.node.ownerSVGElement&&Y(t.node.ownerSVGElement)||e.select("svg")}function j(t){A(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,r=0,n=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach((function(t){n.appendChild(t.node)})):n.appendChild(t[e].node);var i=n.childNodes;for(e=0;e<i.length;e++)this[r++]=Y(i[e]);return this}function G(t){if(t.snap in T)return T[t.snap];var e;try{e=t.ownerSVGElement}catch(t){}this.node=t,e&&(this.paper=new W(e)),this.type=t.tagName||t.nodeName;var r=this.id=C(this);if(this.anims={},this._={transform:[]},t.snap=r,T[r]=this,"g"==this.type&&(this.add=j),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var n in W.prototype)W.prototype[s](n)&&(this[n]=W.prototype[n])}function H(t){this.node=t}function q(t,e){var r=k(t);return e.appendChild(r),Y(r)}function W(t,e){var n,i,a,o=W.prototype;if(t&&t.tagName&&"svg"==t.tagName.toLowerCase()){if(t.snap in T)return T[t.snap];var h=t.ownerDocument;for(var l in n=new G(t),i=t.getElementsByTagName("desc")[0],a=t.getElementsByTagName("defs")[0],i||((i=k("desc")).appendChild(h.createTextNode("Created with Snap")),n.node.appendChild(i)),a||(a=k("defs"),n.node.appendChild(a)),n.defs=a,o)o[s](l)&&(n[l]=o[l]);n.paper=n.root=n}else k((n=q("svg",r.doc.body)).node,{height:e,version:1.1,width:t,xmlns:w});return n}function Y(t){return t?t instanceof G||t instanceof H?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new W(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new W(t.contentDocument.getElementsByTagName("svg")[0]):new G(t):t}e._.getSomeDefs=function(t){var r=t.node.ownerSVGElement&&Y(t.node.ownerSVGElement)||t.node.parentNode&&Y(t.node.parentNode)||e.select("svg")||e(0,0),n=r.select("defs"),i=null!=n&&n.node;return i||(i=q("defs",r.node).node),i},e._.getSomeSVG=z,e.select=function(t){return t=a(t).replace(/([^\\]):/g,"$1\\:"),Y(r.doc.querySelector(t))},e.selectAll=function(t){for(var n=r.doc.querySelectorAll(t),i=(e.set||Array)(),s=0;s<n.length;s++)i.push(Y(n[s]));return i},setInterval((function(){for(var t in T)if(T[s](t)){var e=T[t],r=e.node;("svg"!=e.type&&!r.ownerSVGElement||"svg"==e.type&&(!r.parentNode||"ownerSVGElement"in r.parentNode&&!r.ownerSVGElement))&&delete T[t]}}),1e4),G.prototype.attr=function(t,e){var r=this,n=r.node;if(!t){if(1!=n.nodeType)return{text:n.nodeValue};for(var i=n.attributes,a={},o=0,h=i.length;o<h;o++)a[i[o].nodeName]=i[o].nodeValue;return a}if(A(t,"string")){if(!(arguments.length>1))return eve("snap.util.getattr."+t,r).firstDefined();var l={};l[t]=e,t=l}for(var p in t)t[s](p)&&eve("snap.util.attr."+p,r,t[p]);return r},e.parse=function(t){var e=r.doc.createDocumentFragment(),n=!0,i=r.doc.createElement("div");if((t=a(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),i.innerHTML=t,t=i.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new H(e)},e.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),n=r.doc.createDocumentFragment(),i=0,s=t.length;i<s;i++){var a=t[i];a.node&&a.node.nodeType&&n.appendChild(a.node),a.nodeType&&n.appendChild(a),"string"==typeof a&&n.appendChild(e.parse(a).node)}return new H(n)},e._.make=q,e._.wrap=Y,W.prototype.el=function(t,e){var r=q(t,this.node);return e&&r.attr(e),r},G.prototype.children=function(){for(var t=[],r=this.node.childNodes,n=0,i=r.length;n<i;n++)t[n]=e(r[n]);return t},G.prototype.toJSON=function(){var t=[];return function t(e,r){for(var n=0,i=e.length;n<i;n++){var s={type:e[n].type,attr:e[n].attr()},a=e[n].children();r.push(s),a.length&&t(a,s.childNodes=[])}}([this],t),t[0]},eve.on("snap.util.getattr",(function(){var t=eve.nt(),e=(t=t.substring(t.lastIndexOf(".")+1)).replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return U[s](e)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(e):k(this.node,t)}));var U={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};eve.on("snap.util.attr",(function(t){var e=eve.nt(),r={};r[e=e.substring(e.lastIndexOf(".")+1)]=t;var n=e.replace(/-(\w)/gi,(function(t,e){return e.toUpperCase()})),i=e.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));U[s](i)?this.node.style[n]=null==t?"":t:k(this.node,r)})),W.prototype,e.ajax=function(t,e,r,n){var i=new XMLHttpRequest,s=C();if(i){if(A(e,"function"))n=r,r=e,e=null;else if(A(e,"object")){var a=[];for(var o in e)e.hasOwnProperty(o)&&a.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));e=a.join("&")}return i.open(e?"POST":"GET",t,!0),e&&(i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(eve.once("snap.ajax."+s+".0",r),eve.once("snap.ajax."+s+".200",r),eve.once("snap.ajax."+s+".304",r)),i.onreadystatechange=function(){4==i.readyState&&eve("snap.ajax."+s+"."+i.status,n,i)},4==i.readyState?i:(i.send(e),i)}},e.load=function(t,r,n){e.ajax(t,(function(t){var i=e.parse(t.responseText);n?r.call(n,i):r(i)}))};return e.getElementByPoint=function(t,e){this.canvas;var n=r.doc.elementFromPoint(t,e);if(r.win.opera&&"svg"==n.tagName){var i=function(t){var e=t.getBoundingClientRect(),r=t.ownerDocument,n=r.body,i=r.documentElement,s=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0;return{y:e.top+(g.win.pageYOffset||i.scrollTop||n.scrollTop)-s,x:e.left+(g.win.pageXOffset||i.scrollLeft||n.scrollLeft)-a}}(n),s=n.createSVGRect();s.x=t-i.x,s.y=e-i.y,s.width=s.height=1;var a=n.getIntersectionList(s,null);a.length&&(n=a[a.length-1])}return n?Y(n):null},e.plugin=function(t){t(e,G,W,r,H)},r.win.Snap=e,e}(window||this);i.plugin((function(t,e,r,n,i){var s=e.prototype,a=t.is,o=String,h=t._unit2px,l=t._.$,p=t._.make,f=t._.getSomeDefs,c="hasOwnProperty",u=t._.wrap;s.getBBox=function(e){if("tspan"==this.type)return t._.box(this.node.getClientRects().item(0));if(!t.Matrix||!t.path)return this.node.getBBox();var r=this,n=new t.Matrix;if(r.removed)return t._.box();for(;"use"==r.type;)if(e||(n=n.add(r.transform().localMatrix.translate(r.attr("x")||0,r.attr("y")||0))),r.original)r=r.original;else{var i=r.attr("xlink:href");r=r.original=r.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var s=r._,a=t.path.get[r.type]||t.path.get.deflt;try{return e?(s.bboxwt=a?t.path.getBBox(r.realPath=a(r)):t._.box(r.node.getBBox()),t._.box(s.bboxwt)):(r.realPath=a(r),r.matrix=r.transform().localMatrix,s.bbox=t.path.getBBox(t.path.map(r.realPath,n.add(r.matrix))),t._.box(s.bbox))}catch(e){return t._.box()}};var d=function(){return this.string};function m(e,r){if(null==r){var n=!0;if(!(r="linearGradient"==e.type||"radialGradient"==e.type?e.node.getAttribute("gradientTransform"):"pattern"==e.type?e.node.getAttribute("patternTransform"):e.node.getAttribute("transform")))return new t.Matrix;r=t._.svgTransform2string(r)}else r=t._.rgTransform.test(r)?o(r).replace(/\.{3}|\u2026/g,e._.transform||""):t._.svgTransform2string(r),a(r,"array")&&(r=t.path?t.path.toString.call(r):o(r)),e._.transform=r;var i=t._.transform2matrix(r,e.getBBox(1));if(n)return i;e.matrix=i}s.transform=function(e){var r=this._;if(null==e){for(var n,i=this,s=new t.Matrix(this.node.getCTM()),a=m(this),h=[a],p=new t.Matrix,f=a.toTransformString(),c=o(a)==o(this.matrix)?o(r.transform):f;"svg"!=i.type&&(i=i.parent());)h.push(m(i));for(n=h.length;n--;)p.add(h[n]);return{string:c,globalMatrix:s,totalMatrix:p,localMatrix:a,diffMatrix:s.clone().add(a.invert()),global:s.toTransformString(),total:p.toTransformString(),local:f,toString:d}}return e instanceof t.Matrix?(this.matrix=e,this._.transform=e.toTransformString()):m(this,e),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?l(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?l(this.node,{patternTransform:this.matrix}):l(this.node,{transform:this.matrix})),this},s.parent=function(){return u(this.node.parentNode)},s.append=s.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach((function(t){e.add(t)})),this}t=u(t),this.node.appendChild(t.node),t.paper=this.paper}return this},s.appendTo=function(t){return t&&(t=u(t)).append(this),this},s.prepend=function(t){if(t){if("set"==t.type){var e,r=this;return t.forEach((function(t){e?e.after(t):r.prepend(t),e=t})),this}var n=(t=u(t)).parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),n&&n.add()}return this},s.prependTo=function(t){return(t=u(t)).prepend(this),this},s.before=function(t){if("set"==t.type){var e=this;return t.forEach((function(t){var r=t.parent();e.node.parentNode.insertBefore(t.node,e.node),r&&r.add()})),this.parent().add(),this}var r=(t=u(t)).parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),r&&r.add(),t.paper=this.paper,this},s.after=function(t){var e=(t=u(t)).parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},s.insertBefore=function(t){t=u(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},s.insertAfter=function(t){t=u(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},s.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},s.select=function(t){return u(this.node.querySelector(t))},s.selectAll=function(e){for(var r=this.node.querySelectorAll(e),n=(t.set||Array)(),i=0;i<r.length;i++)n.push(u(r[i]));return n},s.asPX=function(t,e){return null==e&&(e=this.attr(t)),+h(this,t,e)},s.use=function(){var t,e=this.node.id;return e||(e=this.id,l(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?p(this.type,this.node.parentNode):p("use",this.node.parentNode),l(t.node,{"xlink:href":"#"+e}),t.original=this,t},s.clone=function(){var e=u(this.node.cloneNode(!0));return l(e.node,"id")&&l(e.node,{id:e.id}),function(e){var r,n=e.selectAll("*"),i=/^\s*url\(("|'|)(.*)\1\)\s*$/,s=[],a={};function o(e,r){var n=l(e.node,r);(n=(n=n&&n.match(i))&&n[2])&&"#"==n.charAt()&&(n=n.substring(1))&&(a[n]=(a[n]||[]).concat((function(n){var i={};i[r]=t.url(n),l(e.node,i)})))}function h(t){var e=l(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1))&&(a[e]=(a[e]||[]).concat((function(e){t.attr("xlink:href","#"+e)})))}for(var p=0,f=n.length;p<f;p++){o(r=n[p],"fill"),o(r,"stroke"),o(r,"filter"),o(r,"mask"),o(r,"clip-path"),h(r);var c=l(r.node,"id");c&&(l(r.node,{id:r.id}),s.push({old:c,id:r.id}))}for(p=0,f=s.length;p<f;p++){var u=a[s[p].old];if(u)for(var d=0,m=u.length;d<m;d++)u[d](s[p].id)}}(e),e.insertAfter(this),e},s.toDefs=function(){return f(this).appendChild(this.node),this},s.pattern=s.toPattern=function(t,e,r,n){var i=p("pattern",f(this));return null==t&&(t=this.getBBox()),a(t,"object")&&"x"in t&&(e=t.y,r=t.width,n=t.height,t=t.x),l(i.node,{x:t,y:e,width:r,height:n,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[t,e,r,n].join(" ")}),i.node.appendChild(this.node),i},s.marker=function(t,e,r,n,i,s){var o=p("marker",f(this));return null==t&&(t=this.getBBox()),a(t,"object")&&"x"in t&&(e=t.y,r=t.width,n=t.height,i=t.refX||t.cx,s=t.refY||t.cy,t=t.x),l(o.node,{viewBox:[t,e,r,n].join(" "),markerWidth:r,markerHeight:n,orient:"auto",refX:i||0,refY:s||0,id:o.id}),o.node.appendChild(this.node),o};var y={};function g(t){return function(){var e=t?"<"+this.type:"",r=this.node.attributes,n=this.node.childNodes;if(t)for(var i=0,s=r.length;i<s;i++)e+=" "+r[i].name+'="'+r[i].value.replace(/"/g,'\\"')+'"';if(n.length){for(t&&(e+=">"),i=0,s=n.length;i<s;i++)3==n[i].nodeType?e+=n[i].nodeValue:1==n[i].nodeType&&(e+=u(n[i]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}s.data=function(e,r){var n=y[this.id]=y[this.id]||{};if(0==arguments.length)return eve("snap.data.get."+this.id,this,n,null),n;if(1==arguments.length){if(t.is(e,"object")){for(var i in e)e[c](i)&&this.data(i,e[i]);return this}return eve("snap.data.get."+this.id,this,n[e],e),n[e]}return n[e]=r,eve("snap.data.set."+this.id,this,r,e),this},s.removeData=function(t){return null==t?y[this.id]={}:y[this.id]&&delete y[this.id][t],this},s.outerSVG=s.toString=g(1),s.innerSVG=g(),s.toDataURL=function(){if(window&&window.btoa){var e=this.getBBox(),r=t.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r)))}},i.prototype.select=s.select,i.prototype.selectAll=s.selectAll})),i.plugin((function(t,e,r,n,i){var s=Object.prototype.toString,a=String,o=Math;function h(t,e,r,n,i,a){if(null==e&&"[object SVGMatrix]"==s.call(t))return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f);null!=t?(this.a=+t,this.b=+e,this.c=+r,this.d=+n,this.e=+i,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}!function(e){function r(t){return t[0]*t[0]+t[1]*t[1]}function n(t){var e=o.sqrt(r(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,r,n,i,s){if(t&&t instanceof h)return this.add(t.a,t.b,t.c,t.d,t.e,t.f);var a=t*this.a+e*this.c,o=t*this.b+e*this.d;return this.e+=i*this.a+s*this.c,this.f+=i*this.b+s*this.d,this.c=r*this.a+n*this.c,this.d=r*this.b+n*this.d,this.a=a,this.b=o,this},h.prototype.multLeft=function(t,e,r,n,i,s){if(t&&t instanceof h)return this.multLeft(t.a,t.b,t.c,t.d,t.e,t.f);var a=t*this.a+r*this.b,o=t*this.c+r*this.d,l=t*this.e+r*this.f+i;return this.b=e*this.a+n*this.b,this.d=e*this.c+n*this.d,this.f=e*this.e+n*this.f+s,this.a=a,this.c=o,this.e=l,this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new h(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new h(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.e+=t*this.a+e*this.c,this.f+=t*this.b+e*this.d,this},e.scale=function(t,e,r,n){return null==e&&(e=t),(r||n)&&this.translate(r,n),this.a*=t,this.b*=t,this.c*=e,this.d*=e,(r||n)&&this.translate(-r,-n),this},e.rotate=function(e,r,n){e=t.rad(e),r=r||0,n=n||0;var i=+o.cos(e).toFixed(9),s=+o.sin(e).toFixed(9);return this.add(i,s,-s,i,r,n),this.add(1,0,0,1,-r,-n)},e.skewX=function(t){return this.skew(t,0)},e.skewY=function(t){return this.skew(0,t)},e.skew=function(e,r){e=e||0,r=r||0,e=t.rad(e),r=t.rad(r);var n=o.tan(e).toFixed(9),i=o.tan(r).toFixed(9);return this.add(1,i,n,1,0,0)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[a.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.b],[this.c,this.d]];e.scalex=o.sqrt(r(i[0])),n(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=o.sqrt(r(i[1])),n(i[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var s=i[0][1],a=i[1][1];return a<0?(e.rotate=t.deg(o.acos(a)),s<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(o.asin(s)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:"")+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:"")+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:""))}}(h.prototype),t.Matrix=h,t.matrix=function(t,e,r,n,i,s){return new h(t,e,r,n,i,s)}})),i.plugin((function(t,e,r,n,i){var s,a=t._.make,o=t._.wrap,h=t.is,l=t._.getSomeDefs,p=/^url\((['"]?)([^)]+)\1\)$/,f=t._.$,c=t.url,u=String,d=t._.separator;function m(r){return function(n){if(eve.stop(),n instanceof i&&1==n.node.childNodes.length&&("radialGradient"==n.node.firstChild.tagName||"linearGradient"==n.node.firstChild.tagName||"pattern"==n.node.firstChild.tagName)&&(n=n.node.firstChild,l(this).appendChild(n),n=o(n)),n instanceof e)if("radialGradient"==n.type||"linearGradient"==n.type||"pattern"==n.type){n.node.id||f(n.node,{id:n.id});var s=c(n.node.id)}else s=n.attr(r);else if((s=t.color(n)).error){var a=t(l(this).ownerSVGElement).gradient(n);a?(a.node.id||f(a.node,{id:a.id}),s=c(a.node.id)):s=n}else s=u(s);var h={};h[r]=s,f(this.node,h),this.node.style[r]=""}}t.deurl=function(t){var e=String(t).match(p);return e?e[2]:t},eve.on("snap.util.attr.mask",(function(t){if(t instanceof e||t instanceof i){if(eve.stop(),t instanceof i&&1==t.node.childNodes.length&&(t=t.node.firstChild,l(this).appendChild(t),t=
9o(t)),"mask"==t.type)var r=t;else(r=a("mask",l(this))).node.appendChild(t.node);!r.node.id&&f(r.node,{id:r.id}),f(this.node,{mask:c(r.id)})}})),s=function(t){if(t instanceof e||t instanceof i){eve.stop();for(var r,n=t.node;n;){if("clipPath"===n.nodeName){r=new e(n);break}if("svg"===n.nodeName){r=void 0;break}n=n.parentNode}r||((r=a("clipPath",l(this))).node.appendChild(t.node),!r.node.id&&f(r.node,{id:r.id})),f(this.node,{"clip-path":c(r.node.id||r.id)})}},eve.on("snap.util.attr.clip",s),eve.on("snap.util.attr.clip-path",s),eve.on("snap.util.attr.clipPath",s),eve.on("snap.util.attr.fill",m("fill")),eve.on("snap.util.attr.stroke",m("stroke"));var y=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function g(t){eve.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function v(){return eve.stop(),this.node.style.fontSize}eve.on("snap.util.grad.parse",(function(t){var e=(t=u(t)).match(y);if(!e)return null;var r=e[1],n=e[2],i=e[3];1==(n=n.split(/\s*,\s*/).map((function(t){return+t==t?+t:t}))).length&&0==n[0]&&(n=[]);var s=(i=(i=i.split("-")).map((function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}))).length,a=0,o=0;function h(t,e){for(var r=(e-a)/(t-o),n=o;n<t;n++)i[n].offset=+(+a+r*(n-o)).toFixed(2);o=t,a=e}s--;for(var l=0;l<s;l++)"offset"in i[l]&&h(l,i[l].offset);return i[s].offset=i[s].offset||100,h(s,i[s].offset),{type:r,params:n,stops:i}})),eve.on("snap.util.attr.d",(function(e){eve.stop(),h(e,"array")&&h(e[0],"array")&&(e=t.path.toString.call(e)),(e=u(e)).match(/[ruo]/i)&&(e=t.path.toAbsolute(e)),f(this.node,{d:e})}))(-1),eve.on("snap.util.attr.#text",(function(t){eve.stop(),t=u(t);for(var e=n.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(e)}))(-1),eve.on("snap.util.attr.path",(function(t){eve.stop(),this.attr({d:t})}))(-1),eve.on("snap.util.attr.class",(function(t){eve.stop(),this.node.className.baseVal=t}))(-1),eve.on("snap.util.attr.viewBox",(function(t){var e;e=h(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):h(t,"array")?t.join(" "):t,f(this.node,{viewBox:e}),eve.stop()}))(-1),eve.on("snap.util.attr.transform",(function(t){this.transform(t),eve.stop()}))(-1),eve.on("snap.util.attr.r",(function(t){"rect"==this.type&&(eve.stop(),f(this.node,{rx:t,ry:t}))}))(-1),eve.on("snap.util.attr.textpath",(function(t){if(eve.stop(),"text"==this.type){var r,n,i;if(!t&&this.textPath){for(n=this.textPath;n.node.firstChild;)this.node.appendChild(n.node.firstChild);return n.remove(),void delete this.textPath}if(h(t,"string")){var s=l(this),a=o(s.parentNode).path(t);s.appendChild(a.node),r=a.id,a.attr({id:r})}else(t=o(t))instanceof e&&((r=t.attr("id"))||(r=t.id,t.attr({id:r})));if(r)if(n=this.textPath,i=this.node,n)n.attr({"xlink:href":"#"+r});else{for(n=f("textPath",{"xlink:href":"#"+r});i.firstChild;)n.appendChild(i.firstChild);i.appendChild(n),this.textPath=o(n)}}}))(-1),eve.on("snap.util.attr.text",(function(t){if("text"==this.type){for(var e=this.node,r=function(t){var e=f("tspan");if(h(t,"array"))for(var i=0;i<t.length;i++)e.appendChild(r(t[i]));else e.appendChild(n.doc.createTextNode(t));return e.normalize&&e.normalize(),e};e.firstChild;)e.removeChild(e.firstChild);for(var i=r(t);i.firstChild;)e.appendChild(i.firstChild)}eve.stop()}))(-1),eve.on("snap.util.attr.fontSize",g)(-1),eve.on("snap.util.attr.font-size",g)(-1),eve.on("snap.util.getattr.transform",(function(){return eve.stop(),this.transform()}))(-1),eve.on("snap.util.getattr.textpath",(function(){return eve.stop(),this.textPath}))(-1),function(){function e(e){return function(){eve.stop();var r=n.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+e);return"none"==r?r:t(n.doc.getElementById(r.match(p)[1]))}}function r(t){return function(e){eve.stop();var r="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""!=e&&e){if("marker"==e.type){var n=e.node.id;return n||f(e.node,{id:e.id}),void(this.node.style[r]=c(n))}}else this.node.style[r]="none"}}eve.on("snap.util.getattr.marker-end",e("end"))(-1),eve.on("snap.util.getattr.markerEnd",e("end"))(-1),eve.on("snap.util.getattr.marker-start",e("start"))(-1),eve.on("snap.util.getattr.markerStart",e("start"))(-1),eve.on("snap.util.getattr.marker-mid",e("mid"))(-1),eve.on("snap.util.getattr.markerMid",e("mid"))(-1),eve.on("snap.util.attr.marker-end",r("end"))(-1),eve.on("snap.util.attr.markerEnd",r("end"))(-1),eve.on("snap.util.attr.marker-start",r("start"))(-1),eve.on("snap.util.attr.markerStart",r("start"))(-1),eve.on("snap.util.attr.marker-mid",r("mid"))(-1),eve.on("snap.util.attr.markerMid",r("mid"))(-1)}(),eve.on("snap.util.getattr.r",(function(){if("rect"==this.type&&f(this.node,"rx")==f(this.node,"ry"))return eve.stop(),f(this.node,"rx")}))(-1),eve.on("snap.util.getattr.text",(function(){if("text"==this.type||"tspan"==this.type){eve.stop();var t=function t(e){for(var r=[],n=e.childNodes,i=0,s=n.length;i<s;i++){var a=n[i];3==a.nodeType&&r.push(a.nodeValue),"tspan"==a.tagName&&(1==a.childNodes.length&&3==a.firstChild.nodeType?r.push(a.firstChild.nodeValue):r.push(t(a)))}return r}(this.node);return 1==t.length?t[0]:t}}))(-1),eve.on("snap.util.getattr.#text",(function(){return this.node.textContent}))(-1),eve.on("snap.util.getattr.fill",(function(e){if(!e){eve.stop();var r=eve("snap.util.getattr.fill",this,!0).firstDefined();return t(t.deurl(r))||r}}))(-1),eve.on("snap.util.getattr.stroke",(function(e){if(!e){eve.stop();var r=eve("snap.util.getattr.stroke",this,!0).firstDefined();return t(t.deurl(r))||r}}))(-1),eve.on("snap.util.getattr.viewBox",(function(){eve.stop();var e=f(this.node,"viewBox");return e?(e=e.split(d),t._.box(+e[0],+e[1],+e[2],+e[3])):void 0}))(-1),eve.on("snap.util.getattr.points",(function(){var t=f(this.node,"points");return eve.stop(),t?t.split(d):void 0}))(-1),eve.on("snap.util.getattr.path",(function(){var t=f(this.node,"d");return eve.stop(),t}))(-1),eve.on("snap.util.getattr.class",(function(){return this.node.className.baseVal}))(-1),eve.on("snap.util.getattr.fontSize",v)(-1),eve.on("snap.util.getattr.font-size",v)(-1)})),i.plugin((function(t,e,r,n,i){var s=/\S+/g,a=String,o=e.prototype;o.addClass=function(t){var e,r,n,i=a(t||"").match(s)||[],o=this.node,h=o.className.baseVal,l=h.match(s)||[];if(i.length){for(e=0;r=i[e++];)~l.indexOf(r)||l.push(r);h!=(n=l.join(" "))&&(o.className.baseVal=n)}return this},o.removeClass=function(t){var e,r,n,i,o=a(t||"").match(s)||[],h=this.node,l=h.className.baseVal,p=l.match(s)||[];if(p.length){for(e=0;
vendor: 7,273 bytes, line 9
9n=o[e++];)~(r=p.indexOf(n))&&p.splice(r,1);l!=(i=p.join(" "))&&(h.className.baseVal=i)}return this},o.hasClass=function(t){return!!~(this.node.className.baseVal.match(s)||[]).indexOf(t)},o.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);var r,n,i,a,o=(t||"").match(s)||[],h=this.node,l=h.className.baseVal,p=l.match(s)||[];for(r=0;i=o[r++];)~(n=p.indexOf(i))?p.splice(n,1):p.push(i);return l!=(a=p.join(" "))&&(h.className.baseVal=a),this}})),i.plugin((function(t,e,r,n,i){var s={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},a=String,o=/[a-z]+$/i,h=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;function l(t){return t}function p(t){return function(e){return+e.toFixed(3)+t}}eve.on("snap.util.attr",(function(t){var e=a(t).match(h);if(e){var r=eve.nt(),n=r.substring(r.lastIndexOf(".")+1),i=this.attr(n),l={};eve.stop();var p=e[3]||"",f=i.match(o),c=s[e[1]];if(f&&f==p?t=c(parseFloat(i),+e[2]):(i=this.asPX(n),t=c(this.asPX(n),this.asPX(n,e[2]+p))),isNaN(i)||isNaN(t))return;l[n]=t,this.attr(l)}}))(-10),eve.on("snap.util.equal",(function(t,e){var r=a(this.attr(t)||""),n=a(e).match(h);if(n){eve.stop();var i=n[3]||"",f=r.match(o),c=s[n[1]];return f&&f==i?{from:parseFloat(r),to:c(parseFloat(r),+n[2]),f:p(f)}:{from:r=this.asPX(t),to:c(r,this.asPX(t,n[2]+i)),f:l}}}))(-10)})),i.plugin((function(t,e,r,n,i){var s=r.prototype,a=t.is;s.rect=function(t,e,r,n,i,s){var o;return null==s&&(s=i),a(t,"object")&&"[object Object]"==t?o=t:null!=t&&(o={x:t,y:e,width:r,height:n},null!=i&&(o.rx=i,o.ry=s)),this.el("rect",o)},s.circle=function(t,e,r){var n;return a(t,"object")&&"[object Object]"==t?n=t:null!=t&&(n={cx:t,cy:e,r:r}),this.el("circle",n)};var o=function(){function t(){this.parentNode.removeChild(this)}return function(e,r){var i=n.doc.createElement("img"),s=n.doc.body;i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){r.call(i),i.onload=i.onerror=null,s.removeChild(i)},i.onerror=t,s.appendChild(i),i.src=e}}();s.image=function(e,r,n,i,s){var h=this.el("image");if(a(e,"object")&&"src"in e)h.attr(e);else if(null!=e){var l={"xlink:href":e,preserveAspectRatio:"none"};null!=r&&null!=n&&(l.x=r,l.y=n),null!=i&&null!=s?(l.width=i,l.height=s):o(e,(function(){t._.$(h.node,{width:this.offsetWidth,height:this.offsetHeight})})),t._.$(h.node,l)}return h},s.ellipse=function(t,e,r,n){var i;return a(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,rx:r,ry:n}),this.el("ellipse",i)},s.path=function(t){var e;return a(t,"object")&&!a(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},s.group=s.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.svg=function(t,e,r,n,i,s,o,h){var l={};return a(t,"object")&&null==e?l=t:(null!=t&&(l.x=t),null!=e&&(l.y=e),null!=r&&(l.width=r),null!=n&&(l.height=n),null!=i&&null!=s&&null!=o&&null!=h&&(l.viewBox=[i,s,o,h])),this.el("svg",l)},s.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},s.ptrn=function(t,e,r,n,i,s,o,h){if(a(t,"object"))var l=t;else l={patternUnits:"userSpaceOnUse"},t&&(l.x=t),e&&(l.y=e),null!=r&&(l.width=r),null!=n&&(l.height=n),l.viewBox=null!=i&&null!=s&&null!=o&&null!=h?[i,s,o,h]:[t||0,e||0,r||0,n||0];return this.el("pattern",l)},s.use=function(r){return null!=r?(r instanceof e&&(r.attr("id")||r.attr({id:t._.id(r)}),r=r.attr("id")),"#"==String(r).charAt()&&(r=r.substring(1)),this.el("use",{"xlink:href":"#"+r})):e.prototype.use.call(this)},s.symbol=function(t,e,r,n){var i={};return null!=t&&null!=e&&null!=r&&null!=n&&(i.viewBox=[t,e,r,n]),this.el("symbol",i)},s.text=function(t,e,r){var n={};return a(t,"object")?n=t:null!=t&&(n={x:t,y:e,text:r||""}),this.el("text",n)},s.line=function(t,e,r,n){var i={};return a(t,"object")?i=t:null!=t&&(i={x1:t,x2:r,y1:e,y2:n}),this.el("line",i)},s.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return a(t,"object")&&!a(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return a(t,"object")&&!a(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){var e=t._.$;function r(){return this.selectAll("stop")}function n(r,n){var i=e("stop"),s={offset:+n+"%"};r=t.color(r),s["stop-color"]=r.hex,r.opacity<1&&(s["stop-opacity"]=r.opacity),e(i,s);for(var a,o=this.stops(),h=0;h<o.length;h++){if(parseFloat(o[h].attr("offset"))>n){this.node.insertBefore(i,o[h].node),a=!0;break}}return a||this.node.appendChild(i),this}function i(){if("linearGradient"==this.type){var r=e(this.node,"x1")||0,n=e(this.node,"x2")||1,i=e(this.node,"y1")||0,s=e(this.node,"y2")||0;return t._.box(r,i,math.abs(n-r),math.abs(s-i))}var a=this.node.cx||.5,o=this.node.cy||.5,h=this.node.r||0;return t._.box(a-h,o-h,2*h,2*h)}function a(e){var r=e,n=this.stops();if("string"==typeof e&&(r=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+e).firstDefined().stops),t.is(r,"array")){for(var i=0;i<n.length;i++)if(r[i]){var s=t.color(r[i].color),a={offset:r[i].offset+"%"};a["stop-color"]=s.hex,s.opacity<1&&(a["stop-opacity"]=s.opacity),n[i].attr(a)}else n[i].remove();for(i=n.length;i<r.length;i++)this.addStop(r[i].color,r[i].offset);return this}}function o(s,o,h,l,p){var f=t._.make("linearGradient",s);return f.stops=r,f.addStop=n,f.getBBox=i,f.setStops=a,null!=o&&e(f.node,{x1:o,y1:h,x2:l,y2:p}),f}function h(s,a,o,h,l,p){var f=t._.make("radialGradient",s);return f.stops=r,f.addStop=n,f.getBBox=i,null!=a&&e(f.node,{cx:a,cy:o,r:h}),null!=l&&null!=p&&e(f.node,{fx:l,fy:p}),f}s.gradient=function(t){return function(t,r){var n,i=eve("snap.util.grad.parse",null,r).firstDefined();if(!i)return null;i.params.unshift(t),n="l"==i.type.toLowerCase()?o.apply(0,i.params):h.apply(0,i.params),i.type!=i.type.toLowerCase()&&e(n.node,{gradientUnits:"userSpaceOnUse"});for(var s=i.stops,a=s.length,l=0;l<a;l++){var p=s[l];n.addStop(p.color,p.offset)}return n}(this.defs,t)},s.gradientLinear=function(t,e,r,n){return o(this.defs,t,e,r,n)},s.gradientRadial=function(t,e,r,n,i){return h(this.defs,t,e,r,n,i)},s.toString=function(){var e,r=this.node.ownerDocument,n=r.createDocumentFragment(),i=r.createElement("div"),s=this.node.cloneNode(!0);return n.appendChild(i),i.appendChild(s),t._.$(s,{xmlns:"http://www.w3.org/2000/svg"}),e=i.innerHTML,n.removeChild(n.firstChild),e},s.toDataURL=function(){if(window&&window.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},s.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):s.clear.call({node:e}),e=t}}()})),i.plugin((function(t,e,r,n){var i=e.prototype,s=t.is,a=t._.clone,o=/,?([a-z]),?/gi,h=parseFloat,l=Math,p=l.PI,f=l.min,c=l.max,u=l.pow,d=l.abs;function m(t){var e=m.ps=m.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var r in e)e.hasOwnProperty(r)&&r!=t&&(e[r].sleep--,!e[r].sleep&&delete e[r])})),e[t]}function y(t,e,r,n){return null==t&&(t=e=r=n=0),null==e&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,
9w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:l.min(r,n)/2,r2:l.max(r,n)/2,r0:l.sqrt(r*r+n*n)/2,path:O(t,e,r,n),vb:[t,e,r,n].join(" ")}}function g(){return this.join(",").replace(o,"$1")}function v(t){var e=a(t);return e.toString=g,e}function b(t,e,r,n,i,s,a,o,h){return null==h?A(t,e,r,n,i,s,a,o):C(t,e,r,n,i,s,a,o,function(t,e,r,n,i,s,a,o,h){if(h<0||A(t,e,r,n,i,s,a,o)<h)return;var l,p=.5,f=1-p;l=A(t,e,r,n,i,s,a,o,f);for(;d(l-h)>.01;)l=A(t,e,r,n,i,s,a,o,f+=(l<h?1:-1)*(p/=2));return f}(t,e,r,n,i,s,a,o,h))}function x(r,n){function i(t){return+(+t).toFixed(3)}return t._.cacher((function(t,s,a){t instanceof e&&(t=t.attr("d"));for(var o,h,l,p,f,c="",u={},d=0,m=0,y=(t=H(t)).length;m<y;m++){if("M"==(l=t[m])[0])o=+l[1],h=+l[2];else{if(d+(p=b(o,h,l[1],l[2],l[3],l[4],l[5],l[6]))>s){if(n&&!u.start){if(c+=["C"+i((f=b(o,h,l[1],l[2],l[3],l[4],l[5],l[6],s-d)).start.x),i(f.start.y),i(f.m.x),i(f.m.y),i(f.x),i(f.y)],a)return c;u.start=c,c=["M"+i(f.x),i(f.y)+"C"+i(f.n.x),i(f.n.y),i(f.end.x),i(f.end.y),i(l[5]),i(l[6])].join(),d+=p,o=+l[5],h=+l[6];continue}if(!r&&!n)return f=b(o,h,l[1],l[2],l[3],l[4],l[5],l[6],s-d)}d+=p,o=+l[5],h=+l[6]}c+=l.shift()+l}return u.end=c,f=r?d:n?u:C(o,h,l[0],l[1],l[2],l[3],l[4],l[5],1)}),null,t._.clone)}var E=x(1),S=x(),_=x(0,1);function C(t,e,r,n,i,s,a,o,h){var f=1-h,c=u(f,3),d=u(f,2),m=h*h,y=m*h,g=t+2*h*(r-t)+m*(i-2*r+t),v=e+2*h*(n-e)+m*(s-2*n+e),b=r+2*h*(i-r)+m*(a-2*i+r),x=n+2*h*(s-n)+m*(o-2*s+n);return{x:c*t+3*d*h*r+3*f*h*h*i+y*a,y:c*e+3*d*h*n+3*f*h*h*s+y*o,m:{x:g,y:v},n:{x:b,y:x},start:{x:f*t+h*r,y:f*e+h*n},end:{x:f*i+h*a,y:f*s+h*o},alpha:90-180*l.atan2(g-b,v-x)/p}}function P(e,r,n,i,s,a,o,h){t.is(e,"array")||(e=[e,r,n,i,s,a,o,h]);var l=G.apply(null,e);return y(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function w(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height}function T(t,e){return t=y(t),w(e=y(e),t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function k(t,e,r,n,i){return t*(t*(-3*e+9*r-9*n+3*i)+6*e-12*r+6*n)-3*e+3*r}function A(t,e,r,n,i,s,a,o,h){null==h&&(h=1);for(var p=(h=h>1?1:h<0?0:h)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],c=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],u=0,d=0;d<12;d++){var m=p*f[d]+p,y=k(m,t,r,i,a),g=k(m,e,n,s,o),v=y*y+g*g;u+=c[d]*l.sqrt(v)}return p*u}function M(t,e,r,n,i,s,a,o){if(!(c(t,r)<f(i,a)||f(t,r)>c(i,a)||c(e,n)<f(s,o)||f(e,n)>c(s,o))){var h=(t-r)*(s-o)-(e-n)*(i-a);if(h){var l=((t*n-e*r)*(i-a)-(t-r)*(i*o-s*a))/h,p=((t*n-e*r)*(s-o)-(e-n)*(i*o-s*a))/h,u=+l.toFixed(2),d=+p.toFixed(2);if(!(u<+f(t,r).toFixed(2)||u>+c(t,r).toFixed(2)||u<+f(i,a).toFixed(2)||u>+c(i,a).toFixed(2)||d<+f(e,n).toFixed(2)||d>+c(e,n).toFixed(2)||d<+f(s,o).toFixed(2)||d>+c(s,o).toFixed(2)))return{x:l,y:p}}}}function F(t,e,r){if(!T(P(t),P(e)))return r?0:[];for(var n=~~(A.apply(0,t)/8),i=~~(A.apply(0,e)/8),s=[],a=[],o={},h=r?0:[],l=0;l<n+1;l++){var p=C.apply(0,t.concat(l/n));s.push({x:p.x,y:p.y,t:l/n})}for(l=0;l<i+1;l++)p=C.apply(0,e.concat(l/i)),a.push({x:p.x,y:p.y,t:l/i});for(l=0;l<n;l++)for(var f=0;f<i;f++){var c=s[l],u=s[l+1],m=a[f],y=a[f+1],g=d(u.x-c.x)<.001?"y":"x",v=d(y.x-m.x)<.001?"y":"x",b=M(c.x,c.y,u.x,u.y,m.x,m.y,y.x,y.y);if(b){if(o[b.x.toFixed(4)]==b.y.toFixed(4))continue;o[b.x.toFixed(4)]=b.y.toFixed(4);var x=c.t+d((b[g]-c[g])/(u[g]-c[g]))*(u.t-c.t),E=m.t+d((b[v]-m[v])/(y[v]-m[v]))*(y.t-m.t);x>=0&&x<=1&&E>=0&&E<=1&&(r?h++:h.push({x:b.x,y:b.y,t1:x,t2:E}))}}return h}function D(t,e,r){t=H(t),e=H(e);for(var n,i,s,a,o,h,l,p,f,c,u=r?0:[],d=0,m=t.length;d<m;d++){var y=t[d];if("M"==y[0])n=o=y[1],i=h=y[2];else{"C"==y[0]?(f=[n,i].concat(y.slice(1)),n=f[6],i=f[7]):(f=[n,i,n,i,o,h,o,h],n=o,i=h);for(var g=0,v=e.length;g<v;g++){var b=e[g];if("M"==b[0])s=l=b[1],a=p=b[2];else{"C"==b[0]?(c=[s,a].concat(b.slice(1)),s=c[6],a=c[7]):(c=[s,a,s,a,l,p,l,p],s=l,a=p);var x=F(f,c,r);if(r)u+=x;else{for(var E=0,S=x.length;E<S;E++)x[E].segment1=d,x[E].segment2=g,x[E].bez1=f,x[E].bez2=c;u=u.concat(x)}}}}}return u}function I(t){var e=m(t);if(e.bbox)return a(e.bbox);if(!t)return y();for(var r,n=0,i=0,s=[],o=[],h=0,l=(t=H(t)).length;h<l;h++)if("M"==(r=t[h])[0])n=r[1],i=r[2],s.push(n),o.push(i);else{var p=G(n,i,r[1],r[2],r[3],r[4],r[5],r[6]);s=s.concat(p.min.x,p.max.x),o=o.concat(p.min.y,p.max.y),n=r[5],i=r[6]}var u=f.apply(0,s),d=f.apply(0,o),g=y(u,d,c.apply(0,s)-u,c.apply(0,o)-d);return e.bbox=a(g),g}function O(t,e,r,n,i){if(i)return[["M",+t+ +i,e],["l",r-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-r,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]];var s=[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]];return s.toString=g,s}function B(t,e,r,n,i){if(null==i&&null==n&&(n=r),t=+t,e=+e,r=+r,n=+n,null!=i)var s=Math.PI/180,a=t+r*Math.cos(-n*s),o=t+r*Math.cos(-i*s),h=[["M",a,e+r*Math.sin(-n*s)],["A",r,r,0,+(i-n>180),0,o,e+r*Math.sin(-i*s)]];else h=[["M",t,e],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return h.toString=g,h}var R=t._unit2px,V={path:function(t){return t.attr("path")},circle:function(t){var e=R(t);return B(e.cx,e.cy,e.r)},ellipse:function(t){var e=R(t);return B(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=R(t);return O(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=R(t);return O(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return O(e.x,e.y,e.width,e.height)}};function L(e){var r=m(e);if(r.abs)return v(r.abs);if(s(e,"array")&&s(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var n,i=[],a=0,o=0,h=0,l=0,p=0;"M"==e[0][0]&&(h=a=+e[0][1],l=o=+e[0][2],p++,i[0]=["M",a,o]);for(var f,c,u=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),d=p,y=e.length;d<y;
vendor: 4,420 bytes, line 9
9d++){if(i.push(f=[]),(n=(c=e[d])[0])!=n.toUpperCase())switch(f[0]=n.toUpperCase(),f[0]){case"A":f[1]=c[1],f[2]=c[2],f[3]=c[3],f[4]=c[4],f[5]=c[5],f[6]=+c[6]+a,f[7]=+c[7]+o;break;case"V":f[1]=+c[1]+o;break;case"H":f[1]=+c[1]+a;break;case"R":for(var b=[a,o].concat(c.slice(1)),x=2,E=b.length;x<E;x++)b[x]=+b[x]+a,b[++x]=+b[x]+o;i.pop(),i=i.concat(q(b,u));break;case"O":i.pop(),(b=B(a,o,c[1],c[2])).push(b[0]),i=i.concat(b);break;case"U":i.pop(),i=i.concat(B(a,o,c[1],c[2],c[3])),f=["U"].concat(i[i.length-1].slice(-2));break;case"M":h=+c[1]+a,l=+c[2]+o;default:for(x=1,E=c.length;x<E;x++)f[x]=+c[x]+(x%2?a:o)}else if("R"==n)b=[a,o].concat(c.slice(1)),i.pop(),i=i.concat(q(b,u)),f=["R"].concat(c.slice(-2));else if("O"==n)i.pop(),(b=B(a,o,c[1],c[2])).push(b[0]),i=i.concat(b);else if("U"==n)i.pop(),i=i.concat(B(a,o,c[1],c[2],c[3])),f=["U"].concat(i[i.length-1].slice(-2));else for(var S=0,_=c.length;S<_;S++)f[S]=c[S];if("O"!=(n=n.toUpperCase()))switch(f[0]){case"Z":a=+h,o=+l;break;case"H":a=f[1];break;case"V":o=f[1];break;case"M":h=f[f.length-2],l=f[f.length-1];default:a=f[f.length-2],o=f[f.length-1]}}return i.toString=g,r.abs=v(i),i}function N(t,e,r,n){return[t,e,r,n,r,n]}function z(t,e,r,n,i,s){return[1/3*t+2/3*r,1/3*e+2/3*n,1/3*i+2/3*r,1/3*s+2/3*n,i,s]}function j(e,r,n,i,s,a,o,h,f,c){var u,m=120*p/180,y=p/180*(+s||0),g=[],v=t._.cacher((function(t,e,r){return{x:t*l.cos(r)-e*l.sin(r),y:t*l.sin(r)+e*l.cos(r)}}));if(!n||!i)return[e,r,h,f,h,f];if(c)T=c[0],k=c[1],P=c[2],w=c[3];else{e=(u=v(e,r,-y)).x,r=u.y,h=(u=v(h,f,-y)).x,f=u.y;l.cos(p/180*s),l.sin(p/180*s);var b=(e-h)/2,x=(r-f)/2,E=b*b/(n*n)+x*x/(i*i);E>1&&(n*=E=l.sqrt(E),i*=E);var S=n*n,_=i*i,C=(a==o?-1:1)*l.sqrt(d((S*_-S*x*x-_*b*b)/(S*x*x+_*b*b))),P=C*n*x/i+(e+h)/2,w=C*-i*b/n+(r+f)/2,T=l.asin(((r-w)/i).toFixed(9)),k=l.asin(((f-w)/i).toFixed(9));(T=e<P?p-T:T)<0&&(T=2*p+T),(k=h<P?p-k:k)<0&&(k=2*p+k),o&&T>k&&(T-=2*p),!o&&k>T&&(k-=2*p)}var A=k-T;if(d(A)>m){var M=k,F=h,D=f;k=T+m*(o&&k>T?1:-1),g=j(h=P+n*l.cos(k),f=w+i*l.sin(k),n,i,s,0,o,F,D,[k,M,P,w])}A=k-T;var I=l.cos(T),O=l.sin(T),B=l.cos(k),R=l.sin(k),V=l.tan(A/4),L=4/3*n*V,N=4/3*i*V,z=[e,r],G=[e+L*O,r-N*I],H=[h+L*R,f-N*B],q=[h,f];if(G[0]=2*z[0]-G[0],G[1]=2*z[1]-G[1],c)return[G,H,q].concat(g);for(var W=[],Y=0,U=(g=[G,H,q].concat(g).join().split(",")).length;Y<U;Y++)W[Y]=Y%2?v(g[Y-1],g[Y],y).y:v(g[Y],g[Y+1],y).x;return W}function G(t,e,r,n,i,s,a,o){for(var h,p,u,m,y,g,v,b,x=[],E=[[],[]],S=0;S<2;++S)if(0==S?(p=6*t-12*r+6*i,h=-3*t+9*r-9*i+3*a,u=3*r-3*t):(p=6*e-12*n+6*s,h=-3*e+9*n-9*s+3*o,u=3*n-3*e),d(h)<1e-12){if(d(p)<1e-12)continue;0<(m=-u/p)&&m<1&&x.push(m)}else v=p*p-4*u*h,b=l.sqrt(v),v<0||(0<(y=(-p+b)/(2*h))&&y<1&&x.push(y),0<(g=(-p-b)/(2*h))&&g<1&&x.push(g));for(var _,C=x.length,P=C;C--;)_=1-(m=x[C]),E[0][C]=_*_*_*t+3*_*_*m*r+3*_*m*m*i+m*m*m*a,E[1][C]=_*_*_*e+3*_*_*m*n+3*_*m*m*s+m*m*m*o;return E[0][P]=t,E[1][P]=e,E[0][P+1]=a,E[1][P+1]=o,E[0].length=E[1].length=P+2,{min:{x:f.apply(0,E[0]),y:f.apply(0,E[1])},max:{x:c.apply(0,E[0]),y:c.apply(0,E[1])}}}function H(t,e){var r=!e&&m(t);if(!e&&r.curve)return v(r.curve);for(var n=L(t),i=e&&L(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(t,e,r){var n,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(j.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==r||"S"==r?(n=2*e.x-e.bx,i=2*e.y-e.by):(n=e.x,i=e.y),t=["C",n,i].concat(t.slice(1));break;case"T":"Q"==r||"T"==r?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(z(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(z(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(N(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(N(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(N(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(N(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)f[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),b=c(n.length,i&&i.length||0)}},p=function(t,e,r,s,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",s.x,s.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],b=c(n.length,i&&i.length||0))},f=[],u=[],d="",y="",g=0,b=c(n.length,i&&i.length||0);g<b;g++){n[g]&&(d=n[g][0]),"C"!=d&&(f[g]=d,g&&(y=f[g-1])),n[g]=o(n[g],s,y),"A"!=f[g]&&"C"==d&&(f[g]="C"),l(n,g),i&&(i[g]&&(
vendor: 4,754 bytes, line 9
9d=i[g][0]),"C"!=d&&(u[g]=d,g&&(y=u[g-1])),i[g]=o(i[g],a,y),"A"!=u[g]&&"C"==d&&(u[g]="C"),l(i,g)),p(n,i,s,a,g),p(i,n,a,s,g);var x=n[g],E=i&&i[g],S=x.length,_=i&&E.length;s.x=x[S-2],s.y=x[S-1],s.bx=h(x[S-4])||s.x,s.by=h(x[S-3])||s.y,a.bx=i&&(h(E[_-4])||a.x),a.by=i&&(h(E[_-3])||a.y),a.x=i&&E[_-2],a.y=i&&E[_-1]}return i||(r.curve=v(n)),i?[n,i]:n}function q(t,e){for(var r=[],n=0,i=t.length;i-2*!e>n;n+=2){var s=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?i-4==n?s[3]={x:+t[0],y:+t[1]}:i-2==n&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[i-2],y:+t[i-1]}:i-4==n?s[3]=s[2]:n||(s[0]={x:+t[n],y:+t[n+1]}),r.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return r}t.path=m,t.path.getTotalLength=E,t.path.getPointAtLength=S,t.path.getSubpath=function(t,e,r){if(this.getTotalLength(t)-r<1e-6)return _(t,e).end;var n=_(t,r,1);return e?_(n,e).end:n},i.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},i.getPointAtLength=function(t){return S(this.attr("d"),t)},i.getSubpath=function(e,r){return t.path.getSubpath(this.attr("d"),e,r)},t._.box=y,t.path.findDotsAtSegment=C,t.path.bezierBBox=P,t.path.isPointInsideBBox=w,t.closest=function(e,r,n,i){for(var s=100,a=y(e-s/2,r-s/2,s,s),o=[],h=n[0].hasOwnProperty("x")?function(t){return{x:n[t].x,y:n[t].y}}:function(t){return{x:n[t],y:i[t]}},l=0;s<=1e6&&!l;){for(var p=0,f=n.length;p<f;p++){var c=h(p);if(w(a,c.x,c.y)){l++,o.push(c);break}}l||(a=y(e-(s*=2)/2,r-s/2,s,s))}if(1e6!=s){var u,d=1/0;for(p=0,f=o.length;p<f;p++){var m=t.len(e,r,o[p].x,o[p].y);d>m&&(d=m,o[p].len=m,u=o[p])}return u}},t.path.isBBoxIntersect=T,t.path.intersection=function(t,e){return D(t,e)},t.path.intersectionNumber=function(t,e){return D(t,e,1)},t.path.isPointInside=function(t,e,r){var n=I(t);return w(n,e,r)&&D(t,[["M",e,r],["H",n.x2+10]],1)%2==1},t.path.getBBox=I,t.path.get=V,t.path.toRelative=function(e){var r=m(e),n=String.prototype.toLowerCase;if(r.rel)return v(r.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var i=[],s=0,a=0,o=0,h=0,l=0;"M"==e[0][0]&&(o=s=e[0][1],h=a=e[0][2],l++,i.push(["M",s,a]));for(var p=l,f=e.length;p<f;p++){var c=i[p]=[],u=e[p];if(u[0]!=n.call(u[0]))switch(c[0]=n.call(u[0]),c[0]){case"a":c[1]=u[1],c[2]=u[2],c[3]=u[3],c[4]=u[4],c[5]=u[5],c[6]=+(u[6]-s).toFixed(3),c[7]=+(u[7]-a).toFixed(3);break;case"v":c[1]=+(u[1]-a).toFixed(3);break;case"m":o=u[1],h=u[2];default:for(var d=1,y=u.length;d<y;d++)c[d]=+(u[d]-(d%2?s:a)).toFixed(3)}else{c=i[p]=[],"m"==u[0]&&(o=u[1]+s,h=u[2]+a);for(var b=0,x=u.length;b<x;b++)i[p][b]=u[b]}var E=i[p].length;switch(i[p][0]){case"z":s=o,a=h;break;case"h":s+=+i[p][E-1];break;case"v":a+=+i[p][E-1];break;default:s+=+i[p][E-2],a+=+i[p][E-1]}}return i.toString=g,r.rel=v(i),i},t.path.toAbsolute=L,t.path.toCubic=H,t.path.map=function(t,e){if(!e)return t;var r,n,i,s,a,o,h;for(i=0,a=(t=H(t)).length;i<a;i++)for(s=1,o=(h=t[i]).length;s<o;s+=2)r=e.x(h[s],h[s+1]),n=e.y(h[s],h[s+1]),h[s]=r,h[s+1]=n;return t},t.path.toString=g,t.path.clone=v})),i.plugin((function(t,e,r,i){var s=Math.max,a=Math.min,o=function(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,r=t.length;e<r;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},h=o.prototype;h.push=function(){for(var t,e,r=0,n=arguments.length;r<n;r++)(t=arguments[r])&&(this[e=this.items.length]=this.items[e]=t,this.length++);return this},h.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},h.forEach=function(t,e){for(var r=0,n=this.items.length;r<n;r++)if(!1===t.call(e,this.items[r],r))return this;return this},h.animate=function(e,r,i,s){"function"!=typeof i||i.length||(s=i,i=n.linear),e instanceof t._.Animation&&(s=e.callback,i=e.easing,r=i.dur,e=e.attr);var a=arguments;if(t.is(e,"array")&&t.is(a[a.length-1],"array"))var o=!0;var h,l=function(){h?this.b=h:h=this.b},p=0,f=this,c=s&&function(){++p==f.length&&s.call(this)};return this.forEach((function(t,n){eve.once("snap.animcreated."+t.id,l),o?a[n]&&t.animate.apply(t,a[n]):t.animate(e,r,i,c)}))},h.remove=function(){for(;this.length;)this.pop().remove();return this},h.bind=function(t,e,r){var n={};if("function"==typeof e)this.bindings[t]=e;else{var i=r||t;this.bindings[t]=function(t){n[i]=t,e.attr(n)}}return this},h.attr=function(t){var e={};for(var r in t)this.bindings[r]?this.bindings[r](t[r]):e[r]=t[r];for(var n=0,i=this.items.length;n<i;n++)this.items[n].attr(e);return this},h.clear=function(){for(;this.length;)this.pop()},h.splice=function(t,e,r){t=t<0?s(this.length+t,0):t,e=s(0,a(this.length-t,e));var n,i=[],h=[],l=[];for(n=2;n<arguments.length;
9n++)l.push(arguments[n]);for(n=0;n<e;n++)h.push(this[t+n]);for(;n<this.length-t;n++)i.push(this[t+n]);var p=l.length;for(n=0;n<p+i.length;n++)this.items[t+n]=this[t+n]=n<p?l[n]:i[n-p];for(n=this.items.length=this.length-=e-p;this[n];)delete this[n++];return new o(h)},h.exclude=function(t){for(var e=0,r=this.length;e<r;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},h.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},h.getBBox=function(){for(var t=[],e=[],r=[],n=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();t.push(o.x),e.push(o.y),r.push(o.x+o.width),n.push(o.y+o.height)}return{x:t=a.apply(0,t),y:e=a.apply(0,e),x2:r=s.apply(0,r),y2:n=s.apply(0,n),width:r-t,height:n-e,cx:t+(r-t)/2,cy:e+(n-e)/2}},h.clone=function(t){t=new o;for(var e=0,r=this.items.length;e<r;e++)t.push(this.items[e].clone());return t},h.toString=function(){return"Snap‘s set"},h.type="set",t.Set=o,t.set=function(){var t=new o;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}})),i.plugin((function(t,e,r,n){var i={},s=/[%a-z]+$/i,a=String;function o(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function h(t){return t}function l(t){return t.join(" ")}function p(e){return t.rgb(e[0],e[1],e[2],e[3])}function f(t){var e,r,n,i,s,a,o=0,h=[];for(e=0,r=t.length;e<r;e++){for(s="[",a=['"'+t[e][0]+'"'],n=1,i=t[e].length;n<i;n++)a[n]="val["+o+++"]";s+=a+"]",h[e]=s}return Function("val","return Snap.path.toString.call(["+h+"])")}function c(t){for(var e=[],r=0,n=t.length;r<n;r++)for(var i=1,s=t[r].length;i<s;i++)e.push(t[r][i]);return e}function u(t){return isFinite(t)}i.stroke=i.fill="colour",e.prototype.equal=function(t,e){return eve("snap.util.equal",this,t,e).firstDefined()},eve.on("snap.util.equal",(function(e,r){var n,d,m=a(this.attr(e)||""),y=this;if("colour"==i[e])return n=t.color(m),d=t.color(r),{from:[n.r,n.g,n.b,n.opacity],to:[d.r,d.g,d.b,d.opacity],f:p};if("viewBox"==e)return{from:n=this.attr(e).vb.split(" ").map(Number),to:d=r.split(" ").map(Number),f:l};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return"string"==typeof r&&(r=a(r).replace(/\.{3}|\u2026/g,m)),function(e,r,n){e=e||new t.Matrix,r=r||new t.Matrix,e=t.parseTransformString(e.toTransformString())||[],r=t.parseTransformString(r.toTransformString())||[];for(var i,s,a,h,l=Math.max(e.length,r.length),p=[],u=[],d=0;d<l;d++){if(a=e[d]||o(r[d]),h=r[d]||o(a),a[0]!=h[0]||"r"==a[0].toLowerCase()&&(a[2]!=h[2]||a[3]!=h[3])||"s"==a[0].toLowerCase()&&(a[3]!=h[3]||a[4]!=h[4])){e=t._.transform2matrix(e,n()),r=t._.transform2matrix(r,n()),p=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],u=[["m",r.a,r.b,r.c,r.d,r.e,r.f]];break}for(p[d]=[],u[d]=[],i=0,s=Math.max(a.length,h.length);i<s;i++)i in a&&(p[d][i]=a[i]),i in h&&(u[d][i]=h[i])}return{from:c(p),to:c(u),f:f(p)}}(m=this.matrix,r=t._.rgTransform.test(r)?t._.transform2matrix(r,this.getBBox()):t._.transform2matrix(t._.svgTransform2string(r),this.getBBox()),(function(){return y.getBBox(1)}));if("d"==e||"path"==e)return{from:c((n=t.path.toCubic(m,r))[0]),to:c(n[1]),f:f(n[0])};if("points"==e)return{from:n=a(m).split(t._.separator),to:d=a(r).split(t._.separator),f:function(t){return t}};if(u(m)&&u(r))return{from:parseFloat(m),to:parseFloat(r),f:h};var g,v,b,x=m.match(s),E=a(r).match(s);return x&&(v=x,b=E,t.is(v,"array")&&t.is(b,"array")&&v.toString()==b.toString())?{from:parseFloat(m),to:parseFloat(r),f:(g=x,function(t){return+t.toFixed(3)+g})}:{from:this.asPX(e),to:this.asPX(e,r),f:h}}))})),i.plugin((function(t,e,r,n){for(var i=e.prototype,s=("createTouch"in n.doc),a=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],o={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},h=function(t,e){var r="y"==t?"scrollTop":"scrollLeft",i=e&&e.node?e.node.ownerDocument:n.doc;return i[r in i.documentElement?"documentElement":"body"][r]},l=function(){return this.originalEvent.preventDefault()},p=function(){return this.originalEvent.stopPropagation()},f=function(t,e,r,n){var i=s&&o[e]?o[e]:e,a=function(i){var a=h("y",n),f=h("x",n);if(s&&o.hasOwnProperty(e))for(var c=0,u=i.targetTouches&&i.targetTouches.length;c<u;
vendor: 12,375 bytes, line 9
9c++)if(i.targetTouches[c].target==t||t.contains(i.targetTouches[c].target)){var d=i;(i=i.targetTouches[c]).originalEvent=d,i.preventDefault=l,i.stopPropagation=p;break}var m=i.clientX+f,y=i.clientY+a;return r.call(n,i,m,y)};return e!==i&&t.addEventListener(e,a,!1),t.addEventListener(i,a,!1),function(){return e!==i&&t.removeEventListener(e,a,!1),t.removeEventListener(i,a,!1),!0}},c=[],u=function(t){for(var e,r=t.clientX,n=t.clientY,i=h("y"),a=h("x"),o=c.length;o--;){if(e=c[o],s){for(var l,p=t.touches&&t.touches.length;p--;)if((l=t.touches[p]).identifier==e.el._drag.id||e.el.node.contains(l.target)){r=l.clientX,n=l.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var f=e.el.node;f.nextSibling,f.parentNode,f.style.display;r+=a,n+=i,eve("snap.drag.move."+e.el.id,e.move_scope||e.el,r-e.el._drag.x,n-e.el._drag.y,r,n,t)}},d=function(e){t.unmousemove(u).unmouseup(d);for(var r,n=c.length;n--;)(r=c[n]).el._drag={},eve("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,e),eve.off("snap.drag.*."+r.el.id);c=[]},m=a.length;m--;)!function(e){t[e]=i[e]=function(r,n){if(t.is(r,"function"))this.events=this.events||[],this.events.push({name:e,f:r,unbind:f(this.node||document,e,r,n||this)});else for(var i=0,s=this.events.length;i<s;i++)if(this.events[i].name==e)try{this.events[i].f.call(this)}catch(t){}return this},t["un"+e]=i["un"+e]=function(t){for(var r=this.events||[],n=r.length;n--;)if(r[n].name==e&&(r[n].f==t||!t))return r[n].unbind(),r.splice(n,1),!r.length&&delete this.events,this;return this}}(a[m]);i.hover=function(t,e,r,n){return this.mouseover(t,r).mouseout(e,n||r)},i.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var y=[];i.drag=function(e,r,n,i,s,a){var o,h=this;if(!arguments.length)return h.drag((function(t,e){this.attr({transform:o+(o?"T":"t")+[t,e]})}),(function(){o=this.transform().local}));function l(o,l,p){(o.originalEvent||o).preventDefault(),h._drag.x=l,h._drag.y=p,h._drag.id=o.identifier,!c.length&&t.mousemove(u).mouseup(d),c.push({el:h,move_scope:i,start_scope:s,end_scope:a}),r&&eve.on("snap.drag.start."+h.id,r),e&&eve.on("snap.drag.move."+h.id,e),n&&eve.on("snap.drag.end."+h.id,n),eve("snap.drag.start."+h.id,s||i||h,l,p,o)}function p(t,e,r){eve("snap.draginit."+h.id,h,t,e,r)}return eve.on("snap.draginit."+h.id,l),h._drag={},y.push({el:h,start:l,init:p}),h.mousedown(p),h},i.undrag=function(){for(var e=y.length;e--;)y[e].el==this&&(this.unmousedown(y[e].init),y.splice(e,1),eve.unbind("snap.drag.*."+this.id),eve.unbind("snap.draginit."+this.id));return!y.length&&t.unmousemove(u).unmouseup(d),this}})),i.plugin((function(t,e,r,n){e.prototype;var i=r.prototype,s=/^\s*url\((.+)\)/,a=String,o=t._.$;t.filter={},i.filter=function(r){var n=this;"svg"!=n.type&&(n=n.paper);var i=t.parse(a(r)),s=t._.id(),h=(n.node.offsetWidth,n.node.offsetHeight,o("filter"));return o(h,{id:s,filterUnits:"userSpaceOnUse"}),h.appendChild(i.node),n.defs.appendChild(h),new e(h)},eve.on("snap.util.getattr.filter",(function(){eve.stop();var e=o(this.node,"filter");if(e){var r=a(e).match(s);return r&&t.select(r[1])}})),eve.on("snap.util.attr.filter",(function(r){if(r instanceof e&&"filter"==r.type){eve.stop();var n=r.node.id;n||(o(r.node,{id:r.id}),n=r.id),o(this.node,{filter:t.url(n)})}r&&"none"!=r||(eve.stop(),this.node.removeAttribute("filter"))})),t.filter.blur=function(e,r){null==e&&(e=2);var n=null==r?e:[e,r];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:n})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,r,n,i,s){return null==s&&(null==i?(s=n,n=4,i="#000"):(s=i,i=n,n=4)),null==n&&(n=4),null==s&&(s=1),null==e&&(e=0,r=2),null==r&&(r=e),i=t.color(i),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:i,dx:e,dy:r,blur:n,opacity:s})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}})),i.plugin((function(t,e,r,n,i){var s=t._.box,a=t.is,o=/^[^a-z]*([tbmlrc])/i,h=function(){return"T"+this.dx+","+this.dy};e.prototype.getAlign=function(t,e){null==e&&a(t,"string")&&(e=t,t=null);var r=(t=t||this.paper).getBBox?t.getBBox():s(t),n=this.getBBox(),i={};switch(e=(e=e&&e.match(o))?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=r.y-n.y;break;case"b":i.dx=0,i.dy=r.y2-n.y2;break;case"m":i.dx=0,i.dy=r.cy-n.cy;break;case"l":i.dx=r.x-n.x,i.dy=0;break;case"r":i.dx=r.x2-n.x2,i.dy=0;break;default:i.dx=r.cx-n.cx,i.dy=0}return i.toString=h,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}})),i.plugin((function(t,e,r,i,s){var a=e.prototype,o=t.is,h=String,l="hasOwnProperty";function p(t,e,r){return function(n){var i=n.slice(t,e);return 1==i.length&&(i=i[0]),r?r(i):i}}var f=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};t._.Animation=f,t.animation=function(t,e,r,n){return new f(t,e,r,n)},a.inAnim=function(){var t=[];for(var e in this.anims)this.anims[l](e)&&function(e){t.push({anim:new f(e._attrs,e.dur,e.easing,e._callback),mina:e,curStatus:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(this.anims[e]);return t},t.animate=function(t,e,r,i,s,a){"function"!=typeof s||s.length||(a=s,s=n.linear);var o=n.time(),h=n(t,e,o,o+i,n.time,r,s);return a&&eve.once("mina.finish."+h.id,a),h},a.stop=function(){for(var t=this.inAnim(),e=0,r=t.length;e<r;e++)t[e].stop();return this},a.animate=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),t instanceof f&&(i=t.callback,r=t.easing,e=t.dur,t=t.attr);var s,a,c,u,d=[],m=[],y={},g=this;for(var v in t)if(t[l](v)){g.equal?(s=(u=g.equal(v,h(t[v]))).from,a=u.to,c=u.f):(s=+g.attr(v),a=+t[v]);var b=o(s,"array")?s.length:1;y[v]=p(d.length,d.length+b,c),d=d.concat(s),m=m.concat(a)}var x=n.time(),E=n(d,m,x,x+e,n.time,(function(t){var e={};for(var r in y)y[l](r)&&(e[r]=y[r](t));g.attr(e)}),r);return g.anims[E.id]=E,E._attrs=t,E._callback=i,eve("snap.animcreated."+g.id,E),eve.once("mina.finish."+E.id,(function(){eve.off("mina.*."+E.id),delete g.anims[E.id],i&&i.call(g)})),eve.once("mina.stop."+E.id,(function(){eve.off("mina.*."+E.id),delete g.anims[E.id]})),g}})),i.plugin((function(t,e,r,n){function i(t){t=t.split(/(?=#)/);var e=new String(t[5]);return e[50]=t[0],e[100]=t[1],e[200]=t[2],e[300]=t[3],e[400]=t[4],e[500]=t[5],e[600]=t[6],e[700]=t[7],e[800]=t[8],e[900]=t[9],t[10]&&(e.A100=t[10],e.A200=t[11],e.A400=t[12],e.A700=t[13]),e}t.mui={},t.flat={},t.mui.red=i("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),t.mui.pink=i("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),t.mui.purple=i("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),t.mui.deeppurple=i("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),t.mui.indigo=i("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),t.mui.blue=i("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),t.mui.lightblue=i("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),t.mui.cyan=i("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),t.mui.teal=i("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),t.mui.green=i("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),t.mui.lightgreen=i("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),t.mui.lime=i("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),t.mui.yellow=i("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),t.mui.amber=i("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),t.mui.orange=i("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),t.mui.deeporange=i("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),t.mui.brown=i("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),t.mui.grey=i("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),t.mui.bluegrey=i("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),t.flat.turquoise="#1abc9c",t.flat.greensea="#16a085",t.flat.sunflower="#f1c40f",t.flat.orange="#f39c12",t.flat.emerland="#2ecc71",t.flat.nephritis="#27ae60",t.flat.carrot="#e67e22",t.flat.pumpkin="#d35400",t.flat.peterriver="#3498db",t.flat.belizehole="#2980b9",t.flat.alizarin="#e74c3c",t.flat.pomegranate="#c0392b",t.flat.amethyst="#9b59b6",t.flat.wisteria="#8e44ad",t.flat.clouds="#ecf0f1",t.flat.silver="#bdc3c7",t.flat.wetasphalt="#34495e",t.flat.midnightblue="#2c3e50",t.flat.concrete="#95a5a6",t.flat.asbestos="#7f8c8d",t.importMUIColors=function(){for(var e in t.mui)t.mui.hasOwnProperty(e)&&(window[e]=t.mui[e])}})),t.exports=i},function(t,e,r){var n;!function(r){var i,s,a="hasOwnProperty",o=/[\.\/]/,h=/\s*,\s*/,l=function(t,e){return t-e},p={n:{}},f=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},c=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},u=Object.prototype.toString,d=String,m=Array.isArray||function(t){return t instanceof Array||"[object Array]"==u.call(t)},y=function(t,e){var r,n=s,a=Array.prototype.slice.call(arguments,2),o=y.listeners(t),h=0,p=[],u={},d=[],m=i;d.firstDefined=f,d.lastDefined=c,i=t,s=0;for(var g=0,v=o.length;g<v;g++)"zIndex"in o[g]&&(p.push(o[g].zIndex),o[g].zIndex<0&&(u[o[g].zIndex]=o[g]));for(p.sort(l);p[h]<0;)if(r=u[p[h++]],d.push(r.apply(e,a)),s)return s=n,d;for(g=0;g<v;
vendor: 4,129 bytes, line 9
9g++)if("zIndex"in(r=o[g]))if(r.zIndex==p[h]){if(d.push(r.apply(e,a)),s)break;do{if((r=u[p[++h]])&&d.push(r.apply(e,a)),s)break}while(r)}else u[r.zIndex]=r;else if(d.push(r.apply(e,a)),s)break;return s=n,i=m,d};y._events=p,y.listeners=function(t){var e,r,n,i,s,a,h,l,f=m(t)?t:t.split(o),c=p,u=[c],d=[];for(i=0,s=f.length;i<s;i++){for(l=[],a=0,h=u.length;a<h;a++)for(r=[(c=u[a].n)[f[i]],c["*"]],n=2;n--;)(e=r[n])&&(l.push(e),d=d.concat(e.f||[]));u=l}return d},y.separator=function(t){t?(t="["+(t=d(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",o=new RegExp(t)):o=/[\.\/]/},y.on=function(t,e){if("function"!=typeof e)return function(){};for(var r=m(t)?m(t[0])?t:[t]:d(t).split(h),n=0,i=r.length;n<i;n++)!function(t){for(var r,n=m(t)?t:d(t).split(o),i=p,s=0,a=n.length;s<a;s++)i=(i=i.n).hasOwnProperty(n[s])&&i[n[s]]||(i[n[s]]={n:{}});for(i.f=i.f||[],s=0,a=i.f.length;s<a;s++)if(i.f[s]==e){r=!0;break}!r&&i.f.push(e)}(r[n]);return function(t){+t==+t&&(e.zIndex=+t)}},y.f=function(t){var e=[].slice.call(arguments,1);return function(){y.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},y.stop=function(){s=1},y.nt=function(t){var e=m(i)?i.join("."):i;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},y.nts=function(){return m(i)?i:i.split(o)},y.off=y.unbind=function(t,e){if(t){var r=m(t)?m(t[0])?t:[t]:d(t).split(h);if(r.length>1)for(var n=0,i=r.length;n<i;n++)y.off(r[n],e);else{r=m(t)?t:d(t).split(o);var s,l,f,c,u,g=[p],v=[];for(n=0,i=r.length;n<i;n++)for(c=0;c<g.length;c+=f.length-2){if(f=[c,1],s=g[c].n,"*"!=r[n])s[r[n]]&&(f.push(s[r[n]]),v.unshift({n:s,name:r[n]}));else for(l in s)s[a](l)&&(f.push(s[l]),v.unshift({n:s,name:l}));g.splice.apply(g,f)}for(n=0,i=g.length;n<i;n++)for(s=g[n];s.n;){if(e){if(s.f){for(c=0,u=s.f.length;c<u;c++)if(s.f[c]==e){s.f.splice(c,1);break}!s.f.length&&delete s.f}for(l in s.n)if(s.n[a](l)&&s.n[l].f){var b=s.n[l].f;for(c=0,u=b.length;c<u;c++)if(b[c]==e){b.splice(c,1);break}!b.length&&delete s.n[l].f}}else for(l in delete s.f,s.n)s.n[a](l)&&s.n[l].f&&delete s.n[l].f;s=s.n}t:for(n=0,i=v.length;n<i;n++){for(l in(s=v[n]).n[s.name].f)continue t;for(l in s.n[s.name].n)continue t;delete s.n[s.name]}}}else y._events=p={n:{}}},y.once=function(t,e){var r=function(){return y.off(t,r),e.apply(this,arguments)};return y.on(t,r)},y.version="0.5.4",y.toString=function(){return"You are running Eve 0.5.4"},r.eve=y,t.exports?t.exports=y:void 0===(n=function(){return y}.apply(e,[]))||(t.exports=n)}("undefined"!=typeof window?window:this)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(45)),s=n(r(3)),a=r(46),o={svg:{lib:i.default,pathInitial:"M-7.312,0H0c0,0,0,113.839,0,400c0,264.506,0,400,0,400h-7.312V0z",pathOpen:"M-7.312,0H15c0,0,66,113.339,66,399.5C81,664.006,15,800,15,800H-7.312V0z;M-7.312,0H100c0,0,0,113.839,0,400c0,264.506,0,400,0,400H-7.312V0z",animate:function(t){var e=0,r=this.pathOpen.split(";"),n=r.length,i=window.mina;!function s(){e>n-1||(t.animate({path:r[e]},0===e?400:500,0===e?i.easein:i.elastic,(function(){s()})),e++)}()}},morphShape:function(t,e,r){return{position:"absolute",width:"100%",height:"100%",right:r?"inherit":0,left:r?0:"inherit",MozTransform:r?"rotateY(180deg)":"rotateY(0deg)",MsTransform:r?"rotateY(180deg)":"rotateY(0deg)",OTransform:r?"rotateY(180deg)":"rotateY(0deg)",WebkitTransform:r?"rotateY(180deg)":"rotateY(0deg)",transform:r?"rotateY(180deg)":"rotateY(0deg)"}},menuWrap:function(t,e,r){return{MozTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:t?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:t?"transform 0.4s 0s":"transform 0.4s"}},menu:function(t,e,r){var n=(0,a.pxToNum)(e)-140;return{position:"fixed",MozTransform:t?"":r?"translate3d("+n+", 0, 0
9)":"translate3d(-"+n+", 0, 0)",MsTransform:t?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",OTransform:t?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",WebkitTransform:t?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transform:t?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transition:t?"opacity 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:t?1:0}},item:function(t,e,r,n){var i=(0,a.pxToNum)(e)-140;return{MozTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",OTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",transform:t?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",transition:t?"opacity 0.3s 0.4s, transform 0.3s 0.4s":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:t?1:0}},closeButton:function(t,e,r){var n=(0,a.pxToNum)(e)-140;return{MozTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",MsTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",OTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",WebkitTransform:t?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transform:t?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transition:t?"opacity 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:t?1:0}}};e.default=(0,s.default)(o),t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({pageWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",MsTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",OTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",WebkitTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(t){return{overflow:t?"":"hidden"}}}),t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({pageWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",MsTransform:t?"":r?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",OTransform:t?"":r?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",WebkitTransform:t?"":r?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",transform:t?"":r?"translate3d(-"+e+", 0, 0) rotateY(15deg)":"translate3d("+e+", 0, 0) rotateY(-15deg)",transformOrigin:r?"100% 50%":"0% 50%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(t){return{perspective:"1500px",overflow:t?"":"hidden"}}}),t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({pageWrap:function(t,e){return{MozTransform:t?"":"translate3d(0, 0, -"+e+")",MsTransform:t?"":"translate3d(0, 0, -"+e+")",OTransform:t?"":"translate3d(0, 0, -"+e+")",WebkitTransform:t?"":"translate3d(0, 0, -"+e+")",transform:t?"":"translate3d(0, 0, -"+e+")",transformOrigin:"100%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(){return{perspective:"1500px"}}}),t.exports=e.default},function(t,e,r){"use strict";
9Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({pageWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",MsTransform:t?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",OTransform:t?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",WebkitTransform:t?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transform:t?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transformStyle:"preserve-3d",transition:"all 0.5s",overflow:t?"":"hidden"}},outerContainer:function(t){return{perspective:"1500px",overflow:t?"":"hidden"}}}),t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({menuWrap:function(t){return{MozTransform:t?"":"translate3d(0, -100%, 0)",MsTransform:t?"":"translate3d(0, -100%, 0)",OTransform:t?"":"translate3d(0, -100%, 0)",WebkitTransform:t?"":"translate3d(0, -100%, 0)",transform:t?"":"translate3d(0, -100%, 0)",transition:"all 0.5s ease-in-out"}},pageWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",MsTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",OTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",WebkitTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(t){return{perspective:"1500px",perspectiveOrigin:"0% 50%",overflow:t?"":"hidden"}}}),t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3),s=(n=i)&&n.__esModule?n:{default:n};e.default=(0,s.default)({menuWrap:function(t,e,r){return{MozTransform:"translate3d(0, 0, 0)",MsTransform:"translate3d(0, 0, 0)",OTransform:"translate3d(0, 0, 0)",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",zIndex:t?1e3:-1}},overlay:function(t,e,r){return{zIndex:1400,MozTransform:t?r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:t?r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",OTransform:t?r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:t?r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",transform:t?r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.5s",visibility:t?"visible":"hidden"}},pageWrap:function(t,e,r){return{MozTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",MsTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",OTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",WebkitTransform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transform:t?"":r?"translate3d(-"+e+", 0, 0)":"translate3d("+e+", 0, 0)",transition:"all 0.5s",zIndex:1200,position:"relative"}},burgerIcon:function(t,e,r){return{MozTransform:t?r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:t?r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",OTransform:t?r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:t?r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",transform:t?r?"translate3d("+e+", 0, 0)":"translate3d(-"+e+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.1s",position:"relative",zIndex:1300}},outerContainer:function(t){return{overflow:t?"":"hidden"}}}),t.exports=e.default},function(t,e,r){"use strict";r.r(e);var n=r(1),i=r.n(n),s=r(0),a=r.n(s),o=r(47);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=d(t);if(e){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u(this,r)}}function u(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}
9function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(s,t);var e,r,n,i=c(s);function s(){return l(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"componentDidUpdate",value:function(t){var e=this.props.data;if(e&&e!==t.data){var r=e.mime_type?e.mime_type:this.props.mime_type,n=(e.base64?e.base64:this.props.base64)?Object(o.toByteArray)(e.content):e.content,i=new Blob([n],{type:r}),s=e.filename;if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(i,s);else{var a=document.createElement("a");document.body.appendChild(a);var h=window.URL.createObjectURL(i);a.href=h,a.download=s,a.click(),setTimeout((function(){window.URL.revokeObjectURL(h),document.body.removeChild(a)}),0)}}}},{key:"render",value:function(){return null}}])&&p(e.prototype,r),n&&p(e,n),s}(n.Component);m.defaultProps={mime_type:"text/plain",base64:!1},m.propTypes={id:a.a.string,data:a.a.shape({filename:a.a.string.isRequired,content:a.a.any.isRequired,base64:a.a.bool,mime_type:a.a.string}),base64:a.a.bool,mime_type:a.a.string,setProps:a.a.func};var y=r(48),g=r.n(y);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function x(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=C(t);if(e){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(a,t);var e,r,n,s=S(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=s.call(this,t)).myRef=i.a.createRef(),e.el=null,e}return e=a,(r=[{key:"componentDidMount",value:function(){this.el.ref.current.componentDidUpdate()}},{key:"shouldComponentUpdate",value:function(t){if(this.props.speed&&t.speed!==this.props.speed){var e=Object.assign({},this.el.ref.current.props);return e.speed=t.speed,this.el.ref.current.props=e,this.el.ref.current.componentDidUpdate(),!1}for(var r in t)if("loading_state"!==r&&this.props[r]!==t[r])return!0;return!1}},{key:"render",value:function(){if(this.props.url){var t=new XMLHttpRequest;t.open("GET",this.props.url,!1),t.send(null),this.props.options.animationData=JSON.parse(t.responseText)}return this.el=i.a.createElement(g.a,b({},this.props,{ref:this.myRef})),this.el}}])&&x(e.prototype,r),n&&x(e,n),a}(n.Component);function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}
9function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=D(t);if(e){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return M(this,r)}}function M(t,e){return!e||"object"!==w(e)&&"function"!=typeof e?F(t):e}function F(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}P.propTypes={id:a.a.string,children:a.a.node,className:a.a.string,options:a.a.object,url:a.a.string,width:a.a.string,height:a.a.string,isStopped:a.a.bool,isPaused:a.a.bool,speed:a.a.number,segments:a.a.arrayOf(a.a.number),direction:a.a.number,ariaRole:a.a.string,ariaLabel:a.a.string,isClickToPauseDisabled:a.a.bool,title:a.a.string,style:a.a.string};var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(s,t);var e,r,n,i=A(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,t)).keydownHandler=e.keydownHandler.bind(F(e)),e}return e=s,(r=[{key:"keydownHandler",value:function(t){(!this.props.captureKeys||this.props.captureKeys.indexOf(t.key)>-1)&&(this.props.setProps({keydown:this.props.eventProps.reduce((function(e,r){return e[r]=t[r],e}),{})}),this.props.setProps({n_keydowns:this.props.n_keydowns+1}))}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.keydownHandler,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.keydownHandler,!1)}},{key:"render",value:function(){return null}}])&&T(e.prototype,r),n&&T(e,n),s}(n.Component);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=N(t);if(e){var i=N(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return L(this,r)}}function L(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}I.defaultProps={eventProps:["key","altKey","ctrlKey","shiftKey","metaKey","repeat"],n_keydowns:0},I.propTypes={id:a.a.string,eventProps:a.a.arrayOf(a.a.string),captureKeys:a.a.arrayOf(a.a.string),setProps:a.a.func,keydown:a.a.object,n_keydowns:a.a.number};var z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(a,t);var e,r,n,s=V(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=s.call(this,t)).data={},e}return e=a,(r=[{key:"_loop_children_recursively",value:function(t,e){if(t)if(t.length)for(var r=0;r<t.length;r++)this._loop_children_recursively_inner(t[r],e);else this._loop_children_recursively_inner(t,e)}},{key:"_loop_children_recursively_inner",value:function(t,e){t.props&&(e(t),this._loop_children_recursively(t.props.children,e))}},{key:"_monitor",value:function(t,e){if(e)for(var r=this.props.probes[t],n=0;n<r.length;n++){var i=r[n].id?r[n].id:r[n][0],s=r[n].prop?r[n].prop:r[n][1];e.id===i&&s in e&&(this.data[t]&&this.data[t][i]&&this.data[t][i][s]&&this.data[t][i][s].value===e[s]||(this.data[t]=this.data[t]||{},this.data[t][i]=this.data[t][i]||{},this.data[t][i][s]={value:e[s],time:(new Date).getTime()}))}}},{key:"render",value:function(){var t=this;i.a.Children.map(this.props.children,(function(e){var r=function(r){var n=e.props._dashprivate_layout,i=n.props.children;t._monitor(r,n.props),t._loop_children_recursively(i,(function(e){return t._monitor(r,e.props)}))};for(var n in t.props.probes)r(n)}));var e={};for(var r in this.props.probes){var n=0;for(var s in this.data[r])for(var a in this.data[r][s]){var o=this.data[r][s][a];o.time>n&&(n=o.time,e[r]={value:o.value,trigger:{id:s,prop:a}})}}return this.props.setProps({data:e}),i.a.createElement("div",{className:this.props.className,style:this.props.style},this.props.children)}}])&&B(e.prototype,r),n&&B(e,n),a}(n.Component);z.defaultProps={}
9,z.propTypes={probes:a.a.objectOf(a.a.arrayOf(a.a.oneOfType([a.a.arrayOf(a.a.string),a.a.shape({id:a.a.string.isRequired,prop:a.a.any.isRequired})]))),data:a.a.object,id:a.a.string,setProps:a.a.func,children:a.a.arrayOf(a.a.node),style:a.a.object,className:a.a.string};var j=r(49),G=r.n(j);function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=X(t);if(e){var i=X(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return U(this,r)}}function U(t,e){return!e||"object"!==H(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function X(t){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W(t,e)}(a,t);var e,r,n,s=Y(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),s.call(this,t)}return e=a,(r=[{key:"render",value:function(){var t=this.props,e=t.width,r=t.height,n=t.className,s=t.style,a=t.id,o=t.children,h=t.overlay,l=t.position,p=t.effect,f={style:s,id:a,className:n,width:e,height:r,right:"right"===l,noOverlay:!h},c=G.a[p];return i.a.createElement(c,f,o)}}])&&q(e.prototype,r),n&&q(e,n),a}(n.Component);K.defaultProps={width:"300px",height:"100%",overlay:!0,position:"right",effect:"slide"},K.propTypes={children:a.a.node,style:a.a.object,id:a.a.string,width:a.a.string,height:a.a.string,position:a.a.oneOf("left","right"),effect:a.a.oneOf("slide","stack","elastic","bubble","push","pushRotate","scaleDown","scaleRotate","fallDown","reveal"),className:a.a.string,overlay:a.a.bool};var $=function(t,e){var r=void 0;return function(){var n=this,i=arguments,s=function(){return t.apply(n,i)};clearTimeout(r),r=setTimeout(s,e)}},J=function(){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};
9return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()};function Z(t){var e=0;return t.forEach((function(t){t.rect.height>e&&(e=t.rect.height)})),e}function Q(t){var e=t.rect,r=t.mode,n=(t.prevOffset,t.position),i=t.direction,s=t.width;if("chain"!==r)return!1;switch(i){case"toRight":return n.from>0;case"toLeft":default:return e.width+n.from<=s}}function tt(t){var e=t.mode,r=t.from,n=t.direction,i=t.rect,s=t.width,a=r||0;switch(e){case"await":switch(n){case"toRight":return s;case"toLeft":default:return-i.width}case"smooth":switch(n){case"toRight":return i.width>s?0:s-i.width;case"toLeft":default:return i.width>s?s-i.width:0}case"chain":default:switch(n){case"toRight":return 0;case"toLeft":default:return i.width+a>s?s-i.width:s-i.left-i.width}}}var et=function(t){var e=t.mode,r=t.index,n=t.rect,i=t.offset,s=t.width,a=t.direction,o=function(t){var e=t.index,r=t.rect,n=t.offset,i=t.width,s=t.direction;if(0===e)return n;if("number"==typeof n)return function(t){var e=t.rect,r=t.offset;switch(t.direction){case"toRight":return r-e.width;case"toLeft":default:return r}}({rect:r,offset:n,direction:s});switch(s){case"toRight":return-r.width;case"toLeft":default:return i}}({index:r,rect:n,offset:i,width:s,direction:a});return{from:o,to:function(t){var e=t.rect,r=t.width;switch(t.direction){case"toRight":return r;case"toLeft":default:return-e.width}}({rect:n,width:s,direction:a}),next:tt({mode:e,from:o,direction:a,rect:n,width:s})}};function rt(t){var e=t.from,r=t.rect;switch(t.direction){case"toRight":return e;case"toLeft":default:return e+r.width}}function nt(t){var e=t.offset,r=t.rect,n=t.direction,i=t.width;if("run-in"===e)switch(n){case"toRight":return-r.width;case"toLeft":default:return i}if("string"==typeof e){var s=Number(e.replace("%",""));if(s)return i/100*s}return e}var it=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},st=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),at=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ot=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ht=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},lt=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},pt=function(t){function e(){var t,r,n;it(this,e);for(var s=arguments.length,a=Array(s),o=0;o<s;o++)a[o]=arguments[o];return r=n=ht(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),n.state={children:n.props.children({index:n.props.index}),move:n.props.move,position:{from:void 0,to:void 0,next:void 0},offset:n.props.offset,rect:null},n.x=0,n.isMoving=!1,n.nextTriggered=!1,n.elementRef=i.a.createRef(),n.componentDidMount=function(){n.setPosition(!0),n.observer=new MutationObserver(n.onMutation),n.observer.observe(n.elementRef.current,{characterData:!0,childList:!0,subtree:!0})},n.componentWillUnmount=function(){n.observer.disconnect()},n.onMutation=function(){n.setPosition()},n.componentDidUpdate=function(t,e){n.x||e.position.from===n.state.position.from||(n.x=n.state.position.from,n.elementRef.current.style.transform="translate3d("+n.x+"px, 0, 0)"),n.x!==n.state.position.from&&t.prevRect&&n.props.prevRect&&t.prevRect.width!==n.props.prevRect.width&&(n.props.offset?n.x=n.x+(n.props.offset-t.offset):n.x=n.x+(n.props.prevRect.width-t.prevRect.width),n.elementRef.current.style.transform="translate3d("+n.x+"px, 0, 0)"),n.props.move&&!t.start&&n.props.start&&n.animate(),n.props.start&&!t.move&&n.props.move&&n.animate(),t.move&&!n.props.move&&(n.isMoving=!1)},n.setPosition=function(t){var e=n.props,r=e.mode,i=e.width,s=e.id,a=e.onNext,o=e.direction,h=e.index,l=e.setRect,p=n.elementRef.current.getBoundingClientRect();if(0!==p.width){var f=0===n.props.index?nt({offset:n.props.offset,rect:p,direction:o,width:i}):n.props.offset,c=et({mode:r,rect:p,index:h,offset:f,width:i,direction:o});if(l({index:n.props.index,rect:p,offset:f,nextOffset:rt({from:c.from,rect:p,direction:o})}),t){var u=Q({mode:r,rect:p,position:c,offset:f,direction:o,width:i});u&&a({id:s,index:h,rect:p,nextOffset:rt({from:c.from,rect:p,direction:o})}),u||!f&&0!==h||a({id:s,index:h,rect:p}),n.nextTriggered=u}
9n.setState({rect:p,offset:f,position:c})}},n.shouldTriggerNext=function(){return!n.nextTriggered&&("toLeft"===n.props.direction?n.x<=n.state.position.next:n.x>=n.state.position.next)},n.triggerNext=function(){n.shouldTriggerNext()&&(n.nextTriggered=!0,n.props.onNext({id:n.props.id,index:n.props.index,rect:n.state.rect}))},n.shouldFinish=function(){switch(n.props.direction){case"toRight":return n.x>=n.state.position.to;case"toLeft":default:return n.x<=n.state.position.to}},n.animate=function(){if(!n.isMoving){n.isMoving=!0;var t=null;window.requestAnimationFrame((function e(r){if(n.isMoving&&n.elementRef.current){var i=t?r-t:0;n.x="toLeft"===n.props.direction?n.x-i/100*n.props.speed:n.x+i/100*n.props.speed,n.elementRef.current.style.transform="translate3d("+n.x+"px, 0, 0)",n.triggerNext(),n.shouldFinish()?(n.isMoving=!1,t=null,n.props.onFinish(n.props.id)):(t=r,window.requestAnimationFrame(e))}}))}},n.render=function(){return i.a.createElement("div",{className:"ticker__element",style:{willChange:"transform",position:"absolute",left:0,top:0,transform:"translate3d("+n.x+"px, 0, 0)"},ref:n.elementRef},n.state.children)},ht(n,r)}return ot(e,t),e}(i.a.Component);pt.propTypes={children:Object(s.oneOfType)([s.node,s.func]).isRequired,direction:s.string.isRequired,speed:s.number.isRequired,id:s.string.isRequired,index:s.number.isRequired,mode:s.string.isRequired,move:s.bool.isRequired,onNext:s.func.isRequired,onFinish:s.func.isRequired,setRect:s.func.isRequired,start:s.bool.isRequired,offset:Object(s.oneOfType)([s.number,s.string]),prevRect:s.object,width:s.number},pt.defaultProps={offset:void 0,width:void 0,prevRect:null};var ft=function(t,e){return{elements:[{id:J(),index:0,height:0,start:!1,offset:t,rect:null,prevRect:null}],width:e,height:0}},ct=function(t){function e(){var t,r,n;it(this,e);for(var s=arguments.length,a=Array(s),o=0;o<s;o++)a[o]=arguments[o];return r=n=ht(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),n.next=null,n.state=ft(n.props.offset),n.tickerRef=i.a.createRef(),n.dOnResize=$((function(){return n.onResize()}),150),n.componentDidMount=function(){n.setState({width:n.tickerRef.current.offsetWidth,height:n.props.height}),window.addEventListener("resize",n.dOnResize)},n.componentWillUnmount=function(){window.removeEventListener("resize",n.dOnResize)},n.setRect=function(t){var e=t.index,r=t.rect,i=(t.offset,t.nextOffset);n.setState((function(t){var s=t.elements.map((function(t){var n=t;return t.index===e&&(n.rect=r),t.index===e+1&&(n.prevRect=r,n.offset&&(n.offset=i)),n}));return{elements:s,height:n.props.height?t.height:Z(s)}}))},n.onResize=function(){n.tickerRef.current&&n.tickerRef.current.offsetWidth!==n.state.width&&n.setState(at({},ft(n.props.offset,n.tickerRef.current.offsetWidth),{height:n.props.height}))},n.onFinish=function(t){n.setState((function(e){return{elements:e.elements.filter((function(e){return e.id!==t}))}}))},n.onNext=function(t){t.id;var e=t.index,r=t.rect,i=t.nextOffset;n.setState((function(t){return{elements:[].concat(lt(t.elements.map((function(t){var n=t;return t.index===e&&(n.rect=r),(0===t.index||t.offset||n.index===e+1)&&(n.start=!0),n}))),[{id:J(),index:t.elements[t.elements.length-1].index+1,height:0,start:!1,offset:i,rect:null,prevRect:r}])}}))},ht(n,r)}return ot(e,t),st(e,[{key:"render",value:function(){var t=this;return i.a.createElement("div",{className:"ticker",ref:this.tickerRef,style:{position:"relative",overflow:"hidden",height:this.state.height&&this.state.height+"px"}},this.state.width&&this.state.elements.map((function(e){return i.a.createElement(pt,{key:e.id,id:e.id,index:e.index,start:e.start,offset:e.offset,prevRect:e.prevRect,direction:t.props.direction,mode:t.props.mode,move:t.props.move,speed:t.props.speed,onFinish:t.onFinish,onNext:t.onNext,setRect:t.setRect,width:t.state.width},t.props.children)})))}}]),e}(i.a.Component);ct.propTypes={children:Object(s.oneOfType)([s.node,s.func]).isRequired,direction:s.string,mode:s.string,move:s.bool,offset:Object(s.oneOfType)([s.number,s.string]),speed:s.number,height:Object(s.oneOfType)([s.number,s.string])},ct.defaultProps={offset:0,speed:5,direction:"toLeft",mode:"chain",move:!0,height:void 0};var ut=ct;function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gt(t,e){return(gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=xt(t);if(e){var i=xt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return bt(this,r)}}function bt(t,e){return!e||"object"!==dt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gt(t,e)}(a,t);var e,r,n,s=vt(a);function a(){return mt(this,a),s.apply(this,arguments)}return e=a,(r=[{key:"render",value:function(){var t=this;return i.a.createElement(ut,this.props,(function(e){return e.index,i.a.createElement(i.a.Fragment,null,t.props.children)}))}}])&&yt(e.prototype,r),n&&yt(e,n),a}(n.Component);function St(t){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ct(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Pt(t,e){return(Pt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=kt(t);if(e){var i=kt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Tt(this,r)}}function Tt(t,e){return!e||"object"!==St(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function kt(t){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Et.propTypes={direction:a.a.oneOf(["toRight","toLeft"]),mode:a.a.oneOf(["chain","await","smooth"]),move:a.a.bool,offset:a.a.oneOfType([a.a.number,a.a.string]),speed:a.a.number,height:a.a.oneOfType([a.a.number,a.a.string]),id:a.a.string,children:a.a.node,className:a.a.string};var At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pt(t,e)}(s,t);var e,r,n,i=wt(s);function s(){return _t(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"_init_client",value:function(){var t=this,e=this.props.url,r=this.props.protocols;e=e||"ws://"+location.host+"/ws",this.client=new WebSocket(e,r),this.client.onopen=function(e){t.props.setProps({state:{readyState:WebSocket.OPEN,isTrusted:e.isTrusted,timeStamp:e.timeStamp,origin:e.origin}})},this.client.onmessage=function(e){t.props.setProps({message:{data:e.data,isTrusted:e.isTrusted,origin:e.origin,timeStamp:e.timeStamp}})},this.client.onerror=function(e){t.props.setProps({error:JSON.stringify(e)})},this.client.onclose=function(e){t.props.setProps({state:{readyState:WebSocket.CLOSED,isTrusted:e.isTrusted,timeStamp:e.timeStamp,co
9de:e.code,reason:e.reason,wasClean:e.wasClean}})}}},{key:"componentDidMount",value:function(){this._init_client()}},{key:"componentDidUpdate",value:function(t){var e=this.props.send;e&&e!==t.send&&this.props.state.readyState===WebSocket.OPEN&&this.client.send(e)}},{key:"componentWillUnmount",value:function(){this.client.close()}},{key:"render",value:function(){return null}}])&&Ct(e.prototype,r),n&&Ct(e,n),s}(n.Component);At.defaultProps={state:{readyState:WebSocket.CONNECTING}},At.propTypes={state:a.a.object,message:a.a.object,error:a.a.object,send:a.a.object,url:a.a.string,protocols:a.a.arrayOf(a.a.string),id:a.a.string,setProps:a.a.func},r.d(e,"Download",(function(){return m})),r.d(e,"Lottie",(function(){return P})),r.d(e,"Keyboard",(function(){return I})),r.d(e,"Monitor",(function(){return z})),r.d(e,"Burger",(function(){return K})),r.d(e,"WebSocket",(function(){return At})),r.d(e,"Ticker",(function(){return Et}))}]);
10//# sourceMappingURL=dash_extensions.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.