(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9377],{KLKL:function(t,e,i){!function(t,e){"use strict";var s,r=e&&"object"==typeof e&&"default"in e?e:{default:e},a=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self,{exports:{}});s=a.exports,"undefined"!=typeof navigator&&(a.exports=function(){var t,e,i,r,a,n,o,h,l,p,f="",m=!1,setLocationHref=function(t){f=t},getLocationHref=function(){return f};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,s,r=t.length;for(i=0;i1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var setSubframeEnabled=function(t){u=!!t},setExpressionsPlugin=function(t){g=t},getExpressionsPlugin=function(){return g},setDefaultCurveSegments=function(t){A=t},getDefaultCurveSegments=function(){return A},setIdPrefix=function(t){y=t};function createNS(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _typeof$2(t){return(_typeof$2="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 x=function(){var t,e,i=1,s=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){r.onmessage({data:t})}};function setupWorker(){e||((e=function(e){if(window.Worker&&window.Blob&&m){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),s=URL.createObjectURL(i);return new Worker(s)}return t=e,r}(function(t){if(a.dataManager||(a.dataManager=function(){function completeLayers(t,e){var i,s,r,a,n,o,h=t.length;for(s=0;s=0;e-=1)if("sh"===t[e].ty){if(t[e].ks.k.i)convertPathsToAbsoluteValues(t[e].ks.k);else for(i=0,s=t[e].ks.k.length;ii[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var t,e=function(){var t=[4,4,14];function iterateLayers(t){var e,i=t.length;for(e=0;e=0;e-=1)if("sh"===t[e].ty){if(t[e].ks.k.i)t[e].ks.k.c=t[e].closed;else for(i=0,s=t[e].ks.k.length;i500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function createFootageData(t){var e={assetData:t},i=getAssetsPath(t,this.assetsPath,this.path);return x.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function ImagePreloaderFactory(){this._imageLoaded=imageLoaded.bind(this),this._footageLoaded=footageLoaded.bind(this),this.testImageLoaded=testImageLoaded.bind(this),this.createFootageData=createFootageData.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ImagePreloaderFactory.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;var i,s=t.length;for(i=0;ithis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,r=s.length,a=t.layers,n=a.length;for(i=0;ithis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){(!t||this.name===t)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1!==this.isPaused||(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i=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)||(i=!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):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.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")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$1(t[0])){var i,s=t.length;for(i=0;i=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){n=!0},t.unfreeze=function(){n=!1,activate()},t.setVolume=function(t,i){var r;for(r=0;r=.001?function(t,e,i,s){for(var r=0;r<4;++r){var a=getSlope(e,i,s);if(0===a)break;var n=calcBezier(e,i,s)-t;e-=n/a}return e}(t,n,e,i):0===o?n:function(t,e,i,s,r){var a,n,o=0;do(a=calcBezier(n=e+(i-e)/2,s,r)-t)>0?i=n:e=n;while(Math.abs(a)>1e-7&&++o<10);return n}(t,r,r+.1,e,i)}},t}(),F={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var s=0,r=t,a=createSizedArray(r);return{newElement:function(){var t;return s?(s-=1,t=a[s]):t=e(),t},release:function(t){s===r&&(a=F.double(a),r*=2),i&&i(t),a[s]=t,s+=1}}},I=poolFactory(8,function(){return{addedLength:0,percents:c("float32",getDefaultCurveSegments()),lengths:c("float32",getDefaultCurveSegments())}}),L=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e-.001&&n<.001}var getBezierLength=function(t,e,i,s){var r,a,n,o,h,l,p=getDefaultCurveSegments(),f=0,m=[],d=[],c=I.newElement();for(r=0,n=i.length;rn?-1:1,l=!0;l;)if(s[a]<=n&&s[a+1]>n?(o=(n-s[a])/(s[a+1]-s[a]),l=!1):a+=h,a<0||a>=r-1){if(a===r-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var s=c("float32",8);return{getSegmentsLength:function(t){var e,i=L.newElement(),s=t.c,r=t.v,a=t.o,n=t.i,o=t._length,h=i.lengths,l=0;for(e=0;e1&&(n=1);var l,p=getDistancePerc(n,h),f=getDistancePerc(o=o>1?1:o,h),m=t.length,d=1-p,c=1-f,u=d*d*d,g=p*d*d*3,y=p*p*d*3,v=p*p*p,S=d*d*c,P=p*d*c+d*p*c+d*d*f,b=p*p*c+d*p*f+p*d*f,_=p*p*f,A=d*c*c,E=p*c*c+d*f*c+d*c*f,k=p*f*c+d*f*f+p*c*f,x=p*f*f,D=c*c*c,C=f*c*c+c*f*c+c*c*f,M=f*f*c+c*f*f+f*c*f,T=f*f*f;for(l=0;lm?f>d?f-m-d:d-m-f:d>m?d-m-f:m-f-d)>-.0001&&p<1e-4}}}(),R=function(){var t=Math.abs;function interpolateValue(t,e){var i,s,r,a,n,o,h,l,p,f,m,d,u,g,y,v,S,P,b,_,A,k,x,D,C,M,T,F,I=this.offsetTime;"multidimensional"===this.propType&&(q=c("float32",this.pv.length));for(var L=e.lastIndex,R=L,B=this.keyframes.length-1,z=!0;z;){if(H=this.keyframes[R],W=this.keyframes[R+1],R===B-1&&t>=W.t-I){H.h&&(H=W),L=0;break}if(W.t-I>t){L=R;break}R=N||t=N?O.points.length-1:0;for(X=0,Y=O.points[j].point.length;X=ti&&te=N?(q[0]=Q[0],q[1]=Q[1],q[2]=Q[2]):t<=G?(q[0]=H.s[0],q[1]=H.s[1],q[2]=H.s[2]):(P=q,_=(i=createQuaternion(H.s),s=createQuaternion(Q),r=(t-G)/(N-G),p=[],f=i[0],m=i[1],d=i[2],u=i[3],g=s[0],y=s[1],(n=f*g+m*y+d*(v=s[2])+u*(S=s[3]))<0&&(n=-n,g=-g,y=-y,v=-v,S=-S),1-n>1e-6?(o=Math.sin(a=Math.acos(n)),h=Math.sin((1-r)*a)/o,l=Math.sin(r*a)/o):(h=1-r,l=r),p[0]=h*f+l*g,p[1]=h*m+l*y,p[2]=h*d+l*v,p[3]=h*u+l*S,b=p)[0],A=b[1],k=b[2],x=b[3],P[0]=Math.atan2(2*A*x-2*_*k,1-2*A*A-2*k*k)/E,P[1]=Math.asin(2*_*A+2*k*x)/E,P[2]=Math.atan2(2*_*x-2*A*k,1-2*_*_-2*k*k)/E);else for(R=0;R=N?K=1:t=i&&t>=i||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function setVValue(e){var i;if("unidimensional"===this.propType)i=e*this.mult,t(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var s=0,r=this.v.length;s1e-5&&(this.v[s]=i,this._mdf=!0),s+=1}function processEffectsSequence(){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,i=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[s]&&(!a[s]||r)||(a[s]=B.newElement()),a[s][0]=t,a[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,r,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,s,"o",n,o),this.setXYAt(r,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t,e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,s=this.o,r=this.i,a=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],r[0][0],r[0][1],s[0][0],s[0][1],0,!1),a=1);var n=this._length-1,o=this._length;for(t=a;t=r[r.length-1].t-this.offsetTime)a=r[r.length-1].s?r[r.length-1].s[0]:r[r.length-2].e[0],o=!0;else{for(var a,n,o,h,l,p,f,m,d,c,u,g,y,v=s,S=r.length-1,P=!0;P&&(c=r[v],!((u=r[v+1]).t-this.offsetTime>t));)v=u.t-this.offsetTime?m=1:ti&&t>i)||(this._caching.lastIndex=s0||t>-.000001&&t<0?s(1e4*t)/1e4:t}function to2dCSS(){var t=this.props;return"matrix("+roundMatrixProperty(t[0])+","+roundMatrixProperty(t[1])+","+roundMatrixProperty(t[4])+","+roundMatrixProperty(t[5])+","+roundMatrixProperty(t[12])+","+roundMatrixProperty(t[13])+")"}return function(){this.reset=reset,this.rotate=rotate,this.rotateX=rotateX,this.rotateY=rotateY,this.rotateZ=rotateZ,this.skew=skew,this.skewFromAxis=skewFromAxis,this.shear=shear,this.scale=scale,this.setTransform=setTransform,this.translate=translate,this.transform=transform,this.applyToPoint=applyToPoint,this.applyToX=applyToX,this.applyToY=applyToY,this.applyToZ=applyToZ,this.applyToPointArray=applyToPointArray,this.applyToTriplePoints=applyToTriplePoints,this.applyToPointStringified=applyToPointStringified,this.toCSS=toCSS,this.to2dCSS=to2dCSS,this.clone=clone,this.cloneFromProps=cloneFromProps,this.equals=equals,this.inversePoints=inversePoints,this.inversePoint=inversePoint,this.getInverseMatrix=getInverseMatrix,this._t=this.transform,this.isIdentity=isIdentity,this._identity=!0,this._identityCalculated=!1,this.props=c("float32",16),this.reset()}}();function _typeof(t){return(_typeof="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 j={};function searchAnimations(){T.searchAnimations()}j.play=T.play,j.pause=T.pause,j.setLocationHref=function(t){setLocationHref(t)},j.togglePause=T.togglePause,j.setSpeed=T.setSpeed,j.setDirection=T.setDirection,j.stop=T.stop,j.searchAnimations=searchAnimations,j.registerAnimation=T.registerAnimation,j.loadAnimation=function(t){return T.loadAnimation(t)},j.setSubframeRendering=function(t){setSubframeEnabled(t)},j.resize=T.resize,j.goToAndStop=T.goToAndStop,j.destroy=T.destroy,j.setQuality=function(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)},j.inBrowser=function(){return"undefined"!=typeof navigator},j.installPlugin=function(t,e){"expressions"===t&&setExpressionsPlugin(e)},j.freeze=T.freeze,j.unfreeze=T.unfreeze,j.setVolume=T.setVolume,j.mute=T.mute,j.unmute=T.unmute,j.getRegisteredAnimations=T.getRegisteredAnimations,j.useWebWorker=function(t){m=!!t},j.setIDPrefix=function(t){setIdPrefix(t)},j.__getFactory=function(t){switch(t){case"propertyFactory":return R;case"shapePropertyFactory":return G;case"matrix":return O;default:return null}},j.version="5.10.2";var q="",H=document.getElementsByTagName("script"),W=H.length-1,Z=H[W]||{src:""};q=Z.src?Z.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=q.split("&"),i=0;i=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(a=0;as+i||h.push([n.s*r<=s?0:(n.s*r-s)/i,n.e*r>=s+i?1:(n.e*r-s)/i]);return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,i=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 i=a;a=n,n=i}a=1e-4*Math.round(1e4*a),n=1e-4*Math.round(1e4*n),this.sValue=a,this.eValue=n}else a=this.sValue,n=this.eValue;var s=this.shapes.length,r=0;if(n===a)for(h=0;h=0;h-=1)if((c=this.shapes[h]).shape._mdf){for((u=c.localShapeCollection).releaseShapes(),2===this.m&&s>1?(g=this.calculateShapeEdges(a,n,c.totalShapeLength,P,r),P+=c.totalShapeLength):g=[[v,S]],p=g.length,l=0;l=1?y.push({s:c.totalShapeLength*(v-1),e:c.totalShapeLength*(S-1)}):(y.push({s:c.totalShapeLength*v,e:c.totalShapeLength}),y.push({s:0,e:c.totalShapeLength*(S-1)}));var b=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 _=b.pop();this.addPaths(b,u),b=this.addShapes(c,y[1],_)}else this.addPaths(b,u),b=this.addShapes(c,y[1])}this.addPaths(b,u)}}c.shape.paths=u}}},TrimModifier.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;ie.e){i.c=!1;break}else e.s<=c&&e.e>=c+n.addedLength?(this.addSegment(m[s].v[r-1],m[s].o[r-1],m[s].i[r],m[s].v[r],i,o,g),g=!1):(l=V.getNewSegment(m[s].v[r-1],m[s].v[r],m[s].o[r-1],m[s].i[r],(e.s-c)/n.addedLength,(e.e-c)/n.addedLength,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),c+=n.addedLength,o+=1;if(m[s].c&&h.length){if(n=h[r-1],c<=e.e){var y=h[r-1].addedLength;e.s<=c&&e.e>=c+y?(this.addSegment(m[s].v[r-1],m[s].o[r-1],m[s].i[0],m[s].v[0],i,o,g),g=!1):(l=V.getNewSegment(m[s].v[r-1],m[s].v[0],m[s].o[r-1],m[s].i[0],(e.s-c)/y,(e.e-c)/y,h[r-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;c+=n.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),c>e.e)break;s=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],r=[];var s,r,a=this.px,n=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(s[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),r[0]=a.getValueAtTime(a.keyframes[0].t/i,0),r[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(s[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),r[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),r[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[a.pv,n.pv],r[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),r[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else s=r=t;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}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(){}},extendPrototype([DynamicPropertyContainer],TransformProperty),TransformProperty.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},TransformProperty.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new TransformProperty(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return 1e-5>=Math.abs(t)}function lerpPoint(t,e,i){return[t[0]*(1-i)+e[0]*i,t[1]*(1-i)+e[1]*i]}function polynomialCoefficients(t,e,i,s){return[-t+3*e-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,s,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),r&&pointEqual(i,s)&&(i=lerpPoint(t,s,2/3));var a=polynomialCoefficients(t[0],e[0],i[0],s[0]),n=polynomialCoefficients(t[1],e[1],i[1],s[1]);this.a=[a[0],n[0]],this.b=[a[1],n[1]],this.c=[a[2],n[2]],this.d=[a[3],n[3]],this.points=[t,e,i,s]}function extrema(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var r=s;s=i,i=r}for(var a=function(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var r=-e/(2*t);if(0===s)return[r];var a=Math.sqrt(s)/(2*t);return[r-a,r+a]}(3*t.a[e],2*t.b[e],t.c[e]),n=0;n0&&a[n]<1){var o=t.point(a[n])[e];os&&(s=o)}return{min:i,max:s}}function intersectData(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function crossProduct(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 lineIntersection(t,e,i,s){var r=[t[0],t[1],1],a=[e[0],e[1],1],n=[i[0],i[1],1],o=[s[0],s[1],1],h=crossProduct(crossProduct(r,a),crossProduct(n,o));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,s,r,a,n){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*r,p=e[1]-Math.sin(i)*s*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function zigZagCorner(t,e,i,s,r,a,n){var o,h,l,p,f,m,d,c=(o=0===i?e.length()-1:i-1,h=(i+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[i%e._length],g=e.v[0===i?e._length-1:i-1],y=e.v[(i+1)%e._length],v=2===a?Math.sqrt(Math.pow(u[0]-g[0],2)+Math.pow(u[1]-g[1],2)):0,S=2===a?Math.sqrt(Math.pow(u[0]-y[0],2)+Math.pow(u[1]-y[1],2)):0;setPoint(t,e.v[i%e._length],c,n,s,S/((r+1)*2),v/((r+1)*2))}function linearOffset(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,i),polarOffset(e,s,i)]}function offsetSegment(t,e){i=(h=linearOffset(t.points[0],t.points[1],e))[0],s=h[1],r=(h=linearOffset(t.points[1],t.points[2],e))[0],a=h[1],n=(h=linearOffset(t.points[2],t.points[3],e))[0],o=h[1];var i,s,r,a,n,o,h,l=lineIntersection(i,s,r,a);null===l&&(l=s);var p=lineIntersection(n,o,r,a);return null===p&&(p=n),new PolynomialBezier(i,l,p,o)}function joinLines(t,e,i,s,r){var a=e.points[3],n=i.points[0];if(3===s||pointEqual(a,n))return a;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),n,polarOffset(n,o+Math.PI/2,100)),p=l?pointDistance(l,a):pointDistance(a,n)/2,f=polarOffset(a,o,2*p*.5519);return t.setXYAt(f[0],f[1],"o",t.length()-1),f=polarOffset(n,h,2*p*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],f[0],f[1],t.length()),n}var m=pointEqual(a,e.points[2])?e.points[0]:e.points[2],d=pointEqual(n,i.points[1])?i.points[3]:i.points[1],c=lineIntersection(m,a,n,d);return c&&pointDistance(c,a)1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1])))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,s]}function offsetSegmentSplit(t,e){var i,s,r,a,n=t.inflectionPoints();if(0===n.length)return[offsetSegment(t,e)];if(1===n.length||floatEqual(n[1],1))return i=(r=t.split(n[0]))[0],s=r[1],[offsetSegment(i,e),offsetSegment(s,e)];i=(r=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return a=(r=r[1].split(o))[0],s=r[1],[offsetSegment(i,e),offsetSegment(a,e),offsetSegment(s,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",r=e.length,a=0;a0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(c):Math.ceil(c),y=this.pMatrix.props,v=this.rMatrix.props,S=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var P=0;if(c>0){for(;Pg;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),P-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),P-=u)}for(r=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,n=this._currentCopies;n;){if(l=(s=(i=this.elemsData[r].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==P){for((0!==r&&1===a||r!==this._currentCopies-1&&-1===a)&&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(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15]),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&&s<1?[e]:[]:[e-s,e+s].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),s=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),a=lerpPoint(i,s,t),n=lerpPoint(r,a,t);return[new PolynomialBezier(this.points[0],e,r,n,!0),new PolynomialBezier(n,a,s,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.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}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return function intersectsImpl(t,e,i,s,r,a){if(2*Math.abs(t.cx-e.cx)=a||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s){r.push([t.t,e.t]);return}var n=splitData(t),o=splitData(e);intersectsImpl(n[0],o[0],i+1,s,r,a),intersectsImpl(n[0],o[1],i+1,s,r,a),intersectsImpl(n[1],o[0],i+1,s,r,a),intersectsImpl(n[1],o[1],i+1,s,r,a)}}(intersectData(this,0,1),intersectData(t,0,1),0,e,s,i),s},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=R.getProp(t,e.s,0,null,this),this.frequency=R.getProp(t,e.r,0,null,this),this.pointsType=R.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,s){var r=t._length,a=z.newElement();if(a.c=t.c,t.c||(r-=1),0===r)return a;var n=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,i,s,n);for(var h=0;h=0;r-=1)n=PolynomialBezier.shapeSegmentInverted(t,r),l.push(offsetSegmentSplit(n,e));l=function(t){for(var e,i=1;i1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(l);var p=null,f=null;for(r=0;r0&&(h=!1),h){var l=createTag("style");l.setAttribute("f-forigin",i[a].fOrigin),l.setAttribute("f-origin",i[a].origin),l.setAttribute("f-family",i[a].fFamily),l.type="text/css",l.innerText="@font-face {font-family: "+i[a].fFamily+"; font-style: normal; src: url('"+i[a].fPath+"');}",e.appendChild(l)}}else if("g"===i[a].fOrigin||1===i[a].origin){for(o=0,n=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');ot?!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;t0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(p,"url("+getLocationHref()+"#"+h+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s,r=this.data.ef.length,a=this.data.ef;for(i=0;i.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)!this.elements[e]&&(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3: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)}},BaseRenderer.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t1&&(a+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==a){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),i.elem.setAttribute("d",n)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var $=((l={}).createFilter=function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},l.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},l),Q=(p={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))&&(p.maskType=!1),/firefox/i.test(navigator.userAgent)&&(p.svgLumaHidden=!1),p),tt={},te="filter_result_";function SVGEffects(t){var e,i,s="SourceGraphic",r=t.data.ef?t.data.ef.length:0,a=k(),n=$.createFilter(a,!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,i=0,s=e.length;i.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)h=s.transformers[u].mProps._mdf||h,c-=1,u-=1;if(h)for(c=y-s.styles[p].lvl,u=s.transformers.length-1;c>0;)d=s.transformers[u].mProps.v.props,m.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]),c-=1,u-=1}else m=t;if(n=(f=s.sh.paths)._length,h){for(a=0,o="";a=1?v=.99:v<=-1&&(v=-.99);var S=o*v,P=Math.cos(y+e.a.v)*S+p[0],b=Math.sin(y+e.a.v)*S+p[1];h.setAttribute("fx",P),h.setAttribute("fy",b),l&&!e.g._collapsable&&(e.of.setAttribute("fx",P),e.of.setAttribute("fy",b))}}function renderStroke(t,e,i){var s=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(s.pElem.setAttribute("stroke-dasharray",r.dashStr),s.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+b(e.c.v[0])+","+b(e.c.v[1])+","+b(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return renderFill;case"gf":return renderGradient;case"gs":return renderGradientStroke;case"st":return renderStroke;case"sh":case"el":case"rc":case"sr":return renderPath;case"tr":return renderContentTransform;case"no":return renderNoop;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,s,r,a){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=r,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(t,e){this._frameId=-999999,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new O,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,s,r=this.shapes.length,a=this.stylesList.length,n=[],o=!1;for(i=0;i1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e=0;o-=1){if((m=this.searchProcessedElement(t[o]))?e[o]=i[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],r),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.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},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e,i=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(e=0;ee);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,s=[],r=0,a=t.length,n=!1;r=55296&&e<=56319?(i=t.charCodeAt(r+1))>=56320&&i<=57343?(n||J.isModifier(e,i)?(s[s.length-1]+=t.substr(r,2),n=!1):s.push(t.substr(r,2)),r+=1):s.push(t.charAt(r)):e>56319?(i=t.charCodeAt(r+1),J.isZeroWidthJoiner(e,i)?(n=!0,s[s.length-1]+=t.substr(r,2),r+=1):s.push(t.charAt(r))):J.isZeroWidthJoiner(e)?(s[s.length-1]+=t.charAt(r),n=!0):s.push(t.charAt(r)),r+=1;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,s=[],r=0,a=i.m.g,n=0,o=0,h=0,l=[],p=0,f=0,m=e.getFontByName(t.f),d=0,c=getFontProperties(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,S,P,b,_,A,E,k,x=!0,D=t.sz[0],C=t.sz[1];x;){k=this.buildFinalText(t.t),E=0,p=0,y=k.length,u=t.tr/1e3*t.finalSize;var M=-1;for(g=0;gD&&" "!==k[g]?(-1===M?y+=1:g=M,E+=t.finalLineHeight||1.2*t.finalSize,k.splice(g,M===g?1:0,"\r"),M=-1,p=0):p+=d+u;E+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Cf?p:f,p=-2*u,S="",v=!0,h+=1):S=I,e.chars?(_=e.getCharData(I,m.fStyle,e.getFontByName(t.f).fFamily),d=v?0:_.w*t.finalSize/100):d=e.measureText(S,t.f,t.finalSize)," "===I?T+=d+u:(p+=d+u+T,T=0),s.push({l:d,an:d,add:n,n:v,anIndexes:[],val:S,line:h,animatorJustifyOffset:0}),2==a){if(n+=d,""===S||" "===S||g===y-1){for((""===S||" "===S)&&(n-=d);o<=g;)s[o].an=n,s[o].ind=r,s[o].extra=d,o+=1;r+=1,n=0}}else if(3==a){if(n+=d,""===S||g===y-1){for(""===S&&(n-=d);o<=g;)s[o].an=n,s[o].ind=r,s[o].extra=d,o+=1;n=0,r+=1}}else s[r].ind=r,s[r].extra=0,r+=1;if(t.l=s,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 w=i.a;b=w.length;var F=[];for(P=0;P0?r=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=w.getBezierEasing(r,a,n,o).get,l=0,p=this.finalS,f=this.finalE,m=this.data.sh;if(2===m)l=h(l=f===p?s>=f?1:0:t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(3===m)l=h(l=f===p?s>=f?0:1:1-t(0,e(.5/(f-p)+(s-p)/(f-p),1)));else if(4===m)f===p?l=0:(l=t(0,e(.5/(f-p)+(s-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+(s=e(t(0,s+.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*(s=e(t(0,s+.5-p),f-p))/(f-p)))/2):(s>=i(p)&&(l=s-p<0?t(0,e(e(f,1)-(p-s),1)):t(0,e(f-s,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,i=this.o.v/e,s=this.s.v/e+i,r=this.e.v/e+i;if(s>r){var a=s;s=r,r=a}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],TextSelectorPropFactory),{getTextSelectorProp:function(t,e,i){return new TextSelectorPropFactory(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var s={propType:!1},r=R.getProp,a=e.a;this.a={r:a.r?r(t,a.r,0,E,i):s,rx:a.rx?r(t,a.rx,0,E,i):s,ry:a.ry?r(t,a.ry,0,E,i):s,sk:a.sk?r(t,a.sk,0,E,i):s,sa:a.sa?r(t,a.sa,0,E,i):s,s:a.s?r(t,a.s,1,.01,i):s,a:a.a?r(t,a.a,1,0,i):s,o:a.o?r(t,a.o,0,.01,i):s,p:a.p?r(t,a.p,1,0,i):s,sw:a.sw?r(t,a.sw,0,0,i):s,sc:a.sc?r(t,a.sc,1,0,i):s,fc:a.fc?r(t,a.fc,1,0,i):s,fh:a.fh?r(t,a.fh,0,0,i):s,fs:a.fs?r(t,a.fs,0,.01,i):s,fb:a.fb?r(t,a.fb,0,.01,i):s,t:a.t?r(t,a.t,0,0,i):s},this.s=ta.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=R.getProp;for(t=0;t=w+to||!N?(q=(w+to-I)/F.partialLength,h=z.point[0]+(F.point[0]-z.point[0])*q,l=z.point[1]+(F.point[1]-z.point[1])*q,_.translate(-S[0]*k[C].an*.005,-(.01*(S[1]*X))),L=!1):N&&(I+=F.partialLength,(R+=1)>=N.length&&(R=0,G[B+=1]?N=G[B].points:H.v.c?(R=0,N=G[B=0].points):(I-=F.partialLength,N=null)),N&&(z=F,O=(F=N[R]).partialLength));o=k[C].an/2-k[C].add,_.translate(-o,0,0)}else o=k[C].an/2-k[C].add,_.translate(-o,0,0),_.translate(-S[0]*k[C].an*.005,-S[1]*X*.01,0);for(s=0;sc?this.textSpans[c].span:createNS(a?"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,a){var d=createNS("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&&(r[c].n&&(h=-f,l+=t.yOffset+(p?1:0),p=!1),this.applyTextPropertiesToMatrix(t,n,r[c].line,h,l),h+=(r[c].l||0)+f),a){if(1===(y=this.globalData.fontManager.getCharData(t.finalText[c],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)v=new SVGCompElement(y.data,this.globalData,this);else{var c,u,g,y,v,S=tn;y.data&&y.data.shapes&&(S=this.buildShapeData(y.data,t.finalSize)),v=new SVGShapeElement(S,this.globalData,this)}if(this.textSpans[c].glyph){var P=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(P.layerElement),P.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=r[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}o&&g&&g.setAttribute("d","")}else{var b=this.textContainer,_="start";switch(t.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}b.setAttribute("text-anchor",_),b.setAttribute("letter-spacing",f);var A=this.buildTextContents(t.finalText);for(c=0,u=A.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))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i0&&void 0!==arguments[0]?arguments[0]:{};if(x.current){null===(e=k.current)||void 0===e||e.destroy();var s=_objectSpread2(_objectSpread2(_objectSpread2({},t),i),{},{container:x.current});return k.current=n.loadAnimation(s),E(!!k.current),function(){var t;null===(t=k.current)||void 0===t||t.destroy(),k.current=void 0}}};return e.useEffect(function(){var t=loadAnimation();return function(){return null==t?void 0:t()}},[a,h]),e.useEffect(function(){k.current&&(k.current.autoplay=!!l)},[l]),e.useEffect(function(){if(k.current){if(!p){k.current.resetSegments(!0);return}Array.isArray(p)&&p.length&&((k.current.currentRawFramep[1])&&(k.current.currentRawFrame=p[0]),k.current.setSegment(p[0],p[1]))}},[p]),e.useEffect(function(){var t=[{name:"complete",handler:f},{name:"loopComplete",handler:m},{name:"enterFrame",handler:d},{name:"segmentStart",handler:c},{name:"config_ready",handler:u},{name:"data_ready",handler:g},{name:"data_failed",handler:y},{name:"loaded_images",handler:v},{name:"DOMLoaded",handler:S},{name:"destroy",handler:P}].filter(function(t){return null!=t.handler});if(t.length){var e=t.map(function(t){var e;return null===(e=k.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=k.current)||void 0===e||e.removeEventListener(t.name,t.handler)}});return function(){e.forEach(function(t){return t()})}}},[f,m,d,c,u,g,y,v,S,P]),{View:r.default.createElement("div",_objectSpread2({style:i,ref:x},b)),play:function(){var t;null===(t=k.current)||void 0===t||t.play()},stop:function(){var t;null===(t=k.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=k.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=k.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var i;null===(i=k.current)||void 0===i||i.goToAndStop(t,e)},goToAndPlay:function(t,e){var i;null===(i=k.current)||void 0===i||i.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=k.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var i;null===(i=k.current)||void 0===i||i.playSegments(t,e)},setSubframe:function(t){var e;null===(e=k.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=k.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=k.current)||void 0===t||t.destroy(),k.current=void 0},animationContainerRef:x,animationLoaded:A,animationItem:k.current}},useInitInteractivity=function(t){var i=t.wrapperRef,s=t.animationItem,r=t.mode,a=t.actions;e.useEffect(function(){var t,e,n,o,h,l=i.current;if(l&&s&&a.length)switch(s.stop(),r){case"scroll":return t=null,e=function(){var e,i,r,n=(i=(e=l.getBoundingClientRect()).top,r=e.height,(window.innerHeight-i)/(window.innerHeight+r)),o=a.find(function(t){var e=t.visibility;return e&&n>=e[0]&&n<=e[1]});if(o){if("seek"===o.type&&o.visibility&&2===o.frames.length){var h=o.frames[0]+Math.ceil((n-o.visibility[0])/(o.visibility[1]-o.visibility[0])*o.frames[1]);s.goToAndStop(h-s.firstFrame-1,!0)}"loop"===o.type&&(null===t?(s.playSegments(o.frames,!0),t=o.frames):t!==o.frames?(s.playSegments(o.frames,!0),t=o.frames):s.isPaused&&(s.playSegments(o.frames,!0),t=o.frames)),"play"===o.type&&s.isPaused&&(s.resetSegments(!0),s.play()),"stop"===o.type&&s.goToAndStop(o.frames[0]-s.firstFrame-1,!0)}},document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)};case"cursor":return n=function(t,e){var i=t,r=e;if(-1!==i&&-1!==r){var n,o,h,p,f=(n=i,o=r,p=(h=l.getBoundingClientRect()).top,{x:(n-h.left)/h.width,y:(o-p)/h.height});i=f.x,r=f.y}var m=a.find(function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?i>=e.x[0]&&i<=e.x[1]&&r>=e.y[0]&&r<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&i===e.x&&r===e.y});if(m){if("seek"===m.type&&m.position&&Array.isArray(m.position.x)&&Array.isArray(m.position.y)&&2===m.frames.length){var d=(i-m.position.x[0])/(m.position.x[1]-m.position.x[0]),c=(r-m.position.y[0])/(m.position.y[1]-m.position.y[0]);s.playSegments(m.frames,!0),s.goToAndStop(Math.ceil((d+c)/2*(m.frames[1]-m.frames[0])),!0)}"loop"===m.type&&s.playSegments(m.frames,!0),"play"===m.type&&(s.isPaused&&s.resetSegments(!1),s.playSegments(m.frames)),"stop"===m.type&&s.goToAndStop(m.frames[0],!0)}},o=function(t){n(t.clientX,t.clientY)},h=function(){n(-1,-1)},l.addEventListener("mousemove",o),l.addEventListener("mouseout",h),function(){l.removeEventListener("mousemove",o),l.removeEventListener("mouseout",h)}}},[r,s])},useLottieInteractivity=function(t){var e=t.actions,i=t.mode,s=t.lottieObj,r=s.animationItem,a=s.View;return useInitInteractivity({actions:e,animationItem:r,mode:i,wrapperRef:s.animationContainerRef}),a},h=["style","interactivity"];t.LottiePlayer=n,t.default=function(t){var i,s,r,a=t.style,n=t.interactivity,o=useLottie(_objectWithoutProperties(t,h),a),l=o.View,p=o.play,f=o.stop,m=o.pause,d=o.setSpeed,c=o.goToAndStop,u=o.goToAndPlay,g=o.setDirection,y=o.playSegments,v=o.setSubframe,S=o.getDuration,P=o.destroy,b=o.animationContainerRef,_=o.animationLoaded,A=o.animationItem;return e.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:p,stop:f,pause:m,setSpeed:d,goToAndPlay:u,goToAndStop:c,setDirection:g,playSegments:y,setSubframe:v,getDuration:S,destroy:P,animationContainerRef:b,animationLoaded:_,animationItem:A})},[null===(i=t.lottieRef)||void 0===i?void 0:i.current]),useLottieInteractivity({lottieObj:{View:l,play:p,stop:f,pause:m,setSpeed:d,goToAndStop:c,goToAndPlay:u,setDirection:g,playSegments:y,setSubframe:v,getDuration:S,destroy:P,animationContainerRef:b,animationLoaded:_,animationItem:A},actions:null!==(s=null==n?void 0:n.actions)&&void 0!==s?s:[],mode:null!==(r=null==n?void 0:n.mode)&&void 0!==r?r:"scroll"})},t.useLottie=useLottie,t.useLottieInteractivity=useLottieInteractivity,Object.defineProperty(t,"__esModule",{value:!0})}(e,i("q1tI"))}}]);