@manycore/custom-sdk 1.0.0-latest.0

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.
package/1.index.js ADDED
@@ -0,0 +1,10 @@
1
+ (window.webpackJsonpapp=window.webpackJsonpapp||[]).push([[1],{3143:function(t,e,s){var i,a;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}a=window||{},void 0===(i=function(){return function(t){var e,s,i="http://www.w3.org/2000/svg",a="",n=!0,h=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=(Math.round,Math.pow),l=Math.sqrt,p=(Math.abs,Math.floor),f=(Math.max,Math.min),m={};(function(){var t,e=Object.getOwnPropertyNames(Math),s=e.length;for(t=0;t<s;t+=1)m[e[t]]=Math[e[t]]})(),m.random=Math.random,m.abs=function(t){if("object"===r(t)&&t.length){var e,s=Array.apply(null,{length:t.length}),i=t.length;for(e=0;e<i;e+=1)s[e]=Math.abs(t[e]);return s}return Math.abs(t)};var d=150,c=Math.PI/180;function u(t){s=t?Math.round:function(t){return t}}function g(t){return Math.round(1e4*t)/1e4}function y(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=i<0?-1:1}function v(t,e){this.type=t,this.direction=e<0?-1:1}function b(t,e,s,i){this.type=t,this.currentLoop=e,this.totalLoops=s,this.direction=i<0?-1:1}function k(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}function A(t,e){this.type=t,this.target=e}function P(t,e){var s;void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var i="";for(s=t;s>0;--s)i+=e[Math.round(Math.random()*(e.length-1))];return i}function E(t,e,s){var i,a,r,n,h,o,l,p;switch(1===arguments.length&&(e=t.s,s=t.v,t=t.h),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 M(t,e,s){1===arguments.length&&(e=t.g,s=t.b,t=t.r);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 _(t,e){var s=M(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),E(s[0],s[1],s[2])}function S(t,e){var s=M(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),E(s[0],s[1],s[2])}function F(t,e){var s=M(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),E(s[0],s[1],s[2])}u(!1);var w=function(){var t,e,s=[];for(t=0;t<256;t+=1)e=t.toString(16),s[t]=1==e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+s[t]+s[e]+s[i]}}();
2
+ /*!
3
+ Transformation Matrix v2.0
4
+ (c) Epistemex 2014-2015
5
+ www.epistemex.com
6
+ By Ken Fyrstenberg
7
+ Contributions by leeoniya.
8
+ License: MIT, header required.
9
+ */
10
+ var x=function(){function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){if(0===t)return this;var e=Math.cos(t),s=Math.sin(t);return this._t(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1)}function i(t){if(0===t)return this;var e=Math.cos(t),s=Math.sin(t);return this._t(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1)}function a(t){if(0===t)return this;var e=Math.cos(t),s=Math.sin(t);return this._t(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1)}function r(t){if(0===t)return this;var e=Math.cos(t),s=Math.sin(t);return this._t(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1)}function n(t,e){return this._t(1,e,t,1,0,0)}function o(t,e){return this.shear(Math.tan(t),Math.tan(e))}function l(t,e){var s=Math.cos(e),i=Math.sin(e);return this._t(s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1)._t(s,-i,0,0,i,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e,s){return s=isNaN(s)?1:s,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 f(t,e,s,i,a,r,n,h,o,l,p,f,m,d,c,u){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]=f,this.props[12]=m,this.props[13]=d,this.props[14]=c,this.props[15]=u,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 d(t,e,s,i,a,r,n,h,o,l,p,f,m,d,c,u){if(1===t&&0===e&&0===s&&0===i&&0===a&&1===r&&0===n&&0===h&&0===o&&0===l&&1===p&&0===f)return 0===m&&0===d&&0===c||(this.props[12]=this.props[12]*t+this.props[13]*a+this.props[14]*o+this.props[15]*m,this.props[13]=this.props[12]*e+this.props[13]*r+this.props[14]*l+this.props[15]*d,this.props[14]=this.props[12]*s+this.props[13]*n+this.props[14]*p+this.props[15]*c,this.props[15]=this.props[12]*i+this.props[13]*h+this.props[14]*f+this.props[15]*u),this._identityCalculated=!1,this;var g=this.props[0],y=this.props[1],v=this.props[2],b=this.props[3],k=this.props[4],A=this.props[5],P=this.props[6],E=this.props[7],M=this.props[8],_=this.props[9],S=this.props[10],F=this.props[11],w=this.props[12],x=this.props[13],D=this.props[14],C=this.props[15];return this.props[0]=g*t+y*a+v*o+b*m,this.props[1]=g*e+y*r+v*l+b*d,this.props[2]=g*s+y*n+v*p+b*c,this.props[3]=g*i+y*h+v*f+b*u,this.props[4]=k*t+A*a+P*o+E*m,this.props[5]=k*e+A*r+P*l+E*d,this.props[6]=k*s+A*n+P*p+E*c,this.props[7]=k*i+A*h+P*f+E*u,this.props[8]=M*t+_*a+S*o+F*m,this.props[9]=M*e+_*r+S*l+F*d,this.props[10]=M*s+_*n+S*p+F*c,this.props[11]=M*i+_*h+S*f+F*u,this.props[12]=w*t+x*a+D*o+C*m,this.props[13]=w*e+x*r+D*l+C*d,this.props[14]=w*s+x*n+D*p+C*c,this.props[15]=w*i+x*h+D*f+C*u,this._identityCalculated=!1,this}function c(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function u(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function y(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function v(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 b(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}function k(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}function A(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}function P(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 E(t){var e,s=t.length,i=[];for(e=0;e<s;e+=1)i[e]=P(t[e]);return i}function M(t,e,s,i){if(i&&2===i){var a=tt.newPoint();return a[0]=t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],a[1]=t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],a}return[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 _(t,e){return this.isIdentity()?t+","+e:s(t*this.props[0]+e*this.props[4]+this.props[12])+","+s(t*this.props[1]+e*this.props[5]+this.props[13])}function S(){return[this.props[0],this.props[1],this.props[2],this.props[3],this.props[4],this.props[5],this.props[6],this.props[7],this.props[8],this.props[9],this.props[10],this.props[11],this.props[12],this.props[13],this.props[14],this.props[15]]}function F(){return h?"matrix3d("+g(this.props[0])+","+g(this.props[1])+","+g(this.props[2])+","+g(this.props[3])+","+g(this.props[4])+","+g(this.props[5])+","+g(this.props[6])+","+g(this.props[7])+","+g(this.props[8])+","+g(this.props[9])+","+g(this.props[10])+","+g(this.props[11])+","+g(this.props[12])+","+g(this.props[13])+","+g(this.props[14])+","+g(this.props[15])+")":(this.cssParts[1]=this.props.join(","),this.cssParts.join(""))}function w(){return"matrix("+g(this.props[0])+","+g(this.props[1])+","+g(this.props[4])+","+g(this.props[5])+","+g(this.props[12])+","+g(this.props[13])+")"}function x(){return""+this.toArray()}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=a,this.rotateZ=r,this.skew=o,this.skewFromAxis=l,this.shear=n,this.scale=p,this.setTransform=f,this.translate=m,this.transform=d,this.applyToPoint=v,this.applyToX=b,this.applyToY=k,this.applyToZ=A,this.applyToPointArray=M,this.applyToPointStringified=_,this.toArray=S,this.toCSS=F,this.to2dCSS=w,this.toString=x,this.clone=u,this.cloneFromProps=y,this.inversePoints=E,this.inversePoint=P,this._t=this.transform,this.isIdentity=c,this._identity=!0,this._identityCalculated=!1,this.props=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.cssParts=["matrix3d(","",")"]}}();function x(){}!function(t,e){var s=this,i=e.pow(256,6),a=e.pow(2,52),n=2*a;function h(t){var e,s=t.length,i=this,a=0,r=i.i=i.j=0,n=i.S=[];for(s||(t=[s++]);a<256;)n[a]=a++;for(a=0;a<256;a++)n[a]=n[r=255&r+t[a%s]+(e=n[a])],n[r]=e;(i.g=function(t){for(var e,s=0,a=i.i,r=i.j,n=i.S;t--;)e=n[a=255&a+1],s=256*s+n[255&(n[a]=n[r=255&r+e])+(n[r]=e)];return i.i=a,i.j=r,s})(256)}function o(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function l(t,e){for(var s,i=t+"",a=0;a<i.length;)e[255&a]=255&(s^=19*e[255&a])+i.charCodeAt(a++);return p(e)}function p(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(f,m,d){var c=[],u=l(function t(e,s){var i,a=[],n=r(e);if(s&&"object"==n)for(i in e)try{a.push(t(e[i],s-1))}catch(t){}return a.length?a:"string"==n?e:e+"\0"}((m=1==m?{entropy:!0}:m||{}).entropy?[f,p(t)]:null==f?function(){try{var e=new Uint8Array(256);return(s.crypto||s.msCrypto).getRandomValues(e),p(e)}catch(e){var i=s.navigator,a=i&&i.plugins;return[+new Date,s,a,s.screen,p(t)]}}():f,3),c),g=new h(c),y=function(){for(var t=g.g(6),e=i,s=0;t<a;)t=256*(t+s),e*=256,s=g.g(1);for(;t>=n;)t/=2,e/=2,s>>>=1;return(t+s)/e};return y.int32=function(){return 0|g.g(4)},y.quick=function(){return g.g(4)/4294967296},y.double=y,l(p(g.S),t),(m.pass||d||function(t,s,i,a){return a&&(a.S&&o(a,g),t.state=function(){return o(g,{})}),i?(e.random=t,s):t})(y,u,"global"in m?m.global:this==e,m.state)},l(e.random(),t)}([],m);var D=function(){var t={getBezierEasing:function(t,s,i,a,r){var n=r||("bez_"+t+"_"+s+"_"+i+"_"+a).replace(/\./g,"p");if(e[n])return e[n];var h=new o([t,s,i,a]);return e[n]=h,h}},e={},s="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function r(t){return 3*t}function n(t,e,s){return((i(e,s)*t+a(e,s))*t+r(e))*t}function h(t,e,s){return 3*i(e,s)*t*t+2*a(e,s)*t+r(e)}function o(t){this._p=t,this._mSampleValues=s?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return o.prototype={get:function(t){var e=this._p[0],s=this._p[1],i=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),e===s&&i===a?t:0===t?0:1===t?1:n(this._getTForX(t),s,a)},_precompute:function(){var t=this._p[0],e=this._p[1],s=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&s===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],s=0;s<11;++s)this._mSampleValues[s]=n(.1*s,t,e)},_getTForX:function(t){for(var e=this._p[0],s=this._p[2],i=this._mSampleValues,a=0,r=1;10!==r&&i[r]<=t;++r)a+=.1;var o=a+(t-i[--r])/(i[r+1]-i[r])*.1,l=h(o,e,s);return l>=.001?function(t,e,s,i){for(var a=0;a<4;++a){var r=h(e,s,i);if(0===r)return e;e-=(n(e,s,i)-t)/r}return e}(t,o,e,s):0===l?o:function(t,e,s,i,a){var r,h,o=0;do{(r=n(h=e+(s-e)/2,i,a)-t)>0?s=h:e=h}while(Math.abs(r)>1e-7&&++o<10);return h}(t,a,a+.1,e,s)}},t}();function C(t,e,s){if(!e){var i=Object.create(t.prototype,s);return i&&"[object Function]"==={}.toString.call(i.init)&&i.init(),i}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype._parent=t.prototype}function I(t,e){for(var s in t.prototype)t.prototype.hasOwnProperty(s)&&(e.prototype[s]=t.prototype[s])}!function(){for(var e=0,s=["ms","moz","webkit","o"],i=0;i<s.length&&!t.requestAnimationFrame;++i)t.requestAnimationFrame=t[s[i]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[s[i]+"CancelAnimationFrame"]||t[s[i]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(t,s){var i=(new Date).getTime(),a=Math.max(0,16-(i-e)),r=setTimeout((function(){t(i+a)}),a);return e=i+a,r}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){clearTimeout(t)})}();var T=function(){function t(t,e,s,i,a,r){var n=t*i+e*a+s*r-a*i-r*t-s*e;return n>-1e-4&&n<1e-4}Math;var e=function(){function t(t,e){this.l=t,this.p=e}return function(e,s,i,a){var r,n,h,p,f,m,c=d,u=0,g=[],y=[],v={addedLength:0,segments:[]};for(h=i.length,r=0;r<c;r+=1){for(f=r/(c-1),m=0,n=0;n<h;n+=1)p=o(1-f,3)*e[n]+3*o(1-f,2)*f*i[n]+3*(1-f)*o(f,2)*a[n]+o(f,3)*s[n],g[n]=p,null!==y[n]&&(m+=o(g[n]-y[n],2)),y[n]=g[n];m&&(u+=m=l(m)),v.segments.push(new t(u,f))}return v.addedLength=u,v}}();function s(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var a,r=(a={},function(e){var r=e.s,n=e.e,h=e.to,p=e.ti,f=(r.join("_")+"_"+n.join("_")+"_"+h.join("_")+"_"+p.join("_")).replace(/\./g,"p");if(a[f])e.bezierData=a[f];else{var m,c,u,g,y,v,b,k=d,A=0,P=null;2===r.length&&(r[0]!=n[0]||r[1]!=n[1])&&t(r[0],r[1],n[0],n[1],r[0]+h[0],r[1]+h[1])&&t(r[0],r[1],n[0],n[1],n[0]+p[0],n[1]+p[1])&&(k=2);var E=new s(k);for(u=h.length,m=0;m<k;m+=1){for(b=new Array(u),y=m/(k-1),v=0,c=0;c<u;c+=1)g=o(1-y,3)*r[c]+3*o(1-y,2)*y*(r[c]+h[c])+3*(1-y)*o(y,2)*(n[c]+p[c])+o(y,3)*n[c],b[c]=g,null!==P&&(v+=o(b[c]-P[c],2));A+=v=l(v),E.points[m]=new i(v,b),P=b}E.segmentLength=A,e.bezierData=E,a[f]=E}});function n(t,e){var s=e.segments,i=s.length,a=p((i-1)*t),r=t*e.addedLength,n=0;if(r==s[a].l)return s[a].p;for(var h=s[a].l>r?-1:1,o=!0;o;)s[a].l<=r&&s[a+1].l>r?(n=(r-s[a].l)/(s[a+1].l-s[a].l),o=!1):a+=h,(a<0||a>=i-1)&&(o=!1);return s[a].p+(s[a+1].p-s[a].p)*n}function h(){this.pt1=new Array(2),this.pt2=new Array(2),this.pt3=new Array(2),this.pt4=new Array(2)}return{getBezierLength:e,getSegmentsLength:function(t){var s,i=t.c,a=t.v,r=t.o,n=t.i,h=t._length,o=[],l=0;for(s=0;s<h-1;s+=1)o[s]=e(a[s],a[s+1],r[s],n[s+1]),l+=o[s].addedLength;return i&&(o[s]=e(a[s],a[0],r[s],n[0]),l+=o[s].addedLength),{lengths:o,totalLength:l}},getNewSegment:function(t,e,s,i,a,r,o){var l,p=new h,f=n(a=a<0?0:a>1?1:a,o),m=n(r=r>1?1:r,o),d=t.length,c=1-f,u=1-m;for(l=0;l<d;l+=1)p.pt1[l]=Math.round(1e3*(c*c*c*t[l]+(f*c*c+c*f*c+c*c*f)*s[l]+(f*f*c+c*f*f+f*c*f)*i[l]+f*f*f*e[l]))/1e3,p.pt3[l]=Math.round(1e3*(c*c*u*t[l]+(f*c*u+c*f*u+c*c*m)*s[l]+(f*f*u+c*f*m+f*c*m)*i[l]+f*f*m*e[l]))/1e3,p.pt4[l]=Math.round(1e3*(c*u*u*t[l]+(f*u*u+c*m*u+c*u*m)*s[l]+(f*m*u+c*m*m+f*u*m)*i[l]+f*m*m*e[l]))/1e3,p.pt2[l]=Math.round(1e3*(u*u*u*t[l]+(m*u*u+u*m*u+u*u*m)*s[l]+(m*m*u+u*m*m+m*u*m)*i[l]+m*m*m*e[l]))/1e3;return p},getPointInSegment:function(t,e,s,i,a,r){var h=n(a,r),o=1-h;return[Math.round(1e3*(o*o*o*t[0]+(h*o*o+o*h*o+o*o*h)*s[0]+(h*h*o+o*h*h+h*o*h)*i[0]+h*h*h*e[0]))/1e3,Math.round(1e3*(o*o*o*t[1]+(h*o*o+o*h*o+o*o*h)*s[1]+(h*h*o+o*h*h+h*o*h)*i[1]+h*h*h*e[1]))/1e3]},buildBezierData:r,pointOnLine2D:t,pointOnLine3D:function(e,s,i,a,r,n,h,o,l){if(0===i&&0===n&&0===l)return t(e,s,a,r,h,o);var p,f=Math.sqrt(Math.pow(a-e,2)+Math.pow(r-s,2)+Math.pow(n-i,2)),m=Math.sqrt(Math.pow(h-e,2)+Math.pow(o-s,2)+Math.pow(l-i,2)),d=Math.sqrt(Math.pow(h-a,2)+Math.pow(o-r,2)+Math.pow(l-n,2));return(p=f>m?f>d?f-m-d:d-m-f:d>m?d-m-f:m-f-d)>-1e-4&&p<1e-4}}}(),L=function(){function t(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 e(t){var i,a,r;for(i=t.length-1;i>=0;i-=1)if("sh"==t[i].ty)if(t[i].ks.k.i)s(t[i].ks.k);else for(r=t[i].ks.k.length,a=0;a<r;a+=1)t[i].ks.k[a].s&&s(t[i].ks.k[a].s[0]),t[i].ks.k[a].e&&s(t[i].ks.k[a].e[0]);else"gr"==t[i].ty&&e(t[i].it)}function s(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 i(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 a,r=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(i(t,s.v)&&(e(s.layers),s.assets)){var a,r=s.assets.length;for(a=0;a<r;a+=1)s.assets[a].layers&&e(s.assets[a].layers)}}}(),n=(a=[4,7,99],function(t){if(t.chars&&!i(a,t.v)){var e,r,n,h,o,l=t.chars.length;for(e=0;e<l;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(n=(o=t.chars[e].data.shapes[0].it).length,r=0;r<n;r+=1)(h=o[r].ks.k).__converted||(s(o[r].ks.k),h.__converted=!0)}}),h=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(i(t,e.v)&&(s(e.layers),e.assets)){var a,r=e.assets.length;for(a=0;a<r;a+=1)e.assets[a].layers&&s(e.assets[a].layers)}}}(),o=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(i(t,e.v)&&(s(e.layers),e.assets)){var a,r=e.assets.length;for(a=0;a<r;a+=1)e.assets[a].layers&&s(e.assets[a].layers)}}}();var l={completeData:function(i,a){i.__complete||(h(i),r(i),n(i),o(i),function i(a,r,n){var h,o,l,p,f,m,d,c=a.length;for(o=0;o<c;o+=1)if("ks"in(h=a[o])&&!h.completed){if(h.completed=!0,h.tt&&(a[o-1].td=h.tt),h.hasMask){var u=h.masksProperties;for(p=u.length,l=0;l<p;l+=1)if(u[l].pt.k.i)s(u[l].pt.k);else for(m=u[l].pt.k.length,f=0;f<m;f+=1)u[l].pt.k[f].s&&s(u[l].pt.k[f].s[0]),u[l].pt.k[f].e&&s(u[l].pt.k[f].e[0])}0===h.ty?(h.layers=t(h.refId,r),i(h.layers,r,n)):4===h.ty?e(h.shapes):5==h.ty&&(0!==(d=h).t.a.length||"m"in d.t.p||(d.singleShape=!0))}}(i.layers,i.assets,a),i.__complete=!0)}};return l}(),N=function(){function e(t,e){var s=document.createElement("span");s.style.fontFamily=e;var i=document.createElement("span");i.innerHTML="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=t+", "+e,{node:i,w:a,parent:s}}function s(){var e,i,a,r=this.fonts.length,n=r;for(e=0;e<r;e+=1)if(this.fonts[e].loaded)n-=1;else if("t"===this.fonts[e].fOrigin||2===this.fonts[e].origin){if(t.Typekit&&t.Typekit.load&&0===this.typekitLoaded){this.typekitLoaded=1;try{t.Typekit.load({async:!0,active:function(){this.typekitLoaded=2}.bind(this)})}catch(t){}}2===this.typekitLoaded&&(this.fonts[e].loaded=!0)}else"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,a=this.fonts[e].monoCase.w,i.offsetWidth!==a?(n-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,a=this.fonts[e].sansCase.w,i.offsetWidth!==a&&(n-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(s.bind(this),20):setTimeout(function(){this.loaded=!0}.bind(this),0)}function a(t,e){var s=document.createElementNS(i,"text");s.style.fontSize="100px",s.style.fontFamily=e.fFamily,s.textContent="1",e.fClass?(s.style.fontFamily="inherit",s.className=e.fClass):s.style.fontFamily=e.fFamily,t.appendChild(s);var a=document.createElement("canvas").getContext("2d");return a.font="100px "+e.fFamily,a}var r=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.loaded=!1,this.initTime=Date.now()};return r.prototype.addChars=function(t){if(t){this.chars||(this.chars=[]);var e,s,i,a=t.length,r=this.chars.length;for(e=0;e<a;e+=1){for(s=0,i=!1;s<r;)this.chars[s].style===t[e].style&&this.chars[s].fFamily===t[e].fFamily&&this.chars[s].ch===t[e].ch&&(i=!0),s+=1;i||(this.chars.push(t[e]),r+=1)}}},r.prototype.addFonts=function(t,i){if(t){if(this.chars)return this.loaded=!0,void(this.fonts=t.list);var r,n=t.list,h=n.length;for(r=0;r<h;r+=1){if(n[r].loaded=!1,n[r].monoCase=e(n[r].fFamily,"monospace"),n[r].sansCase=e(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){var o=document.createElement("style");o.type="text/css",o.innerHTML="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",i.appendChild(o)}else if("g"===n[r].fOrigin||1===n[r].origin){var l=document.createElement("link");l.type="text/css",l.rel="stylesheet",l.href=n[r].fPath,i.appendChild(l)}else if("t"===n[r].fOrigin||2===n[r].origin){var p=document.createElement("script");p.setAttribute("src",n[r].fPath),i.appendChild(p)}}else n[r].loaded=!0;n[r].helper=a(i,n[r]),this.fonts.push(n[r])}s.bind(this)()}else this.loaded=!0},r.prototype.getCharData=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}},r.prototype.getFontByName=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"sans-serif"},r.prototype.measureText=function(t,e,s){return this.getFontByName(e).helper.measureText(t).width*s/100},r}(),V=function(){function t(t,e,s,i){var a,r=this.offsetTime;s.constructor===Array&&(a=Array.apply(null,{length:s.length}));for(var n,h,o,l,p,f,m,d,c=e,u=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[c],h=this.keyframes[c+1],c==u-1&&t>=h.t-r){n.h&&(n=h),e=0;break}if(h.t-r>t){e=c;break}c<u-1?c+=1:(e=0,g=!1)}if(n.to){n.bezierData||T.buildBezierData(n);var y=n.bezierData;if(t>=h.t-r||t<n.t-r){var v=t>=h.t-r?y.points.length-1:0;for(l=y.points[v].point.length,o=0;o<l;o+=1)a[o]=y.points[v].point[o];i._lastBezierData=null}else{n.__fnct?d=n.__fnct:(d=D.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,n.__fnct=d),p=d((t-(n.t-r))/(h.t-r-(n.t-r)));var b,k=y.segmentLength*p,A=i.lastFrame<t&&i._lastBezierData===y?i._lastAddedLength:0;for(m=i.lastFrame<t&&i._lastBezierData===y?i._lastPoint:0,g=!0,f=y.points.length;g;){if(A+=y.points[m].partialLength,0===k||0===p||m==y.points.length-1){for(l=y.points[m].point.length,o=0;o<l;o+=1)a[o]=y.points[m].point[o];break}if(k>=A&&k<A+y.points[m+1].partialLength){for(b=(k-A)/y.points[m+1].partialLength,l=y.points[m].point.length,o=0;o<l;o+=1)a[o]=y.points[m].point[o]+(y.points[m+1].point[o]-y.points[m].point[o])*b;break}m<f-1?m+=1:g=!1}i._lastPoint=m,i._lastAddedLength=A-y.points[m].partialLength,i._lastBezierData=y}}else{var P,E,M,_,S;for(u=n.s.length,c=0;c<u;c+=1){if(1!==n.h&&(t>=h.t-r?p=1:t<n.t-r?p=0:(n.o.x.constructor===Array?(n.__fnct||(n.__fnct=[]),n.__fnct[c]?d=n.__fnct[c]:(P=n.o.x[c]||n.o.x[0],E=n.o.y[c]||n.o.y[0],M=n.i.x[c]||n.i.x[0],_=n.i.y[c]||n.i.y[0],d=D.getBezierEasing(P,E,M,_).get,n.__fnct[c]=d)):n.__fnct?d=n.__fnct:(P=n.o.x,E=n.o.y,M=n.i.x,_=n.i.y,d=D.getBezierEasing(P,E,M,_).get,n.__fnct=d),p=d((t-(n.t-r))/(h.t-r-(n.t-r))))),this.sh&&1!==n.h){var F=n.s[c],w=n.e[c];F-w<-180?F+=360:F-w>180&&(F-=360),S=F+(w-F)*p}else S=1===n.h?n.s[c]:n.s[c]+(n.e[c]-n.s[c])*p;1===u?a=S:a[c]=S}}return{value:a,iterationIndex:e}}function e(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||-999999!==this._caching.lastFrame&&(this._caching.lastFrame>=s&&t>=s||this._caching.lastFrame<e&&t<e))){var i=this._caching.lastFrame<t?this._caching.lastIndex:0,a=this.interpolateValue(t,i,this.pv,this._caching);if(this._caching.lastIndex=a.iterationIndex,this.pv.constructor===Array)for(i=0;i<this.v.length;)this.pv[i]=a.value[i],this.v[i]=this.mult?this.pv[i]*this.mult:this.pv[i],this.lastPValue[i]!==this.pv[i]&&(this.mdf=!0,this.lastPValue[i]=this.pv[i]),i+=1;else this.pv=a.value,this.v=this.mult?this.pv*this.mult:this.pv,this.lastPValue!=this.pv&&(this.mdf=!0,this.lastPValue=this.pv)}this._caching.lastFrame=t,this.frameId=this.elem.globalData.frameId}}function s(){}function i(t,e,i){this.mult=i,this.v=i?e.k*i:e.k,this.pv=e.k,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.getValue=s}function a(t,e,i){this.mult=i,this.data=e,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1,this.v=Array.apply(null,{length:e.k.length}),this.pv=Array.apply(null,{length:e.k.length}),this.lastValue=Array.apply(null,{length:e.k.length});var a=Array.apply(null,{length:e.k.length});this.vel=a.map((function(){return 0}));var r,n=e.k.length;for(r=0;r<n;r+=1)this.v[r]=i?e.k[r]*i:e.k[r],this.pv[r]=e.k[r];this.getValue=s}function r(s,i,a){this.keyframes=i.k,this.offsetTime=s.data.st,this.lastValue=-99999,this.lastPValue=-99999,this.frameId=-1,this._caching={lastFrame:-999999,lastIndex:0},this.k=!0,this.kf=!0,this.data=i,this.mult=a,this.elem=s,this.comp=s.comp,this.v=a?i.k[0].s[0]*a:i.k[0].s[0],this.pv=i.k[0].s[0],this.getValue=e,this.interpolateValue=t}function n(s,i,a){var r,n,h,o,l,p=i.k.length;for(r=0;r<p-1;r+=1)i.k[r].to&&i.k[r].s&&i.k[r].e&&(n=i.k[r].s,h=i.k[r].e,o=i.k[r].to,l=i.k[r].ti,(2===n.length&&(n[0]!==h[0]||n[1]!==h[1])&&T.pointOnLine2D(n[0],n[1],h[0],h[1],n[0]+o[0],n[1]+o[1])&&T.pointOnLine2D(n[0],n[1],h[0],h[1],h[0]+l[0],h[1]+l[1])||3===n.length&&(n[0]!==h[0]||n[1]!==h[1]||n[2]!==h[2])&&T.pointOnLine3D(n[0],n[1],n[2],h[0],h[1],h[2],n[0]+o[0],n[1]+o[1],n[2]+o[2])&&T.pointOnLine3D(n[0],n[1],n[2],h[0],h[1],h[2],h[0]+l[0],h[1]+l[1],h[2]+l[2]))&&(i.k[r].to=null,i.k[r].ti=null));this.keyframes=i.k,this.offsetTime=s.data.st,this.k=!0,this.kf=!0,this.mult=a,this.elem=s,this.comp=s.comp,this._caching={lastFrame:-999999,lastIndex:0},this.getValue=e,this.interpolateValue=t,this.frameId=-1,this.v=Array.apply(null,{length:i.k[0].s.length}),this.pv=Array.apply(null,{length:i.k[0].s.length}),this.lastValue=Array.apply(null,{length:i.k[0].s.length}),this.lastPValue=Array.apply(null,{length:i.k[0].s.length})}var h=function(){function t(){return this.p?ExpressionValue(this.p):[this.px.v,this.py.v,this.pz?this.pz.v:0]}function e(){return ExpressionValue(this.px)}function s(){return ExpressionValue(this.py)}function i(){return ExpressionValue(this.a)}function a(){return ExpressionValue(this.or)}function r(){return this.r?ExpressionValue(this.r,1/c):ExpressionValue(this.rz,1/c)}function n(){return ExpressionValue(this.s,100)}function h(){return ExpressionValue(this.o,100)}function o(){return ExpressionValue(this.sk)}function l(){return ExpressionValue(this.sa)}function p(t){var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t,e,s,i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].mdf&&(this.mdf=!0);if(this.mdf)this.v.reset(),this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r?this.v.rotate(-this.r.v):this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&this.p.keyframes&&this.p.getValueAtTime&&(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/this.elem.globalData.frameRate,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/this.elem.globalData.frameRate,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/this.elem.globalData.frameRate,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.01)/this.elem.globalData.frameRate,0)):(e=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/this.elem.globalData.frameRate,this.p.offsetTime)),this.v.rotate(-Math.atan2(e[1]-s[1],e[0]-s[0]))),this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);this.frameId=this.elem.globalData.frameId}}function m(){this.inverted=!0,this.iv=new x,this.k||(this.data.p.s?this.iv.translate(this.px.v,this.py.v,-this.pz.v):this.iv.translate(this.p.v[0],this.p.v[1],-this.p.v[2]),this.r?this.iv.rotate(-this.r.v):this.iv.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.s&&this.iv.scale(this.s.v[0],this.s.v[1],1),this.a&&this.iv.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]))}function d(){}return function(u,g,y){this.elem=u,this.frameId=-1,this.type="transform",this.dynamicProperties=[],this.mdf=!1,this.data=g,this.getValue=f,this.applyToMatrix=p,this.setInverted=m,this.autoOrient=d,this.v=new x,g.p.s?(this.px=V.getProp(u,g.p.x,0,0,this.dynamicProperties),this.py=V.getProp(u,g.p.y,0,0,this.dynamicProperties),g.p.z&&(this.pz=V.getProp(u,g.p.z,0,0,this.dynamicProperties))):this.p=V.getProp(u,g.p,1,0,this.dynamicProperties),g.r?this.r=V.getProp(u,g.r,0,c,this.dynamicProperties):g.rx&&(this.rx=V.getProp(u,g.rx,0,c,this.dynamicProperties),this.ry=V.getProp(u,g.ry,0,c,this.dynamicProperties),this.rz=V.getProp(u,g.rz,0,c,this.dynamicProperties),this.or=V.getProp(u,g.or,1,c,this.dynamicProperties),this.or.sh=!0),g.sk&&(this.sk=V.getProp(u,g.sk,0,c,this.dynamicProperties),this.sa=V.getProp(u,g.sa,0,c,this.dynamicProperties)),g.a&&(this.a=V.getProp(u,g.a,1,0,this.dynamicProperties)),g.s&&(this.s=V.getProp(u,g.s,1,.01,this.dynamicProperties)),g.o?this.o=V.getProp(u,g.o,0,.01,this.dynamicProperties):this.o={mdf:!1,v:1},this.dynamicProperties.length?y.push(this):(this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r?this.v.rotate(-this.r.v):this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?g.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])),Object.defineProperty(this,"position",{get:t}),Object.defineProperty(this,"xPosition",{get:e}),Object.defineProperty(this,"yPosition",{get:s}),Object.defineProperty(this,"orientation",{get:a}),Object.defineProperty(this,"anchorPoint",{get:i}),Object.defineProperty(this,"rotation",{get:r}),Object.defineProperty(this,"scale",{get:n}),Object.defineProperty(this,"opacity",{get:h}),Object.defineProperty(this,"skew",{get:o}),Object.defineProperty(this,"skewAxis",{get:l})}}();function o(t,e,s,o,l){var p;if(2===s)p=new h(t,e,l);else if(0===e.a)p=0===s?new i(t,e,o):new a(t,e,o);else if(1===e.a)p=0===s?new r(t,e,o):new n(t,e,o);else if(e.k.length)if("number"==typeof e.k[0])p=new a(t,e,o);else switch(s){case 0:p=new r(t,e,o);break;case 1:p=new n(t,e,o)}else p=new i(t,e,o);return p.k&&l.push(p),p}var l=function(){function t(t){if(this.prop.getValue(),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=!0);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=!0)}}function e(e,s,i){this.prop=o(e,s.k,1,null,[]),this.data=s,this.k=this.prop.k,this.c=Array.apply(null,{length:4*s.p});var a=s.k.k[0].s?s.k.k[0].s.length-4*s.p:s.k.k.length-4*s.p;this.o=Array.apply(null,{length:a}),this.cmdf=!1,this.omdf=!1,this.getValue=t,this.prop.k&&i.push(this),this.getValue(!0)}return function(t,s,i){return new e(t,s,i)}}(),p=function(){function t(t){var e=0,s=this.dataProps.length;if(this.elem.globalData.frameId!==this.frameId||t){for(this.mdf=!1,this.frameId=this.elem.globalData.frameId;e<s;){if(this.dataProps[e].p.mdf){this.mdf=!0;break}e+=1}if(this.mdf||t)for("svg"===this.renderer&&(this.dasharray=""),e=0;e<s;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dasharray+=" "+this.dataProps[e].p.v:this.dasharray[e]=this.dataProps[e].p.v:this.dashoffset=this.dataProps[e].p.v}}return function(e,s,i,a){this.elem=e,this.frameId=-1,this.dataProps=new Array(s.length),this.renderer=i,this.mdf=!1,this.k=!1,"svg"===this.renderer?this.dasharray="":this.dasharray=new Array(s.length-1),this.dashoffset=0;var r,n,h=s.length;for(r=0;r<h;r+=1)n=V.getProp(e,s[r].v,0,0,a),this.k=!!n.k||this.k,this.dataProps[r]={n:s[r].n,p:n};this.getValue=t,this.k?a.push(this):this.getValue(!0)}}(),f=function(){var t=Math.max,e=Math.min,s=Math.floor;function i(t){if(this.mdf=t||!1,this.dynamicProperties.length){var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0)}var i=this.elem.textProperty.currentData?this.elem.textProperty.currentData.l.length:0;t&&2===this.data.r&&(this.e.v=i);var a=2===this.data.r?1:100/i,r=this.o.v/a,n=this.s.v/a+r,h=this.e.v/a+r;if(n>h){var o=n;n=h,h=o}this.finalS=n,this.finalE=h}function a(i){var a=D.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,r=0,n=this.finalS,h=this.finalE,o=this.data.sh;if(2==o)r=a(r=h===n?i>=h?1:0:t(0,e(.5/(h-n)+(i-n)/(h-n),1)));else if(3==o)r=a(r=h===n?i>=h?0:1:1-t(0,e(.5/(h-n)+(i-n)/(h-n),1)));else if(4==o)h===n?r=0:(r=t(0,e(.5/(h-n)+(i-n)/(h-n),1)))<.5?r*=2:r=1-2*(r-.5),r=a(r);else if(5==o){if(h===n)r=0;else{var l=h-n,p=-l/2+(i=e(t(0,i+.5-n),h-n)),f=l/2;r=Math.sqrt(1-p*p/(f*f))}r=a(r)}else 6==o?(h===n?r=0:(i=e(t(0,i+.5-n),h-n),r=(1+Math.cos(Math.PI+2*Math.PI*i/(h-n)))/2),r=a(r)):(i>=s(n)&&(r=i-n<0?1-(n-i):t(0,e(h-i,1))),r=a(r));return r*this.a.v}return function(t,e,s){this.mdf=!1,this.k=!1,this.data=e,this.dynamicProperties=[],this.getValue=i,this.getMult=a,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.s=V.getProp(t,e.s||{k:0},0,0,this.dynamicProperties),this.e="e"in e?V.getProp(t,e.e,0,0,this.dynamicProperties):{v:100},this.o=V.getProp(t,e.o||{k:0},0,0,this.dynamicProperties),this.xe=V.getProp(t,e.xe||{k:0},0,0,this.dynamicProperties),this.ne=V.getProp(t,e.ne||{k:0},0,0,this.dynamicProperties),this.a=V.getProp(t,e.a,0,.01,this.dynamicProperties),this.dynamicProperties.length?s.push(this):this.getValue()}}();return{getProp:o,getDashProp:function(t,e,s,i){return new p(t,e,s,i)},getTextSelectorProp:function(t,e,s){return new f(t,e,s)},getGradientProp:l}}();function O(){this.c=!1,this._length=0,this._maxLength=8,this.v=Array.apply(null,{length:this._maxLength}),this.o=Array.apply(null,{length:this._maxLength}),this.i=Array.apply(null,{length:this._maxLength})}O.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var s=0;s<e;)this.v[s]=tt.newPoint(),this.o[s]=tt.newPoint(),this.i[s]=tt.newPoint(),s+=1},O.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},O.prototype.doubleArrayLength=function(){this.v=this.v.concat(Array.apply(null,{length:this._maxLength})),this.i=this.i.concat(Array.apply(null,{length:this._maxLength})),this.o=this.o.concat(Array.apply(null,{length:this._maxLength})),this._maxLength*=2},O.prototype.setXYAt=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]=tt.newPoint()),r[i][0]=t,r[i][1]=e},O.prototype.setTripleAt=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)};var z,R,j=function(){function t(t,e,s,i){var a,r,n;if(t<this.keyframes[0].t-this.offsetTime)a=this.keyframes[0].s[0],n=!0,e=0;else if(t>=this.keyframes[this.keyframes.length-1].t-this.offsetTime)a=1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-1].s[0]:this.keyframes[this.keyframes.length-2].e[0],n=!0;else{for(var h,o,l,p,f,m,d,c=e,u=this.keyframes.length-1,g=!0;g&&(h=this.keyframes[c],!((o=this.keyframes[c+1]).t-this.offsetTime>t));)c<u-1?c+=1:g=!1;if(e=c,!(n=1===h.h)){if(t>=o.t-this.offsetTime)d=1;else if(t<h.t-this.offsetTime)d=0;else{var y;h.__fnct?y=h.__fnct:(y=D.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,h.__fnct=y),d=y((t-(h.t-this.offsetTime))/(o.t-this.offsetTime-(h.t-this.offsetTime)))}r=h.e[0]}a=h.s[0]}p=s._length,m=a.i[0].length;var v,b=!1;for(l=0;l<p;l+=1)for(f=0;f<m;f+=1)n?(v=a.i[l][f],s.i[l][f]!==v&&(s.i[l][f]=v,i&&(this.pv.i[l][f]=v),b=!0),v=a.o[l][f],s.o[l][f]!==v&&(s.o[l][f]=v,i&&(this.pv.o[l][f]=v),b=!0),v=a.v[l][f],s.v[l][f]!==v&&(s.v[l][f]=v,i&&(this.pv.v[l][f]=v),b=!0)):(v=a.i[l][f]+(r.i[l][f]-a.i[l][f])*d,s.i[l][f]!==v&&(s.i[l][f]=v,i&&(this.pv.i[l][f]=v),b=!0),v=a.o[l][f]+(r.o[l][f]-a.o[l][f])*d,s.o[l][f]!==v&&(s.o[l][f]=v,i&&(this.pv.o[l][f]=v),b=!0),v=a.v[l][f]+(r.v[l][f]-a.v[l][f])*d,s.v[l][f]!==v&&(s.v[l][f]=v,i&&(this.pv.v[l][f]=v),b=!0));return b&&(s.c=a.c),{iterationIndex:e,hasModified:b}}function e(){this.paths=this.localShapeCollection,this.k||(this.mdf=!1)}function s(t,s,i){this.__shapeObject=1,this.comp=t.comp,this.k=!1,this.mdf=!1;var a=3===i?s.pt.k:s.ks.k;this.v=et.clone(a),this.pv=et.clone(this.v),this.localShapeCollection=st.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=e}function i(t,s,i){this.__shapeObject=1,this.comp=t.comp,this.elem=t,this.offsetTime=t.data.st,this._lastIndex=0,this.keyframes=3===i?s.pt.k:s.ks.k,this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length,this.v=et.newShape(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=et.clone(this.v),this.localShapeCollection=st.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=e}s.prototype.interpolateShape=t,s.prototype.getValue=function(){return this.v},i.prototype.getValue=function(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(-999999===this.lastFrame||!(this.lastFrame<e&&t<e||this.lastFrame>s&&t>s)){var i=this.lastFrame<t?this._lastIndex:0,a=this.interpolateShape(t,i,this.v,!0);this._lastIndex=a.iterationIndex,this.mdf=a.hasModified,a.hasModified&&(this.paths=this.localShapeCollection)}this.lastFrame=t,this.frameId=this.elem.globalData.frameId}},i.prototype.interpolateShape=t;var a=function(){function t(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2;3!==this.d?(this.v.v[0][0]=t,this.v.v[0][1]=e-i,this.v.v[1][0]=t+s,this.v.v[1][1]=e,this.v.v[2][0]=t,this.v.v[2][1]=e+i,this.v.v[3][0]=t-s,this.v.v[3][1]=e,this.v.i[0][0]=t-.5519*s,this.v.i[0][1]=e-i,this.v.i[1][0]=t+s,this.v.i[1][1]=e-.5519*i,this.v.i[2][0]=t+.5519*s,this.v.i[2][1]=e+i,this.v.i[3][0]=t-s,this.v.i[3][1]=e+.5519*i,this.v.o[0][0]=t+.5519*s,this.v.o[0][1]=e-i,this.v.o[1][0]=t+s,this.v.o[1][1]=e+.5519*i,this.v.o[2][0]=t-.5519*s,this.v.o[2][1]=e+i,this.v.o[3][0]=t-s,this.v.o[3][1]=e-.5519*i):(this.v.v[0][0]=t,this.v.v[0][1]=e-i,this.v.v[1][0]=t-s,this.v.v[1][1]=e,this.v.v[2][0]=t,this.v.v[2][1]=e+i,this.v.v[3][0]=t+s,this.v.v[3][1]=e,this.v.i[0][0]=t+.5519*s,this.v.i[0][1]=e-i,this.v.i[1][0]=t-s,this.v.i[1][1]=e-.5519*i,this.v.i[2][0]=t-.5519*s,this.v.i[2][1]=e+i,this.v.i[3][0]=t+s,this.v.i[3][1]=e+.5519*i,this.v.o[0][0]=t-.5519*s,this.v.o[0][1]=e-i,this.v.o[1][0]=t-s,this.v.o[1][1]=e+.5519*i,this.v.o[2][0]=t+.5519*s,this.v.o[2][1]=e+i,this.v.o[3][0]=t+s,this.v.o[3][1]=e-.5519*i)}function s(t){var e,s=this.dynamicProperties.length;if(this.elem.globalData.frameId!==this.frameId){for(this.mdf=!1,this.frameId=this.elem.globalData.frameId,e=0;e<s;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertEllToPath()}}return function(i,a){this.v=et.newShape(),this.v.setPathData(!0,4),this.localShapeCollection=st.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=a.d,this.dynamicProperties=[],this.elem=i,this.comp=i.comp,this.frameId=-1,this.mdf=!1,this.getValue=s,this.convertEllToPath=t,this.reset=e,this.p=V.getProp(i,a.p,1,0,this.dynamicProperties),this.s=V.getProp(i,a.s,1,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertEllToPath()}}(),r=function(){function t(){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),f=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-f*r*a*h,o+p*r*a*h,l+f*r*a*h,t,!0),n+=s*h}this.paths.length=0,this.paths[0]=this.v}function s(){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,f=2*Math.PI*h/(2*a),m=2*Math.PI*o/(2*a),d=-Math.PI/2;d+=this.r.v;var c=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<a;t+=1){s=n?l:p,i=n?f:m;var u=(e=n?h:o)*Math.cos(d),g=e*Math.sin(d),y=0===u&&0===g?0:g/Math.sqrt(u*u+g*g),v=0===u&&0===g?0:-u/Math.sqrt(u*u+g*g);u+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(u,g,u-y*i*s*c,g-v*i*s*c,u+y*i*s*c,g+v*i*s*c,t,!0),n=!n,d+=r*c}}function i(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].mdf&&(this.mdf=!0);this.mdf&&this.convertToPath()}}return function(a,r){this.v=et.newShape(),this.v.setPathData(!0,0),this.elem=a,this.comp=a.comp,this.data=r,this.frameId=-1,this.d=r.d,this.dynamicProperties=[],this.mdf=!1,this.getValue=i,this.reset=e,1===r.sy?(this.ir=V.getProp(a,r.ir,0,0,this.dynamicProperties),this.is=V.getProp(a,r.is,0,.01,this.dynamicProperties),this.convertToPath=s):this.convertToPath=t,this.pt=V.getProp(a,r.pt,0,0,this.dynamicProperties),this.p=V.getProp(a,r.p,1,0,this.dynamicProperties),this.r=V.getProp(a,r.r,0,c,this.dynamicProperties),this.or=V.getProp(a,r.or,0,0,this.dynamicProperties),this.os=V.getProp(a,r.os,0,.01,this.dynamicProperties),this.localShapeCollection=st.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:this.convertToPath()}}(),n=function(){function t(t){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem.globalData.frameId;var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertRectToPath()}}function s(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=f(s,i,this.r.v),r=a*(1-.5519);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)))}return function(i,a){this.v=et.newShape(),this.v.c=!0,this.localShapeCollection=st.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=i,this.comp=i.comp,this.frameId=-1,this.d=a.d,this.dynamicProperties=[],this.mdf=!1,this.getValue=t,this.convertRectToPath=s,this.reset=e,this.p=V.getProp(i,a.p,1,0,this.dynamicProperties),this.s=V.getProp(i,a.s,1,0,this.dynamicProperties),this.r=V.getProp(i,a.r,0,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertRectToPath()}}(),h={getShapeProp:function(t,e,h,o){var l;if(3===h||4===h){var p=3===h?e.pt:e.ks,f=p.k;l=1===p.a||f.length?new i(t,e,h):new s(t,e,h)}else 5===h?l=new n(t,e):6===h?l=new a(t,e):7===h&&(l=new r(t,e));return l.k&&o.push(l),l},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return i}};return h}(),B=(R={},(z={}).registerModifier=function(t,e){R[t]||(R[t]=e)},z.getModifier=function(t,e,s,i){return new R[t](e,s,i)},z);function G(){}function W(){}function X(){}function q(){}function Y(){this._length=0,this._maxLength=4,this.shapes=Array.apply(null,{length:this._maxLength})}G.prototype.initModifierProperties=function(){},G.prototype.addShapeToModifier=function(){},G.prototype.addShape=function(t){this.closed||(this.shapes.push({shape:t.sh,data:t,localShapeCollection:st.newShapeCollection()}),this.addShapeToModifier(t.sh))},G.prototype.init=function(t,e,s){this.elem=t,this.frameId=-1,this.shapes=[],this.dynamicProperties=[],this.mdf=!1,this.closed=!1,this.k=!1,this.comp=t.comp,this.initModifierProperties(t,e),this.dynamicProperties.length?(this.k=!0,s.push(this)):this.getValue(!0)},I(G,W),W.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!!t,this.frameId=this.elem.globalData.frameId;var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0);if(this.mdf||t){var i=this.o.v%360/360;i<0&&(i+=1);var a=this.s.v+i,r=this.e.v+i;if(a>r){var n=a;a=r,r=n}this.sValue=a,this.eValue=r,this.oValue=i}}},W.prototype.initModifierProperties=function(t,e){this.sValue=0,this.eValue=0,this.oValue=0,this.getValue=this.processKeys,this.s=V.getProp(t,e.s,0,.01,this.dynamicProperties),this.e=V.getProp(t,e.e,0,.01,this.dynamicProperties),this.o=V.getProp(t,e.o,0,0,this.dynamicProperties),this.m=e.m,this.dynamicProperties.length||this.getValue(!0)},W.prototype.calculateShapeEdges=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){var p,f;(h=r[n]).e*a<i||h.s*a>i+s||(p=h.s*a<=i?0:(h.s*a-i)/s,f=h.e*a>=i+s?1:(h.e*a-i)/s,o.push([p,f]))}return o.length||o.push([0,0]),o},W.prototype.processShapes=function(t){var e,s,i,a,r,n=this.shapes.length,h=this.sValue,o=this.eValue,l=0;if(o===h)for(s=0;s<n;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape.mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection;else if(1===o&&0===h||0===o&&1===h){if(this.mdf)for(s=0;s<n;s+=1)this.shapes[s].shape.mdf=!0}else{var p,f,m=[];for(s=0;s<n;s+=1)if((p=this.shapes[s]).shape.mdf||this.mdf||t||2===this.m){if(c=(e=p.shape.paths)._length,r=0,!p.shape.mdf&&p.pathsData)r=p.totalShapeLength;else{for(i=[],d=0;d<c;d+=1)a=T.getSegmentsLength(e.shapes[d]),i.push(a),r+=a.totalLength;p.totalShapeLength=r,p.pathsData=i}l+=r,p.shape.mdf=!0}else p.shape.paths=p.localShapeCollection;var d,c,u=h,g=o,y=0;for(s=n-1;s>=0;s-=1)if((p=this.shapes[s]).shape.mdf){if((f=p.localShapeCollection).releaseShapes(),2===this.m&&n>1){var v=this.calculateShapeEdges(h,o,p.totalShapeLength,y,l);y+=p.totalShapeLength}else v=[[u,g]];for(c=v.length,d=0;d<c;d+=1){u=v[d][0],g=v[d][1],m.length=0,g<=1?m.push({s:p.totalShapeLength*u,e:p.totalShapeLength*g}):u>=1?m.push({s:p.totalShapeLength*(u-1),e:p.totalShapeLength*(g-1)}):(m.push({s:p.totalShapeLength*u,e:p.totalShapeLength}),m.push({s:0,e:p.totalShapeLength*(g-1)}));var b=this.addShapes(p,m[0]);if(m[0].s!==m[0].e){if(m.length>1)if(p.shape.v.c){var k=b.pop();this.addPaths(b,f),b=this.addShapes(p,m[1],k)}else this.addPaths(b,f),b=this.addShapes(p,m[1]);this.addPaths(b,f)}}p.shape.paths=f}}this.dynamicProperties.length||(this.mdf=!1)},W.prototype.addPaths=function(t,e){var s,i=t.length;for(s=0;s<i;s+=1)e.addShape(t[s])},W.prototype.addSegment=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)},W.prototype.addShapes=function(t,e,s){var i,a,r,n,h,o,l,p,f=t.pathsData,m=t.shape.paths.shapes,d=t.shape.paths._length,c=0,u=[],g=!0;for(s?(h=s._length,p=s._length):(s=et.newShape(),h=0,p=0),u.push(s),i=0;i<d;i+=1){for(o=f[i].lengths,s.c=m[i].c,r=m[i].c?o.length:o.length+1,a=1;a<r;a+=1)if(c+(n=o[a-1]).addedLength<e.s)c+=n.addedLength,s.c=!1;else{if(c>e.e){s.c=!1;break}e.s<=c&&e.e>=c+n.addedLength?(this.addSegment(m[i].v[a-1],m[i].o[a-1],m[i].i[a],m[i].v[a],s,h,g),g=!1):(l=T.getNewSegment(m[i].v[a-1],m[i].v[a],m[i].o[a-1],m[i].i[a],(e.s-c)/n.addedLength,(e.e-c)/n.addedLength,o[a-1]),this.addSegment(l.pt1,l.pt3,l.pt4,l.pt2,s,h,g),g=!1,s.c=!1),c+=n.addedLength,h+=1}if(m[i].c){if(n=o[a-1],c<=e.e){var y=o[a-1].addedLength;e.s<=c&&e.e>=c+y?(this.addSegment(m[i].v[a-1],m[i].o[a-1],m[i].i[0],m[i].v[0],s,h,g),g=!1):(l=T.getNewSegment(m[i].v[a-1],m[i].v[0],m[i].o[a-1],m[i].i[0],(e.s-c)/y,(e.e-c)/y,o[a-1]),this.addSegment(l.pt1,l.pt3,l.pt4,l.pt2,s,h,g),g=!1,s.c=!1)}else s.c=!1;c+=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)),c>e.e)break;i<d-1&&(s=et.newShape(),g=!0,u.push(s),h=0)}return u},B.registerModifier("tm",W),I(G,X),X.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!!t,this.frameId=this.elem.globalData.frameId;var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0)}},X.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=V.getProp(t,e.r,0,null,this.dynamicProperties),this.dynamicProperties.length||this.getValue(!0)},X.prototype.processPath=function(t,e){var s=et.newShape();s.c=t.c;var i,a,r,n,h,o,l,p,f,m,d,c,u,g=t._length,y=0;for(i=0;i<g;i+=1)a=t.v[i],n=t.o[i],r=t.i[i],a[0]===n[0]&&a[1]===n[1]&&a[0]===r[0]&&a[1]===r[1]?0!==i&&i!==g-1||t.c?(h=0===i?t.v[g-1]:t.v[i-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=c=a[0]+(h[0]-a[0])*l,f=u=a[1]-(a[1]-h[1])*l,m=p-.5519*(p-a[0]),d=f-.5519*(f-a[1]),s.setTripleAt(p,f,m,d,c,u,y),y+=1,h=i===g-1?t.v[0]:t.v[i+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=m=a[0]+(h[0]-a[0])*l,f=d=a[1]+(h[1]-a[1])*l,c=p-.5519*(p-a[0]),u=f-.5519*(f-a[1]),s.setTripleAt(p,f,m,d,c,u,y),y+=1):(s.setTripleAt(a[0],a[1],n[0],n[1],r[0],r[1],y),y+=1):(s.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],y),y+=1);return s},X.prototype.processShapes=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((r=this.shapes[s]).shape.paths,n=r.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)},B.registerModifier("rd",X),q.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=!!t;var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0)}},q.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=V.getProp(t,e.c,0,null,this.dynamicProperties),this.o=V.getProp(t,e.o,0,null,this.dynamicProperties),this.tr=V.getProp(t,e.tr,2,null,this.dynamicProperties),this.data=e,this.dynamicProperties.length||this.getValue(!0),this.pMatrix=new x,this.rMatrix=new x,this.sMatrix=new x,this.tMatrix=new x,this.matrix=new x},q.prototype.applyTransforms=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])},q.prototype.init=function(t,e,s,i,a){for(this.elem=t,this.arr=e,this.pos=s,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.dynamicProperties=[],this.frameId=-1,this.initModifierProperties(t,e[s]);s>0;)s-=1,this._elements.unshift(e[s]);this.dynamicProperties.length?(this.k=!0,a.push(this)):this.getValue(!0)},q.prototype.resetElements=function(t){var e,s=t.length;for(e=0;e<s;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},q.prototype.cloneElements=function(t){t.length;var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},q.prototype.changeGroupRender=function(t,e){var s,i=t.length;for(s=0;s<i;s+=1)t[s]._render=e,"gr"===t[s].ty&&this.changeGroupRender(t[s].it,e)},q.prototype.processShapes=function(t){if(this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.dynamicProperties.length||t||(this.mdf=!1),this.mdf)){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:0,ix:6,k:0},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,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,this.elem.firstFrame=!0;var n=this.o.v,h=n%1,o=n>0?Math.floor(n):Math.ceil(n),l=(this.tr.v.props,this.pMatrix.props),p=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(n>0){for(;m<o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),m+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),m+=h)}else if(n<0){for(;m>o;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),m-=h)}i=1===this.data.m?0:this._currentCopies-1;var d=1===this.data.m?1:-1;for(r=this._currentCopies;r;){if(0!==m){(0!==i&&1===d||i!==this._currentCopies-1&&-1===d)&&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(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(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]);var c=(g=(u=this.elemsData[i].it)[u.length-1].transform.mProps.v.props).length;for(y=0;y<c;y+=1)g[y]=this.matrix.props[y];this.matrix.reset()}else{var u,g,y;for(this.matrix.reset(),c=(g=(u=this.elemsData[i].it)[u.length-1].transform.mProps.v.props).length,y=0;y<c;y+=1)g[y]=this.matrix.props[y]}m+=1,r-=1,i+=d}}},q.prototype.addShape=function(){},B.registerModifier("rp",q),Y.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Array.apply(null,{length:this._maxLength})),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Y.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)et.release(this.shapes[t]);this._length=0};var H=function(){var t;function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&t&&t(null)}function s(t){var e="";if(this.assetsPath){var s=t.p;-1!==s.indexOf("images/")&&(s=s.split("/")[1]),e=this.assetsPath+s}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e}function i(t){var s=document.createElement("img");s.addEventListener("load",e.bind(this),!1),s.addEventListener("error",e.bind(this),!1),s.src=t}function a(e,a){var r;for(t=a,this.totalAssets=e.length,r=0;r<this.totalAssets;r+=1)e[r].layers||(i.bind(this)(s.bind(this)(e[r])),this.totalImages+=1)}function r(t){this.path=t||""}function n(t){this.assetsPath=t||""}return function(){this.loadAssets=a,this.setAssetsPath=n,this.setPath=r,this.assetsPath="",this.path="",this.totalAssets=0,this.totalImages=0,this.loadedAssets=0}}(),J=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),U=function(){var t={createFilter:function(t){var e=document.createElementNS(i,"filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e},createAlphaToLuminanceFilter:function(){var t=document.createElementNS(i,"feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}();function Z(t,e,s){this.mdf=!1,this._firstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._dynamicProperties=[],this._textData=t,this._renderType=e,this._elem=s,this._animatorsData=Array.apply(null,{length:this._textData.a.length}),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1}function K(t,e,s,i,a,r){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=a,this.p=r,this.mdf={o:!0,sw:!!e,sc:!!s,fc:!!i,m:!0,p:!0}}function Q(t,e,s){this._frameId=-99999,this.pv="",this.v="",this.kf=!1,this.firstFrame=!0,this.mdf=!0,this.data=e,this.elem=t,this.keysIndex=-1,this.currentData={ascent:0,boxWidth:[0,0],f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,__complete:!1},this.searchProperty()?s.push(this):this.getValue(!0)}Z.prototype.searchProperties=function(t){var e,s,i,a=this._textData.a.length,r=V.getProp;for(e=0;e<a;e+=1)s={a:{},s:{}},"r"in(i=this._textData.a[e]).a&&(s.a.r=r(this._elem,i.a.r,0,c,this._dynamicProperties)),"rx"in i.a&&(s.a.rx=r(this._elem,i.a.rx,0,c,this._dynamicProperties)),"ry"in i.a&&(s.a.ry=r(this._elem,i.a.ry,0,c,this._dynamicProperties)),"sk"in i.a&&(s.a.sk=r(this._elem,i.a.sk,0,c,this._dynamicProperties)),"sa"in i.a&&(s.a.sa=r(this._elem,i.a.sa,0,c,this._dynamicProperties)),"s"in i.a&&(s.a.s=r(this._elem,i.a.s,1,.01,this._dynamicProperties)),"a"in i.a&&(s.a.a=r(this._elem,i.a.a,1,0,this._dynamicProperties)),"o"in i.a&&(s.a.o=r(this._elem,i.a.o,0,.01,this._dynamicProperties)),"p"in i.a&&(s.a.p=r(this._elem,i.a.p,1,0,this._dynamicProperties)),"sw"in i.a&&(s.a.sw=r(this._elem,i.a.sw,0,0,this._dynamicProperties)),"sc"in i.a&&(s.a.sc=r(this._elem,i.a.sc,1,0,this._dynamicProperties)),"fc"in i.a&&(s.a.fc=r(this._elem,i.a.fc,1,0,this._dynamicProperties)),"fh"in i.a&&(s.a.fh=r(this._elem,i.a.fh,0,0,this._dynamicProperties)),"fs"in i.a&&(s.a.fs=r(this._elem,i.a.fs,0,.01,this._dynamicProperties)),"fb"in i.a&&(s.a.fb=r(this._elem,i.a.fb,0,.01,this._dynamicProperties)),"t"in i.a&&(s.a.t=r(this._elem,i.a.t,0,0,this._dynamicProperties)),s.s=V.getTextSelectorProp(this._elem,i.s,this._dynamicProperties),s.s.t=i.s.t,this._animatorsData[e]=s;this._textData.p&&"m"in this._textData.p?(this._pathData={f:r(this._elem,this._textData.p.f,0,0,this._dynamicProperties),l:r(this._elem,this._textData.p.l,0,0,this._dynamicProperties),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this._dynamicProperties),this._dynamicProperties.length&&t.push(this)},Z.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this.mdf||this._firstFrame||e||this._hasMaskedPath&&this._pathData.m.mdf){this._firstFrame=!1;var s,i,a,r,n=this._moreOptions.alignment.v,h=this._animatorsData,o=this._textData,l=this.mHelper,p=this._renderType,f=this.renderedLetters.length,m=(this.data,t.l);if(this._hasMaskedPath){var d=this._pathData.m;if(!this._pathData.n||this._pathData.mdf){var c=d.v;this._pathData.r&&(c=function(t){var e,s,i=[],a=[],r=[],n={},h=0;t.c&&(i[0]=t.o[0],a[0]=t.i[0],r[0]=t.v[0],h=1);var o=(s=t.i.length)-1;for(e=h;e<s;e+=1)i.push(t.o[o]),a.push(t.i[o]),r.push(t.v[o]),o-=1;return n.i=i,n.o=a,n.v=r,n}(c));var u,g={tLength:0,segments:[]};r=c._length-1;var y=0;for(a=0;a<r;a+=1)u={s:c.v[a],e:c.v[a+1],to:[c.o[a][0]-c.v[a][0],c.o[a][1]-c.v[a][1]],ti:[c.i[a+1][0]-c.v[a+1][0],c.i[a+1][1]-c.v[a+1][1]]},T.buildBezierData(u),g.tLength+=u.bezierData.segmentLength,g.segments.push(u),y+=u.bezierData.segmentLength;a=r,d.v.c&&(u={s:c.v[a],e:c.v[0],to:[c.o[a][0]-c.v[a][0],c.o[a][1]-c.v[a][1]],ti:[c.i[0][0]-c.v[0][0],c.i[0][1]-c.v[0][1]]},T.buildBezierData(u),g.tLength+=u.bezierData.segmentLength,g.segments.push(u),y+=u.bezierData.segmentLength),this._pathData.pi=g}g=this._pathData.pi;var v,b,k,A=this._pathData.f.v,P=0,E=1,M=0,w=!0,x=g.segments;if(A<0&&d.v.c)for(g.tLength<Math.abs(A)&&(A=-Math.abs(A)%g.tLength),E=(k=x[P=x.length-1].bezierData.points).length-1;A<0;)A+=k[E].partialLength,(E-=1)<0&&(E=(k=x[P-=1].bezierData.points).length-1);b=(k=x[P].bezierData.points)[E-1];var D,C,I=(v=k[E]).partialLength}r=m.length,s=0,i=0;var L,N,V,O,z=1.2*t.s*.714,R=!0;if(V=h.length,e)for(N=0;N<V;N+=1)h[N].s.getValue(!0);var j,B,G,W,X,q,Y,H,J,U,Z,Q,$,tt=-1,et=A,st=P,it=E,at=-1,rt="",nt=this.defaultPropsArray;for(a=0;a<r;a+=1){if(l.reset(),X=1,m[a].n)s=0,i+=t.yOffset,i+=R?1:0,A=et,R=!1,this._hasMaskedPath&&(E=it,b=(k=x[P=st].bezierData.points)[E-1],I=(v=k[E]).partialLength,M=0),$=U=Q=rt="",nt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(at!==m[a].line){switch(t.j){case 1:A+=y-t.lineWidths[m[a].line];break;case 2:A+=(y-t.lineWidths[m[a].line])/2}at=m[a].line}tt!==m[a].ind&&(m[tt]&&(A+=m[tt].extra),A+=m[a].an/2,tt=m[a].ind),A+=n[0]*m[a].an/200;var ht=0;for(N=0;N<V;N+=1)"p"in(L=h[N].a)&&((j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars)).length?ht+=L.p.v[0]*j[0]:ht+=L.p.v[0]*j),"a"in L&&((j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars)).length?ht+=L.a.v[0]*j[0]:ht+=L.a.v[0]*j);for(w=!0;w;)M+I>=A+ht||!k?(D=(A+ht-M)/v.partialLength,G=b.point[0]+(v.point[0]-b.point[0])*D,W=b.point[1]+(v.point[1]-b.point[1])*D,l.translate(-n[0]*m[a].an/200,-n[1]*z/100),w=!1):k&&(M+=v.partialLength,(E+=1)>=k.length&&(E=0,x[P+=1]?k=x[P].bezierData.points:d.v.c?(E=0,k=x[P=0].bezierData.points):(M-=v.partialLength,k=null)),k&&(b=v,I=(v=k[E]).partialLength));B=m[a].an/2-m[a].add,l.translate(-B,0,0)}else B=m[a].an/2-m[a].add,l.translate(-B,0,0),l.translate(-n[0]*m[a].an/200,-n[1]*z/100,0);for(m[a].l,N=0;N<V;N+=1)"t"in(L=h[N].a)&&(j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars),this._hasMaskedPath?j.length?A+=L.t*j[0]:A+=L.t*j:j.length?s+=L.t.v*j[0]:s+=L.t.v*j);for(m[a].l,t.strokeWidthAnim&&(Y=t.sw||0),t.strokeColorAnim&&(q=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),N=0;N<V;N+=1)"a"in(L=h[N].a)&&((j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars)).length?l.translate(-L.a.v[0]*j[0],-L.a.v[1]*j[1],L.a.v[2]*j[2]):l.translate(-L.a.v[0]*j,-L.a.v[1]*j,L.a.v[2]*j));for(N=0;N<V;N+=1)"s"in(L=h[N].a)&&((j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars)).length?l.scale(1+(L.s.v[0]-1)*j[0],1+(L.s.v[1]-1)*j[1],1):l.scale(1+(L.s.v[0]-1)*j,1+(L.s.v[1]-1)*j,1));for(N=0;N<V;N+=1){if(L=h[N].a,j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars),"sk"in L&&(j.length?l.skewFromAxis(-L.sk.v*j[0],L.sa.v*j[1]):l.skewFromAxis(-L.sk.v*j,L.sa.v*j)),"r"in L&&(j.length?l.rotateZ(-L.r.v*j[2]):l.rotateZ(-L.r.v*j)),"ry"in L&&(j.length?l.rotateY(L.ry.v*j[1]):l.rotateY(L.ry.v*j)),"rx"in L&&(j.length?l.rotateX(L.rx.v*j[0]):l.rotateX(L.rx.v*j)),"o"in L&&(j.length?X+=(L.o.v*j[0]-X)*j[0]:X+=(L.o.v*j-X)*j),t.strokeWidthAnim&&"sw"in L&&(j.length?Y+=L.sw.v*j[0]:Y+=L.sw.v*j),t.strokeColorAnim&&"sc"in L)for(J=0;J<3;J+=1)j.length?q[J]=q[J]+(L.sc.v[J]-q[J])*j[0]:q[J]=q[J]+(L.sc.v[J]-q[J])*j;if(t.fillColorAnim&&t.fc){if("fc"in L)for(J=0;J<3;J+=1)j.length?H[J]=H[J]+(L.fc.v[J]-H[J])*j[0]:H[J]=H[J]+(L.fc.v[J]-H[J])*j;"fh"in L&&(H=j.length?F(H,L.fh.v*j[0]):F(H,L.fh.v*j)),"fs"in L&&(H=j.length?_(H,L.fs.v*j[0]):_(H,L.fs.v*j)),"fb"in L&&(H=j.length?S(H,L.fb.v*j[0]):S(H,L.fb.v*j))}}for(N=0;N<V;N+=1)"p"in(L=h[N].a)&&(j=h[N].s.getMult(m[a].anIndexes[N],o.a[N].s.totalChars),this._hasMaskedPath?j.length?l.translate(0,L.p.v[1]*j[0],-L.p.v[2]*j[1]):l.translate(0,L.p.v[1]*j,-L.p.v[2]*j):j.length?l.translate(L.p.v[0]*j[0],L.p.v[1]*j[1],-L.p.v[2]*j[2]):l.translate(L.p.v[0]*j,L.p.v[1]*j,-L.p.v[2]*j));if(t.strokeWidthAnim&&(U=Y<0?0:Y),t.strokeColorAnim&&(Z="rgb("+Math.round(255*q[0])+","+Math.round(255*q[1])+","+Math.round(255*q[2])+")"),t.fillColorAnim&&t.fc&&(Q="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(l.translate(0,-t.ls),l.translate(0,n[1]*z/100+i,0),o.p.p){C=(v.point[1]-b.point[1])/(v.point[0]-b.point[0]);var ot=180*Math.atan(C)/Math.PI;v.point[0]<b.point[0]&&(ot+=180),l.rotate(-ot*Math.PI/180)}l.translate(G,W,0),A-=n[0]*m[a].an/200,m[a+1]&&tt!==m[a+1].ind&&(A+=m[a].an/2,A+=t.tr/1e3*t.s)}else{switch(l.translate(s,i,0),t.ps&&l.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:l.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[m[a].line]),0,0);break;case 2:l.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[m[a].line])/2,0,0)}l.translate(0,-t.ls),l.translate(B,0,0),l.translate(n[0]*m[a].an/200,n[1]*z/100,0),s+=m[a].l+t.tr/1e3*t.s}"html"===p?rt=l.toCSS():"svg"===p?rt=l.to2dCSS():nt=[l.props[0],l.props[1],l.props[2],l.props[3],l.props[4],l.props[5],l.props[6],l.props[7],l.props[8],l.props[9],l.props[10],l.props[11],l.props[12],l.props[13],l.props[14],l.props[15]],$=X}f<=a?(O=new K($,U,Z,Q,rt,nt),this.renderedLetters.push(O),f+=1,this.lettersChangedFlag=!0):(O=this.renderedLetters[a],this.lettersChangedFlag=O.update($,U,Z,Q,rt,nt)||this.lettersChangedFlag)}}},Z.prototype.getValue=function(){if(this._elem.globalData.frameId!==this._frameId){this._frameId=this._elem.globalData.frameId;var t,e=this._dynamicProperties.length;for(this.mdf=!1,t=0;t<e;t+=1)this._dynamicProperties[t].getValue(),this.mdf=this._dynamicProperties[t].mdf||this.mdf}},Z.prototype.mHelper=new x,Z.prototype.defaultPropsArray=[],K.prototype.update=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},Q.prototype.setCurrentData=function(t){var e=this.currentData;e.ascent=t.ascent,e.boxWidth=t.boxWidth?t.boxWidth:e.boxWidth,e.f=t.f,e.fStyle=t.fStyle,e.fWeight=t.fWeight,e.fc=t.fc,e.j=t.j,e.justifyOffset=t.justifyOffset,e.l=t.l,e.lh=t.lh,e.lineWidths=t.lineWidths,e.ls=t.ls,e.of=t.of,e.s=t.s,e.sc=t.sc,e.sw=t.sw,e.t=t.t,e.tr=t.tr,e.fillColorAnim=t.fillColorAnim||e.fillColorAnim,e.strokeColorAnim=t.strokeColorAnim||e.strokeColorAnim,e.strokeWidthAnim=t.strokeWidthAnim||e.strokeWidthAnim,e.yOffset=t.yOffset,e.__complete=!1},Q.prototype.searchProperty=function(){return this.kf=this.data.d.k.length>1,this.kf},Q.prototype.getValue=function(){this.mdf=!1;var t=this.elem.globalData.frameId;if(t!==this._frameId&&this.kf||this.firstFrame){for(var e,s=this.data.d.k,i=0,a=s.length;i<=a-1&&(e=s[i].s,!(i===a-1||s[i+1].t>t));)i+=1;this.keysIndex!==i&&(e.__complete||this.completeTextData(e),this.setCurrentData(e),this.mdf=!this.firstFrame,this.pv=this.v=this.currentData.t,this.keysIndex=i),this._frameId=t}},Q.prototype.completeTextData=function(t){t.__complete=!0;var e,s,i,a,r,n,h,o=this.elem.globalData.fontManager,l=this.data,p=[],f=0,m=l.m.g,d=0,c=0,u=0,g=[],y=0,v=0,b=o.getFontByName(t.f),k=0,A=b.fStyle.split(" "),P="normal",E="normal";for(s=A.length,e=0;e<s;e+=1)switch(A[e].toLowerCase()){case"italic":E="italic";break;case"bold":P="700";break;case"black":P="900";break;case"medium":P="500";break;case"regular":case"normal":P="400";case"light":case"thin":P="200"}t.fWeight=P,t.fStyle=E,s=t.t.length;var M=t.tr/1e3*t.s;if(t.sz){var _=t.sz[0],S=-1;for(e=0;e<s;e+=1)i=!1," "===t.t.charAt(e)?S=e:13===t.t.charCodeAt(e)&&(y=0,i=!0),o.chars?(h=o.getCharData(t.t.charAt(e),b.fStyle,b.fFamily),k=i?0:h.w*t.s/100):k=o.measureText(t.t.charAt(e),t.f,t.s),y+k>_&&" "!==t.t.charAt(e)?(-1===S?s+=1:e=S,t.t=t.t.substr(0,e)+"\r"+t.t.substr(e===S?e+1:e),S=-1,y=0):(y+=k,y+=M);s=t.t.length}y=-M,k=0;var F,w=0;for(e=0;e<s;e+=1)if(i=!1," "===(F=t.t.charAt(e))?a=" ":13===F.charCodeAt(0)?(w=0,g.push(y),v=y>v?y:v,y=-2*M,a="",i=!0,u+=1):a=t.t.charAt(e),o.chars?(h=o.getCharData(F,b.fStyle,o.getFontByName(t.f).fFamily),k=i?0:h.w*t.s/100):k=o.measureText(a,t.f,t.s)," "===F?w+=k+M:(y+=k+M+w,w=0),p.push({l:k,an:k,add:d,n:i,anIndexes:[],val:a,line:u}),2==m){if(d+=k,""==a||" "==a||e==s-1){for(""!=a&&" "!=a||(d-=k);c<=e;)p[c].an=d,p[c].ind=f,p[c].extra=k,c+=1;f+=1,d=0}}else if(3==m){if(d+=k,""==a||e==s-1){for(""==a&&(d-=k);c<=e;)p[c].an=d,p[c].ind=f,p[c].extra=k,c+=1;d=0,f+=1}}else p[f].ind=f,p[f].extra=0,f+=1;if(t.l=p,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var x,D,C=l.a;n=C.length;var I,T,L=[];for(r=0;r<n;r+=1){for((x=C[r]).a.sc&&(t.strokeColorAnim=!0),x.a.sw&&(t.strokeWidthAnim=!0),(x.a.fc||x.a.fh||x.a.fs||x.a.fb)&&(t.fillColorAnim=!0),T=0,I=x.s.b,e=0;e<s;e+=1)(D=p[e]).anIndexes[r]=T,(1==I&&""!=D.val||2==I&&""!=D.val&&" "!=D.val||3==I&&(D.n||" "==D.val||e==s-1)||4==I&&(D.n||e==s-1))&&(1===x.s.rn&&L.push(T),T+=1);l.a[r].s.totalChars=T;var N,V=-1;if(1===x.s.rn)for(e=0;e<s;e+=1)V!=(D=p[e]).anIndexes[r]&&(V=D.anIndexes[r],N=L.splice(Math.floor(Math.random()*L.length),1)[0]),D.anIndexes[r]=N}t.yOffset=t.lh||1.2*t.s,t.ls=t.ls||0,t.ascent=b.ascent*t.s/100},Q.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var s=this.data.d.k[e].s;s.__complete=!1,s.t=t.t,this.keysIndex=-1,this.firstFrame=!0,this.getValue()};var $={double:function(t){return t.concat(Array.apply(null,{length:t.length}))}},tt=function(){var t={newPoint:function(){return e?i[e-=1]:[.1,.1]},release:function(t){e===s&&(i=$.double(i),s*=2),i[e]=t,e+=1}},e=0,s=8,i=Array.apply(null,{length:s});return t}(),et=function(){var t={clone:function(t,e){var s,i,r=void 0===t._length?t.v.length:t._length,n=a();for(n.setLength(r),n.c=t.c,s=0;s<r;s+=1)e?(i=e.applyToPointArray(t.v[s][0],t.v[s][1],0,2),n.setXYAt(i[0],i[1],"v",s),tt.release(i),i=e.applyToPointArray(t.o[s][0],t.o[s][1],0,2),n.setXYAt(i[0],i[1],"o",s),tt.release(i),i=e.applyToPointArray(t.i[s][0],t.i[s][1],0,2),n.setXYAt(i[0],i[1],"i",s),tt.release(i)):n.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],s);return n},newShape:a,release:r,releaseArray:function(t,e){for(;e--;)r(t[e])}},e=0,s=4,i=Array.apply(null,{length:s});function a(){return e?i[e-=1]:new O}function r(t){e===s&&(i=$.double(i),s*=2);var a,r=t._length;for(a=0;a<r;a+=1)tt.release(t.v[a]),tt.release(t.i[a]),tt.release(t.o[a]),t.v[a]=null,t.i[a]=null,t.o[a]=null;t._length=0,t.c=!1,i[e]=t,e+=1}return t}(),st=function(){var t={newShapeCollection:function(){return e?i[e-=1]:new Y},release:a,clone:function(t,r){a(t),e===s&&(i=$.double(i),s*=2),i[e]=t,e+=1}},e=0,s=4,i=Array.apply(null,{length:s});function a(t){var a,r=t._length;for(a=0;a<r;a+=1)et.release(t.shapes[a]);t._length=0,e===s&&(i=$.double(i),s*=2),i[e]=t,e+=1}return t}();function it(){}function at(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.globalData={frameNum:-1},this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,className:e&&e.className||""},this.globalData.renderConfig=this.renderConfig,this.elements=[],this.pendingElements=[],this.destroyed=!1}function rt(t,e,s){this.dynamicProperties=[],this.data=t,this.element=e,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties,this.viewData=Array.apply(null,{length:this.masksProperties.length}),this.maskElement=null,this.firstFrame=!0;var r,n,h,o,l,p,f,m,d=this.globalData.defs,c=this.masksProperties.length,u=this.masksProperties,g=0,y=[],v=P(10),b="clipPath",k="clip-path";for(r=0;r<c;r++)if(("a"!==u[r].mode&&"n"!==u[r].mode||u[r].inv||100!==u[r].o.k)&&(b="mask",k="mask"),"s"!=u[r].mode&&"i"!=u[r].mode||0!=g?l=null:((l=document.createElementNS(i,"rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w),l.setAttribute("height",this.element.comp.data.h),y.push(l)),n=document.createElementNS(i,"path"),"n"!=u[r].mode){if(g+=1,"s"==u[r].mode?n.setAttribute("fill","#000000"):n.setAttribute("fill","#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==u[r].x.k){b="mask",k="mask",m=V.getProp(this.element,u[r].x,0,null,this.dynamicProperties);var A="fi_"+P(10);(p=document.createElementNS(i,"filter")).setAttribute("id",A),(f=document.createElementNS(i,"feMorphology")).setAttribute("operator","dilate"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),p.appendChild(f),d.appendChild(p),"s"==u[r].mode?n.setAttribute("stroke","#000000"):n.setAttribute("stroke","#ffffff")}else f=null,m=null;if(this.storedData[r]={elem:n,x:m,expan:f,lastPath:"",lastOperator:"",filterId:A,lastRadius:0},"i"==u[r].mode){o=y.length;var E=document.createElementNS(i,"g");for(h=0;h<o;h+=1)E.appendChild(y[h]);var M=document.createElementNS(i,"mask");M.setAttribute("mask-type","alpha"),M.setAttribute("id",v+"_"+g),M.appendChild(n),d.appendChild(M),E.setAttribute("mask","url("+a+"#"+v+"_"+g+")"),y.length=0,y.push(E)}else y.push(n);u[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:n,lastPath:"",op:V.getProp(this.element,u[r].o,0,.01,this.dynamicProperties),prop:j.getShapeProp(this.element,u[r],3,this.dynamicProperties,null)},l&&(this.viewData[r].invRect=l),this.viewData[r].prop.k||this.drawPath(u[r],this.viewData[r].prop.v,this.viewData[r])}else this.viewData[r]={op:V.getProp(this.element,u[r].o,0,.01,this.dynamicProperties),prop:j.getShapeProp(this.element,u[r],3,this.dynamicProperties,null),elem:n},d.appendChild(n);for(this.maskElement=document.createElementNS(i,b),c=y.length,r=0;r<c;r+=1)this.maskElement.appendChild(y[r]);this.maskElement.setAttribute("id",v),g>0&&this.element.maskedElement.setAttribute(k,"url("+a+"#"+v+")"),d.appendChild(this.maskElement)}function nt(){}function ht(t,e,s,i,a){this.globalData=s,this.comp=i,this.data=t,this.matteElement=null,this.transformedElement=null,this.isTransparent=!1,this.parentContainer=e,this.layerId=a?a.layerId:"ly_"+P(10),this.placeholder=a,this._sizeChanged=!1,this.init()}function ot(t,e,s,i,a){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this._parent.constructor.call(this,t,e,s,i,a)}function lt(t,e,s,i){}function pt(t,e,s,i,a){this.textSpans=[],this.renderType="svg",this._parent.constructor.call(this,t,e,s,i,a)}function ft(t,e){this.filterManager=e;var s=document.createElementNS(i,"feColorMatrix");if(s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),s.setAttribute("result","f1"),t.appendChild(s),(s=document.createElementNS(i,"feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result","f2"),t.appendChild(s),this.matrixFilter=s,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var a,r=document.createElementNS(i,"feMerge");t.appendChild(r),(a=document.createElementNS(i,"feMergeNode")).setAttribute("in","SourceGraphic"),r.appendChild(a),(a=document.createElementNS(i,"feMergeNode")).setAttribute("in","f2"),r.appendChild(a)}}function mt(t,e){this.filterManager=e;var s=document.createElementNS(i,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(s),this.matrixFilter=s}function dt(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function ct(t,e){this.filterManager=e;var s=document.createElementNS(i,"feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),s.setAttribute("result","f1"),t.appendChild(s);var a=document.createElementNS(i,"feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a),this.matrixFilter=a;var r=document.createElementNS(i,"feFuncR");r.setAttribute("type","table"),a.appendChild(r),this.feFuncR=r;var n=document.createElementNS(i,"feFuncG");n.setAttribute("type","table"),a.appendChild(n),this.feFuncG=n;var h=document.createElementNS(i,"feFuncB");h.setAttribute("type","table"),a.appendChild(h),this.feFuncB=h}function ut(t,e){this.filterManager=e;var s=this.filterManager.effectElements,a=document.createElementNS(i,"feComponentTransfer");(s[9].p.k||0!==s[9].p.v||s[10].p.k||1!==s[10].p.v||s[11].p.k||1!==s[11].p.v||s[12].p.k||0!==s[12].p.v||s[13].p.k||1!==s[13].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[16].p.k||0!==s[16].p.v||s[17].p.k||1!==s[17].p.v||s[18].p.k||1!==s[18].p.v||s[19].p.k||0!==s[19].p.v||s[20].p.k||1!==s[20].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[23].p.k||0!==s[23].p.v||s[24].p.k||1!==s[24].p.v||s[25].p.k||1!==s[25].p.v||s[26].p.k||0!==s[26].p.v||s[27].p.k||1!==s[27].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[30].p.k||0!==s[30].p.v||s[31].p.k||1!==s[31].p.v||s[32].p.k||1!==s[32].p.v||s[33].p.k||0!==s[33].p.v||s[34].p.k||1!==s[34].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a),a=document.createElementNS(i,"feComponentTransfer")),(s[2].p.k||0!==s[2].p.v||s[3].p.k||1!==s[3].p.v||s[4].p.k||1!==s[4].p.v||s[5].p.k||0!==s[5].p.v||s[6].p.k||1!==s[6].p.v)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function gt(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this.filterManager=e;var s=document.createElementNS(i,"feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result","drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var a=document.createElementNS(i,"feOffset");a.setAttribute("dx","25"),a.setAttribute("dy","0"),a.setAttribute("in","drop_shadow_1"),a.setAttribute("result","drop_shadow_2"),this.feOffset=a,t.appendChild(a);var r=document.createElementNS(i,"feFlood");r.setAttribute("flood-color","#00ff00"),r.setAttribute("flood-opacity","1"),r.setAttribute("result","drop_shadow_3"),this.feFlood=r,t.appendChild(r);var n=document.createElementNS(i,"feComposite");n.setAttribute("in","drop_shadow_3"),n.setAttribute("in2","drop_shadow_2"),n.setAttribute("operator","in"),n.setAttribute("result","drop_shadow_4"),t.appendChild(n);var h,o=document.createElementNS(i,"feMerge");t.appendChild(o),h=document.createElementNS(i,"feMergeNode"),o.appendChild(h),(h=document.createElementNS(i,"feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=h,this.feMerge=o,this.originalNodeAdded=!1,o.appendChild(h)}function yt(t,e,s){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=s,s.matteElement=document.createElementNS(i,"g"),s.matteElement.appendChild(s.layerElement),s.matteElement.appendChild(s.transformedElement),s.baseElement=s.matteElement}function vt(t){var e,s,i=t.data.ef.length,r=P(10),n=U.createFilter(r),h=0;for(this.filters=[],e=0;e<i;e+=1)20===t.data.ef[e].ty?(h+=1,s=new ft(n,t.effects.effectElements[e]),this.filters.push(s)):21===t.data.ef[e].ty?(h+=1,s=new mt(n,t.effects.effectElements[e]),this.filters.push(s)):22===t.data.ef[e].ty?(s=new dt(t,t.effects.effectElements[e]),this.filters.push(s)):23===t.data.ef[e].ty?(h+=1,s=new ct(n,t.effects.effectElements[e]),this.filters.push(s)):24===t.data.ef[e].ty?(h+=1,s=new ut(n,t.effects.effectElements[e]),this.filters.push(s)):25===t.data.ef[e].ty?(h+=1,s=new gt(n,t.effects.effectElements[e]),this.filters.push(s)):28===t.data.ef[e].ty&&(s=new yt(n,t.effects.effectElements[e],t),this.filters.push(s));h&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute("filter","url("+a+"#"+r+")"))}function bt(t,e,s,a,r){this._parent.constructor.call(this,t,e,s,a,r),this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Array.apply(null,{length:this.layers.length}):[],this.data.tm&&(this.tm=V.getProp(this,this.data.tm,0,s.frameRate,this.dynamicProperties)),this.data.xt?(this.layerElement=document.createElementNS(i,"g"),this.buildAllItems()):s.progressiveLoad||this.buildAllItems()}function kt(t,e,s,i,a){this.assetData=s.getAssetData(t.refId),this._parent.constructor.call(this,t,e,s,i,a)}function At(t,e,s,i,a){this._parent.constructor.call(this,t,e,s,i,a)}it.prototype.checkLayers=function(t){var e,s,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e--)this.elements[e]||(s=this.layers[e]).ip-s.st<=t-this.layers[e].st&&s.op-s.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},it.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t);case 99:return null}return this.createBase(t)},it.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},it.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},it.prototype.includeLayers=function(t){this.completeLayers=!1;var e,s,i=t.length,a=this.layers.length;for(e=0;e<i;e+=1)for(s=0;s<a;){if(this.layers[s].id==t[e].id){this.layers[s]=t[e];break}s+=1}},it.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},it.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},it.prototype.buildElementParenting=function(t,e,s){s=s||[];for(var i=this.elements,a=this.layers,r=0,n=a.length;r<n;)a[r].ind==e&&(i[r]&&!0!==i[r]?void 0!==a[r].parent?(s.push(i[r]),i[r]._isParent=!0,this.buildElementParenting(t,a[r].parent,s)):(s.push(i[r]),i[r]._isParent=!0,t.setHierarchy(s)):(this.buildItem(r),this.addPendingElement(t))),r+=1},it.prototype.addPendingElement=function(t){this.pendingElements.push(t)},I(it,at),at.prototype.createBase=function(t){return new ht(t,this.layerElement,this.globalData,this)},at.prototype.createShape=function(t){return new ot(t,this.layerElement,this.globalData,this)},at.prototype.createText=function(t){return new pt(t,this.layerElement,this.globalData,this)},at.prototype.createImage=function(t){return new kt(t,this.layerElement,this.globalData,this)},at.prototype.createComp=function(t){return new bt(t,this.layerElement,this.globalData,this)},at.prototype.createSolid=function(t){return new At(t,this.layerElement,this.globalData,this)},at.prototype.configAnimation=function(t){this.layerElement=document.createElementNS(i,"svg"),this.layerElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.layerElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.layerElement.setAttribute("width",t.w),this.layerElement.setAttribute("height",t.h),this.layerElement.style.width="100%",this.layerElement.style.height="100%"),this.renderConfig.className&&this.layerElement.setAttribute("class",this.renderConfig.className),this.layerElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.layerElement);var e=document.createElementNS(i,"defs");this.globalData.defs=e,this.layerElement.appendChild(e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.frameId=0,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h},this.data=t,this.globalData.frameRate=t.fr;var s=document.createElementNS(i,"clipPath"),r=document.createElementNS(i,"rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var n="animationMask_"+P(10);s.setAttribute("id",n),s.appendChild(r);var h=document.createElementNS(i,"g");h.setAttribute("clip-path","url("+a+"#"+n+")"),this.layerElement.appendChild(h),e.appendChild(s),this.layerElement=h,this.layers=t.layers,this.globalData.fontManager=new N,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.elements=Array.apply(null,{length:t.layers.length})},at.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},at.prototype.updateContainerSize=function(){},at.prototype.buildItem=function(t){var s=this.elements;if(!s[t]&&99!=this.layers[t].ty){s[t]=!0;var i=this.createItem(this.layers[t]);s[t]=i,e&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?i.setMatte(s[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(i)))}},at.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,s=this.elements.length;e<s;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},at.prototype.renderFrame=function(t){if(this.renderedFrame!=t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t;var e,s=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=s-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);for(e=s-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},at.prototype.appendElementInPos=function(t,e){var s=t.getBaseElement();if(s){for(var i,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement()&&(i=this.elements[a].getBaseElement()),a+=1;i?this.layerElement.insertBefore(s,i):this.layerElement.appendChild(s)}},at.prototype.hide=function(){this.layerElement.style.display="none"},at.prototype.show=function(){this.layerElement.style.display="block"},at.prototype.searchExtraCompositions=function(t){var e,s=t.length,a=document.createElementNS(i,"g");for(e=0;e<s;e+=1)if(t[e].xt){var r=this.createComp(t[e],a,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},rt.prototype.getMaskProperty=function(t){return this.viewData[t].prop},rt.prototype.prepareFrame=function(){var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue()},rt.prototype.renderFrame=function(t){var e,s=this.masksProperties.length;for(e=0;e<s;e++)if((this.viewData[e].prop.mdf||this.firstFrame)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op.mdf||this.firstFrame)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp.mdf||this.firstFrame)&&(this.viewData[e].invRect.setAttribute("x",-t.props[12]),this.viewData[e].invRect.setAttribute("y",-t.props[13])),this.storedData[e].x&&(this.storedData[e].x.mdf||this.firstFrame))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+a+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}this.firstFrame=!1},rt.prototype.getMaskelement=function(){return this.maskElement},rt.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},rt.prototype.drawPath=function(t,e,i){var a,r,n=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,a=1;a<r;a+=1)n+=" C"+s(e.o[a-1][0])+","+s(e.o[a-1][1])+" "+s(e.i[a][0])+","+s(e.i[a][1])+" "+s(e.v[a][0])+","+s(e.v[a][1]);e.c&&r>1&&(n+=" C"+s(e.o[a-1][0])+","+s(e.o[a-1][1])+" "+s(e.i[0][0])+","+s(e.i[0][1])+" "+s(e.v[0][0])+","+s(e.v[0][1])),i.lastPath!==n&&(i.elem&&(e.c?t.inv?i.elem.setAttribute("d",this.solidPath+n):i.elem.setAttribute("d",n):i.elem.setAttribute("d","")),i.lastPath=n)},rt.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},nt.prototype.checkMasks=function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},nt.prototype.checkParenting=function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent)},nt.prototype.prepareFrame=function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isVisible&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!0,this.firstFrame=!0,this.data.hasMask&&(this.maskManager.firstFrame=!0)):!1!==this.isVisible&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!1);var e,s=this.dynamicProperties.length;for(e=0;e<s;e+=1)(this.isVisible||this._isParent&&"transform"===this.dynamicProperties[e].type)&&(this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.elemMdf=!0,this.globalData.mdf=!0));return this.data.hasMask&&this.isVisible&&this.maskManager.prepareFrame(t*this.data.sr),this.currentFrameNum=t*this.data.sr,this.isVisible},nt.prototype.globalToLocal=function(t){var e=[];e.push(this.finalTransform);for(var s=!0,i=this.comp;s;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):s=!1;var a,r,n=e.length;for(a=0;a<n;a+=1)r=e[a].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},nt.prototype.initExpressions=function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?this.layerInterface.shapeInterface=ShapeExpressionInterface.createShapeInterface(this.shapesData,this.itemsData,this.layerInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this))},nt.prototype.setBlendMode=function(){var t="";switch(this.data.bm){case 1:t="multiply";break;case 2:t="screen";break;case 3:t="overlay";break;case 4:t="darken";break;case 5:t="lighten";break;case 6:t="color-dodge";break;case 7:t="color-burn";break;case 8:t="hard-light";break;case 9:t="soft-light";break;case 10:t="difference";break;case 11:t="exclusion";break;case 12:t="hue";break;case 13:t="saturation";break;case 14:t="color";break;case 15:t="luminosity"}(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},nt.prototype.init=function(){this.data.sr||(this.data.sr=1),this.dynamicProperties=this.dynamicProperties||[],this.data.ef&&(this.effects=new EffectsManager(this.data,this,this.dynamicProperties)),this.hidden=!1,this.firstFrame=!0,this.isVisible=!1,this._isParent=!1,this.currentFrameNum=-99999,this.lastNum=-99999,this.data.ks&&(this.finalTransform={mProp:V.getProp(this,this.data.ks,2,null,this.dynamicProperties),matMdf:!1,opMdf:!1,mat:new x,opacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.finalTransform.op=this.finalTransform.mProp.o,this.transform=this.finalTransform.mProp,11!==this.data.ty&&this.createElements(),this.data.hasMask&&this.addMasks(this.data)),this.elemMdf=!1},nt.prototype.getType=function(){return this.type},nt.prototype.resetHierarchy=function(){this.hierarchy?this.hierarchy.length=0:this.hierarchy=[]},nt.prototype.getHierarchy=function(){return this.hierarchy||(this.hierarchy=[]),this.hierarchy},nt.prototype.setHierarchy=function(t){this.hierarchy=t},nt.prototype.getLayerSize=function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}},nt.prototype.hide=function(){},nt.prototype.sourceRectAtTime=function(){return{top:0,left:0,width:100,height:100}},nt.prototype.mHelper=new x,C(nt,ht),ht.prototype.createElements=function(){this.layerElement=document.createElementNS(i,"g"),this.transformedElement=this.layerElement,this.data.hasMask&&(this.maskedElement=this.layerElement);var t=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var e=document.createElementNS(i,"mask");if(e.setAttribute("id",this.layerId),e.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e),!J.maskType&&1==this.data.td){e.setAttribute("mask-type","luminance");var s=P(10),r=U.createFilter(s);this.globalData.defs.appendChild(r),r.appendChild(U.createAlphaToLuminanceFilter()),(p=document.createElementNS(i,"g")).appendChild(this.layerElement),t=p,e.appendChild(p),p.setAttribute("filter","url("+a+"#"+s+")")}}else if(2==this.data.td){var n=document.createElementNS(i,"mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var h=document.createElementNS(i,"g");n.appendChild(h),s=P(10),r=U.createFilter(s);var o=document.createElementNS(i,"feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 -1 1"),r.appendChild(o),this.globalData.defs.appendChild(r);var l=document.createElementNS(i,"rect");if(l.setAttribute("width",this.comp.data.w),l.setAttribute("height",this.comp.data.h),l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),h.setAttribute("filter","url("+a+"#"+s+")"),h.appendChild(l),h.appendChild(this.layerElement),t=h,!J.maskType){n.setAttribute("mask-type","luminance"),r.appendChild(U.createAlphaToLuminanceFilter());var p=document.createElementNS(i,"g");h.appendChild(l),p.appendChild(this.layerElement),t=p,h.appendChild(p)}this.globalData.defs.appendChild(n)}}else(this.data.hasMask||this.data.tt)&&this.data.tt?(this.matteElement=document.createElementNS(i,"g"),this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(!this.data.ln&&!this.data.cl||4!==this.data.ty&&0!==this.data.ty||(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl)),0===this.data.ty){var f=document.createElementNS(i,"clipPath"),m=document.createElementNS(i,"path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var d="cp_"+P(8);if(f.setAttribute("id",d),f.appendChild(m),this.globalData.defs.appendChild(f),this.checkMasks()){var c=document.createElementNS(i,"g");c.setAttribute("clip-path","url("+a+"#"+d+")"),c.appendChild(this.layerElement),this.transformedElement=c,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+a+"#"+d+")")}0!==this.data.bm&&this.setBlendMode(),this.layerElement!==this.parentContainer&&(this.placeholder=null),this.data.ef&&(this.effectsManager=new vt(this)),this.checkParenting()},ht.prototype.setBlendMode=nt.prototype.setBlendMode,ht.prototype.renderFrame=function(t){if(3===this.data.ty||this.data.hd||!this.isVisible)return!1;var e;this.lastNum=this.currentFrameNum,this.finalTransform.opMdf=this.firstFrame||this.finalTransform.op.mdf,this.finalTransform.matMdf=this.firstFrame||this.finalTransform.mProp.mdf,this.finalTransform.opacity=this.finalTransform.op.v;var s=this.finalTransform.mat;if(this.hierarchy){var i=0,a=this.hierarchy.length;if(!this.finalTransform.matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp.mdf){this.finalTransform.matMdf=!0;break}i+=1}if(this.finalTransform.matMdf)for(e=this.finalTransform.mProp.v.props,s.cloneFromProps(e),i=0;i<a;i+=1)e=this.hierarchy[i].finalTransform.mProp.v.props,s.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}else this.isVisible&&(s=this.finalTransform.mProp.v);return this.finalTransform.matMdf&&this.layerElement&&this.transformedElement.setAttribute("transform",s.to2dCSS()),this.finalTransform.opMdf&&this.layerElement&&(this.finalTransform.op.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.hidden&&this.isTransparent&&(this.isTransparent=!1,this.show()),this.transformedElement.setAttribute("opacity",this.finalTransform.op.v)),this.data.hasMask&&this.maskManager.renderFrame(s),this.effectsManager&&this.effectsManager.renderFrame(this.firstFrame),this.isVisible},ht.prototype.destroy=function(){this.layerElement=null,this.parentContainer=null,this.matteElement&&(this.matteElement=null),this.maskManager&&this.maskManager.destroy()},ht.prototype.getBaseElement=function(){return this.baseElement},ht.prototype.addMasks=function(t){this.maskManager=new rt(t,this,this.globalData)},ht.prototype.setMatte=function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+a+"#"+t+")")},ht.prototype.hide=function(){this.hidden||(this.layerElement.style.display="none",this.hidden=!0)},ht.prototype.show=function(){this.isVisible&&!this.isTransparent&&(this.hidden=!1,this.layerElement.style.display="block")},C(ht,ot),ot.prototype.identityMatrix=new x,ot.prototype.lcEnum={1:"butt",2:"round",3:"square"},ot.prototype.ljEnum={1:"miter",2:"round",3:"butt"},ot.prototype.searchProcessedElement=function(t){for(var e=this.processedElements.length;e;)if(e-=1,this.processedElements[e].elem===t)return this.processedElements[e].pos;return 0},ot.prototype.addProcessedElement=function(t,e){for(var s=this.processedElements.length;s;)if(s-=1,this.processedElements[s].elem===t){this.processedElements[s].pos=e;break}0===s&&this.processedElements.push({elem:t,pos:e})},ot.prototype.buildExpressionInterface=function(){},ot.prototype.createElements=function(){var t;this._parent.createElements.call(this),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,this.dynamicProperties,0,[],!0),this.data.hd&&!this.data.td||((t=this.layerElement).style.userSelect="none",t.style.MozUserSelect="none",t.style.webkitUserSelect="none",t.style.oUserSelect="none")},ot.prototype.setGradientData=function(t,e,s){var a,r="gr_"+P(10);(a=1===e.t?document.createElementNS(i,"linearGradient"):document.createElementNS(i,"radialGradient")).setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var n,h,o,l=[];for(o=4*e.g.p,h=0;h<o;h+=4)n=document.createElementNS(i,"stop"),a.appendChild(n),l.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url(#"+r+")"),this.globalData.defs.appendChild(a),s.gf=a,s.cst=l},ot.prototype.setGradientOpacity=function(t,e,s){if(t.g.k.k[0].s&&t.g.k.k[0].s.length>4*t.g.p||t.g.k.k.length>4*t.g.p){var a,r,n,h,o=document.createElementNS(i,"mask"),l=document.createElementNS(i,"path");o.appendChild(l);var p="op_"+P(10),f="mk_"+P(10);o.setAttribute("id",f),(a=1===t.t?document.createElementNS(i,"linearGradient"):document.createElementNS(i,"radialGradient")).setAttribute("id",p),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse"),h=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var m=[];for(n=4*t.g.p;n<h;n+=2)(r=document.createElementNS(i,"stop")).setAttribute("stop-color","rgb(255,255,255)"),a.appendChild(r),m.push(r);return l.setAttribute("gf"===t.ty?"fill":"stroke","url(#"+p+")"),this.globalData.defs.appendChild(a),this.globalData.defs.appendChild(o),e.of=a,e.ost=m,s.msElem=l,f}},ot.prototype.createStyleElement=function(t,e,s){var a={},r={data:t,type:t.ty,d:"",ld:"",lvl:e,mdf:!1,closed:!1},n=document.createElementNS(i,"path");if(a.o=V.getProp(this,t.o,0,.01,s),("st"==t.ty||"gs"==t.ty)&&(n.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),n.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),n.setAttribute("fill-opacity","0"),1==t.lj&&n.setAttribute("stroke-miterlimit",t.ml),a.w=V.getProp(this,t.w,0,null,s),t.d)){var h=V.getDashProp(this,t.d,"svg",s);h.k||(n.setAttribute("stroke-dasharray",h.dasharray),n.setAttribute("stroke-dashoffset",h.dashoffset)),a.d=h}if("fl"==t.ty||"st"==t.ty)a.c=V.getProp(this,t.c,1,255,s);else{a.g=V.getGradientProp(this,t.g,s),2==t.t&&(a.h=V.getProp(this,t.h,0,.01,s),a.a=V.getProp(this,t.a,0,c,s)),a.s=V.getProp(this,t.s,1,null,s),a.e=V.getProp(this,t.e,1,null,s),this.setGradientData(n,t,a,r);var o=this.setGradientOpacity(t,a,r);o&&n.setAttribute("mask","url(#"+o+")")}return a.elem=n,2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),r.pElem=n,this.stylesList.push(r),a.style=r,a},ot.prototype.createGroupElement=function(t){var e={it:[],prevViewData:[]},s=document.createElementNS(i,"g");return e.gr=s,t.ln&&e.gr.setAttribute("id",t.ln),e},ot.prototype.createTransformElement=function(t,e){return{transform:{op:V.getProp(this,t.o,0,.01,e),mProps:V.getProp(this,t,2,null,e)},elements:[]}},ot.prototype.createShapeElement=function(t,e,s,i){var a={elements:[],caches:[],styles:[],transformers:e,lStr:""},r=4;return"rc"==t.ty?r=5:"el"==t.ty?r=6:"sr"==t.ty&&(r=7),a.sh=j.getShapeProp(this,t,r,i),a.lvl=s,this.shapes.push(a.sh),this.addShapeToModifiers(a),a},ot.prototype.setElementStyles=function(){var t,e=this.stylesList.length,s=[];for(t=0;t<e;t+=1)this.stylesList[t].closed||s.push(this.stylesList[t]);return s},ot.prototype.reloadShapes=function(){this.firstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,this.dynamicProperties,0,[],!0),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},ot.prototype.searchShapes=function(t,e,s,i,a,r,n,h){var o,l,p,f,m,d,c=[].concat(n),u=t.length-1,g=[],y=[];for(o=u;o>=0;o-=1){if((d=this.searchProcessedElement(t[o]))?e[o]=s[d-1]:t[o]._render=h,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r,a),t[o]._render&&i.appendChild(e[o].elem),g.push(e[o].style);else if("gr"==t[o].ty){if(d)for(p=e[o].it.length,l=0;l<p;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,a,r+1,c,h),t[o]._render&&i.appendChild(e[o].gr)}else"tr"==t[o].ty?(d||(e[o]=this.createTransformElement(t[o],a)),f=e[o].transform,c.push(f)):"sh"==t[o].ty||"rc"==t[o].ty||"el"==t[o].ty||"sr"==t[o].ty?(d||(e[o]=this.createShapeElement(t[o],c,r,a)),e[o].elements=this.setElementStyles()):"tm"==t[o].ty||"rd"==t[o].ty||"ms"==t[o].ty?(d?(m=e[o]).closed=!1:((m=B.getModifier(t[o].ty)).init(this,t[o],a),e[o]=m,this.shapeModifiers.push(m)),y.push(m)):"rp"==t[o].ty&&(d?(m=e[o]).closed=!0:(m=B.getModifier(t[o].ty),e[o]=m,m.init(this,t,o,e,a),this.shapeModifiers.push(m),h=!1),y.push(m));this.addProcessedElement(t[o],o+1)}for(u=g.length,o=0;o<u;o+=1)g[o].closed=!0;for(u=y.length,o=0;o<u;o+=1)y[o].closed=!0},ot.prototype.addShapeToModifiers=function(t){var e,s=this.shapeModifiers.length;for(e=0;e<s;e+=1)this.shapeModifiers[e].addShape(t)},ot.prototype.renderModifiers=function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].reset();for(t=(e=this.shapeModifiers.length)-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this.firstFrame)}},ot.prototype.renderFrame=function(t){if(!1!==this._parent.renderFrame.call(this,t)){this.hidden&&(this.layerElement.style.display="block",this.hidden=!1),this.renderModifiers();var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].d="",this.stylesList[e].mdf=!1;for(this.renderShape(this.shapesData,this.itemsData,null),e=0;e<s;e+=1)"0"===this.stylesList[e].ld&&(this.stylesList[e].ld="1",this.stylesList[e].pElem.style.display="block"),(this.stylesList[e].mdf||this.firstFrame)&&(this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].msElem&&this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d));this.firstFrame&&(this.firstFrame=!1)}else this.hide()},ot.prototype.hide=function(){if(!this.hidden){var t;for(this.layerElement.style.display="none",t=this.stylesList.length-1;t>=0;t-=1)"0"!==this.stylesList[t].ld&&(this.stylesList[t].ld="0",this.stylesList[t].pElem.style.display="none",this.stylesList[t].pElem.parentNode&&(this.stylesList[t].parent=this.stylesList[t].pElem.parentNode));this.hidden=!0}},ot.prototype.renderShape=function(t,e,s){var i,a;for(i=t.length-1;i>=0;i-=1)"tr"==(a=t[i].ty)?((this.firstFrame||e[i].transform.op.mdf&&s)&&s.setAttribute("opacity",e[i].transform.op.v),(this.firstFrame||e[i].transform.mProps.mdf&&s)&&s.setAttribute("transform",e[i].transform.mProps.v.to2dCSS())):"sh"==a||"el"==a||"rc"==a||"sr"==a?this.renderPath(t[i],e[i]):"fl"==a?this.renderFill(t[i],e[i]):"gf"==a?this.renderGradient(t[i],e[i]):"gs"==a?(this.renderGradient(t[i],e[i]),this.renderStroke(t[i],e[i])):"st"==a?this.renderStroke(t[i],e[i]):"gr"==a&&this.renderShape(t[i].it,e[i].it,e[i].gr)},ot.prototype.buildShapeString=function(t,e,s,i){var a,r="";for(a=1;a<e;a+=1)1===a&&(r+=" M"+i.applyToPointStringified(t.v[0][0],t.v[0][1])),r+=" C"+i.applyToPointStringified(t.o[a-1][0],t.o[a-1][1])+" "+i.applyToPointStringified(t.i[a][0],t.i[a][1])+" "+i.applyToPointStringified(t.v[a][0],t.v[a][1]);return 1===e&&(r+=" M"+i.applyToPointStringified(t.v[0][0],t.v[0][1])),s&&e&&(r+=" C"+i.applyToPointStringified(t.o[a-1][0],t.o[a-1][1])+" "+i.applyToPointStringified(t.i[0][0],t.i[0][1])+" "+i.applyToPointStringified(t.v[0][0],t.v[0][1]),r+="z"),r},ot.prototype.renderPath=function(t,e){var s,i,a,r,n,h,o=e.elements.length,l=e.lvl;if(t._render)for(h=0;h<o;h+=1)if(e.elements[h].data._render){r=e.sh.mdf||this.firstFrame,a="M0 0";var p=e.sh.paths;if(i=p._length,e.elements[h].lvl<l){for(var f,m=this.mHelper.reset(),d=l-e.elements[h].lvl,c=e.transformers.length-1;d>0;)r=e.transformers[c].mProps.mdf||r,f=e.transformers[c].mProps.v.props,m.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),d--,c--;if(r){for(s=0;s<i;s+=1)(n=p.shapes[s])&&n._length&&(a+=this.buildShapeString(n,n._length,n.c,m));e.caches[h]=a}else a=e.caches[h]}else if(r){for(s=0;s<i;s+=1)(n=p.shapes[s])&&n._length&&(a+=this.buildShapeString(n,n._length,n.c,this.identityMatrix));e.caches[h]=a}else a=e.caches[h];e.elements[h].d+=a,e.elements[h].mdf=r||e.elements[h].mdf}else e.elements[h].mdf=!0},ot.prototype.renderFill=function(t,e){var s=e.style;(e.c.mdf||this.firstFrame)&&s.pElem.setAttribute("fill","rgb("+p(e.c.v[0])+","+p(e.c.v[1])+","+p(e.c.v[2])+")"),(e.o.mdf||this.firstFrame)&&s.pElem.setAttribute("fill-opacity",e.o.v)},ot.prototype.renderGradient=function(t,e){var s,i,a,r,n,h=e.gf,o=e.of,l=e.s.v,p=e.e.v;if(e.o.mdf||this.firstFrame){var f="gf"===t.ty?"fill-opacity":"stroke-opacity";e.elem.setAttribute(f,e.o.v)}if(e.s.mdf||this.firstFrame){var m=1===t.t?"x1":"cx",d="x1"===m?"y1":"cy";h.setAttribute(m,l[0]),h.setAttribute(d,l[1]),o&&(o.setAttribute(m,l[0]),o.setAttribute(d,l[1]))}if(e.g.cmdf||this.firstFrame){s=e.cst;var c=e.g.c;for(a=s.length,i=0;i<a;i+=1)(r=s[i]).setAttribute("offset",c[4*i]+"%"),r.setAttribute("stop-color","rgb("+c[4*i+1]+","+c[4*i+2]+","+c[4*i+3]+")")}if(o&&(e.g.omdf||this.firstFrame)){s=e.ost;var u=e.g.o;for(a=s.length,i=0;i<a;i+=1)(r=s[i]).setAttribute("offset",u[2*i]+"%"),r.setAttribute("stop-opacity",u[2*i+1])}if(1===t.t)(e.e.mdf||this.firstFrame)&&(h.setAttribute("x2",p[0]),h.setAttribute("y2",p[1]),o&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1])));else if((e.s.mdf||e.e.mdf||this.firstFrame)&&(n=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),h.setAttribute("r",n),o&&o.setAttribute("r",n)),e.e.mdf||e.h.mdf||e.a.mdf||this.firstFrame){n||(n=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)));var g=Math.atan2(p[1]-l[1],p[0]-l[0]),y=n*(e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v),v=Math.cos(g+e.a.v)*y+l[0],b=Math.sin(g+e.a.v)*y+l[1];h.setAttribute("fx",v),h.setAttribute("fy",b),o&&(o.setAttribute("fx",v),o.setAttribute("fy",b))}},ot.prototype.renderStroke=function(t,e){var s=e.style,i=e.d;i&&i.k&&(i.mdf||this.firstFrame)&&(s.pElem.setAttribute("stroke-dasharray",i.dasharray),s.pElem.setAttribute("stroke-dashoffset",i.dashoffset)),e.c&&(e.c.mdf||this.firstFrame)&&s.pElem.setAttribute("stroke","rgb("+p(e.c.v[0])+","+p(e.c.v[1])+","+p(e.c.v[2])+")"),(e.o.mdf||this.firstFrame)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w.mdf||this.firstFrame)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))},ot.prototype.destroy=function(){this._parent.destroy.call(this._parent),this.shapeData=null,this.itemsData=null,this.parentContainer=null,this.placeholder=null},lt.prototype.init=function(){this.lettersChangedFlag=!0,this.dynamicProperties=this.dynamicProperties||[],this.textAnimator=new Z(this.data.t,this.renderType,this),this.textProperty=new Q(this,this.data.t,this.dynamicProperties),this._parent.init.call(this),this.textAnimator.searchProperties(this.dynamicProperties)},lt.prototype.prepareFrame=function(t){this._parent.prepareFrame.call(this,t),(this.textProperty.mdf||this.textProperty.firstFrame)&&(this.buildNewText(),this.textProperty.firstFrame=!1)},lt.prototype.createPathShape=function(t,e){var s,i,a=e.length,r="";for(s=0;s<a;s+=1)i=e[s].ks.k,r+=this.buildShapeString(i,i.i.length,!0,t);return r},lt.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},lt.prototype.applyTextPropertiesToMatrix=function(t,e,s,i,a){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[s]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[s])/2,0,0)}e.translate(i,a,0)},lt.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},lt.prototype.buildShapeString=ot.prototype.buildShapeString,lt.prototype.emptyProp=new K,lt.prototype.destroy=function(){this._parent.destroy.call(this._parent)},C(ht,pt),I(lt,pt),pt.prototype.createElements=function(){this._parent.createElements.call(this),this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=document.createElementNS(i,"text"))},pt.prototype.buildNewText=function(){var t,e,s=this.textProperty.currentData;this.renderedLetters=Array.apply(null,{length:s?s.l.length:0}),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.s);var a=this.globalData.fontManager.getFontByName(s.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var r=s.fWeight,n=s.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",r)}var h=s.l||[],o=this.globalData.fontManager.chars;if(e=h.length){var l,p,f=this.mHelper,m="",d=this.data.singleShape,c=0,u=0,g=!0,y=s.tr/1e3*s.s;if(d&&!o){var v=this.textContainer,b="";switch(s.j){case 1:b="end";break;case 2:b="middle";break;case 2:b="start"}v.setAttribute("text-anchor",b),v.setAttribute("letter-spacing",y);var k=s.t.split(String.fromCharCode(13));for(e=k.length,u=s.ps?s.ps[1]+s.ascent:0,t=0;t<e;t+=1)(l=this.textSpans[t]||document.createElementNS(i,"tspan")).textContent=k[t],l.setAttribute("x",0),l.setAttribute("y",u),l.style.display="inherit",v.appendChild(l),this.textSpans[t]=l,u+=s.lh;this.layerElement.appendChild(v)}else{var A,P,E=this.textSpans.length;for(t=0;t<e;t+=1)o&&d&&0!==t||(l=E>t?this.textSpans[t]:document.createElementNS(i,o?"path":"text"),E<=t&&(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=l,this.layerElement.appendChild(l)),l.style.display="inherit"),f.reset(),o?(f.scale(s.s/100,s.s/100),d&&(h[t].n&&(c=-y,u+=s.yOffset,u+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(s,f,h[t].line,c,u),c+=h[t].l||0,c+=y),p=(A=(P=this.globalData.fontManager.getCharData(s.t.charAt(t),a.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily))&&P.data||{}).shapes?A.shapes[0].it:[],d?m+=this.createPathShape(f,p):l.setAttribute("d",this.createPathShape(f,p))):(l.textContent=h[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&l.setAttribute("d",m)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0}},pt.prototype.sourceRectAtTime=function(t){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderLetters(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},pt.prototype.renderLetters=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var s,i,a=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;for(e=r.length,t=0;t<e;t+=1)r[t].n||(s=a[t],i=this.textSpans[t],s.mdf.m&&i.setAttribute("transform",s.m),s.mdf.o&&i.setAttribute("opacity",s.o),s.mdf.sw&&i.setAttribute("stroke-width",s.sw),s.mdf.sc&&i.setAttribute("stroke",s.sc),s.mdf.fc&&i.setAttribute("fill",s.fc))}},pt.prototype.renderFrame=function(t){!1!==this._parent.renderFrame.call(this,t)?(this.hidden&&this.show(),this.firstFrame&&(this.firstFrame=!1),this.renderLetters()):this.hide()},ft.prototype.renderFrame=function(t){if(t||this.filterManager.mdf){var e=this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",s[0]-e[0]+" 0 0 0 "+e[0]+" "+(s[1]-e[1])+" 0 0 0 "+e[1]+" "+(s[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},mt.prototype.renderFrame=function(t){if(t||this.filterManager.mdf){var e=this.filterManager.effectElements[2].p.v,s=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+s+" 0")}},dt.prototype.initialize=function(){var t,e,s,r,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,s=0):r=1+(s=this.filterManager.effectElements[0].p.v-1),(e=document.createElementNS(i,"g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);s<r;s+=1)t=document.createElementNS(i,"path"),e.appendChild(t),this.paths.push({p:t,m:s});if(3===this.filterManager.effectElements[10].p.v){var h=document.createElementNS(i,"mask"),o="stms_"+P(10);h.setAttribute("id",o),h.setAttribute("mask-type","alpha"),h.appendChild(e),this.elem.globalData.defs.appendChild(h);var l=document.createElementNS(i,"g");l.setAttribute("mask","url("+a+"#"+o+")"),n[0]&&l.appendChild(n[0]),this.elem.layerElement.appendChild(l),this.masker=h,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},dt.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,s,i,a=this.paths.length;for(e=0;e<a;e+=1)if(s=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager.mdf||s.prop.mdf)&&i.setAttribute("d",s.lastPath),t||this.filterManager.effectElements[9].p.mdf||this.filterManager.effectElements[4].p.mdf||this.filterManager.effectElements[7].p.mdf||this.filterManager.effectElements[8].p.mdf||s.prop.mdf){var r;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,h=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,o=i.getTotalLength();r="0 0 0 "+o*n+" ";var l,f=o*(h-n),m=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,d=Math.floor(f/m);for(l=0;l<d;l+=1)r+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";r+="0 "+10*o+" 0 0"}else r="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;i.setAttribute("stroke-dasharray",r)}if((t||this.filterManager.effectElements[4].p.mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p.mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p.mdf)){var c=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+p(255*c[0])+","+p(255*c[1])+","+p(255*c[2])+")")}},ct.prototype.renderFrame=function(t){if(t||this.filterManager.mdf){var e=this.filterManager.effectElements[0].p.v,s=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+s[0]+" "+e[0],r=i[1]+" "+s[1]+" "+e[1],n=i[2]+" "+s[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",n)}},ut.prototype.createFeFunc=function(t,e){var s=document.createElementNS(i,t);return s.setAttribute("type","table"),e.appendChild(s),s},ut.prototype.getTableValue=function(t,e,s,i,a){for(var r,n,h=0,o=Math.min(t,e),l=Math.max(t,e),p=Array.call(null,{length:256}),f=0,m=a-i,d=e-t;h<=256;)n=(r=h/256)<=o?d<0?a:i:r>=l?d<0?i:a:i+m*Math.pow((r-t)/d,1/s),p[f++]=n,h+=256/255;return p.join(" ")},ut.prototype.renderFrame=function(t){if(t||this.filterManager.mdf){var e,s=this.filterManager.effectElements;this.feFuncRComposed&&(t||s[2].p.mdf||s[3].p.mdf||s[4].p.mdf||s[5].p.mdf||s[6].p.mdf)&&(e=this.getTableValue(s[2].p.v,s[3].p.v,s[4].p.v,s[5].p.v,s[6].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||s[9].p.mdf||s[10].p.mdf||s[11].p.mdf||s[12].p.mdf||s[13].p.mdf)&&(e=this.getTableValue(s[9].p.v,s[10].p.v,s[11].p.v,s[12].p.v,s[13].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||s[16].p.mdf||s[17].p.mdf||s[18].p.mdf||s[19].p.mdf||s[20].p.mdf)&&(e=this.getTableValue(s[16].p.v,s[17].p.v,s[18].p.v,s[19].p.v,s[20].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||s[23].p.mdf||s[24].p.mdf||s[25].p.mdf||s[26].p.mdf||s[27].p.mdf)&&(e=this.getTableValue(s[23].p.v,s[24].p.v,s[25].p.v,s[26].p.v,s[27].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||s[30].p.mdf||s[31].p.mdf||s[32].p.mdf||s[33].p.mdf||s[34].p.mdf)&&(e=this.getTableValue(s[30].p.v,s[31].p.v,s[32].p.v,s[33].p.v,s[34].p.v),this.feFuncA.setAttribute("tableValues",e))}},gt.prototype.renderFrame=function(t){if(t||this.filterManager.mdf){if((t||this.filterManager.effectElements[4].p.mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p.mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",w(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p.mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p.mdf||this.filterManager.effectElements[3].p.mdf){var s=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*c,a=s*Math.cos(i),r=s*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",r)}}},yt.prototype.setElementAsMask=function(t,e){var s=document.createElementNS(i,"mask");s.setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),s.appendChild(e.layerElement),t.setMatte(e.layerId),e.data.hd=!1,t.globalData.defs.appendChild(s)},yt.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=0,s=this.elem.comp.elements.length;e<s;)this.elem.comp.elements[e].data.ind===t&&this.setElementAsMask(this.elem,this.elem.comp.elements[e]),e+=1;this.initialized=!0},yt.prototype.renderFrame=function(){this.initialized||this.initialize()},vt.prototype.renderFrame=function(t){var e,s=this.filters.length;for(e=0;e<s;e+=1)this.filters[e].renderFrame(t)},C(ht,bt),bt.prototype.hide=function(){if(!this.hidden){this._parent.hide.call(this);var t,e=this.elements.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].hide()}},bt.prototype.prepareFrame=function(t){if(this._parent.prepareFrame.call(this,t),!1!==this.isVisible||this.data.xt){if(this.tm){var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}else this.renderedFrame=t/this.data.sr;var s,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=0;s<i;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st)}},bt.prototype.renderFrame=function(t){var e,s=this._parent.renderFrame.call(this,t),i=this.layers.length;if(!1!==s){for(this.hidden&&this.show(),e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();this.firstFrame&&(this.firstFrame=!1)}else this.hide()},bt.prototype.setElements=function(t){this.elements=t},bt.prototype.getElements=function(){return this.elements},bt.prototype.destroy=function(){this._parent.destroy.call(this._parent);var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},bt.prototype.checkLayers=at.prototype.checkLayers,bt.prototype.buildItem=at.prototype.buildItem,bt.prototype.buildAllItems=at.prototype.buildAllItems,bt.prototype.buildElementParenting=at.prototype.buildElementParenting,bt.prototype.createItem=at.prototype.createItem,bt.prototype.createImage=at.prototype.createImage,bt.prototype.createComp=at.prototype.createComp,bt.prototype.createSolid=at.prototype.createSolid,bt.prototype.createShape=at.prototype.createShape,bt.prototype.createText=at.prototype.createText,bt.prototype.createBase=at.prototype.createBase,bt.prototype.appendElementInPos=at.prototype.appendElementInPos,bt.prototype.checkPendingElements=at.prototype.checkPendingElements,bt.prototype.addPendingElement=at.prototype.addPendingElement,C(ht,kt),kt.prototype.createElements=function(){var t=this.globalData.getAssetsPath(this.assetData);this._parent.createElements.call(this),this.innerElem=document.createElementNS(i,"image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio","xMidYMid slice"),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.maskedElement=this.innerElem,this.layerElement.appendChild(this.innerElem),this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl)},kt.prototype.renderFrame=function(t){!1!==this._parent.renderFrame.call(this,t)?(this.hidden&&this.show(),this.firstFrame&&(this.firstFrame=!1)):this.hide()},kt.prototype.destroy=function(){this._parent.destroy.call(this._parent),this.innerElem=null},C(ht,At),At.prototype.createElements=function(){this._parent.createElements.call(this);var t=document.createElementNS(i,"rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t),this.innerElem=t,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl)},At.prototype.renderFrame=kt.prototype.renderFrame,At.prototype.destroy=kt.prototype.destroy;var Pt=function(){var e={},s=[],i=0,a=0,r=!0,n=0;function h(t){for(var e=0,i=t.target;e<a;)s[e].animation===i&&(s.splice(e,1),e-=1,a-=1,i.isPaused||p()),e+=1}function o(t,e){if(!t)return null;for(var i=0;i<a;){if(s[i].elem==t&&null!==s[i].elem)return s[i].animation;i+=1}var r=new Et;return f(r,t),r.setData(t,e),r}function l(){n+=1,r&&(r=!1,t.requestAnimationFrame(d))}function p(){0==(n-=1)&&(r=!0)}function f(t,e){t.addEventListener("destroy",h),t.addEventListener("_active",l),t.addEventListener("_idle",p),s.push({elem:e,animation:t}),a+=1}function m(e){var n,h=e-i;for(n=0;n<a;n+=1)s[n].animation.advanceTime(h);i=e,r||t.requestAnimationFrame(m)}function d(e){i=e,t.requestAnimationFrame(m)}function c(){t.requestAnimationFrame(d)}return setTimeout(c,0),e.registerAnimation=o,e.loadAnimation=function(t){var e=new Et;return f(e,null),e.setParams(t),e},e.setSpeed=function(t,e){var i;for(i=0;i<a;i+=1)s[i].animation.setSpeed(t,e)},e.setDirection=function(t,e){var i;for(i=0;i<a;i+=1)s[i].animation.setDirection(t,e)},e.play=function(t){var e;for(e=0;e<a;e+=1)s[e].animation.play(t)},e.moveFrame=function(t,e){var r;for(i=Date.now(),r=0;r<a;r+=1)s[r].animation.moveFrame(t,e)},e.pause=function(t){var e;for(e=0;e<a;e+=1)s[e].animation.pause(t)},e.stop=function(t){var e;for(e=0;e<a;e+=1)s[e].animation.stop(t)},e.togglePause=function(t){var e;for(e=0;e<a;e+=1)s[e].animation.togglePause(t)},e.searchAnimations=function(t,e,s){var i,a=document.getElementsByClassName("bodymovin"),r=a.length;for(i=0;i<r;i+=1)s&&a[i].setAttribute("data-bm-type",s),o(a[i],t);if(e&&0===r){s||(s="svg");var n=document.getElementsByTagName("body")[0];n.innerHTML="";var h=document.createElement("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",s),n.appendChild(h),o(h,t)}},e.resize=function(){var t;for(t=0;t<a;t+=1)s[t].animation.resize()},e.start=c,e.goToAndStop=function(t,e,i){var r;for(r=0;r<a;r+=1)s[r].animation.goToAndStop(t,e,i)},e.destroy=function(t){var e;for(e=a-1;e>=0;e-=1)s[e].animation.destroy(t)},e}(),Et=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.pendingElements=0,this.playCount=0,this.prerenderFramesFlag=!0,this.animationData={},this.layers=[],this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=P(10),this.scaleMode="fit",this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=n,this.segments=[],this.pendingSegment=!1,this._idle=!0,this.projectInterface={}};Et.prototype.setParams=function(t){var e=this;t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var s=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(s){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new at(this,t.rendererSettings);break;case"hybrid":case"html":default:this.renderer=new HybridRenderer(this,t.rendererSettings)}if(this.renderer.setProjectInterface(this.projectInterface),this.animType=s,""===t.loop||null===t.loop||(!1===t.loop?this.loop=!1:!0===t.loop?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.prerenderFramesFlag=!("prerender"in t)||t.prerender,this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,t.animationData)e.configAnimation(t.animationData);else if(t.path){"json"!=t.path.substr(-4)&&("/"!=t.path.substr(-1,1)&&(t.path+="/"),t.path+="data.json");var i=new XMLHttpRequest;-1!=t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.assetsPath=t.assetsPath,this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),i.open("GET",t.path,!0),i.send(),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status)e.configAnimation(JSON.parse(i.responseText));else try{var t=JSON.parse(i.responseText);e.configAnimation(t)}catch(t){}}}},Et.prototype.setData=function(t,e){var s={wrapper:t,animationData:e?"object"===r(e)?e:JSON.parse(e):null},i=t.attributes;s.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",s.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";""===a||(s.loop="false"!==a&&("true"===a||parseInt(a)));var n=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;s.autoplay="false"!==n,s.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(s.prerender=!1),this.setParams(s)},Et.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);var s,i,a=this.animationData.layers,r=a.length,n=t.layers,h=n.length;for(i=0;i<h;i+=1)for(s=0;s<r;){if(a[s].id==n[i].id){a[s]=n[i];break}s+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,s=0;s<r;s+=1)this.animationData.assets.push(t.assets[s]);this.animationData.__complete=!1,L.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),e&&e.initExpressions(this),this.renderer.renderFrame(null),this.loadNextSegment()},Et.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.animationData.tf);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var s=new XMLHttpRequest,i=this,a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,s.open("GET",a,!0),s.send(),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status)i.includeLayers(JSON.parse(s.responseText));else try{var t=JSON.parse(s.responseText);i.includeLayers(t)}catch(t){}}},Et.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.animationData.tf),this.loadNextSegment()},Et.prototype.configAnimation=function(t){var e=this;this.renderer&&this.renderer.destroyed||(this.animationData=t,this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.animationData.tf=this.totalFrames,this.renderer.configAnimation(t),t.assets||(t.assets=[]),t.comps&&(t.assets=t.assets.concat(t.comps),t.comps=null),this.renderer.searchExtraCompositions(t.assets),this.layers=this.animationData.layers,this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.firstFrame=Math.round(this.animationData.ip),this.frameMult=this.animationData.fr/1e3,this.trigger("config_ready"),this.imagePreloader=new H,this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(t.assets,(function(t){t||e.trigger("loaded_images")})),this.loadSegments(),this.updaFrameModifier(),this.renderer.globalData.fontManager?this.waitForFontsLoaded():(L.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()))},Et.prototype.waitForFontsLoaded=function(){function t(){this.renderer.globalData.fontManager.loaded?(L.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()):setTimeout(t.bind(this),20)}return function(){t.bind(this)()}}(),Et.prototype.addPendingElement=function(){this.pendingElements+=1},Et.prototype.elementLoaded=function(){this.pendingElements--,this.checkLoaded()},Et.prototype.checkLoaded=function(){0===this.pendingElements&&(e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.isLoaded=!0,this.gotoFrame(),this.autoplay&&this.play())},Et.prototype.resize=function(){this.renderer.updateContainerSize()},Et.prototype.setSubframe=function(t){this.subframeEnabled=!!t},Et.prototype.gotoFrame=function(){this.subframeEnabled?this.currentFrame=this.currentRawFrame:this.currentFrame=Math.floor(this.currentRawFrame),this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},Et.prototype.renderFrame=function(){!1!==this.isLoaded&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},Et.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},Et.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this.pendingSegment||(this._idle=!0,this.trigger("_idle")))},Et.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},Et.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.currentFrame=this.currentRawFrame=0,this.playCount=0,this.gotoFrame())},Et.prototype.goToAndStop=function(t,e,s){s&&this.name!=s||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},Et.prototype.goToAndPlay=function(t,e,s){this.goToAndStop(t,e,s),this.play()},Et.prototype.advanceTime=function(t){if(this.pendingSegment)return this.pendingSegment=!1,this.adjustSegment(this.segments.shift()),void(this.isPaused&&this.play());!0!==this.isPaused&&!1!==this.isLoaded&&this.setCurrentRawFrameValue(this.currentRawFrame+t*this.frameModifier)},Et.prototype.updateAnimation=function(t){this.setCurrentRawFrameValue(this.totalFrames*t)},Et.prototype.moveFrame=function(t,e){e&&this.name!=e||this.setCurrentRawFrameValue(this.currentRawFrame+t)},Et.prototype.adjustSegment=function(t){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.01)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(0)),this.trigger("segmentStart")},Et.prototype.setSegment=function(t,e){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?s=t:this.currentRawFrame+this.firstFrame>e&&(s=e-t-.01)),this.firstFrame=t,this.totalFrames=e-t,-1!==s&&this.goToAndStop(s,!0)},Et.prototype.playSegments=function(t,e){if("object"===r(t[0])){var s,i=t.length;for(s=0;s<i;s+=1)this.segments.push(t[s])}else this.segments.push(t);e&&this.adjustSegment(this.segments.shift()),this.isPaused&&this.play()},Et.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip*this.frameRate,Math.floor(this.animationData.op-this.animationData.ip+this.animationData.ip*this.frameRate)]),t&&this.adjustSegment(this.segments.shift())},Et.prototype.checkSegments=function(){this.segments.length&&(this.pendingSegment=!0)},Et.prototype.remove=function(t){t&&this.name!=t||this.renderer.destroy()},Et.prototype.destroy=function(t){t&&this.name!=t||this.renderer&&this.renderer.destroyed||(this.renderer.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null)},Et.prototype.setCurrentRawFrameValue=function(t){if(this.currentRawFrame=t,this.currentRawFrame>=this.totalFrames){if(this.checkSegments(),!1===this.loop)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");if(this.trigger("loopComplete"),this.playCount+=1,!0!==this.loop&&this.playCount==this.loop||this.pendingSegment)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");this.currentRawFrame=this.currentRawFrame%this.totalFrames}else if(this.currentRawFrame<0)return this.checkSegments(),this.playCount-=1,this.playCount<0&&(this.playCount=0),!1===this.loop||this.pendingSegment?(this.currentRawFrame=0,this.gotoFrame(),this.pause(),void this.trigger("complete")):(this.trigger("loopComplete"),this.currentRawFrame=(this.totalFrames+this.currentRawFrame)%this.totalFrames,void this.gotoFrame());this.gotoFrame()},Et.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},Et.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},Et.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},Et.prototype.getPath=function(){return this.path},Et.prototype.getAssetsPath=function(t){var e="";if(this.assetsPath){var s=t.p;-1!==s.indexOf("images/")&&(s=s.split("/")[1]),e=this.assetsPath+s}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},Et.prototype.getAssetData=function(t){for(var e=0,s=this.assets.length;e<s;){if(t==this.assets[e].id)return this.assets[e];e+=1}},Et.prototype.hide=function(){this.renderer.hide()},Et.prototype.show=function(){this.renderer.show()},Et.prototype.getAssets=function(){return this.assets},Et.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new y(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"loopComplete":this.triggerEvent(t,new b(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new v(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new k(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new A(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new y(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new b(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new v(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new k(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new A(t,this))},Et.prototype.addEventListener=function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},Et.prototype.removeEventListener=function(t,e){if(e){if(this._cbs[t]){for(var s=0,i=this._cbs[t].length;s<i;)this._cbs[t][s]===e&&(this._cbs[t].splice(s,1),s-=1,i-=1),s+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null},Et.prototype.triggerEvent=function(t,e){if(this._cbs[t])for(var s=this._cbs[t].length,i=0;i<s;i++)this._cbs[t][i](e)};var Mt={};function _t(){!0===St?Pt.searchAnimations(Ft,St,wt):Pt.searchAnimations()}Mt.play=function(t){Pt.play(t)},Mt.pause=function(t){Pt.pause(t)},Mt.setLocationHref=function(t){a=t},Mt.togglePause=function(t){Pt.togglePause(t)},Mt.setSpeed=function(t,e){Pt.setSpeed(t,e)},Mt.setDirection=function(t,e){Pt.setDirection(t,e)},Mt.stop=function(t){Pt.stop(t)},Mt.moveFrame=function(t){Pt.moveFrame(t)},Mt.searchAnimations=_t,Mt.registerAnimation=function(t){return Pt.registerAnimation(t)},Mt.loadAnimation=function(t){return!0===St&&(t.animationData=JSON.parse(Ft)),Pt.loadAnimation(t)},Mt.setSubframeRendering=function(t){n=t},Mt.resize=function(){Pt.resize()},Mt.start=function(){Pt.start()},Mt.goToAndStop=function(t,e,s){Pt.goToAndStop(t,e,s)},Mt.destroy=function(t){return Pt.destroy(t)},Mt.setQuality=function(t){if("string"==typeof t)switch(t){case"high":d=200;break;case"medium":d=50;break;case"low":d=10}else!isNaN(t)&&t>1&&(d=t);u(!(d>=50))},Mt.inBrowser=function(){return"undefined"!=typeof navigator},Mt.installPlugin=function(t,s){"expressions"===t&&(e=s)},Mt.__getFactory=function(t){switch(t){case"propertyFactory":return V;case"shapePropertyFactory":return j;case"matrix":return x}},Mt.version="4.13.0";var St="__[STANDALONE]__",Ft="__[ANIMATIONDATA]__",wt="";if(St){var xt=document.getElementsByTagName("script"),Dt=(xt[xt.length-1]||{src:""}).src.replace(/^[^\?]+\??/,"");wt=function(t){for(var e=Dt.split("&"),s=0;s<e.length;s++){var i=e[s].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}}("renderer")}var Ct=setInterval((function(){"complete"===document.readyState&&(clearInterval(Ct),_t())}),100);return Mt}(a)}.call(e,s,e,t))||(t.exports=i)}}]);