(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28],{8234:function(t,e,s){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t,i,a,r,n,o,h,l,p,f,m="",d=!1,c=function(t){m=t},u=function(){return m};function g(t){return document.createElement(t)}function y(t,e){var s,i,a=t.length;for(s=0;s1?s[1]=1:s[1]<=0&&(s[1]=0),q(s[0],s[1],s[2])}function X(t,e){var s=j(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),q(s[0],s[1],s[2])}function H(t,e){var s=j(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),q(s[0],s[1],s[2])}!function(){var t,e,s=[];for(t=0;t<256;t+=1)e=t.toString(16),s[t]=1===e.length?"0"+e:e}();var Y=function(t){P=!!t},G=function(t){A=t},J=function(){return A},K=function(){return null},U=function(t){F=t},Z=function(){return F},Q=function(t){S=t};function $(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var te=function(){var t,e,s=1,i=[],a={onmessage:function(){},postMessage:function(e){t({data:e})}},r={postMessage:function(t){a.onmessage({data:t})}};function n(){e||((e=function(e){if(window.Worker&&window.Blob&&d){var s=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(s);return new Worker(i)}return t=e,a}(function(t){if(r.dataManager||(r.dataManager=function(){function t(a,r){var n,o,h,l,p,f,m=a.length;for(o=0;o=0;e-=1)if("sh"===t[e].ty){if(t[e].ks.k.i)i(t[e].ks.k);else for(a=0,r=t[e].ks.k.length;as[0]||!(s[0]>t[0])&&(t[1]>s[1]||!(s[1]>t[1])&&(t[2]>s[2]||!(s[2]>t[2])&&null))}var r,n=function(){var t=[4,4,14];function e(t){var e,s=t.length;for(e=0;e=0;s-=1)if("sh"===e[s].ty){if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(i=0,a=e[s].ks.k.length;i500)&&(this._imageLoaded(),clearInterval(s)),e+=1}).bind(this),50)}function o(t){var e={assetData:t},s=r(t,this.assetsPath,this.path);return te.loadData(s,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function h(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return h.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;var s,i=t.length;for(s=0;sthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,s,i=this.animationData.layers,a=i.length,r=t.layers,n=r.length;for(s=0;sthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},th.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},th.prototype.play=function(t){(!t||this.name===t)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},th.prototype.pause=function(t){t&&this.name!==t||!1!==this.isPaused||(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},th.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},th.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},th.prototype.getMarkerData=function(t){for(var e,s=0;s=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(s=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(s=!0,e=0)):this.setCurrentRawFrameValue(e),s&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},th.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},th.prototype.setSegment=function(t,e){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(s=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==s&&this.goToAndStop(s,!0)},th.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===to(t[0])){var s,i=t.length;for(s=0;s=0;s-=1)e[s].animation.destroy(t)},t.freeze=function(){n=!0},t.unfreeze=function(){n=!1,c()},t.setVolume=function(t,s){var a;for(a=0;a=.001?function(t,e,s,r){for(var n=0;n<4;++n){var o=a(e,s,r);if(0===o)break;var h=i(e,s,r)-t;e-=h/o}return e}(t,h,e,s):0===l?h:function(t,e,s,a,r){var n,o,h=0;do(n=i(o=e+(s-e)/2,a,r)-t)>0?s=o:e=o;while(Math.abs(n)>1e-7&&++h<10);return o}(t,n,n+.1,e,s)}},t}(),tf={double:function(t){return t.concat(_(t.length))}},tm=function(t,e,s){var i=0,a=t,r=_(a);return{newElement:function(){var t;return i?(i-=1,t=r[i]):t=e(),t},release:function(t){i===a&&(r=tf.double(r),a*=2),s&&s(t),r[i]=t,i+=1}}},td=tm(8,function(){return{addedLength:0,percents:b("float32",Z()),lengths:b("float32",Z())}}),tc=tm(8,function(){return{lengths:[],totalLength:0}},function(t){var e,s=t.lengths.length;for(e=0;e-.001&&n<.001}var i=function(t,e,s,i){var a,r,n,o,h,l,p=Z(),f=0,m=[],d=[],c=td.newElement();for(a=0,n=s.length;an?-1:1,l=!0;l;)if(i[r]<=n&&i[r+1]>n?(o=(n-i[r])/(i[r+1]-i[r]),l=!1):r+=h,r<0||r>=a-1){if(r===a-1)return s[r];l=!1}return s[r]+(s[r+1]-s[r])*o}var h=b("float32",8);return{getSegmentsLength:function(t){var e,s=tc.newElement(),a=t.c,r=t.v,n=t.o,o=t.i,h=t._length,l=s.lengths,p=0;for(e=0;e1&&(r=1);var p,f=o(r,l),m=o(n=n>1?1:n,l),d=t.length,c=1-f,u=1-m,g=c*c*c,y=f*c*c*3,v=f*f*c*3,b=f*f*f,_=c*c*u,k=f*c*u+c*f*u+c*c*m,P=f*f*u+c*f*m+f*c*m,A=f*f*m,S=c*u*u,x=f*u*u+c*m*u+c*u*m,w=f*m*u+c*m*m+f*u*m,D=f*m*m,M=u*u*u,C=m*u*u+u*m*u+u*u*m,T=m*m*u+u*m*m+m*u*m,F=m*m*m;for(p=0;pd?m>c?m-d-c:c-d-m:c>d?c-d-m:d-m-c)>-.0001&&f<1e-4}}}(),tg=Math.abs;function ty(t,e){var s=this.offsetTime;"multidimensional"===this.propType&&(f=b("float32",this.pv.length));for(var i=e.lastIndex,a=i,r=this.keyframes.length-1,n=!0;n;){if(m=this.keyframes[a],d=this.keyframes[a+1],a===r-1&&t>=d.t-s){m.h&&(m=d),i=0;break}if(d.t-s>t){i=a;break}a=o||t=o?l.points.length-1:0;for(u=0,g=l.points[p].point.length;u=x&&S=o)f[0]=P[0],f[1]=P[1],f[2]=P[2];else if(t<=h)f[0]=m.s[0],f[1]=m.s[1],f[2]=m.s[2];else{var w,D,M,C,T,F,I,L,V,R,z,N,O,B,q,j,W,X,H,Y,G,J,K,U,Z,Q,$=tv(m.s),tt=tv(P);j=f,X=(w=(t-h)/(o-h),I=[],L=$[0],V=$[1],R=$[2],z=$[3],N=tt[0],O=tt[1],(M=L*N+V*O+R*(B=tt[2])+z*(q=tt[3]))<0&&(M=-M,N=-N,O=-O,B=-B,q=-q),1-M>1e-6?(C=Math.sin(D=Math.acos(M)),T=Math.sin((1-w)*D)/C,F=Math.sin(w*D)/C):(T=1-w,F=w),I[0]=T*L+F*N,I[1]=T*V+F*O,I[2]=T*R+F*B,I[3]=T*z+F*q,W=I)[0],H=W[1],Y=W[2],G=W[3],j[0]=Math.atan2(2*H*G-2*X*Y,1-2*H*H-2*Y*Y)/E,j[1]=Math.asin(2*X*H+2*Y*G)/E,j[2]=Math.atan2(2*X*G-2*H*Y,1-2*X*X-2*Y*Y)/E}}else for(a=0;a=o?y=1:t=s&&t>=s||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function t_(t){var e;if("unidimensional"===this.propType)e=t*this.mult,tg(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,i=this.v.length;s1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}function tk(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),s){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}r[i]&&(!r[i]||a)||(r[i]=tC.newElement()),r[i][0]=t,r[i][1]=e},tT.prototype.setTripleAt=function(t,e,s,i,a,r,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(s,i,"o",n,o),this.setXYAt(a,r,"i",n,o)},tT.prototype.reverse=function(){var t,e=new tT;e.setPathData(this.c,this._length);var s=this.v,i=this.o,a=this.i,r=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],i[0][0],i[0][1],0,!1),r=1);var n=this._length-1,o=this._length;for(t=r;t=a[a.length-1].t-this.offsetTime)r=a[a.length-1].s?a[a.length-1].s[0]:a[a.length-2].e[0],o=!0;else{for(var r,n,o,h,l,p,f,m,d,c,u,g,y,v=i,b=a.length-1,_=!0;_&&(c=a[v],!((u=a[v+1]).t-this.offsetTime>t));)v=u.t-this.offsetTime?m=1:ts&&t>s)||(this._caching.lastIndex=i0||t>-.000001&&t<0?i(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=f,this.shear=l,this.scale=m,this.setTransform=d,this.translate=c,this.transform=u,this.multiply=g,this.applyToPoint=P,this.applyToX=A,this.applyToY=S,this.applyToZ=x,this.applyToPointArray=T,this.applyToTriplePoints=C,this.applyToPointStringified=F,this.toCSS=E,this.to2dCSS=L,this.clone=_,this.cloneFromProps=k,this.equals=v,this.inversePoints=M,this.inversePoint=D,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=b("float32",16),this.reset()}}();function tR(t){return(tR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var tz={},tN="__[STANDALONE]__",tO="__[ANIMATIONDATA]__",tB="";function tq(){!0===tN?tl.searchAnimations(tO,tN,tB):tl.searchAnimations()}tz.play=tl.play,tz.pause=tl.pause,tz.setLocationHref=function(t){c(t)},tz.togglePause=tl.togglePause,tz.setSpeed=tl.setSpeed,tz.setDirection=tl.setDirection,tz.stop=tl.stop,tz.searchAnimations=tq,tz.registerAnimation=tl.registerAnimation,tz.loadAnimation=function(t){return!0===tN&&(t.animationData=JSON.parse(tO)),tl.loadAnimation(t)},tz.setSubframeRendering=function(t){Y(t)},tz.resize=tl.resize,tz.goToAndStop=tl.goToAndStop,tz.destroy=tl.destroy,tz.setQuality=function(t){if("string"==typeof t)switch(t){case"high":U(200);break;default:case"medium":U(50);break;case"low":U(10)}else!isNaN(t)&&t>1&&U(t);Z()},tz.inBrowser=function(){return"undefined"!=typeof navigator},tz.installPlugin=function(t,e){"expressions"===t&&G(e)},tz.freeze=tl.freeze,tz.unfreeze=tl.unfreeze,tz.setVolume=tl.setVolume,tz.mute=tl.mute,tz.unmute=tl.unmute,tz.getRegisteredAnimations=tl.getRegisteredAnimations,tz.useWebWorker=function(t){d=!!t},tz.setIDPrefix=function(t){Q(t)},tz.__getFactory=function(t){switch(t){case"propertyFactory":return tD;case"shapePropertyFactory":return tL;case"matrix":return tV;default:return null}},tz.version="5.12.2";var tj="";if(tN){var tW=document.getElementsByTagName("script"),tX=tW.length-1,tH=tW[tX]||{src:""};tj=tH.src?tH.src.replace(/^[^\?]+\??/,""):"",tB=function(t){for(var e=tj.split("&"),s=0;s=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var h=[],l=o.length;for(r=0;ri+s||h.push([n.s*a<=i?0:(n.s*a-i)/s,n.e*a>=i+s?1:(n.e*a-i)/s]);return h.length||h.push([0,0]),h},tK.prototype.releasePathsData=function(t){var e,s=t.length;for(e=0;e1?1+e:this.s.v<0?0+e:this.s.v+e)>(n=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var s=r;r=n,n=s}r=1e-4*Math.round(1e4*r),n=1e-4*Math.round(1e4*n),this.sValue=r,this.eValue=n}else r=this.sValue,n=this.eValue;var i=this.shapes.length,a=0;if(n===r)for(h=0;h=0;h-=1)if((c=this.shapes[h]).shape._mdf){for((u=c.localShapeCollection).releaseShapes(),2===this.m&&i>1?(g=this.calculateShapeEdges(r,n,c.totalShapeLength,_,a),_+=c.totalShapeLength):g=[[v,b]],p=g.length,l=0;l=1?y.push({s:c.totalShapeLength*(v-1),e:c.totalShapeLength*(b-1)}):(y.push({s:c.totalShapeLength*v,e:c.totalShapeLength}),y.push({s:0,e:c.totalShapeLength*(b-1)}));var k=this.addShapes(c,y[0]);if(y[0].s!==y[0].e){if(y.length>1){if(c.shape.paths.shapes[c.shape.paths._length-1].c){var P=k.pop();this.addPaths(k,u),k=this.addShapes(c,y[1],P)}else this.addPaths(k,u),k=this.addShapes(c,y[1])}this.addPaths(k,u)}}c.shape.paths=u}}},tK.prototype.addPaths=function(t,e){var s,i=t.length;for(s=0;se.e){s.c=!1;break}else e.s<=c&&e.e>=c+n.addedLength?(this.addSegment(m[i].v[a-1],m[i].o[a-1],m[i].i[a],m[i].v[a],s,o,g),g=!1):(l=tu.getNewSegment(m[i].v[a-1],m[i].v[a],m[i].o[a-1],m[i].i[a],(e.s-c)/n.addedLength,(e.e-c)/n.addedLength,h[a-1]),this.addSegmentFromArray(l,s,o,g),g=!1,s.c=!1),c+=n.addedLength,o+=1;if(m[i].c&&h.length){if(n=h[a-1],c<=e.e){var y=h[a-1].addedLength;e.s<=c&&e.e>=c+y?(this.addSegment(m[i].v[a-1],m[i].o[a-1],m[i].i[0],m[i].v[0],s,o,g),g=!1):(l=tu.getNewSegment(m[i].v[a-1],m[i].v[0],m[i].o[a-1],m[i].i[0],(e.s-c)/y,(e.e-c)/y,h[a-1]),this.addSegmentFromArray(l,s,o,g),g=!1,s.c=!1)}else s.c=!1;c+=n.addedLength,o+=1}if(s._length&&(s.setXYAt(s.v[p][0],s.v[p][1],"i",p),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),c>e.e)break;i=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(i=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/s,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],a=[];var i,a,r=this.px,n=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(i[0]=r.getValueAtTime((r.keyframes[0].t+.01)/s,0),i[1]=n.getValueAtTime((n.keyframes[0].t+.01)/s,0),a[0]=r.getValueAtTime(r.keyframes[0].t/s,0),a[1]=n.getValueAtTime(n.keyframes[0].t/s,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(i[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/s,0),i[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/s,0),a[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/s,0),a[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/s,0)):(i=[r.pv,n.pv],a[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/s,r.offsetTime),a[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/s,n.offsetTime))}else i=a=t;this.v.rotate(-Math.atan2(i[1]-a[1],i[0]-a[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},y([tM],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=tM.prototype.addDynamicProperty,{getTransformProperty:function(t,s,i){return new e(t,s,i)}}}();function tQ(){}function t$(){}function t0(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function t1(t){return 1e-5>=Math.abs(t)}function t2(t,e,s){return[t[0]*(1-s)+e[0]*s,t[1]*(1-s)+e[1]*s]}function t3(t,e,s,i){return[-t+3*e-3*s+i,3*t-6*e+3*s,-3*t+3*e,t]}function t5(t){return new t9(t,t,t,t,!1)}function t9(t,e,s,i,a){a&&ei(t,e)&&(e=t2(t,i,1/3)),a&&ei(s,i)&&(s=t2(t,i,2/3));var r=t3(t[0],e[0],s[0],i[0]),n=t3(t[1],e[1],s[1],i[1]);this.a=[r[0],n[0]],this.b=[r[1],n[1]],this.c=[r[2],n[2]],this.d=[r[3],n[3]],this.points=[t,e,s,i]}function t4(t,e){var s=t.points[0][e],i=t.points[t.points.length-1][e];if(s>i){var a=i;i=s,s=a}for(var r=function(t,e,s){if(0===t)return[];var i=e*e-4*t*s;if(i<0)return[];var a=-e/(2*t);if(0===i)return[a];var r=Math.sqrt(i)/(2*t);return[a-r,a+r]}(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&r[n]<1){var o=t.point(r[n])[e];oi&&(i=o)}return{min:s,max:i}}function t6(t,e,s){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+s)/2,t1:e,t2:s}}function t8(t){var e=t.bez.split(.5);return[t6(e[0],t.t1,t.t),t6(e[1],t.t,t.t2)]}function t7(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function et(t,e,s,i){var a=[t[0],t[1],1],r=[e[0],e[1],1],n=[s[0],s[1],1],o=[i[0],i[1],1],h=t7(t7(a,r),t7(n,o));return t1(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function ee(t,e,s){return[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s]}function es(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ei(t,e){return t0(t[0],e[0])&&t0(t[1],e[1])}function ea(){}function er(t,e,s,i,a,r,n){var o=s-Math.PI/2,h=s+Math.PI/2,l=e[0]+Math.cos(s)*i*a,p=e[1]-Math.sin(s)*i*a;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function en(t,e,s,i,a,r,n){var o,h,l,p,f,m,d,c=(o=0===s?e.length()-1:s-1,h=(s+1)%e.length(),l=e.v[o],Math.atan2(0,1)-Math.atan2((f=[(p=e.v[h])[0]-l[0],p[1]-l[1]],d=[Math.cos(m=-(.5*Math.PI))*f[0]-Math.sin(m)*f[1],Math.sin(m)*f[0]+Math.cos(m)*f[1]])[1],d[0])),u=e.v[s%e._length],g=e.v[0===s?e._length-1:s-1],y=e.v[(s+1)%e._length],v=2===r?Math.sqrt(Math.pow(u[0]-g[0],2)+Math.pow(u[1]-g[1],2)):0,b=2===r?Math.sqrt(Math.pow(u[0]-y[0],2)+Math.pow(u[1]-y[1],2)):0;er(t,e.v[s%e._length],c,n,i,b/((a+1)*2),v/((a+1)*2),r)}function eo(t,e,s){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[ee(t,i,s),ee(e,i,s)]}function eh(t,e){s=(h=eo(t.points[0],t.points[1],e))[0],i=h[1],a=(h=eo(t.points[1],t.points[2],e))[0],r=h[1],n=(h=eo(t.points[2],t.points[3],e))[0],o=h[1];var s,i,a,r,n,o,h,l=et(s,i,a,r);null===l&&(l=i);var p=et(n,o,a,r);return null===p&&(p=n),new t9(s,l,p,o)}function el(t,e,s,i,a){var r=e.points[3],n=s.points[0];if(3===i||ei(r,n))return r;if(2===i){var o=-e.tangentAngle(1),h=-s.tangentAngle(0)+Math.PI,l=et(r,ee(r,o+Math.PI/2,100),n,ee(n,o+Math.PI/2,100)),p=l?es(l,r):es(r,n)/2,f=ee(r,o,2*p*.5519);return t.setXYAt(f[0],f[1],"o",t.length()-1),f=ee(n,h,2*p*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],f[0],f[1],t.length()),n}var m=ei(r,e.points[2])?e.points[0]:e.points[2],d=ei(n,s.points[1])?s.points[3]:s.points[1],c=et(m,r,n,d);return c&&es(c,r)1&&e.length>1&&(a=ep(t[0],e[e.length-1])))?[[t[0].split(a[0])[0]],[e[e.length-1].split(a[1])[1]]]:[s,i]}function em(t,e){var s,i,a,r,n=t.inflectionPoints();if(0===n.length)return[eh(t,e)];if(1===n.length||t0(n[1],1))return s=(a=t.split(n[0]))[0],i=a[1],[eh(s,e),eh(i,e)];s=(a=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return r=(a=a[1].split(o))[0],i=a[1],[eh(s,e),eh(r,e),eh(i,e)]}function ed(){}function ec(t){for(var e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",a=e.length,r=0;r0;)s-=1,this._elements.unshift(e[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},tQ.prototype.resetElements=function(t){var e,s=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),y=this.pMatrix.props,v=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(c>0){for(;_g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),_-=u)}for(a=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(l=(i=(s=this.elemsData[a].it)[s.length-1].transform.mProps.v.props).length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==_){for((0!==a&&1===r||a!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),h=0;h0&&i<1?[e]:[]:[e-i,e+i].filter(function(t){return t>0&&t<1})},t9.prototype.split=function(t){if(t<=0)return[t5(this.points[0]),this];if(t>=1)return[this,t5(this.points[this.points.length-1])];var e=t2(this.points[0],this.points[1],t),s=t2(this.points[1],this.points[2],t),i=t2(this.points[2],this.points[3],t),a=t2(e,s,t),r=t2(s,i,t),n=t2(a,r,t);return[new t9(this.points[0],e,a,n,!0),new t9(n,r,i,this.points[3],!0)]},t9.prototype.bounds=function(){return{x:t4(this,0),y:t4(this,1)}},t9.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},t9.prototype.intersections=function(t,e,s){void 0===e&&(e=2),void 0===s&&(s=7);var i=[];return function t(e,s,i,a,r,n){if(2*Math.abs(e.cx-s.cx)=n||e.width<=a&&e.height<=a&&s.width<=a&&s.height<=a){r.push([e.t,s.t]);return}var o=t8(e),h=t8(s);t(o[0],h[0],i+1,a,r,n),t(o[0],h[1],i+1,a,r,n),t(o[1],h[0],i+1,a,r,n),t(o[1],h[1],i+1,a,r,n)}}(t6(this,0,1),t6(t,0,1),0,e,i,s),i},t9.shapeSegment=function(t,e){var s=(e+1)%t.length();return new t9(t.v[e],t.o[e],t.i[s],t.v[s],!0)},t9.shapeSegmentInverted=function(t,e){var s=(e+1)%t.length();return new t9(t.v[s],t.i[s],t.o[e],t.v[e],!0)},y([tJ],ea),ea.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=tD.getProp(t,e.s,0,null,this),this.frequency=tD.getProp(t,e.r,0,null,this),this.pointsType=tD.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ea.prototype.processPath=function(t,e,s,i){var a=t._length,r=tF.newElement();if(r.c=t.c,t.c||(a-=1),0===a)return r;var n=-1,o=t9.shapeSegment(t,0);en(r,t,0,e,s,i,n);for(var h=0;h=0;a-=1)n=t9.shapeSegmentInverted(t,a),l.push(em(n,e));l=function(t){for(var e,s=1;s1&&(e=ef(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,f=null;for(a=0;a=55296&&s<=56319){var i=t.charCodeAt(1);i>=56320&&i<=57343&&(e=(s-55296)*1024+i-56320+65536)}return e}function n(t){var e=r(t);return e>=127462&&e<=127487}var o=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return o.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return -1!==s.indexOf(i)},o.isZeroWidthJoiner=function(t){return 8205===t},o.isFlagEmoji=function(t){return n(t.substr(0,2))&&n(t.substr(2,2))},o.isRegionalCode=n,o.isCombinedCharacter=function(t){return -1!==e.indexOf(t)},o.isRegionalFlag=function(t,e){var s=r(t.substr(e,2));if(127988!==s)return!1;var i=0;for(e+=2;i<5;){if((s=r(t.substr(e,2)))<917601||s>917626)return!1;i+=1,e+=2}return 917631===r(t.substr(e,2))},o.isVariationSelector=function(t){return 65039===t},o.BLACK_FLAG_CODE_POINT=127988,o.prototype={addChars:function(t){if(t){this.chars||(this.chars=[]);var e,s,i,a=t.length,r=this.chars.length;for(e=0;e0&&(p=!1),p){var f=g("style");f.setAttribute("f-forigin",s[o].fOrigin),f.setAttribute("f-origin",s[o].origin),f.setAttribute("f-family",s[o].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+s[o].fFamily+"; font-style: normal; src: url('"+s[o].fPath+"');}",e.appendChild(f)}}else if("g"===s[o].fOrigin||1===s[o].origin){for(l=0,h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');lt?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},eE.prototype.show=function(){},eE.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},eE.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},eE.prototype.resume=function(){this._canPlay=!0},eE.prototype.setRate=function(t){this.audio.rate(t)},eE.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},eE.prototype.getBaseElement=function(){return null},eE.prototype.destroy=function(){},eE.prototype.sourceRectAtTime=function(){},eE.prototype.initExpressions=function(){},eI.prototype.checkLayers=function(t){var e,s,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)!this.elements[e]&&(s=this.layers[e]).ip-s.st<=t-this.layers[e].st&&s.op-s.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},eI.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},eI.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},eI.prototype.createAudio=function(t){return new eE(t,this.globalData,this)},eI.prototype.createFootage=function(t){return new eF(t,this.globalData,this)},eI.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(p,"url("+u()+"#"+h+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}eV.prototype={initTransform:function(){var t=new tV;this.finalTransform={mProp:this.data.ks?tZ.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,s=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;s1&&(r+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),s.lastPath!==r){var n="";s.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),s.elem.setAttribute("d",n)),s.lastPath=r}},eR.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ez=((p={}).createFilter=function(t,e){var s=$("filter");return s.setAttribute("id",t),!0!==e&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s},p.createAlphaToLuminanceFilter=function(){var t=$("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},p),eN=(f={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(f.maskType=!1),/firefox/i.test(navigator.userAgent)&&(f.svgLumaHidden=!1),f),eO={},eB="filter_result_";function eq(t){var e,s,i="SourceGraphic",a=t.data.ef?t.data.ef.length:0,r=B(),n=ez.createFilter(r,!0),o=0;for(e=0,this.filters=[];e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,s=0,i=e.length;s.01)return!1;s+=1}return!0},e2.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)h=i.transformers[c].mProps._mdf||h,d-=1,c-=1;if(h)for(d=g-i.styles[p].lvl,c=i.transformers.length-1;d>0;)m.multiply(i.transformers[c].mProps.v),d-=1,c-=1}else m=t;if(n=(f=i.sh.paths)._length,h){for(r=0,o="";r=1?v=.99:v<=-1&&(v=-.99);var b=o*v,_=Math.cos(y+e.a.v)*b+p[0],k=Math.sin(y+e.a.v)*b+p[1];h.setAttribute("fx",_),h.setAttribute("fy",k),l&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",k))}}function h(t,e,s){var i=e.style,a=e.d;a&&(a._mdf||s)&&a.dashStr&&(i.pElem.setAttribute("stroke-dasharray",a.dashStr),i.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),e.c&&(e.c._mdf||s)&&i.pElem.setAttribute("stroke","rgb("+M(e.c.v[0])+","+M(e.c.v[1])+","+M(e.c.v[2])+")"),(e.o._mdf||s)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||s)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return r;case"gf":return o;case"gs":return n;case"st":return h;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return i;default:return null}}}}();function e7(t,e,s){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,s),this.prevViewData=[]}function st(t,e,s,i,a,r){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=a,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!s,fc:!!i,m:!0,p:!0}}function se(t,e){this._frameId=-999999,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}y([eC,eV,ej,eG,eW,eT,eX],e7),e7.prototype.initSecondaryElement=function(){},e7.prototype.identityMatrix=new tV,e7.prototype.buildExpressionInterface=function(){},e7.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},e7.prototype.filterUniqueShapes=function(){var t,e,s,i,a=this.shapes.length,r=this.stylesList.length,n=[],o=!1;for(s=0;s1&&o&&this.setShapesAsAnimated(n)}},e7.prototype.setShapesAsAnimated=function(t){var e,s=t.length;for(e=0;e=0;o-=1){if((m=this.searchProcessedElement(t[o]))?e[o]=s[m-1]:t[o]._render=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)m?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],a),t[o]._render&&e[o].style.pElem.parentNode!==i&&i.appendChild(e[o].style.pElem),u.push(e[o].style);else if("gr"===t[o].ty){if(m)for(h=0,l=e[o].it.length;h1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},se.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},se.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e,s=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(e=0;ee);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},se.prototype.buildFinalText=function(t){for(var e,s,i=[],a=0,r=t.length,n=!1,o=!1,h="";a=55296&&e<=56319?eu.isRegionalFlag(t,a)?h=t.substr(a,14):(s=t.charCodeAt(a+1))>=56320&&s<=57343&&(eu.isModifier(e,s)?(h=t.substr(a,2),n=!0):h=eu.isFlagEmoji(t.substr(a,4))?t.substr(a,4):t.substr(a,2)):e>56319?(s=t.charCodeAt(a+1),eu.isVariationSelector(e)&&(n=!0)):eu.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(i[i.length-1]+=h,n=!1):i.push(h),a+=h.length;return i},se.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,s=this.data,i=[],a=0,r=s.m.g,n=0,o=0,h=0,l=[],p=0,f=0,m=e.getFontByName(t.f),d=0,c=ec(m);t.fWeight=c.weight,t.fStyle=c.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),y=t.finalText.length,t.finalLineHeight=t.lh;var u=t.tr/1e3*t.finalSize;if(t.sz)for(var g,y,v,b,_,k,P,A,S,x,w=!0,D=t.sz[0],M=t.sz[1];w;){x=this.buildFinalText(t.t),S=0,p=0,y=x.length,u=t.tr/1e3*t.finalSize;var C=-1;for(g=0;gD&&" "!==x[g]?(-1===C?y+=1:g=C,S+=t.finalLineHeight||1.2*t.finalSize,x.splice(g,C===g?1:0,"\r"),C=-1,p=0):p+=d+u;S+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Mf?p:f,p=-2*u,b="",v=!0,h+=1):b=I,e.chars?(P=e.getCharData(I,m.fStyle,e.getFontByName(t.f).fFamily),d=v?0:P.w*t.finalSize/100):d=e.measureText(b,t.f,t.finalSize)," "===I?T+=d+u:(p+=d+u+T,T=0),i.push({l:d,an:d,add:n,n:v,anIndexes:[],val:b,line:h,animatorJustifyOffset:0}),2==r){if(n+=d,""===b||" "===b||g===y-1){for((""===b||" "===b)&&(n-=d);o<=g;)i[o].an=n,i[o].ind=a,i[o].extra=d,o+=1;a+=1,n=0}}else if(3==r){if(n+=d,""===b||g===y-1){for(""===b&&(n-=d);o<=g;)i[o].an=n,i[o].ind=a,i[o].extra=d,o+=1;n=0,a+=1}}else i[a].ind=a,i[a].extra=0,a+=1;if(t.l=i,f=p>f?p:f,l.push(p),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=f,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=l;var F=s.a;k=F.length;var E=[];for(_=0;_0?a=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=tp.getBezierEasing(a,r,n,o).get,l=0,p=this.finalS,f=this.finalE,m=this.data.sh;if(2===m)l=h(l=f===p?i>=f?1:0:t(0,e(.5/(f-p)+(i-p)/(f-p),1)));else if(3===m)l=h(l=f===p?i>=f?0:1:1-t(0,e(.5/(f-p)+(i-p)/(f-p),1)));else if(4===m)f===p?l=0:(l=t(0,e(.5/(f-p)+(i-p)/(f-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===m){if(f===p)l=0;else{var d=f-p,c=-d/2+(i=e(t(0,i+.5-p),f-p)),u=d/2;l=Math.sqrt(1-c*c/(u*u))}l=h(l)}else 6===m?l=h(l=f===p?0:(1+Math.cos(Math.PI+2*Math.PI*(i=e(t(0,i+.5-p),f-p))/(f-p)))/2):(i>=s(p)&&(l=i-p<0?t(0,e(e(f,1)-(p-i),1)):t(0,e(f-i,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,s=this.o.v/e,i=this.s.v/e+s,a=this.e.v/e+s;if(i>a){var r=i;i=a,a=r}this.finalS=i,this.finalE=a}},y([tM],i),{getTextSelectorProp:function(t,e,s){return new i(t,e,s)}}}();function si(t,e,s){var i={propType:!1},a=tD.getProp,r=e.a;this.a={r:r.r?a(t,r.r,0,E,s):i,rx:r.rx?a(t,r.rx,0,E,s):i,ry:r.ry?a(t,r.ry,0,E,s):i,sk:r.sk?a(t,r.sk,0,E,s):i,sa:r.sa?a(t,r.sa,0,E,s):i,s:r.s?a(t,r.s,1,.01,s):i,a:r.a?a(t,r.a,1,0,s):i,o:r.o?a(t,r.o,0,.01,s):i,p:r.p?a(t,r.p,1,0,s):i,sw:r.sw?a(t,r.sw,0,0,s):i,sc:r.sc?a(t,r.sc,1,0,s):i,fc:r.fc?a(t,r.fc,1,0,s):i,fh:r.fh?a(t,r.fh,0,0,s):i,fs:r.fs?a(t,r.fs,0,.01,s):i,fb:r.fb?a(t,r.fb,0,.01,s):i,t:r.t?a(t,r.t,0,0,s):i},this.s=ss.getTextSelectorProp(t,e.s,s),this.s.t=e.s.t}function sa(t,e,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=s,this._animatorsData=_(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}function sr(){}sa.prototype.searchProperties=function(){var t,e,s=this._textData.a.length,i=tD.getProp;for(t=0;t=F+tl||!N?(j=(F+tl-I)/E.partialLength,h=z.point[0]+(E.point[0]-z.point[0])*j,l=z.point[1]+(E.point[1]-z.point[1])*j,P.translate(-b[0]*x[M].an*.005,-(b[1]*K*.01)),L=!1):N&&(I+=E.partialLength,(V+=1)>=N.length&&(V=0,O[R+=1]?N=O[R].points:Y.v.c?(V=0,N=O[R=0].points):(I-=E.partialLength,N=null)),N&&(z=E,B=(E=N[V]).partialLength));o=x[M].an/2-x[M].add,P.translate(-o,0,0)}else o=x[M].an/2-x[M].add,P.translate(-o,0,0),P.translate(-b[0]*x[M].an*.005,-b[1]*K*.01,0);for(i=0;ic?this.textSpans[c].span:$(r?"g":"text"),m<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,r){var d=$("g");g.appendChild(d),this.textSpans[c].childSpan=d}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(n.reset(),o&&(a[c].n&&(h=-f,l+=t.yOffset+(p?1:0),p=!1),this.applyTextPropertiesToMatrix(t,n,a[c].line,h,l),h+=(a[c].l||0)+f),r){if(1===(y=this.globalData.fontManager.getCharData(t.finalText[c],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)v=new sm(y.data,this.globalData,this);else{var c,u,g,y,v,b=sn;y.data&&y.data.shapes&&(b=this.buildShapeData(y.data,t.finalSize)),v=new e7(b,this.globalData,this)}if(this.textSpans[c].glyph){var k=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[c].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[c].childSpan.appendChild(v.layerElement),1===y.t&&this.textSpans[c].childSpan.setAttribute("transform","scale("+t.finalSize/100+","+t.finalSize/100+")")}else o&&g.setAttribute("transform","translate("+n.props[12]+","+n.props[13]+")"),g.textContent=a[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}o&&g&&g.setAttribute("d","")}else{var P=this.textContainer,A="start";switch(t.j){case 1:A="end";break;case 2:A="middle";break;default:A="start"}P.setAttribute("text-anchor",A),P.setAttribute("letter-spacing",f);var S=this.buildTextContents(t.finalText);for(c=0,u=S.length,l=t.ps?t.ps[1]+t.ascent:0;c=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},sf.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t