blob: 2c4113f7a654e3715b5fd84a2eb26bc7707b226b [file] [log] [blame]
!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof module&&module.exports?module.exports=e():t.bodymovin=e()}(window,function(){function t(){return{}}function e(t){mt=t?Math.round:function(t){return t}}function s(t){return Math.round(1e4*t)/1e4}function i(t){t.style.userSelect="none",t.style.MozUserSelect="none",t.style.webkitUserSelect="none",t.style.oUserSelect="none"}function a(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=0>i?-1:1}function r(t,e){this.type=t,this.direction=0>e?-1:1}function n(t,e,s,i){this.type=t,this.currentLoop=e,this.totalLoops=s,this.direction=0>i?-1:1}function h(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}function o(t,e){this.type=t,this.target=e}function p(t,e){this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e)}function l(t,e){if(e){if(this._cbs[t]){for(var s=0,i=this._cbs[t].length;i>s;)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}function m(t,e){if(this._cbs[t])for(var s=this._cbs[t].length,i=0;s>i;i++)this._cbs[t][i](e)}function f(t,e){void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var s,i="";for(s=t;s>0;--s)i+=e[Math.round(Math.random()*(e.length-1))];return i}function d(t,e,s){var i,a,r,n,h,o,p,l;switch(1===arguments.length&&(e=t.s,s=t.v,t=t.h),n=Math.floor(6*t),h=6*t-n,o=s*(1-e),p=s*(1-h*e),l=s*(1-(1-h)*e),n%6){case 0:i=s,a=l,r=o;break;case 1:i=p,a=s,r=o;break;case 2:i=o,a=s,r=l;break;case 3:i=o,a=p,r=s;break;case 4:i=l,a=o,r=s;break;case 5:i=s,a=o,r=p}return[i,a,r]}function c(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*(s>e?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 u(t,e){var s=c(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),d(s[0],s[1],s[2])}function v(t,e){var s=c(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),d(s[0],s[1],s[2])}function g(t,e){var s=c(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),d(s[0],s[1],s[2])}function y(t,e,s,i,a,r){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=a,this.props=r}function b(t,e){var s,i,a=[],r=[],n=[],h={},o=0;e&&(a[0]=t.o[0],r[0]=t.i[0],n[0]=t.v[0],o=1),i=t.i.length;var p=i-1;for(s=o;i>s;s+=1)a.push(t.o[p]),r.push(t.i[p]),n.push(t.v[p]),p-=1;return h.i=a,h.o=r,h.v=n,h}function k(){}function P(t,e,s){if(!e){var i=Object.create(t.prototype,s),a={};return i&&"[object Function]"===a.toString.call(i.init)&&i.init(),i}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype._parent=t.prototype}function A(t,e){for(var s in t.prototype)t.prototype.hasOwnProperty(s)&&(e.prototype[s]=t.prototype[s])}function M(){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&&1e-4>n}function e(e,s,i,a,r,n,h,o,p){return t(e,s,a,r,h,o)&&t(e,i,a,n,h,p)}function s(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}function a(t,e){var s=e.segments,i=s.length,a=gt((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,(0>a||a>=i-1)&&(o=!1);return s[a].p+(s[a+1].p-s[a].p)*n}function r(){this.pt1=new Array(2),this.pt2=new Array(2),this.pt3=new Array(2),this.pt4=new Array(2)}function n(t,e,s,i,n,h,o){var p=new r;n=0>n?0:n>1?1:n;var l=a(n,o);h=h>1?1:h;var m,f=a(h,o),d=t.length,c=1-l,u=1-f;for(m=0;d>m;m+=1)p.pt1[m]=Math.round(1e3*(c*c*c*t[m]+(l*c*c+c*l*c+c*c*l)*s[m]+(l*l*c+c*l*l+l*c*l)*i[m]+l*l*l*e[m]))/1e3,p.pt3[m]=Math.round(1e3*(c*c*u*t[m]+(l*c*u+c*l*u+c*c*f)*s[m]+(l*l*u+c*l*f+l*c*f)*i[m]+l*l*f*e[m]))/1e3,p.pt4[m]=Math.round(1e3*(c*u*u*t[m]+(l*u*u+c*f*u+c*u*f)*s[m]+(l*f*u+c*f*f+l*u*f)*i[m]+l*f*f*e[m]))/1e3,p.pt2[m]=Math.round(1e3*(u*u*u*t[m]+(f*u*u+u*f*u+u*u*f)*s[m]+(f*f*u+u*f*f+f*u*f)*i[m]+f*f*f*e[m]))/1e3;return p}var h=(Math,function(){function t(t,e){this.l=t,this.p=e}return function(e,s,i,a){var r,n,h,o,p,l,m=kt,f=0,d=[],c=[],u={addedLength:0,segments:[]};for(h=i.length,r=0;m>r;r+=1){for(p=r/(m-1),l=0,n=0;h>n;n+=1)o=ut(1-p,3)*e[n]+3*ut(1-p,2)*p*i[n]+3*(1-p)*ut(p,2)*a[n]+ut(p,3)*s[n],d[n]=o,null!==c[n]&&(l+=ut(d[n]-c[n],2)),c[n]=d[n];l&&(l=vt(l),f+=l),u.segments.push(new t(f,p))}return u.addedLength=f,u}}()),o=function(){var e={};return function(a){var r=a.s,n=a.e,h=a.to,o=a.ti,p=(r.join("_")+"_"+n.join("_")+"_"+h.join("_")+"_"+o.join("_")).replace(/\./g,"p");if(e[p])return void(a.bezierData=e[p]);var l,m,f,d,c,u,v,g=kt,y=0,b=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]+o[0],n[1]+o[1])&&(g=2);var k=new s(g);for(f=h.length,l=0;g>l;l+=1){for(v=new Array(f),c=l/(g-1),u=0,m=0;f>m;m+=1)d=ut(1-c,3)*r[m]+3*ut(1-c,2)*c*(r[m]+h[m])+3*(1-c)*ut(c,2)*(n[m]+o[m])+ut(c,3)*n[m],v[m]=d,null!==b&&(u+=ut(v[m]-b[m],2));u=vt(u),y+=u,k.points[l]=new i(u,v),b=v}k.segmentLength=y,a.bezierData=k,e[p]=k}}();return{getBezierLength:h,getNewSegment:n,buildBezierData:o,pointOnLine2D:t,pointOnLine3D:e}}function E(){function t(a,r,h){var o,p,l,m,f,d,c,u,v=a.length;for(m=0;v>m;m+=1)if(o=a[m],"ks"in o&&!o.completed){if(o.completed=!0,o.tt&&(a[m-1].td=o.tt),p=[],l=-1,o.hasMask){var g=o.masksProperties;for(d=g.length,f=0;d>f;f+=1)if(g[f].pt.k.i)i(g[f].pt.k);else for(u=g[f].pt.k.length,c=0;u>c;c+=1)g[f].pt.k[c].s&&i(g[f].pt.k[c].s[0]),g[f].pt.k[c].e&&i(g[f].pt.k[c].e[0])}0===o.ty?(o.layers=e(o.refId,r),t(o.layers,r,h)):4===o.ty?s(o.shapes):5==o.ty&&n(o,h)}}function e(t,e){for(var s=0,i=e.length;i>s;){if(e[s].id===t)return e[s].layers;s+=1}}function s(t){var e,a,r,n=t.length,h=!1;for(e=n-1;e>=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)i(t[e].ks.k);else for(r=t[e].ks.k.length,a=0;r>a;a+=1)t[e].ks.k[a].s&&i(t[e].ks.k[a].s[0]),t[e].ks.k[a].e&&i(t[e].ks.k[a].e[0]);h=!0}else"gr"==t[e].ty&&s(t[e].it)}function i(t){var e,s=t.i.length;for(e=0;s>e;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function a(t,e){var s=e?e.split("."):[100,100,100];return t[0]>s[0]?!0:s[0]>t[0]?!1:t[1]>s[1]?!0:s[1]>t[1]?!1:t[2]>s[2]?!0:s[2]>t[2]?!1:void 0}function r(e,s){e.__complete||(o(e),h(e),p(e),t(e.layers,e.assets,s),e.__complete=!0)}function n(t,e){var s,i,a=t.t.d.k,r=a.length;for(i=0;r>i;i+=1){var n=t.t.d.k[i].s;s=[];var h,o,p,l,m,f,d,c=0,u=t.t.m.g,v=0,g=0,y=0,b=[],k=0,P=0,A=e.getFontByName(n.f),M=0,E=A.fStyle.split(" "),w="normal",S="normal";for(o=E.length,h=0;o>h;h+=1)"italic"===E[h].toLowerCase()?S="italic":"bold"===E[h].toLowerCase()?w="700":"black"===E[h].toLowerCase()?w="900":"medium"===E[h].toLowerCase()?w="500":"regular"===E[h].toLowerCase()||"normal"===E[h].toLowerCase()?w="400":("light"===E[h].toLowerCase()||"thin"===E[h].toLowerCase())&&(w="200");if(n.fWeight=w,n.fStyle=S,o=n.t.length,n.sz){var D=n.sz[0],F=-1;for(h=0;o>h;h+=1)p=!1," "===n.t.charAt(h)?F=h:13===n.t.charCodeAt(h)&&(k=0,p=!0),e.chars?(d=e.getCharData(n.t.charAt(h),A.fStyle,A.fFamily),M=p?0:d.w*n.s/100):M=e.measureText(n.t.charAt(h),n.f,n.s),k+M>D?(-1===F?(n.t=n.t.substr(0,h)+"\r"+n.t.substr(h),o+=1):(h=F,n.t=n.t.substr(0,h)+"\r"+n.t.substr(h+1)),F=-1,k=0):k+=M;o=n.t.length}for(k=0,M=0,h=0;o>h;h+=1)if(p=!1," "===n.t.charAt(h)?l=" ":13===n.t.charCodeAt(h)?(b.push(k),P=k>P?k:P,k=0,l="",p=!0,y+=1):l=n.t.charAt(h),e.chars?(d=e.getCharData(n.t.charAt(h),A.fStyle,e.getFontByName(n.f).fFamily),M=p?0:d.w*n.s/100):M=e.measureText(l,n.f,n.s),k+=M,s.push({l:M,an:M,add:v,n:p,anIndexes:[],val:l,line:y}),2==u){if(v+=M,""==l||" "==l||h==o-1){for((""==l||" "==l)&&(v-=M);h>=g;)s[g].an=v,s[g].ind=c,s[g].extra=M,g+=1;c+=1,v=0}}else if(3==u){if(v+=M,""==l||h==o-1){for(""==l&&(v-=M);h>=g;)s[g].an=v,s[g].ind=c,s[g].extra=M,g+=1;v=0,c+=1}}else s[c].ind=c,s[c].extra=0,c+=1;if(n.l=s,P=k>P?k:P,b.push(k),n.sz)n.boxWidth=n.sz[0],n.justifyOffset=0;else switch(n.boxWidth=P,n.j){case 1:n.justifyOffset=-n.boxWidth;break;case 2:n.justifyOffset=-n.boxWidth/2;break;default:n.justifyOffset=0}n.lineWidths=b;var x=t.t.a;f=x.length;var I,C,T=[];for(m=0;f>m;m+=1){for(x[m].a.sc&&(n.strokeColorAnim=!0),x[m].a.sw&&(n.strokeWidthAnim=!0),(x[m].a.fc||x[m].a.fh||x[m].a.fs||x[m].a.fb)&&(n.fillColorAnim=!0),C=0,I=x[m].s.b,h=0;o>h;h+=1)s[h].anIndexes[m]=C,(1==I&&""!=s[h].val||2==I&&""!=s[h].val&&" "!=s[h].val||3==I&&(s[h].n||" "==s[h].val||h==o-1)||4==I&&(s[h].n||h==o-1))&&(1===x[m].s.rn&&T.push(C),C+=1);t.t.a[m].s.totalChars=C;var L,N=-1;if(1===x[m].s.rn)for(h=0;o>h;h+=1)N!=s[h].anIndexes[m]&&(N=s[h].anIndexes[m],L=T.splice(Math.floor(Math.random()*T.length),1)[0]),s[h].anIndexes[m]=L}0!==f||"m"in t.t.p||(t.singleShape=!0),n.yOffset=n.lh||1.2*n.s,n.ascent=A.ascent*n.s/100}}var h=function(){function t(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function e(e){var s,i=e.length;for(s=0;i>s;s+=1)5===e[s].ty&&t(e[s])}var s=[4,4,14];return function(t){if(a(s,t.v)&&(e(t.layers),t.assets)){var i,r=t.assets.length;for(i=0;r>i;i+=1)t.assets[i].layers&&e(t.assets[i].layers)}}}(),o=function(){function t(e){var s,i,a,r=e.length;for(s=0;r>s;s+=1)if("gr"===e[s].ty)t(e[s].it);else if("fl"===e[s].ty||"st"===e[s].ty)if(e[s].c.k&&e[s].c.k[0].i)for(a=e[s].c.k.length,i=0;a>i;i+=1)e[s].c.k[i].s&&(e[s].c.k[i].s[0]/=255,e[s].c.k[i].s[1]/=255,e[s].c.k[i].s[2]/=255,e[s].c.k[i].s[3]/=255),e[s].c.k[i].e&&(e[s].c.k[i].e[0]/=255,e[s].c.k[i].e[1]/=255,e[s].c.k[i].e[2]/=255,e[s].c.k[i].e[3]/=255);else e[s].c.k[0]/=255,e[s].c.k[1]/=255,e[s].c.k[2]/=255,e[s].c.k[3]/=255}function e(e){var s,i=e.length;for(s=0;i>s;s+=1)4===e[s].ty&&t(e[s].shapes)}var s=[4,1,9];return function(t){if(a(s,t.v)&&(e(t.layers),t.assets)){var i,r=t.assets.length;for(i=0;r>i;i+=1)t.assets[i].layers&&e(t.assets[i].layers)}}}(),p=function(){function t(e){var s,i,a,r=e.length,n=!1;for(s=r-1;s>=0;s-=1)if("sh"==e[s].ty){if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(a=e[s].ks.k.length,i=0;a>i;i+=1)e[s].ks.k[i].s&&(e[s].ks.k[i].s[0].c=e[s].closed),e[s].ks.k[i].e&&(e[s].ks.k[i].e[0].c=e[s].closed);n=!0}else"gr"==e[s].ty&&t(e[s].it)}function e(e){var s,i,a,r,n,h,o=e.length;for(i=0;o>i;i+=1){if(s=e[i],s.hasMask){var p=s.masksProperties;for(r=p.length,a=0;r>a;a+=1)if(p[a].pt.k.i)p[a].pt.k.c=p[a].cl;else for(h=p[a].pt.k.length,n=0;h>n;n+=1)p[a].pt.k[n].s&&(p[a].pt.k[n].s[0].c=p[a].cl),p[a].pt.k[n].e&&(p[a].pt.k[n].e[0].c=p[a].cl)}4===s.ty&&t(s.shapes)}}var s=[4,4,18];return function(t){if(a(s,t.v)&&(e(t.layers),t.assets)){var i,r=t.assets.length;for(i=0;r>i;i+=1)t.assets[i].layers&&e(t.assets[i].layers)}}}(),l={};return l.completeData=r,l}function w(){}function S(){}function D(){}function F(){}function x(){}function I(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},this.elements=[],this.pendingElements=[],this.destroyed=!1}function C(t,e,s){this.dynamicProperties=[],this.data=t,this.element=e,this.globalData=s,this.paths=[],this.storedData=[],this.masksProperties=this.data.masksProperties,this.viewData=new Array(this.masksProperties.length),this.maskElement=null,this.firstFrame=!0;var i,a,r,n,h,o,p,l,m=this.globalData.defs,d=this.masksProperties.length,c=this.masksProperties,u=0,v=[],g=f(10),y="clipPath",b="clip-path";for(i=0;d>i;i++)if(("a"!==c[i].mode&&"n"!==c[i].mode||c[i].inv)&&(y="mask",b="mask"),"s"!=c[i].mode&&"i"!=c[i].mode||0!=u?h=null:(h=document.createElementNS(ft,"rect"),h.setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data?this.element.comp.data.w:this.element.globalData.compSize.w),h.setAttribute("height",this.element.comp.data?this.element.comp.data.h:this.element.globalData.compSize.h),v.push(h)),a=document.createElementNS(ft,"path"),"n"!=c[i].mode){if(u+=1,"s"==c[i].mode?a.setAttribute("fill","#000000"):a.setAttribute("fill","#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==c[i].x.k){y="mask",b="mask",l=Dt.getProp(this.element,c[i].x,0,null,this.dynamicProperties);var k="fi_"+f(10);o=document.createElementNS(ft,"filter"),o.setAttribute("id",k),p=document.createElementNS(ft,"feMorphology"),p.setAttribute("operator","dilate"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),o.appendChild(p),m.appendChild(o),"s"==c[i].mode?a.setAttribute("stroke","#000000"):a.setAttribute("stroke","#ffffff")}else p=null,l=null;if(this.storedData[i]={elem:a,x:l,expan:p,lastPath:"",lastOperator:"",filterId:k,lastRadius:0},"i"==c[i].mode){n=v.length;var P=document.createElementNS(ft,"g");for(r=0;n>r;r+=1)P.appendChild(v[r]);var A=document.createElementNS(ft,"mask");A.setAttribute("mask-type","alpha"),A.setAttribute("id",g+"_"+u),A.appendChild(a),m.appendChild(A),P.setAttribute("mask","url(#"+g+"_"+u+")"),v.length=0,v.push(P)}else v.push(a);c[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:a,lastPath:"",prop:Ft.getShapeProp(this.element,c[i],3,this.dynamicProperties,null)},h&&(this.viewData[i].invRect=h),this.viewData[i].prop.k||this.drawPath(c[i],this.viewData[i].prop.v,this.viewData[i])}else this.viewData[i]={prop:Ft.getShapeProp(this.element,c[i],3,this.dynamicProperties,null),elem:a},m.appendChild(a);for(this.maskElement=document.createElementNS(ft,y),d=v.length,i=0;d>i;i+=1)this.maskElement.appendChild(v[i]);this.maskElement.setAttribute("id",g),u>0&&this.element.maskedElement.setAttribute(b,"url(#"+g+")"),m.appendChild(this.maskElement)}function T(){}function L(t,e,s,i,a){this.globalData=s,this.comp=i,this.data=t,this.matteElement=null,this.parentContainer=e,this.layerId=a?a.layerId:"ly_"+f(10),this.placeholder=a,this.init()}function N(t,e,s,i){}function _(t,e,s,i,a){this.textSpans=[],this.renderType="svg",this._parent.constructor.call(this,t,e,s,i,a)}function V(t){var e,s=t.data.ef.length,i=document.createElementNS(ft,"filter"),a=0;this.filters=[];var r;for(e=0;s>e;e+=1)20===t.data.ef[e].ty?(a+=1,r=new z(i,t.effects.effectElements[e]),this.filters.push(r)):21===t.data.ef[e].ty?(a+=1,r=new j(i,t.effects.effectElements[e]),this.filters.push(r)):22===t.data.ef[e].ty&&(r=new O(t,t.effects.effectElements[e]),this.filters.push(r));if(a){var n=f(10);i.setAttribute("id",n),i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%"),t.globalData.defs.appendChild(i),t.layerElement.setAttribute("filter","url(#"+n+")")}}function z(t,e){this.filterManager=e;var s=document.createElementNS(ft,"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(ft,"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"),s.setAttribute("result","f2"),t.appendChild(s),this.matrixFilter=s,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var i=document.createElementNS(ft,"feMerge");t.appendChild(i);var a;a=document.createElementNS(ft,"feMergeNode"),a.setAttribute("in","SourceGraphic"),i.appendChild(a),a=document.createElementNS(ft,"feMergeNode"),a.setAttribute("in","f2"),i.appendChild(a)}}function j(t,e){this.filterManager=e;var s=document.createElementNS(ft,"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 O(t,e){this.initialized=!1,this.filterManager=e,this.elem=t}function R(t,e,s,i,a){this._parent.constructor.call(this,t,e,s,i,a),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=Dt.getProp(this,this.data.tm,0,s.frameRate,this.dynamicProperties)),this.data.xt?(this.layerElement=document.createElementNS(ft,"g"),this.buildAllItems()):s.progressiveLoad||this.buildAllItems()}function B(t,e,s,i,a){this.assetData=s.getAssetData(t.refId),this._parent.constructor.call(this,t,e,s,i,a)}function q(t,e,s,i,a){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.viewData=[],this.shapeModifiers=[],this._parent.constructor.call(this,t,e,s,i,a)}function W(t,e,s,i,a){this._parent.constructor.call(this,t,e,s,i,a)}function G(t){Ct.play(t)}function X(t){Ct.pause(t)}function H(t){Ct.togglePause(t)}function Y(t,e){Ct.setSpeed(t,e)}function U(t,e){Ct.setDirection(t,e)}function Z(t){Ct.stop(t)}function K(t){Ct.moveFrame(t)}function J(){Nt===!0?Ct.searchAnimations(_t,Nt,Vt):Ct.searchAnimations()}function Q(t){return Ct.registerAnimation(t)}function $(){Ct.resize()}function tt(){Ct.start()}function et(t,e,s){Ct.goToAndStop(t,e,s)}function st(t){dt=t}function it(t){return Nt===!0&&(t.animationData=JSON.parse(_t)),Ct.loadAnimation(t)}function at(t){return Ct.destroy(t)}function rt(t){if("string"==typeof t)switch(t){case"high":kt=200;break;case"medium":kt=50;break;case"low":kt=10}else!isNaN(t)&&t>1&&(kt=t);e(kt>=50?!1:!0)}function nt(t,e){"expressions"===t&&(lt=e)}function ht(t){switch(t){case"propertyFactory":return Dt;case"shapePropertyFactory":return Ft;case"matrix":return k}}function ot(){"complete"===document.readyState&&(clearInterval(Bt),J())}function pt(t){for(var e=Rt.split("&"),s=0;s<e.length;s++){var i=e[s].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}}var lt,mt,ft="http://www.w3.org/2000/svg",dt=!0,ct=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ut=(Math.round,Math.pow),vt=Math.sqrt,gt=(Math.abs,Math.floor),yt=(Math.max,Math.min),bt={};!function(){var t,e=Object.getOwnPropertyNames(Math),s=e.length;for(t=0;s>t;t+=1)bt[e[t]]=Math[e[t]]}(),bt.random=Math.random,bt.abs=function(t){var e=typeof t;if("object"===e&&t.length){var s,i=Array.apply(null,{length:t.length}),a=t.length;for(s=0;a>s;s+=1)i[s]=Math.abs(t[s]);return i}return t};var kt=75,Pt=Math.PI/180,At=.5519;e(!1);var k=(function(){var t,e,s=[];for(t=0;256>t;t+=1)e=t.toString(16),s[t]=1==e.length?"0"+e:e;return function(t,e,i){return 0>t&&(t=0),0>e&&(e=0),0>i&&(i=0),"#"+s[t]+s[e]+s[i]}}(),function(){var t=[];return function(e,s){return void 0!==s&&(e[3]=s),t[e[0]]||(t[e[0]]={}),t[e[0]][e[1]]||(t[e[0]][e[1]]={}),t[e[0]][e[1]][e[2]]||(t[e[0]][e[1]][e[2]]={}),t[e[0]][e[1]][e[2]][e[3]]||(t[e[0]][e[1]][e[2]][e[3]]="rgba("+e.join(",")+")"),t[e[0]][e[1]][e[2]][e[3]]}}(),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 h(t,e){return this.shear(Math.tan(t),Math.tan(e))}function o(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 l(t,e,s,i,a,r,n,h,o,p,l,m,f,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]=p,this.props[10]=l,this.props[11]=m,this.props[12]=f,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 f(t,e,s,i,a,r,n,h,o,p,l,m,f,d,c,u){if(1===t&&0===e&&0===s&&0===i&&0===a&&1===r&&0===n&&0===h&&0===o&&0===p&&1===l&&0===m)return(0!==f||0!==d||0!==c)&&(this.props[12]=this.props[12]*t+this.props[13]*a+this.props[14]*o+this.props[15]*f,this.props[13]=this.props[12]*e+this.props[13]*r+this.props[14]*p+this.props[15]*d,this.props[14]=this.props[12]*s+this.props[13]*n+this.props[14]*l+this.props[15]*c,this.props[15]=this.props[12]*i+this.props[13]*h+this.props[14]*m+this.props[15]*u),this;var v=this.props[0],g=this.props[1],y=this.props[2],b=this.props[3],k=this.props[4],P=this.props[5],A=this.props[6],M=this.props[7],E=this.props[8],w=this.props[9],S=this.props[10],D=this.props[11],F=this.props[12],x=this.props[13],I=this.props[14],C=this.props[15];return this.props[0]=v*t+g*a+y*o+b*f,this.props[1]=v*e+g*r+y*p+b*d,this.props[2]=v*s+g*n+y*l+b*c,this.props[3]=v*i+g*h+y*m+b*u,this.props[4]=k*t+P*a+A*o+M*f,this.props[5]=k*e+P*r+A*p+M*d,this.props[6]=k*s+P*n+A*l+M*c,this.props[7]=k*i+P*h+A*m+M*u,this.props[8]=E*t+w*a+S*o+D*f,this.props[9]=E*e+w*r+S*p+D*d,this.props[10]=E*s+w*n+S*l+D*c,this.props[11]=E*i+w*h+S*m+D*u,this.props[12]=F*t+x*a+I*o+C*f,this.props[13]=F*e+x*r+I*p+C*d,this.props[14]=F*s+x*n+I*l+C*c,this.props[15]=F*i+x*h+I*m+C*u,this}function d(t){var e;for(e=0;16>e;e+=1)t.props[e]=this.props[e]}function c(t){var e;for(e=0;16>e;e+=1)this.props[e]=t[e]}function u(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 v(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}function g(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}function y(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}function b(t){var e,s=this.props[0]*this.props[5]-this.props[1]*this.props[4],i=this.props[5]/s,a=-this.props[1]/s,r=-this.props[4]/s,n=this.props[0]/s,h=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/s,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/s,p=t.length,l=[];for(e=0;p>e;e+=1)l[e]=[t[e][0]*i+t[e][1]*r+h,t[e][0]*a+t[e][1]*n+o,0];return l}function k(t,e,s){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 P(t,e){return mt(t*this.props[0]+e*this.props[4]+this.props[12])+","+mt(t*this.props[1]+e*this.props[5]+this.props[13])}function A(){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 M(){return ct?"matrix3d("+s(this.props[0])+","+s(this.props[1])+","+s(this.props[2])+","+s(this.props[3])+","+s(this.props[4])+","+s(this.props[5])+","+s(this.props[6])+","+s(this.props[7])+","+s(this.props[8])+","+s(this.props[9])+","+s(this.props[10])+","+s(this.props[11])+","+s(this.props[12])+","+s(this.props[13])+","+s(this.props[14])+","+s(this.props[15])+")":(this.cssParts[1]=this.props.join(","),this.cssParts.join(""))}function E(){return"matrix("+this.props[0]+","+this.props[1]+","+this.props[4]+","+this.props[5]+","+this.props[12]+","+this.props[13]+")"}function w(){return""+this.toArray()}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=a,this.rotateZ=r,this.skew=h,this.skewFromAxis=o,this.shear=n,this.scale=p,this.setTransform=l,this.translate=m,this.transform=f,this.applyToPoint=u,this.applyToX=v,this.applyToY=g,this.applyToZ=y,this.applyToPointArray=k,this.applyToPointStringified=P,this.toArray=A,this.toCSS=M,this.to2dCSS=E,this.toString=w,this.clone=d,this.cloneFromProps=c,this.inversePoints=b,this._t=this.transform,this.props=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.cssParts=["matrix3d(","",")"]}}());!function(t,e){function s(s,p,l){var d=[];p=1==p?{entropy:!0}:p||{};var y=n(r(p.entropy?[s,o(t)]:null==s?h():s,3),d),b=new i(d),k=function(){for(var t=b.g(f),e=u,s=0;v>t;)t=(t+s)*m,e*=m,s=b.g(1);for(;t>=g;)t/=2,e/=2,s>>>=1;return(t+s)/e};return k.int32=function(){return 0|b.g(4)},k.quick=function(){return b.g(4)/4294967296},k["double"]=k,n(o(b.S),t),(p.pass||l||function(t,s,i,r){return r&&(r.S&&a(r,b),t.state=function(){return a(b,{})}),i?(e[c]=t,s):t})(k,y,"global"in p?p.global:this==e,p.state)}function i(t){var e,s=t.length,i=this,a=0,r=i.i=i.j=0,n=i.S=[];for(s||(t=[s++]);m>a;)n[a]=a++;for(a=0;m>a;a++)n[a]=n[r=y&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=y&a+1],s=s*m+n[y&(n[a]=n[r=y&r+e])+(n[r]=e)];return i.i=a,i.j=r,s})(m)}function a(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function r(t,e){var s,i=[],a=typeof t;if(e&&"object"==a)for(s in t)try{i.push(r(t[s],e-1))}catch(n){}return i.length?i:"string"==a?t:t+"\x00"}function n(t,e){for(var s,i=t+"",a=0;a<i.length;)e[y&a]=y&(s^=19*e[y&a])+i.charCodeAt(a++);return o(e)}function h(){try{if(p)return o(p.randomBytes(m));var e=new Uint8Array(m);return(l.crypto||l.msCrypto).getRandomValues(e),o(e)}catch(s){var i=l.navigator,a=i&&i.plugins;return[+new Date,l,a,l.screen,o(t)]}}function o(t){return String.fromCharCode.apply(0,t)}var p,l=this,m=256,f=6,d=52,c="random",u=e.pow(m,f),v=e.pow(2,d),g=2*v,y=m-1;e["seed"+c]=s,n(e.random(),t)}([],bt);var Mt=function(){function t(t,e,s,i,a){var r=a||("bez_"+t+"_"+e+"_"+s+"_"+i).replace(/\./g,"p");if(l[r])return l[r];var n=new o([t,e,s,i]);return l[r]=n,n}function e(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function i(t){return 3*t}function a(t,a,r){return((e(a,r)*t+s(a,r))*t+i(a))*t}function r(t,a,r){return 3*e(a,r)*t*t+2*s(a,r)*t+i(a)}function n(t,e,s,i,r){var n,h,o=0;do h=e+(s-e)/2,n=a(h,i,r)-t,n>0?s=h:e=h;while(Math.abs(n)>d&&++o<c);return h}function h(t,e,s,i){for(var n=0;m>n;++n){var h=r(e,s,i);if(0===h)return e;var o=a(e,s,i)-t;e-=o/h}return e}function o(t){this._p=t,this._mSampleValues=g?new Float32Array(u):new Array(u),this._precomputed=!1,this.get=this.get.bind(this)}var p={};p.getBezierEasing=t;var l={},m=4,f=.001,d=1e-7,c=10,u=11,v=1/(u-1),g="function"==typeof Float32Array;return o.prototype={get:function(t){var e=this._p[0],s=this._p[1],i=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===s&&i===r?t:0===t?0:1===t?1:a(this._getTForX(t),s,r)},_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;u>s;++s)this._mSampleValues[s]=a(s*v,t,e)},_getTForX:function(t){for(var e=this._p[0],s=this._p[2],i=this._mSampleValues,a=0,o=1,p=u-1;o!==p&&i[o]<=t;++o)a+=v;--o;var l=(t-i[o])/(i[o+1]-i[o]),m=a+l*v,d=r(m,e,s);return d>=f?h(t,m,e,s):0===d?m:n(t,a,a+v,e,s)}},p}();!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s<e.length&&!window.requestAnimationFrame;++s)window.requestAnimationFrame=window[e[s]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[s]+"CancelAnimationFrame"]||window[e[s]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,s){var i=(new Date).getTime(),a=Math.max(0,16-(i-t)),r=window.setTimeout(function(){e(i+a)},a);return t=i+a,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var Et=M(),wt=E(),St=function(){function t(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 e(){var t,s,i,a=this.fonts.length,r=a;for(t=0;a>t;t+=1)if(this.fonts[t].loaded)r-=1;else if("t"===this.fonts[t].fOrigin){if(window.Typekit&&window.Typekit.load&&0===this.typekitLoaded){this.typekitLoaded=1;try{Typekit.load({async:!0,active:function(){this.typekitLoaded=2}.bind(this)})}catch(n){}}2===this.typekitLoaded&&(this.fonts[t].loaded=!0)}else"n"===this.fonts[t].fOrigin?this.fonts[t].loaded=!0:(s=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,s.offsetWidth!==i?(r-=1,this.fonts[t].loaded=!0):(s=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,s.offsetWidth!==i&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<o?setTimeout(e.bind(this),20):setTimeout(function(){this.loaded=!0}.bind(this),0)}function s(t,e){var s=document.createElementNS(ft,"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 i=document.createElement("canvas").getContext("2d");return i.font="100px "+e.fFamily,i}function i(i,a){if(!i)return void(this.loaded=!0);if(this.chars)return this.loaded=!0,void(this.fonts=i.list);var r,n=i.list,h=n.length;for(r=0;h>r;r+=1){if(n[r].loaded=!1,n[r].monoCase=t(n[r].fFamily,"monospace"),n[r].sansCase=t(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin){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+"');}",a.appendChild(o)}else if("g"===n[r].fOrigin){var p=document.createElement("link");p.type="text/css",p.rel="stylesheet",p.href=n[r].fPath,a.appendChild(p)}else if("t"===n[r].fOrigin){var l=document.createElement("script");l.setAttribute("src",n[r].fPath),a.appendChild(l)}}else n[r].loaded=!0;n[r].helper=s(a,n[r]),this.fonts.push(n[r])}e.bind(this)()}function a(t){if(t){this.chars||(this.chars=[]);var e,s,i,a=t.length,r=this.chars.length;for(e=0;a>e;e+=1){for(s=0,i=!1;r>s;)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)}}}function r(t,e,s){for(var i=0,a=this.chars.length;a>i;){if(this.chars[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===s)return this.chars[i];i+=1}}function n(t,e,s){var i=this.getFontByName(e),a=i.helper;return a.measureText(t).width*s/100}function h(t){for(var e=0,s=this.fonts.length;s>e;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return"sans-serif"}var o=5e3,p=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.loaded=!1,this.initTime=Date.now()};return p.prototype.addChars=a,p.prototype.addFonts=i,p.prototype.getCharData=r,p.prototype.getFontByName=h,p.prototype.measureText=n,p}(),Dt=function(){function t(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime;if(t===this.lastFrame||this.lastFrame!==p&&(this.lastFrame>=this.keyframes[this.keyframes.length-1].t-this.offsetTime&&t>=this.keyframes[this.keyframes.length-1].t-this.offsetTime||this.lastFrame<this.keyframes[0].t-this.offsetTime&&t<this.keyframes[0].t-this.offsetTime));else{for(var e,s,i=0,a=this.keyframes.length-1,r=1,n=!0;n;){if(e=this.keyframes[i],s=this.keyframes[i+1],i==a-1&&t>=s.t-this.offsetTime){e.h&&(e=s);break}if(s.t-this.offsetTime>t)break;a-1>i?i+=r:n=!1}var h,o,l,m,f,d=0;if(e.to){e.bezierData||Et.buildBezierData(e);var c=e.bezierData;if(t>=s.t-this.offsetTime||t<e.t-this.offsetTime){var u=t>=s.t-this.offsetTime?c.points.length-1:0;for(o=c.points[u].point.length,h=0;o>h;h+=1)this.v[h]=this.mult?c.points[u].point[h]*this.mult:c.points[u].point[h],
this.pv[h]=c.points[u].point[h],this.lastPValue[h]!==this.pv[h]&&(this.mdf=!0,this.lastPValue[h]=this.pv[h])}else{e.__fnct?f=e.__fnct:(f=Mt.getBezierEasing(e.o.x,e.o.y,e.i.x,e.i.y,e.n).get,e.__fnct=f),l=f((t-(e.t-this.offsetTime))/(s.t-this.offsetTime-(e.t-this.offsetTime)));var v,g=c.segmentLength*l,y=0;for(r=1,n=!0,m=c.points.length;n;){if(y+=c.points[d].partialLength*r,0===g||0===l||d==c.points.length-1){for(o=c.points[d].point.length,h=0;o>h;h+=1)this.v[h]=this.mult?c.points[d].point[h]*this.mult:c.points[d].point[h],this.pv[h]=c.points[d].point[h],this.lastPValue[h]!==this.pv[h]&&(this.mdf=!0,this.lastPValue[h]=this.pv[h]);break}if(g>=y&&g<y+c.points[d+1].partialLength){for(v=(g-y)/c.points[d+1].partialLength,o=c.points[d].point.length,h=0;o>h;h+=1)this.v[h]=this.mult?(c.points[d].point[h]+(c.points[d+1].point[h]-c.points[d].point[h])*v)*this.mult:c.points[d].point[h]+(c.points[d+1].point[h]-c.points[d].point[h])*v,this.pv[h]=c.points[d].point[h]+(c.points[d+1].point[h]-c.points[d].point[h])*v,this.lastPValue[h]!==this.pv[h]&&(this.mdf=!0,this.lastPValue[h]=this.pv[h]);break}m-1>d&&1==r||d>0&&-1==r?d+=r:n=!1}}}else{var b,k,P,A,M,E=!1;for(a=e.s.length,i=0;a>i;i+=1){if(1!==e.h&&(e.o.x instanceof Array?(E=!0,e.__fnct||(e.__fnct=[]),e.__fnct[i]||(b=e.o.x[i]||e.o.x[0],k=e.o.y[i]||e.o.y[0],P=e.i.x[i]||e.i.x[0],A=e.i.y[i]||e.i.y[0])):(E=!1,e.__fnct||(b=e.o.x,k=e.o.y,P=e.i.x,A=e.i.y)),E?e.__fnct[i]?f=e.__fnct[i]:(f=Mt.getBezierEasing(b,k,P,A).get,e.__fnct[i]=f):e.__fnct?f=e.__fnct:(f=Mt.getBezierEasing(b,k,P,A).get,e.__fnct=f),l=t>=s.t-this.offsetTime?1:t<e.t-this.offsetTime?0:f((t-(e.t-this.offsetTime))/(s.t-this.offsetTime-(e.t-this.offsetTime)))),this.sh&&1!==e.h){var w=e.s[i],S=e.e[i];-180>w-S?w+=360:w-S>180&&(w-=360),M=w+(S-w)*l}else M=1===e.h?e.s[i]:e.s[i]+(e.e[i]-e.s[i])*l;1===a?(this.v=this.mult?M*this.mult:M,this.pv=M,this.lastPValue!=this.pv&&(this.mdf=!0,this.lastPValue=this.pv)):(this.v[i]=this.mult?M*this.mult:M,this.pv[i]=M,this.lastPValue[i]!==this.pv[i]&&(this.mdf=!0,this.lastPValue[i]=this.pv[i]))}}}this.lastFrame=t,this.frameId=this.elem.globalData.frameId}}function e(){}function s(t,s,i){this.mult=i,this.v=i?s.k*i:s.k,this.pv=s.k,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.getValue=e}function i(t,s,i){this.mult=i,this.data=s,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1,this.v=new Array(s.k.length),this.pv=new Array(s.k.length),this.lastValue=new Array(s.k.length);var a=Array.apply(null,{length:s.k.length});this.vel=a.map(function(){return 0});var r,n=s.k.length;for(r=0;n>r;r+=1)this.v[r]=i?s.k[r]*i:s.k[r],this.pv[r]=s.k[r];this.getValue=e}function a(e,s,i){this.keyframes=s.k,this.offsetTime=e.data.st,this.lastValue=-99999,this.lastPValue=-99999,this.frameId=-1,this.k=!0,this.kf=!0,this.data=s,this.mult=i,this.elem=e,this.comp=e.comp,this.lastFrame=p,this.v=i?s.k[0].s[0]*i:s.k[0].s[0],this.pv=s.k[0].s[0],this.getValue=t}function r(e,s,i){var a,r,n,h,o,l=s.k.length;for(a=0;l-1>a;a+=1)s.k[a].to&&s.k[a].s&&s.k[a].e&&(r=s.k[a].s,n=s.k[a].e,h=s.k[a].to,o=s.k[a].ti,(2===r.length&&(r[0]!==n[0]||r[1]!==n[1])&&Et.pointOnLine2D(r[0],r[1],n[0],n[1],r[0]+h[0],r[1]+h[1])&&Et.pointOnLine2D(r[0],r[1],n[0],n[1],n[0]+o[0],n[1]+o[1])||3===r.length&&(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&Et.pointOnLine3D(r[0],r[1],r[2],n[0],n[1],n[2],r[0]+h[0],r[1]+h[1],r[2]+h[2])&&Et.pointOnLine3D(r[0],r[1],r[2],n[0],n[1],n[2],n[0]+o[0],n[1]+o[1],n[2]+o[2]))&&(s.k[a].to=null,s.k[a].ti=null));this.keyframes=s.k,this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this.mult=i,this.elem=e,this.comp=e.comp,this.getValue=t,this.frameId=-1,this.v=new Array(s.k[0].s.length),this.pv=new Array(s.k[0].s.length),this.lastValue=new Array(s.k[0].s.length),this.lastPValue=new Array(s.k[0].s.length),this.lastFrame=p}function n(t,e,n,h,o){var p;if(2===n)p=new l(t,e,o);else if(7===n)p=new TrimProperty(t,e,o);else if(e.k.length)if("number"==typeof e.k[0])p=new i(t,e,h);else switch(n){case 0:p=new a(t,e,h);break;case 1:p=new r(t,e,h)}else p=new s(t,e,h);return p.k&&o.push(p),p}function h(t,e,s,i){return new f(t,e,s,i)}function o(t,e,s){return new d(t,e,s)}var p=-999999,l=function(){function t(){return this.p.k&&this.p.getValue(),this.p.v.key||(this.p.v.key=function(t){return this.p.v.numKeys?this.p.keyframes[t-1].t:0}.bind(this)),this.p.v.numKeys||(this.p.v.numKeys=this.p.keyframes?this.p.keyframes.length:0),this.p.v.valueAtTime||(this.p.v.valueAtTime=this.p.getValueAtTime.bind(this.p)),this.p.v}function e(){return this.px.k&&this.px.getValue(),this.px.v}function s(){return this.py.k&&this.py.getValue(),this.py.v}function i(){return this.a.k&&this.a.getValue(),this.a.v}function a(){return this.or.k&&this.or.getValue(),this.or.v}function r(){return this.r.k&&this.r.getValue(),this.r.v/Pt}function n(){return this.s.k&&this.s.getValue(),this.s.v}function h(){return this.o.k&&this.o.getValue(),this.o.v}function o(){return this.sk.k&&this.sk.getValue(),this.sk.v}function p(){return this.sa.k&&this.sa.getValue(),this.sa.v}function l(t){var e,s=this.dynamicProperties.length;for(e=0;s>e;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 m(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].mdf&&(this.mdf=!0);if(this.mdf){if(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){var s,i;this.p.lastFrame+this.p.offsetTime<this.p.keyframes[0].t?(s=this.p.getValueAtTime(this.p.keyframes[0].t+.01,0),i=this.p.getValueAtTime(this.p.keyframes[0].t,0)):this.p.lastFrame+this.p.offsetTime>this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t,0),i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t-.01,0)):(s=this.p.pv,i=this.p.getValueAtTime(this.p.lastFrame+this.p.offsetTime-.01,this.p.offsetTime)),this.v.rotate(-Math.atan2(s[1]-i[1],s[0]-i[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 f(){this.inverted=!0,this.iv=new k,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(c,u,v){this.elem=c,this.frameId=-1,this.dynamicProperties=[],this.mdf=!1,this.data=u,this.getValue=m,this.applyToMatrix=l,this.setInverted=f,this.autoOrient=d,this.v=new k,u.p.s?(this.px=Dt.getProp(c,u.p.x,0,0,this.dynamicProperties),this.py=Dt.getProp(c,u.p.y,0,0,this.dynamicProperties),u.p.z&&(this.pz=Dt.getProp(c,u.p.z,0,0,this.dynamicProperties))):this.p=Dt.getProp(c,u.p,1,0,this.dynamicProperties),u.r?this.r=Dt.getProp(c,u.r,0,Pt,this.dynamicProperties):u.rx&&(this.rx=Dt.getProp(c,u.rx,0,Pt,this.dynamicProperties),this.ry=Dt.getProp(c,u.ry,0,Pt,this.dynamicProperties),this.rz=Dt.getProp(c,u.rz,0,Pt,this.dynamicProperties),this.or=Dt.getProp(c,u.or,0,Pt,this.dynamicProperties)),u.sk&&(this.sk=Dt.getProp(c,u.sk,0,Pt,this.dynamicProperties),this.sa=Dt.getProp(c,u.sa,0,Pt,this.dynamicProperties)),u.a&&(this.a=Dt.getProp(c,u.a,1,0,this.dynamicProperties)),u.s&&(this.s=Dt.getProp(c,u.s,1,.01,this.dynamicProperties)),this.o=u.o?Dt.getProp(c,u.o,0,.01,v):{mdf:!1,v:1},this.dynamicProperties.length?v.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?u.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:p})}}(),m=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;a>e;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;a>e;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=n(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)}}(),f=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;s>e;){if(this.dataProps[e].p.mdf){this.mdf=!0;break}e+=1}if(this.mdf||t)for("svg"===this.renderer&&(this.dasharray=""),e=0;s>e;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,this.dasharray="svg"===this.renderer?"":new Array(s.length-1),this.dashoffset=0;var r,n,h=s.length;for(r=0;h>r;r+=1)n=Dt.getProp(e,s[r].v,0,0,a),this.k=n.k?!0:this.k,this.dataProps[r]={n:s[r].n,p:n};this.getValue=t,this.k?a.push(this):this.getValue(!0)}}(),d=function(){function t(){if(this.dynamicProperties.length){var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].mdf&&(this.mdf=!0)}var s=this.data.totalChars,i=2===this.data.r?1:100/s,a=this.o.v/i,r=this.s.v/i+a,n=this.e.v/i+a;if(r>n){var h=r;r=n,n=h}this.finalS=r,this.finalE=n}function e(t){var e=Mt.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=h===n?t>=h?1:0:s(0,i(.5/(h-n)+(t-n)/(h-n),1)),r=e(r);else if(3==o)r=h===n?t>=h?0:1:1-s(0,i(.5/(h-n)+(t-n)/(h-n),1)),r=e(r);else if(4==o)h===n?r=t>=h?0:1:(r=s(0,i(.5/(h-n)+(t-n)/(h-n),1)),.5>r?r*=2:r=1-2*(r-.5)),r=e(r);else if(5==o){if(h===n)r=t>=h?0:1;else{var p=h-n;t=i(s(0,t+.5-n),h-n);var l=-p/2+t,m=p/2;r=Math.sqrt(1-l*l/(m*m))}r=e(r)}else 6==o?(h===n?r=t>=h?0:1:(t=i(s(0,t+.5-n),h-n),r=(1+Math.cos(Math.PI+2*Math.PI*t/(h-n)))/2),r=e(r)):(t>=a(n)&&(r=0>t-n?1-(n-t):s(0,i(h-t,1))),r=e(r));return r*this.a.v}var s=Math.max,i=Math.min,a=Math.floor;return this.mdf=!1,function(s,i,a){this.mdf=!1,this.k=!1,this.data=i,this.dynamicProperties=[],this.getValue=t,this.getMult=e,this.comp=s.comp,this.finalS=0,this.finalE=0,this.s=Dt.getProp(s,i.s||{k:0},0,0,this.dynamicProperties),this.e="e"in i?Dt.getProp(s,i.e,0,0,this.dynamicProperties):{v:2===i.r?i.totalChars:100},this.o=Dt.getProp(s,i.o||{k:0},0,0,this.dynamicProperties),this.xe=Dt.getProp(s,i.xe||{k:0},0,0,this.dynamicProperties),this.ne=Dt.getProp(s,i.ne||{k:0},0,0,this.dynamicProperties),this.a=Dt.getProp(s,i.a,0,.01,this.dynamicProperties),this.dynamicProperties.length?a.push(this):this.getValue()}}(),c={};return c.getProp=n,c.getDashProp=h,c.getTextSelectorProp=o,c.getGradientProp=m,c}(),Ft=function(){function t(){if(this.elem.globalData.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime;if(this.lastFrame!==n&&(this.lastFrame<this.keyframes[0].t-this.offsetTime&&t<this.keyframes[0].t-this.offsetTime||this.lastFrame>this.keyframes[this.keyframes.length-1].t-this.offsetTime&&t>this.keyframes[this.keyframes.length-1].t-this.offsetTime));else{var e,s,i;if(t<this.keyframes[0].t-this.offsetTime)e=this.keyframes[0].s[0],i=!0;else if(t>this.keyframes[this.keyframes.length-1].t-this.offsetTime)e=1===this.keyframes[this.keyframes.length-2].h?this.keyframes[this.keyframes.length-1].s[0]:this.keyframes[this.keyframes.length-2].e[0],i=!0;else{for(var a,r,h,o,p,l,m=0,f=this.keyframes.length-1,d=!0;d&&(a=this.keyframes[m],r=this.keyframes[m+1],!(r.t-this.offsetTime>t));)f-1>m?m+=1:d=!1;i=1===a.h,i&&m===f&&(a=r);var c;if(!i){var u;a.__fnct?u=a.__fnct:(u=Mt.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y).get,a.__fnct=u),c=t>=r.t-this.offsetTime?1:t<a.t-this.offsetTime?0:u((t-(a.t-this.offsetTime))/(r.t-this.offsetTime-(a.t-this.offsetTime))),s=a.e[0]}e=a.s[0]}o=this.v.i.length,l=e.i[0].length;var v,g=!1;for(h=0;o>h;h+=1)for(p=0;l>p;p+=1)i?(v=e.i[h][p],this.v.i[h][p]!==v&&(this.v.i[h][p]=v,this.pv.i[h][p]=v,g=!0),v=e.o[h][p],this.v.o[h][p]!==v&&(this.v.o[h][p]=v,this.pv.o[h][p]=v,g=!0),v=e.v[h][p],this.v.v[h][p]!==v&&(this.v.v[h][p]=v,this.pv.v[h][p]=v,g=!0)):(v=e.i[h][p]+(s.i[h][p]-e.i[h][p])*c,this.v.i[h][p]!==v&&(this.v.i[h][p]=v,this.pv.i[h][p]=v,g=!0),v=e.o[h][p]+(s.o[h][p]-e.o[h][p])*c,this.v.o[h][p]!==v&&(this.v.o[h][p]=v,this.pv.o[h][p]=v,g=!0),v=e.v[h][p]+(s.v[h][p]-e.v[h][p])*c,this.v.v[h][p]!==v&&(this.v.v[h][p]=v,this.pv.v[h][p]=v,g=!0));this.mdf=g,this.paths.length=0,this.v.c=e.c,this.paths[0]=this.v}this.lastFrame=t,this.frameId=this.elem.globalData.frameId}}function e(){return this.v}function s(){this.paths.length?(this.paths.length=1,this.paths[0]=this.v):this.paths=[this.v]}function i(t,i,a){this.comp=t.comp,this.k=!1,this.mdf=!1,this.numNodes=3===a?i.pt.k.v.length:i.ks.k.v.length,this.v=3===a?i.pt.k:i.ks.k,this.getValue=e,this.pv=this.v,this.paths=[this.v],this.reset=s}function a(e,i,a){this.comp=e.comp,this.elem=e,this.offsetTime=e.data.st,this.getValue=t,this.keyframes=3===a?i.pt.k:i.ks.k,this.k=!0;var r,h=this.keyframes[0].s[0].i.length,o=this.keyframes[0].s[0].i[0].length;for(this.numNodes=h,this.v={i:Array.apply(null,{length:h}),o:Array.apply(null,{length:h}),v:Array.apply(null,{length:h}),c:this.keyframes[0].s[0].c},this.pv={i:Array.apply(null,{length:h}),o:Array.apply(null,{length:h}),v:Array.apply(null,{length:h}),c:this.keyframes[0].s[0].c},r=0;h>r;r+=1)this.v.i[r]=Array.apply(null,{length:o}),this.v.o[r]=Array.apply(null,{length:o}),this.v.v[r]=Array.apply(null,{length:o}),this.pv.i[r]=Array.apply(null,{length:o}),this.pv.o[r]=Array.apply(null,{length:o}),this.pv.v[r]=Array.apply(null,{length:o});this.paths=[],this.lastFrame=n,this.reset=s}function r(t,e,s,r){var n;if(3===s||4===s){var l=3===s?e.pt.k:e.ks.k;n=l.length?new a(t,e,s):new i(t,e,s)}else 5===s?n=new p(t,e):6===s?n=new h(t,e):7===s&&(n=new o(t,e));return n.k&&r.push(n),n}var n=-999999,h=function(){function t(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,a=this.s.v[1]/2;2!==this.d&&3!==this.d?(this.v.v[0]=[t,e-a],this.v.i[0]=[t-s*i,e-a],this.v.o[0]=[t+s*i,e-a],this.v.v[1]=[t+s,e],this.v.i[1]=[t+s,e-a*i],this.v.o[1]=[t+s,e+a*i],this.v.v[2]=[t,e+a],this.v.i[2]=[t+s*i,e+a],this.v.o[2]=[t-s*i,e+a],this.v.v[3]=[t-s,e],this.v.i[3]=[t-s,e+a*i],this.v.o[3]=[t-s,e-a*i]):(this.v.v[0]=[t,e-a],this.v.o[0]=[t-s*i,e-a],this.v.i[0]=[t+s*i,e-a],this.v.v[1]=[t-s,e],this.v.o[1]=[t-s,e+a*i],this.v.i[1]=[t-s,e-a*i],this.v.v[2]=[t,e+a],this.v.o[2]=[t+s*i,e+a],this.v.i[2]=[t-s*i,e+a],this.v.v[3]=[t+s,e],this.v.o[3]=[t+s,e-a*i],this.v.i[3]=[t+s,e+a*i]),this.paths.length=0,this.paths[0]=this.v}function e(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;s>e;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&(this.convertEllToPath(),this.paths.length=0,this.paths[0]=this.v)}}var i=At;return function(i,a){this.v={v:Array.apply(null,{length:4}),i:Array.apply(null,{length:4}),o:Array.apply(null,{length:4}),c:!0},this.numNodes=4,this.d=a.d,this.dynamicProperties=[],this.paths=[],this.elem=i,this.comp=i.comp,this.frameId=-1,this.mdf=!1,this.getValue=e,this.convertEllToPath=t,this.reset=s,this.p=Dt.getProp(i,a.p,1,0,this.dynamicProperties),this.s=Dt.getProp(i,a.s,1,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertEllToPath()}}(),o=function(){function t(){var t=Math.floor(this.pt.v),e=2*Math.PI/t;this.v.v.length=t,this.v.i.length=t,this.v.o.length=t;var s,i=this.or.v,a=this.os.v,r=2*Math.PI*i/(4*t),n=-Math.PI/2,h=3===this.data.d?-1:1;for(n+=this.r.v,s=0;t>s;s+=1){var o=i*Math.cos(n),p=i*Math.sin(n),l=0===o&&0===p?0:p/Math.sqrt(o*o+p*p),m=0===o&&0===p?0:-o/Math.sqrt(o*o+p*p);o+=+this.p.v[0],p+=+this.p.v[1],this.v.v[s]=[o,p],this.v.i[s]=[o+l*r*a*h,p+m*r*a*h],this.v.o[s]=[o-l*r*a*h,p-m*r*a*h],n+=e*h}this.numNodes=t,this.paths.length=0,this.paths[0]=this.v}function e(){var t=2*Math.floor(this.pt.v),e=2*Math.PI/t;this.v.v.length=t,this.v.i.length=t,this.v.o.length=t;var s,i,a,r,n=!0,h=this.or.v,o=this.ir.v,p=this.os.v,l=this.is.v,m=2*Math.PI*h/(2*t),f=2*Math.PI*o/(2*t),d=-Math.PI/2;d+=this.r.v;var c=3===this.data.d?-1:1;for(s=0;t>s;s+=1){i=n?h:o,a=n?p:l,r=n?m:f;var u=i*Math.cos(d),v=i*Math.sin(d),g=0===u&&0===v?0:v/Math.sqrt(u*u+v*v),y=0===u&&0===v?0:-u/Math.sqrt(u*u+v*v);u+=+this.p.v[0],v+=+this.p.v[1],this.v.v[s]=[u,v],this.v.i[s]=[u+g*r*a*c,v+y*r*a*c],this.v.o[s]=[u-g*r*a*c,v-y*r*a*c],n=!n,d+=e*c}this.numNodes=t,this.paths.length=0,this.paths[0]=this.v}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;e>t;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t].mdf&&(this.mdf=!0);this.mdf&&this.convertToPath()}}return function(a,r){this.v={v:[],i:[],o:[],c:!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=s,1===r.sy?(this.ir=Dt.getProp(a,r.ir,0,0,this.dynamicProperties),this.is=Dt.getProp(a,r.is,0,.01,this.dynamicProperties),this.convertToPath=e):this.convertToPath=t,this.pt=Dt.getProp(a,r.pt,0,0,this.dynamicProperties),this.p=Dt.getProp(a,r.p,1,0,this.dynamicProperties),this.r=Dt.getProp(a,r.r,0,Pt,this.dynamicProperties),this.or=Dt.getProp(a,r.or,0,0,this.dynamicProperties),this.os=Dt.getProp(a,r.os,0,.01,this.dynamicProperties),this.paths=[],this.dynamicProperties.length?this.k=!0:this.convertToPath()}}(),p=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;s>e;e+=1)this.dynamicProperties[e].getValue(t),this.dynamicProperties[e].mdf&&(this.mdf=!0);this.mdf&&this.convertRectToPath()}}function e(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=yt(s,i,this.r.v),r=a*(1-At);2===this.d||1===this.d?(this.v.v[0]=[t+s,e-i+a],this.v.o[0]=this.v.v[0],this.v.i[0]=[t+s,e-i+r],this.v.v[1]=[t+s,e+i-a],this.v.o[1]=[t+s,e+i-r],this.v.i[1]=this.v.v[1],this.v.v[2]=[t+s-a,e+i],this.v.o[2]=this.v.v[2],this.v.i[2]=[t+s-r,e+i],this.v.v[3]=[t-s+a,e+i],this.v.o[3]=[t-s+r,e+i],this.v.i[3]=this.v.v[3],this.v.v[4]=[t-s,e+i-a],this.v.o[4]=this.v.v[4],this.v.i[4]=[t-s,e+i-r],this.v.v[5]=[t-s,e-i+a],this.v.o[5]=[t-s,e-i+r],this.v.i[5]=this.v.v[5],this.v.v[6]=[t-s+a,e-i],this.v.o[6]=this.v.v[6],this.v.i[6]=[t-s+r,e-i],this.v.v[7]=[t+s-a,e-i],this.v.o[7]=[t+s-r,e-i],this.v.i[7]=this.v.v[7]):(this.v.v[0]=[t+s,e-i+a],this.v.o[0]=[t+s,e-i+r],this.v.i[0]=this.v.v[0],this.v.v[1]=[t+s-a,e-i],this.v.o[1]=this.v.v[1],this.v.i[1]=[t+s-r,e-i],this.v.v[2]=[t-s+a,e-i],this.v.o[2]=[t-s+r,e-i],this.v.i[2]=this.v.v[2],this.v.v[3]=[t-s,e-i+a],this.v.o[3]=this.v.v[3],this.v.i[3]=[t-s,e-i+r],this.v.v[4]=[t-s,e+i-a],this.v.o[4]=[t-s,e+i-r],this.v.i[4]=this.v.v[4],this.v.v[5]=[t-s+a,e+i],this.v.o[5]=this.v.v[5],this.v.i[5]=[t-s+r,e+i],this.v.v[6]=[t+s-a,e+i],this.v.o[6]=[t+s-r,e+i],this.v.i[6]=this.v.v[6],this.v.v[7]=[t+s,e+i-a],this.v.o[7]=this.v.v[7],this.v.i[7]=[t+s,e+i-r]),this.paths.length=0,this.paths[0]=this.v}return function(i,a){this.v={v:Array.apply(null,{length:8}),i:Array.apply(null,{length:8}),o:Array.apply(null,{length:8}),c:!0},this.paths=[],this.numNodes=8,this.elem=i,this.comp=i.comp,this.frameId=-1,this.d=a.d,this.dynamicProperties=[],this.mdf=!1,this.getValue=t,this.convertRectToPath=e,this.reset=s,this.p=Dt.getProp(i,a.p,1,0,this.dynamicProperties),this.s=Dt.getProp(i,a.s,1,0,this.dynamicProperties),this.r=Dt.getProp(i,a.r,0,0,this.dynamicProperties),this.dynamicProperties.length?this.k=!0:this.convertRectToPath()}}(),l={};return l.getShapeProp=r,l}(),xt=function(){function t(t,e){i[t]||(i[t]=e)}function e(t,e,s,a){return new i[t](e,s,a)}var s={},i={};return s.registerModifier=t,s.getModifier=e,s}();w.prototype.initModifierProperties=function(){},w.prototype.addShapeToModifier=function(){},w.prototype.addShape=function(t){this.closed||(this.shapes.push({shape:t,last:[]}),this.addShapeToModifier(t))},w.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.isTrimming=!1,this.comp=t.comp,this.initModifierProperties(t,e),this.dynamicProperties.length?(this.k=!0,s.push(this)):this.getValue(!0)},A(w,S),S.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=t?!0:!1,this.frameId=this.elem.globalData.frameId;var e,s=this.dynamicProperties.length;for(e=0;s>e;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0);if(this.mdf||t){var i=this.o.v%360/360;0>i&&(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}}},S.prototype.initModifierProperties=function(t,e){this.sValue=0,this.eValue=0,this.oValue=0,this.getValue=this.processKeys,this.s=Dt.getProp(t,e.s,0,.01,this.dynamicProperties),this.e=Dt.getProp(t,e.e,0,.01,this.dynamicProperties),this.o=Dt.getProp(t,e.o,0,0,this.dynamicProperties),this.dynamicProperties.length||this.getValue(!0)},S.prototype.getSegmentsLength=function(t){var e,s=t.c,i=t.v,a=t.o,r=t.i,n=i.length,h=[],o=0;for(e=0;n-1>e;e+=1)h[e]=Et.getBezierLength(i[e],i[e+1],a[e],r[e+1]),o+=h[e].addedLength;return s&&(h[e]=Et.getBezierLength(i[e],i[0],a[e],r[0]),o+=h[e].addedLength),{lengths:h,totalLength:o}},S.prototype.processShapes=function(t){var e,s,i,a,r,n,h,o=this.shapes.length,p=this.sValue,l=this.eValue,m=0;if(l===p)for(s=0;o>s;s+=1)this.shapes[s].shape.paths=[],this.shapes[s].shape.mdf=!0;else{var f,d,c=[];for(s=0;o>s;s+=1){if(f=this.shapes[s],f.shape.mdf||this.mdf||t){if(e=f.shape.paths,a=e.length,h=0,!f.shape.mdf&&f.pathsData)h=f.totalShapeLength;else{for(r=[],i=0;a>i;i+=1)n=this.getSegmentsLength(e[i]),r.push(n),h+=n.totalLength;f.totalShapeLength=h,f.pathsData=r}m+=h}else f.shape.paths=f.last;f.shape.mdf=!0}for(s=0;o>s;s+=1)if(d=[],f=this.shapes[s],f.shape.mdf){c.length=0,1>=l?c.push({s:f.totalShapeLength*p,e:f.totalShapeLength*l}):p>=1?c.push({s:f.totalShapeLength*(p-1),e:f.totalShapeLength*(l-1)}):(c.push({s:f.totalShapeLength*p,e:f.totalShapeLength}),c.push({s:0,e:f.totalShapeLength*(l-1)}));var u,v=this.addShapes(f,c[0]);d.push(v),c.length>1&&(f.shape.v.c?this.addShapes(f,c[1],v):(v.i[0]=[v.v[0][0],v.v[0][1]],u=v.v.length-1,v.o[u]=[v.v[u][0],v.v[u][1]],v=this.addShapes(f,c[1]),d.push(v))),v.i[0]=[v.v[0][0],v.v[0][1]],u=v.v.length-1,v.o[u]=[v.v[u][0],v.v[u][1]],f.last=d,f.shape.paths=d}}this.dynamicProperties.length||(this.mdf=!1)},S.prototype.addSegment=function(t,e,s,i,a,r){a.o[r]=e,a.i[r+1]=s,a.v[r+1]=i,a.v[r]=t},S.prototype.addShapes=function(t,e,s){var i,a,r,n,h,o,p,l=t.pathsData,m=t.shape.paths,f=m.length,d=0;for(s?h=s.v.length-1:(s={c:!1,v:[],i:[],o:[]},h=0),i=0;f>i;i+=1){for(o=l[i].lengths,r=m[i].c?o.length:o.length+1,a=1;r>a;a+=1)if(n=o[a-1],d+n.addedLength<e.s)d+=n.addedLength;else{if(d>e.e)break;e.s<=d&&e.e>=d+n.addedLength?this.addSegment(m[i].v[a-1],m[i].o[a-1],m[i].i[a],m[i].v[a],s,h):(p=Et.getNewSegment(m[i].v[a-1],m[i].v[a],m[i].o[a-1],m[i].i[a],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,o[a-1]),this.addSegment(p.pt1,p.pt3,p.pt4,p.pt2,s,h)),d+=n.addedLength,h+=1}if(m[i].c&&d<=e.e){var c=o[a-1].addedLength;e.s<=d&&e.e>=d+c?this.addSegment(m[i].v[a-1],m[i].o[a-1],m[i].i[0],m[i].v[0],s,h):(p=Et.getNewSegment(m[i].v[a-1],m[i].v[0],m[i].o[a-1],m[i].i[0],(e.s-d)/c,(e.e-d)/c,o[a-1]),this.addSegment(p.pt1,p.pt3,p.pt4,p.pt2,s,h))}}return s},xt.registerModifier("tm",S),A(w,D),D.prototype.processKeys=function(t){(this.elem.globalData.frameId!==this.frameId||t)&&(this.mdf=!0)},D.prototype.addShapeToModifier=function(){this.positions.push([])},D.prototype.processPath=function(t,e,s){var i,a,r,n,h=t.v.length,o=[],p=[],l=[];for(i=0;h>i;i+=1){s.v[i]||(s.v[i]=[t.v[i][0],t.v[i][1]],s.o[i]=[t.o[i][0],t.o[i][1]],s.i[i]=[t.i[i][0],t.i[i][1]],s.distV[i]=0,s.distO[i]=0,s.distI[i]=0),a=Math.atan2(t.v[i][1]-e[1],t.v[i][0]-e[0]),r=e[0]-s.v[i][0],n=e[1]-s.v[i][1];var m=Math.sqrt(r*r+n*n);s.distV[i]+=(m-s.distV[i])*this.data.dc,s.v[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distV[i])/2+t.v[i][0],s.v[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distV[i])/2+t.v[i][1],a=Math.atan2(t.o[i][1]-e[1],t.o[i][0]-e[0]),r=e[0]-s.o[i][0],n=e[1]-s.o[i][1];var m=Math.sqrt(r*r+n*n);s.distO[i]+=(m-s.distO[i])*this.data.dc,s.o[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distO[i])/2+t.o[i][0],s.o[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distO[i])/2+t.o[i][1],a=Math.atan2(t.i[i][1]-e[1],t.i[i][0]-e[0]),r=e[0]-s.i[i][0],n=e[1]-s.i[i][1];var m=Math.sqrt(r*r+n*n);s.distI[i]+=(m-s.distI[i])*this.data.dc,s.i[i][0]=Math.cos(a)*Math.max(0,this.data.maxDist-s.distI[i])/2+t.i[i][0],s.i[i][1]=Math.sin(a)*Math.max(0,this.data.maxDist-s.distI[i])/2+t.i[i][1],o.push(s.v[i]),p.push(s.o[i]),l.push(s.i[i])}return{v:o,o:p,i:l,c:t.c}},D.prototype.processShapes=function(){var t,e,s,i,a=this.elem.globalData.mouseX,r=this.elem.globalData.mouseY,n=this.shapes.length;if(a){var h,o=this.elem.globalToLocal([a,r,0]),p=[];for(e=0;n>e;e+=1)if(h=this.shapes[e],h.shape.mdf||this.mdf){for(h.shape.mdf=!0,t=h.shape.paths,i=t.length,s=0;i>s;s+=1)this.positions[e][s]||(this.positions[e][s]={v:[],o:[],i:[],distV:[],distO:[],distI:[]}),p.push(this.processPath(t[s],o,this.positions[e][s]));h.shape.paths=p,h.last=p}else h.shape.paths=h.last}},D.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.data=e,this.positions=[]},xt.registerModifier("ms",D),A(w,F),F.prototype.processKeys=function(t){if(this.elem.globalData.frameId!==this.frameId||t){this.mdf=t?!0:!1,this.frameId=this.elem.globalData.frameId;var e,s=this.dynamicProperties.length;for(e=0;s>e;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.mdf=!0)}},F.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=Dt.getProp(t,e.r,0,null,this.dynamicProperties),this.dynamicProperties.length||this.getValue(!0)},F.prototype.processPath=function(t,e){var s,i,a,r,n,h,o,p,l,m,f=t.v.length,d=[],c=[],u=[];for(s=0;f>s;s+=1)i=t.v[s],r=t.o[s],a=t.i[s],i[0]===r[0]&&i[1]===r[1]&&i[0]===a[0]&&i[1]===a[1]?0!==s&&s!==f-1||t.c?(n=0===s?t.v[f-1]:t.v[s-1],l=Math.sqrt(Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2)),m=l?Math.min(l/2,e)/l:0,h=[i[0]+(n[0]-i[0])*m,i[1]-(i[1]-n[1])*m],p=h,o=[h[0]-(h[0]-i[0])*At,h[1]-(h[1]-i[1])*At],d.push(h),c.push(o),u.push(p),n=s===f-1?t.v[0]:t.v[s+1],l=Math.sqrt(Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2)),m=l?Math.min(l/2,e)/l:0,h=[i[0]+(n[0]-i[0])*m,i[1]+(n[1]-i[1])*m],p=[h[0]-(h[0]-i[0])*At,h[1]-(h[1]-i[1])*At],o=h,d.push(h),c.push(o),u.push(p)):(d.push(i),c.push(r),u.push(a)):(d.push(t.v[s]),c.push(t.o[s]),u.push(t.i[s]));return{v:d,o:c,i:u,c:t.c}},F.prototype.processShapes=function(){var t,e,s,i,a=this.shapes.length,r=this.rd.v;if(0!==r){var n,h=[];for(e=0;a>e;e+=1)if(n=this.shapes[e],n.shape.mdf||this.mdf){for(n.shape.mdf=!0,t=n.shape.paths,i=t.length,s=0;i>s;s+=1)h.push(this.processPath(t[s],r));n.shape.paths=h,n.last=h}else n.shape.paths=n.last}this.dynamicProperties.length||(this.mdf=!1)},xt.registerModifier("rd",F);var It=function(){function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages}function e(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 s(e){var s=document.createElement("img");s.addEventListener("load",t.bind(this),!1),s.addEventListener("error",t.bind(this),!1),s.src=e}function i(t){this.totalAssets=t.length;var i;for(i=0;i<this.totalAssets;i+=1)t[i].layers||(s.bind(this)(e.bind(this)(t[i])),this.totalImages+=1)}function a(t){this.path=t||""}function r(t){this.assetsPath=t||""}return function(){this.loadAssets=i,this.setAssetsPath=r,this.setPath=a,this.assetsPath="",this.path="",this.totalAssets=0,this.totalImages=0,this.loadedAssets=0}}();x.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],s.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:!1;this.checkPendingElements()},x.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 99:return null}return this.createBase(t)},x.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;e>t;t+=1)this.buildItem(t);this.checkPendingElements()},x.prototype.includeLayers=function(t){this.completeLayers=!1;var e,s,i=t.length,a=this.layers.length;for(e=0;i>e;e+=1)for(s=0;a>s;){if(this.layers[s].id==t[e].id){this.layers[s]=t[e];break}s+=1}},x.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},x.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},x.prototype.buildElementParenting=function(t,e,s){s=s||[];for(var i=this.elements,a=this.layers,r=0,n=a.length;n>r;)a[r].ind==e&&(i[r]&&i[r]!==!0?void 0!==a[r].parent?(s.push(i[r]),this.buildElementParenting(t,a[r].parent,s)):(s.push(i[r]),t.setHierarchy(s)):(this.buildItem(r),this.addPendingElement(t))),r+=1},x.prototype.addPendingElement=function(t){this.pendingElements.push(t)},A(x,I),I.prototype.createBase=function(t){return new L(t,this.layerElement,this.globalData,this)},I.prototype.createShape=function(t){return new q(t,this.layerElement,this.globalData,this)},I.prototype.createText=function(t){return new _(t,this.layerElement,this.globalData,this)},I.prototype.createImage=function(t){return new B(t,this.layerElement,this.globalData,this)},I.prototype.createComp=function(t){return new R(t,this.layerElement,this.globalData,this)},I.prototype.createSolid=function(t){return new W(t,this.layerElement,this.globalData,this)},I.prototype.configAnimation=function(t){
this.layerElement=document.createElementNS(ft,"svg"),this.layerElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.layerElement.setAttribute("width",t.w),this.layerElement.setAttribute("height",t.h),this.layerElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.layerElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.layerElement.style.width="100%",this.layerElement.style.height="100%",this.layerElement.style.transform="translate3d(0,0,0)",this.layerElement.style.transformOrigin=this.layerElement.style.mozTransformOrigin=this.layerElement.style.webkitTransformOrigin=this.layerElement.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.layerElement);var e=document.createElementNS(ft,"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.compSize={w:t.w,h:t.h},this.globalData.frameRate=t.fr;var s=document.createElementNS(ft,"clipPath"),i=document.createElementNS(ft,"rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var a="animationMask_"+f(10);s.setAttribute("id",a),s.appendChild(i);var r=document.createElementNS(ft,"g");r.setAttribute("clip-path","url(#"+a+")"),this.layerElement.appendChild(r),e.appendChild(s),this.layerElement=r,this.layers=t.layers,this.globalData.fontManager=new St,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.elements=Array.apply(null,{length:t.layers.length})},I.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;e>t;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},I.prototype.updateContainerSize=function(){},I.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var s=this.createItem(this.layers[t]);e[t]=s,lt&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,t),this.layers[t].tt&&(this.elements[t-1]&&this.elements[t-1]!==!0?s.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(s)))}},I.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;s>e;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},I.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()}},I.prototype.appendElementInPos=function(t,e){var s=t.getBaseElement();if(s){for(var i,a=0;e>a;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(i=this.elements[a].getBaseElement()),a+=1;i?this.layerElement.insertBefore(s,i):this.layerElement.appendChild(s)}},I.prototype.hide=function(){this.layerElement.style.display="none"},I.prototype.show=function(){this.layerElement.style.display="block"},I.prototype.searchExtraCompositions=function(t){var e,s=t.length,i=document.createElementNS(ft,"g");for(e=0;s>e;e+=1)if(t[e].xt){var a=this.createComp(t[e],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},C.prototype.getMaskProperty=function(t){return this.viewData[t].prop},C.prototype.prepareFrame=function(){var t,e=this.dynamicProperties.length;for(t=0;e>t;t+=1)this.dynamicProperties[t].getValue()},C.prototype.renderFrame=function(t){var e,s=this.masksProperties.length;for(e=0;s>e;e++)if((this.viewData[e].prop.mdf||this.firstFrame)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),"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(#"+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},C.prototype.getMaskelement=function(){return this.maskElement},C.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+" "},C.prototype.drawPath=function(t,e,s){var i,a,r="";for(a=e.v.length,i=1;a>i;i+=1)1==i&&(r+=" M"+mt(e.v[0][0])+","+mt(e.v[0][1])),r+=" C"+mt(e.o[i-1][0])+","+mt(e.o[i-1][1])+" "+mt(e.i[i][0])+","+mt(e.i[i][1])+" "+mt(e.v[i][0])+","+mt(e.v[i][1]);e.c&&(r+=" C"+mt(e.o[i-1][0])+","+mt(e.o[i-1][1])+" "+mt(e.i[0][0])+","+mt(e.i[0][1])+" "+mt(e.v[0][0])+","+mt(e.v[0][1])),s.lastPath!==r&&(s.elem&&(e.c?t.inv?s.elem.setAttribute("d",this.solidPath+r):s.elem.setAttribute("d",r):s.elem.setAttribute("d","")),s.lastPath=r)},C.prototype.getMask=function(t){for(var e=0,s=this.masksProperties.length;s>e;){if(this.masksProperties[e].nm===t)return{maskPath:this.viewData[e].prop.pv};e+=1}},C.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.paths=null,this.masksProperties=null},T.prototype.checkMasks=function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;e>t;){if("n"!==this.data.masksProperties[t].mode&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},T.prototype.checkParenting=function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent)},T.prototype.prepareFrame=function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isVisible!==!0&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!0,this.firstFrame=!0,this.data.hasMask&&(this.maskManager.firstFrame=!0)):this.isVisible!==!1&&(this.elemMdf=!0,this.globalData.mdf=!0,this.isVisible=!1);var e,s=this.dynamicProperties.length;for(e=0;s>e;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e].mdf&&(this.elemMdf=!0,this.globalData.mdf=!0);return this.data.hasMask&&this.maskManager.prepareFrame(t*this.data.sr),this.currentFrameNum=t*this.data.sr,this.isVisible},T.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;n>a;a+=1)r=e[a].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},T.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.viewData,this.layerInterface))},T.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"}var e=this.baseElement||this.layerElement;e.style["mix-blend-mode"]=t},T.prototype.init=function(){this.data.sr||(this.data.sr=1),this.dynamicProperties=[],this.data.ef&&(this.effects=new EffectsManager(this.data,this,this.dynamicProperties)),this.hidden=!1,this.firstFrame=!0,this.isVisible=!1,this.currentFrameNum=-99999,this.lastNum=-99999,this.data.ks&&(this.finalTransform={mProp:Dt.getProp(this,this.data.ks,2,null,this.dynamicProperties),matMdf:!1,opMdf:!1,mat:new k,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},T.prototype.getType=function(){return this.type},T.prototype.resetHierarchy=function(){this.hierarchy?this.hierarchy.length=0:this.hierarchy=[]},T.prototype.getHierarchy=function(){return this.hierarchy||(this.hierarchy=[]),this.hierarchy},T.prototype.setHierarchy=function(t){this.hierarchy=t},T.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}},T.prototype.hide=function(){},T.prototype.mHelper=new k,P(T,L),L.prototype.createElements=function(){if(this.data.td){if(3==this.data.td)this.layerElement=document.createElementNS(ft,"mask"),this.layerElement.setAttribute("id",this.layerId),this.layerElement.setAttribute("mask-type","luminance"),this.globalData.defs.appendChild(this.layerElement);else if(2==this.data.td){var t=document.createElementNS(ft,"mask");t.setAttribute("id",this.layerId),t.setAttribute("mask-type","alpha");var e=document.createElementNS(ft,"g");t.appendChild(e),this.layerElement=document.createElementNS(ft,"g");var s=document.createElementNS(ft,"filter"),i=f(10);s.setAttribute("id",i),s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%");var a=document.createElementNS(ft,"feComponentTransfer");a.setAttribute("in","SourceGraphic"),s.appendChild(a);var r=document.createElementNS(ft,"feFuncA");r.setAttribute("type","table"),r.setAttribute("tableValues","1.0 0.0"),a.appendChild(r),this.globalData.defs.appendChild(s);var n=document.createElementNS(ft,"rect");n.setAttribute("width",this.comp.data?this.comp.data.w:this.globalData.compSize.w),n.setAttribute("height",this.comp.data?this.comp.data.h:this.globalData.compSize.h),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("fill","#ffffff"),n.setAttribute("opacity","0"),e.setAttribute("filter","url(#"+i+")"),e.appendChild(n),e.appendChild(this.layerElement),this.globalData.defs.appendChild(t)}else{this.layerElement=document.createElementNS(ft,"g");var h=document.createElementNS(ft,"mask");h.setAttribute("id",this.layerId),h.setAttribute("mask-type","alpha"),h.appendChild(this.layerElement),this.globalData.defs.appendChild(h)}this.data.hasMask&&(this.maskedElement=this.layerElement)}else this.data.hasMask||this.data.tt?(this.layerElement=document.createElementNS(ft,"g"),this.data.tt?(this.matteElement=document.createElementNS(ft,"g"),this.matteElement.appendChild(this.layerElement),this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.hasMask&&(this.maskedElement=this.layerElement)):(this.layerElement=document.createElementNS(ft,"g"),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&&!this.checkMasks()){var o=document.createElementNS(ft,"clipPath"),p=document.createElementNS(ft,"path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var l="cp_"+f(8);o.setAttribute("id",l),this.layerElement.setAttribute("clip-path","url(#"+l+")"),o.appendChild(p),this.globalData.defs.appendChild(o)}0!==this.data.bm&&this.setBlendMode(),this.layerElement!==this.parentContainer&&(this.placeholder=null),this.data.ef&&(this.effectsManager=new V(this)),this.checkParenting()},L.prototype.setBlendMode=T.prototype.setBlendMode,L.prototype.renderFrame=function(t){if(3===this.data.ty||this.data.hd)return!1;if(!this.isVisible)return this.isVisible;this.lastNum=this.currentFrameNum,this.finalTransform.opMdf=this.finalTransform.op.mdf,this.finalTransform.matMdf=this.finalTransform.mProp.mdf,this.finalTransform.opacity=this.finalTransform.op.v,this.firstFrame&&(this.finalTransform.opMdf=!0,this.finalTransform.matMdf=!0);var e,s=this.finalTransform.mat;if(this.hierarchy){var i,a=this.hierarchy.length;for(e=this.finalTransform.mProp.v.props,s.cloneFromProps(e),i=0;a>i;i+=1)this.finalTransform.matMdf=this.hierarchy[i].finalTransform.mProp.mdf?!0:this.finalTransform.matMdf,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.cloneFromProps(this.finalTransform.mProp.v.props);return t&&(e=t.mat.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]),this.finalTransform.opacity*=t.opacity,this.finalTransform.opMdf=t.opMdf?!0:this.finalTransform.opMdf,this.finalTransform.matMdf=t.matMdf?!0:this.finalTransform.matMdf),this.finalTransform.matMdf&&this.layerElement&&this.layerElement.setAttribute("transform",s.to2dCSS()),this.finalTransform.opMdf&&this.layerElement&&this.layerElement.setAttribute("opacity",this.finalTransform.opacity),this.data.hasMask&&this.maskManager.renderFrame(s),this.effectsManager&&this.effectsManager.renderFrame(this.firstFrame),this.isVisible},L.prototype.destroy=function(){this.layerElement=null,this.parentContainer=null,this.matteElement&&(this.matteElement=null),this.maskManager&&this.maskManager.destroy()},L.prototype.getBaseElement=function(){return this.baseElement},L.prototype.addMasks=function(t){this.maskManager=new C(t,this,this.globalData)},L.prototype.setMatte=function(t){this.matteElement&&this.matteElement.setAttribute("mask","url(#"+t+")")},L.prototype.setMatte=function(t){this.matteElement&&this.matteElement.setAttribute("mask","url(#"+t+")")},L.prototype.hide=function(){},N.prototype.init=function(){this._parent.init.call(this),this.lettersChangedFlag=!1,this.currentTextDocumentData={};var t=this.data;this.viewData={m:{a:Dt.getProp(this,t.t.m.a,1,0,this.dynamicProperties)}};var e=this.data.t;if(e.a.length){this.viewData.a=Array.apply(null,{length:e.a.length});var s,i,a,r=e.a.length;for(s=0;r>s;s+=1)a=e.a[s],i={a:{},s:{}},"r"in a.a&&(i.a.r=Dt.getProp(this,a.a.r,0,Pt,this.dynamicProperties)),"rx"in a.a&&(i.a.rx=Dt.getProp(this,a.a.rx,0,Pt,this.dynamicProperties)),"ry"in a.a&&(i.a.ry=Dt.getProp(this,a.a.ry,0,Pt,this.dynamicProperties)),"sk"in a.a&&(i.a.sk=Dt.getProp(this,a.a.sk,0,Pt,this.dynamicProperties)),"sa"in a.a&&(i.a.sa=Dt.getProp(this,a.a.sa,0,Pt,this.dynamicProperties)),"s"in a.a&&(i.a.s=Dt.getProp(this,a.a.s,1,.01,this.dynamicProperties)),"a"in a.a&&(i.a.a=Dt.getProp(this,a.a.a,1,0,this.dynamicProperties)),"o"in a.a&&(i.a.o=Dt.getProp(this,a.a.o,0,.01,this.dynamicProperties)),"p"in a.a&&(i.a.p=Dt.getProp(this,a.a.p,1,0,this.dynamicProperties)),"sw"in a.a&&(i.a.sw=Dt.getProp(this,a.a.sw,0,0,this.dynamicProperties)),"sc"in a.a&&(i.a.sc=Dt.getProp(this,a.a.sc,1,0,this.dynamicProperties)),"fc"in a.a&&(i.a.fc=Dt.getProp(this,a.a.fc,1,0,this.dynamicProperties)),"fh"in a.a&&(i.a.fh=Dt.getProp(this,a.a.fh,0,0,this.dynamicProperties)),"fs"in a.a&&(i.a.fs=Dt.getProp(this,a.a.fs,0,.01,this.dynamicProperties)),"fb"in a.a&&(i.a.fb=Dt.getProp(this,a.a.fb,0,.01,this.dynamicProperties)),"t"in a.a&&(i.a.t=Dt.getProp(this,a.a.t,0,0,this.dynamicProperties)),i.s=Dt.getTextSelectorProp(this,a.s,this.dynamicProperties),i.s.t=a.s.t,this.viewData.a[s]=i}else this.viewData.a=[];e.p&&"m"in e.p?(this.viewData.p={f:Dt.getProp(this,e.p.f,0,0,this.dynamicProperties),l:Dt.getProp(this,e.p.l,0,0,this.dynamicProperties),r:e.p.r,m:this.maskManager.getMaskProperty(e.p.m)},this.maskPath=!0):this.maskPath=!1},N.prototype.prepareFrame=function(t){var e=0,s=this.data.t.d.k.length,i=this.data.t.d.k[e].s;for(e+=1;s>e&&!(this.data.t.d.k[e].t>t);)i=this.data.t.d.k[e].s,e+=1;this.lettersChangedFlag=!1,i!==this.currentTextDocumentData&&(this.currentTextDocumentData=i,this.lettersChangedFlag=!0,this.buildNewText()),this._parent.prepareFrame.call(this,t)},N.prototype.createPathShape=function(t,e){var s,i,a,r,n=e.length,h="";for(s=0;n>s;s+=1){for(a=e[s].ks.k.i.length,r=e[s].ks.k,i=1;a>i;i+=1)1==i&&(h+=" M"+t.applyToPointStringified(r.v[0][0],r.v[0][1])),h+=" C"+t.applyToPointStringified(r.o[i-1][0],r.o[i-1][1])+" "+t.applyToPointStringified(r.i[i][0],r.i[i][1])+" "+t.applyToPointStringified(r.v[i][0],r.v[i][1]);h+=" C"+t.applyToPointStringified(r.o[i-1][0],r.o[i-1][1])+" "+t.applyToPointStringified(r.i[0][0],r.i[0][1])+" "+t.applyToPointStringified(r.v[0][0],r.v[0][1]),h+="z"}return h},N.prototype.getMeasures=function(){var t,e,s,i,a=this.mHelper,r=this.renderType,n=this.data,h=this.currentTextDocumentData,o=h.l;if(this.maskPath){var p=this.viewData.p.m;if(!this.viewData.p.n||this.viewData.p.mdf){var l=p.v;this.viewData.p.r&&(l=b(l,p.closed));var m={tLength:0,segments:[]};i=l.v.length-1;var f,d=0;for(s=0;i>s;s+=1)f={s:l.v[s],e:l.v[s+1],to:[l.o[s][0]-l.v[s][0],l.o[s][1]-l.v[s][1]],ti:[l.i[s+1][0]-l.v[s+1][0],l.i[s+1][1]-l.v[s+1][1]]},Et.buildBezierData(f),m.tLength+=f.bezierData.segmentLength,m.segments.push(f),d+=f.bezierData.segmentLength;s=i,p.closed&&(f={s:l.v[s],e:l.v[0],to:[l.o[s][0]-l.v[s][0],l.o[s][1]-l.v[s][1]],ti:[l.i[0][0]-l.v[0][0],l.i[0][1]-l.v[0][1]]},Et.buildBezierData(f),m.tLength+=f.bezierData.segmentLength,m.segments.push(f),d+=f.bezierData.segmentLength),this.viewData.p.pi=m}var c,k,P,m=this.viewData.p.pi,A=this.viewData.p.f.v,M=0,E=1,w=0,S=!0,D=m.segments;if(0>A&&p.closed)for(m.tLength<Math.abs(A)&&(A=-Math.abs(A)%m.tLength),M=D.length-1,P=D[M].bezierData.points,E=P.length-1;0>A;)A+=P[E].partialLength,E-=1,0>E&&(M-=1,P=D[M].bezierData.points,E=P.length-1);P=D[M].bezierData.points,k=P[E-1],c=P[E];var F,x,I=c.partialLength}i=o.length,t=0,e=0;var C,T,L,N,_,V=1.2*h.s*.714,z=!0,j=this.viewData,O=Array.apply(null,{length:i});N=j.a.length;var R,B,q,W,G,X,H,Y,U,Z,K,J,Q,$,tt,et,st=-1,it=A,at=M,rt=E,nt=-1,ht=0;for(s=0;i>s;s+=1)if(a.reset(),X=1,o[s].n)t=0,e+=h.yOffset,e+=z?1:0,A=it,z=!1,ht=0,this.maskPath&&(M=at,E=rt,P=D[M].bezierData.points,k=P[E-1],c=P[E],I=c.partialLength,w=0),O[s]=this.emptyProp;else{if(this.maskPath){if(nt!==o[s].line){switch(h.j){case 1:A+=d-h.lineWidths[o[s].line];break;case 2:A+=(d-h.lineWidths[o[s].line])/2}nt=o[s].line}st!==o[s].ind&&(o[st]&&(A+=o[st].extra),A+=o[s].an/2,st=o[s].ind),A+=j.m.a.v[0]*o[s].an/200;var ot=0;for(L=0;N>L;L+=1)C=j.a[L].a,"p"in C&&(T=j.a[L].s,B=T.getMult(o[s].anIndexes[L],n.t.a[L].s.totalChars),ot+=B.length?C.p.v[0]*B[0]:C.p.v[0]*B);for(S=!0;S;)w+I>=A+ot||!P?(F=(A+ot-w)/c.partialLength,W=k.point[0]+(c.point[0]-k.point[0])*F,G=k.point[1]+(c.point[1]-k.point[1])*F,a.translate(0,-(j.m.a.v[1]*V/100)+e),S=!1):P&&(w+=c.partialLength,E+=1,E>=P.length&&(E=0,M+=1,D[M]?P=D[M].bezierData.points:p.closed?(E=0,M=0,P=D[M].bezierData.points):(w-=c.partialLength,P=null)),P&&(k=c,c=P[E],I=c.partialLength));q=o[s].an/2-o[s].add,a.translate(-q,0,0)}else q=o[s].an/2-o[s].add,a.translate(-q,0,0),a.translate(-j.m.a.v[0]*o[s].an/200,-j.m.a.v[1]*V/100,0);for(ht+=o[s].l/2,L=0;N>L;L+=1)C=j.a[L].a,"t"in C&&(T=j.a[L].s,B=T.getMult(o[s].anIndexes[L],n.t.a[L].s.totalChars),this.maskPath?A+=B.length?C.t*B[0]:C.t*B:t+=B.length?C.t.v*B[0]:C.t.v*B);for(ht+=o[s].l/2,h.strokeWidthAnim&&(Y=h.sw||0),h.strokeColorAnim&&(H=h.sc?[h.sc[0],h.sc[1],h.sc[2]]:[0,0,0]),h.fillColorAnim&&(U=[h.fc[0],h.fc[1],h.fc[2]]),L=0;N>L;L+=1)C=j.a[L].a,"a"in C&&(T=j.a[L].s,B=T.getMult(o[s].anIndexes[L],n.t.a[L].s.totalChars),B.length?a.translate(-C.a.v[0]*B[0],-C.a.v[1]*B[1],C.a.v[2]*B[2]):a.translate(-C.a.v[0]*B,-C.a.v[1]*B,C.a.v[2]*B));for(L=0;N>L;L+=1)C=j.a[L].a,"s"in C&&(T=j.a[L].s,B=T.getMult(o[s].anIndexes[L],n.t.a[L].s.totalChars),B.length?a.scale(1+(C.s.v[0]-1)*B[0],1+(C.s.v[1]-1)*B[1],1):a.scale(1+(C.s.v[0]-1)*B,1+(C.s.v[1]-1)*B,1));for(L=0;N>L;L+=1){if(C=j.a[L].a,T=j.a[L].s,B=T.getMult(o[s].anIndexes[L],n.t.a[L].s.totalChars),"sk"in C&&(B.length?a.skewFromAxis(-C.sk.v*B[0],C.sa.v*B[1]):a.skewFromAxis(-C.sk.v*B,C.sa.v*B)),"r"in C&&a.rotateZ(B.length?-C.r.v*B[2]:-C.r.v*B),"ry"in C&&a.rotateY(B.length?C.ry.v*B[1]:C.ry.v*B),"rx"in C&&a.rotateX(B.length?C.rx.v*B[0]:C.rx.v*B),"o"in C&&(X+=B.length?(C.o.v*B[0]-X)*B[0]:(C.o.v*B-X)*B),h.strokeWidthAnim&&"sw"in C&&(Y+=B.length?C.sw.v*B[0]:C.sw.v*B),h.strokeColorAnim&&"sc"in C)for(Z=0;3>Z;Z+=1)H[Z]=Math.round(B.length?255*(H[Z]+(C.sc.v[Z]-H[Z])*B[0]):255*(H[Z]+(C.sc.v[Z]-H[Z])*B));if(h.fillColorAnim){if("fc"in C)for(Z=0;3>Z;Z+=1)U[Z]=B.length?U[Z]+(C.fc.v[Z]-U[Z])*B[0]:U[Z]+(C.fc.v[Z]-U[Z])*B;"fh"in C&&(U=B.length?g(U,C.fh.v*B[0]):g(U,C.fh.v*B)),"fs"in C&&(U=B.length?u(U,C.fs.v*B[0]):u(U,C.fs.v*B)),"fb"in C&&(U=B.length?v(U,C.fb.v*B[0]):v(U,C.fb.v*B))}}for(L=0;N>L;L+=1)C=j.a[L].a,"p"in C&&(T=j.a[L].s,B=T.getMult(o[s].anIndexes[L],n.t.a[L].s.totalChars),this.maskPath?B.length?a.translate(0,C.p.v[1]*B[0],-C.p.v[2]*B[1]):a.translate(0,C.p.v[1]*B,-C.p.v[2]*B):B.length?a.translate(C.p.v[0]*B[0],C.p.v[1]*B[1],-C.p.v[2]*B[2]):a.translate(C.p.v[0]*B,C.p.v[1]*B,-C.p.v[2]*B));if(h.strokeWidthAnim&&(K=0>Y?0:Y),h.strokeColorAnim&&(J="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),h.fillColorAnim&&(Q="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),this.maskPath){if(n.t.p.p){x=(c.point[1]-k.point[1])/(c.point[0]-k.point[0]);var pt=180*Math.atan(x)/Math.PI;c.point[0]<k.point[0]&&(pt+=180),a.rotate(-pt*Math.PI/180)}a.translate(W,G,0),a.translate(j.m.a.v[0]*o[s].an/200,j.m.a.v[1]*V/100,0),A-=j.m.a.v[0]*o[s].an/200,o[s+1]&&st!==o[s+1].ind&&(A+=o[s].an/2,A+=h.tr/1e3*h.s)}else{switch(a.translate(t,e,0),h.ps&&a.translate(h.ps[0],h.ps[1]+h.ascent,0),h.j){case 1:a.translate(h.justifyOffset+(h.boxWidth-h.lineWidths[o[s].line]),0,0);break;case 2:a.translate(h.justifyOffset+(h.boxWidth-h.lineWidths[o[s].line])/2,0,0)}a.translate(q,0,0),a.translate(j.m.a.v[0]*o[s].an/200,j.m.a.v[1]*V/100,0),t+=o[s].l+h.tr/1e3*h.s}"html"===r?$=a.toCSS():"svg"===r?$=a.to2dCSS():tt=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],et=X,R=this.renderedLetters[s],!R||R.o===et&&R.sw===K&&R.sc===J&&R.fc===Q?"svg"!==r&&"html"!==r||R&&R.m===$?"canvas"!==r||R&&R.props[0]===tt[0]&&R.props[1]===tt[1]&&R.props[4]===tt[4]&&R.props[5]===tt[5]&&R.props[12]===tt[12]&&R.props[13]===tt[13]?_=R:(this.lettersChangedFlag=!0,_=new y(et,K,J,Q,null,tt)):(this.lettersChangedFlag=!0,_=new y(et,K,J,Q,$)):(this.lettersChangedFlag=!0,_=new y(et,K,J,Q,$,tt)),this.renderedLetters[s]=_}},N.prototype.emptyProp=new y,P(L,_),_.prototype.init=N.prototype.init,_.prototype.createPathShape=N.prototype.createPathShape,_.prototype.getMeasures=N.prototype.getMeasures,_.prototype.prepareFrame=N.prototype.prepareFrame,_.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)},_.prototype.buildNewText=function(){var t,e,s=this.currentTextDocumentData;this.renderedLetters=Array.apply(null,{length:this.currentTextDocumentData.l?this.currentTextDocumentData.l.length:0}),s.fc?this.layerElement.setAttribute("fill","rgb("+Math.round(255*s.fc[0])+","+Math.round(255*s.fc[1])+","+Math.round(255*s.fc[2])+")"):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke","rgb("+Math.round(255*s.sc[0])+","+Math.round(255*s.sc[1])+","+Math.round(255*s.sc[2])+")"),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.s);var i=this.globalData.fontManager.getFontByName(s.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=s.fWeight,r=s.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",a)}var n=s.l||[];if(e=n.length){var h,o,p=this.mHelper,l="",m=this.data.singleShape;if(m)var f=0,d=0,c=s.lineWidths,u=s.boxWidth,v=!0;var g=0;for(t=0;e>t;t+=1){if(this.globalData.fontManager.chars?m&&0!==t||(h=this.textSpans[g]?this.textSpans[g]:document.createElementNS(ft,"path")):h=this.textSpans[g]?this.textSpans[g]:document.createElementNS(ft,"text"),h.style.display="inherit",h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),m&&n[t].n&&(f=0,d+=s.yOffset,d+=v?1:0,v=!1),p.reset(),this.globalData.fontManager.chars&&p.scale(s.s/100,s.s/100),m){switch(s.ps&&p.translate(s.ps[0],s.ps[1]+s.ascent,0),s.j){case 1:p.translate(s.justifyOffset+(u-c[n[t].line]),0,0);break;case 2:p.translate(s.justifyOffset+(u-c[n[t].line])/2,0,0)}p.translate(f,d,0)}if(this.globalData.fontManager.chars){var y,b=this.globalData.fontManager.getCharData(s.t.charAt(t),i.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);y=b?b.data:null,y&&y.shapes&&(o=y.shapes[0].it,m||(l=""),l+=this.createPathShape(p,o),m||h.setAttribute("d",l)),m||this.layerElement.appendChild(h)}else h.textContent=n[t].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.layerElement.appendChild(h),m&&h.setAttribute("transform",p.to2dCSS());m&&(f+=n[t].l),this.textSpans[g]=h,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1;m&&this.globalData.fontManager.chars&&(h.setAttribute("d",l),this.layerElement.appendChild(h))}},_.prototype.hide=function(){this.hidden||(this.layerElement.style.display="none",this.hidden=!0)},_.prototype.renderFrame=function(t){var e=this._parent.renderFrame.call(this,t);if(e===!1)return void this.hide();if(this.hidden&&(this.hidden=!1,this.layerElement.style.display="block"),!this.data.singleShape&&(this.getMeasures(),this.lettersChangedFlag)){var s,i,a=this.renderedLetters,r=this.currentTextDocumentData.l;i=r.length;var n;for(s=0;i>s;s+=1)r[s].n||(n=a[s],this.textSpans[s].setAttribute("transform",n.m),this.textSpans[s].setAttribute("opacity",n.o),n.sw&&this.textSpans[s].setAttribute("stroke-width",n.sw),n.sc&&this.textSpans[s].setAttribute("stroke",n.sc),n.fc&&this.textSpans[s].setAttribute("fill",n.fc));this.firstFrame&&(this.firstFrame=!1)}},_.prototype.destroy=function(){this._parent.destroy.call()},V.prototype.renderFrame=function(t){var e,s=this.filters.length;for(e=0;s>e;e+=1)this.filters[e].renderFrame(t)},z.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")}},j.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")}},O.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes,e=document.createElementNS(ft,"mask"),s="stms_"+f(10);e.setAttribute("id",s),e.setAttribute("mask-type","alpha");var i=document.createElementNS(ft,"path");i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),e.appendChild(i),this.elem.globalData.defs.appendChild(e);var a=document.createElementNS(ft,"g");a.setAttribute("mask","url(#"+s+")"),a.appendChild(t[0]),this.elem.layerElement.appendChild(a),this.initialized=!0,this.masker=e,this.pathMasker=i,i.setAttribute("stroke","#fff")},O.prototype.renderFrame=function(t){this.initialized||this.initialize();var e=this.elem.maskManager.viewData[Math.max(this.filterManager.effectElements[0].p.v,1)-1];if((t||this.filterManager.mdf||e.prop.mdf)&&this.pathMasker.setAttribute("d",e.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||e.prop.mdf){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var i=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,r=this.pathMasker.getTotalLength();s="0 0 0 "+r*i+" ";var n,h=r*(a-i),o=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,p=Math.floor(h/o);for(n=0;p>n;n+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";s+="0 "+10*r+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),this.pathMasker.setAttribute("stroke-dasharray",s)}(t||this.filterManager.effectElements[6].p.mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v)},P(L,R),R.prototype.hide=function(){if(!this.hidden){var t,e=this.elements.length;for(t=0;e>t;t+=1)this.elements[t]&&this.elements[t].hide();this.hidden=!0}},R.prototype.prepareFrame=function(t){if(this._parent.prepareFrame.call(this,t),this.isVisible!==!1||this.data.xt){var e=t;this.tm&&(e=this.tm.v,e===this.data.op&&(e=this.data.op-1)),this.renderedFrame=e/this.data.sr;var s,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=0;i>s;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e/this.data.sr-this.layers[s].st)}},R.prototype.renderFrame=function(t){var e,s=this._parent.renderFrame.call(this,t),i=this.layers.length;if(s===!1)return void this.hide();for(this.hidden=!1,e=0;i>e;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();this.firstFrame&&(this.firstFrame=!1)},R.prototype.setElements=function(t){this.elements=t},R.prototype.getElements=function(){return this.elements},R.prototype.destroy=function(){this._parent.destroy.call();var t,e=this.layers.length;for(t=0;e>t;t+=1)this.elements[t]&&this.elements[t].destroy()},R.prototype.checkLayers=I.prototype.checkLayers,R.prototype.buildItem=I.prototype.buildItem,R.prototype.buildAllItems=I.prototype.buildAllItems,R.prototype.buildElementParenting=I.prototype.buildElementParenting,R.prototype.createItem=I.prototype.createItem,R.prototype.createImage=I.prototype.createImage,R.prototype.createComp=I.prototype.createComp,R.prototype.createSolid=I.prototype.createSolid,R.prototype.createShape=I.prototype.createShape,R.prototype.createText=I.prototype.createText,R.prototype.createBase=I.prototype.createBase,R.prototype.appendElementInPos=I.prototype.appendElementInPos,R.prototype.checkPendingElements=I.prototype.checkPendingElements,R.prototype.addPendingElement=I.prototype.addPendingElement,P(L,B),B.prototype.createElements=function(){
var t=this.globalData.getAssetsPath(this.assetData);this._parent.createElements.call(this),this.innerElem=document.createElementNS(ft,"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.innerElem.setAttribute("id",this.data.ln),this.data.cl&&this.innerElem.setAttribute("class",this.data.cl)},B.prototype.hide=function(){this.hidden||(this.innerElem.style.display="none",this.hidden=!0)},B.prototype.renderFrame=function(t){var e=this._parent.renderFrame.call(this,t);return e===!1?void this.hide():(this.hidden&&(this.hidden=!1,this.innerElem.style.display="block"),void(this.firstFrame&&(this.firstFrame=!1)))},B.prototype.destroy=function(){this._parent.destroy.call(),this.innerElem=null},P(L,q),q.prototype.lcEnum={1:"butt",2:"round",3:"butt"},q.prototype.ljEnum={1:"miter",2:"round",3:"butt"},q.prototype.buildExpressionInterface=function(){},q.prototype.createElements=function(){this._parent.createElements.call(this),this.searchShapes(this.shapesData,this.viewData,this.layerElement,this.dynamicProperties,0),(!this.data.hd||this.data.td)&&i(this.layerElement)},q.prototype.setGradientData=function(t,e,s){var i,a="gr_"+f(10);i=1===e.t?document.createElementNS(ft,"linearGradient"):document.createElementNS(ft,"radialGradient"),i.setAttribute("id",a),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var r,n,h,o=[];for(h=4*e.g.p,n=0;h>n;n+=4)r=document.createElementNS(ft,"stop"),i.appendChild(r),o.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url(#"+a+")"),this.globalData.defs.appendChild(i),s.gf=i,s.cst=o},q.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 i,a,r,n,h=document.createElementNS(ft,"mask"),o=document.createElementNS(ft,"path");h.appendChild(o);var p="op_"+f(10),l="mk_"+f(10);h.setAttribute("id",l),i=1===t.t?document.createElementNS(ft,"linearGradient"):document.createElementNS(ft,"radialGradient"),i.setAttribute("id",p),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var m=[];for(r=4*t.g.p;n>r;r+=2)a=document.createElementNS(ft,"stop"),a.setAttribute("stop-color","rgb(255,255,255)"),i.appendChild(a),m.push(a);return o.setAttribute("gf"===t.ty?"fill":"stroke","url(#"+p+")"),this.globalData.defs.appendChild(i),this.globalData.defs.appendChild(h),e.of=i,e.ost=m,s.msElem=o,l}},q.prototype.searchShapes=function(t,e,s,i,a){var r,n,h,o,p,l=t.length-1,m=[],f=[];for(r=l;r>=0;r-=1)if("fl"==t[r].ty||"st"==t[r].ty||"gf"==t[r].ty||"gs"==t[r].ty){e[r]={},o={type:t[r].ty,d:"",ld:"",lvl:a,transformers:[],mdf:!1};var d=document.createElementNS(ft,"path");if(e[r].o=Dt.getProp(this,t[r].o,0,.01,i),("st"==t[r].ty||"gs"==t[r].ty)&&(d.setAttribute("stroke-linecap",this.lcEnum[t[r].lc]||"round"),d.setAttribute("stroke-linejoin",this.ljEnum[t[r].lj]||"round"),d.setAttribute("fill-opacity","0"),1==t[r].lj&&d.setAttribute("stroke-miterlimit",t[r].ml),e[r].w=Dt.getProp(this,t[r].w,0,null,i),t[r].d)){var c=Dt.getDashProp(this,t[r].d,"svg",i);c.k||(d.setAttribute("stroke-dasharray",c.dasharray),d.setAttribute("stroke-dashoffset",c.dashoffset)),e[r].d=c}if("fl"==t[r].ty||"st"==t[r].ty)e[r].c=Dt.getProp(this,t[r].c,1,255,i),s.appendChild(d);else{e[r].g=Dt.getGradientProp(this,t[r].g,i),2==t[r].t&&(e[r].h=Dt.getProp(this,t[r].h,1,.01,i),e[r].a=Dt.getProp(this,t[r].a,1,Pt,i)),e[r].s=Dt.getProp(this,t[r].s,1,null,i),e[r].e=Dt.getProp(this,t[r].e,1,null,i),this.setGradientData(d,t[r],e[r],o);var u=this.setGradientOpacity(t[r],e[r],o);u&&d.setAttribute("mask","url(#"+u+")"),e[r].elem=d,s.appendChild(d)}t[r].ln&&d.setAttribute("id",t[r].ln),t[r].cl&&d.setAttribute("class",t[r].cl),o.pElem=d,this.stylesList.push(o),e[r].style=o,m.push(o)}else if("gr"==t[r].ty){e[r]={it:[]};var v=document.createElementNS(ft,"g");s.appendChild(v),e[r].gr=v,this.searchShapes(t[r].it,e[r].it,v,i,a+1)}else if("tr"==t[r].ty)for(e[r]={transform:{op:Dt.getProp(this,t[r].o,0,.01,i),mProps:Dt.getProp(this,t[r],2,null,i)},elements:[]},p=e[r].transform,h=this.stylesList.length,n=0;h>n;n+=1)this.stylesList[n].closed||this.stylesList[n].transformers.push(p);else if("sh"==t[r].ty||"rc"==t[r].ty||"el"==t[r].ty||"sr"==t[r].ty){e[r]={elements:[],caches:[],styles:[],lStr:""};var g=4;for("rc"==t[r].ty?g=5:"el"==t[r].ty?g=6:"sr"==t[r].ty&&(g=7),e[r].sh=Ft.getShapeProp(this,t[r],g,i),e[r].lvl=a,this.shapes.push(e[r].sh),this.addShapeToModifiers(e[r].sh),h=this.stylesList.length,n=0;h>n;n+=1)this.stylesList[n].closed||e[r].elements.push({ty:this.stylesList[n].type,st:this.stylesList[n]})}else if("tm"==t[r].ty||"rd"==t[r].ty||"ms"==t[r].ty){var y=xt.getModifier(t[r].ty);y.init(this,t[r],i),this.shapeModifiers.push(y),f.push(y),e[r]=y}for(l=m.length,r=0;l>r;r+=1)m[r].closed=!0;for(l=f.length,r=0;l>r;r+=1)f[r].closed=!0},q.prototype.addShapeToModifiers=function(t){var e,s=this.shapeModifiers.length;for(e=0;s>e;e+=1)this.shapeModifiers[e].addShape(t)},q.prototype.renderModifiers=function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;e>t;t+=1)this.shapes[t].reset();for(e=this.shapeModifiers.length,t=e-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this.firstFrame)}},q.prototype.renderFrame=function(t){var e=this._parent.renderFrame.call(this,t);return e===!1?void this.hide():(this.globalToLocal([0,0,0]),this.hidden=!1,this.renderModifiers(),void this.renderShape(null,null,!0,null))},q.prototype.hide=function(){if(!this.hidden){var t,e=this.stylesList.length;for(t=e-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}},q.prototype.renderShape=function(t,e,s,i){var a,r;if(!t)for(t=this.shapesData,r=this.stylesList.length,a=0;r>a;a+=1)this.stylesList[a].d="",this.stylesList[a].mdf=!1;e||(e=this.viewData),r=t.length-1;var n;for(a=r;a>=0;a-=1)n=t[a].ty,"tr"==n?((this.firstFrame||e[a].transform.op.mdf&&i)&&i.setAttribute("opacity",e[a].transform.op.v),(this.firstFrame||e[a].transform.mProps.mdf&&i)&&i.setAttribute("transform",e[a].transform.mProps.v.to2dCSS())):"sh"==n||"el"==n||"rc"==n||"sr"==n?this.renderPath(t[a],e[a]):"fl"==n?this.renderFill(t[a],e[a]):"gf"==n?this.renderGradient(t[a],e[a]):"gs"==n?(this.renderGradient(t[a],e[a]),this.renderStroke(t[a],e[a])):"st"==n?this.renderStroke(t[a],e[a]):"gr"==n&&this.renderShape(t[a].it,e[a].it,!1,e[a].gr);if(s){for(r=this.stylesList.length,a=0;r>a;a+=1)"0"===this.stylesList[a].ld&&(this.stylesList[a].ld="1",this.stylesList[a].pElem.style.display="block"),(this.stylesList[a].mdf||this.firstFrame)&&(this.stylesList[a].pElem.setAttribute("d",this.stylesList[a].d),this.stylesList[a].msElem&&this.stylesList[a].msElem.setAttribute("d",this.stylesList[a].d));this.firstFrame&&(this.firstFrame=!1)}},q.prototype.renderPath=function(t,e){var s,i,a,r,n,h,o,p,l=e.elements.length,m=e.lvl;for(p=0;l>p;p+=1){h=e.sh.mdf||this.firstFrame,n="";var f=e.sh.paths;if(r=f.length,e.elements[p].st.lvl<m){var d,c,u=this.mHelper.reset(),v=e.elements[p].st.lvl;for(c=m-1;c>=v;c-=1)h=e.elements[p].st.transformers[c-v].mProps.mdf||h,d=e.elements[p].st.transformers[c-v].mProps.v.props,u.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]);if(h){for(a=0;r>a;a+=1)if(o=f[a],o&&o.v){for(s=o.v.length,i=1;s>i;i+=1)1==i&&(n+=" M"+u.applyToPointStringified(o.v[0][0],o.v[0][1])),n+=" C"+u.applyToPointStringified(o.o[i-1][0],o.o[i-1][1])+" "+u.applyToPointStringified(o.i[i][0],o.i[i][1])+" "+u.applyToPointStringified(o.v[i][0],o.v[i][1]);1==s&&(n+=" M"+u.applyToPointStringified(o.v[0][0],o.v[0][1])),o.c&&(n+=" C"+u.applyToPointStringified(o.o[i-1][0],o.o[i-1][1])+" "+u.applyToPointStringified(o.i[0][0],o.i[0][1])+" "+u.applyToPointStringified(o.v[0][0],o.v[0][1]),n+="z")}e.caches[p]=n}else n=e.caches[p]}else if(h){for(a=0;r>a;a+=1)if(o=f[a],o&&o.v){for(s=o.v.length,i=1;s>i;i+=1)1==i&&(n+=" M"+o.v[0].join(",")),n+=" C"+o.o[i-1].join(",")+" "+o.i[i].join(",")+" "+o.v[i].join(",");1==s&&(n+=" M"+o.v[0].join(",")),o.c&&(n+=" C"+o.o[i-1].join(",")+" "+o.i[0].join(",")+" "+o.v[0].join(","),n+="z")}e.caches[p]=n}else n=e.caches[p];e.elements[p].st.d+=n,e.elements[p].st.mdf=h||e.elements[p].st.mdf}},q.prototype.renderFill=function(t,e){var s=e.style;(e.c.mdf||this.firstFrame)&&s.pElem.setAttribute("fill","rgb("+gt(e.c.v[0])+","+gt(e.c.v[1])+","+gt(e.c.v[2])+")"),(e.o.mdf||this.firstFrame)&&s.pElem.setAttribute("fill-opacity",e.o.v)},q.prototype.renderGradient=function(t,e){var s=e.gf,i=e.of,a=e.s.v,r=e.e.v;if(e.o.mdf||this.firstFrame){var n="gf"===t.ty?"fill-opacity":"stroke-opacity";e.elem.setAttribute(n,e.o.v)}if(e.s.mdf||this.firstFrame){var h=1===t.t?"x1":"cx",o="x1"===h?"y1":"cy";s.setAttribute(h,a[0]),s.setAttribute(o,a[1]),i&&(i.setAttribute(h,a[0]),i.setAttribute(o,a[1]))}var p,l,m,f;if(e.g.cmdf||this.firstFrame){p=e.cst;var d=e.g.c;for(m=p.length,l=0;m>l;l+=1)f=p[l],f.setAttribute("offset",d[4*l]+"%"),f.setAttribute("stop-color","rgb("+d[4*l+1]+","+d[4*l+2]+","+d[4*l+3]+")")}if(i&&(e.g.omdf||this.firstFrame)){p=e.ost;var c=e.g.o;for(m=p.length,l=0;m>l;l+=1)f=p[l],f.setAttribute("offset",c[2*l]+"%"),f.setAttribute("stop-opacity",c[2*l+1])}if(1===t.t)(e.e.mdf||this.firstFrame)&&(s.setAttribute("x2",r[0]),s.setAttribute("y2",r[1]),i&&(i.setAttribute("x2",r[0]),i.setAttribute("y2",r[1])));else{var u;if((e.s.mdf||e.e.mdf||this.firstFrame)&&(u=Math.sqrt(Math.pow(a[0]-r[0],2)+Math.pow(a[1]-r[1],2)),s.setAttribute("r",u),i&&i.setAttribute("r",u)),e.e.mdf||e.h.mdf||e.a.mdf||this.firstFrame){u||(u=Math.sqrt(Math.pow(a[0]-r[0],2)+Math.pow(a[1]-r[1],2)));var v=Math.atan2(r[1]-a[1],r[0]-a[0]),g=e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v,y=u*g,b=Math.cos(v+e.a.v)*y+a[0],k=Math.sin(v+e.a.v)*y+a[1];s.setAttribute("fx",b),s.setAttribute("fy",k),i&&(i.setAttribute("fx",b),i.setAttribute("fy",k))}}},q.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("+gt(e.c.v[0])+","+gt(e.c.v[1])+","+gt(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))},q.prototype.destroy=function(){this._parent.destroy.call(),this.shapeData=null,this.viewData=null,this.parentContainer=null,this.placeholder=null},P(L,W),W.prototype.createElements=function(){this._parent.createElements.call(this);var t=document.createElementNS(ft,"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.innerElem.setAttribute("id",this.data.ln),this.data.cl&&this.innerElem.setAttribute("class",this.data.cl)},W.prototype.hide=B.prototype.hide,W.prototype.renderFrame=B.prototype.renderFrame,W.prototype.destroy=B.prototype.destroy;var Ct=function(){function t(t){for(var e=0,s=t.target;E>e;)A[e].animation===s&&(A.splice(e,1),e-=1,E-=1,i()),e+=1}function e(t,e){if(!t)return null;for(var s=0;E>s;){if(A[s].elem==t&&null!==A[s].elem)return A[s].animation;s+=1}var i=new Tt;return i.setData(t,e),a(i,t),i}function s(){S+=1,k()}function i(){S-=1,0===S&&(w=!0)}function a(e,a){e.addEventListener("destroy",t),e.addEventListener("_active",s),e.addEventListener("_idle",i),A.push({elem:a,animation:e}),E+=1}function r(t){var e=new Tt;return a(e,null),e.setParams(t),e}function n(t,e){var s;for(s=0;E>s;s+=1)A[s].animation.setSpeed(t,e)}function h(t,e){var s;for(s=0;E>s;s+=1)A[s].animation.setDirection(t,e)}function o(t){var e;for(e=0;E>e;e+=1)A[e].animation.play(t)}function p(t,e){M=Date.now();var s;for(s=0;E>s;s+=1)A[s].animation.moveFrame(t,e)}function l(t){var e,s=t-M;for(e=0;E>e;e+=1)A[e].animation.advanceTime(s);M=t,w||requestAnimationFrame(l)}function m(t){M=t,requestAnimationFrame(l)}function f(t){var e;for(e=0;E>e;e+=1)A[e].animation.pause(t)}function d(t,e,s){var i;for(i=0;E>i;i+=1)A[i].animation.goToAndStop(t,e,s)}function c(t){var e;for(e=0;E>e;e+=1)A[e].animation.stop(t)}function u(t){var e;for(e=0;E>e;e+=1)A[e].animation.togglePause(t)}function v(t){var e;for(e=0;E>e;e+=1)A[e].animation.destroy(t)}function g(t,s,i){var a,r=document.getElementsByClassName("bodymovin"),n=r.length;for(a=0;n>a;a+=1)i&&r[a].setAttribute("data-bm-type",i),e(r[a],t);if(s&&0===n){i||(i="svg");var h=document.getElementsByTagName("body")[0];h.innerHTML="";var o=document.createElement("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),h.appendChild(o),e(o,t)}}function y(){var t;for(t=0;E>t;t+=1)A[t].animation.resize()}function b(){requestAnimationFrame(m)}function k(){w&&(w=!1,Performance&&Performance.now?m(Performance.now):requestAnimationFrame(m))}var P={},A=[],M=0,E=0,w=!0,S=0;return setTimeout(b,0),P.registerAnimation=e,P.loadAnimation=r,P.setSpeed=n,P.setDirection=h,P.play=o,P.moveFrame=p,P.pause=f,P.stop=c,P.togglePause=u,P.searchAnimations=g,P.resize=y,P.start=b,P.goToAndStop=d,P.destroy=v,P}(),Tt=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=f(10),this.scaleMode="fit",this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=dt,this.segments=[],this.pendingSegment=!1,this.projectInterface=t()};Tt.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 I(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||(this.loop=t.loop===!1?!1:t.loop===!0?!0:parseInt(t.loop)),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.prerenderFramesFlag="prerender"in t?t.prerender:!0,this.autoloadSegments=t.hasOwnProperty("autoloadSegments")?t.autoloadSegments:!0,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;this.path=-1!=t.path.lastIndexOf("\\")?t.path.substr(0,t.path.lastIndexOf("\\")+1):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(s){}}}},Tt.prototype.setData=function(t,e){var s={wrapper:t,animationData:e?"object"==typeof 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?!1:"true"===a?!0:parseInt(a));var r=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:!0;s.autoplay="false"!==r,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:"";var n=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:"";"false"===n&&(s.prerender=!1),this.setParams(s)},Tt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);var e,s,i=this.animationData.layers,a=i.length,r=t.layers,n=r.length;for(s=0;n>s;s+=1)for(e=0;a>e;){if(i[e].id==r[s].id){i[e]=r[s];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(a=t.assets.length,e=0;a>e;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,wt.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),lt&&lt.initExpressions(this),this.renderer.renderFrame(null),this.loadNextSegment()},Tt.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(e){}}},Tt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.animationData.tf),this.loadNextSegment()},Tt.prototype.configAnimation=function(t){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 It,this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(t.assets),this.loadSegments(),this.updaFrameModifier(),this.renderer.globalData.fontManager?this.waitForFontsLoaded():(wt.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()))},Tt.prototype.waitForFontsLoaded=function(){function t(){this.renderer.globalData.fontManager.loaded?(wt.completeData(this.animationData,this.renderer.globalData.fontManager),this.checkLoaded()):setTimeout(t.bind(this),20)}return function(){t.bind(this)()}}(),Tt.prototype.addPendingElement=function(){this.pendingElements+=1},Tt.prototype.elementLoaded=function(){this.pendingElements--,this.checkLoaded()},Tt.prototype.checkLoaded=function(){0===this.pendingElements&&(lt&&lt.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.isLoaded=!0,this.gotoFrame(),this.autoplay&&this.play())},Tt.prototype.resize=function(){this.renderer.updateContainerSize()},Tt.prototype.setSubframe=function(t){this.subframeEnabled=t?!0:!1},Tt.prototype.gotoFrame=function(){this.currentFrame=this.subframeEnabled?this.currentRawFrame:Math.floor(this.currentRawFrame),this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},Tt.prototype.renderFrame=function(){this.isLoaded!==!1&&this.renderer.renderFrame(this.currentFrame+this.firstFrame)},Tt.prototype.play=function(t){t&&this.name!=t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_active"))},Tt.prototype.pause=function(t){t&&this.name!=t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_idle"))},Tt.prototype.togglePause=function(t){t&&this.name!=t||(this.isPaused===!0?this.play():this.pause())},Tt.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.currentFrame=this.currentRawFrame=0,this.playCount=0,this.gotoFrame())},Tt.prototype.goToAndStop=function(t,e,s){s&&this.name!=s||(this.setCurrentRawFrameValue(e?t:t*this.frameModifier),this.pause())},Tt.prototype.goToAndPlay=function(t,e,s){this.goToAndStop(t,e,s),this.play()},Tt.prototype.advanceTime=function(t){return this.pendingSegment?(this.pendingSegment=!1,this.adjustSegment(this.segments.shift()),void(this.isPaused&&this.play())):void(this.isPaused!==!0&&this.isLoaded!==!1&&this.setCurrentRawFrameValue(this.currentRawFrame+t*this.frameModifier))},Tt.prototype.updateAnimation=function(t){this.setCurrentRawFrameValue(this.totalFrames*t)},Tt.prototype.moveFrame=function(t,e){e&&this.name!=e||this.setCurrentRawFrameValue(this.currentRawFrame+t)},Tt.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")},Tt.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)},Tt.prototype.playSegments=function(t,e){if("object"==typeof t[0]){var s,i=t.length;for(s=0;i>s;s+=1)this.segments.push(t[s])}else this.segments.push(t);e&&this.adjustSegment(this.segments.shift()),this.isPaused&&this.play()},Tt.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())},Tt.prototype.checkSegments=function(){this.segments.length&&(this.pendingSegment=!0)},Tt.prototype.remove=function(t){t&&this.name!=t||this.renderer.destroy()},Tt.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)},Tt.prototype.setCurrentRawFrameValue=function(t){if(this.currentRawFrame=t,this.currentRawFrame>=this.totalFrames){if(this.checkSegments(),this.loop===!1)return this.currentRawFrame=this.totalFrames-.01,this.gotoFrame(),this.pause(),void this.trigger("complete");if(this.trigger("loopComplete"),this.playCount+=1,this.loop!==!0&&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),this.loop===!1||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()},Tt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},Tt.prototype.setDirection=function(t){this.playDirection=0>t?-1:1,this.updaFrameModifier()},Tt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},Tt.prototype.getPath=function(){return this.path},Tt.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},Tt.prototype.getAssetData=function(t){for(var e=0,s=this.assets.length;s>e;){if(t==this.assets[e].id)return this.assets[e];e+=1}},Tt.prototype.hide=function(){this.renderer.hide()},Tt.prototype.show=function(){this.renderer.show()},Tt.prototype.getAssets=function(){return this.assets},Tt.prototype.trigger=function(t){if(this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new a(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"loopComplete":this.triggerEvent(t,new n(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new r(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new h(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new o(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new a(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new n(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new r(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new h(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new o(t,this))},Tt.prototype.addEventListener=p,Tt.prototype.removeEventListener=l,Tt.prototype.triggerEvent=m;var Lt={};Lt.play=G,Lt.pause=X,Lt.togglePause=H,Lt.setSpeed=Y,Lt.setDirection=U,Lt.stop=Z,Lt.moveFrame=K,Lt.searchAnimations=J,Lt.registerAnimation=Q,Lt.loadAnimation=it,Lt.setSubframeRendering=st,Lt.resize=$,Lt.start=tt,Lt.goToAndStop=et,Lt.destroy=at,Lt.setQuality=rt,Lt.installPlugin=nt,Lt.__getFactory=ht,Lt.version="4.4.23";var Nt="__[STANDALONE]__",_t="__[ANIMATIONDATA]__",Vt="";if(Nt){var zt=document.getElementsByTagName("script"),jt=zt.length-1,Ot=zt[jt],Rt=Ot.src.replace(/^[^\?]+\??/,"");Vt=pt("renderer")}var Bt=setInterval(ot,100);return Lt});