@eva/plugin-renderer-lottie 2.0.1-beta.4 → 2.0.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var i in s)({}).hasOwnProperty.call(s,i)&&(t[i]=s[i])}return t},_extends.apply(null,arguments)}function ownKeys(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(s),!0).forEach((function(e){_defineProperty(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function _defineProperty(t,e,s){return(e=_toPropertyKey2(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function _toPropertyKey2(t){var e=_toPrimitive2(t,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive2(t,e){if("object"!=typeof t||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}globalThis.EVA=globalThis.EVA||{},globalThis.EVA.plugin=globalThis.EVA.plugin||{},globalThis.EVA.plugin.renderer=globalThis.EVA.plugin.renderer||{};var _EVA_IIFE_lottie=function(t,e,s,i){"use strict";function a(t,e,s,i){return new(s||(s=Promise))((function(a,r){function n(t){try{o(i.next(t))}catch(t){r(t)}}function h(t){try{o(i.throw(t))}catch(t){r(t)}}function o(t){var e;t.done?a(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(n,h)}o((i=i.apply(t,e||[])).next())}))}function r(t,e,s){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,s||[],l(t).constructor):e.apply(t,s))}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var s=0;s<e.length;s++){var i=e[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function o(t,e,s){return e&&h(t.prototype,e),s&&h(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function p(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var d,m=o((function t(){n(this,t)}),[{key:"outTypeExpressionMode",value:function(){this._hasOutTypeExpression=!0,this.container&&this.container.outTypeExpressionMode()}},{key:"addDynamicProperty",value:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0,t._hasOutTypeExpression&&this.outTypeExpressionMode())}},{key:"iterateDynamicProperties",value:function(t){this._mdf=!1;for(var e=this.dynamicProperties.length,s=0;s<e;s+=1)this.dynamicProperties[s].getValue(t),this.dynamicProperties[s]._mdf&&(this._mdf=!0)}},{key:"initDynamicPropertyContainer",value:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1,this._hasOutTypeExpression=!1}}]);function v(t){return new Array(t)}d="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 s,i=0,a=[];switch(t){case"int16":case"uint8c":s=1;break;default:s=1.1}for(i=0;i<e;i+=1)a.push(s);return a};var y=.1,g="function"==typeof Float32Array;function _(t,e){return 1-3*e+3*t}function k(t,e){return 3*e-6*t}function x(t){return 3*t}function S(t,e,s){return((_(e,s)*t+k(e,s))*t+x(e))*t}function P(t,e,s){return 3*_(e,s)*t*t+2*k(e,s)*t+x(e)}function T(t,e,s,i){this.mX1=t,this.mY1=e,this.mX2=s,this.mY2=i,this.sampleValues=g?new Float32Array(11):new Array(11),this._preCompute(),this.get=this.get.bind(this)}T.prototype._preCompute=function(){if(this.mX1!==this.mY1||this.mX2!==this.mY2)for(var t=0;t<11;++t)this.sampleValues[t]=S(t*y,this.mX1,this.mX2)},T.prototype._getTForX=function(t){for(var e=0,s=1;10!==s&&this.sampleValues[s]<=t;++s)e+=y;--s;var i=e+(t-this.sampleValues[s])/(this.sampleValues[s+1]-this.sampleValues[s])*y,a=P(i,this.mX1,this.mX2);return a>=.001?function(t,e,s,i){for(var a=0;a<4;++a){var r=P(e,s,i);if(0===r)return e;e-=(S(e,s,i)-t)/r}return e}(t,i,this.mX1,this.mX2):0===a?i:function(t,e,s,i,a){var r,n,h=0;do{(r=S(n=e+(s-e)/2,i,a)-t)>0?s=n:e=n}while(Math.abs(r)>1e-7&&++h<10);return n}(t,e,e+y,this.mX1,this.mX2)},T.prototype.get=function(t){return this.mX1===this.mY1&&this.mX2===this.mY2?t:0===t?0:1===t?1:S(this._getTForX(t),this.mY1,this.mY2)};var L={};var M={getBezierEasing:function(t,e,s,i,a){var r=a||("bez_"+t+"_"+e+"_"+s+"_"+i).replace(/\./g,"p");if(L[r])return L[r];var n=new T(t,e,s,i);return L[r]=n,n}};var w={double:function(t){return t.concat(v(t.length))}},b=function(t,e,s){var i=0,a=t,r=v(a);return{newElement:function(){var t;t=i?r[i-=1]:e();return t},release:function(t){i===a&&(r=w.double(r),a*=2);s&&s(t);r[i]=t,i+=1}}};var C=b(8,(function(){return{addedLength:0,percents:d("float32",200),lengths:d("float32",200)}}));var D=b(8,(function(){return{lengths:[],totalLength:0}}),(function(t){for(var e=t.lengths.length,s=0;s<e;s+=1)C.release(t.lengths[s]);t.lengths.length=0}));function A(t,e,s,i,a,r){var n=t*i+e*a+s*r-a*i-r*t-s*e;return n>-.001&&n<.001}function I(t,e,s,i){for(var a,r=0,n=[],h=[],o=C.newElement(),l=s.length,p=0;p<200;p+=1){var u=p/199;a=0;for(var f=0;f<l;f+=1)n[f]=Math.pow(1-u,3)*t[f]+3*Math.pow(1-u,2)*u*s[f]+3*(1-u)*Math.pow(u,2)*i[f]+Math.pow(u,3)*e[f],null!==h[f]&&(a+=Math.pow(n[f]-h[f],2)),h[f]=n[f];a&&(r+=a=Math.sqrt(a)),o.percents[p]=u,o.lengths[p]=r}return o.addedLength=r,o}function F(t){this.segmentLength=0,this.points=new Array(t)}function O(t,e){this.partialLength=t,this.point=e}var E={};function V(t,e){var s=e.percents,i=e.lengths,a=s.length,r=Math.floor((a-1)*t),n=t*e.addedLength,h=0;if(r===a-1||0===r||n===i[r])return s[r];for(var o=i[r]>n?-1:1,l=!0;l;)if(i[r]<=n&&i[r+1]>n?(h=(n-i[r])/(i[r+1]-i[r]),l=!1):r+=o,r<0||r>=a-1){if(r===a-1)return s[r];l=!1}return s[r]+(s[r+1]-s[r])*h}var N=d("float32",8);var j={getSegmentsLength:function(t){for(var e=D.newElement(),s=t.c,i=t.v,a=t.o,r=t.i,n=t._length,h=e.lengths,o=0,l=0;l<n-1;l+=1)h[l]=I(i[l],i[l+1],a[l],r[l+1]),o+=h[l].addedLength;return s&&n&&(h[l]=I(i[l],i[0],a[l],r[0]),o+=h[l].addedLength),e.totalLength=o,e},getNewSegment:function(t,e,s,i,a,r,n){for(var h=V(a=a<0?0:a>1?1:a,n),o=V(r=r>1?1:r,n),l=t.length,p=1-h,u=1-o,f=p*p*p,c=h*p*p*3,d=h*h*p*3,m=h*h*h,v=p*p*u,y=h*p*u+p*h*u+p*p*o,g=h*h*u+p*h*o+h*p*o,_=h*h*o,k=p*u*u,x=h*u*u+p*o*u+p*u*o,S=h*o*u+p*o*o+h*u*o,P=h*o*o,T=u*u*u,L=o*u*u+u*o*u+u*u*o,M=o*o*u+u*o*o+o*u*o,w=o*o*o,b=0;b<l;b+=1)N[4*b]=Math.round(1e3*(f*t[b]+c*s[b]+d*i[b]+m*e[b]))/1e3,N[4*b+1]=Math.round(1e3*(v*t[b]+y*s[b]+g*i[b]+_*e[b]))/1e3,N[4*b+2]=Math.round(1e3*(k*t[b]+x*s[b]+S*i[b]+P*e[b]))/1e3,N[4*b+3]=Math.round(1e3*(T*t[b]+L*s[b]+M*i[b]+w*e[b]))/1e3;return N},getPointInSegment:function(t,e,s,i,a,r){var n=V(a,r),h=1-n;return[Math.round(1e3*(h*h*h*t[0]+(n*h*h+h*n*h+h*h*n)*s[0]+(n*n*h+h*n*n+n*h*n)*i[0]+n*n*n*e[0]))/1e3,Math.round(1e3*(h*h*h*t[1]+(n*h*h+h*n*h+h*h*n)*s[1]+(n*n*h+h*n*n+n*h*n)*i[1]+n*n*n*e[1]))/1e3]},buildBezierData:function(t,e,s,i){var a=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+s[0]+"_"+s[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!E[a]){var r,n,h=200,o=0,l=null;2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&A(t[0],t[1],e[0],e[1],t[0]+s[0],t[1]+s[1])&&A(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(h=2);for(var p=new F(h),u=s.length,f=0;f<h;f+=1){n=v(u);var c=f/(h-1);r=0;for(var d=0;d<u;d+=1)n[d]=Math.pow(1-c,3)*t[d]+3*Math.pow(1-c,2)*c*(t[d]+s[d])+3*(1-c)*Math.pow(c,2)*(e[d]+i[d])+Math.pow(c,3)*e[d],null!==l&&(r+=Math.pow(n[d]-l[d],2));o+=r=Math.sqrt(r),p.points[f]=new O(r,n),l=n}p.segmentLength=o,E[a]=p}return E[a]},pointOnLine2D:A,pointOnLine3D:function(t,e,s,i,a,r,n,h,o){if(0===s&&0===r&&0===o)return A(t,e,i,a,n,h);var l,p=Math.sqrt(Math.pow(i-t,2)+Math.pow(a-e,2)+Math.pow(r-s,2)),u=Math.sqrt(Math.pow(n-t,2)+Math.pow(h-e,2)+Math.pow(o-s,2)),f=Math.sqrt(Math.pow(n-i,2)+Math.pow(h-a,2)+Math.pow(o-r,2));return(l=p>u?p>f?p-u-f:f-u-p:f>u?f-u-p:u-p-f)>-1e-4&&l<1e-4}},z=-999999,q=Math.PI/180,R=[0,0];function B(t){return Object.prototype.toString.call(t)}var X,Y={copyJSON:function(t){return JSON.parse(JSON.stringify(t))},isArray:(X=B([]),function(t){return B(t)===X}),isString:function(){var t=B("s");return function(e){return B(e)===t}}(),isNumber:function(){var t=B(1);return function(e){return B(e)===t}}(),isFunction:function(){var t=B((function(){}));return function(e){return B(e)===t}}(),isUndefined:function(t){return void 0===t},isBoolean:function(){var t=B(!0);return function(e){return B(e)===t}}(),isObject:function(){var t=B({});return function(e){return B(e)===t}}(),random:function(t,e){return this.isArray(t)?t[~~(Math.random()*t.length)]:(this.isNumber(e)||(e=t||1,t=0),t+Math.random()*(e-t))},euclideanModulo:function(t,e){return(t%e+e)%e},codomainBounce:function(t,e,s){return t<e?2*e-t:t>s?2*s-t:t},clamp:function(t,e,s){return t<e?e:t>s?s:t},inRange:function(t,e,s){return t>=e&&t<=s},getAssets:function(t,e){for(var s=0;s<e.length;s++)if(t===e[s].id)return e[s];return console.error("have not assets name as",t),{}},rgb2hex:function(t){return(t[0]<<16)+(t[1]<<8)+(0|t[2])}},W=/(loopIn|loopOut)\(([^)]+)/,H=/["']\w+["']/,U=o((function t(e,s,i){n(this,t),this.begin=s,this.end=i,this.total=this.end-this.begin,this.type=e}),[{key:"update",value:function(t){return"in"===this.type?t>=this.begin?t:this.end-Y.euclideanModulo(this.begin-t,this.total):"out"===this.type?t<=this.end?t:this.begin+Y.euclideanModulo(t-this.end,this.total):void 0}}]),G=o((function t(e,s,i){n(this,t),this.begin=s,this.end=i,this.total=this.end-this.begin,this.type=e}),[{key:"update",value:function(t){if("in"===this.type&&t<this.begin||"out"===this.type&&t>this.end){var e=t-this.end;return this.pingpong(e)}return t}},{key:"pingpong",value:function(t){return Math.floor(t/this.total)%2?this.begin+Y.euclideanModulo(t,this.total):this.end-Y.euclideanModulo(t,this.total)}}]),K={loopIn:function(t,e,s){var i=t[0].t,a=t.length-1,r=t[Math.min(a,s)].t;switch(e){case"cycle":return new U("in",i,r);case"pingpong":return new G("in",i,r)}return null},loopOut:function(t,e,s){var i=t.length-1,a=t[Math.max(0,i-s)].t,r=t[i].t;switch(e){case"cycle":return new U("out",a,r);case"pingpong":return new G("out",a,r)}return null}};function J(t){var e=t.match(W),s=e[2].split(/\s*,\s*/).map((function(t){return H.test(t)?t.replace(/"|'/g,""):parseInt(t)}));return{name:e[1],mode:s[0],offset:s[1]}}var Q={hasSupportExpression:function(t){return t.x&&W.test(t.x)},getExpression:function(t){var e=J(t.x),s=e.name,i=e.mode,a=e.offset,r=void 0===a?0:a,n=0===r?t.k.length-1:r;return K[s]&&K[s](t.k,i,n)}};function Z(t){var e=t[0]*q,s=t[1]*q,i=t[2]*q,a=Math.cos(e/2),r=Math.cos(s/2),n=Math.cos(i/2),h=Math.sin(e/2),o=Math.sin(s/2),l=Math.sin(i/2);return[h*o*n+a*r*l,h*r*n+a*o*l,a*o*n-h*r*l,a*r*n-h*o*l]}var $=o((function t(){n(this,t)}),[{key:"interpolateValue",value:function(t,e){var s;"multidimensional"===this.propType&&(s=d("float32",this.pv.length));for(var i,a,r,n,h,o,l,p,u=e.lastIndex,f=u,c=this.keyframes.length-1,m=!0;m;){if(i=this.keyframes[f],a=this.keyframes[f+1],f===c-1&&t>=a.t){i.h&&(i=a),u=0;break}if(a.t>t){u=f;break}f<c-1?f+=1:(u=0,m=!1)}var v,y,g,_,k,x,S,P,T,L,w,b,C,D,A,I,F,O,E=a.t,V=i.t;if(i.to){i.bezierData||(i.bezierData=j.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var N=i.bezierData;if(t>=E||t<V){var z=t>=E?N.points.length-1:0;for(n=N.points[z].point.length,r=0;r<n;r+=1)s[r]=N.points[z].point[r]}else{i.__fnct?p=i.__fnct:(p=M.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,i.__fnct=p),h=p((t-V)/(E-V));var R,B=N.segmentLength*h,X=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(l=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,m=!0,o=N.points.length;m;){if(X+=N.points[l].partialLength,0===B||0===h||l===N.points.length-1){for(n=N.points[l].point.length,r=0;r<n;r+=1)s[r]=N.points[l].point[r];break}if(B>=X&&B<X+N.points[l+1].partialLength){for(R=(B-X)/N.points[l+1].partialLength,n=N.points[l].point.length,r=0;r<n;r+=1)s[r]=N.points[l].point[r]+(N.points[l+1].point[r]-N.points[l].point[r])*R;break}l<o-1?l+=1:m=!1}e._lastPoint=l,e._lastAddedLength=X-N.points[l].partialLength,e._lastKeyframeIndex=f}}else{var Y,W,H,U,G;if(c=i.s.length,v=a.s||i.e,this.sh&&1!==i.h)if(t>=E)s[0]=v[0],s[1]=v[1],s[2]=v[2];else if(t<=V)s[0]=i.s[0],s[1]=i.s[1],s[2]=i.s[2];else{var K=Z(i.s),J=Z(v);!function(t,e){var s=e[0],i=e[1],a=e[2],r=e[3],n=Math.atan2(2*i*r-2*s*a,1-2*i*i-2*a*a),h=Math.asin(2*s*i+2*a*r),o=Math.atan2(2*s*r-2*i*a,1-2*s*s-2*a*a);t[0]=n/q,t[1]=h/q,t[2]=o/q}(s,(y=K,g=J,_=(t-V)/(E-V),L=[],w=y[0],b=y[1],C=y[2],D=y[3],A=g[0],I=g[1],F=g[2],O=g[3],(x=w*A+b*I+C*F+D*O)<0&&(x=-x,A=-A,I=-I,F=-F,O=-O),1-x>1e-6?(k=Math.acos(x),S=Math.sin(k),P=Math.sin((1-_)*k)/S,T=Math.sin(_*k)/S):(P=1-_,T=_),L[0]=P*w+T*A,L[1]=P*b+T*I,L[2]=P*C+T*F,L[3]=P*D+T*O,L))}else for(f=0;f<c;f+=1)1!==i.h&&(t>=E?h=1:t<V?h=0:(i.o.x.constructor===Array?(i.__fnct||(i.__fnct=[]),i.__fnct[f]?p=i.__fnct[f]:(Y=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],W=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],H=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],U=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],p=M.getBezierEasing(Y,W,H,U).get,i.__fnct[f]=p)):i.__fnct?p=i.__fnct:(Y=i.o.x,W=i.o.y,H=i.i.x,U=i.i.y,p=M.getBezierEasing(Y,W,H,U).get,i.__fnct=p),h=p((t-V)/(E-V)))),v=a.s||i.e,G=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*h,"multidimensional"===this.propType?s[f]=G:s=G}return e.lastIndex=u,s}},{key:"getValueAtCurrentTime",value:function(t){this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0;var e=this.interpolateValue(t,this._caching);return this.pv=e,this._caching.lastFrame=t,this.pv}},{key:"setVValue",value:function(t){var e;if("unidimensional"===this.propType)e=t*this.mult,Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,i=this.v.length;s<i;)e=t[s]*this.mult,Math.abs(this.v[s]-e)>1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}},{key:"processEffectsSequence",value:function(t){if(this._mdf=!1,this.expression&&(t=this.expression.update(t)),t!==this.frameId&&this.effectsSequence.length){var e,s=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<s;e+=1)i=this.effectsSequence[e](t);this.setVValue(i),this.frameId=t}}},{key:"addEffect",value:function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}}]),tt=function(t){function e(t,s,i,a){var h;return n(this,e),(h=r(this,e)).propType="unidimensional",h.mult=i||1,h.data=s,h.v=i?s.k*i:s.k,h.pv=s.k,h._mdf=!1,h.elem=t,h.container=a,h.k=!1,h.kf=!1,h.effectsSequence=[],h.getValue=h.processEffectsSequence,h}return p(e,t),o(e,[{key:"updateValue",value:function(t){this.pv=t,this.v=t*this.mult}}])}($),et=function(t){function e(t,s,i,a){var h;n(this,e),(h=r(this,e)).propType="multidimensional",h.mult=i||1,h.data=s,h._mdf=!1,h.elem=t,h.container=a,h.comp=t.comp,h.k=!1,h.kf=!1,h.frameId=-1;var o=s.k.length;h.v=d("float32",o),h.pv=d("float32",o);for(var l=0;l<o;l+=1)h.v[l]=s.k[l]*h.mult,h.pv[l]=s.k[l];return h.effectsSequence=[],h.getValue=h.processEffectsSequence,h}return p(e,t),o(e,[{key:"updateValue",value:function(t){for(var e=t.length,s=0;s<e;s+=1)this.v[s]=t[s]*this.mult,this.pv[s]=t[s]}}])}($),st=function(t){function e(t,s,i,a){var h;return n(this,e),(h=r(this,e)).propType="unidimensional",h.keyframes=s.k,h.frameId=-1,h._caching={lastFrame:z,lastIndex:0,value:0,_lastKeyframeIndex:-1},h.k=!0,h.kf=!0,h.data=s,h.mult=i||1,h.elem=t,h.container=a,h.comp=t.comp,h.v=z*h.mult,h.pv=z,h.getValue=h.processEffectsSequence,h.effectsSequence=[h.getValueAtCurrentTime.bind(h)],h._hasOutTypeExpression=!1,Q.hasSupportExpression(s)&&(h.expression=Q.getExpression(s),h._hasOutTypeExpression="out"===h.expression.type),h}return p(e,t),o(e)}($),it=function(t){function e(t,s,i,a){var h,o;n(this,e),(h=r(this,e)).propType="multidimensional";var l,p,u,f,c=s.k.length;for(o=0;o<c-1;o+=1)s.k[o].to&&s.k[o].s&&s.k[o+1]&&s.k[o+1].s&&(l=s.k[o].s,p=s.k[o+1].s,u=s.k[o].to,f=s.k[o].ti,(2===l.length&&(l[0]!==p[0]||l[1]!==p[1])&&j.pointOnLine2D(l[0],l[1],p[0],p[1],l[0]+u[0],l[1]+u[1])&&j.pointOnLine2D(l[0],l[1],p[0],p[1],p[0]+f[0],p[1]+f[1])||3===l.length&&(l[0]!==p[0]||l[1]!==p[1]||l[2]!==p[2])&&j.pointOnLine3D(l[0],l[1],l[2],p[0],p[1],p[2],l[0]+u[0],l[1]+u[1],l[2]+u[2])&&j.pointOnLine3D(l[0],l[1],l[2],p[0],p[1],p[2],p[0]+f[0],p[1]+f[1],p[2]+f[2]))&&(s.k[o].to=null,s.k[o].ti=null),l[0]===p[0]&&l[1]===p[1]&&0===u[0]&&0===u[1]&&0===f[0]&&0===f[1]&&(2===l.length||l[2]===p[2]&&0===u[2]&&0===f[2])&&(s.k[o].to=null,s.k[o].ti=null));h.effectsSequence=[h.getValueAtCurrentTime.bind(h)],h.keyframes=s.k,h.k=!0,h.kf=!0,h.mult=i||1,h.elem=t,h.container=a,h.comp=t.comp,h.getValue=h.processEffectsSequence,h.frameId=-1;var m=s.k[0].s.length;for(h.v=d("float32",m),h.pv=d("float32",m),o=0;o<m;o+=1)h.v[o]=z*h.mult,h.pv[o]=z;return h._caching={lastFrame:z,lastIndex:0,value:d("float32",m)},h._hasOutTypeExpression=!1,Q.hasSupportExpression(s)&&(h.expression=Q.getExpression(s),h._hasOutTypeExpression="out"===h.expression.type),h}return p(e,t),o(e)}($);var at={getProp:function(t,e,s,i,a){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new et(t,e,i,a);else switch(s){case 0:r=new st(t,e,i,a);break;case 1:r=new it(t,e,i,a)}else r=new tt(t,e,i,a);return r.effectsSequence.length&&a.addDynamicProperty(r),r}},rt=function(t){function e(t,s){var i;if(n(this,e),(i=r(this,e)).elem=t,i.frameId=-1,i.propType="transform",i.data=s,i.autoOriented=!1,i.orientation=0,i.initDynamicPropertyContainer(t),s.p&&s.p.s?(i.px=at.getProp(t,s.p.x,0,0,i),i.py=at.getProp(t,s.p.y,0,0,i),s.p.z&&(i.pz=at.getProp(t,s.p.z,0,0,i))):i.p=at.getProp(t,s.p||{k:[0,0,0]},1,0,i),s.rx){if(i.rx=at.getProp(t,s.rx,0,q,i),i.ry=at.getProp(t,s.ry,0,q,i),i.rz=at.getProp(t,s.rz,0,q,i),s.or.k[0].ti){var a,h=s.or.k.length;for(a=0;a<h;a+=1)s.or.k[a].to=s.or.k[a].ti=null}i.or=at.getProp(t,s.or,1,q,i),i.or.sh=!0}else i.r=at.getProp(t,s.r||{k:0},0,q,i);return s.sk&&(i.sk=at.getProp(t,s.sk,0,q,i),i.sa=at.getProp(t,s.sa,0,q,i)),i.a=at.getProp(t,s.a||{k:[0,0,0]},1,0,i),i.s=at.getProp(t,s.s||{k:[100,100,100]},1,.01,i),s.o?i.o=at.getProp(t,s.o,0,.01,i):i.o={_mdf:!1,v:1},i.dynamicProperties.length||i.getValue(z,!0),i}return p(e,t),o(e,[{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.iterateDynamicProperties(t),this.autoOriented&&this._mdf&&this.updateOrientation(),this.frameId=t)}},{key:"updateOrientation",value:function(){var t=R,e=R,s=this.elem.session.global.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame<=this.p.keyframes[0].t?(t=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),e=this.p.getValueAtTime(this.p.keyframes[0].t/s,0)):this.p._caching.lastFrame>=this.p.keyframes[this.p.keyframes.length-1].t?(t=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),e=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(t=this.p.pv,e=this.p.getValueAtTime((this.p._caching.lastFrame-.01)/s,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){t=[],e=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(t[0]=i.getValueAtTime((i.keyframes[0].t+.01)/s,0),t[1]=a.getValueAtTime((a.keyframes[0].t+.01)/s,0),e[0]=i.getValueAtTime(i.keyframes[0].t/s,0),e[1]=a.getValueAtTime(a.keyframes[0].t/s,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(t[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/s,0),t[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/s,0),e[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/s,0),e[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/s,0)):(t=[i.pv,a.pv],e[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/s,i.offsetTime),e[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/s,a.offsetTime))}this.orientation=-Math.atan2(t[1]-e[1],t[0]-e[0])}}])}(m);var nt=b(8,(function(){return d("float32",2)})),ht=function(){function t(){n(this,t),this.c=!1,this._length=0,this._maxLength=8,this.v=v(this._maxLength),this.o=v(this._maxLength),this.i=v(this._maxLength)}return o(t,[{key:"setPathData",value:function(t,e){this.c=t,this.setLength(e);for(var s=0;s<e;)this.v[s]=nt.newElement(),this.o[s]=nt.newElement(),this.i[s]=nt.newElement(),s+=1}},{key:"setLength",value:function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t}},{key:"doubleArrayLength",value:function(){this.v=this.v.concat(v(this._maxLength)),this.i=this.i.concat(v(this._maxLength)),this.o=this.o.concat(v(this._maxLength)),this._maxLength*=2}},{key:"setXYAt",value:function(t,e,s,i,a){var r;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o}(!r[i]||r[i]&&!a)&&(r[i]=nt.newElement()),r[i][0]=t,r[i][1]=e}},{key:"setTripleAt",value:function(t,e,s,i,a,r,n,h){this.setXYAt(t,e,"v",n,h),this.setXYAt(s,i,"o",n,h),this.setXYAt(a,r,"i",n,h)}},{key:"reverse",value:function(){var e=new t;e.setPathData(this.c,this._length);var s=this.v,i=this.o,a=this.i,r=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),r=1);for(var n=this._length-1,h=this._length,o=r;o<h;o+=1)e.setTripleAt(s[n][0],s[n][1],a[n][0],a[n][1],i[n][0],i[n][1],o,!1),n-=1;return e}}])}();var ot=b(4,(function(){return new ht}),(function(t){for(var e=t._length,s=0;s<e;s+=1)nt.release(t.v[s]),nt.release(t.i[s]),nt.release(t.o[s]),t.v[s]=null,t.i[s]=null,t.o[s]=null;t._length=0,t.c=!1}));ot.clone=function(t){var e=ot.newElement(),s=void 0===t._length?t.v.length:t._length;e.setLength(s),e.c=t.c;for(var i=0;i<s;i+=1)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e};var lt=o((function t(){n(this,t),this._length=0,this._maxLength=4,this.shapes=v(this._maxLength)}),[{key:"addShape",value:function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(v(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1}},{key:"releaseShapes",value:function(){for(var t=0;t<this._length;t+=1)ot.release(this.shapes[t]);this._length=0}}]),pt=0,ut=4,ft=v(ut);var ct={newShapeCollection:function(){return pt?ft[pt-=1]:new lt},release:function(t){for(var e=t._length,s=0;s<e;s+=1)ot.release(t.shapes[s]);t._length=0,pt===ut&&(ft=w.double(ft),ut*=2),ft[pt]=t,pt+=1}},dt=o((function t(){n(this,t)}),[{key:"interpolateShape",value:function(t,e,s){var i,a,r,n,h,o,l,p,u,f=s.lastIndex,c=this.keyframes;if(t<c[0].t)i=c[0].s[0],r=!0,f=0;else if(t>=c[c.length-1].t)i=c[c.length-1].s?c[c.length-1].s[0]:c[c.length-2].e[0],r=!0;else{for(var d,m,v=f,y=c.length-1,g=!0;g&&(d=c[v],!((m=c[v+1]).t>t));)v<y-1?v+=1:g=!1;if(f=v,!(r=1===d.h)){if(t>=m.t)p=1;else if(t<d.t)p=0;else{var _;d.__fnct?_=d.__fnct:(_=M.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=_),p=_((t-d.t)/(m.t-d.t))}a=m.s?m.s[0]:d.e[0]}i=d.s[0]}for(o=e._length,l=i.i[0].length,s.lastIndex=f,n=0;n<o;n+=1)for(h=0;h<l;h+=1)u=r?i.i[n][h]:i.i[n][h]+(a.i[n][h]-i.i[n][h])*p,e.i[n][h]=u,u=r?i.o[n][h]:i.o[n][h]+(a.o[n][h]-i.o[n][h])*p,e.o[n][h]=u,u=r?i.v[n][h]:i.v[n][h]+(a.v[n][h]-i.v[n][h])*p,e.v[n][h]=u}},{key:"interpolateShapeCurrentTime",value:function(t){var e=this.keyframes[0].t,s=this.keyframes[this.keyframes.length-1].t,i=this._caching.lastFrame;return i!==z&&(i<e&&t<e||i>s&&t>s)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}},{key:"resetShape",value:function(){this.paths=this.localShapeCollection}},{key:"shapesEqual",value:function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var s,i=t._length;for(s=0;s<i;s+=1)if(t.v[s][0]!==e.v[s][0]||t.v[s][1]!==e.v[s][1]||t.o[s][0]!==e.o[s][0]||t.o[s][1]!==e.o[s][1]||t.i[s][0]!==e.i[s][0]||t.i[s][1]!==e.i[s][1])return!1;return!0}},{key:"setVValue",value:function(t){this.shapesEqual(this.v,t)||(this.v=ot.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}},{key:"processEffectsSequence",value:function(t){if(this._mdf=!1,t!==this.frameId&&this.effectsSequence.length){var e,s=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,i=this.effectsSequence.length;for(e=0;e<i;e+=1)s=this.effectsSequence[e](t);this.setVValue(s),this.frameId=t}}},{key:"addEffect",value:function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}}]),mt=function(t){function e(t,s,i){var a;n(this,e),(a=r(this,e)).propType="shape",a.comp=t.comp,a.container=t,a.elem=t,a.data=s,a.k=!1,a.kf=!1,a._mdf=!1;var h=3===i?s.pt.k:s.ks.k;return a.v=ot.clone(h),a.pv=ot.clone(a.v),a.localShapeCollection=ct.newShapeCollection(),a.paths=a.localShapeCollection,a.paths.addShape(a.v),a.reset=a.resetShape,a.effectsSequence=[],a.getValue=a.processEffectsSequence,a}return p(e,t),o(e)}(dt),vt=function(t){function e(t,s,i){var a;n(this,e),(a=r(this,e)).propType="shape",a.comp=t.comp,a.elem=t,a.container=t,a.keyframes=3===i?s.pt.k:s.ks.k,a.k=!0,a.kf=!0;var h=a.keyframes[0].s[0].i.length;return a.v=ot.newElement(),a.v.setPathData(a.keyframes[0].s[0].c,h),a.pv=ot.clone(a.v),a.localShapeCollection=ct.newShapeCollection(),a.paths=a.localShapeCollection,a.paths.addShape(a.v),a.lastFrame=z,a.reset=a.resetShape,a._caching={lastFrame:z,lastIndex:0},a.effectsSequence=[a.interpolateShapeCurrentTime.bind(a)],a.getValue=a.processEffectsSequence,a._hasOutTypeExpression=!1,Q.hasSupportExpression(s)&&(a.expression=Q.getExpression(s),a._hasOutTypeExpression="out"===a.expression.type),a}return p(e,t),o(e)}(dt),yt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).v=ot.newElement(),i.v.setPathData(!0,4),i.localShapeCollection=ct.newShapeCollection(),i.paths=i.localShapeCollection,i.localShapeCollection.addShape(i.v),i.d=s.d,i.elem=t,i.comp=t.comp,i.frameId=-1,i.initDynamicPropertyContainer(t),i.p=at.getProp(t,s.p,1,0,i),i.s=at.getProp(t,s.s,1,0,i),i.dynamicProperties.length?i.k=!0:(i.k=!1,i.convertEllToPath()),i}return p(e,t),o(e,[{key:"reset",value:function(){this.paths=this.localShapeCollection}},{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t,this._mdf&&this.convertEllToPath())}},{key:"convertEllToPath",value:function(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,r=this.v;r.v[0][0]=t,r.v[0][1]=e-i,r.v[1][0]=a?t+s:t-s,r.v[1][1]=e,r.v[2][0]=t,r.v[2][1]=e+i,r.v[3][0]=a?t-s:t+s,r.v[3][1]=e,r.i[0][0]=a?t-s*kt:t+s*kt,r.i[0][1]=e-i,r.i[1][0]=a?t+s:t-s,r.i[1][1]=e-i*kt,r.i[2][0]=a?t+s*kt:t-s*kt,r.i[2][1]=e+i,r.i[3][0]=a?t-s:t+s,r.i[3][1]=e+i*kt,r.o[0][0]=a?t+s*kt:t-s*kt,r.o[0][1]=e-i,r.o[1][0]=a?t+s:t-s,r.o[1][1]=e+i*kt,r.o[2][0]=a?t-s*kt:t+s*kt,r.o[2][1]=e+i,r.o[3][0]=a?t-s:t+s,r.o[3][1]=e-i*kt}}])}(m),gt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).v=ot.newElement(),i.v.setPathData(!0,0),i.elem=t,i.comp=t.comp,i.data=s,i.frameId=-1,i.d=s.d,i.initDynamicPropertyContainer(t),1===s.sy?(i.ir=at.getProp(t,s.ir,0,0,i),i.is=at.getProp(t,s.is,0,.01,i),i.convertToPath=i.convertStarToPath):i.convertToPath=i.convertPolygonToPath,i.pt=at.getProp(t,s.pt,0,0,i),i.p=at.getProp(t,s.p,1,0,i),i.r=at.getProp(t,s.r,0,q,i),i.or=at.getProp(t,s.or,0,0,i),i.os=at.getProp(t,s.os,0,.01,i),i.localShapeCollection=ct.newShapeCollection(),i.localShapeCollection.addShape(i.v),i.paths=i.localShapeCollection,i.dynamicProperties.length?i.k=!0:(i.k=!1,i.convertToPath()),i}return p(e,t),o(e,[{key:"reset",value:function(){this.paths=this.localShapeCollection}},{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertToPath())}},{key:"convertStarToPath",value:function(){var t,e,s,i,a=2*Math.floor(this.pt.v),r=2*Math.PI/a,n=!0,h=this.or.v,o=this.ir.v,l=this.os.v,p=this.is.v,u=2*Math.PI*h/(2*a),f=2*Math.PI*o/(2*a),c=-Math.PI/2;c+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<a;t+=1){s=n?l:p,i=n?u:f;var m=(e=n?h:o)*Math.cos(c),v=e*Math.sin(c),y=0===m&&0===v?0:v/Math.sqrt(m*m+v*v),g=0===m&&0===v?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-y*i*s*d,v-g*i*s*d,m+y*i*s*d,v+g*i*s*d,t,!0),n=!n,c+=r*d}}},{key:"convertPolygonToPath",value:function(){var t,e=Math.floor(this.pt.v),s=2*Math.PI/e,i=this.or.v,a=this.os.v,r=2*Math.PI*i/(4*e),n=-Math.PI/2,h=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var o=i*Math.cos(n),l=i*Math.sin(n),p=0===o&&0===l?0:l/Math.sqrt(o*o+l*l),u=0===o&&0===l?0:-o/Math.sqrt(o*o+l*l);o+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(o,l,o-p*r*a*h,l-u*r*a*h,o+p*r*a*h,l+u*r*a*h,t,!0),n+=s*h}this.paths.length=0,this.paths[0]=this.v}}])}(m),_t=.5519,kt=_t,xt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).v=ot.newElement(),i.v.c=!0,i.localShapeCollection=ct.newShapeCollection(),i.localShapeCollection.addShape(i.v),i.paths=i.localShapeCollection,i.elem=t,i.comp=t.comp,i.frameId=-1,i.d=s.d,i.initDynamicPropertyContainer(t),i.p=at.getProp(t,s.p,1,0,i),i.s=at.getProp(t,s.s,1,0,i),i.r=at.getProp(t,s.r,0,0,i),i.dynamicProperties.length?i.k=!0:(i.k=!1,i.convertRectToPath()),i}return p(e,t),o(e,[{key:"reset",value:function(){this.paths=this.localShapeCollection}},{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertRectToPath())}},{key:"convertRectToPath",value:function(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=Math.min(s,i,this.r.v),r=a*(1-_t);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+s,e-i+a,t+s,e-i+a,t+s,e-i+r,0,!0),this.v.setTripleAt(t+s,e+i-a,t+s,e+i-r,t+s,e+i-a,1,!0),0!==a?(this.v.setTripleAt(t+s-a,e+i,t+s-a,e+i,t+s-r,e+i,2,!0),this.v.setTripleAt(t-s+a,e+i,t-s+r,e+i,t-s+a,e+i,3,!0),this.v.setTripleAt(t-s,e+i-a,t-s,e+i-a,t-s,e+i-r,4,!0),this.v.setTripleAt(t-s,e-i+a,t-s,e-i+r,t-s,e-i+a,5,!0),this.v.setTripleAt(t-s+a,e-i,t-s+a,e-i,t-s+r,e-i,6,!0),this.v.setTripleAt(t+s-a,e-i,t+s-r,e-i,t+s-a,e-i,7,!0)):(this.v.setTripleAt(t-s,e+i,t-s+r,e+i,t-s,e+i,2),this.v.setTripleAt(t-s,e-i,t-s,e-i+r,t-s,e-i,3))):(this.v.setTripleAt(t+s,e-i+a,t+s,e-i+r,t+s,e-i+a,0,!0),0!==a?(this.v.setTripleAt(t+s-a,e-i,t+s-a,e-i,t+s-r,e-i,1,!0),this.v.setTripleAt(t-s+a,e-i,t-s+r,e-i,t-s+a,e-i,2,!0),this.v.setTripleAt(t-s,e-i+a,t-s,e-i+a,t-s,e-i+r,3,!0),this.v.setTripleAt(t-s,e+i-a,t-s,e+i-r,t-s,e+i-a,4,!0),this.v.setTripleAt(t-s+a,e+i,t-s+a,e+i,t-s+r,e+i,5,!0),this.v.setTripleAt(t+s-a,e+i,t+s-r,e+i,t+s-a,e+i,6,!0),this.v.setTripleAt(t+s,e+i-a,t+s,e+i-a,t+s,e+i-r,7,!0)):(this.v.setTripleAt(t-s,e-i,t-s+r,e-i,t-s,e-i,1,!0),this.v.setTripleAt(t-s,e+i,t-s,e+i-r,t-s,e+i,2,!0),this.v.setTripleAt(t+s,e+i,t+s-r,e+i,t+s,e+i,3,!0)))}}])}(m);var St={getShapeProp:function(t,e,s){var i;return 3===s||4===s?i=(3===s?e.pt:e.ks).k.length?new vt(t,e,s):new mt(t,e,s):5===s?i=new xt(t,e):6===s?i=new yt(t,e):7===s&&(i=new gt(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return mt},getKeyframedConstructorFunction:function(){return vt}},Pt=function(t){function e(t,s){var i;n(this,e),(i=r(this,e)).elem=t,i.frameId=-1,i.propType="mask",i.masksProperties=s||[],i.initDynamicPropertyContainer(t),i.viewData=v(i.masksProperties.length);for(var a=i.masksProperties.length,h=!1,o=0;o<a;o++)"n"!==i.masksProperties[o].mode&&(h=!0),i.viewData[o]=St.getShapeProp(i,i.masksProperties[o],3),i.viewData[o].inv=i.masksProperties[o].inv;return i.hasMasks=h,i}return p(e,t),o(e,[{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t)}}])}(m),Tt=function(){var t=Math.cos,e=Math.sin,s=Math.tan,i=Math.round;function a(){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 r(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function n(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(1,0,0,0,0,i,-a,0,0,a,i,0,0,0,0,1)}function h(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(i,0,a,0,0,1,0,0,-a,0,i,0,0,0,0,1)}function o(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(i,-a,0,0,a,i,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(s(t),s(e))}function u(i,a){var r=t(a),n=e(a);return this._t(r,n,0,0,-n,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,s(i),1,0,0,0,0,1,0,0,0,0,1)._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function f(t,e,s){return s||0===s||(s=1),1===t&&1===e&&1===s?this:this._t(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1)}function c(t,e,s,i,a,r,n,h,o,l,p,u,f,c,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=s,this.props[3]=i,this.props[4]=a,this.props[5]=r,this.props[6]=n,this.props[7]=h,this.props[8]=o,this.props[9]=l,this.props[10]=p,this.props[11]=u,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=m,this}function m(t,e,s){return s=s||0,0!==t||0!==e||0!==s?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1):this}function v(t,e,s,i,a,r,n,h,o,l,p,u,f,c,d,m){var v=this.props;if(1===t&&0===e&&0===s&&0===i&&0===a&&1===r&&0===n&&0===h&&0===o&&0===l&&1===p&&0===u)return v[12]=v[12]*t+v[15]*f,v[13]=v[13]*r+v[15]*c,v[14]=v[14]*p+v[15]*d,v[15]=v[15]*m,this._identityCalculated=!1,this;var y=v[0],g=v[1],_=v[2],k=v[3],x=v[4],S=v[5],P=v[6],T=v[7],L=v[8],M=v[9],w=v[10],b=v[11],C=v[12],D=v[13],A=v[14],I=v[15];return v[0]=y*t+g*a+_*o+k*f,v[1]=y*e+g*r+_*l+k*c,v[2]=y*s+g*n+_*p+k*d,v[3]=y*i+g*h+_*u+k*m,v[4]=x*t+S*a+P*o+T*f,v[5]=x*e+S*r+P*l+T*c,v[6]=x*s+S*n+P*p+T*d,v[7]=x*i+S*h+P*u+T*m,v[8]=L*t+M*a+w*o+b*f,v[9]=L*e+M*r+w*l+b*c,v[10]=L*s+M*n+w*p+b*d,v[11]=L*i+M*h+w*u+b*m,v[12]=C*t+D*a+A*o+I*f,v[13]=C*e+D*r+A*l+I*c,v[14]=C*s+D*n+A*p+I*d,v[15]=C*i+D*h+A*u+I*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 _(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function k(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,s){return{x:t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}}function S(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}function P(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}function T(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}function L(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],s=this.props[5]/e,i=-this.props[1]/e,a=-this.props[4]/e,r=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,h=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*s+t[1]*a+n,t[0]*i+t[1]*r+h,0]}function M(t){var e,s=t.length,i=[];for(e=0;e<s;e+=1)i[e]=L(t[e]);return i}function w(t,e,s){var i=d("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=s[0],i[5]=s[1];else{var a=this.props[0],r=this.props[1],n=this.props[4],h=this.props[5],o=this.props[12],l=this.props[13];i[0]=t[0]*a+t[1]*n+o,i[1]=t[0]*r+t[1]*h+l,i[2]=e[0]*a+e[1]*n+o,i[3]=e[0]*r+e[1]*h+l,i[4]=s[0]*a+s[1]*n+o,i[5]=s[0]*r+s[1]*h+l}return i}function b(t,e,s){return this.isIdentity()?[t,e,s]:[t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]]}function C(t,e){if(this.isIdentity())return t+","+e;var s=this.props;return Math.round(100*(t*s[0]+e*s[4]+s[12]))/100+","+Math.round(100*(t*s[1]+e*s[5]+s[13]))/100}function D(){for(var t=0,e=this.props,s="matrix3d(";t<16;)s+=i(1e4*e[t])/1e4,s+=15===t?")":",",t+=1;return s}function A(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+A(t[0])+","+A(t[1])+","+A(t[4])+","+A(t[5])+","+A(t[12])+","+A(t[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=n,this.rotateY=h,this.rotateZ=o,this.skew=p,this.skewFromAxis=u,this.shear=l,this.scale=f,this.setTransform=c,this.translate=m,this.transform=v,this.applyToPoint=x,this.applyToX=S,this.applyToY=P,this.applyToZ=T,this.applyToPointArray=b,this.applyToTriplePoints=w,this.applyToPointStringified=C,this.toCSS=D,this.to2dCSS=I,this.clone=_,this.cloneFromProps=k,this.equals=g,this.inversePoints=M,this.inversePoint=L,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}(),Lt=o((function t(){n(this,t),this.sequences={},this.sequenceList=[],this.transform_key_count=0}),[{key:"addTransformSequence",value:function(t){for(var e=t.length,s="_",i=0;i<e;i+=1)s+=t[i].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Tt,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a}},{key:"processSequence",value:function(t,e){for(var s,i=0,a=e,r=t.transforms.length;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)s=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15]);t._mdf=a}},{key:"processSequences",value:function(t){for(var e=this.sequenceList.length,s=0;s<e;s+=1)this.processSequence(this.sequenceList[s],t)}},{key:"getNewKey",value:function(){return"_"+this.transform_key_count++}}]),Mt=o((function t(e,s){n(this,t),this.elem=e,this.pos=s})),wt=o((function t(e,s,i,a){n(this,t),this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==s.ty?r=5:"el"==s.ty?r=6:"sr"==s.ty&&(r=7),this.sh=St.getShapeProp(e,s,r);for(var h=i.length,o=0;o<h;o+=1)if(!i[o].closed){var l={transforms:a.addTransformSequence(i[o].transforms),trNodes:[]};this.styledShapes.push(l),i[o].elements.push(l)}}),[{key:"setAsAnimated",value:function(){this._isAnimated=!0}}]),bt=o((function t(e,s){n(this,t),this.data=e,this.type=e.ty,this.preTransforms=s,this.transforms=[],this.elements=[],this.closed=!0===e.hd,this.co=null,this.lc="round",this.lj="round",this.ml=0,this.wi=0,this.da=null,this.do=0,this.r=""})),Ct=function(t){function e(t,s,i){var a;if(n(this,e),(a=r(this,e)).elem=t,a.frameId=-1,a.propType="transform",a.data=s,a.v=new Tt,a.pre=new Tt,a.appliedTransformations=0,a.initDynamicPropertyContainer(i||t),s.p&&s.p.s?(a.px=at.getProp(t,s.p.x,0,0,a),a.py=at.getProp(t,s.p.y,0,0,a),s.p.z&&(a.pz=at.getProp(t,s.p.z,0,0,a))):a.p=at.getProp(t,s.p||{k:[0,0,0]},1,0,a),s.rx){if(a.rx=at.getProp(t,s.rx,0,q,a),a.ry=at.getProp(t,s.ry,0,q,a),a.rz=at.getProp(t,s.rz,0,q,a),s.or.k[0].ti){var h,o=s.or.k.length;for(h=0;h<o;h+=1)s.or.k[h].to=s.or.k[h].ti=null}a.or=at.getProp(t,s.or,1,q,a),a.or.sh=!0}else a.r=at.getProp(t,s.r||{k:0},0,q,a);return s.sk&&(a.sk=at.getProp(t,s.sk,0,q,a),a.sa=at.getProp(t,s.sa,0,q,a)),a.a=at.getProp(t,s.a||{k:[0,0,0]},1,0,a),a.s=at.getProp(t,s.s||{k:[100,100,100]},1,.01,a),s.o?a.o=at.getProp(t,s.o,0,.01,t):a.o={_mdf:!1,v:1},a._isDirty=!0,a.dynamicProperties.length||a.getValue(z,!0),a}return p(e,t),o(e,[{key:"getValue",value:function(t,e){t!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||e)&&(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.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=t)}},{key:"precalculateMatrix",value: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)}}},{key:"applyToMatrix",value: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])}}])}(m);function Dt(t,e,s){return new Ct(t,e,s)}var At=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(){}},{key:"addShapeToModifier",value:function(){}},{key:"addShape",value:function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:ct.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}}},{key:"init",value:function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-1,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)}},{key:"processKeys",value:function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t))}}])}(m),It=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.s=at.getProp(t,e.s,0,.01,this),this.e=at.getProp(t,e.e,0,.01,this),this.o=at.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}},{key:"addShapeToModifier",value:function(t){t.pathsData=[]}},{key:"calculateShapeEdges",value:function(t,e,s,i,a){var r=[];e<=1?r.push({s:t,e:e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var n,h,o=[],l=r.length;for(n=0;n<l;n+=1)if((h=r[n]).e*a<i||h.s*a>i+s);else{var p=void 0,u=void 0;p=h.s*a<=i?0:(h.s*a-i)/s,u=h.e*a>=i+s?1:(h.e*a-i)/s,o.push([p,u])}return o.length||o.push([0,0]),o}},{key:"releasePathsData",value:function(t){for(var e=t.length,s=0;s<e;s+=1)D.release(t[s]);return t.length=0,t}},{key:"processShapes",value:function(t){var e,s,i,a;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+r)>(s=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r)){var n=e;e=s,s=n}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue,s=this.eValue;var h,o,l,p,u,f=this.shapes.length,c=0;if(s===e)for(a=0;a<f;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===s&&0===e||0===s&&1===e){if(this._mdf)for(a=0;a<f;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var d,m,v=[];for(a=0;a<f;a+=1)if((d=this.shapes[a]).shape._mdf||this._mdf||t||2===this.m){if(o=(i=d.shape.paths)._length,u=0,!d.shape._mdf&&d.pathsData.length)u=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),h=0;h<o;h+=1)p=j.getSegmentsLength(i.shapes[h]),l.push(p),u+=p.totalLength;d.totalShapeLength=u,d.pathsData=l}c+=u,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,g=e,_=s,k=0;for(a=f-1;a>=0;a-=1)if((d=this.shapes[a]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&f>1?(y=this.calculateShapeEdges(e,s,d.totalShapeLength,k,c),k+=d.totalShapeLength):y=[[g,_]],o=y.length,h=0;h<o;h+=1){g=y[h][0],_=y[h][1],v.length=0,_<=1?v.push({s:d.totalShapeLength*g,e:d.totalShapeLength*_}):g>=1?v.push({s:d.totalShapeLength*(g-1),e:d.totalShapeLength*(_-1)}):(v.push({s:d.totalShapeLength*g,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(_-1)}));var x=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,m),x=this.addShapes(d,v[1],S)}else this.addPaths(x,m),x=this.addShapes(d,v[1]);this.addPaths(x,m)}}d.shape.paths=m}}}},{key:"addPaths",value:function(t,e){for(var s=t.length,i=0;i<s;i+=1)e.addShape(t[i])}},{key:"addSegment",value:function(t,e,s,i,a,r,n){a.setXYAt(e[0],e[1],"o",r),a.setXYAt(s[0],s[1],"i",r+1),n&&a.setXYAt(t[0],t[1],"v",r),a.setXYAt(i[0],i[1],"v",r+1)}},{key:"addSegmentFromArray",value:function(t,e,s,i){e.setXYAt(t[1],t[5],"o",s),e.setXYAt(t[2],t[6],"i",s+1),i&&e.setXYAt(t[0],t[4],"v",s),e.setXYAt(t[3],t[7],"v",s+1)}},{key:"addShapes",value:function(t,e,s){var i,a,r,n,h,o,l,p,u=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,m=[],v=!0;for(s?(h=s._length,p=s._length):(s=ot.newElement(),h=0,p=0),m.push(s),i=0;i<c;i+=1){for(o=u[i].lengths,s.c=f[i].c,r=f[i].c?o.length:o.length+1,a=1;a<r;a+=1)if(d+(n=o[a-1]).addedLength<e.s)d+=n.addedLength,s.c=!1;else{if(d>e.e){s.c=!1;break}e.s<=d&&e.e>=d+n.addedLength?(this.addSegment(f[i].v[a-1],f[i].o[a-1],f[i].i[a],f[i].v[a],s,h,v),v=!1):(l=j.getNewSegment(f[i].v[a-1],f[i].v[a],f[i].o[a-1],f[i].i[a],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,o[a-1]),this.addSegmentFromArray(l,s,h,v),v=!1,s.c=!1),d+=n.addedLength,h+=1}if(f[i].c&&o.length){if(n=o[a-1],d<=e.e){var y=o[a-1].addedLength;e.s<=d&&e.e>=d+y?(this.addSegment(f[i].v[a-1],f[i].o[a-1],f[i].i[0],f[i].v[0],s,h,v),v=!1):(l=j.getNewSegment(f[i].v[a-1],f[i].v[0],f[i].o[a-1],f[i].i[0],(e.s-d)/y,(e.e-d)/y,o[a-1]),this.addSegmentFromArray(l,s,h,v),v=!1,s.c=!1)}else s.c=!1;d+=n.addedLength,h+=1}if(s._length&&(s.setXYAt(s.v[p][0],s.v[p][1],"i",p),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),d>e.e)break;i<c-1&&(s=ot.newElement(),v=!0,m.push(s),h=0)}return m}}])}(At),Ft=.5519,Ot=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.rd=at.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length}},{key:"processPath",value:function(t,e){var s,i=ot.newElement();i.c=t.c;var a,r,n,h,o,l,p,u,f,c,d,m,v=t._length,y=0;for(s=0;s<v;s+=1)a=t.v[s],n=t.o[s],r=t.i[s],a[0]===n[0]&&a[1]===n[1]&&a[0]===r[0]&&a[1]===r[1]?0!==s&&s!==v-1||t.c?(h=0===s?t.v[v-1]:t.v[s-1],l=(o=Math.sqrt(Math.pow(a[0]-h[0],2)+Math.pow(a[1]-h[1],2)))?Math.min(o/2,e)/o:0,p=d=a[0]+(h[0]-a[0])*l,u=m=a[1]-(a[1]-h[1])*l,f=p-(p-a[0])*Ft,c=u-(u-a[1])*Ft,i.setTripleAt(p,u,f,c,d,m,y),y+=1,h=s===v-1?t.v[0]:t.v[s+1],l=(o=Math.sqrt(Math.pow(a[0]-h[0],2)+Math.pow(a[1]-h[1],2)))?Math.min(o/2,e)/o:0,p=f=a[0]+(h[0]-a[0])*l,u=c=a[1]+(h[1]-a[1])*l,d=p-(p-a[0])*Ft,m=u-(u-a[1])*Ft,i.setTripleAt(p,u,f,c,d,m,y),y+=1):(i.setTripleAt(a[0],a[1],n[0],n[1],r[0],r[1],y),y+=1):(i.setTripleAt(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],y),y+=1);return i}},{key:"processShapes",value:function(t){var e,s,i,a,r,n,h=this.shapes.length,o=this.rd.v;if(0!==o)for(s=0;s<h;s+=1){if(n=(r=this.shapes[s]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,i=0;i<a;i+=1)n.addShape(this.processPath(e[i],o));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)}}])}(At),Et=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.c=at.getProp(t,e.c,0,null,this),this.o=at.getProp(t,e.o,0,null,this),this.tr=Dt(t,e.tr,this),this.so=at.getProp(t,e.tr.so,0,.01,this),this.eo=at.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 Tt,this.rMatrix=new Tt,this.sMatrix=new Tt,this.tMatrix=new Tt,this.matrix=new Tt}},{key:"applyTransforms",value:function(t,e,s,i,a,r){var n=r?-1:1,h=i.s.v[0]+(1-i.s.v[0])*(1-a),o=i.s.v[1]+(1-i.s.v[1])*(1-a);t.translate(i.p.v[0]*n*a,i.p.v[1]*n*a,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*a),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),s.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),s.scale(r?1/h:h,r?1/o:o),s.translate(i.a.v[0],i.a.v[1],i.a.v[2])}},{key:"init",value:function(t,e,s,i){for(this.elem=t,this.arr=e,this.pos=s,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[s]);s>0;)s-=1,this._elements.unshift(e[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)}},{key:"resetElements",value:function(t){for(var e=t.length,s=0;s<e;s+=1)t[s]._processed=!1,"gr"===t[s].ty&&this.resetElements(t[s].it)}},{key:"cloneElements",value:function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e}},{key:"changeGroupRender",value:function(t,e){for(var s=t.length,i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)}},{key:"processShapes",value:function(t){if(this._mdf||t){var e=Math.ceil(this.c.v);if(this._groups.length<e){for(;this._groups.length<e;){var s={it:this.cloneElements(this._elements),ty:"gr"};s.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}]},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,s),this._groups.splice(0,0,s),this._currentCopies+=1}this.elem.reloadShapes()}var i,a,r=0;for(i=0;i<=this._groups.length-1;i+=1)a=r<e,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),r+=1;this._currentCopies=e;var n=this.o.v,h=n%1,o=n>0?Math.floor(n):Math.ceil(n),l=this.pMatrix.props,p=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var f=0;if(n>0){for(;f<o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),f+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),f+=h)}else if(n<0){for(;f>o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),f-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),f-=h)}i=1===this.data.m?0:this._currentCopies-1;var c=1===this.data.m?1:-1;for(r=this._currentCopies;r;){var d=this.elemsData[i].it,m=d[d.length-1].transform.mProps.v.props,v=m.length;if(d[d.length-1].transform.mProps._mdf=!0,d[d.length-1].transform.op._mdf=!0,d[d.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==f){(0!==i&&1===c||i!==this._currentCopies-1&&-1===c)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),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(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]);for(var y=0;y<v;y+=1)m[y]=this.matrix.props[y];this.matrix.reset()}else{this.matrix.reset();for(var g=0;g<v;g+=1)m[g]=this.matrix.props[g]}f+=1,r-=1,i+=c}}else for(var _=this._currentCopies,k=0;_;){var x=this.elemsData[k].it;x[x.length-1].transform.mProps._mdf=!1,x[x.length-1].transform.op._mdf=!1,_-=1,k+=1}}},{key:"addShape",value:function(){}}])}(At),Vt=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.data=e,this.positions=[]}},{key:"processKeys",value:function(t,e){(t!==this.frameId||e)&&(this._mdf=!0)}},{key:"addShapeToModifier",value:function(){this.positions.push([])}},{key:"processPath",value:function(t,e,s){var i,a,r,n,h=t.v.length,o=[],l=[],p=[];for(i=0;i<h;i+=1){s.v[i]||(s.v[i]=[t.v[i][0],t.v[i][1]],s.o[i]=[t.o[i][0],t.o[i][1]],s.i[i]=[t.i[i][0],t.i[i][1]],s.distV[i]=0,s.distO[i]=0,s.distI[i]=0),a=Math.atan2(t.v[i][1]-e[1],t.v[i][0]-e[0]),r=e[0]-s.v[i][0],n=e[1]-s.v[i][1];var u=Math.sqrt(r*r+n*n);s.distV[i]+=(u-s.distV[i])*this.data.dc,s.v[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distV[i])/2+t.v[i][0],s.v[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distV[i])/2+t.v[i][1],a=Math.atan2(t.o[i][1]-e[1],t.o[i][0]-e[0]),r=e[0]-s.o[i][0],n=e[1]-s.o[i][1],u=Math.sqrt(r*r+n*n),s.distO[i]+=(u-s.distO[i])*this.data.dc,s.o[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distO[i])/2+t.o[i][0],s.o[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distO[i])/2+t.o[i][1],a=Math.atan2(t.i[i][1]-e[1],t.i[i][0]-e[0]),r=e[0]-s.i[i][0],n=e[1]-s.i[i][1],u=Math.sqrt(r*r+n*n),s.distI[i]+=(u-s.distI[i])*this.data.dc,s.i[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distI[i])/2+t.i[i][0],s.i[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distI[i])/2+t.i[i][1],o.push(s.v[i]),l.push(s.o[i]),p.push(s.i[i])}return{v:o,o:l,i:p,c:t.c}}},{key:"processShapes",value:function(){var t,e,s,i,a=this.elem.globalData.mouseX,r=this.elem.globalData.mouseY,n=this.shapes.length;if(a){var h,o=this.elem.globalToLocal([a,r,0]),l=[];for(e=0;e<n;e+=1)if((h=this.shapes[e]).shape._mdf||this._mdf){for(h.shape._mdf=!0,i=(t=h.shape.paths).length,s=0;s<i;s+=1)this.positions[e][s]||(this.positions[e][s]={v:[],o:[],i:[],distV:[],distO:[],distI:[]}),l.push(this.processPath(t[s],o,this.positions[e][s]));h.shape.paths=l,h.last=l}else h.shape.paths=h.last}}}])}(At),Nt=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.amount=at.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length}},{key:"processPath",value:function(t,e){var s=e/100,i=[0,0],a=t._length,r=0;for(r=0;r<a;r+=1)i[0]+=t.v[r][0],i[1]+=t.v[r][1];i[0]/=a,i[1]/=a;var n,h,o,l,p,u,f=ot.newElement();for(f.c=t.c,r=0;r<a;r+=1)n=t.v[r][0]+(i[0]-t.v[r][0])*s,h=t.v[r][1]+(i[1]-t.v[r][1])*s,o=t.o[r][0]+(i[0]-t.o[r][0])*-s,l=t.o[r][1]+(i[1]-t.o[r][1])*-s,p=t.i[r][0]+(i[0]-t.i[r][0])*-s,u=t.i[r][1]+(i[1]-t.i[r][1])*-s,f.setTripleAt(n,h,o,l,p,u,r);return f}},{key:"processShapes",value:function(t){var e,s,i,a,r,n,h=this.shapes.length,o=this.amount.v;if(0!==o)for(s=0;s<h;s+=1){if(n=(r=this.shapes[s]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,i=0;i<a;i+=1)n.addShape(this.processPath(e[i],o));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)}}])}(At),jt={};function zt(t,e){jt[t]||(jt[t]=e)}zt("tm",It),zt("rd",Ot),zt("rp",Et),zt("ms",Vt),zt("pb",Nt);var qt={getModifier:function(t,e,s){return new jt[t](e,s)}},Rt=function(t){function e(t,s,i){var a,h;n(this,e),(a=r(this,e)).elem=t,a.frameId=-1,a.dataProps=v(s.length),a.k=!1,a.dashArray=d("float32",s.length?s.length-1:0),a.dashoffset=d("float32",1),a.initDynamicPropertyContainer(i);var o,l=s.length||0;for(h=0;h<l;h+=1)o=at.getProp(t,s[h].v,0,0,a),a.k=o.k||a.k,a.dataProps[h]={n:s[h].n,p:o};return a.k||a.getValue(!0),a._isAnimated=a.k,a}return p(e,t),o(e,[{key:"getValue",value:function(t,e){if((t!==this.frameId||e)&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf=this._mdf||e,this._mdf)){var s=0,i=this.dataProps.length;for(s=0;s<i;s+=1)"o"!=this.dataProps[s].n?this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}}}])}(m),Bt=function(t){function e(t,s,i){var a;n(this,e),(a=r(this,e)).data=s,a.c=d("uint8c",4*s.p);var h=s.k.k[0].s?s.k.k[0].s.length-4*s.p:s.k.k.length-4*s.p;return a.o=d("float32",h),a._cmdf=!1,a._omdf=!1,a._collapsable=a.checkCollapsable(),a._hasOpacity=h,a.initDynamicPropertyContainer(i),a.prop=at.getProp(t,s.k,1,null,a),a.k=a.prop.k,a.getValue(!0),a}return p(e,t),o(e,[{key:"comparePoints",value:function(t,e){for(var s=0,i=this.o.length/2;s<i;){if(Math.abs(t[4*s]-t[4*e+2*s])>.01)return!1;s+=1}return!0}},{key:"checkCollapsable",value: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}},{key:"getValue",value:function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,s,i,a=4*this.data.p;for(e=0;e<a;e+=1)s=e%4==0?100:255,i=Math.round(this.prop.v[e]*s),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(a=this.prop.v.length,e=4*this.data.p;e<a;e+=1)s=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}}}])}(m),Xt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).elem=t,i.frameId=-1,i.propType="shapes",i.session=t.session,i.shapes=[],i.shapesData=s,i.stylesList=[],i.itemsData=[],i.prevViewData=[],i.shapeModifiers=[],i.processedElements=[],i.transformsManager=new Lt,i.initDynamicPropertyContainer(t),i.lcEnum={1:"butt",2:"round",3:"square"},i.ljEnum={1:"miter",2:"round",3:"bevel"},i._isFirstFrame=!0,i.transformHelper={opacity:1,_opMdf:!1},i.searchShapes(i.shapesData,i.itemsData,i.prevViewData,!0,[]),i._isAnimated||(i.transformHelper.opacity=1,i.transformHelper._opMdf=!1,i.updateModifiers(),i.transformsManager.processSequences(i._isFirstFrame),i.updateShape(i.transformHelper,i.shapesData,i.itemsData)),i}return p(e,t),o(e,[{key:"createStyleElement",value:function(t,e){var s=new bt(t,this.transformsManager.addTransformSequence(e)),i={};if("fl"==t.ty||"st"==t.ty?(i.c=at.getProp(this,t.c,1,255,this),i.c.k||(s.co=i.c.v)):"gf"!==t.ty&&"gs"!==t.ty||(i.s=at.getProp(this,t.s,1,null,this),i.e=at.getProp(this,t.e,1,null,this),i.h=at.getProp(this,t.h||{k:0},0,.01,this),i.a=at.getProp(this,t.a||{k:0},0,q,this),i.g=new Bt(this,t.g,this)),i.o=at.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(s.lc=this.lcEnum[t.lc]||"round",s.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(s.ml=t.ml),i.w=at.getProp(this,t.w,0,null,this),i.w.k||(s.wi=i.w.v),t.d){var a=new Rt(this,t.d,"canvas",this);i.d=a,i.d.k||(s.da=i.d.dashArray,s.do=i.d.dashoffset[0])}}else s.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(s),i.style=s,i}},{key:"addShapeToModifiers",value:function(t){var e,s=this.shapeModifiers.length;for(e=0;e<s;e+=1)this.shapeModifiers[e].addShape(t)}},{key:"isShapeInAnimatedModifiers",value:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1}},{key:"updateModifiers",value: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)}}},{key:"searchProcessedElement",value:function(t){for(var e=this.processedElements,s=0,i=e.length;s<i;){if(e[s].elem===t)return e[s].pos;s+=1}return 0}},{key:"addProcessedElement",value:function(t,e){for(var s=this.processedElements,i=s.length;i;)if(s[i-=1].elem===t)return void(s[i].pos=e);s.push(new Mt(t,e))}},{key:"createGroupElement",value:function(){return{it:[],prevViewData:[]}}},{key:"createTransformElement",value:function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:at.getProp(this,t.o,0,.01,this),mProps:Dt(this,t,this)}}}},{key:"createShapeElement",value:function(t){var e=new wt(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e}},{key:"reloadShapes",value:function(){var t;this._isFirstFrame=!0;var 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.updateModifiers(),this.transformsManager.processSequences(this._isFirstFrame)}},{key:"addTransformToStyleList",value:function(t){for(var e=this.stylesList.length,s=0;s<e;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(t)}},{key:"removeTransformFromStyleList",value:function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()}},{key:"closeStyles",value:function(t){for(var e=t.length,s=0;s<e;s+=1)t[s].closed=!0}},{key:"searchShapes",value:function(t,e,s,i,a){var r,n,h,o,l,p,u=t.length-1,f=[],c=[],d=[].concat(a);for(r=u;r>=0;r-=1){if((o=this.searchProcessedElement(t[r]))?e[r]=s[o-1]:t[r]._shouldRender=i,"fl"==t[r].ty||"st"==t[r].ty||"gf"==t[r].ty||"gs"==t[r].ty)o?e[r].style.closed=!1:e[r]=this.createStyleElement(t[r],d),f.push(e[r].style);else if("gr"==t[r].ty){if(o)for(h=e[r].it.length,n=0;n<h;n+=1)e[r].prevViewData[n]=e[r].it[n];else e[r]=this.createGroupElement(t[r]);this.searchShapes(t[r].it,e[r].it,e[r].prevViewData,i,d)}else"tr"==t[r].ty?(o||(p=this.createTransformElement(t[r]),e[r]=p),d.push(e[r]),this.addTransformToStyleList(e[r])):"sh"==t[r].ty||"rc"==t[r].ty||"el"==t[r].ty||"sr"==t[r].ty?o||(e[r]=this.createShapeElement(t[r])):"tm"==t[r].ty||"rd"==t[r].ty||"pb"==t[r].ty?(o?(l=e[r]).closed=!1:((l=qt.getModifier(t[r].ty)).init(this,t[r]),e[r]=l,this.shapeModifiers.push(l)),c.push(l)):"rp"==t[r].ty&&(o?(l=e[r]).closed=!0:(l=qt.getModifier(t[r].ty),e[r]=l,l.init(this,t,r,e),this.shapeModifiers.push(l),i=!1),c.push(l));this.addProcessedElement(t[r],r+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),u=c.length,r=0;r<u;r+=1)c[r].closed=!0}},{key:"updateShapeTransform",value:function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)}},{key:"updateStyledShape",value:function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var s,i,a,r=t.trNodes,n=e.paths,h=n._length;r.length=0;var o=t.transforms.finalTransform;for(a=0;a<h;a+=1){var l=n.shapes[a];if(l&&l.v){for(i=l._length,s=1;s<i;s+=1)1===s&&r.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),r.push({t:"c",pts:o.applyToTriplePoints(l.o[s-1],l.i[s],l.v[s])});1===i&&r.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&i&&(r.push({t:"c",pts:o.applyToTriplePoints(l.o[s-1],l.i[0],l.v[0])}),r.push({t:"z"}))}}t.trNodes=r}}},{key:"updatePath",value:function(t,e){if(!0!==t.hd&&t._shouldRender){var s,i=e.styledShapes.length;for(s=0;s<i;s+=1)this.updateStyledShape(e.styledShapes[s],e.sh)}}},{key:"updateFill",value:function(t,e,s){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co=e.c.v),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity)}},{key:"updateStroke",value:function(t,e,s){var i=e.style,a=e.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co=e.c.v),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)}},{key:"updateGradientFill",value:function(t,e,s){var i=e.style;i.grd=e.g.c,i.coOp=e.o.v*s.opacity}},{key:"updateShape",value:function(t,e,s){for(var i=t,a=e.length-1;a>=0;a-=1)"tr"==e[a].ty?(i=s[a].transform,this.updateShapeTransform(t,i)):"sh"==e[a].ty||"el"==e[a].ty||"rc"==e[a].ty||"sr"==e[a].ty?this.updatePath(e[a],s[a]):"fl"==e[a].ty?this.updateFill(e[a],s[a],i):"st"==e[a].ty?this.updateStroke(e[a],s[a],i):"gf"==e[a].ty||"gs"==e[a].ty?this.updateGradientFill(e[a],s[a],i):"gr"==e[a].ty&&this.updateShape(i,e[a].it,s[a].it)}},{key:"getValue",value:function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.updateModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.updateShape(this.transformHelper,this.shapesData,this.itemsData),this.frameId=t)}},{key:"addChildToGroup",value:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return t&&"gr"===t.ty?(t.it||(t.it=[]),s>=0&&s<t.it.length?t.it.splice(s,0,e):t.it.push(e),e._shouldRender=!0,this.reloadShapes(),!0):(console.warn("Invalid group data provided to addChildToGroup"),!1)}},{key:"removeChildFromGroup",value:function(t,e){if(!t||"gr"!==t.ty||!t.it)return console.warn("Invalid group data provided to removeChildFromGroup"),!1;if(e<0||e>=t.it.length)return console.warn("Invalid index provided to removeChildFromGroup"),!1;var s=t.it.splice(e,1)[0];return this.reloadShapes(),s}},{key:"insertChildAtIndex",value:function(t,e,s){return this.addChildToGroup(t,e,s)}},{key:"getChildCount",value:function(t){return t&&"gr"===t.ty&&t.it?t.it.length:0}},{key:"getChildAt",value:function(t,e){return t&&"gr"===t.ty&&t.it?e<0||e>=t.it.length?null:t.it[e]:null}},{key:"findGroupByName",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.shapesData,s=0;s<e.length;s++){var i=e[s];if("gr"===i.ty&&i.nm===t)return i;if("gr"===i.ty&&i.it){var a=this.findGroupByName(t,i.it);if(a)return a}}return null}}])}(m),Yt=o((function t(){n(this,t),this.listeners={},this.addEventListener=this.on,this.removeEventListener=this.off,this._emitAsyncQueue=[],this._emitTimer=null}),[{key:"on",value:function(t,e){return Y.isFunction(e)?(Y.isUndefined(this.listeners[t])&&(this.listeners[t]=[]),-1!==this.listeners[t].indexOf(e)||this.listeners[t].push(e),this):this}},{key:"off",value:function(t,e){if(Y.isUndefined(this.listeners[t]))return this;var s=this.listeners[t],i=s.length;if(i>0)if(e)for(;i--;)s[i]===e&&s.splice(i,1);else s.length=0;return this}},{key:"once",value:function(t,e){var s=this;if(!Y.isFunction(e))return this;var i=function(a){e(a),s.off(t,i)};return this.on(t,i),this}},{key:"emit",value:function(t,...e){if(Y.isUndefined(this.listeners[t]))return this;for(var s=(this.listeners[t]||[]).slice(0),i=0;i<s.length;i++)s[i].apply(this,e);return this}},{key:"emitAsync",value:function(t,e){var s=this;return null===this._emitTimer&&(this._emitTimer=setTimeout((function(){s._shipAsyncQueue()}))),this._emitAsyncQueue.push([t,e]),this}},{key:"_shipAsyncQueue",value:function(){var t=this,e=this._emitAsyncQueue.slice(0);this._emitAsyncQueue.length=0,this._emitTimer=null,e.forEach((function(e){t.emit(e[0],e[1])}))}}]),Wt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e))._currentTextLength=-1,i.k=!1,i.data=s,i.elem=t,i.comp=t.comp,i.finalS=0,i.finalE=0,i.initDynamicPropertyContainer(t),i.s=at.getProp(t,s.s||{k:0},0,0,i),i.e="e"in s?at.getProp(t,s.e,0,0,i):{v:100},i.o=at.getProp(t,s.o||{k:0},0,0,i),i.xe=at.getProp(t,s.xe||{k:0},0,0,i),i.ne=at.getProp(t,s.ne||{k:0},0,0,i),i.a=at.getProp(t,s.a,0,.01,i),i.dynamicProperties.length||i.getValue(),i}return p(e,t),o(e,[{key:"getMult",value:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e=0,s=0,i=1,a=1;this.ne.v>0?e=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?i=1-this.xe.v/100:a=1+this.xe.v/100;var r=M.getBezierEasing(e,s,i,a).get,n=0,h=this.finalS,o=this.finalE,l=this.data.sh;if(2===l)n=r(n=o===h?t>=o?1:0:Math.max(0,Math.min(.5/(o-h)+(t-h)/(o-h),1)));else if(3===l)n=r(n=o===h?t>=o?0:1:1-Math.max(0,Math.min(.5/(o-h)+(t-h)/(o-h),1)));else if(4===l)o===h?n=0:(n=Math.max(0,Math.min(.5/(o-h)+(t-h)/(o-h),1)))<.5?n*=2:n=1-2*(n-.5),n=r(n);else if(5===l){if(o===h)n=0;else{var p=o-h,u=-p/2+(t=Math.min(Math.max(0,t+.5-h),o-h)),f=p/2;n=Math.sqrt(1-u*u/(f*f))}n=r(n)}else 6===l?(o===h?n=0:(t=Math.min(Math.max(0,t+.5-h),o-h),n=(1+Math.cos(Math.PI+2*Math.PI*t/(o-h)))/2),n=r(n)):(t>=Math.floor(h)&&(n=t-h<0?Math.max(0,Math.min(Math.min(o,1)-(h-t),1)):Math.max(0,Math.min(o-t,1))),n=r(n));return n*this.a.v}},{key:"getValue",value:function(t){this.iterateDynamicProperties(t),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,s=this.o.v/e,i=this.s.v/e+s,a=this.e.v/e+s;if(i>a){var r=i;i=a,a=r}this.finalS=i,this.finalE=a}}])}(m);var Ht,Ut=o((function t(e,s,i){n(this,t);var a={propType:!1},r=at.getProp,h=s.a;this.a={r:h.r?r(e,h.r,0,q,i):a,rx:h.rx?r(e,h.rx,0,q,i):a,ry:h.ry?r(e,h.ry,0,q,i):a,sk:h.sk?r(e,h.sk,0,q,i):a,sa:h.sa?r(e,h.sa,0,q,i):a,s:h.s?r(e,h.s,1,.01,i):a,a:h.a?r(e,h.a,1,0,i):a,o:h.o?r(e,h.o,0,.01,i):a,p:h.p?r(e,h.p,1,0,i):a,sw:h.sw?r(e,h.sw,0,0,i):a,sc:h.sc?r(e,h.sc,1,0,i):a,fc:h.fc?r(e,h.fc,1,0,i):a,fh:h.fh?r(e,h.fh,0,0,i):a,fs:h.fs?r(e,h.fs,0,.01,i):a,fb:h.fb?r(e,h.fb,0,.01,i):a,t:h.t?r(e,h.t,0,0,i):a},this.s=function(t,e,s){return new Wt(t,e,s)}(e,s.s,i),this.s.t=s.s.t})),Gt=o((function t(e,s,i,a,r,h){n(this,t),this.o=e,this.sw=s,this.sc=i,this.fc=a,this.m=r,this.p=h,this._mdf={o:!0,sw:!!s,sc:!!i,fc:!!a,m:!0,p:!0}}),[{key:"update",value:function(t,e,s,i,a,r){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 n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,n=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,n=!0),n}}]);function Kt(t){for(var e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",a=e.length,r=0;r<a;r+=1)switch(e[r].toLowerCase()){case"italic":i="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"}return{style:i,weight:t.fWeight||s}}function Jt(t,e,s){var i,a,r,n,h,o,l,p;switch(o=s*(1-e),l=s*(1-(h=6*t-(n=Math.floor(6*t)))*e),p=s*(1-(1-h)*e),n%6){case 0:i=s,a=p,r=o;break;case 1:i=l,a=s,r=o;break;case 2:i=o,a=s,r=p;break;case 3:i=o,a=l,r=s;break;case 4:i=p,a=o,r=s;break;case 5:i=s,a=o,r=l}return[i,a,r]}function Qt(t,e,s){var i,a=Math.max(t,e,s),r=Math.min(t,e,s),n=a-r,h=0===a?0:n/a,o=a/255;switch(a){case r:i=0;break;case t:i=e-s+n*(e<s?6:0),i/=6*n;break;case e:i=s-t+2*n,i/=6*n;break;case s:i=t-e+4*n,i/=6*n}return[i,h,o]}function Zt(t,e){var s=Qt(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),Jt(s[0],s[1],s[2])}function $t(t,e){var s=Qt(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Jt(s[0],s[1],s[2])}function te(t,e){var s=Qt(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Jt(s[0],s[1],s[2])}for(Ht=0;Ht<256;Ht+=1)Ht.toString(16).length;var ee=function(t){function e(t,s,i){var a;return n(this,e),(a=r(this,e))._isFirstFrame=!0,a._hasMaskedPath=!1,a._frameId=-1,a._textData=t,a._renderType=s,a.elem=i,a._animatorsData=v(a._textData.a.length),a._pathData={},a._moreOptions={alignment:{}},a.renderedLetters=[],a.lettersChangedFlag=!1,a.mHelper=new Tt,a.defaultPropsArray=[],a.initDynamicPropertyContainer(i),a}return p(e,t),o(e,[{key:"searchProperties",value:function(){var t,e,s=this._textData.a.length,i=at.getProp;for(t=0;t<s;t+=1)e=this._textData.a[t],this._animatorsData[t]=new Ut(this.elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this,this._textData.p.a,0,0,this),f:i(this,this._textData.p.f,0,0,this),l:i(this,this._textData.p.l,0,0,this),r:i(this,this._textData.p.r,0,0,this),p:i(this,this._textData.p.p,0,0,this),m:this.elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this.elem,this._textData.m.a,1,0,this)}},{key:"getMeasures",value:function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var s,i,a,r,n,h,o,l,p,u,f,c,d,m,v,y,g,_,k,x=this._moreOptions.alignment.v,S=this._animatorsData,P=this._textData,T=this.mHelper,L=this._renderType,M=this.renderedLetters.length,w=t.l;if(this._hasMaskedPath){if(k=this._pathData.m,!this._pathData.n||this._pathData._mdf){var b,C=k.v;for(this._pathData.r.v&&(C=C.reverse()),n={tLength:0,segments:[]},r=C._length-1,y=0,a=0;a<r;a+=1)b=j.buildBezierData(C.v[a],C.v[a+1],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[a+1][0]-C.v[a+1][0],C.i[a+1][1]-C.v[a+1][1]]),n.tLength+=b.segmentLength,n.segments.push(b),y+=b.segmentLength;a=r,k.v.c&&(b=j.buildBezierData(C.v[a],C.v[0],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),n.tLength+=b.segmentLength,n.segments.push(b),y+=b.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,h=this._pathData.f.v,f=0,u=1,l=0,p=!0,m=n.segments,h<0&&k.v.c)for(n.tLength<Math.abs(h)&&(h=-Math.abs(h)%n.tLength),u=(d=m[f=m.length-1].points).length-1;h<0;)h+=d[u].partialLength,(u-=1)<0&&(u=(d=m[f-=1].points).length-1);c=(d=m[f].points)[u-1],v=(o=d[u]).partialLength}r=w.length,s=0,i=0;var D,A,I,F,O,E=1.2*t.finalSize*.714,V=!0;I=S.length;var N,z,q,R,B,X,Y,W,H,U,G,K,J=-1,Q=h,Z=f,$=u,tt=-1,et="",st=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,at=0,rt=2===t.j?-.5:-1,nt=0,ht=!0;for(a=0;a<r;a+=1)if(w[a].n){for(it&&(it+=at);nt<a;)w[nt].animatorJustifyOffset=it,nt+=1;it=0,ht=!0}else{for(A=0;A<I;A+=1)(D=S[A].a).t.propType&&(ht&&2===t.j&&(at+=D.t.v*rt),(O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?it+=D.t.v*O[0]*rt:it+=D.t.v*O*rt);ht=!1}for(it&&(it+=at);nt<a;)w[nt].animatorJustifyOffset=it,nt+=1}for(a=0;a<r;a+=1){if(T.reset(),R=1,w[a].n)s=0,i+=t.yOffset,i+=V?1:0,h=Q,V=!1,this._hasMaskedPath&&(u=$,c=(d=m[f=Z].points)[u-1],v=(o=d[u]).partialLength,l=0),et="",G="",H="",K="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(tt!==w[a].line){switch(t.j){case 1:h+=y-t.lineWidths[w[a].line];break;case 2:h+=(y-t.lineWidths[w[a].line])/2}tt=w[a].line}J!==w[a].ind&&(w[J]&&(h+=w[J].extra),h+=w[a].an/2,J=w[a].ind),h+=x[0]*w[a].an*.005;var ot=0;for(A=0;A<I;A+=1)(D=S[A].a).p.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?ot+=D.p.v[0]*O[0]:ot+=D.p.v[0]*O),D.a.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?ot+=D.a.v[0]*O[0]:ot+=D.a.v[0]*O);for(p=!0,this._pathData.a.v&&(h=.5*w[0].an+(y-this._pathData.f.v-.5*w[0].an-.5*w[w.length-1].an)*J/(r-1),h+=this._pathData.f.v);p;)l+v>=h+ot||!d?(g=(h+ot-l)/o.partialLength,z=c.point[0]+(o.point[0]-c.point[0])*g,q=c.point[1]+(o.point[1]-c.point[1])*g,T.translate(-x[0]*w[a].an*.005,-x[1]*E*.01),p=!1):d&&(l+=o.partialLength,(u+=1)>=d.length&&(u=0,m[f+=1]?d=m[f].points:k.v.c?(u=0,d=m[f=0].points):(l-=o.partialLength,d=null)),d&&(c=o,v=(o=d[u]).partialLength));N=w[a].an/2-w[a].add,T.translate(-N,0,0)}else N=w[a].an/2-w[a].add,T.translate(-N,0,0),T.translate(-x[0]*w[a].an*.005,-x[1]*E*.01,0);for(A=0;A<I;A+=1)(D=S[A].a).t.propType&&(O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars),0===s&&0===t.j||(this._hasMaskedPath?O.length?h+=D.t.v*O[0]:h+=D.t.v*O:O.length?s+=D.t.v*O[0]:s+=D.t.v*O));for(t.strokeWidthAnim&&(X=t.sw||0),t.strokeColorAnim&&(B=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),A=0;A<I;A+=1)(D=S[A].a).a.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?T.translate(-D.a.v[0]*O[0],-D.a.v[1]*O[1],D.a.v[2]*O[2]):T.translate(-D.a.v[0]*O,-D.a.v[1]*O,D.a.v[2]*O));for(A=0;A<I;A+=1)(D=S[A].a).s.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?T.scale(1+(D.s.v[0]-1)*O[0],1+(D.s.v[1]-1)*O[1],1):T.scale(1+(D.s.v[0]-1)*O,1+(D.s.v[1]-1)*O,1));for(A=0;A<I;A+=1){if(D=S[A].a,O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars),D.sk.propType&&(O.length?T.skewFromAxis(-D.sk.v*O[0],D.sa.v*O[1]):T.skewFromAxis(-D.sk.v*O,D.sa.v*O)),D.r.propType&&(O.length?T.rotateZ(-D.r.v*O[2]):T.rotateZ(-D.r.v*O)),D.ry.propType&&(O.length?T.rotateY(D.ry.v*O[1]):T.rotateY(D.ry.v*O)),D.rx.propType&&(O.length?T.rotateX(D.rx.v*O[0]):T.rotateX(D.rx.v*O)),D.o.propType&&(O.length?R+=(D.o.v*O[0]-R)*O[0]:R+=(D.o.v*O-R)*O),t.strokeWidthAnim&&D.sw.propType&&(O.length?X+=D.sw.v*O[0]:X+=D.sw.v*O),t.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)O.length?B[W]+=(D.sc.v[W]-B[W])*O[0]:B[W]+=(D.sc.v[W]-B[W])*O;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(W=0;W<3;W+=1)O.length?Y[W]+=(D.fc.v[W]-Y[W])*O[0]:Y[W]+=(D.fc.v[W]-Y[W])*O;D.fh.propType&&(Y=O.length?te(Y,D.fh.v*O[0]):te(Y,D.fh.v*O)),D.fs.propType&&(Y=O.length?Zt(Y,D.fs.v*O[0]):Zt(Y,D.fs.v*O)),D.fb.propType&&(Y=O.length?$t(Y,D.fb.v*O[0]):$t(Y,D.fb.v*O))}}for(A=0;A<I;A+=1)(D=S[A].a).p.propType&&(O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars),this._hasMaskedPath?O.length?T.translate(0,D.p.v[1]*O[0],-D.p.v[2]*O[1]):T.translate(0,D.p.v[1]*O,-D.p.v[2]*O):O.length?T.translate(D.p.v[0]*O[0],D.p.v[1]*O[1],-D.p.v[2]*O[2]):T.translate(D.p.v[0]*O,D.p.v[1]*O,-D.p.v[2]*O));if(t.strokeWidthAnim&&(H=X<0?0:X),t.strokeColorAnim&&(U=B),t.fillColorAnim&&t.fc&&(G=Y),this._hasMaskedPath){if(T.translate(0,-t.ls),T.translate(0,x[1]*E*.01+i,0),this._pathData.p.v){_=(o.point[1]-c.point[1])/(o.point[0]-c.point[0]);var lt=180*Math.atan(_)/Math.PI;o.point[0]<c.point[0]&&(lt+=180),T.rotate(-lt*Math.PI/180)}T.translate(z,q,0),h-=x[0]*w[a].an*.005,w[a+1]&&J!==w[a+1].ind&&(h+=w[a].an/2,h+=.001*t.tr*t.finalSize)}else{switch(T.translate(s,i,0),t.ps&&T.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:T.translate(w[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[a].line]),0,0);break;case 2:T.translate(w[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[a].line])/2,0,0)}T.translate(0,-t.ls),T.translate(N,0,0),T.translate(x[0]*w[a].an*.005,x[1]*E*.01,0),s+=w[a].l+.001*t.tr*t.finalSize}"html"===L?et=T.toCSS():"svg"===L?et=T.to2dCSS():st=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],K=R}M<=a?(F=new Gt(K,H,U,G,et,st),this.renderedLetters.push(F),M+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[a],this.lettersChangedFlag=F.update(K,H,U,G,et,st)||this.lettersChangedFlag)}}}},{key:"getValue",value:function(t){t!==this._frameId&&(this._frameId=t,this.iterateDynamicProperties(t))}}])}(m);function se(t,e,s){var i,a,r,n,h,o,l=t.length;for(a=0;a<l;a+=1)if("ks"in(i=t[a])&&!i.completed){if(i.completed=!0,i.tt&&(t[a-1].td=i.tt),i.hasMask){var p=i.masksProperties;for(n=p.length,r=0;r<n;r+=1)if(p[r].pt.k.i)re(p[r].pt.k);else for(o=p[r].pt.k.length,h=0;h<o;h+=1)p[r].pt.k[h].s&&re(p[r].pt.k[h].s[0]),p[r].pt.k[h].e&&re(p[r].pt.k[h].e[0])}0===i.ty?(i.layers=ie(i.refId,e),se(i.layers,e)):4===i.ty?ae(i.shapes):5==i.ty&&fe(i)}}function ie(t,e){for(var s=0,i=e.length;s<i;){if(e[s].id===t)return e[s].layers.__used?JSON.parse(JSON.stringify(e[s].layers)):(e[s].layers.__used=!0,e[s].layers);s+=1}}function ae(t){var e,s,i;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)re(t[e].ks.k);else for(i=t[e].ks.k.length,s=0;s<i;s+=1)t[e].ks.k[s].s&&re(t[e].ks.k[s].s[0]),t[e].ks.k[s].e&&re(t[e].ks.k[s].e[0]);else"gr"==t[e].ty&&ae(t[e].it)}function re(t){var e,s=t.i.length;for(e=0;e<s;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 ne(t,e){var s=e?e.split("."):[100,100,100];return t[0]>s[0]||!(s[0]>t[0])&&(t[1]>s[1]||!(s[1]>t[1])&&(t[2]>s[2]||!(s[2]>t[2])&&void 0))}var he,oe=function(){var t=[4,4,14];function e(t){var e,s,i,a=t.length;for(e=0;e<a;e+=1)5===t[e].ty&&(s=t[e],i=void 0,i=s.t.d,s.t.d={k:[{s:i,t:0}]})}return function(s){if(ne(t,s.v)&&(e(s.layers),s.assets)){var i,a=s.assets.length;for(i=0;i<a;i+=1)s.assets[i].layers&&e(s.assets[i].layers)}}}(),le=(he=[4,7,99],function(t){if(t.chars&&!ne(he,t.v)){var e,s,i,a,r,n=t.chars.length;for(e=0;e<n;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(i=(r=t.chars[e].data.shapes[0].it).length,s=0;s<i;s+=1)(a=r[s].ks.k).__converted||(re(r[s].ks.k),a.__converted=!0)}}),pe=function(){var t=[4,1,9];function e(t){var s,i,a,r=t.length;for(s=0;s<r;s+=1)if("gr"===t[s].ty)e(t[s].it);else if("fl"===t[s].ty||"st"===t[s].ty)if(t[s].c.k&&t[s].c.k[0].i)for(a=t[s].c.k.length,i=0;i<a;i+=1)t[s].c.k[i].s&&(t[s].c.k[i].s[0]/=255,t[s].c.k[i].s[1]/=255,t[s].c.k[i].s[2]/=255,t[s].c.k[i].s[3]/=255),t[s].c.k[i].e&&(t[s].c.k[i].e[0]/=255,t[s].c.k[i].e[1]/=255,t[s].c.k[i].e[2]/=255,t[s].c.k[i].e[3]/=255);else t[s].c.k[0]/=255,t[s].c.k[1]/=255,t[s].c.k[2]/=255,t[s].c.k[3]/=255}function s(t){var s,i=t.length;for(s=0;s<i;s+=1)4===t[s].ty&&e(t[s].shapes)}return function(e){if(ne(t,e.v)&&(s(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&s(e.assets[i].layers)}}}(),ue=function(){var t=[4,4,18];function e(t){var s,i,a;for(s=t.length-1;s>=0;s-=1)if("sh"==t[s].ty)if(t[s].ks.k.i)t[s].ks.k.c=t[s].closed;else for(a=t[s].ks.k.length,i=0;i<a;i+=1)t[s].ks.k[i].s&&(t[s].ks.k[i].s[0].c=t[s].closed),t[s].ks.k[i].e&&(t[s].ks.k[i].e[0].c=t[s].closed);else"gr"==t[s].ty&&e(t[s].it)}function s(t){var s,i,a,r,n,h,o=t.length;for(i=0;i<o;i+=1){if((s=t[i]).hasMask){var l=s.masksProperties;for(r=l.length,a=0;a<r;a+=1)if(l[a].pt.k.i)l[a].pt.k.c=l[a].cl;else for(h=l[a].pt.k.length,n=0;n<h;n+=1)l[a].pt.k[n].s&&(l[a].pt.k[n].s[0].c=l[a].cl),l[a].pt.k[n].e&&(l[a].pt.k[n].e[0].c=l[a].cl)}4===s.ty&&e(s.shapes)}}return function(e){if(ne(t,e.v)&&(s(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&s(e.assets[i].layers)}}}();function fe(t){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var ce={completeData:function(t,e){t.__complete||(pe(t),oe(t),le(t),ue(t),se(t.layers,t.assets),t.__complete=!0)},checkColors:pe,checkChars:le,checkShapes:ue,completeLayers:se},de=function(t){function e(t,s){var i;n(this,e),(i=r(this,e)).data=t,i.is3D=!!i.data.ddd,void 0===i.data.sr&&(i.data.sr=1),i.session=s,i.blendMode=t.bm||0,i.offsetTime=t.st||0,i.fullname=t.nm||"",i.idname=t.ln||"",i.classnames=t.cl?t.cl.split(" "):[];var a=i.session,h=a.local,o=a.global;return i.isOverlapLayer=i.data.op>=h.op-h.st,i.isOverlapMode=o.overlapMode,i.display=null,i.transformHierarchy=null,i.isHierarchyBySomeLayer=!1,i.parent=null,i._isInRange=!1,i.dynamicProperties=[],i.transform=null,i.data.ks&&(i.transform=new rt(i,i.data.ks),i.data.ao&&(i.transform.autoOriented=!0)),i.masks=null,i.checkMasks()&&(i.masks=new Pt(i,i.data.masksProperties)),i}return p(e,t),o(e,[{key:"isInRange",get:function(){return this._isInRange},set:function(t){t!==this._isInRange&&(this._isInRange=t,this._mdf=!0)}},{key:"checkMasks",value: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}},{key:"outTypeExpressionMode",value:function(){this._hasOutTypeExpression=!0,this.isOverlapLayer&&(this.needUpdateOverlap=!0)}},{key:"prepareProperties",value:function(t,e){var s,i=this.dynamicProperties.length;for(s=0;s<i;s+=1)(e||this.isHierarchyBySomeLayer&&"transform"===this.dynamicProperties[s].propType)&&(this.dynamicProperties[s].getValue(t),this.dynamicProperties[s]._mdf&&(this._mdf=!0))}},{key:"addDynamicProperty",value:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},{key:"setTransformHierarchy",value:function(t){this.transformHierarchy=t,t.isHierarchyBySomeLayer=!0}},{key:"setDisplay",value:function(t){this.display=t,this.updateLottieToDisplay(!0)}},{key:"updateLottieToDisplay",value:function(t){this.display&&this.display.updateLottie(this,t)}},{key:"checkLayerLimits",value:function(t){return this.data.ip<=t&&this.data.op>=t}},{key:"updateLayerFrame",value:function(t,e){this._mdf=!1,this.isOverlapMode&&this.isOverlapLayer?this.isInRange=t>=this.data.ip:this.isInRange=this.checkLayerLimits(t),this.prepareProperties(t,e||this.isInRange)}},{key:"updateFrame",value:function(t){this.updateLayerFrame(t),this._mdf&&this.updateLottieToDisplay()}}])}(Yt),me=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).localSize=s.local.size,i.collapseSize=s.local.collapseSize,i.isOneNodeCamera=!i.data.ks.a,i.isNullCamera=!1,i.pe=at.getProp(i,i.data.pe,0,0,i),i.updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),ve=function(t){function e(t,s){var i;n(this,e),(i=r(this,e)).session=s,i.fullname="nullcamera",i.localSize=s.local.size,i.collapseSize=s.local.collapseSize,i.isOneNodeCamera=!1,i.isNullCamera=!0;var a=i.collapseSize,h=a.width,o=a.height;return i.pe={_mdf:!1,v:1.3888671875*Math.min(h,o)},i}return p(e,t),o(e,[{key:"updateFrame",value:function(){}}])}(Yt),ye=function(t){function e(t,s){var i;if(n(this,e),(i=r(this,e,[t,s])).childLayers=[],i._cmdf=!1,i.tm=null,i.data.tm){var a=i.session.global.frameRate;i.tm=at.getProp(i,i.data.tm,0,a,i)}return i.updateLayerFrame(z,!0),i}return p(e,t),o(e,[{key:"updateFrame",value:function(t){if(this.updateLayerFrame(t),t-=this.offsetTime,this.tm){var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),t=e}else t/=this.data.sr;this.updateChildsFrame(t),(this._mdf||this._cmdf)&&(this._mdf&&this.updateLottieToDisplay(),this.emit("update",this))}},{key:"updateChildsFrame",value:function(t){this._cmdf=!1;for(var e=0;e<this.childLayers.length;e++)this.childLayers[e].updateFrame(t),(this.childLayers[e]._mdf||this.childLayers[e]._cmdf)&&(this._cmdf=!0)}},{key:"addChild",value:function(t){t.parent=this,this.childLayers.push(t)}}])}(de),ge=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),_e=[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],ke={w:0,size:0,shapes:[]};function xe(t,e){var s=document.createElementNS("http://www.w3.org/2000/svg","text");s.style.fontSize="100px";var i=Kt(e);return s.setAttribute("font-family",e.fFamily),s.setAttribute("font-style",i.style),s.setAttribute("font-weight",i.weight),s.textContent="1",e.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",e.fClass)):s.style.fontFamily=e.fFamily,t.appendChild(s),s}function Se(t,e){var s=document.createElement("span");s.style.fontFamily=e;var i=document.createElement("span");i.innerText="giItT1WQy@!-/#",s.style.position="absolute",s.style.left="-10000px",s.style.top="-10000px",s.style.fontSize="300px",s.style.fontVariant="normal",s.style.fontStyle="normal",s.style.fontWeight="normal",s.style.letterSpacing="0",s.appendChild(i),document.body.appendChild(s);var a=i.offsetWidth;return i.style.fontFamily=function(t){for(var e=t.split(","),s=e.length,i=[],a=0;a<s;a+=1)"sans-serif"!==e[a]&&"monospace"!==e[a]&&i.push(e[a]);return i.join(",")}(t)+", "+e,{node:i,w:a,parent:s}}var Pe=o((function t(){n(this,t),this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}),[{key:"checkLoadedFonts",value:function(){for(var t,e,s=this.fonts.length,i=s,a=0;a<s;a++)this.fonts[a].loaded?i-=1:"n"===this.fonts[a].fOrigin||0===this.fonts[a].origin?this.fonts[a].loaded=!0:(t=this.fonts[a].monoCase.node,e=this.fonts[a].monoCase.w,t.offsetWidth!==e?(i-=1,this.fonts[a].loaded=!0):(t=this.fonts[a].sansCase.node,e=this.fonts[a].sansCase.w,t.offsetWidth!==e&&(i-=1,this.fonts[a].loaded=!0)),this.fonts[a].loaded&&(this.fonts[a].sansCase.parent.parentNode.removeChild(this.fonts[a].sansCase.parent),this.fonts[a].monoCase.parent.parentNode.removeChild(this.fonts[a].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}},{key:"addFonts",value:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);for(var s=t.list,i=s.length,a=i,r=0;r<i;r+=1){var n=!0,h=void 0,o=void 0;if(s[r].loaded=!1,s[r].monoCase=Se(s[r].fFamily,"monospace"),s[r].sansCase=Se(s[r].fFamily,"sans-serif"),s[r].fPath){if("p"===s[r].fOrigin||3===s[r].origin){if((h=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[r].fFamily+'"], style[f-origin="3"][f-family="'+s[r].fFamily+'"]')).length>0&&(n=!1),n){var l=document.createElement("style");l.setAttribute("f-forigin",s[r].fOrigin),l.setAttribute("f-origin",s[r].origin),l.setAttribute("f-family",s[r].fFamily),l.type="text/css",l.innerText="@font-face {font-family: "+s[r].fFamily+"; font-style: normal; src: url('"+s[r].fPath+"');}",e.appendChild(l)}}else if("g"===s[r].fOrigin||1===s[r].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),o=0;o<h.length;o++)-1!==h[o].href.indexOf(s[r].fPath)&&(n=!1);if(n){var p=document.createElement("link");p.setAttribute("f-forigin",s[r].fOrigin),p.setAttribute("f-origin",s[r].origin),p.type="text/css",p.rel="stylesheet",p.href=s[r].fPath,document.body.appendChild(p)}}else if("t"===s[r].fOrigin||2===s[r].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),o=0;o<h.length;o++)s[r].fPath===h[o].src&&(n=!1);if(n){var u=document.createElement("link");u.setAttribute("f-forigin",s[r].fOrigin),u.setAttribute("f-origin",s[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",s[r].fPath),e.appendChild(u)}}}else s[r].loaded=!0,a-=1;s[r].helper=xe(e,s[r]),s[r].cache={},this.fonts.push(s[r])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}},{key:"addChars",value:function(t){if(t){this.chars||(this.chars=[]);for(var e=t.length,s=this.chars.length,i=0;i<e;i+=1){for(var a=0,r=!1;a<s;)this.chars[a].style===t[i].style&&this.chars[a].fFamily===t[i].fFamily&&this.chars[a].ch===t[i].ch&&(r=!0),a+=1;r||(this.chars.push(t[i]),s+=1)}}}},{key:"getCharData",value:function(t,e,s){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===s)return this.chars[i];i+=1}return("string"!=typeof t||13===t.charCodeAt(0))&&t||this._warned||(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,s)),ke}},{key:"measureText",value:function(t,e,s){var i=this.getFontByName(e),a=t.charCodeAt(0);if(!i.cache[a+1]){var r=i.helper;if(" "===t){r.textContent="|"+t+"|";var n=r.getComputedTextLength();r.textContent="||";var h=r.getComputedTextLength();i.cache[a+1]=(n-h)/100}else r.textContent=t,i.cache[a+1]=r.getComputedTextLength()/100}return i.cache[a+1]*s}},{key:"getFontByName",value:function(t){for(var e=0,s=this.fonts.length;e<s;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}},{key:"setIsLoaded",value:function(){this.isLoaded=!0}}]);Pe.getCombinedCharacterCodes=function(){return _e};var Te=o((function t(e,s){n(this,t),this._frameId=-1,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=s,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.defaultBoxWidth=[0,0],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)}),[{key:"copyData",value:function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);return t}},{key:"setCurrentData",value:function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0}},{key:"searchProperty",value:function(){return this.searchKeyframes()}},{key:"searchKeyframes",value:function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf}},{key:"addEffect",value:function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)}},{key:"getValue",value: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,s=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)r=s!==this.keysIndex?this.effectsSequence[i](r,r.t):this.effectsSequence[i](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}}},{key:"getKeyframeValue",value:function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,s=0,i=t.length;s<=i-1&&!(s===i-1||t[s+1].t>e);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s}},{key:"buildFinalText",value:function(t){for(var e,s=Pe.getCombinedCharacterCodes(),i=[],a=0,r=t.length;a<r;)e=t.charCodeAt(a),-1!==s.indexOf(e)?i[i.length-1]+=t.charAt(a):e>=55296&&e<=56319&&(e=t.charCodeAt(a+1))>=56320&&e<=57343?(i.push(t.substr(a,2)),++a):i.push(t.charAt(a)),a+=1;return i}},{key:"completeTextData",value:function(t){t.__complete=!0;var e,s,i,a,r,n,h,o=this.elem.globalData.fontManager,l=this.data,p=[],u=0,f=l.m.g,c=0,d=0,m=0,v=[],y=0,g=0,_=o.getFontByName(t.f),k=0,x=Kt(_);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var S,P=t.tr/1e3*t.finalSize;if(t.sz)for(var T,L,M=!0,w=t.sz[0],b=t.sz[1];M;){T=0,y=0,s=(L=this.buildFinalText(t.t)).length,P=t.tr/1e3*t.finalSize;var C=-1;for(e=0;e<s;e+=1)S=L[e].charCodeAt(0),i=!1," "===L[e]?C=e:13!==S&&3!==S||(y=0,i=!0,T+=t.finalLineHeight||1.2*t.finalSize),o.chars?(h=o.getCharData(L[e],_.fStyle,_.fFamily),k=i?0:h.w*t.finalSize/100):k=o.measureText(L[e],t.f,t.finalSize),y+k>w&&" "!==L[e]?(-1===C?s+=1:e=C,T+=t.finalLineHeight||1.2*t.finalSize,L.splice(e,C===e?1:0,"\r"),C=-1,y=0):(y+=k,y+=P);T+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&b<T?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=L,s=t.finalText.length,M=!1)}y=-P,k=0;var D,A=0;for(e=0;e<s;e+=1)if(i=!1,13===(S=(D=t.finalText[e]).charCodeAt(0))||3===S?(A=0,v.push(y),g=y>g?y:g,y=-2*P,a="",i=!0,m+=1):a=D,o.chars?(h=o.getCharData(D,_.fStyle,o.getFontByName(t.f).fFamily),k=i?0:h.w*t.finalSize/100):k=o.measureText(a,t.f,t.finalSize)," "===D?A+=k+P:(y+=k+P+A,A=0),p.push({l:k,an:k,add:c,n:i,anIndexes:[],val:a,line:m,animatorJustifyOffset:0}),2==f){if(c+=k,""===a||" "===a||e===s-1){for(""!==a&&" "!==a||(c-=k);d<=e;)p[d].an=c,p[d].ind=u,p[d].extra=k,d+=1;u+=1,c=0}}else if(3==f){if(c+=k,""===a||e===s-1){for(""===a&&(c-=k);d<=e;)p[d].an=c,p[d].ind=u,p[d].extra=k,d+=1;c=0,u+=1}}else p[u].ind=u,p[u].extra=0,u+=1;if(t.l=p,g=y>g?y:g,v.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=v;var I,F,O,E,V=l.a;n=V.length;var N=[];for(r=0;r<n;r+=1){for((I=V[r]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),E=0,O=I.s.b,e=0;e<s;e+=1)(F=p[e]).anIndexes[r]=E,(1==O&&""!==F.val||2==O&&""!==F.val&&" "!==F.val||3==O&&(F.n||" "==F.val||e==s-1)||4==O&&(F.n||e==s-1))&&(1===I.s.rn&&N.push(E),E+=1);l.a[r].s.totalChars=E;var j=-1,z=void 0;if(1===I.s.rn)for(e=0;e<s;e+=1)j!=(F=p[e]).anIndexes[r]&&(j=F.anIndexes[r],z=N.splice(Math.floor(Math.random()*N.length),1)[0]),F.anIndexes[r]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100}},{key:"updateDocumentData",value:function(t,e){e=void 0===e?this.keysIndex:e;var s=this.copyData({},this.data.d.k[e].s);s=this.copyData(s,t),this.data.d.k[e].s=s,this.recalculate(e),this.elem.addDynamicProperty(this)}},{key:"recalculate",value:function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)}},{key:"canResizeFont",value:function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}},{key:"setMinimumFontSize",value:function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}}]),Le=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).global=i.globalData=s,i.textProperty=new Te(i,t.t,i.dynamicProperties),i.textAnimator=new ee(t.t,i.renderType,i),i.textAnimator.searchProperties(i.dynamicProperties),i.updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),Me=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).shapes=new Xt(i,i.data.shapes),i.updateLayerFrame(z,!0),i}return p(e,t),o(e,[{key:"getPrimitives",value:function(){return this.shapes.stylesList}}])}(de),we=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).width=t.sw,i.height=t.sh,i.color=t.sc,i.updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),be=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de);const Ce={Linear:{None:t=>t},Ease:{In:function(){const t=new T(.42,0,1,1);return function(e){return t.get(e)}}(),Out:function(){const t=new T(0,0,.58,1);return function(e){return t.get(e)}}(),InOut:function(){const t=new T(.42,0,.58,1);return function(e){return t.get(e)}}(),Bezier(t,e,s,i){const a=new T(t,e,s,i);return function(t){return a.get(t)}}},Elastic:{In:t=>0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI),Out:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1,InOut:t=>0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1},Back:{In(t){const e=1.70158;return t*t*((e+1)*t-e)},Out(t){const e=1.70158;return--t*t*((e+1)*t+e)+1},InOut(t){const e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:t=>1-Ce.Bounce.Out(1-t),Out:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,InOut:t=>t<.5?.5*Ce.Bounce.In(2*t):.5*Ce.Bounce.Out(2*t-1)+.5}};i.UPDATE_PRIORITY,i.Ticker.shared;const De=t=>t>0?t:0;class Ae extends i.Graphics{constructor(t,e){super(),this.parentCompBox=t,this.config=e,this.setStrokeStyle({width:0})}updateMasks(t){this.clear();for(let r=0;r<t.viewData.length;r++){var e,s,i,a;if("s"===(null===(e=t.viewData[r])||void 0===e||null===(s=e.data)||void 0===s?void 0:s.mode)){const t=this.config.session.local;this.rect(0,0,t.w,t.h),this.fill({color:0})}const n=t.viewData[r].v,h=n.v[0];this.moveTo(h[0],h[1]);const o=n._length;let l=1;for(;l<o;l++){const t=n.o[l-1],e=n.i[l],s=n.v[l];this.bezierCurveTo(De(t[0]),De(t[1]),De(e[0]),De(e[1]),De(s[0]),De(s[1]))}const p=n.o[l-1],u=n.i[0],f=n.v[0];this.bezierCurveTo(De(p[0]),De(p[1]),De(u[0]),De(u[1]),De(f[0]),De(f[1])),"s"===(null===(i=t.viewData[r])||void 0===i||null===(a=i.data)||void 0===a?void 0:a.mode)&&this.cut()}this.fill({color:0})}}class Ie extends i.Container{constructor(t,e){super(),this.label=t.fullname,this.lottieLayer=t,e||(this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie)),this.onRender=()=>{this.updateLottie(this.lottieLayer,!0)}}setTransformHierarchy(t){this.hierarchy=t}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),this.visible=t.isInRange,this._onUpdate()}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}class Fe extends i.Graphics{constructor(t){super(),this.passMatrix=new i.Matrix,this.primitive=t,this._lineStyle={}}setShapeTransform(){const t=this.primitive.preTransforms.finalTransform.props;this.passMatrix.set(t[0],t[1],t[4],t[5],t[12],t[13]),this.setFromMatrix(this.passMatrix)}updateTransform(){this.setShapeTransform(),this._onUpdate()}updateLottiePrimitive(){this.updateTransform();const t=this.primitive,e=t.type;if(this.clear(),("st"===e||"gs"===e)&&0===t.wi||!t.data._shouldRender||0===t.coOp)return;const s=t.elements,i=s.length;for(let t=0;t<i;t+=1){const e=s[t].trNodes,i=e.length;for(let t=0;t<i;t++)"m"==e[t].t?this.moveTo(e[t].p[0],e[t].p[1]):"c"==e[t].t?this.bezierCurveTo(e[t].pts[0],e[t].pts[1],e[t].pts[2],e[t].pts[3],e[t].pts[4],e[t].pts[5]):this.closePath()}"st"!==e&&"gs"!==e||(t.da?(this._lineStyle.lineDash=t.da,this._lineStyle.lineDashOffset=t.do):this._lineStyle.lineDash=[]),"st"===e||"gs"===e?(this._lineStyle.width=t.wi,this._lineStyle.cap=t.lc,this._lineStyle.join=t.lj,this._lineStyle.alpha=t.coOp,this._lineStyle.miterLimit=t.ml||0,this.color=Y.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this._lineStyle.color=this.color,this.setStrokeStyle(this._lineStyle).stroke()):(this.color=Y.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this.fill({color:this.color,alpha:this.alpha}))}}class Oe extends i.Graphics{constructor(t){super(),this.label=t.fullname,this.lottieLayer=t,this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.lottiePrimitives=[],this.shipPrimitives(),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie),this.onRender=()=>{this.updateLottie(this.lottieLayer,!0)}}shipPrimitives(){const t=this.lottieLayer.getPrimitives();this.lottiePrimitives=t.map((t=>{const e=new Fe(t);return this.addChild(e),e}))}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),t.shapes&&this.updateLottiePrimitives(),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}updateLottiePrimitives(){for(let t=0;t<this.lottiePrimitives.length;t++)this.lottiePrimitives[t].updateLottiePrimitive()}}function Ee(t){return Array.apply(null,{length:t})}class Ve extends i.Matrix{reset(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}applyToX(t,e,s=0){return t*this.a+e*this.c+this.tx}applyToY(t,e,s=0){return t*this.b+e*this.d+this.ty}applyToZ(t,e,s=0){return s}applyToXArray(t){return t.map((t=>this.applyToX(t.x,t.y)))}applyToYArray(t){return t.map((t=>this.applyToY(t.x,t.y)))}}class Ne extends i.Graphics{constructor(t){super(),this.label=t.fullname,this.lottieLayer=t,this.lottieLayer.lettersChangedFlag=!0,this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.init(),this.buildNewText(),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie),this.onRender=()=>{this.updateLottie(this.lottieLayer,!0)}}init(){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._fillStyle={},this._values={fill:"#000000",stroke:"#000000",sWidth:0,fValue:""}}buildNewText(){const t=this.lottieLayer.textProperty.currentData;this.renderedLetters=Ee(t.l?t.l.length:0);let e=!1;t.fc?(e=!0,this._values.fill=Y.rgb2hex(t.fc)):this._values.fill="#000000",this._fill=e;let s=!1;t.sc&&(s=!0,this._values.stroke=this.buildColor(t.sc),this._values.sWidth=t.sw);const i=this.lottieLayer.global.fontManager;let a,r,n,h,o,l,p,u,f,c,d,m,v=i.getFontByName(t.f),y=t.l,g=new Ve;this._stroke=s,this._values.fValue=t.finalSize+"px "+i.getFontByName(t.f).fFamily,r=t.finalText.length;let _=this.lottieLayer.data.singleShape,k=.001*t.tr*t.finalSize,x=0,S=0,P=!0,T=0;for(a=0;a<r;a+=1){n=i.getCharData(t.finalText[a],v.fStyle,i.getFontByName(t.f).fFamily),h=n&&n.data||{},g.reset(),_&&y[a].n&&(x=-k,S+=t.yOffset,S+=P?1:0,P=!1),p=h.shapes?h.shapes[0].it:[],f=p.length,g.scale(t.finalSize/100,t.finalSize/100),d=Ee(f-1),window.$commands.push(d);let e=0;for(u=0;u<f;u+=1)if("sh"===p[u].ty){for(l=p[u].ks.k.i.length,c=p[u].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(g.applyToX(c.v[0][0],c.v[0][1],0),g.applyToY(c.v[0][0],c.v[0][1],0)),m.push(g.applyToX(c.o[o-1][0],c.o[o-1][1],0),g.applyToY(c.o[o-1][0],c.o[o-1][1],0),g.applyToX(c.i[o][0],c.i[o][1],0),g.applyToY(c.i[o][0],c.i[o][1],0),g.applyToX(c.v[o][0],c.v[o][1],0),g.applyToY(c.v[o][0],c.v[o][1],0));m.push(g.applyToX(c.o[o-1][0],c.o[o-1][1],0),g.applyToY(c.o[o-1][0],c.o[o-1][1],0),g.applyToX(c.i[0][0],c.i[0][1],0),g.applyToY(c.i[0][0],c.i[0][1],0),g.applyToX(c.v[0][0],c.v[0][1],0),g.applyToY(c.v[0][0],c.v[0][1],0)),d[e]=m,e+=1}_&&(x+=y[a].l,x+=k),this._textSpans[T]?this._textSpans[T].elem=d:this._textSpans[T]={elem:d},T+=1}this.renderText()}renderText(){let t,e,s,a,r,n;this.lottieLayer.textAnimator.getMeasures(this.lottieLayer.textProperty.currentData,this.lottieLayer.lettersChangedFlag);let h=this.lottieLayer.textAnimator.renderedLetters,o=this.lottieLayer.textProperty.currentData.l;var l;e=o.length;var p,u,f=null,c=null,d=null;for(this.clear(),t=0;t<e;t+=1)if(!o[t].n){if(l=h[t]){this.save();const t=l.p,e=new i.Matrix(t[0],t[1],t[4],t[5],t[12],t[13]);this.setTransform(e)}if(this._fill)for(this._fillStyle.alpha=1,l&&l.fc?f!==l.fc&&(f=Y.rgb2hex(l.fc),this._fillStyle.color=Y.rgb2hex(l.fc)):f!==this._values.fill?(f=this._values.fill,this._fillStyle.color=this._values.fill):this._fillStyle.color=this._values.fill,a=(p=this._textSpans[t].elem).length,this.beginPath(),s=0;s<a;s+=1){for(n=(u=p[s]).length,this.moveTo(u[0],u[1]),r=2;r<n;r+=6)this.bezierCurveTo(u[r],u[r+1],u[r+2],u[r+3],u[r+4],u[r+5]);this.closePath(),this.setFillStyle(this._fillStyle);const t={x:u[0],y:u[1]},e=this.getTransform();this.containsPoint(e.apply(t))?this.cut():(this.stroke({alpha:0}),this.fill())}if(this._stroke){for(this.strokeStyle.alpha=1,l&&l.sw?d!==l.sw&&(d=l.sw,this.strokeStyle.pixelLine=l.sw):d!==this._values.sWidth&&(d=this._values.sWidth,this.strokeStyle.pixelLine=this._values.sWidth),l&&l.sc?c!==l.sc&&(c=l.sc,this.strokeStyle.color=l.sc):c!==this._values.stroke&&(c=this._values.stroke,this.strokeStyle.color=this._values.stroke),a=(p=this._textSpans[t].elem).length,this.beginPath(),s=0;s<a;s+=1)for(n=(u=p[s]).length,this.moveTo(u[0],u[1]),r=2;r<n;r+=6)this.bezierCurveTo(u[r],u[r+1],u[r+2],u[r+3],u[r+4],u[r+5]);this.closePath(),this.stroke()}l&&this.restore()}}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),t._mdf&&this.renderText(),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}class je extends i.Graphics{constructor(t){super(),this.label=t.fullname,this.lottieLayer=t;const e=parseInt(this.lottieLayer.color.replace("#",""),16);this.rect(0,0,this.lottieLayer.width,this.lottieLayer.height).fill(e),this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie)}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}class ze extends i.Sprite{constructor(t,e){const{texture:s}=e;super(),this.label=t.fullname,s.then((t=>{this.texture=t})).catch((t=>{console.error(t)})),this.lottieLayer=t,this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie)}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}const qe=/^(https?:)?\/\//;const Re={resourceOptions:{crossorigin:"*"}};class Be extends Yt{constructor(t,{prefix:e,autoLoad:s=!0,textureOptions:i=Re}){super(),this.assets=t,this.prefix=e||"",this.textures={},this._total=0,this._failed=0,this._received=0,this.loaded=!1,this.textureOptions=i,s&&this.load()}load(){this.assets.forEach((t=>{const e=t.id,s=function(t,e){if(1===t.e)return t.p;e&&(e=e.replace(/\/?$/,"/"));const s=t.u+t.p;let i="";return i=t.up?t.up:qe.test(s)?s:e+s,i}(t,this.prefix),a=i.Assets.load(s);this.textures[e]=a,this._total++,a.then((()=>{this._received++,this.emit("update"),this._received+this._failed>=this._total&&this._onComplete()})).catch((t=>{this._failed++,this.emit("update"),this._received+this._failed>=this._total&&this._onComplete()}))}))}_onComplete(){this.loaded=!0,this.emit("complete"),this._failed>0&&(this._failed>=this._total?this.emit("fail"):this.emit("partlyfail",this._failed))}getTextureById(t){return this.textures[t]}}function Xe(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}class Ye extends Yt{constructor(t){super(),this.path=t,this.onSuccess=this.onSuccess.bind(this),this.onFail=this.onFail.bind(this),function(t,e,s){let i,a=new XMLHttpRequest;a.open("GET",t,!0);try{a.responseType="json"}catch(t){console.error("lottie-pixi loadAjax:",t)}a.send(),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status)i=Xe(a),e(i);else try{i=Xe(a),e(i)}catch(t){s&&s(t)}}}(t,this.onSuccess,this.onFail)}onSuccess(t){this.emit("success",t),this.emit("complete",t)}onFail(t){this.emit("fail",t),this.emit("error",t)}}class We extends Yt{constructor(t){if(super(),this.living=!0,this.infinite=t.infinite||!1,this.repeats=t.repeats||0,this.alternate=t.alternate||!1,this.wait=t.wait||0,this.delay=t.delay||0,this.overlapMode=t.overlapMode||!1,this.timeScale=Y.isNumber(t.timeScale)?t.timeScale:1,this.frameNum=0,this.isPaused=!0,this.direction=1,this._lastFrame=-1/0,this._repeatsCut=this.repeats,this._delayCut=this.delay,this._waitCut=this.wait,this.segments=t.segments||{},this._segmentName=t.initSegment||"",this._prefix=t.prefix||"",this._autoLoad=!Y.isBoolean(t.autoLoad)||t.autoLoad,this._autoStart=!Y.isBoolean(t.autoStart)||t.autoStart,this._enable3D=!Y.isBoolean(t.enable3D)||t.enable3D,this._depthTest=!Y.isBoolean(t.depthTest)||t.depthTest,this._justDisplayOnImagesLoaded=!Y.isBoolean(t.justDisplayOnImagesLoaded)||t.justDisplayOnImagesLoaded,this._maskComp=t.maskComp||!1,this.textureLoader=null,this.jsonLoader=null,this.root=null,this.camera=null,this.parent=null,this.group=new i.Container,this.display=null,this.isDisplayLoaded=!1,this.isImagesLoaded=!1,this._copyJSON=t.copyJSON||!1,t.keyframes&&Y.isString(t.keyframes)&&(t.path=t.keyframes,t.keyframes=null),t.keyframes)!this._prefix&&t.keyframes.prefix&&(this._prefix=t.keyframes.prefix),this._setupDate(t.keyframes);else if(t.path){let s="";s=-1!==t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):t.path.substr(0,t.path.lastIndexOf("/")+1),!this._prefix&&s&&(this._prefix=s),this.jsonLoader=(e=t.path,new Ye(e)),this.jsonLoader.once("success",(t=>{this._setupDate(t)})),this.jsonLoader.once("error",(t=>{this.emit("error",t)}))}var e}_setupDate(t){this._sourceData=t,this._copyJSON&&(t=Y.copyJSON(t)),ce.completeData(t),this.keyframes=t;const{w:e,h:s,st:i=0,fr:a,ip:r,op:n,assets:h}=t;this.frameRate=a,this.frameMult=a/1e3,this._defaultSegment=[r,n];const o=this._segmentName&&this.segments[this._segmentName]||this._defaultSegment;this.beginFrame=o[0],this.endFrame=o[1],this._timePerFrame=1e3/a,this.duration=Math.floor(this.endFrame-this.beginFrame),this.assets=h;let l=null;const p=h.filter((t=>t.u||t.p||t.e));p.length>0?(this.textureLoader=l=function(t,e={}){return new Be(t,e)}(p,{prefix:this._prefix,autoLoad:this._autoLoad}),l.loaded?(this.isImagesLoaded=!0,this.isPaused=!this._autoStart,this.emit("ImageReady")):(l.once("complete",(()=>{this.isImagesLoaded=!0,this.emit("ImageReady")})),null!==this._pausedNeedSet&&(this._pausedNeedSet=!0,l.once("complete",(()=>{this._pausedNeedSet&&(this._pausedNeedSet=!1,this.isPaused=!this._autoStart)}))))):(this.isImagesLoaded=!0,this.isPaused=!this._autoStart);const u={global:{w:e,h:s,frameRate:a,maskComp:this._maskComp,overlapMode:this.overlapMode},fontManager:new Pe,local:{w:e,h:s,ip:r,op:n,st:i}};u.fontManager.addChars(t.chars),u.fontManager.addFonts(t.fonts,document.body),this._buildElements(u),null!==this.textureLoader&&this._justDisplayOnImagesLoaded&&!this.textureLoader.loaded&&null!==this._justDisplayNeedSet&&(this.group.visible=!1,this._justDisplayNeedSet=!0,this.textureLoader.once("complete",(()=>{this._justDisplayNeedSet&&(this._justDisplayNeedSet=!1,this.group.visible=!0)}))),this.isDisplayLoaded=!0,this.update(0,!0)}_buildElements(t){this.root=this._extraComp(this.keyframes,t,!0),this.display=this.root.display,this.group.addChild(this.display),this._prepareChildComp(this.root,t),this.emit("DOMLoaded").emit("DisplayReady"),null===this.textureLoader||this.textureLoader.loaded?this.emit("success"):this.textureLoader.once("complete",(()=>this.emit("success")))}_buildLottieTree(t,e,s){const i={};for(let t=e.length-1;t>=0;t--){const a=e[t];let r=null;switch(a.ty){case 0:r=this._extraComp(a,s);break;case 1:r=this._extraSolid(a,s);break;case 2:r=this._extraSprite(a,s);break;case 3:r=this._extraNull(a,s);break;case 4:r=this._extraShape(a,s);break;case 5:r=this._extraText(a,s);break;case 13:r=this._extraCamera(a,s)}r&&(void 0===a.ind&&(a.ind=t),i[a.ind]=r)}const{local:a}=s;let r=null;a.has3D&&(a.currentCamera||a.closedCamera||(r=this._extraCamera(null,s)),a.closedCamera=!0);let n=null;for(let s=e.length-1;s>=0;s--){const r=e[s],h=i[r.ind];if(h){if(!Y.isUndefined(r.parent)){const t=i[r.parent];(h.is3D||!h.is3D&&!t.is3D)&&(h.setTransformHierarchy(t),h.display.setTransformHierarchy(t.display))}1!==r.td||null===n||n.display.mask||(n.display.mask=h.display),n=1===r.tt?h:null,t.addChild(h),a.currentCamera&&h.is3D?(a.currentPerspective.hadShipped||this._shipPerspectiveLayer(t,a.currentPerspective),a.currentPerspective.addChild(h.display)):h.display&&t.display.addChild(h.display)}}r&&t.addChild(r);const h=s.local.childCompsArray;for(let t=0;t<h.length;t++){const e=h[t];this._prepareChildComp(e,s)}return i}_shipPerspectiveLayer(t,e){t.display.addChild(e),e.hadShipped=!0}_prepareChildComp(t,e){const{layers:s,w:i,h:a,ip:r,op:n,st:h=0}=t.data,o=_objectSpread(_objectSpread({},e),{},{global:e.global,local:{w:i,h:a,ip:r,op:n,st:h,childCompsArray:[],currentCamera:null,closedCamera:e.local.closedCamera||!1,currentPerspective:null}});this._buildLottieTree(t,s,o)}_extraComp(t,e,s=!1){const i=new ye(t,e);return s&&(i.is3D=!1),i.is3D&&this._enable3D?e.local.has3D=!0:i.display=new Ie(i,s),s||e.local.childCompsArray.push(i),i}_extraSolid(t,e){const s=new we(t,e);return s.display=new je(s),s}_extraSprite(t,e){const s=Y.getAssets(t.refId,this.assets),i=this.textureLoader.getTextureById(s.id),a=new be(t,e);return a.is3D&&this._enable3D?e.local.has3D=!0:a.display=new ze(a,{asset:s,texture:i}),a}_extraNull(t,e){const s=new ge(t,e);return s.display=new Ie(s),s}_extraShape(t,e){const s=new Me(t,e);return s.is3D&&this._enable3D||(s.display=new Oe(s)),s}_extraText(t,e){t.global=e;const s=new Le(t,e);return s.display=new Ne(s),s}_extraCamera(t,e){if(e.local.closedCamera||!this._enable3D)return;let s=null;return s=t?new me(t,e):new ve(t,e),e.local.currentCamera=s,s}getDisplayByQuerySelector(t){const e=this.querySelector(t);return e&&e.display?e.display:(console.warn("can not find display which query with ",t),null)}_queryMatch(t,e,s){const i=t.substr(0,1),a=t.substr(1,t.length);let r=!1;return r="#"===i?e.idname===a:"."===i?-1!==e.classnames.indexOf(a):e.fullname===t,r&&s.push(e),r}_searchNodes(t,e,s,i=!1){if(e.childLayers&&e.childLayers.length>0){const a=[];for(let r=0;r<e.childLayers.length;r++){const n=e.childLayers[r];if(this._queryMatch(t,n,s)&&i)return!0;n.childLayers&&n.childLayers.length>0&&a.push(n)}for(let e=0;e<a.length;e++)if(this._searchNodes(t,a[e],s,i))return!0}return!1}querySelector(t){const e=[];return this._queryMatch(t,this.root,e)?e[0]:(this._searchNodes(t,this.root,e,!0),e[0]||null)}querySelectorAll(t){const e=[],s="#"===t.substr(0,1);return this._queryMatch(t,this.root,e)&&s||this._searchNodes(t,this.root,e,s),e}bindSlot(t,e){return this.getDisplayByQuerySelector(t).addChild(e),this}unbindSlot(t,e){return this.getDisplayByQuerySelector(t).removeChild(e),this}bindInteractiveEventByQuerySelector(t,e,s){const i=this.getDisplayByQuerySelector(t);return i&&(i.interactive=!0,i.on(e,s)),this}unbindInteractiveEventByQuerySelector(t,e,s){const i=this.getDisplayByQuerySelector(t);return i&&i.off(e,s),this}replaceImageByQuerySelector(t,e=i.Texture.EMPTY){const s=this.getDisplayByQuerySelector(t);if(s&&s.isSprite){const t="string"==typeof e?i.Texture.from(e,{resourceOptions:{crossorigin:"*"}}):e;s.texture=t}return this}replaceImageByQuerySelectorAll(t,e=[i.Texture.EMPTY]){const s=this.querySelectorAll(t),a=Y.isArray(e);return s.forEach(((t,s)=>{const r=t.display;if(r&&r.isSprite){const t=a?e[s]:e,n="string"==typeof t?i.Texture.from(t,{resourceOptions:{crossorigin:"*"}}):t;r.texture=n}})),this}_emitFrame(t){this.emit(`@${t}`)}update(t,e=!1){if(!this.living||!this.isDisplayLoaded||this.isPaused&&!e)return;const s=this._updateTime(t),i=this.beginFrame+this.frameNum;this.root.updateFrame(i);const a=i|0;this._lastFrame!==a&&(this._emitFrame(this.direction>0?a:this._lastFrame),this._lastFrame=a),!1===s?(this.emit("enterFrame",i),this.emit("update",this.frameNum/this.duration)):this.hadEnded!==s&&!0===s&&this.emit("complete"),this.hadEnded=s}_updateTime(t){const e=this.direction*this.timeScale*t;if(this._waitCut>0)return this._waitCut-=Math.abs(e),null;if(this.isPaused||this._delayCut>0)return this._delayCut>0&&(this._delayCut-=Math.abs(e)),null;this.frameNum+=e/this._timePerFrame;let s=!1;return this._spill()&&(this._repeatsCut>0||this.infinite?(this._repeatsCut>0&&--this._repeatsCut,this._delayCut=this.delay,this.alternate?(this.direction*=-1,this.frameNum=Y.codomainBounce(this.frameNum,0,this.duration)):(this.direction=1,this.frameNum=Y.euclideanModulo(this.frameNum,this.duration)),this.emit("loopComplete")):(this.overlapMode||(this.frameNum=Y.clamp(this.frameNum,0,this.duration),this.living=!1),s=!0)),s}_spill(){const t=this.frameNum<=0&&-1===this.direction,e=this.frameNum>=this.duration&&1===this.direction;return t||e}frameToTime(t){return t*this._timePerFrame}setSpeed(t){return this.timeScale=t,this}playSegment(t,e={}){if(!t)return;let s=null;return Y.isArray(t)?s=t:Y.isString(t)&&(s=this.segments[t],Y.isArray(s)&&(this._segmentName=t)),Y.isArray(s)?(this.beginFrame=Y.isNumber(s[0])?s[0]:this._defaultSegment[0],this.endFrame=Y.isNumber(s[1])?s[1]:this._defaultSegment[1],Y.isNumber(e.repeats)&&(this.repeats=e.repeats),Y.isBoolean(e.infinite)&&(this.infinite=e.infinite),Y.isBoolean(e.alternate)&&(this.alternate=e.alternate),Y.isNumber(e.wait)&&(this.wait=e.wait),Y.isNumber(e.delay)&&(this.delay=e.delay),this.replay(),this):void 0}goToAndStop(t,e=!1){return this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.pause(),this}goToAndPlay(t,e=!1){return this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.resume(),this}getDuration(t){const e=this.endFrame-this.beginFrame;return t?e:e/this.frameRate}setDirection(t){return this.direction=t<0?-1:1,this}pause(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!0,this}resume(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this}play(){return this.resume()}replay(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this._repeatsCut=this.repeats,this._delayCut=this.delay,this.living=!0,this.frameNum=0,this.duration=Math.floor(this.endFrame-this.beginFrame),this.direction=1,this}show(){return this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!0,this}hide(){return this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!1,this}destroy(){this.parent&&this.parent.remove(this),this.group.parent&&this.group.parent.removeChild(this.group),this.pause(),this.root=null,this.group=null,this.display=null,this.textureLoader&&(this.textureLoader.off("complete"),this.textureLoader=null),this.jsonLoader&&(this.jsonLoader.off("success"),this.jsonLoader=null),this.keyframes=null,this.living=!1}}class He extends Yt{constructor(t){super(),this._lastTime=0,this._snippet=0,this.timeScale=1,this.isPaused=!1,this.app=t,this.ticker=t.ticker?t.ticker:t,this.groups=[],this.update=this.update.bind(this),this.ticker&&this.start()}isWebGLMode(){return!0}add(t){const e=arguments.length;if(e>1)for(let t=0;t<e;t++)this.add(arguments[t]);else null!==t.parent&&t.parent.remove(t),t.parent=this,this.groups.push(t);return t}remove(t){if(arguments.length>1)for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);const e=this.groups.indexOf(t);-1!==e&&(t.parent=null,this.groups.splice(e,1))}parseAnimation(t){t.enable3D=!1;const e=new We(t);return this.add(e)}setSpeed(t){this.timeScale=t}start(){return this._lastTime=Date.now(),this.ticker.add(this.update),this}stop(){return this.ticker.remove(this.update),this}pause(){return this.isPaused=!0,this}resume(){return this.isPaused=!1,this}update(){if(this.timeline(),this.isPaused)return;const t=this.timeScale*this._snippet,e=this.groups.length;for(let s=0;s<e;s++){this.groups[s].update(t)}this.emit("update",this._snippet)}timeline(){let t=Date.now()-this._lastTime;(!this._lastTime||t>200)&&(this._lastTime=Date.now(),t=Date.now()-this._lastTime),this._lastTime+=t,this._snippet=t}destroy(){for(let t=this.groups.length-1;t>=0;t--)this.groups[t].destroy()}}var Ue=Number.isFinite||function(t){return!("number"!=typeof t||t!=t||t===1/0||t===-1/0)},Ge=Number.isInteger||function(t){return"number"==typeof t&&Ue(t)&&Math.floor(t)===t},Ke=/^-?\d+$/,Je=function(t){return"number"==typeof t?Ge(t)?t:void 0:"string"==typeof t&&Ke.test(t)?parseInt(t,10):void 0},Qe=/OS (\d\d?_\d(_\d)?)/,Ze=function(t){if(!t)return null;var e=Qe.exec(t);if(!e)return null;var s=e[1].split("_").map(Je);return{major:s[0],minor:s[1],patch:s[2]||0}};const{major:$e}=Ze(globalThis.navigator.userAgent)||{};function ts(t){if(window.URL=window.URL||window.webkitURL,window.URL&&URL.createObjectURL){const e=function(t){let e=atob(t.split(",")[1]),s=new ArrayBuffer(e.length),i=new Uint8Array(s),a=t.split(",")[0].match(/:(.*?);/)[1];for(let t=0,s=e.length;t<s;t++)i[t]=e.charCodeAt(t);let r,n=[i];try{r=new Blob(n,{type:a})}catch(t){console.log(t)}return r}(t);return URL.createObjectURL(e)}return t}let es=class extends s.Renderer{constructor(){super(...arguments),this.managerLife=["DisplayReady","ImageReady","success","error","complete","loopComplete","enterFrame","update"]}init(){this.renderSystem=this.game.getSystem("Renderer"),this.app=this.renderSystem.application}componentChanged(t){return a(this,void 0,void 0,(function*(){"Lottie"===t.componentName&&(t.type===e.OBSERVER_TYPE.ADD?this.add(t):t.type===e.OBSERVER_TYPE.REMOVE&&this.remove(t))}))}add(t){return a(this,void 0,void 0,(function*(){this.manager=new He(this.app);const s=t.component,i=this.renderSystem.containerManager.getContainer(t.gameObject.id);if(!i)return;const a=s.options,{resource:r}=a,n=function(t,e){var s={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(s[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(t);a<i.length;a++)e.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(s[i[a]]=t[i[a]])}return s}(a,["resource"]),h=yield e.resource.getResource(r),o=h.data,l=h.src.json.url,p=_extends({},o.json||{});(p.assets||[]).forEach((t=>{var e;t.p&&(t.p=(e=t.p,$e<=8&&/^data:image\/png;base64/.test(e)?ts(e):e))}));const u=this.manager.parseAnimation(_extends({keyframes:p,prefix:this.getDir(l)},n));s.anim=u,i.addChildAt(u.group,0),this.managerLife.forEach((t=>{u.on(t,(e=>s.emit(t,e)))})),u.isImagesLoaded&&s.emit("success",{})}))}getDir(t){return new URL("./",t).href}remove(t){const e=t.component,s=this.renderSystem.containerManager.getContainer(t.gameObject.id);s&&(s.removeChild(e.anim.group),e.anim.destroy()),e.anim=null}};es.systemName="LottieSystem",es=function(t,e,s,i){var a,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(e,s,n):a(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n}([e.decorators.componentObserver({Lottie:[]})],es);var ss=es;class is extends e.Component{constructor(t){super(),this.loadStatus=!1,this.firstPlay=null,this.prevSlot={},this.currentSlot={},this.options=_extends({autoStart:!1},t),this.on("success",(()=>{this.loadStatus=!0;const{ip:t,op:e}=this.anim.keyframes;for(let s=t;s<=e;s++){const t=`@${s}`;this.anim.on(t,(e=>this.emit(t,e)))}this.firstPlay&&this.firstPlay()}))}play(t=[],e={repeats:0}){if(!this.loadStatus)return void(this.firstPlay=()=>{this.play(t,e)});const{slot:s=[]}=e;s.forEach((({name:t,type:e,value:s,style:a={}})=>{const{x:r,y:n,anchor:h={x:0,y:0},pivot:o={x:0,y:0},width:l,height:p}=a;"IMAGE"===e?this.currentSlot[t]=i.Sprite.from(s):"TEXT"===e&&(this.currentSlot[t]=new i.Text({text:s,style:new i.TextStyle(a)})),r&&(this.currentSlot[t].x=r),n&&(this.currentSlot[t].y=n),l&&(this.currentSlot[t].width=l),p&&(this.currentSlot[t].height=p),this.currentSlot[t].anchor.set(h.x||0,h.y||0),this.currentSlot[t].pivot.set(this.currentSlot[t].width*(o.x||0),this.currentSlot[t].height*(o.y||0)),this.prevSlot[t]&&this.anim.unbindSlot(t,this.prevSlot[t]),this.anim.bindSlot(t,this.currentSlot[t]),this.prevSlot[t]=this.currentSlot[t]})),this.anim.playSegment(this.playParamsHandle(t),e)}playParamsHandle(t){let e=[].concat(t);const{keyframes:s}=this.anim;return!e.length||e.length>2?e=[s.ip,s.op]:1===e.length&&(e=[e[0]%s.op,s.op]),e}onTap(t,e){const s=new i.Graphics;this.on("success",(()=>{const i=this.anim.querySelector(t),a=i.display;s.rect(0,0,100,100).fill(16777215),s.alpha=0,a.addChild(s),i.display.interactive=!0,i.display.on("pointertap",(()=>{e()}))}))}}return is.componentName="Lottie",e.resource.registerResourceType("LOTTIE"),t.Lottie=is,t.LottieSystem=ss,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA,EVA.plugin.renderer,PIXI);globalThis.EVA.plugin.renderer.lottie=globalThis.EVA.plugin.renderer.lottie||_EVA_IIFE_lottie;
|
|
1
|
+
function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var i in s)({}).hasOwnProperty.call(s,i)&&(t[i]=s[i])}return t},_extends.apply(null,arguments)}function ownKeys(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(s),!0).forEach((function(e){_defineProperty(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function _defineProperty(t,e,s){return(e=_toPropertyKey2(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function _toPropertyKey2(t){var e=_toPrimitive2(t,"string");return"symbol"==typeof e?e:e+""}function _toPrimitive2(t,e){if("object"!=typeof t||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}globalThis.EVA=globalThis.EVA||{},globalThis.EVA.plugin=globalThis.EVA.plugin||{},globalThis.EVA.plugin.renderer=globalThis.EVA.plugin.renderer||{};var _EVA_IIFE_lottie=function(t,e,s,i){"use strict";function a(t,e,s,i){return new(s||(s=Promise))((function(a,r){function n(t){try{o(i.next(t))}catch(t){r(t)}}function h(t){try{o(i.throw(t))}catch(t){r(t)}}function o(t){var e;t.done?a(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(n,h)}o((i=i.apply(t,e||[])).next())}))}function r(t,e,s){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,s||[],l(t).constructor):e.apply(t,s))}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var s=0;s<e.length;s++){var i=e[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function o(t,e,s){return e&&h(t.prototype,e),s&&h(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function p(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var d,m=o((function t(){n(this,t)}),[{key:"outTypeExpressionMode",value:function(){this._hasOutTypeExpression=!0,this.container&&this.container.outTypeExpressionMode()}},{key:"addDynamicProperty",value:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0,t._hasOutTypeExpression&&this.outTypeExpressionMode())}},{key:"iterateDynamicProperties",value:function(t){this._mdf=!1;for(var e=this.dynamicProperties.length,s=0;s<e;s+=1)this.dynamicProperties[s].getValue(t),this.dynamicProperties[s]._mdf&&(this._mdf=!0)}},{key:"initDynamicPropertyContainer",value:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1,this._hasOutTypeExpression=!1}}]);function v(t){return new Array(t)}d="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 s,i=0,a=[];switch(t){case"int16":case"uint8c":s=1;break;default:s=1.1}for(i=0;i<e;i+=1)a.push(s);return a};var y=.1,g="function"==typeof Float32Array;function _(t,e){return 1-3*e+3*t}function k(t,e){return 3*e-6*t}function x(t){return 3*t}function S(t,e,s){return((_(e,s)*t+k(e,s))*t+x(e))*t}function P(t,e,s){return 3*_(e,s)*t*t+2*k(e,s)*t+x(e)}function T(t,e,s,i){this.mX1=t,this.mY1=e,this.mX2=s,this.mY2=i,this.sampleValues=g?new Float32Array(11):new Array(11),this._preCompute(),this.get=this.get.bind(this)}T.prototype._preCompute=function(){if(this.mX1!==this.mY1||this.mX2!==this.mY2)for(var t=0;t<11;++t)this.sampleValues[t]=S(t*y,this.mX1,this.mX2)},T.prototype._getTForX=function(t){for(var e=0,s=1;10!==s&&this.sampleValues[s]<=t;++s)e+=y;--s;var i=e+(t-this.sampleValues[s])/(this.sampleValues[s+1]-this.sampleValues[s])*y,a=P(i,this.mX1,this.mX2);return a>=.001?function(t,e,s,i){for(var a=0;a<4;++a){var r=P(e,s,i);if(0===r)return e;e-=(S(e,s,i)-t)/r}return e}(t,i,this.mX1,this.mX2):0===a?i:function(t,e,s,i,a){var r,n,h=0;do{(r=S(n=e+(s-e)/2,i,a)-t)>0?s=n:e=n}while(Math.abs(r)>1e-7&&++h<10);return n}(t,e,e+y,this.mX1,this.mX2)},T.prototype.get=function(t){return this.mX1===this.mY1&&this.mX2===this.mY2?t:0===t?0:1===t?1:S(this._getTForX(t),this.mY1,this.mY2)};var L={};var M={getBezierEasing:function(t,e,s,i,a){var r=a||("bez_"+t+"_"+e+"_"+s+"_"+i).replace(/\./g,"p");if(L[r])return L[r];var n=new T(t,e,s,i);return L[r]=n,n}};var w={double:function(t){return t.concat(v(t.length))}},b=function(t,e,s){var i=0,a=t,r=v(a);return{newElement:function(){var t;t=i?r[i-=1]:e();return t},release:function(t){i===a&&(r=w.double(r),a*=2);s&&s(t);r[i]=t,i+=1}}};var C=b(8,(function(){return{addedLength:0,percents:d("float32",200),lengths:d("float32",200)}}));var D=b(8,(function(){return{lengths:[],totalLength:0}}),(function(t){for(var e=t.lengths.length,s=0;s<e;s+=1)C.release(t.lengths[s]);t.lengths.length=0}));function A(t,e,s,i,a,r){var n=t*i+e*a+s*r-a*i-r*t-s*e;return n>-.001&&n<.001}function I(t,e,s,i){for(var a,r=0,n=[],h=[],o=C.newElement(),l=s.length,p=0;p<200;p+=1){var u=p/199;a=0;for(var f=0;f<l;f+=1)n[f]=Math.pow(1-u,3)*t[f]+3*Math.pow(1-u,2)*u*s[f]+3*(1-u)*Math.pow(u,2)*i[f]+Math.pow(u,3)*e[f],null!==h[f]&&(a+=Math.pow(n[f]-h[f],2)),h[f]=n[f];a&&(r+=a=Math.sqrt(a)),o.percents[p]=u,o.lengths[p]=r}return o.addedLength=r,o}function F(t){this.segmentLength=0,this.points=new Array(t)}function O(t,e){this.partialLength=t,this.point=e}var E={};function V(t,e){var s=e.percents,i=e.lengths,a=s.length,r=Math.floor((a-1)*t),n=t*e.addedLength,h=0;if(r===a-1||0===r||n===i[r])return s[r];for(var o=i[r]>n?-1:1,l=!0;l;)if(i[r]<=n&&i[r+1]>n?(h=(n-i[r])/(i[r+1]-i[r]),l=!1):r+=o,r<0||r>=a-1){if(r===a-1)return s[r];l=!1}return s[r]+(s[r+1]-s[r])*h}var N=d("float32",8);var j={getSegmentsLength:function(t){for(var e=D.newElement(),s=t.c,i=t.v,a=t.o,r=t.i,n=t._length,h=e.lengths,o=0,l=0;l<n-1;l+=1)h[l]=I(i[l],i[l+1],a[l],r[l+1]),o+=h[l].addedLength;return s&&n&&(h[l]=I(i[l],i[0],a[l],r[0]),o+=h[l].addedLength),e.totalLength=o,e},getNewSegment:function(t,e,s,i,a,r,n){for(var h=V(a=a<0?0:a>1?1:a,n),o=V(r=r>1?1:r,n),l=t.length,p=1-h,u=1-o,f=p*p*p,c=h*p*p*3,d=h*h*p*3,m=h*h*h,v=p*p*u,y=h*p*u+p*h*u+p*p*o,g=h*h*u+p*h*o+h*p*o,_=h*h*o,k=p*u*u,x=h*u*u+p*o*u+p*u*o,S=h*o*u+p*o*o+h*u*o,P=h*o*o,T=u*u*u,L=o*u*u+u*o*u+u*u*o,M=o*o*u+u*o*o+o*u*o,w=o*o*o,b=0;b<l;b+=1)N[4*b]=Math.round(1e3*(f*t[b]+c*s[b]+d*i[b]+m*e[b]))/1e3,N[4*b+1]=Math.round(1e3*(v*t[b]+y*s[b]+g*i[b]+_*e[b]))/1e3,N[4*b+2]=Math.round(1e3*(k*t[b]+x*s[b]+S*i[b]+P*e[b]))/1e3,N[4*b+3]=Math.round(1e3*(T*t[b]+L*s[b]+M*i[b]+w*e[b]))/1e3;return N},getPointInSegment:function(t,e,s,i,a,r){var n=V(a,r),h=1-n;return[Math.round(1e3*(h*h*h*t[0]+(n*h*h+h*n*h+h*h*n)*s[0]+(n*n*h+h*n*n+n*h*n)*i[0]+n*n*n*e[0]))/1e3,Math.round(1e3*(h*h*h*t[1]+(n*h*h+h*n*h+h*h*n)*s[1]+(n*n*h+h*n*n+n*h*n)*i[1]+n*n*n*e[1]))/1e3]},buildBezierData:function(t,e,s,i){var a=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+s[0]+"_"+s[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!E[a]){var r,n,h=200,o=0,l=null;2===t.length&&(t[0]!=e[0]||t[1]!=e[1])&&A(t[0],t[1],e[0],e[1],t[0]+s[0],t[1]+s[1])&&A(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(h=2);for(var p=new F(h),u=s.length,f=0;f<h;f+=1){n=v(u);var c=f/(h-1);r=0;for(var d=0;d<u;d+=1)n[d]=Math.pow(1-c,3)*t[d]+3*Math.pow(1-c,2)*c*(t[d]+s[d])+3*(1-c)*Math.pow(c,2)*(e[d]+i[d])+Math.pow(c,3)*e[d],null!==l&&(r+=Math.pow(n[d]-l[d],2));o+=r=Math.sqrt(r),p.points[f]=new O(r,n),l=n}p.segmentLength=o,E[a]=p}return E[a]},pointOnLine2D:A,pointOnLine3D:function(t,e,s,i,a,r,n,h,o){if(0===s&&0===r&&0===o)return A(t,e,i,a,n,h);var l,p=Math.sqrt(Math.pow(i-t,2)+Math.pow(a-e,2)+Math.pow(r-s,2)),u=Math.sqrt(Math.pow(n-t,2)+Math.pow(h-e,2)+Math.pow(o-s,2)),f=Math.sqrt(Math.pow(n-i,2)+Math.pow(h-a,2)+Math.pow(o-r,2));return(l=p>u?p>f?p-u-f:f-u-p:f>u?f-u-p:u-p-f)>-1e-4&&l<1e-4}},z=-999999,q=Math.PI/180,R=[0,0];function B(t){return Object.prototype.toString.call(t)}var X,Y={copyJSON:function(t){return JSON.parse(JSON.stringify(t))},isArray:(X=B([]),function(t){return B(t)===X}),isString:function(){var t=B("s");return function(e){return B(e)===t}}(),isNumber:function(){var t=B(1);return function(e){return B(e)===t}}(),isFunction:function(){var t=B((function(){}));return function(e){return B(e)===t}}(),isUndefined:function(t){return void 0===t},isBoolean:function(){var t=B(!0);return function(e){return B(e)===t}}(),isObject:function(){var t=B({});return function(e){return B(e)===t}}(),random:function(t,e){return this.isArray(t)?t[~~(Math.random()*t.length)]:(this.isNumber(e)||(e=t||1,t=0),t+Math.random()*(e-t))},euclideanModulo:function(t,e){return(t%e+e)%e},codomainBounce:function(t,e,s){return t<e?2*e-t:t>s?2*s-t:t},clamp:function(t,e,s){return t<e?e:t>s?s:t},inRange:function(t,e,s){return t>=e&&t<=s},getAssets:function(t,e){for(var s=0;s<e.length;s++)if(t===e[s].id)return e[s];return console.error("have not assets name as",t),{}},rgb2hex:function(t){return(t[0]<<16)+(t[1]<<8)+(0|t[2])}},W=/(loopIn|loopOut)\(([^)]+)/,H=/["']\w+["']/,U=o((function t(e,s,i){n(this,t),this.begin=s,this.end=i,this.total=this.end-this.begin,this.type=e}),[{key:"update",value:function(t){return"in"===this.type?t>=this.begin?t:this.end-Y.euclideanModulo(this.begin-t,this.total):"out"===this.type?t<=this.end?t:this.begin+Y.euclideanModulo(t-this.end,this.total):void 0}}]),G=o((function t(e,s,i){n(this,t),this.begin=s,this.end=i,this.total=this.end-this.begin,this.type=e}),[{key:"update",value:function(t){if("in"===this.type&&t<this.begin||"out"===this.type&&t>this.end){var e=t-this.end;return this.pingpong(e)}return t}},{key:"pingpong",value:function(t){return Math.floor(t/this.total)%2?this.begin+Y.euclideanModulo(t,this.total):this.end-Y.euclideanModulo(t,this.total)}}]),K={loopIn:function(t,e,s){var i=t[0].t,a=t.length-1,r=t[Math.min(a,s)].t;switch(e){case"cycle":return new U("in",i,r);case"pingpong":return new G("in",i,r)}return null},loopOut:function(t,e,s){var i=t.length-1,a=t[Math.max(0,i-s)].t,r=t[i].t;switch(e){case"cycle":return new U("out",a,r);case"pingpong":return new G("out",a,r)}return null}};function J(t){var e=t.match(W),s=e[2].split(/\s*,\s*/).map((function(t){return H.test(t)?t.replace(/"|'/g,""):parseInt(t)}));return{name:e[1],mode:s[0],offset:s[1]}}var Q={hasSupportExpression:function(t){return t.x&&W.test(t.x)},getExpression:function(t){var e=J(t.x),s=e.name,i=e.mode,a=e.offset,r=void 0===a?0:a,n=0===r?t.k.length-1:r;return K[s]&&K[s](t.k,i,n)}};function Z(t){var e=t[0]*q,s=t[1]*q,i=t[2]*q,a=Math.cos(e/2),r=Math.cos(s/2),n=Math.cos(i/2),h=Math.sin(e/2),o=Math.sin(s/2),l=Math.sin(i/2);return[h*o*n+a*r*l,h*r*n+a*o*l,a*o*n-h*r*l,a*r*n-h*o*l]}var $=o((function t(){n(this,t)}),[{key:"interpolateValue",value:function(t,e){var s;"multidimensional"===this.propType&&(s=d("float32",this.pv.length));for(var i,a,r,n,h,o,l,p,u=e.lastIndex,f=u,c=this.keyframes.length-1,m=!0;m;){if(i=this.keyframes[f],a=this.keyframes[f+1],f===c-1&&t>=a.t){i.h&&(i=a),u=0;break}if(a.t>t){u=f;break}f<c-1?f+=1:(u=0,m=!1)}var v,y,g,_,k,x,S,P,T,L,w,b,C,D,A,I,F,O,E=a.t,V=i.t;if(i.to){i.bezierData||(i.bezierData=j.buildBezierData(i.s,a.s||i.e,i.to,i.ti));var N=i.bezierData;if(t>=E||t<V){var z=t>=E?N.points.length-1:0;for(n=N.points[z].point.length,r=0;r<n;r+=1)s[r]=N.points[z].point[r]}else{i.__fnct?p=i.__fnct:(p=M.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,i.__fnct=p),h=p((t-V)/(E-V));var R,B=N.segmentLength*h,X=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(l=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,m=!0,o=N.points.length;m;){if(X+=N.points[l].partialLength,0===B||0===h||l===N.points.length-1){for(n=N.points[l].point.length,r=0;r<n;r+=1)s[r]=N.points[l].point[r];break}if(B>=X&&B<X+N.points[l+1].partialLength){for(R=(B-X)/N.points[l+1].partialLength,n=N.points[l].point.length,r=0;r<n;r+=1)s[r]=N.points[l].point[r]+(N.points[l+1].point[r]-N.points[l].point[r])*R;break}l<o-1?l+=1:m=!1}e._lastPoint=l,e._lastAddedLength=X-N.points[l].partialLength,e._lastKeyframeIndex=f}}else{var Y,W,H,U,G;if(c=i.s.length,v=a.s||i.e,this.sh&&1!==i.h)if(t>=E)s[0]=v[0],s[1]=v[1],s[2]=v[2];else if(t<=V)s[0]=i.s[0],s[1]=i.s[1],s[2]=i.s[2];else{var K=Z(i.s),J=Z(v);!function(t,e){var s=e[0],i=e[1],a=e[2],r=e[3],n=Math.atan2(2*i*r-2*s*a,1-2*i*i-2*a*a),h=Math.asin(2*s*i+2*a*r),o=Math.atan2(2*s*r-2*i*a,1-2*s*s-2*a*a);t[0]=n/q,t[1]=h/q,t[2]=o/q}(s,(y=K,g=J,_=(t-V)/(E-V),L=[],w=y[0],b=y[1],C=y[2],D=y[3],A=g[0],I=g[1],F=g[2],O=g[3],(x=w*A+b*I+C*F+D*O)<0&&(x=-x,A=-A,I=-I,F=-F,O=-O),1-x>1e-6?(k=Math.acos(x),S=Math.sin(k),P=Math.sin((1-_)*k)/S,T=Math.sin(_*k)/S):(P=1-_,T=_),L[0]=P*w+T*A,L[1]=P*b+T*I,L[2]=P*C+T*F,L[3]=P*D+T*O,L))}else for(f=0;f<c;f+=1)1!==i.h&&(t>=E?h=1:t<V?h=0:(i.o.x.constructor===Array?(i.__fnct||(i.__fnct=[]),i.__fnct[f]?p=i.__fnct[f]:(Y=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],W=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],H=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],U=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],p=M.getBezierEasing(Y,W,H,U).get,i.__fnct[f]=p)):i.__fnct?p=i.__fnct:(Y=i.o.x,W=i.o.y,H=i.i.x,U=i.i.y,p=M.getBezierEasing(Y,W,H,U).get,i.__fnct=p),h=p((t-V)/(E-V)))),v=a.s||i.e,G=1===i.h?i.s[f]:i.s[f]+(v[f]-i.s[f])*h,"multidimensional"===this.propType?s[f]=G:s=G}return e.lastIndex=u,s}},{key:"getValueAtCurrentTime",value:function(t){this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0;var e=this.interpolateValue(t,this._caching);return this.pv=e,this._caching.lastFrame=t,this.pv}},{key:"setVValue",value:function(t){var e;if("unidimensional"===this.propType)e=t*this.mult,Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,i=this.v.length;s<i;)e=t[s]*this.mult,Math.abs(this.v[s]-e)>1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}},{key:"processEffectsSequence",value:function(t){if(this._mdf=!1,this.expression&&(t=this.expression.update(t)),t!==this.frameId&&this.effectsSequence.length){var e,s=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<s;e+=1)i=this.effectsSequence[e](t);this.setVValue(i),this.frameId=t}}},{key:"addEffect",value:function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}}]),tt=function(t){function e(t,s,i,a){var h;return n(this,e),(h=r(this,e)).propType="unidimensional",h.mult=i||1,h.data=s,h.v=i?s.k*i:s.k,h.pv=s.k,h._mdf=!1,h.elem=t,h.container=a,h.k=!1,h.kf=!1,h.effectsSequence=[],h.getValue=h.processEffectsSequence,h}return p(e,t),o(e,[{key:"updateValue",value:function(t){this.pv=t,this.v=t*this.mult}}])}($),et=function(t){function e(t,s,i,a){var h;n(this,e),(h=r(this,e)).propType="multidimensional",h.mult=i||1,h.data=s,h._mdf=!1,h.elem=t,h.container=a,h.comp=t.comp,h.k=!1,h.kf=!1,h.frameId=-1;var o=s.k.length;h.v=d("float32",o),h.pv=d("float32",o);for(var l=0;l<o;l+=1)h.v[l]=s.k[l]*h.mult,h.pv[l]=s.k[l];return h.effectsSequence=[],h.getValue=h.processEffectsSequence,h}return p(e,t),o(e,[{key:"updateValue",value:function(t){for(var e=t.length,s=0;s<e;s+=1)this.v[s]=t[s]*this.mult,this.pv[s]=t[s]}}])}($),st=function(t){function e(t,s,i,a){var h;return n(this,e),(h=r(this,e)).propType="unidimensional",h.keyframes=s.k,h.frameId=-1,h._caching={lastFrame:z,lastIndex:0,value:0,_lastKeyframeIndex:-1},h.k=!0,h.kf=!0,h.data=s,h.mult=i||1,h.elem=t,h.container=a,h.comp=t.comp,h.v=z*h.mult,h.pv=z,h.getValue=h.processEffectsSequence,h.effectsSequence=[h.getValueAtCurrentTime.bind(h)],h._hasOutTypeExpression=!1,Q.hasSupportExpression(s)&&(h.expression=Q.getExpression(s),h._hasOutTypeExpression="out"===h.expression.type),h}return p(e,t),o(e)}($),it=function(t){function e(t,s,i,a){var h,o;n(this,e),(h=r(this,e)).propType="multidimensional";var l,p,u,f,c=s.k.length;for(o=0;o<c-1;o+=1)s.k[o].to&&s.k[o].s&&s.k[o+1]&&s.k[o+1].s&&(l=s.k[o].s,p=s.k[o+1].s,u=s.k[o].to,f=s.k[o].ti,(2===l.length&&(l[0]!==p[0]||l[1]!==p[1])&&j.pointOnLine2D(l[0],l[1],p[0],p[1],l[0]+u[0],l[1]+u[1])&&j.pointOnLine2D(l[0],l[1],p[0],p[1],p[0]+f[0],p[1]+f[1])||3===l.length&&(l[0]!==p[0]||l[1]!==p[1]||l[2]!==p[2])&&j.pointOnLine3D(l[0],l[1],l[2],p[0],p[1],p[2],l[0]+u[0],l[1]+u[1],l[2]+u[2])&&j.pointOnLine3D(l[0],l[1],l[2],p[0],p[1],p[2],p[0]+f[0],p[1]+f[1],p[2]+f[2]))&&(s.k[o].to=null,s.k[o].ti=null),l[0]===p[0]&&l[1]===p[1]&&0===u[0]&&0===u[1]&&0===f[0]&&0===f[1]&&(2===l.length||l[2]===p[2]&&0===u[2]&&0===f[2])&&(s.k[o].to=null,s.k[o].ti=null));h.effectsSequence=[h.getValueAtCurrentTime.bind(h)],h.keyframes=s.k,h.k=!0,h.kf=!0,h.mult=i||1,h.elem=t,h.container=a,h.comp=t.comp,h.getValue=h.processEffectsSequence,h.frameId=-1;var m=s.k[0].s.length;for(h.v=d("float32",m),h.pv=d("float32",m),o=0;o<m;o+=1)h.v[o]=z*h.mult,h.pv[o]=z;return h._caching={lastFrame:z,lastIndex:0,value:d("float32",m)},h._hasOutTypeExpression=!1,Q.hasSupportExpression(s)&&(h.expression=Q.getExpression(s),h._hasOutTypeExpression="out"===h.expression.type),h}return p(e,t),o(e)}($);var at={getProp:function(t,e,s,i,a){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new et(t,e,i,a);else switch(s){case 0:r=new st(t,e,i,a);break;case 1:r=new it(t,e,i,a)}else r=new tt(t,e,i,a);return r.effectsSequence.length&&a.addDynamicProperty(r),r}},rt=function(t){function e(t,s){var i;if(n(this,e),(i=r(this,e)).elem=t,i.frameId=-1,i.propType="transform",i.data=s,i.autoOriented=!1,i.orientation=0,i.initDynamicPropertyContainer(t),s.p&&s.p.s?(i.px=at.getProp(t,s.p.x,0,0,i),i.py=at.getProp(t,s.p.y,0,0,i),s.p.z&&(i.pz=at.getProp(t,s.p.z,0,0,i))):i.p=at.getProp(t,s.p||{k:[0,0,0]},1,0,i),s.rx){if(i.rx=at.getProp(t,s.rx,0,q,i),i.ry=at.getProp(t,s.ry,0,q,i),i.rz=at.getProp(t,s.rz,0,q,i),s.or.k[0].ti){var a,h=s.or.k.length;for(a=0;a<h;a+=1)s.or.k[a].to=s.or.k[a].ti=null}i.or=at.getProp(t,s.or,1,q,i),i.or.sh=!0}else i.r=at.getProp(t,s.r||{k:0},0,q,i);return s.sk&&(i.sk=at.getProp(t,s.sk,0,q,i),i.sa=at.getProp(t,s.sa,0,q,i)),i.a=at.getProp(t,s.a||{k:[0,0,0]},1,0,i),i.s=at.getProp(t,s.s||{k:[100,100,100]},1,.01,i),s.o?i.o=at.getProp(t,s.o,0,.01,i):i.o={_mdf:!1,v:1},i.dynamicProperties.length||i.getValue(z,!0),i}return p(e,t),o(e,[{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.iterateDynamicProperties(t),this.autoOriented&&this._mdf&&this.updateOrientation(),this.frameId=t)}},{key:"updateOrientation",value:function(){var t=R,e=R,s=this.elem.session.global.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame<=this.p.keyframes[0].t?(t=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),e=this.p.getValueAtTime(this.p.keyframes[0].t/s,0)):this.p._caching.lastFrame>=this.p.keyframes[this.p.keyframes.length-1].t?(t=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),e=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(t=this.p.pv,e=this.p.getValueAtTime((this.p._caching.lastFrame-.01)/s,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){t=[],e=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(t[0]=i.getValueAtTime((i.keyframes[0].t+.01)/s,0),t[1]=a.getValueAtTime((a.keyframes[0].t+.01)/s,0),e[0]=i.getValueAtTime(i.keyframes[0].t/s,0),e[1]=a.getValueAtTime(a.keyframes[0].t/s,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(t[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/s,0),t[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/s,0),e[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/s,0),e[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/s,0)):(t=[i.pv,a.pv],e[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/s,i.offsetTime),e[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/s,a.offsetTime))}this.orientation=-Math.atan2(t[1]-e[1],t[0]-e[0])}}])}(m);var nt=b(8,(function(){return d("float32",2)})),ht=function(){function t(){n(this,t),this.c=!1,this._length=0,this._maxLength=8,this.v=v(this._maxLength),this.o=v(this._maxLength),this.i=v(this._maxLength)}return o(t,[{key:"setPathData",value:function(t,e){this.c=t,this.setLength(e);for(var s=0;s<e;)this.v[s]=nt.newElement(),this.o[s]=nt.newElement(),this.i[s]=nt.newElement(),s+=1}},{key:"setLength",value:function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t}},{key:"doubleArrayLength",value:function(){this.v=this.v.concat(v(this._maxLength)),this.i=this.i.concat(v(this._maxLength)),this.o=this.o.concat(v(this._maxLength)),this._maxLength*=2}},{key:"setXYAt",value:function(t,e,s,i,a){var r;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o}(!r[i]||r[i]&&!a)&&(r[i]=nt.newElement()),r[i][0]=t,r[i][1]=e}},{key:"setTripleAt",value:function(t,e,s,i,a,r,n,h){this.setXYAt(t,e,"v",n,h),this.setXYAt(s,i,"o",n,h),this.setXYAt(a,r,"i",n,h)}},{key:"reverse",value:function(){var e=new t;e.setPathData(this.c,this._length);var s=this.v,i=this.o,a=this.i,r=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),r=1);for(var n=this._length-1,h=this._length,o=r;o<h;o+=1)e.setTripleAt(s[n][0],s[n][1],a[n][0],a[n][1],i[n][0],i[n][1],o,!1),n-=1;return e}}])}();var ot=b(4,(function(){return new ht}),(function(t){for(var e=t._length,s=0;s<e;s+=1)nt.release(t.v[s]),nt.release(t.i[s]),nt.release(t.o[s]),t.v[s]=null,t.i[s]=null,t.o[s]=null;t._length=0,t.c=!1}));ot.clone=function(t){var e=ot.newElement(),s=void 0===t._length?t.v.length:t._length;e.setLength(s),e.c=t.c;for(var i=0;i<s;i+=1)e.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return e};var lt=o((function t(){n(this,t),this._length=0,this._maxLength=4,this.shapes=v(this._maxLength)}),[{key:"addShape",value:function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(v(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1}},{key:"releaseShapes",value:function(){for(var t=0;t<this._length;t+=1)ot.release(this.shapes[t]);this._length=0}}]),pt=0,ut=4,ft=v(ut);var ct={newShapeCollection:function(){return pt?ft[pt-=1]:new lt},release:function(t){for(var e=t._length,s=0;s<e;s+=1)ot.release(t.shapes[s]);t._length=0,pt===ut&&(ft=w.double(ft),ut*=2),ft[pt]=t,pt+=1}},dt=o((function t(){n(this,t)}),[{key:"interpolateShape",value:function(t,e,s){var i,a,r,n,h,o,l,p,u,f=s.lastIndex,c=this.keyframes;if(t<c[0].t)i=c[0].s[0],r=!0,f=0;else if(t>=c[c.length-1].t)i=c[c.length-1].s?c[c.length-1].s[0]:c[c.length-2].e[0],r=!0;else{for(var d,m,v=f,y=c.length-1,g=!0;g&&(d=c[v],!((m=c[v+1]).t>t));)v<y-1?v+=1:g=!1;if(f=v,!(r=1===d.h)){if(t>=m.t)p=1;else if(t<d.t)p=0;else{var _;d.__fnct?_=d.__fnct:(_=M.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,d.__fnct=_),p=_((t-d.t)/(m.t-d.t))}a=m.s?m.s[0]:d.e[0]}i=d.s[0]}for(o=e._length,l=i.i[0].length,s.lastIndex=f,n=0;n<o;n+=1)for(h=0;h<l;h+=1)u=r?i.i[n][h]:i.i[n][h]+(a.i[n][h]-i.i[n][h])*p,e.i[n][h]=u,u=r?i.o[n][h]:i.o[n][h]+(a.o[n][h]-i.o[n][h])*p,e.o[n][h]=u,u=r?i.v[n][h]:i.v[n][h]+(a.v[n][h]-i.v[n][h])*p,e.v[n][h]=u}},{key:"interpolateShapeCurrentTime",value:function(t){var e=this.keyframes[0].t,s=this.keyframes[this.keyframes.length-1].t,i=this._caching.lastFrame;return i!==z&&(i<e&&t<e||i>s&&t>s)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}},{key:"resetShape",value:function(){this.paths=this.localShapeCollection}},{key:"shapesEqual",value:function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var s,i=t._length;for(s=0;s<i;s+=1)if(t.v[s][0]!==e.v[s][0]||t.v[s][1]!==e.v[s][1]||t.o[s][0]!==e.o[s][0]||t.o[s][1]!==e.o[s][1]||t.i[s][0]!==e.i[s][0]||t.i[s][1]!==e.i[s][1])return!1;return!0}},{key:"setVValue",value:function(t){this.shapesEqual(this.v,t)||(this.v=ot.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}},{key:"processEffectsSequence",value:function(t){if(this._mdf=!1,t!==this.frameId&&this.effectsSequence.length){var e,s=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,i=this.effectsSequence.length;for(e=0;e<i;e+=1)s=this.effectsSequence[e](t);this.setVValue(s),this.frameId=t}}},{key:"addEffect",value:function(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}}]),mt=function(t){function e(t,s,i){var a;n(this,e),(a=r(this,e)).propType="shape",a.comp=t.comp,a.container=t,a.elem=t,a.data=s,a.k=!1,a.kf=!1,a._mdf=!1;var h=3===i?s.pt.k:s.ks.k;return a.v=ot.clone(h),a.pv=ot.clone(a.v),a.localShapeCollection=ct.newShapeCollection(),a.paths=a.localShapeCollection,a.paths.addShape(a.v),a.reset=a.resetShape,a.effectsSequence=[],a.getValue=a.processEffectsSequence,a}return p(e,t),o(e)}(dt),vt=function(t){function e(t,s,i){var a;n(this,e),(a=r(this,e)).propType="shape",a.comp=t.comp,a.elem=t,a.container=t,a.keyframes=3===i?s.pt.k:s.ks.k,a.k=!0,a.kf=!0;var h=a.keyframes[0].s[0].i.length;return a.v=ot.newElement(),a.v.setPathData(a.keyframes[0].s[0].c,h),a.pv=ot.clone(a.v),a.localShapeCollection=ct.newShapeCollection(),a.paths=a.localShapeCollection,a.paths.addShape(a.v),a.lastFrame=z,a.reset=a.resetShape,a._caching={lastFrame:z,lastIndex:0},a.effectsSequence=[a.interpolateShapeCurrentTime.bind(a)],a.getValue=a.processEffectsSequence,a._hasOutTypeExpression=!1,Q.hasSupportExpression(s)&&(a.expression=Q.getExpression(s),a._hasOutTypeExpression="out"===a.expression.type),a}return p(e,t),o(e)}(dt),yt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).v=ot.newElement(),i.v.setPathData(!0,4),i.localShapeCollection=ct.newShapeCollection(),i.paths=i.localShapeCollection,i.localShapeCollection.addShape(i.v),i.d=s.d,i.elem=t,i.comp=t.comp,i.frameId=-1,i.initDynamicPropertyContainer(t),i.p=at.getProp(t,s.p,1,0,i),i.s=at.getProp(t,s.s,1,0,i),i.dynamicProperties.length?i.k=!0:(i.k=!1,i.convertEllToPath()),i}return p(e,t),o(e,[{key:"reset",value:function(){this.paths=this.localShapeCollection}},{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t,this._mdf&&this.convertEllToPath())}},{key:"convertEllToPath",value:function(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,r=this.v;r.v[0][0]=t,r.v[0][1]=e-i,r.v[1][0]=a?t+s:t-s,r.v[1][1]=e,r.v[2][0]=t,r.v[2][1]=e+i,r.v[3][0]=a?t-s:t+s,r.v[3][1]=e,r.i[0][0]=a?t-s*kt:t+s*kt,r.i[0][1]=e-i,r.i[1][0]=a?t+s:t-s,r.i[1][1]=e-i*kt,r.i[2][0]=a?t+s*kt:t-s*kt,r.i[2][1]=e+i,r.i[3][0]=a?t-s:t+s,r.i[3][1]=e+i*kt,r.o[0][0]=a?t+s*kt:t-s*kt,r.o[0][1]=e-i,r.o[1][0]=a?t+s:t-s,r.o[1][1]=e+i*kt,r.o[2][0]=a?t-s*kt:t+s*kt,r.o[2][1]=e+i,r.o[3][0]=a?t-s:t+s,r.o[3][1]=e-i*kt}}])}(m),gt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).v=ot.newElement(),i.v.setPathData(!0,0),i.elem=t,i.comp=t.comp,i.data=s,i.frameId=-1,i.d=s.d,i.initDynamicPropertyContainer(t),1===s.sy?(i.ir=at.getProp(t,s.ir,0,0,i),i.is=at.getProp(t,s.is,0,.01,i),i.convertToPath=i.convertStarToPath):i.convertToPath=i.convertPolygonToPath,i.pt=at.getProp(t,s.pt,0,0,i),i.p=at.getProp(t,s.p,1,0,i),i.r=at.getProp(t,s.r,0,q,i),i.or=at.getProp(t,s.or,0,0,i),i.os=at.getProp(t,s.os,0,.01,i),i.localShapeCollection=ct.newShapeCollection(),i.localShapeCollection.addShape(i.v),i.paths=i.localShapeCollection,i.dynamicProperties.length?i.k=!0:(i.k=!1,i.convertToPath()),i}return p(e,t),o(e,[{key:"reset",value:function(){this.paths=this.localShapeCollection}},{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertToPath())}},{key:"convertStarToPath",value:function(){var t,e,s,i,a=2*Math.floor(this.pt.v),r=2*Math.PI/a,n=!0,h=this.or.v,o=this.ir.v,l=this.os.v,p=this.is.v,u=2*Math.PI*h/(2*a),f=2*Math.PI*o/(2*a),c=-Math.PI/2;c+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<a;t+=1){s=n?l:p,i=n?u:f;var m=(e=n?h:o)*Math.cos(c),v=e*Math.sin(c),y=0===m&&0===v?0:v/Math.sqrt(m*m+v*v),g=0===m&&0===v?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-y*i*s*d,v-g*i*s*d,m+y*i*s*d,v+g*i*s*d,t,!0),n=!n,c+=r*d}}},{key:"convertPolygonToPath",value:function(){var t,e=Math.floor(this.pt.v),s=2*Math.PI/e,i=this.or.v,a=this.os.v,r=2*Math.PI*i/(4*e),n=-Math.PI/2,h=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var o=i*Math.cos(n),l=i*Math.sin(n),p=0===o&&0===l?0:l/Math.sqrt(o*o+l*l),u=0===o&&0===l?0:-o/Math.sqrt(o*o+l*l);o+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(o,l,o-p*r*a*h,l-u*r*a*h,o+p*r*a*h,l+u*r*a*h,t,!0),n+=s*h}this.paths.length=0,this.paths[0]=this.v}}])}(m),_t=.5519,kt=_t,xt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).v=ot.newElement(),i.v.c=!0,i.localShapeCollection=ct.newShapeCollection(),i.localShapeCollection.addShape(i.v),i.paths=i.localShapeCollection,i.elem=t,i.comp=t.comp,i.frameId=-1,i.d=s.d,i.initDynamicPropertyContainer(t),i.p=at.getProp(t,s.p,1,0,i),i.s=at.getProp(t,s.s,1,0,i),i.r=at.getProp(t,s.r,0,0,i),i.dynamicProperties.length?i.k=!0:(i.k=!1,i.convertRectToPath()),i}return p(e,t),o(e,[{key:"reset",value:function(){this.paths=this.localShapeCollection}},{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf&&this.convertRectToPath())}},{key:"convertRectToPath",value:function(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=Math.min(s,i,this.r.v),r=a*(1-_t);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+s,e-i+a,t+s,e-i+a,t+s,e-i+r,0,!0),this.v.setTripleAt(t+s,e+i-a,t+s,e+i-r,t+s,e+i-a,1,!0),0!==a?(this.v.setTripleAt(t+s-a,e+i,t+s-a,e+i,t+s-r,e+i,2,!0),this.v.setTripleAt(t-s+a,e+i,t-s+r,e+i,t-s+a,e+i,3,!0),this.v.setTripleAt(t-s,e+i-a,t-s,e+i-a,t-s,e+i-r,4,!0),this.v.setTripleAt(t-s,e-i+a,t-s,e-i+r,t-s,e-i+a,5,!0),this.v.setTripleAt(t-s+a,e-i,t-s+a,e-i,t-s+r,e-i,6,!0),this.v.setTripleAt(t+s-a,e-i,t+s-r,e-i,t+s-a,e-i,7,!0)):(this.v.setTripleAt(t-s,e+i,t-s+r,e+i,t-s,e+i,2),this.v.setTripleAt(t-s,e-i,t-s,e-i+r,t-s,e-i,3))):(this.v.setTripleAt(t+s,e-i+a,t+s,e-i+r,t+s,e-i+a,0,!0),0!==a?(this.v.setTripleAt(t+s-a,e-i,t+s-a,e-i,t+s-r,e-i,1,!0),this.v.setTripleAt(t-s+a,e-i,t-s+r,e-i,t-s+a,e-i,2,!0),this.v.setTripleAt(t-s,e-i+a,t-s,e-i+a,t-s,e-i+r,3,!0),this.v.setTripleAt(t-s,e+i-a,t-s,e+i-r,t-s,e+i-a,4,!0),this.v.setTripleAt(t-s+a,e+i,t-s+a,e+i,t-s+r,e+i,5,!0),this.v.setTripleAt(t+s-a,e+i,t+s-r,e+i,t+s-a,e+i,6,!0),this.v.setTripleAt(t+s,e+i-a,t+s,e+i-a,t+s,e+i-r,7,!0)):(this.v.setTripleAt(t-s,e-i,t-s+r,e-i,t-s,e-i,1,!0),this.v.setTripleAt(t-s,e+i,t-s,e+i-r,t-s,e+i,2,!0),this.v.setTripleAt(t+s,e+i,t+s-r,e+i,t+s,e+i,3,!0)))}}])}(m);var St={getShapeProp:function(t,e,s){var i;return 3===s||4===s?i=(3===s?e.pt:e.ks).k.length?new vt(t,e,s):new mt(t,e,s):5===s?i=new xt(t,e):6===s?i=new yt(t,e):7===s&&(i=new gt(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return mt},getKeyframedConstructorFunction:function(){return vt}},Pt=function(t){function e(t,s){var i;n(this,e),(i=r(this,e)).elem=t,i.frameId=-1,i.propType="mask",i.masksProperties=s||[],i.initDynamicPropertyContainer(t),i.viewData=v(i.masksProperties.length);for(var a=i.masksProperties.length,h=!1,o=0;o<a;o++)"n"!==i.masksProperties[o].mode&&(h=!0),i.viewData[o]=St.getShapeProp(i,i.masksProperties[o],3),i.viewData[o].inv=i.masksProperties[o].inv;return i.hasMasks=h,i}return p(e,t),o(e,[{key:"getValue",value:function(t){this._mdf=!1,t!==this.frameId&&(this.iterateDynamicProperties(t),this.frameId=t)}}])}(m),Tt=function(){var t=Math.cos,e=Math.sin,s=Math.tan,i=Math.round;function a(){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 r(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function n(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(1,0,0,0,0,i,-a,0,0,a,i,0,0,0,0,1)}function h(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(i,0,a,0,0,1,0,0,-a,0,i,0,0,0,0,1)}function o(s){if(0===s)return this;var i=t(s),a=e(s);return this._t(i,-a,0,0,a,i,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(s(t),s(e))}function u(i,a){var r=t(a),n=e(a);return this._t(r,n,0,0,-n,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,s(i),1,0,0,0,0,1,0,0,0,0,1)._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function f(t,e,s){return s||0===s||(s=1),1===t&&1===e&&1===s?this:this._t(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1)}function c(t,e,s,i,a,r,n,h,o,l,p,u,f,c,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=s,this.props[3]=i,this.props[4]=a,this.props[5]=r,this.props[6]=n,this.props[7]=h,this.props[8]=o,this.props[9]=l,this.props[10]=p,this.props[11]=u,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=m,this}function m(t,e,s){return s=s||0,0!==t||0!==e||0!==s?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1):this}function v(t,e,s,i,a,r,n,h,o,l,p,u,f,c,d,m){var v=this.props;if(1===t&&0===e&&0===s&&0===i&&0===a&&1===r&&0===n&&0===h&&0===o&&0===l&&1===p&&0===u)return v[12]=v[12]*t+v[15]*f,v[13]=v[13]*r+v[15]*c,v[14]=v[14]*p+v[15]*d,v[15]=v[15]*m,this._identityCalculated=!1,this;var y=v[0],g=v[1],_=v[2],k=v[3],x=v[4],S=v[5],P=v[6],T=v[7],L=v[8],M=v[9],w=v[10],b=v[11],C=v[12],D=v[13],A=v[14],I=v[15];return v[0]=y*t+g*a+_*o+k*f,v[1]=y*e+g*r+_*l+k*c,v[2]=y*s+g*n+_*p+k*d,v[3]=y*i+g*h+_*u+k*m,v[4]=x*t+S*a+P*o+T*f,v[5]=x*e+S*r+P*l+T*c,v[6]=x*s+S*n+P*p+T*d,v[7]=x*i+S*h+P*u+T*m,v[8]=L*t+M*a+w*o+b*f,v[9]=L*e+M*r+w*l+b*c,v[10]=L*s+M*n+w*p+b*d,v[11]=L*i+M*h+w*u+b*m,v[12]=C*t+D*a+A*o+I*f,v[13]=C*e+D*r+A*l+I*c,v[14]=C*s+D*n+A*p+I*d,v[15]=C*i+D*h+A*u+I*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 _(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function k(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,s){return{x:t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}}function S(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}function P(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}function T(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}function L(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],s=this.props[5]/e,i=-this.props[1]/e,a=-this.props[4]/e,r=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,h=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*s+t[1]*a+n,t[0]*i+t[1]*r+h,0]}function M(t){var e,s=t.length,i=[];for(e=0;e<s;e+=1)i[e]=L(t[e]);return i}function w(t,e,s){var i=d("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=s[0],i[5]=s[1];else{var a=this.props[0],r=this.props[1],n=this.props[4],h=this.props[5],o=this.props[12],l=this.props[13];i[0]=t[0]*a+t[1]*n+o,i[1]=t[0]*r+t[1]*h+l,i[2]=e[0]*a+e[1]*n+o,i[3]=e[0]*r+e[1]*h+l,i[4]=s[0]*a+s[1]*n+o,i[5]=s[0]*r+s[1]*h+l}return i}function b(t,e,s){return this.isIdentity()?[t,e,s]:[t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]]}function C(t,e){if(this.isIdentity())return t+","+e;var s=this.props;return Math.round(100*(t*s[0]+e*s[4]+s[12]))/100+","+Math.round(100*(t*s[1]+e*s[5]+s[13]))/100}function D(){for(var t=0,e=this.props,s="matrix3d(";t<16;)s+=i(1e4*e[t])/1e4,s+=15===t?")":",",t+=1;return s}function A(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function I(){var t=this.props;return"matrix("+A(t[0])+","+A(t[1])+","+A(t[4])+","+A(t[5])+","+A(t[12])+","+A(t[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=n,this.rotateY=h,this.rotateZ=o,this.skew=p,this.skewFromAxis=u,this.shear=l,this.scale=f,this.setTransform=c,this.translate=m,this.transform=v,this.applyToPoint=x,this.applyToX=S,this.applyToY=P,this.applyToZ=T,this.applyToPointArray=b,this.applyToTriplePoints=w,this.applyToPointStringified=C,this.toCSS=D,this.to2dCSS=I,this.clone=_,this.cloneFromProps=k,this.equals=g,this.inversePoints=M,this.inversePoint=L,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}(),Lt=o((function t(){n(this,t),this.sequences={},this.sequenceList=[],this.transform_key_count=0}),[{key:"addTransformSequence",value:function(t){for(var e=t.length,s="_",i=0;i<e;i+=1)s+=t[i].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Tt,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a}},{key:"processSequence",value:function(t,e){for(var s,i=0,a=e,r=t.transforms.length;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)s=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12],s[13],s[14],s[15]);t._mdf=a}},{key:"processSequences",value:function(t){for(var e=this.sequenceList.length,s=0;s<e;s+=1)this.processSequence(this.sequenceList[s],t)}},{key:"getNewKey",value:function(){return"_"+this.transform_key_count++}}]),Mt=o((function t(e,s){n(this,t),this.elem=e,this.pos=s})),wt=o((function t(e,s,i,a){n(this,t),this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==s.ty?r=5:"el"==s.ty?r=6:"sr"==s.ty&&(r=7),this.sh=St.getShapeProp(e,s,r);for(var h=i.length,o=0;o<h;o+=1)if(!i[o].closed){var l={transforms:a.addTransformSequence(i[o].transforms),trNodes:[]};this.styledShapes.push(l),i[o].elements.push(l)}}),[{key:"setAsAnimated",value:function(){this._isAnimated=!0}}]),bt=o((function t(e,s){n(this,t),this.data=e,this.type=e.ty,this.preTransforms=s,this.transforms=[],this.elements=[],this.closed=!0===e.hd,this.co=null,this.lc="round",this.lj="round",this.ml=0,this.wi=0,this.da=null,this.do=0,this.r=""})),Ct=function(t){function e(t,s,i){var a;if(n(this,e),(a=r(this,e)).elem=t,a.frameId=-1,a.propType="transform",a.data=s,a.v=new Tt,a.pre=new Tt,a.appliedTransformations=0,a.initDynamicPropertyContainer(i||t),s.p&&s.p.s?(a.px=at.getProp(t,s.p.x,0,0,a),a.py=at.getProp(t,s.p.y,0,0,a),s.p.z&&(a.pz=at.getProp(t,s.p.z,0,0,a))):a.p=at.getProp(t,s.p||{k:[0,0,0]},1,0,a),s.rx){if(a.rx=at.getProp(t,s.rx,0,q,a),a.ry=at.getProp(t,s.ry,0,q,a),a.rz=at.getProp(t,s.rz,0,q,a),s.or.k[0].ti){var h,o=s.or.k.length;for(h=0;h<o;h+=1)s.or.k[h].to=s.or.k[h].ti=null}a.or=at.getProp(t,s.or,1,q,a),a.or.sh=!0}else a.r=at.getProp(t,s.r||{k:0},0,q,a);return s.sk&&(a.sk=at.getProp(t,s.sk,0,q,a),a.sa=at.getProp(t,s.sa,0,q,a)),a.a=at.getProp(t,s.a||{k:[0,0,0]},1,0,a),a.s=at.getProp(t,s.s||{k:[100,100,100]},1,.01,a),s.o?a.o=at.getProp(t,s.o,0,.01,t):a.o={_mdf:!1,v:1},a._isDirty=!0,a.dynamicProperties.length||a.getValue(z,!0),a}return p(e,t),o(e,[{key:"getValue",value:function(t,e){t!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||e)&&(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.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=t)}},{key:"precalculateMatrix",value: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)}}},{key:"applyToMatrix",value: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])}}])}(m);function Dt(t,e,s){return new Ct(t,e,s)}var At=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(){}},{key:"addShapeToModifier",value:function(){}},{key:"addShape",value:function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:ct.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}}},{key:"init",value:function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-1,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)}},{key:"processKeys",value:function(t){t!==this.frameId&&(this.frameId=t,this.iterateDynamicProperties(t))}}])}(m),It=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.s=at.getProp(t,e.s,0,.01,this),this.e=at.getProp(t,e.e,0,.01,this),this.o=at.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}},{key:"addShapeToModifier",value:function(t){t.pathsData=[]}},{key:"calculateShapeEdges",value:function(t,e,s,i,a){var r=[];e<=1?r.push({s:t,e:e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var n,h,o=[],l=r.length;for(n=0;n<l;n+=1)if((h=r[n]).e*a<i||h.s*a>i+s);else{var p=void 0,u=void 0;p=h.s*a<=i?0:(h.s*a-i)/s,u=h.e*a>=i+s?1:(h.e*a-i)/s,o.push([p,u])}return o.length||o.push([0,0]),o}},{key:"releasePathsData",value:function(t){for(var e=t.length,s=0;s<e;s+=1)D.release(t[s]);return t.length=0,t}},{key:"processShapes",value:function(t){var e,s,i,a;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+r)>(s=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r)){var n=e;e=s,s=n}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue,s=this.eValue;var h,o,l,p,u,f=this.shapes.length,c=0;if(s===e)for(a=0;a<f;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===s&&0===e||0===s&&1===e){if(this._mdf)for(a=0;a<f;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var d,m,v=[];for(a=0;a<f;a+=1)if((d=this.shapes[a]).shape._mdf||this._mdf||t||2===this.m){if(o=(i=d.shape.paths)._length,u=0,!d.shape._mdf&&d.pathsData.length)u=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),h=0;h<o;h+=1)p=j.getSegmentsLength(i.shapes[h]),l.push(p),u+=p.totalLength;d.totalShapeLength=u,d.pathsData=l}c+=u,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y,g=e,_=s,k=0;for(a=f-1;a>=0;a-=1)if((d=this.shapes[a]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&f>1?(y=this.calculateShapeEdges(e,s,d.totalShapeLength,k,c),k+=d.totalShapeLength):y=[[g,_]],o=y.length,h=0;h<o;h+=1){g=y[h][0],_=y[h][1],v.length=0,_<=1?v.push({s:d.totalShapeLength*g,e:d.totalShapeLength*_}):g>=1?v.push({s:d.totalShapeLength*(g-1),e:d.totalShapeLength*(_-1)}):(v.push({s:d.totalShapeLength*g,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(_-1)}));var x=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,m),x=this.addShapes(d,v[1],S)}else this.addPaths(x,m),x=this.addShapes(d,v[1]);this.addPaths(x,m)}}d.shape.paths=m}}}},{key:"addPaths",value:function(t,e){for(var s=t.length,i=0;i<s;i+=1)e.addShape(t[i])}},{key:"addSegment",value:function(t,e,s,i,a,r,n){a.setXYAt(e[0],e[1],"o",r),a.setXYAt(s[0],s[1],"i",r+1),n&&a.setXYAt(t[0],t[1],"v",r),a.setXYAt(i[0],i[1],"v",r+1)}},{key:"addSegmentFromArray",value:function(t,e,s,i){e.setXYAt(t[1],t[5],"o",s),e.setXYAt(t[2],t[6],"i",s+1),i&&e.setXYAt(t[0],t[4],"v",s),e.setXYAt(t[3],t[7],"v",s+1)}},{key:"addShapes",value:function(t,e,s){var i,a,r,n,h,o,l,p,u=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,m=[],v=!0;for(s?(h=s._length,p=s._length):(s=ot.newElement(),h=0,p=0),m.push(s),i=0;i<c;i+=1){for(o=u[i].lengths,s.c=f[i].c,r=f[i].c?o.length:o.length+1,a=1;a<r;a+=1)if(d+(n=o[a-1]).addedLength<e.s)d+=n.addedLength,s.c=!1;else{if(d>e.e){s.c=!1;break}e.s<=d&&e.e>=d+n.addedLength?(this.addSegment(f[i].v[a-1],f[i].o[a-1],f[i].i[a],f[i].v[a],s,h,v),v=!1):(l=j.getNewSegment(f[i].v[a-1],f[i].v[a],f[i].o[a-1],f[i].i[a],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,o[a-1]),this.addSegmentFromArray(l,s,h,v),v=!1,s.c=!1),d+=n.addedLength,h+=1}if(f[i].c&&o.length){if(n=o[a-1],d<=e.e){var y=o[a-1].addedLength;e.s<=d&&e.e>=d+y?(this.addSegment(f[i].v[a-1],f[i].o[a-1],f[i].i[0],f[i].v[0],s,h,v),v=!1):(l=j.getNewSegment(f[i].v[a-1],f[i].v[0],f[i].o[a-1],f[i].i[0],(e.s-d)/y,(e.e-d)/y,o[a-1]),this.addSegmentFromArray(l,s,h,v),v=!1,s.c=!1)}else s.c=!1;d+=n.addedLength,h+=1}if(s._length&&(s.setXYAt(s.v[p][0],s.v[p][1],"i",p),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),d>e.e)break;i<c-1&&(s=ot.newElement(),v=!0,m.push(s),h=0)}return m}}])}(At),Ft=.5519,Ot=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.rd=at.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length}},{key:"processPath",value:function(t,e){var s,i=ot.newElement();i.c=t.c;var a,r,n,h,o,l,p,u,f,c,d,m,v=t._length,y=0;for(s=0;s<v;s+=1)a=t.v[s],n=t.o[s],r=t.i[s],a[0]===n[0]&&a[1]===n[1]&&a[0]===r[0]&&a[1]===r[1]?0!==s&&s!==v-1||t.c?(h=0===s?t.v[v-1]:t.v[s-1],l=(o=Math.sqrt(Math.pow(a[0]-h[0],2)+Math.pow(a[1]-h[1],2)))?Math.min(o/2,e)/o:0,p=d=a[0]+(h[0]-a[0])*l,u=m=a[1]-(a[1]-h[1])*l,f=p-(p-a[0])*Ft,c=u-(u-a[1])*Ft,i.setTripleAt(p,u,f,c,d,m,y),y+=1,h=s===v-1?t.v[0]:t.v[s+1],l=(o=Math.sqrt(Math.pow(a[0]-h[0],2)+Math.pow(a[1]-h[1],2)))?Math.min(o/2,e)/o:0,p=f=a[0]+(h[0]-a[0])*l,u=c=a[1]+(h[1]-a[1])*l,d=p-(p-a[0])*Ft,m=u-(u-a[1])*Ft,i.setTripleAt(p,u,f,c,d,m,y),y+=1):(i.setTripleAt(a[0],a[1],n[0],n[1],r[0],r[1],y),y+=1):(i.setTripleAt(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],y),y+=1);return i}},{key:"processShapes",value:function(t){var e,s,i,a,r,n,h=this.shapes.length,o=this.rd.v;if(0!==o)for(s=0;s<h;s+=1){if(n=(r=this.shapes[s]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,i=0;i<a;i+=1)n.addShape(this.processPath(e[i],o));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)}}])}(At),Et=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.c=at.getProp(t,e.c,0,null,this),this.o=at.getProp(t,e.o,0,null,this),this.tr=Dt(t,e.tr,this),this.so=at.getProp(t,e.tr.so,0,.01,this),this.eo=at.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 Tt,this.rMatrix=new Tt,this.sMatrix=new Tt,this.tMatrix=new Tt,this.matrix=new Tt}},{key:"applyTransforms",value:function(t,e,s,i,a,r){var n=r?-1:1,h=i.s.v[0]+(1-i.s.v[0])*(1-a),o=i.s.v[1]+(1-i.s.v[1])*(1-a);t.translate(i.p.v[0]*n*a,i.p.v[1]*n*a,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*a),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),s.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),s.scale(r?1/h:h,r?1/o:o),s.translate(i.a.v[0],i.a.v[1],i.a.v[2])}},{key:"init",value:function(t,e,s,i){for(this.elem=t,this.arr=e,this.pos=s,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[s]);s>0;)s-=1,this._elements.unshift(e[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)}},{key:"resetElements",value:function(t){for(var e=t.length,s=0;s<e;s+=1)t[s]._processed=!1,"gr"===t[s].ty&&this.resetElements(t[s].it)}},{key:"cloneElements",value:function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e}},{key:"changeGroupRender",value:function(t,e){for(var s=t.length,i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)}},{key:"processShapes",value:function(t){if(this._mdf||t){var e=Math.ceil(this.c.v);if(this._groups.length<e){for(;this._groups.length<e;){var s={it:this.cloneElements(this._elements),ty:"gr"};s.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}]},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,s),this._groups.splice(0,0,s),this._currentCopies+=1}this.elem.reloadShapes()}var i,a,r=0;for(i=0;i<=this._groups.length-1;i+=1)a=r<e,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),r+=1;this._currentCopies=e;var n=this.o.v,h=n%1,o=n>0?Math.floor(n):Math.ceil(n),l=this.pMatrix.props,p=this.rMatrix.props,u=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var f=0;if(n>0){for(;f<o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),f+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),f+=h)}else if(n<0){for(;f>o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),f-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),f-=h)}i=1===this.data.m?0:this._currentCopies-1;var c=1===this.data.m?1:-1;for(r=this._currentCopies;r;){var d=this.elemsData[i].it,m=d[d.length-1].transform.mProps.v.props,v=m.length;if(d[d.length-1].transform.mProps._mdf=!0,d[d.length-1].transform.op._mdf=!0,d[d.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==f){(0!==i&&1===c||i!==this._currentCopies-1&&-1===c)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),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(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]);for(var y=0;y<v;y+=1)m[y]=this.matrix.props[y];this.matrix.reset()}else{this.matrix.reset();for(var g=0;g<v;g+=1)m[g]=this.matrix.props[g]}f+=1,r-=1,i+=c}}else for(var _=this._currentCopies,k=0;_;){var x=this.elemsData[k].it;x[x.length-1].transform.mProps._mdf=!1,x[x.length-1].transform.op._mdf=!1,_-=1,k+=1}}},{key:"addShape",value:function(){}}])}(At),Vt=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.data=e,this.positions=[]}},{key:"processKeys",value:function(t,e){(t!==this.frameId||e)&&(this._mdf=!0)}},{key:"addShapeToModifier",value:function(){this.positions.push([])}},{key:"processPath",value:function(t,e,s){var i,a,r,n,h=t.v.length,o=[],l=[],p=[];for(i=0;i<h;i+=1){s.v[i]||(s.v[i]=[t.v[i][0],t.v[i][1]],s.o[i]=[t.o[i][0],t.o[i][1]],s.i[i]=[t.i[i][0],t.i[i][1]],s.distV[i]=0,s.distO[i]=0,s.distI[i]=0),a=Math.atan2(t.v[i][1]-e[1],t.v[i][0]-e[0]),r=e[0]-s.v[i][0],n=e[1]-s.v[i][1];var u=Math.sqrt(r*r+n*n);s.distV[i]+=(u-s.distV[i])*this.data.dc,s.v[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distV[i])/2+t.v[i][0],s.v[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distV[i])/2+t.v[i][1],a=Math.atan2(t.o[i][1]-e[1],t.o[i][0]-e[0]),r=e[0]-s.o[i][0],n=e[1]-s.o[i][1],u=Math.sqrt(r*r+n*n),s.distO[i]+=(u-s.distO[i])*this.data.dc,s.o[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distO[i])/2+t.o[i][0],s.o[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distO[i])/2+t.o[i][1],a=Math.atan2(t.i[i][1]-e[1],t.i[i][0]-e[0]),r=e[0]-s.i[i][0],n=e[1]-s.i[i][1],u=Math.sqrt(r*r+n*n),s.distI[i]+=(u-s.distI[i])*this.data.dc,s.i[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distI[i])/2+t.i[i][0],s.i[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distI[i])/2+t.i[i][1],o.push(s.v[i]),l.push(s.o[i]),p.push(s.i[i])}return{v:o,o:l,i:p,c:t.c}}},{key:"processShapes",value:function(){var t,e,s,i,a=this.elem.globalData.mouseX,r=this.elem.globalData.mouseY,n=this.shapes.length;if(a){var h,o=this.elem.globalToLocal([a,r,0]),l=[];for(e=0;e<n;e+=1)if((h=this.shapes[e]).shape._mdf||this._mdf){for(h.shape._mdf=!0,i=(t=h.shape.paths).length,s=0;s<i;s+=1)this.positions[e][s]||(this.positions[e][s]={v:[],o:[],i:[],distV:[],distO:[],distI:[]}),l.push(this.processPath(t[s],o,this.positions[e][s]));h.shape.paths=l,h.last=l}else h.shape.paths=h.last}}}])}(At),Nt=function(t){function e(){return n(this,e),r(this,e,arguments)}return p(e,t),o(e,[{key:"initModifierProperties",value:function(t,e){this.getValue=this.processKeys,this.amount=at.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length}},{key:"processPath",value:function(t,e){var s=e/100,i=[0,0],a=t._length,r=0;for(r=0;r<a;r+=1)i[0]+=t.v[r][0],i[1]+=t.v[r][1];i[0]/=a,i[1]/=a;var n,h,o,l,p,u,f=ot.newElement();for(f.c=t.c,r=0;r<a;r+=1)n=t.v[r][0]+(i[0]-t.v[r][0])*s,h=t.v[r][1]+(i[1]-t.v[r][1])*s,o=t.o[r][0]+(i[0]-t.o[r][0])*-s,l=t.o[r][1]+(i[1]-t.o[r][1])*-s,p=t.i[r][0]+(i[0]-t.i[r][0])*-s,u=t.i[r][1]+(i[1]-t.i[r][1])*-s,f.setTripleAt(n,h,o,l,p,u,r);return f}},{key:"processShapes",value:function(t){var e,s,i,a,r,n,h=this.shapes.length,o=this.amount.v;if(0!==o)for(s=0;s<h;s+=1){if(n=(r=this.shapes[s]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,i=0;i<a;i+=1)n.addShape(this.processPath(e[i],o));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)}}])}(At),jt={};function zt(t,e){jt[t]||(jt[t]=e)}zt("tm",It),zt("rd",Ot),zt("rp",Et),zt("ms",Vt),zt("pb",Nt);var qt={getModifier:function(t,e,s){return new jt[t](e,s)}},Rt=function(t){function e(t,s,i){var a,h;n(this,e),(a=r(this,e)).elem=t,a.frameId=-1,a.dataProps=v(s.length),a.k=!1,a.dashArray=d("float32",s.length?s.length-1:0),a.dashoffset=d("float32",1),a.initDynamicPropertyContainer(i);var o,l=s.length||0;for(h=0;h<l;h+=1)o=at.getProp(t,s[h].v,0,0,a),a.k=o.k||a.k,a.dataProps[h]={n:s[h].n,p:o};return a.k||a.getValue(!0),a._isAnimated=a.k,a}return p(e,t),o(e,[{key:"getValue",value:function(t,e){if((t!==this.frameId||e)&&(this.frameId=t,this.iterateDynamicProperties(t),this._mdf=this._mdf||e,this._mdf)){var s=0,i=this.dataProps.length;for(s=0;s<i;s+=1)"o"!=this.dataProps[s].n?this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}}}])}(m),Bt=function(t){function e(t,s,i){var a;n(this,e),(a=r(this,e)).data=s,a.c=d("uint8c",4*s.p);var h=s.k.k[0].s?s.k.k[0].s.length-4*s.p:s.k.k.length-4*s.p;return a.o=d("float32",h),a._cmdf=!1,a._omdf=!1,a._collapsable=a.checkCollapsable(),a._hasOpacity=h,a.initDynamicPropertyContainer(i),a.prop=at.getProp(t,s.k,1,null,a),a.k=a.prop.k,a.getValue(!0),a}return p(e,t),o(e,[{key:"comparePoints",value:function(t,e){for(var s=0,i=this.o.length/2;s<i;){if(Math.abs(t[4*s]-t[4*e+2*s])>.01)return!1;s+=1}return!0}},{key:"checkCollapsable",value: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}},{key:"getValue",value:function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,s,i,a=4*this.data.p;for(e=0;e<a;e+=1)s=e%4==0?100:255,i=Math.round(this.prop.v[e]*s),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(a=this.prop.v.length,e=4*this.data.p;e<a;e+=1)s=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}}}])}(m),Xt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e)).elem=t,i.frameId=-1,i.propType="shapes",i.session=t.session,i.shapes=[],i.shapesData=s,i.stylesList=[],i.itemsData=[],i.prevViewData=[],i.shapeModifiers=[],i.processedElements=[],i.transformsManager=new Lt,i.initDynamicPropertyContainer(t),i.lcEnum={1:"butt",2:"round",3:"square"},i.ljEnum={1:"miter",2:"round",3:"bevel"},i._isFirstFrame=!0,i.transformHelper={opacity:1,_opMdf:!1},i.searchShapes(i.shapesData,i.itemsData,i.prevViewData,!0,[]),i._isAnimated||(i.transformHelper.opacity=1,i.transformHelper._opMdf=!1,i.updateModifiers(),i.transformsManager.processSequences(i._isFirstFrame),i.updateShape(i.transformHelper,i.shapesData,i.itemsData)),i}return p(e,t),o(e,[{key:"createStyleElement",value:function(t,e){var s=new bt(t,this.transformsManager.addTransformSequence(e)),i={};if("fl"==t.ty||"st"==t.ty?(i.c=at.getProp(this,t.c,1,255,this),i.c.k||(s.co=i.c.v)):"gf"!==t.ty&&"gs"!==t.ty||(i.s=at.getProp(this,t.s,1,null,this),i.e=at.getProp(this,t.e,1,null,this),i.h=at.getProp(this,t.h||{k:0},0,.01,this),i.a=at.getProp(this,t.a||{k:0},0,q,this),i.g=new Bt(this,t.g,this)),i.o=at.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(s.lc=this.lcEnum[t.lc]||"round",s.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(s.ml=t.ml),i.w=at.getProp(this,t.w,0,null,this),i.w.k||(s.wi=i.w.v),t.d){var a=new Rt(this,t.d,"canvas",this);i.d=a,i.d.k||(s.da=i.d.dashArray,s.do=i.d.dashoffset[0])}}else s.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(s),i.style=s,i}},{key:"addShapeToModifiers",value:function(t){var e,s=this.shapeModifiers.length;for(e=0;e<s;e+=1)this.shapeModifiers[e].addShape(t)}},{key:"isShapeInAnimatedModifiers",value:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1}},{key:"updateModifiers",value: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)}}},{key:"searchProcessedElement",value:function(t){for(var e=this.processedElements,s=0,i=e.length;s<i;){if(e[s].elem===t)return e[s].pos;s+=1}return 0}},{key:"addProcessedElement",value:function(t,e){for(var s=this.processedElements,i=s.length;i;)if(s[i-=1].elem===t)return void(s[i].pos=e);s.push(new Mt(t,e))}},{key:"createGroupElement",value:function(){return{it:[],prevViewData:[]}}},{key:"createTransformElement",value:function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:at.getProp(this,t.o,0,.01,this),mProps:Dt(this,t,this)}}}},{key:"createShapeElement",value:function(t){var e=new wt(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e}},{key:"reloadShapes",value:function(){var t;this._isFirstFrame=!0;var 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.updateModifiers(),this.transformsManager.processSequences(this._isFirstFrame)}},{key:"addTransformToStyleList",value:function(t){for(var e=this.stylesList.length,s=0;s<e;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(t)}},{key:"removeTransformFromStyleList",value:function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()}},{key:"closeStyles",value:function(t){for(var e=t.length,s=0;s<e;s+=1)t[s].closed=!0}},{key:"searchShapes",value:function(t,e,s,i,a){var r,n,h,o,l,p,u=t.length-1,f=[],c=[],d=[].concat(a);for(r=u;r>=0;r-=1){if((o=this.searchProcessedElement(t[r]))?e[r]=s[o-1]:t[r]._shouldRender=i,"fl"==t[r].ty||"st"==t[r].ty||"gf"==t[r].ty||"gs"==t[r].ty)o?e[r].style.closed=!1:e[r]=this.createStyleElement(t[r],d),f.push(e[r].style);else if("gr"==t[r].ty){if(o)for(h=e[r].it.length,n=0;n<h;n+=1)e[r].prevViewData[n]=e[r].it[n];else e[r]=this.createGroupElement(t[r]);this.searchShapes(t[r].it,e[r].it,e[r].prevViewData,i,d)}else"tr"==t[r].ty?(o||(p=this.createTransformElement(t[r]),e[r]=p),d.push(e[r]),this.addTransformToStyleList(e[r])):"sh"==t[r].ty||"rc"==t[r].ty||"el"==t[r].ty||"sr"==t[r].ty?o||(e[r]=this.createShapeElement(t[r])):"tm"==t[r].ty||"rd"==t[r].ty||"pb"==t[r].ty?(o?(l=e[r]).closed=!1:((l=qt.getModifier(t[r].ty)).init(this,t[r]),e[r]=l,this.shapeModifiers.push(l)),c.push(l)):"rp"==t[r].ty&&(o?(l=e[r]).closed=!0:(l=qt.getModifier(t[r].ty),e[r]=l,l.init(this,t,r,e),this.shapeModifiers.push(l),i=!1),c.push(l));this.addProcessedElement(t[r],r+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),u=c.length,r=0;r<u;r+=1)c[r].closed=!0}},{key:"updateShapeTransform",value:function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)}},{key:"updateStyledShape",value:function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var s,i,a,r=t.trNodes,n=e.paths,h=n._length;r.length=0;var o=t.transforms.finalTransform;for(a=0;a<h;a+=1){var l=n.shapes[a];if(l&&l.v){for(i=l._length,s=1;s<i;s+=1)1===s&&r.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),r.push({t:"c",pts:o.applyToTriplePoints(l.o[s-1],l.i[s],l.v[s])});1===i&&r.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&i&&(r.push({t:"c",pts:o.applyToTriplePoints(l.o[s-1],l.i[0],l.v[0])}),r.push({t:"z"}))}}t.trNodes=r}}},{key:"updatePath",value:function(t,e){if(!0!==t.hd&&t._shouldRender){var s,i=e.styledShapes.length;for(s=0;s<i;s+=1)this.updateStyledShape(e.styledShapes[s],e.sh)}}},{key:"updateFill",value:function(t,e,s){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co=e.c.v),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity)}},{key:"updateStroke",value:function(t,e,s){var i=e.style,a=e.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co=e.c.v),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)}},{key:"updateGradientFill",value:function(t,e,s){var i=e.style;i.grd=e.g.c,i.coOp=e.o.v*s.opacity}},{key:"updateShape",value:function(t,e,s){for(var i=t,a=e.length-1;a>=0;a-=1)"tr"==e[a].ty?(i=s[a].transform,this.updateShapeTransform(t,i)):"sh"==e[a].ty||"el"==e[a].ty||"rc"==e[a].ty||"sr"==e[a].ty?this.updatePath(e[a],s[a]):"fl"==e[a].ty?this.updateFill(e[a],s[a],i):"st"==e[a].ty?this.updateStroke(e[a],s[a],i):"gf"==e[a].ty||"gs"==e[a].ty?this.updateGradientFill(e[a],s[a],i):"gr"==e[a].ty&&this.updateShape(i,e[a].it,s[a].it)}},{key:"getValue",value:function(t){t!==this.frameId&&(this.iterateDynamicProperties(t),this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.updateModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.updateShape(this.transformHelper,this.shapesData,this.itemsData),this.frameId=t)}},{key:"addChildToGroup",value:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return t&&"gr"===t.ty?(t.it||(t.it=[]),s>=0&&s<t.it.length?t.it.splice(s,0,e):t.it.push(e),e._shouldRender=!0,this.reloadShapes(),!0):(console.warn("Invalid group data provided to addChildToGroup"),!1)}},{key:"removeChildFromGroup",value:function(t,e){if(!t||"gr"!==t.ty||!t.it)return console.warn("Invalid group data provided to removeChildFromGroup"),!1;if(e<0||e>=t.it.length)return console.warn("Invalid index provided to removeChildFromGroup"),!1;var s=t.it.splice(e,1)[0];return this.reloadShapes(),s}},{key:"insertChildAtIndex",value:function(t,e,s){return this.addChildToGroup(t,e,s)}},{key:"getChildCount",value:function(t){return t&&"gr"===t.ty&&t.it?t.it.length:0}},{key:"getChildAt",value:function(t,e){return t&&"gr"===t.ty&&t.it?e<0||e>=t.it.length?null:t.it[e]:null}},{key:"findGroupByName",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.shapesData,s=0;s<e.length;s++){var i=e[s];if("gr"===i.ty&&i.nm===t)return i;if("gr"===i.ty&&i.it){var a=this.findGroupByName(t,i.it);if(a)return a}}return null}}])}(m),Yt=o((function t(){n(this,t),this.listeners={},this.addEventListener=this.on,this.removeEventListener=this.off,this._emitAsyncQueue=[],this._emitTimer=null}),[{key:"on",value:function(t,e){return Y.isFunction(e)?(Y.isUndefined(this.listeners[t])&&(this.listeners[t]=[]),-1!==this.listeners[t].indexOf(e)||this.listeners[t].push(e),this):this}},{key:"off",value:function(t,e){if(Y.isUndefined(this.listeners[t]))return this;var s=this.listeners[t],i=s.length;if(i>0)if(e)for(;i--;)s[i]===e&&s.splice(i,1);else s.length=0;return this}},{key:"once",value:function(t,e){var s=this;if(!Y.isFunction(e))return this;var i=function(a){e(a),s.off(t,i)};return this.on(t,i),this}},{key:"emit",value:function(t,...e){if(Y.isUndefined(this.listeners[t]))return this;for(var s=(this.listeners[t]||[]).slice(0),i=0;i<s.length;i++)s[i].apply(this,e);return this}},{key:"emitAsync",value:function(t,e){var s=this;return null===this._emitTimer&&(this._emitTimer=setTimeout((function(){s._shipAsyncQueue()}))),this._emitAsyncQueue.push([t,e]),this}},{key:"_shipAsyncQueue",value:function(){var t=this,e=this._emitAsyncQueue.slice(0);this._emitAsyncQueue.length=0,this._emitTimer=null,e.forEach((function(e){t.emit(e[0],e[1])}))}}]),Wt=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e))._currentTextLength=-1,i.k=!1,i.data=s,i.elem=t,i.comp=t.comp,i.finalS=0,i.finalE=0,i.initDynamicPropertyContainer(t),i.s=at.getProp(t,s.s||{k:0},0,0,i),i.e="e"in s?at.getProp(t,s.e,0,0,i):{v:100},i.o=at.getProp(t,s.o||{k:0},0,0,i),i.xe=at.getProp(t,s.xe||{k:0},0,0,i),i.ne=at.getProp(t,s.ne||{k:0},0,0,i),i.a=at.getProp(t,s.a,0,.01,i),i.dynamicProperties.length||i.getValue(),i}return p(e,t),o(e,[{key:"getMult",value:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e=0,s=0,i=1,a=1;this.ne.v>0?e=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?i=1-this.xe.v/100:a=1+this.xe.v/100;var r=M.getBezierEasing(e,s,i,a).get,n=0,h=this.finalS,o=this.finalE,l=this.data.sh;if(2===l)n=r(n=o===h?t>=o?1:0:Math.max(0,Math.min(.5/(o-h)+(t-h)/(o-h),1)));else if(3===l)n=r(n=o===h?t>=o?0:1:1-Math.max(0,Math.min(.5/(o-h)+(t-h)/(o-h),1)));else if(4===l)o===h?n=0:(n=Math.max(0,Math.min(.5/(o-h)+(t-h)/(o-h),1)))<.5?n*=2:n=1-2*(n-.5),n=r(n);else if(5===l){if(o===h)n=0;else{var p=o-h,u=-p/2+(t=Math.min(Math.max(0,t+.5-h),o-h)),f=p/2;n=Math.sqrt(1-u*u/(f*f))}n=r(n)}else 6===l?(o===h?n=0:(t=Math.min(Math.max(0,t+.5-h),o-h),n=(1+Math.cos(Math.PI+2*Math.PI*t/(o-h)))/2),n=r(n)):(t>=Math.floor(h)&&(n=t-h<0?Math.max(0,Math.min(Math.min(o,1)-(h-t),1)):Math.max(0,Math.min(o-t,1))),n=r(n));return n*this.a.v}},{key:"getValue",value:function(t){this.iterateDynamicProperties(t),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,s=this.o.v/e,i=this.s.v/e+s,a=this.e.v/e+s;if(i>a){var r=i;i=a,a=r}this.finalS=i,this.finalE=a}}])}(m);var Ht,Ut=o((function t(e,s,i){n(this,t);var a={propType:!1},r=at.getProp,h=s.a;this.a={r:h.r?r(e,h.r,0,q,i):a,rx:h.rx?r(e,h.rx,0,q,i):a,ry:h.ry?r(e,h.ry,0,q,i):a,sk:h.sk?r(e,h.sk,0,q,i):a,sa:h.sa?r(e,h.sa,0,q,i):a,s:h.s?r(e,h.s,1,.01,i):a,a:h.a?r(e,h.a,1,0,i):a,o:h.o?r(e,h.o,0,.01,i):a,p:h.p?r(e,h.p,1,0,i):a,sw:h.sw?r(e,h.sw,0,0,i):a,sc:h.sc?r(e,h.sc,1,0,i):a,fc:h.fc?r(e,h.fc,1,0,i):a,fh:h.fh?r(e,h.fh,0,0,i):a,fs:h.fs?r(e,h.fs,0,.01,i):a,fb:h.fb?r(e,h.fb,0,.01,i):a,t:h.t?r(e,h.t,0,0,i):a},this.s=function(t,e,s){return new Wt(t,e,s)}(e,s.s,i),this.s.t=s.s.t})),Gt=o((function t(e,s,i,a,r,h){n(this,t),this.o=e,this.sw=s,this.sc=i,this.fc=a,this.m=r,this.p=h,this._mdf={o:!0,sw:!!s,sc:!!i,fc:!!a,m:!0,p:!0}}),[{key:"update",value:function(t,e,s,i,a,r){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 n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,n=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,n=!0),n}}]);function Kt(t){for(var e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",a=e.length,r=0;r<a;r+=1)switch(e[r].toLowerCase()){case"italic":i="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"}return{style:i,weight:t.fWeight||s}}function Jt(t,e,s){var i,a,r,n,h,o,l,p;switch(o=s*(1-e),l=s*(1-(h=6*t-(n=Math.floor(6*t)))*e),p=s*(1-(1-h)*e),n%6){case 0:i=s,a=p,r=o;break;case 1:i=l,a=s,r=o;break;case 2:i=o,a=s,r=p;break;case 3:i=o,a=l,r=s;break;case 4:i=p,a=o,r=s;break;case 5:i=s,a=o,r=l}return[i,a,r]}function Qt(t,e,s){var i,a=Math.max(t,e,s),r=Math.min(t,e,s),n=a-r,h=0===a?0:n/a,o=a/255;switch(a){case r:i=0;break;case t:i=e-s+n*(e<s?6:0),i/=6*n;break;case e:i=s-t+2*n,i/=6*n;break;case s:i=t-e+4*n,i/=6*n}return[i,h,o]}function Zt(t,e){var s=Qt(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),Jt(s[0],s[1],s[2])}function $t(t,e){var s=Qt(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Jt(s[0],s[1],s[2])}function te(t,e){var s=Qt(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Jt(s[0],s[1],s[2])}for(Ht=0;Ht<256;Ht+=1)Ht.toString(16).length;var ee=function(t){function e(t,s,i){var a;return n(this,e),(a=r(this,e))._isFirstFrame=!0,a._hasMaskedPath=!1,a._frameId=-1,a._textData=t,a._renderType=s,a.elem=i,a._animatorsData=v(a._textData.a.length),a._pathData={},a._moreOptions={alignment:{}},a.renderedLetters=[],a.lettersChangedFlag=!1,a.mHelper=new Tt,a.defaultPropsArray=[],a.initDynamicPropertyContainer(i),a}return p(e,t),o(e,[{key:"searchProperties",value:function(){var t,e,s=this._textData.a.length,i=at.getProp;for(t=0;t<s;t+=1)e=this._textData.a[t],this._animatorsData[t]=new Ut(this.elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this,this._textData.p.a,0,0,this),f:i(this,this._textData.p.f,0,0,this),l:i(this,this._textData.p.l,0,0,this),r:i(this,this._textData.p.r,0,0,this),p:i(this,this._textData.p.p,0,0,this),m:this.elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this.elem,this._textData.m.a,1,0,this)}},{key:"getMeasures",value:function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var s,i,a,r,n,h,o,l,p,u,f,c,d,m,v,y,g,_,k,x=this._moreOptions.alignment.v,S=this._animatorsData,P=this._textData,T=this.mHelper,L=this._renderType,M=this.renderedLetters.length,w=t.l;if(this._hasMaskedPath){if(k=this._pathData.m,!this._pathData.n||this._pathData._mdf){var b,C=k.v;for(this._pathData.r.v&&(C=C.reverse()),n={tLength:0,segments:[]},r=C._length-1,y=0,a=0;a<r;a+=1)b=j.buildBezierData(C.v[a],C.v[a+1],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[a+1][0]-C.v[a+1][0],C.i[a+1][1]-C.v[a+1][1]]),n.tLength+=b.segmentLength,n.segments.push(b),y+=b.segmentLength;a=r,k.v.c&&(b=j.buildBezierData(C.v[a],C.v[0],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),n.tLength+=b.segmentLength,n.segments.push(b),y+=b.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,h=this._pathData.f.v,f=0,u=1,l=0,p=!0,m=n.segments,h<0&&k.v.c)for(n.tLength<Math.abs(h)&&(h=-Math.abs(h)%n.tLength),u=(d=m[f=m.length-1].points).length-1;h<0;)h+=d[u].partialLength,(u-=1)<0&&(u=(d=m[f-=1].points).length-1);c=(d=m[f].points)[u-1],v=(o=d[u]).partialLength}r=w.length,s=0,i=0;var D,A,I,F,O,E=1.2*t.finalSize*.714,V=!0;I=S.length;var N,z,q,R,B,X,Y,W,H,U,G,K,J=-1,Q=h,Z=f,$=u,tt=-1,et="",st=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,at=0,rt=2===t.j?-.5:-1,nt=0,ht=!0;for(a=0;a<r;a+=1)if(w[a].n){for(it&&(it+=at);nt<a;)w[nt].animatorJustifyOffset=it,nt+=1;it=0,ht=!0}else{for(A=0;A<I;A+=1)(D=S[A].a).t.propType&&(ht&&2===t.j&&(at+=D.t.v*rt),(O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?it+=D.t.v*O[0]*rt:it+=D.t.v*O*rt);ht=!1}for(it&&(it+=at);nt<a;)w[nt].animatorJustifyOffset=it,nt+=1}for(a=0;a<r;a+=1){if(T.reset(),R=1,w[a].n)s=0,i+=t.yOffset,i+=V?1:0,h=Q,V=!1,this._hasMaskedPath&&(u=$,c=(d=m[f=Z].points)[u-1],v=(o=d[u]).partialLength,l=0),et="",G="",H="",K="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(tt!==w[a].line){switch(t.j){case 1:h+=y-t.lineWidths[w[a].line];break;case 2:h+=(y-t.lineWidths[w[a].line])/2}tt=w[a].line}J!==w[a].ind&&(w[J]&&(h+=w[J].extra),h+=w[a].an/2,J=w[a].ind),h+=x[0]*w[a].an*.005;var ot=0;for(A=0;A<I;A+=1)(D=S[A].a).p.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?ot+=D.p.v[0]*O[0]:ot+=D.p.v[0]*O),D.a.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?ot+=D.a.v[0]*O[0]:ot+=D.a.v[0]*O);for(p=!0,this._pathData.a.v&&(h=.5*w[0].an+(y-this._pathData.f.v-.5*w[0].an-.5*w[w.length-1].an)*J/(r-1),h+=this._pathData.f.v);p;)l+v>=h+ot||!d?(g=(h+ot-l)/o.partialLength,z=c.point[0]+(o.point[0]-c.point[0])*g,q=c.point[1]+(o.point[1]-c.point[1])*g,T.translate(-x[0]*w[a].an*.005,-x[1]*E*.01),p=!1):d&&(l+=o.partialLength,(u+=1)>=d.length&&(u=0,m[f+=1]?d=m[f].points:k.v.c?(u=0,d=m[f=0].points):(l-=o.partialLength,d=null)),d&&(c=o,v=(o=d[u]).partialLength));N=w[a].an/2-w[a].add,T.translate(-N,0,0)}else N=w[a].an/2-w[a].add,T.translate(-N,0,0),T.translate(-x[0]*w[a].an*.005,-x[1]*E*.01,0);for(A=0;A<I;A+=1)(D=S[A].a).t.propType&&(O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars),0===s&&0===t.j||(this._hasMaskedPath?O.length?h+=D.t.v*O[0]:h+=D.t.v*O:O.length?s+=D.t.v*O[0]:s+=D.t.v*O));for(t.strokeWidthAnim&&(X=t.sw||0),t.strokeColorAnim&&(B=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[t.fc[0],t.fc[1],t.fc[2]]),A=0;A<I;A+=1)(D=S[A].a).a.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?T.translate(-D.a.v[0]*O[0],-D.a.v[1]*O[1],D.a.v[2]*O[2]):T.translate(-D.a.v[0]*O,-D.a.v[1]*O,D.a.v[2]*O));for(A=0;A<I;A+=1)(D=S[A].a).s.propType&&((O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars)).length?T.scale(1+(D.s.v[0]-1)*O[0],1+(D.s.v[1]-1)*O[1],1):T.scale(1+(D.s.v[0]-1)*O,1+(D.s.v[1]-1)*O,1));for(A=0;A<I;A+=1){if(D=S[A].a,O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars),D.sk.propType&&(O.length?T.skewFromAxis(-D.sk.v*O[0],D.sa.v*O[1]):T.skewFromAxis(-D.sk.v*O,D.sa.v*O)),D.r.propType&&(O.length?T.rotateZ(-D.r.v*O[2]):T.rotateZ(-D.r.v*O)),D.ry.propType&&(O.length?T.rotateY(D.ry.v*O[1]):T.rotateY(D.ry.v*O)),D.rx.propType&&(O.length?T.rotateX(D.rx.v*O[0]):T.rotateX(D.rx.v*O)),D.o.propType&&(O.length?R+=(D.o.v*O[0]-R)*O[0]:R+=(D.o.v*O-R)*O),t.strokeWidthAnim&&D.sw.propType&&(O.length?X+=D.sw.v*O[0]:X+=D.sw.v*O),t.strokeColorAnim&&D.sc.propType)for(W=0;W<3;W+=1)O.length?B[W]+=(D.sc.v[W]-B[W])*O[0]:B[W]+=(D.sc.v[W]-B[W])*O;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(W=0;W<3;W+=1)O.length?Y[W]+=(D.fc.v[W]-Y[W])*O[0]:Y[W]+=(D.fc.v[W]-Y[W])*O;D.fh.propType&&(Y=O.length?te(Y,D.fh.v*O[0]):te(Y,D.fh.v*O)),D.fs.propType&&(Y=O.length?Zt(Y,D.fs.v*O[0]):Zt(Y,D.fs.v*O)),D.fb.propType&&(Y=O.length?$t(Y,D.fb.v*O[0]):$t(Y,D.fb.v*O))}}for(A=0;A<I;A+=1)(D=S[A].a).p.propType&&(O=S[A].s.getMult(w[a].anIndexes[A],P.a[A].s.totalChars),this._hasMaskedPath?O.length?T.translate(0,D.p.v[1]*O[0],-D.p.v[2]*O[1]):T.translate(0,D.p.v[1]*O,-D.p.v[2]*O):O.length?T.translate(D.p.v[0]*O[0],D.p.v[1]*O[1],-D.p.v[2]*O[2]):T.translate(D.p.v[0]*O,D.p.v[1]*O,-D.p.v[2]*O));if(t.strokeWidthAnim&&(H=X<0?0:X),t.strokeColorAnim&&(U=B),t.fillColorAnim&&t.fc&&(G=Y),this._hasMaskedPath){if(T.translate(0,-t.ls),T.translate(0,x[1]*E*.01+i,0),this._pathData.p.v){_=(o.point[1]-c.point[1])/(o.point[0]-c.point[0]);var lt=180*Math.atan(_)/Math.PI;o.point[0]<c.point[0]&&(lt+=180),T.rotate(-lt*Math.PI/180)}T.translate(z,q,0),h-=x[0]*w[a].an*.005,w[a+1]&&J!==w[a+1].ind&&(h+=w[a].an/2,h+=.001*t.tr*t.finalSize)}else{switch(T.translate(s,i,0),t.ps&&T.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:T.translate(w[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[a].line]),0,0);break;case 2:T.translate(w[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[w[a].line])/2,0,0)}T.translate(0,-t.ls),T.translate(N,0,0),T.translate(x[0]*w[a].an*.005,x[1]*E*.01,0),s+=w[a].l+.001*t.tr*t.finalSize}"html"===L?et=T.toCSS():"svg"===L?et=T.to2dCSS():st=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],K=R}M<=a?(F=new Gt(K,H,U,G,et,st),this.renderedLetters.push(F),M+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[a],this.lettersChangedFlag=F.update(K,H,U,G,et,st)||this.lettersChangedFlag)}}}},{key:"getValue",value:function(t){t!==this._frameId&&(this._frameId=t,this.iterateDynamicProperties(t))}}])}(m);function se(t,e,s){var i,a,r,n,h,o,l=t.length;for(a=0;a<l;a+=1)if("ks"in(i=t[a])&&!i.completed){if(i.completed=!0,i.tt&&(t[a-1].td=i.tt),i.hasMask){var p=i.masksProperties;for(n=p.length,r=0;r<n;r+=1)if(p[r].pt.k.i)re(p[r].pt.k);else for(o=p[r].pt.k.length,h=0;h<o;h+=1)p[r].pt.k[h].s&&re(p[r].pt.k[h].s[0]),p[r].pt.k[h].e&&re(p[r].pt.k[h].e[0])}0===i.ty?(i.layers=ie(i.refId,e),se(i.layers,e)):4===i.ty?ae(i.shapes):5==i.ty&&fe(i)}}function ie(t,e){for(var s=0,i=e.length;s<i;){if(e[s].id===t)return e[s].layers.__used?JSON.parse(JSON.stringify(e[s].layers)):(e[s].layers.__used=!0,e[s].layers);s+=1}}function ae(t){var e,s,i;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)re(t[e].ks.k);else for(i=t[e].ks.k.length,s=0;s<i;s+=1)t[e].ks.k[s].s&&re(t[e].ks.k[s].s[0]),t[e].ks.k[s].e&&re(t[e].ks.k[s].e[0]);else"gr"==t[e].ty&&ae(t[e].it)}function re(t){var e,s=t.i.length;for(e=0;e<s;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 ne(t,e){var s=e?e.split("."):[100,100,100];return t[0]>s[0]||!(s[0]>t[0])&&(t[1]>s[1]||!(s[1]>t[1])&&(t[2]>s[2]||!(s[2]>t[2])&&void 0))}var he,oe=function(){var t=[4,4,14];function e(t){var e,s,i,a=t.length;for(e=0;e<a;e+=1)5===t[e].ty&&(s=t[e],i=void 0,i=s.t.d,s.t.d={k:[{s:i,t:0}]})}return function(s){if(ne(t,s.v)&&(e(s.layers),s.assets)){var i,a=s.assets.length;for(i=0;i<a;i+=1)s.assets[i].layers&&e(s.assets[i].layers)}}}(),le=(he=[4,7,99],function(t){if(t.chars&&!ne(he,t.v)){var e,s,i,a,r,n=t.chars.length;for(e=0;e<n;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(i=(r=t.chars[e].data.shapes[0].it).length,s=0;s<i;s+=1)(a=r[s].ks.k).__converted||(re(r[s].ks.k),a.__converted=!0)}}),pe=function(){var t=[4,1,9];function e(t){var s,i,a,r=t.length;for(s=0;s<r;s+=1)if("gr"===t[s].ty)e(t[s].it);else if("fl"===t[s].ty||"st"===t[s].ty)if(t[s].c.k&&t[s].c.k[0].i)for(a=t[s].c.k.length,i=0;i<a;i+=1)t[s].c.k[i].s&&(t[s].c.k[i].s[0]/=255,t[s].c.k[i].s[1]/=255,t[s].c.k[i].s[2]/=255,t[s].c.k[i].s[3]/=255),t[s].c.k[i].e&&(t[s].c.k[i].e[0]/=255,t[s].c.k[i].e[1]/=255,t[s].c.k[i].e[2]/=255,t[s].c.k[i].e[3]/=255);else t[s].c.k[0]/=255,t[s].c.k[1]/=255,t[s].c.k[2]/=255,t[s].c.k[3]/=255}function s(t){var s,i=t.length;for(s=0;s<i;s+=1)4===t[s].ty&&e(t[s].shapes)}return function(e){if(ne(t,e.v)&&(s(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&s(e.assets[i].layers)}}}(),ue=function(){var t=[4,4,18];function e(t){var s,i,a;for(s=t.length-1;s>=0;s-=1)if("sh"==t[s].ty)if(t[s].ks.k.i)t[s].ks.k.c=t[s].closed;else for(a=t[s].ks.k.length,i=0;i<a;i+=1)t[s].ks.k[i].s&&(t[s].ks.k[i].s[0].c=t[s].closed),t[s].ks.k[i].e&&(t[s].ks.k[i].e[0].c=t[s].closed);else"gr"==t[s].ty&&e(t[s].it)}function s(t){var s,i,a,r,n,h,o=t.length;for(i=0;i<o;i+=1){if((s=t[i]).hasMask){var l=s.masksProperties;for(r=l.length,a=0;a<r;a+=1)if(l[a].pt.k.i)l[a].pt.k.c=l[a].cl;else for(h=l[a].pt.k.length,n=0;n<h;n+=1)l[a].pt.k[n].s&&(l[a].pt.k[n].s[0].c=l[a].cl),l[a].pt.k[n].e&&(l[a].pt.k[n].e[0].c=l[a].cl)}4===s.ty&&e(s.shapes)}}return function(e){if(ne(t,e.v)&&(s(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&s(e.assets[i].layers)}}}();function fe(t){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var ce={completeData:function(t,e){t.__complete||(pe(t),oe(t),le(t),ue(t),se(t.layers,t.assets),t.__complete=!0)},checkColors:pe,checkChars:le,checkShapes:ue,completeLayers:se},de=function(t){function e(t,s){var i;n(this,e),(i=r(this,e)).data=t,i.is3D=!!i.data.ddd,void 0===i.data.sr&&(i.data.sr=1),i.session=s,i.blendMode=t.bm||0,i.offsetTime=t.st||0,i.fullname=t.nm||"",i.idname=t.ln||"",i.classnames=t.cl?t.cl.split(" "):[];var a=i.session,h=a.local,o=a.global;return i.isOverlapLayer=i.data.op>=h.op-h.st,i.isOverlapMode=o.overlapMode,i.display=null,i.transformHierarchy=null,i.isHierarchyBySomeLayer=!1,i.parent=null,i._isInRange=!1,i.dynamicProperties=[],i.transform=null,i.data.ks&&(i.transform=new rt(i,i.data.ks),i.data.ao&&(i.transform.autoOriented=!0)),i.masks=null,i.checkMasks()&&(i.masks=new Pt(i,i.data.masksProperties)),i}return p(e,t),o(e,[{key:"isInRange",get:function(){return this._isInRange},set:function(t){t!==this._isInRange&&(this._isInRange=t,this._mdf=!0)}},{key:"checkMasks",value: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}},{key:"outTypeExpressionMode",value:function(){this._hasOutTypeExpression=!0,this.isOverlapLayer&&(this.needUpdateOverlap=!0)}},{key:"prepareProperties",value:function(t,e){var s,i=this.dynamicProperties.length;for(s=0;s<i;s+=1)(e||this.isHierarchyBySomeLayer&&"transform"===this.dynamicProperties[s].propType)&&(this.dynamicProperties[s].getValue(t),this.dynamicProperties[s]._mdf&&(this._mdf=!0))}},{key:"addDynamicProperty",value:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},{key:"setTransformHierarchy",value:function(t){this.transformHierarchy=t,t.isHierarchyBySomeLayer=!0}},{key:"setDisplay",value:function(t){this.display=t,this.updateLottieToDisplay(!0)}},{key:"updateLottieToDisplay",value:function(t){this.display&&this.display.updateLottie(this,t)}},{key:"checkLayerLimits",value:function(t){return this.data.ip<=t&&this.data.op>=t}},{key:"updateLayerFrame",value:function(t,e){this._mdf=!1,this.isOverlapMode&&this.isOverlapLayer?this.isInRange=t>=this.data.ip:this.isInRange=this.checkLayerLimits(t),this.prepareProperties(t,e||this.isInRange)}},{key:"updateFrame",value:function(t){this.updateLayerFrame(t),this._mdf&&this.updateLottieToDisplay()}}])}(Yt),me=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).localSize=s.local.size,i.collapseSize=s.local.collapseSize,i.isOneNodeCamera=!i.data.ks.a,i.isNullCamera=!1,i.pe=at.getProp(i,i.data.pe,0,0,i),i.updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),ve=function(t){function e(t,s){var i;n(this,e),(i=r(this,e)).session=s,i.fullname="nullcamera",i.localSize=s.local.size,i.collapseSize=s.local.collapseSize,i.isOneNodeCamera=!1,i.isNullCamera=!0;var a=i.collapseSize,h=a.width,o=a.height;return i.pe={_mdf:!1,v:1.3888671875*Math.min(h,o)},i}return p(e,t),o(e,[{key:"updateFrame",value:function(){}}])}(Yt),ye=function(t){function e(t,s){var i;if(n(this,e),(i=r(this,e,[t,s])).childLayers=[],i._cmdf=!1,i.tm=null,i.data.tm){var a=i.session.global.frameRate;i.tm=at.getProp(i,i.data.tm,0,a,i)}return i.updateLayerFrame(z,!0),i}return p(e,t),o(e,[{key:"updateFrame",value:function(t){if(this.updateLayerFrame(t),t-=this.offsetTime,this.tm){var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),t=e}else t/=this.data.sr;this.updateChildsFrame(t),(this._mdf||this._cmdf)&&(this._mdf&&this.updateLottieToDisplay(),this.emit("update",this))}},{key:"updateChildsFrame",value:function(t){this._cmdf=!1;for(var e=0;e<this.childLayers.length;e++)this.childLayers[e].updateFrame(t),(this.childLayers[e]._mdf||this.childLayers[e]._cmdf)&&(this._cmdf=!0)}},{key:"addChild",value:function(t){t.parent=this,this.childLayers.push(t)}}])}(de),ge=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),_e=[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],ke={w:0,size:0,shapes:[]};function xe(t,e){var s=document.createElementNS("http://www.w3.org/2000/svg","text");s.style.fontSize="100px";var i=Kt(e);return s.setAttribute("font-family",e.fFamily),s.setAttribute("font-style",i.style),s.setAttribute("font-weight",i.weight),s.textContent="1",e.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",e.fClass)):s.style.fontFamily=e.fFamily,t.appendChild(s),s}function Se(t,e){var s=document.createElement("span");s.style.fontFamily=e;var i=document.createElement("span");i.innerText="giItT1WQy@!-/#",s.style.position="absolute",s.style.left="-10000px",s.style.top="-10000px",s.style.fontSize="300px",s.style.fontVariant="normal",s.style.fontStyle="normal",s.style.fontWeight="normal",s.style.letterSpacing="0",s.appendChild(i),document.body.appendChild(s);var a=i.offsetWidth;return i.style.fontFamily=function(t){for(var e=t.split(","),s=e.length,i=[],a=0;a<s;a+=1)"sans-serif"!==e[a]&&"monospace"!==e[a]&&i.push(e[a]);return i.join(",")}(t)+", "+e,{node:i,w:a,parent:s}}var Pe=o((function t(){n(this,t),this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}),[{key:"checkLoadedFonts",value:function(){for(var t,e,s=this.fonts.length,i=s,a=0;a<s;a++)this.fonts[a].loaded?i-=1:"n"===this.fonts[a].fOrigin||0===this.fonts[a].origin?this.fonts[a].loaded=!0:(t=this.fonts[a].monoCase.node,e=this.fonts[a].monoCase.w,t.offsetWidth!==e?(i-=1,this.fonts[a].loaded=!0):(t=this.fonts[a].sansCase.node,e=this.fonts[a].sansCase.w,t.offsetWidth!==e&&(i-=1,this.fonts[a].loaded=!0)),this.fonts[a].loaded&&(this.fonts[a].sansCase.parent.parentNode.removeChild(this.fonts[a].sansCase.parent),this.fonts[a].monoCase.parent.parentNode.removeChild(this.fonts[a].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}},{key:"addFonts",value:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);for(var s=t.list,i=s.length,a=i,r=0;r<i;r+=1){var n=!0,h=void 0,o=void 0;if(s[r].loaded=!1,s[r].monoCase=Se(s[r].fFamily,"monospace"),s[r].sansCase=Se(s[r].fFamily,"sans-serif"),s[r].fPath){if("p"===s[r].fOrigin||3===s[r].origin){if((h=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[r].fFamily+'"], style[f-origin="3"][f-family="'+s[r].fFamily+'"]')).length>0&&(n=!1),n){var l=document.createElement("style");l.setAttribute("f-forigin",s[r].fOrigin),l.setAttribute("f-origin",s[r].origin),l.setAttribute("f-family",s[r].fFamily),l.type="text/css",l.innerText="@font-face {font-family: "+s[r].fFamily+"; font-style: normal; src: url('"+s[r].fPath+"');}",e.appendChild(l)}}else if("g"===s[r].fOrigin||1===s[r].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),o=0;o<h.length;o++)-1!==h[o].href.indexOf(s[r].fPath)&&(n=!1);if(n){var p=document.createElement("link");p.setAttribute("f-forigin",s[r].fOrigin),p.setAttribute("f-origin",s[r].origin),p.type="text/css",p.rel="stylesheet",p.href=s[r].fPath,document.body.appendChild(p)}}else if("t"===s[r].fOrigin||2===s[r].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),o=0;o<h.length;o++)s[r].fPath===h[o].src&&(n=!1);if(n){var u=document.createElement("link");u.setAttribute("f-forigin",s[r].fOrigin),u.setAttribute("f-origin",s[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",s[r].fPath),e.appendChild(u)}}}else s[r].loaded=!0,a-=1;s[r].helper=xe(e,s[r]),s[r].cache={},this.fonts.push(s[r])}0===a?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}},{key:"addChars",value:function(t){if(t){this.chars||(this.chars=[]);for(var e=t.length,s=this.chars.length,i=0;i<e;i+=1){for(var a=0,r=!1;a<s;)this.chars[a].style===t[i].style&&this.chars[a].fFamily===t[i].fFamily&&this.chars[a].ch===t[i].ch&&(r=!0),a+=1;r||(this.chars.push(t[i]),s+=1)}}}},{key:"getCharData",value:function(t,e,s){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===s)return this.chars[i];i+=1}return("string"!=typeof t||13===t.charCodeAt(0))&&t||this._warned||(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,s)),ke}},{key:"measureText",value:function(t,e,s){var i=this.getFontByName(e),a=t.charCodeAt(0);if(!i.cache[a+1]){var r=i.helper;if(" "===t){r.textContent="|"+t+"|";var n=r.getComputedTextLength();r.textContent="||";var h=r.getComputedTextLength();i.cache[a+1]=(n-h)/100}else r.textContent=t,i.cache[a+1]=r.getComputedTextLength()/100}return i.cache[a+1]*s}},{key:"getFontByName",value:function(t){for(var e=0,s=this.fonts.length;e<s;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}},{key:"setIsLoaded",value:function(){this.isLoaded=!0}}]);Pe.getCombinedCharacterCodes=function(){return _e};var Te=o((function t(e,s){n(this,t),this._frameId=-1,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=s,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.defaultBoxWidth=[0,0],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)}),[{key:"copyData",value:function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);return t}},{key:"setCurrentData",value:function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0}},{key:"searchProperty",value:function(){return this.searchKeyframes()}},{key:"searchKeyframes",value:function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf}},{key:"addEffect",value:function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)}},{key:"getValue",value: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,s=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)r=s!==this.keysIndex?this.effectsSequence[i](r,r.t):this.effectsSequence[i](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}}},{key:"getKeyframeValue",value:function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,s=0,i=t.length;s<=i-1&&!(s===i-1||t[s+1].t>e);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s}},{key:"buildFinalText",value:function(t){for(var e,s=Pe.getCombinedCharacterCodes(),i=[],a=0,r=t.length;a<r;)e=t.charCodeAt(a),-1!==s.indexOf(e)?i[i.length-1]+=t.charAt(a):e>=55296&&e<=56319&&(e=t.charCodeAt(a+1))>=56320&&e<=57343?(i.push(t.substr(a,2)),++a):i.push(t.charAt(a)),a+=1;return i}},{key:"completeTextData",value:function(t){t.__complete=!0;var e,s,i,a,r,n,h,o=this.elem.globalData.fontManager,l=this.data,p=[],u=0,f=l.m.g,c=0,d=0,m=0,v=[],y=0,g=0,_=o.getFontByName(t.f),k=0,x=Kt(_);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),s=t.finalText.length,t.finalLineHeight=t.lh;var S,P=t.tr/1e3*t.finalSize;if(t.sz)for(var T,L,M=!0,w=t.sz[0],b=t.sz[1];M;){T=0,y=0,s=(L=this.buildFinalText(t.t)).length,P=t.tr/1e3*t.finalSize;var C=-1;for(e=0;e<s;e+=1)S=L[e].charCodeAt(0),i=!1," "===L[e]?C=e:13!==S&&3!==S||(y=0,i=!0,T+=t.finalLineHeight||1.2*t.finalSize),o.chars?(h=o.getCharData(L[e],_.fStyle,_.fFamily),k=i?0:h.w*t.finalSize/100):k=o.measureText(L[e],t.f,t.finalSize),y+k>w&&" "!==L[e]?(-1===C?s+=1:e=C,T+=t.finalLineHeight||1.2*t.finalSize,L.splice(e,C===e?1:0,"\r"),C=-1,y=0):(y+=k,y+=P);T+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&b<T?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=L,s=t.finalText.length,M=!1)}y=-P,k=0;var D,A=0;for(e=0;e<s;e+=1)if(i=!1,13===(S=(D=t.finalText[e]).charCodeAt(0))||3===S?(A=0,v.push(y),g=y>g?y:g,y=-2*P,a="",i=!0,m+=1):a=D,o.chars?(h=o.getCharData(D,_.fStyle,o.getFontByName(t.f).fFamily),k=i?0:h.w*t.finalSize/100):k=o.measureText(a,t.f,t.finalSize)," "===D?A+=k+P:(y+=k+P+A,A=0),p.push({l:k,an:k,add:c,n:i,anIndexes:[],val:a,line:m,animatorJustifyOffset:0}),2==f){if(c+=k,""===a||" "===a||e===s-1){for(""!==a&&" "!==a||(c-=k);d<=e;)p[d].an=c,p[d].ind=u,p[d].extra=k,d+=1;u+=1,c=0}}else if(3==f){if(c+=k,""===a||e===s-1){for(""===a&&(c-=k);d<=e;)p[d].an=c,p[d].ind=u,p[d].extra=k,d+=1;c=0,u+=1}}else p[u].ind=u,p[u].extra=0,u+=1;if(t.l=p,g=y>g?y:g,v.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=v;var I,F,O,E,V=l.a;n=V.length;var N=[];for(r=0;r<n;r+=1){for((I=V[r]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),E=0,O=I.s.b,e=0;e<s;e+=1)(F=p[e]).anIndexes[r]=E,(1==O&&""!==F.val||2==O&&""!==F.val&&" "!==F.val||3==O&&(F.n||" "==F.val||e==s-1)||4==O&&(F.n||e==s-1))&&(1===I.s.rn&&N.push(E),E+=1);l.a[r].s.totalChars=E;var j=-1,z=void 0;if(1===I.s.rn)for(e=0;e<s;e+=1)j!=(F=p[e]).anIndexes[r]&&(j=F.anIndexes[r],z=N.splice(Math.floor(Math.random()*N.length),1)[0]),F.anIndexes[r]=z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100}},{key:"updateDocumentData",value:function(t,e){e=void 0===e?this.keysIndex:e;var s=this.copyData({},this.data.d.k[e].s);s=this.copyData(s,t),this.data.d.k[e].s=s,this.recalculate(e),this.elem.addDynamicProperty(this)}},{key:"recalculate",value:function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)}},{key:"canResizeFont",value:function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}},{key:"setMinimumFontSize",value:function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}}]),Le=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).global=i.globalData=s,i.textProperty=new Te(i,t.t,i.dynamicProperties),i.textAnimator=new ee(t.t,i.renderType,i),i.textAnimator.searchProperties(i.dynamicProperties),i.updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),Me=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).shapes=new Xt(i,i.data.shapes),i.updateLayerFrame(z,!0),i}return p(e,t),o(e,[{key:"getPrimitives",value:function(){return this.shapes.stylesList}}])}(de),we=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).width=t.sw,i.height=t.sh,i.color=t.sc,i.updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de),be=function(t){function e(t,s){var i;return n(this,e),(i=r(this,e,[t,s])).updateLayerFrame(z,!0),i}return p(e,t),o(e)}(de);const Ce={Linear:{None:t=>t},Ease:{In:function(){const t=new T(.42,0,1,1);return function(e){return t.get(e)}}(),Out:function(){const t=new T(0,0,.58,1);return function(e){return t.get(e)}}(),InOut:function(){const t=new T(.42,0,.58,1);return function(e){return t.get(e)}}(),Bezier(t,e,s,i){const a=new T(t,e,s,i);return function(t){return a.get(t)}}},Elastic:{In:t=>0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI),Out:t=>0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1,InOut:t=>0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1},Back:{In(t){const e=1.70158;return t*t*((e+1)*t-e)},Out(t){const e=1.70158;return--t*t*((e+1)*t+e)+1},InOut(t){const e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:t=>1-Ce.Bounce.Out(1-t),Out:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,InOut:t=>t<.5?.5*Ce.Bounce.In(2*t):.5*Ce.Bounce.Out(2*t-1)+.5}};i.UPDATE_PRIORITY,i.Ticker.shared;const De=t=>t>0?t:0;class Ae extends i.Graphics{constructor(t,e){super(),this.parentCompBox=t,this.config=e,this.setStrokeStyle({width:0})}updateMasks(t){this.clear();for(let r=0;r<t.viewData.length;r++){var e,s,i,a;if("s"===(null===(e=t.viewData[r])||void 0===e||null===(s=e.data)||void 0===s?void 0:s.mode)){const t=this.config.session.local;this.rect(0,0,t.w,t.h),this.fill({color:0})}const n=t.viewData[r].v,h=n.v[0];this.moveTo(h[0],h[1]);const o=n._length;let l=1;for(;l<o;l++){const t=n.o[l-1],e=n.i[l],s=n.v[l];this.bezierCurveTo(De(t[0]),De(t[1]),De(e[0]),De(e[1]),De(s[0]),De(s[1]))}const p=n.o[l-1],u=n.i[0],f=n.v[0];this.bezierCurveTo(De(p[0]),De(p[1]),De(u[0]),De(u[1]),De(f[0]),De(f[1])),"s"===(null===(i=t.viewData[r])||void 0===i||null===(a=i.data)||void 0===a?void 0:a.mode)&&this.cut()}this.fill({color:0})}}class Ie extends i.Container{constructor(t,e){super(),this.label=t.fullname,this.lottieLayer=t,e||(this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie)),this.onRender=()=>{this.updateLottie(this.lottieLayer,!0)}}setTransformHierarchy(t){this.hierarchy=t}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),this.visible=t.isInRange,this._onUpdate()}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}class Fe extends i.Graphics{constructor(t){super(),this.passMatrix=new i.Matrix,this.primitive=t,this._lineStyle={}}setShapeTransform(){const t=this.primitive.preTransforms.finalTransform.props;this.passMatrix.set(t[0],t[1],t[4],t[5],t[12],t[13]),this.setFromMatrix(this.passMatrix)}updateTransform(){this.setShapeTransform(),this._onUpdate()}updateLottiePrimitive(){this.updateTransform();const t=this.primitive,e=t.type;if(this.clear(),("st"===e||"gs"===e)&&0===t.wi||!t.data._shouldRender||0===t.coOp)return;const s=t.elements,i=s.length;for(let t=0;t<i;t+=1){const e=s[t].trNodes,i=e.length;for(let t=0;t<i;t++)"m"==e[t].t?this.moveTo(e[t].p[0],e[t].p[1]):"c"==e[t].t?this.bezierCurveTo(e[t].pts[0],e[t].pts[1],e[t].pts[2],e[t].pts[3],e[t].pts[4],e[t].pts[5]):this.closePath()}"st"!==e&&"gs"!==e||(t.da?(this._lineStyle.lineDash=t.da,this._lineStyle.lineDashOffset=t.do):this._lineStyle.lineDash=[]),"st"===e||"gs"===e?(this._lineStyle.width=t.wi,this._lineStyle.cap=t.lc,this._lineStyle.join=t.lj,this._lineStyle.alpha=t.coOp,this._lineStyle.miterLimit=t.ml||0,this.color=Y.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this._lineStyle.color=this.color,this.setStrokeStyle(this._lineStyle).stroke()):(this.color=Y.rgb2hex(t.co||t.grd),this.alpha=t.coOp,this.fill({color:this.color,alpha:this.alpha}))}}class Oe extends i.Graphics{constructor(t){super(),this.label=t.fullname,this.lottieLayer=t,this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.lottiePrimitives=[],this.shipPrimitives(),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie),this.onRender=()=>{this.updateLottie(this.lottieLayer,!0)}}shipPrimitives(){const t=this.lottieLayer.getPrimitives();this.lottiePrimitives=t.map((t=>{const e=new Fe(t);return this.addChild(e),e}))}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),t.shapes&&this.updateLottiePrimitives(),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}updateLottiePrimitives(){for(let t=0;t<this.lottiePrimitives.length;t++)this.lottiePrimitives[t].updateLottiePrimitive()}}function Ee(t){return Array.apply(null,{length:t})}class Ve extends i.Matrix{reset(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}applyToX(t,e,s=0){return t*this.a+e*this.c+this.tx}applyToY(t,e,s=0){return t*this.b+e*this.d+this.ty}applyToZ(t,e,s=0){return s}applyToXArray(t){return t.map((t=>this.applyToX(t.x,t.y)))}applyToYArray(t){return t.map((t=>this.applyToY(t.x,t.y)))}}class Ne extends i.Graphics{constructor(t){super(),this.label=t.fullname,this.lottieLayer=t,this.lottieLayer.lettersChangedFlag=!0,this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.init(),this.buildNewText(),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie),this.onRender=()=>{this.updateLottie(this.lottieLayer,!0)}}init(){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._fillStyle={},this._values={fill:"#000000",stroke:"#000000",sWidth:0,fValue:""}}buildNewText(){const t=this.lottieLayer.textProperty.currentData;this.renderedLetters=Ee(t.l?t.l.length:0);let e=!1;t.fc?(e=!0,this._values.fill=Y.rgb2hex(t.fc)):this._values.fill="#000000",this._fill=e;let s=!1;t.sc&&(s=!0,this._values.stroke=this.buildColor(t.sc),this._values.sWidth=t.sw);const i=this.lottieLayer.global.fontManager;let a,r,n,h,o,l,p,u,f,c,d,m,v=i.getFontByName(t.f),y=t.l,g=new Ve;this._stroke=s,this._values.fValue=t.finalSize+"px "+i.getFontByName(t.f).fFamily,r=t.finalText.length;let _=this.lottieLayer.data.singleShape,k=.001*t.tr*t.finalSize,x=0,S=0,P=!0,T=0;for(a=0;a<r;a+=1){n=i.getCharData(t.finalText[a],v.fStyle,i.getFontByName(t.f).fFamily),h=n&&n.data||{},g.reset(),_&&y[a].n&&(x=-k,S+=t.yOffset,S+=P?1:0,P=!1),p=h.shapes?h.shapes[0].it:[],f=p.length,g.scale(t.finalSize/100,t.finalSize/100),d=Ee(f-1),window.$commands.push(d);let e=0;for(u=0;u<f;u+=1)if("sh"===p[u].ty){for(l=p[u].ks.k.i.length,c=p[u].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(g.applyToX(c.v[0][0],c.v[0][1],0),g.applyToY(c.v[0][0],c.v[0][1],0)),m.push(g.applyToX(c.o[o-1][0],c.o[o-1][1],0),g.applyToY(c.o[o-1][0],c.o[o-1][1],0),g.applyToX(c.i[o][0],c.i[o][1],0),g.applyToY(c.i[o][0],c.i[o][1],0),g.applyToX(c.v[o][0],c.v[o][1],0),g.applyToY(c.v[o][0],c.v[o][1],0));m.push(g.applyToX(c.o[o-1][0],c.o[o-1][1],0),g.applyToY(c.o[o-1][0],c.o[o-1][1],0),g.applyToX(c.i[0][0],c.i[0][1],0),g.applyToY(c.i[0][0],c.i[0][1],0),g.applyToX(c.v[0][0],c.v[0][1],0),g.applyToY(c.v[0][0],c.v[0][1],0)),d[e]=m,e+=1}_&&(x+=y[a].l,x+=k),this._textSpans[T]?this._textSpans[T].elem=d:this._textSpans[T]={elem:d},T+=1}this.renderText()}renderText(){let t,e,s,a,r,n;this.lottieLayer.textAnimator.getMeasures(this.lottieLayer.textProperty.currentData,this.lottieLayer.lettersChangedFlag);let h=this.lottieLayer.textAnimator.renderedLetters,o=this.lottieLayer.textProperty.currentData.l;var l;e=o.length;var p,u,f=null,c=null,d=null;for(this.clear(),t=0;t<e;t+=1)if(!o[t].n){if(l=h[t]){this.save();const t=l.p,e=new i.Matrix(t[0],t[1],t[4],t[5],t[12],t[13]);this.setTransform(e)}if(this._fill)for(this._fillStyle.alpha=1,l&&l.fc?f!==l.fc&&(f=Y.rgb2hex(l.fc),this._fillStyle.color=Y.rgb2hex(l.fc)):f!==this._values.fill?(f=this._values.fill,this._fillStyle.color=this._values.fill):this._fillStyle.color=this._values.fill,a=(p=this._textSpans[t].elem).length,this.beginPath(),s=0;s<a;s+=1){for(n=(u=p[s]).length,this.moveTo(u[0],u[1]),r=2;r<n;r+=6)this.bezierCurveTo(u[r],u[r+1],u[r+2],u[r+3],u[r+4],u[r+5]);this.closePath(),this.setFillStyle(this._fillStyle);const t={x:u[0],y:u[1]},e=this.getTransform();this.containsPoint(e.apply(t))?this.cut():(this.stroke({alpha:0}),this.fill())}if(this._stroke){for(this.strokeStyle.alpha=1,l&&l.sw?d!==l.sw&&(d=l.sw,this.strokeStyle.pixelLine=l.sw):d!==this._values.sWidth&&(d=this._values.sWidth,this.strokeStyle.pixelLine=this._values.sWidth),l&&l.sc?c!==l.sc&&(c=l.sc,this.strokeStyle.color=l.sc):c!==this._values.stroke&&(c=this._values.stroke,this.strokeStyle.color=this._values.stroke),a=(p=this._textSpans[t].elem).length,this.beginPath(),s=0;s<a;s+=1)for(n=(u=p[s]).length,this.moveTo(u[0],u[1]),r=2;r<n;r+=6)this.bezierCurveTo(u[r],u[r+1],u[r+2],u[r+3],u[r+4],u[r+5]);this.closePath(),this.stroke()}l&&this.restore()}}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),t._mdf&&this.renderText(),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}class je extends i.Graphics{constructor(t){super(),this.label=t.fullname,this.lottieLayer=t;const e=parseInt(this.lottieLayer.color.replace("#",""),16);this.rect(0,0,this.lottieLayer.width,this.lottieLayer.height).fill(e),this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie)}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}class ze extends i.Sprite{constructor(t,e){const{texture:s}=e;super(),this.label=t.fullname,s.then((t=>{this.texture=t})).catch((t=>{console.error(t)})),this.lottieLayer=t,this.lottieLayer.masks&&(this.mask=new Ae(this.lottieLayer.session.local,this.lottieLayer),this.addChild(this.mask)),this.updateLottie=this.updateLottie.bind(this),this.updateLottie(this.lottieLayer,!0),this.lottieLayer.on("updatelayer",this.updateLottie)}updateLottie(t,e=!1){t.transform&&this.updateLottieTransform(t.transform),t.masks&&this.updateLottieMasks(t.masks),this.visible=t.isInRange,this._onUpdate()}setTransformHierarchy(t){this.hierarchy=t}updateLottieTransform(t){t.p?(this.x=t.p.v[0],this.y=t.p.v[1]):(this.x=t.px.v,this.y=t.py.v),this.pivot.x=t.a.v[0],this.pivot.y=t.a.v[1],this.scale.x=t.s.v[0],this.scale.y=t.s.v[1],t.r?this.rotation=t.r.v+t.orientation:t.rz&&(this.rotation=t.rz.v+t.or.v[2]),this.alpha=t.o.v}updateLottieMasks(t){this.mask.updateMasks(t)}}const qe=/^(https?:)?\/\//;const Re={resourceOptions:{crossorigin:"*"}};class Be extends Yt{constructor(t,{prefix:e,autoLoad:s=!0,textureOptions:i=Re}){super(),this.assets=t,this.prefix=e||"",this.textures={},this._total=0,this._failed=0,this._received=0,this.loaded=!1,this.textureOptions=i,s&&this.load()}load(){this.assets.forEach((t=>{const e=t.id,s=function(t,e){if(1===t.e)return t.p;e&&(e=e.replace(/\/?$/,"/"));const s=t.u+t.p;let i="";return i=t.up?t.up:qe.test(s)?s:e+s,i}(t,this.prefix),a=i.Assets.load(s);this.textures[e]=a,this._total++,a.then((()=>{this._received++,this.emit("update"),this._received+this._failed>=this._total&&this._onComplete()})).catch((t=>{this._failed++,this.emit("update"),this._received+this._failed>=this._total&&this._onComplete()}))}))}_onComplete(){this.loaded=!0,this.emit("complete"),this._failed>0&&(this._failed>=this._total?this.emit("fail"):this.emit("partlyfail",this._failed))}getTextureById(t){return this.textures[t]}}function Xe(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}class Ye extends Yt{constructor(t){super(),this.path=t,this.onSuccess=this.onSuccess.bind(this),this.onFail=this.onFail.bind(this),function(t,e,s){let i,a=new XMLHttpRequest;a.open("GET",t,!0);try{a.responseType="json"}catch(t){console.error("lottie-pixi loadAjax:",t)}a.send(),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status)i=Xe(a),e(i);else try{i=Xe(a),e(i)}catch(t){s&&s(t)}}}(t,this.onSuccess,this.onFail)}onSuccess(t){this.emit("success",t),this.emit("complete",t)}onFail(t){this.emit("fail",t),this.emit("error",t)}}class We extends Yt{constructor(t){if(super(),this.living=!0,this.infinite=t.infinite||!1,this.repeats=t.repeats||0,this.alternate=t.alternate||!1,this.wait=t.wait||0,this.delay=t.delay||0,this.overlapMode=t.overlapMode||!1,this.timeScale=Y.isNumber(t.timeScale)?t.timeScale:1,this.frameNum=0,this.isPaused=!0,this.direction=1,this._lastFrame=-1/0,this._repeatsCut=this.repeats,this._delayCut=this.delay,this._waitCut=this.wait,this.segments=t.segments||{},this._segmentName=t.initSegment||"",this._prefix=t.prefix||"",this._autoLoad=!Y.isBoolean(t.autoLoad)||t.autoLoad,this._autoStart=!Y.isBoolean(t.autoStart)||t.autoStart,this._enable3D=!Y.isBoolean(t.enable3D)||t.enable3D,this._depthTest=!Y.isBoolean(t.depthTest)||t.depthTest,this._justDisplayOnImagesLoaded=!Y.isBoolean(t.justDisplayOnImagesLoaded)||t.justDisplayOnImagesLoaded,this._maskComp=t.maskComp||!1,this.textureLoader=null,this.jsonLoader=null,this.root=null,this.camera=null,this.parent=null,this.group=new i.Container,this.display=null,this.isDisplayLoaded=!1,this.isImagesLoaded=!1,this._copyJSON=t.copyJSON||!1,t.keyframes&&Y.isString(t.keyframes)&&(t.path=t.keyframes,t.keyframes=null),t.keyframes)!this._prefix&&t.keyframes.prefix&&(this._prefix=t.keyframes.prefix),this._setupDate(t.keyframes);else if(t.path){let s="";s=-1!==t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):t.path.substr(0,t.path.lastIndexOf("/")+1),!this._prefix&&s&&(this._prefix=s),this.jsonLoader=(e=t.path,new Ye(e)),this.jsonLoader.once("success",(t=>{this._setupDate(t)})),this.jsonLoader.once("error",(t=>{this.emit("error",t)}))}var e}_setupDate(t){this._sourceData=t,this._copyJSON&&(t=Y.copyJSON(t)),ce.completeData(t),this.keyframes=t;const{w:e,h:s,st:i=0,fr:a,ip:r,op:n,assets:h}=t;this.frameRate=a,this.frameMult=a/1e3,this._defaultSegment=[r,n];const o=this._segmentName&&this.segments[this._segmentName]||this._defaultSegment;this.beginFrame=o[0],this.endFrame=o[1],this._timePerFrame=1e3/a,this.duration=Math.floor(this.endFrame-this.beginFrame),this.assets=h;let l=null;const p=h.filter((t=>t.u||t.p||t.e));p.length>0?(this.textureLoader=l=function(t,e={}){return new Be(t,e)}(p,{prefix:this._prefix,autoLoad:this._autoLoad}),l.loaded?(this.isImagesLoaded=!0,this.isPaused=!this._autoStart,this.emit("ImageReady")):(l.once("complete",(()=>{this.isImagesLoaded=!0,this.emit("ImageReady")})),null!==this._pausedNeedSet&&(this._pausedNeedSet=!0,l.once("complete",(()=>{this._pausedNeedSet&&(this._pausedNeedSet=!1,this.isPaused=!this._autoStart)}))))):(this.isImagesLoaded=!0,this.isPaused=!this._autoStart);const u={global:{w:e,h:s,frameRate:a,maskComp:this._maskComp,overlapMode:this.overlapMode},fontManager:new Pe,local:{w:e,h:s,ip:r,op:n,st:i}};u.fontManager.addChars(t.chars),this._buildElements(u),null!==this.textureLoader&&this._justDisplayOnImagesLoaded&&!this.textureLoader.loaded&&null!==this._justDisplayNeedSet&&(this.group.visible=!1,this._justDisplayNeedSet=!0,this.textureLoader.once("complete",(()=>{this._justDisplayNeedSet&&(this._justDisplayNeedSet=!1,this.group.visible=!0)}))),this.isDisplayLoaded=!0,this.update(0,!0)}_buildElements(t){this.root=this._extraComp(this.keyframes,t,!0),this.display=this.root.display,this.group.addChild(this.display),this._prepareChildComp(this.root,t),this.emit("DOMLoaded").emit("DisplayReady"),null===this.textureLoader||this.textureLoader.loaded?this.emit("success"):this.textureLoader.once("complete",(()=>this.emit("success")))}_buildLottieTree(t,e,s){const i={};for(let t=e.length-1;t>=0;t--){const a=e[t];let r=null;switch(a.ty){case 0:r=this._extraComp(a,s);break;case 1:r=this._extraSolid(a,s);break;case 2:r=this._extraSprite(a,s);break;case 3:r=this._extraNull(a,s);break;case 4:r=this._extraShape(a,s);break;case 5:r=this._extraText(a,s);break;case 13:r=this._extraCamera(a,s)}r&&(void 0===a.ind&&(a.ind=t),i[a.ind]=r)}const{local:a}=s;let r=null;a.has3D&&(a.currentCamera||a.closedCamera||(r=this._extraCamera(null,s)),a.closedCamera=!0);let n=null;for(let s=e.length-1;s>=0;s--){const r=e[s],h=i[r.ind];if(h){if(!Y.isUndefined(r.parent)){const t=i[r.parent];(h.is3D||!h.is3D&&!t.is3D)&&(h.setTransformHierarchy(t),h.display.setTransformHierarchy(t.display))}1!==r.td||null===n||n.display.mask||(n.display.mask=h.display),n=1===r.tt?h:null,t.addChild(h),a.currentCamera&&h.is3D?(a.currentPerspective.hadShipped||this._shipPerspectiveLayer(t,a.currentPerspective),a.currentPerspective.addChild(h.display)):h.display&&t.display.addChild(h.display)}}r&&t.addChild(r);const h=s.local.childCompsArray;for(let t=0;t<h.length;t++){const e=h[t];this._prepareChildComp(e,s)}return i}_shipPerspectiveLayer(t,e){t.display.addChild(e),e.hadShipped=!0}_prepareChildComp(t,e){const{layers:s,w:i,h:a,ip:r,op:n,st:h=0}=t.data,o=_objectSpread(_objectSpread({},e),{},{global:e.global,local:{w:i,h:a,ip:r,op:n,st:h,childCompsArray:[],currentCamera:null,closedCamera:e.local.closedCamera||!1,currentPerspective:null}});this._buildLottieTree(t,s,o)}_extraComp(t,e,s=!1){const i=new ye(t,e);return s&&(i.is3D=!1),i.is3D&&this._enable3D?e.local.has3D=!0:i.display=new Ie(i,s),s||e.local.childCompsArray.push(i),i}_extraSolid(t,e){const s=new we(t,e);return s.display=new je(s),s}_extraSprite(t,e){const s=Y.getAssets(t.refId,this.assets),i=this.textureLoader.getTextureById(s.id),a=new be(t,e);return a.is3D&&this._enable3D?e.local.has3D=!0:a.display=new ze(a,{asset:s,texture:i}),a}_extraNull(t,e){const s=new ge(t,e);return s.display=new Ie(s),s}_extraShape(t,e){const s=new Me(t,e);return s.is3D&&this._enable3D||(s.display=new Oe(s)),s}_extraText(t,e){t.global=e;const s=new Le(t,e);return s.display=new Ne(s),s}_extraCamera(t,e){if(e.local.closedCamera||!this._enable3D)return;let s=null;return s=t?new me(t,e):new ve(t,e),e.local.currentCamera=s,s}getDisplayByQuerySelector(t){const e=this.querySelector(t);return e&&e.display?e.display:(console.warn("can not find display which query with ",t),null)}_queryMatch(t,e,s){const i=t.substr(0,1),a=t.substr(1,t.length);let r=!1;return r="#"===i?e.idname===a:"."===i?-1!==e.classnames.indexOf(a):e.fullname===t,r&&s.push(e),r}_searchNodes(t,e,s,i=!1){if(e.childLayers&&e.childLayers.length>0){const a=[];for(let r=0;r<e.childLayers.length;r++){const n=e.childLayers[r];if(this._queryMatch(t,n,s)&&i)return!0;n.childLayers&&n.childLayers.length>0&&a.push(n)}for(let e=0;e<a.length;e++)if(this._searchNodes(t,a[e],s,i))return!0}return!1}querySelector(t){const e=[];return this._queryMatch(t,this.root,e)?e[0]:(this._searchNodes(t,this.root,e,!0),e[0]||null)}querySelectorAll(t){const e=[],s="#"===t.substr(0,1);return this._queryMatch(t,this.root,e)&&s||this._searchNodes(t,this.root,e,s),e}bindSlot(t,e){return this.getDisplayByQuerySelector(t).addChild(e),this}unbindSlot(t,e){return this.getDisplayByQuerySelector(t).removeChild(e),this}bindInteractiveEventByQuerySelector(t,e,s){const i=this.getDisplayByQuerySelector(t);return i&&(i.interactive=!0,i.on(e,s)),this}unbindInteractiveEventByQuerySelector(t,e,s){const i=this.getDisplayByQuerySelector(t);return i&&i.off(e,s),this}replaceImageByQuerySelector(t,e=i.Texture.EMPTY){const s=this.getDisplayByQuerySelector(t);if(s&&s.isSprite){const t="string"==typeof e?i.Texture.from(e,{resourceOptions:{crossorigin:"*"}}):e;s.texture=t}return this}replaceImageByQuerySelectorAll(t,e=[i.Texture.EMPTY]){const s=this.querySelectorAll(t),a=Y.isArray(e);return s.forEach(((t,s)=>{const r=t.display;if(r&&r.isSprite){const t=a?e[s]:e,n="string"==typeof t?i.Texture.from(t,{resourceOptions:{crossorigin:"*"}}):t;r.texture=n}})),this}_emitFrame(t){this.emit(`@${t}`)}update(t,e=!1){if(!this.living||!this.isDisplayLoaded||this.isPaused&&!e)return;const s=this._updateTime(t),i=this.beginFrame+this.frameNum;this.root.updateFrame(i);const a=i|0;this._lastFrame!==a&&(this._emitFrame(this.direction>0?a:this._lastFrame),this._lastFrame=a),!1===s?(this.emit("enterFrame",i),this.emit("update",this.frameNum/this.duration)):this.hadEnded!==s&&!0===s&&this.emit("complete"),this.hadEnded=s}_updateTime(t){const e=this.direction*this.timeScale*t;if(this._waitCut>0)return this._waitCut-=Math.abs(e),null;if(this.isPaused||this._delayCut>0)return this._delayCut>0&&(this._delayCut-=Math.abs(e)),null;this.frameNum+=e/this._timePerFrame;let s=!1;return this._spill()&&(this._repeatsCut>0||this.infinite?(this._repeatsCut>0&&--this._repeatsCut,this._delayCut=this.delay,this.alternate?(this.direction*=-1,this.frameNum=Y.codomainBounce(this.frameNum,0,this.duration)):(this.direction=1,this.frameNum=Y.euclideanModulo(this.frameNum,this.duration)),this.emit("loopComplete")):(this.overlapMode||(this.frameNum=Y.clamp(this.frameNum,0,this.duration),this.living=!1),s=!0)),s}_spill(){const t=this.frameNum<=0&&-1===this.direction,e=this.frameNum>=this.duration&&1===this.direction;return t||e}frameToTime(t){return t*this._timePerFrame}setSpeed(t){return this.timeScale=t,this}playSegment(t,e={}){if(!t)return;let s=null;return Y.isArray(t)?s=t:Y.isString(t)&&(s=this.segments[t],Y.isArray(s)&&(this._segmentName=t)),Y.isArray(s)?(this.beginFrame=Y.isNumber(s[0])?s[0]:this._defaultSegment[0],this.endFrame=Y.isNumber(s[1])?s[1]:this._defaultSegment[1],Y.isNumber(e.repeats)&&(this.repeats=e.repeats),Y.isBoolean(e.infinite)&&(this.infinite=e.infinite),Y.isBoolean(e.alternate)&&(this.alternate=e.alternate),Y.isNumber(e.wait)&&(this.wait=e.wait),Y.isNumber(e.delay)&&(this.delay=e.delay),this.replay(),this):void 0}goToAndStop(t,e=!1){return this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.pause(),this}goToAndPlay(t,e=!1){return this.frameNum=e?t:t*this.frameMult,this.update(0,!0),this.resume(),this}getDuration(t){const e=this.endFrame-this.beginFrame;return t?e:e/this.frameRate}setDirection(t){return this.direction=t<0?-1:1,this}pause(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!0,this}resume(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this}play(){return this.resume()}replay(){return this._pausedNeedSet?this._pausedNeedSet=!1:this._pausedNeedSet=null,this.isPaused=!1,this._repeatsCut=this.repeats,this._delayCut=this.delay,this.living=!0,this.frameNum=0,this.duration=Math.floor(this.endFrame-this.beginFrame),this.direction=1,this}show(){return this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!0,this}hide(){return this._justDisplayNeedSet?this._justDisplayNeedSet=!1:this._justDisplayNeedSet=null,this.group.visible=!1,this}destroy(){this.parent&&this.parent.remove(this),this.group.parent&&this.group.parent.removeChild(this.group),this.pause(),this.root=null,this.group=null,this.display=null,this.textureLoader&&(this.textureLoader.off("complete"),this.textureLoader=null),this.jsonLoader&&(this.jsonLoader.off("success"),this.jsonLoader=null),this.keyframes=null,this.living=!1}}class He extends Yt{constructor(t){super(),this._lastTime=0,this._snippet=0,this.timeScale=1,this.isPaused=!1,this.app=t,this.ticker=t.ticker?t.ticker:t,this.groups=[],this.update=this.update.bind(this),this.ticker&&this.start()}isWebGLMode(){return!0}add(t){const e=arguments.length;if(e>1)for(let t=0;t<e;t++)this.add(arguments[t]);else null!==t.parent&&t.parent.remove(t),t.parent=this,this.groups.push(t);return t}remove(t){if(arguments.length>1)for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);const e=this.groups.indexOf(t);-1!==e&&(t.parent=null,this.groups.splice(e,1))}parseAnimation(t){t.enable3D=!1;const e=new We(t);return this.add(e)}setSpeed(t){this.timeScale=t}start(){return this._lastTime=Date.now(),this.ticker.add(this.update),this}stop(){return this.ticker.remove(this.update),this}pause(){return this.isPaused=!0,this}resume(){return this.isPaused=!1,this}update(){if(this.timeline(),this.isPaused)return;const t=this.timeScale*this._snippet,e=this.groups.length;for(let s=0;s<e;s++){this.groups[s].update(t)}this.emit("update",this._snippet)}timeline(){let t=Date.now()-this._lastTime;(!this._lastTime||t>200)&&(this._lastTime=Date.now(),t=Date.now()-this._lastTime),this._lastTime+=t,this._snippet=t}destroy(){for(let t=this.groups.length-1;t>=0;t--)this.groups[t].destroy()}}var Ue=Number.isFinite||function(t){return!("number"!=typeof t||t!=t||t===1/0||t===-1/0)},Ge=Number.isInteger||function(t){return"number"==typeof t&&Ue(t)&&Math.floor(t)===t},Ke=/^-?\d+$/,Je=function(t){return"number"==typeof t?Ge(t)?t:void 0:"string"==typeof t&&Ke.test(t)?parseInt(t,10):void 0},Qe=/OS (\d\d?_\d(_\d)?)/,Ze=function(t){if(!t)return null;var e=Qe.exec(t);if(!e)return null;var s=e[1].split("_").map(Je);return{major:s[0],minor:s[1],patch:s[2]||0}};const{major:$e}=Ze(globalThis.navigator.userAgent)||{};function ts(t){if(window.URL=window.URL||window.webkitURL,window.URL&&URL.createObjectURL){const e=function(t){let e=atob(t.split(",")[1]),s=new ArrayBuffer(e.length),i=new Uint8Array(s),a=t.split(",")[0].match(/:(.*?);/)[1];for(let t=0,s=e.length;t<s;t++)i[t]=e.charCodeAt(t);let r,n=[i];try{r=new Blob(n,{type:a})}catch(t){console.log(t)}return r}(t);return URL.createObjectURL(e)}return t}let es=class extends s.Renderer{constructor(){super(...arguments),this.managerLife=["DisplayReady","ImageReady","success","error","complete","loopComplete","enterFrame","update"]}init(){this.renderSystem=this.game.getSystem("Renderer"),this.app=this.renderSystem.application}componentChanged(t){return a(this,void 0,void 0,(function*(){"Lottie"===t.componentName&&(t.type===e.OBSERVER_TYPE.ADD?this.add(t):t.type===e.OBSERVER_TYPE.REMOVE&&this.remove(t))}))}add(t){return a(this,void 0,void 0,(function*(){this.manager=new He(this.app);const s=t.component,i=this.renderSystem.containerManager.getContainer(t.gameObject.id);if(!i)return;const a=s.options,{resource:r}=a,n=function(t,e){var s={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(s[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(t);a<i.length;a++)e.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(t,i[a])&&(s[i[a]]=t[i[a]])}return s}(a,["resource"]),h=yield e.resource.getResource(r),o=h.data,l=h.src.json.url,p=_extends({},o.json||{});(p.assets||[]).forEach((t=>{var e;t.p&&(t.p=(e=t.p,$e<=8&&/^data:image\/png;base64/.test(e)?ts(e):e))}));const u=this.manager.parseAnimation(_extends({keyframes:p,prefix:this.getDir(l)},n));s.anim=u,i.addChildAt(u.group,0),this.managerLife.forEach((t=>{u.on(t,(e=>s.emit(t,e)))})),u.isImagesLoaded&&s.emit("success",{})}))}getDir(t){return new URL("./",t).href}remove(t){const e=t.component,s=this.renderSystem.containerManager.getContainer(t.gameObject.id);s&&(s.removeChild(e.anim.group),e.anim.destroy()),e.anim=null}};es.systemName="LottieSystem",es=function(t,e,s,i){var a,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(e,s,n):a(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n}([e.decorators.componentObserver({Lottie:[]})],es);var ss=es;class is extends e.Component{constructor(t){super(),this.loadStatus=!1,this.firstPlay=null,this.prevSlot={},this.currentSlot={},this.options=_extends({autoStart:!1},t),this.on("success",(()=>{this.loadStatus=!0;const{ip:t,op:e}=this.anim.keyframes;for(let s=t;s<=e;s++){const t=`@${s}`;this.anim.on(t,(e=>this.emit(t,e)))}this.firstPlay&&this.firstPlay()}))}play(t=[],e={repeats:0}){if(!this.loadStatus)return void(this.firstPlay=()=>{this.play(t,e)});const{slot:s=[]}=e;s.forEach((({name:t,type:e,value:s,style:a={}})=>{const{x:r,y:n,anchor:h={x:0,y:0},pivot:o={x:0,y:0},width:l,height:p}=a;"IMAGE"===e?this.currentSlot[t]=i.Sprite.from(s):"TEXT"===e&&(this.currentSlot[t]=new i.Text({text:s,style:new i.TextStyle(a)})),r&&(this.currentSlot[t].x=r),n&&(this.currentSlot[t].y=n),l&&(this.currentSlot[t].width=l),p&&(this.currentSlot[t].height=p),this.currentSlot[t].anchor.set(h.x||0,h.y||0),this.currentSlot[t].pivot.set(this.currentSlot[t].width*(o.x||0),this.currentSlot[t].height*(o.y||0)),this.prevSlot[t]&&this.anim.unbindSlot(t,this.prevSlot[t]),this.anim.bindSlot(t,this.currentSlot[t]),this.prevSlot[t]=this.currentSlot[t]})),this.anim.playSegment(this.playParamsHandle(t),e)}playParamsHandle(t){let e=[].concat(t);const{keyframes:s}=this.anim;return!e.length||e.length>2?e=[s.ip,s.op]:1===e.length&&(e=[e[0]%s.op,s.op]),e}onTap(t,e){const s=new i.Graphics;this.on("success",(()=>{const i=this.anim.querySelector(t),a=i.display;s.rect(0,0,100,100).fill(16777215),s.alpha=0,a.addChild(s),i.display.interactive=!0,i.display.on("pointertap",(()=>{e()}))}))}}return is.componentName="Lottie",e.resource.registerResourceType("LOTTIE"),t.Lottie=is,t.LottieSystem=ss,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA,EVA.plugin.renderer,PIXI);globalThis.EVA.plugin.renderer.lottie=globalThis.EVA.plugin.renderer.lottie||_EVA_IIFE_lottie;
|