@lottiefiles/lottie-player 1.7.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,339 @@
1
+ var we=Object.create;var Ht=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,Ie=Object.prototype.hasOwnProperty;var Re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Be=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of De(e))!Ie.call(t,s)&&s!==r&&Ht(t,s,{get:()=>e[s],enumerable:!(i=ne(e,s))||i.enumerable});return t};var Ve=(t,e,r)=>(r=t!=null?we(Fe(t)):{},Be(e||!t||!t.__esModule?Ht(r,"default",{value:t,enumerable:!0}):r,t));var H=(t,e,r,i)=>{for(var s=i>1?void 0:i?ne(e,r):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(s=(i?o(e,r,s):o(s))||s);return i&&s&&Ht(e,r,s),s};var Te=Re((exports,module)=>{typeof navigator<"u"&&function(t,e){typeof define=="function"&&define.amd?define(function(){return e(t)}):typeof module=="object"&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie);}(self||{},function(window){function workerContent(){function extendPrototype(t,e){var r,i,s=t.length;for(r=0;r<s;r+=1)for(var a in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a]);}function ProxyElement(t,e){this._state="init",this._isDirty=!1,this._isProxy=!0,this._changedStyles=[],this._changedAttributes=[],this._changedElements=[],this._textContent=null,this.type=t,this.namespace=e,this.children=[],localIdCounter+=1,this.attributes={id:"l_d_"+localIdCounter},this.style=new Style(this);}ProxyElement.prototype={appendChild:function(t){(t.parentNode=this).children.push(t),this._isDirty=!0,this._changedElements.push([t,this.attributes.id]);},insertBefore:function(t,e){for(var r=this.children,i=0;i<r.length;i+=1)if(r[i]===e)return r.splice(i,0,t),this._isDirty=!0,void this._changedElements.push([t,this.attributes.id,e.attributes.id]);r.push(e);},setAttribute:function(t,e){this.attributes[t]=e,this._isDirty||(this._isDirty=!0),this._changedAttributes.push(t);},serialize:function(){return {type:this.type,namespace:this.namespace,style:this.style.serialize(),attributes:this.attributes,children:this.children.map(function(t){return t.serialize()}),textContent:this._textContent}},addEventListener:function(t,e){setTimeout(e,1);},setAttributeNS:function(t,e,r){this.attributes[e]=r,this._isDirty||(this._isDirty=!0),this._changedAttributes.push(e);}},Object.defineProperty(ProxyElement.prototype,"textContent",{set:function(t){this._isDirty=!0,this._textContent=t;}});var localIdCounter=0,animations={},styleProperties=["width","height","display","transform","opacity","contentVisibility","mix-blend-mode"];function convertArguments(t){var e,r=[],i=t.length;for(e=0;e<i;e+=1)r.push(t[e]);return r}function Style(t){this.element=t;}function CanvasContext(t){this.element=t;}Style.prototype={serialize:function(){for(var t={},e=0;e<styleProperties.length;e+=1){var r=styleProperties[e],i="_"+r;i in this&&(t[r]=this[i]);}return t}},styleProperties.forEach(function(t){Object.defineProperty(Style.prototype,t,{set:function(e){this.element._isDirty||(this.element._isDirty=!0),this.element._changedStyles.push(t),this["_"+t]=e;},get:function(){return this["_"+t]}});}),CanvasContext.prototype={createRadialGradient:function(){var t={t:"rGradient",a:convertArguments(arguments),stops:[]};return this.element.instructions.push(t),{addColorStop:function(){t.stops.push(convertArguments(arguments));}}},createLinearGradient:function(){var t={t:"lGradient",a:convertArguments(arguments),stops:[]};return this.element.instructions.push(t),{addColorStop:function(){t.stops.push(convertArguments(arguments));}}}},Object.defineProperties(CanvasContext.prototype,{canvas:{enumerable:!0,get:function(){return this.element}}});var canvasContextMethods=["fillRect","setTransform","drawImage","beginPath","moveTo","save","restore","fillText","setLineDash","clearRect","clip","rect","stroke","fill","closePath","bezierCurveTo","lineTo"];canvasContextMethods.forEach(function(t){CanvasContext.prototype[t]=function(){this.element.instructions.push({t,a:convertArguments(arguments)});};});var canvasContextProperties=["globalAlpha","strokeStyle","fillStyle","lineCap","lineJoin","lineWidth","miterLimit","lineDashOffset","globalCompositeOperation"];function CanvasElement(t,e){ProxyElement.call(this,t,e),this.instructions=[],this.width=0,this.height=0,this.context=new CanvasContext(this);}function createElement(t,e){return e==="canvas"?new CanvasElement(e,t):new ProxyElement(e,t)}canvasContextProperties.forEach(function(t){Object.defineProperty(CanvasContext.prototype,t,{set:function(e){this.element.instructions.push({t,a:e});}});}),CanvasElement.prototype={getContext:function(){return this.context},resetInstructions:function(){this.instructions.length=0;}},extendPrototype([ProxyElement],CanvasElement);var window=self,document={createElementNS:function(t,e){return createElement(t,e)},createElement:function(t){return createElement("",t)},getElementsByTagName:function(){return []},body:createElement("","body"),_isProxy:!0},lottieInternal=function(){var Y,Z;function addElementToList(t,e){e.push(t),t._isDirty=!1,t._changedStyles.length=0,t._changedAttributes.length=0,t._changedElements.length=0,t._textContent=null,t.children.forEach(function(r){addElementToList(r,e);});}function addChangedAttributes(t){for(var e,r=t._changedAttributes,i=[],s=0;s<r.length;s+=1)e=r[s],i.push([e,t.attributes[e]]);return i}function addChangedStyles(t){for(var e,r=t._changedStyles,i=[],s=0;s<r.length;s+=1)e=r[s],i.push([e,t.style[e]]);return i}function addChangedElements(t,e){for(var r,i=t._changedElements,s=[],a=0;a<i.length;a+=1)r=i[a],s.push([r[0].serialize(),r[1],r[2]]),addElementToList(r[0],e);return s}function loadAnimation(t){var e,r,i,s=t.params,a=[];if(s.renderer==="svg")e=document.createElement("div"),s.container=e;else {(i=s.rendererSettings.canvas)||((i=document.createElement("canvas")).width=s.animationData.w,i.height=s.animationData.h);var o=i.getContext("2d");s.rendererSettings.context=o;}(r=lottie.loadAnimation(s)).addEventListener("error",function(n){console.log(n);}),r.onError=function(n){console.log("ERRORO",n);},r.addEventListener("_play",function(){self.postMessage({type:"playing",payload:{id:t.id}});}),r.addEventListener("_pause",function(){self.postMessage({type:"paused",payload:{id:t.id}});}),s.renderer==="svg"?(r.addEventListener("DOMLoaded",function(){var n=e.serialize();addElementToList(e,a),self.postMessage({type:"SVGloaded",payload:{id:t.id,tree:n.children[0]}});}),r.addEventListener("drawnFrame",function(n){for(var u,m=[],l=0;l<a.length;l+=1)if((u=a[l])._isDirty){var f={id:u.attributes.id,styles:addChangedStyles(u),attributes:addChangedAttributes(u),elements:addChangedElements(u,a),textContent:u._textContent||void 0};m.push(f),u._isDirty=!1,u._changedAttributes.length=0,u._changedStyles.length=0,u._changedElements.length=0,u._textContent=null;}self.postMessage({type:"SVGupdated",payload:{elements:m,id:t.id,currentTime:n.currentTime}});})):i._isProxy&&r.addEventListener("drawnFrame",function(n){self.postMessage({type:"CanvasUpdated",payload:{instructions:i.instructions,id:t.id,currentTime:n.currentTime}}),i.resetInstructions();}),r.addEventListener("DOMLoaded",function(){self.postMessage({type:"DOMLoaded",payload:{id:t.id,totalFrames:r.totalFrames,frameRate:r.frameRate,firstFrame:r.firstFrame,currentFrame:r.currentFrame,playDirection:r.playDirection,isSubframeEnabled:r.isSubframeEnabled,currentRawFrame:r.currentRawFrame,timeCompleted:r.timeCompleted}});}),animations[t.id]={animation:r,events:{}};}return typeof navigator<"u"&&(Y=this,Z=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t;},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t;},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,s=t.length;for(r=0;r<s;r+=1)for(var a in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a]);}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1;}return t.prototype={addAudio:function(e){this.audios.push(e);},pause:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].pause();},resume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].resume();},setRate:function(e){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].setRate(e);},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0;},seek:function(){this.isPlaying=!1;},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e;},setVolume:function(e){this._volume=e,this._updateVolume();},mute:function(){this._isMuted=!0,this._updateVolume();},unmute:function(){this._isMuted=!1,this._updateVolume();},getVolume:function(){return this._volume},_updateVolume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1));}},function(){return new t}}(),createTypedArray=function(){function t(e,r){var i,s=0,a=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1;}for(s=0;s<r;s+=1)a.push(i);return a}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(e,r){return e==="float32"?new Float32Array(r):e==="int16"?new Int16Array(r):e==="uint8c"?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return (_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};((function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]];}))(),BMMath.random=Math.random,BMMath.abs=function(t){if(_typeof$6(t)==="object"&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d";}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1;}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1;}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1;}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r;}function BMDestroyEvent(t,e){this.type=t,this.target=e;}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e;}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t;}var createElementID=(Nb=0,function(){return idPrefix$1+"__lottie_element_"+(Nb+=1)}),Nb;function HSVtoRGB(t,e,r){var i,s,a,o,n,u,m,l;switch(u=r*(1-e),m=r*(1-(n=6*t-(o=Math.floor(6*t)))*e),l=r*(1-(1-n)*e),o%6){case 0:i=r,s=l,a=u;break;case 1:i=m,s=r,a=u;break;case 2:i=u,s=r,a=l;break;case 3:i=u,s=m,a=r;break;case 4:i=l,s=u,a=r;break;case 5:i=r,s=u,a=m;}return [i,s,a]}function RGBtoHSV(t,e,r){var i,s=Math.max(t,e,r),a=Math.min(t,e,r),o=s-a,n=s===0?0:o/s,u=s/255;switch(s){case a:i=0;break;case t:i=e-r+o*(e<r?6:0),i/=6*o;break;case e:i=r-t+2*o,i/=6*o;break;case r:i=t-e+4*o,i/=6*o;}return [i,n,u]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,1<r[1]?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,1<r[2]?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,1<r[0]?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=e.length===1?"0"+e:e;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+r[i]+r[s]+r[a]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t;},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t;},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t;},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t;},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t;};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return (_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var dataManager=function(){var t,e,r=1,i=[],s={onmessage:function(){},postMessage:function(u){t({data:u});}},a={postMessage:function(u){s.onmessage({data:u});}};function o(){e||((e=function(u){if(window.Worker&&window.Blob&&getWebWorker()){var m=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),l=URL.createObjectURL(m);return new Worker(l)}return t=u,s}(function(u){if(a.dataManager||(a.dataManager=function(){function l(S,C){var E,P,M,T,F,R,w,I=S.length;for(P=0;P<I;P+=1)if("ks"in(E=S[P])&&!E.completed){if(E.completed=!0,E.hasMask){var V=E.masksProperties;for(T=V.length,M=0;M<T;M+=1)if(V[M].pt.k.i)c(V[M].pt.k);else for(R=V[M].pt.k.length,F=0;F<R;F+=1)V[M].pt.k[F].s&&c(V[M].pt.k[F].s[0]),V[M].pt.k[F].e&&c(V[M].pt.k[F].e[0]);}E.ty===0?(E.layers=f(E.refId,C),l(E.layers,C)):E.ty===4?y(E.shapes):E.ty===5&&(w=E).t.a.length===0&&w.t.p;}}function f(S,C){var E=function(P,M){for(var T=0,F=M.length;T<F;){if(M[T].id===P)return M[T];T+=1;}return null}(S,C);return E?E.layers.__used?JSON.parse(JSON.stringify(E.layers)):(E.layers.__used=!0,E.layers):null}function y(S){var C,E,P;for(C=S.length-1;0<=C;C-=1)if(S[C].ty==="sh")if(S[C].ks.k.i)c(S[C].ks.k);else for(P=S[C].ks.k.length,E=0;E<P;E+=1)S[C].ks.k[E].s&&c(S[C].ks.k[E].s[0]),S[C].ks.k[E].e&&c(S[C].ks.k[E].e[0]);else S[C].ty==="gr"&&y(S[C].it);}function c(S){var C,E=S.i.length;for(C=0;C<E;C+=1)S.i[C][0]+=S.v[C][0],S.i[C][1]+=S.v[C][1],S.o[C][0]+=S.v[C][0],S.o[C][1]+=S.v[C][1];}function p(S,C){var E=C?C.split("."):[100,100,100];return S[0]>E[0]||!(E[0]>S[0])&&(S[1]>E[1]||!(E[1]>S[1])&&(S[2]>E[2]||!(E[2]>S[2])&&null))}var d,h=function(){var S=[4,4,14];function C(E){var P,M,T,F=E.length;for(P=0;P<F;P+=1)E[P].ty===5&&(M=E[P],T=M.t.d,M.t.d={k:[{s:T,t:0}]});}return function(E){if(p(S,E.v)&&(C(E.layers),E.assets)){var P,M=E.assets.length;for(P=0;P<M;P+=1)E.assets[P].layers&&C(E.assets[P].layers);}}}(),g=(d=[4,7,99],function(S){if(S.chars&&!p(d,S.v)){var C,E=S.chars.length;for(C=0;C<E;C+=1){var P=S.chars[C];P.data&&P.data.shapes&&(y(P.data.shapes),P.data.ip=0,P.data.op=99999,P.data.st=0,P.data.sr=1,P.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},S.chars[C].t||(P.data.shapes.push({ty:"no"}),P.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})));}}}),v=function(){var S=[5,7,15];function C(E){var P,M,T,F=E.length;for(P=0;P<F;P+=1)E[P].ty===5&&(M=E[P],T=void 0,typeof(T=M.t.p).a=="number"&&(T.a={a:0,k:T.a}),typeof T.p=="number"&&(T.p={a:0,k:T.p}),typeof T.r=="number"&&(T.r={a:0,k:T.r}));}return function(E){if(p(S,E.v)&&(C(E.layers),E.assets)){var P,M=E.assets.length;for(P=0;P<M;P+=1)E.assets[P].layers&&C(E.assets[P].layers);}}}(),b=function(){var S=[4,1,9];function C(P){var M,T,F,R=P.length;for(M=0;M<R;M+=1)if(P[M].ty==="gr")C(P[M].it);else if(P[M].ty==="fl"||P[M].ty==="st")if(P[M].c.k&&P[M].c.k[0].i)for(F=P[M].c.k.length,T=0;T<F;T+=1)P[M].c.k[T].s&&(P[M].c.k[T].s[0]/=255,P[M].c.k[T].s[1]/=255,P[M].c.k[T].s[2]/=255,P[M].c.k[T].s[3]/=255),P[M].c.k[T].e&&(P[M].c.k[T].e[0]/=255,P[M].c.k[T].e[1]/=255,P[M].c.k[T].e[2]/=255,P[M].c.k[T].e[3]/=255);else P[M].c.k[0]/=255,P[M].c.k[1]/=255,P[M].c.k[2]/=255,P[M].c.k[3]/=255;}function E(P){var M,T=P.length;for(M=0;M<T;M+=1)P[M].ty===4&&C(P[M].shapes);}return function(P){if(p(S,P.v)&&(E(P.layers),P.assets)){var M,T=P.assets.length;for(M=0;M<T;M+=1)P.assets[M].layers&&E(P.assets[M].layers);}}}(),_=function(){var S=[4,4,18];function C(P){var M,T,F;for(M=P.length-1;0<=M;M-=1)if(P[M].ty==="sh")if(P[M].ks.k.i)P[M].ks.k.c=P[M].closed;else for(F=P[M].ks.k.length,T=0;T<F;T+=1)P[M].ks.k[T].s&&(P[M].ks.k[T].s[0].c=P[M].closed),P[M].ks.k[T].e&&(P[M].ks.k[T].e[0].c=P[M].closed);else P[M].ty==="gr"&&C(P[M].it);}function E(P){var M,T,F,R,w,I,V=P.length;for(T=0;T<V;T+=1){if((M=P[T]).hasMask){var z=M.masksProperties;for(R=z.length,F=0;F<R;F+=1)if(z[F].pt.k.i)z[F].pt.k.c=z[F].cl;else for(I=z[F].pt.k.length,w=0;w<I;w+=1)z[F].pt.k[w].s&&(z[F].pt.k[w].s[0].c=z[F].cl),z[F].pt.k[w].e&&(z[F].pt.k[w].e[0].c=z[F].cl);}M.ty===4&&C(M.shapes);}}return function(P){if(p(S,P.v)&&(E(P.layers),P.assets)){var M,T=P.assets.length;for(M=0;M<T;M+=1)P.assets[M].layers&&E(P.assets[M].layers);}}}(),A={};return A.completeData=function(S){S.__complete||(b(S),h(S),g(S),v(S),_(S),l(S.layers,S.assets),function(C,E){if(C){var P=0,M=C.length;for(P=0;P<M;P+=1)C[P].t===1&&(C[P].data.layers=f(C[P].data.refId,E),l(C[P].data.layers,E));}}(S.chars,S.assets),S.__complete=!0);},A.checkColors=b,A.checkChars=g,A.checkPathProperties=v,A.checkShapes=_,A.completeLayers=l,A}()),a.assetLoader||(a.assetLoader=function(){function l(f){var y=f.getResponseHeader("content-type");return y&&f.responseType==="json"&&y.indexOf("json")!==-1||f.response&&_typeof$5(f.response)==="object"?f.response:f.response&&typeof f.response=="string"?JSON.parse(f.response):f.responseText?JSON.parse(f.responseText):null}return {load:function(f,y,c,p){var d,h=new XMLHttpRequest;try{h.responseType="json";}catch{}h.onreadystatechange=function(){if(h.readyState===4)if(h.status===200)d=l(h),c(d);else try{d=l(h),c(d);}catch(g){p&&p(g);}};try{h.open(["G","E","T"].join(""),f,!0);}catch{h.open(["G","E","T"].join(""),y+"/"+f,!0);}h.send();}}}()),u.data.type==="loadAnimation")a.assetLoader.load(u.data.path,u.data.fullPath,function(l){a.dataManager.completeData(l),a.postMessage({id:u.data.id,payload:l,status:"success"});},function(){a.postMessage({id:u.data.id,status:"error"});});else if(u.data.type==="complete"){var m=u.data.animation;a.dataManager.completeData(m),a.postMessage({id:u.data.id,payload:m,status:"success"});}else u.data.type==="loadData"&&a.assetLoader.load(u.data.path,u.data.fullPath,function(l){a.postMessage({id:u.data.id,payload:l,status:"success"});},function(){a.postMessage({id:u.data.id,status:"error"});});})).onmessage=function(u){var m=u.data,l=m.id,f=i[l];i[l]=null,m.status==="success"?f.onComplete(m.payload):f.onError&&f.onError();});}function n(u,m){var l="processId_"+(r+=1);return i[l]={onComplete:u,onError:m},l}return {loadAnimation:function(u,m,l){o();var f=n(m,l);e.postMessage({type:"loadAnimation",path:u,fullPath:window.location.origin+window.location.pathname,id:f});},loadData:function(u,m,l){o();var f=n(m,l);e.postMessage({type:"loadData",path:u,fullPath:window.location.origin+window.location.pathname,id:f});},completeAnimation:function(u,m,l){o();var f=n(m,l);e.postMessage({type:"complete",animation:u,id:f});}}}(),ImagePreloader=function(){var t=function(){var a=createTag("canvas");a.width=1,a.height=1;var o=a.getContext("2d");return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),a}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null);}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null);}function i(a,o,n){var u="";if(a.e)u=a.p;else if(o){var m=a.p;m.indexOf("images/")!==-1&&(m=m.split("/")[1]),u=o+m;}else u=n,u+=a.u?a.u:"",u+=a.p;return u}function s(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=function(a){var o=0,n=setInterval(function(){(a.getBBox().width||500<o)&&(this._imageLoaded(),clearInterval(n)),o+=1;}.bind(this),50);}.bind(this),this.createFootageData=function(a){var o={assetData:a},n=i(a,this.assetsPath,this.path);return dataManager.loadData(n,function(u){o.img=u,this._footageLoaded();}.bind(this),function(){o.img={},this._footageLoaded();}.bind(this)),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 s.prototype={loadAssets:function(a,o){var n;this.imagesLoadedCb=o;var u=a.length;for(n=0;n<u;n+=1)a[n].layers||(a[n].t&&a[n].t!=="seq"?a[n].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(a[n]))):(this.totalImages+=1,this.images.push(this._createImageData(a[n]))));},setAssetsPath:function(a){this.assetsPath=a||"";},setPath:function(a){this.path=a||"";},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0;},getAsset:function(a){for(var o=0,n=this.images.length;o<n;){if(this.images[o].assetData===a)return this.images[o].img;o+=1;}return null},createImgData:function(a){var o=i(a,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){u.img=t,this._imageLoaded();}.bind(this),!1),n.src=o;var u={img:n,assetData:a};return u},createImageData:function(a){var o=i(a,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){u.img=t,this._imageLoaded();}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var u={img:n,assetData:a};return u},imageLoaded:e,footageLoaded:r,setCacheType:function(a,o){this._createImageData=a==="svg"?(this._elementHelper=o,this.createImageData.bind(this)):this.createImgData.bind(this);}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e);},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e);}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null);}}else this._cbs[t]=null;}};var markerParser=function(){function t(e){for(var r,i=e.split(`\r
2
+ `),s={},a=0,o=0;o<i.length;o+=1)(r=i[o].split(":")).length===2&&(s[r[0]]=r[1].trim(),a+=1);if(a===0)throw new Error;return s}return function(e){for(var r=[],i=0;i<e.length;i+=1){var s=e[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(e[i].cm);}catch{try{a.payload=t(e[i].cm);}catch{a.payload={name:e[i].cm};}}r.push(a);}return r}}(),ProjectInterface=function(){function t(e){this.compositions.push(e);}return function(){function e(r){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1;}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e;};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return "canvas";for(var t in renderers)if(renderers[t])return t;return ""}function _typeof$4(t){return (_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin();};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError));},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed");},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation);},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.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:"",r.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:getRegisteredRenderer()||"canvas";var s=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:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var a=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;r.autoplay=a!=="false",r.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:"",(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"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy");},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,s=i.length,a=t.layers,o=a.length;for(r=0;r<o;r+=1)for(e=0;e<s;){if(i[e].id===a[r].id){i[e]=a[r];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(s=t.assets.length,e=0;e<s;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete);},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment();},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed");}.bind(this));},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment();},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded();},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this));},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause();}catch(e){this.triggerConfigError(e);}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20));},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded");}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play();}},AnimationItem.prototype.resize=function(t,e){var r=typeof t=="number"?t:void 0,i=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,i);},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t;},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame");},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame);}catch(t){this.triggerRenderFrameError(t);}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")));},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause());},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?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,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var s=this.getMarkerData(t);s&&this.goToAndStop(s.time,!0);}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause();}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var s=this.getMarkerData(t);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0));}else this.goToAndStop(i,e,r);this.play();}},AnimationItem.prototype.advanceTime=function(t){if(this.isPaused!==!0&&this.isLoaded!==!1){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&0<this.frameModifier?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)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"));}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(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 r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0);},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r]);}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play();},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0);},AnimationItem.prototype.checkSegments=function(t){return !!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null);},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame();},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier();},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier();},AnimationItem.prototype.setLoop=function(t){this.loop=t;},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t);},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute();},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute();},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection);},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r;}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1;}return null},AnimationItem.prototype.hide=function(){this.renderer.hide();},AnimationItem.prototype.show=function(){this.renderer.show();},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r);}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t);}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this));},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e);},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e);};var animationManager=function(){var t={},e=[],r=0,i=0,s=0,a=!0,o=!1;function n(d){for(var h=0,g=d.target;h<i;)e[h].animation===g&&(e.splice(h,1),h-=1,i-=1,g.isPaused||l()),h+=1;}function u(d,h){if(!d)return null;for(var g=0;g<i;){if(e[g].elem===d&&e[g].elem!==null)return e[g].animation;g+=1;}var v=new AnimationItem;return f(v,d),v.setData(d,h),v}function m(){s+=1,p();}function l(){s-=1;}function f(d,h){d.addEventListener("destroy",n),d.addEventListener("_active",m),d.addEventListener("_idle",l),e.push({elem:h,animation:d}),i+=1;}function y(d){var h,g=d-r;for(h=0;h<i;h+=1)e[h].animation.advanceTime(g);r=d,s&&!o?window.requestAnimationFrame(y):a=!0;}function c(d){r=d,window.requestAnimationFrame(y);}function p(){!o&&s&&a&&(window.requestAnimationFrame(c),a=!1);}return t.registerAnimation=u,t.loadAnimation=function(d){var h=new AnimationItem;return f(h,null),h.setParams(d),h},t.setSpeed=function(d,h){var g;for(g=0;g<i;g+=1)e[g].animation.setSpeed(d,h);},t.setDirection=function(d,h){var g;for(g=0;g<i;g+=1)e[g].animation.setDirection(d,h);},t.play=function(d){var h;for(h=0;h<i;h+=1)e[h].animation.play(d);},t.pause=function(d){var h;for(h=0;h<i;h+=1)e[h].animation.pause(d);},t.stop=function(d){var h;for(h=0;h<i;h+=1)e[h].animation.stop(d);},t.togglePause=function(d){var h;for(h=0;h<i;h+=1)e[h].animation.togglePause(d);},t.searchAnimations=function(d,h,g){var v,b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),_=b.length;for(v=0;v<_;v+=1)g&&b[v].setAttribute("data-bm-type",g),u(b[v],d);if(h&&_===0){g||(g="svg");var A=document.getElementsByTagName("body")[0];A.innerText="";var S=createTag("div");S.style.width="100%",S.style.height="100%",S.setAttribute("data-bm-type",g),A.appendChild(S),u(S,d);}},t.resize=function(){var d;for(d=0;d<i;d+=1)e[d].animation.resize();},t.goToAndStop=function(d,h,g){var v;for(v=0;v<i;v+=1)e[v].animation.goToAndStop(d,h,g);},t.destroy=function(d){var h;for(h=i-1;0<=h;h-=1)e[h].animation.destroy(d);},t.freeze=function(){o=!0;},t.unfreeze=function(){o=!1,p();},t.setVolume=function(d,h){var g;for(g=0;g<i;g+=1)e[g].animation.setVolume(d,h);},t.mute=function(d){var h;for(h=0;h<i;h+=1)e[h].animation.mute(d);},t.unmute=function(d){var h;for(h=0;h<i;h+=1)e[h].animation.unmute(d);},t.getRegisteredAnimations=function(){var d,h=e.length,g=[];for(d=0;d<h;d+=1)g.push(e[d].animation);return g},t}(),BezierFactory=function(){var t={getBezierEasing:function(f,y,c,p,d){var h=d||("bez_"+f+"_"+y+"_"+c+"_"+p).replace(/\./g,"p");if(e[h])return e[h];var g=new l([f,y,c,p]);return e[h]=g}},e={},r=11,i=1/(r-1),s=typeof Float32Array=="function";function a(f,y){return 1-3*y+3*f}function o(f,y){return 3*y-6*f}function n(f){return 3*f}function u(f,y,c){return ((a(y,c)*f+o(y,c))*f+n(y))*f}function m(f,y,c){return 3*a(y,c)*f*f+2*o(y,c)*f+n(y)}function l(f){this._p=f,this._mSampleValues=s?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this);}return l.prototype={get:function(f){var y=this._p[0],c=this._p[1],p=this._p[2],d=this._p[3];return this._precomputed||this._precompute(),y===c&&p===d?f:f===0?0:f===1?1:u(this._getTForX(f),c,d)},_precompute:function(){var f=this._p[0],y=this._p[1],c=this._p[2],p=this._p[3];this._precomputed=!0,f===y&&c===p||this._calcSampleValues();},_calcSampleValues:function(){for(var f=this._p[0],y=this._p[2],c=0;c<r;++c)this._mSampleValues[c]=u(c*i,f,y);},_getTForX:function(f){for(var y=this._p[0],c=this._p[2],p=this._mSampleValues,d=0,h=1,g=r-1;h!==g&&p[h]<=f;++h)d+=i;var v=d+(f-p[--h])/(p[h+1]-p[h])*i,b=m(v,y,c);return .001<=b?function(_,A,S,C){for(var E=0;E<4;++E){var P=m(A,S,C);if(P===0)return A;A-=(u(A,S,C)-_)/P;}return A}(f,v,y,c):b===0?v:function(_,A,S,C,E){for(var P,M,T=0;0<(P=u(M=A+(S-A)/2,C,E)-_)?S=M:A=M,1e-7<Math.abs(P)&&++T<10;);return M}(f,d,d+i,y,c)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,s=t,a=createSizedArray(s);return {newElement:function(){return i?a[i-=1]:e()},release:function(o){i===s&&(a=pooling.double(a),s*=2),r&&r(o),a[i]=o,i+=1;}}},bezierLengthPool=poolFactory(8,function(){return {addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return {lengths:[],totalLength:0}},function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0;});function bezFunction(){var t=Math;function e(m,l,f,y,c,p){var d=m*y+l*c+f*p-c*y-p*m-f*l;return -.001<d&&d<.001}var r=function(m,l,f,y){var c,p,d,h,g,v,b=getDefaultCurveSegments(),_=0,A=[],S=[],C=bezierLengthPool.newElement();for(d=f.length,c=0;c<b;c+=1){for(g=c/(b-1),p=v=0;p<d;p+=1)h=bmPow(1-g,3)*m[p]+3*bmPow(1-g,2)*g*f[p]+3*(1-g)*bmPow(g,2)*y[p]+bmPow(g,3)*l[p],A[p]=h,S[p]!==null&&(v+=bmPow(A[p]-S[p],2)),S[p]=A[p];v&&(_+=v=bmSqrt(v)),C.percents[c]=g,C.lengths[c]=_;}return C.addedLength=_,C};function i(m){this.segmentLength=0,this.points=new Array(m);}function s(m,l){this.partialLength=m,this.point=l;}var a,o=(a={},function(m,l,f,y){var c=(m[0]+"_"+m[1]+"_"+l[0]+"_"+l[1]+"_"+f[0]+"_"+f[1]+"_"+y[0]+"_"+y[1]).replace(/\./g,"p");if(!a[c]){var p,d,h,g,v,b,_,A=getDefaultCurveSegments(),S=0,C=null;m.length===2&&(m[0]!==l[0]||m[1]!==l[1])&&e(m[0],m[1],l[0],l[1],m[0]+f[0],m[1]+f[1])&&e(m[0],m[1],l[0],l[1],l[0]+y[0],l[1]+y[1])&&(A=2);var E=new i(A);for(h=f.length,p=0;p<A;p+=1){for(_=createSizedArray(h),v=p/(A-1),d=b=0;d<h;d+=1)g=bmPow(1-v,3)*m[d]+3*bmPow(1-v,2)*v*(m[d]+f[d])+3*(1-v)*bmPow(v,2)*(l[d]+y[d])+bmPow(v,3)*l[d],_[d]=g,C!==null&&(b+=bmPow(_[d]-C[d],2));S+=b=bmSqrt(b),E.points[p]=new s(b,_),C=_;}E.segmentLength=S,a[c]=E;}return a[c]});function n(m,l){var f=l.percents,y=l.lengths,c=f.length,p=bmFloor((c-1)*m),d=m*l.addedLength,h=0;if(p===c-1||p===0||d===y[p])return f[p];for(var g=y[p]>d?-1:1,v=!0;v;)if(y[p]<=d&&y[p+1]>d?(h=(d-y[p])/(y[p+1]-y[p]),v=!1):p+=g,p<0||c-1<=p){if(p===c-1)return f[p];v=!1;}return f[p]+(f[p+1]-f[p])*h}var u=createTypedArray("float32",8);return {getSegmentsLength:function(m){var l,f=segmentsLengthPool.newElement(),y=m.c,c=m.v,p=m.o,d=m.i,h=m._length,g=f.lengths,v=0;for(l=0;l<h-1;l+=1)g[l]=r(c[l],c[l+1],p[l],d[l+1]),v+=g[l].addedLength;return y&&h&&(g[l]=r(c[l],c[0],p[l],d[0]),v+=g[l].addedLength),f.totalLength=v,f},getNewSegment:function(m,l,f,y,c,p,d){c<0?c=0:1<c&&(c=1);var h,g=n(c,d),v=n(p=1<p?1:p,d),b=m.length,_=1-g,A=1-v,S=_*_*_,C=g*_*_*3,E=g*g*_*3,P=g*g*g,M=_*_*A,T=g*_*A+_*g*A+_*_*v,F=g*g*A+_*g*v+g*_*v,R=g*g*v,w=_*A*A,I=g*A*A+_*v*A+_*A*v,V=g*v*A+_*v*v+g*A*v,z=g*v*v,x=A*A*A,k=v*A*A+A*v*A+A*A*v,D=v*v*A+A*v*v+v*A*v,L=v*v*v;for(h=0;h<b;h+=1)u[4*h]=t.round(1e3*(S*m[h]+C*f[h]+E*y[h]+P*l[h]))/1e3,u[4*h+1]=t.round(1e3*(M*m[h]+T*f[h]+F*y[h]+R*l[h]))/1e3,u[4*h+2]=t.round(1e3*(w*m[h]+I*f[h]+V*y[h]+z*l[h]))/1e3,u[4*h+3]=t.round(1e3*(x*m[h]+k*f[h]+D*y[h]+L*l[h]))/1e3;return u},getPointInSegment:function(m,l,f,y,c,p){var d=n(c,p),h=1-d;return [t.round(1e3*(h*h*h*m[0]+(d*h*h+h*d*h+h*h*d)*f[0]+(d*d*h+h*d*d+d*h*d)*y[0]+d*d*d*l[0]))/1e3,t.round(1e3*(h*h*h*m[1]+(d*h*h+h*d*h+h*h*d)*f[1]+(d*d*h+h*d*d+d*h*d)*y[1]+d*d*d*l[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(m,l,f,y,c,p,d,h,g){if(f===0&&p===0&&g===0)return e(m,l,y,c,d,h);var v,b=t.sqrt(t.pow(y-m,2)+t.pow(c-l,2)+t.pow(p-f,2)),_=t.sqrt(t.pow(d-m,2)+t.pow(h-l,2)+t.pow(g-f,2)),A=t.sqrt(t.pow(d-y,2)+t.pow(h-c,2)+t.pow(g-p,2));return -1e-4<(v=_<b?A<b?b-_-A:A-_-b:_<A?A-_-b:_-b-A)&&v<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var r,i=this.offsetTime;this.propType==="multidimensional"&&(r=createTypedArray("float32",this.pv.length));for(var s,a,o,n,u,m,l,f,y,c=e.lastIndex,p=c,d=this.keyframes.length-1,h=!0;h;){if(s=this.keyframes[p],a=this.keyframes[p+1],p===d-1&&t>=a.t-i){s.h&&(s=a),c=0;break}if(a.t-i>t){c=p;break}p<d-1?p+=1:(c=0,h=!1);}o=this.keyframesMetadata[p]||{};var g,v=a.t-i,b=s.t-i;if(s.to){o.bezierData||(o.bezierData=bez.buildBezierData(s.s,a.s||s.e,s.to,s.ti));var _=o.bezierData;if(v<=t||t<b){var A=v<=t?_.points.length-1:0;for(u=_.points[A].point.length,n=0;n<u;n+=1)r[n]=_.points[A].point[n];}else {o.__fnct?y=o.__fnct:(y=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,o.__fnct=y),m=y((t-b)/(v-b));var S,C=_.segmentLength*m,E=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastAddedLength:0;for(f=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastPoint:0,h=!0,l=_.points.length;h;){if(E+=_.points[f].partialLength,C===0||m===0||f===_.points.length-1){for(u=_.points[f].point.length,n=0;n<u;n+=1)r[n]=_.points[f].point[n];break}if(E<=C&&C<E+_.points[f+1].partialLength){for(S=(C-E)/_.points[f+1].partialLength,u=_.points[f].point.length,n=0;n<u;n+=1)r[n]=_.points[f].point[n]+(_.points[f+1].point[n]-_.points[f].point[n])*S;break}f<l-1?f+=1:h=!1;}e._lastPoint=f,e._lastAddedLength=E-_.points[f].partialLength,e._lastKeyframeIndex=p;}}else {var P,M,T,F,R;if(d=s.s.length,g=a.s||s.e,this.sh&&s.h!==1)v<=t?(r[0]=g[0],r[1]=g[1],r[2]=g[2]):t<=b?(r[0]=s.s[0],r[1]=s.s[1],r[2]=s.s[2]):quaternionToEuler(r,slerp(createQuaternion(s.s),createQuaternion(g),(t-b)/(v-b)));else for(p=0;p<d;p+=1)s.h!==1&&(m=v<=t?1:t<b?0:(s.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[p]?y=o.__fnct[p]:(P=s.o.x[p]===void 0?s.o.x[0]:s.o.x[p],M=s.o.y[p]===void 0?s.o.y[0]:s.o.y[p],T=s.i.x[p]===void 0?s.i.x[0]:s.i.x[p],F=s.i.y[p]===void 0?s.i.y[0]:s.i.y[p],y=BezierFactory.getBezierEasing(P,M,T,F).get,o.__fnct[p]=y)):o.__fnct?y=o.__fnct:(P=s.o.x,M=s.o.y,T=s.i.x,F=s.i.y,y=BezierFactory.getBezierEasing(P,M,T,F).get,s.keyframeMetadata=y),y((t-b)/(v-b)))),g=a.s||s.e,R=s.h===1?s.s[p]:s.s[p]+(g[p]-s.s[p])*m,this.propType==="multidimensional"?r[p]=R:r=R;}return e.lastIndex=c,r}function slerp(t,e,r){var i,s,a,o,n,u=[],m=t[0],l=t[1],f=t[2],y=t[3],c=e[0],p=e[1],d=e[2],h=e[3];return (s=m*c+l*p+f*d+y*h)<0&&(s=-s,c=-c,p=-p,d=-d,h=-h),n=1e-6<1-s?(i=Math.acos(s),a=Math.sin(i),o=Math.sin((1-r)*i)/a,Math.sin(r*i)/a):(o=1-r,r),u[0]=o*m+n*c,u[1]=o*l+n*p,u[2]=o*f+n*d,u[3]=o*y+n*h,u}function quaternionToEuler(t,e){var r=e[0],i=e[1],s=e[2],a=e[3],o=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s),n=Math.asin(2*r*i+2*s*a),u=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s);t[0]=o/degToRads,t[1]=n/degToRads,t[2]=u/degToRads;}function createQuaternion(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(r/2),o=Math.cos(i/2),n=Math.sin(e/2),u=Math.sin(r/2),m=Math.sin(i/2);return [n*u*o+s*a*m,n*a*o+s*u*m,s*u*o-n*a*m,s*a*o-n*u*m]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&r<=t||this._caching.lastFrame<e&&t<e))){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 setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,1e-5<mathAbs(this.v-e)&&(this.v=e,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)e=t[r]*this.mult,1e-5<mathAbs(this.v[r]-e)&&(this.v[r]=e,this._mdf=!0),r+=1;}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else {var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId;}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this);}function ValueProperty(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect;}function MultiDimensionalProperty(t,e,r,i){var s;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect;}function KeyframedValueProperty(t,e,r,i){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect;}function KeyframedMultidimensionalProperty(t,e,r,i){var s;this.propType="multidimensional";var a,o,n,u,m=e.k.length;for(s=0;s<m-1;s+=1)e.k[s].to&&e.k[s].s&&e.k[s+1]&&e.k[s+1].s&&(a=e.k[s].s,o=e.k[s+1].s,n=e.k[s].to,u=e.k[s].ti,(a.length===2&&(a[0]!==o[0]||a[1]!==o[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],a[0]+n[0],a[1]+n[1])&&bez.pointOnLine2D(a[0],a[1],o[0],o[1],o[0]+u[0],o[1]+u[1])||a.length===3&&(a[0]!==o[0]||a[1]!==o[1]||a[2]!==o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],a[0]+n[0],a[1]+n[1],a[2]+n[2])&&bez.pointOnLine3D(a[0],a[1],a[2],o[0],o[1],o[2],o[0]+u[0],o[1]+u[1],o[2]+u[2]))&&(e.k[s].to=null,e.k[s].ti=null),a[0]===o[0]&&a[1]===o[1]&&n[0]===0&&n[1]===0&&u[0]===0&&u[1]===0&&(a.length===2||a[2]===o[2]&&n[2]===0&&u[2]===0)&&(e.k[s].to=null,e.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var l=e.k[0].s.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),s=0;s<l;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",l)},this.addEffect=addEffect;}var PropertyFactory={getProp:function(t,e,r,i,s){var a;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if(typeof e.k[0]=="number")a=new MultiDimensionalProperty(t,e,i,s);else switch(r){case 0:a=new KeyframedValueProperty(t,e,i,s);break;case 1:a=new KeyframedMultidimensionalProperty(t,e,i,s);}else a=new ValueProperty(t,e,i,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0);},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0);},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1;}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength);}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1;},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t;},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2;},ShapePath.prototype.setXYAt=function(t,e,r,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=t,a[i][1]=e;},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,o,n){this.setXYAt(t,e,"v",o,n),this.setXYAt(r,i,"o",o,n),this.setXYAt(s,a,"i",o,n);},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a,o=this._length-1,n=this._length;for(a=s;a<n;a+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],r[o][0],r[o][1],a,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(_r=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1;}),_r.clone=function(t){var e,r=_r.newElement(),i=t._length===void 0?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},_r),_r;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength);}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1;},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0;};var shapeCollectionPool=(js={newShapeCollection:function(){var t;return t=ks?ms[ks-=1]:new ShapeCollection,t},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,ks===ls&&(ms=pooling.double(ms),ls*=2),ms[ks]=t,ks+=1;}},ks=0,ls=4,ms=createSizedArray(ls),js),js,ks,ls,ms,ShapePropertyFactory=function(){var t=-999999;function e(y,c,p){var d,h,g,v,b,_,A,S,C,E=p.lastIndex,P=this.keyframes;if(y<P[0].t-this.offsetTime)d=P[0].s[0],g=!0,E=0;else if(y>=P[P.length-1].t-this.offsetTime)d=P[P.length-1].s?P[P.length-1].s[0]:P[P.length-2].e[0],g=!0;else {for(var M,T,F,R=E,w=P.length-1,I=!0;I&&(M=P[R],!((T=P[R+1]).t-this.offsetTime>y));)R<w-1?R+=1:I=!1;if(F=this.keyframesMetadata[R]||{},E=R,!(g=M.h===1)){if(y>=T.t-this.offsetTime)S=1;else if(y<M.t-this.offsetTime)S=0;else {var V;F.__fnct?V=F.__fnct:(V=BezierFactory.getBezierEasing(M.o.x,M.o.y,M.i.x,M.i.y).get,F.__fnct=V),S=V((y-(M.t-this.offsetTime))/(T.t-this.offsetTime-(M.t-this.offsetTime)));}h=T.s?T.s[0]:M.e[0];}d=M.s[0];}for(_=c._length,A=d.i[0].length,p.lastIndex=E,v=0;v<_;v+=1)for(b=0;b<A;b+=1)C=g?d.i[v][b]:d.i[v][b]+(h.i[v][b]-d.i[v][b])*S,c.i[v][b]=C,C=g?d.o[v][b]:d.o[v][b]+(h.o[v][b]-d.o[v][b])*S,c.o[v][b]=C,C=g?d.v[v][b]:d.v[v][b]+(h.v[v][b]-d.v[v][b])*S,c.v[v][b]=C;}function r(){this.paths=this.localShapeCollection;}function i(y){(function(c,p){if(c._length!==p._length||c.c!==p.c)return !1;var d,h=c._length;for(d=0;d<h;d+=1)if(c.v[d][0]!==p.v[d][0]||c.v[d][1]!==p.v[d][1]||c.o[d][0]!==p.o[d][0]||c.o[d][1]!==p.o[d][1]||c.i[d][0]!==p.i[d][0]||c.i[d][1]!==p.i[d][1])return !1;return !0})(this.v,y)||(this.v=shapePool.clone(y),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection);}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else {var y,c;this.lock=!0,this._mdf=!1,y=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var p=this.effectsSequence.length;for(c=0;c<p;c+=1)y=this.effectsSequence[c](y);this.setVValue(y),this.lock=!1,this.frameId=this.elem.globalData.frameId;}else this._mdf=!1;}function a(y,c,p){this.propType="shape",this.comp=y.comp,this.container=y,this.elem=y,this.data=c,this.k=!1,this.kf=!1,this._mdf=!1;var d=p===3?c.pt.k:c.ks.k;this.v=shapePool.clone(d),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[];}function o(y){this.effectsSequence.push(y),this.container.addDynamicProperty(this);}function n(y,c,p){this.propType="shape",this.comp=y.comp,this.elem=y,this.container=y,this.offsetTime=y.data.st,this.keyframes=p===3?c.pt.k:c.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var d=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,d),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[function(){var h=this.comp.renderedFrame-this.offsetTime,g=this.keyframes[0].t-this.offsetTime,v=this.keyframes[this.keyframes.length-1].t-this.offsetTime,b=this._caching.lastFrame;return b!==t&&(b<g&&h<g||v<b&&v<h)||(this._caching.lastIndex=b<h?this._caching.lastIndex:0,this.interpolateShape(h,this.pv,this._caching)),this._caching.lastFrame=h,this.pv}.bind(this)];}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=i,a.prototype.addEffect=o,n.prototype.getValue=s,n.prototype.interpolateShape=e,n.prototype.setVValue=i,n.prototype.addEffect=o;var u=function(){var y=roundCorner;function c(p,d){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=d.d,this.elem=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,d.p,1,0,this),this.s=PropertyFactory.getProp(p,d.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath());}return c.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath());},convertEllToPath:function(){var p=this.p.v[0],d=this.p.v[1],h=this.s.v[0]/2,g=this.s.v[1]/2,v=this.d!==3,b=this.v;b.v[0][0]=p,b.v[0][1]=d-g,b.v[1][0]=v?p+h:p-h,b.v[1][1]=d,b.v[2][0]=p,b.v[2][1]=d+g,b.v[3][0]=v?p-h:p+h,b.v[3][1]=d,b.i[0][0]=v?p-h*y:p+h*y,b.i[0][1]=d-g,b.i[1][0]=v?p+h:p-h,b.i[1][1]=d-g*y,b.i[2][0]=v?p+h*y:p-h*y,b.i[2][1]=d+g,b.i[3][0]=v?p-h:p+h,b.i[3][1]=d+g*y,b.o[0][0]=v?p+h*y:p-h*y,b.o[0][1]=d-g,b.o[1][0]=v?p+h:p-h,b.o[1][1]=d+g*y,b.o[2][0]=v?p-h*y:p+h*y,b.o[2][1]=d+g,b.o[3][0]=v?p-h:p+h,b.o[3][1]=d-g*y;}},extendPrototype([DynamicPropertyContainer],c),c}(),m=function(){function y(c,p){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=c,this.comp=c.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(c),p.sy===1?(this.ir=PropertyFactory.getProp(c,p.ir,0,0,this),this.is=PropertyFactory.getProp(c,p.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(c,p.pt,0,0,this),this.p=PropertyFactory.getProp(c,p.p,1,0,this),this.r=PropertyFactory.getProp(c,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(c,p.or,0,0,this),this.os=PropertyFactory.getProp(c,p.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath());}return y.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath());},convertStarToPath:function(){var c,p,d,h,g=2*Math.floor(this.pt.v),v=2*Math.PI/g,b=!0,_=this.or.v,A=this.ir.v,S=this.os.v,C=this.is.v,E=2*Math.PI*_/(2*g),P=2*Math.PI*A/(2*g),M=-Math.PI/2;M+=this.r.v;var T=this.data.d===3?-1:1;for(c=this.v._length=0;c<g;c+=1){d=b?S:C,h=b?E:P;var F=(p=b?_:A)*Math.cos(M),R=p*Math.sin(M),w=F===0&&R===0?0:R/Math.sqrt(F*F+R*R),I=F===0&&R===0?0:-F/Math.sqrt(F*F+R*R);F+=+this.p.v[0],R+=+this.p.v[1],this.v.setTripleAt(F,R,F-w*h*d*T,R-I*h*d*T,F+w*h*d*T,R+I*h*d*T,c,!0),b=!b,M+=v*T;}},convertPolygonToPath:function(){var c,p=Math.floor(this.pt.v),d=2*Math.PI/p,h=this.or.v,g=this.os.v,v=2*Math.PI*h/(4*p),b=.5*-Math.PI,_=this.data.d===3?-1:1;for(b+=this.r.v,c=this.v._length=0;c<p;c+=1){var A=h*Math.cos(b),S=h*Math.sin(b),C=A===0&&S===0?0:S/Math.sqrt(A*A+S*S),E=A===0&&S===0?0:-A/Math.sqrt(A*A+S*S);A+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(A,S,A-C*v*g*_,S-E*v*g*_,A+C*v*g*_,S+E*v*g*_,c,!0),b+=d*_;}this.paths.length=0,this.paths[0]=this.v;}},extendPrototype([DynamicPropertyContainer],y),y}(),l=function(){function y(c,p){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=c,this.comp=c.comp,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(c),this.p=PropertyFactory.getProp(c,p.p,1,0,this),this.s=PropertyFactory.getProp(c,p.s,1,0,this),this.r=PropertyFactory.getProp(c,p.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath());}return y.prototype={convertRectToPath:function(){var c=this.p.v[0],p=this.p.v[1],d=this.s.v[0]/2,h=this.s.v[1]/2,g=bmMin(d,h,this.r.v),v=g*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(c+d,p-h+g,c+d,p-h+g,c+d,p-h+v,0,!0),this.v.setTripleAt(c+d,p+h-g,c+d,p+h-v,c+d,p+h-g,1,!0),g!==0?(this.v.setTripleAt(c+d-g,p+h,c+d-g,p+h,c+d-v,p+h,2,!0),this.v.setTripleAt(c-d+g,p+h,c-d+v,p+h,c-d+g,p+h,3,!0),this.v.setTripleAt(c-d,p+h-g,c-d,p+h-g,c-d,p+h-v,4,!0),this.v.setTripleAt(c-d,p-h+g,c-d,p-h+v,c-d,p-h+g,5,!0),this.v.setTripleAt(c-d+g,p-h,c-d+g,p-h,c-d+v,p-h,6,!0),this.v.setTripleAt(c+d-g,p-h,c+d-v,p-h,c+d-g,p-h,7,!0)):(this.v.setTripleAt(c-d,p+h,c-d+v,p+h,c-d,p+h,2),this.v.setTripleAt(c-d,p-h,c-d,p-h+v,c-d,p-h,3))):(this.v.setTripleAt(c+d,p-h+g,c+d,p-h+v,c+d,p-h+g,0,!0),g!==0?(this.v.setTripleAt(c+d-g,p-h,c+d-g,p-h,c+d-v,p-h,1,!0),this.v.setTripleAt(c-d+g,p-h,c-d+v,p-h,c-d+g,p-h,2,!0),this.v.setTripleAt(c-d,p-h+g,c-d,p-h+g,c-d,p-h+v,3,!0),this.v.setTripleAt(c-d,p+h-g,c-d,p+h-v,c-d,p+h-g,4,!0),this.v.setTripleAt(c-d+g,p+h,c-d+g,p+h,c-d+v,p+h,5,!0),this.v.setTripleAt(c+d-g,p+h,c+d-v,p+h,c+d-g,p+h,6,!0),this.v.setTripleAt(c+d,p+h-g,c+d,p+h-g,c+d,p+h-v,7,!0)):(this.v.setTripleAt(c-d,p-h,c-d+v,p-h,c-d,p-h,1,!0),this.v.setTripleAt(c-d,p+h,c-d,p+h-v,c-d,p+h,2,!0),this.v.setTripleAt(c+d,p+h,c+d-v,p+h,c+d,p+h,3,!0)));},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath());},reset:r},extendPrototype([DynamicPropertyContainer],y),y}(),f={getShapeProp:function(y,c,p){var d;return p===3||p===4?d=(p===3?c.pt:c.ks).k.length?new n(y,c,p):new a(y,c,p):p===5?d=new l(y,c):p===6?d=new u(y,c):p===7&&(d=new m(y,c)),d.k&&y.addDynamicProperty(d),d},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return n}};return f}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function s(){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 a(x){if(x===0)return this;var k=t(x),D=e(x);return this._t(k,-D,0,0,D,k,0,0,0,0,1,0,0,0,0,1)}function o(x){if(x===0)return this;var k=t(x),D=e(x);return this._t(1,0,0,0,0,k,-D,0,0,D,k,0,0,0,0,1)}function n(x){if(x===0)return this;var k=t(x),D=e(x);return this._t(k,0,D,0,0,1,0,0,-D,0,k,0,0,0,0,1)}function u(x){if(x===0)return this;var k=t(x),D=e(x);return this._t(k,-D,0,0,D,k,0,0,0,0,1,0,0,0,0,1)}function m(x,k){return this._t(1,k,x,1,0,0)}function l(x,k){return this.shear(r(x),r(k))}function f(x,k){var D=t(k),L=e(k);return this._t(D,L,0,0,-L,D,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(x),1,0,0,0,0,1,0,0,0,0,1)._t(D,-L,0,0,L,D,0,0,0,0,1,0,0,0,0,1)}function y(x,k,D){return D||D===0||(D=1),x===1&&k===1&&D===1?this:this._t(x,0,0,0,0,k,0,0,0,0,D,0,0,0,0,1)}function c(x,k,D,L,U,q,W,G,K,O,N,tt,it,et,rt,J){return this.props[0]=x,this.props[1]=k,this.props[2]=D,this.props[3]=L,this.props[4]=U,this.props[5]=q,this.props[6]=W,this.props[7]=G,this.props[8]=K,this.props[9]=O,this.props[10]=N,this.props[11]=tt,this.props[12]=it,this.props[13]=et,this.props[14]=rt,this.props[15]=J,this}function p(x,k,D){return D=D||0,x!==0||k!==0||D!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,x,k,D,1):this}function d(x,k,D,L,U,q,W,G,K,O,N,tt,it,et,rt,J){var B=this.props;if(x===1&&k===0&&D===0&&L===0&&U===0&&q===1&&W===0&&G===0&&K===0&&O===0&&N===1&&tt===0)return B[12]=B[12]*x+B[15]*it,B[13]=B[13]*q+B[15]*et,B[14]=B[14]*N+B[15]*rt,B[15]*=J,this._identityCalculated=!1,this;var St=B[0],xt=B[1],dt=B[2],nt=B[3],ot=B[4],Q=B[5],lt=B[6],pt=B[7],st=B[8],ct=B[9],at=B[10],ut=B[11],It=B[12],Rt=B[13],Bt=B[14],Vt=B[15];return B[0]=St*x+xt*U+dt*K+nt*it,B[1]=St*k+xt*q+dt*O+nt*et,B[2]=St*D+xt*W+dt*N+nt*rt,B[3]=St*L+xt*G+dt*tt+nt*J,B[4]=ot*x+Q*U+lt*K+pt*it,B[5]=ot*k+Q*q+lt*O+pt*et,B[6]=ot*D+Q*W+lt*N+pt*rt,B[7]=ot*L+Q*G+lt*tt+pt*J,B[8]=st*x+ct*U+at*K+ut*it,B[9]=st*k+ct*q+at*O+ut*et,B[10]=st*D+ct*W+at*N+ut*rt,B[11]=st*L+ct*G+at*tt+ut*J,B[12]=It*x+Rt*U+Bt*K+Vt*it,B[13]=It*k+Rt*q+Bt*O+Vt*et,B[14]=It*D+Rt*W+Bt*N+Vt*rt,B[15]=It*L+Rt*G+Bt*tt+Vt*J,this._identityCalculated=!1,this}function h(x){var k=x.props;return this.transform(k[0],k[1],k[2],k[3],k[4],k[5],k[6],k[7],k[8],k[9],k[10],k[11],k[12],k[13],k[14],k[15])}function g(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function v(x){for(var k=0;k<16;){if(x.props[k]!==this.props[k])return !1;k+=1;}return !0}function b(x){var k;for(k=0;k<16;k+=1)x.props[k]=this.props[k];return x}function _(x){var k;for(k=0;k<16;k+=1)this.props[k]=x[k];}function A(x,k,D){return {x:x*this.props[0]+k*this.props[4]+D*this.props[8]+this.props[12],y:x*this.props[1]+k*this.props[5]+D*this.props[9]+this.props[13],z:x*this.props[2]+k*this.props[6]+D*this.props[10]+this.props[14]}}function S(x,k,D){return x*this.props[0]+k*this.props[4]+D*this.props[8]+this.props[12]}function C(x,k,D){return x*this.props[1]+k*this.props[5]+D*this.props[9]+this.props[13]}function E(x,k,D){return x*this.props[2]+k*this.props[6]+D*this.props[10]+this.props[14]}function P(){var x=this.props[0]*this.props[5]-this.props[1]*this.props[4],k=this.props[5]/x,D=-this.props[1]/x,L=-this.props[4]/x,U=this.props[0]/x,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/x,W=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/x,G=new Matrix;return G.props[0]=k,G.props[1]=D,G.props[4]=L,G.props[5]=U,G.props[12]=q,G.props[13]=W,G}function M(x){return this.getInverseMatrix().applyToPointArray(x[0],x[1],x[2]||0)}function T(x){var k,D=x.length,L=[];for(k=0;k<D;k+=1)L[k]=M(x[k]);return L}function F(x,k,D){var L=createTypedArray("float32",6);if(this.isIdentity())L[0]=x[0],L[1]=x[1],L[2]=k[0],L[3]=k[1],L[4]=D[0],L[5]=D[1];else {var U=this.props[0],q=this.props[1],W=this.props[4],G=this.props[5],K=this.props[12],O=this.props[13];L[0]=x[0]*U+x[1]*W+K,L[1]=x[0]*q+x[1]*G+O,L[2]=k[0]*U+k[1]*W+K,L[3]=k[0]*q+k[1]*G+O,L[4]=D[0]*U+D[1]*W+K,L[5]=D[0]*q+D[1]*G+O;}return L}function R(x,k,D){return this.isIdentity()?[x,k,D]:[x*this.props[0]+k*this.props[4]+D*this.props[8]+this.props[12],x*this.props[1]+k*this.props[5]+D*this.props[9]+this.props[13],x*this.props[2]+k*this.props[6]+D*this.props[10]+this.props[14]]}function w(x,k){if(this.isIdentity())return x+","+k;var D=this.props;return Math.round(100*(x*D[0]+k*D[4]+D[12]))/100+","+Math.round(100*(x*D[1]+k*D[5]+D[13]))/100}function I(){for(var x=0,k=this.props,D="matrix3d(";x<16;)D+=i(1e4*k[x])/1e4,D+=x===15?")":",",x+=1;return D}function V(x){return x<1e-6&&0<x||-1e-6<x&&x<0?i(1e4*x)/1e4:x}function z(){var x=this.props;return "matrix("+V(x[0])+","+V(x[1])+","+V(x[4])+","+V(x[5])+","+V(x[12])+","+V(x[13])+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=n,this.rotateZ=u,this.skew=l,this.skewFromAxis=f,this.shear=m,this.scale=y,this.setTransform=c,this.translate=p,this.transform=d,this.multiply=h,this.applyToPoint=A,this.applyToX=S,this.applyToY=C,this.applyToZ=E,this.applyToPointArray=R,this.applyToTriplePoints=F,this.applyToPointStringified=w,this.toCSS=I,this.to2dCSS=z,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=T,this.inversePoint=M,this.getInverseMatrix=P,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset();}}();function _typeof$3(t){return (_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var lottie={};function setLocation(t){setLocationHref(t);}function searchAnimations(){animationManager.searchAnimations();}function setSubframeRendering(t){setSubframeEnabled(t);}function setPrefix(t){setIdPrefix(t);}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);}else !isNaN(t)&&1<t&&setDefaultCurveSegments(t);}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e);}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations());}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.0";var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");}var readyStateCheckInterval=setInterval(checkReady,100);try{(typeof exports>"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u"||typeof define=="function"&&define.amd||(window.bodymovin=lottie);}catch(t){}var ShapeModifiers=(ly={},my={},ly.registerModifier=function(t,e){my[t]||(my[t]=e);},ly.getModifier=function(t,e,r){return new my[t](e,r)},ly),ly,my;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated();}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0);},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties());},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length;},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[];},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,s){var a=[];e<=1?a.push({s:t,e}):1<=t?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o,n,u=[],m=a.length;for(o=0;o<m;o+=1){var l,f;(n=a[o]).e*s<i||n.s*s>i+r||(l=n.s*s<=i?0:(n.s*s-i)/r,f=n.e*s>=i+r?1:(n.e*s-i)/r,u.push([l,f]));}return u.length||u.push([0,0]),u},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,s;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),e=1<this.s.v?1+a:this.s.v<0?0+a:this.s.v+a,(r=1<this.e.v?1+a:this.e.v<0?0+a:this.e.v+a)<e){var o=e;e=r,r=o;}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r;}else e=this.sValue,r=this.eValue;var n,u,m,l,f,y=this.shapes.length,c=0;if(r===e)for(s=0;s<y;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(r===1&&e===0||r===0&&e===1){if(this._mdf)for(s=0;s<y;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0;}else {var p,d,h=[];for(s=0;s<y;s+=1)if((p=this.shapes[s]).shape._mdf||this._mdf||t||this.m===2){if(u=(i=p.shape.paths)._length,f=0,!p.shape._mdf&&p.pathsData.length)f=p.totalShapeLength;else {for(m=this.releasePathsData(p.pathsData),n=0;n<u;n+=1)l=bez.getSegmentsLength(i.shapes[n]),m.push(l),f+=l.totalLength;p.totalShapeLength=f,p.pathsData=m;}c+=f,p.shape._mdf=!0;}else p.shape.paths=p.localShapeCollection;var g,v=e,b=r,_=0;for(s=y-1;0<=s;s-=1)if((p=this.shapes[s]).shape._mdf){for((d=p.localShapeCollection).releaseShapes(),this.m===2&&1<y?(g=this.calculateShapeEdges(e,r,p.totalShapeLength,_,c),_+=p.totalShapeLength):g=[[v,b]],u=g.length,n=0;n<u;n+=1){v=g[n][0],b=g[n][1],h.length=0,b<=1?h.push({s:p.totalShapeLength*v,e:p.totalShapeLength*b}):1<=v?h.push({s:p.totalShapeLength*(v-1),e:p.totalShapeLength*(b-1)}):(h.push({s:p.totalShapeLength*v,e:p.totalShapeLength}),h.push({s:0,e:p.totalShapeLength*(b-1)}));var A=this.addShapes(p,h[0]);if(h[0].s!==h[0].e){if(1<h.length)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var S=A.pop();this.addPaths(A,d),A=this.addShapes(p,h[1],S);}else this.addPaths(A,d),A=this.addShapes(p,h[1]);this.addPaths(A,d);}}p.shape.paths=d;}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r]);},TrimModifier.prototype.addSegment=function(t,e,r,i,s,a,o){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),o&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1);},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1);},TrimModifier.prototype.addShapes=function(t,e,r){var i,s,a,o,n,u,m,l,f=t.pathsData,y=t.shape.paths.shapes,c=t.shape.paths._length,p=0,d=[],h=!0;for(l=r?(n=r._length,r._length):(r=shapePool.newElement(),n=0),d.push(r),i=0;i<c;i+=1){for(u=f[i].lengths,r.c=y[i].c,a=y[i].c?u.length:u.length+1,s=1;s<a;s+=1)if(p+(o=u[s-1]).addedLength<e.s)p+=o.addedLength,r.c=!1;else {if(p>e.e){r.c=!1;break}e.s<=p&&e.e>=p+o.addedLength?(this.addSegment(y[i].v[s-1],y[i].o[s-1],y[i].i[s],y[i].v[s],r,n,h),h=!1):(m=bez.getNewSegment(y[i].v[s-1],y[i].v[s],y[i].o[s-1],y[i].i[s],(e.s-p)/o.addedLength,(e.e-p)/o.addedLength,u[s-1]),this.addSegmentFromArray(m,r,n,h),h=!1,r.c=!1),p+=o.addedLength,n+=1;}if(y[i].c&&u.length){if(o=u[s-1],p<=e.e){var g=u[s-1].addedLength;e.s<=p&&e.e>=p+g?(this.addSegment(y[i].v[s-1],y[i].o[s-1],y[i].i[0],y[i].v[0],r,n,h),h=!1):(m=bez.getNewSegment(y[i].v[s-1],y[i].v[0],y[i].o[s-1],y[i].i[0],(e.s-p)/g,(e.e-p)/g,u[s-1]),this.addSegmentFromArray(m,r,n,h),h=!1,r.c=!1);}else r.c=!1;p+=o.addedLength,n+=1;}if(r._length&&(r.setXYAt(r.v[l][0],r.v[l][1],"i",l),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),p>e.e)break;i<c-1&&(r=shapePool.newElement(),h=!0,d.push(r),n=0);}return d},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length;},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],s=t._length,a=0;for(a=0;a<s;a+=1)i[0]+=t.v[a][0],i[1]+=t.v[a][1];i[0]/=s,i[1]/=s;var o,n,u,m,l,f,y=shapePool.newElement();for(y.c=t.c,a=0;a<s;a+=1)o=t.v[a][0]+(i[0]-t.v[a][0])*r,n=t.v[a][1]+(i[1]-t.v[a][1])*r,u=t.o[a][0]+(i[0]-t.o[a][0])*-r,m=t.o[a][1]+(i[1]-t.o[a][1])*-r,l=t.i[a][0]+(i[0]-t.i[a][0])*-r,f=t.i[a][1]+(i[1]-t.i[a][1])*-r,y.setTripleAt(o,n,u,m,l,f,a);return y},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,s,a,o,n=this.shapes.length,u=this.amount.v;if(u!==0)for(r=0;r<n;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)o.addShape(this.processPath(e[i],u));a.shape.paths=a.localShapeCollection;}this.dynamicProperties.length||(this._mdf=!1);};var TransformPropertyFactory=function(){var t=[0,0];function e(r,i,s){if(this.elem=r,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(s||r),i.p&&i.p.s?(this.px=PropertyFactory.getProp(r,i.p.x,0,0,this),this.py=PropertyFactory.getProp(r,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(r,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(r,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(r,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(r,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(r,i.rz,0,degToRads,this),i.or.k[0].ti){var a,o=i.or.k.length;for(a=0;a<o;a+=1)i.or.k[a].to=null,i.or.k[a].ti=null;}this.or=PropertyFactory.getProp(r,i.or,1,degToRads,this),this.or.sh=!0;}else this.r=PropertyFactory.getProp(r,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(r,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(r,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(r,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(r,i.s||{k:[100,100,100]},1,.01,this),i.o?this.o=PropertyFactory.getProp(r,i.o,0,.01,r):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0);}return e.prototype={applyToMatrix:function(r){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&r.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&r.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&r.skewFromAxis(-this.sk.v,this.sa.v),this.r?r.rotate(-this.r.v):r.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?r.translate(this.px.v,this.py.v,-this.pz.v):r.translate(this.px.v,this.py.v,0):r.translate(this.p.v[0],this.p.v[1],-this.p.v[2]);},getValue:function(r){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||r){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,a;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)a=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.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/i,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,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=[],a=[];var o=this.px,n=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(s[0]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),a[0]=o.getValueAtTime(o.keyframes[0].t/i,0),a[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(s[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),a[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0),a[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[o.pv,n.pv],a[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime),a[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime));}else s=a=t;this.v.rotate(-Math.atan2(s[1]-a[1],s[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.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],e),e.prototype.addDynamicProperty=function(r){this._addDynamicProperty(r),this.elem.addDynamicProperty(r),this._isDirty=!0;},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(r,i,s){return new e(r,i,s)}}}();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 Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return [lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return [];var i=e*e-4*t*r;if(i<0)return [];var s=-e/(2*t);if(i===0)return [s];var a=Math.sqrt(i)/(2*t);return [s-a,s+a]}function polynomialCoefficients(t,e,r,i){return [3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,s){s&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),s&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var a=polynomialCoefficients(t[0],e[0],r[0],i[0]),o=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[t,e,r,i];}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(i<r){var s=i;i=r,r=s;}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<a.length;o+=1)if(0<a[o]&&a[o]<1){var n=t.point(a[o])[e];n<r?r=n:i<n&&(i=n);}return {min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return {cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}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 boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,i,s,a){if(boxIntersect(t,e))if(a<=r||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)s.push([t.t,e.t]);else {var o=splitData(t),n=splitData(e);intersectsImpl(o[0],n[0],r+1,i,s,a),intersectsImpl(o[0],n[1],r+1,i,s,a),intersectsImpl(o[1],n[0],r+1,i,s,a),intersectsImpl(o[1],n[1],r+1,i,s,a);}}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,r,i){var s=[t[0],t[1],1],a=[e[0],e[1],1],o=[r[0],r[1],1],n=[i[0],i[1],1],u=crossProduct(crossProduct(s,a),crossProduct(o,n));return floatZero(u[2])?null:[u[0]/u[2],u[1]/u[2]]}function polarOffset(t,e,r){return [t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}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,r,i,s,a,o){var n=r-Math.PI/2,u=r+Math.PI/2,m=e[0]+Math.cos(r)*i*s,l=e[1]-Math.sin(r)*i*s;t.setTripleAt(m,l,m+Math.cos(n)*a,l-Math.sin(n)*a,m+Math.cos(u)*o,l-Math.sin(u)*o,t.length());}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return [Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),s=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(t,e,r,i,s,a,o){var n=getProjectingAngle(e,r),u=e.v[r%e._length],m=e.v[r===0?e._length-1:r-1],l=e.v[(r+1)%e._length],f=a===2?Math.sqrt(Math.pow(u[0]-m[0],2)+Math.pow(u[1]-m[1],2)):0,y=a===2?Math.sqrt(Math.pow(u[0]-l[0],2)+Math.pow(u[1]-l[1],2)):0;setPoint(t,e.v[r%e._length],n,o,i,y/(2*(s+1)),f/(2*(s+1)));}function zigZagSegment(t,e,r,i,s,a){for(var o=0;o<i;o+=1){var n=(o+1)/(i+1),u=s===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,m=e.normalAngle(n);setPoint(t,e.point(n),m,a,r,u/(2*(i+1)),u/(2*(i+1))),a=-a;}return a}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return [polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,s,a,o,n,u;r=(u=linearOffset(t.points[0],t.points[1],e))[0],i=u[1],s=(u=linearOffset(t.points[1],t.points[2],e))[0],a=u[1],o=(u=linearOffset(t.points[2],t.points[3],e))[0],n=u[1];var m=lineIntersection(r,i,s,a);m===null&&(m=i);var l=lineIntersection(o,n,s,a);return l===null&&(l=o),new PolynomialBezier(r,m,l,n)}function joinLines(t,e,r,i,s){var a=e.points[3],o=r.points[0];if(i===3||pointEqual(a,o))return a;if(i===2){var n=-e.tangentAngle(1),u=-r.tangentAngle(0)+Math.PI,m=lineIntersection(a,polarOffset(a,n+Math.PI/2,100),o,polarOffset(o,n+Math.PI/2,100)),l=m?pointDistance(m,a):pointDistance(a,o)/2,f=polarOffset(a,n,2*l*roundCorner);return t.setXYAt(f[0],f[1],"o",t.length()-1),f=polarOffset(o,u,2*l*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],f[0],f[1],t.length()),o}var y=lineIntersection(pointEqual(a,e.points[2])?e.points[0]:e.points[2],a,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return y&&pointDistance(y,a)<s?(t.setTripleAt(y[0],y[1],y[0],y[1],y[0],y[1],t.length()),y):a}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),s=getIntersection(t[t.length-1],e[0]);return s&&(r[t.length-1]=t[t.length-1].split(s[0])[0],i[0]=e[0].split(s[1])[1]),1<t.length&&1<e.length&&(s=getIntersection(t[0],e[e.length-1]))?[[t[0].split(s[0])[0]],[e[e.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return 1<t.length&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,s,a,o=t.inflectionPoints();if(o.length===0)return [offsetSegment(t,e)];if(o.length===1||floatEqual(o[1],1))return r=(s=t.split(o[0]))[0],i=s[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(s=t.split(o[0]))[0];var n=(o[1]-o[0])/(1-o[0]);return a=(s=s[1].split(n))[0],i=s[1],[offsetSegment(r,e),offsetSegment(a,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",s=e.length,a=0;a<s;a+=1)switch(e[a].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";}return {style:i,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix;},RepeaterModifier.prototype.applyTransforms=function(t,e,r,i,s,a){var o=a?-1:1,n=i.s.v[0]+(1-i.s.v[0])*(1-s),u=i.s.v[1]+(1-i.s.v[1])*(1-s);t.translate(i.p.v[0]*o*s,i.p.v[1]*o*s,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*s),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(a?1/n:n,a?1/u:u),r.translate(i.a.v[0],i.a.v[1],i.a.v[2]);},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);0<r;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0);},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&this.resetElements(t[e].it);},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e);},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,s,a,o=!1;if(this._mdf||t){var n,u=Math.ceil(this.c.v);if(this._groups.length<u){for(;this._groups.length<u;){var m={it:this.cloneElements(this._elements),ty:"gr"};m.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,m),this._groups.splice(0,0,m),this._currentCopies+=1;}this.elem.reloadShapes(),o=!0;}for(i=a=0;i<=this._groups.length-1;i+=1){if(n=a<u,this._groups[i]._render=n,this.changeGroupRender(this._groups[i].it,n),!n){var l=this.elemsData[i].it,f=l[l.length-1];f.transform.op.v!==0?(f.transform.op._mdf=!0,f.transform.op.v=0):f.transform.op._mdf=!1;}a+=1;}this._currentCopies=u;var y=this.o.v,c=y%1,p=0<y?Math.floor(y):Math.ceil(y),d=this.pMatrix.props,h=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(0<y){for(;_<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),_+=c);}else if(y<0){for(;p<_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),_-=c);}for(i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;a;){if(b=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),_!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.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]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset();}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];_+=1,a-=1,i+=s;}}else for(a=this._currentCopies,i=0,s=1;a;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,i+=s;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length;},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var s,a,o,n,u,m,l,f,y,c,p,d,h=t._length,g=0;for(r=0;r<h;r+=1)s=t.v[r],o=t.o[r],a=t.i[r],s[0]===o[0]&&s[1]===o[1]&&s[0]===a[0]&&s[1]===a[1]?r!==0&&r!==h-1||t.c?(n=r===0?t.v[h-1]:t.v[r-1],m=(u=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(u/2,e)/u:0,l=p=s[0]+(n[0]-s[0])*m,f=d=s[1]-(s[1]-n[1])*m,y=l-(l-s[0])*roundCorner,c=f-(f-s[1])*roundCorner,i.setTripleAt(l,f,y,c,p,d,g),g+=1,n=r===h-1?t.v[0]:t.v[r+1],m=(u=Math.sqrt(Math.pow(s[0]-n[0],2)+Math.pow(s[1]-n[1],2)))?Math.min(u/2,e)/u:0,l=y=s[0]+(n[0]-s[0])*m,f=c=s[1]+(n[1]-s[1])*m,p=l-(l-s[0])*roundCorner,d=f-(f-s[1])*roundCorner,i.setTripleAt(l,f,y,c,p,d,g)):i.setTripleAt(s[0],s[1],o[0],o[1],a[0],a[1],g):i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],g),g+=1;return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,s,a,o,n=this.shapes.length,u=this.rd.v;if(u!==0)for(r=0;r<n;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)o.addShape(this.processPath(e[i],u));a.shape.paths=a.localShapeCollection;}this.dynamicProperties.length||(this._mdf=!1);},PolynomialBezier.prototype.point=function(t){return [((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return [(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return [];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return [];var i=Math.sqrt(r);return floatZero(i)?0<i&&i<1?[e]:[]:[e-i,e+i].filter(function(s){return 0<s&&s<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return [singlePoint(this.points[0]),this];if(1<=t)return [this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,r,t),a=lerpPoint(r,i,t),o=lerpPoint(s,a,t);return [new PolynomialBezier(this.points[0],e,s,o,!0),new PolynomialBezier(o,a,i,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,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0;},ZigZagModifier.prototype.processPath=function(t,e,r,i){var s=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(s-=1),s===0)return a;var o=-1,n=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,r,i,o);for(var u=0;u<s;u+=1)o=zigZagSegment(a,n,e,r,i,-o),n=u!==s-1||t.c?PolynomialBezier.shapeSegment(t,(u+1)%s):null,zigZagCorner(a,t,u+1,e,r,i,o);return a},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,s,a,o,n=this.shapes.length,u=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(u!==0)for(r=0;r<n;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)o.addShape(this.processPath(e[i],u,m,l));a.shape.paths=a.localShapeCollection;}this.dynamicProperties.length||(this._mdf=!1);},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0;},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var s=shapePool.newElement();s.c=t.c;var a,o,n,u=t.length();t.c||(u-=1);var m=[];for(a=0;a<u;a+=1)n=PolynomialBezier.shapeSegment(t,a),m.push(offsetSegmentSplit(n,e));if(!t.c)for(a=u-1;0<=a;a-=1)n=PolynomialBezier.shapeSegmentInverted(t,a),m.push(offsetSegmentSplit(n,e));m=pruneIntersections(m);var l=null,f=null;for(a=0;a<m.length;a+=1){var y=m[a];for(f&&(l=joinLines(s,f,y[0],r,i)),f=y[y.length-1],o=0;o<y.length;o+=1)n=y[o],l&&pointEqual(n.points[0],l)?s.setXYAt(n.points[1][0],n.points[1][1],"o",s.length()-1):s.setTripleAt(n.points[0][0],n.points[0][1],n.points[1][0],n.points[1][1],n.points[0][0],n.points[0][1],s.length()),s.setTripleAt(n.points[3][0],n.points[3][1],n.points[3][0],n.points[3][1],n.points[2][0],n.points[2][1],s.length()),l=n.points[3];}return m.length&&joinLines(s,f,m[0][0],r,i),s},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,s,a,o,n=this.shapes.length,u=this.amount.v,m=this.miterLimit.v,l=this.lineJoin;if(u!==0)for(r=0;r<n;r+=1){if(o=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(o.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)o.addShape(this.processPath(e[i],u,l,m));a.shape.paths=a.localShapeCollection;}this.dynamicProperties.length||(this._mdf=!1);};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function s(n,u){var m=createTag("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=u;var l=createTag("span");l.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(l),document.body.appendChild(m);var f=l.offsetWidth;return l.style.fontFamily=function(y){var c,p=y.split(","),d=p.length,h=[];for(c=0;c<d;c+=1)p[c]!=="sans-serif"&&p[c]!=="monospace"&&h.push(p[c]);return h.join(",")}(n)+", "+u,{node:l,w:f,parent:m}}function a(n,u){var m,l=document.body&&u?"svg":"canvas",f=getFontProperties(n);if(l==="svg"){var y=createNS("text");y.style.fontSize="100px",y.setAttribute("font-family",n.fFamily),y.setAttribute("font-style",f.style),y.setAttribute("font-weight",f.weight),y.textContent="1",n.fClass?(y.style.fontFamily="inherit",y.setAttribute("class",n.fClass)):y.style.fontFamily=n.fFamily,u.appendChild(y),m=y;}else {var c=new OffscreenCanvas(500,500).getContext("2d");c.font=f.style+" "+f.weight+" 100px "+n.fFamily,m=c;}return {measureText:function(p){return l==="svg"?(m.textContent=p,m.getComputedTextLength()):m.measureText(p).width}}}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(n,u){var m=n.toString(16)+u.toString(16);return r.indexOf(m)!==-1},o.isZeroWidthJoiner=function(n,u){return u?n===i[0]&&u===i[1]:n===i[1]},o.isCombinedCharacter=function(n){return e.indexOf(n)!==-1},o.prototype={addChars:function(n){if(n){var u;this.chars||(this.chars=[]);var m,l,f=n.length,y=this.chars.length;for(u=0;u<f;u+=1){for(m=0,l=!1;m<y;)this.chars[m].style===n[u].style&&this.chars[m].fFamily===n[u].fFamily&&this.chars[m].ch===n[u].ch&&(l=!0),m+=1;l||(this.chars.push(n[u]),y+=1);}}},addFonts:function(n,u){if(n){if(this.chars)return this.isLoaded=!0,void(this.fonts=n.list);if(!document.body)return this.isLoaded=!0,n.list.forEach(function(b){b.helper=a(b),b.cache={};}),void(this.fonts=n.list);var m,l=n.list,f=l.length,y=f;for(m=0;m<f;m+=1){var c,p,d=!0;if(l[m].loaded=!1,l[m].monoCase=s(l[m].fFamily,"monospace"),l[m].sansCase=s(l[m].fFamily,"sans-serif"),l[m].fPath){if(l[m].fOrigin==="p"||l[m].origin===3){if(0<(c=document.querySelectorAll('style[f-forigin="p"][f-family="'+l[m].fFamily+'"], style[f-origin="3"][f-family="'+l[m].fFamily+'"]')).length&&(d=!1),d){var h=createTag("style");h.setAttribute("f-forigin",l[m].fOrigin),h.setAttribute("f-origin",l[m].origin),h.setAttribute("f-family",l[m].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+l[m].fFamily+"; font-style: normal; src: url('"+l[m].fPath+"');}",u.appendChild(h);}}else if(l[m].fOrigin==="g"||l[m].origin===1){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),p=0;p<c.length;p+=1)c[p].href.indexOf(l[m].fPath)!==-1&&(d=!1);if(d){var g=createTag("link");g.setAttribute("f-forigin",l[m].fOrigin),g.setAttribute("f-origin",l[m].origin),g.type="text/css",g.rel="stylesheet",g.href=l[m].fPath,document.body.appendChild(g);}}else if(l[m].fOrigin==="t"||l[m].origin===2){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),p=0;p<c.length;p+=1)l[m].fPath===c[p].src&&(d=!1);if(d){var v=createTag("link");v.setAttribute("f-forigin",l[m].fOrigin),v.setAttribute("f-origin",l[m].origin),v.setAttribute("rel","stylesheet"),v.setAttribute("href",l[m].fPath),u.appendChild(v);}}}else l[m].loaded=!0,y-=1;l[m].helper=a(l[m],u),l[m].cache={},this.fonts.push(l[m]);}y===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100);}else this.isLoaded=!0;},getCharData:function(n,u,m){for(var l=0,f=this.chars.length;l<f;){if(this.chars[l].ch===n&&this.chars[l].style===u&&this.chars[l].fFamily===m)return this.chars[l];l+=1;}return (typeof n=="string"&&n.charCodeAt(0)!==13||!n)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",n,u,m)),t},getFontByName:function(n){for(var u=0,m=this.fonts.length;u<m;){if(this.fonts[u].fName===n)return this.fonts[u];u+=1;}return this.fonts[0]},measureText:function(n,u,m){var l=this.getFontByName(u),f=n.charCodeAt(0);if(!l.cache[f+1]){var y=l.helper;if(n===" "){var c=y.measureText("|"+n+"|"),p=y.measureText("||");l.cache[f+1]=(c-p)/100;}else l.cache[f+1]=y.measureText(n)/100;}return l.cache[f+1]*m},checkLoadedFonts:function(){var n,u,m,l=this.fonts.length,f=l;for(n=0;n<l;n+=1)this.fonts[n].loaded?f-=1:this.fonts[n].fOrigin==="n"||this.fonts[n].origin===0?this.fonts[n].loaded=!0:(u=this.fonts[n].monoCase.node,m=this.fonts[n].monoCase.w,u.offsetWidth!==m?(f-=1,this.fonts[n].loaded=!0):(u=this.fonts[n].sansCase.node,m=this.fonts[n].sansCase.w,u.offsetWidth!==m&&(f-=1,this.fonts[n].loaded=!0)),this.fonts[n].loaded&&(this.fonts[n].sansCase.parent.parentNode.removeChild(this.fonts[n].sansCase.parent),this.fonts[n].monoCase.parent.parentNode.removeChild(this.fonts[n].monoCase.parent)));f!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10);},setIsLoaded:function(){this.isLoaded=!0;}},o}();function SlotManager(t){this.animationData=t;}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[];},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t);},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1);},prepareRenderableFrame:function(t){this.checkLayerLimits(t);},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show());},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide());},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame);},sourceRectAtTime:function(){return {top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(JI={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return JI[t]||""}),JI;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r);}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r);}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r);}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r);}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r);}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r);}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r);}function NoValueEffect(){this.p={};}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var s,a=i.length;for(r=0;r<a;r+=1)s=new GroupEffect(i[r],e),this.effectElements.push(s);}function GroupEffect(t,e){this.init(t,e);}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r);}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this);}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s=this.data.ef.length,a=this.data.ef;for(r=0;r<s;r+=1){switch(i=null,a[r].ty){case 0:i=new SliderEffect(a[r],e,this);break;case 1:i=new AngleEffect(a[r],e,this);break;case 2:i=new ColorEffect(a[r],e,this);break;case 3:i=new PointEffect(a[r],e,this);break;case 4:case 7:i=new CheckboxEffect(a[r],e,this);break;case 10:i=new LayerIndexEffect(a[r],e,this);break;case 11:i=new MaskIndexEffect(a[r],e,this);break;case 5:i=new EffectsManager(a[r],e);break;default:i=new NoValueEffect(a[r]);}i&&this.effectElements.push(i);}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return !1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return !0;t+=1;}return !1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),s=t("text"),a=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface);}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t;},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties);},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1;},prepareProperties:function(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0));},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t);}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this);}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else {var e=this.tm.v;this._currentTime=e;}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r));},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||.1<Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek()))&&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,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;0<=e;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.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: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);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new 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;t<e;t+=1)this.buildItem(t);this.checkPendingElements();},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,s=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<s;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1;}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t;},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems();},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,s=this.layers,a=0,o=s.length;a<o;)s[a].ind==e&&(i[a]&&i[a]!==!0?(r.push(i[a]),i[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(t,s[a].parent,r):t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+=1;},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t);},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i);}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if(typeof r=="number")e=this.elements[r];else {var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return t.length===0?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h};};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,s,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var n,u,m,l,f,y,c=this.masksProperties,p=0,d=[],h=createElementID(),g="clipPath",v="clip-path";for(i=0;i<o;i+=1)if((c[i].mode!=="a"&&c[i].mode!=="n"||c[i].inv||c[i].o.k!==100||c[i].o.x)&&(v=g="mask"),c[i].mode!=="s"&&c[i].mode!=="i"||p!==0?m=null:((m=createNS("rect")).setAttribute("fill","#ffffff"),m.setAttribute("width",this.element.comp.data.w||0),m.setAttribute("height",this.element.comp.data.h||0),d.push(m)),s=createNS("path"),c[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,c[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[i],3),elem:s,lastPath:""},a.appendChild(s);else {var b;if(p+=1,s.setAttribute("fill",c[i].mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),c[i].x.k!==0?(v=g="mask",y=PropertyFactory.getProp(this.element,c[i].x,0,null,this.element),b=createElementID(),(l=createNS("filter")).setAttribute("id",b),(f=createNS("feMorphology")).setAttribute("operator","erode"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),l.appendChild(f),a.appendChild(l),s.setAttribute("stroke",c[i].mode==="s"?"#000000":"#ffffff")):y=f=null,this.storedData[i]={elem:s,x:y,expan:f,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},c[i].mode==="i"){u=d.length;var _=createNS("g");for(n=0;n<u;n+=1)_.appendChild(d[n]);var A=createNS("mask");A.setAttribute("mask-type","alpha"),A.setAttribute("id",h+"_"+p),A.appendChild(s),a.appendChild(A),_.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+p+")"),d.length=0,d.push(_);}else d.push(s);c[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,c[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[i],3),invRect:m},this.viewData[i].prop.k||this.drawPath(c[i],this.viewData[i].prop.v,this.viewData[i]);}for(this.maskElement=createNS(g),o=d.length,i=0;i<o;i+=1)this.maskElement.appendChild(d[i]);0<p&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+h+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this);}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.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,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1;}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)e.multiply(this.hierarchy[r].finalTransform.mProp.v);}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v);},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&(this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),t=1;t<e;t+=1){var i=this.localTransforms[t].matrix;r.multiply(i);}r.multiply(this.finalTransform.mat);}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)s*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=s;}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,r=t.length;for(e=0;e<r;e+=1)this.localTransforms.push(t[e]);}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):i=!1;var a,o=e.length;for(r=0;r<o;r+=1)a=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),this.masksProperties[e].mode!=="n"&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var s=this.storedData[e].expan;this.storedData[e].x.v<0?(this.storedData[e].lastOperator!=="erode"&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),s.setAttribute("radius",-this.storedData[e].x.v)):(this.storedData[e].lastOperator!=="dilate"&&(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));}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.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+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,s,a=" M"+e.v[0][0]+","+e.v[0][1];for(s=e._length,i=1;i<s;i+=1)a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&1<s&&(a+=" 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]),r.lastPath!==a){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",o)),r.lastPath=a;}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null;};var filtersFactory=(YL={},YL.createFilter=function(t,e){var r=createNS("filter");return r.setAttribute("id",t),e!==!0&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},YL.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},YL),YL,featureSupport=(dM={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"},(/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))&&(dM.maskType=!1),/firefox/i.test(navigator.userAgent)&&(dM.svgLumaHidden=!1),dM),dM,registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",s=t.data.ef?t.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),n=0;for(this.filters=[],e=0;e<s;e+=1){r=null;var u=t.data.ef[e].ty;registeredEffects$1[u]&&(r=new registeredEffects$1[u].effect(o,t.effectsManager.effectElements[e],t,idPrefix+n,i),i=idPrefix+n,registeredEffects$1[u].countsAsEffect&&(n+=1)),r&&this.filters.push(r);}n&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this);}function registerEffect$1(t,e,r){registeredEffects$1[t]={effect:e,countsAsEffect:r};}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h};}function ProcessedElement(t,e){this.elem=t,this.pos=e;}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t);},SVGEffects.prototype.getEffects=function(t){var e,r=this.filters.length,i=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&i.push(this.filters[e]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g");},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e);}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(r.setAttribute("id",s),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement;}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")");}this.data.bm!==0&&this.setBlendMode();},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity);},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy();},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms();},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,r,i,s,a=this.layerId+"_"+t;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type",t===3?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),featureSupport.maskType||t!==1||(o.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(s=createNS("g")).appendChild(i),o.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"));}else if(t===2){var n=createNS("mask");n.setAttribute("id",a),n.setAttribute("mask-type","alpha");var u=createNS("g");n.appendChild(u),e=createElementID(),r=filtersFactory.createFilter(e);var m=createNS("feComponentTransfer");m.setAttribute("in","SourceGraphic"),r.appendChild(m);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),m.appendChild(l),this.globalData.defs.appendChild(r);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),u.appendChild(f),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(i),featureSupport.maskType||(n.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),u.appendChild(f),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(n);}this.matteMasks[t]=a;}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")");}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting();},setHierarchy:function(t){this.hierarchy=t;},setAsParent:function(){this._isParent=!0;},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[]);}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide();},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0);},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0);},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1));},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency();},destroy:function(){this.innerElem=null,this.destroyBaseElement();}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem);},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t);},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return !0;return !1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;0<=t&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1;}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e));},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange);}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,s=t.length;i<s;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1;}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null;}function DashProperty(t,e,r,i){var s;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=e.length||0;for(s=0;s<o;s+=1)a=PropertyFactory.getProp(t,e[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:e[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k;}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated;}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r;}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r;}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0);}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r);}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated;}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g");}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length;}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0;},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1;},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v;}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(.01<Math.abs(t[4*r]-t[4*e+2*r]))return !1;r+=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;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return !1;t+=1;}else if(!this.comparePoints(this.data.k.k,this.data.p))return !1;return !0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,s=4*this.data.p;for(e=0;e<s;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(s=this.prop.v.length,e=4*this.data.p;e<s;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t;}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated;},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(e.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s,a,o,n=[];for(o=4*e.g.p,a=0;a<o;a+=4)s=createNS("stop"),i.appendChild(s),n.push(s);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=n;},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,a=createNS("mask"),o=createNS("path");a.appendChild(o);var n=createElementID(),u=createElementID();a.setAttribute("id",u);var m=createNS(t.t===1?"linearGradient":"radialGradient");m.setAttribute("id",n),m.setAttribute("spreadMethod","pad"),m.setAttribute("gradientUnits","userSpaceOnUse"),s=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var l=this.stops;for(i=4*t.g.p;i<s;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),m.appendChild(r),l.push(r);o.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),t.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=m,this.ms=a,this.ost=l,this.maskId=u,e.msElem=o;}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(e===0)return "";var s,a=t.o,o=t.i,n=t.v,u=" M"+i.applyToPointStringified(n[0][0],n[0][1]);for(s=1;s<e;s+=1)u+=" C"+i.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+i.applyToPointStringified(o[s][0],o[s][1])+" "+i.applyToPointStringified(n[s][0],n[s][1]);return r&&e&&(u+=" C"+i.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(n[0][0],n[0][1]),u+="z"),u},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(m,l,f){(f||l.transform.op._mdf)&&l.transform.container.setAttribute("opacity",l.transform.op.v),(f||l.transform.mProps._mdf)&&l.transform.container.setAttribute("transform",l.transform.mProps.v.to2dCSS());}function i(){}function s(m,l,f){var y,c,p,d,h,g,v,b,_,A,S=l.styles.length,C=l.lvl;for(g=0;g<S;g+=1){if(d=l.sh._mdf||f,l.styles[g].lvl<C){for(b=e.reset(),_=C-l.styles[g].lvl,A=l.transformers.length-1;!d&&0<_;)d=l.transformers[A].mProps._mdf||d,_-=1,A-=1;if(d)for(_=C-l.styles[g].lvl,A=l.transformers.length-1;0<_;)b.multiply(l.transformers[A].mProps.v),_-=1,A-=1;}else b=t;if(c=(v=l.sh.paths)._length,d){for(p="",y=0;y<c;y+=1)(h=v.shapes[y])&&h._length&&(p+=buildShapeString(h,h._length,h.c,b));l.caches[g]=p;}else p=l.caches[g];l.styles[g].d+=m.hd===!0?"":p,l.styles[g]._mdf=d||l.styles[g]._mdf;}}function a(m,l,f){var y=l.style;(l.c._mdf||f)&&y.pElem.setAttribute("fill","rgb("+bmFloor(l.c.v[0])+","+bmFloor(l.c.v[1])+","+bmFloor(l.c.v[2])+")"),(l.o._mdf||f)&&y.pElem.setAttribute("fill-opacity",l.o.v);}function o(m,l,f){n(m,l,f),u(m,l,f);}function n(m,l,f){var y,c,p,d,h,g=l.gf,v=l.g._hasOpacity,b=l.s.v,_=l.e.v;if(l.o._mdf||f){var A=m.ty==="gf"?"fill-opacity":"stroke-opacity";l.style.pElem.setAttribute(A,l.o.v);}if(l.s._mdf||f){var S=m.t===1?"x1":"cx",C=S==="x1"?"y1":"cy";g.setAttribute(S,b[0]),g.setAttribute(C,b[1]),v&&!l.g._collapsable&&(l.of.setAttribute(S,b[0]),l.of.setAttribute(C,b[1]));}if(l.g._cmdf||f){y=l.cst;var E=l.g.c;for(p=y.length,c=0;c<p;c+=1)(d=y[c]).setAttribute("offset",E[4*c]+"%"),d.setAttribute("stop-color","rgb("+E[4*c+1]+","+E[4*c+2]+","+E[4*c+3]+")");}if(v&&(l.g._omdf||f)){var P=l.g.o;for(p=(y=l.g._collapsable?l.cst:l.ost).length,c=0;c<p;c+=1)d=y[c],l.g._collapsable||d.setAttribute("offset",P[2*c]+"%"),d.setAttribute("stop-opacity",P[2*c+1]);}if(m.t===1)(l.e._mdf||f)&&(g.setAttribute("x2",_[0]),g.setAttribute("y2",_[1]),v&&!l.g._collapsable&&(l.of.setAttribute("x2",_[0]),l.of.setAttribute("y2",_[1])));else if((l.s._mdf||l.e._mdf||f)&&(h=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)),g.setAttribute("r",h),v&&!l.g._collapsable&&l.of.setAttribute("r",h)),l.e._mdf||l.h._mdf||l.a._mdf||f){h||(h=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)));var M=Math.atan2(_[1]-b[1],_[0]-b[0]),T=l.h.v;1<=T?T=.99:T<=-1&&(T=-.99);var F=h*T,R=Math.cos(M+l.a.v)*F+b[0],w=Math.sin(M+l.a.v)*F+b[1];g.setAttribute("fx",R),g.setAttribute("fy",w),v&&!l.g._collapsable&&(l.of.setAttribute("fx",R),l.of.setAttribute("fy",w));}}function u(m,l,f){var y=l.style,c=l.d;c&&(c._mdf||f)&&c.dashStr&&(y.pElem.setAttribute("stroke-dasharray",c.dashStr),y.pElem.setAttribute("stroke-dashoffset",c.dashoffset[0])),l.c&&(l.c._mdf||f)&&y.pElem.setAttribute("stroke","rgb("+bmFloor(l.c.v[0])+","+bmFloor(l.c.v[1])+","+bmFloor(l.c.v[2])+")"),(l.o._mdf||f)&&y.pElem.setAttribute("stroke-opacity",l.o.v),(l.w._mdf||f)&&(y.pElem.setAttribute("stroke-width",l.w.v),y.msElem&&y.msElem.setAttribute("stroke-width",l.w.v));}return {createRenderFunction:function(m){switch(m.ty){case"fl":return a;case"gf":return n;case"gs":return o;case"st":return u;case"sh":case"el":case"rc":case"sr":return s;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[];}function LetterProps(t,e,r,i,s,a){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0};}function TextProperty(t,e){this._frameId=initialDefaultFrame,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);}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,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,r,i,s=this.shapes.length,a=this.stylesList.length,o=[],n=!1;for(r=0;r<a;r+=1){for(i=this.stylesList[r],n=!1,t=o.length=0;t<s;t+=1)(e=this.shapes[t]).styles.indexOf(i)!==-1&&(o.push(e),n=e._isAnimated||n);1<o.length&&n&&this.setShapesAsAnimated(o);}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated();},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),s=i.pElem;return t.ty==="st"?r=new SVGStrokeStyleData(this,t,i):t.ty==="fl"?r=new SVGFillStyleData(this,t,i):t.ty==="gf"||t.ty==="gs"?(r=new(t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):t.ty==="no"&&(r=new SVGNoStyleData(this,t,i)),t.ty!=="st"&&t.ty!=="gs"||(s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),s.setAttribute("fill-opacity","0"),t.lj===1&&s.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&s.setAttribute("fill-rule","evenodd"),t.ln&&s.setAttribute("id",t.ln),t.cl&&s.setAttribute("class",t.cl),t.bm&&(s.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7);var s=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1;}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t});},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e]);},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers();},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,s,a,o){var n,u,m,l,f,y,c=[].concat(a),p=t.length-1,d=[],h=[];for(n=p;0<=n;n-=1){if((y=this.searchProcessedElement(t[n]))?e[n]=r[y-1]:t[n]._render=o,t[n].ty==="fl"||t[n].ty==="st"||t[n].ty==="gf"||t[n].ty==="gs"||t[n].ty==="no")y?e[n].style.closed=!1:e[n]=this.createStyleElement(t[n],s),t[n]._render&&e[n].style.pElem.parentNode!==i&&i.appendChild(e[n].style.pElem),d.push(e[n].style);else if(t[n].ty==="gr"){if(y)for(m=e[n].it.length,u=0;u<m;u+=1)e[n].prevViewData[u]=e[n].it[u];else e[n]=this.createGroupElement(t[n]);this.searchShapes(t[n].it,e[n].it,e[n].prevViewData,e[n].gr,s+1,c,o),t[n]._render&&e[n].gr.parentNode!==i&&i.appendChild(e[n].gr);}else t[n].ty==="tr"?(y||(e[n]=this.createTransformElement(t[n],i)),l=e[n].transform,c.push(l)):t[n].ty==="sh"||t[n].ty==="rc"||t[n].ty==="el"||t[n].ty==="sr"?(y||(e[n]=this.createShapeElement(t[n],c,s)),this.setElementStyles(e[n])):t[n].ty==="tm"||t[n].ty==="rd"||t[n].ty==="ms"||t[n].ty==="pb"||t[n].ty==="zz"||t[n].ty==="op"?(y?(f=e[n]).closed=!1:((f=ShapeModifiers.getModifier(t[n].ty)).init(this,t[n]),e[n]=f,this.shapeModifiers.push(f)),h.push(f)):t[n].ty==="rp"&&(y?(f=e[n]).closed=!0:(f=ShapeModifiers.getModifier(t[n].ty),(e[n]=f).init(this,t,n,e),this.shapeModifiers.push(f),o=!1),h.push(f));this.addProcessedElement(t[n],n+1);}for(p=d.length,n=0;n<p;n+=1)d[n].closed=!0;for(p=h.length,n=0;n<p;n+=1)h[n].closed=!0;},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"));},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&e.data!==!0&&e.fn(e.data,e.element,this._isFirstFrame);},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null;},LetterProps.prototype.update=function(t,e,r,i,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var o=this._mdf.p=!1;return this.o!==t&&(this.o=t,o=this._mdf.o=!0),this.sw!==e&&(this.sw=e,o=this._mdf.sw=!0),this.sc!==r&&(this.sc=r,o=this._mdf.sc=!0),this.fc!==i&&(this.fc=i,o=this._mdf.fc=!0),this.m!==s&&(this.m=s,o=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,o=this._mdf.p=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0;},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,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=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else {var i;this.lock=!0,this._mdf=!1;var s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)a=r!==this.keysIndex?this.effectsSequence[i](a,a.t):this.effectsSequence[i](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId;}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],s=0,a=t.length,o=!1;s<a;)e=t.charCodeAt(s),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(s):55296<=e&&e<=56319?56320<=(r=t.charCodeAt(s+1))&&r<=57343?(o||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(s,2),o=!1):i.push(t.substr(s,2)),s+=1):i.push(t.charAt(s)):56319<e?(r=t.charCodeAt(s+1),FontManager.isZeroWidthJoiner(e,r)?(o=!0,i[i.length-1]+=t.substr(s,2),s+=1):i.push(t.charAt(s))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(s),o=!0):i.push(t.charAt(s)),s+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,s,a,o,n,u=this.elem.globalData.fontManager,m=this.data,l=[],f=0,y=m.m.g,c=0,p=0,d=0,h=[],g=0,v=0,b=u.getFontByName(t.f),_=0,A=getFontProperties(b);t.fWeight=A.weight,t.fStyle=A.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var S,C=t.tr/1e3*t.finalSize;if(t.sz)for(var E,P,M=!0,T=t.sz[0],F=t.sz[1];M;){g=E=0,r=(P=this.buildFinalText(t.t)).length,C=t.tr/1e3*t.finalSize;var R=-1;for(e=0;e<r;e+=1)S=P[e].charCodeAt(0),i=!1,P[e]===" "?R=e:S!==13&&S!==3||(i=!(g=0),E+=t.finalLineHeight||1.2*t.finalSize),T<g+(_=u.chars?(n=u.getCharData(P[e],b.fStyle,b.fFamily),i?0:n.w*t.finalSize/100):u.measureText(P[e],t.f,t.finalSize))&&P[e]!==" "?(R===-1?r+=1:e=R,E+=t.finalLineHeight||1.2*t.finalSize,P.splice(e,R===e?1:0,"\r"),R=-1,g=0):(g+=_,g+=C);E+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&F<E?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=P,r=t.finalText.length,M=!1);}g=-C;var w,I=_=0;for(e=0;e<r;e+=1)if(i=!1,(S=(w=t.finalText[e]).charCodeAt(0))===13||S===3?(I=0,h.push(g),v=v<g?g:v,g=-2*C,i=!(s=""),d+=1):s=w,_=u.chars?(n=u.getCharData(w,b.fStyle,u.getFontByName(t.f).fFamily),i?0:n.w*t.finalSize/100):u.measureText(s,t.f,t.finalSize),w===" "?I+=_+C:(g+=_+C+I,I=0),l.push({l:_,an:_,add:c,n:i,anIndexes:[],val:s,line:d,animatorJustifyOffset:0}),y==2){if(c+=_,s===""||s===" "||e===r-1){for(s!==""&&s!==" "||(c-=_);p<=e;)l[p].an=c,l[p].ind=f,l[p].extra=_,p+=1;f+=1,c=0;}}else if(y==3){if(c+=_,s===""||e===r-1){for(s===""&&(c-=_);p<=e;)l[p].an=c,l[p].ind=f,l[p].extra=_,p+=1;c=0,f+=1;}}else l[f].ind=f,l[f].extra=0,f+=1;if(t.l=l,v=v<g?g:v,h.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0;}t.lineWidths=h;var V,z,x,k,D=m.a;o=D.length;var L=[];for(a=0;a<o;a+=1){for((V=D[a]).a.sc&&(t.strokeColorAnim=!0),V.a.sw&&(t.strokeWidthAnim=!0),(V.a.fc||V.a.fh||V.a.fs||V.a.fb)&&(t.fillColorAnim=!0),k=0,x=V.s.b,e=0;e<r;e+=1)(z=l[e]).anIndexes[a]=k,(x==1&&z.val!==""||x==2&&z.val!==""&&z.val!==" "||x==3&&(z.n||z.val==" "||e==r-1)||x==4&&(z.n||e==r-1))&&(V.s.rn===1&&L.push(k),k+=1);m.a[a].s.totalChars=k;var U,q=-1;if(V.s.rn===1)for(e=0;e<r;e+=1)q!=(z=l[e]).anIndexes[a]&&(q=z.anIndexes[a],U=L.splice(Math.floor(Math.random()*L.length),1)[0]),z.anIndexes[a]=U;}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100;},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.setCurrentData(r),this.elem.addDynamicProperty(this);},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e);},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this);},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this);};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(s,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,a.s||{k:0},0,0,this),this.e="e"in a?PropertyFactory.getProp(s,a.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(s,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,a.a,0,.01,this),this.dynamicProperties.length||this.getValue();}return i.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,o=0,n=1,u=1;0<this.ne.v?a=this.ne.v/100:o=-this.ne.v/100,0<this.xe.v?n=1-this.xe.v/100:u=1+this.xe.v/100;var m=BezierFactory.getBezierEasing(a,o,n,u).get,l=0,f=this.finalS,y=this.finalE,c=this.data.sh;if(c===2)l=m(l=y===f?y<=s?1:0:t(0,e(.5/(y-f)+(s-f)/(y-f),1)));else if(c===3)l=m(l=y===f?y<=s?0:1:1-t(0,e(.5/(y-f)+(s-f)/(y-f),1)));else if(c===4)y===f?l=0:(l=t(0,e(.5/(y-f)+(s-f)/(y-f),1)))<.5?l*=2:l=1-2*(l-.5),l=m(l);else if(c===5){if(y===f)l=0;else {var p=y-f,d=-p/2+(s=e(t(0,s+.5-f),y-f)),h=p/2;l=Math.sqrt(1-d*d/(h*h));}l=m(l);}else l=c===6?m(l=y===f?0:(s=e(t(0,s+.5-f),y-f),(1+Math.cos(Math.PI+2*Math.PI*s/(y-f)))/2)):(s>=r(f)&&(l=t(0,e(s-f<0?e(y,1)-(f-s):y-s,1))),m(l));if(this.sm.v!==100){var g=.01*this.sm.v;g===0&&(g=1e-8);var v=.5-.5*g;l<v?l=0:1<(l=(l-v)/g)&&(l=1);}return l*this.a.v},getValue:function(s){this.iterateDynamicProperties(),this._mdf=s||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,s&&this.data.r===2&&(this.e.v=this._currentTextLength);var a=this.data.r===2?1:100/this.data.totalChars,o=this.o.v/a,n=this.s.v/a+o,u=this.e.v/a+o;if(u<n){var m=n;n=u,u=m;}this.finalS=n,this.finalE=u;}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(s,a,o){return new i(s,a)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t;}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r);}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this);},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,s,a,o,n,u,m,l,f,y,c,p,d,h,g,v,b,_,A=this._moreOptions.alignment.v,S=this._animatorsData,C=this._textData,E=this.mHelper,P=this._renderType,M=this.renderedLetters.length,T=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var F,R=_.v;for(this._pathData.r.v&&(R=R.reverse()),o={tLength:0,segments:[]},a=R._length-1,s=g=0;s<a;s+=1)F=bez.buildBezierData(R.v[s],R.v[s+1],[R.o[s][0]-R.v[s][0],R.o[s][1]-R.v[s][1]],[R.i[s+1][0]-R.v[s+1][0],R.i[s+1][1]-R.v[s+1][1]]),o.tLength+=F.segmentLength,o.segments.push(F),g+=F.segmentLength;s=a,_.v.c&&(F=bez.buildBezierData(R.v[s],R.v[0],[R.o[s][0]-R.v[s][0],R.o[s][1]-R.v[s][1]],[R.i[0][0]-R.v[0][0],R.i[0][1]-R.v[0][1]]),o.tLength+=F.segmentLength,o.segments.push(F),g+=F.segmentLength),this._pathData.pi=o;}if(o=this._pathData.pi,n=this._pathData.f.v,f=1,l=!(m=y=0),d=o.segments,n<0&&_.v.c)for(o.tLength<Math.abs(n)&&(n=-Math.abs(n)%o.tLength),f=(p=d[y=d.length-1].points).length-1;n<0;)n+=p[f].partialLength,(f-=1)<0&&(f=(p=d[y-=1].points).length-1);c=(p=d[y].points)[f-1],h=(u=p[f]).partialLength;}a=T.length,i=r=0;var w,I,V,z,x,k=1.2*t.finalSize*.714,D=!0;V=S.length;var L,U,q,W,G,K,O,N,tt,it,et,rt,J=-1,B=n,St=y,xt=f,dt=-1,nt="",ot=this.defaultPropsArray;if(t.j===2||t.j===1){var Q=0,lt=0,pt=t.j===2?-.5:-1,st=0,ct=!0;for(s=0;s<a;s+=1)if(T[s].n){for(Q&&(Q+=lt);st<s;)T[st].animatorJustifyOffset=Q,st+=1;ct=!(Q=0);}else {for(I=0;I<V;I+=1)(w=S[I].a).t.propType&&(ct&&t.j===2&&(lt+=w.t.v*pt),(x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars)).length?Q+=w.t.v*x[0]*pt:Q+=w.t.v*x*pt);ct=!1;}for(Q&&(Q+=lt);st<s;)T[st].animatorJustifyOffset=Q,st+=1;}for(s=0;s<a;s+=1){if(E.reset(),W=1,T[s].n)r=0,i+=t.yOffset,i+=D?1:0,n=B,D=!1,this._hasMaskedPath&&(f=xt,c=(p=d[y=St].points)[f-1],h=(u=p[f]).partialLength,m=0),rt=tt=et=nt="",ot=this.defaultPropsArray;else {if(this._hasMaskedPath){if(dt!==T[s].line){switch(t.j){case 1:n+=g-t.lineWidths[T[s].line];break;case 2:n+=(g-t.lineWidths[T[s].line])/2;}dt=T[s].line;}J!==T[s].ind&&(T[J]&&(n+=T[J].extra),n+=T[s].an/2,J=T[s].ind),n+=A[0]*T[s].an*.005;var at=0;for(I=0;I<V;I+=1)(w=S[I].a).p.propType&&((x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars)).length?at+=w.p.v[0]*x[0]:at+=w.p.v[0]*x),w.a.propType&&((x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars)).length?at+=w.a.v[0]*x[0]:at+=w.a.v[0]*x);for(l=!0,this._pathData.a.v&&(n=.5*T[0].an+(g-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*J/(a-1),n+=this._pathData.f.v);l;)n+at<=m+h||!p?(v=(n+at-m)/u.partialLength,U=c.point[0]+(u.point[0]-c.point[0])*v,q=c.point[1]+(u.point[1]-c.point[1])*v,E.translate(-A[0]*T[s].an*.005,-A[1]*k*.01),l=!1):p&&(m+=u.partialLength,(f+=1)>=p.length&&(f=0,p=d[y+=1]?d[y].points:_.v.c?d[y=f=0].points:(m-=u.partialLength,null)),p&&(c=u,h=(u=p[f]).partialLength));L=T[s].an/2-T[s].add,E.translate(-L,0,0);}else L=T[s].an/2-T[s].add,E.translate(-L,0,0),E.translate(-A[0]*T[s].an*.005,-A[1]*k*.01,0);for(I=0;I<V;I+=1)(w=S[I].a).t.propType&&(x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars),r===0&&t.j===0||(this._hasMaskedPath?x.length?n+=w.t.v*x[0]:n+=w.t.v*x:x.length?r+=w.t.v*x[0]:r+=w.t.v*x));for(t.strokeWidthAnim&&(K=t.sw||0),t.strokeColorAnim&&(G=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(O=[t.fc[0],t.fc[1],t.fc[2]]),I=0;I<V;I+=1)(w=S[I].a).a.propType&&((x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars)).length?E.translate(-w.a.v[0]*x[0],-w.a.v[1]*x[1],w.a.v[2]*x[2]):E.translate(-w.a.v[0]*x,-w.a.v[1]*x,w.a.v[2]*x));for(I=0;I<V;I+=1)(w=S[I].a).s.propType&&((x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars)).length?E.scale(1+(w.s.v[0]-1)*x[0],1+(w.s.v[1]-1)*x[1],1):E.scale(1+(w.s.v[0]-1)*x,1+(w.s.v[1]-1)*x,1));for(I=0;I<V;I+=1){if(w=S[I].a,x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars),w.sk.propType&&(x.length?E.skewFromAxis(-w.sk.v*x[0],w.sa.v*x[1]):E.skewFromAxis(-w.sk.v*x,w.sa.v*x)),w.r.propType&&(x.length?E.rotateZ(-w.r.v*x[2]):E.rotateZ(-w.r.v*x)),w.ry.propType&&(x.length?E.rotateY(w.ry.v*x[1]):E.rotateY(w.ry.v*x)),w.rx.propType&&(x.length?E.rotateX(w.rx.v*x[0]):E.rotateX(w.rx.v*x)),w.o.propType&&(x.length?W+=(w.o.v*x[0]-W)*x[0]:W+=(w.o.v*x-W)*x),t.strokeWidthAnim&&w.sw.propType&&(x.length?K+=w.sw.v*x[0]:K+=w.sw.v*x),t.strokeColorAnim&&w.sc.propType)for(N=0;N<3;N+=1)x.length?G[N]+=(w.sc.v[N]-G[N])*x[0]:G[N]+=(w.sc.v[N]-G[N])*x;if(t.fillColorAnim&&t.fc){if(w.fc.propType)for(N=0;N<3;N+=1)x.length?O[N]+=(w.fc.v[N]-O[N])*x[0]:O[N]+=(w.fc.v[N]-O[N])*x;w.fh.propType&&(O=x.length?addHueToRGB(O,w.fh.v*x[0]):addHueToRGB(O,w.fh.v*x)),w.fs.propType&&(O=x.length?addSaturationToRGB(O,w.fs.v*x[0]):addSaturationToRGB(O,w.fs.v*x)),w.fb.propType&&(O=x.length?addBrightnessToRGB(O,w.fb.v*x[0]):addBrightnessToRGB(O,w.fb.v*x));}}for(I=0;I<V;I+=1)(w=S[I].a).p.propType&&(x=S[I].s.getMult(T[s].anIndexes[I],C.a[I].s.totalChars),this._hasMaskedPath?x.length?E.translate(0,w.p.v[1]*x[0],-w.p.v[2]*x[1]):E.translate(0,w.p.v[1]*x,-w.p.v[2]*x):x.length?E.translate(w.p.v[0]*x[0],w.p.v[1]*x[1],-w.p.v[2]*x[2]):E.translate(w.p.v[0]*x,w.p.v[1]*x,-w.p.v[2]*x));if(t.strokeWidthAnim&&(tt=K<0?0:K),t.strokeColorAnim&&(it="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),t.fillColorAnim&&t.fc&&(et="rgb("+Math.round(255*O[0])+","+Math.round(255*O[1])+","+Math.round(255*O[2])+")"),this._hasMaskedPath){if(E.translate(0,-t.ls),E.translate(0,A[1]*k*.01+i,0),this._pathData.p.v){b=(u.point[1]-c.point[1])/(u.point[0]-c.point[0]);var ut=180*Math.atan(b)/Math.PI;u.point[0]<c.point[0]&&(ut+=180),E.rotate(-ut*Math.PI/180);}E.translate(U,q,0),n-=A[0]*T[s].an*.005,T[s+1]&&J!==T[s+1].ind&&(n+=T[s].an/2,n+=.001*t.tr*t.finalSize);}else {switch(E.translate(r,i,0),t.ps&&E.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:E.translate(T[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[s].line]),0,0);break;case 2:E.translate(T[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[s].line])/2,0,0);}E.translate(0,-t.ls),E.translate(L,0,0),E.translate(A[0]*T[s].an*.005,A[1]*k*.01,0),r+=T[s].l+.001*t.tr*t.finalSize;}P==="html"?nt=E.toCSS():P==="svg"?nt=E.to2dCSS():ot=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],rt=W;}this.lettersChangedFlag=M<=s?(z=new LetterProps(rt,tt,it,et,nt,ot),this.renderedLetters.push(z),M+=1,!0):(z=this.renderedLetters[s]).update(rt,tt,it,et,nt,ot)||this.lettersChangedFlag;}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties());},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties);},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange);},ITextElement.prototype.createPathShape=function(t,e){var r,i,s=e.length,a="";for(r=0;r<s;r+=1)e[r].ty==="sh"&&(i=e[r].ks.k,a+=buildShapeString(i,i.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e);},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t);},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t);},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0);}e.translate(i,s,0);},ITextElement.prototype.buildColor=function(t){return "rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1);};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r);}function ISolidElement(t,e,r){this.initElement(t,e,r);}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy();}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0};}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=e.title,this.svgElement.appendChild(i),r+=s;}if(e&&e.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=e.description,this.svgElement.appendChild(a),r+=" "+o;}r&&this.svgElement.setAttribute("aria-labelledby",r);var n=createNS("defs");this.svgElement.appendChild(n);var u=createNS("g");this.svgElement.appendChild(u),this.layerElement=u,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:n,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg";}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15;}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0;}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"));},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,i=[],s="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(s),s=""):s+=t[e],e+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e);}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else {this.layerElement.setAttribute("font-family",i.fFamily);var s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s);}this.layerElement.setAttribute("aria-label",r.t);var o,n=r.l||[],u=!!this.globalData.fontManager.chars;e=n.length;var m=this.mHelper,l=this.data.singleShape,f=0,y=0,c=!0,p=.001*r.tr*r.finalSize;if(!l||u||r.sz){var d,h=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!u||!l||t===0){if(o=t<h?this.textSpans[t].span:createNS(u?"g":"text"),h<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,u){var g=createNS("g");o.appendChild(g),this.textSpans[t].childSpan=g;}this.textSpans[t].span=o,this.layerElement.appendChild(o);}o.style.display="inherit";}if(m.reset(),l&&(n[t].n&&(f=-p,y+=r.yOffset,y+=c?1:0,c=!1),this.applyTextPropertiesToMatrix(r,m,n[t].line,f,y),f+=n[t].l||0,f+=p),u){var v;if((d=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t===1)v=new SVGCompElement(d.data,this.globalData,this);else {var b=emptyShapeData;d.data&&d.data.shapes&&(b=this.buildShapeData(d.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this);}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy();}(this.textSpans[t].glyph=v)._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),d.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")");}else l&&o.setAttribute("transform","translate("+m.props[12]+","+m.props[13]+")"),o.textContent=n[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");}l&&o&&o.setAttribute("d","");}else {var A=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start";}A.setAttribute("text-anchor",S),A.setAttribute("letter-spacing",p);var C=this.buildTextContents(r.finalText);for(e=C.length,y=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=C[t],o.setAttribute("x",0),o.setAttribute("y",y),o.style.display="inherit",A.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,y+=r.finalLineHeight;this.layerElement.appendChild(A);}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0;},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height};}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0));},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,s,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(r=a[t],i=this.textSpans[t].span,(s=this.textSpans[t].glyph)&&s.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc));}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t);},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0);},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length);},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null;},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return -1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(i===-1)return;if(this.elements[i]&&this.elements[i]!==!0){var s=e[i].getMatte(this.layers[t].tt);r.setMatte(s);}else this.buildItem(i),this.addPendingElement(r);}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,s=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(s);break}e+=1;}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;0<=e;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,s=0;s<e;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement()&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r);}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none";},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block";},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide();},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else {var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e;}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;0<=r;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0));}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame();},ICompElement.prototype.setElements=function(t){this.elements=t;},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement();},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t;},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1;},CVContextData.prototype.popTransform=function(){var t,e=this.saved[this.cArrPos],r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=e[t];return e},CVContextData.prototype.popOpacity=function(){var t=this.savedOp[this.cArrPos];return this.cO=t},CVContextData.prototype.pop=function(){return this.cArrPos-=1,{transform:this.popTransform(),opacity:this.popOpacity()}},CVContextData.prototype.push=function(){var t,e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.saved[this.cArrPos];for(t=0;t<16;t+=1)r[t]=e[t];this.savedOp[this.cArrPos]=this.cO,this.cArrPos+=1;},CVContextData.prototype.getTransform=function(){return this.cTr},CVContextData.prototype.getOpacity=function(){return this.cO},CVContextData.prototype.setOpacity=function(t){this.cO=t;},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var r=0,i=t.transforms.length,s=e;r<i&&!e;){if(t.transforms[r].transform.mProps._mdf){s=!0;break}r+=1;}if(s)for(t.finalTransform.reset(),r=i-1;0<=r;r-=1)t.finalTransform.multiply(t.transforms[r].transform.mProps.v);t._mdf=s;},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t);},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,r=null,i=null;function s(){var a,o,n;e||(a=createNS("svg"),o=createNS("filter"),n=createNS("feColorMatrix"),o.setAttribute("id",t),n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(n),a.appendChild(o),a.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(a.style.display="none"),i=a,document.body.appendChild(i),e=createTag("canvas"),(r=e.getContext("2d")).filter="url(#"+t+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1));}return {load:s,get:function(a){return e||s(),e.width=a.width,e.height=a.height,r.filter="url(#"+t+")",e}}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(t){var e,r,i=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<i;e+=1){r=null;var s=t.data.ef[e].ty;registeredEffects[s]&&(r=new registeredEffects[s].effect(t.effectsManager.effectElements[e],t)),r&&this.filters.push(r);}this.filters.length&&t.addRenderableComponent(this);}function registerEffect(t,e){registeredEffects[t]={effect:e};}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);(this.hasMasks=s)&&this.element.addRenderableComponent(this);}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t);},CVEffects.prototype.getEffects=function(t){var e,r=this.filters.length,i=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&i.push(this.filters[e]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,s=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),t=0;t<o;t+=1)if(this.masksProperties[t].mode!=="n"){var n;this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),i=this.viewData[t].v,e=s.applyToPointArray(i.v[0][0],i.v[0][1],0),a.moveTo(e[0],e[1]);var u=i._length;for(n=1;n<u;n+=1)r=s.applyToTriplePoints(i.o[n-1],i.i[n],i.v[n]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=s.applyToTriplePoints(i.o[n-1],i.i[0],i.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);}this.element.globalData.renderer.save(!0),a.clip();}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null;};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s,a=4;e.ty==="rc"?a=5:e.ty==="el"?a=6:e.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var o,n=r.length;for(s=0;s<n;s+=1)r[s].closed||(o={transforms:i.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(o),r[s].elements.push(o));}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r);}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r);}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r);}function CVSolidElement(t,e,r){this.initElement(t,e,r);}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas";}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0};}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas";}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r);}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0};}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r);}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var s,a=t.ks.or.k.length;for(s=0;s<a;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null;}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this};}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r);}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html";}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0};}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html";}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(1<=this.data.tt){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r),3<=this.data.tt&&!document._isProxy&&assetLoader.loadLumaCanvas();}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms();},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e;}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0);},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0);},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy);},prepareLayer:function(){if(1<=this.data.tt){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);}},exitLayer:function(){if(1<=this.data.tt){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),3<=this.data.tt&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0);}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over";}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1);}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy();},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]);},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},i={};if(t.ty==="fl"||t.ty==="st"?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):t.ty!=="gf"&&t.ty!=="gs"||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var s=new DashProperty(this,t.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0]);}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return {it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return {transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame);},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t);},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop();},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0;},CVShapeElement.prototype.searchShapes=function(t,e,r,i,s){var a,o,n,u,m,l,f=t.length-1,y=[],c=[],p=[].concat(s);for(a=f;0<=a;a-=1){if((u=this.searchProcessedElement(t[a]))?e[a]=r[u-1]:t[a]._shouldRender=i,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")u?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],p),y.push(e[a].style);else if(t[a].ty==="gr"){if(u)for(n=e[a].it.length,o=0;o<n;o+=1)e[a].prevViewData[o]=e[a].it[o];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,i,p);}else t[a].ty==="tr"?(u||(l=this.createTransformElement(t[a]),e[a]=l),p.push(e[a]),this.addTransformToStyleList(e[a])):t[a].ty==="sh"||t[a].ty==="rc"||t[a].ty==="el"||t[a].ty==="sr"?u||(e[a]=this.createShapeElement(t[a])):t[a].ty==="tm"||t[a].ty==="rd"||t[a].ty==="pb"||t[a].ty==="zz"||t[a].ty==="op"?(u?(m=e[a]).closed=!1:((m=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=m,this.shapeModifiers.push(m)),c.push(m)):t[a].ty==="rp"&&(u?(m=e[a]).closed=!0:(m=ShapeModifiers.getModifier(t[a].ty),(e[a]=m).init(this,t,a,e),this.shapeModifiers.push(m),i=!1),c.push(m));this.addProcessedElement(t[a],a+1);}for(this.removeTransformFromStyleList(),this.closeStyles(y),f=c.length,a=0;a<f;a+=1)c[a].closed=!0;},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0);},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0);},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,s,a,o,n,u,m=this.stylesList.length,l=this.globalData.renderer,f=this.globalData.canvasContext;for(t=0;t<m;t+=1)if(((n=(u=this.stylesList[t]).type)!=="st"&&n!=="gs"||u.wi!==0)&&u.data._shouldRender&&u.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(l.save(),a=u.elements,n==="st"||n==="gs"?(f.strokeStyle=n==="st"?u.co:u.grd,f.lineWidth=u.wi,f.lineCap=u.lc,f.lineJoin=u.lj,f.miterLimit=u.ml||0):f.fillStyle=n==="fl"?u.co:u.grd,l.ctxOpacity(u.coOp),n!=="st"&&n!=="gs"&&f.beginPath(),l.ctxTransform(u.preTransforms.finalTransform.props),r=a.length,e=0;e<r;e+=1){for(n!=="st"&&n!=="gs"||(f.beginPath(),u.da&&(f.setLineDash(u.da),f.lineDashOffset=u.do)),s=(o=a[e].trNodes).length,i=0;i<s;i+=1)o[i].t==="m"?f.moveTo(o[i].p[0],o[i].p[1]):o[i].t==="c"?f.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):f.closePath();n!=="st"&&n!=="gs"||(f.stroke(),u.da&&f.setLineDash(this.dashResetter));}n!=="st"&&n!=="gs"&&f.fill(u.r),l.restore();}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var s,a;for(a=t,s=e.length-1;0<=s;s-=1)e[s].ty==="tr"?(a=r[s].transform,this.renderShapeTransform(t,a)):e[s].ty==="sh"||e[s].ty==="el"||e[s].ty==="rc"||e[s].ty==="sr"?this.renderPath(e[s],r[s]):e[s].ty==="fl"?this.renderFill(e[s],r[s],a):e[s].ty==="st"?this.renderStroke(e[s],r[s],a):e[s].ty==="gf"||e[s].ty==="gs"?this.renderGradientFill(e[s],r[s],a):e[s].ty==="gr"?this.renderShape(a,e[s].it,r[s].it):e[s].ty;i&&this.drawLayer();},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,s,a=t.trNodes,o=e.paths,n=o._length;a.length=0;var u=t.transforms.finalTransform;for(s=0;s<n;s+=1){var m=o.shapes[s];if(m&&m.v){for(i=m._length,r=1;r<i;r+=1)r===1&&a.push({t:"m",p:u.applyToPointArray(m.v[0][0],m.v[0][1],0)}),a.push({t:"c",pts:u.applyToTriplePoints(m.o[r-1],m.i[r],m.v[r])});i===1&&a.push({t:"m",p:u.applyToPointArray(m.v[0][0],m.v[0][1],0)}),m.c&&i&&(a.push({t:"c",pts:u.applyToTriplePoints(m.o[r-1],m.i[0],m.v[0])}),a.push({t:"z"}));}}t.trNodes=a;}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh);}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity);},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var a,o=this.globalData.canvasContext,n=e.s.v,u=e.e.v;if(t.t===1)i=o.createLinearGradient(n[0],n[1],u[0],u[1]);else {var m=Math.sqrt(Math.pow(n[0]-u[0],2)+Math.pow(n[1]-u[1],2)),l=Math.atan2(u[1]-n[1],u[0]-n[0]),f=e.h.v;1<=f?f=.99:f<=-1&&(f=-.99);var y=m*f,c=Math.cos(l+e.a.v)*y+n[0],p=Math.sin(l+e.a.v)*y+n[1];i=o.createRadialGradient(c,p,0,n[0],n[1],m);}var d=t.g.p,h=e.g.c,g=1;for(a=0;a<d;a+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*a+1]),i.addColorStop(h[4*a]/100,"rgba("+h[4*a+1]+","+h[4*a+2]+","+h[4*a+3]+","+g+")");s.grd=i;}s.coOp=e.o.v*r.opacity;},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v);},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0;},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,s,a,o,n,u,m,l,f,y,c,p,d=this.globalData.fontManager.getFontByName(t.f),h=t.l,g=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,s=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,A=0,S=!0,C=0;for(i=0;i<s;i+=1){o=(a=this.globalData.fontManager.getCharData(t.finalText[i],d.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},g.reset(),v&&h[i].n&&(_=-b,A+=t.yOffset,A+=S?1:0,S=!1),f=(m=o.shapes?o.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,g,h[i].line,_,A),c=createSizedArray(f-1);var E=0;for(l=0;l<f;l+=1)if(m[l].ty==="sh"){for(u=m[l].ks.k.i.length,y=m[l].ks.k,p=[],n=1;n<u;n+=1)n===1&&p.push(g.applyToX(y.v[0][0],y.v[0][1],0),g.applyToY(y.v[0][0],y.v[0][1],0)),p.push(g.applyToX(y.o[n-1][0],y.o[n-1][1],0),g.applyToY(y.o[n-1][0],y.o[n-1][1],0),g.applyToX(y.i[n][0],y.i[n][1],0),g.applyToY(y.i[n][0],y.i[n][1],0),g.applyToX(y.v[n][0],y.v[n][1],0),g.applyToY(y.v[n][0],y.v[n][1],0));p.push(g.applyToX(y.o[n-1][0],y.o[n-1][1],0),g.applyToY(y.o[n-1][0],y.o[n-1][1],0),g.applyToX(y.i[0][0],y.i[0][1],0),g.applyToY(y.i[0][0],y.i[0][1],0),g.applyToX(y.v[0][0],y.v[0][1],0),g.applyToY(y.v[0][0],y.v[0][1],0)),c[E]=p,E+=1;}v&&(_+=h[i].l,_+=b),this.textSpans[C]?this.textSpans[C].elem=c:this.textSpans[C]={elem:c},C+=1;}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t,e,r,i,s,a,o=this.canvasContext;o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var n,u=this.textAnimator.renderedLetters,m=this.textProperty.currentData.l;e=m.length;var l,f,y=null,c=null,p=null;for(t=0;t<e;t+=1)if(!m[t].n){if((n=u[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(n.p),this.globalData.renderer.ctxOpacity(n.o)),this.fill){for(n&&n.fc?y!==n.fc&&(y=n.fc,o.fillStyle=n.fc):y!==this.values.fill&&(y=this.values.fill,o.fillStyle=this.values.fill),i=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(f=l[r]).length,this.globalData.canvasContext.moveTo(f[0],f[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(f[s],f[s+1],f[s+2],f[s+3],f[s+4],f[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill();}if(this.stroke){for(n&&n.sw?p!==n.sw&&(p=n.sw,o.lineWidth=n.sw):p!==this.values.sWidth&&(p=this.values.sWidth,o.lineWidth=this.values.sWidth),n&&n.sc?c!==n.sc&&(c=n.sc,o.strokeStyle=n.sc):c!==this.values.stroke&&(c=this.values.stroke,o.strokeStyle=this.values.stroke),i=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(f=l[r]).length,this.globalData.canvasContext.moveTo(f[0],f[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(f[s],f[s+1],f[s+2],f[s+3],f[s+4],f[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke();}n&&this.globalData.renderer.restore();}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),s=this.img.width,a=this.img.height,o=s/a,n=this.assetData.w/this.assetData.h,u=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n<o&&u==="xMidYMid slice"||o<n&&u!=="xMidYMid slice"?e=(r=a)*n:r=(e=s)/n,i.drawImage(this.img,(s-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t;}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0);},CVImageElement.prototype.destroy=function(){this.img=null;},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh);},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(t[0]!==1||t[1]!==0||t[4]!==0||t[5]!==1||t[12]!==0||t[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.getTransform();this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var r=e.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]);}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]);},CanvasRendererBase.prototype.ctxOpacity=function(t){var e=this.contextData.getOpacity();if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=e);e*=t<0?0:t,this.contextData.setOpacity(e),this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e);},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore();},CanvasRendererBase.prototype.save=function(t){this.renderConfig.clearCanvas?(t&&this.canvasContext.save(),this.contextData.push()):this.canvasContext.save();},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over");var e=this.contextData.pop(),r=e.transform,i=e.opacity;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),this.globalData.currentGlobalAlpha!==i&&(this.canvasContext.globalAlpha=i,this.globalData.currentGlobalAlpha=i);}else this.canvasContext.restore();},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id);}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize();},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,i,s,a;if(this.reset(),this.canvasContext.canvas.height=t?(r=t,i=e,this.canvasContext.canvas.width=r,i):(i=this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,i*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),n=o[1]||"meet",u=o[0]||"xMidYMid",m=u.substr(0,4),l=u.substr(4);s=r/i,a=this.transformCanvas.w/this.transformCanvas.h,this.transformCanvas.sy=s<a&&n==="meet"||a<s&&n==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=m==="xMid"&&(a<s&&n==="meet"||s<a&&n==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:m==="xMax"&&(a<s&&n==="meet"||s<a&&n==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=l==="YMid"&&(s<a&&n==="meet"||a<s&&n==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:l==="YMax"&&(s<a&&n==="meet"||a<s&&n==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0;}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0);},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;0<=t;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0;},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||this.renderConfig.clearCanvas!==!0||e)&&!this.destroyed&&t!==-1){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;0<=r;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore();}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){var r=this.createItem(this.layers[t],this,this.globalData);(e[t]=r).initExpressions();}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting();},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none";},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block";},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;0<=t;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame();},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;0<=t;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null;},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement);},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode();},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e;}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v);},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1));},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null);},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData);},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t);},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else {t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t);}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t;},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,s,a,o,n=t.sh.v,u=t.transformers,m=n._length;if(!(m<=1)){for(r=0;r<m-1;r+=1)i=this.getTransformedPoint(u,n.v[r]),s=this.getTransformedPoint(u,n.o[r]),a=this.getTransformedPoint(u,n.i[r+1]),o=this.getTransformedPoint(u,n.v[r+1]),this.checkBounds(i,s,a,o,e);n.c&&(i=this.getTransformedPoint(u,n.v[r]),s=this.getTransformedPoint(u,n.o[r]),a=this.getTransformedPoint(u,n.i[0]),o=this.getTransformedPoint(u,n.v[0]),this.checkBounds(i,s,a,o,e));}},HShapeElement.prototype.checkBounds=function(t,e,r,i,s){this.getBoundsOfCurve(t,e,r,i);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax);},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,i){for(var s,a,o,n,u,m,l,f=[[t[0],i[0]],[t[1],i[1]]],y=0;y<2;++y)a=6*t[y]-12*e[y]+6*r[y],s=-3*t[y]+9*e[y]-9*r[y]+3*i[y],o=3*e[y]-3*t[y],a|=0,o|=0,(s|=0)===0&&a===0||(s===0?0<(n=-o/a)&&n<1&&f[y].push(this.calculateF(n,t,e,r,i,y)):0<=(u=a*a-4*o*s)&&(0<(m=(-a+bmSqrt(u))/(2*s))&&m<1&&f[y].push(this.calculateF(m,t,e,r,i,y)),0<(l=(-a-bmSqrt(u))/(2*s))&&l<1&&f[y].push(this.calculateF(l,t,e,r,i,y))));this.shapeBoundingBox.left=bmMin.apply(null,f[0]),this.shapeBoundingBox.top=bmMin.apply(null,f[1]),this.shapeBoundingBox.right=bmMax.apply(null,f[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,f[1]);},HShapeElement.prototype.calculateF=function(t,e,r,i,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*i[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e);},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var s=t.keyframes[i].s;r<s&&(r=s);}r*=t.mult;}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r;},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s;}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t;}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting();},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,s,a=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else {e.fontFamily=a.fFamily;var o=t.fWeight,n=t.fStyle;e.fontStyle=n,e.fontWeight=o;}var u,m,l,f=t.l;s=f.length;var y,c=this.mHelper,p="",d=0;for(i=0;i<s;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[d]?u=this.textPaths[d]:((u=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?l=(m=this.textSpans[d]).children[0]:((m=createTag("div")).style.lineHeight=0,(l=createNS("svg")).appendChild(u),styleDiv(m)))):this.isMasked?u=this.textPaths[d]?this.textPaths[d]:createNS("text"):this.textSpans[d]?(m=this.textSpans[d],u=this.textPaths[d]):(styleDiv(m=createTag("span")),styleDiv(u=createTag("span")),m.appendChild(u)),this.globalData.fontManager.chars){var h,g=this.globalData.fontManager.getCharData(t.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(h=g?g.data:null,c.reset(),h&&h.shapes&&h.shapes.length&&(y=h.shapes[0].it,c.scale(t.finalSize/100,t.finalSize/100),p=this.createPathShape(c,y),u.setAttribute("d",p)),this.isMasked)this.innerElem.appendChild(u);else {if(this.innerElem.appendChild(m),h&&h.shapes){document.body.appendChild(l);var v=l.getBBox();l.setAttribute("width",v.width+2),l.setAttribute("height",v.height+2),l.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=l.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,f[i].yOffset=v.y-1;}else l.setAttribute("width",1),l.setAttribute("height",1);m.appendChild(l);}}else if(u.textContent=f[i].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else {this.innerElem.appendChild(m);var A=u.style,S="translate3d(0,"+-t.finalSize/1.2+"px,0)";A.transform=S,A.webkitTransform=S;}this.isMasked?this.textSpans[d]=u:this.textSpans[d]=m,this.textSpans[d].style.display="block",this.textPaths[d]=u,d+=1;}for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1;},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e;}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,s,a,o,n=0,u=this.textAnimator.renderedLetters,m=this.textProperty.currentData.l;for(i=m.length,r=0;r<i;r+=1)m[r].n?n+=1:(a=this.textSpans[r],o=this.textPaths[r],s=u[n],n+=1,s._mdf.m&&(this.isMasked?a.setAttribute("transform",s.m):(a.style.webkitTransform=s.m,a.style.transform=s.m)),a.style.opacity=s.o,s.sw&&s._mdf.sw&&o.setAttribute("stroke-width",s.sw),s.sc&&s._mdf.sc&&o.setAttribute("stroke",s.sc),s.fc&&s._mdf.fc&&(o.setAttribute("fill",s.fc),o.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var l=this.innerElem.getBBox();if(this.currentBBox.w!==l.width&&(this.currentBBox.w=l.width,this.svgElement.setAttribute("width",l.width)),this.currentBBox.h!==l.height&&(this.currentBBox.h=l.height,this.svgElement.setAttribute("height",l.height)),this.currentBBox.w!==l.width+2||this.currentBBox.h!==l.height+2||this.currentBBox.x!==l.x-1||this.currentBBox.y!==l.y-1){this.currentBBox.w=l.width+2,this.currentBBox.h=l.height+2,this.currentBBox.x=l.x-1,this.currentBBox.y=l.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=f,t.webkitTransform=f;}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,s=this.comp.threeDElements.length;for(t=0;t<s;t+=1)if((e=this.comp.threeDElements[t]).type==="3d"){r=e.perspectiveElem.style,i=e.container.style;var a=this.pe.v+"px",o="0px 0px 0px",n="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=a,r.webkitPerspective=a,i.transformOrigin=o,i.mozTransformOrigin=o,i.webkitTransformOrigin=o,r.transform=n,r.webkitTransform=n;}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;0<=t;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2]);}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;s=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],n=Math.sqrt(o[2]*o[2]+o[0]*o[0]),u=Math.atan2(o[1],n),m=Math.atan2(o[0],-o[2]);this.mat.rotateY(m).rotateX(-u);}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var l=!this._prevMat.equals(this.mat);if((l||this.pe._mdf)&&this.comp.threeDElements){var f,y,c;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if((f=this.comp.threeDElements[t]).type==="3d"){if(l){var p=this.mat.toCSS();(c=f.container.style).transform=p,c.webkitTransform=p;}this.pe._mdf&&((y=f.perspectiveElem.style).perspective=this.pe.v+"px",y.webkitPerspective=this.pe.v+"px");}this.mat.clone(this._prevMat);}}this._isFirstFrame=!1;},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0);},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln);},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting();},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else {for(var s,a,o=0;o<e;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(a=this.elements[o],s=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||s),o+=1;s?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,s):i.ddd&&this.supports3d||this.layerElement.appendChild(r);}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1;}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,s=createTag("div");styleDiv(s);var a=createTag("div");if(styleDiv(a),e==="3d"){(r=s.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var o="50% 50%";r.webkitTransformOrigin=o,r.mozTransformOrigin=o,r.transformOrigin=o;var n="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=a.style).transform=n,i.webkitTransform=n;}s.appendChild(a);var u={container:a,perspectiveElem:s,startPos:t,endPos:t,type:e};return this.threeDElements.push(u),u},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?i!=="3d"&&(i="3d",e=this.createThreeDContainer(t,"3d")):i!=="2d"&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t);for(t=(r=this.threeDElements.length)-1;0<=t;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem);},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var s,a=this.threeDElements[r].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[r].container.insertBefore(t,s):this.threeDElements[r].container.appendChild(t);break}r+=1;}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",styleDiv(this.resizerElem=e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=t,this.setupGlobalData(t,s),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize();},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null;},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,s=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight;i=s/a<this.globalData.compSize.w/this.globalData.compSize.h?(t=s/this.globalData.compSize.w,e=s/this.globalData.compSize.w,r=0,(a-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,r=(s-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",o.transform=o.webkitTransform;},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none";},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block";},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else {var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var s=this.threeDElements[t].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",s.perspective=s.webkitPerspective;}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var s=this.createComp(t[e],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s);}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement;},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t);},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(r){for(var i=0,s=t.layers.length;i<s;){if(t.layers[i].nm===r||t.layers[i].ind===r)return t.elements[i].layerInterface;i+=1;}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),(e.layer=e).pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return (_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function seedRandom(t,e){var r,i=this,s=256,a=6,o="random",n=e.pow(s,a),u=e.pow(2,52),m=2*u,l=s-1;function f(d){var h,g=d.length,v=this,b=0,_=v.i=v.j=0,A=v.S=[];for(g||(d=[g++]);b<s;)A[b]=b++;for(b=0;b<s;b++)A[b]=A[_=l&_+d[b%g]+(h=A[b])],A[_]=h;v.g=function(S){for(var C,E=0,P=v.i,M=v.j,T=v.S;S--;)C=T[P=l&P+1],E=E*s+T[l&(T[P]=T[M=l&M+C])+(T[M]=C)];return v.i=P,v.j=M,E};}function y(d,h){return h.i=d.i,h.j=d.j,h.S=d.S.slice(),h}function c(d,h){for(var g,v=d+"",b=0;b<v.length;)h[l&b]=l&(g^=19*h[l&b])+v.charCodeAt(b++);return p(h)}function p(d){return String.fromCharCode.apply(0,d)}e["seed"+o]=function(d,h,g){var v=[],b=c(function S(C,E){var P,M=[],T=_typeof$2(C);if(E&&T=="object")for(P in C)try{M.push(S(C[P],E-1));}catch{}return M.length?M:T=="string"?C:C+"\0"}((h=h===!0?{entropy:!0}:h||{}).entropy?[d,p(t)]:d===null?function(){try{if(r);var S=new Uint8Array(s);return (i.crypto||i.msCrypto).getRandomValues(S),p(S)}catch{var C=i.navigator,E=C&&C.plugins;return [+new Date,i,E,i.screen,p(t)]}}():d,3),v),_=new f(v),A=function(){for(var S=_.g(a),C=n,E=0;S<u;)S=(S+E)*s,C*=s,E=_.g(1);for(;m<=S;)S/=2,C/=2,E>>>=1;return (S+E)/C};return A.int32=function(){return 0|_.g(4)},A.quick=function(){return _.g(4)/4294967296},A.double=A,c(p(_.S),t),(h.pass||g||function(S,C,E,P){return P&&(P.S&&y(P,_),S.state=function(){return y(_,{})}),E?(e[o]=S,C):S})(A,b,"global"in h?h.global:this==e,h.state)},c(e.random(),t);}function initialize$2(t){seedRandom([],t);}var propTypes={SHAPE:"shape"};function _typeof$1(t){return (_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={};}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||t==="boolean"||t==="string"||e instanceof Number}function $bm_neg(t){var e=_typeof$1(t);if(e==="number"||e==="boolean"||t instanceof Number)return -t;if($bm_isInstanceOfArray(t)){var r,i=t.length,s=[];for(r=0;r<i;r+=1)s[r]=-t[r];return s}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof$1(t),i=_typeof$1(e);if(r==="string"||i==="string"||isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return (t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return (e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,o=e.length,n=[];s<a||s<o;)(typeof t[s]=="number"||t[s]instanceof Number)&&(typeof e[s]=="number"||e[s]instanceof Number)?n[s]=t[s]+e[s]:n[s]=e[s]===void 0?t[s]:t[s]||e[s],s+=1;return n}return 0}var add=sum;function sub(t,e){var r=_typeof$1(t),i=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(i,e))return r==="string"&&(t=parseInt(t,10)),i==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return (t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return (e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,o=e.length,n=[];s<a||s<o;)(typeof t[s]=="number"||t[s]instanceof Number)&&(typeof e[s]=="number"||e[s]instanceof Number)?n[s]=t[s]-e[s]:n[s]=e[s]===void 0?t[s]:t[s]||e[s],s+=1;return n}return 0}function mul(t,e){var r,i,s,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(s=t.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t[i]*e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,s,a=_typeof$1(t),o=_typeof$1(e);if(isNumerable(a,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(s=t.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t[i]/e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(r<e){var i=r;r=e,e=i;}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(e[r]-t[r],2);return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],s=t[1],a=t[2],o=Math.max(i,s,a),n=Math.min(i,s,a),u=(o+n)/2;if(o===n)r=e=0;else {var m=o-n;switch(r=.5<u?m/(2-o-n):m/(o+n),o){case i:e=(s-a)/m+(s<a?6:0);break;case s:e=(a-i)/m+2;break;case a:e=(i-s)/m+4;}e/=6;}return [e,r,u,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),1<r&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,s=t[0],a=t[1],o=t[2];if(a===0)r=i=e=o;else {var n=o<.5?o*(1+a):o+a-o*a,u=2*o-n;e=hue2rgb(u,n,s+1/3),r=hue2rgb(u,n,s),i=hue2rgb(u,n,s-1/3);}return [e,r,i,t[3]]}function linear(t,e,r,i,s){if(i!==void 0&&s!==void 0||(i=e,s=r,e=0,r=1),r<e){var a=r;r=e,e=a;}if(t<=e)return i;if(r<=t)return s;var o,n=r===e?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*n;var u=i.length,m=createTypedArray("float32",u);for(o=0;o<u;o+=1)m[o]=i[o]+(s[o]-i[o])*n;return m}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(r=0;r<i;r+=1)s[r]=t[r]+a*(e[r]-t[r]);return s}return t===void 0&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var s,a=t.length,o=shapePool.newElement();o.setPathData(!!i,a);var n,u,m=[0,0];for(s=0;s<a;s+=1)n=e&&e[s]?e[s]:m,u=r&&r[s]?r[s]:m,o.setTripleAt(t[s][0],t[s][1],u[0]+t[s][0],u[1]+t[s][1],n[0]+t[s][0],n[1]+t[s][1],s,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function(t,e){var r,i,s=this.pv.length?this.pv.length:1,a=createTypedArray("float32",s),o=Math.floor(5*time);for(i=r=0;r<o;){for(i=0;i<s;i+=1)a[i]+=-e+2*e*BMMath.random();r+=1;}var n=5*time,u=n-Math.floor(n),m=createTypedArray("float32",s);if(1<s){for(i=0;i<s;i+=1)m[i]=this.pv[i]+a[i]+(-e+2*e*BMMath.random())*u;return m}return this.pv+a[0]+(-e+2*e*BMMath.random())*u}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return [-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,s){return applyEase(easeOutBez,t,e,r,i,s)}function easeIn(t,e,r,i,s){return applyEase(easeInBez,t,e,r,i,s)}function ease(t,e,r,i,s){return applyEase(easeInOutBez,t,e,r,i,s)}function applyEase(t,e,r,i,s,a){s===void 0?(s=r,a=i):e=(e-r)/(i-r),1<e?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(s)){var n,u=s.length,m=createTypedArray("float32",u);for(n=0;n<u;n+=1)m[n]=(a[n]-s[n])*o+s[n];return m}return (a-s)*o+s}function nearestKey(t){var e,r,i,s=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else {for(e=0;e<s-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){i=t-data.k[e].t>data.k[e+1].t-t?(r=e+2,data.k[e+1].t):(r=e+1,data.k[e].t);break}}r===-1&&(r=e+1,i=data.k[e].t);}else i=r=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;r<i;r+=1)e[r]=s[r],e.value[r]=s[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||t===0||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t);}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,value=valueAtTime(time);}var index=elem.data.ind;!(!elem.hierarchy||!elem.hierarchy.length);var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),($bm_transform=transform)&&(anchorPoint=transform.anchorPoint)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=(Laa={},Laa.initExpressions=function(t){var e=0,r=[];function i(){var s,a=r.length;for(s=0;s<a;s+=1)r[s].release();r.length=0;}t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1;},t.renderer.globalData.popExpression=function(){(e-=1)==0&&i();},t.renderer.globalData.registerExpressionProperty=function(s){r.indexOf(s)===-1&&r.push(s);};},Laa.resetFrame=ExpressionManager.resetFrame,Laa),Laa,MaskManagerInterface=function(){function t(e,r){this._mask=e,this._data=r;}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,i=createSizedArray(e.viewData.length),s=e.viewData.length;for(r=0;r<s;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(a){for(r=0;r<s;){if(e.masksProperties[r].nm===a)return i[r];r+=1;}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(s,a,o){Object.defineProperty(s,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),s.numKeys=a.keyframes?a.keyframes.length:0,s.key=function(n){if(!s.numKeys)return 0;var u="";u="s"in a.keyframes[n-1]?a.keyframes[n-1].s:"e"in a.keyframes[n-2]?a.keyframes[n-2].e:a.keyframes[n-2].s;var m=o==="unidimensional"?new Number(u):Object.assign({},u);return m.time=a.keyframes[n-1].t/a.elem.comp.globalData.frameRate,m.value=o==="unidimensional"?u[0]:u,m},s.valueAtTime=a.getValueAtTime,s.speedAtTime=a.getSpeedAtTime,s.velocityAtTime=a.getVelocityAtTime,s.propertyGroup=a.propertyGroup;}function i(){return t}return function(s){return s?s.propType==="unidimensional"?function(a){a&&"pv"in a||(a=t);var o=1/a.mult,n=a.pv*o,u=new Number(n);return u.value=n,r(u,a,"unidimensional"),function(){return a.k&&a.getValue(),n=a.v*o,u.value!==n&&((u=new Number(n)).value=n,r(u,a,"unidimensional")),u}}(s):function(a){a&&"pv"in a||(a=e);var o=1/a.mult,n=a.data&&a.data.l||a.pv.length,u=createTypedArray("float32",n),m=createTypedArray("float32",n);return u.value=m,r(u,a,"multidimensional"),function(){a.k&&a.getValue();for(var l=0;l<n;l+=1)m[l]=a.v[l]*o,u[l]=m[l];return u}}(s):i}}(),TransformExpressionInterface=function(t){function e(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[r(),i(),s?s():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(m){var l=new Matrix;return m!==void 0?this._elem.finalTransform.mProp.getValueAtTime(m).clone(l):this._elem.finalTransform.mProp.applyToMatrix(l),l}function e(m,l){var f=this.getMatrix(l);return f.props[12]=0,f.props[13]=0,f.props[14]=0,this.applyPoint(f,m)}function r(m,l){var f=this.getMatrix(l);return this.applyPoint(f,m)}function i(m,l){var f=this.getMatrix(l);return f.props[12]=0,f.props[13]=0,f.props[14]=0,this.invertPoint(f,m)}function s(m,l){var f=this.getMatrix(l);return this.invertPoint(f,m)}function a(m,l){if(this._elem.hierarchy&&this._elem.hierarchy.length){var f,y=this._elem.hierarchy.length;for(f=0;f<y;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(m);}return m.applyToPointArray(l[0],l[1],l[2]||0)}function o(m,l){if(this._elem.hierarchy&&this._elem.hierarchy.length){var f,y=this._elem.hierarchy.length;for(f=0;f<y;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(m);}return m.inversePoint(l)}function n(m){var l=new Matrix;if(l.reset(),this._elem.finalTransform.mProp.applyToMatrix(l),this._elem.hierarchy&&this._elem.hierarchy.length){var f,y=this._elem.hierarchy.length;for(f=0;f<y;f+=1)this._elem.hierarchy[f].finalTransform.mProp.applyToMatrix(l);return l.inversePoint(m)}return l.inversePoint(m)}function u(){return [1,1,1,1]}return function(m){var l;function f(c){switch(c){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return l;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=t,f.invertPoint=o,f.applyPoint=a,f.toWorld=r,f.toWorldVec=e,f.fromWorld=s,f.fromWorldVec=i,f.toComp=r,f.fromComp=n,f.sampleImage=u,f.sourceRectAtTime=m.sourceRectAtTime.bind(m);var y=getDescriptor(l=TransformExpressionInterface((f._elem=m).finalTransform.mProp),"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return m.hierarchy.length}},parent:{get:function(){return m.hierarchy[0].layerInterface}},rotation:getDescriptor(l,"rotation"),scale:getDescriptor(l,"scale"),position:getDescriptor(l,"position"),opacity:getDescriptor(l,"opacity"),anchorPoint:y,anchor_point:y,transform:{get:function(){return l}},active:{get:function(){return m.isInRange}}}),f.startTime=m.data.st,f.index=m.data.ind,f.source=m.data.refId,f.height=m.data.ty===0?m.data.h:100,f.width=m.data.ty===0?m.data.w:100,f.inPoint=m.data.ip/m.comp.globalData.frameRate,f.outPoint=m.data.op/m.comp.globalData.frameRate,f._name=m.data.nm,f.registerMaskInterface=function(c){f.mask=new MaskManagerInterface(c,m);},f.registerEffectsInterface=function(c){f.effect=c;},f}}(),propertyGroupFactory=function(t,e){return function(r){return (r=r===void 0?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(i){return (i=i===void 0?1:i)<=0?r:e(i-1)}},EffectsExpressionInterface=function(){function t(r,i,s,a){function o(f){for(var y=r.ef,c=0,p=y.length;c<p;){if(f===y[c].nm||f===y[c].mn||f===y[c].ix)return y[c].ty===5?m[c]:m[c]();c+=1;}throw new Error}var n,u=propertyGroupFactory(o,s),m=[],l=r.ef.length;for(n=0;n<l;n+=1)r.ef[n].ty===5?m.push(t(r.ef[n],i.effectElements[n],i.effectElements[n].propertyGroup,a)):m.push(e(i.effectElements[n],r.ef[n].ty,a,u));return r.mn==="ADBE Color Control"&&Object.defineProperty(o,"color",{get:function(){return m[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:u}}),o.enabled=r.en!==0,o.active=o.enabled,o}function e(r,i,s,a){var o=ExpressionPropertyInterface(r.p);return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",a)),function(){return i===10?s.comp.compInterface(r.p.v):o()}}return {createEffectsInterface:function(r,i){if(r.effectsManager){var s,a=[],o=r.data.ef,n=r.effectsManager.effectElements.length;for(s=0;s<n;s+=1)a.push(t(o[s],r.effectsManager.effectElements[s],i,r));var u=r.data.ef||[],m=function(l){for(s=0,n=u.length;s<n;){if(l===u[s].nm||l===u[s].mn||l===u[s].ix)return a[s];s+=1;}return null};return Object.defineProperty(m,"numProperties",{get:function(){return u.length}}),m}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function s(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?s.path:null}var a=propertyGroupFactory(s,r);return i.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(s,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),s},ShapeExpressionInterface=function(){function t(c,p,d){var h,g=[],v=c?c.length:0;for(h=0;h<v;h+=1)c[h].ty==="gr"?g.push(e(c[h],p[h],d)):c[h].ty==="fl"?g.push(r(c[h],p[h],d)):c[h].ty==="st"?g.push(a(c[h],p[h],d)):c[h].ty==="tm"?g.push(o(c[h],p[h],d)):c[h].ty==="tr"||(c[h].ty==="el"?g.push(u(c[h],p[h],d)):c[h].ty==="sr"?g.push(m(c[h],p[h],d)):c[h].ty==="sh"?g.push(ShapePathInterface(c[h],p[h],d)):c[h].ty==="rc"?g.push(l(c[h],p[h],d)):c[h].ty==="rd"?g.push(f(c[h],p[h],d)):c[h].ty==="rp"?g.push(y(c[h],p[h],d)):c[h].ty==="gf"?g.push(i(c[h],p[h],d)):g.push(s(c[h],p[h])));return g}function e(c,p,d){var h=function(b){switch(b){case"ADBE Vectors Group":case"Contents":case 2:return h.content;default:return h.transform}};h.propertyGroup=propertyGroupFactory(h,d);var g=function(b,_,A){var S,C=function(P){for(var M=0,T=S.length;M<T;){if(S[M]._name===P||S[M].mn===P||S[M].propertyIndex===P||S[M].ix===P||S[M].ind===P)return S[M];M+=1;}return typeof P=="number"?S[P-1]:null};C.propertyGroup=propertyGroupFactory(C,A),S=t(b.it,_.it,C.propertyGroup),C.numProperties=S.length;var E=n(b.it[b.it.length-1],_.it[_.it.length-1],C.propertyGroup);return C.transform=E,C.propertyIndex=b.cix,C._name=b.nm,C}(c,p,h.propertyGroup),v=n(c.it[c.it.length-1],p.it[p.it.length-1],h.propertyGroup);return h.content=g,h.transform=v,Object.defineProperty(h,"_name",{get:function(){return c.nm}}),h.numProperties=c.np,h.propertyIndex=c.ix,h.nm=c.nm,h.mn=c.mn,h}function r(c,p,d){function h(g){return g==="Color"||g==="color"?h.color:g==="Opacity"||g==="opacity"?h.opacity:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},_name:{value:c.nm},mn:{value:c.mn}}),p.c.setGroupProperty(PropertyInterface("Color",d)),p.o.setGroupProperty(PropertyInterface("Opacity",d)),h}function i(c,p,d){function h(g){return g==="Start Point"||g==="start point"?h.startPoint:g==="End Point"||g==="end point"?h.endPoint:g==="Opacity"||g==="opacity"?h.opacity:null}return Object.defineProperties(h,{startPoint:{get:ExpressionPropertyInterface(p.s)},endPoint:{get:ExpressionPropertyInterface(p.e)},opacity:{get:ExpressionPropertyInterface(p.o)},type:{get:function(){return "a"}},_name:{value:c.nm},mn:{value:c.mn}}),p.s.setGroupProperty(PropertyInterface("Start Point",d)),p.e.setGroupProperty(PropertyInterface("End Point",d)),p.o.setGroupProperty(PropertyInterface("Opacity",d)),h}function s(){return function(){return null}}function a(c,p,d){var h,g=propertyGroupFactory(S,d),v=propertyGroupFactory(A,g),b,_=c.d?c.d.length:0,A={};for(h=0;h<_;h+=1)b=h,Object.defineProperty(A,c.d[b].nm,{get:ExpressionPropertyInterface(p.d.dataProps[b].p)}),p.d.dataProps[h].p.setGroupProperty(v);function S(C){return C==="Color"||C==="color"?S.color:C==="Opacity"||C==="opacity"?S.opacity:C==="Stroke Width"||C==="stroke width"?S.strokeWidth:null}return Object.defineProperties(S,{color:{get:ExpressionPropertyInterface(p.c)},opacity:{get:ExpressionPropertyInterface(p.o)},strokeWidth:{get:ExpressionPropertyInterface(p.w)},dash:{get:function(){return A}},_name:{value:c.nm},mn:{value:c.mn}}),p.c.setGroupProperty(PropertyInterface("Color",g)),p.o.setGroupProperty(PropertyInterface("Opacity",g)),p.w.setGroupProperty(PropertyInterface("Stroke Width",g)),S}function o(c,p,d){function h(v){return v===c.e.ix||v==="End"||v==="end"?h.end:v===c.s.ix?h.start:v===c.o.ix?h.offset:null}var g=propertyGroupFactory(h,d);return h.propertyIndex=c.ix,p.s.setGroupProperty(PropertyInterface("Start",g)),p.e.setGroupProperty(PropertyInterface("End",g)),p.o.setGroupProperty(PropertyInterface("Offset",g)),h.propertyIndex=c.ix,h.propertyGroup=d,Object.defineProperties(h,{start:{get:ExpressionPropertyInterface(p.s)},end:{get:ExpressionPropertyInterface(p.e)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:c.nm}}),h.mn=c.mn,h}function n(c,p,d){function h(v){return c.a.ix===v||v==="Anchor Point"?h.anchorPoint:c.o.ix===v||v==="Opacity"?h.opacity:c.p.ix===v||v==="Position"?h.position:c.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?h.rotation:c.s.ix===v||v==="Scale"?h.scale:c.sk&&c.sk.ix===v||v==="Skew"?h.skew:c.sa&&c.sa.ix===v||v==="Skew Axis"?h.skewAxis:null}var g=propertyGroupFactory(h,d);return p.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",g)),p.transform.mProps.p.setGroupProperty(PropertyInterface("Position",g)),p.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",g)),p.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",g)),p.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",g)),p.transform.mProps.sk&&(p.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",g)),p.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",g))),p.transform.op.setGroupProperty(PropertyInterface("Opacity",g)),Object.defineProperties(h,{opacity:{get:ExpressionPropertyInterface(p.transform.mProps.o)},position:{get:ExpressionPropertyInterface(p.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(p.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(p.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(p.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(p.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(p.transform.mProps.sa)},_name:{value:c.nm}}),h.ty="tr",h.mn=c.mn,h.propertyGroup=d,h}function u(c,p,d){function h(b){return c.p.ix===b?h.position:c.s.ix===b?h.size:null}var g=propertyGroupFactory(h,d);h.propertyIndex=c.ix;var v=p.sh.ty==="tm"?p.sh.prop:p.sh;return v.s.setGroupProperty(PropertyInterface("Size",g)),v.p.setGroupProperty(PropertyInterface("Position",g)),Object.defineProperties(h,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:c.nm}}),h.mn=c.mn,h}function m(c,p,d){function h(b){return c.p.ix===b?h.position:c.r.ix===b?h.rotation:c.pt.ix===b?h.points:c.or.ix===b||b==="ADBE Vector Star Outer Radius"?h.outerRadius:c.os.ix===b?h.outerRoundness:!c.ir||c.ir.ix!==b&&b!=="ADBE Vector Star Inner Radius"?c.is&&c.is.ix===b?h.innerRoundness:null:h.innerRadius}var g=propertyGroupFactory(h,d),v=p.sh.ty==="tm"?p.sh.prop:p.sh;return h.propertyIndex=c.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",g)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",g)),v.pt.setGroupProperty(PropertyInterface("Points",g)),v.p.setGroupProperty(PropertyInterface("Position",g)),v.r.setGroupProperty(PropertyInterface("Rotation",g)),c.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",g)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",g))),Object.defineProperties(h,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:c.nm}}),h.mn=c.mn,h}function l(c,p,d){function h(b){return c.p.ix===b?h.position:c.r.ix===b?h.roundness:c.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?h.size:null}var g=propertyGroupFactory(h,d),v=p.sh.ty==="tm"?p.sh.prop:p.sh;return h.propertyIndex=c.ix,v.p.setGroupProperty(PropertyInterface("Position",g)),v.s.setGroupProperty(PropertyInterface("Size",g)),v.r.setGroupProperty(PropertyInterface("Rotation",g)),Object.defineProperties(h,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:c.nm}}),h.mn=c.mn,h}function f(c,p,d){function h(b){return c.r.ix===b||b==="Round Corners 1"?h.radius:null}var g=propertyGroupFactory(h,d),v=p;return h.propertyIndex=c.ix,v.rd.setGroupProperty(PropertyInterface("Radius",g)),Object.defineProperties(h,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:c.nm}}),h.mn=c.mn,h}function y(c,p,d){function h(b){return c.c.ix===b||b==="Copies"?h.copies:c.o.ix===b||b==="Offset"?h.offset:null}var g=propertyGroupFactory(h,d),v=p;return h.propertyIndex=c.ix,v.c.setGroupProperty(PropertyInterface("Copies",g)),v.o.setGroupProperty(PropertyInterface("Offset",g)),Object.defineProperties(h,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:c.nm}}),h.mn=c.mn,h}return function(c,p,d){var h;function g(v){if(typeof v=="number")return (v=v===void 0?1:v)===0?d:h[v-1];for(var b=0,_=h.length;b<_;){if(h[b]._name===v)return h[b];b+=1;}return null}return g.propertyGroup=propertyGroupFactory(g,function(){return d}),h=t(c,p,g.propertyGroup),g.numProperties=h.length,g._name="Contents",g}}(),TextExpressionInterface=function(t){var e;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return {fillColor:t.textProperty.currentData.fc}}})),e}}),r};function _typeof(t){return (_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var FootageInterface=(iga=function(t){function e(r){return r==="Outline"?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(r){var i="",s=r.getFootageData();function a(o){if(s[o])return _typeof(s=s[i=o])==="object"?a:s;var n=o.indexOf(i);if(n===-1)return "";var u=parseInt(o.substr(n+i.length),10);return _typeof(s=s[u])==="object"?a:s}return function(){return i="",s=r.getFootageData(),a}}(t),e},function(t){function e(r){return r==="Data"?e.dataInterface:null}return e._name="Data",e.dataInterface=iga(t),e}),iga,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)));},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var s;for(s=0;s<e.length;s+=1)i+=Math.pow(r[s]-e[s],2);i=100*Math.sqrt(i);}else i=0;return i},getVelocityAtTime:function(t){if(this.vel!==void 0)return this.vel;var e,r,i=this.getValueAtTime(t),s=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(s[r]-i[r])/-.001;else e=(s-i)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t;}};function addPropertyDecorator(){function t(m,l,f){if(!this.k||!this.keyframes)return this.pv;m=m?m.toLowerCase():"";var y,c,p,d,h,g=this.comp.renderedFrame,v=this.keyframes,b=v[v.length-1].t;if(g<=b)return this.pv;if(f?c=b-(y=l?Math.abs(b-this.elem.comp.globalData.frameRate*l):Math.max(0,b-this.elem.data.ip)):((!l||l>v.length-1)&&(l=v.length-1),y=b-(c=v[v.length-1-l].t)),m==="pingpong"){if(Math.floor((g-c)/y)%2!=0)return this.getValueAtTime((y-(g-c)%y+c)/this.comp.globalData.frameRate,0)}else {if(m==="offset"){var _=this.getValueAtTime(c/this.comp.globalData.frameRate,0),A=this.getValueAtTime(b/this.comp.globalData.frameRate,0),S=this.getValueAtTime(((g-c)%y+c)/this.comp.globalData.frameRate,0),C=Math.floor((g-c)/y);if(this.pv.length){for(d=(h=new Array(_.length)).length,p=0;p<d;p+=1)h[p]=(A[p]-_[p])*C+S[p];return h}return (A-_)*C+S}if(m==="continue"){var E=this.getValueAtTime(b/this.comp.globalData.frameRate,0),P=this.getValueAtTime((b-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(d=(h=new Array(E.length)).length,p=0;p<d;p+=1)h[p]=E[p]+(E[p]-P[p])*((g-b)/this.comp.globalData.frameRate)/5e-4;return h}return E+(g-b)/.001*(E-P)}}return this.getValueAtTime(((g-c)%y+c)/this.comp.globalData.frameRate,0)}function e(m,l,f){if(!this.k)return this.pv;m=m?m.toLowerCase():"";var y,c,p,d,h,g=this.comp.renderedFrame,v=this.keyframes,b=v[0].t;if(b<=g)return this.pv;if(f?c=b+(y=l?Math.abs(this.elem.comp.globalData.frameRate*l):Math.max(0,this.elem.data.op-b)):((!l||l>v.length-1)&&(l=v.length-1),y=(c=v[l].t)-b),m==="pingpong"){if(Math.floor((b-g)/y)%2==0)return this.getValueAtTime(((b-g)%y+b)/this.comp.globalData.frameRate,0)}else {if(m==="offset"){var _=this.getValueAtTime(b/this.comp.globalData.frameRate,0),A=this.getValueAtTime(c/this.comp.globalData.frameRate,0),S=this.getValueAtTime((y-(b-g)%y+b)/this.comp.globalData.frameRate,0),C=Math.floor((b-g)/y)+1;if(this.pv.length){for(d=(h=new Array(_.length)).length,p=0;p<d;p+=1)h[p]=S[p]-(A[p]-_[p])*C;return h}return S-(A-_)*C}if(m==="continue"){var E=this.getValueAtTime(b/this.comp.globalData.frameRate,0),P=this.getValueAtTime((b+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(d=(h=new Array(E.length)).length,p=0;p<d;p+=1)h[p]=E[p]+(E[p]-P[p])*(b-g)/.001;return h}return E+(E-P)*(b-g)/.001}}return this.getValueAtTime((y-((b-g)%y+b))/this.comp.globalData.frameRate,0)}function r(m,l){if(!this.k)return this.pv;if(m=.5*(m||.4),(l=Math.floor(l||5))<=1)return this.pv;var f,y,c=this.comp.renderedFrame/this.comp.globalData.frameRate,p=c-m,d=1<l?(c+m-p)/(l-1):1,h=0,g=0;for(f=this.pv.length?createTypedArray("float32",this.pv.length):0;h<l;){if(y=this.getValueAtTime(p+h*d),this.pv.length)for(g=0;g<this.pv.length;g+=1)f[g]+=y[g];else f+=y;h+=1;}if(this.pv.length)for(g=0;g<this.pv.length;g+=1)f[g]/=l;else f/=l;return f}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(m,l,f){var y=i(m,l,f);return y.dynamicProperties.length?y.getValueAtTime=function(c){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var p=this._transformCachingAtTime.v;if(p.cloneFromProps(this.pre.props),this.appliedTransformations<1){var d=this.a.getValueAtTime(c);p.translate(-d[0]*this.a.mult,-d[1]*this.a.mult,d[2]*this.a.mult);}if(this.appliedTransformations<2){var h=this.s.getValueAtTime(c);p.scale(h[0]*this.s.mult,h[1]*this.s.mult,h[2]*this.s.mult);}if(this.sk&&this.appliedTransformations<3){var g=this.sk.getValueAtTime(c),v=this.sa.getValueAtTime(c);p.skewFromAxis(-g*this.sk.mult,v*this.sa.mult);}if(this.r&&this.appliedTransformations<4){var b=this.r.getValueAtTime(c);p.rotate(-b*this.r.mult);}else if(!this.r&&this.appliedTransformations<4){var _=this.rz.getValueAtTime(c),A=this.ry.getValueAtTime(c),S=this.rx.getValueAtTime(c),C=this.or.getValueAtTime(c);p.rotateZ(-_*this.rz.mult).rotateY(A*this.ry.mult).rotateX(S*this.rx.mult).rotateZ(-C[2]*this.or.mult).rotateY(C[1]*this.or.mult).rotateX(C[0]*this.or.mult);}if(this.data.p&&this.data.p.s){var E=this.px.getValueAtTime(c),P=this.py.getValueAtTime(c);if(this.data.p.z){var M=this.pz.getValueAtTime(c);p.translate(E*this.px.mult,P*this.py.mult,-M*this.pz.mult);}else p.translate(E*this.px.mult,P*this.py.mult,0);}else {var T=this.p.getValueAtTime(c);p.translate(T[0]*this.p.mult,T[1]*this.p.mult,-T[2]*this.p.mult);}return p}.bind(y):y.getValueAtTime=function(){return this.v.clone(new Matrix)}.bind(y),y.setGroupProperty=expressionHelpers.setGroupProperty,y};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(m,l,f,y,c){var p=s(m,l,f,y,c);p.kf?p.getValueAtTime=expressionHelpers.getValueAtTime.bind(p):p.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(p),p.setGroupProperty=expressionHelpers.setGroupProperty,p.loopOut=t,p.loopIn=e,p.smooth=r,p.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(p),p.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(p),p.numKeys=l.a===1?l.k.length:0,p.propertyIndex=l.ix;var d=0;return f!==0&&(d=createTypedArray("float32",l.a===1?l.k[0].s.length:l.k.length)),p._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(m,l,p),p.k&&c.addDynamicProperty(p),p};var a=ShapePropertyFactory.getConstructorFunction(),o=ShapePropertyFactory.getKeyframedConstructorFunction();function n(){}n.prototype={vertices:function(m,l){this.k&&this.getValue();var f,y=this.v;l!==void 0&&(y=this.getValueAtTime(l,0));var c=y._length,p=y[m],d=y.v,h=createSizedArray(c);for(f=0;f<c;f+=1)h[f]=m==="i"||m==="o"?[p[f][0]-d[f][0],p[f][1]-d[f][1]]:[p[f][0],p[f][1]];return h},points:function(m){return this.vertices("v",m)},inTangents:function(m){return this.vertices("i",m)},outTangents:function(m){return this.vertices("o",m)},isClosed:function(){return this.v.c},pointOnPath:function(m,l){var f=this.v;l!==void 0&&(f=this.getValueAtTime(l,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(f));for(var y,c=this._segmentsLength,p=c.lengths,d=c.totalLength*m,h=0,g=p.length,v=0;h<g;){if(v+p[h].addedLength>d){var b=h,_=f.c&&h===g-1?0:h+1,A=(d-v)/p[h].addedLength;y=bez.getPointInSegment(f.v[b],f.v[_],f.o[b],f.i[_],A,p[h]);break}v+=p[h].addedLength,h+=1;}return y||(y=f.c?[f.v[0][0],f.v[0][1]]:[f.v[f._length-1][0],f.v[f._length-1][1]]),y},vectorOnPath:function(m,l,f){m==1?m=this.v.c:m==0&&(m=.999);var y=this.pointOnPath(m,l),c=this.pointOnPath(m+.001,l),p=c[0]-y[0],d=c[1]-y[1],h=Math.sqrt(Math.pow(p,2)+Math.pow(d,2));return h===0?[0,0]:f==="tangent"?[p/h,d/h]:[-d/h,p/h]},tangentOnPath:function(m,l){return this.vectorOnPath(m,l,"tangent")},normalOnPath:function(m,l){return this.vectorOnPath(m,l,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([n],a),extendPrototype([n],o),o.prototype.getValueAtTime=function(m){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),m*=this.elem.globalData.frameRate,(m-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<m?this._caching.lastIndex:0,this._cachingAtTime.lastTime=m,this.interpolateShape(m,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},o.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(m,l,f,y,c){var p=u(m,l,f,y,c);return p.propertyIndex=l.ix,p.lock=!1,f===3?expressionHelpers.searchExpressions(m,l.pt,p):f===4&&expressionHelpers.searchExpressions(m,l.ks,p),p.k&&m.addDynamicProperty(p),p};}function initialize$1(){addPropertyDecorator();}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t===r)return t;var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null};}function initialize(){addDecorator();}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,s=createNS("feMerge");for(s.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),s.appendChild(r),s.appendChild(r);return s}};var linearFilterValue="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";function SVGTintFilter(t,e,r,i,s){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),(this.linearFilter=a).setAttribute("result",i+"_tint_1"),t.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i+"_tint_2"),t.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);t.appendChild(o);}function SVGFillFilter(t,e,r,i){this.filterManager=e;var s=createNS("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",i),t.appendChild(s),this.matrixFilter=s;}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[];}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var n=createNS("feFuncG");n.setAttribute("type","table"),a.appendChild(n),this.feFuncG=n;var u=createNS("feFuncB");u.setAttribute("type","table"),a.appendChild(u),this.feFuncB=u,t.appendChild(a);}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a));}function SVGDropShadowEffect(t,e,r,i,s){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("in","SourceAlpha"),n.setAttribute("result",i+"_drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n);var u=createNS("feOffset");u.setAttribute("dx","25"),u.setAttribute("dy","0"),u.setAttribute("in",i+"_drop_shadow_1"),u.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=u,t.appendChild(u);var m=createNS("feFlood");m.setAttribute("flood-color","#00ff00"),m.setAttribute("flood-opacity","1"),m.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=m,t.appendChild(m);var l=createNS("feComposite");l.setAttribute("in",i+"_drop_shadow_3"),l.setAttribute("in2",i+"_drop_shadow_2"),l.setAttribute("operator","in"),l.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(l);var f=this.createMergeNode(i,[i+"_drop_shadow_4",s]);t.appendChild(f);}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0");}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=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 "+r+" 0");}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var n=createNS("g");for(n.setAttribute("mask","url("+getLocationHref()+"#"+o+")");s[0];)n.appendChild(s[0]);this.elem.layerElement.appendChild(n),this.masker=a,e.setAttribute("stroke","#fff");}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff");}this.initialized=!0,this.pathMasker=e;},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,s=this.paths.length;for(e=0;e<s;e+=1)if(this.paths[e].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.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||r.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),n=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),u=i.getTotalLength();a="0 0 0 "+u*o+" ";var m,l=u*(n-o),f=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,y=Math.floor(l/f);for(m=0;m<y;m+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*u+" 0 0";}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",a);}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var c=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*c[0])+","+bmFloor(255*c[1])+","+bmFloor(255*c[2])+")");}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+e[0],a=i[1]+" "+r[1]+" "+e[1],o=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o);}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,s){for(var a,o,n=0,u=Math.min(t,e),m=Math.max(t,e),l=Array.call(null,{length:256}),f=0,y=s-i,c=e-t;n<=256;)o=(a=n/256)<=u?c<0?s:i:m<=a?c<0?i:s:i+y*Math.pow((a-t)/c,1/r),l[f]=o,f+=1,n+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e));}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])));}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a);}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=r).matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement;}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("result",i),t.appendChild(s),this.feGaussianBlur=s;}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e);}function CVTransformEffect(t){this.init(t);}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1;}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,s=r.children,a=0,o=s.length;a<o&&s[a]!==t.layerElement;)a+=1;a<=o-2&&(i=s[a+1]);var n=createNS("use");n.setAttribute("href","#"+e),i?r.insertBefore(n,i):r.appendChild(n);}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var s=t.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e.layerElement),s.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),e.data.hd=!1,e.show();}t.setMatte(e.layerId);},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0;},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize();},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=r==3?0:e,s=r==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+s);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a);}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1;},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,r=e[0].p.v,i=e[1].p.v,s=e[3].p.v,a=e[4].p.v,o=e[5].p.v,n=e[6].p.v,u=e[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*s,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-o*degToRads,(n+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0);}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},typeof exports=="object"&&typeof module<"u"?module.exports=Z():typeof define=="function"&&define.amd?define(Z):(Y=typeof globalThis<"u"?globalThis:Y||self).lottie=Z()),{loadAnimation}}();onmessage=function(t){var e=t.data,r=e.type,i=e.payload;if(r==="load")lottieInternal.loadAnimation(i);else if(r==="pause")animations[i.id]&&animations[i.id].animation.pause();else if(r==="play")animations[i.id]&&animations[i.id].animation.play();else if(r==="stop")animations[i.id]&&animations[i.id].animation.stop();else if(r==="setSpeed")animations[i.id]&&animations[i.id].animation.setSpeed(i.value);else if(r==="setDirection")animations[i.id]&&animations[i.id].animation.setDirection(i.value);else if(r==="setLoop")animations[i.id]&&animations[i.id].animation.setLoop(i.value);else if(r==="goToAndPlay")animations[i.id]&&animations[i.id].animation.goToAndPlay(i.value,i.isFrame);else if(r==="goToAndStop")animations[i.id]&&animations[i.id].animation.goToAndStop(i.value,i.isFrame);else if(r==="setSubframe")animations[i.id]&&animations[i.id].animation.setSubframe(i.value);else if(r==="addEventListener"){if(animations[i.id]){var s=function(){self.postMessage({type:"event",payload:{id:i.id,callbackId:i.callbackId,argument:arguments[0]}});};animations[i.id].events[i.callbackId]={callback:s},animations[i.id].animation.addEventListener(i.eventName,s);}}else if(r==="removeEventListener"){if(animations[i.id]){var a=animations[i.id].events[i.callbackId];animations[i.id].animation.removeEventListener(i.eventName,a);}}else r==="destroy"?animations[i.id]&&(animations[i.id].animation.destroy(),animations[i.id]=null):r==="resize"?animations[i.id]&&animations[i.id].animation.resize(i.width,i.height):r==="playSegments"?animations[i.id]&&animations[i.id].animation.playSegments(i.arr,i.forceFlag):r==="updateDocumentData"&&animations[i.id].animation.updateDocumentData(i.path,i.documentData,i.index);};}function createWorker(t){var e=new Blob(["("+t.toString()+"())"],{type:"text/javascript"}),r=URL.createObjectURL(e);return new Worker(r)}var lottie=function(){var t=createWorker(workerContent),e=0,r=0,i={},s={rendererSettings:{}};function a(l,f,y,c){var p;for(var d in p=l.type==="div"?document.createElement("div"):document.createElementNS(l.namespace,l.type),l.textContent&&(p.textContent=l.textContent),l.attributes)Object.prototype.hasOwnProperty.call(l.attributes,d)&&(d==="href"?p.setAttributeNS("http://www.w3.org/1999/xlink",d,l.attributes[d]):p.setAttribute(d,l.attributes[d]),d==="id"&&(y[l.attributes[d]]=p));for(var h in l.style)Object.prototype.hasOwnProperty.call(l.style,h)&&(p.style[h]=l.style[h]);l.children.forEach(function(g){a(g,p,y);}),c?f.insertBefore(p,c):f.appendChild(p);}function o(l,f){for(var y,c=0;c<l.length;c+=1){var p,d=f[(y=l[c])[1]];d&&(y[2]&&(p=f[y[2]]),a(y[0],d,f,p),l.splice(c,1),c-=1);}}function n(l,f){for(var y,c=0;c<f.length;c+=1)y=f[c],l.style[y[0]]=y[1];}function u(l,f){for(var y,c=0;c<f.length;c+=1)y=f[c],l.setAttribute(y[0],y[1]);}var m={DOMLoaded:function(l){var f=i[l.id];f._loaded=!0,f.pendingCallbacks.forEach(function(y){f.animInstance.addEventListener(y.eventName,y.callback),y.eventName==="DOMLoaded"&&y.callback();}),f.animInstance.totalFrames=l.totalFrames,f.animInstance.frameRate=l.frameRate,f.animInstance.firstFrame=l.firstFrame,f.animInstance.playDirection=l.playDirection,f.animInstance.currentFrame=l.isSubframeEnabled?l.currentRawFrame:~~l.currentRawFrame,l.timeCompleted!==l.totalFrames&&l.currentFrame>l.timeCompleted&&(f.animInstance.currentFrame=l.timeCompleted);},SVGloaded:function(l){var f=i[l.id],y=f.container,c=f.elements;a(l.tree,y,c);},SVGupdated:function(l){var f,y,c=l.elements,p=i[l.id];if(p){for(var d,h=p.elements,g=0;g<c.length;g+=1){var v=h[(d=c[g]).id];o(d.elements,h),n(v,d.styles),u(v,d.attributes),f=v,(y=d.textContent)&&(f.textContent=y);}p.animInstance.currentFrame=l.currentTime;}},CanvasUpdated:function(l){i[l.id].instructionsHandler(l.instructions);},event:function(l){var f=i[l.id];if(f){var y=f.callbacks;y[l.callbackId]&&y[l.callbackId].callback(l.argument);}},playing:function(l){var f=i[l.id];f&&(f.animInstance.isPaused=!1);},paused:function(l){var f=i[l.id];f&&(f.animInstance.isPaused=!0);}};return t.onmessage=function(l){m[l.data.type]&&m[l.data.type](l.data.payload);},{loadAnimation:function(l){var f,y="lottie_animationId_"+(e+=1),c={elements:{},callbacks:{},pendingCallbacks:[],status:"init"},p={id:y,isPaused:!0,pause:function(){t.postMessage({type:"pause",payload:{id:y}});},play:function(){t.postMessage({type:"play",payload:{id:y}});},stop:function(){t.postMessage({type:"stop",payload:{id:y}});},setSpeed:function(d){t.postMessage({type:"setSpeed",payload:{id:y,value:d}});},setDirection:function(d){t.postMessage({type:"setDirection",payload:{id:y,value:d}});},setLoop:function(d){t.postMessage({type:"setLoop",payload:{id:y,value:d}});},goToAndStop:function(d,h){t.postMessage({type:"goToAndStop",payload:{id:y,value:d,isFrame:h}});},goToAndPlay:function(d,h){t.postMessage({type:"goToAndPlay",payload:{id:y,value:d,isFrame:h}});},playSegments:function(d,h){t.postMessage({type:"playSegments",payload:{id:y,arr:d,forceFlag:h}});},setSubframe:function(d){t.postMessage({type:"setSubframe",payload:{id:y,value:d}});},addEventListener:function(d,h){if(c._loaded){var g="callback_"+(r+=1);c.callbacks[g]={eventName:d,callback:h},t.postMessage({type:"addEventListener",payload:{id:y,callbackId:g,eventName:d}});}else c.pendingCallbacks.push({eventName:d,callback:h});},removeEventListener:function(d,h){Object.keys(c.callbacks).forEach(function(g){c.callbacks[g].eventName!==d||c.callbacks[g].callback!==h&&h||(delete c.callbacks[g],t.postMessage({type:"removeEventListener",payload:{id:y,callbackId:g,eventName:d}}));});},destroy:function(){c.status==="init"?c.status="destroyable":(c.status="destroyed",i[y]=null,c.container&&(c.container.innerHTML=""),t.postMessage({type:"destroy",payload:{id:y}}));},resize:function(d,h){var g=window.devicePixelRatio||1;t.postMessage({type:"resize",payload:{id:y,width:d||(c.container?c.container.offsetWidth*g:0),height:h||(c.container?c.container.offsetHeight*g:0)}});},updateDocumentData:function(d,h,g){t.postMessage({type:"updateDocumentData",payload:{id:y,path:d,documentData:h,index:g}});}};return c.animInstance=p,(f=l,new Promise(function(d,h){var g=Object.assign({},s,f);g.animType&&!g.renderer&&(g.renderer=g.animType),g.wrapper&&(g.container||(g.container=g.wrapper),delete g.wrapper),g.animationData?d(g):g.path?fetch(g.path).then(function(v){return v.json()}).then(function(v){g.animationData=v,delete g.path,d(g);}):h();})).then(function(d){if(c.status!=="destroyable"){c.status="loaded";var h,g,v=[];if(d.container&&(c.container=d.container,delete d.container),d.renderer==="canvas"){var b=d.rendererSettings.canvas;if(!b){var _=window.devicePixelRatio||1;b=document.createElement("canvas"),c.container.appendChild(b),b.width=(c.container?c.container.offsetWidth:d.animationData.w)*_,b.height=(c.container?c.container.offsetHeight:d.animationData.h)*_,b.style.width="100%",b.style.height="100%";}var A=b;typeof OffscreenCanvas>"u"?(c.canvas=b,c.instructionsHandler=(h=b.getContext("2d"),g={beginPath:h.beginPath,closePath:h.closePath,rect:h.rect,clip:h.clip,clearRect:h.clearRect,setTransform:h.setTransform,moveTo:h.moveTo,bezierCurveTo:h.bezierCurveTo,lineTo:h.lineTo,fill:h.fill,save:h.save,restore:h.restore},function(S){for(var C=0;C<S.length;C+=1){var E=S[C],P=g[E.t];P?P.apply(h,E.a):h[E.t]=E.a;}})):(b instanceof OffscreenCanvas||(A=b.transferControlToOffscreen(),d.rendererSettings.canvas=A),v.push(A));}i[y]=c,t.postMessage({type:"load",payload:{params:d,id:y}},v);}else c.animInstance.destroy();}),p}}}();return lottie});});var Lt=window,zt=Lt.ShadowRoot&&(Lt.ShadyCSS===void 0||Lt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jt=Symbol(),oe=new WeakMap,kt=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r;}get styleSheet(){let e=this.o,r=this.t;if(zt&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=oe.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&oe.set(r,e));}return e}toString(){return this.cssText}},he=t=>new kt(typeof t=="string"?t:t+"",void 0,jt),qt=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,s,a)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[a+1],t[0]);return new kt(r,t,jt)},Wt=(t,e)=>{zt?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),s=Lt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i);});},Ot=zt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return he(r)})(t):t;var Ut,Gt=window,le=Gt.trustedTypes,Le=le?le.emptyScript:"",pe=Gt.reactiveElementPolyfillSupport,Xt={toAttribute(t,e){switch(e){case Boolean:t=t?Le:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t);}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t);}catch{r=null;}}return r}},ce=(t,e)=>e!==t&&(e==e||t==t),Yt={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:ce},ht=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u();}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e);}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let s=this._$Ep(i,r);s!==void 0&&(this._$Ev.set(s,i),e.push(s));}),e}static createProperty(e,r=Yt){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,i,r);s!==void 0&&Object.defineProperty(this.prototype,e,s);}}static getPropertyDescriptor(e,r,i){return {get(){return this[r]},set(s){let a=this[e];this[r]=s,this.requestUpdate(e,a,i);},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Yt}static finalize(){if(this.hasOwnProperty("finalized"))return !1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let s of i)this.createProperty(s,r[s]);}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let s of i)r.unshift(Ot(s));}else e!==void 0&&r.push(Ot(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this));}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e));}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1);}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r]);});}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Wt(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return (i=r.hostConnected)===null||i===void 0?void 0:i.call(r)});}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return (i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)});}attributeChangedCallback(e,r,i){this._$AK(e,i);}_$EO(e,r,i=Yt){var s;let a=this.constructor._$Ep(e,i);if(a!==void 0&&i.reflect===!0){let o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Xt).toAttribute(r,i.type);this._$El=e,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$El=null;}}_$AK(e,r){var i;let s=this.constructor,a=s._$Ev.get(e);if(a!==void 0&&this._$El!==a){let o=s.getPropertyOptions(a),n=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:Xt;this._$El=a,this[a]=n.fromAttribute(r,o.type),this._$El=null;}}requestUpdate(e,r,i){let s=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||ce)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej());}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_;}catch(r){Promise.reject(r);}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,a)=>this[a]=s),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var a;return (a=s.hostUpdate)===null||a===void 0?void 0:a.call(s)}),this.update(i)):this._$Ek();}catch(s){throw r=!1,this._$Ek(),s}r&&this._$AE(i);}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var s;return (s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e);}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return !0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek();}updated(e){}firstUpdated(e){}};ht.finalized=!0,ht.elementProperties=new Map,ht.elementStyles=[],ht.shadowRootOptions={mode:"open"},pe?.({ReactiveElement:ht}),((Ut=Gt.reactiveElementVersions)!==null&&Ut!==void 0?Ut:Gt.reactiveElementVersions=[]).push("1.4.2");var Zt,Nt=window,_t=Nt.trustedTypes,fe=_t?_t.createPolicy("lit-html",{createHTML:t=>t}):void 0,ft=`lit$${(Math.random()+"").slice(9)}$`,be="?"+ft,ze=`<${be}>`,Ct=document,Dt=(t="")=>Ct.createComment(t),Ft=t=>t===null||typeof t!="object"&&typeof t!="function",Ee=Array.isArray,Oe=t=>Ee(t)||typeof t?.[Symbol.iterator]=="function",wt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,de=/>/g,yt=RegExp(`>|[
3
+ \f\r](?:([^\\s"'>=/]+)([
4
+ \f\r]*=[
5
+ \f\r]*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,ye=/"/g,Se=/^(?:script|style|textarea|title)$/i,xe=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Tt=xe(1),gt=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),ge=new WeakMap,Pt=Ct.createTreeWalker(Ct,129,null,!1),Ge=(t,e)=>{let r=t.length-1,i=[],s,a=e===2?"<svg>":"",o=wt;for(let u=0;u<r;u++){let m=t[u],l,f,y=-1,c=0;for(;c<m.length&&(o.lastIndex=c,f=o.exec(m),f!==null);)c=o.lastIndex,o===wt?f[1]==="!--"?o=me:f[1]!==void 0?o=de:f[2]!==void 0?(Se.test(f[2])&&(s=RegExp("</"+f[2],"g")),o=yt):f[3]!==void 0&&(o=yt):o===yt?f[0]===">"?(o=s??wt,y=-1):f[1]===void 0?y=-2:(y=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?yt:f[3]==='"'?ye:ue):o===ye||o===ue?o=yt:o===me||o===de?o=wt:(o=yt,s=void 0);let p=o===yt&&t[u+1].startsWith("/>")?" ":"";a+=o===wt?m+ze:y>=0?(i.push(l),m.slice(0,y)+"$lit$"+m.slice(y)+ft+p):m+ft+(y===-2?(i.push(void 0),u):p);}let n=a+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return [fe!==void 0?fe.createHTML(n):n,i]},vt=class{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let a=0,o=0,n=e.length-1,u=this.parts,[m,l]=Ge(e,r);if(this.el=vt.createElement(m,i),Pt.currentNode=this.el.content,r===2){let f=this.el.content,y=f.firstChild;y.remove(),f.append(...y.childNodes);}for(;(s=Pt.nextNode())!==null&&u.length<n;){if(s.nodeType===1){if(s.hasAttributes()){let f=[];for(let y of s.getAttributeNames())if(y.endsWith("$lit$")||y.startsWith(ft)){let c=l[o++];if(f.push(y),c!==void 0){let p=s.getAttribute(c.toLowerCase()+"$lit$").split(ft),d=/([.?@])?(.*)/.exec(c);u.push({type:1,index:a,name:d[2],strings:p,ctor:d[1]==="."?Jt:d[1]==="?"?Qt:d[1]==="@"?te:Mt});}else u.push({type:6,index:a});}for(let y of f)s.removeAttribute(y);}if(Se.test(s.tagName)){let f=s.textContent.split(ft),y=f.length-1;if(y>0){s.textContent=_t?_t.emptyScript:"";for(let c=0;c<y;c++)s.append(f[c],Dt()),Pt.nextNode(),u.push({type:2,index:++a});s.append(f[y],Dt());}}}else if(s.nodeType===8)if(s.data===be)u.push({type:2,index:a});else {let f=-1;for(;(f=s.data.indexOf(ft,f+1))!==-1;)u.push({type:7,index:a}),f+=ft.length-1;}a++;}}static createElement(e,r){let i=Ct.createElement("template");return i.innerHTML=e,i}};function At(t,e,r=t,i){var s,a,o,n;if(e===gt)return e;let u=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,m=Ft(e)?void 0:e._$litDirective$;return u?.constructor!==m&&((a=u?._$AO)===null||a===void 0||a.call(u,!1),m===void 0?u=void 0:(u=new m(t),u._$AT(t,r,i)),i!==void 0?((o=(n=r)._$Co)!==null&&o!==void 0?o:n._$Co=[])[i]=u:r._$Cl=u),u!==void 0&&(e=At(t,u._$AS(t,e.values),u,i)),e}var Kt=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:s}=this._$AD,a=((r=e?.creationScope)!==null&&r!==void 0?r:Ct).importNode(i,!0);Pt.currentNode=a;let o=Pt.nextNode(),n=0,u=0,m=s[0];for(;m!==void 0;){if(n===m.index){let l;m.type===2?l=new bt(o,o.nextSibling,this,e):m.type===1?l=new m.ctor(o,m.name,m.strings,this,e):m.type===6&&(l=new ee(o,this,e)),this.u.push(l),m=s[++u];}n!==m?.index&&(o=Pt.nextNode(),n++);}return a}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++;}},bt=class{constructor(e,r,i,s){var a;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cm=(a=s?.isConnected)===null||a===void 0||a;}get _$AU(){var e,r;return (r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=At(this,e,r),Ft(e)?e===X||e==null||e===""?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==gt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Oe(e)?this.k(e):this.g(e);}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e));}g(e){this._$AH!==X&&Ft(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.createTextNode(e)),this._$AH=e;}$(e){var r;let{values:i,_$litType$:s}=e,a=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=vt.createElement(s.h,this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===a)this._$AH.p(i);else {let o=new Kt(a,this),n=o.v(this.options);o.p(i),this.T(n),this._$AH=o;}}_$AC(e){let r=ge.get(e.strings);return r===void 0&&ge.set(e.strings,r=new vt(e)),r}k(e){Ee(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let a of e)s===r.length?r.push(i=new bt(this.O(Dt()),this.O(Dt()),this,this.options)):i=r[s],i._$AI(a),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s);}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s;}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e));}},Mt=class{constructor(e,r,i,s,a){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,s){let a=this.strings,o=!1;if(a===void 0)e=At(this,e,r,0),o=!Ft(e)||e!==this._$AH&&e!==gt,o&&(this._$AH=e);else {let n=e,u,m;for(e=a[0],u=0;u<a.length-1;u++)m=At(this,n[i+u],r,u),m===gt&&(m=this._$AH[u]),o||(o=!Ft(m)||m!==this._$AH[u]),m===X?e=X:e!==X&&(e+=(m??"")+a[u+1]),this._$AH[u]=m;}o&&!s&&this.j(e);}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},Jt=class extends Mt{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===X?void 0:e;}},Ne=_t?_t.emptyScript:"",Qt=class extends Mt{constructor(){super(...arguments),this.type=4;}j(e){e&&e!==X?this.element.setAttribute(this.name,Ne):this.element.removeAttribute(this.name);}},te=class extends Mt{constructor(e,r,i,s,a){super(e,r,i,s,a),this.type=5;}_$AI(e,r=this){var i;if((e=(i=At(this,e,r,0))!==null&&i!==void 0?i:X)===gt)return;let s=this._$AH,a=e===X&&s!==X||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==X&&(s===X||a);a&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e);}},ee=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){At(this,e);}};var ve=Nt.litHtmlPolyfillSupport;ve?.(vt,bt),((Zt=Nt.litHtmlVersions)!==null&&Zt!==void 0?Zt:Nt.litHtmlVersions=[]).push("2.4.0");var Pe=(t,e,r)=>{var i,s;let a=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=a._$litPart$;if(o===void 0){let n=(s=r?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=o=new bt(e.insertBefore(Dt(),n),n,void 0,r??{});}return o._$AI(t),o};var re,ie;var mt=class extends ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,r;let i=super.createRenderRoot();return (e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pe(r,this.renderRoot,this.renderOptions);}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0);}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1);}render(){return gt}};mt.finalized=!0,mt._$litElement$=!0,(re=globalThis.litElementHydrateSupport)===null||re===void 0||re.call(globalThis,{LitElement:mt});var _e=globalThis.litElementPolyfillSupport;_e?.({LitElement:mt});((ie=globalThis.litElementVersions)!==null&&ie!==void 0?ie:globalThis.litElementVersions=[]).push("3.2.2");var Ce=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:s,elements:a}=i;return {kind:s,elements:a,finisher(o){customElements.define(r,o);}}})(t,e);var $e=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this));},finisher(r){r.createProperty(e.key,t);}};function j(t){return (e,r)=>r!==void 0?((i,s,a)=>{s.constructor.createProperty(a,i);})(t,e,r):$e(t,e)}function Ae(t){return j({...t,state:!0})}var Et=({finisher:t,descriptor:e})=>(r,i)=>{var s;if(i===void 0){let a=(s=r.originalKey)!==null&&s!==void 0?s:r.key,o=e!=null?{kind:"method",placement:"prototype",key:a,descriptor:e(r.key)}:{...r,key:a};return t!=null&&(o.finisher=function(n){t(n,a);}),o}{let a=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(a,i);}};function Me(t,e){return Et({descriptor:r=>{let i={get(){var s,a;return (a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(e){let s=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var a,o;return this[s]===void 0&&(this[s]=(o=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(t))!==null&&o!==void 0?o:null),this[s]};}return i}})}var se;((se=window.HTMLSlotElement)===null||se===void 0?void 0:se.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);var $t=Ve(Te());var ae={name:"@lottiefiles/lottie-player",version:"2.0.0",description:"Lottie animation and Telegram Sticker player web components.",repository:"https://github.com/LottieFiles/lottie-player.git",homepage:"https://lottiefiles.com/web-player",bugs:"https://github.com/LottieFiles/lottie-player/issues",author:"Jawish Hameed <jawish@lottiefiles.com>",license:"MIT",main:"dist/lottie-player.js",module:"dist/lottie-player.mjs",types:"dist/lottie-player.d.ts",files:["dist/"],keywords:["lottie","animation","lottiefiles","web component","component","lit-element","player","telegram sticker","tgs"],scripts:{build:"tsup",changelog:"changeset add","changelog:check":"changeset status --since=main",dev:"tsup --watch",format:"pnpm run format:prettier","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","format:remark":"remark . --output --ignore-path .remarkignore --silently-ignore",lint:"eslint . --ext .ts,.tsx,.js","lint:fix":"eslint . --ext .ts,.tsx,.js --fix",open:"cypress open",preinstall:"npx only-allow pnpm",release:"pnpm release:version && pnpm release:publish","release:publish":"pnpm build && changeset publish","release:tag":"changeset tag","release:version":"changeset version",test:"cypress run --component","type-check":"turbo run type-check"},dependencies:{"@changesets/cli":"^2.26.1","@types/pako":"^1.0.4",lit:"^2.4.1","lottie-web":"^5.12.0",pako:"^2.1.0","resize-observer-polyfill":"^1.5.1"},devDependencies:{"@commitlint/cli":"^16.3.0","@commitlint/config-conventional":"^16.2.4","@lottiefiles/eslint-plugin":"^3.0.0","@lottiefiles/prettier-config":"^3.0.0",cypress:"^12.13.0","cypress-ct-lit":"^0.3.2","cypress-real-events":"^1.7.4",eslint:"^7.32.0","eslint-plugin-only-warn":"^1.0.3",husky:"^8.0.2","lint-staged":"^12.5.0",prettier:"^2.8.0","ts-node":"^10.9.1",tsup:"^6.7.0",turbo:"^1.10.2",typescript:"^4.9.3","unicode-canonical-property-names-ecmascript":"^2.0.0",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"],husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{css,scss,md}":["prettier --write"],"src/**/*.{js,jsx,ts,tsx,json}":["eslint . --ext .ts,.tsx,.js --fix"]},nyc:{extends:"@istanbuljs/nyc-config-typescript",all:!0}};var ke=qt`
7
+ * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ :host {
12
+ --lottie-player-toolbar-height: 35px;
13
+ --lottie-player-toolbar-background-color: transparent;
14
+ --lottie-player-toolbar-icon-color: #999;
15
+ --lottie-player-toolbar-icon-hover-color: #222;
16
+ --lottie-player-toolbar-icon-active-color: #555;
17
+ --lottie-player-seeker-track-color: #ccc;
18
+ --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);
19
+ --lottie-player-seeker-display: block;
20
+
21
+ display: block;
22
+ width: 100%;
23
+ height: 100%;
24
+ }
25
+
26
+ .main {
27
+ display: flex;
28
+ flex-direction: column;
29
+ height: 100%;
30
+ width: 100%;
31
+ }
32
+
33
+ .animation {
34
+ width: 100%;
35
+ height: 100%;
36
+ display: flex;
37
+ }
38
+ .animation.controls {
39
+ height: calc(100% - 35px);
40
+ }
41
+
42
+ .toolbar {
43
+ display: flex;
44
+ align-items: center;
45
+ justify-items: center;
46
+ background-color: var(--lottie-player-toolbar-background-color);
47
+ margin: 0 5px;
48
+ height: 35px;
49
+ }
50
+
51
+ .toolbar button {
52
+ cursor: pointer;
53
+ fill: var(--lottie-player-toolbar-icon-color);
54
+ display: flex;
55
+ background: none;
56
+ border: 0;
57
+ padding: 0;
58
+ outline: none;
59
+ height: 100%;
60
+ }
61
+
62
+ .toolbar button:hover {
63
+ fill: var(--lottie-player-toolbar-icon-hover-color);
64
+ }
65
+
66
+ .toolbar button.active {
67
+ fill: var(--lottie-player-toolbar-icon-active-color);
68
+ }
69
+
70
+ .toolbar button.active:hover {
71
+ fill: var(--lottie-player-toolbar-icon-hover-color);
72
+ }
73
+
74
+ .toolbar button:focus {
75
+ outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);
76
+ }
77
+
78
+ .toolbar button svg {
79
+ }
80
+
81
+ .toolbar button.disabled svg {
82
+ display: none;
83
+ }
84
+
85
+ .seeker {
86
+ -webkit-appearance: none;
87
+ width: 95%;
88
+ outline: none;
89
+ background-color: var(--lottie-player-toolbar-background-color);
90
+ display: var(--lottie-player-seeker-display);
91
+ }
92
+
93
+ .seeker::-webkit-slider-runnable-track {
94
+ width: 100%;
95
+ height: 5px;
96
+ cursor: pointer;
97
+ background: var(--lottie-player-seeker-track-color);
98
+ border-radius: 3px;
99
+ }
100
+ .seeker::-webkit-slider-thumb {
101
+ height: 15px;
102
+ width: 15px;
103
+ border-radius: 50%;
104
+ background: var(--lottie-player-seeker-thumb-color);
105
+ cursor: pointer;
106
+ -webkit-appearance: none;
107
+ margin-top: -5px;
108
+ }
109
+ .seeker:focus::-webkit-slider-runnable-track {
110
+ background: #999;
111
+ }
112
+ .seeker::-moz-range-track {
113
+ width: 100%;
114
+ height: 5px;
115
+ cursor: pointer;
116
+ background: var(--lottie-player-seeker-track-color);
117
+ border-radius: 3px;
118
+ }
119
+ .seeker::-moz-range-thumb {
120
+ height: 15px;
121
+ width: 15px;
122
+ border-radius: 50%;
123
+ background: var(--lottie-player-seeker-thumb-color);
124
+ cursor: pointer;
125
+ }
126
+ .seeker::-ms-track {
127
+ width: 100%;
128
+ height: 5px;
129
+ cursor: pointer;
130
+ background: transparent;
131
+ border-color: transparent;
132
+ color: transparent;
133
+ }
134
+ .seeker::-ms-fill-lower {
135
+ background: var(--lottie-player-seeker-track-color);
136
+ border-radius: 3px;
137
+ }
138
+ .seeker::-ms-fill-upper {
139
+ background: var(--lottie-player-seeker-track-color);
140
+ border-radius: 3px;
141
+ }
142
+ .seeker::-ms-thumb {
143
+ border: 0;
144
+ height: 15px;
145
+ width: 15px;
146
+ border-radius: 50%;
147
+ background: var(--lottie-player-seeker-thumb-color);
148
+ cursor: pointer;
149
+ }
150
+ .seeker:focus::-ms-fill-lower {
151
+ background: var(--lottie-player-seeker-track-color);
152
+ }
153
+ .seeker:focus::-ms-fill-upper {
154
+ background: var(--lottie-player-seeker-track-color);
155
+ }
156
+
157
+ .error {
158
+ display: flex;
159
+ justify-content: center;
160
+ height: 100%;
161
+ align-items: center;
162
+ }
163
+ `;var je=(u=>(u.Destroyed="destroyed",u.Error="error",u.Frozen="frozen",u.Loading="loading",u.Ready="ready",u.Paused="paused",u.Playing="playing",u.Stopped="stopped",u))(je||{}),qe=(r=>(r.Bounce="bounce",r.Normal="normal",r))(qe||{}),We=(y=>(y.Complete="complete",y.Destroyed="destroyed",y.Error="error",y.Frame="frame",y.Freeze="freeze",y.Load="load",y.Loop="loop",y.Pause="pause",y.Play="play",y.Ready="ready",y.Rendered="rendered",y.Stop="stop",y))(We||{});function Ue(t){if(typeof t=="object")return t;try{return JSON.parse(t)}catch{return new URL(t,window.location.href).toString()}}function Ye(t){return ["v","ip","op","layers","fr","w","h"].every(r=>Object.prototype.hasOwnProperty.call(t,r))}async function Xe(t){if(typeof t!="string")throw new Error("The url value must be a string");let e;try{let r=new URL(t);e=await(await fetch(r.toString())).json();}catch{throw new Error("An error occurred while trying to load the Lottie file from URL")}return e}var $=class extends mt{autoplay=!1;background="transparent";controls=!1;count;currentState="loading";description="Lottie animation";direction=1;disableCheck=!1;disableShadowDOM=!1;hover=!1;intermission=0;loop=!1;mode="normal";preserveAspectRatio="xMidYMid meet";renderer="svg";seeker=0;speed=1;src;viewBoxSize;webworkers;container;_counter=1;_io=null;_lottie;destroy(){this._lottie&&(this._lottie.destroy(),this.currentState="destroyed",this.dispatchEvent(new CustomEvent("destroyed")),this.remove());}disconnectedCallback(){this.isConnected||(this._io&&(this._io.disconnect(),this._io=null),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange()),this.destroy());}getLottie(){return this._lottie}getVersions(){return {lottieWebVersion:`${ae.dependencies["lottie-web"]}`,lottiePlayerVersion:`${ae.version}`}}async load(e){let r={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:{preserveAspectRatio:this.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0,...this.viewBoxSize&&{viewBoxSize:this.viewBoxSize}}};try{let i=Ue(e),s={},a=typeof i=="string"?"path":"animationData";this._lottie&&this._lottie.destroy(),this.webworkers&&$t.useWebWorker(!0),this._lottie=$t.loadAnimation({...r,[a]:i}),this._attachEventListeners(),this.disableCheck||(a==="path"?(s=await Xe(i),a="animationData"):s=i,Ye(s)||(this.currentState="error",this.dispatchEvent(new CustomEvent("error"))));}catch{this.currentState="error",this.dispatchEvent(new CustomEvent("error"));}}pause(){this._lottie&&(this._lottie.pause(),this.currentState="paused",this.dispatchEvent(new CustomEvent("pause")));}play(){this._lottie&&(this._lottie.play(),this.currentState="playing",this.dispatchEvent(new CustomEvent("play")));}getState(){return {autoplay:this._lottie?.autoplay??!1,currentState:this.currentState,frame:this._lottie?.currentFrame??0,seeker:this.seeker,direction:this.direction,hover:this.hover,loop:this.loop||!1,count:this.count,playMode:this.mode,speed:this.speed??1,background:this.background??"transparent",intermission:this.intermission}}render(){let e=this.controls?"main controls":"main",r=this.controls?"animation controls":"animation";return Tt` <div id="animation-container" class=${e} lang="en" aria-label=${this.description} role="img">
164
+ <div id="animation" class=${r} style="background:${this.background};">
165
+ ${this.currentState==="error"?Tt`<div class="error">⚠️</div>`:[]}
166
+ </div>
167
+ ${this.controls&&!this.disableShadowDOM?this.renderControls():[]}
168
+ </div>`}resize(){this._lottie&&this._lottie.resize();}seek(e){if(!this._lottie)return;let r=e;typeof r=="number"&&(r=Math.round(r));let i=/^(\d+)(%?)$/u.exec(r.toString());if(!i)return;let s=i[2]==="%"?this._lottie.totalFrames*Number(i[1])/100:i[1];s!==void 0&&(this._lottie.goToAndPlay(s,!0),this.currentState==="playing"?this.play():this.currentState==="frozen"?this._freeze():this.pause(),this.requestUpdate());}setDirection(e){this._lottie&&(this.direction=e,this._lottie.setDirection(e));}setLooping(e){this._lottie&&(this.loop=e,this._lottie.loop=e);}setSpeed(e=1){this._lottie&&(this.speed=e,this._lottie.setSpeed(e));}snapshot(e=!0){if(!this.shadowRoot)return "";let r=this.shadowRoot.querySelector(".animation svg"),i=new XMLSerializer().serializeToString(r);if(e){let s=document.createElement("a");s.href=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(i)}`,s.download=`download_${this.seeker}.svg`,document.body.appendChild(s),s.click(),document.body.removeChild(s);}return i}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this._lottie.goToAndStop(0,!0),this.currentState="stopped",this.dispatchEvent(new CustomEvent("stop")));}toggleLooping(){this.setLooping(!this.loop);}togglePlay(){this.currentState==="playing"?this.pause():this.play(),this.requestUpdate();}static get styles(){return ke}createRenderRoot(){return this.disableShadowDOM&&(this.style.display="block"),this.disableShadowDOM?this:super.createRenderRoot()}async firstUpdated(){this.renderer!=="svg"&&this.renderer!=="canvas"&&console.error('[lottie-player] Renderer is invalid: must be either "svg" or "canvas", "html" has been deprecated since v2.0.0.'),this.container=this.disableShadowDOM?this.querySelector("#animation"):this.shadowRoot?.querySelector("#animation"),"IntersectionObserver"in window&&this.container&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState==="frozen"&&this.play():this.currentState==="playing"&&this._freeze();}),this._io.observe(this.container)),typeof document.hidden<"u"&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.src&&this.container&&this.load(this.src),this.dispatchEvent(new CustomEvent("rendered"));}renderControls(){let e=this.currentState==="playing",r=this.currentState==="paused",i=this.currentState==="stopped";return Tt`
169
+ <div id="lottie-controls" aria-label="lottie-animation-controls" class="toolbar">
170
+ <button
171
+ id="lottie-play-button"
172
+ @click=${()=>this.togglePlay()}
173
+ class=${e||r?"active":""}
174
+ style="align-items:center;"
175
+ tabindex="0"
176
+ aria-label="play-pause"
177
+ >
178
+ ${e?Tt`<svg width="24" height="24" aria-hidden="true" focusable="false">
179
+ <path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />
180
+ </svg>`:Tt`<svg width="24" height="24" aria-hidden="true" focusable="false">
181
+ <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />
182
+ </svg>`}
183
+ </button>
184
+ <button
185
+ id="lottie-stop-button"
186
+ @click=${()=>this.stop()}
187
+ class=${i?"active":""}
188
+ style="align-items:center;"
189
+ tabindex="0"
190
+ aria-label="stop"
191
+ >
192
+ <svg width="24" height="24" aria-hidden="true" focusable="false">
193
+ <path d="M6 6h12v12H6V6z" />
194
+ </svg>
195
+ </button>
196
+ <input
197
+ id="lottie-seeker-input"
198
+ class="seeker"
199
+ type="range"
200
+ min="0"
201
+ step="1"
202
+ max="100"
203
+ .value=${this.seeker}
204
+ @input=${s=>this._handleSeekChange(s)}
205
+ @mousedown=${()=>{this._freeze();}}
206
+ @mouseup=${()=>{this.play();}}
207
+ aria-valuemin="1"
208
+ aria-valuemax="100"
209
+ role="slider"
210
+ aria-valuenow=${this.seeker}
211
+ tabindex="0"
212
+ aria-label="lottie-seek-input"
213
+ />
214
+ <button
215
+ id="lottie-loop-toggle"
216
+ @click=${()=>this.toggleLooping()}
217
+ class=${this.loop?"active":""}
218
+ style="align-items:center;"
219
+ tabindex="0"
220
+ aria-label="loop-toggle"
221
+ >
222
+ <svg width="24" height="24" aria-hidden="true" focusable="false">
223
+ <path
224
+ d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"
225
+ />
226
+ </svg>
227
+ </button>
228
+ </div>
229
+ `}_attachEventListeners(){let e=this._lottie;e&&(e.addEventListener("enterFrame",()=>{this.seeker=e.currentFrame/e.totalFrames*100,this.requestUpdate(),this.dispatchEvent(new CustomEvent("frame",{detail:{frame:e.currentFrame,seeker:this.seeker}}));}),e.addEventListener("complete",()=>{if(this.currentState!=="playing"){this.dispatchEvent(new CustomEvent("complete"));return}if(!this.loop||this.count&&this._counter>=this.count)if(this.dispatchEvent(new CustomEvent("complete")),this.mode==="bounce"){if(this._lottie?.currentFrame===0)return}else return;this.mode==="bounce"?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent("loop")),this.currentState==="playing"&&(this.setDirection(this.direction*-1),this._lottie?.play());},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent("loop")),this.currentState==="playing"&&(this.direction===-1?(this.seek("99%"),this.play()):(e.stop(),e.play()));},this.intermission));}),e.addEventListener("DOMLoaded",()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.currentState="ready",this.autoplay&&!this.hover&&(this.direction===-1&&this.seek("100%"),this.play()),this.dispatchEvent(new CustomEvent("ready"));}),e.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent("load"));}),e.addEventListener("data_failed",()=>{this.currentState="error",this.dispatchEvent(new CustomEvent("error"));}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!=="playing"&&this.play();}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState==="playing"&&this.stop();}));}_freeze(){this._lottie&&(this._lottie.pause(),this.currentState="frozen",this.dispatchEvent(new CustomEvent("freeze")));}_handleSeekChange(e){if(!this._lottie)return;let r=e.currentTarget;try{let s=parseInt(r.value,10)/100*this._lottie.totalFrames;this.seek(s);}catch{throw new Error("Error while seeking animation")}}_onVisibilityChange(){document.hidden===!0&&this.currentState==="playing"?this._freeze():this.currentState==="frozen"&&this.play();}};H([j({type:Boolean})],$.prototype,"autoplay",2),H([j({type:String,reflect:!0})],$.prototype,"background",2),H([j({type:Boolean})],$.prototype,"controls",2),H([j({type:Number})],$.prototype,"count",2),H([j({type:String})],$.prototype,"currentState",2),H([j({type:String})],$.prototype,"description",2),H([j({type:Number})],$.prototype,"direction",2),H([j({type:Boolean})],$.prototype,"disableCheck",2),H([j({type:Boolean})],$.prototype,"disableShadowDOM",2),H([j({type:Boolean})],$.prototype,"hover",2),H([j()],$.prototype,"intermission",2),H([j({type:Boolean,reflect:!0})],$.prototype,"loop",2),H([j()],$.prototype,"mode",2),H([j({type:String})],$.prototype,"preserveAspectRatio",2),H([j({type:String})],$.prototype,"renderer",2),H([Ae()],$.prototype,"seeker",2),H([j({type:Number})],$.prototype,"speed",2),H([j({type:String})],$.prototype,"src",2),H([j({type:String})],$.prototype,"viewBoxSize",2),H([j({type:Boolean})],$.prototype,"webworkers",2),H([Me("#animation")],$.prototype,"container",2),$=H([Ce("lottie-player")],$);/*! Bundled license information:
230
+
231
+ @lit/reactive-element/css-tag.js:
232
+ (**
233
+ * @license
234
+ * Copyright 2019 Google LLC
235
+ * SPDX-License-Identifier: BSD-3-Clause
236
+ *)
237
+
238
+ @lit/reactive-element/reactive-element.js:
239
+ (**
240
+ * @license
241
+ * Copyright 2017 Google LLC
242
+ * SPDX-License-Identifier: BSD-3-Clause
243
+ *)
244
+
245
+ lit-html/lit-html.js:
246
+ (**
247
+ * @license
248
+ * Copyright 2017 Google LLC
249
+ * SPDX-License-Identifier: BSD-3-Clause
250
+ *)
251
+
252
+ lit-element/lit-element.js:
253
+ (**
254
+ * @license
255
+ * Copyright 2017 Google LLC
256
+ * SPDX-License-Identifier: BSD-3-Clause
257
+ *)
258
+
259
+ lit-html/is-server.js:
260
+ (**
261
+ * @license
262
+ * Copyright 2022 Google LLC
263
+ * SPDX-License-Identifier: BSD-3-Clause
264
+ *)
265
+
266
+ @lit/reactive-element/decorators/custom-element.js:
267
+ (**
268
+ * @license
269
+ * Copyright 2017 Google LLC
270
+ * SPDX-License-Identifier: BSD-3-Clause
271
+ *)
272
+
273
+ @lit/reactive-element/decorators/property.js:
274
+ (**
275
+ * @license
276
+ * Copyright 2017 Google LLC
277
+ * SPDX-License-Identifier: BSD-3-Clause
278
+ *)
279
+
280
+ @lit/reactive-element/decorators/state.js:
281
+ (**
282
+ * @license
283
+ * Copyright 2017 Google LLC
284
+ * SPDX-License-Identifier: BSD-3-Clause
285
+ *)
286
+
287
+ @lit/reactive-element/decorators/base.js:
288
+ (**
289
+ * @license
290
+ * Copyright 2017 Google LLC
291
+ * SPDX-License-Identifier: BSD-3-Clause
292
+ *)
293
+
294
+ @lit/reactive-element/decorators/event-options.js:
295
+ (**
296
+ * @license
297
+ * Copyright 2017 Google LLC
298
+ * SPDX-License-Identifier: BSD-3-Clause
299
+ *)
300
+
301
+ @lit/reactive-element/decorators/query.js:
302
+ (**
303
+ * @license
304
+ * Copyright 2017 Google LLC
305
+ * SPDX-License-Identifier: BSD-3-Clause
306
+ *)
307
+
308
+ @lit/reactive-element/decorators/query-all.js:
309
+ (**
310
+ * @license
311
+ * Copyright 2017 Google LLC
312
+ * SPDX-License-Identifier: BSD-3-Clause
313
+ *)
314
+
315
+ @lit/reactive-element/decorators/query-async.js:
316
+ (**
317
+ * @license
318
+ * Copyright 2017 Google LLC
319
+ * SPDX-License-Identifier: BSD-3-Clause
320
+ *)
321
+
322
+ @lit/reactive-element/decorators/query-assigned-elements.js:
323
+ (**
324
+ * @license
325
+ * Copyright 2021 Google LLC
326
+ * SPDX-License-Identifier: BSD-3-Clause
327
+ *)
328
+
329
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
330
+ (**
331
+ * @license
332
+ * Copyright 2017 Google LLC
333
+ * SPDX-License-Identifier: BSD-3-Clause
334
+ *)
335
+ */
336
+
337
+ export { $ as LottiePlayer, qe as PlayMode, We as PlayerEvents, je as PlayerState, Ue as parseSrc };
338
+ //# sourceMappingURL=out.js.map
339
+ //# sourceMappingURL=lottie-player.mjs.map