@aarsteinmedia/dotlottie-player 6.6.4 → 6.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t){"use strict";let e,s,i,r,a,n,o,h,l,p,c,m,u,d,f=Math.PI/180,g="http://www.w3.org/1999/xlink",y="http://www.w3.org/2000/svg",v=!("u">typeof window&&document),b="u">typeof navigator,_={current:""},x=t=>t.endsWith("/")?x(t.slice(0,Math.max(0,t.length-1))):t,w=(t,e)=>1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e)),S=t=>1e-5>=Math.abs(t),E=(t,e)=>w(t[0],e[0])&&w(t[1],e[1]),k=(i=0,()=>(i++,`${_.current}__lottie_element_${i}`)),C=(t,e=0,s=100)=>{let i=e,r=s;if(i>r){let t=r;r=i,i=t}return Math.min(Math.max(t,i),r)},P=(...t)=>{},M=(t,e)=>{let s=new Blob([t],{type:e?.mimeType??""}),i=e?.name||k(),r=URL.createObjectURL(s),a=document.createElement("a");a.href=r,a.download=i,a.hidden=!0,document.body.appendChild(a),a.click(),setTimeout(()=>{a.remove(),URL.revokeObjectURL(r)},1e3)},A=t=>"number"==typeof t&&t>0?t:!v&&devicePixelRatio>0?devicePixelRatio:1,T=t=>{let e;if("string"==typeof t&&t&&((e=t?.split("/").pop()?.lastIndexOf("."))??0)>1&&t&&t.length-1>(e??0))return t.split(".").pop()?.toLowerCase()},D=t=>{let e=t.split(":")[1]?.split(";")[0];return e.split("/")[1]?.split("+")[0]},I=(t,e)=>(T(t),`${t.split("/").pop()?.replace(/\.[^.]*$/,"").replaceAll(/\W+/g,"-")}`),F=(t,e)=>{if(e)return T(e)?T(e)===t?e:`${I(e)}.${t}`:`${e}.${t}`},L=t=>Symbol.iterator in Object(t)&&t.length>0,$=t=>L(t)&&"number"==typeof t[0],N=t=>!("h"in t)&&!("w"in t)&&"p"in t&&"e"in t&&"u"in t&&"id"in t,V=t=>"w"in t&&"h"in t&&!("xt"in t)&&"p"in t,R=t=>!(!t||L(t))&&"_type"in t&&"ShapePath"===t._type,O=t=>t.slice(Math.max(0,t.indexOf(",")+1)),z=t=>{if(!t)return"rgb(0,0,0)";let e=(t[0]??0)|0,s=(t[1]??0)|0,i=(t[2]??0)|0;return`rgb(${e},${s},${i})`},B=t=>`${x(t)}/`;var G,q,j,H,W,J,U,Y,X,K,Z,Q,tt,te=((Q={}).Float32="float32",Q.Int16="int16",Q.Int32="int32",Q.Uint8="uint8",Q.Uint8c="uint8c",Q),ts=((G={}).MouseModifier="ms",G.OffsetPathModifier="op",G.PuckerAndBloatModifier="pb",G.RepeaterModifier="rp",G.RoundCornersModifier="rd",G.TrimModifier="tm",G.ZigZagModifier="zz",G),ti=((q={}).Bounce="bounce",q.Normal="normal",q),tr=((j={}).Active="_active",j.Complete="complete",j.ConfigError="configError",j.ConfigReady="config_ready",j.DataFailed="data_failed",j.DataReady="data_ready",j.Destroy="destroy",j.Destroyed="destroyed",j.DOMLoaded="DOMLoaded",j.DrawnFrame="drawnFrame",j.EnterFrame="enterFrame",j.Error="error",j.Frame="frame",j.Freeze="freeze",j.Idle="_idle",j.Load="load",j.LoadedImages="loaded_images",j.Loop="loop",j.LoopComplete="loopComplete",j.MouseEnter="mouseenter",j.MouseLeave="mouseleave",j.Next="next",j.Pause="_pause",j.Play="_play",j.Previous="previous",j.Ready="ready",j.Rendered="rendered",j.RenderFrameError="renderFrameError",j.SegmentStart="segmentStart",j.Stop="stop",j),ta=((H={}).Contain="xMidYMid meet",H.Cover="xMidYMid slice",H.Initial="none",H.None="xMinYMin slice",H),tn=((W={}).Canvas="canvas",W.SVG="svg",W),to=((J={}).Ellipse="el",J.Fill="fl",J.GradientFill="gf",J.GradientStroke="gs",J.Group="gr",J.Merge="mm",J.NoStyle="no",J.OffsetPath="op",J.Path="sh",J.PolygonStar="sr",J.PuckerBloat="pb",J.Rectangle="rc",J.Repeater="rp",J.RoundedCorners="rd",J.Stroke="st",J.Transform="tr",J.Trim="tm",J.Twist="tw",J.Unknown="ms",J.ZigZag="zz",J),th=((U={}).TransformEffect="transformEffect",U),tl=((Y={}).MultiDimensional="multidimensiional",Y.Shape="shape",Y.TextSelector="textSelector",Y.Transform="transform",Y.UniDimensional="unidimensional",Y);let tp={1:"butt",2:"round",3:"square"},tc={1:"miter",2:"round",3:"bevel"},tm=(()=>{function t(t,e){let s,i=[];switch(t){case te.Int16:case te.Uint8c:s=1;break;case te.Float32:case te.Int32:case te.Uint8:default:s=1.1}for(let t=0;t<e;t++)i.push(s);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,s){return e===te.Float32?new Float32Array(s):e===te.Int16?new Int16Array(s):e===te.Uint8c?new Uint8ClampedArray(s):t(e,s)}:t})();function tu(t){return Array.from({length:t})}class td{constructor(){this.props=tm(te.Float32,16),this._identity=!0,this._identityCalculated=!1,this.reset()}applyToPoint(t,e,s){return{x:t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}}applyToPointArray(t,e,s){return this.isIdentity()?[t,e,s]:[t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]]}applyToPointStringified(t,e){if(this.isIdentity())return`${t},${e}`;let s=this.props;return`${Math.round((t*s[0]+e*s[4]+s[12])*100)/100},${Math.round((t*s[1]+e*s[5]+s[13])*100)/100}`}applyToTriplePoints(t,e,s){let i=tm(te.Float32,6);if(this.isIdentity())i.set([t[0],t[1],e[0],e[1],s[0],s[1]]);else{let r=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i.set([t[0]*r+t[1]*n+h,t[0]*a+t[1]*o+l,e[0]*r+e[1]*n+h,e[0]*a+e[1]*o+l,s[0]*r+s[1]*n+h,s[0]*a+s[1]*o+l])}return i}applyToX(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}applyToY(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}applyToZ(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}clone(t){return t.props.set(this.props),t}cloneFromProps(t){return this.props.set(t),this}equals(t){return this.props.every((e,s)=>e===t?.props[s])}getInverseMatrix(){let t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,s=-this.props[1]/t,i=-this.props[4]/t,r=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new td;return o.setTransform(e,s,0,0,i,r,0,0,0,0,1,0,a,n,0,1),o}inversePoint(t){return this.getInverseMatrix().applyToPoint(t[0],t[1],t[2]??0)}inversePoints(t){return t.map(t=>this.inversePoint(t))}isIdentity(){return this._identityCalculated||(this._identity=1===this.props[0]&&0===this.props[1]&&0===this.props[2]&&0===this.props[3]&&0===this.props[4]&&1===this.props[5]&&0===this.props[6]&&0===this.props[7]&&0===this.props[8]&&0===this.props[9]&&1===this.props[10]&&0===this.props[11]&&0===this.props[12]&&0===this.props[13]&&0===this.props[14]&&1===this.props[15],this._identityCalculated=!0),this._identity}multiply(t){return this.transform(...t.props)}reset(){return this.props.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this}rotate(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1)}rotateX(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1)}rotateY(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1)}rotateZ(t){return this.rotate(t)}scale(t,e,s=1){return 1===t&&1===e&&1===s?this:this._t(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1)}setTransform(t,e,s,i,r,a,n,o,h,l,p,c,m,u,d,f){return this.props.set([t,e,s,i,r,a,n,o,h,l,p,c,m,u,d,f]),this}shear(t,e){return this._t(1,e,t,1,0,0)}skew(t,e){return this.shear(Math.tan(t),Math.tan(e))}skewFromAxis(t,e){let s=Math.cos(e),i=Math.sin(e);return this._t(s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1)._t(s,-i,0,0,i,s,0,0,0,0,1,0,0,0,0,1)}to2dCSS(){let t=this.roundMatrixProperty(this.props[0]),e=this.roundMatrixProperty(this.props[1]),s=this.roundMatrixProperty(this.props[4]),i=this.roundMatrixProperty(this.props[5]),r=this.roundMatrixProperty(this.props[12]),a=this.roundMatrixProperty(this.props[13]);return`matrix(${t},${e},${s},${i},${r},${a})`}toCSS(){let t="matrix3d(";for(let e=0;e<16;e++)t+=`${Math.round(1e4*this.props[e])/1e4}`+(15===e?")":",");return t}transform(t,e,s,i,r,a,n,o,h,l,p,c,m,u,d,f){let g=this.props;if(1===t&&0===e&&0===s&&0===i&&0===r&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===c)return g[12]=g[12]*t+g[15]*m,g[13]=g[13]*a+g[15]*u,g[14]=g[14]*p+g[15]*d,g[15]*=f,this._identityCalculated=!1,this;let y=g[0],v=g[1],b=g[2],_=g[3],x=g[4],w=g[5],S=g[6],E=g[7],k=g[8],C=g[9],P=g[10],M=g[11],A=g[12],T=g[13],D=g[14],I=g[15];return g[0]=y*t+v*r+b*h+_*m,g[1]=y*e+v*a+b*l+_*u,g[2]=y*s+v*n+b*p+_*d,g[3]=y*i+v*o+b*c+_*f,g[4]=x*t+w*r+S*h+E*m,g[5]=x*e+w*a+S*l+E*u,g[6]=x*s+w*n+S*p+E*d,g[7]=x*i+w*o+S*c+E*f,g[8]=k*t+C*r+P*h+M*m,g[9]=k*e+C*a+P*l+M*u,g[10]=k*s+C*n+P*p+M*d,g[11]=k*i+C*o+P*c+M*f,g[12]=A*t+T*r+D*h+I*m,g[13]=A*e+T*a+D*l+I*u,g[14]=A*s+T*n+D*p+I*d,g[15]=A*i+T*o+D*c+I*f,this._identityCalculated=!1,this}translate(t,e,s){let i=s||0;return 0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}_t(...t){if(6===t.length){let[e,s,i,r,a,n]=t;return this.transform(e,s,0,0,i,r,0,0,0,0,1,0,a,n,0,1)}return this.transform(...t)}roundMatrixProperty(t){return t<1e-6&&t>0||t>-1e-6&&t<0?Math.round(1e4*t)/1e4:t}}function tf(t){return v?null:document.createElementNS(y,t)}let tg={current:""},ty=()=>tg.current,tv={};class tb{constructor(t){let e;this.filters=[];let{length:s}=t.data.ef??[];for(let i=0;i<s;i++){e=null;let s=t.data.ef?.[i]?.ty;s&&tv[s]&&(e=new tv[s].effect(t.effectsManager?.effectElements[i],t)),e&&this.filters.push(e)}this.filters.length>0&&t.addRenderableComponent(this)}getEffects(t){let{length:e}=this.filters,s=[];for(let i=0;i<e;i++){let e=this.filters[i];e.type===t&&s.push(e)}return s}renderFrame(t){let{length:e}=this.filters;for(let s=0;s<e;s++)this.filters[s]?.renderFrame(t)}}let t_=new class{constructor(){if(this.maskType=!0,this.offscreenCanvas="u">typeof OffscreenCanvas,this.svgLumaHidden=!0,!b)return;this.maskType=!/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),this.svgLumaHidden=!/firefox/i.test(navigator.userAgent)}};function tx(t){return v?null:document.createElement(t)}let tw={default:150};class tS{constructor(t,e,s){this._length=0,this._maxLength=t,this._create=e,this._release=s,this.pool=tu(this._maxLength),this.newElement=this.newElement.bind(this),this.release=this.release.bind(this)}newElement(){let t;return this._length?(this._length-=1,t=this.pool[this._length]):t=this._create(),t}release(t){if(this._length===this._maxLength){var e;this.pool=[...e=this.pool,...tu(e.length)],this._maxLength*=2}this._release&&this._release(t),this.pool[this._length]=t,this._length++}}let tE=new tS(8,()=>({addedLength:0,lengths:tm(te.Float32,tw.default),percents:tm(te.Float32,tw.default)})),tk=new tS(8,()=>({lengths:[],totalLength:0}),t=>{if(!R(t))return;let{length:e}=t.lengths;for(let s=0;s<e;s++)tE.release(t.lengths[s]);t.lengths.length=0}),tC=tm(te.Float32,8);function tP(t,e,s,i){let r={},a=`${t[0]}_${t[1]}_${e[0]}_${e[1]}_${s[0]}_${s[1]}_${i[0]}_${i[1]}`.replaceAll(".","p");if(!r[a]){let n=tw.default,o,h,l=0,p,c,m=null;2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&tT(t[0],t[1],e[0],e[1],t[0]+s[0],t[1]+s[1])&&tT(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(n=2);let u=new tL(n),{length:d}=s;for(let r=0;r<n;r++){c=tu(d),h=r/(n-1),p=0;for(let r=0;r<d;r++)o=Math.pow(1-h,3)*(t[r]??0)+3*Math.pow(1-h,2)*h*((t[r]??0)+(s[r]??0))+3*(1-h)*Math.pow(h,2)*((e[r]??0)+(i[r]??0))+Math.pow(h,3)*(e[r]??0),c[r]=o,null!==m&&(p+=Math.pow(c[r]-m[r],2));l+=p=Math.sqrt(p),u.points[r]=new t$(p,c),m=c}u.segmentLength=l,r[a]=u}return r[a]}function tM(t,e,s,i,r,a,n){let o=r,h=a;o<0?o=0:o>1&&(o=1);let l=tF(o,n),p=tF(h=h>1?1:h,n),c=1-l,m=1-p,u=c*c*c,d=l*c*c*3,f=l*l*c*3,g=l*l*l,y=c*c*m,v=l*c*m+c*l*m+c*c*p,b=l*l*m+c*l*p+l*c*p,_=l*l*p,x=c*m*m,w=l*m*m+c*p*m+c*m*p,S=l*p*m+c*p*p+l*m*p,E=l*p*p,k=m*m*m,C=p*m*m+m*p*m+m*m*p,P=p*p*m+m*p*p+p*m*p,M=p*p*p,{length:A}=t;for(let r=0;r<A;r++)tC[4*r]=Math.round((u*(t[r]??0)+d*(s[r]??0)+f*(i[r]??0)+g*(e[r]??0))*1e3)/1e3,tC[4*r+1]=Math.round((y*(t[r]??0)+v*(s[r]??0)+b*(i[r]??0)+_*(e[r]??0))*1e3)/1e3,tC[4*r+2]=Math.round((x*(t[r]??0)+w*(s[r]??0)+S*(i[r]??0)+E*(e[r]??0))*1e3)/1e3,tC[4*r+3]=Math.round((k*(t[r]??0)+C*(s[r]??0)+P*(i[r]??0)+M*(e[r]??0))*1e3)/1e3;return tC}function tA(t){let e,s=tk.newElement(),i=t.c,r=t.v,a=t.o,n=t.i,o=t._length||0,{lengths:h}=s,l=0;for(e=0;e<o-1;e++)h[e]=tI(r[e],r[e+1],a[e],n[e+1]),l+=h[e]?.addedLength??0;return i&&o&&(h[e]=tI(r[e],r[0],a[e],n[0]),l+=h[e]?.addedLength??0),s.totalLength=l,s}function tT(t,e,s,i,r,a){let n=t*i+e*r+s*a-r*i-a*t-s*e;return n>-.001&&n<.001}function tD(t,e,s,i,r,a,n,o,h){let l;if(0===s&&0===a&&0===h)return tT(t,e,i,r,n,o);let p=Math.sqrt(Math.pow(i-t,2)+Math.pow(r-e,2)+Math.pow(a-s,2)),c=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)+Math.pow(h-s,2)),m=Math.sqrt(Math.pow(n-i,2)+Math.pow(o-r,2)+Math.pow(h-a,2));return(l=p>c?p>m?p-c-m:m-c-p:m>c?m-c-p:c-p-m)>-1e-4&&l<1e-4}function tI(t,e,s,i){let r=tw.default,a,n,o=0,h,l=[],p=[],c=tE.newElement(),m=s.length;for(let u=0;u<r;u++){n=u/(r-1),h=0;for(let r=0;r<m;r++)a=Math.pow(1-n,3)*(t[r]??0)+3*Math.pow(1-n,2)*n*(s[r]??0)+3*(1-n)*Math.pow(n,2)*(i[r]??0)+Math.pow(n,3)*(e[r]??0),l[r]=a,"number"==typeof p[r]&&(h+=Math.pow((l[r]??0)-(p[r]??0),2)),p[r]=l[r]??0;h&&(o+=h=Math.sqrt(h)),c.percents[u]=n,c.lengths[u]=o}return c.addedLength=o,c}function tF(t,{addedLength:e,lengths:s,percents:i}){let{length:r}=i,a=Math.floor((r-1)*t),n=t*e,o=0;if(a===r-1||0===a||n===s[a])return i[a];let h=(s[a]??0)>n?-1:1,l=!0;for(;l;)if((s[a]??0)<=n&&(s[a+1]??0)>n?(o=(n-(s[a]??0))/((s[a+1]??0)-(s[a]??0)),l=!1):a+=h,a<0||a>=r-1){if(a===r-1)return i[a];l=!1}return(i[a]??0)+((i[a+1]??0)-(i[a]??0))*o}class tL{constructor(t){this.segmentLength=0,this.points=Array.from({length:t})}}class t${constructor(t,e){this.partialLength=t,this.point=e}}let tN=function(t,e,s,i,r,a){let n=tF(r,a),o=1-n;return[Math.round((o*o*o*t[0]+(n*o*o+o*n*o+o*o*n)*s[0]+(n*n*o+o*n*n+n*o*n)*i[0]+n*n*n*e[0])*1e3)/1e3,Math.round((o*o*o*t[1]+(n*o*o+o*n*o+o*o*n)*s[1]+(n*n*o+o*n*n+n*o*n)*i[1]+n*n*n*e[1])*1e3)/1e3]},tV={};function tR(t,e,s,i,r){let a=r||`bez_${t}_${e}_${s}_${i}`.replaceAll(".","p");if(tV[a])return tV[a];let n=new tO([t,e,s,i]);return tV[a]=n,n}class tO{constructor(t){this._precomputed=!1,this.float32ArraySupported="function"==typeof Float32Array,this.kSplineTableSize=11,this.kSampleStepSize=1/(this.kSplineTableSize-1),this.NEWTON_ITERATIONS=4,this.NEWTON_MIN_SLOPE=.001,this.SUBDIVISION_MAX_ITERATIONS=10,this.SUBDIVISION_PRECISION=1e-7,this._p=t,this._mSampleValues=this.float32ArraySupported?new Float32Array(this.kSplineTableSize):Array.from({length:this.kSplineTableSize}),this.get=this.get.bind(this)}_calcSampleValues(){let t=this._p[0],e=this._p[2];for(let s=0;s<this.kSplineTableSize;++s)this._mSampleValues[s]=this.calcBezier(s*this.kSampleStepSize,t,e)}_getTForX(t){let e=this._p[0],s=this._p[2],i=this._mSampleValues,r=0,a=1,n=this.kSplineTableSize-1;for(;a!==n&&Number(i[a])<=t;)r+=this.kSampleStepSize,++a;let o=r+(t-Number(i[--a]))/(Number(i[a+1])-Number(i[a]))*this.kSampleStepSize,h=this.getSlope(o,e,s);return h>=this.NEWTON_MIN_SLOPE?this.newtonRaphsonIterate(t,o,e,s):0===h?o:this.binarySubdivide(t,r,r+this.kSampleStepSize,e,s)}_precompute(){let t=this._p[0],e=this._p[1],s=this._p[2],i=this._p[3];this._precomputed=!0,(t!==e||s!==i)&&this._calcSampleValues()}get(t){let e=this._p[0],s=this._p[1],i=this._p[2],r=this._p[3];return(this._precomputed||this._precompute(),e===s&&i===r)?t:0===t?0:1===t?1:this.calcBezier(this._getTForX(t),s,r)}A(t,e){return 1-3*e+3*t}B(t,e){return 3*e-6*t}binarySubdivide(t,e,s,i,r){let a=e,n=s,o,h,l=0;do h=a+(n-a)/2,(o=this.calcBezier(h,i,r)-t)>0?n=h:a=h;while(Math.abs(o)>this.SUBDIVISION_PRECISION&&++l<this.SUBDIVISION_MAX_ITERATIONS);return h}C(t){return 3*t}calcBezier(t,e,s){return((this.A(e,s)*t+this.B(e,s))*t+this.C(e))*t}getSlope(t,e,s){return 3*this.A(e,s)*t*t+2*this.B(e,s)*t+this.C(e)}newtonRaphsonIterate(t,e,s,i){let r=e;for(let e=0;e<this.NEWTON_ITERATIONS;++e){let e=this.getSlope(r,s,i);if(0===e)break;let a=this.calcBezier(r,s,i)-t;r-=a/e}return r}}class tz{addDynamicProperty(t){this.dynamicProperties.includes(t)||(this.dynamicProperties.push(t),this.container?.addDynamicProperty(this),this._isAnimated=!0)}getValue(t){throw Error(`${this.constructor.name}: Method getValue is not implemented`)}initDynamicPropertyContainer(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}iterateDynamicProperties(){this._mdf=!1;let{length:t}=this.dynamicProperties;for(let e=0;e<t;e++)this.dynamicProperties[e]?.getValue(),this.dynamicProperties[e]?._mdf&&(this._mdf=!0);return 0}setGroupProperty(t){}constructor(){this.dynamicProperties=[]}}let tB=t=>{let e=t[0]*f,s=t[1]*f,i=t[2]*f,r=Math.cos(e/2),a=Math.cos(s/2),n=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(s/2),l=Math.sin(i/2);return[o*h*n+r*a*l,o*a*n+r*h*l,r*h*n-o*a*l,r*a*n-o*h*l]};class tG extends tz{addEffect(t){this.effectsSequence.push(t),this.container?.addDynamicProperty(this)}getSpeedAtTime(t){throw Error(`${this.constructor.name}: Method getSpeedAtTime is not implemented`)}getValueAtCurrentTime(){if(this._caching=this._caching??{},!this.keyframes)return;let{_caching:t,comp:e,keyframes:s,offsetTime:i}=this,r=Number(e?.renderedFrame)-i,a=(s[0]?.t??0)-i,n=s.length-1,o=(s[n]?.t??0)-i,{lastFrame:h}=t;return r===h||-999999!==h&&(h>=o&&r>=o||h<a&&r<a)||(h>=r&&(t._lastKeyframeIndex=-1,t.lastIndex=0),this.pv=this.interpolateValue(r,t)),t.lastFrame=r,this.pv}getValueAtTime(t,e){throw Error(`${this.constructor.name}: Method getValueAtTime is not implemented`)}getVelocityAtTime(t){throw Error(`${this.constructor.name}: Method getVelocityAtTime is not implemented`)}initiateExpression(t,e,s){throw Error("Method not implemented")}interpolateValue(t,e={}){let s,{offsetTime:i,pv:r}=this,a=[0,0,0];this.propType===tl.MultiDimensional&&r&&(a=tm(te.Float32,r.length));let{keyframes:n=[],keyframesMetadata:o,propType:h}=this,l=e.lastIndex||0,p=l,c=n.length-1,m=!0,u=n[0]??{},d=n[1]??{};for(;m;){if(u=n[p]??{},d=n[p+1]??{},p===c-1&&t>=d.t-i){u.h&&(u=d),l=0;break}if(d.t-i>t){l=p;break}p<c-1?p++:(l=0,m=!1)}let g=o[p]??{},y,v,b,_,x=null,w=d.t-i,S=u.t-i;if(u.to&&u.s){g.bezierData=g.bezierData??tP(u.s,d.s??u.e,u.to,u.ti);let{__fnct:s,bezierData:i}=g;if(t>=w||t<S){let e=t>=w?i.points.length-1:0;y=i.points[e]?.point.length??0;for(let t=0;t<y;t++)a[t]=i.points[e]?.point[t]??0}else{s?x=s:g.__fnct=x=tR(u.o.x,u.o.y,u.i.x,u.i.y,u.n).get,v=x((t-S)/(w-S));let r=i.segmentLength*v,n,o=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastAddedLength:0;for(_=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastPoint:0,m=!0,b=i.points.length;m;){if(o+=i.points[_]?.partialLength??0,0===r||0===v||_===i.points.length-1){y=i.points[_]?.point.length??0;for(let t=0;t<y;t++)a[t]=i.points[_]?.point[t]??0;break}if(r>=o&&r<o+(i.points[_+1]?.partialLength??0)){n=(r-o)/(i.points[_+1]?.partialLength??0),y=i.points[_]?.point.length??0;for(let t=0;t<y;t++)a[t]=(i.points[_]?.point[t]??0)+((i.points[_+1]?.point[t]??0)-(i.points[_]?.point[t]??0))*n;break}_<b-1?_++:m=!1}e._lastPoint=_,e._lastAddedLength=o-(i.points[_]?.partialLength??0),e._lastKeyframeIndex=p}}else{let e,i,r,n;if(c=u.s?.length||0,s=d.s??u.e,this.sh&&1!==u.h)if(t>=w)a[0]=s[0],a[1]=s[1],a[2]=s[2];else if(t<=S&&u.s)a[0]=u.s[0],a[1]=u.s[1],a[2]=u.s[2];else{var E,k,C;let e,i,r,n,o,h,l,p,c,m,d,g,y,v,b,_,x,P,M,A,T,D=tB(u.s),I=tB(s);k=a,b=(E=(t-S)/(w-S),e=[0,0,0,0],i=D[0],r=D[1],n=D[2],o=D[3],h=I[0],l=I[1],(d=i*h+r*l+n*(p=I[2])+o*(c=I[3]))<0&&(d=-d,h=-h,l=-l,p=-p,c=-c),1-d>1e-6?(g=Math.sin(m=Math.acos(d)),y=Math.sin((1-E)*m)/g,v=Math.sin(E*m)/g):(y=1-E,v=E),e[0]=y*i+v*h,e[1]=y*r+v*l,e[2]=y*n+v*p,e[3]=y*o+v*c,C=e)[0],_=C[1],x=C[2],M=Math.atan2(2*_*(P=C[3])-2*b*x,1-2*_*_-2*x*x),A=Math.asin(2*b*_+2*x*P),T=Math.atan2(2*b*P-2*_*x,1-2*b*b-2*x*x),k[0]=M/f,k[1]=A/f,k[2]=T/f}else for(p=0;p<c;p++)1!==u.h&&(t>=w?v=1:t<S?v=0:(u.o.x.constructor===Array?(g.__fnct=g.__fnct??[],g.__fnct[p]?x=g.__fnct[p]:L(u.o.y)&&L(u.i.y)&&L(u.i.x)&&(e=u.o.x[p]??u.o.x[0],i=u.o.y[p]??u.o.y[0],x=tR(e,i,r=u.i.x[p]??u.i.x[0],u.i.y[p]??u.i.y[0]).get,g.__fnct[p]=x)):g.__fnct?x=g.__fnct:(e=u.o.x,i=u.o.y,x=tR(e,i,r=u.i.x,u.i.y).get,u.keyframeMetadata=x),v=x?.((t-S)/(w-S)))),s=d.s??u.e,void 0!==(n=1===u.h?u.s?.[p]:Number(u.s?.[p])+((s[p]??0)-Number(u.s?.[p]))*Number(v))&&(h===tl.MultiDimensional?a[p]=n:a=n)}return e.lastIndex=l,a}processEffectsSequence(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.elem)throw Error(`${this.constructor.name}: elem (ElementInterface) is not implemented`);if(this.elem.globalData?.frameId===this.frameId)return 0;if(0===this.effectsSequence.length)return this._mdf=!1,0;if(this.lock&&this.pv)return this.setVValue(this.pv),0;this.lock=!0,this._mdf=!!this._isFirstFrame;let t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(let s=0;s<t;s++)e=this.effectsSequence[s]?.(e);return this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData?.frameId,0}setVValue(t){let e;if("number"==typeof t&&this.propType===tl.UniDimensional){e=t*Number(this.mult),Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);return}let s=0,{length:i}=this.v;for(;s<i;)e=(t[s]??0)*Number(this.mult),Math.abs((this.v[s]??0)-e)>1e-5&&(this.v[s]=e,this._mdf=!0),s++}speedAtTime(t){throw Error("Method is not implemented")}valueAtTime(t,e){throw Error(`${this.constructor.name}: Method valueAtTime is not implemented`)}velocityAtTime(t){throw Error("Method is not implemented")}constructor(...t){super(...t),this._isFirstFrame=!1,this.effectsSequence=[],this.initFrame=-999999,this.keyframesMetadata=[],this.offsetTime=0}}class tq extends tG{constructor(t,e,s=null,i=null){let r,a,n,o;super(),this.propType=tl.MultiDimensional;let{length:h}=e.k;for(let t=0;t<h-1;t++)e.k[t]?.to&&e.k[t]?.s&&e.k[t+1]?.s&&(r=e.k[t]?.s,a=e.k[t+1]?.s,n=e.k[t]?.to,o=e.k[t]?.ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&tT(r[0]??0,r[1]??0,a[0]??0,a[1]??0,(r[0]??0)+(n[0]??0),(r[1]??0)+(n[1]??0))&&tT(r[0]??0,r[1]??0,a[0]??0,a[1]??0,(a[0]??0)+(o[0]??0),(a[1]??0)+(o[1]??0))||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&tD(r[0]??0,r[1]??0,r[2]??0,a[0]??0,a[1]??0,a[2]??0,(r[0]??0)+(n[0]??0),(r[1]??0)+(n[1]??0),(r[2]??0)+(n[2]??0))&&tD(r[0]??0,r[1]??0,r[2]??0,a[0]??0,a[1]??0,a[2]??0,(a[0]??0)+(o[0]??0),(a[1]??0)+(o[1]??0),(a[2]??0)+(o[2]??0)))&&(e.k[t].to=null,e.k[t].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===r.length||r[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[t].to=null,e.k[t].ti=null));this.effectsSequence=[this.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=s||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=this.processEffectsSequence,this.frameId=-1;let l=e.k[0]?.s?.length||0;this.v=tm(te.Float32,l),this.pv=tm(te.Float32,l);for(let t=0;t<l;t++)this.v[t]=this.initFrame,this.pv[t]=this.initFrame;this._caching={lastFrame:this.initFrame,lastIndex:0,value:tm(te.Float32,l)}}}class tj extends tG{constructor(t,e,s=null,i=null){super(),this.propType=tl.UniDimensional,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={_lastKeyframeIndex:-1,lastFrame:this.initFrame,lastIndex:0,value:0},this.k=!0,this.kf=!0,this.data=e,this.mult=s||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=this.initFrame,this.pv=this.initFrame,this._isFirstFrame=!0,this.getValue=this.processEffectsSequence,this.effectsSequence=[this.getValueAtCurrentTime.bind(this)]}}class tH extends tG{constructor(t,e,s=null,i=null){super(),this.propType=tl.MultiDimensional,this.mult=s||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;let{length:r}=e.k;this.v=tm(te.Float32,r),this.pv=tm(te.Float32,r),this.vel=tm(te.Float32,r);for(let t=0;t<r;t++)this.v[t]=(e.k[t]??0)*this.mult,this.pv[t]=e.k[t]??0;this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=this.processEffectsSequence}}class tW extends tG{constructor(){super(),this.propType=!1}}class tJ extends tG{constructor(t,e,s=null,i=null){super(),this.propType=tl.UniDimensional,this.mult=s||1,this.data=e,this.v=e.k*(s||1),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=this.processEffectsSequence}}let tU={getProp:function(t,e,s,i,r){let a,n=e;if(n&&"sid"in n&&n.sid&&(n=t.globalData?.slotManager?.getProp(n)),!n)return new tW;if("number"==typeof n.k)a=new tJ(t,n,i,r);else if($(n.k))a=new tH(t,n,i,r);else switch(s){case 0:a=new tj(t,n,i,r);break;case 1:a=new tq(t,n,i,r)}return(a=a??new tW).effectsSequence.length>0&&r?.addDynamicProperty(a),a}},tY=new tS(8,()=>tm(te.Float32,2));class tX{get _type(){return"ShapePath"}constructor(){this._length=0,this._maxLength=8,this.c=!1,this.lengths=[],this.v=tu(this._maxLength),this.o=tu(this._maxLength),this.i=tu(this._maxLength)}doubleArrayLength(){this.v=[...this.v,...tu(this._maxLength)],this.i=[...this.i,...tu(this._maxLength)],this.o=[...this.o,...tu(this._maxLength)],this._maxLength*=2}length(){return this._length}setLength(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t}setPathData(t,e){this.c=t,this.setLength(e);let s=0;for(;s<e;)this.v[s]=tY.newElement(),this.o[s]=tY.newElement(),this.i[s]=tY.newElement(),s++}setTripleAt(t,e,s,i,r,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(s,i,"o",n,o),this.setXYAt(r,a,"i",n,o)}setXYAt(t,e,s,i,r){let a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[i]&&r||(a[i]=tY.newElement()),a[i][0]=t,a[i][1]=e}toReversed(){let t=new tX;t.setPathData(this.c,this._length);let e=this.v,s=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0]?.[0]??0,e[0]?.[1]??0,i[0]?.[0]??0,i[0]?.[1]??0,s[0]?.[0]??0,s[0]?.[1]??0,0,!1),r=1);let{_length:a}=this,n=a-1;for(let o=r;o<a;o++)t.setTripleAt(e[n]?.[0]??0,e[n]?.[1]??0,i[n]?.[0]??0,i[n]?.[1]??0,s[n]?.[0]??0,s[n]?.[1]??0,o,!1),n-=1;return t}}let tK=new tS(4,function(){return new tX},function(t){if(!R(t))return;let e=t._length;for(let s=0;s<e;s++)tY.release(t.v[s]),tY.release(t.i[s]),tY.release(t.o[s]),t.v[s]=null,t.i[s]=null,t.o[s]=null;t._length=0,t.c=!1}),{newElement:tZ}=tK,{release:tQ}=tK;function t0(t){let e=tZ(),s=t._length??t.v.length;e.setLength(s),e.c=t.c;for(let i=0;i<s;i++)e.setTripleAt(t.v[i]?.[0]??0,t.v[i]?.[1]??0,t.o[i]?.[0]??0,t.o[i]?.[1]??0,t.i[i]?.[0]??0,t.i[i]?.[1]??0,i);return e}class t1{constructor(){this._length=0,this._maxLength=4,this.shapes=tu(this._maxLength)}addShape(t){this._length===this._maxLength&&(this.shapes=[...this.shapes,...tu(this._maxLength)],this._maxLength*=2),this.shapes[this._length]=t,this._length++}releaseShapes(){for(let t=0;t<this._length;t++)tQ(this.shapes[t]);this._length=0}}function t2(){return new t1}tu(4);class t3 extends tz{getValueAtTime(t,e){throw Error(`${this.constructor.name}: Method getShapeValueAtTime is not implemented`)}initiateExpression(t,e,s){throw Error(`${this.constructor.name}: Method initiateExpression is not implemented`)}interpolateShape(t,e,s={}){let i=s.lastIndex||0,r,a,n,o=0,h,l=this.keyframes??[];if(t<(l[0]?.t??0)-this.offsetTime)r=l[0]?.s?.[0]??0,n=!0,i=0;else if(t>=(l[l.length-1]?.t??0)-this.offsetTime)r=l[l.length-1]?.s?l[l.length-1]?.s?.[0]:l[l.length-2]?.e[0],n=!0;else{let e=i,s=l.length-1,h=!0,p,c;for(;h&&(p=l[e],!((c=l[e+1]).t-this.offsetTime>t));)e<s-1?e++:h=!1;if(!p||!c)throw Error(`${this.constructor.name}: Could not set keyframe data`);let m=this.keyframesMetadata[e]??{};if(n=1===p.h,i=e,!n){if(t>=c.t-this.offsetTime)o=1;else if(t>=p.t-this.offsetTime){let e;m.__fnct?e=m.__fnct:"number"==typeof p.o.x&&"number"==typeof p.o.y&&"number"==typeof p.i.x&&"number"==typeof p.i.y&&(m.__fnct=e=tR(p.o.x,p.o.y,p.i.x,p.i.y).get),o=e?.((t-(p.t-this.offsetTime))/(c.t-this.offsetTime-(p.t-this.offsetTime)))||0}a=c.s?c.s[0]:p.e[0]}r=p.s?.[0]}if(!r||"number"==typeof r||L(r)||"number"==typeof a)return;let p=e._length,c=r.i[0]?.length??0;s.lastIndex=i;for(let t=0;t<p;t++)for(let s=0;s<c;s++)h=n?r.i[t]?.[s]:(r.i[t]?.[s]??0)+((a?.i[t]?.[s]??0)-(r.i[t]?.[s]??0))*o,e.i[t][s]=h,h=n?r.o[t]?.[s]:(r.o[t]?.[s]??0)+((a?.o[t]?.[s]??0)-(r.o[t]?.[s]??0))*o,e.o[t][s]=h,h=n?r.v[t]?.[s]:(r.v[t]?.[s]??0)+((a?.v[t]?.[s]??0)-(r.v[t]?.[s]??0))*o,e.v[t][s]=h}interpolateShapeCurrentTime(){if(!this.pv)throw Error(`${this.constructor.name}: Cannot parse ShapePath v value`);if(!this.keyframes)return;this._caching=this._caching??{};let t=Number(this.comp?.renderedFrame)-this.offsetTime,e=(this.keyframes[0]?.t??0)-this.offsetTime,s=(this.keyframes[this.keyframes.length-1]?.t??0)-this.offsetTime,{lastFrame:i,lastIndex:r}=this._caching;return -999999!==i&&(i<e&&t<e||i>s&&t>s)||(this._caching.lastIndex=i<t?r:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}processEffectsSequence(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(this.elem?.globalData?.frameId===this.frameId)return 0;if(0===this.effectsSequence.length)return this._mdf=!1,0;if(this.lock&&this.pv)return this.setVValue(this.pv),0;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt?.k;let i=this.effectsSequence.length;for(s=0;s<i;s++)e=this.effectsSequence[s]?.(e);return this.setVValue(e),this.lock=!1,this.frameId=this.elem?.globalData?.frameId||0,0}reset(){this.paths=this.localShapeCollection}setVValue(t){if(!this.v||!t)throw Error(`${this.constructor.name}: ShapePath is not set`);if(!this.localShapeCollection)throw Error(`${this.constructor.name}: localShapeCollection is not set`);this.shapesEqual(this.v,t)||(this.v=t0(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}shapesEqual(t,e){if(t._length!==e._length||t.c!==e.c)return!1;let s=t._length||0;for(let i=0;i<s;i++)if(t.v[i]?.[0]!==e.v[i]?.[0]||t.v[i]?.[1]!==e.v[i]?.[1]||t.o[i]?.[0]!==e.o[i]?.[0]||t.o[i]?.[1]!==e.o[i]?.[1]||t.i[i]?.[0]!==e.i[i]?.[0]||t.i[i]?.[1]!==e.i[i]?.[1])return!1;return!0}constructor(...t){super(...t),this.data=void 0,this.effectsSequence=[],this.keyframesMetadata=[],this.offsetTime=0,this.pathsData=[]}}class t5 extends t3{constructor(t,e){super(),this._cPoint=.5519,this.v=tZ(),this.v.setPathData(!0,4),this.localShapeCollection=t2(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=tU.getProp(t,e.p,1,0,this),this.s=tU.getProp(t,e.s,1,0,this),this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertEllToPath())}convertEllToPath(){if("object"!=typeof this.p?.v)return;let t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,r=3!==this.d,a=this.v;if(!a?.v[0]||!a.v[1]||!a.v[2]||!a.v[3]||!a.i[0]||!a.i[1]||!a.i[2]||!a.i[3]||!a.o[0]||!a.o[1]||!a.o[2]||!a.o[3])throw Error(`${this.constructor.name}: Could not get value of ellipse`);a.v[0][0]=t,a.v[0][1]=e-i,a.v[1][0]=r?t+s:t-s,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+i,a.v[3][0]=r?t-s:t+s,a.v[3][1]=e,a.i[0][0]=r?t-s*this._cPoint:t+s*this._cPoint,a.i[0][1]=e-i,a.i[1][0]=r?t+s:t-s,a.i[1][1]=e-i*this._cPoint,a.i[2][0]=r?t+s*this._cPoint:t-s*this._cPoint,a.i[2][1]=e+i,a.i[3][0]=r?t-s:t+s,a.i[3][1]=e+i*this._cPoint,a.o[0][0]=r?t+s*this._cPoint:t-s*this._cPoint,a.o[0][1]=e-i,a.o[1][0]=r?t+s:t-s,a.o[1][1]=e+i*this._cPoint,a.o[2][0]=r?t-s*this._cPoint:t+s*this._cPoint,a.o[2][1]=e+i,a.o[3][0]=r?t-s:t+s,a.o[3][1]=e-i*this._cPoint}getValue(t){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId||0,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath()),0}}class t4 extends t3{constructor(t,e){super(),this.v=tZ(),this.v.c=!0,this.localShapeCollection=t2(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=tU.getProp(t,e.p,1,0,this),this.s=tU.getProp(t,e.s,1,0,this),this.r=tU.getProp(t,e.r,0,0,this),this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertRectToPath())}convertRectToPath(){if("object"!=typeof this.p?.v)throw TypeError(`${this.constructor.name}: p value is not implemented`);let t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,r=Math.min(s,i,this.r.v),a=r*(1-.5519);this.v&&(this.v._length=0),2===this.d||1===this.d?(this.v?.setTripleAt(t+s,e-i+r,t+s,e-i+r,t+s,e-i+a,0,!0),this.v?.setTripleAt(t+s,e+i-r,t+s,e+i-a,t+s,e+i-r,1,!0),0===r?(this.v?.setTripleAt(t-s,e+i,t-s+a,e+i,t-s,e+i,2),this.v?.setTripleAt(t-s,e-i,t-s,e-i+a,t-s,e-i,3)):(this.v?.setTripleAt(t+s-r,e+i,t+s-r,e+i,t+s-a,e+i,2,!0),this.v?.setTripleAt(t-s+r,e+i,t-s+a,e+i,t-s+r,e+i,3,!0),this.v?.setTripleAt(t-s,e+i-r,t-s,e+i-r,t-s,e+i-a,4,!0),this.v?.setTripleAt(t-s,e-i+r,t-s,e-i+a,t-s,e-i+r,5,!0),this.v?.setTripleAt(t-s+r,e-i,t-s+r,e-i,t-s+a,e-i,6,!0),this.v?.setTripleAt(t+s-r,e-i,t+s-a,e-i,t+s-r,e-i,7,!0))):(this.v?.setTripleAt(t+s,e-i+r,t+s,e-i+a,t+s,e-i+r,0,!0),0===r?(this.v?.setTripleAt(t-s,e-i,t-s+a,e-i,t-s,e-i,1,!0),this.v?.setTripleAt(t-s,e+i,t-s,e+i-a,t-s,e+i,2,!0),this.v?.setTripleAt(t+s,e+i,t+s-a,e+i,t+s,e+i,3,!0)):(this.v?.setTripleAt(t+s-r,e-i,t+s-r,e-i,t+s-a,e-i,1,!0),this.v?.setTripleAt(t-s+r,e-i,t-s+a,e-i,t-s+r,e-i,2,!0),this.v?.setTripleAt(t-s,e-i+r,t-s,e-i+r,t-s,e-i+a,3,!0),this.v?.setTripleAt(t-s,e+i-r,t-s,e+i-a,t-s,e+i-r,4,!0),this.v?.setTripleAt(t-s+r,e+i,t-s+r,e+i,t-s+a,e+i,5,!0),this.v?.setTripleAt(t+s-r,e+i,t+s-a,e+i,t+s-r,e+i,6,!0),this.v?.setTripleAt(t+s,e+i-r,t+s,e+i-r,t+s,e+i-a,7,!0)))}getValue(){return this.elem?.globalData?.frameId===this.frameId||(this.elem?.globalData?.frameId&&(this.frameId=this.elem.globalData.frameId),this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath()),0}}class t6 extends t3{constructor(t,e,s){super(),this.propType=tl.Shape,this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;let i=3===s?e.pt?.k:e.ks?.k;if(!i)throw Error(`${this.constructor.name}: Could now get Path Data`);this.v=t0(i),this.pv=t0(this.v),this.localShapeCollection=t2(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.effectsSequence=[],this.getValue=this.processEffectsSequence}}class t8 extends t3{constructor(t,e,s){super(),this.lastFrame=-999999,this.data=e,this.propType=tl.Shape,this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data?.st||0,this.keyframes=3===s?e.pt?.k:e.ks?.k??[],this.keyframesMetadata=[],this.k=!0,this.kf=!0;let i=this.keyframes[0]?.s,{length:r}=i?.[0]?.i??[];this.v=tZ(),this.v.setPathData(!!i?.[0]?.c,r),this.pv=t0(this.v),this.localShapeCollection=t2(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[this.interpolateShapeCurrentTime.bind(this)],this.getValue=this.processEffectsSequence}}class t9 extends t3{constructor(t,e){super(),this.v=tZ(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=tU.getProp(t,e.ir,0,0,this),this.is=tU.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=tU.getProp(t,e.pt,0,0,this),this.p=tU.getProp(t,e.p,1,0,this),this.r=tU.getProp(t,e.r,0,f,this),this.or=tU.getProp(t,e.or,0,0,this),this.os=tU.getProp(t,e.os,0,.01,this),this.localShapeCollection=t2(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertToPath())}convertPolygonToPath(){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(!this.p)throw Error(`${this.constructor.name}: p value is not implemented`);let t=Math.floor(this.pt.v),e=2*Math.PI/t,s=this.or.v,i=this.os.v,r=2*Math.PI*s/(4*t),a=-(.5*Math.PI),n=3===this.data.d?-1:1;a+=this.r.v,this.v&&(this.v._length=0);for(let o=0;o<t;o++){let t=s*Math.cos(a),h=s*Math.sin(a),l=0===t&&0===h?0:h/Math.sqrt(t*t+h*h),p=0===t&&0===h?0:-t/Math.sqrt(t*t+h*h),c=Array.isArray(this.p.v)?this.p.v:[0,0];t+=c[0],h+=c[1],this.v?.setTripleAt(t,h,t-l*r*i*n,h-p*r*i*n,t+l*r*i*n,h+p*r*i*n,o,!0),a+=e*n}this.paths.length=0,this.paths[0]=this.v}convertStarToPath(){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(!this.v)throw Error(`${this.constructor.name}: v (ShapePath) is not implemented`);let t=2*Math.floor(this.pt.v),e=2*Math.PI/t,s=!0,i=this.or.v,r=Number(this.ir?.v),a=this.os.v,n=Number(this.is?.v),o=2*Math.PI*i/(2*t),h=2*Math.PI*r/(2*t),l,p,c,m=-Math.PI/2;m+=this.r.v;let u=3===this.data.d?-1:1;this.v._length=0;for(let d=0;d<t;d++){l=s?i:r,p=s?a:n,c=s?o:h;let t=l*Math.cos(m),f=l*Math.sin(m),g=0===t&&0===f?0:f/Math.sqrt(t*t+f*f),y=0===t&&0===f?0:-t/Math.sqrt(t*t+f*f),v=Array.isArray(this.p?.v)?this.p.v:[0,0];t+=v[0],f+=v[1],this.v.setTripleAt(t,f,t-g*c*p*u,f-y*c*p*u,t+g*c*p*u,f+y*c*p*u,d,!0),s=!s,m+=e*u}}convertToPath(){throw Error(`${this.constructor.name}: Method convertToPath is not implemented`)}getValue(t){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId||0,this.iterateDynamicProperties(),this._mdf&&this.convertToPath()),0}}let t7={getConstructorFunction:function(){return t6},getKeyframeConstructorFunction:function(){return t8},getShapeProp:function(t,e,s,i,r){let a=null;switch(s){case 3:case 4:{let i=3===s?e.pt:e.ks,r=i?.k;if(r?.length){a=new t8(t,e,s);break}a=new t6(t,e,s);break}case 5:a=new t4(t,e);break;case 6:a=new t5(t,e);break;case 7:a=new t9(t,e)}return a?.k&&t.addDynamicProperty(a),a}};class et{constructor(t,e,s){this.p=tU.getProp(e,t.v,0,0,s)}}class ee{constructor(t,e,s){this.p=tU.getProp(e,t.v,1,0,s)}}class es extends et{}class ei extends et{}class er extends ee{}class ea extends ee{}class en extends et{}class eo extends et{}class eh extends et{}class el{constructor(){this.p={}}}class ep extends tz{constructor(t,e,s){super(),this.data=void 0,this.effectElements=[],this.getValue=this.iterateDynamicProperties,this.init(t,e,s)}init(t,e,s){let i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);let r=this.data.ef,{length:a}=r;for(let t=0;t<a;t++){switch(r[t]?.ty){case 0:i=new es(r[t],e,this);break;case 1:i=new ei(r[t],e,this);break;case 2:i=new er(r[t],e,this);break;case 3:i=new ea(r[t],e,this);break;case 4:case 7:i=new eh(r[t],e,this);break;case 10:i=new en(r[t],e,this);break;case 11:i=new eo(r[t],e,this);break;case 5:i=new ep(r[t],e,s);break;default:i=new el}this.effectElements.push(i)}}renderFrame(t){throw Error(`${this.constructor.name}: Method renderFrame is not implemented yet`)}}class ec{constructor(t,e,s){this.effectElements=[];let i=t.ef??[],{length:r}=i;for(let s=0;s<r;s++){let r=new ep(i[s],e,t);this.effectElements.push(r)}}}let em={interface:null,plugin:null},eu=t=>{em.plugin=t};function ed(t=16){return({0:"source-over",1:"multiply",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity",16:"normal",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light"})[t]??"normal"}let ef=class{checkMasks(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not initialized`);if(!this.data.hasMask)return!1;let t=0,{length:e}=this.data.masksProperties??[];for(;t<e;){if(this.data.masksProperties?.[t]?.mode!=="n"&&this.data.masksProperties?.[t]?.cl!==!1)return!0;t++}return!1}destroy(){}getBaseElement(){return null}getType(){return this.type}initBaseData(t,e,s){this.globalData=e,this.comp=s,this.data=t,this.layerId=k(),this.data.sr||(this.data.sr=1),this.effectsManager=new ec(this.data,this,this.dynamicProperties)}initExpressions(){try{if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=em.interface;if(!t)return;let e=t("layer"),s=t("effects"),i=t("shape"),r=t("text"),a=t("comp");this.layerInterface=new e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);let n=new s().createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(n),0===this.data.ty||this.data.xt){this.compInterface=new a(this);return}if(4===this.data.ty){this.layerInterface.shapeInterface=new i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;return}5===this.data.ty&&(this.layerInterface.textInterface=new r(this),this.layerInterface.text=this.layerInterface.textInterface)}catch(t){P(this.constructor.name,t)}}setBlendMode(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=ed(this.data.bm),e=this.baseElement??this.layerElement;if(!e)throw Error(`${this.constructor.name}: Both baseElement and layerElement are not implemented`);e.style.mixBlendMode=t}sourceRectAtTime(){return null}constructor(){this.baseElement=null,this.dynamicProperties=[],this.frameDuration=1,this.itemsData=[],this.layerElement=null,this.layerInterface=null,this.renderedFrame=-1,this.shapesData=[]}};class eg extends tG{constructor(t,e,s){if(super(),this.appliedTransformations=0,this.pre=new td,this.defaultVector=[0,0],this.elem=t,this.frameId=-1,this.propType=tl.Transform,this.data=e,this.v=new td,this.initDynamicPropertyContainer(s??t),e.p&&"s"in e.p?(this.px=tU.getProp(t,e.p.x,0,0,this),this.py=tU.getProp(t,e.p.y,0,0,this),"z"in e.p&&(this.pz=tU.getProp(t,e.p.z,0,0,this))):this.p=tU.getProp(t,e.p??{k:[0,0,0]},1,0,this),"rx"in e){if(this.rx=tU.getProp(t,e.rx,0,f,this),this.ry=tU.getProp(t,e.ry,0,f,this),this.rz=tU.getProp(t,e.rz,0,f,this),e.or?.k[0]?.ti){let{length:t}=e.or.k;for(let s=0;s<t;s++){let t=e.or.k[s];t.to=null,t.ti=null}}this.or=tU.getProp(t,e.or,1,f,this),this.or.sh=!0}else this.r=tU.getProp(t,e.r??{k:0},0,f,this);e.sk&&(this.sk=tU.getProp(t,e.sk,0,f,this),this.sa=tU.getProp(t,e.sa,0,f,this)),this.a=tU.getProp(t,e.a??{k:[0,0,0]},1,0,this),this.s=tU.getProp(t,e.s??{k:[100,100,100]},1,.01,this),e.o?this.o=tU.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,0===this.dynamicProperties.length&&this.getValue(!0)}addDynamicProperty(t){super.addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}applyToMatrix(t){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);this.iterateDynamicProperties(),this._mdf=!!this._mdf,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.r?t.rotate(-this.r.v):t.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(Number(this.or?.v[1])).rotateX(Number(this.or?.v[0])),this.data.p&&"s"in this.data.p?"z"in this.data.p?t.translate(Number(this.px?.v),Number(this.py?.v),-Number(this.pz?.v)):t.translate(Number(this.px?.v),Number(this.py?.v),0):t.translate(Number(this.p?.v[0]),Number(this.p?.v[1]),-Number(this.p?.v[2]))}autoOrient(){throw Error(`${this.constructor.name}: Method autoOrient not implemented`)}getValue(t){if(this.elem.globalData?.frameId===this.frameId)return 0;if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.s&&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,Number(this.sa?.v)),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(Number(this.or?.v[1])).rotateX(Number(this.or?.v[0])),this.autoOriented){let t,e,{frameRate:s}=this.elem.globalData??{frameRate:60};if(this.p?.keyframes)Number(this.p._caching?.lastFrame)+this.p.offsetTime<=(this.p.keyframes[0]?.t??0)?(t=this.p.getValueAtTime(((this.p.keyframes[0]?.t??0)+.01)/s,0),e=this.p.getValueAtTime(this.p.keyframes[0]?.t/s,0)):Number(this.p._caching?.lastFrame)+this.p.offsetTime>=(this.p.keyframes[this.p.keyframes.length-1]?.t??0)?(t=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1]?.t??0)/s,0),e=this.p.getValueAtTime(((this.p.keyframes[this.p.keyframes.length-1]?.t??0)-.05)/s,0)):(t=this.p.pv,e=this.p.getValueAtTime((Number(this.p._caching?.lastFrame)+this.p.offsetTime-.01)/s,this.p.offsetTime));else if(this.px?.keyframes&&this.py?.keyframes){t=[0,0],e=[0,0];let{px:i,py:r}=this,{keyframes:a=[]}=i,{keyframes:n=[]}=r;Number(i._caching?.lastFrame)+i.offsetTime<=(a[0]?.t??0)?(t[0]=i.getValueAtTime(((a[0]?.t??0)+.01)/s,0),t[1]=r.getValueAtTime(((n[0]?.t??0)+.01)/s,0),e[0]=i.getValueAtTime((a[0]?.t??0)/s,0),e[1]=r.getValueAtTime(n[0]?.t/s,0)):Number(i._caching?.lastFrame)+i.offsetTime>=(a[a.length-1]?.t??0)?(t[0]=i.getValueAtTime((a[a.length-1]?.t??0)/s,0),t[1]=r.getValueAtTime((n[n.length-1]?.t??0)/s,0),e[0]=i.getValueAtTime(((a[a.length-1]?.t??0)-.01)/s,0),e[1]=r.getValueAtTime(((n[n.length-1]?.t??0)-.01)/s,0)):(t=[i.pv,r.pv],e[0]=i.getValueAtTime((Number(i._caching?.lastFrame)+i.offsetTime-.01)/s,i.offsetTime),e[1]=r.getValueAtTime((Number(r._caching?.lastFrame)+r.offsetTime-.01)/s,r.offsetTime))}else t=e=this.defaultVector;this.v.rotate(-Math.atan2(t[1]-e[1],t[0]-e[0]))}this.data.p&&"s"in this.data.p?"z"in this.data.p?this.v.translate(Number(this.px?.v),Number(this.py?.v),-Number(this.pz?.v)):this.v.translate(Number(this.px?.v),Number(this.py?.v),0):this.p&&this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}return this.frameId=this.elem.globalData?.frameId,0}precalculateMatrix(){if(this.appliedTransformations=0,this.pre.reset(),!this.a?.effectsSequence.length){if(!this.a)throw Error(`${this.constructor.name}: Cannot read 'a' value`);if(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s?.effectsSequence.length){if(!this.s)throw Error(`${this.constructor.name}: Cannot read 's' value`);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>0||this.sa?.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.appliedTransformations=3}if(this.r){0===this.r.effectsSequence.length&&(this.pre.rotate(-this.r.v),this.appliedTransformations=4);return}this.rz?.effectsSequence.length||this.ry?.effectsSequence.length||this.rx?.effectsSequence.length||this.or?.effectsSequence.length||(this.pre.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(this.or?.v[1]).rotateX(this.or?.v[0]),this.appliedTransformations=4)}}}}let ey={getTransformProperty:(t,e,s)=>new eg(t,e,s)};class ev extends ef{globalToLocal(t){let e,s=t,i=[this.finalTransform],r=!0,{comp:a}=this;for(;r;)a?.finalTransform?(a.data?.hasMask&&i.splice(0,0,a.finalTransform),a=a.comp):r=!1;let{length:n}=i;for(let t=0;t<n;t++)e=i[t]?.mat.applyToPointArray(0,0,0),s=[s[0]-Number(e?.[0]),s[1]-Number(e?.[1]),0];return s}initTransform(){if(!this.data)throw Error(`${this.constructor.name}: LottiePlayer is not initialized`);let t=new td;this.finalTransform={_localMatMdf:!1,_matMdf:!1,_opMdf:!1,localMat:t,localOpacity:1,mat:t,mProp:this.data.ks?ey.getTransformProperty(this,this.data.ks,this):{o:0}},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)}renderLocalTransform(){if(!this.localTransforms)return;if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not initialized`);let t=0,{length:e}=this.localTransforms;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&&(this.finalTransform.localOpacity=Number(this.finalTransform.mProp.o?.v),this.finalTransform._opMdf=!0),t++;if(this.finalTransform._localMatMdf){let{localMat:s,mat:i}=this.finalTransform;for(this.localTransforms[0]?.matrix?.clone(s),t=1;t<e;t++){let e=this.localTransforms[t]?.matrix;e&&s.multiply(e)}s.multiply(i)}if(this.finalTransform._opMdf){let s=this.finalTransform.localOpacity;for(t=0;t<e;t++)s*=(this.localTransforms[t]?.opacity??1)*.01;this.finalTransform.localOpacity=s}}renderTransform(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not initialized`);this.finalTransform._opMdf=!!(this.finalTransform.mProp.o?._mdf||this._isFirstFrame),this.finalTransform._matMdf=!!(this.finalTransform.mProp._mdf||this._isFirstFrame);let t=this.finalTransform.mat,{length:e}=this.hierarchy,s=0;if(!this.finalTransform._matMdf)for(;s<e;){if(this.hierarchy[s]?.finalTransform?.mProp._mdf){this.finalTransform._matMdf=!0;break}s++}if(this.finalTransform._matMdf){let i=this.finalTransform.mProp.v.props;for(t.cloneFromProps(i),s=0;s<e;s++)if(this.hierarchy[s]?.finalTransform?.mProp.v){let{v:e}=this.hierarchy[s]?.finalTransform?.mProp??{v:null};e&&t.multiply(e)}}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=Number(this.finalTransform.mProp.o?.v))}searchEffectTransforms(){if(!this.renderableEffectsManager)return;let t=this.renderableEffectsManager.getEffects(th.TransformEffect);if(0===t.length)return;this.localTransforms=[],this.finalTransform&&(this.finalTransform.localMat=new td);let{length:e}=t;for(let s=0;s<e;s++)this.localTransforms.push(t[s])}constructor(...t){super(...t),this._isFirstFrame=!1,this.hierarchy=[],this.localTransforms=null,this.mHelper=new td}}class eb extends ev{checkParenting(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.comp)throw Error(`${this.constructor.name}: comp (ElementInterface) is not implemented`);void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}initHierarchy(){this.hierarchy=[],this._isParent=!1,this.checkParenting()}setAsParent(){this._isParent=!0}setHierarchy(t){this.hierarchy=t}constructor(...t){super(...t),this._isParent=!1}}class e_ extends eb{addDynamicProperty(t){this.dynamicProperties.includes(t)||this.dynamicProperties.push(t)}initFrame(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1}prepareProperties(t,e){let{length:s}=this.dynamicProperties;for(let t=0;t<s;t++)(e||this._isParent&&this.dynamicProperties[t]?.propType===tl.Transform)&&(this.dynamicProperties[t]?.getValue(),this.globalData&&this.dynamicProperties[t]?._mdf&&(this.globalData._mdf=!0,this._mdf=!0))}constructor(...t){super(...t),this._mdf=!1,this.displayStartTime=0}}class ex extends e_{addRenderableComponent(t){this.renderableComponents.includes(t)||this.renderableComponents.push(t)}checkLayerLimits(t){if(this.data&&this.globalData){if(this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t){this.isInRange||(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show());return}this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())}}checkTransparency(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not implemented`);if(0>=Number(this.finalTransform.mProp.o?.v)){!this.isTransparent&&(this.globalData?.renderConfig).hideOnTransparent&&(this.isTransparent=!0,this.hide());return}this.isTransparent&&(this.isTransparent=!1,this.show())}getLayerSize(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);return 5===this.data.ty?{h:Number(this.data.textData?.height),w:Number(this.data.textData?.width)}:{h:Number(this.data.height),w:Number(this.data.width)}}hide(){}initRenderable(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]}prepareRenderableFrame(t,e){this.checkLayerLimits(t)}removeRenderableComponent(t){this.renderableComponents.includes(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)}renderRenderable(){let{length:t}=this.renderableComponents;for(let e=0;e<t;e++)this.renderableComponents[e]?.renderFrame(Number(this._isFirstFrame))}show(){throw Error(`${this.constructor.name}: Method show is not implemented`)}sourceRectAtTime(){return{height:100,left:0,top:0,width:100}}constructor(...t){super(...t),this.hidden=!1,this.isInRange=!1,this.isTransparent=!1,this.renderableComponents=[]}}class ew extends ex{destroy(){this.innerElem=null,this.destroyBaseElement()}hide(){if(this.hidden||this.isInRange&&!this.isTransparent)return;let t=this.baseElement??this.layerElement;t&&(t.style.display="none"),this.hidden=!0}initElement(t,e,s){this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()}prepareFrame(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()}renderFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))}show(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.isInRange||!this.isTransparent){if(!this.data.hd){let t=this.baseElement??this.layerElement;if(!t)throw Error(`${this.constructor.name}: Neither baseElement or layerElement is implemented`);t.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}}constructor(...t){super(...t),this.innerElem=null}}class eS extends ew{createContent(){}destroy(){this.destroyElements(),this.destroyBaseElement()}destroyElements(){let{length:t}=this.layers;for(let e=0;e<t;e++)this.elements[e]?.destroy()}getElements(){return this.elements}initElement(t,e,s){if(this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()}prepareFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!this.isInRange&&!this.data.xt)return;if(this.tm?._placeholder)this.renderedFrame=t/Number(this.data.sr);else{let t=this.tm?.v||0;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}let{length:e}=this.elements;this.completeLayers||this.checkLayers(this.renderedFrame);for(let t=e-1;t>=0;t--)(this.completeLayers||this.elements[t])&&(this.elements[t]?.prepareFrame(this.renderedFrame-(this.layers[t]?.st??0)),this.elements[t]?._mdf&&(this._mdf=!0))}renderInnerContent(){let{length:t}=this.layers;for(let e=0;e<t;e++)(this.completeLayers||this.elements[e])&&this.elements[e]?.renderFrame()}setElements(t){this.elements=t}constructor(...t){super(...t),this.currentFrame=0,this.elements=[],this.layers=[]}}function eE(t,e,s,i){if(0===e)return"";let r=t.o,a=t.i,n=t.v,o,h=[n[0]?.[0]??0,n[0]?.[1]??0],l=i.applyToPointStringified(...h),p,c,m,u,d=` M${l}`;for(o=1;o<e;o++)m=[r[o-1]?.[0]??0,r[o-1]?.[1]??0],u=i.applyToPointStringified(...m),p=[a[o]?.[0]??0,a[o]?.[1]??0],c=i.applyToPointStringified(...p),h=[n[o]?.[0]??0,n[o]?.[1]??0],l=i.applyToPointStringified(...h),d+=` C${u} ${c} ${l}`;return s&&(m=[r[o-1]?.[0]??0,r[o-1]?.[1]??0],u=i.applyToPointStringified(...m),p=[a[0]?.[0]??0,a[0]?.[1]??0],c=i.applyToPointStringified(...p),h=[n[0]?.[0]??0,n[0]?.[1]??0],l=i.applyToPointStringified(...h),d+=` C${u} ${c} ${l}z`),d}class ek{constructor(t,e,s){this.maskElement=null,this.masksProperties=[],this.solidPath="",this.storedData=[],this._identityMat=new td,this.data=t,this.element=e,this.globalData=s,this.masksProperties=this.data.masksProperties??[];let{defs:i}=this.globalData,{length:r}=this.masksProperties;this.viewData=tu(r);let a=this.masksProperties,n=0,o=[],h=k(),l,p,c,m="clipPath",u="clip-path";for(let t=0;t<r;t++){let e;(a[t]?.mode!=="a"&&a[t]?.mode!=="n"||a[t]?.inv||a[t]?.o?.k!==100||a[t]?.o?.x)&&(m="mask",u="mask"),(a[t]?.mode==="s"||a[t]?.mode==="i")&&0===n?((l=tf("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",`${Number(this.element.comp?.data?.w)}`),l.setAttribute("height",`${Number(this.element.comp?.data?.h)}`),o.push(l)):l=null;let s=tf("path");if(a[t]?.mode==="n"){this.viewData[t]={elem:s,lastPath:"",op:tU.getProp(this.element,a[t]?.o,0,.01,this.element),prop:t7.getShapeProp(this.element,a[t],3)},i.appendChild(s);continue}if(n++,s.setAttribute("fill",a[t]?.mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),a[t]?.x?.k===0)p=null,c=null;else{m="mask",u="mask",c=tU.getProp(this.element,a[t]?.x,0,null,this.element),e=k();let r=tf("filter");r.id=e,(p=tf("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),r.appendChild(p),i.appendChild(r),s.setAttribute("stroke",a[t]?.mode==="s"?"#000000":"#ffffff")}if(this.storedData[t]={elem:s,expan:p,filterId:e,lastOperator:"",lastPath:"",lastRadius:0,x:c},a[t]?.mode==="i"){let{length:t}=o,e=tf("g");for(let s=0;s<t;s++)e.appendChild(o[s]);let r=tf("mask");r.setAttribute("mask-type","alpha"),r.id=`${h}_${n}`,r.appendChild(s),i.appendChild(r),e.setAttribute("mask",`url(${ty()}#${h}_${n})`),o.length=0,o.push(e)}else o.push(s);a[t]?.inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[t]={elem:s,invRect:l,lastPath:"",op:tU.getProp(this.element,a[t]?.o,0,.01,this.element),prop:t7.getShapeProp(this.element,a[t],3)};let r=this.viewData[t]?.prop?.v;!this.viewData[t]?.prop?.k&&r&&this.drawPath(a[t]??null,r,this.viewData[t])}this.maskElement=tf(m);let{length:d}=o;for(let t=0;t<d;t++)this.maskElement.appendChild(o[t]);n>0&&(this.maskElement.id=h,this.element.maskedElement?.setAttribute(u,`url(${ty()}#${h})`),i.appendChild(this.maskElement)),this.viewData.length>0&&this.element.addRenderableComponent(this)}createLayerSolidPath(){let t="M0,0 ";return t+` h${this.globalData.compSize?.w||0} v${this.globalData.compSize?.h||0} h-${this.globalData.compSize?.w||0} v-${this.globalData.compSize?.h||0} `}destroy(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null}drawPath(t,e,s){let i=e._length,r=eE(e,i,e.c,this._identityMat);if(s.lastPath!==r){let i="";e.c&&(i=t?.inv?this.solidPath+r:r),s.elem.setAttribute("d",i),s.lastPath=r}}getMaskelement(){return this.maskElement}getMaskProperty(t){return this.viewData[t]?.prop??null}renderFrame(t){let e=this.element.finalTransform?.mat,{length:s}=this.masksProperties;for(let i=0;i<s;i++){let s=this.viewData[i]?.prop?.v;if(s&&(this.viewData[i]?.prop?._mdf||t)&&this.drawPath(this.masksProperties[i]??null,s,this.viewData[i]),(this.viewData[i]?.op._mdf||t)&&this.viewData[i]?.elem.setAttribute("fill-opacity",`${this.viewData[i]?.op.v??1}`),this.masksProperties[i]?.mode==="n")continue;this.viewData[i]?.invRect&&(this.element.finalTransform?.mProp._mdf||t)&&e&&this.viewData[i]?.invRect?.setAttribute("transform",e.getInverseMatrix().to2dCSS());let r=this.storedData[i];if(!r.x||!(r.x._mdf||t))continue;let a=r.expan;if(r.x.v<0){"erode"!==r.lastOperator&&(r.lastOperator="erode",r.elem.setAttribute("filter",`url(${ty()}#${r.filterId})`)),a?.setAttribute("radius",`${-r.x.v}`);continue}"dilate"!==r.lastOperator&&(r.lastOperator="dilate",r.elem.removeAttribute("filter")),r.elem.setAttribute("stroke-width",`${2*r.x.v}`)}}}let eC=function(){let t=tf("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},eP=function(t,e){let s=tf("filter");return s.id=t,e||(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s},eM="filter_result_",eA={};class eT{constructor(t){this.filters=[];let e="SourceGraphic",s=k(),i=eP(s,!0),r=0,a,{length:n}=t.data.ef??[];for(let s=0;s<n;s++){a=null;let{ty:n}=t.data.ef?.[s]??{ty:null},o=null!==n&&eA[n]?eA[n].effect:null;o&&n&&t.effectsManager&&(a=new o(i,t.effectsManager.effectElements[s],t,`${eM}${r}`,e),e=`${eM}${r}`,eA[n]?.countsAsEffect&&r++),a&&this.filters.push(a)}r&&(t.globalData?.defs.appendChild(i),t.layerElement?.setAttribute("filter",`url(${ty()}#${s})`)),this.filters.length>0&&t.addRenderableComponent(this)}getEffects(t){let{length:e}=this.filters,s=[];for(let i=0;i<e;i++)this.filters[i]?.type===t&&s.push(this.filters[i]);return s}renderFrame(t){let{length:e}=this.filters;for(let s=0;s<e;s++)this.filters[s]?.renderFrame(t)}}class eD extends ew{createContainerElements(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.matteElement=tf("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;let t=null;if(this.data.td){this.matteMasks={};let e=tf("g");this.layerId&&(e.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.id=this.data.ln),this.data.cl&&this.layerElement.classList.add(this.data.cl),0===this.data.ty&&!this.data.hd){let e=tf("clipPath"),s=tf("path");s.setAttribute("d",`M0,0 L${this.data.w},0 L${this.data.w},${this.data.h} L0,${this.data.h}z`);let i=k();if(e.id=i,e.appendChild(s),this.globalData.defs.appendChild(e),this.checkMasks()){let e=tf("g");e.setAttribute("clip-path",`url(${ty()}#${i})`),e.appendChild(this.layerElement),this.transformedElement=e,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path",`url(${ty()}#${i})`)}0!==this.data.bm&&this.setBlendMode()}createRenderableComponents(){if(!this.data)throw Error(`${this.constructor.name}: layerData is not initialized`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not initialized`);this.maskManager=new ek(this.data,this,this.globalData),this.renderableEffectsManager=new eT(this),this.searchEffectTransforms()}destroyBaseElement(){this.layerElement=null,this.matteElement=null,this.maskManager?.destroy()}getBaseElement(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);return this.data.hd?null:this.baseElement??null}getMatte(t=1){let e,s,i,r;if(this.matteMasks=this.matteMasks??{},this.matteMasks[t])return this.matteMasks[t];let a=`${this.layerId}_${t}`;switch(t){case 1:case 3:{let n=tf("mask");if(n.id=a,n.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=tf("use")).setAttributeNS(g,"href",`#${this.layerId}`),n.appendChild(i),this.globalData?.defs.appendChild(n),t_.maskType||1!==t)break;n.setAttribute("mask-type","luminance"),s=eP(e=k()),this.globalData?.defs.appendChild(s),s.appendChild(eC()),(r=tf("g")).appendChild(i),n.appendChild(r),r.setAttribute("filter",`url(${ty()}#${e})`)}break;case 2:{let t=tf("mask");t.id=a,t.setAttribute("mask-type","alpha");let n=tf("g");t.appendChild(n),s=eP(e=k());let o=tf("feComponentTransfer");o.setAttribute("in","SourceGraphic"),s.appendChild(o);let h=tf("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),o.appendChild(h),this.globalData?.defs.appendChild(s);let l=tf("rect");l.width.baseVal.value=this.comp?.data?.w||0,l.height.baseVal.value=this.comp?.data?.h||0,l.x.baseVal.value=0,l.y.baseVal.value=0,l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),n.setAttribute("filter",`url(${ty()}#${e})`),n.appendChild(l),(i=tf("use")).setAttributeNS(g,"href",`#${this.layerId}`),n.appendChild(i),t_.maskType||(t.setAttribute("mask-type","luminance"),s.appendChild(eC()),r=tf("g"),n.appendChild(l),this.layerElement&&r.appendChild(this.layerElement),n.appendChild(r)),this.globalData?.defs.appendChild(t)}}return this.matteMasks[t]=a,this.matteMasks[t]}initRendererElement(){this.layerElement=tf("g")}renderElement(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not implemented`);this.finalTransform._localMatMdf&&this.transformedElement?.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement?.setAttribute("opacity",`${this.finalTransform.localOpacity}`)}setMatte(t){this.matteElement&&this.matteElement.setAttribute("mask",`url(${ty()}#${t})`)}}class eI extends eD{constructor(t,e,s){super(),this.layers=[],t.refId&&(this.assetData=e.getAssetData(t.refId)),this.assetData?.sid&&(this.assetData=e.slotManager?.getProp(this.assetData)||null),this.initElement(t,e,s),this.sourceRect={height:Number(this.assetData?.h),left:0,top:0,width:Number(this.assetData?.w)}}createContent(){if(!this.assetData)return;let t=this.assetData.pr||this.globalData?.renderConfig?.imagePreserveAspectRatio||"",e=this.globalData?.imageLoader?.adoptSvgImage(this.assetData);if(e){this.innerElem=e,this.innerElem.setAttribute("width",`${this.assetData.w}px`),this.innerElem.setAttribute("height",`${this.assetData.h}px`),this.innerElem.setAttribute("preserveAspectRatio",t),this.layerElement?.appendChild(this.innerElem);return}let s="";this.globalData?.getAssetsPath&&(s=this.globalData.getAssetsPath(this.assetData)),this.innerElem=tf("image"),this.innerElem.setAttribute("width",`${this.assetData.w}px`),this.innerElem.setAttribute("height",`${this.assetData.h}px`),this.innerElem.setAttribute("preserveAspectRatio",t),this.innerElem.setAttributeNS(g,"href",s),this.layerElement?.appendChild(this.innerElem)}hide(){if(this.hidden||this.isInRange&&!this.isTransparent)return;let t=this.baseElement??this.layerElement;t&&(t.style.visibility="hidden"),this.hidden=!0}renderInnerContent(){}show(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.isInRange||!this.isTransparent){if(!this.data.hd){let t=this.baseElement??this.layerElement;if(!t)throw Error(`${this.constructor.name}: Neither baseElement or layerElement is implemented`);t.style.visibility="visible",t.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}}sourceRectAtTime(){return this.sourceRect}}class eF{constructor(){this.gr=tf("g"),this.it=[],this.prevViewData=[]}}let eL=new td,e$=new td;function eN(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderContetTransform is missing data");(s||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",`${e.transform.op.v}`),(s||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function eV(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderFill is missing data");let i=e.style;e.c?.v&&(e.c._mdf||s)&&i.pElem.setAttribute("fill",z(e.c.v)),(e.o?._mdf||s)&&i.pElem.setAttribute("fill-opacity",`${e.o?.v}`)}function eR(t,e,s){let i,r;if(!e)throw Error("SVGElementsRenderer: Method renderGradient is missing data");let a=e.gf,n=e.g?._hasOpacity,o=e.s?.v??[0,0],h=e.e?.v??[0,0];if(e.o?._mdf||s){let s=t.ty===to.GradientFill?"fill-opacity":"stroke-opacity";e.style?.pElem.setAttribute(s,`${e.o?.v}`)}if(e.s?._mdf||s){let s=1===t.t?"x1":"cx",i="x1"===s?"y1":"cy";a?.setAttribute(s,`${o[0]}`),a?.setAttribute(i,`${o[1]}`),n&&!e.g?._collapsable&&(e.of?.setAttribute(s,`${o[0]}`),e.of?.setAttribute(i,`${o[1]}`))}if(e.g&&(e.g._cmdf||s)){i=e.cst;let t=e.g.c,{length:s}=i;for(let e=0;e<s;e++)(r=i[e]).setAttribute("offset",`${t[4*e]}%`),r.setAttribute("stop-color",`rgb(${t[4*e+1]},${t[4*e+2]},${t[4*e+3]})`)}if(n&&e.g&&(e.g._omdf||s)){let t=e.g.o,{length:s}=i=e.g._collapsable?e.cst:e.ost;for(let a=0;a<s;a++)r=i[a],e.g._collapsable||r.setAttribute("offset",`${t[2*a]}%`),r.setAttribute("stop-opacity",`${t[2*a+1]}`)}if(1===t.t)(e.e?._mdf||s)&&(a?.setAttribute("x2",`${h[0]}`),a?.setAttribute("y2",`${h[1]}`),n&&!e.g?._collapsable&&(e.of?.setAttribute("x2",`${h[0]}`),e.of?.setAttribute("y2",`${h[1]}`)));else{let t=0;if((e.s?._mdf||e.e?._mdf||s)&&(t=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),a?.setAttribute("r",`${t}`),n&&!e.g?._collapsable&&e.of?.setAttribute("r",`${t}`)),e.e?._mdf||e.h?._mdf||e.a?._mdf||s){t||(t=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)));let s=Math.atan2(h[1]-o[1],h[0]-o[0]),i=Number(e.h?.v);i>=1?i=.99:i<=-1&&(i=-.99);let r=t*i,l=Math.cos(s+Number(e.a?.v))*r+o[0],p=Math.sin(s+Number(e.a?.v))*r+o[1];a?.setAttribute("fx",`${l}`),a?.setAttribute("fy",`${p}`),n&&!e.g?._collapsable&&(e.of?.setAttribute("fx",`${l}`),e.of?.setAttribute("fy",`${p}`))}}}function eO(t,e,s){eR(t,e,s),eG(t,e,s)}function ez(t){}function eB(t,e,s){let i,r,a,n,o,h,l;if(!e)throw Error("SVGElementsRenderer: Method renderPath is missing data");let{caches:p,lvl:c,sh:m,styles:u,transformers:d}=e,{length:f}=u;for(let e=0;e<f;e++){r=m?._mdf||!!s;let f=u[e],{_mdf:g,lvl:y}=f;if(y<c){for(o=e$.reset(),h=c-y,l=d.length-1;!r&&h>0;)r=d[l]?.mProps._mdf||r,h--,l--;if(r)for(h=c-y,l=d.length-1;h>0;)o.multiply(d[l]?.mProps.v),h--,l--}else o=eL;n=m?.paths;let v=n?._length||0;if(r){i="";for(let t=0;t<v;t++)a=n?.shapes[t],a?._length&&(i+=eE(a,a._length,a.c,o));p[e]=i}else i=p[e];f.d+=!0===t.hd?"":i,f._mdf=r||g}}function eG(t,e,s){if(!e?.style)throw Error("SVGElementsRenderer: Method renderStroke is missing data");let{c:i,d:r,o:a,style:{msElem:n,pElem:o},w:h}=e;r&&(r._mdf||s)&&r.dashStr&&(o.setAttribute("stroke-dasharray",r.dashStr),o.setAttribute("stroke-dashoffset",`${r.dashoffset[0]}`)),i&&(i._mdf||s)&&o.setAttribute("stroke",z(i.v)),(a?._mdf||s)&&o.setAttribute("stroke-opacity",`${a?.v??1}`),(h?._mdf||s)&&(o.setAttribute("stroke-width",`${h?.v||0}`),n?.setAttribute("stroke-width",`${h?.v||0}`))}class eq extends tz{constructor(t,e,s){super(),this.it=[],this.prevViewData=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=tU.getProp(t,e.o,0,.01,this),this.c=tU.getProp(t,e.c,1,255,this),this.style=s}}class ej extends tz{constructor(t,e,s){super(),this._cmdf=!1,this._omdf=!1,this.data=e,this.c=tm(te.Uint8c,4*e.p);let i=e.k.k?.[0]?.s?(e.k.k[0]?.s.length??0)-4*e.p:e.k.k.length-4*e.p;this.o=tm(te.Float32,i),this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(s),this.prop=tU.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}checkCollapsable(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k?.[0]?.s){let t=0,e=this.data.k.k.length;for(;t<e;){if(!this.comparePoints(this.data.k.k[t]?.s??[],this.data.p))return!1;t++}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0}comparePoints(t,e){let s=0,i=this.o.length/2;for(;s<i;){if(Math.abs((t[4*s]??0)-(t[4*e+2*s]??0))>.01)return!1;s++}return!0}getValue(t){let e,s;if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,!this.prop._mdf&&!t||!$(this.prop.v))return 0;let i=4*this.data.p;for(let r=0;r<i;r++)e=r%4==0?100:255,s=Math.round((this.prop.v[r]??0)*e),this.c[r]!==s&&(this.c[r]=s,this._cmdf=!t);if(this.o.length>0){let{length:e}=this.prop.v;for(let i=4*this.data.p;i<e;i++)s=i%2==0?Math.round((this.prop.v[i]??0)*100):this.prop.v[i],this.o[i-4*this.data.p]!==s&&(this.o[i-4*this.data.p]=s,this._omdf=!t)}return this._mdf=!t,0}}class eH extends tz{constructor(t,e,s){super(),this.cst=[],this.it=[],this.ost=[],this.prevViewData=[],this.stops=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,s)}initGradientData(t,e,s){this.o=tU.getProp(t,e.o,0,.01,this),this.s=tU.getProp(t,e.s,1,null,this),this.e=tU.getProp(t,e.e,1,null,this),this.h=tU.getProp(t,e.h??{k:0},0,.01,this),this.a=tU.getProp(t,e.a??{k:0},0,f,this),this.g=new ej(t,e.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,e),this.setGradientOpacity(e,s),this._isAnimated=!!this._isAnimated}setGradientData(t,e){let s,i=k(),r=tf(1===e.t?"linearGradient":"radialGradient");r.id=i,r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");let a=[],n=4*(e.g?.p||1);for(let t=0;t<n;t+=4)s=tf("stop"),r.appendChild(s),a.push(s);t.setAttribute(e.ty===to.GradientFill?"fill":"stroke",`url(${ty()}#${i})`),this.gf=r,this.cst=a}setGradientOpacity(t,e){let s;if(!this.g?._hasOpacity||this.g._collapsable)return;let i=tf("mask"),r=tf("path");i.appendChild(r);let a=k(),n=k();i.id=n;let o=tf(1===t.t?"linearGradient":"radialGradient");o.id=a,o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");let h=(t.g?.k.k?.[0]?.s?t.g?.k.k[0]?.s.length:t.g?.k.k.length)||0,{stops:l}=this;for(let e=4*(t.g?.p||1);e<h;e+=2)(s=tf("stop")).setAttribute("stop-color","rgb(255,255,255)"),o.appendChild(s),l.push(s);r.setAttribute(t.ty===to.GradientFill?"fill":"stroke",`url(${ty()}#${a})`),t.ty===to.GradientStroke&&(r.setAttribute("stroke-linecap",tp[t.lc||2]),r.setAttribute("stroke-linejoin",tc[t.lj||2]),1===t.lj&&r.setAttribute("stroke-miterlimit",`${Number(t.ml)}`)),this.of=o,this.ms=i,this.ost=l,this.maskId=n,e.msElem=r}}class eW extends tz{constructor(t,e,s,i){let r;super(),this.dashoffset=tm(te.Float32,1),this.dashStr="",this.frameId=-1,this.k=!1,this.elem=t,this.dataProps=tu(e.length),this.renderer=s,this.dashArray=tm(te.Float32,e.length>0?e.length-1:0),this.initDynamicPropertyContainer(i);let a=e.length||0;for(let s=0;s<a;s++)r=tU.getProp(t,e[s]?.v,0,0,this),this.k=r.k||this.k,this.dataProps[s]={n:e[s]?.n??"d",p:r};this.k||this.getValue(!0),this._isAnimated=this.k}getValue(t){if(this.elem.globalData?.frameId===this.frameId&&!t||(this.elem.globalData?.frameId&&(this.frameId=this.elem.globalData.frameId),this.iterateDynamicProperties(),this._mdf=this._mdf||!!t,!this._mdf))return 0;let e=this.dataProps.length;this.renderer===tn.SVG&&(this.dashStr="");for(let t=0,s=0;t<e;t++){if(this.dataProps[t]?.n==="o"){this.dashoffset[0]=this.dataProps[t]?.p.v;continue}if(this.renderer===tn.SVG){this.dashStr+=` ${this.dataProps[t]?.p.v}`;continue}this.dashArray[s]=this.dataProps[t]?.p.v,s++}return 0}}class eJ extends eH{constructor(t,e,s){super(t,e,s),this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=tU.getProp(t,e.w,0,null,this),this.d=new eW(t,e.d||[],tn.SVG,this),this.initGradientData(t,e,s),this._isAnimated=!!this._isAnimated}}class eU extends tz{constructor(t,e,s){super(),this.it=[],this.prevViewData=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=s}}class eY{setAsAnimated(){this._isAnimated=!0}constructor(){this.caches=[],this.it=[],this.lStr="",this.lvl=0,this.pathsData=[],this.prevViewData=[],this.sh=null,this.styledShapes=[],this.styles=[],this.tr=[],this.transformers=[],this.trNodes=[]}}class eX extends eY{constructor(t,e,s){super(),this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=s,this.lvl=e,this._isAnimated=!!s.k;let i=0,{length:r}=t;for(;i<r;){if((t[i]?.mProps.dynamicProperties.length??0)>0){this._isAnimated=!0;break}i++}}}class eK extends eq{constructor(t,e,s){super(t,e,s),this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=tU.getProp(t,e.o,0,.01,this),this.w=tU.getProp(t,e.w,0,null,this),this.d=new eW(t,e.d||[],tn.SVG,this),this.c=tU.getProp(t,e.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}}class eZ{constructor(t,e){this._mdf=!1,this.d="",this.msElem=null,this.pElem=tf("path"),this.data=t,this.type=t.ty,this.lvl=e,this.closed=!0===t.hd}reset(){this.d="",this._mdf=!1}}class eQ{constructor(t,e,s){this.elements=[],this.transform={container:s,mProps:t,op:e},this._isAnimated=this.transform.mProps.dynamicProperties.length>0||this.transform.op.effectsSequence.length>0}}class e0{constructor(t,e){this.elem=t,this.pos=e}}class e1 extends ew{addProcessedElement(t,e){let{processedElements:s}=this,i=s.length;for(;i;){let r=s[--i];if(r.elem===t){r.pos=e;return}}s.push(new e0(t,e))}addShapeToModifiers(t){let{length:e}=this.shapeModifiers;for(let s=0;s<e;s++)this.shapeModifiers[s]?.addShape(t)}isShapeInAnimatedModifiers(t){let e=0,{length:s}=this.shapeModifiers;for(;e<s;){if(this.shapeModifiers[e]?.isAnimatedWithShape(t))return!0;e++}return!1}prepareFrame(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}renderModifiers(){if(0===this.shapeModifiers.length)return;let{length:t}=this.shapes;for(let e=0;e<t;e++)this.shapes[e]?.sh?.reset();let{length:e}=this.shapeModifiers;for(let t=e-1;t>=0&&!this.shapeModifiers[t]?.processShapes(!!this._isFirstFrame);t--);}searchProcessedElement(t){let{processedElements:e}=this,{length:s}=e,i=0;for(;i<s;){if(e[i]?.elem===t)return e[i]?.pos??0;i++}return 0}constructor(...t){super(...t),this.processedElements=[],this.shapeModifiers=[],this.shapes=[]}}let e2=(t,e,s)=>{let i=e.prototype,r=t.prototype;for(let e of s){if(Object.hasOwn(r,e))throw Error(`mixin: ${t.name}.${e} is already defined on the class`);r[e]=i[e]}},e3=(t,e)=>{let s,{length:i}=t;for(let r=0;r<i;r++){let i=Object.getOwnPropertyNames(s=t[r]?.prototype),{length:a}=i;for(let t=0;t<a;t++)"constructor"!==i[t]&&Object.hasOwn(s,i[t]??"")&&(e.prototype[i[t]??""]=s[i[t]??""])}},e5={};function e4(t,e,s){if(!e5[t])throw Error("Invalid modifier");return new e5[t]}function e6(t,e){e5[t]=e5[t]??e}class e8 extends e1{constructor(t,e,s){super(),this.animatedContents=[],this.identityMatrix=new td,this.prevViewData=[],this.stylesList=[],this.shapes=[],this.shapesData=t.shapes,this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.initElement(t,e,s)}addToAnimatedContents(t,e){let s=0,{length:i}=this.animatedContents;for(;s<i;){if(this.animatedContents[s]?.element===e)return;s++}this.animatedContents.push({data:t,element:e,fn:function(t){switch(t.ty){case to.Fill:return eV;case to.GradientFill:return eR;case to.GradientStroke:return eO;case to.Stroke:return eG;case to.Path:case to.Ellipse:case to.Rectangle:case to.PolygonStar:return eB;case to.Transform:return eN;case to.NoStyle:return ez;default:return null}}(t)})}buildExpressionInterface(){}createContent(){if(!this.layerElement)throw Error(`${this.constructor.name}: Could not access Layer`);this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()}createGroupElement(t){let e=new eF;return t.ln&&(e.gr.id=t.ln),t.cl&&e.gr.classList.add(t.cl),t.bm&&(e.gr.style.mixBlendMode=ed(t.bm)),e}createShapeElement(t,e,s){let i=4;switch(t.ty){case to.Rectangle:i=5;break;case to.Ellipse:i=6;break;case to.PolygonStar:i=7}let r=new eX(e,s,t7.getShapeProp(this,t,i));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r}createStyleElement(t,e){let s=null,i=new eZ(t,e),r=i.pElem;switch(t.ty){case to.Stroke:s=new eK(this,t,i);break;case to.Fill:s=new eq(this,t,i);break;case to.GradientFill:case to.GradientStroke:(s=new(t.ty===to.GradientFill?eH:eJ)(this,t,i)).gf&&this.globalData?.defs.appendChild(s.gf),s.maskId&&s.ms&&s.of&&(this.globalData?.defs.appendChild(s.ms),this.globalData?.defs.appendChild(s.of),r.setAttribute("mask",`url(${ty()}#${s.maskId})`));break;case to.NoStyle:s=new eU(this,t,i)}return(t.ty===to.Stroke||t.ty===to.GradientStroke)&&(r.setAttribute("stroke-linecap",tp[t.lc||2]),r.setAttribute("stroke-linejoin",tc[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&t.ml&&r.setAttribute("stroke-miterlimit",`${t.ml}`)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&(r.id=t.ln),t.cl&&r.classList.add(t.cl),t.bm&&(r.style.mixBlendMode=ed(t.bm)),this.stylesList.push(i),s&&this.addToAnimatedContents(t,s),s}createTransformElement(t,e){let s=ey.getTransformProperty(this,t,this);if(!s.o)throw Error(`${this.constructor.name}: Missing required data in TransformProperty`);let i=new eQ(s,s.o,e);return this.addToAnimatedContents(t,i),i}destroy(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null}filterUniqueShapes(){let t,e,{length:s}=this.shapes,i=this.stylesList.length,r=[];for(let a=0;a<i;a++){t=this.stylesList[a],e=!1,r.length=0;for(let i=0;i<s;i++)this.shapes[i].styles.includes(t)&&(r.push(this.shapes[i]),e=this.shapes[i]?._isAnimated||e);r.length>1&&e&&this.setShapesAsAnimated(r)}}initSecondaryElement(){}reloadShapes(){if(!this.layerElement)throw Error(`${this.constructor.name}: Could not access layerElement`);this._isFirstFrame=!0;let{length:t}=this.itemsData;for(let e=0;e<t;e++)this.prevViewData[e]=this.itemsData[e];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();let{length:e}=this.dynamicProperties;for(let t=0;t<e;t++)this.dynamicProperties[t]?.getValue();this.renderModifiers()}renderInnerContent(){this.renderModifiers();let{length:t}=this.stylesList;for(let e=0;e<t;e++)this.stylesList[e]?.reset();this.renderShape();for(let e=0;e<t;e++)(this.stylesList[e]?._mdf||this._isFirstFrame)&&(this.stylesList[e]?.msElem&&(this.stylesList[e]?.msElem?.setAttribute("d",this.stylesList[e]?.d??""),this.stylesList[e].d=`M0 0${this.stylesList[e]?.d??""}`),this.stylesList[e]?.pElem.setAttribute("d",this.stylesList[e]?.d||"M0 0"))}renderShape(){let{length:t}=this.animatedContents;for(let e=0;e<t;e++)(this._isFirstFrame||this.animatedContents[e]?.element._isAnimated)&&this.animatedContents[e]?.data!==!0&&this.animatedContents[e]?.fn&&this.animatedContents[e]?.fn?.(this.animatedContents[e]?.data,this.animatedContents[e]?.element,this._isFirstFrame)}searchShapes(t,e,s,i,r,a,n){let o,h,l=n,p=[...a],c=[],m=[],{length:u}=t;for(let a=u-1;a>=0;a--){let n=this.searchProcessedElement(t[a]);switch(n?e[a]=s[n-1]:t[a]._shouldRender=l,t[a]?.ty){case to.Fill:case to.Stroke:case to.GradientFill:case to.GradientStroke:case to.NoStyle:if(n){let{style:t}=e[a]??{style:null};t&&(t.closed=!1)}else e[a]=this.createStyleElement(t[a],r);if(t[a]?._shouldRender&&e[a]?.style?.pElem.parentNode!==i){let{pElem:t}=e[a]?.style??{pElem:null};t&&i.appendChild(t)}c.push(e[a]?.style);break;case to.Group:if(n){let{length:t}=e[a]?.it??[];for(let s=0;s<t;s++){let{it:t,prevViewData:i}=e[a]??{it:null,prevViewData:null};i&&t&&(i[s]=t[s])}}else e[a]=this.createGroupElement(t[a]);if(this.searchShapes(t[a]?.it,e[a]?.it??[],e[a]?.prevViewData??[],e[a]?.gr,r+1,p,l),t[a]?._shouldRender&&e[a]?.gr?.parentNode!==i){let{gr:t}=e[a]??{};t&&i.appendChild(t)}break;case to.Transform:n||(e[a]=this.createTransformElement(t[a],i)),(o=e[a]?.transform)&&p.push(o);break;case to.Path:case to.Rectangle:case to.Ellipse:case to.PolygonStar:n||(e[a]=this.createShapeElement(t[a],p,r)),this.setElementStyles(e[a]);break;case to.Trim:case to.RoundedCorners:case to.Unknown:case to.PuckerBloat:case to.ZigZag:case to.OffsetPath:n?(h=e[a]).closed=!1:((h=e4(t[a]?.ty??to.Unknown)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),m.push(h);break;case to.Repeater:if(n){(h=e[a]).closed=!0,m.push(h);break}h=e4(t[a]?.ty??to.Unknown),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),l=!1,m.push(h)}this.addProcessedElement(t[a],a+1)}let{length:d}=c;for(let t=0;t<d;t++){let e=c[t];e&&(e.closed=!0)}let{length:f}=m;for(let t=0;t<f;t++)m[t].closed=!0}setElementStyles(t){let{length:e}=this.stylesList;for(let s=0;s<e;s++)this.stylesList[s]?.closed||t.styles.push(this.stylesList[s])}setShapesAsAnimated(t){let{length:e}=t;for(let s=0;s<e;s++)t[s]?.setAsAnimated()}}e2(e8,eD,["createContainerElements","createRenderableComponents","destroyBaseElement","getBaseElement","getMatte","initRendererElement","renderElement","setMatte"]);class e9{constructor(t,e,s,i,r,a){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=r,this.p=a,this._mdf={fc:!!i,m:!0,o:!0,p:!0,sc:!!s,sw:!!e}}update(t,e,s,i,r,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;let n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,n=!0),a&&a.length>0&&(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,this._mdf.p=!0,n=!0),n}}class e7 extends tG{constructor(t,e){super(),this._currentTextLength=-1,this.finalE=0,this.finalS=0,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.initDynamicPropertyContainer(t),this.s=tU.getProp(t,e.s??{a:0,k:0},0,0,this),"e"in e?this.e=tU.getProp(t,e.e,0,0,this):this.e={v:100},this.o=tU.getProp(t,e.o??{a:0,k:0},0,0,this),this.xe=tU.getProp(t,e.xe??{a:0,k:0},0,0,this),this.ne=tU.getProp(t,e.ne??{a:0,k:0},0,0,this),this.sm=tU.getProp(t,e.sm??{a:0,k:100},0,0,this),this.a=tU.getProp(t,e.a,0,.01,this),0===this.dynamicProperties.length&&this.getValue()}getMult(t,e){this._currentTextLength!==this.elem.textProperty?.currentData.l.length&&this.getValue();let s=this._handleShapeType(t);if(100!==this.sm.v){let t=.01*this.sm.v;0===t&&(t=1e-8);let e=.5-.5*t;s<e?s=0:(s=(s-e)/t)>1&&(s=1)}return s*this.a.v}getTextSelectorProp(t,e,s){throw Error("Method not implemented")}getValue(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty?.currentData.l.length||0,t&&2===this.data.r&&this.e.v&&(this.e.v=this._currentTextLength);let e=2===this.data.r?1:100/this.data.totalChars,s=this.o.v/e,i=Number(this.s?.v)/e+s,r=this.e.v/e+s;if(i>r){let t=i;i=r,r=t}return this.finalS=i,this.finalE=r,0}_getCoordinates(){let t=0,e=0,s=1,i=1;return this.ne.v>0?t=this.ne.v/100:e=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:i=1+this.xe.v/100,[t,e,s,i]}_handleShapeType(t){let e=tR(...this._getCoordinates()).get,s=0,i=this.finalS,r=this.finalE;switch(this.data.sh){case 2:if(r===i){s=+(t>=r);break}s=Math.max(0,Math.min(.5/(r-i)+(t-i)/(r-i),1));break;case 3:if(r===i){s=t>=r?0:1;break}s=1-Math.max(0,Math.min(.5/(r-i)+(t-i)/(r-i),1));break;case 4:if(r===i)break;if((s=Math.max(0,Math.min(.5/(r-i)+(t-i)/(r-i),1)))<.5){s*=2;break}s=1-2*(s-.5);break;case 5:{if(r===i)break;let e=r-i,a=-e/2+(t=Math.min(Math.max(0,t+.5-i),r-i)),n=e/2;s=Math.sqrt(1-a*a/(n*n));break}case 6:if(r===i)break;s=(1+Math.cos(Math.PI+2*Math.PI*(t=Math.min(Math.max(0,t+.5-i),r-i))/(r-i)))/2;break;default:if(t<Math.floor(i))break;if(t-i<0){s=Math.max(0,Math.min(Math.min(r,1)-(i-t),1));break}s=Math.max(0,Math.min(r-t,1))}return e(s)}}class st{constructor(t,e,s){let i={propType:!1},r=e?.a;this.a={a:r?.a?tU.getProp(t,r.a,1,0,s):i,fb:r?.fb?tU.getProp(t,r.fb,0,.01,s):i,fc:r?.fc?tU.getProp(t,r.fc,1,0,s):i,fh:r?.fh?tU.getProp(t,r.fh,0,0,s):i,fs:r?.fs?tU.getProp(t,r.fs,0,.01,s):i,o:r?.o?tU.getProp(t,r.o,0,.01,s):i,p:r?.p?tU.getProp(t,r.p,1,0,s):i,r:r?.r?tU.getProp(t,r.r,0,f,s):i,rx:r?.rx?tU.getProp(t,r.rx,0,f,s):i,ry:r?.ry?tU.getProp(t,r.ry,0,f,s):i,s:r?.s?tU.getProp(t,r.s,1,.01,s):i,sa:r?.sa?tU.getProp(t,r.sa,0,f,s):i,sc:r?.sc?tU.getProp(t,r.sc,1,0,s):i,sk:r?.sk?tU.getProp(t,r.sk,0,f,s):i,sw:r?.sw?tU.getProp(t,r.sw,0,0,s):i,t:r?.t?tU.getProp(t,r.t,0,0,s):i},this.s=new e7(t,e?.s),this.s.t=e?.s?.t}}let se=(t,e,s)=>{let i=Math.max(t,e,s),r=Math.min(t,e,s),a=i-r,n=0;switch(i){case r:break;case t:n=(e-s+6*(e<s)*a)/(6*a);break;case e:n=(s-t+2*a)/(6*a);break;case s:n=(t-e+4*a)/(6*a)}return[n,0===i?0:a/i,i/255]},ss=(t,e,s)=>{let i=0,r=0,a=0,n=Math.floor(6*t),o=6*t-n,h=s*(1-e),l=s*(1-o*e),p=s*(1-(1-o)*e);switch(n%6){case 0:i=s,r=p,a=h;break;case 1:i=l,r=s,a=h;break;case 2:i=h,r=s,a=p;break;case 3:i=h,r=l,a=s;break;case 4:i=p,r=h,a=s;break;case 5:i=s,r=h,a=l}return[i,r,a]},si=(t,e)=>{let s=se(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),ss(s[0],s[1],s[2])},sr=(t,e)=>{let s=se(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&s[0]++,ss(s[0],s[1],s[2])},sa=(t,e)=>{let s=se(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),ss(s[0],s[1],s[2])};class sn extends tz{constructor(t,e,s){super(),this._frameId=-1,this._isFirstFrame=!0,this.defaultPropsArray=[],this.lettersChangedFlag=!1,this.renderedLetters=[],this._hasMaskedPath=!1,this._moreOptions={alignment:{}},this._pathData={},this.mHelper=new td,this._textData=t,this._renderType=e,this._elem=s,this._animatorsData=tu(Number(this._textData.a?.length)),this.initDynamicPropertyContainer(s)}getMeasures(t,e){try{if(this.lettersChangedFlag=!!e,!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m?._mdf))return;this._isFirstFrame=!1;let s=this._moreOptions.alignment.v,i=this._animatorsData,r=this._textData,a=this.mHelper,n=this._renderType,o=this.renderedLetters.length,h,l,p,c,m=t.l,u,d=0,f,g=0,y,v=0,b=0,_,x=null,w=[],S=0,E=0,k,C,P=null;if(this._hasMaskedPath&&this._pathData.m){if(P=this._pathData.m,!this._pathData.n||this._pathData._mdf){let t=P.v;if(t){let e;for(this._pathData.r?.v&&(t=t.toReversed()),u={segments:[],tLength:0},c=t._length-1,p=0;p<c;p++)L(t)||(e=tP(t.v[p],t.v[p+1],[(t.o[p]?.[0]??0)-(t.v[p]?.[0]??0),(t.o[p]?.[1]??0)-(t.v[p]?.[1]??0)],[(t.i[p+1]?.[0]??0)-(t.v[p+1]?.[0]??0),(t.i[p+1]?.[1]??0)-(t.v[p+1]?.[1]??0)]),u.tLength+=e.segmentLength,u.segments.push(e),E+=e.segmentLength);p=c,P.v?.c&&!L(t)&&(e=tP(t.v[p],t.v[0],[(t.o[p]?.[0]??0)-(t.v[p]?.[0]??0),(t.o[p]?.[1]??0)-(t.v[p]?.[1]??0)],[(t.i[0]?.[0]??0)-(t.v[0]?.[0]??0),(t.i[0]?.[1]??0)-(t.v[0]?.[1]??0)]),u.tLength+=e.segmentLength,u.segments.push(e),E+=e.segmentLength),this._pathData.pi=u}}if(u=this._pathData.pi,d=this._pathData.f?.v??0,v=1,w=u?.segments??[],d>0&&P.v?.c)for((u?.tLength??0<Math.abs(d))&&(d=-Math.abs(d)%(u?.tLength??0)),b=w.length-1,v=(x=w[b]?.points??[]).length-1;d<0;)d+=x[v]?.partialLength??0,(v-=1)<0&&(b-=1,v=(x=w[b]?.points??[]).length-1);_=(x=w[b]?.points??[])[v-1],S=(f=x[v]).partialLength}c=m.length||0,h=0,l=0;let M=1.2*(t.finalSize||0)*.714,A=!0,T,D,I,F,$=i.length,N,V=-1,R,O=0,B=0,G=d,q=b,j=v,H=-1,W,J=[0,0,0],U=0,Y=[0,0,0],X,K,Z,Q,tt="",te=this.defaultPropsArray,ts;if(2===t.j||1===t.j){let e=0,s=0,a=2===t.j?-.5:-1,n=0,o=!0;for(p=0;p<c;p++){if(m[p]?.n){for(e&&(e+=s);n<p;)(m[n]??{}).animatorJustifyOffset=e,n++;e=0,o=!0;continue}for(I=0;I<$;I++){if(T=i[I]?.a??{},!T.t?.propType)continue;let{v:n}=T.t;"number"==typeof n&&(o&&2===t.j&&(s+=n*a),D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars),void 0!==N&&(L(N)?e+=n*(N[0]??1)*a:e+=n*N*a))}o=!1}for(e&&(e+=s);n<p;)m[n].animatorJustifyOffset=e,n++}for(p=0;p<c;p++){if(a.reset(),W=1,m[p]?.n)h=0,l+=t.yOffset||0,l+=+!!A,d=G,A=!1,this._hasMaskedPath&&(b=q||0,v=j||0,_=(x=w[b]?.points??[])[v-1],S=(f=x[v]).partialLength,g=0),tt="",Q="",K="",ts="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(H!==m[p]?.line){switch(t.j){case 1:d+=E-(t.lineWidths[m[p]?.line??0]??0);break;case 2:d+=(E-(t.lineWidths[m[p]?.line??0]??0))/2}H=m[p]?.line||0}V!==m[p]?.ind&&(m[V]&&(d+=Number(m[V]?.extra)),d+=(m[p]?.an||0)/2,V=m[p]?.ind||0),d+=s[0]*(m[p]?.an||0)*.005;let e=0;for(I=0;I<$;I++){if(T=i[I]?.a,T?.p.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars)))continue;L(T.p.v)&&(L(N)?e+=T.p.v[0]*(N[0]??1):e+=T.p.v[0]*N)}if(T?.a.propType){if((D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))&&L(T.a.v)){if(L(N)){e+=(T.a.v[0]??0)*(N[0]??1);continue}e+=(T.a.v[0]??0)*N}}}for(y=!0,this._pathData.a?.v&&(d=.5*(m[0]?.an||0)+(E-Number(this._pathData.f?.v)-.5*(m[0]?.an||0)-(m[m.length-1]?.an??0)*.5)*V/(c-1)+Number(this._pathData.f?.v));y;)g+S>=d+e||!x?(k=(d+e-g)/(f?.partialLength||0),O=Number(_?.point[0])+(Number(f?.point[0])-Number(_?.point[0]))*k,B=Number(_?.point[1])+(Number(f?.point[1])-Number(_?.point[1]))*k,a.translate(-s[0]*(m[p]?.an??0)*.005,-(.01*(s[1]*M))),y=!1):x.length>0&&(g+=Number(f?.partialLength),++v>=x.length&&(v=0,w[++b]?x=w[b]?.points??[]:P?.v?.c?(b=0,x=w[b]?.points??[]):(g-=Number(f?.partialLength),x=null)),x&&(_=f,S=(f=x[v]).partialLength));R=(m[p]?.an??0)/2-(m[p]?.add??0),a.translate(-R,0,0)}else R=(m[p]?.an??0)/2-(m[p]?.add??0),a.translate(-R,0,0),a.translate(-s[0]*(m[p]?.an??0)*.005,-s[1]*M*.01,0);for(I=0;I<$;I++)if(T=i[I]?.a??{},T.t?.propType&&(D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars),0!==h||0!==t.j)){if(this._hasMaskedPath){L(N)?d+=Number(T.t.v)*(N[0]??1):d+=Number(T.t.v)*Number(N);continue}if(L(N)){h+=Number(T.t.v)*(N[0]??1);continue}h+=Number(T.t.v)*Number(N)}for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(J=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[Number(t.fc[0]),Number(t.fc[1]),Number(t.fc[2])]),I=0;I<$;I++)if(T=i[I]?.a??{},T.a?.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))||!L(T.a.v))continue;if(L(N)){a.translate(-(T.a.v[0]??0)*(N[0]??1),-(T.a.v[1]??0)*(N[1]??1),(T.a.v[2]??0)*(N[2]??1));continue}a.translate(-(T.a.v[0]??0)*N,-(T.a.v[1]??0)*N,(T.a.v[2]??0)*N)}for(I=0;I<$;I++)if(T=i[I]?.a??{},T.s?.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))||!L(T.s.v))continue;if(L(N)){a.scale(1+((T.s.v[0]??0)-1)*(N[0]??1),1+((T.s.v[1]??0)-1)*(N[1]??1),1);continue}a.scale(1+((T.s.v[0]??0)-1)*N,1+((T.s.v[1]??0)-1)*N,1)}for(I=0;I<$;I++)if(T=i[I]?.a??{},D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars)){if(T.sk?.propType&&(L(N)?a.skewFromAxis(-Number(T.sk.v)*(N[0]??1),Number(T.sa?.v)*(N[1]??1)):a.skewFromAxis(-Number(T.sk.v)*N,Number(T.sa?.v)*N)),T.r?.propType&&(L(N)?a.rotateZ(-Number(T.r.v)*(N[2]??1)):a.rotateZ(-Number(T.r.v)*N)),T.ry?.propType&&(L(N)?a.rotateY(Number(T.ry.v)*(N[1]??1)):a.rotateY(Number(T.ry.v)*N)),T.rx?.propType&&(L(N)?a.rotateX(Number(T.rx.v)*(N[0]??1)):a.rotateX(Number(T.rx.v)*N)),T.o?.propType&&(L(N)?W+=(Number(T.o.v)*(N[0]??1)-W)*(N[0]??1):W+=(Number(T.o.v)*N-W)*N),t.strokeWidthAnim&&T.sw?.propType&&(L(N)?U+=Number(T.sw.v)*(N[0]??1):U+=Number(T.sw.v)*N),t.strokeColorAnim&&T.sc?.propType&&L(T.sc.v))for(X=0;X<3;X++)L(N)?J[X]+=((T.sc.v[X]??0)-(J[X]??0))*(N[0]??1):J[X]+=((T.sc.v[X]??0)-(J[X]??0))*N;if(t.fillColorAnim&&t.fc){if(T.fc?.propType)for(X=0;X<3;X++)L(T.fc.v)&&(L(N)?Y[X]+=((T.fc.v[X]??0)-(Y[X]??0))*(N[0]??1):Y[X]+=((T.fc.v[X]??0)-(Y[X]??0))*N);T.fh?.propType&&(Y=L(N)?sr(Y,Number(T.fh.v)*(N[0]??1)):sr(Y,Number(T.fh.v)*N)),T.fs?.propType&&(Y=L(N)?sa(Y,Number(T.fs.v)*(N[0]??1)):sa(Y,Number(T.fs.v)*N)),T.fb?.propType&&(Y=L(N)?si(Y,Number(T.fb.v)*(N[0]??1)):si(Y,Number(T.fb.v)*N))}}for(I=0;I<$;I++)if(T=i[I]?.a??{},T.p?.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))||!L(T.p.v))continue;this._hasMaskedPath?L(N)?a.translate(0,T.p.v[1]*N[0],-T.p.v[2]*N[1]):a.translate(0,T.p.v[1]*N,-T.p.v[2]*N):L(N)?a.translate(T.p.v[0]*N[0],T.p.v[1]*N[1],-T.p.v[2]*N[2]):a.translate(T.p.v[0]*N,T.p.v[1]*N,-T.p.v[2]*N)}if(t.strokeWidthAnim&&(K=U<0?0:U),t.strokeColorAnim&&(Z=z(J)),t.fillColorAnim&&t.fc&&(Q=z(Y)),this._hasMaskedPath){if(a.translate(0,-Number(t.ls)),a.translate(0,s[1]*M*.01+l,0),this._pathData.p?.v){C=(Number(f?.point[1])-Number(_?.point[1]))/(Number(f?.point[0])-Number(_?.point[0]));let t=180*Math.atan(C)/Math.PI;Number(f?.point[0])<Number(_?.point[0])&&(t+=180),a.rotate(-t*Math.PI/180)}a.translate(O,B,0),d-=s[0]*(m[p]?.an??0)*.005,m[p+1]&&V!==m[p+1]?.ind&&(d+=(m[p]?.an??0)/2,d+=.001*t.tr*Number(t.finalSize))}else{switch(a.translate(h,l,0),t.ps&&a.translate(t.ps[0],t.ps[1]+Number(t.ascent),0),t.j){case 1:a.translate((m[p]?.animatorJustifyOffset??0)+Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[m[p]?.line??0]),0,0);break;case 2:a.translate((m[p]?.animatorJustifyOffset??0)+Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[m[p]?.line??0])/2,0,0)}a.translate(0,-Number(t.ls)),a.translate(R,0,0),a.translate(s[0]*m[p]?.an*.005,s[1]*M*.01,0),h+=(m[p]?.l??0)+.001*t.tr*Number(t.finalSize)}n===tn.SVG?tt=a.to2dCSS():te=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ts=W}if(o<=p){F=new e9(Number(ts),Number(K),Z,Q,tt,te),this.renderedLetters.push(F),o++,this.lettersChangedFlag=!0;continue}F=this.renderedLetters[p],this.lettersChangedFlag=F.update(Number(ts),Number(K),Z,Q,tt,te)||this.lettersChangedFlag}}catch(t){P(this.constructor.name,t)}}getValue(){return this._elem.globalData?.frameId===this._frameId||(this._frameId=this._elem.globalData?.frameId??0,this.iterateDynamicProperties()),0}searchProperties(t){let{length:e}=this._textData.a??[],{getProp:s}=tU;for(let t=0;t<e;t++)this._animatorsData[t]=new st(this._elem,this._textData.a?.[t],this);this._textData.p&&"m"in this._textData.p&&this._elem.maskManager?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m),p:s(this._elem,this._textData.p.p,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m?.a,1,0,this)}}function so(t){let e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",{length:r}=e;for(let t=0;t<r;t++)switch(e[t]?.toLowerCase()){case"italic":i="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200"}return{style:i,weight:t.fWeight||s}}let sh=[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],sl={data:{shapes:[]},shapes:[],size:0,w:0},sp=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function sc(t){let e=sm(t);return e>=127462&&e<=127487}function sm(t){let e=0,s=t.charCodeAt(0);if(s>=55296&&s<=56319){let i=t.charCodeAt(1);i>=56320&&i<=57343&&(e=(s-55296)*1024+i-56320+65536)}return e}function su(t,e){if(v)return;let s=tx("span");s.setAttribute("aria-hidden","true"),s.style.fontFamily=e;let i=tx("span");i.innerText="giItT1WQy@!-/#",s.style.position="absolute",s.style.left="-10000px",s.style.top="-10000px",s.style.fontSize="300px",s.style.fontVariant="normal",s.style.fontStyle="normal",s.style.fontWeight="normal",s.style.letterSpacing="0",s.appendChild(i),document.body.appendChild(s);let r=i.offsetWidth;return i.style.fontFamily=`${function(t){let e=t.split(","),{length:s}=e,i=[];for(let t=0;t<s;t++)"sans-serif"!==e[t]&&"monospace"!==e[t]&&i.push(e[t]);return i.join(",")}(t)}, ${e}`,{node:i,parent:s,w:r}}class sd{constructor(){this.chars=null,this.fonts=[],this.isLoaded=!1,this.typekitLoaded=0,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}addChars(t){if(!t)return;this.chars=this.chars??[];let{length:e}=t,s,{length:i}=this.chars,r;for(let a=0;a<e;a++){for(s=0,r=!1;s<i;)this.chars[s]?.style===t[a]?.style&&this.chars[s]?.fFamily===t[a]?.fFamily&&this.chars[s]?.ch===t[a]?.ch&&(r=!0),s++;!r&&(this.chars.push(t[a]),i++)}}addFonts(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}let{length:s}=t.list;if(!v){this.isLoaded=!0;for(let e=0;e<s;e++){let s=t.list[e];s.helper=this.createHelper(s),s.cache={}}this.fonts=t.list;return}let i=s;for(let s=0;s<i;s++){let r=!0,a,n=t.list[s];if(n.loaded=!1,n.monoCase=su(n.fFamily,"monospace"),n.sansCase=su(n.fFamily,"sans-serif"),n.fPath){if("p"===n.fOrigin||3===n.origin){if((a=document.querySelectorAll(`style[f-forigin="p"][f-family="${n.fFamily}"], style[f-origin="3"][f-family="${n.fFamily}"]`)).length>0&&(r=!1),r){let t=tx("style");t.setAttribute("f-forigin",n.fOrigin),t.setAttribute("f-origin",`${n.origin}`),t.setAttribute("f-family",n.fFamily),t.innerText=`@font-face {font-family: ${n.fFamily}; font-style: normal; src: url('${n.fPath}');}`,e?.appendChild(t)}}else if("g"===n.fOrigin||1===n.origin){let{length:t}=a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(let e=0;e<t;e++)a[e].href.includes(n.fPath)&&(r=!1);if(r){let t=tx("link");t.setAttribute("f-forigin",n.fOrigin),t.setAttribute("f-origin",`${n.origin}`),t.type="text/css",t.rel="stylesheet",t.href=n.fPath,document.body.appendChild(t)}}else if("t"===n.fOrigin||2===n.origin){let{length:t}=a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(let e=0;e<t;e++)n.fPath===a[e].src&&(r=!1);if(r){let t=tx("link");t.setAttribute("f-forigin",n.fOrigin),t.setAttribute("f-origin",`${n.origin}`),t.rel="stylesheet",t.href=n.fPath,e?.appendChild(t)}}}else n.loaded=!0,i-=1;n.helper=this.createHelper(n,e),n.cache={},this.fonts.push(n)}0===i?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}getCharData(t,e,s){let i=0,{length:r}=this.chars??[];for(;i<r;){if(this.chars?.[i]?.ch===t&&this.chars[i]?.style===e&&this.chars[i]?.fFamily===s)return this.chars[i];i++}return("string"!=typeof t||13===t.charCodeAt(0))&&t||this._warned||(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,s)),sl}getFontByName(t){let e=0,{length:s}=this.fonts;for(;e<s;){if(this.fonts[e]?.fName===t)return this.fonts[e];e++}return this.fonts[0]}measureText(t,e,s){let i=this.getFontByName(e);if(i.cache&&!i.cache[t]){let e=i.helper;if(" "===t){let s=Number(e?.measureText(`|${t}|`)),r=Number(e?.measureText("||"));i.cache[t]=(s-r)/100}else i.cache[t]=Number(e?.measureText(t))/100}return Number(i.cache?.[t])*Number(s)}checkLoadedFonts(){let t,e,s=this.fonts.length;for(let i=0;i<s;i++){let r=this.fonts[i];if(r.loaded){s-=1;continue}if("n"===r.fOrigin||0===r.origin){r.loaded=!0;continue}if(t=r.monoCase?.node,e=r.monoCase?.w||0,t?.offsetWidth===e?(t=r.sansCase?.node,e=r.sansCase?.w||0,t?.offsetWidth!==e&&(s-=1,r.loaded=!0)):(s-=1,r.loaded=!0),!r.loaded)continue;let{monoCase:a,sansCase:n}=r;n&&n.parent.parentNode?.removeChild(n.parent),a&&a.parent.parentNode?.removeChild(a.parent)}0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}createHelper(t,e){let s;if(v)return;let i=e?tn.SVG:tn.Canvas,r=so(t);if(i===tn.SVG){let i=tf("text");i.style.fontSize="100px",i.setAttribute("font-family",t.fFamily),i.setAttribute("font-style",r.style),i.setAttribute("font-weight",r.weight),i.textContent="1",t.fClass?(i.style.fontFamily="inherit",i.classList.add(t.fClass)):i.style.fontFamily=t.fFamily,e?.appendChild(i),s=i}else{let e=new OffscreenCanvas(500,500).getContext("2d");e&&(e.font=`${r.style} ${r.weight} 100px ${t.fFamily}`,s=e)}return{measureText:t=>i===tn.SVG?(s.textContent=t,s.getComputedTextLength()):s.measureText(t).width}}setIsLoaded(){this.isLoaded=!0}}class sf extends tG{constructor(t,e){super(),this.canResize=!1,this.defaultBoxWidth=[0,0],this.effectsSequence=[],this.keysIndex=0,this.minimumFontSize=1,this.pv="",this.v="",this._frameId=-999999,this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d?.sid&&(e.d=t.globalData?.slotManager?.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.currentData={__complete:!1,ascent:0,boxWidth:this.defaultBoxWidth,f:"",fc:"",fillColorAnim:!1,finalLineHeight:0,finalSize:0,finalText:[],fStyle:"",fWeight:"",justifyOffset:0,l:[],lh:0,lineWidths:[],ls:0,of:"",ps:null,s:0,sc:"",strokeColorAnim:!1,strokeWidthAnim:!1,sw:0,t:0,tr:0,yOffset:0};let s=this.data.d?.k[0]?.s;s&&this.copyData(this.currentData,s),this.searchProperty()||this.completeTextData(this.currentData)}addEffect(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)}buildFinalText(t){let e=[],s=0,i=t.length,r,a,n,o=!1,h;for(;s<i;){var l;(n=o,o=!1,r=t.charCodeAt(s),h=t.charAt(s),sh.includes(r))?n=!0:r>=55296&&r<=56319?function(t,e){let s=e,i=sm(t.slice(s,2));if(127988!==i)return!1;let r=0;for(s+=2;r<5;){if((i=sm(t.slice(s,2)))<917601||i>917626)return!1;r++,s+=2}return 917631===sm(t.slice(s,2))}(t,s)?h=t.slice(s,14):(a=t.charCodeAt(s+1))>=56320&&a<=57343&&(function(t,e){let s=t.toString(16)+e.toString(16);return sp.includes(s)}(r,a)?(h=t.slice(s,2),n=!0):h=sc((l=t.slice(s,4)).slice(0,2))&&sc(l.slice(2,2))?t.slice(s,4):t.slice(s,2)):r>56319?65039===r&&(n=!0):8205===r&&(n=!0,o=!0),n?e[e.length-1]+=h:e.push(h),s+=h.length}return e}calculateExpression(t){throw Error(`${this.constructor.name}: Method calculateExpression is not implemented`)}canResizeFont(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}completeTextData(t){let e,s,i,r,a,n,o;t.__complete=!0;let{fontManager:h}=this.elem.globalData??{};if(!h)throw Error(`${this.constructor.name}: FontManager not loaded to globalData`);let{canResize:l,data:p,minimumFontSize:c}=this,m=[],u,d,f=0,g,y=p.m?.g,v=0,b=0,_=0,x=[],w,S=0,E=h.getFontByName(t.f),k=so(E);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(`${t.t}`),u=t.finalText.length||0,t.finalLineHeight=t.lh;let C=t.tr/1e3*t.finalSize;if(t.sz){let r,a,n=!0,[o,p]=t.sz;for(;n;){a=this.buildFinalText(`${t.t}`),r=0,w=0,u=a.length,C=t.tr/1e3*t.finalSize;let m=-1;for(let n=0;n<u;n++)if(i=a[n]?.charCodeAt(0)??0,d=!1," "===a[n]?m=n:(13===i||3===i)&&(w=0,d=!0,r+=t.finalLineHeight||1.2*t.finalSize),h.chars?(e=h.getCharData(a[n]??"",E.fStyle,E.fFamily),s=d?0:e.w*t.finalSize/100):s=h.measureText(a[n]??"",t.f,t.finalSize)||0,w+s>o&&" "!==a[n]){let e=n;-1===m?u++:e=m,r+=t.finalLineHeight||1.2*t.finalSize,a.splice(e,+(m===e),"\r"),m=-1,w=0}else w+=s,w+=C;r+=Number(E.ascent)*t.finalSize/100,l&&t.finalSize>c&&p<r?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=a,u=t.finalText.length,n=!1)}}w=-C;let P=0,M;for(let r=0;r<u;r++)if(d=!1,13===(i=(M=t.finalText[r]??"").charCodeAt(0))||3===i?(P=0,x.push(w),S=w>S?w:S,w=-2*C,g="",d=!0,_++):g=M,h.chars?(e=h.getCharData(M,E.fStyle,h.getFontByName(t.f).fFamily),s=d?0:e.w*t.finalSize/100):s=h.measureText(g,t.f,t.finalSize)," "===M?P+=s+C:(w+=s+C+P,P=0),m.push({add:v,an:s,animatorJustifyOffset:0,anIndexes:[],l:s,line:_,n:d,val:g}),2===y){if(v+=s,""===g||" "===g||r===u-1){for((""===g||" "===g)&&(v-=s);b<=r;){let t=m[b];t.an=v,t.ind=f,t.extra=s,b++}f++,v=0}}else if(3===y){if(v+=s,""===g||r===u-1){""===g&&(v-=s);let t=m[b];for(;b<=r;)t.an=v,t.ind=f,t.extra=s,b++;v=0,f++}}else{let t=m[f];t.ind=f,t.extra=0,f++}if(t.l=m,S=w>S?w:S,x.push(w),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=S,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=x;let A=p.a,{length:T}=A??[],D=[];for(let e=0;e<T;e++){if(!(r=A?.[e]))continue;r.a?.sc&&(t.strokeColorAnim=!0),r.a?.sw&&(t.strokeWidthAnim=!0),(r.a?.fc||r.a?.fh||r.a?.fs||r.a?.fb)&&(t.fillColorAnim=!0),o=0,n=Number(r.s?.b);for(let t=0;t<u;t++)(a=m[t]??{}).anIndexes[e]=o,(1===n&&""!==a.val||2===n&&""!==a.val&&" "!==a.val||3===n&&(a.n||" "===a.val||t===u-1)||4===n&&(a.n||t===u-1))&&(1===Number(r.s?.rn)&&D.push(o),o++);let s=p.a?.[e]?.s;s&&(s.totalChars=o);let i=-1,h;if(r.s?.rn===1)for(let t=0;t<u;t++)i!==(a=m[t]??{}).anIndexes[e]&&(i=a.anIndexes[e]??0,h=D.splice(Math.floor(Math.random()*D.length),1)[0]),h&&(a.anIndexes[e]=h)}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=Number(E.ascent)*t.finalSize/100}copyData(t,e){let s=Object.keys(e),{length:i}=s;for(let r=0;r<i;r++)Object.hasOwn(e,s[r]??"")&&(t[s[r]]=e[s[r]]);return t}getExpressionValue(t,e){throw Error(`${this.constructor.name}: Method getExpressionValue is not implemented`)}getKeyframeValue(){let t=this.data.d?.k??[],e=Number(this.elem.comp?.renderedFrame),s=0,i=t.length;for(;s<=i-1&&!(s===i-1||t[s+1]?.t>e);)s++;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d?.k[this.keysIndex]?.s}getValue(t){if((this.elem.globalData?.frameId===this.frameId||0===this.effectsSequence.length)&&!t)return 0;let e=this.data.d?.k[this.keysIndex]?.s.t;void 0!==e&&(this.currentData.t=e);let s=this.currentData,i=this.keysIndex;if(this.lock)return this.setCurrentData(this.currentData),0;this.lock=!0,this._mdf=!1;let{length:r}=this.effectsSequence,a=t??this.data.d?.k[this.keysIndex]?.s;for(let t=0;t<r;t++)a=i===this.keysIndex?this.effectsSequence[t]?.(this.currentData,a?.t):this.effectsSequence[t]?.(a,a?.t);return s!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData?.frameId,0}recalculate(t){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);let e=this.data.d.k[t]?.s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)}searchExpressions(){throw Error(`${this.constructor.name}: Method searchExpressions is not implemented`)}searchKeyframes(){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf}searchProperty(){return this.searchKeyframes()}setCurrentData(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0}setMinimumFontSize(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}updateDocumentData(t,e){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);let s=e;s=s??this.keysIndex;let i=this.copyData({},this.data.d.k[s]?.s??{});i=this.copyData(i,t),(this.data.d.k[s]??{s:null}).s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)}}class sg extends ew{applyTextPropertiesToMatrix(t,e,s,i,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+Number(t.ascent),0),e.translate(0,-Number(t.ls),0),t.j){case 1:e.translate(Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[s]),0,0);break;case 2:e.translate(Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[s])/2,0,0)}e.translate(i,r,0)}buildColor(t){let e=Math.round(255*t[0]),s=Math.round(255*t[1]),i=Math.round(255*t[2]);return`rgb(${e},${s},${i})`}canResizeFont(t){this.textProperty?.canResizeFont(t)}createPathShape(t,e){let s,i="",{length:r}=e;for(let a=0;a<r;a++)e[a]?.ty===to.Path&&e[a]?.ks?.k&&(i+=eE(s=e[a]?.ks?.k,s.i.length,!0,t));return i}initElement(t,e,s){if(!t.t)throw Error(`${this.constructor.name}: data.t (LottieLayer -> TextData) can't be undefined`);this.emptyProp=new e9,this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,s),this.textProperty=new sf(this,t.t),this.textAnimator=new sn(t.t,this.renderType||tn.SVG,this),this.initTransform(),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)}prepareFrame(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}setMinimumFontSize(t){this.textProperty?.setMinimumFontSize(t)}updateDocumentData(t,e){this.textProperty?.updateDocumentData(t,e)}validateText(){(this.textProperty?._mdf||this.textProperty?._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)}}class sy extends ex{constructor(t,e,s){super(),this._canPlay=!1,this._currentTime=0,this._isPlaying=!1,this._previousVolume=null,this._volume=1,this._volumeMultiplier=1,this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId)??null,this.initBaseData(t,e,s);let i=this.globalData?.getAssetsPath(this.assetData);this.audio=this.globalData?.audioController?.createAudio(i),this.globalData?.audioController?.addAudio(this),this.tm=t.tm?tU.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=tU.getProp(this,t.au?.lv??{k:[100]},1,.01,this)}getBaseElement(){return null}hide(){this.audio.pause(),this._isPlaying=!1}initExpressions(){}pause(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1}prepareFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/Number(this.data.sr):this._currentTime=this.tm.v,this._volume=this.lv.v[0];let e=this._volume*this._volumeMultiplier;this._previousVolume!==e&&(this._previousVolume=e,this.audio.volume(e))}renderFrame(t){if(this.isInRange&&this._canPlay){if(!this._isPlaying){this.audio.play(),this.audio.seek(this._currentTime/Number(this.globalData?.frameRate)),this._isPlaying=!0;return}(!this.audio.playing()||Math.abs(this._currentTime/Number(this.globalData?.frameRate)-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/Number(this.globalData?.frameRate))}}resume(){this._canPlay=!0}setRate(t){this.audio.rate(t)}show(){}sourceRectAtTime(){return null}volume(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)}}class sv extends ex{constructor(t,e,s){if(super(),this.assetData=null,this.initFrame(),this.initRenderable(),t.refId&&(this.assetData=e.getAssetData(t.refId)??null),!e.imageLoader)throw Error(`${this.constructor.name}: imageLoader is not implemented in globalData`);this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,s)}getBaseElement(){return null}getFootageData(){return this.footageData}initExpressions(){let t=em.interface;if(!t)return;let e=t("footage");this.layerInterface=new e(this)}prepareFrame(){}renderFrame(){}}class sb extends e_{constructor(t,e,s){super(),this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initHierarchy()}getBaseElement(){return null}prepareFrame(t){this.prepareProperties(t,!0)}renderFrame(t){return null}}class s_{constructor(t){this.animationData=t}getProp(t){let{sid:e}=t;return e&&this.animationData.slots?.[e]?Object.assign(t,this.animationData.slots[e].p):t}}class sx extends e_{addPendingElement(t){this.pendingElements.push(t)}buildAllItems(){let{length:t}=this.layers;for(let e=0;e<t;e++)this.buildItem(e);this.checkPendingElements()}buildElementParenting(t,e,s=[]){let{elements:i,layers:r}=this,{length:a}=r,n=0;for(;n<a;){if(r[n]?.ind!==e){n++;continue}let a=i[n];if(!a||!0===a){this.buildItem(n),this.addPendingElement(t),n++;continue}if(s.push(a),a.setAsParent(),r[n]?.parent===void 0){t.setHierarchy(s),n++;continue}this.buildElementParenting(t,r[n]?.parent,s),n++}}buildItem(t){throw Error(`${this.constructor.name}: Method buildItem not yet implemented`)}checkLayers(t){this.completeLayers=!0;let{length:e}=this.layers;for(let s=e-1;s>=0;s--){let e=this.layers[s];!this.elements[s]&&e.ip-e.st<=Number(t)-e.st&&e.op-e.st>Number(t)-e.st&&this.buildItem(s),this.completeLayers=!!this.elements[s]&&this.completeLayers}this.checkPendingElements()}createAudio(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new sy(t,this.globalData,this)}createCamera(t){throw Error("3D camera is not supported by this package.")}createFootage(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new sv(t,this.globalData,this)}createItem(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}}createNull(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new sb(t,this.globalData,this)}getElementById(t){let{length:e}=this.elements;for(let s=0;s<e;s++)if(this.elements[s]?.data.ind===t)return this.elements[s]??null;return null}getElementByPath(t){let e,s=t.shift();if("number"==typeof s)e=this.elements[s];else{let{length:t}=this.elements;for(let i=0;i<t;i++)if(this.elements[i]?.data.nm===s){e=this.elements[i];break}}return 0===t.length?e:e?.getElementByPath(t)}includeLayers(t){this.completeLayers=!1;let{length:e}=t,{length:s}=this.layers;for(let i=0;i<e;i++){let e=0;for(;e<s;){if(this.layers[e]?.id===t[i]?.id){this.layers[e]=t[i];break}e++}}}initItems(){this.globalData?.progressiveLoad||this.buildAllItems()}searchExtraCompositions(t){let{length:e}=t;for(let s=0;s<e;s++)if(t[s]?.xt){let e=this.createComp(t[s]);e.initExpressions(),this.globalData?.projectInterface.registerComposition(e)}}setProjectInterface(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);t&&(this.globalData.projectInterface=t)}setupGlobalData(t,e){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);this.globalData.fontManager=new sd,this.globalData.slotManager=new s_(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||60,this.globalData.nm=t.nm,this.globalData.compSize={h:t.h,w:t.w}}constructor(...t){super(...t),this.completeLayers=!1,this.currentFrame=0,this.elements=[],this.layers=[],this.pendingElements=[]}}class sw{constructor(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=i<0?-1:1}}class sS{constructor(t,e){this.type=t,this.direction=e<0?-1:1}}class sE{constructor(t,e,s,i){this.type=t,this.direction=s,this.currentTime=e,this.totalTime=i}}class sk{constructor(t,e,s,i){this.type=t,this.currentLoop=s,this.totalLoops=e,this.direction=i<0?-1:1}}class sC{constructor(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}}class sP{constructor(t,e){this.type=t,this.target=e}}class sM{constructor(t,e){this.type=tr.RenderFrameError,this.nativeError=t,this.currentTime=e}}class sA{constructor(t,e){this.type=tr.ConfigError,this.nativeError=t}}class sT{addEventListener(t,e){return this._cbs[t]=this._cbs[t]??[],this._cbs[t].push(e),()=>{this.removeEventListener(t,e)}}removeEventListener(t,e){if(!e){this._cbs[t]=null;return}if(this._cbs[t]){let s=0,{length:i}=this._cbs[t];for(;s<i;)this._cbs[t][s]===e&&(this._cbs[t].splice(s,1),s--,i--),s++;0===this._cbs[t].length&&(this._cbs[t]=null)}}triggerEvent(t,e){if(!this._cbs[t])return;let s=[...this._cbs[t]],{length:i}=s;for(let t=0;t<i;t++)s[t]?.(e)}constructor(){this._cbs={}}}let sD={},sI=()=>{if(sD.canvas)return tn.Canvas;let t=Object.keys(sD),{length:e}=t;for(let s=0;s<e;s++)if(sD[t[s]])return t[s];return tn.SVG};class sF{constructor(t){this.audios=[],this._isMuted=!1,this._volume=1,this.audioFactory=t}addAudio(t){this.audios.push(t)}createAudio(t){return this.audioFactory?this.audioFactory(t):!v&&"Howl"in window?new window.Howl({src:[t]}):{isPlaying:!1,play:()=>{this.isPlaying=!0},playing:()=>{throw Error(`${this.constructor.name}: Method playing is not implemented`)},rate:()=>{throw Error(`${this.constructor.name}: Method rate is not implemented`)},seek:()=>{this.isPlaying=!1},setVolume:()=>{throw Error(`${this.constructor.name}: Method setVolume is not implemented`)}}}getVolume(){return this._volume}mute(){this._isMuted=!0,this._updateVolume()}pause(){for(let t of this.audios)t.pause()}resume(){for(let t of this.audios)t.resume()}setAudioFactory(t){this.audioFactory=t}setRate(t){for(let e of this.audios)e.setRate(t)}setVolume(t){this._volume=t,this._updateVolume()}unmute(){this._isMuted=!1,this._updateVolume()}_updateVolume(){let{length:t}=this.audios;for(let e=0;e<t;e++)this.audios[e]?.volume(this._volume*!this._isMuted)}}function sL(t,e,s,i){let r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=()=>{if(4===a.readyState){if(200===a.status)return void s(r=s$(a));try{r=s$(a),s(r)}catch(t){i?.(t)}}};try{a.open("GET",t,!0)}catch(s){a.open("GET",`${e}/${t}`,!0)}a.send()}function s$(t){let e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&e.includes("json")||t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function sN(t,e){let s,{length:i}=t;for(let a=0;a<i;a++)if("ks"in(s=t[a])&&!s.completed){if(s.completed=!0,s.hasMask){let t=s.masksProperties,{length:e}=t??[];for(let s=0;s<e;s++){let e=t?.[s]?.pt?.k;if(!e)continue;if(!L(e)){sO(e);continue}let{length:i}=e;for(let t=0;t<i;t++){let s=e[t]?.e??[],i=e[t]?.s??[];s.length>0&&sO(s[0]),i.length>0&&sO(i[0])}}}switch(s.ty){case 0:s.layers=sV(s.refId,e),sN(s.layers,e);break;case 4:sR(s.shapes);break;case 5:var r;r=s,r.t?.a?.length===0&&r.t.p}}}function sV(t,e){if(!t||!e)return;let s=function(t,e){let s=0,{length:i}=e;for(;s<i;){if(e[s]?.id===t)return e[s];s++}return null}(t,e);return s?.layers?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function sR(t=[]){let{length:e}=t;for(let s=e-1;s>=0;s--){if(t[s]?.ty===to.Group){sR(t[s]?.it);continue}if(t[s]?.ty===to.Path){let e=t[s]?.ks?.k;if(!L(e)){sO(e);continue}let{length:i}=e;for(let t=0;t<i;t++){let s=e[t]?.e,i=e[t]?.s;s&&sO(s[0]),i&&sO(i[0])}}}}function sO(t){if(!t)return;let{length:e}=t.i;for(let s=0;s<e;s++)t.i[s][0]+=t.v[s]?.[0]??0,t.i[s][1]+=t.v[s]?.[1]??0,t.o[s][0]+=t.v[s]?.[0]??0,t.o[s][1]+=t.v[s]?.[1]??0}function sz(t,e){let s=e?e.split(".").map(Number):[100,100,100];return t[0]>s[0]||!(s[0]>t[0])&&(t[1]>s[1]||!(s[1]>t[1])&&(t[2]>s[2]||!(s[2]>t[2])&&null))}let sB=(t,e,s)=>{let{length:i}=t;for(let r=0;r<i;r++)t[r]?.ty===s&&e(t[r])},sG=(r=[4,4,14],a=t=>{let e=t.t?.d;t.t&&e&&(t.t.d={k:[{s:e,t:0}]})},t=>{if(!sz(r,t.v))return;sB(t.layers,a,5);let{length:e}=t.assets;for(let s=0;s<e;s++)t.assets[s]?.layers&&sB(t.assets[s]?.layers,a,5)}),sq=(n=[4,7,99],t=>{if(!t.chars||sz(n,t.v))return;let{length:e}=t.chars;for(let s=0;s<e;s++){let e=t.chars[s];e.data?.shapes&&(sR(e.data.shapes),e.data.ip=0,e.data.op=99999,e.data.st=0,e.data.sr=1,e.data.ks={a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]}},t.chars[s]?.t||(e.data.shapes.push({ty:to.NoStyle}),e.data.shapes[0]?.it?.push({a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sa:{a:0,k:0},sk:{a:0,k:0},ty:to.Transform})))}}),sj=(o=[5,7,15],h=t=>{let e=t.t?.p;e&&("number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))},t=>{if(!sz(o,t.v))return;sB(t.layers,h,5);let{length:e}=t.assets;for(let s=0;s<e;s++)t.assets[s]?.layers&&sB(t.assets[s]?.layers,h,5)}),sH=(l=[4,1,9],p=t=>{let{length:e}=t;for(let s=0;s<e;s++){if(t[s]?.ty===to.Group){p(t[s]?.it??[]);continue}if(t[s]?.ty!==to.Fill&&t[s]?.ty!==to.Stroke)continue;let e=t[s]?.c?.k;if(!e||"number"==typeof e)continue;if($(e)&&e.length>=4){e[0]/=255,e[1]/=255,e[2]/=255,e[3]/=255;continue}let{length:i}=e;for(let t=0;t<i;t++){let s=e[t];s.s[0]/=255,s.s[1]/=255,s.s[2]/=255,s.s[3]/=255,s.e[0]/=255,s.e[1]/=255,s.e[2]/=255,s.e[3]/=255}}},c=t=>{let{length:e}=t;for(let s=0;s<e;s++)t[s]?.ty===4&&p(t[s]?.shapes??[])},t=>{if(!sz(l,t.v))return;c(t.layers);let{length:e}=t.assets;for(let s=0;s<e;s++)t.assets[s]?.layers&&c(t.assets[s]?.layers)}),sW=(m=[4,4,18],u=t=>{let{length:e}=t;for(let s=e-1;s>=0;s--){if(t[s]?.ty===to.Group){u(t[s]?.it??[]);continue}if(t[s]?.ty!==to.Path)continue;let e=t[s]?.ks?.k;if(!e)continue;let i=!!t[s]?.closed;if(!L(e)){e.c=i;continue}let{length:r}=e;for(let t=0;t<r;t+=1){let s=e[t]?.e??[],r=e[t]?.s??[];s.length>0&&(s[0].c=i),r.length>0&&(r[0].c=i)}}},d=t=>{let e,{length:s}=t;for(let i=0;i<s;i++){if((e=t[i]).hasMask){let t=e.masksProperties,{length:s}=t??[];for(let e=0;e<s;e++){let s=t?.[e]?.pt?.k;if(!s)continue;let i=!!t[e]?.cl;if(!L(s)){s.c=i;continue}let{length:r}=s;for(let t=0;t<r;t++){let e=s[t]?.e??[],r=s[t]?.s??[];e.length>0&&(e[0].c=i),r.length>0&&(r[0].c=i)}}}4===e.ty&&u(e.shapes)}},t=>{if(!sz(m,t.v))return;d(t.layers);let{length:e}=t.assets;for(let s=0;s<e;s++)t.assets[s]?.layers&&d(t.assets[s]?.layers)}),sJ={checkChars:sq,checkColors:sH,checkPathProperties:sj,checkShapes:sW,completeData:function(t){t.__complete||(sH(t),sG(t),sq(t),sj(t),sW(t),sN(t.layers,t.assets),function(t,e=[]){if(!t)return;let{length:s}=t;for(let i=0;i<s;i++){if(t[i]?.t!==1)continue;let{data:s}=t[i]??{};s&&(s.layers=sV(s.refId,e)),sN(t[i]?.data?.layers??[],e)}}(t.chars,t.assets),t.__complete=!0)},completeLayers:sN},sU={current:!1},sY=1,sX,sK="Function not implemented.",sZ={addEventListener:(t,e,s)=>{throw Error(sK)},dispatchEvent:t=>{throw Error(sK)},onerror:null,onmessage:t=>{throw Error("workerProxy: Method onmessage not implemented")},onmessageerror:null,postMessage:t=>{sX({data:t})},removeEventListener:(t,e,s)=>{throw Error(sK)},terminate:()=>{throw Error(sK)}},sQ={postMessage:t=>{sZ.onmessage&&sZ.onmessage({AT_TARGET:2,bubbles:!1,BUBBLING_PHASE:3,cancelable:!1,cancelBubble:!1,CAPTURING_PHASE:1,composed:!1,composedPath:()=>{throw Error(sK)},currentTarget:null,data:t,defaultPrevented:!1,eventPhase:0,initEvent:(t,e,s)=>{throw Error(sK)},initMessageEvent:(t,e,s,i,r,a,n,o)=>{throw Error(sK)},isTrusted:!1,lastEventId:"",NONE:0,origin:"",ports:[],preventDefault:()=>{throw Error(sK)},returnValue:!1,source:null,srcElement:null,stopImmediatePropagation:()=>{throw Error(sK)},stopPropagation:()=>{throw Error(sK)},target:null,timeStamp:0,type:""})}},s0={};function s1(){e||((e=function(t){if(!v&&sU.current){let e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(e))}return sX=t,sZ}(t=>{if(sQ.dataManager=sQ.dataManager??sJ,"loadAnimation"===t.data.type)return void sL(t.data.path,t.data.fullPath,e=>{e&&sJ.completeData(e),sQ.postMessage({id:t.data.id,payload:e,status:"success"})},()=>{sQ.postMessage({id:t.data.id,status:"error"})});if("complete"===t.data.type){let{animation:e,id:s}=t.data;sJ.completeData(e),sQ.postMessage({id:s,payload:e,status:"success"});return}"loadData"===t.data.type&&sL(t.data.path,t.data.fullPath,e=>{sQ.postMessage({id:t.data.id,payload:e,status:"success"})},()=>{sQ.postMessage({id:t.data.id,status:"error"})})})).onmessage=({data:t})=>{let{id:e,payload:s,status:i}=t,r=s0[e];(s0[e]=null,"success"===i)?r.onComplete(s):r.onError&&r.onError()})}function s2(t,e){sY++;let s=`processId_${sY}`;try{return s0[s]={onComplete:t,onError:e},s}catch(t){throw P("DataManager}:\n",t),Error("Could not create animation proccess",{cause:t})}}function s3(t,s,i){s1();let r=s2(s,i);e?.postMessage({fullPath:v?t:window.location.origin+window.location.pathname,id:r,path:t,type:"loadData"})}function s5(t,s,i){s1();let r=s2(s,i);e?.postMessage({animation:t,id:r,type:"complete"})}class s4{getComposition(t){let e=0,{length:s}=this.compositions;for(;e<s;){let s=this.compositions[e];if(s.data&&s.data.nm===t)return s.data.xt&&"prepareFrame"in s&&s.prepareFrame(this.currentFrame),s.compInterface;e++}return null}registerComposition(t){this.compositions.push(t)}constructor(){this.compositions=[],this.currentFrame=0}}let s6={current:!0};class s8{constructor(){this.assetsPath="",this.images=[],this.imagesLoadedCb=null,this.loadedAssets=0,this.loadedFootagesCount=0,this.path="",this.totalFootages=0,this.totalImages=0,this._adoptedImages=new WeakSet,this._hasNotified=!1,this._isRegistering=!1,this._pendingTimeouts=new Set,this._preloadHost=null,this._imageLoaded=this.imageLoaded.bind(this),this._footageLoaded=this.footageLoaded.bind(this),this.createFootageData=this.createFootageData.bind(this),this.proxyImage=this._createProxyImage()}adoptSvgImage(t){let e=this.getAsset(t);return!(!e||"u"<typeof SVGImageElement)&&e instanceof SVGImageElement?this._adoptedImages.has(e)?e.cloneNode(!0):(this._adoptedImages.add(e),e):null}createFootageData(t){let e={assetData:t,img:null};return s3(this.getAssetsPath(t,this.assetsPath,this.path),t=>{t&&(e.img=t),this._footageLoaded()},()=>{this._footageLoaded()}),e}createImageData(t){let e=this.getAssetsPath(t,this.assetsPath,this.path),s=tf("image"),i={assetData:t,img:s};return t.w&&s.setAttribute("width",`${t.w}`),t.h&&s.setAttribute("height",`${t.h}`),s.setAttributeNS(g,"href",e),this._elementHelper?.append?this._elementHelper.append(s):this._elementHelper?.appendChild(s),this._awaitSvgImageReady(s,this._imageLoaded,()=>{this.proxyImage&&(i.img=this.proxyImage),this._imageLoaded()}),i}destroy(){for(let t of this._pendingTimeouts)clearTimeout(t);this._pendingTimeouts.clear(),this.imagesLoadedCb=null,this.cleanupElementHelper(),this.destroyPreloadHost(),this.images.length=0}footageLoaded(){this.loadedFootagesCount++,this.notifyIfComplete()}getAsset(t){let e=0,{length:s}=this.images;for(;e<s;){if(this.images[e]?.assetData===t)return this.images[e]?.img??null;e++}return null}imageLoaded(){this.loadedAssets++,this.notifyIfComplete()}loadAssets(t,e){this.imagesLoadedCb=e,this._hasNotified=!1,this._isRegistering=!0;let{length:s}=t;for(let e=0;e<s;e++)if(!t[e]?.layers){if((!t[e]?.t||t[e]?.t==="seq")&&this._createImageData){this.totalImages++;let s=this._createImageData(t[e]);s&&this.images.push(s);continue}3===Number(t[e]?.t)&&(this.totalFootages++,this.images.push(this.createFootageData(t[e])))}this._isRegistering=!1,this.notifyIfComplete()}loadedFootages(){return this.totalFootages===this.loadedFootagesCount}loadedImages(){return this.totalImages===this.loadedAssets}setAssetsPath(t){this.assetsPath=t||""}setCacheType(t,e){t===tn.SVG?(this._elementHelper=this.ensurePreloadHost(),this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}setPath(t){this.path=t||""}_awaitSvgImageReady(t,e,s){if(v)return void e();let i=!1,r,a=t=>{i||(i=!0,clearTimeout(r),void 0!==r&&this._pendingTimeouts.delete(r),t())};r=setTimeout(()=>{a(e)},25e3),this._pendingTimeouts.add(r);let n=()=>{try{let e=tx("canvas").getContext("2d");e?.drawImage(t,0,0,1,1)}catch{}a(e)};t.addEventListener("load",()=>{n()},{once:!0}),t.addEventListener("error",()=>{a(s)},{once:!0}),n()}_createProxyImage(){if(v)return null;let t=tx(tn.Canvas);t.width=1,t.height=1;let e=t.getContext("2d");return e&&(e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1)),t}cleanupElementHelper(){let t=this._elementHelper;if(t)for(let e=0;e<this.images.length;e++){let s=this.images[e]?.img;s&&"u">typeof SVGImageElement&&s instanceof SVGImageElement&&s.parentNode===t&&t.removeChild(s)}}createImgData(t){let e=this.getAssetsPath(t,this.assetsPath,this.path),s=tx("img"),i={assetData:t,img:s};s.crossOrigin="anonymous";let r=!1,a=()=>{r||(r=!0,this._imageLoaded())},n=()=>{"function"==typeof s.decode?s.decode().then(()=>{a()}).catch(()=>{a()}):a()};return s.addEventListener("load",n,!1),s.addEventListener("error",()=>{this.proxyImage&&(i.img=this.proxyImage),a()},!1),s.src=e,s.complete&&(s.naturalWidth>0?n():(this.proxyImage&&(i.img=this.proxyImage),a())),i}destroyPreloadHost(){this._preloadHost?.remove(),this._preloadHost=null,this._elementHelper=void 0}ensurePreloadHost(){if(this._elementHelper)return this._elementHelper;if(v)return this._elementHelper=tf("g"),this._elementHelper;let t=tf("svg");return t.setAttribute("aria-hidden","true"),t.setAttribute("width","1"),t.setAttribute("height","1"),t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none",document.documentElement.appendChild(t),this._preloadHost=t,this._elementHelper=t,t}getAssetsPath(t,e,s){if(t.e)return t.p||"";if(e){let s=t.p;return s?.indexOf("images/")!==-1&&(s=s?.split("/")[1]),`${e}${s||""}`}let i=s;return i+=t.u??"",i+=t.p??""}notifyIfComplete(){if(this._isRegistering||this._hasNotified||this.loadedAssets!==this.totalImages||this.loadedFootagesCount!==this.totalFootages||!this.imagesLoadedCb)return;let t=this.imagesLoadedCb;this._hasNotified=!0,t(null),this.cleanupElementHelper(),this._preloadHost&&!this._preloadHost.hasChildNodes()&&this.destroyPreloadHost()}}let s9=t=>{let e=t.split("\r\n"),s={},{length:i}=e,r=0;for(let t=0;t<i;t++){let i=e[t]?.split(":")??[];if(2===i.length){let[t,e]=i;if(!t||!e)continue;s[t]=e.trim(),r++}}if(0===r)throw Error("Could not parse markers");return s};class s7 extends sT{constructor(){super(),this._isFirstFrame=!1,this.animationData={},this.animationID=k(),this.assets=[],this.assetsPath="",this.audioController=new sF(void 0),this.autoplay=!1,this.currentFrame=0,this.currentRawFrame=0,this.drawnFrameEvent=new sE(tr.DrawnFrame,0,1,0),this.enterFrameEvent=new sw(tr.EnterFrame,0,0,1),this.enterFrameLegacyEvent=new sw(tr.EnterFrame,0,0,1),this.expressionsPlugin=em.plugin,this.firstFrame=0,this.frameModifier=1,this.frameMult=0,this.frameRate=60,this.imagePreloader=new s8,this.isLoaded=!1,this.isPaused=!0,this.isSubframeEnabled=s6.current,this.loop=!0,this.markers=[],this.name="",this.path="",this.playCount=0,this.playDirection=1,this.playSpeed=1,this.projectInterface=new s4,this.renderer=null,this.segmentPos=0,this.segments=[],this.timeCompleted=0,this.totalFrames=0,this.wrapper=null,this.autoloadSegments=!1,this._completedLoop=!1,this._idle=!0,this._isDestroyed=!1,this._cbs={},this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)}adjustSegment(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.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(tr.SegmentStart)}advanceTime(t){if(this.isPaused||!this.isLoaded)return;let e=this.currentRawFrame+t*this.frameModifier,s=!1;if(e>=this.totalFrames-1&&this.frameModifier>0){let t=this._handleLoop(e,s);e=t.nextValue,s=t._isComplete}else e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger(tr.LoopComplete):this._completedLoop=!0):(s=!0,e=0)):this.setCurrentRawFrameValue(e);s&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger(tr.Complete))}checkLoaded(){if(this.isLoaded||!this.renderer.globalData?.fontManager?.isLoaded||!this.imagePreloader.loadedImages()||!this.imagePreloader.loadedFootages())return;this.isLoaded=!0;let t=em.plugin;t?.initExpressions(this),this.renderer.initItems(),setTimeout(()=>{this.trigger(tr.DOMLoaded)},0),this.gotoFrame(),this.autoplay&&this.play()}checkSegments(t){return this.segments.length>0&&(this.adjustSegment(this.segments.shift()??[0,0],t),!0)}configAnimation(t){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||1)-(this.animationData.ip||0)),this.firstFrame=Math.round(this.animationData.ip||0)),this.renderer.configAnimation(t),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,void 0!==this.animationData.fr&&(this.frameMult=this.animationData.fr/1e3),this.renderer.searchExtraCompositions(t.assets),this.markers=function(t){let e=[],{length:s}=t;for(let i=0;i<s;i++){if("duration"in(t[i]??{})){e.push(t[i]);continue}let s={duration:t[i].dr,time:t[i].tm};try{s.payload=JSON.parse(t[i].cm)}catch(e){try{s.payload=s9(t[i].cm)}catch(e){s.payload={name:t[i].cm}}}e.push(s)}return e}(t.markers??[]),this.trigger(tr.ConfigReady),this.preloadImages(),this.loadSegments(),this.updateFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}}destroy(t){this._isDestroyed||t&&this.name!==t||(this._fontsLoadTimeout&&(clearTimeout(this._fontsLoadTimeout),this._fontsLoadTimeout=void 0),this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(tr.Destroy),this._cbs={},this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null,this._isDestroyed=!0)}getAssetData(t){let e=0,{length:s}=this.assets;for(;e<s;){if(t===this.assets[e]?.id)return this.assets[e];e++}return null}getAssetsPath(t){let e;if(!t)return"";if(t.e)e=t.p||"";else if(this.assetsPath){let s=t.p;["i/","images/"].some(t=>s?.includes(t))&&(s=s?.split("/")[1]),e=this.assetsPath+(s||"")}else e=this.path+(t.u??"")+(t.p??"");return e}getDuration(t){return t?this.totalFrames:this.totalFrames/this.frameRate}getMarkerData(t){for(let e=0;e<this.markers.length;e++)if(this.markers[e]?.payload?.name===t)return this.markers[e];return null}getPath(){return this.path}getVolume(){return this.audioController.getVolume()}goToAndPlay(t,e,s){if(!s||this.name===s){if("number"!=typeof t||isNaN(t)){let e=this.getMarkerData(t);e&&(e.duration?this.playSegments([e.time,e.time+e.duration],!0):this.goToAndStop(e.time,!0))}else this.goToAndStop(t,e,s);this.play()}}goToAndStop(t,e,s){if(!s||this.name===s){if("number"!=typeof t||isNaN(t)){let e=this.getMarkerData(t);e&&this.goToAndStop(e.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}}gotoFrame(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger(tr.EnterFrame),this.renderFrame(),this.trigger(tr.DrawnFrame)}hide(){this.renderer.hide()}imagesLoaded(){this.trigger(tr.LoadedImages),this.checkLoaded()}includeLayers(t){this.animationData.op&&t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-(this.animationData.ip||0)));let{assets:e,layers:s}=this.animationData,i,{length:r}=s,a=t.layers,{length:n}=a;for(let t=0;t<n;t++)for(i=0;i<r;){if(s[i]?.id===a[t]?.id){s[i]=a[t];break}i++}for((t.chars||t.fonts)&&(this.renderer.globalData?.fontManager?.addChars(t.chars),this.renderer.globalData?.fontManager?.addFonts(t.fonts,this.renderer.globalData.defs)),r=t.assets.length,i=0;i<r;i++)e.push(t.assets[i]);this.animationData.__complete=!1,s5(this.animationData,this.onSegmentComplete)}loadNextSegment(){let{segments:t}=this.animationData;if(!t||0===t.length||!this.autoloadSegments){this.trigger(tr.DataReady),this.timeCompleted=this.totalFrames;return}let e=t.shift();this.timeCompleted=Number(e?.time)*this.frameRate;let s=`${this.path+(this.filename||"")}_${this.segmentPos}.json`;this.segmentPos++,s3(s,this.includeLayers.bind(this),()=>{this.trigger(tr.DataFailed)})}loadSegments(){let{segments:t}=this.animationData;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()}mute(t){t&&this.name!==t||this.audioController.mute()}onSegmentComplete(t){this.animationData=t;let e=em.plugin;e?.initExpressions(this),this.loadNextSegment()}onSetupError(){this.trigger(tr.DataFailed)}pause(t){(!t||this.name===t)&&(this.isPaused||(this.isPaused=!0,this.trigger(tr.Pause),this._idle=!0,this.trigger(tr.Idle),this.audioController.pause()))}play(t){t&&this.name!==t||(this.isPaused&&(this.isPaused=!1,this.trigger(tr.Play),this.audioController.resume(),this._idle&&(this._idle=!1)),this.trigger(tr.Active))}playSegments(t,e){if(e&&(this.segments.length=0),L(t[0])){let{length:e}=t;for(let s=0;s<e;s++)this.segments.push(t[s])}else this.segments.push(t);this.segments.length>0&&e&&this.adjustSegment(this.segments.shift()??[0,0],0),this.isPaused&&this.play()}preloadImages(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))}renderFrame(t){if(!this.isLoaded)return;let e=t??this.currentFrame+this.firstFrame;try{this.expressionsPlugin?.resetFrame(),this.renderer.renderFrame(e)}catch(t){this.triggerRenderFrameError(t)}}resetSegments(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)}resize(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)}setCurrentRawFrameValue(t){this.currentRawFrame=t,this.gotoFrame()}setData(t,e){try{let s=e;s&&"object"!=typeof s&&(s=JSON.parse(s));let i={animationData:s,wrapper:t},{attributes:r}=t;i.path=r.getNamedItem("data-animation-path")?.value??r.getNamedItem("data-bm-path")?.value??r.getNamedItem("bm-path")?.value??"";let a=r.getNamedItem("data-anim-type")?.value??r.getNamedItem("data-bm-type")?.value??r.getNamedItem("bm-type")?.value??r.getNamedItem("data-bm-renderer")?.value??r.getNamedItem("bm-renderer")?.value??sI();Object.values(tn).includes(a)?i.animType=a:i.animType=sI();let n=r.getNamedItem("data-anim-loop")?.value??r.getNamedItem("data-bm-loop")?.value??r.getNamedItem("bm-loop")?.value??"";switch(n){case"false":i.loop=!1;break;case"true":i.loop=!0;break;case"":break;default:i.loop=parseInt(n,10)}let o=r.getNamedItem("data-anim-autoplay")?.value??r.getNamedItem("data-bm-autoplay")?.value??r.getNamedItem("bm-autoplay")?.value??!0;i.autoplay="false"!==o,i.name=r.getNamedItem("data-name")?.value??r.getNamedItem("data-bm-name")?.value??r.getNamedItem("bm-name")?.value??"";let h=r.getNamedItem("data-anim-prerender")?.value??r.getNamedItem("data-bm-prerender")?.value??r.getNamedItem("bm-prerender")?.value??"";if("false"===h&&(i.prerender=!1),i.path)return void this.setParams(i);this.trigger(tr.Destroy)}catch(t){throw P(this.constructor.name,t),Error(`${this.constructor.name}: Could not set data`,{cause:t})}}setDirection(t,e){e&&this.name!==e||(this.playDirection=t<0?-1:1,this.updateFrameModifier())}setLoop(t){this.loop=t}setParams(t){try{var s,i,r;let a;(t.wrapper||t.container)&&(this.wrapper=t.wrapper??t.container??null);let n=tn.SVG;t.animType?n=t.animType:t.renderer&&(n=t.renderer);let o=(t=>{let e=sD[t];if(!e)throw Error(`Unknown renderer type: ${t}`);return e})(n);if(this.renderer=new o(this,t.rendererSettings),this.imagePreloader.setCacheType(n,this.renderer.globalData?.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=n,["",null,void 0,!0,1].includes(t.loop)?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(`${t.loop}`,10),this.autoplay=!0,"autoplay"in t&&(this.autoplay=!!t.autoplay),this.name=t.name??"",this.autoloadSegments=!0,Object.hasOwn(t,"autoloadSegments")&&(this.autoloadSegments=!!t.autoloadSegments),this.assetsPath=t.assetsPath??this.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData)return void this.setupAnimation(t.animationData);if(!t.path)return;t.path.includes("\\")?this.path=t.path.slice(0,Math.max(0,t.path.lastIndexOf("\\")+1)):this.path=t.path.slice(0,Math.max(0,t.path.lastIndexOf("/")+1)),this.filename=t.path.slice(Math.max(0,t.path.lastIndexOf("/")+1)),this.filename=this.filename.slice(0,Math.max(0,this.filename.lastIndexOf(".json"))),s=t.path,i=this.configAnimation,r=this.onSetupError,s1(),a=s2(i,r),e?.postMessage({fullPath:v?s:window.location.origin+window.location.pathname,id:a,path:s,type:"loadAnimation"})}catch(t){throw P(this.constructor.name,t),Error(`${this.constructor.name}: Could not set params`,{cause:t})}}setSegment(t,e){let s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?s=t:this.currentRawFrame+this.firstFrame>e&&(s=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==s&&this.goToAndStop(s,!0)}setSpeed(t,e){e&&this.name!==e||(this.playSpeed=t,this.updateFrameModifier())}setSubframe(t=!1){this.isSubframeEnabled=t}setupAnimation(t){s5(t,this.configAnimation)}setVolume(t,e){e&&this.name!==e||this.audioController.setVolume(t)}show(){this.renderer.show()}stop(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))}togglePause(t){t&&this.name!==t||(this.isPaused?this.play():this.pause())}trigger(t){try{if(!this._cbs[t])return;switch(t){case tr.EnterFrame:{let e=this.enterFrameEvent;e.type=t,e.currentTime=this.currentFrame,e.totalTime=this.totalFrames,e.direction=this.frameModifier<0?-1:1,this.triggerEvent(t,e);let s=this.enterFrameLegacyEvent;s.type=t,s.currentTime=this.currentFrame,s.totalTime=this.totalFrames,s.direction=this.frameMult<0?-1:1;break}case tr.DrawnFrame:{let e=this.drawnFrameEvent;e.type=t,e.currentTime=this.currentFrame,e.direction=this.frameModifier<0?-1:1,e.totalTime=this.totalFrames,this.triggerEvent(t,e);break}case tr.LoopComplete:this.triggerEvent(t,new sk(t,Number(this.loop),this.playCount,this.frameMult));break;case tr.Complete:this.triggerEvent(t,new sS(t,this.frameMult));break;case tr.SegmentStart:this.triggerEvent(t,new sC(t,this.firstFrame,this.totalFrames));break;case tr.Destroy:this.triggerEvent(t,new sP(t,this));break;default:this.triggerEvent(t)}}catch(t){P(this.constructor.name,t)}}triggerConfigError(t){let e=new sA(t,this.currentFrame);this.triggerEvent(tr.Error,e),this.onError?.(e)}triggerRenderFrameError(t){let e=new sM(t,this.currentFrame);this.triggerEvent(tr.Error,e),this.onError?.(e)}unmute(t){t&&this.name!==t||this.audioController.unmute()}updateDocumentData(t,e,s){try{let i=this.renderer.getElementByPath(t);i?.updateDocumentData([],e,s)}catch(t){P(this.constructor.name,t)}}updateFrameModifier(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)}waitForFontsLoaded(){this.renderer.globalData?.fontManager?.isLoaded?this.checkLoaded():this._fontsLoadTimeout=setTimeout(this.waitForFontsLoaded.bind(this),20)}_handleLoop(t,e){let s=t,i=e;return this.loop&&this.playCount!==this.loop?s>=this.totalFrames?(this.playCount++,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger(tr.LoopComplete))):this.setCurrentRawFrameValue(s):this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(i=!0,s=this.totalFrames-1),{_isComplete:i,nextValue:s}}}let it=!1,ie=!0,is,ii=0,ir=0,ia=0,io=[];function ih(t){try{let e=new s7;return iy(e,null),e.setParams(t),e}catch(t){throw P("AnimationManager:\n",t),Error("Could not load animation",{cause:t})}}function il(t,e){try{if(!t)return null;let s=0;for(;s<ir;){if(io[s]?.elem===t&&io[s]?.elem!==null)return io[s]?.animation;s++}let i=new s7;return iy(i,t),i.setData(t,e),i}catch(t){throw P("AnimationManager:\n",t),Error("Could not register animation",{cause:t})}}function ip(t,e,s){if(v)return;let i=[...document.getElementsByClassName("lottie"),...document.getElementsByClassName("bodymovin")],{length:r}=i;for(let e=0;e<r;e++)il(i[e],t)}function ic(){!it&&ia&&ie&&!v&&(is=requestAnimationFrame(iu),ie=!1)}function im(){ia++,ic()}function iu(t){ii=t,v||(is=requestAnimationFrame(ig))}function id({target:t}){let e=0;if(!t)throw Error("No animation to remove");for(;e<ir;)io[e]?.animation===t&&(io.splice(e,1),e--,ir-=1,t.isPaused||iv()),e++}function ig(t){let e=t-ii;for(let t=0;t<ir;t++)io[t].animation.advanceTime(e);ii=t,!ia||it||ie?ie=!0:v||(is=requestAnimationFrame(ig))}function iy(t,e){t.addEventListener(tr.Destroy,id),t.addEventListener(tr.Active,im),t.addEventListener(tr.Idle,iv),io.push({animation:t,elem:e}),ir++}function iv(){ia--}let ib=(t,e,s,i)=>[-t+3*e-3*s+i,3*t-6*e+3*s,-3*t+3*e,t],i_=(t,e,s)=>t*(1-s)+e*s,ix=(t,e,s)=>[i_(t[0],e[0],s),i_(t[1],e[1],s)],iw=(t,e,s)=>{let i=t.boundingBox();return{bez:t,cx:i.cx,cy:i.cy,height:i.height,t:(e+s)/2,t1:e,t2:s,width:i.width}},iS=t=>{let e=t.bez.split(.5);if(!e[0]||!e[1])throw Error("Could not set PolynomialBezier");return[iw(e[0],t.t1,t.t),iw(e[1],t.t,t.t2)]},iE=(t,e,s,i,r,a)=>{if(!(2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height))return;if(s>=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)return void r.push([t.t,e.t]);let n=iS(t),o=iS(e);if(!n[0]||!n[1]||!o[0]||!o[1])throw Error("Could not set IntersectData");iE(n[0],o[0],s+1,i,r,a),iE(n[0],o[1],s+1,i,r,a),iE(n[1],o[0],s+1,i,r,a),iE(n[1],o[1],s+1,i,r,a)},ik=t=>new iC(t,t,t,t,!1);class iC{constructor(t,e,s,i,r){let a=e,n=s;r&&E(t,a)&&(a=ix(t,i,1/3)),r&&E(n,i)&&(n=ix(t,i,2/3));let o=ib(t[0],a[0],n[0],i[0]),h=ib(t[1],a[1],n[1],i[1]);this.a=[o[0],h[0]],this.b=[o[1],h[1]],this.c=[o[2],h[2]],this.d=[o[3],h[3]],this.points=[t,a,n,i]}boundingBox(){let t=this.bounds();return{bottom:t.y.max,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2,height:t.y.max-t.y.min,left:t.x.min,right:t.x.max,top:t.y.min,width:t.x.max-t.x.min}}bounds(){return{x:this._extrema(this,0),y:this._extrema(this,1)}}derivative(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]]}inflectionPoints(){let t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(S(t))return[];let e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,s=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(s<0)return[];let i=Math.sqrt(s);return S(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(t=>t>0&&t<1)}intersections(t,e,s){let i=e,r=s;i=i??2,r=r??7;let a=[];return iE(iw(this,0,1),iw(t,0,1),0,i,a,r),a}normalAngle(t){let e=this.derivative(t);return Math.atan2(e[0]??0,e[1]??0)}point(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]]}split(t){if(t<=0)return[ik(this.points[0]),this];if(t>=1)return[this,ik(this.points[this.points.length-1])];let e=ix(this.points[0],this.points[1],t),s=ix(this.points[1],this.points[2],t),i=ix(this.points[2],this.points[3],t),r=ix(e,s,t),a=ix(s,i,t),n=ix(r,a,t);return[new iC(this.points[0],e,r,n,!0),new iC(n,a,i,this.points[3],!0)]}tangentAngle(t){let e=this.derivative(t);return Math.atan2(e[1]??0,e[0]??0)}_extrema(t,e){let s=t.points[0][e]??0,i=t.points[t.points.length-1]?.[e]??0;if(s>i){let t=i;i=s,s=t}let r=((t,e,s)=>{if(0===t)return[];let i=e*e-4*t*s;if(i<0)return[];let r=-e/(2*t);if(0===i)return[r];let a=Math.sqrt(i)/(2*t);return[r-a,r+a]})(3*(t.a[e]??0),2*(t.b[e]??0),t.c[e]??0),{length:a}=r;for(let n=0;n<a;n++){if((r[n]??0)<=0||(r[n]??0)>=1)continue;let a=t.point(r[n]??0)[e]??0;if(a<s){s=a;continue}a>i&&(i=a)}return{max:i,min:s}}}function iP(t,e){let s=(e+1)%t.length();return new iC(t.v[e],t.o[e],t.i[s],t.v[s],!0)}class iM extends tz{addShape(t){if(this.closed)return;t.sh?.container?.addDynamicProperty(t.sh);let e={data:t,localShapeCollection:t2(),shape:t.sh};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}addShapeToModifier(t){}init(t,e,s,i){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length>0?this.k=!0:this.getValue(!0)}initModifierProperties(t,e){throw Error(`${this.constructor.name}: Method initModifierProperties is not implemented`)}isAnimatedWithShape(t){throw Error(`${this.constructor.name}: Method isAnimatedWithShape is not implemented`)}processKeys(){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId,this.iterateDynamicProperties()),0}constructor(...t){super(...t),this.shapes=[]}}let iA=(t,e)=>[(t[1]??0)*(e[2]??0)-(t[2]??0)*(e[1]??0),(t[2]??0)*(e[0]??0)-(t[0]??0)*(e[2]??0),(t[0]??0)*(e[1]??0)-(t[1]??0)*(e[0]??0)],iT=(t,e,s)=>[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s],iD=(t,e,s)=>{let i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[iT(t,i,s),iT(e,i,s)]},iI=(t,e,s,i)=>{let r=[t[0],t[1],1],a=[e[0],e[1],1],n=[s[0],s[1],1],o=[i[0],i[1],1],h=iA(iA(r,a),iA(n,o));return S(h[2]??0)?null:[(h[0]??0)/(h[2]??0),(h[1]??0)/(h[2]??0)]},iF=(t,e)=>Math.hypot(t[0]-e[0],t[1]-e[1]),iL=(t,e,s,i,r)=>{let a=e.points[3],n=s.points[0];if(3===i||E(a,n))return a;if(2===i){let i=-e.tangentAngle(1),r=-s.tangentAngle(0)+Math.PI,o=iI(a,iT(a,i+Math.PI/2,100),n,iT(n,i+Math.PI/2,100)),h=o?iF(o,a):iF(a,n)/2,l=iT(a,i,2*h*.5519);return t.setXYAt(l[0],l[1],"o",t.length()-1),l=iT(n,r,2*h*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],l[0],l[1],t.length()),n}let o=E(a,e.points[2])?e.points[0]:e.points[2],h=E(n,s.points[1])?s.points[3]:s.points[1],l=iI(o,a,n,h);return l&&iF(l,a)<r?(t.setTripleAt(l[0],l[1],l[0],l[1],l[0],l[1],t.length()),l):a},i$=(t,e)=>{let s,i=(s=iD(t.points[0],t.points[1],e))[0],r=s[1],a=(s=iD(t.points[1],t.points[2],e))[0],n=s[1],o=(s=iD(t.points[2],t.points[3],e))[0],h=s[1],l=iI(i,r,a,n);l=l??r;let p=iI(o,h,a,n);return new iC(i,l,p=p??o,h)},iN=(t,e)=>{let s,i,r,a=t.inflectionPoints();if(0===a.length)return[i$(t,e)];if(1===a.length||w(a[1]??0,1))return s=(r=t.split(a[0]??0))[0],i=r[1],[i$(s,e),i$(i,e)];s=(r=t.split(a[0]??0))[0];let n=((a[1]??0)-(a[0]??0))/(1-(a[0]??0)),o=(r=r[1]?.split(n))[0];return i=r[1],[i$(s,e),i$(o,e),i$(i,e)]},iV=(t,e)=>{let s=t.intersections(e);return(s.length>0&&w(s[0]?.[0]??0,1)&&s.shift(),s.length>0)?s[0]:null},iR=(t,e)=>{let s=[...t],i=[...e],r=iV(t[t.length-1],e[0]);return(r&&(s[t.length-1]=t[t.length-1]?.split(r[0]??0)[0],i[0]=e[0]?.split(r[1]??0)[1]),t.length>1&&e.length>1&&(r=iV(t[0],e[e.length-1])))?[[t[0]?.split(r[0]??0)[0]],[e[e.length-1]?.split(r[1]??0)[1]]]:[s,i]};class iO extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=tU.getProp(t,e.a,0,null,this),this.miterLimit=tU.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e,s,i){let r=tZ();r.c=t.c;let a=t.length();t.c||(a-=1);let n,o=[];for(let s=0;s<a;s++)n=iP(t,s),o.push(iN(n,e));if(!t.c)for(let s=a-1;s>=0;s--)n=function(t,e){let s=(e+1)%t.length();return new iC(t.v[s],t.i[s],t.o[e],t.v[e],!0)}(t,s),o.push(iN(n,e));o=(t=>{let e;for(let s=1;s<t.length;s++)e=iR(t[s-1],t[s]),t[s-1]=e[0],t[s]=e[1];return t.length>1&&(e=iR(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t})(o);let h=null,l=null,{length:p}=o;for(let t=0;t<p;t++){let e=o[t];l&&(h=iL(r,l,e[0],s,i)),l=e[e.length-1];let{length:a}=e;for(let t=0;t<a;t++)n=e[t],h&&E(n.points[0],h)?r.setXYAt(n.points[1][0],n.points[1][1],"o",r.length()-1):r.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],r.length()),r.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],r.length()),h=n.points[3]}return p>0&&l&&iL(r,l,o[0]?.[0],s,i),r}processShapes(t){let{length:e}=this.shapes,s=Number(this.amount?.v),i=Number(this.miterLimit?.v),r=Number(this.lineJoin);if(0!==s){let a,n,o;for(let h=0;h<e;h++){if(o=(n=this.shapes[h]).localShapeCollection,!(!n.shape?._mdf&&!this._mdf&&!t)){o?.releaseShapes(),n.shape&&(n.shape._mdf=!0),a=n.shape?.paths?.shapes;let t=n.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=a?.[e];t&&o?.addShape(this.processPath(t,s,r,i))}}n.shape&&(n.shape.paths=n.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class iz extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=tU.getProp(t,e.a,0,null,this),this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e){let s,i,r,a,n,o,h,l=e/100,p=[0,0],c=t._length;for(s=0;s<c;s++)p[0]+=t.v[s]?.[0]??0,p[1]+=t.v[s]?.[1]??0;p[0]/=c,p[1]/=c;let m=tZ();for(m.c=t.c,s=0;s<c;s++)i=(t.v[s]?.[0]??0)+((p[0]??0)-(t.v[s]?.[0]??0))*l,r=(t.v[s]?.[1]??0)+((p[1]??0)-(t.v[s]?.[1]??0))*l,a=(t.o[s]?.[0]??0)+-(((p[0]??0)-(t.o[s]?.[0]??0))*l),n=(t.o[s]?.[1]??0)+-(((p[1]??0)-(t.o[s]?.[1]??0))*l),o=(t.i[s]?.[0]??0)+-(((p[0]??0)-(t.i[s]?.[0]??0))*l),h=(t.i[s]?.[1]??0)+-(((p[1]??0)-(t.i[s]?.[1]??0))*l),m.setTripleAt(i,r,a,n,o,h,s);return m}processShapes(t){let{length:e}=this.shapes,s=this.amount?.v;if(0!==s){let i,r,a;for(let n=0;n<e;n++){if(a=(r=this.shapes[n]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),i=r.shape?.paths?.shapes;let t=r.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=i?.[e];t&&a?.addShape(this.processPath(t,s||0))}}r.localShapeCollection&&r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class iB extends iM{addShapeToModifier(t){t.pathsData=[]}applyTransforms(t,e,s,i,r,a){if(!i.s||!i.p||!i.a||!i.r)throw Error(`${this.constructor.name}: Missing required data from Transform`);let n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-r),h=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*n*r,i.p.v[1]*n*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),s.translate(-(i.a.v[0]??0),-(i.a.v[1]??0),i.a.v[2]),s.scale(a?1/o:o,a?1/h:h),s.translate(i.a.v[0],i.a.v[1],i.a.v[2])}changeGroupRender(t,e=!1){let{length:s}=t;for(let i=0;i<s;i++)t[i]._shouldRender=e,t[i]?.ty===to.Group&&this.changeGroupRender(t[i]?.it,e)}cloneElements(t){let e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e}init(t,e,s,i=[]){if(!L(e))throw TypeError(`${this.constructor.name}: Method init, param arr must be array`);let r=Number(s);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]);r>0;)r--,this._elements.unshift(e[r]);if(this.dynamicProperties.length>0){this.k=!0;return}this.getValue(!0)}initModifierProperties(t,e){this.getValue=this.processKeys,this.c=tU.getProp(t,e.c,0,null,this),this.o=tU.getProp(t,e.o,0,null,this),e.tr&&(this.tr=ey.getTransformProperty(t,e.tr,this),this.so=tU.getProp(t,e.tr.so,0,.01,this),this.eo=tU.getProp(t,e.tr.eo,0,.01,this)),this.data=e,0===this.dynamicProperties.length&&this.getValue(!0),this._isAnimated=this.dynamicProperties.length>0,this.pMatrix=new td,this.rMatrix=new td,this.sMatrix=new td,this.tMatrix=new td,this.matrix=new td}processShapes(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);let i,r,a,n,o,h=!1;if(!this._mdf&&!t){for(o=Number(this._currentCopies),a=0,n=1;o;)(i=this.elemsData[a]?.it??[])[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,o--,a+=n;return h}let l=Math.ceil(Number(this.c?.v));if(this._groups.length<l){for(;this._groups.length<l;){let t={it:this.cloneElements(this._elements),ty:to.Group};t.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:[{e:0,s:0,t:0},{e:0,s: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:to.Transform}),this.arr.splice(0,0,t),this._groups.splice(0,0,t),this._currentCopies?this._currentCopies++:this._currentCopies=1}this.elem?.reloadShapes(),h=!0}o=0;let p=this._groups.length-1;for(a=0;a<=p-1;a++){if(e=o<l,this._groups[a]&&(this._groups[a]._shouldRender=e),this.changeGroupRender(this._groups[a]?.it??[],e),!e){let t=this.elemsData[a]?.it??[],e=t[t.length-1];0===e.transform.op.v?e.transform.op._mdf=!1:(e.transform.op._mdf=!0,e.transform.op.v=0)}o++}if(this._currentCopies=l,!this.matrix||!this.pMatrix||!this.rMatrix||!this.sMatrix||!this.tMatrix)throw Error(`${this.constructor.name}: Could not set Matrix`);if(!this.tr)throw Error(`${this.constructor.name}: Transformproperty is not set`);let c=Number(this.o?.v),m=c%1,u=c>0?Math.floor(c):Math.ceil(c),d=this.pMatrix.props,f=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();let y=0;if(c>0){for(;y<u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y++;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),y+=m)}else if(c<0){for(;y>u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y--;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),y-=m)}for(a=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){i=this.elemsData[a]?.it??[];let{length:t}=r=i[i.length-1]?.transform.mProps.v.props??[];if(i[i.length-1]&&(i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?Number(this.so?.v):Number(this.so?.v)+(Number(this.eo?.v)-Number(this.so?.v))*(a/(this._currentCopies-1))),0===y)for(this.matrix.reset(),s=0;s<t;s++)r[s]=this.matrix.props[s]??0;else{for((0!==a&&1===n||a!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(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]),s=0;s<t;s++)r[s]=this.matrix.props[s]??0;this.matrix.reset()}y++,o--,a+=n}return h}resetElements(t){let{length:e}=t;for(let s=0;s<e;s++){t[s]._processed=!1;let{it:e}=t[s]??{};t[s]?.ty===to.Group&&e&&this.resetElements(e)}}constructor(...t){super(...t),this.arr=[],this.data=void 0,this.elemsData=[],this._elements=[],this._groups=[]}}class iG extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.rd=tU.getProp(t,e.r,0,null,this),this._isAnimated=this.rd.effectsSequence.length>0}processPath(t,e){let s=tZ();s.c=t.c;let i=t._length,r,a,n,o,h,l,p=0,c,m,u,d,f,g;for(let y=0;y<i;y++)r=t.v[y],n=t.o[y],a=t.i[y],r[0]===n[0]&&r[1]===n[1]&&r[0]===a[0]&&r[1]===a[1]?0!==y&&y!==i-1||t.c?(o=0===y?t.v[i-1]:t.v[y-1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,c=f=r[0]+(o[0]-r[0])*l,m=g=r[1]-(r[1]-o[1])*l,u=c-(c-r[0])*.5519,d=m-(m-r[1])*.5519,s.setTripleAt(c,m,u,d,f,g,p),p++,o=y===i-1?t.v[0]:t.v[y+1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,c=u=r[0]+(o[0]-r[0])*l,m=d=r[1]+(o[1]-r[1])*l,f=c-(c-r[0])*.5519,g=m-(m-r[1])*.5519,s.setTripleAt(c,m,u,d,f,g,p)):s.setTripleAt(r[0],r[1],n[0],n[1],a[0],a[1],p):s.setTripleAt(t.v[y]?.[0]??0,t.v[y]?.[1]??0,t.o[y]?.[0]??0,t.o[y]?.[1]??0,t.i[y]?.[0]??0,t.i[y]?.[1]??0,p),p++;return s}processShapes(t){let{length:e}=this.shapes,s=this.rd?.v;if(0!==s){let i,r,a;for(let n=0;n<e;n++){if(a=(i=this.shapes[n]).localShapeCollection,!(!i.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),i.shape&&(i.shape._mdf=!0),r=i.shape?.paths?.shapes??[];let t=i.shape?.paths?._length||0;for(let e=0;e<t;e++)a?.addShape(this.processPath(r[e],s))}i.shape&&(i.shape.paths=i.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class iq extends iM{addPaths(t,e){let{length:s}=t;for(let i=0;i<s;i++)e.addShape(t[i])}addSegment(t,e,s,i,r,a,n){r.setXYAt(e[0],e[1],"o",a),r.setXYAt(s[0],s[1],"i",a+1),n&&r.setXYAt(t[0],t[1],"v",a),r.setXYAt(i[0],i[1],"v",a+1)}addSegmentFromArray(t,e,s,i){e.setXYAt(t[1]??0,t[5]??0,"o",s),e.setXYAt(t[2]??0,t[6]??0,"i",s+1),i&&e.setXYAt(t[0]??0,t[4]??0,"v",s),e.setXYAt(t[3]??0,t[7]??0,"v",s+1)}addShapes(t,e,s){let i=s,{pathsData:r,shape:a}=t,n=a?.paths?.shapes??[],o=a?.paths?._length||0,h,l,p=0,c,m,u,d=[],f,g=!0;i?(m=i._length,f=i._length):(i=tZ(),m=0,f=0),d.push(i);for(let t=0;t<o;t++){let{lengths:s}=r[t]??{lengths:[]};for(i.c=n[t]?.c,l=n[t]?.c?s.length:s.length+1,h=1;h<l;h++){if(p+(c=s[h-1]).addedLength<e.s){p+=c.addedLength,i.c=!1;continue}if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+c.addedLength?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[h],n[t]?.v[h],i,m,g),g=!1):(u=tM(n[t]?.v[h-1],n[t]?.v[h],n[t]?.o[h-1],n[t]?.i[h],(e.s-p)/c.addedLength,(e.e-p)/c.addedLength,s[h-1]),this.addSegmentFromArray(u,i,m,g),g=!1,i.c=!1),p+=c.addedLength,m++}if(n[t]?.c&&s.length>0){if(c=s[h-1],p<=e.e){let r=s[h-1]?.addedLength??0;e.s<=p&&e.e>=p+r?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[0],n[t]?.v[0],i,m,g),g=!1):(u=tM(n[t]?.v[h-1],n[t]?.v[0],n[t]?.o[h-1],n[t]?.i[0],(e.s-p)/r,(e.e-p)/r,s[h-1]),this.addSegmentFromArray(u,i,m,g),g=!1,i.c=!1)}else i.c=!1;p+=c.addedLength,m++}if(i._length&&(i.setXYAt(i.v[f]?.[0]??0,i.v[f]?.[1]??0,"i",f),i.setXYAt(i.v[i._length-1]?.[0]??0,i.v[i._length-1]?.[1]??0,"o",i._length-1)),p>e.e)break;t<o-1&&(i=tZ(),g=!0,d.push(i),m=0)}return d}addShapeToModifier(t){t.pathsData=[]}calculateShapeEdges(t,e,s,i,r){let a=[];e<=1?a.push({e,s:t}):t>=1?a.push({e:e-1,s:t-1}):a.push({e:1,s:t},{e:e-1,s:0});let n=[],{length:o}=a;for(let t=0;t<o;t++)if(!((a[t]?.e??0)*r<i||(a[t]?.s??0)*r>i+s)){let e,o;e=(a[t]?.s??0)*r<=i?0:((a[t]?.s??0)*r-i)/s,o=(a[t]?.e??0)*r>=i+s?1:((a[t]?.e??0)*r-i)/s,n.push([e,o])}return 0===n.length&&n.push([0,0]),n}initModifierProperties(t,e){this.s=tU.getProp(t,e.s,0,.01,this),this.e=tU.getProp(t,e.e,0,.01,this),this.o=tU.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>0||this.e.effectsSequence.length>0||this.o.effectsSequence.length>0}processShapes(t){let e,s;if(this._mdf||t){let t=Number(this.o?.v)%360/360;if(t<0&&t++,(e=Number(this.s?.v)>1?1+t:0>Number(this.s?.v)?0+t:Number(this.s?.v)+t)>(s=Number(this.e?.v)>1?1+t:0>Number(this.e?.v)?0+t:Number(this.e?.v)+t)){let t=e;e=s,s=t}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue||0,s=this.eValue||0;let i,r,a,n,o,h,l=0,{length:p}=this.shapes;if(s===e)for(let t=0;t<p;t++){let e=this.shapes[t];e.localShapeCollection?.releaseShapes();let{localShapeCollection:s,shape:i}=e;i&&(i._mdf=!0,i.paths=s),this._mdf&&(e.pathsData.length=0)}else if((1!==s||0!==e)&&(0!==s||1!==e)){let c,m,u=[];for(let e=0;e<p;e++)if(c=this.shapes[e],c.shape?._mdf||this._mdf||t||2===this.m){if(i=c.shape?.paths,a=i?._length||0,h=0,!c.shape?._mdf&&c.pathsData.length>0)h=c.totalShapeLength;else{for(n=this.releasePathsData(c.pathsData),r=0;r<a;r++)i&&(o=tA(i.shapes[r]),n.push(o),h+=o.totalLength);c.totalShapeLength=h,c.pathsData=n}l+=Number(h),c.shape&&(c.shape._mdf=!0)}else c.shape&&(c.shape.paths=c.localShapeCollection);let d=e,f=s,g=0,y;for(let t=p-1;t>=0;t--)if(c=this.shapes[t],c.shape?._mdf){if(!(m=c.localShapeCollection))throw Error(`${this.constructor.name}: Could not set localShapeCollection`);for(m.releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,s,c.totalShapeLength||0,g,l),g+=Number(c.totalShapeLength)):y=[[d,f]],a=y.length,r=0;r<a;r++){d=y[r]?.[0]??0,f=y[r]?.[1]??0,u.length=0,f<=1?u.push({e:Number(c.totalShapeLength)*f,s:Number(c.totalShapeLength)*d}):d>=1?u.push({e:Number(c.totalShapeLength)*(f-1),s:Number(c.totalShapeLength)*(d-1)}):u.push({e:Number(c.totalShapeLength),s:Number(c.totalShapeLength)*d},{e:Number(c.totalShapeLength)*(f-1),s:0});let t={e:0,s:0},e=this.addShapes(c,u[0]??t);if(u[0]?.s!==u[0]?.e){if(u.length>1){let s=c.shape.paths?.shapes[c.shape.paths._length-1];if(s?.c){let s=e.pop();this.addPaths(e,m),e=this.addShapes(c,u[1]??t,s)}else this.addPaths(e,m),e=this.addShapes(c,u[1]??t)}this.addPaths(e,m)}}c.shape.paths=m}}else if(this._mdf)for(let t=0;t<p;t++){let e=this.shapes[t];e.pathsData.length=0;let{shape:s}=e;s&&(s._mdf=!0)}}releasePathsData(t){let{length:e}=t;for(let s=0;s<e;s++)tk.release(t[s]);return t.length=0,t}}let ij=(t,e,s,i,r,a,n)=>{let o=s-Math.PI/2,h=s+Math.PI/2,l=e[0]+Math.cos(s)*i*r,p=e[1]-Math.sin(s)*i*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())},iH=(t,e,s,i,r,a,n)=>{let o,h,l,p,c,m,u,d=(l=0===s?e.length()-1:s-1,p=(s+1)%e.length(),c=e.v[l],m=e.v[p],o=[m[0]-c[0],m[1]-c[1]],Math.atan2(0,1)-Math.atan2((u=[Math.cos(h=-(.5*Math.PI))*(o[0]??0)-Math.sin(h)*(o[1]??0),Math.sin(h)*(o[0]??0)+Math.cos(h)*(o[1]??0)])[1],u[0])),f=e.v[s%e._length],g=e.v[0===s?e._length-1:s-1],y=e.v[(s+1)%e._length],v=2===a?Math.sqrt(Math.pow(f[0]-g[0],2)+Math.pow(f[1]-g[1],2)):0,b=2===a?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;ij(t,e.v[s%e._length]??[0,0],d,n,i,b/((r+1)*2),v/((r+1)*2))},iW=(t,e,s,i,r,a)=>{let n=a;for(let a=0;a<i;a++){let o=(a+1)/(i+1),h=2===r?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,l=e.normalAngle(o);ij(t,e.point(o),l,n,s,h/((i+1)*2),h/((i+1)*2)),n=-n}return n};class iJ extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.amplitude=tU.getProp(t,e.s,0,null,this),this.frequency=tU.getProp(t,e.r,0,null,this),this.pointsType=tU.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length>0||this.frequency.effectsSequence.length>0||this.pointsType.effectsSequence.length>0}processPath(t,e,s,i){let r=t._length,a=tZ();if(a.c=t.c,t.c||(r-=1),0===r)return a;let n=-1,o=iP(t,0);iH(a,t,0,e,s,i,n);for(let h=0;h<r;h++)n=iW(a,o,e,s,i,-n),o=h!==r-1||t.c?iP(t,(h+1)%r):null,iH(a,t,h+1,e,s,i,n);return a}processShapes(t){let e=Number(this.amplitude?.v),s=Math.max(0,Math.round(Number(this.frequency?.v))),i=Number(this.pointsType?.v);if(0!==e){let r,a,n,{length:o}=this.shapes;for(let h=0;h<o;h++){if(a=(r=this.shapes[h]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),n=r.shape?.paths?.shapes??[];let{_length:t}=r.shape?.paths??{_length:0};for(let r=0;r<t;r++)a?.addShape(this.processPath(n[r],e,s,i))}r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}let iU=!1;class iY{init(t){this.effectsManager=t,this.type=th.TransformEffect,this.matrix=new td,this.opacity=-1,this._mdf=!1,this._opMdf=!1}renderFrame(t){if(this._opMdf=!1,this._mdf=!1,!t&&!this.effectsManager?._mdf)return;let e=this.effectsManager?.effectElements??[],s=e[0]?.p.v,i=e[1]?.p.v,r=e[2]?.p.v===1,a=e[3]?.p.v,n=r?a:e[4]?.p.v,o=e[5]?.p.v,h=e[6]?.p.v,l=e[7]?.p.v;this.matrix?.reset(),this.matrix?.translate(-s[0],-s[1],s[2]),this.matrix?.scale(.01*n,.01*a,1),this.matrix?.rotate(-l*f),this.matrix?.skewFromAxis(-o*f,(h+90)*f),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)}constructor(){this.opacity=1}}let iX={};(()=>{let t=["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"],{length:e}=t;for(let s=0;s<e;s+=1){let e=t[s];iX[e]=Math[e]}})(),iX.random=Math.random,iX.abs=t=>{if($(t)){let e=tu(t.length),{length:s}=t;for(let i=0;i<s;i++)e[i]=Math.abs(t[i]??0);return e}return Math.abs(t)};class iK{constructor(t,e,s){this.i=0,this.j=0,this.S=[],this._mask=s,this._width=e;let i=t,{length:r}=i,a=0,n=0,o,h=this.S;for(r||(i=[r++]);a<e;)h[a]=a++;for(a=0;a<this._width;a++){let t=o=h[a]??0,e=n=this._mask&n+(i[a%r]??0)+t;h[a]=h[e]??0,h[n]=o}}g(t){let e=t,s,i=0,r=this.S;for(;e--;){s=r[this.i=this._mask&this.i+1]??0;let t=this.j=this._mask&this.j+s,e=r[this.i]=r[t]??0,a=r[this.j]=s;i=i*this._width+(r[this._mask&e+a]??0)}return i}}function iZ(t,e){return e.i=t.i,e.j=t.j,e.S=[...t.S],e}function iQ(t){return String.fromCharCode.apply(0,t)}let i0={};!function(t,e){let s="random",i=e.pow(256,6),r=e.pow(2,52),a=2*r;function n(t,e){let s=`${t}`,i=0,r=0;for(;r<s.length;)i^=(e[255&r]??0)*19,e[255&r]=255&i+s.charCodeAt(r++);return iQ(e)}e[`seed${s}`]=function(o,h,l){let p=h,c=[],m=o,u=n(function t(e,s=0){let i=[],r=typeof e;if(s&&"object"===r){let r=Object.keys(e),{length:a}=r;for(let n=0;n<a;n++)try{i.push(t(e[r[n]]),s-1)}catch(t){}}return i.length>0?i:"string"===r?e:`${e}\0`}(m=(p=!0===p?{entropy:!0}:p??{})&&p.entropy?[o??"",iQ(t)]:m??function(){try{let t=new Uint8Array(256);return global.crypto.getRandomValues(t),iQ(t)}catch(i){P(i);let{navigator:{plugins:e},screen:s}=global;return[Date.now(),global,e,s,iQ(t)]}}(),3),c),d=new iK(c,256,255),f=()=>{let t=d.g(6),e=i,s=0;for(;t<r;)t=(t+s)*256,e*=256,s=d.g(1);for(;t>=a;)t/=2,e/=2,s>>>=1;return(t+s)/e};f.int32=()=>0|d.g(4),f.quick=()=>d.g(4)/0x100000000,f.double=f,n(iQ(d.S),t);let g=(t,i,r,a)=>(a&&(iZ(a,d),t.state=()=>iZ(d,{})),r)?(e[s]=f,i):t;return p&&p.pass?g=p.pass:l&&(g=l),g(f,u,p&&"global"in p?p.global:this===e,p?p.state:void 0)},n(e.random(),t)}([],iX);let i1=[0,0,0,0,0,0],i2=tR(.333,0,.833,.833,"easeIn").get,i3=tR(.33,0,.667,1,"easeInOut").get,i5=tR(.167,.167,.667,1,"easeOut").get,i4=(t,e,s)=>{let i=s;return(i<0&&i++,i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},i6=t=>{let e,s,i,r=t[0]??0,a=t[1]??0,n=t[2]??0;if(0===a)e=n,i=n,s=n;else{let t=n<.5?n*(1+a):n+a-n*a,o=2*n-t;e=i4(o,t,r+1/3),s=i4(o,t,r),i=i4(o,t,r-1/3)}return[e,s,i,t[3]??0]},i8=t=>{let e=t[0],s=t[1],i=t[2],r=iX.max(e,s,i),a=iX.min(e,s,i),n=0,o,h=(r+a)/2;if(r===a)o=0;else{let t=r-a;switch(o=h>.5?t/(2-r-a):t/(r+a),r){case e:n=(s-i)/t+6*(s<i);break;case s:n=(i-e)/t+2;break;case i:n=(e-s)/t+4}n/=6}return[n,o,h,t[3]]};function i9(t){let e=typeof t;if("number"===e||t instanceof Number||"boolean"===e)return-t;if(ro(t)){let{length:e}=t,s=[];for(let i=0;i<e;i++)s[i]=-t[i];return s}return t.propType?t.v:-t}function i7(t,e,s,i){let r,a,{length:n}=t,o=tZ();o.setPathData(!!i,n);let h=[0,0];for(let i=0;i<n;i++)r=e[i]??h,a=s[i]??h,o.setTripleAt(t[i]?.[0]??0,t[i]?.[1]??0,a[0]+(t[i]?.[0]??0),a[1]+(t[i]?.[1]??0),r[0]+(t[i]?.[0]??0),r[1]+(t[i]?.[1]??0),i,!0);return o}function rt(t,e,s,i,r,a){let n=e,o=r,h=a;void 0===o?(o=s,h=i):n=(n-s)/(i-s),n>1?n=1:n<0&&(n=0);let l=t(n);if(ro(o)&&ro(h)){let t,e=o.length,s=tm(te.Float32,e);for(t=0;t<e;t+=1)s[t]=(h[t]-o[t])*l+o[t];return s}return(h-o)*l+o}function re(t,e,s,i,r){return rt(i5,t,e,s,i,r)}function rs(t,e,s,i,r){return rt(i2,t,e,s,i,r)}function ri(t,e,s,i,r){return rt(i3,t,e,s,i,r)}function rr(t,e,s,i,r){let a=e,n=s,o=i,h=r;if((void 0===o||void 0===h)&&(o=a,h=n,a=0,n=1),n<a){let t=n;n=a,a=t}if(t<=a)return o;if(t>=n)return h;let l=n===a?0:(t-a)/(n-a);if(!L(o)&&!L(h))return o+(h-o)*l;if(L(o)&&L(h)){let{length:t}=o,e=tm(te.Float32,t);for(let s=0;s<t;s+=1)e[s]=(o[s]??0)+((h[s]??0)-(o[s]??0))*l;return e}return 0}function ra(t){return rl(t,rc(t))}function rn(t,e){let s=t,i=e;if(void 0===i&&(void 0===s?(s=0,i=1):(i=s,s=void 0)),$(i)){let{length:t}=i;s||(s=tm(te.Float32,t));let e=tm(te.Float32,t),r=iX.random();for(let a=0;a<t;a+=1)e[a]=(s[a]??0)+r*((i[a]??0)-(s[a]??0));return e}return(s=s??0)+iX.random()*(i-s)}function ro(t){return"object"==typeof t&&null!==t&&(t.constructor===Array||t.constructor===Float32Array)}function rh(t){return t*f}function rl(t,e){let s,i,r,a=typeof t,n=typeof e;if(rp(a,t)&&rp(n,e))return Number(t)/Number(e);if(ro(t)&&rp(n,e)){for(r=t.length,s=tm(te.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)/Number(e);return s}if(rp(a,t)&&ro(e)){for(r=e.length,s=tm(te.Float32,r),i=0;i<r;i+=1)s[i]=Number(t)/(e[i]??0);return s}return 0}function rp(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function rc(t,e){let s,i=e;if("number"==typeof t||t instanceof Number)return i=i||0,iX.abs(Number(t)-Number(i));i||(i=i1);let r=iX.min(t.length,i.length),a=0;for(s=0;s<r;s+=1)a+=iX.pow((i[s]??0)-(t[s]??0),2);return iX.sqrt(a)}function rm(t,e){let s=t,i=e;return"string"==typeof s&&(s=parseInt(s,10)),"string"==typeof i&&(i=parseInt(i,10)),s%i}function ru(t,e){let s,i,r,a=typeof t,n=typeof e;if(rp(a,t)&&rp(n,e))return Number(t)*Number(e);if(ro(t)&&rp(n,e)){for(r=t.length,s=tm(te.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)*Number(e);return s}if(rp(a,t)&&ro(e)){for(r=e.length,s=tm(te.Float32,r),i=0;i<r;i++)s[i]=Number(t)*(e[i]??0);return s}return 0}function rd(t){return t}function rf(t){return t/f}function rg(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rp(r,s)&&rp(a,i))return"string"===r&&(s=parseInt(s,10)),"string"===a&&(i=parseInt(i,10)),s-i;if(ro(s)&&rp(a,i))return s=[...s],s[0]-=Number(i),s;if(rp(r,s)&&ro(i))return(i=[...i])[0]=Number(s)-i[0],i;if(ro(s)&&ro(i)){let t=0,e=s.length,r=i.length,a=[];for(;t<e||t<r;){if(("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)){a[t]=(s[t]??0)-(i[t]??0),t++;continue}a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++}return a}return 0}function ry(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rp(r,s)&&rp(a,i)||"string"===r||"string"===a)return Number(s)+Number(i);if(ro(s)&&rp(a,i))return s=[...s],s[0]+=Number(i),s;if(rp(r,s)&&ro(i))return(i=[...i])[0]=s+i[0],i;if(ro(s)&&ro(i)){let t=0,{length:e}=s,{length:r}=i,a=[];for(;t<e||t<r;){if(("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)){a[t]=(s[t]??0)+(i[t]??0),t++;continue}a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++}return a}return 0}let rv={initiateExpression:function(t,e,s){if(!t.globalData?.renderConfig?.runExpressions)return rd;if(!t.comp?.globalData)throw Error("CompElement is not implemented");let{k:i,x:r}=e,a=/velocity\b/.test(r),n=r.includes("random"),{ip:o,nm:h,op:l,sh:p=0,sw:c=0,ty:m}=t.data,u,d,g,y=0,v;s._name=h,s.valueAtTime=s.getValueAtTime,Object.defineProperty(s,"value",{get:()=>s.v}),t.comp.frameDuration=1/t.comp.globalData.frameRate,t.comp.displayStartTime=0;let b=o/t.comp.globalData.frameRate,_=l/t.comp.globalData.frameRate,x=null,w=null,S=null,E=null,k,P=null,M,A=null,T=null,D=null,I=null,F=null,L=null,N,V={},R=Function("_lottieGlobal","$bm_div","$bm_mod","$bm_mul","$bm_neg","$bm_sub","$bm_sum","$bm_transform","active","add","anchorPoint","clamp","comp","content","createPath","degrees_to_radians","degreesToRadians","div","document","ease","easeIn","easeOut","effect","fetch","frames","framesToTime","fromComp","fromCompToSurface","fromWorld","globalData","height","hslToRgb","index","inPoint","key","length","linear","lookAt","loop_in","loop_out","loopIn","loopInDuration","loopOut","loopOutDuration","mask","mod","mul","name","nearestKey","normalize","numKeys","obj","outPoint","position","posterizeTime","propertyIndex","radians_to_degrees","radiansToDegrees","random","randSeed","rgbToHsl","rotation","scale","seedRandom","selectorValue","smooth","sourceRectAtTime","sub","substr","substring","text","textIndex","textTotal","thisComp","thisLayer","thisProperty","time","timeToFrames","toComp","toWorld","transform","value","valueAtTime","velocity","width","wiggle","window","XMLHttpRequest","globalThis","top","parent","location","navigator",`
1
+ !function(t){"use strict";let e,s,i,r,a,n,o,h,l,p,c,m,u,d,f=Math.PI/180,g="http://www.w3.org/1999/xlink",y="http://www.w3.org/2000/svg",v=!("u">typeof window&&document),b="u">typeof navigator,_={current:""},x=t=>t.endsWith("/")?x(t.slice(0,Math.max(0,t.length-1))):t,w=(t,e)=>1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e)),S=t=>1e-5>=Math.abs(t),E=(t,e)=>w(t[0],e[0])&&w(t[1],e[1]),k=(i=0,()=>(i++,`${_.current}__lottie_element_${i}`)),C=(t,e=0,s=100)=>{let i=e,r=s;if(i>r){let t=r;r=i,i=t}return Math.min(Math.max(t,i),r)},P=(...t)=>{},M=(t,e)=>{let s=new Blob([t],{type:e?.mimeType??""}),i=e?.name||k(),r=URL.createObjectURL(s),a=document.createElement("a");a.href=r,a.download=i,a.hidden=!0,document.body.appendChild(a),a.click(),setTimeout(()=>{a.remove(),URL.revokeObjectURL(r)},1e3)},A=t=>"number"==typeof t&&t>0?t:!v&&devicePixelRatio>0?devicePixelRatio:1,T=t=>{let e;if("string"==typeof t&&t&&((e=t?.split("/").pop()?.lastIndexOf("."))??0)>1&&t&&t.length-1>(e??0))return t.split(".").pop()?.toLowerCase()},D=t=>{let e=t.split(":")[1]?.split(";")[0];return e.split("/")[1]?.split("+")[0]},I=(t,e)=>(T(t),`${t.split("/").pop()?.replace(/\.[^.]*$/,"").replaceAll(/\W+/g,"-")}`),F=(t,e)=>{if(e)return T(e)?T(e)===t?e:`${I(e)}.${t}`:`${e}.${t}`},L=t=>Symbol.iterator in Object(t)&&t.length>0,$=t=>L(t)&&"number"==typeof t[0],N=t=>!("h"in t)&&!("w"in t)&&"p"in t&&"e"in t&&"u"in t&&"id"in t,V=t=>"w"in t&&"h"in t&&!("xt"in t)&&"p"in t,R=t=>!(!t||L(t))&&"_type"in t&&"ShapePath"===t._type,O=t=>t.slice(Math.max(0,t.indexOf(",")+1)),z=t=>{if(!t)return"rgb(0,0,0)";let e=(t[0]??0)|0,s=(t[1]??0)|0,i=(t[2]??0)|0;return`rgb(${e},${s},${i})`},B=t=>`${x(t)}/`;var G,q,j,H,W,J,U,Y,X,K,Z,Q,tt,te=((Q={}).Float32="float32",Q.Int16="int16",Q.Int32="int32",Q.Uint8="uint8",Q.Uint8c="uint8c",Q),ts=((G={}).MouseModifier="ms",G.OffsetPathModifier="op",G.PuckerAndBloatModifier="pb",G.RepeaterModifier="rp",G.RoundCornersModifier="rd",G.TrimModifier="tm",G.ZigZagModifier="zz",G),ti=((q={}).Bounce="bounce",q.Normal="normal",q),tr=((j={}).Active="_active",j.Complete="complete",j.ConfigError="configError",j.ConfigReady="config_ready",j.DataFailed="data_failed",j.DataReady="data_ready",j.Destroy="destroy",j.Destroyed="destroyed",j.DOMLoaded="DOMLoaded",j.DrawnFrame="drawnFrame",j.EnterFrame="enterFrame",j.Error="error",j.Frame="frame",j.Freeze="freeze",j.Idle="_idle",j.Load="load",j.LoadedImages="loaded_images",j.Loop="loop",j.LoopComplete="loopComplete",j.MouseEnter="mouseenter",j.MouseLeave="mouseleave",j.Next="next",j.Pause="_pause",j.Play="_play",j.Previous="previous",j.Ready="ready",j.Rendered="rendered",j.RenderFrameError="renderFrameError",j.SegmentStart="segmentStart",j.Stop="stop",j),ta=((H={}).Contain="xMidYMid meet",H.Cover="xMidYMid slice",H.Initial="none",H.None="xMinYMin slice",H),tn=((W={}).Canvas="canvas",W.SVG="svg",W),to=((J={}).Ellipse="el",J.Fill="fl",J.GradientFill="gf",J.GradientStroke="gs",J.Group="gr",J.Merge="mm",J.NoStyle="no",J.OffsetPath="op",J.Path="sh",J.PolygonStar="sr",J.PuckerBloat="pb",J.Rectangle="rc",J.Repeater="rp",J.RoundedCorners="rd",J.Stroke="st",J.Transform="tr",J.Trim="tm",J.Twist="tw",J.Unknown="ms",J.ZigZag="zz",J),th=((U={}).TransformEffect="transformEffect",U),tl=((Y={}).MultiDimensional="multidimensiional",Y.Shape="shape",Y.TextSelector="textSelector",Y.Transform="transform",Y.UniDimensional="unidimensional",Y);let tp={1:"butt",2:"round",3:"square"},tc={1:"miter",2:"round",3:"bevel"},tm=(()=>{function t(t,e){let s,i=[];switch(t){case te.Int16:case te.Uint8c:s=1;break;case te.Float32:case te.Int32:case te.Uint8:default:s=1.1}for(let t=0;t<e;t++)i.push(s);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,s){return e===te.Float32?new Float32Array(s):e===te.Int16?new Int16Array(s):e===te.Uint8c?new Uint8ClampedArray(s):t(e,s)}:t})();function tu(t){return Array.from({length:t})}class td{constructor(){this.props=tm(te.Float32,16),this._identity=!0,this._identityCalculated=!1,this.reset()}applyToPoint(t,e,s){return{x:t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}}applyToPointArray(t,e,s){return this.isIdentity()?[t,e,s]:[t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]]}applyToPointStringified(t,e){if(this.isIdentity())return`${t},${e}`;let s=this.props;return`${Math.round((t*s[0]+e*s[4]+s[12])*100)/100},${Math.round((t*s[1]+e*s[5]+s[13])*100)/100}`}applyToTriplePoints(t,e,s){let i=tm(te.Float32,6);if(this.isIdentity())i.set([t[0],t[1],e[0],e[1],s[0],s[1]]);else{let r=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i.set([t[0]*r+t[1]*n+h,t[0]*a+t[1]*o+l,e[0]*r+e[1]*n+h,e[0]*a+e[1]*o+l,s[0]*r+s[1]*n+h,s[0]*a+s[1]*o+l])}return i}applyToX(t,e,s){return t*this.props[0]+e*this.props[4]+s*this.props[8]+this.props[12]}applyToY(t,e,s){return t*this.props[1]+e*this.props[5]+s*this.props[9]+this.props[13]}applyToZ(t,e,s){return t*this.props[2]+e*this.props[6]+s*this.props[10]+this.props[14]}clone(t){return t.props.set(this.props),t}cloneFromProps(t){return this.props.set(t),this}equals(t){return this.props.every((e,s)=>e===t?.props[s])}getInverseMatrix(){let t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,s=-this.props[1]/t,i=-this.props[4]/t,r=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new td;return o.setTransform(e,s,0,0,i,r,0,0,0,0,1,0,a,n,0,1),o}inversePoint(t){return this.getInverseMatrix().applyToPoint(t[0],t[1],t[2]??0)}inversePoints(t){return t.map(t=>this.inversePoint(t))}isIdentity(){return this._identityCalculated||(this._identity=1===this.props[0]&&0===this.props[1]&&0===this.props[2]&&0===this.props[3]&&0===this.props[4]&&1===this.props[5]&&0===this.props[6]&&0===this.props[7]&&0===this.props[8]&&0===this.props[9]&&1===this.props[10]&&0===this.props[11]&&0===this.props[12]&&0===this.props[13]&&0===this.props[14]&&1===this.props[15],this._identityCalculated=!0),this._identity}multiply(t){return this.transform(...t.props)}reset(){return this.props.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this}rotate(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1)}rotateX(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1)}rotateY(t){if(!t)return this;let e=Math.cos(t),s=Math.sin(t);return this._t(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1)}rotateZ(t){return this.rotate(t)}scale(t,e,s=1){return 1===t&&1===e&&1===s?this:this._t(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1)}setTransform(t,e,s,i,r,a,n,o,h,l,p,c,m,u,d,f){return this.props.set([t,e,s,i,r,a,n,o,h,l,p,c,m,u,d,f]),this}shear(t,e){return this._t(1,e,t,1,0,0)}skew(t,e){return this.shear(Math.tan(t),Math.tan(e))}skewFromAxis(t,e){let s=Math.cos(e),i=Math.sin(e);return this._t(s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1)._t(s,-i,0,0,i,s,0,0,0,0,1,0,0,0,0,1)}to2dCSS(){let t=this.roundMatrixProperty(this.props[0]),e=this.roundMatrixProperty(this.props[1]),s=this.roundMatrixProperty(this.props[4]),i=this.roundMatrixProperty(this.props[5]),r=this.roundMatrixProperty(this.props[12]),a=this.roundMatrixProperty(this.props[13]);return`matrix(${t},${e},${s},${i},${r},${a})`}toCSS(){let t="matrix3d(";for(let e=0;e<16;e++)t+=`${Math.round(1e4*this.props[e])/1e4}`+(15===e?")":",");return t}transform(t,e,s,i,r,a,n,o,h,l,p,c,m,u,d,f){let g=this.props;if(1===t&&0===e&&0===s&&0===i&&0===r&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===c)return g[12]=g[12]*t+g[15]*m,g[13]=g[13]*a+g[15]*u,g[14]=g[14]*p+g[15]*d,g[15]*=f,this._identityCalculated=!1,this;let y=g[0],v=g[1],b=g[2],_=g[3],x=g[4],w=g[5],S=g[6],E=g[7],k=g[8],C=g[9],P=g[10],M=g[11],A=g[12],T=g[13],D=g[14],I=g[15];return g[0]=y*t+v*r+b*h+_*m,g[1]=y*e+v*a+b*l+_*u,g[2]=y*s+v*n+b*p+_*d,g[3]=y*i+v*o+b*c+_*f,g[4]=x*t+w*r+S*h+E*m,g[5]=x*e+w*a+S*l+E*u,g[6]=x*s+w*n+S*p+E*d,g[7]=x*i+w*o+S*c+E*f,g[8]=k*t+C*r+P*h+M*m,g[9]=k*e+C*a+P*l+M*u,g[10]=k*s+C*n+P*p+M*d,g[11]=k*i+C*o+P*c+M*f,g[12]=A*t+T*r+D*h+I*m,g[13]=A*e+T*a+D*l+I*u,g[14]=A*s+T*n+D*p+I*d,g[15]=A*i+T*o+D*c+I*f,this._identityCalculated=!1,this}translate(t,e,s){let i=s||0;return 0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}_t(...t){if(6===t.length){let[e,s,i,r,a,n]=t;return this.transform(e,s,0,0,i,r,0,0,0,0,1,0,a,n,0,1)}return this.transform(...t)}roundMatrixProperty(t){return t<1e-6&&t>0||t>-1e-6&&t<0?Math.round(1e4*t)/1e4:t}}function tf(t){return v?null:document.createElementNS(y,t)}let tg={current:""},ty=()=>tg.current,tv={};class tb{constructor(t){let e;this.filters=[];let{length:s}=t.data.ef??[];for(let i=0;i<s;i++){e=null;let s=t.data.ef?.[i]?.ty;s&&tv[s]&&(e=new tv[s].effect(t.effectsManager?.effectElements[i],t)),e&&this.filters.push(e)}this.filters.length>0&&t.addRenderableComponent(this)}getEffects(t){let e=[];for(let s=0;s<this.filters.length;s++){let i=this.filters[s];i.type===t&&e.push(i)}return e}renderFrame(t){for(let e=0;e<this.filters.length;e++)this.filters[e]?.renderFrame(t)}}let t_=new class{constructor(){if(this.maskType=!0,this.offscreenCanvas="u">typeof OffscreenCanvas,this.svgLumaHidden=!0,!b)return;this.maskType=!/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),this.svgLumaHidden=!/firefox/i.test(navigator.userAgent)}};function tx(t){return v?null:document.createElement(t)}let tw={default:150};class tS{constructor(t,e,s){this._length=0,this._maxLength=t,this._create=e,this._release=s,this.pool=tu(this._maxLength),this.newElement=this.newElement.bind(this),this.release=this.release.bind(this)}newElement(){let t;return this._length?(this._length-=1,t=this.pool[this._length]):t=this._create(),t}release(t){if(this._length===this._maxLength){var e;this.pool=[...e=this.pool,...tu(e.length)],this._maxLength*=2}this._release&&this._release(t),this.pool[this._length]=t,this._length++}}let tE=new tS(8,()=>({addedLength:0,lengths:tm(te.Float32,tw.default),percents:tm(te.Float32,tw.default)})),tk=new tS(8,()=>({lengths:[],totalLength:0}),t=>{if(R(t)){for(let e=0;e<t.lengths.length;e++)tE.release(t.lengths[e]);t.lengths.length=0}}),tC=tm(te.Float32,8);function tP(t,e,s,i){let r={},a=`${t[0]}_${t[1]}_${e[0]}_${e[1]}_${s[0]}_${s[1]}_${i[0]}_${i[1]}`.replaceAll(".","p");if(!r[a]){let n=tw.default,o,h,l=0,p,c,m=null;2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&tT(t[0],t[1],e[0],e[1],t[0]+s[0],t[1]+s[1])&&tT(t[0],t[1],e[0],e[1],e[0]+i[0],e[1]+i[1])&&(n=2);let u=new tL(n),{length:d}=s;for(let r=0;r<n;r++){c=tu(d),h=r/(n-1),p=0;for(let r=0;r<d;r++)o=Math.pow(1-h,3)*(t[r]??0)+3*Math.pow(1-h,2)*h*((t[r]??0)+(s[r]??0))+3*(1-h)*Math.pow(h,2)*((e[r]??0)+(i[r]??0))+Math.pow(h,3)*(e[r]??0),c[r]=o,null!==m&&(p+=Math.pow(c[r]-m[r],2));l+=p=Math.sqrt(p),u.points[r]=new t$(p,c),m=c}u.segmentLength=l,r[a]=u}return r[a]}function tM(t,e,s,i,r,a,n){let o=r,h=a;o<0?o=0:o>1&&(o=1);let l=tF(o,n),p=tF(h=h>1?1:h,n),c=1-l,m=1-p,u=c*c*c,d=l*c*c*3,f=l*l*c*3,g=l*l*l,y=c*c*m,v=l*c*m+c*l*m+c*c*p,b=l*l*m+c*l*p+l*c*p,_=l*l*p,x=c*m*m,w=l*m*m+c*p*m+c*m*p,S=l*p*m+c*p*p+l*m*p,E=l*p*p,k=m*m*m,C=p*m*m+m*p*m+m*m*p,P=p*p*m+m*p*p+p*m*p,M=p*p*p,{length:A}=t;for(let r=0;r<A;r++)tC[4*r]=Math.round((u*(t[r]??0)+d*(s[r]??0)+f*(i[r]??0)+g*(e[r]??0))*1e3)/1e3,tC[4*r+1]=Math.round((y*(t[r]??0)+v*(s[r]??0)+b*(i[r]??0)+_*(e[r]??0))*1e3)/1e3,tC[4*r+2]=Math.round((x*(t[r]??0)+w*(s[r]??0)+S*(i[r]??0)+E*(e[r]??0))*1e3)/1e3,tC[4*r+3]=Math.round((k*(t[r]??0)+C*(s[r]??0)+P*(i[r]??0)+M*(e[r]??0))*1e3)/1e3;return tC}function tA(t){let e,s=tk.newElement(),i=t.c,r=t.v,a=t.o,n=t.i,o=t._length||0,{lengths:h}=s,l=0;for(e=0;e<o-1;e++)h[e]=tI(r[e],r[e+1],a[e],n[e+1]),l+=h[e]?.addedLength??0;return i&&o&&(h[e]=tI(r[e],r[0],a[e],n[0]),l+=h[e]?.addedLength??0),s.totalLength=l,s}function tT(t,e,s,i,r,a){let n=t*i+e*r+s*a-r*i-a*t-s*e;return n>-.001&&n<.001}function tD(t,e,s,i,r,a,n,o,h){let l;if(0===s&&0===a&&0===h)return tT(t,e,i,r,n,o);let p=Math.sqrt(Math.pow(i-t,2)+Math.pow(r-e,2)+Math.pow(a-s,2)),c=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)+Math.pow(h-s,2)),m=Math.sqrt(Math.pow(n-i,2)+Math.pow(o-r,2)+Math.pow(h-a,2));return(l=p>c?p>m?p-c-m:m-c-p:m>c?m-c-p:c-p-m)>-1e-4&&l<1e-4}function tI(t,e,s,i){let r=tw.default,a,n,o=0,h,l=[],p=[],c=tE.newElement(),m=s.length;for(let u=0;u<r;u++){n=u/(r-1),h=0;for(let r=0;r<m;r++)a=Math.pow(1-n,3)*(t[r]??0)+3*Math.pow(1-n,2)*n*(s[r]??0)+3*(1-n)*Math.pow(n,2)*(i[r]??0)+Math.pow(n,3)*(e[r]??0),l[r]=a,"number"==typeof p[r]&&(h+=Math.pow((l[r]??0)-(p[r]??0),2)),p[r]=l[r]??0;h&&(o+=h=Math.sqrt(h)),c.percents[u]=n,c.lengths[u]=o}return c.addedLength=o,c}function tF(t,{addedLength:e,lengths:s,percents:i}){let{length:r}=i,a=Math.floor((r-1)*t),n=t*e,o=0;if(a===r-1||0===a||n===s[a])return i[a];let h=(s[a]??0)>n?-1:1,l=!0;for(;l;)if((s[a]??0)<=n&&(s[a+1]??0)>n?(o=(n-(s[a]??0))/((s[a+1]??0)-(s[a]??0)),l=!1):a+=h,a<0||a>=r-1){if(a===r-1)return i[a];l=!1}return(i[a]??0)+((i[a+1]??0)-(i[a]??0))*o}class tL{constructor(t){this.segmentLength=0,this.points=Array.from({length:t})}}class t${constructor(t,e){this.partialLength=t,this.point=e}}let tN=function(t,e,s,i,r,a){let n=tF(r,a),o=1-n;return[Math.round((o*o*o*t[0]+(n*o*o+o*n*o+o*o*n)*s[0]+(n*n*o+o*n*n+n*o*n)*i[0]+n*n*n*e[0])*1e3)/1e3,Math.round((o*o*o*t[1]+(n*o*o+o*n*o+o*o*n)*s[1]+(n*n*o+o*n*n+n*o*n)*i[1]+n*n*n*e[1])*1e3)/1e3]},tV={};function tR(t,e,s,i,r){let a=r||`bez_${t}_${e}_${s}_${i}`.replaceAll(".","p");if(tV[a])return tV[a];let n=new tO([t,e,s,i]);return tV[a]=n,n}class tO{constructor(t){this._precomputed=!1,this.float32ArraySupported="function"==typeof Float32Array,this.kSplineTableSize=11,this.kSampleStepSize=1/(this.kSplineTableSize-1),this.NEWTON_ITERATIONS=4,this.NEWTON_MIN_SLOPE=.001,this.SUBDIVISION_MAX_ITERATIONS=10,this.SUBDIVISION_PRECISION=1e-7,this._p=t,this._mSampleValues=this.float32ArraySupported?new Float32Array(this.kSplineTableSize):Array.from({length:this.kSplineTableSize}),this.get=this.get.bind(this)}_calcSampleValues(){let t=this._p[0],e=this._p[2];for(let s=0;s<this.kSplineTableSize;++s)this._mSampleValues[s]=this.calcBezier(s*this.kSampleStepSize,t,e)}_getTForX(t){let e=this._p[0],s=this._p[2],i=this._mSampleValues,r=0,a=1,n=this.kSplineTableSize-1;for(;a!==n&&Number(i[a])<=t;)r+=this.kSampleStepSize,++a;let o=r+(t-Number(i[--a]))/(Number(i[a+1])-Number(i[a]))*this.kSampleStepSize,h=this.getSlope(o,e,s);return h>=this.NEWTON_MIN_SLOPE?this.newtonRaphsonIterate(t,o,e,s):0===h?o:this.binarySubdivide(t,r,r+this.kSampleStepSize,e,s)}_precompute(){let t=this._p[0],e=this._p[1],s=this._p[2],i=this._p[3];this._precomputed=!0,(t!==e||s!==i)&&this._calcSampleValues()}get(t){let e=this._p[0],s=this._p[1],i=this._p[2],r=this._p[3];return(this._precomputed||this._precompute(),e===s&&i===r)?t:0===t?0:1===t?1:this.calcBezier(this._getTForX(t),s,r)}A(t,e){return 1-3*e+3*t}B(t,e){return 3*e-6*t}binarySubdivide(t,e,s,i,r){let a=e,n=s,o,h,l=0;do h=a+(n-a)/2,(o=this.calcBezier(h,i,r)-t)>0?n=h:a=h;while(Math.abs(o)>this.SUBDIVISION_PRECISION&&++l<this.SUBDIVISION_MAX_ITERATIONS);return h}C(t){return 3*t}calcBezier(t,e,s){return((this.A(e,s)*t+this.B(e,s))*t+this.C(e))*t}getSlope(t,e,s){return 3*this.A(e,s)*t*t+2*this.B(e,s)*t+this.C(e)}newtonRaphsonIterate(t,e,s,i){let r=e;for(let e=0;e<this.NEWTON_ITERATIONS;++e){let e=this.getSlope(r,s,i);if(0===e)break;let a=this.calcBezier(r,s,i)-t;r-=a/e}return r}}class tz{addDynamicProperty(t){this.dynamicProperties.includes(t)||(this.dynamicProperties.push(t),this.container?.addDynamicProperty(this),this._isAnimated=!0)}getValue(t){throw Error(`${this.constructor.name}: Method getValue is not implemented`)}initDynamicPropertyContainer(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}iterateDynamicProperties(){this._mdf=!1;for(let t=0;t<this.dynamicProperties.length;t++)this.dynamicProperties[t]?.getValue(),this.dynamicProperties[t]?._mdf&&(this._mdf=!0);return 0}setGroupProperty(t){}constructor(){this.dynamicProperties=[]}}let tB=t=>{let e=t[0]*f,s=t[1]*f,i=t[2]*f,r=Math.cos(e/2),a=Math.cos(s/2),n=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(s/2),l=Math.sin(i/2);return[o*h*n+r*a*l,o*a*n+r*h*l,r*h*n-o*a*l,r*a*n-o*h*l]};class tG extends tz{addEffect(t){this.effectsSequence.push(t),this.container?.addDynamicProperty(this)}getSpeedAtTime(t){throw Error(`${this.constructor.name}: Method getSpeedAtTime is not implemented`)}getValueAtCurrentTime(){if(this._caching=this._caching??{},!this.keyframes)return;let{_caching:t,comp:e,keyframes:s,offsetTime:i}=this,r=Number(e?.renderedFrame)-i,a=(s[0]?.t??0)-i,n=s.length-1,o=(s[n]?.t??0)-i,{lastFrame:h}=t;return r===h||-999999!==h&&(h>=o&&r>=o||h<a&&r<a)||(h>=r&&(t._lastKeyframeIndex=-1,t.lastIndex=0),this.pv=this.interpolateValue(r,t)),t.lastFrame=r,this.pv}getValueAtTime(t,e){throw Error(`${this.constructor.name}: Method getValueAtTime is not implemented`)}getVelocityAtTime(t){throw Error(`${this.constructor.name}: Method getVelocityAtTime is not implemented`)}initiateExpression(t,e,s){throw Error("Method not implemented")}interpolateValue(t,e={}){let s,{offsetTime:i,pv:r}=this,a=[0,0,0];this.propType===tl.MultiDimensional&&r&&(a=tm(te.Float32,r.length));let{keyframes:n=[],keyframesMetadata:o,propType:h}=this,l=e.lastIndex||0,p=l,c=n.length-1,m=!0,u=n[0]??{},d=n[1]??{};for(;m;){if(u=n[p]??{},d=n[p+1]??{},p===c-1&&t>=d.t-i){u.h&&(u=d),l=0;break}if(d.t-i>t){l=p;break}p<c-1?p++:(l=0,m=!1)}let g=o[p]??{},y,v,b,_,x=null,w=d.t-i,S=u.t-i;if(u.to&&u.s){g.bezierData=g.bezierData??tP(u.s,d.s??u.e,u.to,u.ti);let{__fnct:s,bezierData:i}=g;if(t>=w||t<S){let e=t>=w?i.points.length-1:0;y=i.points[e]?.point.length??0;for(let t=0;t<y;t++)a[t]=i.points[e]?.point[t]??0}else{s?x=s:g.__fnct=x=tR(u.o.x,u.o.y,u.i.x,u.i.y,u.n).get,v=x((t-S)/(w-S));let r=i.segmentLength*v,n,o=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastAddedLength:0;for(_=e.lastFrame<t&&e._lastKeyframeIndex===p?e._lastPoint:0,m=!0,b=i.points.length;m;){if(o+=i.points[_]?.partialLength??0,0===r||0===v||_===i.points.length-1){y=i.points[_]?.point.length??0;for(let t=0;t<y;t++)a[t]=i.points[_]?.point[t]??0;break}if(r>=o&&r<o+(i.points[_+1]?.partialLength??0)){n=(r-o)/(i.points[_+1]?.partialLength??0),y=i.points[_]?.point.length??0;for(let t=0;t<y;t++)a[t]=(i.points[_]?.point[t]??0)+((i.points[_+1]?.point[t]??0)-(i.points[_]?.point[t]??0))*n;break}_<b-1?_++:m=!1}e._lastPoint=_,e._lastAddedLength=o-(i.points[_]?.partialLength??0),e._lastKeyframeIndex=p}}else{let e,i,r,n;if(c=u.s?.length||0,s=d.s??u.e,this.sh&&1!==u.h)if(t>=w)a[0]=s[0],a[1]=s[1],a[2]=s[2];else if(t<=S&&u.s)a[0]=u.s[0],a[1]=u.s[1],a[2]=u.s[2];else{var E,k,C;let e,i,r,n,o,h,l,p,c,m,d,g,y,v,b,_,x,P,M,A,T,D=tB(u.s),I=tB(s);k=a,b=(E=(t-S)/(w-S),e=[0,0,0,0],i=D[0],r=D[1],n=D[2],o=D[3],h=I[0],l=I[1],(d=i*h+r*l+n*(p=I[2])+o*(c=I[3]))<0&&(d=-d,h=-h,l=-l,p=-p,c=-c),1-d>1e-6?(g=Math.sin(m=Math.acos(d)),y=Math.sin((1-E)*m)/g,v=Math.sin(E*m)/g):(y=1-E,v=E),e[0]=y*i+v*h,e[1]=y*r+v*l,e[2]=y*n+v*p,e[3]=y*o+v*c,C=e)[0],_=C[1],x=C[2],M=Math.atan2(2*_*(P=C[3])-2*b*x,1-2*_*_-2*x*x),A=Math.asin(2*b*_+2*x*P),T=Math.atan2(2*b*P-2*_*x,1-2*b*b-2*x*x),k[0]=M/f,k[1]=A/f,k[2]=T/f}else for(p=0;p<c;p++)1!==u.h&&(t>=w?v=1:t<S?v=0:(u.o.x.constructor===Array?(g.__fnct=g.__fnct??[],g.__fnct[p]?x=g.__fnct[p]:L(u.o.y)&&L(u.i.y)&&L(u.i.x)&&(e=u.o.x[p]??u.o.x[0],i=u.o.y[p]??u.o.y[0],x=tR(e,i,r=u.i.x[p]??u.i.x[0],u.i.y[p]??u.i.y[0]).get,g.__fnct[p]=x)):g.__fnct?x=g.__fnct:(e=u.o.x,i=u.o.y,x=tR(e,i,r=u.i.x,u.i.y).get,u.keyframeMetadata=x),v=x?.((t-S)/(w-S)))),s=d.s??u.e,void 0!==(n=1===u.h?u.s?.[p]:Number(u.s?.[p])+((s[p]??0)-Number(u.s?.[p]))*Number(v))&&(h===tl.MultiDimensional?a[p]=n:a=n)}return e.lastIndex=l,a}processEffectsSequence(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.elem)throw Error(`${this.constructor.name}: elem (ElementInterface) is not implemented`);if(this.elem.globalData?.frameId===this.frameId)return 0;if(0===this.effectsSequence.length)return this._mdf=!1,0;if(this.lock&&this.pv)return this.setVValue(this.pv),0;this.lock=!0,this._mdf=!!this._isFirstFrame;let t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(let s=0;s<t;s++)e=this.effectsSequence[s]?.(e);return this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData?.frameId,0}setVValue(t){let e;if("number"==typeof t&&this.propType===tl.UniDimensional){e=t*Number(this.mult),Math.abs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);return}let s=0,{length:i}=this.v;for(;s<i;)e=(t[s]??0)*Number(this.mult),Math.abs((this.v[s]??0)-e)>1e-5&&(this.v[s]=e,this._mdf=!0),s++}speedAtTime(t){throw Error("Method is not implemented")}valueAtTime(t,e){throw Error(`${this.constructor.name}: Method valueAtTime is not implemented`)}velocityAtTime(t){throw Error("Method is not implemented")}constructor(...t){super(...t),this._isFirstFrame=!1,this.effectsSequence=[],this.initFrame=-999999,this.keyframesMetadata=[],this.offsetTime=0}}class tq extends tG{constructor(t,e,s=null,i=null){let r,a,n,o;super(),this.propType=tl.MultiDimensional;for(let t=0;t<e.k.length-1;t++)e.k[t]?.to&&e.k[t]?.s&&e.k[t+1]?.s&&(r=e.k[t]?.s,a=e.k[t+1]?.s,n=e.k[t]?.to,o=e.k[t]?.ti,(2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&tT(r[0]??0,r[1]??0,a[0]??0,a[1]??0,(r[0]??0)+(n[0]??0),(r[1]??0)+(n[1]??0))&&tT(r[0]??0,r[1]??0,a[0]??0,a[1]??0,(a[0]??0)+(o[0]??0),(a[1]??0)+(o[1]??0))||3===r.length&&(r[0]!==a[0]||r[1]!==a[1]||r[2]!==a[2])&&tD(r[0]??0,r[1]??0,r[2]??0,a[0]??0,a[1]??0,a[2]??0,(r[0]??0)+(n[0]??0),(r[1]??0)+(n[1]??0),(r[2]??0)+(n[2]??0))&&tD(r[0]??0,r[1]??0,r[2]??0,a[0]??0,a[1]??0,a[2]??0,(a[0]??0)+(o[0]??0),(a[1]??0)+(o[1]??0),(a[2]??0)+(o[2]??0)))&&(e.k[t].to=null,e.k[t].ti=null),r[0]===a[0]&&r[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===r.length||r[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[t].to=null,e.k[t].ti=null));this.effectsSequence=[this.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=s||1,this.elem=t,this.container=i,this.comp=t.comp,this.getValue=this.processEffectsSequence,this.frameId=-1;let h=e.k[0]?.s?.length||0;this.v=tm(te.Float32,h),this.pv=tm(te.Float32,h);for(let t=0;t<h;t++)this.v[t]=this.initFrame,this.pv[t]=this.initFrame;this._caching={lastFrame:this.initFrame,lastIndex:0,value:tm(te.Float32,h)}}}class tj extends tG{constructor(t,e,s=null,i=null){super(),this.propType=tl.UniDimensional,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={_lastKeyframeIndex:-1,lastFrame:this.initFrame,lastIndex:0,value:0},this.k=!0,this.kf=!0,this.data=e,this.mult=s||1,this.elem=t,this.container=i,this.comp=t.comp,this.v=this.initFrame,this.pv=this.initFrame,this._isFirstFrame=!0,this.getValue=this.processEffectsSequence,this.effectsSequence=[this.getValueAtCurrentTime.bind(this)]}}class tH extends tG{constructor(t,e,s=null,i=null){super(),this.propType=tl.MultiDimensional,this.mult=s||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;let{length:r}=e.k;this.v=tm(te.Float32,r),this.pv=tm(te.Float32,r),this.vel=tm(te.Float32,r);for(let t=0;t<r;t++)this.v[t]=(e.k[t]??0)*this.mult,this.pv[t]=e.k[t]??0;this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=this.processEffectsSequence}}class tW extends tG{constructor(){super(),this.propType=!1}}class tJ extends tG{constructor(t,e,s=null,i=null){super(),this.propType=tl.UniDimensional,this.mult=s||1,this.data=e,this.v=e.k*(s||1),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=this.processEffectsSequence}}let tU={getProp:function(t,e,s,i,r){let a,n=e;if(n&&"sid"in n&&n.sid&&(n=t.globalData?.slotManager?.getProp(n)),!n)return new tW;if("number"==typeof n.k)a=new tJ(t,n,i,r);else if($(n.k))a=new tH(t,n,i,r);else switch(s){case 0:a=new tj(t,n,i,r);break;case 1:a=new tq(t,n,i,r)}return(a=a??new tW).effectsSequence.length>0&&r?.addDynamicProperty(a),a}},tY=new tS(8,()=>tm(te.Float32,2));class tX{get _type(){return"ShapePath"}constructor(){this._length=0,this._maxLength=8,this.c=!1,this.lengths=[],this.v=tu(this._maxLength),this.o=tu(this._maxLength),this.i=tu(this._maxLength)}doubleArrayLength(){this.v=[...this.v,...tu(this._maxLength)],this.i=[...this.i,...tu(this._maxLength)],this.o=[...this.o,...tu(this._maxLength)],this._maxLength*=2}length(){return this._length}setLength(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t}setPathData(t,e){this.c=t,this.setLength(e);let s=0;for(;s<e;)this.v[s]=tY.newElement(),this.o[s]=tY.newElement(),this.i[s]=tY.newElement(),s++}setTripleAt(t,e,s,i,r,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(s,i,"o",n,o),this.setXYAt(r,a,"i",n,o)}setXYAt(t,e,s,i,r){let a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[i]&&r||(a[i]=tY.newElement()),a[i][0]=t,a[i][1]=e}toReversed(){let t=new tX;t.setPathData(this.c,this._length);let e=this.v,s=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0]?.[0]??0,e[0]?.[1]??0,i[0]?.[0]??0,i[0]?.[1]??0,s[0]?.[0]??0,s[0]?.[1]??0,0,!1),r=1);let{_length:a}=this,n=a-1;for(let o=r;o<a;o++)t.setTripleAt(e[n]?.[0]??0,e[n]?.[1]??0,i[n]?.[0]??0,i[n]?.[1]??0,s[n]?.[0]??0,s[n]?.[1]??0,o,!1),n-=1;return t}}let tK=new tS(4,function(){return new tX},function(t){if(!R(t))return;let e=t._length;for(let s=0;s<e;s++)tY.release(t.v[s]),tY.release(t.i[s]),tY.release(t.o[s]),t.v[s]=null,t.i[s]=null,t.o[s]=null;t._length=0,t.c=!1}),{newElement:tZ}=tK,{release:tQ}=tK;function t0(t){let e=tZ(),s=t._length??t.v.length;e.setLength(s),e.c=t.c;for(let i=0;i<s;i++)e.setTripleAt(t.v[i]?.[0]??0,t.v[i]?.[1]??0,t.o[i]?.[0]??0,t.o[i]?.[1]??0,t.i[i]?.[0]??0,t.i[i]?.[1]??0,i);return e}class t1{constructor(){this._length=0,this._maxLength=4,this.shapes=tu(this._maxLength)}addShape(t){this._length===this._maxLength&&(this.shapes=[...this.shapes,...tu(this._maxLength)],this._maxLength*=2),this.shapes[this._length]=t,this._length++}releaseShapes(){for(let t=0;t<this._length;t++)tQ(this.shapes[t]);this._length=0}}function t2(){return new t1}tu(4);class t3 extends tz{getValueAtTime(t,e){throw Error(`${this.constructor.name}: Method getShapeValueAtTime is not implemented`)}initiateExpression(t,e,s){throw Error(`${this.constructor.name}: Method initiateExpression is not implemented`)}interpolateShape(t,e,s={}){let i=s.lastIndex||0,r,a,n,o=0,h,l=this.keyframes??[];if(t<(l[0]?.t??0)-this.offsetTime)r=l[0]?.s?.[0]??0,n=!0,i=0;else if(t>=(l[l.length-1]?.t??0)-this.offsetTime)r=l[l.length-1]?.s?l[l.length-1]?.s?.[0]:l[l.length-2]?.e[0],n=!0;else{let e=i,s=l.length-1,h=!0,p,c;for(;h&&(p=l[e],!((c=l[e+1]).t-this.offsetTime>t));)e<s-1?e++:h=!1;if(!p||!c)throw Error(`${this.constructor.name}: Could not set keyframe data`);let m=this.keyframesMetadata[e]??{};if(n=1===p.h,i=e,!n){if(t>=c.t-this.offsetTime)o=1;else if(t>=p.t-this.offsetTime){let e;m.__fnct?e=m.__fnct:"number"==typeof p.o.x&&"number"==typeof p.o.y&&"number"==typeof p.i.x&&"number"==typeof p.i.y&&(m.__fnct=e=tR(p.o.x,p.o.y,p.i.x,p.i.y).get),o=e?.((t-(p.t-this.offsetTime))/(c.t-this.offsetTime-(p.t-this.offsetTime)))||0}a=c.s?c.s[0]:p.e[0]}r=p.s?.[0]}if(!r||"number"==typeof r||L(r)||"number"==typeof a)return;let p=e._length,c=r.i[0]?.length??0;s.lastIndex=i;for(let t=0;t<p;t++)for(let s=0;s<c;s++)h=n?r.i[t]?.[s]:(r.i[t]?.[s]??0)+((a?.i[t]?.[s]??0)-(r.i[t]?.[s]??0))*o,e.i[t][s]=h,h=n?r.o[t]?.[s]:(r.o[t]?.[s]??0)+((a?.o[t]?.[s]??0)-(r.o[t]?.[s]??0))*o,e.o[t][s]=h,h=n?r.v[t]?.[s]:(r.v[t]?.[s]??0)+((a?.v[t]?.[s]??0)-(r.v[t]?.[s]??0))*o,e.v[t][s]=h}interpolateShapeCurrentTime(){if(!this.pv)throw Error(`${this.constructor.name}: Cannot parse ShapePath v value`);if(!this.keyframes)return;this._caching=this._caching??{};let t=Number(this.comp?.renderedFrame)-this.offsetTime,e=(this.keyframes[0]?.t??0)-this.offsetTime,s=(this.keyframes[this.keyframes.length-1]?.t??0)-this.offsetTime,{lastFrame:i,lastIndex:r}=this._caching;return -999999!==i&&(i<e&&t<e||i>s&&t>s)||(this._caching.lastIndex=i<t?r:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}processEffectsSequence(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(this.elem?.globalData?.frameId===this.frameId)return 0;if(0===this.effectsSequence.length)return this._mdf=!1,0;if(this.lock&&this.pv)return this.setVValue(this.pv),0;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt?.k;let i=this.effectsSequence.length;for(s=0;s<i;s++)e=this.effectsSequence[s]?.(e);return this.setVValue(e),this.lock=!1,this.frameId=this.elem?.globalData?.frameId||0,0}reset(){this.paths=this.localShapeCollection}setVValue(t){if(!this.v||!t)throw Error(`${this.constructor.name}: ShapePath is not set`);if(!this.localShapeCollection)throw Error(`${this.constructor.name}: localShapeCollection is not set`);this.shapesEqual(this.v,t)||(this.v=t0(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}shapesEqual(t,e){if(t._length!==e._length||t.c!==e.c)return!1;let s=t._length||0;for(let i=0;i<s;i++)if(t.v[i]?.[0]!==e.v[i]?.[0]||t.v[i]?.[1]!==e.v[i]?.[1]||t.o[i]?.[0]!==e.o[i]?.[0]||t.o[i]?.[1]!==e.o[i]?.[1]||t.i[i]?.[0]!==e.i[i]?.[0]||t.i[i]?.[1]!==e.i[i]?.[1])return!1;return!0}constructor(...t){super(...t),this.data=void 0,this.effectsSequence=[],this.keyframesMetadata=[],this.offsetTime=0,this.pathsData=[]}}class t5 extends t3{constructor(t,e){super(),this._cPoint=.5519,this.v=tZ(),this.v.setPathData(!0,4),this.localShapeCollection=t2(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=tU.getProp(t,e.p,1,0,this),this.s=tU.getProp(t,e.s,1,0,this),this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertEllToPath())}convertEllToPath(){if("object"!=typeof this.p?.v)return;let t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,r=3!==this.d,a=this.v;if(!a?.v[0]||!a.v[1]||!a.v[2]||!a.v[3]||!a.i[0]||!a.i[1]||!a.i[2]||!a.i[3]||!a.o[0]||!a.o[1]||!a.o[2]||!a.o[3])throw Error(`${this.constructor.name}: Could not get value of ellipse`);a.v[0][0]=t,a.v[0][1]=e-i,a.v[1][0]=r?t+s:t-s,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+i,a.v[3][0]=r?t-s:t+s,a.v[3][1]=e,a.i[0][0]=r?t-s*this._cPoint:t+s*this._cPoint,a.i[0][1]=e-i,a.i[1][0]=r?t+s:t-s,a.i[1][1]=e-i*this._cPoint,a.i[2][0]=r?t+s*this._cPoint:t-s*this._cPoint,a.i[2][1]=e+i,a.i[3][0]=r?t-s:t+s,a.i[3][1]=e+i*this._cPoint,a.o[0][0]=r?t+s*this._cPoint:t-s*this._cPoint,a.o[0][1]=e-i,a.o[1][0]=r?t+s:t-s,a.o[1][1]=e+i*this._cPoint,a.o[2][0]=r?t-s*this._cPoint:t+s*this._cPoint,a.o[2][1]=e+i,a.o[3][0]=r?t-s:t+s,a.o[3][1]=e-i*this._cPoint}getValue(t){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId||0,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath()),0}}class t4 extends t3{constructor(t,e){super(),this.v=tZ(),this.v.c=!0,this.localShapeCollection=t2(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=tU.getProp(t,e.p,1,0,this),this.s=tU.getProp(t,e.s,1,0,this),this.r=tU.getProp(t,e.r,0,0,this),this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertRectToPath())}convertRectToPath(){if("object"!=typeof this.p?.v)throw TypeError(`${this.constructor.name}: p value is not implemented`);let t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,r=Math.min(s,i,this.r.v),a=r*(1-.5519);this.v&&(this.v._length=0),2===this.d||1===this.d?(this.v?.setTripleAt(t+s,e-i+r,t+s,e-i+r,t+s,e-i+a,0,!0),this.v?.setTripleAt(t+s,e+i-r,t+s,e+i-a,t+s,e+i-r,1,!0),0===r?(this.v?.setTripleAt(t-s,e+i,t-s+a,e+i,t-s,e+i,2),this.v?.setTripleAt(t-s,e-i,t-s,e-i+a,t-s,e-i,3)):(this.v?.setTripleAt(t+s-r,e+i,t+s-r,e+i,t+s-a,e+i,2,!0),this.v?.setTripleAt(t-s+r,e+i,t-s+a,e+i,t-s+r,e+i,3,!0),this.v?.setTripleAt(t-s,e+i-r,t-s,e+i-r,t-s,e+i-a,4,!0),this.v?.setTripleAt(t-s,e-i+r,t-s,e-i+a,t-s,e-i+r,5,!0),this.v?.setTripleAt(t-s+r,e-i,t-s+r,e-i,t-s+a,e-i,6,!0),this.v?.setTripleAt(t+s-r,e-i,t+s-a,e-i,t+s-r,e-i,7,!0))):(this.v?.setTripleAt(t+s,e-i+r,t+s,e-i+a,t+s,e-i+r,0,!0),0===r?(this.v?.setTripleAt(t-s,e-i,t-s+a,e-i,t-s,e-i,1,!0),this.v?.setTripleAt(t-s,e+i,t-s,e+i-a,t-s,e+i,2,!0),this.v?.setTripleAt(t+s,e+i,t+s-a,e+i,t+s,e+i,3,!0)):(this.v?.setTripleAt(t+s-r,e-i,t+s-r,e-i,t+s-a,e-i,1,!0),this.v?.setTripleAt(t-s+r,e-i,t-s+a,e-i,t-s+r,e-i,2,!0),this.v?.setTripleAt(t-s,e-i+r,t-s,e-i+r,t-s,e-i+a,3,!0),this.v?.setTripleAt(t-s,e+i-r,t-s,e+i-a,t-s,e+i-r,4,!0),this.v?.setTripleAt(t-s+r,e+i,t-s+r,e+i,t-s+a,e+i,5,!0),this.v?.setTripleAt(t+s-r,e+i,t+s-a,e+i,t+s-r,e+i,6,!0),this.v?.setTripleAt(t+s,e+i-r,t+s,e+i-r,t+s,e+i-a,7,!0)))}getValue(){return this.elem?.globalData?.frameId===this.frameId||(this.elem?.globalData?.frameId&&(this.frameId=this.elem.globalData.frameId),this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath()),0}}class t6 extends t3{constructor(t,e,s){super(),this.propType=tl.Shape,this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;let i=3===s?e.pt?.k:e.ks?.k;if(!i)throw Error(`${this.constructor.name}: Could now get Path Data`);this.v=t0(i),this.pv=t0(this.v),this.localShapeCollection=t2(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.effectsSequence=[],this.getValue=this.processEffectsSequence}}class t8 extends t3{constructor(t,e,s){super(),this.lastFrame=-999999,this.data=e,this.propType=tl.Shape,this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data?.st||0,this.keyframes=3===s?e.pt?.k:e.ks?.k??[],this.keyframesMetadata=[],this.k=!0,this.kf=!0;let i=this.keyframes[0]?.s,{length:r}=i?.[0]?.i??[];this.v=tZ(),this.v.setPathData(!!i?.[0]?.c,r),this.pv=t0(this.v),this.localShapeCollection=t2(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[this.interpolateShapeCurrentTime.bind(this)],this.getValue=this.processEffectsSequence}}class t9 extends t3{constructor(t,e){super(),this.v=tZ(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=tU.getProp(t,e.ir,0,0,this),this.is=tU.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=tU.getProp(t,e.pt,0,0,this),this.p=tU.getProp(t,e.p,1,0,this),this.r=tU.getProp(t,e.r,0,f,this),this.or=tU.getProp(t,e.or,0,0,this),this.os=tU.getProp(t,e.os,0,.01,this),this.localShapeCollection=t2(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length>0?this.k=!0:(this.k=!1,this.convertToPath())}convertPolygonToPath(){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(!this.p)throw Error(`${this.constructor.name}: p value is not implemented`);let t=Math.floor(this.pt.v),e=2*Math.PI/t,s=this.or.v,i=this.os.v,r=2*Math.PI*s/(4*t),a=-(.5*Math.PI),n=3===this.data.d?-1:1;a+=this.r.v,this.v&&(this.v._length=0);for(let o=0;o<t;o++){let t=s*Math.cos(a),h=s*Math.sin(a),l=0===t&&0===h?0:h/Math.sqrt(t*t+h*h),p=0===t&&0===h?0:-t/Math.sqrt(t*t+h*h),c=Array.isArray(this.p.v)?this.p.v:[0,0];t+=c[0],h+=c[1],this.v?.setTripleAt(t,h,t-l*r*i*n,h-p*r*i*n,t+l*r*i*n,h+p*r*i*n,o,!0),a+=e*n}this.paths.length=0,this.paths[0]=this.v}convertStarToPath(){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);if(!this.v)throw Error(`${this.constructor.name}: v (ShapePath) is not implemented`);let t=2*Math.floor(this.pt.v),e=2*Math.PI/t,s=!0,i=this.or.v,r=Number(this.ir?.v),a=this.os.v,n=Number(this.is?.v),o=2*Math.PI*i/(2*t),h=2*Math.PI*r/(2*t),l,p,c,m=-Math.PI/2;m+=this.r.v;let u=3===this.data.d?-1:1;this.v._length=0;for(let d=0;d<t;d++){l=s?i:r,p=s?a:n,c=s?o:h;let t=l*Math.cos(m),f=l*Math.sin(m),g=0===t&&0===f?0:f/Math.sqrt(t*t+f*f),y=0===t&&0===f?0:-t/Math.sqrt(t*t+f*f),v=Array.isArray(this.p?.v)?this.p.v:[0,0];t+=v[0],f+=v[1],this.v.setTripleAt(t,f,t-g*c*p*u,f-y*c*p*u,t+g*c*p*u,f+y*c*p*u,d,!0),s=!s,m+=e*u}}convertToPath(){throw Error(`${this.constructor.name}: Method convertToPath is not implemented`)}getValue(t){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId||0,this.iterateDynamicProperties(),this._mdf&&this.convertToPath()),0}}let t7={getConstructorFunction:function(){return t6},getKeyframeConstructorFunction:function(){return t8},getShapeProp:function(t,e,s,i,r){let a=null;switch(s){case 3:case 4:{let i=3===s?e.pt:e.ks,r=i?.k;if(r?.length){a=new t8(t,e,s);break}a=new t6(t,e,s);break}case 5:a=new t4(t,e);break;case 6:a=new t5(t,e);break;case 7:a=new t9(t,e)}return a?.k&&t.addDynamicProperty(a),a}};class et{constructor(t,e,s){this.p=tU.getProp(e,t.v,0,0,s)}}class ee{constructor(t,e,s){this.p=tU.getProp(e,t.v,1,0,s)}}class es extends et{}class ei extends et{}class er extends ee{}class ea extends ee{}class en extends et{}class eo extends et{}class eh extends et{}class el{constructor(){this.p={}}}class ep extends tz{constructor(t,e,s){super(),this.data=void 0,this.effectElements=[],this.getValue=this.iterateDynamicProperties,this.init(t,e,s)}init(t,e,s){let i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);let r=this.data.ef,{length:a}=r;for(let t=0;t<a;t++){switch(r[t]?.ty){case 0:i=new es(r[t],e,this);break;case 1:i=new ei(r[t],e,this);break;case 2:i=new er(r[t],e,this);break;case 3:i=new ea(r[t],e,this);break;case 4:case 7:i=new eh(r[t],e,this);break;case 10:i=new en(r[t],e,this);break;case 11:i=new eo(r[t],e,this);break;case 5:i=new ep(r[t],e,s);break;default:i=new el}this.effectElements.push(i)}}renderFrame(t){throw Error(`${this.constructor.name}: Method renderFrame is not implemented yet`)}}class ec{constructor(t,e,s){this.effectElements=[];let i=t.ef??[],{length:r}=i;for(let s=0;s<r;s++){let r=new ep(i[s],e,t);this.effectElements.push(r)}}}let em={interface:null,plugin:null},eu=t=>{em.plugin=t};function ed(t=16){return({0:"source-over",1:"multiply",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity",16:"normal",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light"})[t]??"normal"}let ef=class{checkMasks(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not initialized`);if(!this.data.hasMask)return!1;let t=0,{length:e}=this.data.masksProperties??[];for(;t<e;){if(this.data.masksProperties?.[t]?.mode!=="n"&&this.data.masksProperties?.[t]?.cl!==!1)return!0;t++}return!1}destroy(){}getBaseElement(){return null}getType(){return this.type}initBaseData(t,e,s){this.globalData=e,this.comp=s,this.data=t,this.layerId=k(),this.data.sr||(this.data.sr=1),this.effectsManager=new ec(this.data,this,this.dynamicProperties)}initExpressions(){try{if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=em.interface;if(!t)return;let e=t("layer"),s=t("effects"),i=t("shape"),r=t("text"),a=t("comp");this.layerInterface=new e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);let n=new s().createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(n),0===this.data.ty||this.data.xt){this.compInterface=new a(this);return}if(4===this.data.ty){this.layerInterface.shapeInterface=new i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;return}5===this.data.ty&&(this.layerInterface.textInterface=new r(this),this.layerInterface.text=this.layerInterface.textInterface)}catch(t){P(this.constructor.name,t)}}setBlendMode(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=ed(this.data.bm),e=this.baseElement??this.layerElement;if(!e)throw Error(`${this.constructor.name}: Both baseElement and layerElement are not implemented`);e.style.mixBlendMode=t}sourceRectAtTime(){return null}constructor(){this.baseElement=null,this.dynamicProperties=[],this.frameDuration=1,this.itemsData=[],this.layerElement=null,this.layerInterface=null,this.renderedFrame=-1,this.shapesData=[]}};class eg extends tG{constructor(t,e,s){if(super(),this.appliedTransformations=0,this.pre=new td,this.defaultVector=[0,0],this.elem=t,this.frameId=-1,this.propType=tl.Transform,this.data=e,this.v=new td,this.initDynamicPropertyContainer(s??t),e.p&&"s"in e.p?(this.px=tU.getProp(t,e.p.x,0,0,this),this.py=tU.getProp(t,e.p.y,0,0,this),"z"in e.p&&(this.pz=tU.getProp(t,e.p.z,0,0,this))):this.p=tU.getProp(t,e.p??{k:[0,0,0]},1,0,this),"rx"in e){if(this.rx=tU.getProp(t,e.rx,0,f,this),this.ry=tU.getProp(t,e.ry,0,f,this),this.rz=tU.getProp(t,e.rz,0,f,this),e.or?.k[0]?.ti)for(let t=0;t<e.or.k.length;t++){let s=e.or.k[t];s.to=null,s.ti=null}this.or=tU.getProp(t,e.or,1,f,this),this.or.sh=!0}else this.r=tU.getProp(t,e.r??{k:0},0,f,this);e.sk&&(this.sk=tU.getProp(t,e.sk,0,f,this),this.sa=tU.getProp(t,e.sa,0,f,this)),this.a=tU.getProp(t,e.a??{k:[0,0,0]},1,0,this),this.s=tU.getProp(t,e.s??{k:[100,100,100]},1,.01,this),e.o?this.o=tU.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,0===this.dynamicProperties.length&&this.getValue(!0)}addDynamicProperty(t){super.addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}applyToMatrix(t){if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);this.iterateDynamicProperties(),this._mdf=!!this._mdf,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.r?t.rotate(-this.r.v):t.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(Number(this.or?.v[1])).rotateX(Number(this.or?.v[0])),this.data.p&&"s"in this.data.p?"z"in this.data.p?t.translate(Number(this.px?.v),Number(this.py?.v),-Number(this.pz?.v)):t.translate(Number(this.px?.v),Number(this.py?.v),0):t.translate(Number(this.p?.v[0]),Number(this.p?.v[1]),-Number(this.p?.v[2]))}autoOrient(){throw Error(`${this.constructor.name}: Method autoOrient not implemented`)}getValue(t){if(this.elem.globalData?.frameId===this.frameId)return 0;if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.s&&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,Number(this.sa?.v)),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(Number(this.or?.v[1])).rotateX(Number(this.or?.v[0])),this.autoOriented){let t,e,{frameRate:s}=this.elem.globalData??{frameRate:60};if(this.p?.keyframes)Number(this.p._caching?.lastFrame)+this.p.offsetTime<=(this.p.keyframes[0]?.t??0)?(t=this.p.getValueAtTime(((this.p.keyframes[0]?.t??0)+.01)/s,0),e=this.p.getValueAtTime(this.p.keyframes[0]?.t/s,0)):Number(this.p._caching?.lastFrame)+this.p.offsetTime>=(this.p.keyframes[this.p.keyframes.length-1]?.t??0)?(t=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1]?.t??0)/s,0),e=this.p.getValueAtTime(((this.p.keyframes[this.p.keyframes.length-1]?.t??0)-.05)/s,0)):(t=this.p.pv,e=this.p.getValueAtTime((Number(this.p._caching?.lastFrame)+this.p.offsetTime-.01)/s,this.p.offsetTime));else if(this.px?.keyframes&&this.py?.keyframes){t=[0,0],e=[0,0];let{px:i,py:r}=this,{keyframes:a=[]}=i,{keyframes:n=[]}=r;Number(i._caching?.lastFrame)+i.offsetTime<=(a[0]?.t??0)?(t[0]=i.getValueAtTime(((a[0]?.t??0)+.01)/s,0),t[1]=r.getValueAtTime(((n[0]?.t??0)+.01)/s,0),e[0]=i.getValueAtTime((a[0]?.t??0)/s,0),e[1]=r.getValueAtTime(n[0]?.t/s,0)):Number(i._caching?.lastFrame)+i.offsetTime>=(a[a.length-1]?.t??0)?(t[0]=i.getValueAtTime((a[a.length-1]?.t??0)/s,0),t[1]=r.getValueAtTime((n[n.length-1]?.t??0)/s,0),e[0]=i.getValueAtTime(((a[a.length-1]?.t??0)-.01)/s,0),e[1]=r.getValueAtTime(((n[n.length-1]?.t??0)-.01)/s,0)):(t=[i.pv,r.pv],e[0]=i.getValueAtTime((Number(i._caching?.lastFrame)+i.offsetTime-.01)/s,i.offsetTime),e[1]=r.getValueAtTime((Number(r._caching?.lastFrame)+r.offsetTime-.01)/s,r.offsetTime))}else t=e=this.defaultVector;this.v.rotate(-Math.atan2(t[1]-e[1],t[0]-e[0]))}this.data.p&&"s"in this.data.p?"z"in this.data.p?this.v.translate(Number(this.px?.v),Number(this.py?.v),-Number(this.pz?.v)):this.v.translate(Number(this.px?.v),Number(this.py?.v),0):this.p&&this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}return this.frameId=this.elem.globalData?.frameId,0}precalculateMatrix(){if(this.appliedTransformations=0,this.pre.reset(),!this.a?.effectsSequence.length){if(!this.a)throw Error(`${this.constructor.name}: Cannot read 'a' value`);if(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s?.effectsSequence.length){if(!this.s)throw Error(`${this.constructor.name}: Cannot read 's' value`);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>0||this.sa?.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,Number(this.sa?.v)),this.appliedTransformations=3}if(this.r){0===this.r.effectsSequence.length&&(this.pre.rotate(-this.r.v),this.appliedTransformations=4);return}this.rz?.effectsSequence.length||this.ry?.effectsSequence.length||this.rx?.effectsSequence.length||this.or?.effectsSequence.length||(this.pre.rotateZ(-Number(this.rz?.v)).rotateY(Number(this.ry?.v)).rotateX(Number(this.rx?.v)).rotateZ(-Number(this.or?.v[2])).rotateY(this.or?.v[1]).rotateX(this.or?.v[0]),this.appliedTransformations=4)}}}}let ey={getTransformProperty:(t,e,s)=>new eg(t,e,s)};class ev extends ef{globalToLocal(t){let e,s=t,i=[this.finalTransform],r=!0,{comp:a}=this;for(;r;)a?.finalTransform?(a.data?.hasMask&&i.splice(0,0,a.finalTransform),a=a.comp):r=!1;for(let t=0;t<i.length;t++)e=i[t]?.mat.applyToPointArray(0,0,0),s=[s[0]-Number(e?.[0]),s[1]-Number(e?.[1]),0];return s}initTransform(){if(!this.data)throw Error(`${this.constructor.name}: LottiePlayer is not initialized`);let t=new td;this.finalTransform={_localMatMdf:!1,_matMdf:!1,_opMdf:!1,localMat:t,localOpacity:1,mat:t,mProp:this.data.ks?ey.getTransformProperty(this,this.data.ks,this):{o:0}},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)}renderLocalTransform(){if(!this.localTransforms)return;if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not initialized`);let t=0,{length:e}=this.localTransforms;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&&(this.finalTransform.localOpacity=Number(this.finalTransform.mProp.o?.v),this.finalTransform._opMdf=!0),t++;if(this.finalTransform._localMatMdf){let{localMat:s,mat:i}=this.finalTransform;for(this.localTransforms[0]?.matrix?.clone(s),t=1;t<e;t++){let e=this.localTransforms[t]?.matrix;e&&s.multiply(e)}s.multiply(i)}if(this.finalTransform._opMdf){let s=this.finalTransform.localOpacity;for(t=0;t<e;t++)s*=(this.localTransforms[t]?.opacity??1)*.01;this.finalTransform.localOpacity=s}}renderTransform(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not initialized`);this.finalTransform._opMdf=!!(this.finalTransform.mProp.o?._mdf||this._isFirstFrame),this.finalTransform._matMdf=!!(this.finalTransform.mProp._mdf||this._isFirstFrame);let t=this.finalTransform.mat,{length:e}=this.hierarchy,s=0;if(!this.finalTransform._matMdf)for(;s<e;){if(this.hierarchy[s]?.finalTransform?.mProp._mdf){this.finalTransform._matMdf=!0;break}s++}if(this.finalTransform._matMdf){let i=this.finalTransform.mProp.v.props;for(t.cloneFromProps(i),s=0;s<e;s++)if(this.hierarchy[s]?.finalTransform?.mProp.v){let{v:e}=this.hierarchy[s]?.finalTransform?.mProp??{v:null};e&&t.multiply(e)}}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=Number(this.finalTransform.mProp.o?.v))}searchEffectTransforms(){if(!this.renderableEffectsManager)return;let t=this.renderableEffectsManager.getEffects(th.TransformEffect);if(0!==t.length){this.localTransforms=[],this.finalTransform&&(this.finalTransform.localMat=new td);for(let e=0;e<t.length;e++)this.localTransforms.push(t[e])}}constructor(...t){super(...t),this._isFirstFrame=!1,this.hierarchy=[],this.localTransforms=null,this.mHelper=new td}}class eb extends ev{checkParenting(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.comp)throw Error(`${this.constructor.name}: comp (ElementInterface) is not implemented`);void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}initHierarchy(){this.hierarchy=[],this._isParent=!1,this.checkParenting()}setAsParent(){this._isParent=!0}setHierarchy(t){this.hierarchy=t}constructor(...t){super(...t),this._isParent=!1}}class e_ extends eb{addDynamicProperty(t){this.dynamicProperties.includes(t)||this.dynamicProperties.push(t)}initFrame(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1}prepareProperties(t,e){for(let t=0;t<this.dynamicProperties.length;t++)(e||this._isParent&&this.dynamicProperties[t]?.propType===tl.Transform)&&(this.dynamicProperties[t]?.getValue(),this.globalData&&this.dynamicProperties[t]?._mdf&&(this.globalData._mdf=!0,this._mdf=!0))}constructor(...t){super(...t),this._mdf=!1,this.displayStartTime=0}}class ex extends e_{addRenderableComponent(t){this.renderableComponents.includes(t)||this.renderableComponents.push(t)}checkLayerLimits(t){if(this.data&&this.globalData){if(this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t){this.isInRange||(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show());return}this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())}}checkTransparency(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not implemented`);if(0>=Number(this.finalTransform.mProp.o?.v)){!this.isTransparent&&(this.globalData?.renderConfig).hideOnTransparent&&(this.isTransparent=!0,this.hide());return}this.isTransparent&&(this.isTransparent=!1,this.show())}getLayerSize(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);return 5===this.data.ty?{h:Number(this.data.textData?.height),w:Number(this.data.textData?.width)}:{h:Number(this.data.height),w:Number(this.data.width)}}hide(){}initRenderable(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]}prepareRenderableFrame(t,e){this.checkLayerLimits(t)}removeRenderableComponent(t){this.renderableComponents.includes(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)}renderRenderable(){for(let t=0;t<this.renderableComponents.length;t++)this.renderableComponents[t]?.renderFrame(Number(this._isFirstFrame))}show(){throw Error(`${this.constructor.name}: Method show is not implemented`)}sourceRectAtTime(){return{height:100,left:0,top:0,width:100}}constructor(...t){super(...t),this.hidden=!1,this.isInRange=!1,this.isTransparent=!1,this.renderableComponents=[]}}class ew extends ex{destroy(){this.innerElem=null,this.destroyBaseElement()}hide(){if(this.hidden||this.isInRange&&!this.isTransparent)return;let t=this.baseElement??this.layerElement;t&&(t.style.display="none"),this.hidden=!0}initElement(t,e,s){this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()}prepareFrame(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()}renderFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))}show(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.isInRange||!this.isTransparent){if(!this.data.hd){let t=this.baseElement??this.layerElement;if(!t)throw Error(`${this.constructor.name}: Neither baseElement or layerElement is implemented`);t.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}}constructor(...t){super(...t),this.innerElem=null}}class eS extends ew{createContent(){}destroy(){this.destroyElements(),this.destroyBaseElement()}destroyElements(){for(let t=0;t<this.layers.length;t++)this.elements[t]?.destroy()}getElements(){return this.elements}initElement(t,e,s){if(this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()}prepareFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm?._placeholder)this.renderedFrame=t/Number(this.data.sr);else{let t=this.tm?.v||0;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}this.completeLayers||this.checkLayers(this.renderedFrame);for(let t=this.elements.length-1;t>=0;t--)(this.completeLayers||this.elements[t])&&(this.elements[t]?.prepareFrame(this.renderedFrame-(this.layers[t]?.st??0)),this.elements[t]?._mdf&&(this._mdf=!0))}}renderInnerContent(){for(let t=0;t<this.layers.length;t++)(this.completeLayers||this.elements[t])&&this.elements[t]?.renderFrame()}setElements(t){this.elements=t}constructor(...t){super(...t),this.currentFrame=0,this.elements=[],this.layers=[]}}function eE(t,e,s,i){if(0===e)return"";let r=t.o,a=t.i,n=t.v,o,h=[n[0]?.[0]??0,n[0]?.[1]??0],l=i.applyToPointStringified(...h),p,c,m,u,d=` M${l}`;for(o=1;o<e;o++)m=[r[o-1]?.[0]??0,r[o-1]?.[1]??0],u=i.applyToPointStringified(...m),p=[a[o]?.[0]??0,a[o]?.[1]??0],c=i.applyToPointStringified(...p),h=[n[o]?.[0]??0,n[o]?.[1]??0],l=i.applyToPointStringified(...h),d+=` C${u} ${c} ${l}`;return s&&(m=[r[o-1]?.[0]??0,r[o-1]?.[1]??0],u=i.applyToPointStringified(...m),p=[a[0]?.[0]??0,a[0]?.[1]??0],c=i.applyToPointStringified(...p),h=[n[0]?.[0]??0,n[0]?.[1]??0],l=i.applyToPointStringified(...h),d+=` C${u} ${c} ${l}z`),d}class ek{constructor(t,e,s){this.maskElement=null,this.masksProperties=[],this.solidPath="",this.storedData=[],this._identityMat=new td,this.data=t,this.element=e,this.globalData=s,this.masksProperties=this.data.masksProperties??[];let{defs:i}=this.globalData,{length:r}=this.masksProperties;this.viewData=tu(r);let a=this.masksProperties,n=0,o=[],h=k(),l,p,c,m="clipPath",u="clip-path";for(let t=0;t<r;t++){let e;(a[t]?.mode!=="a"&&a[t]?.mode!=="n"||a[t]?.inv||a[t]?.o?.k!==100||a[t]?.o?.x)&&(m="mask",u="mask"),(a[t]?.mode==="s"||a[t]?.mode==="i")&&0===n?((l=tf("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",`${Number(this.element.comp?.data?.w)}`),l.setAttribute("height",`${Number(this.element.comp?.data?.h)}`),o.push(l)):l=null;let s=tf("path");if(a[t]?.mode==="n"){this.viewData[t]={elem:s,lastPath:"",op:tU.getProp(this.element,a[t]?.o,0,.01,this.element),prop:t7.getShapeProp(this.element,a[t],3)},i.appendChild(s);continue}if(n++,s.setAttribute("fill",a[t]?.mode==="s"?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),a[t]?.x?.k===0)p=null,c=null;else{m="mask",u="mask",c=tU.getProp(this.element,a[t]?.x,0,null,this.element),e=k();let r=tf("filter");r.id=e,(p=tf("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),r.appendChild(p),i.appendChild(r),s.setAttribute("stroke",a[t]?.mode==="s"?"#000000":"#ffffff")}if(this.storedData[t]={elem:s,expan:p,filterId:e,lastOperator:"",lastPath:"",lastRadius:0,x:c},a[t]?.mode==="i"){let t=tf("g");for(let e=0;e<o.length;e++)t.appendChild(o[e]);let e=tf("mask");e.setAttribute("mask-type","alpha"),e.id=`${h}_${n}`,e.appendChild(s),i.appendChild(e),t.setAttribute("mask",`url(${ty()}#${h}_${n})`),o.length=0,o.push(t)}else o.push(s);a[t]?.inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[t]={elem:s,invRect:l,lastPath:"",op:tU.getProp(this.element,a[t]?.o,0,.01,this.element),prop:t7.getShapeProp(this.element,a[t],3)};let r=this.viewData[t]?.prop?.v;!this.viewData[t]?.prop?.k&&r&&this.drawPath(a[t]??null,r,this.viewData[t])}this.maskElement=tf(m);for(let t=0;t<o.length;t++)this.maskElement.appendChild(o[t]);n>0&&(this.maskElement.id=h,this.element.maskedElement?.setAttribute(u,`url(${ty()}#${h})`),i.appendChild(this.maskElement)),this.viewData.length>0&&this.element.addRenderableComponent(this)}createLayerSolidPath(){let t="M0,0 ";return t+` h${this.globalData.compSize?.w||0} v${this.globalData.compSize?.h||0} h-${this.globalData.compSize?.w||0} v-${this.globalData.compSize?.h||0} `}destroy(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null}drawPath(t,e,s){let i=e._length,r=eE(e,i,e.c,this._identityMat);if(s.lastPath!==r){let i="";e.c&&(i=t?.inv?this.solidPath+r:r),s.elem.setAttribute("d",i),s.lastPath=r}}getMaskelement(){return this.maskElement}getMaskProperty(t){return this.viewData[t]?.prop??null}renderFrame(t){let e=this.element.finalTransform?.mat,{length:s}=this.masksProperties;for(let i=0;i<s;i++){let s=this.viewData[i]?.prop?.v;if(s&&(this.viewData[i]?.prop?._mdf||t)&&this.drawPath(this.masksProperties[i]??null,s,this.viewData[i]),(this.viewData[i]?.op._mdf||t)&&this.viewData[i]?.elem.setAttribute("fill-opacity",`${this.viewData[i]?.op.v??1}`),this.masksProperties[i]?.mode==="n")continue;this.viewData[i]?.invRect&&(this.element.finalTransform?.mProp._mdf||t)&&e&&this.viewData[i]?.invRect?.setAttribute("transform",e.getInverseMatrix().to2dCSS());let r=this.storedData[i];if(!r.x||!(r.x._mdf||t))continue;let a=r.expan;if(r.x.v<0){"erode"!==r.lastOperator&&(r.lastOperator="erode",r.elem.setAttribute("filter",`url(${ty()}#${r.filterId})`)),a?.setAttribute("radius",`${-r.x.v}`);continue}"dilate"!==r.lastOperator&&(r.lastOperator="dilate",r.elem.removeAttribute("filter")),r.elem.setAttribute("stroke-width",`${2*r.x.v}`)}}}let eC=function(){let t=tf("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},eP=function(t,e){let s=tf("filter");return s.id=t,e||(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s},eM="filter_result_",eA={};class eT{constructor(t){this.filters=[];let e="SourceGraphic",s=k(),i=eP(s,!0),r=0,a,{length:n}=t.data.ef??[];for(let s=0;s<n;s++){a=null;let{ty:n}=t.data.ef?.[s]??{ty:null},o=null!==n&&eA[n]?eA[n].effect:null;o&&n&&t.effectsManager&&(a=new o(i,t.effectsManager.effectElements[s],t,`${eM}${r}`,e),e=`${eM}${r}`,eA[n]?.countsAsEffect&&r++),a&&this.filters.push(a)}r&&(t.globalData?.defs.appendChild(i),t.layerElement?.setAttribute("filter",`url(${ty()}#${s})`)),this.filters.length>0&&t.addRenderableComponent(this)}getEffects(t){let e=[];for(let s=0;s<this.filters.length;s++)this.filters[s]?.type===t&&e.push(this.filters[s]);return e}renderFrame(t){for(let e=0;e<this.filters.length;e++)this.filters[e]?.renderFrame(t)}}class eD extends ew{createContainerElements(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.matteElement=tf("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;let t=null;if(this.data.td){this.matteMasks={};let e=tf("g");this.layerId&&(e.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.id=this.data.ln),this.data.cl&&this.layerElement.classList.add(this.data.cl),0===this.data.ty&&!this.data.hd){let e=tf("clipPath"),s=tf("path");s.setAttribute("d",`M0,0 L${this.data.w},0 L${this.data.w},${this.data.h} L0,${this.data.h}z`);let i=k();if(e.id=i,e.appendChild(s),this.globalData.defs.appendChild(e),this.checkMasks()){let e=tf("g");e.setAttribute("clip-path",`url(${ty()}#${i})`),e.appendChild(this.layerElement),this.transformedElement=e,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path",`url(${ty()}#${i})`)}0!==this.data.bm&&this.setBlendMode()}createRenderableComponents(){if(!this.data)throw Error(`${this.constructor.name}: layerData is not initialized`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not initialized`);this.maskManager=new ek(this.data,this,this.globalData),this.renderableEffectsManager=new eT(this),this.searchEffectTransforms()}destroyBaseElement(){this.layerElement=null,this.matteElement=null,this.maskManager?.destroy()}getBaseElement(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);return this.data.hd?null:this.baseElement??null}getMatte(t=1){let e,s,i,r;if(this.matteMasks=this.matteMasks??{},this.matteMasks[t])return this.matteMasks[t];let a=`${this.layerId}_${t}`;switch(t){case 1:case 3:{let n=tf("mask");if(n.id=a,n.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=tf("use")).setAttributeNS(g,"href",`#${this.layerId}`),n.appendChild(i),this.globalData?.defs.appendChild(n),t_.maskType||1!==t)break;n.setAttribute("mask-type","luminance"),s=eP(e=k()),this.globalData?.defs.appendChild(s),s.appendChild(eC()),(r=tf("g")).appendChild(i),n.appendChild(r),r.setAttribute("filter",`url(${ty()}#${e})`)}break;case 2:{let t=tf("mask");t.id=a,t.setAttribute("mask-type","alpha");let n=tf("g");t.appendChild(n),s=eP(e=k());let o=tf("feComponentTransfer");o.setAttribute("in","SourceGraphic"),s.appendChild(o);let h=tf("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),o.appendChild(h),this.globalData?.defs.appendChild(s);let l=tf("rect");l.width.baseVal.value=this.comp?.data?.w||0,l.height.baseVal.value=this.comp?.data?.h||0,l.x.baseVal.value=0,l.y.baseVal.value=0,l.setAttribute("fill","#ffffff"),l.setAttribute("opacity","0"),n.setAttribute("filter",`url(${ty()}#${e})`),n.appendChild(l),(i=tf("use")).setAttributeNS(g,"href",`#${this.layerId}`),n.appendChild(i),t_.maskType||(t.setAttribute("mask-type","luminance"),s.appendChild(eC()),r=tf("g"),n.appendChild(l),this.layerElement&&r.appendChild(this.layerElement),n.appendChild(r)),this.globalData?.defs.appendChild(t)}}return this.matteMasks[t]=a,this.matteMasks[t]}initRendererElement(){this.layerElement=tf("g")}renderElement(){if(!this.finalTransform)throw Error(`${this.constructor.name}: finalTransform is not implemented`);this.finalTransform._localMatMdf&&this.transformedElement?.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement?.setAttribute("opacity",`${this.finalTransform.localOpacity}`)}setMatte(t){this.matteElement&&this.matteElement.setAttribute("mask",`url(${ty()}#${t})`)}}class eI extends eD{constructor(t,e,s){super(),this.layers=[],t.refId&&(this.assetData=e.getAssetData(t.refId)),this.assetData?.sid&&(this.assetData=e.slotManager?.getProp(this.assetData)||null),this.initElement(t,e,s),this.sourceRect={height:Number(this.assetData?.h),left:0,top:0,width:Number(this.assetData?.w)}}createContent(){if(!this.assetData)return;let t=this.assetData.pr||this.globalData?.renderConfig?.imagePreserveAspectRatio||"",e=this.globalData?.imageLoader?.adoptSvgImage(this.assetData);if(e){this.innerElem=e,this.innerElem.setAttribute("width",`${this.assetData.w}px`),this.innerElem.setAttribute("height",`${this.assetData.h}px`),this.innerElem.setAttribute("preserveAspectRatio",t),this.layerElement?.appendChild(this.innerElem);return}let s="";this.globalData?.getAssetsPath&&(s=this.globalData.getAssetsPath(this.assetData)),this.innerElem=tf("image"),this.innerElem.setAttribute("width",`${this.assetData.w}px`),this.innerElem.setAttribute("height",`${this.assetData.h}px`),this.innerElem.setAttribute("preserveAspectRatio",t),this.innerElem.setAttributeNS(g,"href",s),this.layerElement?.appendChild(this.innerElem)}hide(){if(this.hidden||this.isInRange&&!this.isTransparent)return;let t=this.baseElement??this.layerElement;t&&(t.style.visibility="hidden"),this.hidden=!0}renderInnerContent(){}show(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.isInRange||!this.isTransparent){if(!this.data.hd){let t=this.baseElement??this.layerElement;if(!t)throw Error(`${this.constructor.name}: Neither baseElement or layerElement is implemented`);t.style.visibility="visible",t.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}}sourceRectAtTime(){return this.sourceRect}}class eF{constructor(){this.gr=tf("g"),this.it=[],this.prevViewData=[]}}let eL=new td,e$=new td;function eN(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderContetTransform is missing data");(s||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",`${e.transform.op.v}`),(s||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function eV(t,e,s){if(!e)throw Error("SVGElementsRenderer: Method renderFill is missing data");let i=e.style;e.c?.v&&(e.c._mdf||s)&&i.pElem.setAttribute("fill",z(e.c.v)),(e.o?._mdf||s)&&i.pElem.setAttribute("fill-opacity",`${e.o?.v}`)}function eR(t,e,s){let i,r;if(!e)throw Error("SVGElementsRenderer: Method renderGradient is missing data");let a=e.gf,n=e.g?._hasOpacity,o=e.s?.v??[0,0],h=e.e?.v??[0,0];if(e.o?._mdf||s){let s=t.ty===to.GradientFill?"fill-opacity":"stroke-opacity";e.style?.pElem.setAttribute(s,`${e.o?.v}`)}if(e.s?._mdf||s){let s=1===t.t?"x1":"cx",i="x1"===s?"y1":"cy";a?.setAttribute(s,`${o[0]}`),a?.setAttribute(i,`${o[1]}`),n&&!e.g?._collapsable&&(e.of?.setAttribute(s,`${o[0]}`),e.of?.setAttribute(i,`${o[1]}`))}if(e.g&&(e.g._cmdf||s)){i=e.cst;let t=e.g.c,{length:s}=i;for(let e=0;e<s;e++)(r=i[e]).setAttribute("offset",`${t[4*e]}%`),r.setAttribute("stop-color",`rgb(${t[4*e+1]},${t[4*e+2]},${t[4*e+3]})`)}if(n&&e.g&&(e.g._omdf||s)){let t=e.g.o;i=e.g._collapsable?e.cst:e.ost;for(let s=0;s<i.length;s++)r=i[s],e.g._collapsable||r.setAttribute("offset",`${t[2*s]}%`),r.setAttribute("stop-opacity",`${t[2*s+1]}`)}if(1===t.t)(e.e?._mdf||s)&&(a?.setAttribute("x2",`${h[0]}`),a?.setAttribute("y2",`${h[1]}`),n&&!e.g?._collapsable&&(e.of?.setAttribute("x2",`${h[0]}`),e.of?.setAttribute("y2",`${h[1]}`)));else{let t=0;if((e.s?._mdf||e.e?._mdf||s)&&(t=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),a?.setAttribute("r",`${t}`),n&&!e.g?._collapsable&&e.of?.setAttribute("r",`${t}`)),e.e?._mdf||e.h?._mdf||e.a?._mdf||s){t||(t=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)));let s=Math.atan2(h[1]-o[1],h[0]-o[0]),i=Number(e.h?.v);i>=1?i=.99:i<=-1&&(i=-.99);let r=t*i,l=Math.cos(s+Number(e.a?.v))*r+o[0],p=Math.sin(s+Number(e.a?.v))*r+o[1];a?.setAttribute("fx",`${l}`),a?.setAttribute("fy",`${p}`),n&&!e.g?._collapsable&&(e.of?.setAttribute("fx",`${l}`),e.of?.setAttribute("fy",`${p}`))}}}function eO(t,e,s){eR(t,e,s),eG(t,e,s)}function ez(t){}function eB(t,e,s){let i,r,a,n,o,h,l;if(!e)throw Error("SVGElementsRenderer: Method renderPath is missing data");let{caches:p,lvl:c,sh:m,styles:u,transformers:d}=e,{length:f}=u;for(let e=0;e<f;e++){r=m?._mdf||!!s;let f=u[e],{_mdf:g,lvl:y}=f;if(y<c){for(o=e$.reset(),h=c-y,l=d.length-1;!r&&h>0;)r=d[l]?.mProps._mdf||r,h--,l--;if(r)for(h=c-y,l=d.length-1;h>0;)o.multiply(d[l]?.mProps.v),h--,l--}else o=eL;n=m?.paths;let v=n?._length||0;if(r){i="";for(let t=0;t<v;t++)a=n?.shapes[t],a?._length&&(i+=eE(a,a._length,a.c,o));p[e]=i}else i=p[e];f.d+=!0===t.hd?"":i,f._mdf=r||g}}function eG(t,e,s){if(!e?.style)throw Error("SVGElementsRenderer: Method renderStroke is missing data");let{c:i,d:r,o:a,style:{msElem:n,pElem:o},w:h}=e;r&&(r._mdf||s)&&r.dashStr&&(o.setAttribute("stroke-dasharray",r.dashStr),o.setAttribute("stroke-dashoffset",`${r.dashoffset[0]}`)),i&&(i._mdf||s)&&o.setAttribute("stroke",z(i.v)),(a?._mdf||s)&&o.setAttribute("stroke-opacity",`${a?.v??1}`),(h?._mdf||s)&&(o.setAttribute("stroke-width",`${h?.v||0}`),n?.setAttribute("stroke-width",`${h?.v||0}`))}class eq extends tz{constructor(t,e,s){super(),this.it=[],this.prevViewData=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=tU.getProp(t,e.o,0,.01,this),this.c=tU.getProp(t,e.c,1,255,this),this.style=s}}class ej extends tz{constructor(t,e,s){super(),this._cmdf=!1,this._omdf=!1,this.data=e,this.c=tm(te.Uint8c,4*e.p);let i=e.k.k?.[0]?.s?(e.k.k[0]?.s.length??0)-4*e.p:e.k.k.length-4*e.p;this.o=tm(te.Float32,i),this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(s),this.prop=tU.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}checkCollapsable(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k?.[0]?.s){let t=0,e=this.data.k.k.length;for(;t<e;){if(!this.comparePoints(this.data.k.k[t]?.s??[],this.data.p))return!1;t++}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0}comparePoints(t,e){let s=0,i=this.o.length/2;for(;s<i;){if(Math.abs((t[4*s]??0)-(t[4*e+2*s]??0))>.01)return!1;s++}return!0}getValue(t){let e,s;if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,!this.prop._mdf&&!t||!$(this.prop.v))return 0;let i=4*this.data.p;for(let r=0;r<i;r++)e=r%4==0?100:255,s=Math.round((this.prop.v[r]??0)*e),this.c[r]!==s&&(this.c[r]=s,this._cmdf=!t);if(this.o.length>0)for(let e=4*this.data.p;e<this.prop.v.length;e++)s=e%2==0?Math.round((this.prop.v[e]??0)*100):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);return this._mdf=!t,0}}class eH extends tz{constructor(t,e,s){super(),this.cst=[],this.it=[],this.ost=[],this.prevViewData=[],this.stops=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,s)}initGradientData(t,e,s){this.o=tU.getProp(t,e.o,0,.01,this),this.s=tU.getProp(t,e.s,1,null,this),this.e=tU.getProp(t,e.e,1,null,this),this.h=tU.getProp(t,e.h??{k:0},0,.01,this),this.a=tU.getProp(t,e.a??{k:0},0,f,this),this.g=new ej(t,e.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,e),this.setGradientOpacity(e,s),this._isAnimated=!!this._isAnimated}setGradientData(t,e){let s,i=k(),r=tf(1===e.t?"linearGradient":"radialGradient");r.id=i,r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");let a=[],n=4*(e.g?.p||1);for(let t=0;t<n;t+=4)s=tf("stop"),r.appendChild(s),a.push(s);t.setAttribute(e.ty===to.GradientFill?"fill":"stroke",`url(${ty()}#${i})`),this.gf=r,this.cst=a}setGradientOpacity(t,e){let s;if(!this.g?._hasOpacity||this.g._collapsable)return;let i=tf("mask"),r=tf("path");i.appendChild(r);let a=k(),n=k();i.id=n;let o=tf(1===t.t?"linearGradient":"radialGradient");o.id=a,o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");let h=(t.g?.k.k?.[0]?.s?(t.g?.k.k)[0]?.s.length:t.g?.k.k.length)||0,{stops:l}=this;for(let e=4*(t.g?.p||1);e<h;e+=2)(s=tf("stop")).setAttribute("stop-color","rgb(255,255,255)"),o.appendChild(s),l.push(s);r.setAttribute(t.ty===to.GradientFill?"fill":"stroke",`url(${ty()}#${a})`),t.ty===to.GradientStroke&&(r.setAttribute("stroke-linecap",tp[t.lc||2]),r.setAttribute("stroke-linejoin",tc[t.lj||2]),1===t.lj&&r.setAttribute("stroke-miterlimit",`${Number(t.ml)}`)),this.of=o,this.ms=i,this.ost=l,this.maskId=n,e.msElem=r}}class eW extends tz{constructor(t,e,s,i){let r;super(),this.dashoffset=tm(te.Float32,1),this.dashStr="",this.frameId=-1,this.k=!1,this.elem=t,this.dataProps=tu(e.length),this.renderer=s,this.dashArray=tm(te.Float32,e.length>0?e.length-1:0),this.initDynamicPropertyContainer(i);let a=e.length||0;for(let s=0;s<a;s++)r=tU.getProp(t,e[s]?.v,0,0,this),this.k=r.k||this.k,this.dataProps[s]={n:e[s]?.n??"d",p:r};this.k||this.getValue(!0),this._isAnimated=this.k}getValue(t){if(this.elem.globalData?.frameId===this.frameId&&!t||(this.elem.globalData?.frameId&&(this.frameId=this.elem.globalData.frameId),this.iterateDynamicProperties(),this._mdf=this._mdf||!!t,!this._mdf))return 0;let e=this.dataProps.length;this.renderer===tn.SVG&&(this.dashStr="");for(let t=0,s=0;t<e;t++){if(this.dataProps[t]?.n==="o"){this.dashoffset[0]=this.dataProps[t]?.p.v;continue}if(this.renderer===tn.SVG){this.dashStr+=` ${this.dataProps[t]?.p.v}`;continue}this.dashArray[s]=this.dataProps[t]?.p.v,s++}return 0}}class eJ extends eH{constructor(t,e,s){super(t,e,s),this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=tU.getProp(t,e.w,0,null,this),this.d=new eW(t,e.d||[],tn.SVG,this),this.initGradientData(t,e,s),this._isAnimated=!!this._isAnimated}}class eU extends tz{constructor(t,e,s){super(),this.it=[],this.prevViewData=[],this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=s}}class eY{setAsAnimated(){this._isAnimated=!0}constructor(){this.caches=[],this.it=[],this.lStr="",this.lvl=0,this.pathsData=[],this.prevViewData=[],this.sh=null,this.styledShapes=[],this.styles=[],this.tr=[],this.transformers=[],this.trNodes=[]}}class eX extends eY{constructor(t,e,s){super(),this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=s,this.lvl=e,this._isAnimated=!!s.k;let i=0;for(;i<t.length;){if((t[i]?.mProps.dynamicProperties.length??0)>0){this._isAnimated=!0;break}i++}}}class eK extends eq{constructor(t,e,s){super(t,e,s),this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=tU.getProp(t,e.o,0,.01,this),this.w=tU.getProp(t,e.w,0,null,this),this.d=new eW(t,e.d||[],tn.SVG,this),this.c=tU.getProp(t,e.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}}class eZ{constructor(t,e){this._mdf=!1,this.d="",this.msElem=null,this.pElem=tf("path"),this.data=t,this.type=t.ty,this.lvl=e,this.closed=!0===t.hd}reset(){this.d="",this._mdf=!1}}class eQ{constructor(t,e,s){this.elements=[],this.transform={container:s,mProps:t,op:e},this._isAnimated=this.transform.mProps.dynamicProperties.length>0||this.transform.op.effectsSequence.length>0}}class e0{constructor(t,e){this.elem=t,this.pos=e}}class e1 extends ew{addProcessedElement(t,e){let{processedElements:s}=this,i=s.length;for(;i;){let r=s[--i];if(r.elem===t){r.pos=e;return}}s.push(new e0(t,e))}addShapeToModifiers(t){for(let e=0;e<this.shapeModifiers.length;e++)this.shapeModifiers[e]?.addShape(t)}isShapeInAnimatedModifiers(t){let e=0;for(;e<this.shapeModifiers.length;){if(this.shapeModifiers[e]?.isAnimatedWithShape(t))return!0;e++}return!1}prepareFrame(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}renderModifiers(){if(0!==this.shapeModifiers.length){for(let t=0;t<this.shapes.length;t++)this.shapes[t]?.sh?.reset();for(let t=this.shapeModifiers.length-1;t>=0&&!this.shapeModifiers[t]?.processShapes(!!this._isFirstFrame);t--);}}searchProcessedElement(t){let{processedElements:e}=this,{length:s}=e,i=0;for(;i<s;){if(e[i]?.elem===t)return e[i]?.pos??0;i++}return 0}constructor(...t){super(...t),this.processedElements=[],this.shapeModifiers=[],this.shapes=[]}}let e2=(t,e,s)=>{let i=e.prototype,r=t.prototype;for(let e of s){if(Object.hasOwn(r,e))throw Error(`mixin: ${t.name}.${e} is already defined on the class`);r[e]=i[e]}},e3=(t,e)=>{let s,{length:i}=t;for(let r=0;r<i;r++){let i=Object.getOwnPropertyNames(s=t[r]?.prototype),{length:a}=i;for(let t=0;t<a;t++)"constructor"!==i[t]&&Object.hasOwn(s,i[t]??"")&&(e.prototype[i[t]??""]=s[i[t]??""])}},e5={};function e4(t,e,s){if(!e5[t])throw Error("Invalid modifier");return new e5[t]}function e6(t,e){e5[t]=e5[t]??e}class e8 extends e1{constructor(t,e,s){super(),this.animatedContents=[],this.identityMatrix=new td,this.prevViewData=[],this.stylesList=[],this.shapes=[],this.shapesData=t.shapes,this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.initElement(t,e,s)}addToAnimatedContents(t,e){let s=0;for(;s<this.animatedContents.length;){if(this.animatedContents[s]?.element===e)return;s++}this.animatedContents.push({data:t,element:e,fn:function(t){switch(t.ty){case to.Fill:return eV;case to.GradientFill:return eR;case to.GradientStroke:return eO;case to.Stroke:return eG;case to.Path:case to.Ellipse:case to.Rectangle:case to.PolygonStar:return eB;case to.Transform:return eN;case to.NoStyle:return ez;default:return null}}(t)})}buildExpressionInterface(){}createContent(){if(!this.layerElement)throw Error(`${this.constructor.name}: Could not access Layer`);this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()}createGroupElement(t){let e=new eF;return t.ln&&(e.gr.id=t.ln),t.cl&&e.gr.classList.add(t.cl),t.bm&&(e.gr.style.mixBlendMode=ed(t.bm)),e}createShapeElement(t,e,s){let i=4;switch(t.ty){case to.Rectangle:i=5;break;case to.Ellipse:i=6;break;case to.PolygonStar:i=7}let r=new eX(e,s,t7.getShapeProp(this,t,i));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r}createStyleElement(t,e){let s=null,i=new eZ(t,e),r=i.pElem;switch(t.ty){case to.Stroke:s=new eK(this,t,i);break;case to.Fill:s=new eq(this,t,i);break;case to.GradientFill:case to.GradientStroke:(s=new(t.ty===to.GradientFill?eH:eJ)(this,t,i)).gf&&this.globalData?.defs.appendChild(s.gf),s.maskId&&s.ms&&s.of&&(this.globalData?.defs.appendChild(s.ms),this.globalData?.defs.appendChild(s.of),r.setAttribute("mask",`url(${ty()}#${s.maskId})`));break;case to.NoStyle:s=new eU(this,t,i)}return(t.ty===to.Stroke||t.ty===to.GradientStroke)&&(r.setAttribute("stroke-linecap",tp[t.lc||2]),r.setAttribute("stroke-linejoin",tc[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&t.ml&&r.setAttribute("stroke-miterlimit",`${t.ml}`)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&(r.id=t.ln),t.cl&&r.classList.add(t.cl),t.bm&&(r.style.mixBlendMode=ed(t.bm)),this.stylesList.push(i),s&&this.addToAnimatedContents(t,s),s}createTransformElement(t,e){let s=ey.getTransformProperty(this,t,this);if(!s.o)throw Error(`${this.constructor.name}: Missing required data in TransformProperty`);let i=new eQ(s,s.o,e);return this.addToAnimatedContents(t,i),i}destroy(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null}filterUniqueShapes(){let t,e,s=[];for(let i=0;i<this.stylesList.length;i++){t=this.stylesList[i],e=!1,s.length=0;for(let i=0;i<this.shapes.length;i++)this.shapes[i].styles.includes(t)&&(s.push(this.shapes[i]),e=this.shapes[i]?._isAnimated||e);s.length>1&&e&&this.setShapesAsAnimated(s)}}initSecondaryElement(){}reloadShapes(){if(!this.layerElement)throw Error(`${this.constructor.name}: Could not access layerElement`);this._isFirstFrame=!0;for(let t=0;t<this.itemsData.length;t++)this.prevViewData[t]=this.itemsData[t];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes();for(let t=0;t<this.dynamicProperties.length;t++)this.dynamicProperties[t]?.getValue();this.renderModifiers()}renderInnerContent(){this.renderModifiers();let{length:t}=this.stylesList;for(let e=0;e<t;e++)this.stylesList[e]?.reset();this.renderShape();for(let e=0;e<t;e++)(this.stylesList[e]?._mdf||this._isFirstFrame)&&(this.stylesList[e]?.msElem&&(this.stylesList[e]?.msElem?.setAttribute("d",this.stylesList[e]?.d??""),this.stylesList[e].d=`M0 0${this.stylesList[e]?.d??""}`),this.stylesList[e]?.pElem.setAttribute("d",this.stylesList[e]?.d||"M0 0"))}renderShape(){for(let t=0;t<this.animatedContents.length;t++)(this._isFirstFrame||this.animatedContents[t]?.element._isAnimated)&&this.animatedContents[t]?.data!==!0&&this.animatedContents[t]?.fn&&this.animatedContents[t]?.fn?.(this.animatedContents[t]?.data,this.animatedContents[t]?.element,this._isFirstFrame)}searchShapes(t,e,s,i,r,a,n){let o,h,l=n,p=[...a],c=[],m=[];for(let a=t.length-1;a>=0;a--){let n=this.searchProcessedElement(t[a]);switch(n?e[a]=s[n-1]:t[a]._shouldRender=l,t[a]?.ty){case to.Fill:case to.Stroke:case to.GradientFill:case to.GradientStroke:case to.NoStyle:if(n){let{style:t}=e[a]??{style:null};t&&(t.closed=!1)}else e[a]=this.createStyleElement(t[a],r);if(t[a]?._shouldRender&&e[a]?.style?.pElem.parentNode!==i){let{pElem:t}=e[a]?.style??{pElem:null};t&&i.appendChild(t)}c.push(e[a]?.style);break;case to.Group:if(n){let{length:t}=e[a]?.it??[];for(let s=0;s<t;s++){let{it:t,prevViewData:i}=e[a]??{it:null,prevViewData:null};i&&t&&(i[s]=t[s])}}else e[a]=this.createGroupElement(t[a]);if(this.searchShapes(t[a]?.it,e[a]?.it??[],e[a]?.prevViewData??[],e[a]?.gr,r+1,p,l),t[a]?._shouldRender&&e[a]?.gr?.parentNode!==i){let{gr:t}=e[a]??{};t&&i.appendChild(t)}break;case to.Transform:n||(e[a]=this.createTransformElement(t[a],i)),(o=e[a]?.transform)&&p.push(o);break;case to.Path:case to.Rectangle:case to.Ellipse:case to.PolygonStar:n||(e[a]=this.createShapeElement(t[a],p,r)),this.setElementStyles(e[a]);break;case to.Trim:case to.RoundedCorners:case to.Unknown:case to.PuckerBloat:case to.ZigZag:case to.OffsetPath:n?(h=e[a]).closed=!1:((h=e4(t[a]?.ty??to.Unknown)).init(this,t[a]),e[a]=h,this.shapeModifiers.push(h)),m.push(h);break;case to.Repeater:if(n){(h=e[a]).closed=!0,m.push(h);break}h=e4(t[a]?.ty??to.Unknown),e[a]=h,h.init(this,t,a,e),this.shapeModifiers.push(h),l=!1,m.push(h)}this.addProcessedElement(t[a],a+1)}for(let t=0;t<c.length;t++){let e=c[t];e&&(e.closed=!0)}for(let t=0;t<m.length;t++)m[t].closed=!0}setElementStyles(t){for(let e=0;e<this.stylesList.length;e++)this.stylesList[e]?.closed||t.styles.push(this.stylesList[e])}setShapesAsAnimated(t){for(let e=0;e<t.length;e++)t[e]?.setAsAnimated()}}e2(e8,eD,["createContainerElements","createRenderableComponents","destroyBaseElement","getBaseElement","getMatte","initRendererElement","renderElement","setMatte"]);class e9{constructor(t,e,s,i,r,a){this.o=t,this.sw=e,this.sc=s,this.fc=i,this.m=r,this.p=a,this._mdf={fc:!!i,m:!0,o:!0,p:!0,sc:!!s,sw:!!e}}update(t,e,s,i,r,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;let n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,n=!0),a&&a.length>0&&(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,this._mdf.p=!0,n=!0),n}}class e7 extends tG{constructor(t,e){super(),this._currentTextLength=-1,this.finalE=0,this.finalS=0,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.initDynamicPropertyContainer(t),this.s=tU.getProp(t,e.s??{a:0,k:0},0,0,this),"e"in e?this.e=tU.getProp(t,e.e,0,0,this):this.e={v:100},this.o=tU.getProp(t,e.o??{a:0,k:0},0,0,this),this.xe=tU.getProp(t,e.xe??{a:0,k:0},0,0,this),this.ne=tU.getProp(t,e.ne??{a:0,k:0},0,0,this),this.sm=tU.getProp(t,e.sm??{a:0,k:100},0,0,this),this.a=tU.getProp(t,e.a,0,.01,this),0===this.dynamicProperties.length&&this.getValue()}getMult(t,e){this._currentTextLength!==this.elem.textProperty?.currentData.l.length&&this.getValue();let s=this._handleShapeType(t);if(100!==this.sm.v){let t=.01*this.sm.v;0===t&&(t=1e-8);let e=.5-.5*t;s<e?s=0:(s=(s-e)/t)>1&&(s=1)}return s*this.a.v}getTextSelectorProp(t,e,s){throw Error("Method not implemented")}getValue(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty?.currentData.l.length||0,t&&2===this.data.r&&this.e.v&&(this.e.v=this._currentTextLength);let e=2===this.data.r?1:100/this.data.totalChars,s=this.o.v/e,i=Number(this.s?.v)/e+s,r=this.e.v/e+s;if(i>r){let t=i;i=r,r=t}return this.finalS=i,this.finalE=r,0}_getCoordinates(){let t=0,e=0,s=1,i=1;return this.ne.v>0?t=this.ne.v/100:e=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:i=1+this.xe.v/100,[t,e,s,i]}_handleShapeType(t){let e=tR(...this._getCoordinates()).get,s=0,i=this.finalS,r=this.finalE;switch(this.data.sh){case 2:if(r===i){s=+(t>=r);break}s=Math.max(0,Math.min(.5/(r-i)+(t-i)/(r-i),1));break;case 3:if(r===i){s=t>=r?0:1;break}s=1-Math.max(0,Math.min(.5/(r-i)+(t-i)/(r-i),1));break;case 4:if(r===i)break;if((s=Math.max(0,Math.min(.5/(r-i)+(t-i)/(r-i),1)))<.5){s*=2;break}s=1-2*(s-.5);break;case 5:{if(r===i)break;let e=r-i,a=-e/2+(t=Math.min(Math.max(0,t+.5-i),r-i)),n=e/2;s=Math.sqrt(1-a*a/(n*n));break}case 6:if(r===i)break;s=(1+Math.cos(Math.PI+2*Math.PI*(t=Math.min(Math.max(0,t+.5-i),r-i))/(r-i)))/2;break;default:if(t<Math.floor(i))break;if(t-i<0){s=Math.max(0,Math.min(Math.min(r,1)-(i-t),1));break}s=Math.max(0,Math.min(r-t,1))}return e(s)}}class st{constructor(t,e,s){let i={propType:!1},r=e?.a;this.a={a:r?.a?tU.getProp(t,r.a,1,0,s):i,fb:r?.fb?tU.getProp(t,r.fb,0,.01,s):i,fc:r?.fc?tU.getProp(t,r.fc,1,0,s):i,fh:r?.fh?tU.getProp(t,r.fh,0,0,s):i,fs:r?.fs?tU.getProp(t,r.fs,0,.01,s):i,o:r?.o?tU.getProp(t,r.o,0,.01,s):i,p:r?.p?tU.getProp(t,r.p,1,0,s):i,r:r?.r?tU.getProp(t,r.r,0,f,s):i,rx:r?.rx?tU.getProp(t,r.rx,0,f,s):i,ry:r?.ry?tU.getProp(t,r.ry,0,f,s):i,s:r?.s?tU.getProp(t,r.s,1,.01,s):i,sa:r?.sa?tU.getProp(t,r.sa,0,f,s):i,sc:r?.sc?tU.getProp(t,r.sc,1,0,s):i,sk:r?.sk?tU.getProp(t,r.sk,0,f,s):i,sw:r?.sw?tU.getProp(t,r.sw,0,0,s):i,t:r?.t?tU.getProp(t,r.t,0,0,s):i},this.s=new e7(t,e?.s),this.s.t=e?.s?.t}}let se=(t,e,s)=>{let i=Math.max(t,e,s),r=Math.min(t,e,s),a=i-r,n=0;switch(i){case r:break;case t:n=(e-s+6*(e<s)*a)/(6*a);break;case e:n=(s-t+2*a)/(6*a);break;case s:n=(t-e+4*a)/(6*a)}return[n,0===i?0:a/i,i/255]},ss=(t,e,s)=>{let i=0,r=0,a=0,n=Math.floor(6*t),o=6*t-n,h=s*(1-e),l=s*(1-o*e),p=s*(1-(1-o)*e);switch(n%6){case 0:i=s,r=p,a=h;break;case 1:i=l,r=s,a=h;break;case 2:i=h,r=s,a=p;break;case 3:i=h,r=l,a=s;break;case 4:i=p,r=h,a=s;break;case 5:i=s,r=h,a=l}return[i,r,a]},si=(t,e)=>{let s=se(255*t[0],255*t[1],255*t[2]);return s[2]+=e,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),ss(s[0],s[1],s[2])},sr=(t,e)=>{let s=se(255*t[0],255*t[1],255*t[2]);return s[0]+=e/360,s[0]>1?s[0]-=1:s[0]<0&&s[0]++,ss(s[0],s[1],s[2])},sa=(t,e)=>{let s=se(255*t[0],255*t[1],255*t[2]);return s[1]+=e,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),ss(s[0],s[1],s[2])};class sn extends tz{constructor(t,e,s){super(),this._frameId=-1,this._isFirstFrame=!0,this.defaultPropsArray=[],this.lettersChangedFlag=!1,this.renderedLetters=[],this._hasMaskedPath=!1,this._moreOptions={alignment:{}},this._pathData={},this.mHelper=new td,this._textData=t,this._renderType=e,this._elem=s,this._animatorsData=tu(Number(this._textData.a?.length)),this.initDynamicPropertyContainer(s)}getMeasures(t,e){try{if(this.lettersChangedFlag=!!e,!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m?._mdf))return;this._isFirstFrame=!1;let s=this._moreOptions.alignment.v,i=this._animatorsData,r=this._textData,a=this.mHelper,n=this._renderType,o=this.renderedLetters.length,h,l,p,c,m=t.l,u,d=0,f,g=0,y,v=0,b=0,_,x=null,w=[],S=0,E=0,k,C,P=null;if(this._hasMaskedPath&&this._pathData.m){if(P=this._pathData.m,!this._pathData.n||this._pathData._mdf){let t=P.v;if(t){let e;for(this._pathData.r?.v&&(t=t.toReversed()),u={segments:[],tLength:0},c=t._length-1,p=0;p<c;p++)L(t)||(e=tP(t.v[p],t.v[p+1],[(t.o[p]?.[0]??0)-(t.v[p]?.[0]??0),(t.o[p]?.[1]??0)-(t.v[p]?.[1]??0)],[(t.i[p+1]?.[0]??0)-(t.v[p+1]?.[0]??0),(t.i[p+1]?.[1]??0)-(t.v[p+1]?.[1]??0)]),u.tLength+=e.segmentLength,u.segments.push(e),E+=e.segmentLength);p=c,P.v?.c&&!L(t)&&(e=tP(t.v[p],t.v[0],[(t.o[p]?.[0]??0)-(t.v[p]?.[0]??0),(t.o[p]?.[1]??0)-(t.v[p]?.[1]??0)],[(t.i[0]?.[0]??0)-(t.v[0]?.[0]??0),(t.i[0]?.[1]??0)-(t.v[0]?.[1]??0)]),u.tLength+=e.segmentLength,u.segments.push(e),E+=e.segmentLength),this._pathData.pi=u}}if(u=this._pathData.pi,d=this._pathData.f?.v??0,v=1,w=u?.segments??[],d>0&&P.v?.c)for((u?.tLength??0<Math.abs(d))&&(d=-Math.abs(d)%(u?.tLength??0)),b=w.length-1,v=(x=w[b]?.points??[]).length-1;d<0;)d+=x[v]?.partialLength??0,(v-=1)<0&&(b-=1,v=(x=w[b]?.points??[]).length-1);_=(x=w[b]?.points??[])[v-1],S=(f=x[v]).partialLength}c=m.length||0,h=0,l=0;let M=1.2*(t.finalSize||0)*.714,A=!0,T,D,I,F,$=i.length,N,V=-1,R,O=0,B=0,G=d,q=b,j=v,H=-1,W,J=[0,0,0],U=0,Y=[0,0,0],X,K,Z,Q,tt="",te=this.defaultPropsArray,ts;if(2===t.j||1===t.j){let e=0,s=0,a=2===t.j?-.5:-1,n=0,o=!0;for(p=0;p<c;p++){if(m[p]?.n){for(e&&(e+=s);n<p;)(m[n]??{}).animatorJustifyOffset=e,n++;e=0,o=!0;continue}for(I=0;I<$;I++){if(T=i[I]?.a??{},!T.t?.propType)continue;let{v:n}=T.t;"number"==typeof n&&(o&&2===t.j&&(s+=n*a),D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars),void 0!==N&&(L(N)?e+=n*(N[0]??1)*a:e+=n*N*a))}o=!1}for(e&&(e+=s);n<p;)m[n].animatorJustifyOffset=e,n++}for(p=0;p<c;p++){if(a.reset(),W=1,m[p]?.n)h=0,l+=t.yOffset||0,l+=+!!A,d=G,A=!1,this._hasMaskedPath&&(b=q||0,v=j||0,_=(x=w[b]?.points??[])[v-1],S=(f=x[v]).partialLength,g=0),tt="",Q="",K="",ts="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(H!==m[p]?.line){switch(t.j){case 1:d+=E-(t.lineWidths[m[p]?.line??0]??0);break;case 2:d+=(E-(t.lineWidths[m[p]?.line??0]??0))/2}H=m[p]?.line||0}V!==m[p]?.ind&&(m[V]&&(d+=Number(m[V]?.extra)),d+=(m[p]?.an||0)/2,V=m[p]?.ind||0),d+=s[0]*(m[p]?.an||0)*.005;let e=0;for(I=0;I<$;I++){if(T=i[I]?.a,T?.p.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars)))continue;L(T.p.v)&&(L(N)?e+=T.p.v[0]*(N[0]??1):e+=T.p.v[0]*N)}if(T?.a.propType){if((D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))&&L(T.a.v)){if(L(N)){e+=(T.a.v[0]??0)*(N[0]??1);continue}e+=(T.a.v[0]??0)*N}}}for(y=!0,this._pathData.a?.v&&(d=.5*(m[0]?.an||0)+(E-Number(this._pathData.f?.v)-.5*(m[0]?.an||0)-(m[m.length-1]?.an??0)*.5)*V/(c-1)+Number(this._pathData.f?.v));y;)g+S>=d+e||!x?(k=(d+e-g)/(f?.partialLength||0),O=Number(_?.point[0])+(Number(f?.point[0])-Number(_?.point[0]))*k,B=Number(_?.point[1])+(Number(f?.point[1])-Number(_?.point[1]))*k,a.translate(-s[0]*(m[p]?.an??0)*.005,-(.01*(s[1]*M))),y=!1):x.length>0&&(g+=Number(f?.partialLength),++v>=x.length&&(v=0,w[++b]?x=w[b]?.points??[]:P?.v?.c?(b=0,x=w[b]?.points??[]):(g-=Number(f?.partialLength),x=null)),x&&(_=f,S=(f=x[v]).partialLength));R=(m[p]?.an??0)/2-(m[p]?.add??0),a.translate(-R,0,0)}else R=(m[p]?.an??0)/2-(m[p]?.add??0),a.translate(-R,0,0),a.translate(-s[0]*(m[p]?.an??0)*.005,-s[1]*M*.01,0);for(I=0;I<$;I++)if(T=i[I]?.a??{},T.t?.propType&&(D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars),0!==h||0!==t.j)){if(this._hasMaskedPath){L(N)?d+=Number(T.t.v)*(N[0]??1):d+=Number(T.t.v)*Number(N);continue}if(L(N)){h+=Number(T.t.v)*(N[0]??1);continue}h+=Number(T.t.v)*Number(N)}for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(J=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Y=[Number(t.fc[0]),Number(t.fc[1]),Number(t.fc[2])]),I=0;I<$;I++)if(T=i[I]?.a??{},T.a?.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))||!L(T.a.v))continue;if(L(N)){a.translate(-(T.a.v[0]??0)*(N[0]??1),-(T.a.v[1]??0)*(N[1]??1),(T.a.v[2]??0)*(N[2]??1));continue}a.translate(-(T.a.v[0]??0)*N,-(T.a.v[1]??0)*N,(T.a.v[2]??0)*N)}for(I=0;I<$;I++)if(T=i[I]?.a??{},T.s?.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))||!L(T.s.v))continue;if(L(N)){a.scale(1+((T.s.v[0]??0)-1)*(N[0]??1),1+((T.s.v[1]??0)-1)*(N[1]??1),1);continue}a.scale(1+((T.s.v[0]??0)-1)*N,1+((T.s.v[1]??0)-1)*N,1)}for(I=0;I<$;I++)if(T=i[I]?.a??{},D=i[I]?.s,N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars)){if(T.sk?.propType&&(L(N)?a.skewFromAxis(-Number(T.sk.v)*(N[0]??1),Number(T.sa?.v)*(N[1]??1)):a.skewFromAxis(-Number(T.sk.v)*N,Number(T.sa?.v)*N)),T.r?.propType&&(L(N)?a.rotateZ(-Number(T.r.v)*(N[2]??1)):a.rotateZ(-Number(T.r.v)*N)),T.ry?.propType&&(L(N)?a.rotateY(Number(T.ry.v)*(N[1]??1)):a.rotateY(Number(T.ry.v)*N)),T.rx?.propType&&(L(N)?a.rotateX(Number(T.rx.v)*(N[0]??1)):a.rotateX(Number(T.rx.v)*N)),T.o?.propType&&(L(N)?W+=(Number(T.o.v)*(N[0]??1)-W)*(N[0]??1):W+=(Number(T.o.v)*N-W)*N),t.strokeWidthAnim&&T.sw?.propType&&(L(N)?U+=Number(T.sw.v)*(N[0]??1):U+=Number(T.sw.v)*N),t.strokeColorAnim&&T.sc?.propType&&L(T.sc.v))for(X=0;X<3;X++)L(N)?J[X]+=((T.sc.v[X]??0)-(J[X]??0))*(N[0]??1):J[X]+=((T.sc.v[X]??0)-(J[X]??0))*N;if(t.fillColorAnim&&t.fc){if(T.fc?.propType)for(X=0;X<3;X++)L(T.fc.v)&&(L(N)?Y[X]+=((T.fc.v[X]??0)-(Y[X]??0))*(N[0]??1):Y[X]+=((T.fc.v[X]??0)-(Y[X]??0))*N);T.fh?.propType&&(Y=L(N)?sr(Y,Number(T.fh.v)*(N[0]??1)):sr(Y,Number(T.fh.v)*N)),T.fs?.propType&&(Y=L(N)?sa(Y,Number(T.fs.v)*(N[0]??1)):sa(Y,Number(T.fs.v)*N)),T.fb?.propType&&(Y=L(N)?si(Y,Number(T.fb.v)*(N[0]??1)):si(Y,Number(T.fb.v)*N))}}for(I=0;I<$;I++)if(T=i[I]?.a??{},T.p?.propType){if(D=i[I]?.s,!(N=D?.getMult(m[p]?.anIndexes[I],r.a?.[I]?.s?.totalChars))||!L(T.p.v))continue;this._hasMaskedPath?L(N)?a.translate(0,T.p.v[1]*N[0],-T.p.v[2]*N[1]):a.translate(0,T.p.v[1]*N,-T.p.v[2]*N):L(N)?a.translate(T.p.v[0]*N[0],T.p.v[1]*N[1],-T.p.v[2]*N[2]):a.translate(T.p.v[0]*N,T.p.v[1]*N,-T.p.v[2]*N)}if(t.strokeWidthAnim&&(K=U<0?0:U),t.strokeColorAnim&&(Z=z(J)),t.fillColorAnim&&t.fc&&(Q=z(Y)),this._hasMaskedPath){if(a.translate(0,-Number(t.ls)),a.translate(0,s[1]*M*.01+l,0),this._pathData.p?.v){C=(Number(f?.point[1])-Number(_?.point[1]))/(Number(f?.point[0])-Number(_?.point[0]));let t=180*Math.atan(C)/Math.PI;Number(f?.point[0])<Number(_?.point[0])&&(t+=180),a.rotate(-t*Math.PI/180)}a.translate(O,B,0),d-=s[0]*(m[p]?.an??0)*.005,m[p+1]&&V!==m[p+1]?.ind&&(d+=(m[p]?.an??0)/2,d+=.001*t.tr*Number(t.finalSize))}else{switch(a.translate(h,l,0),t.ps&&a.translate(t.ps[0],t.ps[1]+Number(t.ascent),0),t.j){case 1:a.translate((m[p]?.animatorJustifyOffset??0)+Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[m[p]?.line??0]),0,0);break;case 2:a.translate((m[p]?.animatorJustifyOffset??0)+Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[m[p]?.line??0])/2,0,0)}a.translate(0,-Number(t.ls)),a.translate(R,0,0),a.translate(s[0]*m[p]?.an*.005,s[1]*M*.01,0),h+=(m[p]?.l??0)+.001*t.tr*Number(t.finalSize)}n===tn.SVG?tt=a.to2dCSS():te=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ts=W}if(o<=p){F=new e9(Number(ts),Number(K),Z,Q,tt,te),this.renderedLetters.push(F),o++,this.lettersChangedFlag=!0;continue}F=this.renderedLetters[p],this.lettersChangedFlag=F.update(Number(ts),Number(K),Z,Q,tt,te)||this.lettersChangedFlag}}catch(t){P(this.constructor.name,t)}}getValue(){return this._elem.globalData?.frameId===this._frameId||(this._frameId=this._elem.globalData?.frameId??0,this.iterateDynamicProperties()),0}searchProperties(t){let{length:e}=this._textData.a??[],{getProp:s}=tU;for(let t=0;t<e;t++)this._animatorsData[t]=new st(this._elem,this._textData.a?.[t],this);this._textData.p&&"m"in this._textData.p&&this._elem.maskManager?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m),p:s(this._elem,this._textData.p.p,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m?.a,1,0,this)}}function so(t){let e=t.fStyle?t.fStyle.split(" "):[],s="normal",i="normal",{length:r}=e;for(let t=0;t<r;t++)switch(e[t]?.toLowerCase()){case"italic":i="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200"}return{style:i,weight:t.fWeight||s}}let sh=[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],sl={data:{shapes:[]},shapes:[],size:0,w:0},sp=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function sc(t){let e=sm(t);return e>=127462&&e<=127487}function sm(t){let e=0,s=t.charCodeAt(0);if(s>=55296&&s<=56319){let i=t.charCodeAt(1);i>=56320&&i<=57343&&(e=(s-55296)*1024+i-56320+65536)}return e}function su(t,e){if(v)return;let s=tx("span");s.setAttribute("aria-hidden","true"),s.style.fontFamily=e;let i=tx("span");i.innerText="giItT1WQy@!-/#",s.style.position="absolute",s.style.left="-10000px",s.style.top="-10000px",s.style.fontSize="300px",s.style.fontVariant="normal",s.style.fontStyle="normal",s.style.fontWeight="normal",s.style.letterSpacing="0",s.appendChild(i),document.body.appendChild(s);let r=i.offsetWidth;return i.style.fontFamily=`${function(t){let e=t.split(","),{length:s}=e,i=[];for(let t=0;t<s;t++)"sans-serif"!==e[t]&&"monospace"!==e[t]&&i.push(e[t]);return i.join(",")}(t)}, ${e}`,{node:i,parent:s,w:r}}class sd{constructor(){this.chars=null,this.fonts=[],this.isLoaded=!1,this.typekitLoaded=0,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}addChars(t){if(!t)return;this.chars=this.chars??[];let{length:e}=t,s,{length:i}=this.chars,r;for(let a=0;a<e;a++){for(s=0,r=!1;s<i;)this.chars[s]?.style===t[a]?.style&&this.chars[s]?.fFamily===t[a]?.fFamily&&this.chars[s]?.ch===t[a]?.ch&&(r=!0),s++;!r&&(this.chars.push(t[a]),i++)}}addFonts(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}let{length:s}=t.list;if(!v){this.isLoaded=!0;for(let e=0;e<s;e++){let s=t.list[e];s.helper=this.createHelper(s),s.cache={}}this.fonts=t.list;return}let i=s;for(let s=0;s<i;s++){let r=!0,a,n=t.list[s];if(n.loaded=!1,n.monoCase=su(n.fFamily,"monospace"),n.sansCase=su(n.fFamily,"sans-serif"),n.fPath){if("p"===n.fOrigin||3===n.origin){if((a=document.querySelectorAll(`style[f-forigin="p"][f-family="${n.fFamily}"], style[f-origin="3"][f-family="${n.fFamily}"]`)).length>0&&(r=!1),r){let t=tx("style");t.setAttribute("f-forigin",n.fOrigin),t.setAttribute("f-origin",`${n.origin}`),t.setAttribute("f-family",n.fFamily),t.innerText=`@font-face {font-family: ${n.fFamily}; font-style: normal; src: url('${n.fPath}');}`,e?.appendChild(t)}}else if("g"===n.fOrigin||1===n.origin){let{length:t}=a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(let e=0;e<t;e++)a[e].href.includes(n.fPath)&&(r=!1);if(r){let t=tx("link");t.setAttribute("f-forigin",n.fOrigin),t.setAttribute("f-origin",`${n.origin}`),t.type="text/css",t.rel="stylesheet",t.href=n.fPath,document.body.appendChild(t)}}else if("t"===n.fOrigin||2===n.origin){let{length:t}=a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(let e=0;e<t;e++)n.fPath===a[e].src&&(r=!1);if(r){let t=tx("link");t.setAttribute("f-forigin",n.fOrigin),t.setAttribute("f-origin",`${n.origin}`),t.rel="stylesheet",t.href=n.fPath,e?.appendChild(t)}}}else n.loaded=!0,i-=1;n.helper=this.createHelper(n,e),n.cache={},this.fonts.push(n)}0===i?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}getCharData(t,e,s){let i=0,{length:r}=this.chars??[];for(;i<r;){if(this.chars?.[i]?.ch===t&&this.chars[i]?.style===e&&this.chars[i]?.fFamily===s)return this.chars[i];i++}return("string"!=typeof t||13===t.charCodeAt(0))&&t||this._warned||(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,s)),sl}getFontByName(t){let e=0,{length:s}=this.fonts;for(;e<s;){if(this.fonts[e]?.fName===t)return this.fonts[e];e++}return this.fonts[0]}measureText(t,e,s){let i=this.getFontByName(e);if(i.cache&&!i.cache[t]){let e=i.helper;if(" "===t){let s=Number(e?.measureText(`|${t}|`)),r=Number(e?.measureText("||"));i.cache[t]=(s-r)/100}else i.cache[t]=Number(e?.measureText(t))/100}return Number(i.cache?.[t])*Number(s)}checkLoadedFonts(){let t,e,s=this.fonts.length;for(let i=0;i<s;i++){let r=this.fonts[i];if(r.loaded){s-=1;continue}if("n"===r.fOrigin||0===r.origin){r.loaded=!0;continue}if(t=r.monoCase?.node,e=r.monoCase?.w||0,t?.offsetWidth===e?(t=r.sansCase?.node,e=r.sansCase?.w||0,t?.offsetWidth!==e&&(s-=1,r.loaded=!0)):(s-=1,r.loaded=!0),!r.loaded)continue;let{monoCase:a,sansCase:n}=r;n&&n.parent.parentNode?.removeChild(n.parent),a&&a.parent.parentNode?.removeChild(a.parent)}0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}createHelper(t,e){let s;if(v)return;let i=e?tn.SVG:tn.Canvas,r=so(t);if(i===tn.SVG){let i=tf("text");i.style.fontSize="100px",i.setAttribute("font-family",t.fFamily),i.setAttribute("font-style",r.style),i.setAttribute("font-weight",r.weight),i.textContent="1",t.fClass?(i.style.fontFamily="inherit",i.classList.add(t.fClass)):i.style.fontFamily=t.fFamily,e?.appendChild(i),s=i}else{let e=new OffscreenCanvas(500,500).getContext("2d");e&&(e.font=`${r.style} ${r.weight} 100px ${t.fFamily}`,s=e)}return{measureText:t=>i===tn.SVG?(s.textContent=t,s.getComputedTextLength()):s.measureText(t).width}}setIsLoaded(){this.isLoaded=!0}}class sf extends tG{constructor(t,e){super(),this.canResize=!1,this.defaultBoxWidth=[0,0],this.effectsSequence=[],this.keysIndex=0,this.minimumFontSize=1,this.pv="",this.v="",this._frameId=-999999,this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d?.sid&&(e.d=t.globalData?.slotManager?.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.currentData={__complete:!1,ascent:0,boxWidth:this.defaultBoxWidth,f:"",fc:"",fillColorAnim:!1,finalLineHeight:0,finalSize:0,finalText:[],fStyle:"",fWeight:"",justifyOffset:0,l:[],lh:0,lineWidths:[],ls:0,of:"",ps:null,s:0,sc:"",strokeColorAnim:!1,strokeWidthAnim:!1,sw:0,t:0,tr:0,yOffset:0};let s=this.data.d?.k[0]?.s;s&&this.copyData(this.currentData,s),this.searchProperty()||this.completeTextData(this.currentData)}addEffect(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)}buildFinalText(t){let e=[],s=0,i=t.length,r,a,n,o=!1,h;for(;s<i;){var l;(n=o,o=!1,r=t.charCodeAt(s),h=t.charAt(s),sh.includes(r))?n=!0:r>=55296&&r<=56319?function(t,e){let s=e,i=sm(t.slice(s,2));if(127988!==i)return!1;let r=0;for(s+=2;r<5;){if((i=sm(t.slice(s,2)))<917601||i>917626)return!1;r++,s+=2}return 917631===sm(t.slice(s,2))}(t,s)?h=t.slice(s,14):(a=t.charCodeAt(s+1))>=56320&&a<=57343&&(function(t,e){let s=t.toString(16)+e.toString(16);return sp.includes(s)}(r,a)?(h=t.slice(s,2),n=!0):h=sc((l=t.slice(s,4)).slice(0,2))&&sc(l.slice(2,2))?t.slice(s,4):t.slice(s,2)):r>56319?65039===r&&(n=!0):8205===r&&(n=!0,o=!0),n?e[e.length-1]+=h:e.push(h),s+=h.length}return e}calculateExpression(t){throw Error(`${this.constructor.name}: Method calculateExpression is not implemented`)}canResizeFont(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}completeTextData(t){let e,s,i,r,a,n,o;t.__complete=!0;let{fontManager:h}=this.elem.globalData??{};if(!h)throw Error(`${this.constructor.name}: FontManager not loaded to globalData`);let{canResize:l,data:p,minimumFontSize:c}=this,m=[],u,d,f=0,g,y=p.m?.g,v=0,b=0,_=0,x=[],w,S=0,E=h.getFontByName(t.f),k=so(E);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(`${t.t}`),u=t.finalText.length||0,t.finalLineHeight=t.lh;let C=t.tr/1e3*t.finalSize;if(t.sz){let r,a,n=!0,[o,p]=t.sz;for(;n;){a=this.buildFinalText(`${t.t}`),r=0,w=0,u=a.length,C=t.tr/1e3*t.finalSize;let m=-1;for(let n=0;n<u;n++)if(i=a[n]?.charCodeAt(0)??0,d=!1," "===a[n]?m=n:(13===i||3===i)&&(w=0,d=!0,r+=t.finalLineHeight||1.2*t.finalSize),h.chars?(e=h.getCharData(a[n]??"",E.fStyle,E.fFamily),s=d?0:e.w*t.finalSize/100):s=h.measureText(a[n]??"",t.f,t.finalSize)||0,w+s>o&&" "!==a[n]){let e=n;-1===m?u++:e=m,r+=t.finalLineHeight||1.2*t.finalSize,a.splice(e,+(m===e),"\r"),m=-1,w=0}else w+=s,w+=C;r+=Number(E.ascent)*t.finalSize/100,l&&t.finalSize>c&&p<r?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=a,u=t.finalText.length,n=!1)}}w=-C;let P=0,M;for(let r=0;r<u;r++)if(d=!1,13===(i=(M=t.finalText[r]??"").charCodeAt(0))||3===i?(P=0,x.push(w),S=w>S?w:S,w=-2*C,g="",d=!0,_++):g=M,h.chars?(e=h.getCharData(M,E.fStyle,h.getFontByName(t.f).fFamily),s=d?0:e.w*t.finalSize/100):s=h.measureText(g,t.f,t.finalSize)," "===M?P+=s+C:(w+=s+C+P,P=0),m.push({add:v,an:s,animatorJustifyOffset:0,anIndexes:[],l:s,line:_,n:d,val:g}),2===y){if(v+=s,""===g||" "===g||r===u-1){for((""===g||" "===g)&&(v-=s);b<=r;){let t=m[b];t.an=v,t.ind=f,t.extra=s,b++}f++,v=0}}else if(3===y){if(v+=s,""===g||r===u-1){""===g&&(v-=s);let t=m[b];for(;b<=r;)t.an=v,t.ind=f,t.extra=s,b++;v=0,f++}}else{let t=m[f];t.ind=f,t.extra=0,f++}if(t.l=m,S=w>S?w:S,x.push(w),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=S,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=x;let A=p.a,{length:T}=A??[],D=[];for(let e=0;e<T;e++){if(!(r=A?.[e]))continue;r.a?.sc&&(t.strokeColorAnim=!0),r.a?.sw&&(t.strokeWidthAnim=!0),(r.a?.fc||r.a?.fh||r.a?.fs||r.a?.fb)&&(t.fillColorAnim=!0),o=0,n=Number(r.s?.b);for(let t=0;t<u;t++)(a=m[t]??{}).anIndexes[e]=o,(1===n&&""!==a.val||2===n&&""!==a.val&&" "!==a.val||3===n&&(a.n||" "===a.val||t===u-1)||4===n&&(a.n||t===u-1))&&(1===Number(r.s?.rn)&&D.push(o),o++);let s=p.a?.[e]?.s;s&&(s.totalChars=o);let i=-1,h;if(r.s?.rn===1)for(let t=0;t<u;t++)i!==(a=m[t]??{}).anIndexes[e]&&(i=a.anIndexes[e]??0,h=D.splice(Math.floor(Math.random()*D.length),1)[0]),h&&(a.anIndexes[e]=h)}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=Number(E.ascent)*t.finalSize/100}copyData(t,e){let s=Object.keys(e),{length:i}=s;for(let r=0;r<i;r++)Object.hasOwn(e,s[r]??"")&&(t[s[r]]=e[s[r]]);return t}getExpressionValue(t,e){throw Error(`${this.constructor.name}: Method getExpressionValue is not implemented`)}getKeyframeValue(){let t=this.data.d?.k??[],e=Number(this.elem.comp?.renderedFrame),s=0,i=t.length;for(;s<=i-1&&!(s===i-1||t[s+1]?.t>e);)s++;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d?.k[this.keysIndex]?.s}getValue(t){if((this.elem.globalData?.frameId===this.frameId||0===this.effectsSequence.length)&&!t)return 0;let e=this.data.d?.k[this.keysIndex]?.s.t;void 0!==e&&(this.currentData.t=e);let s=this.currentData,i=this.keysIndex;if(this.lock)return this.setCurrentData(this.currentData),0;this.lock=!0,this._mdf=!1;let r=t??this.data.d?.k[this.keysIndex]?.s;for(let t=0;t<this.effectsSequence.length;t++)r=i===this.keysIndex?this.effectsSequence[t]?.(this.currentData,r?.t):this.effectsSequence[t]?.(r,r?.t);return s!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData?.frameId,0}recalculate(t){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);let e=this.data.d.k[t]?.s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)}searchExpressions(){throw Error(`${this.constructor.name}: Method searchExpressions is not implemented`)}searchKeyframes(){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf}searchProperty(){return this.searchKeyframes()}setCurrentData(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0}setMinimumFontSize(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)}updateDocumentData(t,e){if(!this.data.d)throw Error(`${this.constructor.name}: data.k (TextData -> DocumentData) is not implemented`);let s=e;s=s??this.keysIndex;let i=this.copyData({},this.data.d.k[s]?.s??{});i=this.copyData(i,t),(this.data.d.k[s]??{s:null}).s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)}}class sg extends ew{applyTextPropertiesToMatrix(t,e,s,i,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+Number(t.ascent),0),e.translate(0,-Number(t.ls),0),t.j){case 1:e.translate(Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[s]),0,0);break;case 2:e.translate(Number(t.justifyOffset)+(Number(t.boxWidth)-t.lineWidths[s])/2,0,0)}e.translate(i,r,0)}buildColor(t){let e=Math.round(255*t[0]),s=Math.round(255*t[1]),i=Math.round(255*t[2]);return`rgb(${e},${s},${i})`}canResizeFont(t){this.textProperty?.canResizeFont(t)}createPathShape(t,e){let s,i="";for(let r=0;r<e.length;r++)e[r]?.ty===to.Path&&e[r]?.ks?.k&&(i+=eE(s=e[r]?.ks?.k,s.i.length,!0,t));return i}initElement(t,e,s){if(!t.t)throw Error(`${this.constructor.name}: data.t (LottieLayer -> TextData) can't be undefined`);this.emptyProp=new e9,this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,s),this.textProperty=new sf(this,t.t),this.textAnimator=new sn(t.t,this.renderType||tn.SVG,this),this.initTransform(),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)}prepareFrame(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}setMinimumFontSize(t){this.textProperty?.setMinimumFontSize(t)}updateDocumentData(t,e){this.textProperty?.updateDocumentData(t,e)}validateText(){(this.textProperty?._mdf||this.textProperty?._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)}}class sy extends ex{constructor(t,e,s){super(),this._canPlay=!1,this._currentTime=0,this._isPlaying=!1,this._previousVolume=null,this._volume=1,this._volumeMultiplier=1,this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId)??null,this.initBaseData(t,e,s);let i=this.globalData?.getAssetsPath(this.assetData);this.audio=this.globalData?.audioController?.createAudio(i),this.globalData?.audioController?.addAudio(this),this.tm=t.tm?tU.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=tU.getProp(this,t.au?.lv??{k:[100]},1,.01,this)}getBaseElement(){return null}hide(){this.audio.pause(),this._isPlaying=!1}initExpressions(){}pause(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1}prepareFrame(t){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/Number(this.data.sr):this._currentTime=this.tm.v,this._volume=this.lv.v[0];let e=this._volume*this._volumeMultiplier;this._previousVolume!==e&&(this._previousVolume=e,this.audio.volume(e))}renderFrame(t){if(this.isInRange&&this._canPlay){if(!this._isPlaying){this.audio.play(),this.audio.seek(this._currentTime/Number(this.globalData?.frameRate)),this._isPlaying=!0;return}(!this.audio.playing()||Math.abs(this._currentTime/Number(this.globalData?.frameRate)-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/Number(this.globalData?.frameRate))}}resume(){this._canPlay=!0}setRate(t){this.audio.rate(t)}show(){}sourceRectAtTime(){return null}volume(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)}}class sv extends ex{constructor(t,e,s){if(super(),this.assetData=null,this.initFrame(),this.initRenderable(),t.refId&&(this.assetData=e.getAssetData(t.refId)??null),!e.imageLoader)throw Error(`${this.constructor.name}: imageLoader is not implemented in globalData`);this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,s)}getBaseElement(){return null}getFootageData(){return this.footageData}initExpressions(){let t=em.interface;if(!t)return;let e=t("footage");this.layerInterface=new e(this)}prepareFrame(){}renderFrame(){}}class sb extends e_{constructor(t,e,s){super(),this.initFrame(),this.initBaseData(t,e,s),this.initTransform(),this.initHierarchy()}getBaseElement(){return null}prepareFrame(t){this.prepareProperties(t,!0)}renderFrame(t){return null}}class s_{constructor(t){this.animationData=t}getProp(t){let{sid:e}=t;return e&&this.animationData.slots?.[e]?Object.assign(t,this.animationData.slots[e].p):t}}class sx extends e_{addPendingElement(t){this.pendingElements.push(t)}buildAllItems(){for(let t=0;t<this.layers.length;t++)this.buildItem(t);this.checkPendingElements()}buildElementParenting(t,e,s=[]){let{elements:i,layers:r}=this,{length:a}=r,n=0;for(;n<a;){if(r[n]?.ind!==e){n++;continue}let a=i[n];if(!a||!0===a){this.buildItem(n),this.addPendingElement(t),n++;continue}if(s.push(a),a.setAsParent(),r[n]?.parent===void 0){t.setHierarchy(s),n++;continue}this.buildElementParenting(t,r[n]?.parent,s),n++}}buildItem(t){throw Error(`${this.constructor.name}: Method buildItem not yet implemented`)}checkLayers(t){this.completeLayers=!0;for(let e=this.layers.length-1;e>=0;e--){let s=this.layers[e];!this.elements[e]&&s.ip-s.st<=Number(t)-s.st&&s.op-s.st>Number(t)-s.st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers}this.checkPendingElements()}createAudio(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new sy(t,this.globalData,this)}createCamera(t){throw Error("3D camera is not supported by this package.")}createFootage(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new sv(t,this.globalData,this)}createItem(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}}createNull(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new sb(t,this.globalData,this)}getElementById(t){for(let e=0;e<this.elements.length;e++)if(this.elements[e]?.data.ind===t)return this.elements[e]??null;return null}getElementByPath(t){let e,s=t.shift();if("number"==typeof s)e=this.elements[s];else for(let t=0;t<this.elements.length;t++)if(this.elements[t]?.data.nm===s){e=this.elements[t];break}return 0===t.length?e:e?.getElementByPath(t)}includeLayers(t){this.completeLayers=!1;for(let e=0;e<t.length;e++){let s=0;for(;s<this.layers.length;){if(this.layers[s]?.id===t[e]?.id){this.layers[s]=t[e];break}s++}}}initItems(){this.globalData?.progressiveLoad||this.buildAllItems()}searchExtraCompositions(t){for(let e=0;e<t.length;e++)if(t[e]?.xt){let s=this.createComp(t[e]);s.initExpressions(),this.globalData?.projectInterface.registerComposition(s)}}setProjectInterface(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);t&&(this.globalData.projectInterface=t)}setupGlobalData(t,e){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);this.globalData.fontManager=new sd,this.globalData.slotManager=new s_(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||60,this.globalData.nm=t.nm,this.globalData.compSize={h:t.h,w:t.w}}constructor(...t){super(...t),this.completeLayers=!1,this.currentFrame=0,this.elements=[],this.layers=[],this.pendingElements=[]}}class sw{constructor(t,e,s,i){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=i<0?-1:1}}class sS{constructor(t,e){this.type=t,this.direction=e<0?-1:1}}class sE{constructor(t,e,s,i){this.type=t,this.direction=s,this.currentTime=e,this.totalTime=i}}class sk{constructor(t,e,s,i){this.type=t,this.currentLoop=s,this.totalLoops=e,this.direction=i<0?-1:1}}class sC{constructor(t,e,s){this.type=t,this.firstFrame=e,this.totalFrames=s}}class sP{constructor(t,e){this.type=t,this.target=e}}class sM{constructor(t,e){this.type=tr.RenderFrameError,this.nativeError=t,this.currentTime=e}}class sA{constructor(t,e){this.type=tr.ConfigError,this.nativeError=t}}class sT{addEventListener(t,e){return this._cbs[t]=this._cbs[t]??[],this._cbs[t].push(e),()=>{this.removeEventListener(t,e)}}removeEventListener(t,e){if(!e){this._cbs[t]=null;return}if(this._cbs[t]){let s=0,{length:i}=this._cbs[t];for(;s<i;)this._cbs[t][s]===e&&(this._cbs[t].splice(s,1),s--,i--),s++;0===this._cbs[t].length&&(this._cbs[t]=null)}}triggerEvent(t,e){if(!this._cbs[t])return;let s=[...this._cbs[t]],{length:i}=s;for(let t=0;t<i;t++)s[t]?.(e)}constructor(){this._cbs={}}}let sD={},sI=()=>{if(sD.canvas)return tn.Canvas;let t=Object.keys(sD),{length:e}=t;for(let s=0;s<e;s++)if(sD[t[s]])return t[s];return tn.SVG};class sF{constructor(t){this.audios=[],this._isMuted=!1,this._volume=1,this.audioFactory=t}addAudio(t){this.audios.push(t)}createAudio(t){return this.audioFactory?this.audioFactory(t):!v&&"Howl"in window?new window.Howl({src:[t]}):{isPlaying:!1,play:()=>{this.isPlaying=!0},playing:()=>{throw Error(`${this.constructor.name}: Method playing is not implemented`)},rate:()=>{throw Error(`${this.constructor.name}: Method rate is not implemented`)},seek:()=>{this.isPlaying=!1},setVolume:()=>{throw Error(`${this.constructor.name}: Method setVolume is not implemented`)}}}getVolume(){return this._volume}mute(){this._isMuted=!0,this._updateVolume()}pause(){for(let t of this.audios)t.pause()}resume(){for(let t of this.audios)t.resume()}setAudioFactory(t){this.audioFactory=t}setRate(t){for(let e of this.audios)e.setRate(t)}setVolume(t){this._volume=t,this._updateVolume()}unmute(){this._isMuted=!1,this._updateVolume()}_updateVolume(){let{length:t}=this.audios;for(let e=0;e<t;e++)this.audios[e]?.volume(this._volume*!this._isMuted)}}function sL(t,e,s,i){let r,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=()=>{if(4===a.readyState){if(200===a.status)return void s(r=s$(a));try{r=s$(a),s(r)}catch(t){i?.(t)}}};try{a.open("GET",t,!0)}catch(s){a.open("GET",`${e}/${t}`,!0)}a.send()}function s$(t){let e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&e.includes("json")||t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function sN(t,e){let s;for(let r=0;r<t.length;r++)if("ks"in(s=t[r])&&!s.completed){if(s.completed=!0,s.hasMask){let t=s.masksProperties,{length:e}=t??[];for(let s=0;s<e;s++){let e=t?.[s]?.pt?.k;if(e){if(!L(e)){sO(e);continue}for(let t=0;t<e.length;t++){let s=e[t]?.e??[],i=e[t]?.s??[];s.length>0&&sO(s[0]),i.length>0&&sO(i[0])}}}}switch(s.ty){case 0:s.layers=sV(s.refId,e),sN(s.layers,e);break;case 4:sR(s.shapes);break;case 5:var i;i=s,i.t?.a?.length===0&&i.t.p}}}function sV(t,e){if(!t||!e)return;let s=function(t,e){let s=0;for(;s<e.length;){if(e[s]?.id===t)return e[s];s++}return null}(t,e);return s?.layers?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function sR(t=[]){for(let e=t.length-1;e>=0;e--){if(t[e]?.ty===to.Group){sR(t[e]?.it);continue}if(t[e]?.ty===to.Path){let s=t[e]?.ks?.k;if(!L(s)){sO(s);continue}for(let t=0;t<s.length;t++){let e=s[t]?.e,i=s[t]?.s;e&&sO(e[0]),i&&sO(i[0])}}}}function sO(t){if(t)for(let e=0;e<t.i.length;e++)t.i[e][0]+=t.v[e]?.[0]??0,t.i[e][1]+=t.v[e]?.[1]??0,t.o[e][0]+=t.v[e]?.[0]??0,t.o[e][1]+=t.v[e]?.[1]??0}function sz(t,e){let s=e?e.split(".").map(Number):[100,100,100];return t[0]>s[0]||!(s[0]>t[0])&&(t[1]>s[1]||!(s[1]>t[1])&&(t[2]>s[2]||!(s[2]>t[2])&&null))}let sB=(t,e,s)=>{for(let i=0;i<t.length;i++)t[i]?.ty===s&&e(t[i])},sG=(r=[4,4,14],a=t=>{let e=t.t?.d;t.t&&e&&(t.t.d={k:[{s:e,t:0}]})},t=>{if(sz(r,t.v)){sB(t.layers,a,5);for(let e=0;e<t.assets.length;e++)t.assets[e]?.layers&&sB(t.assets[e]?.layers,a,5)}}),sq=(n=[4,7,99],t=>{if(!(!t.chars||sz(n,t.v)))for(let e=0;e<t.chars.length;e++){let s=t.chars[e];s.data?.shapes&&(sR(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]}},t.chars[e]?.t||(s.data.shapes.push({ty:to.NoStyle}),s.data.shapes[0]?.it?.push({a:{a:0,k:[0,0]},o:{a:0,k:100},p:{a:0,k:[0,0]},r:{a:0,k:0},s:{a:0,k:[100,100]},sa:{a:0,k:0},sk:{a:0,k:0},ty:to.Transform})))}}),sj=(o=[5,7,15],h=t=>{let e=t.t?.p;e&&("number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))},t=>{if(sz(o,t.v)){sB(t.layers,h,5);for(let e=0;e<t.assets.length;e++)t.assets[e]?.layers&&sB(t.assets[e]?.layers,h,5)}}),sH=(l=[4,1,9],p=t=>{for(let e=0;e<t.length;e++){if(t[e]?.ty===to.Group){p(t[e]?.it??[]);continue}if(t[e]?.ty!==to.Fill&&t[e]?.ty!==to.Stroke)continue;let s=t[e]?.c?.k;if(s&&"number"!=typeof s){if($(s)&&s.length>=4){s[0]/=255,s[1]/=255,s[2]/=255,s[3]/=255;continue}for(let t=0;t<s.length;t++){let e=s[t];e.s[0]/=255,e.s[1]/=255,e.s[2]/=255,e.s[3]/=255,e.e[0]/=255,e.e[1]/=255,e.e[2]/=255,e.e[3]/=255}}}},c=t=>{let{length:e}=t;for(let s=0;s<e;s++)t[s]?.ty===4&&p(t[s]?.shapes??[])},t=>{if(!sz(l,t.v))return;c(t.layers);let{length:e}=t.assets;for(let s=0;s<e;s++)t.assets[s]?.layers&&c(t.assets[s]?.layers)}),sW=(m=[4,4,18],u=t=>{let{length:e}=t;for(let s=e-1;s>=0;s--){if(t[s]?.ty===to.Group){u(t[s]?.it??[]);continue}if(t[s]?.ty!==to.Path)continue;let e=t[s]?.ks?.k;if(!e)continue;let i=!!t[s]?.closed;if(!L(e)){e.c=i;continue}let{length:r}=e;for(let t=0;t<r;t+=1){let s=e[t]?.e??[],r=e[t]?.s??[];s.length>0&&(s[0].c=i),r.length>0&&(r[0].c=i)}}},d=t=>{let e,{length:s}=t;for(let i=0;i<s;i++){if((e=t[i]).hasMask){let t=e.masksProperties,{length:s}=t??[];for(let e=0;e<s;e++){let s=t?.[e]?.pt?.k;if(!s)continue;let i=!!t[e]?.cl;if(!L(s)){s.c=i;continue}let{length:r}=s;for(let t=0;t<r;t++){let e=s[t]?.e??[],r=s[t]?.s??[];e.length>0&&(e[0].c=i),r.length>0&&(r[0].c=i)}}}4===e.ty&&u(e.shapes)}},t=>{if(!sz(m,t.v))return;d(t.layers);let{length:e}=t.assets;for(let s=0;s<e;s++)t.assets[s]?.layers&&d(t.assets[s]?.layers)}),sJ={checkChars:sq,checkColors:sH,checkPathProperties:sj,checkShapes:sW,completeData:function(t){t.__complete||(sH(t),sG(t),sq(t),sj(t),sW(t),sN(t.layers,t.assets),function(t,e=[]){if(t)for(let s=0;s<t.length;s++){if(t[s]?.t!==1)continue;let{data:i}=t[s]??{};i&&(i.layers=sV(i.refId,e)),sN(t[s]?.data?.layers??[],e)}}(t.chars,t.assets),t.__complete=!0)},completeLayers:sN},sU={current:!1},sY=1,sX,sK="Function not implemented.",sZ={addEventListener:(t,e,s)=>{throw Error(sK)},dispatchEvent:t=>{throw Error(sK)},onerror:null,onmessage:t=>{throw Error("workerProxy: Method onmessage not implemented")},onmessageerror:null,postMessage:t=>{sX({data:t})},removeEventListener:(t,e,s)=>{throw Error(sK)},terminate:()=>{throw Error(sK)}},sQ={postMessage:t=>{sZ.onmessage&&sZ.onmessage({AT_TARGET:2,bubbles:!1,BUBBLING_PHASE:3,cancelable:!1,cancelBubble:!1,CAPTURING_PHASE:1,composed:!1,composedPath:()=>{throw Error(sK)},currentTarget:null,data:t,defaultPrevented:!1,eventPhase:0,initEvent:(t,e,s)=>{throw Error(sK)},initMessageEvent:(t,e,s,i,r,a,n,o)=>{throw Error(sK)},isTrusted:!1,lastEventId:"",NONE:0,origin:"",ports:[],preventDefault:()=>{throw Error(sK)},returnValue:!1,source:null,srcElement:null,stopImmediatePropagation:()=>{throw Error(sK)},stopPropagation:()=>{throw Error(sK)},target:null,timeStamp:0,type:""})}},s0={};function s1(){e||((e=function(t){if(!v&&sU.current){let e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(e))}return sX=t,sZ}(t=>{if(sQ.dataManager=sQ.dataManager??sJ,"loadAnimation"===t.data.type)return void sL(t.data.path,t.data.fullPath,e=>{e&&sJ.completeData(e),sQ.postMessage({id:t.data.id,payload:e,status:"success"})},()=>{sQ.postMessage({id:t.data.id,status:"error"})});if("complete"===t.data.type){let{animation:e,id:s}=t.data;sJ.completeData(e),sQ.postMessage({id:s,payload:e,status:"success"});return}"loadData"===t.data.type&&sL(t.data.path,t.data.fullPath,e=>{sQ.postMessage({id:t.data.id,payload:e,status:"success"})},()=>{sQ.postMessage({id:t.data.id,status:"error"})})})).onmessage=({data:t})=>{let{id:e,payload:s,status:i}=t,r=s0[e];(s0[e]=null,"success"===i)?r.onComplete(s):r.onError&&r.onError()})}function s2(t,e){sY++;let s=`processId_${sY}`;try{return s0[s]={onComplete:t,onError:e},s}catch(t){throw P("DataManager}:\n",t),Error("Could not create animation proccess",{cause:t})}}function s3(t,s,i){s1();let r=s2(s,i);e?.postMessage({fullPath:v?t:window.location.origin+window.location.pathname,id:r,path:t,type:"loadData"})}function s5(t,s,i){s1();let r=s2(s,i);e?.postMessage({animation:t,id:r,type:"complete"})}class s4{getComposition(t){let e=0,{length:s}=this.compositions;for(;e<s;){let s=this.compositions[e];if(s.data&&s.data.nm===t)return s.data.xt&&"prepareFrame"in s&&s.prepareFrame(this.currentFrame),s.compInterface;e++}return null}registerComposition(t){this.compositions.push(t)}constructor(){this.compositions=[],this.currentFrame=0}}let s6={current:!0};class s8{constructor(){this.assetsPath="",this.images=[],this.imagesLoadedCb=null,this.loadedAssets=0,this.loadedFootagesCount=0,this.path="",this.totalFootages=0,this.totalImages=0,this._adoptedImages=new WeakSet,this._hasNotified=!1,this._isRegistering=!1,this._pendingTimeouts=new Set,this._preloadHost=null,this._imageLoaded=this.imageLoaded.bind(this),this._footageLoaded=this.footageLoaded.bind(this),this.createFootageData=this.createFootageData.bind(this),this.proxyImage=this._createProxyImage()}adoptSvgImage(t){let e=this.getAsset(t);return!(!e||"u"<typeof SVGImageElement)&&e instanceof SVGImageElement?this._adoptedImages.has(e)?e.cloneNode(!0):(this._adoptedImages.add(e),e):null}createFootageData(t){let e={assetData:t,img:null};return s3(this.getAssetsPath(t,this.assetsPath,this.path),t=>{t&&(e.img=t),this._footageLoaded()},()=>{this._footageLoaded()}),e}createImageData(t){let e=this.getAssetsPath(t,this.assetsPath,this.path),s=tf("image"),i={assetData:t,img:s};return t.w&&s.setAttribute("width",`${t.w}`),t.h&&s.setAttribute("height",`${t.h}`),s.setAttributeNS(g,"href",e),this._elementHelper?.append?this._elementHelper.append(s):this._elementHelper?.appendChild(s),this._awaitSvgImageReady(s,this._imageLoaded,()=>{this.proxyImage&&(i.img=this.proxyImage),this._imageLoaded()}),i}destroy(){for(let t of this._pendingTimeouts)clearTimeout(t);this._pendingTimeouts.clear(),this.imagesLoadedCb=null,this.cleanupElementHelper(),this.destroyPreloadHost(),this.images.length=0}footageLoaded(){this.loadedFootagesCount++,this.notifyIfComplete()}getAsset(t){let e=0,{length:s}=this.images;for(;e<s;){if(this.images[e]?.assetData===t)return this.images[e]?.img??null;e++}return null}imageLoaded(){this.loadedAssets++,this.notifyIfComplete()}loadAssets(t,e){this.imagesLoadedCb=e,this._hasNotified=!1,this._isRegistering=!0;let{length:s}=t;for(let e=0;e<s;e++)if(!t[e]?.layers){if((!t[e]?.t||t[e]?.t==="seq")&&this._createImageData){this.totalImages++;let s=this._createImageData(t[e]);s&&this.images.push(s);continue}3===Number(t[e]?.t)&&(this.totalFootages++,this.images.push(this.createFootageData(t[e])))}this._isRegistering=!1,this.notifyIfComplete()}loadedFootages(){return this.totalFootages===this.loadedFootagesCount}loadedImages(){return this.totalImages===this.loadedAssets}setAssetsPath(t){this.assetsPath=t||""}setCacheType(t,e){t===tn.SVG?(this._elementHelper=this.ensurePreloadHost(),this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}setPath(t){this.path=t||""}_awaitSvgImageReady(t,e,s){if(v)return void e();let i=!1,r,a=t=>{i||(i=!0,clearTimeout(r),void 0!==r&&this._pendingTimeouts.delete(r),t())};r=setTimeout(()=>{a(e)},25e3),this._pendingTimeouts.add(r);let n=()=>{try{let e=tx("canvas").getContext("2d");e?.drawImage(t,0,0,1,1)}catch{}a(e)};t.addEventListener("load",()=>{n()},{once:!0}),t.addEventListener("error",()=>{a(s)},{once:!0}),n()}_createProxyImage(){if(v)return null;let t=tx(tn.Canvas);t.width=1,t.height=1;let e=t.getContext("2d");return e&&(e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1)),t}cleanupElementHelper(){let t=this._elementHelper;if(t)for(let e=0;e<this.images.length;e++){let s=this.images[e]?.img;s&&"u">typeof SVGImageElement&&s instanceof SVGImageElement&&s.parentNode===t&&t.removeChild(s)}}createImgData(t){let e=this.getAssetsPath(t,this.assetsPath,this.path),s=tx("img"),i={assetData:t,img:s};s.crossOrigin="anonymous";let r=!1,a=()=>{r||(r=!0,this._imageLoaded())},n=()=>{"function"==typeof s.decode?s.decode().then(()=>{a()}).catch(()=>{a()}):a()};return s.addEventListener("load",n,!1),s.addEventListener("error",()=>{this.proxyImage&&(i.img=this.proxyImage),a()},!1),s.src=e,s.complete&&(s.naturalWidth>0?n():(this.proxyImage&&(i.img=this.proxyImage),a())),i}destroyPreloadHost(){this._preloadHost?.remove(),this._preloadHost=null,this._elementHelper=void 0}ensurePreloadHost(){if(this._elementHelper)return this._elementHelper;if(v)return this._elementHelper=tf("g"),this._elementHelper;let t=tf("svg");return t.setAttribute("aria-hidden","true"),t.setAttribute("width","1"),t.setAttribute("height","1"),t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none",document.documentElement.appendChild(t),this._preloadHost=t,this._elementHelper=t,t}getAssetsPath(t,e,s){if(t.e)return t.p||"";if(e){let s=t.p;return s?.indexOf("images/")!==-1&&(s=s?.split("/")[1]),`${e}${s||""}`}let i=s;return i+=t.u??"",i+=t.p??""}notifyIfComplete(){if(this._isRegistering||this._hasNotified||this.loadedAssets!==this.totalImages||this.loadedFootagesCount!==this.totalFootages||!this.imagesLoadedCb)return;let t=this.imagesLoadedCb;this._hasNotified=!0,t(null),this.cleanupElementHelper(),this._preloadHost&&!this._preloadHost.hasChildNodes()&&this.destroyPreloadHost()}}let s9=t=>{let e=t.split("\r\n"),s={},{length:i}=e,r=0;for(let t=0;t<i;t++){let i=e[t]?.split(":")??[];if(2===i.length){let[t,e]=i;if(!t||!e)continue;s[t]=e.trim(),r++}}if(0===r)throw Error("Could not parse markers");return s};class s7 extends sT{constructor(){super(),this._isFirstFrame=!1,this.animationData={},this.animationID=k(),this.assets=[],this.assetsPath="",this.audioController=new sF(void 0),this.autoplay=!1,this.currentFrame=0,this.currentRawFrame=0,this.drawnFrameEvent=new sE(tr.DrawnFrame,0,1,0),this.enterFrameEvent=new sw(tr.EnterFrame,0,0,1),this.enterFrameLegacyEvent=new sw(tr.EnterFrame,0,0,1),this.expressionsPlugin=em.plugin,this.firstFrame=0,this.frameModifier=1,this.frameMult=0,this.frameRate=60,this.imagePreloader=new s8,this.isLoaded=!1,this.isPaused=!0,this.isSubframeEnabled=s6.current,this.loop=!0,this.markers=[],this.name="",this.path="",this.playCount=0,this.playDirection=1,this.playSpeed=1,this.projectInterface=new s4,this.renderer=null,this.segmentPos=0,this.segments=[],this.timeCompleted=0,this.totalFrames=0,this.wrapper=null,this.autoloadSegments=!1,this._completedLoop=!1,this._idle=!0,this._isDestroyed=!1,this._cbs={},this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)}adjustSegment(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.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(tr.SegmentStart)}advanceTime(t){if(this.isPaused||!this.isLoaded)return;let e=this.currentRawFrame+t*this.frameModifier,s=!1;if(e>=this.totalFrames-1&&this.frameModifier>0){let t=this._handleLoop(e,s);e=t.nextValue,s=t._isComplete}else e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger(tr.LoopComplete):this._completedLoop=!0):(s=!0,e=0)):this.setCurrentRawFrameValue(e);s&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger(tr.Complete))}checkLoaded(){if(this.isLoaded||!this.renderer.globalData?.fontManager?.isLoaded||!this.imagePreloader.loadedImages()||!this.imagePreloader.loadedFootages())return;this.isLoaded=!0;let t=em.plugin;t?.initExpressions(this),this.renderer.initItems(),setTimeout(()=>{this.trigger(tr.DOMLoaded)},0),this.gotoFrame(),this.autoplay&&this.play()}checkSegments(t){return this.segments.length>0&&(this.adjustSegment(this.segments.shift()??[0,0],t),!0)}configAnimation(t){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||1)-(this.animationData.ip||0)),this.firstFrame=Math.round(this.animationData.ip||0)),this.renderer.configAnimation(t),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,void 0!==this.animationData.fr&&(this.frameMult=this.animationData.fr/1e3),this.renderer.searchExtraCompositions(t.assets),this.markers=function(t){let e=[],{length:s}=t;for(let i=0;i<s;i++){if("duration"in(t[i]??{})){e.push(t[i]);continue}let s={duration:t[i].dr,time:t[i].tm};try{s.payload=JSON.parse(t[i].cm)}catch(e){try{s.payload=s9(t[i].cm)}catch(e){s.payload={name:t[i].cm}}}e.push(s)}return e}(t.markers??[]),this.trigger(tr.ConfigReady),this.preloadImages(),this.loadSegments(),this.updateFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}}destroy(t){this._isDestroyed||t&&this.name!==t||(this._fontsLoadTimeout&&(clearTimeout(this._fontsLoadTimeout),this._fontsLoadTimeout=void 0),this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger(tr.Destroy),this._cbs={},this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null,this._isDestroyed=!0)}getAssetData(t){let e=0;for(;e<this.assets.length;){if(t===this.assets[e]?.id)return this.assets[e];e++}return null}getAssetsPath(t){let e;if(!t)return"";if(t.e)e=t.p||"";else if(this.assetsPath){let s=t.p;["i/","images/"].some(t=>s?.includes(t))&&(s=s?.split("/")[1]),e=this.assetsPath+(s||"")}else e=this.path+(t.u??"")+(t.p??"");return e}getDuration(t){return t?this.totalFrames:this.totalFrames/this.frameRate}getMarkerData(t){for(let e=0;e<this.markers.length;e++)if(this.markers[e]?.payload?.name===t)return this.markers[e];return null}getPath(){return this.path}getVolume(){return this.audioController.getVolume()}goToAndPlay(t,e,s){if(!s||this.name===s){if("number"!=typeof t||isNaN(t)){let e=this.getMarkerData(t);e&&(e.duration?this.playSegments([e.time,e.time+e.duration],!0):this.goToAndStop(e.time,!0))}else this.goToAndStop(t,e,s);this.play()}}goToAndStop(t,e,s){if(!s||this.name===s){if("number"!=typeof t||isNaN(t)){let e=this.getMarkerData(t);e&&this.goToAndStop(e.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}}gotoFrame(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger(tr.EnterFrame),this.renderFrame(),this.trigger(tr.DrawnFrame)}hide(){this.renderer.hide()}imagesLoaded(){this.trigger(tr.LoadedImages),this.checkLoaded()}includeLayers(t){this.animationData.op&&t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-(this.animationData.ip||0)));let{assets:e,layers:s}=this.animationData,i,{length:r}=s,a=t.layers,{length:n}=a;for(let t=0;t<n;t++)for(i=0;i<r;){if(s[i]?.id===a[t]?.id){s[i]=a[t];break}i++}for((t.chars||t.fonts)&&(this.renderer.globalData?.fontManager?.addChars(t.chars),this.renderer.globalData?.fontManager?.addFonts(t.fonts,this.renderer.globalData.defs)),r=t.assets.length,i=0;i<r;i++)e.push(t.assets[i]);this.animationData.__complete=!1,s5(this.animationData,this.onSegmentComplete)}loadNextSegment(){let{segments:t}=this.animationData;if(!t||0===t.length||!this.autoloadSegments){this.trigger(tr.DataReady),this.timeCompleted=this.totalFrames;return}let e=t.shift();this.timeCompleted=Number(e?.time)*this.frameRate;let s=`${this.path+(this.filename||"")}_${this.segmentPos}.json`;this.segmentPos++,s3(s,this.includeLayers.bind(this),()=>{this.trigger(tr.DataFailed)})}loadSegments(){let{segments:t}=this.animationData;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()}mute(t){t&&this.name!==t||this.audioController.mute()}onSegmentComplete(t){this.animationData=t;let e=em.plugin;e?.initExpressions(this),this.loadNextSegment()}onSetupError(){this.trigger(tr.DataFailed)}pause(t){(!t||this.name===t)&&(this.isPaused||(this.isPaused=!0,this.trigger(tr.Pause),this._idle=!0,this.trigger(tr.Idle),this.audioController.pause()))}play(t){t&&this.name!==t||(this.isPaused&&(this.isPaused=!1,this.trigger(tr.Play),this.audioController.resume(),this._idle&&(this._idle=!1)),this.trigger(tr.Active))}playSegments(t,e){if(e&&(this.segments.length=0),L(t[0]))for(let e=0;e<t.length;e++)this.segments.push(t[e]);else this.segments.push(t);this.segments.length>0&&e&&this.adjustSegment(this.segments.shift()??[0,0],0),this.isPaused&&this.play()}preloadImages(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))}renderFrame(t){if(!this.isLoaded)return;let e=t??this.currentFrame+this.firstFrame;try{this.expressionsPlugin?.resetFrame(),this.renderer.renderFrame(e)}catch(t){this.triggerRenderFrameError(t)}}resetSegments(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)}resize(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)}setCurrentRawFrameValue(t){this.currentRawFrame=t,this.gotoFrame()}setData(t,e){try{let s=e;s&&"object"!=typeof s&&(s=JSON.parse(s));let i={animationData:s,wrapper:t},{attributes:r}=t;i.path=r.getNamedItem("data-animation-path")?.value??r.getNamedItem("data-bm-path")?.value??r.getNamedItem("bm-path")?.value??"";let a=r.getNamedItem("data-anim-type")?.value??r.getNamedItem("data-bm-type")?.value??r.getNamedItem("bm-type")?.value??r.getNamedItem("data-bm-renderer")?.value??r.getNamedItem("bm-renderer")?.value??sI();Object.values(tn).includes(a)?i.animType=a:i.animType=sI();let n=r.getNamedItem("data-anim-loop")?.value??r.getNamedItem("data-bm-loop")?.value??r.getNamedItem("bm-loop")?.value??"";switch(n){case"false":i.loop=!1;break;case"true":i.loop=!0;break;case"":break;default:i.loop=parseInt(n,10)}let o=r.getNamedItem("data-anim-autoplay")?.value??r.getNamedItem("data-bm-autoplay")?.value??r.getNamedItem("bm-autoplay")?.value??!0;i.autoplay="false"!==o,i.name=r.getNamedItem("data-name")?.value??r.getNamedItem("data-bm-name")?.value??r.getNamedItem("bm-name")?.value??"";let h=r.getNamedItem("data-anim-prerender")?.value??r.getNamedItem("data-bm-prerender")?.value??r.getNamedItem("bm-prerender")?.value??"";if("false"===h&&(i.prerender=!1),i.path)return void this.setParams(i);this.trigger(tr.Destroy)}catch(t){throw P(this.constructor.name,t),Error(`${this.constructor.name}: Could not set data`,{cause:t})}}setDirection(t,e){e&&this.name!==e||(this.playDirection=t<0?-1:1,this.updateFrameModifier())}setLoop(t){this.loop=t}setParams(t){try{var s,i,r;let a;(t.wrapper||t.container)&&(this.wrapper=t.wrapper??t.container??null);let n=tn.SVG;t.animType?n=t.animType:t.renderer&&(n=t.renderer);let o=(t=>{let e=sD[t];if(!e)throw Error(`Unknown renderer type: ${t}`);return e})(n);if(this.renderer=new o(this,t.rendererSettings),this.imagePreloader.setCacheType(n,this.renderer.globalData?.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=n,["",null,void 0,!0,1].includes(t.loop)?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(`${t.loop}`,10),this.autoplay=!0,"autoplay"in t&&(this.autoplay=!!t.autoplay),this.name=t.name??"",this.autoloadSegments=!0,Object.hasOwn(t,"autoloadSegments")&&(this.autoloadSegments=!!t.autoloadSegments),this.assetsPath=t.assetsPath??this.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData)return void this.setupAnimation(t.animationData);if(!t.path)return;t.path.includes("\\")?this.path=t.path.slice(0,Math.max(0,t.path.lastIndexOf("\\")+1)):this.path=t.path.slice(0,Math.max(0,t.path.lastIndexOf("/")+1)),this.filename=t.path.slice(Math.max(0,t.path.lastIndexOf("/")+1)),this.filename=this.filename.slice(0,Math.max(0,this.filename.lastIndexOf(".json"))),s=t.path,i=this.configAnimation,r=this.onSetupError,s1(),a=s2(i,r),e?.postMessage({fullPath:v?s:window.location.origin+window.location.pathname,id:a,path:s,type:"loadAnimation"})}catch(t){throw P(this.constructor.name,t),Error(`${this.constructor.name}: Could not set params`,{cause:t})}}setSegment(t,e){let s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?s=t:this.currentRawFrame+this.firstFrame>e&&(s=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==s&&this.goToAndStop(s,!0)}setSpeed(t,e){e&&this.name!==e||(this.playSpeed=t,this.updateFrameModifier())}setSubframe(t=!1){this.isSubframeEnabled=t}setupAnimation(t){s5(t,this.configAnimation)}setVolume(t,e){e&&this.name!==e||this.audioController.setVolume(t)}show(){this.renderer.show()}stop(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))}togglePause(t){t&&this.name!==t||(this.isPaused?this.play():this.pause())}trigger(t){try{if(!this._cbs[t])return;switch(t){case tr.EnterFrame:{let e=this.enterFrameEvent;e.type=t,e.currentTime=this.currentFrame,e.totalTime=this.totalFrames,e.direction=this.frameModifier<0?-1:1,this.triggerEvent(t,e);let s=this.enterFrameLegacyEvent;s.type=t,s.currentTime=this.currentFrame,s.totalTime=this.totalFrames,s.direction=this.frameMult<0?-1:1;break}case tr.DrawnFrame:{let e=this.drawnFrameEvent;e.type=t,e.currentTime=this.currentFrame,e.direction=this.frameModifier<0?-1:1,e.totalTime=this.totalFrames,this.triggerEvent(t,e);break}case tr.LoopComplete:this.triggerEvent(t,new sk(t,Number(this.loop),this.playCount,this.frameMult));break;case tr.Complete:this.triggerEvent(t,new sS(t,this.frameMult));break;case tr.SegmentStart:this.triggerEvent(t,new sC(t,this.firstFrame,this.totalFrames));break;case tr.Destroy:this.triggerEvent(t,new sP(t,this));break;default:this.triggerEvent(t)}}catch(t){P(this.constructor.name,t)}}triggerConfigError(t){let e=new sA(t,this.currentFrame);this.triggerEvent(tr.Error,e),this.onError?.(e)}triggerRenderFrameError(t){let e=new sM(t,this.currentFrame);this.triggerEvent(tr.Error,e),this.onError?.(e)}unmute(t){t&&this.name!==t||this.audioController.unmute()}updateDocumentData(t,e,s){try{let i=this.renderer.getElementByPath(t);i?.updateDocumentData([],e,s)}catch(t){P(this.constructor.name,t)}}updateFrameModifier(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)}waitForFontsLoaded(){this.renderer.globalData?.fontManager?.isLoaded?this.checkLoaded():this._fontsLoadTimeout=setTimeout(this.waitForFontsLoaded.bind(this),20)}_handleLoop(t,e){let s=t,i=e;return this.loop&&this.playCount!==this.loop?s>=this.totalFrames?(this.playCount++,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger(tr.LoopComplete))):this.setCurrentRawFrameValue(s):this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(i=!0,s=this.totalFrames-1),{_isComplete:i,nextValue:s}}}let it=!1,ie=!0,is,ii=0,ir=0,ia=0,io=[];function ih(t){try{let e=new s7;return iy(e,null),e.setParams(t),e}catch(t){throw P("AnimationManager:\n",t),Error("Could not load animation",{cause:t})}}function il(t,e){try{if(!t)return null;let s=0;for(;s<ir;){if(io[s]?.elem===t&&io[s]?.elem!==null)return io[s]?.animation;s++}let i=new s7;return iy(i,t),i.setData(t,e),i}catch(t){throw P("AnimationManager:\n",t),Error("Could not register animation",{cause:t})}}function ip(t,e,s){if(v)return;let i=[...document.getElementsByClassName("lottie"),...document.getElementsByClassName("bodymovin")],{length:r}=i;for(let e=0;e<r;e++)il(i[e],t)}function ic(){!it&&ia&&ie&&!v&&(is=requestAnimationFrame(iu),ie=!1)}function im(){ia++,ic()}function iu(t){ii=t,v||(is=requestAnimationFrame(ig))}function id({target:t}){let e=0;if(!t)throw Error("No animation to remove");for(;e<ir;)io[e]?.animation===t&&(io.splice(e,1),e--,ir-=1,t.isPaused||iv()),e++}function ig(t){let e=t-ii;for(let t=0;t<ir;t++)io[t].animation.advanceTime(e);ii=t,!ia||it||ie?ie=!0:v||(is=requestAnimationFrame(ig))}function iy(t,e){t.addEventListener(tr.Destroy,id),t.addEventListener(tr.Active,im),t.addEventListener(tr.Idle,iv),io.push({animation:t,elem:e}),ir++}function iv(){ia--}let ib=(t,e,s,i)=>[-t+3*e-3*s+i,3*t-6*e+3*s,-3*t+3*e,t],i_=(t,e,s)=>t*(1-s)+e*s,ix=(t,e,s)=>[i_(t[0],e[0],s),i_(t[1],e[1],s)],iw=(t,e,s)=>{let i=t.boundingBox();return{bez:t,cx:i.cx,cy:i.cy,height:i.height,t:(e+s)/2,t1:e,t2:s,width:i.width}},iS=t=>{let e=t.bez.split(.5);if(!e[0]||!e[1])throw Error("Could not set PolynomialBezier");return[iw(e[0],t.t1,t.t),iw(e[1],t.t,t.t2)]},iE=(t,e,s,i,r,a)=>{if(!(2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height))return;if(s>=a||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)return void r.push([t.t,e.t]);let n=iS(t),o=iS(e);if(!n[0]||!n[1]||!o[0]||!o[1])throw Error("Could not set IntersectData");iE(n[0],o[0],s+1,i,r,a),iE(n[0],o[1],s+1,i,r,a),iE(n[1],o[0],s+1,i,r,a),iE(n[1],o[1],s+1,i,r,a)},ik=t=>new iC(t,t,t,t,!1);class iC{constructor(t,e,s,i,r){let a=e,n=s;r&&E(t,a)&&(a=ix(t,i,1/3)),r&&E(n,i)&&(n=ix(t,i,2/3));let o=ib(t[0],a[0],n[0],i[0]),h=ib(t[1],a[1],n[1],i[1]);this.a=[o[0],h[0]],this.b=[o[1],h[1]],this.c=[o[2],h[2]],this.d=[o[3],h[3]],this.points=[t,a,n,i]}boundingBox(){let t=this.bounds();return{bottom:t.y.max,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2,height:t.y.max-t.y.min,left:t.x.min,right:t.x.max,top:t.y.min,width:t.x.max-t.x.min}}bounds(){return{x:this._extrema(this,0),y:this._extrema(this,1)}}derivative(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]]}inflectionPoints(){let t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(S(t))return[];let e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,s=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(s<0)return[];let i=Math.sqrt(s);return S(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(t=>t>0&&t<1)}intersections(t,e,s){let i=e,r=s;i=i??2,r=r??7;let a=[];return iE(iw(this,0,1),iw(t,0,1),0,i,a,r),a}normalAngle(t){let e=this.derivative(t);return Math.atan2(e[0]??0,e[1]??0)}point(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]]}split(t){if(t<=0)return[ik(this.points[0]),this];if(t>=1)return[this,ik(this.points[this.points.length-1])];let e=ix(this.points[0],this.points[1],t),s=ix(this.points[1],this.points[2],t),i=ix(this.points[2],this.points[3],t),r=ix(e,s,t),a=ix(s,i,t),n=ix(r,a,t);return[new iC(this.points[0],e,r,n,!0),new iC(n,a,i,this.points[3],!0)]}tangentAngle(t){let e=this.derivative(t);return Math.atan2(e[1]??0,e[0]??0)}_extrema(t,e){let s=t.points[0][e]??0,i=t.points[t.points.length-1]?.[e]??0;if(s>i){let t=i;i=s,s=t}let r=((t,e,s)=>{if(0===t)return[];let i=e*e-4*t*s;if(i<0)return[];let r=-e/(2*t);if(0===i)return[r];let a=Math.sqrt(i)/(2*t);return[r-a,r+a]})(3*(t.a[e]??0),2*(t.b[e]??0),t.c[e]??0),{length:a}=r;for(let n=0;n<a;n++){if((r[n]??0)<=0||(r[n]??0)>=1)continue;let a=t.point(r[n]??0)[e]??0;if(a<s){s=a;continue}a>i&&(i=a)}return{max:i,min:s}}}function iP(t,e){let s=(e+1)%t.length();return new iC(t.v[e],t.o[e],t.i[s],t.v[s],!0)}class iM extends tz{addShape(t){if(this.closed)return;t.sh?.container?.addDynamicProperty(t.sh);let e={data:t,localShapeCollection:t2(),shape:t.sh};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}addShapeToModifier(t){}init(t,e,s,i){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=-999999,this.closed=!1,this.k=!1,this.dynamicProperties.length>0?this.k=!0:this.getValue(!0)}initModifierProperties(t,e){throw Error(`${this.constructor.name}: Method initModifierProperties is not implemented`)}isAnimatedWithShape(t){throw Error(`${this.constructor.name}: Method isAnimatedWithShape is not implemented`)}processKeys(){return this.elem?.globalData?.frameId===this.frameId||(this.frameId=this.elem?.globalData?.frameId,this.iterateDynamicProperties()),0}constructor(...t){super(...t),this.shapes=[]}}let iA=(t,e)=>[(t[1]??0)*(e[2]??0)-(t[2]??0)*(e[1]??0),(t[2]??0)*(e[0]??0)-(t[0]??0)*(e[2]??0),(t[0]??0)*(e[1]??0)-(t[1]??0)*(e[0]??0)],iT=(t,e,s)=>[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s],iD=(t,e,s)=>{let i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[iT(t,i,s),iT(e,i,s)]},iI=(t,e,s,i)=>{let r=[t[0],t[1],1],a=[e[0],e[1],1],n=[s[0],s[1],1],o=[i[0],i[1],1],h=iA(iA(r,a),iA(n,o));return S(h[2]??0)?null:[(h[0]??0)/(h[2]??0),(h[1]??0)/(h[2]??0)]},iF=(t,e)=>Math.hypot(t[0]-e[0],t[1]-e[1]),iL=(t,e,s,i,r)=>{let a=e.points[3],n=s.points[0];if(3===i||E(a,n))return a;if(2===i){let i=-e.tangentAngle(1),r=-s.tangentAngle(0)+Math.PI,o=iI(a,iT(a,i+Math.PI/2,100),n,iT(n,i+Math.PI/2,100)),h=o?iF(o,a):iF(a,n)/2,l=iT(a,i,2*h*.5519);return t.setXYAt(l[0],l[1],"o",t.length()-1),l=iT(n,r,2*h*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],l[0],l[1],t.length()),n}let o=E(a,e.points[2])?e.points[0]:e.points[2],h=E(n,s.points[1])?s.points[3]:s.points[1],l=iI(o,a,n,h);return l&&iF(l,a)<r?(t.setTripleAt(l[0],l[1],l[0],l[1],l[0],l[1],t.length()),l):a},i$=(t,e)=>{let s,i=(s=iD(t.points[0],t.points[1],e))[0],r=s[1],a=(s=iD(t.points[1],t.points[2],e))[0],n=s[1],o=(s=iD(t.points[2],t.points[3],e))[0],h=s[1],l=iI(i,r,a,n);l=l??r;let p=iI(o,h,a,n);return new iC(i,l,p=p??o,h)},iN=(t,e)=>{let s,i,r,a=t.inflectionPoints();if(0===a.length)return[i$(t,e)];if(1===a.length||w(a[1]??0,1))return s=(r=t.split(a[0]??0))[0],i=r[1],[i$(s,e),i$(i,e)];s=(r=t.split(a[0]??0))[0];let n=((a[1]??0)-(a[0]??0))/(1-(a[0]??0)),o=(r=r[1]?.split(n))[0];return i=r[1],[i$(s,e),i$(o,e),i$(i,e)]},iV=(t,e)=>{let s=t.intersections(e);return(s.length>0&&w(s[0]?.[0]??0,1)&&s.shift(),s.length>0)?s[0]:null},iR=(t,e)=>{let s=[...t],i=[...e],r=iV(t[t.length-1],e[0]);return(r&&(s[t.length-1]=t[t.length-1]?.split(r[0]??0)[0],i[0]=e[0]?.split(r[1]??0)[1]),t.length>1&&e.length>1&&(r=iV(t[0],e[e.length-1])))?[[t[0]?.split(r[0]??0)[0]],[e[e.length-1]?.split(r[1]??0)[1]]]:[s,i]};class iO extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=tU.getProp(t,e.a,0,null,this),this.miterLimit=tU.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e,s,i){let r=tZ();r.c=t.c;let a=t.length();t.c||(a-=1);let n,o=[];for(let s=0;s<a;s++)n=iP(t,s),o.push(iN(n,e));if(!t.c)for(let s=a-1;s>=0;s--)n=function(t,e){let s=(e+1)%t.length();return new iC(t.v[s],t.i[s],t.o[e],t.v[e],!0)}(t,s),o.push(iN(n,e));o=(t=>{let e;for(let s=1;s<t.length;s++)e=iR(t[s-1],t[s]),t[s-1]=e[0],t[s]=e[1];return t.length>1&&(e=iR(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t})(o);let h=null,l=null,{length:p}=o;for(let t=0;t<p;t++){let e=o[t];l&&(h=iL(r,l,e[0],s,i)),l=e[e.length-1];let{length:a}=e;for(let t=0;t<a;t++)n=e[t],h&&E(n.points[0],h)?r.setXYAt(n.points[1][0],n.points[1][1],"o",r.length()-1):r.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],r.length()),r.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],r.length()),h=n.points[3]}return p>0&&l&&iL(r,l,o[0]?.[0],s,i),r}processShapes(t){let{length:e}=this.shapes,s=Number(this.amount?.v),i=Number(this.miterLimit?.v),r=Number(this.lineJoin);if(0!==s){let a,n,o;for(let h=0;h<e;h++){if(o=(n=this.shapes[h]).localShapeCollection,!(!n.shape?._mdf&&!this._mdf&&!t)){o?.releaseShapes(),n.shape&&(n.shape._mdf=!0),a=n.shape?.paths?.shapes;let t=n.shape?.paths?._length||0;for(let e=0;e<t;e++){let t=a?.[e];t&&o?.addShape(this.processPath(t,s,r,i))}}n.shape&&(n.shape.paths=n.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class iz extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=tU.getProp(t,e.a,0,null,this),this._isAnimated=this.amount.effectsSequence.length>0}processPath(t,e){let s,i,r,a,n,o,h,l=e/100,p=[0,0],c=t._length;for(s=0;s<c;s++)p[0]+=t.v[s]?.[0]??0,p[1]+=t.v[s]?.[1]??0;p[0]/=c,p[1]/=c;let m=tZ();for(m.c=t.c,s=0;s<c;s++)i=(t.v[s]?.[0]??0)+((p[0]??0)-(t.v[s]?.[0]??0))*l,r=(t.v[s]?.[1]??0)+((p[1]??0)-(t.v[s]?.[1]??0))*l,a=(t.o[s]?.[0]??0)+-(((p[0]??0)-(t.o[s]?.[0]??0))*l),n=(t.o[s]?.[1]??0)+-(((p[1]??0)-(t.o[s]?.[1]??0))*l),o=(t.i[s]?.[0]??0)+-(((p[0]??0)-(t.i[s]?.[0]??0))*l),h=(t.i[s]?.[1]??0)+-(((p[1]??0)-(t.i[s]?.[1]??0))*l),m.setTripleAt(i,r,a,n,o,h,s);return m}processShapes(t){let e=this.amount?.v;if(0!==e){let s,i,r;for(let a=0;a<this.shapes.length;a++){if(r=(i=this.shapes[a]).localShapeCollection,!(!i.shape?._mdf&&!this._mdf&&!t)){r?.releaseShapes(),i.shape&&(i.shape._mdf=!0),s=i.shape?.paths?.shapes;let t=i.shape?.paths?._length||0;for(let i=0;i<t;i++){let t=s?.[i];t&&r?.addShape(this.processPath(t,e||0))}}i.localShapeCollection&&i.shape&&(i.shape.paths=i.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class iB extends iM{addShapeToModifier(t){t.pathsData=[]}applyTransforms(t,e,s,i,r,a){if(!i.s||!i.p||!i.a||!i.r)throw Error(`${this.constructor.name}: Missing required data from Transform`);let n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-r),h=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*n*r,i.p.v[1]*n*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),s.translate(-(i.a.v[0]??0),-(i.a.v[1]??0),i.a.v[2]),s.scale(a?1/o:o,a?1/h:h),s.translate(i.a.v[0],i.a.v[1],i.a.v[2])}changeGroupRender(t,e=!1){for(let s=0;s<t.length;s++)t[s]._shouldRender=e,t[s]?.ty===to.Group&&this.changeGroupRender(t[s]?.it,e)}cloneElements(t){let e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e}init(t,e,s,i=[]){if(!L(e))throw TypeError(`${this.constructor.name}: Method init, param arr must be array`);let r=Number(s);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]);r>0;)r--,this._elements.unshift(e[r]);if(this.dynamicProperties.length>0){this.k=!0;return}this.getValue(!0)}initModifierProperties(t,e){this.getValue=this.processKeys,this.c=tU.getProp(t,e.c,0,null,this),this.o=tU.getProp(t,e.o,0,null,this),e.tr&&(this.tr=ey.getTransformProperty(t,e.tr,this),this.so=tU.getProp(t,e.tr.so,0,.01,this),this.eo=tU.getProp(t,e.tr.eo,0,.01,this)),this.data=e,0===this.dynamicProperties.length&&this.getValue(!0),this._isAnimated=this.dynamicProperties.length>0,this.pMatrix=new td,this.rMatrix=new td,this.sMatrix=new td,this.tMatrix=new td,this.matrix=new td}processShapes(t){let e,s;if(!this.data)throw Error(`${this.constructor.name}: data (Shape) is not implemented`);let i,r,a,n,o,h=!1;if(!this._mdf&&!t){for(o=Number(this._currentCopies),a=0,n=1;o;)(i=this.elemsData[a]?.it??[])[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,o--,a+=n;return h}let l=Math.ceil(Number(this.c?.v));if(this._groups.length<l){for(;this._groups.length<l;){let t={it:this.cloneElements(this._elements),ty:to.Group};t.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:[{e:0,s:0,t:0},{e:0,s: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:to.Transform}),this.arr.splice(0,0,t),this._groups.splice(0,0,t),this._currentCopies?this._currentCopies++:this._currentCopies=1}this.elem?.reloadShapes(),h=!0}o=0;let p=this._groups.length-1;for(a=0;a<=p-1;a++){if(e=o<l,this._groups[a]&&(this._groups[a]._shouldRender=e),this.changeGroupRender(this._groups[a]?.it??[],e),!e){let t=this.elemsData[a]?.it??[],e=t[t.length-1];0===e.transform.op.v?e.transform.op._mdf=!1:(e.transform.op._mdf=!0,e.transform.op.v=0)}o++}if(this._currentCopies=l,!this.matrix||!this.pMatrix||!this.rMatrix||!this.sMatrix||!this.tMatrix)throw Error(`${this.constructor.name}: Could not set Matrix`);if(!this.tr)throw Error(`${this.constructor.name}: Transformproperty is not set`);let c=Number(this.o?.v),m=c%1,u=c>0?Math.floor(c):Math.ceil(c),d=this.pMatrix.props,f=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();let y=0;if(c>0){for(;y<u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y++;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),y+=m)}else if(c<0){for(;y>u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y--;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),y-=m)}for(a=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,o=this._currentCopies;o;){i=this.elemsData[a]?.it??[];let{length:t}=r=i[i.length-1]?.transform.mProps.v.props??[];if(i[i.length-1]&&(i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?Number(this.so?.v):Number(this.so?.v)+(Number(this.eo?.v)-Number(this.so?.v))*(a/(this._currentCopies-1))),0===y)for(this.matrix.reset(),s=0;s<t;s++)r[s]=this.matrix.props[s]??0;else{for((0!==a&&1===n||a!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(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]),s=0;s<t;s++)r[s]=this.matrix.props[s]??0;this.matrix.reset()}y++,o--,a+=n}return h}resetElements(t){let{length:e}=t;for(let s=0;s<e;s++){t[s]._processed=!1;let{it:e}=t[s]??{};t[s]?.ty===to.Group&&e&&this.resetElements(e)}}constructor(...t){super(...t),this.arr=[],this.data=void 0,this.elemsData=[],this._elements=[],this._groups=[]}}class iG extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.rd=tU.getProp(t,e.r,0,null,this),this._isAnimated=this.rd.effectsSequence.length>0}processPath(t,e){let s=tZ();s.c=t.c;let i=t._length,r,a,n,o,h,l,p=0,c,m,u,d,f,g;for(let y=0;y<i;y++)r=t.v[y],n=t.o[y],a=t.i[y],r[0]===n[0]&&r[1]===n[1]&&r[0]===a[0]&&r[1]===a[1]?0!==y&&y!==i-1||t.c?(o=0===y?t.v[i-1]:t.v[y-1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,c=f=r[0]+(o[0]-r[0])*l,m=g=r[1]-(r[1]-o[1])*l,u=c-(c-r[0])*.5519,d=m-(m-r[1])*.5519,s.setTripleAt(c,m,u,d,f,g,p),p++,o=y===i-1?t.v[0]:t.v[y+1],l=(h=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(h/2,e)/h:0,c=u=r[0]+(o[0]-r[0])*l,m=d=r[1]+(o[1]-r[1])*l,f=c-(c-r[0])*.5519,g=m-(m-r[1])*.5519,s.setTripleAt(c,m,u,d,f,g,p)):s.setTripleAt(r[0],r[1],n[0],n[1],a[0],a[1],p):s.setTripleAt(t.v[y]?.[0]??0,t.v[y]?.[1]??0,t.o[y]?.[0]??0,t.o[y]?.[1]??0,t.i[y]?.[0]??0,t.i[y]?.[1]??0,p),p++;return s}processShapes(t){let e=this.rd?.v;if(0!==e){let s,i,r;for(let a=0;a<this.shapes.length;a++){if(r=(s=this.shapes[a]).localShapeCollection,!(!s.shape?._mdf&&!this._mdf&&!t)){r?.releaseShapes(),s.shape&&(s.shape._mdf=!0),i=s.shape?.paths?.shapes??[];let t=s.shape?.paths?._length||0;for(let s=0;s<t;s++)r?.addShape(this.processPath(i[s],e))}s.shape&&(s.shape.paths=s.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}class iq extends iM{addPaths(t,e){for(let s=0;s<t.length;s++)e.addShape(t[s])}addSegment(t,e,s,i,r,a,n){r.setXYAt(e[0],e[1],"o",a),r.setXYAt(s[0],s[1],"i",a+1),n&&r.setXYAt(t[0],t[1],"v",a),r.setXYAt(i[0],i[1],"v",a+1)}addSegmentFromArray(t,e,s,i){e.setXYAt(t[1]??0,t[5]??0,"o",s),e.setXYAt(t[2]??0,t[6]??0,"i",s+1),i&&e.setXYAt(t[0]??0,t[4]??0,"v",s),e.setXYAt(t[3]??0,t[7]??0,"v",s+1)}addShapes(t,e,s){let i=s,{pathsData:r,shape:a}=t,n=a?.paths?.shapes??[],o=a?.paths?._length||0,h,l,p=0,c,m,u,d=[],f,g=!0;i?(m=i._length,f=i._length):(i=tZ(),m=0,f=0),d.push(i);for(let t=0;t<o;t++){let{lengths:s}=r[t]??{lengths:[]};for(i.c=n[t]?.c,l=n[t]?.c?s.length:s.length+1,h=1;h<l;h++){if(p+(c=s[h-1]).addedLength<e.s){p+=c.addedLength,i.c=!1;continue}if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+c.addedLength?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[h],n[t]?.v[h],i,m,g),g=!1):(u=tM(n[t]?.v[h-1],n[t]?.v[h],n[t]?.o[h-1],n[t]?.i[h],(e.s-p)/c.addedLength,(e.e-p)/c.addedLength,s[h-1]),this.addSegmentFromArray(u,i,m,g),g=!1,i.c=!1),p+=c.addedLength,m++}if(n[t]?.c&&s.length>0){if(c=s[h-1],p<=e.e){let r=s[h-1]?.addedLength??0;e.s<=p&&e.e>=p+r?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[0],n[t]?.v[0],i,m,g),g=!1):(u=tM(n[t]?.v[h-1],n[t]?.v[0],n[t]?.o[h-1],n[t]?.i[0],(e.s-p)/r,(e.e-p)/r,s[h-1]),this.addSegmentFromArray(u,i,m,g),g=!1,i.c=!1)}else i.c=!1;p+=c.addedLength,m++}if(i._length&&(i.setXYAt(i.v[f]?.[0]??0,i.v[f]?.[1]??0,"i",f),i.setXYAt(i.v[i._length-1]?.[0]??0,i.v[i._length-1]?.[1]??0,"o",i._length-1)),p>e.e)break;t<o-1&&(i=tZ(),g=!0,d.push(i),m=0)}return d}addShapeToModifier(t){t.pathsData=[]}calculateShapeEdges(t,e,s,i,r){let a=[];e<=1?a.push({e,s:t}):t>=1?a.push({e:e-1,s:t-1}):a.push({e:1,s:t},{e:e-1,s:0});let n=[],{length:o}=a;for(let t=0;t<o;t++)if(!((a[t]?.e??0)*r<i||(a[t]?.s??0)*r>i+s)){let e,o;e=(a[t]?.s??0)*r<=i?0:((a[t]?.s??0)*r-i)/s,o=(a[t]?.e??0)*r>=i+s?1:((a[t]?.e??0)*r-i)/s,n.push([e,o])}return 0===n.length&&n.push([0,0]),n}initModifierProperties(t,e){this.s=tU.getProp(t,e.s,0,.01,this),this.e=tU.getProp(t,e.e,0,.01,this),this.o=tU.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>0||this.e.effectsSequence.length>0||this.o.effectsSequence.length>0}processShapes(t){let e,s;if(this._mdf||t){let t=Number(this.o?.v)%360/360;if(t<0&&t++,(e=Number(this.s?.v)>1?1+t:0>Number(this.s?.v)?0+t:Number(this.s?.v)+t)>(s=Number(this.e?.v)>1?1+t:0>Number(this.e?.v)?0+t:Number(this.e?.v)+t)){let t=e;e=s,s=t}e=1e-4*Math.round(1e4*e),s=1e-4*Math.round(1e4*s),this.sValue=e,this.eValue=s}else e=this.sValue||0,s=this.eValue||0;let i,r,a,n,o,h,l=0,{length:p}=this.shapes;if(s===e)for(let t=0;t<p;t++){let e=this.shapes[t];e.localShapeCollection?.releaseShapes();let{localShapeCollection:s,shape:i}=e;i&&(i._mdf=!0,i.paths=s),this._mdf&&(e.pathsData.length=0)}else if((1!==s||0!==e)&&(0!==s||1!==e)){let c,m,u=[];for(let e=0;e<p;e++)if(c=this.shapes[e],c.shape?._mdf||this._mdf||t||2===this.m){if(i=c.shape?.paths,a=i?._length||0,h=0,!c.shape?._mdf&&c.pathsData.length>0)h=c.totalShapeLength;else{for(n=this.releasePathsData(c.pathsData),r=0;r<a;r++)i&&(o=tA(i.shapes[r]),n.push(o),h+=o.totalLength);c.totalShapeLength=h,c.pathsData=n}l+=Number(h),c.shape&&(c.shape._mdf=!0)}else c.shape&&(c.shape.paths=c.localShapeCollection);let d=e,f=s,g=0,y;for(let t=p-1;t>=0;t--)if(c=this.shapes[t],c.shape?._mdf){if(!(m=c.localShapeCollection))throw Error(`${this.constructor.name}: Could not set localShapeCollection`);for(m.releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,s,c.totalShapeLength||0,g,l),g+=Number(c.totalShapeLength)):y=[[d,f]],a=y.length,r=0;r<a;r++){d=y[r]?.[0]??0,f=y[r]?.[1]??0,u.length=0,f<=1?u.push({e:Number(c.totalShapeLength)*f,s:Number(c.totalShapeLength)*d}):d>=1?u.push({e:Number(c.totalShapeLength)*(f-1),s:Number(c.totalShapeLength)*(d-1)}):u.push({e:Number(c.totalShapeLength),s:Number(c.totalShapeLength)*d},{e:Number(c.totalShapeLength)*(f-1),s:0});let t={e:0,s:0},e=this.addShapes(c,u[0]??t);if(u[0]?.s!==u[0]?.e){if(u.length>1){let s=c.shape.paths?.shapes[c.shape.paths._length-1];if(s?.c){let s=e.pop();this.addPaths(e,m),e=this.addShapes(c,u[1]??t,s)}else this.addPaths(e,m),e=this.addShapes(c,u[1]??t)}this.addPaths(e,m)}}c.shape.paths=m}}else if(this._mdf)for(let t=0;t<p;t++){let e=this.shapes[t];e.pathsData.length=0;let{shape:s}=e;s&&(s._mdf=!0)}}releasePathsData(t){for(let e=0;e<t.length;e++)tk.release(t[e]);return t.length=0,t}}let ij=(t,e,s,i,r,a,n)=>{let o=s-Math.PI/2,h=s+Math.PI/2,l=e[0]+Math.cos(s)*i*r,p=e[1]-Math.sin(s)*i*r;t.setTripleAt(l,p,l+Math.cos(o)*a,p-Math.sin(o)*a,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())},iH=(t,e,s,i,r,a,n)=>{let o,h,l,p,c,m,u,d=(l=0===s?e.length()-1:s-1,p=(s+1)%e.length(),c=e.v[l],m=e.v[p],o=[m[0]-c[0],m[1]-c[1]],Math.atan2(0,1)-Math.atan2((u=[Math.cos(h=-(.5*Math.PI))*(o[0]??0)-Math.sin(h)*(o[1]??0),Math.sin(h)*(o[0]??0)+Math.cos(h)*(o[1]??0)])[1],u[0])),f=e.v[s%e._length],g=e.v[0===s?e._length-1:s-1],y=e.v[(s+1)%e._length],v=2===a?Math.sqrt(Math.pow(f[0]-g[0],2)+Math.pow(f[1]-g[1],2)):0,b=2===a?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;ij(t,e.v[s%e._length]??[0,0],d,n,i,b/((r+1)*2),v/((r+1)*2))},iW=(t,e,s,i,r,a)=>{let n=a;for(let a=0;a<i;a++){let o=(a+1)/(i+1),h=2===r?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,l=e.normalAngle(o);ij(t,e.point(o),l,n,s,h/((i+1)*2),h/((i+1)*2)),n=-n}return n};class iJ extends iM{initModifierProperties(t,e){this.getValue=this.processKeys,this.amplitude=tU.getProp(t,e.s,0,null,this),this.frequency=tU.getProp(t,e.r,0,null,this),this.pointsType=tU.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length>0||this.frequency.effectsSequence.length>0||this.pointsType.effectsSequence.length>0}processPath(t,e,s,i){let r=t._length,a=tZ();if(a.c=t.c,t.c||(r-=1),0===r)return a;let n=-1,o=iP(t,0);iH(a,t,0,e,s,i,n);for(let h=0;h<r;h++)n=iW(a,o,e,s,i,-n),o=h!==r-1||t.c?iP(t,(h+1)%r):null,iH(a,t,h+1,e,s,i,n);return a}processShapes(t){let e=Number(this.amplitude?.v),s=Math.max(0,Math.round(Number(this.frequency?.v))),i=Number(this.pointsType?.v);if(0!==e){let r,a,n;for(let o=0;o<this.shapes.length;o++){if(a=(r=this.shapes[o]).localShapeCollection,!(!r.shape?._mdf&&!this._mdf&&!t)){a?.releaseShapes(),r.shape&&(r.shape._mdf=!0),n=r.shape?.paths?.shapes??[];let{_length:t}=r.shape?.paths??{_length:0};for(let r=0;r<t;r++)a?.addShape(this.processPath(n[r],e,s,i))}r.shape&&(r.shape.paths=r.localShapeCollection)}}0===this.dynamicProperties.length&&(this._mdf=!1)}}let iU=!1;class iY{init(t){this.effectsManager=t,this.type=th.TransformEffect,this.matrix=new td,this.opacity=-1,this._mdf=!1,this._opMdf=!1}renderFrame(t){if(this._opMdf=!1,this._mdf=!1,!t&&!this.effectsManager?._mdf)return;let e=this.effectsManager?.effectElements??[],s=e[0]?.p.v,i=e[1]?.p.v,r=e[2]?.p.v===1,a=e[3]?.p.v,n=r?a:e[4]?.p.v,o=e[5]?.p.v,h=e[6]?.p.v,l=e[7]?.p.v;this.matrix?.reset(),this.matrix?.translate(-s[0],-s[1],s[2]),this.matrix?.scale(.01*n,.01*a,1),this.matrix?.rotate(-l*f),this.matrix?.skewFromAxis(-o*f,(h+90)*f),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)}constructor(){this.opacity=1}}let iX={},iK=["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"];for(let t=0;t<iK.length;t+=1){let e=iK[t];iX[e]=Math[e]}iX.random=Math.random,iX.abs=t=>{if($(t)){let e=tu(t.length),{length:s}=t;for(let i=0;i<s;i++)e[i]=Math.abs(t[i]??0);return e}return Math.abs(t)};class iZ{constructor(t,e,s){this.i=0,this.j=0,this.S=[],this._mask=s,this._width=e;let i=t,{length:r}=i,a=0,n=0,o,h=this.S;for(r||(i=[r++]);a<e;)h[a]=a++;for(a=0;a<this._width;a++){let t=o=h[a]??0,e=n=this._mask&n+(i[a%r]??0)+t;h[a]=h[e]??0,h[n]=o}}g(t){let e=t,s,i=0,r=this.S;for(;e--;){s=r[this.i=this._mask&this.i+1]??0;let t=this.j=this._mask&this.j+s,e=r[this.i]=r[t]??0,a=r[this.j]=s;i=i*this._width+(r[this._mask&e+a]??0)}return i}}function iQ(t,e){return e.i=t.i,e.j=t.j,e.S=[...t.S],e}function i0(t){return String.fromCharCode.apply(0,t)}let i1={};!function(t,e){let s="random",i=e.pow(256,6),r=e.pow(2,52),a=2*r;function n(t,e){let s=`${t}`,i=0,r=0;for(;r<s.length;)i^=(e[255&r]??0)*19,e[255&r]=255&i+s.charCodeAt(r++);return i0(e)}e[`seed${s}`]=function(o,h,l){let p=h,c=[],m=o,u=n(function t(e,s=0){let i=[],r=typeof e;if(s&&"object"===r){let r=Object.keys(e),{length:a}=r;for(let n=0;n<a;n++)try{i.push(t(e[r[n]]),s-1)}catch(t){}}return i.length>0?i:"string"===r?e:`${e}\0`}(m=(p=!0===p?{entropy:!0}:p??{})&&p.entropy?[o??"",i0(t)]:m??function(){try{let t=new Uint8Array(256);return global.crypto.getRandomValues(t),i0(t)}catch(i){P(i);let{navigator:{plugins:e},screen:s}=global;return[Date.now(),global,e,s,i0(t)]}}(),3),c),d=new iZ(c,256,255),f=()=>{let t=d.g(6),e=i,s=0;for(;t<r;)t=(t+s)*256,e*=256,s=d.g(1);for(;t>=a;)t/=2,e/=2,s>>>=1;return(t+s)/e};f.int32=()=>0|d.g(4),f.quick=()=>d.g(4)/0x100000000,f.double=f,n(i0(d.S),t);let g=(t,i,r,a)=>(a&&(iQ(a,d),t.state=()=>iQ(d,{})),r)?(e[s]=f,i):t;return p&&p.pass?g=p.pass:l&&(g=l),g(f,u,p&&"global"in p?p.global:this===e,p?p.state:void 0)},n(e.random(),t)}([],iX);let i2=[0,0,0,0,0,0],i3=tR(.333,0,.833,.833,"easeIn").get,i5=tR(.33,0,.667,1,"easeInOut").get,i4=tR(.167,.167,.667,1,"easeOut").get,i6=(t,e,s)=>{let i=s;return(i<0&&i++,i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},i8=t=>{let e,s,i,r=t[0]??0,a=t[1]??0,n=t[2]??0;if(0===a)e=n,i=n,s=n;else{let t=n<.5?n*(1+a):n+a-n*a,o=2*n-t;e=i6(o,t,r+1/3),s=i6(o,t,r),i=i6(o,t,r-1/3)}return[e,s,i,t[3]??0]},i9=t=>{let e=t[0],s=t[1],i=t[2],r=iX.max(e,s,i),a=iX.min(e,s,i),n=0,o,h=(r+a)/2;if(r===a)o=0;else{let t=r-a;switch(o=h>.5?t/(2-r-a):t/(r+a),r){case e:n=(s-i)/t+6*(s<i);break;case s:n=(i-e)/t+2;break;case i:n=(e-s)/t+4}n/=6}return[n,o,h,t[3]]};function i7(t){let e=typeof t;if("number"===e||t instanceof Number||"boolean"===e)return-t;if(rh(t)){let{length:e}=t,s=[];for(let i=0;i<e;i++)s[i]=-t[i];return s}return t.propType?t.v:-t}function rt(t,e,s,i){let r,a,{length:n}=t,o=tZ();o.setPathData(!!i,n);let h=[0,0];for(let i=0;i<n;i++)r=e[i]??h,a=s[i]??h,o.setTripleAt(t[i]?.[0]??0,t[i]?.[1]??0,a[0]+(t[i]?.[0]??0),a[1]+(t[i]?.[1]??0),r[0]+(t[i]?.[0]??0),r[1]+(t[i]?.[1]??0),i,!0);return o}function re(t,e,s,i,r,a){let n=e,o=r,h=a;void 0===o?(o=s,h=i):n=(n-s)/(i-s),n>1?n=1:n<0&&(n=0);let l=t(n);if(rh(o)&&rh(h)){let t,e=o.length,s=tm(te.Float32,e);for(t=0;t<e;t+=1)s[t]=(h[t]-o[t])*l+o[t];return s}return(h-o)*l+o}function rs(t,e,s,i,r){return re(i4,t,e,s,i,r)}function ri(t,e,s,i,r){return re(i3,t,e,s,i,r)}function rr(t,e,s,i,r){return re(i5,t,e,s,i,r)}function ra(t,e,s,i,r){let a=e,n=s,o=i,h=r;if((void 0===o||void 0===h)&&(o=a,h=n,a=0,n=1),n<a){let t=n;n=a,a=t}if(t<=a)return o;if(t>=n)return h;let l=n===a?0:(t-a)/(n-a);if(!L(o)&&!L(h))return o+(h-o)*l;if(L(o)&&L(h)){let{length:t}=o,e=tm(te.Float32,t);for(let s=0;s<t;s+=1)e[s]=(o[s]??0)+((h[s]??0)-(o[s]??0))*l;return e}return 0}function rn(t){return rp(t,rm(t))}function ro(t,e){let s=t,i=e;if(void 0===i&&(void 0===s?(s=0,i=1):(i=s,s=void 0)),$(i)){let{length:t}=i;s||(s=tm(te.Float32,t));let e=tm(te.Float32,t),r=iX.random();for(let a=0;a<t;a+=1)e[a]=(s[a]??0)+r*((i[a]??0)-(s[a]??0));return e}return(s=s??0)+iX.random()*(i-s)}function rh(t){return"object"==typeof t&&null!==t&&(t.constructor===Array||t.constructor===Float32Array)}function rl(t){return t*f}function rp(t,e){let s,i,r,a=typeof t,n=typeof e;if(rc(a,t)&&rc(n,e))return Number(t)/Number(e);if(rh(t)&&rc(n,e)){for(r=t.length,s=tm(te.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)/Number(e);return s}if(rc(a,t)&&rh(e)){for(r=e.length,s=tm(te.Float32,r),i=0;i<r;i+=1)s[i]=Number(t)/(e[i]??0);return s}return 0}function rc(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function rm(t,e){let s,i=e;if("number"==typeof t||t instanceof Number)return i=i||0,iX.abs(Number(t)-Number(i));i||(i=i2);let r=iX.min(t.length,i.length),a=0;for(s=0;s<r;s+=1)a+=iX.pow((i[s]??0)-(t[s]??0),2);return iX.sqrt(a)}function ru(t,e){let s=t,i=e;return"string"==typeof s&&(s=parseInt(s,10)),"string"==typeof i&&(i=parseInt(i,10)),s%i}function rd(t,e){let s,i,r,a=typeof t,n=typeof e;if(rc(a,t)&&rc(n,e))return Number(t)*Number(e);if(rh(t)&&rc(n,e)){for(r=t.length,s=tm(te.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)*Number(e);return s}if(rc(a,t)&&rh(e)){for(r=e.length,s=tm(te.Float32,r),i=0;i<r;i++)s[i]=Number(t)*(e[i]??0);return s}return 0}function rf(t){return t}function rg(t){return t/f}function ry(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rc(r,s)&&rc(a,i))return"string"===r&&(s=parseInt(s,10)),"string"===a&&(i=parseInt(i,10)),s-i;if(rh(s)&&rc(a,i))return s=[...s],s[0]-=Number(i),s;if(rc(r,s)&&rh(i))return(i=[...i])[0]=Number(s)-i[0],i;if(rh(s)&&rh(i)){let t=0,e=s.length,r=i.length,a=[];for(;t<e||t<r;){if(("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)){a[t]=(s[t]??0)-(i[t]??0),t++;continue}a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++}return a}return 0}function rv(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rc(r,s)&&rc(a,i)||"string"===r||"string"===a)return Number(s)+Number(i);if(rh(s)&&rc(a,i))return s=[...s],s[0]+=Number(i),s;if(rc(r,s)&&rh(i))return(i=[...i])[0]=s+i[0],i;if(rh(s)&&rh(i)){let t=0,{length:e}=s,{length:r}=i,a=[];for(;t<e||t<r;){if(("number"==typeof s[t]||s[t]instanceof Number)&&("number"==typeof i[t]||i[t]instanceof Number)){a[t]=(s[t]??0)+(i[t]??0),t++;continue}a[t]=void 0===i[t]?s[t]:s[t]||i[t],t++}return a}return 0}let rb={initiateExpression:function(t,e,s){if(!t.globalData?.renderConfig?.runExpressions)return rf;if(!t.comp?.globalData)throw Error("CompElement is not implemented");let{k:i,x:r}=e,a=/velocity\b/.test(r),n=r.includes("random"),{ip:o,nm:h,op:l,sh:p=0,sw:c=0,ty:m}=t.data,u,d,g,y=0,v;s._name=h,s.valueAtTime=s.getValueAtTime,Object.defineProperty(s,"value",{get:()=>s.v}),t.comp.frameDuration=1/t.comp.globalData.frameRate,t.comp.displayStartTime=0;let b=o/t.comp.globalData.frameRate,_=l/t.comp.globalData.frameRate,x=null,w=null,S=null,E=null,k,P=null,M,A=null,T=null,D=null,I=null,F=null,L=null,N,V={},R=Function("_lottieGlobal","$bm_div","$bm_mod","$bm_mul","$bm_neg","$bm_sub","$bm_sum","$bm_transform","active","add","anchorPoint","clamp","comp","content","createPath","degrees_to_radians","degreesToRadians","div","document","ease","easeIn","easeOut","effect","fetch","frames","framesToTime","fromComp","fromCompToSurface","fromWorld","globalData","height","hslToRgb","index","inPoint","key","length","linear","lookAt","loop_in","loop_out","loopIn","loopInDuration","loopOut","loopOutDuration","mask","mod","mul","name","nearestKey","normalize","numKeys","obj","outPoint","position","posterizeTime","propertyIndex","radians_to_degrees","radiansToDegrees","random","randSeed","rgbToHsl","rotation","scale","seedRandom","selectorValue","smooth","sourceRectAtTime","sub","substr","substring","text","textIndex","textTotal","thisComp","thisLayer","thisProperty","time","timeToFrames","toComp","toWorld","transform","value","valueAtTime","velocity","width","wiggle","window","XMLHttpRequest","globalThis","top","parent","location","navigator",`
2
2
  ${r}
3
- obj.scoped_bm_rt = $bm_rt;`),O=0,z,B=null,G,q,j,H,W=s.kf?i.length:0,J=e.ix,U=!this.data||!0!==this.data.hd,Y=(t=5,e=20)=>{let{pv:s}=this,i=$(s)?s.length:1,r=tm(te.Float32,i),a=iX.floor(O*t),n=0;for(;n<a;){for(let t=0;t<i;t++)r[t]=(r[t]??0)+-e+2*e*iX.random();n++}let o=O*t,h=o-iX.floor(o),l=tm(te.Float32,i);if(i>1){for(let t=0;t<i;t++)l[t]=s[t]+r[t]+(-e+2*e*iX.random())*h;return l}return s+r[0]+(-e+2*e*iX.random())*h};function X(t,e){k(t,e,!0)}function K(t,e){M(t,e,!0)}s.loopIn&&(P=k=s.loopIn.bind(s)),s.loopOut&&(A=M=s.loopOut.bind(s)),s.smooth&&(D=s.smooth.bind(s));let Z=this.getValueAtTime.bind(this),Q=this.getVelocityAtTime.bind(this),{frameRate:tt,projectInterface:ts}=t.comp.globalData;function ti(t,e){let s=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=iX.atan2(s[0],iX.sqrt(s[1]*s[1]+s[2]*s[2]))/f;return[-iX.atan2(s[1],s[2])/f,i,0]}function tr(t){let s=t,r,a=i.length,n,o=0;if(0===i.length||"number"==typeof i[0])return{index:0,time:0};if(n=-1,(s*=tt)<(i[0]?.t??0))return{index:1,time:(i[0]?.t??0)/tt};for(r=0;r<a-1;r+=1)if(s===i[r]?.t){n=r+1,o=i[r]?.t??0;break}else if(s>(i[r]?.t??0)&&s<(i[r+1]?.t??0)){s-(i[r]?.t??0)>(i[r+1]?.t??0)-s?(n=r+2,o=i[r+1]?.t??0):(n=r+1,o=i[r]?.t??0);break}return -1===n&&(n=r+1,o=e.k[r]?.t??0),{index:n,time:o/tt}}function ta(t){let s=t;if(0===e.k.length||"number"==typeof e.k[0])throw Error(`The property has no keyframe at index ${s}`);s-=1;let i={time:(e.k[s]?.t??0)/tt,value:[]},r=(Object.hasOwn(e.k[s]??{},"s")?e.k[s]?.s:e.k[s-1]?.e)??[],{length:a}=r;for(let t=0;t<a;t+=1)i[t]=r[t],i.value[t]=r[t];return i}function tn(t,e){let s=e;return s||(s=tt),t/s}function to(t,e){let s=t,i=e;return s||0===s||(s=O),i||(i=tt),s*i}function th(t){iX.seedrandom(y+t)}function tp(){return t.sourceRectAtTime()}function tc(t,e){return"string"==typeof B?void 0===e?B.slice(iX.max(0,t)):B.slice(t,e):""}function tu(t,e){return"string"==typeof B?void 0===e?B.slice(t):B.slice(t,e):""}let td=t.data.ind,tf=t.hierarchy.length>0,tg=null;y=iX.floor(1e6*iX.random());let{globalData:ty}=t;function tv(t){B=Z(O=0===t?0:iX.floor(O*t)/t)}return function(e){return(B=e,this.frameExpressionId===ty.frameId&&this.propType!==tl.TextSelector)?B:(this.propType===tl.TextSelector&&(q=this.textIndex??0,j=this.textTotal??0,H=this.selectorValue),N||(G=t.layerInterface?.text,N=t.layerInterface,I=t.comp?.compInterface??null,L=N?.toWorld.bind(N)??null,E=N?.fromWorld.bind(N)??null,w=N?.fromComp.bind(N)??null,F=N?.toComp.bind(N)??null,T=N?.mask??null,S=w),!v&&(u=v=t.layerInterface?.getInterface("ADBE Transform Group"),v&&(x=v.anchorPoint)),4!==m||d||(d=N?.getInterface("ADBE Root Vectors Group")),g=g??N?.getInterface(4),t.hierarchy.length>0&&!tg&&(tg=t.hierarchy[0]?.layerInterface??null),O=(this.comp?.renderedFrame??0)/(this.comp?.globalData?.frameRate??60),n&&th(y+O),a&&(z=Q(O)),R(i0,rl,rm,ru,i9,rg,ry,u,U,ry,x,C,ts,d,i7,rf,rh,rl,null,ri,rs,re,g,null,null,tn,w,S,E,ty,p,i6,td,b,ta,rc,rr,ti,P,A,k,X,M,K,T,rm,ru,h,tr,ra,W,V,_,null,tv,J,rf,rf,rn,y,i8,null,null,th,H,D,tp,rg,tu,tc,G,q,j,I,N,s,O,to,F,L,v,B,Z,z,c,Y,null,null,null,null,null,null,null),this.frameExpressionId=ty.frameId,V.scoped_bm_rt?.propType===tl.Shape?V.scoped_bm_rt.v:V.scoped_bm_rt)}},resetFrame:function(){i0={}}},rb={getSpeedAtTime:function(t){let e=this.getValueAtTime(t),s=this.getValueAtTime(t+-.01),i=0;if($(e)&&$(s)){let{length:t}=e;for(let r=0;r<t;r++)i+=Math.pow(s[r]-e[r],2);i=100*Math.sqrt(i)}return i},getStaticValueAtTime:function(t,e){return this.pv},getValueAtTime:function(t){let e=t;return e*=this.elem?.globalData?.frameRate??60,e-=this.offsetTime,this._cachingAtTime&&e!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime?.value},getVelocityAtTime:function(t){let e;if(void 0!==this.vel)return this.vel;let s=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if($(s)&&$(i)){let{length:t}=s;e=tm(te.Float32,t);for(let r=0;r<t;r++)e[r]=-((i[r]-s[r])/.001);return e}return-((i-s)/.001)},searchExpressions:function(t,e,s){e?.x&&s&&(s.k=!0,s.x=!0,s.initiateExpression=rv.initiateExpression,s.effectsSequence.push(s.initiateExpression(t,e,s).bind(s)))},setGroupProperty:function(t){this.propertyGroup=t}};class r_ extends t6{inTangents(t){return this.vertices("i",t)}isClosed(){return!!this.v?.c}normalOnPath(t,e){return this.vectorOnPath(t,e,"normal")}outTangents(t){return this.vertices("o",t)}pointOnPath(t,e){let s,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),!this._segmentsLength&&i&&(this._segmentsLength=tA(i));let r=this._segmentsLength,{lengths:a}=r??{lengths:[]},n=(r?.totalLength??0)*t,o=0,h=a.length,l=0;for(;o<h;){if(l+a[o].addedLength>n){let t=o,e=i?.c&&o===h-1?0:o+1,r=(n-l)/a[o].addedLength;i&&(s=tN(i.v[t],i.v[e],i.o[t],i.i[e],r,a[o]));break}l+=a[o].addedLength,o++}return i&&(s=s??(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])),s}points(t){return this.vertices("v",t)}tangentOnPath(t,e){return this.vectorOnPath(t,e,"tangent")}vectorOnPath(t,e,s){let i=t;1==i?i=Number(this.v?.c):0==i&&(i=.999);let r=this.pointOnPath(i,e)??[],a=this.pointOnPath(i+.001,e)??[],n=a[0]-r[0],o=a[1]-r[1],h=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));return 0===h?[0,0]:"tangent"===s?[n/h,o/h]:[-o/h,n/h]}vertices(t,e){this.k&&this.getValue();let s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));let i=s?._length??0,r=s?.[t],a=s?.v,n=tu(i);for(let e=0;e<i;e+=1)"i"===t||"o"===t?n[e]=[r[e][0]-a[e][0],r[e][1]-a[e][1]]:n[e]=[r[e][0],r[e][1]];return n}constructor(...t){super(...t),this.getValueAtTime=rb.getStaticValueAtTime,this.setGroupProperty=rb.setGroupProperty}}function rx(t,e,s){let i,r,a;if(!this.k||this.keyframes?.length===0)return this.pv;let n=e,{comp:o,elem:h,keyframes:l=[],pv:p}=this;if(!h?.comp)throw Error("Element is not implemented");if(!o)throw Error("Comp is not implemented");let c=t?t.toLowerCase():"",m=o.renderedFrame,u=l[l.length-1]?.t??0,{frameRate:d}=h.comp.globalData??{frameRate:60};if(m<=u)return p;let f,g=0;switch(s?f=n?Math.abs(u-d*n):Math.max(0,u-h.data.ip):((!n||n>l.length-1)&&(n=l.length-1),f=u-(g=l[l.length-1-n]?.t??0)),c){case"pingpong":if(Math.floor((m-g)/f)%2!=0)return this.getValueAtTime((f-(m-g)%f+g)/d,0);break;case"offset":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime(u/d,0),s=this.getValueAtTime(((m-g)%f+g)/d,0),n=Math.floor((m-g)/f);if($(p)&&$(t)&&$(e)&&$(s)){for(r=(a=Array.from({length:t.length})).length,i=0;i<r;i++)a[i]=(e[i]-t[i])*n+s[i];return a}return(e-t)*n+s}case"continue":{let t=this.getValueAtTime(u/d,0),e=this.getValueAtTime((u-.001)/d,0);if($(p)&&$(t)&&$(e)){for(r=(a=Array.from({length:t.length})).length,i=0;i<r;i+=1)a[i]=t[i]+(t[i]-e[i])*((m-u)/d)/5e-4;return a}return t+(m-u)/.001*(t-e)}}return this.getValueAtTime(((m-g)%f+g)/d,0)}function rw(t,e,s){let i,r,a,n,o;if(!this.k)return this.pv;let h=e,{comp:l,elem:p,keyframes:c=[],pv:m}=this;if(!p?.comp)throw Error("Element is not implemented");if(!l)throw Error("Comp is not implemented");let{frameRate:u}=p.comp.globalData??{frameRate:60},d=t?t.toLowerCase():"",f=l.renderedFrame,g=c[0]?.t??0;if(f>=g)return m;switch(s?(i=h?Math.abs(u*h):Math.max(0,p.data.op-g),r=g+i):((!h||h>c.length-1)&&(h=c.length-1),i=(r=c[h]?.t??0)-g),d){case"pingpong":if(Math.floor((g-f)/i)%2==0)return this.getValueAtTime(((g-f)%i+g)/u,0);break;case"offset":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime(r/u,0),s=this.getValueAtTime((i-(g-f)%i+g)/u,0),h=Math.floor((g-f)/i)+1;if($(m)&&$(t)&&$(e)&&$(s)){for(n=(o=Array.from({length:t.length})).length,a=0;a<n;a+=1)o[a]=s[a]-(e[a]-t[a])*h;return o}return s-(e-t)*h}case"continue":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime((g+.001)/u,0);if($(m)&&$(t)&&$(e)){for(n=(o=Array.from({length:t.length})).length,a=0;a<n;a+=1)o[a]=t[a]+(t[a]-e[a])*(g-f)/.001;return o}return t+(t-e)*(g-f)/.001}}return this.getValueAtTime((i-((g-f)%i+g))/u,0)}function rS(t,e){let s,{comp:i,k:r,pv:a}=this;if(!r)return a;let{renderedFrame:n}=i??{renderedFrame:0},{frameRate:o}=i?.globalData??{frameRate:60},h=.5*(t||.4),l=Math.floor(e||5);if(l<=1)return a;let p=n/o,c=p-h,m=l>1?(p+h-c)/(l-1):1,u=0,d,f;for(f=$(a)?tm(te.Float32,a.length):0;u<l;){if(s=this.getValueAtTime(c+u*m),$(a)&&$(f)&&$(s)){let{length:t}=a;for(d=0;d<t;d++)f[d]+=s[d];u++;continue}f+=s,u++}if($(a)&&$(f)){let{length:t}=a;for(d=0;d<t;d++)f[d]/=l;return f}return f/l}function rE(t){this._transformCachingAtTime=this._transformCachingAtTime??{v:new td};let{v:e}=this._transformCachingAtTime,{mult:s=1}=this.a??{mult:1},{mult:i=1}=this.s??{mult:1};if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){let i=this.a?.getValueAtTime(t)??[0,0,0];e.translate(-i[0]*s,-i[1]*s,i[2]*s)}if(this.appliedTransformations<2){let s=this.s?.getValueAtTime(t)??[0,0,0];e.scale(s[0]*i,s[1]*i,s[2]*i)}if(this.sk&&this.appliedTransformations<3){let s=this.sk.getValueAtTime(t),i=this.sa?.getValueAtTime(t)??0;e.skewFromAxis(-s*(this.sk.mult??1),i*(this.sa?.mult??1))}if(this.r&&this.appliedTransformations<4){let s=this.r.getValueAtTime(t);e.rotate(-s*(this.r.mult??1))}else if(!this.r&&this.appliedTransformations<4){let s=Number(this.rz?.getValueAtTime(t)),i=Number(this.ry?.getValueAtTime(t)),r=Number(this.rx?.getValueAtTime(t)),a=this.or?.getValueAtTime(t)??[];e.rotateZ(-s*(this.rz?.mult??1)).rotateY(i*(this.ry?.mult??1)).rotateX(r*(this.rx?.mult??1)).rotateZ(-a[2]*(this.or?.mult??1)).rotateY(a[1]*(this.or?.mult??1)).rotateX(a[0]*(this.or?.mult??1))}if(this.data.p?.s){let s=this.px?.getValueAtTime(t),i=this.py?.getValueAtTime(t);if(this.data.p.z){let r=this.pz?.getValueAtTime(t);e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),-r*(this.pz?.mult??1))}else e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),0)}else{let s=this.p?.getValueAtTime(t)??[0,0,0];e.translate(s[0]*(this.p?.mult??1),s[1]*(this.p?.mult??1),-s[2]*(this.p?.mult??1))}return e}function rk(){return this.v.clone(new td)}function rC(t,e){this._cachingAtTime=this._cachingAtTime??{lastIndex:0,lastTime:-999999,shapeValue:t0(this.pv)};let s=t;return s*=this.elem?.globalData?.frameRate??60,(s-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<s?this._caching?.lastIndex??0:0,this._cachingAtTime.lastTime=s,this.interpolateShape(s,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}class rP{constructor(t){this.displayStartTime=0,this.pixelAspect=1,this.comp=t,this._name=t.data?.nm,this.layer=this,this.height=t.data?.h||t.globalData?.compSize?.h,this.width=t.data?.w||t.globalData?.compSize?.w,this.frameDuration=1/(t.globalData?.frameRate??60),this.numLayers=t.layers?.length}getInterface(t){let e=0,{length:s}=this.comp.layers??[];for(;e<s;){if(this.comp.layers?.[e]?.nm===t||this.comp.layers?.[e]?.ind===t)return this.comp.elements[e]?.layerInterface??null;e++}return null}}let{resetFrame:rM}=rv,rA={initExpressions:function(t){let e=0,s=[];if(!t.renderer.globalData)throw Error("Renderer -> GlobalData is not set");t.renderer.compInterface=new rP(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e++},t.renderer.globalData.popExpression=function(){0==--e&&function(){let{length:t}=s;for(let e=0;e<t;e++)s[e]?.release?.();s.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){s.includes(t)||s.push(t)}},resetFrame:rM};function rT(){return this.data.d?.x?(this.calculateExpression=rv.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}tt=Symbol.toPrimitive;class rD{constructor(t){this.value=t,this[0]=t}set(t){return this.value=t,this[0]=t,this}[tt](t){return"string"===t?`${this.value}`:this.value}toExponential(...t){return Number.prototype.toExponential.apply(this.value,t)}toFixed(...t){return Number.prototype.toFixed.apply(this.value,t)}toJSON(){return this.value}toLocaleString(...t){return Number.prototype.toLocaleString.apply(this.value,t)}toPrecision(...t){return Number.prototype.toPrecision.apply(this.value,t)}toString(...t){return Number.prototype.toString.apply(this.value,t)}valueOf(){return this.value}}class rI{completeProperty(t,e,s){Object.defineProperty(t,"velocity",{get:()=>e.getVelocityAtTime(e.comp?.currentFrame??0)}),t.numKeys=e.keyframes?.length??0,t.key=i=>{let r;if(!t.numKeys)return 0;let a=e.keyframes??[];r="s"in a[i-1]?a[i-1].s:"e"in a[i-2]?a[i-2].e:a[i-2].s;let n=a[i-1].t/(e.elem?.comp?.globalData?.frameRate??60);return s===tl.UniDimensional?Object.assign(new rD(Array.isArray(r)?r[0]:r),{time:n}):Object.assign({},r,{time:n,value:r})},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}defaultGetter(){return this.defaultUnidimensionalValue}getInterface(t){return t?t.propType===tl.UniDimensional?this.UnidimensionalPropertyInterface(t):this.MultidimensionalPropertyInterface(t):()=>this.defaultGetter()}MultidimensionalPropertyInterface(t){let e=t;e&&"pv"in e||(e=this.defaultMultidimensionalValue);let s=1/e?.mult,i=e.data?.l??e.pv.length,r=tm(te.Float32,i),a=tm(te.Float32,i);return r.value=a,this.completeProperty(r,e,tl.MultiDimensional),()=>{e.k&&e.getValue();for(let t=0;t<i;t+=1)a[t]=e.v[t]*s,r[t]=a[t];return r}}UnidimensionalPropertyInterface(t){let e=t;e&&"pv"in e||(e=this.defaultUnidimensionalValue);let s=1/e.mult,i=new rD(e.pv*s);return this.completeProperty(i,e,tl.UniDimensional),()=>(e.k&&e.getValue(),i.set(e.v*s))}constructor(){this.defaultMultidimensionalValue={mult:1,pv:[0,0,0],v:[0,0,0]},this.defaultUnidimensionalValue={mult:1,pv:0,v:0}}}function rF(t){return new rI().getInterface(t)}class rL{constructor(t,e){this.interfaceFunction=t,this.parentPropertyGroup=e}getInterface(t=1){return t<=0?this.interfaceFunction:this.parentPropertyGroup.getInterface(t-1)}}class r${constructor(t,e){this._name=t,this.propertyGroup=e}getInterface(t){return t<=0?this:this.propertyGroup.getInterface(t-1)}}class rN{get numProperties(){return this.effects.length}constructor(t,e){this.effects=t,this.effectElements=e}getInterface(t){let e=0,{length:s}=this.effects;for(;e<s;){if([this.effects[e].nm,this.effects[e].mn,this.effects[e].ix].includes(t))return this.effectElements[e];e++}return null}}class rV{get maskOpacity(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}get maskPath(){return this._mask.prop?.k&&this._mask.prop.getValue(),this._mask.prop}constructor(t,e){this._mask=t,this._data=e}}class rR{constructor(t,e){this.maskManager=t,this._masksInterfaces=tu(t.viewData.length);let{length:s}=t.viewData;for(let e=0;e<s;e++)this._masksInterfaces[e]=new rV(t.viewData[e],t.masksProperties[e])}getInterface(t){let e=0;for(;e<length;){if(this.maskManager.masksProperties[e]?.nm===t)return this._masksInterfaces[e];e++}return null}}class rO{get anchorPoint(){return rF(this.transform.a)}get opacity(){return rF(this.transform.o)}get orientation(){return rF(this.transform.or)}get position(){return this.transform.p?this._transformFactory?.():[this._px?.(),this._py?.(),this._pz?.()??0]}get rotation(){return rF(this.transform.r??this.transform.rz)}get scale(){return rF(this.transform.s)}get skew(){return rF(this.transform.sk)}get skewAxis(){return rF(this.transform.sa)}get xPosition(){return rF(this.transform.px)}get xRotation(){return rF(this.transform.rx)}get yPosition(){return rF(this.transform.py)}get yRotation(){return rF(this.transform.ry)}get zPosition(){return rF(this.transform.pz)}get zRotation(){return rF(this.transform.rz??this.transform.r)}constructor(t){this.transform=t,t.p?this._transformFactory=rF(t.p):(this._px=rF(t.px),this._py=rF(t.py),t.pz&&(this._pz=rF(t.pz)))}getInterface(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return this.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return this.rotation;case"ADBE Rotate X":return this.xRotation;case"ADBE Rotate Y":return this.yRotation;case"position":case"Position":case"ADBE Position":case 2:return this.position;case"ADBE Position_0":return this.xPosition;case"ADBE Position_1":return this.yPosition;case"ADBE Position_2":return this.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return this.anchorPoint;case"opacity":case"Opacity":case 11:return this.opacity;default:return null}}}class rz{getInterface(t){throw Error("Method not implemented")}}class rB extends rz{getInterface(t){let e=0,{length:s}=this.interfaces;for(;e<s;){if(this.interfaces[e]?._name===t||this.interfaces[e]?.mn===t||this.interfaces[e]?.propertyIndex===t||this.interfaces[e]?.ix===t||this.interfaces[e]?.ind===t)return this.interfaces[e];e++}return"number"==typeof t?this.interfaces[t-1]:null}constructor(...t){super(...t),this.interfaces=[]}}class rG extends rz{get position(){return rF(this.prop?.p)}get size(){return rF(this.prop?.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.s?.ix===t?this.size:null}constructor(...t){super(...t),this.prop=void 0}}class rq extends rz{get color(){return rF(this.c)}get opacity(){return rF(this.o)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:null}}class rj extends rz{get endPoint(){return rF(this.prop?.e)}get opacity(){return rF(this.prop?.o)}get startPoint(){return rF(this.prop?.s)}get type(){return"a"}getInterface(t){return"Start Point"===t||"start point"===t?this.startPoint:"End Point"===t||"end point"===t?this.endPoint:"Opacity"===t||"opacity"===t?this.opacity:null}constructor(...t){super(...t),this.prop=void 0}}class rH extends rz{get _name(){return this.shape?.nm}getInterface(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return this.content;default:return this.transform}}}class rW extends rz{get position(){return rF(this.prop?.p)}get roundness(){return rF(this.prop?.r)}get size(){return rF(this.prop?.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.roundness:this.shape?.s?.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?this.size:null}constructor(...t){super(...t),this.prop=void 0}}class rJ extends rz{get copies(){return rF(this.prop?.c)}get offset(){return rF(this.prop?.o)}getInterface(t){return this.shape?.c?.ix===t||"Copies"===t?this.copies:this.shape?.o?.ix===t||"Offset"===t?this.offset:null}constructor(...t){super(...t),this.prop=void 0}}class rU extends rz{get radius(){return rF(this.prop?.rd)}getInterface(t){return this.shape?.r?.ix===t||"Round Corners 1"===t?this.radius:null}constructor(...t){super(...t),this.prop=void 0}}class rY{get path(){return this.prop?.k&&this.prop.getValue(),this.prop}get shape(){return this.path}constructor(t,e,s){this.prop=e.sh;let i=new rL(this,s);this.prop?.setGroupProperty(new r$("Path",i)),this._name=t.nm,this.ix=t.ix,this.mn=t.mn,this.propertyGroup=s,this.propertyIndex=t.ix}getInterface(t){return["Shape","shape","Path","path","ADBE Vector Shape",2].includes(t)?this.path:null}}class rX extends rz{get innerRadius(){return rF(this.prop?.ir)}get innerRoundness(){return rF(this.prop?.is)}get outerRadius(){return rF(this.prop?.or)}get outerRoundness(){return rF(this.prop?.os)}get points(){return rF(this.prop?.pt)}get position(){return rF(this.prop?.p)}get rotation(){return rF(this.prop?.r)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.rotation:this.shape?.pt?.ix===t?this.points:this.shape?.or?.ix===t||"ADBE Vector Star Outer Radius"===t?this.outerRadius:this.shape?.os?.ix===t?this.outerRoundness:this.shape?.ir?.ix===t||"ADBE Vector Star Inner Radius"===t?this.innerRadius:this.shape?.is?.ix===t?this.innerRoundness:null}constructor(...t){super(...t),this.prop=void 0}}class rK extends rz{get color(){return rF(this.prop?.c)}get dash(){return this.dashOb}get opacity(){return rF(this.prop?.o)}get strokeWidth(){return rF(this.prop?.w)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:"Stroke Width"===t||"stroke width"===t?this.strokeWidth:null}constructor(...t){super(...t),this.prop=void 0}}class rZ extends rz{get anchorPoint(){return rF(this.prop?.transform?.mProps.a)}get opacity(){return rF(this.prop?.transform?.mProps.o)}get position(){return rF(this.prop?.transform?.mProps.p)}get rotation(){return rF(this.prop?.transform?.mProps.r)}get scale(){return rF(this.prop?.transform?.mProps.s)}get skew(){return rF(this.prop?.transform?.mProps.sk)}get skewAxis(){return rF(this.prop?.transform?.mProps.sa)}getInterface(t){return this.shape?.a?.ix===t||"Anchor Point"===t?this.anchorPoint:this.shape?.o?.ix===t||"Opacity"===t?this.opacity:this.shape?.p?.ix===t||"Position"===t?this.position:this.shape?.r?.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?this.rotation:this.shape?.s?.ix===t||"Scale"===t?this.scale:this.shape?.sk?.ix===t||"Skew"===t?this.skew:this.shape?.sa?.ix===t||"Skew Axis"===t?this.skewAxis:null}constructor(...t){super(...t),this.prop=void 0}}class rQ extends rz{get end(){return rF(this.prop?.e)}get offset(){return rF(this.prop?.o)}get start(){return rF(this.prop?.s)}getInterface(t){return t===this.shape?.e?.ix||"end"===String(t).toLowerCase()?this.end:t===this.shape?.s?.ix?this.start:t===this.shape?.o?.ix?this.offset:null}constructor(...t){super(...t),this.prop=void 0}}let r0={comp:rP,effects:class{createEffectsInterface(t,e){if(t.effectsManager){this.effectsData=t.data?.ef??[];let{length:s}=t.effectsManager.effectElements;for(let i=0;i<s;i++)this.effectElements.push(this.createGroupInterface(this.effectsData[i],t.effectsManager.effectElements[i],e,t));return this.effects=t.data?.ef??[],new rN(this.effects,this.effectElements)}return null}createGroupInterface(t,e,s,i){let r=e=>{let s=t.ef??[],i=0,{length:r}=s;for(;i<r;){if([s[i].nm,s[i].mn,s[i].ix].includes(e)){if(5===s[i].ty)return this.effectElements[i];return this.effectElements[i]()}i++}throw Error("Could not create Group Interface")},a=new rL(r,s),{length:n}=t.ef??[];for(let s=0;s<n;s+=1)t.ef?.[s].ty===5?this.effectElements.push(this.createGroupInterface(t.ef[s],e.effectElements[s],e.effectElements[s].propertyGroup,i)):this.effectElements.push(this.createValueInterface(e.effectElements[s],t.ef[s].ty,i,a));return"ADBE Color Control"===t.mn&&Object.defineProperty(r,"color",{get(){return this.effectElements[0]()}}),Object.defineProperties(r,{_name:{value:t.nm},numProperties:{get:()=>t.np},propertyGroup:{value:a}}),r.enabled=0!==t.en,r.active=r.enabled,r}createValueInterface(t,e,s,i){let r=rF(t.p);return t.p?.setGroupProperty&&t.p.setGroupProperty(new r$("",i)),function(){return 10===e?s.comp?.compInterface?.getInterface(t.p?.v):r()}}constructor(){this.effectElements=[],this.effects=[],this.effectsData=[]}},footage:class{constructor(t){this.currentPropertyName="",this.elem=t,this._name="Data",this.dataInterface=this.dataInterfaceFactory(t)}dataInterfaceFactory(t){return this._name="Outline",this.outlineInterface=this.outlineInterfaceFactory(t),this}getInterface(t){return"Data"===t?this.dataInterface:"Outline"===t?void this.outlineInterface():null}init(){return this.currentPropertyName="",this.currentProperty=this.elem.getFootageData(),this.searchProperty}outlineInterface(t){throw Error("Method is not implemented")}outlineInterfaceFactory(t){return this.currentPropertyName="",this.currentProperty=t.getFootageData(),this.elem=t,this.init}searchProperty(t){if(this.currentProperty?.[t])return(this.currentPropertyName=t,this.currentProperty=this.currentProperty[t],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty;let e=t.indexOf(this.currentPropertyName);if(-1!==e){let s=parseInt(t.slice(e+this.currentPropertyName.length),10);return(this.currentProperty=this.currentProperty?.[s],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty}return""}},layer:class{get active(){return this._elem.isInRange}get hasParent(){return this._elem.hierarchy.length>0}get parent(){return this._elem.hierarchy[0]?.layerInterface??null}get transform(){return this.transformInterface}constructor(t){if(this.sourceRectAtTime=t.sourceRectAtTime.bind(t),this._elem=t,!t.finalTransform)throw Error(`FinalTransform is not iplemented in ${t.constructor.name}`);this.transformInterface=new rO(t.finalTransform.mProp);let{anchorPoint:e,opacity:s,position:i,rotation:r,scale:a}=this.transformInterface;this.anchor_point=e,this.anchorPoint=e,this.opacity=s,this.position=i,this.rotation=r,this.scale=a,this.toComp=this.toWorld;let{frameRate:n}=t.comp?.globalData??{frameRate:60};this.startTime=t.data.st,this.index=t.data.ind,this.source=t.data.refId,this.height=0===t.data.ty?t.data.h:100,this.width=0===t.data.ty?t.data.w:100,this.inPoint=t.data.ip/n,this.outPoint=t.data.op/n,this._name=t.data.nm}applyPoint(t,e){if(this._elem.hierarchy.length>0){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s]?.finalTransform?.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0]??0,e[1]??0,e[2]??0)}fromComp(t){let e=new td;if(e.reset(),this._elem.finalTransform?.mProp.applyToMatrix(e),this._elem.hierarchy.length>0){let t,s=this._elem.hierarchy.length;for(t=0;t<s;t+=1)this._elem.hierarchy[t]?.finalTransform?.mProp.applyToMatrix(e)}return e.inversePoint(t)}fromWorld(t,e){let s=this.getMatrix(e);return this.invertPoint(s,t)}fromWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.invertPoint(s,t)}getInterface(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return this.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return this.transformInterface;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return this.effect;case"ADBE Text Properties":return this.textInterface;default:return null}}getMatrix(t){let e=new td;if(void 0===t){let t=this._elem.finalTransform?.mProp;t?.applyToMatrix(e)}else(this._elem.finalTransform?.mProp.getValueAtTime(t)).clone(e);return e}invertPoint(t,e){if(this._elem.hierarchy.length>0){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s]?.finalTransform?.mProp.applyToMatrix(t)}return t.inversePoint(e)}registerEffectsInterface(t){this.effect=t}registerMaskInterface(t){this.mask=new rR(t,this._elem)}sampleImage(){return[1,1,1,1]}toComp(t,e){throw Error("Method is not implemented")}toWorld(t,e){let s=this.getMatrix(e);return this.applyPoint(s,t)}toWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.applyPoint(s,t)}},shape:class{constructor(t,e,s){this._name="Contents",this.arr=[],this.parentGroup=s,this.propertyGroup=new rL(this,this.parentGroupWrapper),this.interfaces=this.iterateElements(t,e,this.propertyGroup),this.numProperties=this.interfaces.length}contentsInterfaceFactory(t,e,s){rB.prototype.propertyGroup=new rL(rB,s),this.interfaces=this.iterateElements(t.it??null,e.it,rB.prototype.propertyGroup),rB.prototype.numProperties=this.interfaces.length;let i=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],rB.prototype.propertyGroup);return rB.prototype.transform=i,rB.prototype.propertyIndex=t.cix,rB.prototype._name=t.nm,rB.prototype.getInterface}defaultInterfaceFactory(){return this.noOp}ellipseInterfaceFactory(t,e,s){let i=new rL(rG,s);rG.prototype.shape=t,rG.prototype.propertyIndex=t.ix;let r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return r.s.setGroupProperty(new r$("Size",i)),r.p?.setGroupProperty(new r$("Position",i)),rG.prototype._name=t.nm,rG.prototype.prop=r,rG.prototype.mn=t.mn,rG.prototype.getInterface}fillInterfaceFactory(t,e,s){return rq.prototype._name=t.nm,rq.prototype.c=e.c,rq.prototype.mn=t.mn,rq.prototype.o=e.o,e.c?.setGroupProperty(new r$("Color",s)),e.o?.setGroupProperty(new r$("Opacity",s)),rq.prototype.getInterface}getInterface(t){let e=t;if("number"==typeof e)return 0===(e=t??1)?propertyGroup:this.interfaces[e-1];let s=0,{length:i}=this.interfaces;for(;s<i;){if(this.interfaces[s]._name===e)return this.interfaces[s];s++}return null}gradientFillInterfaceFactory(t,e,s){return rj.prototype._name=t.nm,rj.prototype.prop=e,rj.prototype.mn=t.mn,e.s?.setGroupProperty(new r$("Start Point",s)),e.e?.setGroupProperty(new r$("End Point",s)),e.o?.setGroupProperty(new r$("Opacity",s)),rj.prototype.getInterface}groupInterfaceFactory(t,e,s){rH.prototype.propertyGroup=new rL(rH,s);let i=this.contentsInterfaceFactory(t,e,rH.prototype.propertyGroup),r=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],rH.prototype.propertyGroup);return rH.prototype.content=i,rH.prototype.transform=r,rH.prototype.shape=t,rH.prototype.numProperties=t.np,rH.prototype.propertyIndex=t.ix,rH.prototype.nm=t.nm,rH.prototype.mn=t.mn,rH.prototype.getInterface}iterateElements(t,e,s){let i=[],{length:r}=t??[];for(let a=0;a<r;a++)if(t)switch(t[a].ty){case to.Group:i.push(this.groupInterfaceFactory(t[a],e[a],s));break;case to.Fill:i.push(this.fillInterfaceFactory(t[a],e[a],s));break;case to.Stroke:i.push(this.strokeInterfaceFactory(t[a],e[a],s));break;case to.Trim:i.push(this.trimInterfaceFactory(t[a],e[a],s));break;case to.Transform:break;case to.Ellipse:i.push(this.ellipseInterfaceFactory(t[a],e[a],s));break;case to.PolygonStar:i.push(this.starInterfaceFactory(t[a],e[a],s));break;case to.Path:i.push(new rY(t[a],e[a],s));break;case to.Rectangle:i.push(this.rectInterfaceFactory(t[a],e[a],s));break;case to.RoundedCorners:i.push(this.roundedInterfaceFactory(t[a],e[a],s));break;case to.Repeater:i.push(this.repeaterInterfaceFactory(t[a],e[a],s));break;case to.GradientFill:i.push(this.gradientFillInterfaceFactory(t[a],e[a],s));break;default:i.push(this.defaultInterfaceFactory(t[a],e[a],s))}return i}parentGroupWrapper(){return this.parentGroup}rectInterfaceFactory(t,e,s){rW.prototype.shape=t;let i=new rL(rW,s),r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return rW.prototype.propertyIndex=t.ix,r.p?.setGroupProperty(new r$("Position",i)),r.s.setGroupProperty(new r$("Size",i)),r.r.setGroupProperty(new r$("Rotation",i)),rW.prototype.prop=r,rW.prototype._name=t.nm,rW.prototype.mn=t.mn,rW.prototype.getInterface}repeaterInterfaceFactory(t,e,s){rJ.prototype.shape=t,rJ.prototype.propertyIndex=t.ix,rJ.prototype._name=t.nm,rJ.prototype.mn=t.mn;let i=new rL(rJ,s);return rJ.prototype.prop=e,e.c?.setGroupProperty(new r$("Copies",i)),e.o?.setGroupProperty(new r$("Offset",i)),rJ.prototype.getInterface}roundedInterfaceFactory(t,e,s){rU.prototype.shape=t,rU.prototype._name=t.nm,rU.prototype.propertyIndex=t.ix,rU.prototype.mn=t.mn;let i=new rL(rU,s);return e.rd.setGroupProperty(new r$("Radius",i)),rU.prototype.getInterface}starInterfaceFactory(t,e,s){rX.prototype.shape=t;let i=new rL(rX,s),r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return rX.prototype.propertyIndex=t.ix,r.or.setGroupProperty(new r$("Outer Radius",i)),r.os.setGroupProperty(new r$("Outer Roundness",i)),r.pt.setGroupProperty(new r$("Points",i)),r.p.setGroupProperty(new r$("Position",i)),r.r.setGroupProperty(new r$("Rotation",i)),t.ir&&(r.ir.setGroupProperty(new r$("Inner Radius",i)),r.is.setGroupProperty(new r$("Inner Roundness",i))),rX.prototype._name=t.nm,rX.prototype.prop=r,rX.prototype.mn=t.mn,rX.prototype.getInterface}strokeInterfaceFactory(t,e,s){let i={},r=new rL(rK,s),a=new rL(i,r),{length:n}=t.d??[];for(let s=0;s<n;s++){var o;o=s,Object.defineProperty(i,t.d?.[o].nm,{get:rF(e.d.dataProps[o].p)}),e.d.dataProps[s].p.setGroupProperty(a)}return rK.prototype._name=t.nm,rK.prototype.mn=t.mn,rK.prototype.dashOb=i,rK.prototype.prop=e,e.c?.setGroupProperty(new r$("Color",r)),e.o?.setGroupProperty(new r$("Opacity",r)),e.w?.setGroupProperty(new r$("Stroke Width",r)),rK.prototype.getInterface}transformInterfaceFactory(t,e,s){rZ.prototype.shape=t;let i=new rL(rZ,s);return e.transform?.mProps.o?.setGroupProperty(new r$("Opacity",i)),e.transform?.mProps.p?.setGroupProperty(new r$("Position",i)),e.transform?.mProps.a?.setGroupProperty(new r$("Anchor Point",i)),e.transform?.mProps.s?.setGroupProperty(new r$("Scale",i)),e.transform?.mProps.r?.setGroupProperty(new r$("Rotation",i)),e.transform?.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(new r$("Skew",i)),e.transform.mProps.sa?.setGroupProperty(new r$("Skew Angle",i))),e.transform?.op.setGroupProperty(new r$("Opacity",i)),rZ.prototype._name=t.nm,rZ.prototype.prop=e,rZ.prototype.ty=to.Transform,rZ.prototype.mn=t.mn,rZ.prototype.propertyGroup=s,rZ.prototype.getInterface}trimInterfaceFactory(t,e,s){rQ.prototype.shape=t;let i=new rL(rQ,s);return rQ.prototype.propertyIndex=t.ix,e.s?.setGroupProperty(new r$("Start",i)),e.e?.setGroupProperty(new r$("End",i)),e.o?.setGroupProperty(new r$("Offset",i)),rQ.prototype.propertyIndex=t.ix,rQ.prototype.propertyGroup=s,rQ.prototype._name=t.nm,rQ.prototype.prop=e,rQ.prototype.mn=t.mn,rQ.prototype.getInterface}noOp(){return null}},text:class{get sourceText(){this.elem.textProperty?.getValue();let t=this.elem.textProperty?.currentData.t;return this._sourceText&&t===this._sourceText.value||(this._sourceText=new String(t),this._sourceText.value=t||String(t),Object.defineProperty(this._sourceText,"style",{get(){return{fillColor:this.elem.textProperty.currentData.fc}}})),this._sourceText}constructor(t){this.elem=t}getInterface(t){return t.toLowerCase().includes("adbe text document")?this.sourceText:null}}};function r1(t){return r0[t]}let r2="__lottie_element_luma_buffer",r3=null,r5=null,r4=null;function r6(){if(!r3||!r5){let t,e,s;t=tf("svg"),e=tf("filter"),s=tf("feColorMatrix"),e.id=r2,s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.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"),e.appendChild(s),t.appendChild(e),t.id=`${r2}_svg`,t_.svgLumaHidden&&(t.style.display="none"),r4=t,document.body.appendChild(r4),(r5=(r3=tx("canvas")).getContext("2d"))&&(r5.filter=`url(#${r2})`,r5.fillStyle="rgba(0,0,0,0)",r5.fillRect(0,0,1,1))}}let r8=function(t,e){if(t_.offscreenCanvas)return new OffscreenCanvas(t,e);let s=tx("canvas");return s.width=t,s.height=e,s},r9=function(t){if(r3&&r5||r6(),!r3||!r5)throw Error("Could not create Canvas Element");return r3.width=t.width,r3.height=t.height,r5.filter=`url(#${r2})`,r3};function r7(t,e){let s=e._length;if(0===s)return;let{i,o:r,v:a}=e,{c:n}=e;t.moveTo(a[0][0],a[0][1]);for(let e=1;e<s;e++)t.bezierCurveTo(r[e-1][0],r[e-1][1],i[e][0],i[e][1],a[e][0],a[e][1]);n&&(t.bezierCurveTo(r[s-1][0],r[s-1][1],i[0][0],i[0][1],a[0][0],a[0][1]),t.closePath())}let at={a:"source-over",d:"source-over",f:"xor",i:"destination-in",l:"source-over",s:"destination-out"};function ae(t){if(!t?.length)return!0;for(let e of t){if("n"===e.mode)continue;if("a"!==e.mode||e.inv||e.o?.x)return!1;let t=e.o?.k;if("number"==typeof t){if(100!==t)return!1}else if(Array.isArray(t))return!1}return!0}class as{constructor(t,e){this._isFirstFrame=!1,this.opacityData=[],this.maskBuffer=null,this.pathBuffer=null,this.data=t,this.element=e,this.masksProperties=this.data.masksProperties??[],this.viewData=tu(this.masksProperties.length),this.opacityData=tu(this.masksProperties.length);let{length:s}=this.masksProperties,i=!1,r=this.element;for(let t=0;t<s;t++)this.masksProperties[t]?.mode!=="n"&&(i=!0),this.viewData[t]=t7.getShapeProp(this.element,this.masksProperties[t],3),this.opacityData[t]=tU.getProp(r,this.masksProperties[t]?.o,0,.01,r);this.hasMasks=i,this.isSimple=ae(this.masksProperties)}applyMasks(){if(!this.hasMasks||this.isSimple)return;let t=this.element.canvasContext;if(!t)return;if(!this.element.globalData?.compSize)throw Error(`${this.constructor.name}: element->globalData->compSize is not implemented`);let{canvas:e}=t,{h:s,w:i}=this.element.globalData.compSize,r=this.ensureBufferCtx(e.width,e.height,"mask"),a=this.ensureBufferCtx(e.width,e.height,"path"),n=t.getTransform(),{length:o}=this.masksProperties;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,e.width,e.height),r.setTransform(n);let h=this.firstActiveMode();("s"===h||"i"===h)&&(r.globalCompositeOperation="source-over",r.fillStyle="#ffffff",r.fillRect(0,0,i,s));for(let t=0;t<o;t++){let o=this.masksProperties[t];if("n"===o.mode)continue;let h=this.viewData[t]?.v;if(!h)continue;let l=this.opacityData[t]?.v??1,p=o.mode??"a",c=!!o.inv;a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.width,e.height),a.setTransform(n),a.globalCompositeOperation="source-over",a.beginPath(),c&&a.rect(0,0,i,s),r7(a,h),a.fillStyle=`rgba(255,255,255,${l})`,a.fill(c?"evenodd":"nonzero"),r.setTransform(1,0,0,1,0,0),r.globalCompositeOperation=at[p]??"source-over",r.drawImage(this.pathBuffer,0,0),r.setTransform(n)}t.save(),t.setTransform(1,0,0,1,0,0),t.globalCompositeOperation="destination-in",t.drawImage(this.maskBuffer,0,0),t.restore()}clipLocal(){if(!this.hasMasks||!this.isSimple)return;let t=this.element.canvasContext;if(!t)return;t.beginPath();let{length:e}=this.masksProperties;for(let s=0;s<e;s++){if(this.masksProperties[s]?.mode==="n")continue;let e=this.viewData[s]?.v;e&&r7(t,e)}t.clip()}destroy(){this.element=null,this.maskBuffer=null,this.pathBuffer=null}getMaskProperty(t){return this.viewData[t]}renderFrame(t){}ensureBufferCtx(t,e,s){let i="mask"===s?this.maskBuffer:this.pathBuffer;return i&&i.width===t&&i.height===e||(i=r8(t,e),"mask"===s?this.maskBuffer=i:this.pathBuffer=i),i.getContext("2d")}firstActiveMode(){for(let t of this.masksProperties)if(t.mode&&"n"!==t.mode)return t.mode;return"a"}}let ai={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};class ar extends ex{clearCanvas(t){if(t){if(!this.transformCanvas)throw Error(`${this.constructor.name}: transformCanvas is not implemented`);t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)}}createContainerElements(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.globalData.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented in globalData`);let t=!!(this.data.tt&&this.data.tt>=1),e=function(t){if(!t?.length)return!1;for(let e of t)if("n"!==e.mode)return!ae(t);return!1}(this.data.masksProperties);if(t||e){this.buffers=[];let{canvasContext:e}=this.globalData,s=r8(e.canvas.width,e.canvas.height);this.buffers.push(s);let i=r8(e.canvas.width,e.canvas.height);this.buffers.push(i),t&&void 0!==this.data.tt&&this.data.tt>=3&&!document._isProxy&&r6()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new tb(this),this.searchEffectTransforms()}createContent(){}createRenderableComponents(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.maskManager=new as(this.data,this),this.renderableEffectsManager&&(this.transformEffects=this.renderableEffectsManager.getEffects(th.TransformEffect))}destroy(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager?.destroy()}exitLayer(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);let t=this.data.tt||0;if(t<1)return;let e=this.buffers[1],s=e.getContext("2d");this.clearCanvas(s),s.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);let i=null;if("tp"in this.data&&void 0!==this.data.tp)i=this.comp?.getElementById(this.data.tp)??null;else{let t=this.comp?.layers??[],e=t.indexOf(this.data);e>0&&(i=this.comp?.getElementById(Number(t[e-1].ind))??null)}if(i?.renderFrame(1),this.canvasContext.setTransform(1,0,0,1,0,0),t>=3&&!document._isProxy){let t=r9(this.canvasContext.canvas),e=t.getContext("2d");e?.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(t,0,0)}this.canvasContext.globalCompositeOperation=ai[t],this.canvasContext.drawImage(e,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"}hideElement(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)}initRendererElement(){}prepareLayer(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);if(0===this.buffers.length)return;let 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)}renderFrame(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.hidden||this.data.hd||1===this.data.td&&!t)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();let e=(this.data.tt||0)>=1,s=!!(this.maskManager?.hasMasks&&this.maskManager.isSimple),i=!!(this.maskManager?.hasMasks&&!this.maskManager.isSimple),r=0===this.data.ty||s;(e||i)&&this.prepareLayer();let{renderer:a}=this.globalData;a.save(r),a.ctxTransform(this.finalTransform?.localMat.props),a.ctxOpacity(this.finalTransform?.localOpacity),s&&this.maskManager?.clipLocal(),this.renderInnerContent(),i&&this.maskManager?.applyMasks(),a.restore(r),e?this.exitLayer():i&&this.restoreIsolatedLayer(),this._isFirstFrame&&(this._isFirstFrame=!1)}restoreIsolatedLayer(){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);0!==this.buffers.length&&(this.canvasContext.setTransform(1,0,0,1,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.currentTransform&&this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over")}setBlendMode(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let{data:t,globalData:e}=this;if(!e.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented in globalData`);if(e.blendMode!==t.bm){e.blendMode=t.bm;let s=ed(t.bm);e.canvasContext.globalCompositeOperation=s}}showElement(){if(!this.maskManager)throw Error(`${this.constructor.name}: Method maskManager is not implemented`);this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)}constructor(...t){super(...t),this.buffers=[],this.maskManager=void 0,this.renderableEffectsManager=void 0,this.transformEffects=[]}}ar.prototype.hide=ar.prototype.hideElement,ar.prototype.show=ar.prototype.showElement;class aa extends ar{constructor(t,e,s){if(super(),this.assetData=e.getAssetData(t.refId)??null,!e.imageLoader)throw Error(`${this.constructor.name} imageLoader is not implemented in globalData`);this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,s)}createContent(){let t,e;if(!this.assetData)throw Error(`${this.constructor.name}: assetData is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height)return;let s=tx("canvas");s.width=Number(this.assetData.w),s.height=Number(this.assetData.h);let i=s.getContext("2d"),r=this.img.width,a=this.img.height,n=r/a,o=Number(this.assetData.w)/Number(this.assetData.h),h=this.assetData.pr||this.globalData.renderConfig?.imagePreserveAspectRatio;n>o&&"xMidYMid slice"===h||n<o&&"xMidYMid slice"!==h?t=(e=a)*o:e=(t=r)/o,i?.drawImage(this.img,(r-t)/2,(a-e)/2,t,e,0,0,Number(this.assetData.w),Number(this.assetData.h)),this.img=s}destroy(){this.img=null}renderInnerContent(){this.canvasContext?.drawImage(this.img,0,0)}}e2(aa,e8,["initElement"]),e2(aa,eI,["prepareFrame"]);class an extends eY{constructor(t,e,s,i){let r,a;switch(super(),this.styledShapes=[],this.tr=[0,0,0,0,0,0],e.ty){case to.Rectangle:r=5;break;case to.Ellipse:r=6;break;case to.PolygonStar:r=7;break;default:r=4}this.sh=t7.getShapeProp(t,e,r);let{length:n}=s;for(let t=0;t<n;t++)s[t]?.closed||(a={transforms:i.addTransformSequence(s[t]?.transforms),trNodes:[]},this.styledShapes.push(a),s[t]?.elements.push(a))}}class ao{addTransformSequence(t){let{length:e}=t,s="_";for(let i=0;i<e;i++)s+=`${t[i]?.transform.key}_`;let i=this.sequences[s];return i||(i={_mdf:!1,finalTransform:new td,transforms:[...t]},this.sequences[s]=i,this.sequenceList.push(i)),i}getNewKey(){return this.transform_key_count++,`_${this.transform_key_count}`}processSequence(t,e){let s=0,{length:i}=t.transforms??[],r=e;if(!e)for(;s<i;){if(t.transforms?.[s]?.transform.mProps._mdf){r=!0;break}s++}if(r)for(t.finalTransform?.reset(),s=i-1;s>=0;s-=1){let{v:e}=t.transforms?.[s]?.transform.mProps??{v:null};e&&t.finalTransform?.multiply(e)}t._mdf=!!r}processSequences(t){let{length:e}=this.sequenceList;for(let s=0;s<e;s++)this.processSequence(this.sequenceList[s],t)}constructor(){this.sequenceList=[],this.sequences={},this.transform_key_count=0}}class ah extends e1{constructor(t,e,s){super(),this.dashResetter=[],this.prevViewData=[],this.stylesList=[],this.transformHelper={_opMdf:!1,opacity:1},this.transformsManager=new ao,this.shapes=[],this.shapesData=t.shapes,this.itemsData=[],this.shapeModifiers=[],this.processedElements=[],this.initElement(t,e,s)}addTransformToStyleList(t){let{length:e}=this.stylesList;for(let s=0;s<e;s++)this.stylesList[s].closed||this.stylesList[s].transforms.push(t)}closeStyles(t){let{length:e}=t;for(let s=0;s<e;s++)t[s].closed=!0}createContent(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])}createGroupElement(t){return{it:[],prevViewData:[]}}createShapeElement(t){let e=new an(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e}createStyleElement(t,e){try{let s={closed:!0===t.hd,data:t,elements:[],preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],type:t.ty},i={};switch(t.ty){case to.Fill:case to.Stroke:i.c=tU.getProp(this,t.c,1,255,this),i.c.k||(s.co=z(i.c.v));break;case to.GradientFill:case to.GradientStroke:i.s=tU.getProp(this,t.s,1,null,this),i.e=tU.getProp(this,t.e,1,null,this),i.h=tU.getProp(this,t.h??{k:0},0,.01,this),i.a=tU.getProp(this,t.a??{k:0},0,f,this),t.g&&(i.g=new ej(this,t.g,this))}return i.o=tU.getProp(this,t.o,0,.01,this),t.ty===to.Stroke||t.ty===to.GradientStroke?(s.lc=tp[t.lc||2],s.lj=tc[t.lj||2],1===t.lj&&(s.ml=t.ml),i.w=tU.getProp(this,t.w,0,null,this),i.w.k||(s.wi=i.w.v),t.d&&"object"==typeof t.d&&(i.d=new eW(this,t.d,tn.Canvas,this),i.d.k||(s.da=i.d.dashArray,s.do=i.d.dashoffset[0]))):s.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(s),i.style=s,i}catch(t){return P(this.constructor.name,t),null}}createTransformElement(t){return{transform:{_opMdf:!1,key:this.transformsManager.getNewKey(),mProps:ey.getTransformProperty(this,t,this),op:tU.getProp(this,t.o,0,.01,this),opacity:1}}}destroy(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0}drawLayer(){try{let t;if(!this.globalData)throw Error(`${this.constructor.name} globalData is not implemented`);if(!this.globalData.renderer)throw Error(`${this.constructor.name} renderer is not implemented`);let{length:e}=this.stylesList,{renderer:s}=this.globalData,i=this.globalData.canvasContext;for(let r=0;r<e;r++){let{co:e,coOp:a,da:n,data:o,elements:h,grd:l,lc:p,lj:c,ml:m,preTransforms:u,r:d,type:f,wi:g}=t=this.stylesList[r],y=f===to.Stroke||f===to.GradientStroke;if(y&&0===g||!o._shouldRender||0===a||0===this.globalData.currentGlobalAlpha)continue;s.save(),y?(s.ctxStrokeStyle(f===to.Stroke?e:l),s.ctxLineWidth(g||0),p&&s.ctxLineCap(p),c&&s.ctxLineJoin(c),s.ctxMiterLimit(m||0)):s.ctxFillStyle(f===to.Fill?e:l),s.ctxOpacity(a),f!==to.Stroke&&f!==to.GradientStroke&&i?.beginPath(),s.ctxTransform(u.finalTransform?.props);let{length:v}=h;for(let e=0;e<v;e++){(f===to.Stroke||f===to.GradientStroke)&&(i?.beginPath(),i&&n&&(i.setLineDash(n),i.lineDashOffset=t.do||0));let r=h[e].trNodes,{length:a}=r;for(let t=0;t<a;t++){let{p:e=[],pts:s=[]}=r[t];"m"===r[t].t?i?.moveTo(e[0],e[1]):"c"===r[t].t?i?.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]):i?.closePath()}y&&(s.ctxStroke(),n&&i?.setLineDash(this.dashResetter))}y||this.globalData.renderer.ctxFill(d),s.restore()}}catch(t){P(this.constructor.name,t)}}reloadShapes(){this._isFirstFrame=!0;let{length:t}=this.itemsData;for(let e=0;e<t;e++)this.prevViewData[e]=this.itemsData[e];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]);let{length:e}=this.dynamicProperties;for(let t=0;t<e;t++)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)}removeTransformFromStyleList(){let{length:t}=this.stylesList;for(let e=0;e<t;e++)this.stylesList[e].closed||this.stylesList[e].transforms.pop()}renderFill(t,e,s){let i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co=z(e.c.v)),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity)}renderGradientFill(t,e,s){let i;if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);let r=e.style;if(!r?.grd||e.g?._mdf||e.s?._mdf||e.e?._mdf||1!==t.t&&(e.h?._mdf||e.a?._mdf)){let s=this.globalData.canvasContext,a=e.s?.v??[0,0],n=e.e?.v??[0,0];if(1===t.t)i=s?.createLinearGradient(a[0],a[1],n[0],n[1]);else{let t=Math.sqrt(Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)),r=Math.atan2(n[1]-a[1],n[0]-a[0]),o=e.h?.v??0;o>=1?o=.99:o<=-1&&(o=-.99);let h=t*o,l=e.a?.v??0,p=Math.cos(r+l)*h+a[0],c=Math.sin(r+l)*h+a[1];i=s?.createRadialGradient(p,c,0,a[0],a[1],t)}let o=t.g?.p??0,h=e.g?.c??[],l=1;for(let t=0;t<o;t++)e.g?._hasOpacity&&e.g._collapsable&&(l=e.g.o[2*t+1]),i?.addColorStop(h[4*t]/100,`rgba(${h[4*t+1]},${h[4*t+2]},${h[4*t+3]},${l})`);r&&(r.grd=i)}r&&(r.coOp=(e.o?.v??0)*s.opacity)}renderInnerContent(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)}renderPath(t,e){if(!0===t.hd||!t._shouldRender||!e.sh)return;let{length:s}=e.styledShapes;for(let t=0;t<s;t++)this.renderStyledShape(e.styledShapes[t],e.sh)}renderShape(t,e,s,i){try{let r,a=e.length-1;r=t;for(let i=a;i>=0;i--)switch(e[i].ty){case to.Transform:(r=s[i].transform)&&this.renderShapeTransform(t,r);break;case to.Path:case to.Ellipse:case to.Rectangle:case to.PolygonStar:this.renderPath(e[i],s[i]);break;case to.Fill:this.renderFill(e[i],s[i],r);break;case to.Stroke:this.renderStroke(e[i],s[i],r);break;case to.GradientFill:case to.GradientStroke:this.renderGradientFill(e[i],s[i],r);break;case to.Group:this.renderShape(r,e[i].it??[],s[i].it);case to.Trim:}i&&this.drawLayer()}catch(t){P(this.constructor.name,t)}}renderShapeTransform(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)}renderStroke(t,e,s){let i=e.style,{c:r,d:a,o:n,w:o}=e;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r._mdf||this._isFirstFrame)&&(i.co=z(r.v)),(n._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=n.v*s.opacity),(o._mdf||this._isFirstFrame)&&(i.wi=o.v)}renderStyledShape(t,e){let s,i,r;if(!this._isFirstFrame&&!e._mdf&&!t.transforms._mdf)return;let{transforms:a,trNodes:n}=t,{paths:o}=e,h=o?._length||0;n.length=0;let l=a?.finalTransform;for(r=0;r<h;r++){let t=o?.shapes[r];if(t?.v){for(i=t._length,s=1;s<i;s++)1===s&&n.push({p:l?.applyToPointArray(t.v[0][0],t.v[0][1],0),t:"m"}),n.push({pts:l?.applyToTriplePoints(t.o[s-1],t.i[s],t.v[s]),t:"c"});1===i&&n.push({p:l?.applyToPointArray(t.v[0][0],t.v[0][1],0),t:"m"}),t.c&&i&&n.push({pts:l?.applyToTriplePoints(t.o[s-1],t.i[0],t.v[0]),t:"c"},{t:"z"})}}t.trNodes=n}searchShapes(t,e,s,i,r){let a,n,o=i,h=t.length-1,l=[],p=[],c=[...r];for(let i=h;i>=0;i--){let r=this.searchProcessedElement(t[i]);switch(r?e[i]=s[r-1]:t[i]._shouldRender=o,t[i].ty){case to.Fill:case to.Stroke:case to.GradientFill:case to.GradientStroke:r?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],c),l.push(e[i].style);break;case to.Group:if(r){let{length:t}=e[i].it;for(let s=0;s<t;s++)e[i].prevViewData[s]=e[i].it[s]}else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it??[],e[i].it,e[i].prevViewData,o,c);break;case to.Transform:r||(n=this.createTransformElement(t[i]),e[i]=n),c.push(e[i]),this.addTransformToStyleList(e[i]);break;case to.Path:case to.Rectangle:case to.Ellipse:case to.PolygonStar:r||(e[i]=this.createShapeElement(t[i]));break;case to.Trim:case to.RoundedCorners:case to.PuckerBloat:case to.ZigZag:case to.OffsetPath:r?(a=e[i]).closed=!1:((a=e4(t[i].ty)).init(this,t[i]),e[i]=a,this.shapeModifiers.push(a)),p.push(a);break;case to.Repeater:r?(a=e[i]).closed=!0:(a=e4(t[i].ty),e[i]=a,a.init(this,t,i,e),this.shapeModifiers.push(a),o=!1),p.push(a)}this.addProcessedElement(t[i],i+1)}this.removeTransformFromStyleList(),this.closeStyles(l);let{length:m}=p;for(let t=0;t<m;t++)p[t].closed=!0}}e2(ah,ar,["clearCanvas","createContainerElements","createRenderableComponents","exitLayer","hide","initRendererElement","prepareLayer","renderFrame","setBlendMode","show"]);class al extends ar{constructor(t,e,s){super(),this.initElement(t,e,s)}renderInnerContent(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData it not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) it not implemented`);if(!this.globalData.renderer)throw Error(`${this.constructor.name}: globalData.renderer it not implemented`);this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw||0,this.data.sh||0)}}e2(al,e8,["initElement"]),e2(al,eI,["prepareFrame"]);let ap="rgba(0,0,0,0)";class ac extends sg{constructor(t,e,s){super(),this.currentRender=null,this.fill=!1,this.fillColorAnim=!1,this.justifyOffset=0,this.renderedLetters=[],this.stroke=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.textSpans=[],this.tHelper=tx("canvas").getContext("2d"),this.values={fill:ap,fValue:"",stroke:ap,sWidth:0},this.yOffset=0,this.renderType=tn.Canvas,this.initElement(t,e,s)}buildNewText(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.globalData.fontManager)throw Error(`${this.constructor.name}: fontManager is not implemented in globalData`);if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not implemented`);let t=this.textProperty.currentData;this.renderedLetters=tu(t.l.length||0);let e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;let s=!1;t.sc&&(s=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=Number(t.sw));let i=this.globalData.fontManager.getFontByName(t.f),r=t.l,a=this.mHelper;this.stroke=s,this.values.fValue=`${t.finalSize}px ${this.globalData.fontManager.getFontByName(t.f).fFamily}`;let{singleShape:n}=this.data,o=.001*t.tr*Number(t.finalSize),h,l=0,p=0,c=!0,m=0,{length:u}=t.finalText;for(let e=0;e<u;e++){let s=this.globalData.fontManager.getCharData(t.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily).data??{};a.reset(),n&&r[e]?.n&&(l=-o,p+=Number(t.yOffset),p+=+!!c,c=!1);let u=s.shapes?.[0]?.it??[];a.scale(Number(t.finalSize)/100,Number(t.finalSize)/100),n&&this.applyTextPropertiesToMatrix(t,a,r[e]?.line??0,l,p);let{length:d}=u,f=tu(d-1),g=0;for(let t=0;t<d;t++){if(u[t]?.ty!==to.Path)continue;let{length:e}=(u[t]?.ks?.k).i,s=u[t]?.ks?.k,i=[];for(h=1;h<e;h++)1===h&&i.push(a.applyToX(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0),a.applyToY(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0)),i.push(a.applyToX(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToY(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToX(s.i[h]?.[0]??0,s.i[h]?.[1]??0,0),a.applyToY(s.i[h]?.[0]??0,s.i[h]?.[1]??0,0),a.applyToX(s.v[h]?.[0]??0,s.v[h]?.[1]??0,0),a.applyToY(s.v[h]?.[0]??0,s.v[h]?.[1]??0,0));i.push(a.applyToX(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToY(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToX(s.i[0]?.[0]??0,s.i[0]?.[1]??0,0),a.applyToY(s.i[0]?.[0]??0,s.i[0]?.[1]??0,0),a.applyToX(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0),a.applyToY(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0)),f[g]=i,g++}n&&(l+=r[e]?.l??0,l+=o),this.textSpans[m]?this.textSpans[m].elem=f:this.textSpans[m]={elem:f},m++}}destroyBaseElement(){}renderElement(){}renderInnerContent(){let t,e,s,i;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.textAnimator)throw Error(`${this.constructor.name}: textAnimator is not implemented`);if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer?.ctxLineCap("butt"),this.globalData.renderer?.ctxLineJoin("miter"),this.globalData.renderer?.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);let{renderedLetters:r}=this.textAnimator,a=this.textProperty.currentData.l,n,o=null,h=null,l=null,p,c,m=this.globalData.renderer,{length:u}=a;for(let d=0;d<u;d++)if(!a[d]?.n){if(n=r[d],m.save(),m.ctxTransform(n.p),m.ctxOpacity(n.o),this.fill){n.fc?o!==n.fc&&(m.ctxFillStyle(n.fc),o=n.fc):o!==this.values.fill&&(o=this.values.fill,m.ctxFillStyle(this.values.fill));let{length:e}=p=this.textSpans[d]?.elem??[];for(this.globalData.canvasContext?.beginPath(),t=0;t<e;t++){let{length:e}=c=p[t]??[];for(this.globalData.canvasContext?.moveTo(c[0]??0,c[1]??0),s=2;s<e;s+=6)this.globalData.canvasContext?.bezierCurveTo(c[s]??0,c[s+1]??0,c[s+2]??0,c[s+3]??0,c[s+4]??0,c[s+5]??0)}this.globalData.canvasContext?.closePath(),m.ctxFill()}if(this.stroke){for(n.sw?l!==n.sw&&(l=n.sw,m.ctxLineWidth(n.sw)):l!==this.values.sWidth&&(l=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),n.sc?h!==n.sc&&(h=n.sc,m.ctxStrokeStyle(n.sc)):h!==this.values.stroke&&(h=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),e=(p=this.textSpans[d]?.elem??[]).length,this.globalData.canvasContext?.beginPath(),t=0;t<e;t++)for(i=(c=p[t]??[]).length,this.globalData.canvasContext?.moveTo(c[0]??0,c[1]??0),s=2;s<i;s+=6)this.globalData.canvasContext?.bezierCurveTo(c[s]??0,c[s+1]??0,c[s+2]??0,c[s+3]??0,c[s+4]??0,c[s+5]??0);this.globalData.canvasContext?.closePath(),m.ctxStroke()}this.globalData.renderer?.restore()}}}e2(ac,ar,["clearCanvas","createContainerElements","createContent","createRenderableComponents","hide","hideElement","initRendererElement","destroy","exitLayer","prepareLayer","renderFrame","renderLocalTransform","renderRenderable","searchEffectTransforms","setBlendMode","show","showElement"]);class am extends sx{addResizeObserver(){if(!this.animationItem?.wrapper||this._resizeObserver)return;let t=((t,e=300)=>{let s;return(...i)=>{void 0!==s&&clearTimeout(s),s=setTimeout(()=>{t(...i)},e)}})((t,e)=>{this.updateContainerSize(t,e)});this._resizeObserver=new ResizeObserver(e=>{let{contentBoxSize:s}=e[0],{blockSize:i,inlineSize:r}=s[0];r<=this._elementWidth||t(r,i)}),this._resizeObserver.observe(this.animationItem.wrapper)}buildItem(t){let{elements:e,layers:s}=this;if(e[t]||s[t]?.ty===99)return;let i=this.createItem(s[t]);e[t]=i,i.initExpressions()}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();t?.checkParenting()}}configAnimation(t){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.renderConfig)throw Error(`${this.constructor.name}: renderConfig is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(this.animationItem.wrapper){this.animationItem.container=tx("canvas");let{style:t}=this.animationItem.container;t.width="100%",t.height="100%",t.transformOrigin="0px 0px 0px",t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&(this.animationItem.container.className=this.renderConfig.className),this.renderConfig.id&&(this.animationItem.container.id=this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData?.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={h:t.h,sx:0,sy:0,tx:0,ty:0,w:t.w},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=tu(t.layers.length),this.updateContainerSize(),this.addResizeObserver()}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new aa(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new ah(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new al(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new ac(t,this.globalData,this)}ctxFill(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fill(t)}ctxFillRect(t,e,s,i){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fillRect(t,e,s,i)}ctxFillStyle(t=""){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fillStyle=t}ctxLineCap(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineCap=t}ctxLineJoin(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineJoin=t}ctxLineWidth(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineWidth=t}ctxMiterLimit(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.miterLimit=t}ctxOpacity(t=1){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.globalAlpha*=t<0?0:t}ctxStroke(){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.stroke()}ctxStrokeStyle(t=""){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.strokeStyle=t}ctxTransform(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])}destroy(){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.renderConfig?.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");let{length:t}=this.layers;for(let e=t-1;e>=0;e-=1)this.elements[e]?.destroy();this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=void 0),this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0}hide(){if(!this.animationItem?.container)throw Error(`${this.constructor.name}: animationItem -> container is not implemented`);this.animationItem.container.style.display="none"}renderFrame(t,e){try{if(!this.globalData)throw Error("globalData is not implemented");if(!this.animationItem)throw Error("animationItem is not implemented");if(!1===t||this.renderedFrame===t&&this.renderConfig?.clearCanvas===!0&&!e||this.destroyed||-1===t)return;this.renderedFrame=t,this.globalData.frameNum=t-Number(this.animationItem._isFirstFrame),this.globalData.frameId++,this.globalData._mdf=!!(!this.renderConfig?.clearCanvas||e),this.globalData.projectInterface.currentFrame=t;let{length:s}=this.layers;this.completeLayers||this.checkLayers(t);for(let e=s-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e]?.prepareFrame(t-(this.layers[e]?.st??0));if(this.globalData._mdf){this.renderConfig?.clearCanvas===!0?this.canvasContext?.clearRect(0,0,this.transformCanvas?.w||0,this.transformCanvas?.h||0):this.save();for(let t=s-1;t>=0;t--)(this.completeLayers||this.elements[t])&&this.elements[t]?.renderFrame();this.renderConfig?.clearCanvas!==!0&&this.restore()}}catch(t){P(this.constructor.name,t)}}reset(){this.renderConfig?.clearCanvas?this.contextData?.reset():this.canvasContext?.restore()}restore(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.renderConfig?.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData?.restore(t)):this.canvasContext?.restore()}save(t){this.canvasContext?.save()}show(){if(!this.animationItem?.container)throw Error(`${this.constructor.name}: animationItem -> container is not implemented`);this.animationItem.container.style.display="block"}syncDevicePixelRatio(){this.renderConfig&&!this._dprLocked&&(this.renderConfig.dpr=A())}updateContainerSize(t,e){let s,i,r,a;if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);if(!this.renderConfig)throw Error(`${this.constructor.name}: renderConfig is not implemented`);if(!this.transformCanvas)throw Error(`${this.constructor.name}: transformCanvas is not implemented`);this.syncDevicePixelRatio();let{dpr:n,preserveAspectRatio:o}=this.renderConfig;if(!("number"==typeof n&&n>0))throw Error(`${this.constructor.name}: renderConfig -> dpr is not implemented`);this.reset(),"number"==typeof t&&"number"==typeof e?(s=t,i=e):this.animationItem.wrapper&&this.animationItem.container?(s=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(s=this.canvasContext.canvas.width/n,i=this.canvasContext.canvas.height/n);let{canvas:h}=this.canvasContext;if(h.width=Math.max(1,Math.round(s*n)),h.height=Math.max(1,Math.round(i*n)),this.animationItem.container){let{style:t}=this.animationItem.container;t.width=`${s}px`,t.height="auto",t.maxWidth="100%",t.aspectRatio=`${s} / ${i}`}if(this.canvasContext.imageSmoothingEnabled=!0,"imageSmoothingQuality"in this.canvasContext&&(this.canvasContext.imageSmoothingQuality="high"),o.includes("meet")||o.includes("slice")){let t=o.split(" "),e=t[1]||"meet",h=t[0]||"xMidYMid",l=h.slice(0,4),p=h.slice(4);r=s/i,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===e||a<r&&"slice"===e?(this.transformCanvas.sx=s/(this.transformCanvas.w/n),this.transformCanvas.sy=s/(this.transformCanvas.w/n)):(this.transformCanvas.sx=i/(this.transformCanvas.h/n),this.transformCanvas.sy=i/(this.transformCanvas.h/n)),"xMid"===l&&(a<r&&"meet"===e||a>r&&"slice"===e)?this.transformCanvas.tx=(s-this.transformCanvas.w*(i/this.transformCanvas.h))/2*n:"xMax"===l&&(a<r&&"meet"===e||a>r&&"slice"===e)?this.transformCanvas.tx=(s-this.transformCanvas.w*(i/this.transformCanvas.h))*n:this.transformCanvas.tx=0,"YMid"===p&&(a>r&&"meet"===e||a<r&&"slice"===e)?this.transformCanvas.ty=(i-this.transformCanvas.h*(s/this.transformCanvas.w))/2*n:"YMax"===p&&(a>r&&"meet"===e||a<r&&"slice"===e)?this.transformCanvas.ty=(i-this.transformCanvas.h*(s/this.transformCanvas.w))*n:this.transformCanvas.ty=0}else o===ta.Initial?(this.transformCanvas.sx=s/(this.transformCanvas.w/n),this.transformCanvas.sy=i/(this.transformCanvas.h/n)):(this.transformCanvas.sx=n,this.transformCanvas.sy=n),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this._elementWidth=s,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)}constructor(...t){super(...t),this._dprLocked=!1,this._elementWidth=0}}class au extends eS{constructor(t,e,s){super(),this.pendingElements=[],this.completeLayers=!1,this.layers=t.layers,this.elements=tu(this.layers.length),this.initElement(t,e,s),this.tm=t.tm?tU.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new au(t,this.globalData,this)}destroy(){let{length:t}=this.layers;for(let e=t-1;e>=0;e--)this.elements[e]?.destroy();this.layers=null,this.elements=null}destroyBaseElement(){}renderElement(){}renderInnerContent(){if(!this.data?.w||!this.data.h)throw Error(`${this.constructor.name} data (LottieLayer) is not implemented`);let{canvasContext:t,completeLayers:e,data:s,elements:i,layers:r}=this;if(!t)throw Error(`${this.constructor.name}: canvasContext is not implemented`);t.beginPath(),t.moveTo(0,0),t.lineTo(s.w||0,0),t.lineTo(s.w||0,s.h||0),t.lineTo(0,s.h||0),t.lineTo(0,0),t.clip();let{length:a}=r;for(let t=a-1;t>=0;t--)(e||i[t])&&i[t]?.renderFrame()}}e2(au,am,["addPendingElement","buildAllItems","buildElementParenting","buildItem","checkLayers","checkPendingElements","configAnimation","createAudio","createCamera","createFootage","createImage","createItem","createNull","createShape","createSolid","createText","ctxFill","ctxFillRect","ctxFillStyle","ctxLineCap","ctxLineJoin","ctxLineWidth","ctxMiterLimit","ctxOpacity","ctxStroke","ctxStrokeStyle","ctxTransform","getElementById","getElementByPath","includeLayers","initItems","reset","restore","save","searchExtraCompositions","setProjectInterface","setupGlobalData","syncDevicePixelRatio","updateContainerSize"]),e2(au,ar,["clearCanvas","createContainerElements","createContent","createRenderableComponents","exitLayer","hide","hideElement","initRendererElement","prepareLayer","renderFrame","setBlendMode","show","showElement"]);class ad{constructor(){this.fillStyle="",this.lineCap="",this.lineJoin="",this.lineWidth="",this.miterLimit="",this.opacity=-1,this.strokeStyle="",this.transform=tm(te.Float32,16),this.id=Math.random()}}class af{constructor(){this.appliedFillStyle="",this.appliedLineCap="",this.appliedLineJoin="",this.appliedLineWidth="",this.appliedMiterLimit="",this.appliedStrokeStyle="",this.cArrPos=0,this.cTr=new td,this.currentFillStyle="",this.currentLineCap="",this.currentLineJoin="",this.currentLineWidth="",this.currentMiterLimit="",this.currentOpacity=1,this.currentStrokeStyle="",this.nativeContext=null,this.stack=[],this.transformMat=new td;for(let t=0;t<15;t++){let e=new ad;this.stack[t]=e}this._length=15}duplicate(){let t=2*this._length;for(let e=this._length;e<t;e++)this.stack[e]=new ad;this._length=t}fill(t){this.nativeContext&&this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext?.fill(t)}fillRect(t,e,s,i){this.nativeContext&&this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext?.fillRect(t,e,s,i)}fillStyle(t){let e=this.stack[this.cArrPos];e.fillStyle!==t&&(this.currentFillStyle=t,e.fillStyle=t)}lineCap(t){let e=this.stack[this.cArrPos];e.lineCap!==t&&(this.currentLineCap=t,e.lineCap=t)}lineJoin(t){let e=this.stack[this.cArrPos];e.lineJoin!==t&&(this.currentLineJoin=t,e.lineJoin=t)}lineWidth(t){let e=this.stack[this.cArrPos];e.lineWidth!==t&&(this.currentLineWidth=t,e.lineWidth=t)}miterLimit(t){let e=this.stack[this.cArrPos];e.miterLimit!==t&&(this.currentMiterLimit=t,e.miterLimit=t)}opacity(t){let e=this.stack[this.cArrPos],s=e.opacity;s*=t<0?0:t,e.opacity!==s&&(this.nativeContext&&this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),e.opacity=s)}reset(){this.cArrPos=0,this.cTr.reset(),this.appliedFillStyle="",this.appliedStrokeStyle="",this.appliedLineWidth="",this.appliedLineCap="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentFillStyle="",this.currentStrokeStyle="",this.currentLineWidth="",this.currentLineCap="",this.currentLineJoin="",this.currentMiterLimit="",this.currentOpacity=1;let t=this.stack[0];t.opacity=1,t.fillStyle="",t.strokeStyle="",t.lineWidth="",t.lineCap="",t.lineJoin="",t.miterLimit=""}restore(t){this.cArrPos-=1;let{fillStyle:e,lineCap:s,lineJoin:i,lineWidth:r,miterLimit:a,opacity:n,strokeStyle:o,transform:h}=this.stack[this.cArrPos],l=this.cTr.props;for(let t=0;t<16;t++)l[t]=h[t]??0;t&&(this.nativeContext?.restore(),this.appliedFillStyle="",this.appliedStrokeStyle="",this.appliedLineWidth="",this.appliedLineCap="",this.appliedLineJoin="",this.appliedMiterLimit=""),this.nativeContext?.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),this.nativeContext&&(t||-1!==n&&this.currentOpacity!==n)&&(this.nativeContext.globalAlpha=n,this.currentOpacity=n),this.currentFillStyle=e,this.currentStrokeStyle=o,this.currentLineWidth=r,this.currentLineCap=s,this.currentLineJoin=i,this.currentMiterLimit=a}save(t){let e;t&&this.nativeContext?.save();let{props:s}=this.cTr;this._length<=this.cArrPos&&this.duplicate();let i=this.stack[this.cArrPos];for(e=0;e<16;e++)i.transform[e]=s[e]??0;this.cArrPos++;let r=this.stack[this.cArrPos];r.opacity=i.opacity,r.fillStyle=i.fillStyle,r.strokeStyle=i.strokeStyle,r.lineWidth=i.lineWidth,r.lineCap=i.lineCap,r.lineJoin=i.lineJoin,r.miterLimit=i.miterLimit}setContext(t=null){this.nativeContext=t}setOpacity(t){this.stack[this.cArrPos].opacity=t}stroke(){if(!this.nativeContext)throw Error(`${this.constructor.name}: nativeContext is not implemented`);this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=Number(this.appliedLineWidth)),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=Number(this.appliedMiterLimit)),this.nativeContext.stroke()}strokeStyle(t){let e=this.stack[this.cArrPos];e.strokeStyle!==t&&(this.currentStrokeStyle=t,e.strokeStyle=t)}transform(t){this.transformMat.cloneFromProps(t);let e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);let s=e.props;this.nativeContext?.setTransform(s[0],s[1],s[4],s[5],s[12],s[13])}}class ag{createMergeNode(t,e){let s,i=tf("feMerge");i.setAttribute("result",t);let{length:r}=e;for(let t=0;t<r;t++)(s=tf("feMergeNode")).setAttribute("in",e[t]),i.appendChild(s),i.appendChild(s);return i}}let ay=[],av="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";class ab extends eI{createContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=tf("rect");t.width.baseVal.value=this.data.sw||0,t.height.baseVal.value=this.data.sh||0,this.data.sc&&t.setAttribute("fill",this.data.sc),this.layerElement?.appendChild(t)}}let a_={shapes:[]};class ax extends sg{constructor(t,e,s){super(),this.renderedLetters=[],this.textSpans=[],this.renderType=tn.SVG,this.initElement(t,e,s)}buildNewText(){let t,e;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);if(!this.textProperty?.currentData)throw Error(`${this.constructor.name}: DocumentData is not implemented`);this.addDynamicProperty(this);let s=this.textProperty.currentData;this.renderedLetters=tu(s.l.length||0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",`${s.sw||0}`)),this.layerElement.setAttribute("font-size",`${s.finalSize||0}`);let i=this.globalData.fontManager?.getFontByName(s.f);if(i?.fClass)this.layerElement.classList.add(i.fClass);else{i?.fFamily&&this.layerElement.setAttribute("font-family",i.fFamily);let{fWeight:t}=s,{fStyle:e}=s;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)}this.layerElement.ariaLabel=`${s.t}`;let r=s.l,a=!!this.globalData.fontManager?.chars;e=r.length;let n=null,o=this.mHelper,{singleShape:h}=this.data,l=0,p=0,c=!0,m=.001*s.tr*Number(s.finalSize);if(!h||a||s.sz){let u,d=this.textSpans.length;for(t=0;t<e;t++){if(this.textSpans[t]=this.textSpans[t]??{childSpan:null,glyph:null,span:null},!a||!h||0===t){let e=a?"g":"text";if(!(n=(d>t?this.textSpans[t]?.span:tf(e))??null))throw Error("Could not create tSpan");if(d<=t){if(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t]&&(this.textSpans[t].span=n),a){let e=tf("g");n.appendChild(e),this.textSpans[t]&&(this.textSpans[t].childSpan=e)}this.textSpans[t]&&(this.textSpans[t].span=n),this.layerElement.appendChild(n)}n.style.display="inherit"}if(o.reset(),h&&(r[t]?.n&&(l=-m,p+=Number(s.yOffset),p+=+!!c,c=!1),this.applyTextPropertiesToMatrix(s,o,r[t]?.line??0,l,p),l+=r[t]?.l||0,l+=m),a){let e;if(u=this.globalData.fontManager?.getCharData(s.finalText[t]??"",i?.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily),u?.t===1)e=this.comp.createComp(u.data,void 0,this);else{let t=a_;u?.data?.shapes&&(t=this.buildShapeData(u.data,Number(s.finalSize))),e=new e8(t,this.globalData,this)}if(this.textSpans[t]){let{glyph:s}=this.textSpans[t]??{};s&&(s.layerElement&&this.textSpans[t]?.childSpan?.removeChild(s.layerElement),s.destroy()),this.textSpans[t].glyph=e}e._debug=!0,e.prepareFrame(0),e.renderFrame(),e.layerElement&&this.textSpans[t]?.childSpan?.appendChild(e.layerElement),u?.t===1&&this.textSpans[t]?.childSpan?.setAttribute("transform",`scale(${Number(s.finalSize)/100},${Number(s.finalSize)/100})`);continue}n&&(h&&n.setAttribute("transform",`translate(${o.props[12]},${o.props[13]})`),n.textContent=r[t]?.val??"",n.style.whiteSpace="preserve")}h&&n?.setAttribute("d","")}else{let i,r=this.textContainer;switch(s.j){case 1:i="end";break;case 2:i="middle";break;default:i="start"}r?.setAttribute("text-anchor",i),r?.setAttribute("letter-spacing",`${m}`);let a=this.buildTextContents(s.finalText);for(e=a.length,p=s.ps?s.ps[1]+Number(s.ascent):0,t=0;t<e;t++)(n=this.textSpans[t]?.span??tf("tspan")).textContent=a[t]??"",n.setAttribute("x","0"),n.setAttribute("y",`${p}`),n.style.display="inherit",r?.appendChild(n),this.textSpans[t]=this.textSpans[t]??{glyph:null,span:null},this.textSpans[t].span=n,p+=Number(s.finalLineHeight);r&&this.layerElement.appendChild(r)}let u=this.textSpans[t]?.span;if(u)for(;t<this.textSpans.length;)u.style.display="none",t++;this._sizeChanged=!0}buildShapeData(t,e){if(t.shapes.length>0){let s=t.shapes[0];if(s.it){let t=s.it[s.it.length-1];t.s&&(t.s.k[0]=e,t.s.k[1]=e)}}return t}buildTextContents(t){let e=0,{length:s}=t,i=[],r="";for(;e<s;)"\r"===t[e]||"\x03"===t[e]?(i.push(r),r=""):r+=t[e]??"",e++;return i.push(r),i}createContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.data.singleShape&&!this.globalData.fontManager?.chars&&(this.textContainer=tf("text"))}getValue(){let t;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let{length:e}=this.textSpans;this.renderedFrame=this.comp?.renderedFrame??-1;for(let s=0;s<e;s++)(t=this.textSpans[s]?.glyph)&&(t.prepareFrame(Number(this.comp?.renderedFrame)-this.data.st),t._mdf&&(this._mdf=!0))}renderInnerContent(){let t,e,s;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.validateText(),this.data.singleShape&&!this._mdf)return;if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not initialized`);if(this.textAnimator?.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator?.lettersChangedFlag)return;this._sizeChanged=!0;let i=this.textAnimator?.renderedLetters,r=this.textProperty.currentData.l,{length:a}=r;for(let n=0;n<a;n++)!r[n]?.n&&(t=i?.[n],e=this.textSpans[n]?.span,(s=this.textSpans[n]?.glyph)&&s.renderFrame(),t?._mdf.m&&e?.setAttribute("transform",t.m),t?._mdf.o&&e?.setAttribute("opacity",`${t.o??1}`),t?._mdf.sw&&e?.setAttribute("stroke-width",`${t.sw||0}`),t?._mdf.sc&&e?.setAttribute("stroke",t.sc),t?._mdf.fc&&e?.setAttribute("fill",t.fc))}sourceRectAtTime(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.comp)throw Error(`${this.constructor.name}: comp (ElementInterface) is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;let t=this.layerElement.getBBox();return this.bbox={height:t.height,left:t.x,top:t.y,width:t.width},this.bbox}return null}}e2(ax,eD,["createContainerElements","createRenderableComponents","destroyBaseElement","getBaseElement","getMatte","initRendererElement","renderElement","setMatte"]);class aw extends sx{appendElementInPos(t,e){let s=t.getBaseElement();if(!s)return;let i=0,r;for(;i<e;)!0!==this.elements[i]&&this.elements[i]?.getBaseElement()&&(r=this.elements[i]?.getBaseElement()),i++;r?this.layerElement?.insertBefore(s,r):this.layerElement?.appendChild(s)}buildItem(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData it not implemented`);let{elements:e,globalData:s,layers:i}=this;if(e[t]||i[t]?.ty===99)return;e[t]=!0;let r=this.createItem(i[t]);if(e[t]=r,em.plugin&&(i[t]?.ty===0&&s.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),i[t]?.tt){let s="tp"in i[t]?this.findIndexByInd(i[t].tp):t-1;if(-1===s)return;if(!e[s]||!0===e[s]){this.buildItem(s),this.addPendingElement(r);return}let a=e[s].getMatte(i[t].tt);r.setMatte(a)}}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();if(t?.checkParenting(),t?.data?.tt){let e=0,{length:s}=this.elements;for(;e<s;){if(this.elements[e]!==t){e++;continue}let s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[s]?.getMatte(this.layers[e]?.tt)??"";t.setMatte(i);break}}}}configAnimation(t){try{if(!this.animationItem)throw Error(`${this.constructor.name}: Can't access animationItem`);if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);if(!this.renderConfig)throw Error(`${this.constructor.name}: Can't access renderConfig`);if(!this.svgElement)throw Error(`${this.constructor.name}: Can't access svgElement`);this.svgElement.setAttribute("xmlns",y),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.renderConfig.contentVisibility&&(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.classList.add(this.renderConfig.className),this.renderConfig.id&&(this.svgElement.id=this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",`${this.renderConfig.focusable}`),this.renderConfig.preserveAspectRatio&&this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper?.appendChild(this.svgElement);let{defs:e}=this.globalData;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;let s=tf("clipPath"),i=tf("rect");i.width.baseVal.value=t.w,i.height.baseVal.value=t.h,i.x.baseVal.value=0,i.y.baseVal.value=0;let r=k();s.id=r,s.appendChild(i),this.layerElement?.setAttribute("clip-path",`url(${ty()}#${r})`),e.appendChild(s),this.layers=t.layers,this.elements=tu(t.layers.length)}catch(t){P(this.constructor.name,t)}}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new eI(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new e8(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new ab(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new ax(t,this.globalData,this)}destroy(){if(!this.animationItem)throw Error(`${this.constructor.name}: Can't access animationItem`);if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;let{length:t}=this.layers;for(let e=0;e<t;e++)this.elements[e]?.destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null}findIndexByInd(t){let{length:e}=this.layers;for(let s=0;s<e;s++)if(this.layers[s]?.ind===t)return s;return -1}hide(){if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.layerElement.style.display="none"}renderFrame(t){try{if(!this.globalData||this.renderedFrame===t||this.destroyed)return;let e=t;!1===e?e=this.renderedFrame:this.renderedFrame=Number(e),this.globalData.frameNum=e,this.globalData.frameId++,this.globalData.projectInterface.currentFrame=e||0,this.globalData._mdf=!1;let{length:s}=this.layers;this.completeLayers||this.checkLayers(e);for(let t=s-1;t>=0;t--)"boolean"!=typeof this.elements[t]&&(this.completeLayers||this.elements[t])&&this.elements[t]?.prepareFrame(Number(e)-(this.layers[t]?.st??0));if(this.globalData._mdf)for(let t=0;t<s;t++)"boolean"!=typeof this.elements[t]&&(this.completeLayers||this.elements[t])&&this.elements[t]?.renderFrame()}catch(t){P(this.constructor.name,t)}}show(){if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.layerElement.style.display="block"}updateContainerSize(t,e){}constructor(...t){super(...t),this.destroyed=!1}}class aS extends eD{constructor(t,e,s){super(),this.completeLayers=!1,this.currentFrame=0,this.pendingElements=[],this.supports3d=!0,this.layers=t.layers,this.elements=this.layers?tu(this.layers.length):[],this.initElement(t,e,s),this.tm=t.tm?tU.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}createComp(t,e,s){if(!this.globalData)throw Error(`${this.constructor.name}: Cannot access global data`);return new aS(t,this.globalData,s??this)}}e2(aS,aw,["addPendingElement","appendElementInPos","buildAllItems","buildElementParenting","buildItem","checkLayers","checkPendingElements","configAnimation","createAudio","createCamera","createFootage","createImage","createItem","createNull","createShape","createSolid","createText","findIndexByInd","getElementById","getElementByPath","includeLayers","initItems","searchExtraCompositions","setProjectInterface","setupGlobalData","updateContainerSize"]),e2(aS,eS,["createContent","destroy","destroyElements","getElements","hide","initElement","prepareFrame","renderFrame","renderInnerContent","setElements","show"]),!function({effects:t,expressions:e,renderers:s}){e?.installPlugin,s.forEach(({renderer:t,rendererType:e})=>{sD[e]=t}),e6(ts.TrimModifier,iq),e6(ts.PuckerAndBloatModifier,iz),e6(ts.RepeaterModifier,iB),e6(ts.RoundCornersModifier,iG),e6(ts.ZigZagModifier,iJ),e6(ts.OffsetPathModifier,iO),e?.registerExpressions(),t.forEach(({countsAsEffect:t,effect:e,id:s,isCanvas:i})=>{i?tv[s]={countsAsEffect:void 0,effect:e}:eA[s]={countsAsEffect:t,effect:e}}),v||iU||(iU=!0,"complete"===document.readyState?ip():addEventListener("DOMContentLoaded",()=>{ip()},{once:!0})),e?.installPlugin}({effects:[{countsAsEffect:!0,effect:class extends ag{constructor(t,e,s,i,r){super(),this.filterManager=e;let a=tf("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",`${av} 1 0`),this.linearFilter=a,a.setAttribute("result",`${i}_tint_1`),t.appendChild(a),(a=tf("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;let n=this.createMergeNode(i,[r,`${i}_tint_1`,`${i}_tint_2`]);t.appendChild(n)}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0]?.p.v,s=this.filterManager.effectElements[1]?.p.v,i=this.filterManager.effectElements[2]?.p.v/100;this.linearFilter.setAttribute("values",`${av} ${i} 0`),this.matrixFilter.setAttribute("values",`${s[0]-e[0]} 0 0 0 ${e[0]} ${s[1]-e[1]} 0 0 0 ${e[1]} ${s[2]-e[2]} 0 0 0 ${e[2]} 0 0 0 1 0`)}},id:20},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;let r=tf("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",i),t.appendChild(r),this.matrixFilter=r}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[2]?.p.v,s=this.filterManager.effectElements[6]?.p.v;this.matrixFilter.setAttribute("values",`0 0 0 0 ${e[0]} 0 0 0 0 ${e[1]} 0 0 0 0 ${e[2]} 0 0 0 ${s} 0`)}},id:21},{effect:class{constructor(t,e,s){this.initialized=!1,this.paths=[],this.filterManager=e,this.elem=s}initialize(){let t,e,s,i=[...this.elem.layerElement?.children??this.elem.layerElement?.childNodes??[]];this.filterManager.effectElements[1]?.p.v===1?(s=this.elem.maskManager?.masksProperties.length||0,e=0):s=(e=this.filterManager.effectElements[0]?.p.v-1)+1;let r=tf("g");for(r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset","1");e<s;e++)t=tf("path"),r.appendChild(t),this.paths.push({m:e,p:t});if(this.filterManager.effectElements[10]?.p.v===3){let t=tf("mask"),e=k();t.id=e,t.setAttribute("mask-type","alpha"),t.appendChild(r),this.elem.globalData?.defs.appendChild(t);let s=tf("g");for(s.setAttribute("mask",`url(${ty()}#${e})`);i[0];)s.appendChild(i[0]);this.elem.layerElement?.appendChild(s),this.masker=t,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10]?.p.v===1||this.filterManager.effectElements[10]?.p.v===2){if(2===this.filterManager.effectElements[10].p.v)for(i=[...this.elem.layerElement?.children??this.elem.layerElement?.childNodes??[]];i.length>0;)this.elem.layerElement?.removeChild(i[0]);this.elem.layerElement?.appendChild(r),this.elem.layerElement?.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r}renderFrame(t){let e,s;this.initialized||this.initialize();let{length:i}=this.paths;for(let r=0;r<i;r++)if(this.paths[r]?.m!==-1&&(e=this.elem.maskManager?.viewData[this.paths[r]?.m??0],s=this.paths[r]?.p,e&&(t||this.filterManager._mdf||e.prop?._mdf)&&s.setAttribute("d",e.lastPath),t||this.filterManager.effectElements[9]?.p._mdf||this.filterManager.effectElements[4]?.p._mdf||this.filterManager.effectElements[7]?.p._mdf||this.filterManager.effectElements[8]?.p._mdf||e?.prop?._mdf)){let t;if(this.filterManager.effectElements[7]?.p.v!==0||this.filterManager.effectElements[8]?.p.v!==100){let e=.01*Math.min(this.filterManager.effectElements[7]?.p.v,this.filterManager.effectElements[8]?.p.v),i=.01*Math.max(this.filterManager.effectElements[7]?.p.v,this.filterManager.effectElements[8]?.p.v),r=s.getTotalLength();t=`0 0 0 ${r*e} `;let a=Math.floor(r*(i-e)/(1+this.filterManager.effectElements[4]?.p.v*2*this.filterManager.effectElements[9]?.p.v*.01));for(let e=0;e<a;e++)t+=`1 ${this.filterManager.effectElements[4]?.p.v*2*this.filterManager.effectElements[9]?.p.v*.01} `;t+=`0 ${10*r} 0 0`}else t=`1 ${this.filterManager.effectElements[4]?.p.v*2*this.filterManager.effectElements[9]?.p.v*.01}`;s.setAttribute("stroke-dasharray",t)}(t||this.filterManager.effectElements[4]?.p._mdf)&&this.pathMasker?.setAttribute("stroke-width",`${this.filterManager.effectElements[4]?.p.v*2}`),(t||this.filterManager.effectElements[6]?.p._mdf)&&this.pathMasker?.setAttribute("opacity",`${Number(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)&&this.pathMasker?.setAttribute("stroke",z(this.filterManager.effectElements[3]?.p.v))}},id:22},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;let r=tf("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.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(r);let a=tf("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;let n=tf("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;let o=tf("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;let h=tf("feFuncB");h.setAttribute("type","table"),a.appendChild(h),this.feFuncB=h,t.appendChild(a)}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0]?.p.v,s=this.filterManager.effectElements[1]?.p.v,i=this.filterManager.effectElements[2]?.p.v,r=`${i[0]} ${s[0]} ${e[0]}`,a=`${i[1]} ${s[1]} ${e[1]}`,n=`${i[2]} ${s[2]} ${e[2]}`;this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},id:23},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;let{effectElements:r}=this.filterManager,a=tf("feComponentTransfer");(r[10]?.p.k||r[10]?.p.v!==0||r[11]?.p.k||r[11]?.p.v!==1||r[12]?.p.k||r[12]?.p.v!==1||r[13]?.p.k||r[13]?.p.v!==0||r[14]?.p.k||r[14]?.p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(r[17]?.p.k||r[17]?.p.v!==0||r[18]?.p.k||r[18]?.p.v!==1||r[19]?.p.k||r[19]?.p.v!==1||r[20]?.p.k||r[20]?.p.v!==0||r[21]?.p.k||r[21]?.p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(r[24]?.p.k||r[24]?.p.v!==0||r[25]?.p.k||r[25]?.p.v!==1||r[26]?.p.k||r[26]?.p.v!==1||r[27]?.p.k||r[27]?.p.v!==0||r[28]?.p.k||r[28]?.p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(r[31]?.p.k||r[31]?.p.v!==0||r[32]?.p.k||r[32]?.p.v!==1||r[33]?.p.k||r[33]?.p.v!==1||r[34]?.p.k||r[34]?.p.v!==0||r[35]?.p.k||r[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)),(r[3]?.p.k||r[3]?.p.v!==0||r[4]?.p.k||r[4]?.p.v!==1||r[5]?.p.k||r[5]?.p.v!==1||r[6]?.p.k||r[6]?.p.v!==0||r[7]?.p.k||r[7]?.p.v!==1)&&((a=tf("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))}createFeFunc(t,e){let s=tf(t);return s.setAttribute("type","table"),e.appendChild(s),s}getTableValue(t,e,s,i,r){let a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=tu(256),p,c=0,m=r-i,u=e-t;for(;n<=256;)p=(a=n/256)<=o?u<0?r:i:a>=h?u<0?i:r:i+m*Math.pow((a-t)/u,1/s),l[c]=p,c++,n+=256/255;return l.join(" ")}renderFrame(t){let e;if(!t&&!this.filterManager._mdf)return;let{effectElements:s}=this.filterManager;this.feFuncRComposed&&(t||s[3]?.p._mdf||s[4]?.p._mdf||s[5]?.p._mdf||s[6]?.p._mdf||s[7]?.p._mdf)&&(e=this.getTableValue(s[3]?.p.v,s[4]?.p.v,s[5]?.p.v,s[6]?.p.v,s[7]?.p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed?.setAttribute("tableValues",e),this.feFuncBComposed?.setAttribute("tableValues",e)),this.feFuncR&&(t||s[10]?.p._mdf||s[11]?.p._mdf||s[12]?.p._mdf||s[13]?.p._mdf||s[14]?.p._mdf)&&(e=this.getTableValue(s[10]?.p.v,s[11]?.p.v,s[12]?.p.v,s[13]?.p.v,s[14]?.p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||s[17]?.p._mdf||s[18]?.p._mdf||s[19]?.p._mdf||s[20]?.p._mdf||s[21]?.p._mdf)&&(e=this.getTableValue(s[17]?.p.v,s[18]?.p.v,s[19]?.p.v,s[20]?.p.v,s[21]?.p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||s[24]?.p._mdf||s[25]?.p._mdf||s[26]?.p._mdf||s[27]?.p._mdf||s[28]?.p._mdf)&&(e=this.getTableValue(s[24]?.p.v,s[25]?.p.v,s[26]?.p.v,s[27]?.p.v,s[28]?.p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||s[31]?.p._mdf||s[32]?.p._mdf||s[33]?.p._mdf||s[34]?.p._mdf||s[35]?.p._mdf)&&(e=this.getTableValue(s[31]?.p.v,s[32]?.p.v,s[33]?.p.v,s[34]?.p.v,s[35]?.p.v),this.feFuncA.setAttribute("tableValues",e))}},id:24},{countsAsEffect:!0,effect:class extends ag{constructor(t,e,s,i,r){super();let a=(e.container?.globalData?.renderConfig).filterSize,n=e.data?.fs??a??{height:"100%",width:"100%",x:"0%",y:"0%"};t.setAttribute("x",n.x),t.setAttribute("y",n.y),t.setAttribute("width",n.width),t.setAttribute("height",n.height),this.filterManager=e;let o=tf("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",`${i}_drop_shadow_1`),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);let h=tf("feOffset");h.dx.baseVal=25,h.dy.baseVal=0,h.setAttribute("in",`${i}_drop_shadow_1`),h.setAttribute("result",`${i}_drop_shadow_2`),this.feOffset=h,t.appendChild(h);let l=tf("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",`${i}_drop_shadow_3`),this.feFlood=l,t.appendChild(l);let p=tf("feComposite");p.setAttribute("in",`${i}_drop_shadow_3`),p.in2.baseVal=`${i}_drop_shadow_2`,p.setAttribute("operator","in"),p.result.baseVal=`${i}_drop_shadow_4`,t.appendChild(p);let c=this.createMergeNode(i,[`${i}_drop_shadow_4`,r]);t.appendChild(c)}renderFrame(t){if(t||this.filterManager._mdf){if(t||this.filterManager.effectElements[4]?.p._mdf){let t=this.filterManager.effectElements[4]?.p.v/4;this.feGaussianBlur.setStdDeviation(t,t)}if(t||this.filterManager.effectElements[0]?.p._mdf){let t=this.filterManager.effectElements[0]?.p.v;this.feFlood.setAttribute("flood-color",((t,e,s)=>{let i,r=[];for(let t=0;t<256;t++)i=t.toString(16),r[t]=1===i.length?`0${i}`:i;let a=t,n=e,o=s;return t<0&&(a=0),e<0&&(n=0),s<0&&(o=0),`#${r[a]}${r[n]}${r[o]}`})(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[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){let t=this.filterManager.effectElements[3]?.p.v,e=(this.filterManager.effectElements[2]?.p.v-90)*f,s=t*Math.cos(e),i=t*Math.sin(e);this.feOffset.dx.baseVal=s,this.feOffset.dy.baseVal=i}}}},id:25},{effect:class{constructor(t,e,s){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=s,s.matteElement=tf("g"),s.layerElement&&s.matteElement.appendChild(s.layerElement),s.transformedElement&&s.matteElement.appendChild(s.transformedElement),s.baseElement=s.matteElement}findSymbol(t){let e=0,{length:s}=ay;for(;e<s;){if(ay[e]===t)return ay[e];e++}return null}initialize(){let t=this.filterManager.effectElements[0]?.p.v,e=this.elem.comp?.elements??[],s=0,{length:i}=e;for(;s<i;){let i=e[s];i&&i.data.ind===t&&this.setElementAsMask(this.elem,i),s++}this.initialized=!0}renderFrame(t){this.initialized||this.initialize()}replaceInParent(t,e){let s,i=t.layerElement?.parentNode;if(!i)return;let{children:r}=i,a=0,{length:n}=r;for(;a<n&&r[a]!==t.layerElement;)a++;a<=n-2&&(s=r[a+1]);let o=tf("use");o.setAttribute("href",`#${e}`),s?i.insertBefore(o,s):i.appendChild(o)}setElementAsMask(t,e){if(!this.findSymbol(e)){let s=k(),i=tf("mask");e.layerId&&(i.id=e.layerId),i.setAttribute("mask-type","alpha"),ay.push(e);let{defs:r}=t.globalData??{defs:null};r?.appendChild(i);let a=tf("symbol");a.id=s,this.replaceInParent(e,s),e.layerElement&&a.appendChild(e.layerElement),r?.appendChild(a);let n=tf("use");n.href.baseVal=`#${s}`,i.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId||"")}},id:28},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;let r=tf("feGaussianBlur");r.setAttribute("result",i),t.appendChild(r),this.feGaussianBlur=r}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0]?.p.v*.3,s=Number(this.filterManager.effectElements[1]?.p.v);this.feGaussianBlur.setAttribute("stdDeviation",`${3===s?0:e} ${2===s?0:e}`);let i=1===Number(this.filterManager.effectElements[2]?.p.v)?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},id:29},{effect:class extends iY{constructor(t,e){super(),this.init(e)}},id:35},{effect:class extends iY{constructor(t){super(),this.init(t)}},id:35,isCanvas:!0}],expressions:{installPlugin:(t,e)=>{"expressions"===t&&eu(e)},registerExpressions:()=>{eu(rA),em.interface=r1,function(){let{getTransformProperty:t}=ey;ey.getTransformProperty=function(e,s,i){let r=t(e,s,i);return r.dynamicProperties.length>0?r.getValueAtTime=rE.bind(r):r.getValueAtTime=rk.bind(r),r.setGroupProperty=rb.setGroupProperty,r};let e=tU.getProp;tU.getProp=function(t,s,i,r,a){let n=e(t,s,i,r,a);n.kf?n.getValueAtTime=rb.getValueAtTime.bind(n):n.getValueAtTime=rb.getStaticValueAtTime.bind(n),n.setGroupProperty=rb.setGroupProperty,n.loopOut=rx,n.loopIn=rw,n.smooth=rS,n.getVelocityAtTime=rb.getVelocityAtTime.bind(n),n.getSpeedAtTime=rb.getSpeedAtTime.bind(n),n.numKeys=s?.a===1?s.k.length:0,n.propertyIndex=s?.ix;let o=0;return 0!==i&&(o=tm(te.Float32,s?.a===1?s.k[0]?.s.length:(s?.k).length)),n._cachingAtTime={lastFrame:-999999,lastIndex:0,value:o},rb.searchExpressions(t,s,n),n.k&&a?.addDynamicProperty(n),n};let s=t7.getConstructorFunction(),i=t7.getKeyframeConstructorFunction();e3([r_],s),e3([r_],i),i.prototype.getValueAtTime=rC,i.prototype.initiateExpression=rv.initiateExpression;let r=t7.getShapeProp;t7.getShapeProp=function(t,e,s,i,a){let n=r(t,e,s,i,a);return n&&(n.propertyIndex=e.ix,n.lock=!1,3===s?rb.searchExpressions(t,e.pt,n):4===s&&rb.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n)),n}}(),sf.prototype.getExpressionValue=function(t,e){let s=this.calculateExpression(e);if(t.t!==s){let e={};return this.copyData(e,t),e.t=s.toString(),e.__complete=!1,e}return t},sf.prototype.searchProperty=function(){let t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=!!(t||e),this.kf},sf.prototype.searchExpressions=rT}},renderers:[{renderer:class extends aw{constructor(t,e={}){super(),this.rendererType=tn.SVG,this.animationItem=t,this.svgElement=tf("svg");let s="";if(e.title){let t=tf("title"),i=k();t.id=i,t.textContent=e.title,this.svgElement.appendChild(t),s+=i}if(e.description){let t=tf("desc"),i=k();t.id=i,t.textContent=e.description,this.svgElement.appendChild(t),s+=` ${i}`}s&&this.svgElement.setAttribute("aria-labelledby",s);let i=tf("defs");this.svgElement.appendChild(i);let r=tf("g");this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={className:e.className||"",contentVisibility:e.contentVisibility||"visible",filterSize:{height:e.filterSize?.height||"100%",width:e.filterSize?.width||"100%",x:e.filterSize?.x||"0%",y:e.filterSize?.y||"0%"},focusable:e.focusable,height:e.height,hideOnTransparent:!1!==e.hideOnTransparent,id:e.id||"",imagePreserveAspectRatio:e.imagePreserveAspectRatio||"xMidYMid slice",preserveAspectRatio:e.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e.progressiveLoad||!1,runExpressions:void 0===e.runExpressions||e.runExpressions,viewBoxOnly:e.viewBoxOnly||!1,viewBoxSize:e.viewBoxSize||!1,width:e.width},this.globalData={_mdf:!1,defs:i,frameNum:-1,frameRate:60,renderConfig:this.renderConfig}}createComp(t,e,s){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new aS(t,this.globalData,s??this)}},rendererType:tn.SVG},{renderer:class extends am{constructor(t,e){super(),this.rendererType=tn.Canvas,this.transformMat=new td,this.animationItem=t,this._dprLocked="number"==typeof e?.dpr&&e.dpr>0;let s=this._dprLocked||!!t.wrapper;this.renderConfig={className:e?.className||"",clearCanvas:e?.clearCanvas??!0,contentVisibility:e?.contentVisibility||"visible",context:e?.context??null,dpr:s?A(e?.dpr):1,id:e?.id||"",imagePreserveAspectRatio:e?.imagePreserveAspectRatio||ta.Cover,preserveAspectRatio:e?.preserveAspectRatio||ta.Contain,progressiveLoad:!!e?.progressiveLoad,runExpressions:e?.runExpressions??!0},s||(this._dprLocked=!0),this.globalData={_mdf:!1,currentGlobalAlpha:-1,frameNum:-1,renderConfig:this.renderConfig},this.contextData=new af,this.elements=[],this.pendingElements=[],this.completeLayers=!1,this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new au(t,this.globalData,this)}},rendererType:tn.Canvas}]});var aE={},ak=function(t,e,s,i,r){var a=new Worker(aE[e]||(aE[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,s=e.$e$;if(s){var i=Error(s[0]);i.code=s[1],i.stack=s[2],r(i,null)}else r(null,e)},a.postMessage(s,i),a},aC=Uint8Array,aP=Uint16Array,aM=Int32Array,aA=new aC([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),aT=new aC([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),aD=new aC([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),aI=function(t,e){for(var s=new aP(31),i=0;i<31;++i)s[i]=e+=1<<t[i-1];for(var r=new aM(s[30]),i=1;i<30;++i)for(var a=s[i];a<s[i+1];++a)r[a]=a-s[i]<<5|i;return{b:s,r:r}},aF=aI(aA,2),aL=aF.b,a$=aF.r;aL[28]=258,a$[258]=28;for(var aN=aI(aT,0),aV=aN.b,aR=aN.r,aO=new aP(32768),az=0;az<32768;++az){var aB=(43690&az)>>1|(21845&az)<<1;aB=(61680&(aB=(52428&aB)>>2|(13107&aB)<<2))>>4|(3855&aB)<<4,aO[az]=((65280&aB)>>8|(255&aB)<<8)>>1}for(var aG=function(t,e,s){for(var i,r=t.length,a=0,n=new aP(e);a<r;++a)t[a]&&++n[t[a]-1];var o=new aP(e);for(a=1;a<e;++a)o[a]=o[a-1]+n[a-1]<<1;if(s){i=new aP(1<<e);var h=15-e;for(a=0;a<r;++a)if(t[a])for(var l=a<<4|t[a],p=e-t[a],c=o[t[a]-1]++<<p,m=c|(1<<p)-1;c<=m;++c)i[aO[c]>>h]=l}else for(i=new aP(r),a=0;a<r;++a)t[a]&&(i[a]=aO[o[t[a]-1]++]>>15-t[a]);return i},aq=new aC(288),az=0;az<144;++az)aq[az]=8;for(var az=144;az<256;++az)aq[az]=9;for(var az=256;az<280;++az)aq[az]=7;for(var az=280;az<288;++az)aq[az]=8;for(var aj=new aC(32),az=0;az<32;++az)aj[az]=5;var aH=aG(aq,9,0),aW=aG(aq,9,1),aJ=aG(aj,5,0),aU=aG(aj,5,1),aY=function(t){for(var e=t[0],s=1;s<t.length;++s)t[s]>e&&(e=t[s]);return e},aX=function(t,e,s){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&s},aK=function(t,e){var s=e/8|0;return(t[s]|t[s+1]<<8|t[s+2]<<16)>>(7&e)},aZ=function(t){return(t+7)/8|0},aQ=function(t,e,s){return(null==e||e<0)&&(e=0),(null==s||s>t.length)&&(s=t.length),new aC(t.subarray(e,s))},a0=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],a1=function(t,e,s){var i=Error(e||a0[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,a1),!s)throw i;return i},a2=function(t,e,s,i){var r=t.length,a=i?i.length:0;if(!r||e.f&&!e.l)return s||new aC(0);var n=!s,o=n||2!=e.i,h=e.i;n&&(s=new aC(3*r));var l=function(t){var e=s.length;if(t>e){var i=new aC(Math.max(2*e,t));i.set(s),s=i}},p=e.f||0,c=e.p||0,m=e.b||0,u=e.l,d=e.d,f=e.m,g=e.n,y=8*r;do{if(!u){p=aX(t,c,1);var v=aX(t,c+1,3);if(c+=3,v)if(1==v)u=aW,d=aU,f=9,g=5;else if(2==v){var b=aX(t,c,31)+257,_=aX(t,c+10,15)+4,x=b+aX(t,c+5,31)+1;c+=14;for(var w=new aC(x),S=new aC(19),E=0;E<_;++E)S[aD[E]]=aX(t,c+3*E,7);c+=3*_;for(var k=aY(S),C=(1<<k)-1,P=aG(S,k,1),E=0;E<x;){var M=P[aX(t,c,C)];c+=15&M;var A=M>>4;if(A<16)w[E++]=A;else{var T=0,D=0;for(16==A?(D=3+aX(t,c,3),c+=2,T=w[E-1]):17==A?(D=3+aX(t,c,7),c+=3):18==A&&(D=11+aX(t,c,127),c+=7);D--;)w[E++]=T}}var I=w.subarray(0,b),F=w.subarray(b);f=aY(I),g=aY(F),u=aG(I,f,1),d=aG(F,g,1)}else a1(1);else{var A=aZ(c)+4,L=t[A-4]|t[A-3]<<8,$=A+L;if($>r){h&&a1(0);break}o&&l(m+L),s.set(t.subarray(A,$),m),e.b=m+=L,e.p=c=8*$,e.f=p;continue}if(c>y){h&&a1(0);break}}o&&l(m+131072);for(var N=(1<<f)-1,V=(1<<g)-1,R=c;;R=c){var T=u[aK(t,c)&N],O=T>>4;if((c+=15&T)>y){h&&a1(0);break}if(T||a1(2),O<256)s[m++]=O;else if(256==O){R=c,u=null;break}else{var z=O-254;if(O>264){var E=O-257,B=aA[E];z=aX(t,c,(1<<B)-1)+aL[E],c+=B}var G=d[aK(t,c)&V],q=G>>4;G||a1(3),c+=15&G;var F=aV[q];if(q>3){var B=aT[q];F+=aK(t,c)&(1<<B)-1,c+=B}if(c>y){h&&a1(0);break}o&&l(m+131072);var j=m+z;if(m<F){var H=a-F,W=Math.min(F,j);for(H+m<0&&a1(3);m<W;++m)s[m]=i[H+m]}for(;m<j;++m)s[m]=s[m-F]}}e.l=u,e.p=R,e.b=m,e.f=p,u&&(p=1,e.m=f,e.d=d,e.n=g)}while(!p);return m!=s.length&&n?aQ(s,0,m):s.subarray(0,m)},a3=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8},a5=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8,t[i+2]|=s>>16},a4=function(t,e){for(var s=[],i=0;i<t.length;++i)t[i]&&s.push({s:i,f:t[i]});var r=s.length,a=s.slice();if(!r)return{t:ns,l:0};if(1==r){var n=new aC(s[0].s+1);return n[s[0].s]=1,{t:n,l:1}}s.sort(function(t,e){return t.f-e.f}),s.push({s:-1,f:25001});var o=s[0],h=s[1],l=0,p=1,c=2;for(s[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=s[s[l].f<s[c].f?l++:c++],h=s[l!=p&&s[l].f<s[c].f?l++:c++],s[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var m=a[0].s,i=1;i<r;++i)a[i].s>m&&(m=a[i].s);var u=new aP(m+1),d=a6(s[p-1],u,0);if(d>e){var i=0,f=0,g=d-e,y=1<<g;for(a.sort(function(t,e){return u[e.s]-u[t.s]||t.f-e.f});i<r;++i){var v=a[i].s;if(u[v]>e)f+=y-(1<<d-u[v]),u[v]=e;else break}for(f>>=g;f>0;){var b=a[i].s;u[b]<e?f-=1<<e-u[b]++-1:++i}for(;i>=0&&f;--i){var _=a[i].s;u[_]==e&&(--u[_],++f)}d=e}return{t:new aC(u),l:d}},a6=function(t,e,s){return -1==t.s?Math.max(a6(t.l,e,s+1),a6(t.r,e,s+1)):e[t.s]=s},a8=function(t){for(var e=t.length;e&&!t[--e];);for(var s=new aP(++e),i=0,r=t[0],a=1,n=function(t){s[i++]=t},o=1;o<=e;++o)if(t[o]==r&&o!=e)++a;else{if(!r&&a>2){for(;a>138;a-=138)n(32754);a>2&&(n(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(n(r),--a;a>6;a-=6)n(8304);a>2&&(n(a-3<<5|8208),a=0)}for(;a--;)n(r);a=1,r=t[o]}return{c:s.subarray(0,i),n:e}},a9=function(t,e){for(var s=0,i=0;i<e.length;++i)s+=t[i]*e[i];return s},a7=function(t,e,s){var i=s.length,r=aZ(e+2);t[r]=255&i,t[r+1]=i>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var a=0;a<i;++a)t[r+a+4]=s[a];return(r+4+i)*8},nt=function(t,e,s,i,r,a,n,o,h,l,p){a3(e,p++,s),++r[256];for(var c,m,u,d,f=a4(r,15),g=f.t,y=f.l,v=a4(a,15),b=v.t,_=v.l,x=a8(g),w=x.c,S=x.n,E=a8(b),k=E.c,C=E.n,P=new aP(19),M=0;M<w.length;++M)++P[31&w[M]];for(var M=0;M<k.length;++M)++P[31&k[M]];for(var A=a4(P,7),T=A.t,D=A.l,I=19;I>4&&!T[aD[I-1]];--I);var F=l+5<<3,L=a9(r,aq)+a9(a,aj)+n,$=a9(r,g)+a9(a,b)+n+14+3*I+a9(P,T)+2*P[16]+3*P[17]+7*P[18];if(h>=0&&F<=L&&F<=$)return a7(e,p,t.subarray(h,h+l));if(a3(e,p,1+($<L)),p+=2,$<L){c=aG(g,y,0),m=g,u=aG(b,_,0),d=b;var N=aG(T,D,0);a3(e,p,S-257),a3(e,p+5,C-1),a3(e,p+10,I-4),p+=14;for(var M=0;M<I;++M)a3(e,p+3*M,T[aD[M]]);p+=3*I;for(var V=[w,k],R=0;R<2;++R)for(var O=V[R],M=0;M<O.length;++M){var z=31&O[M];a3(e,p,N[z]),p+=T[z],z>15&&(a3(e,p,O[M]>>5&127),p+=O[M]>>12)}}else c=aH,m=aq,u=aJ,d=aj;for(var M=0;M<o;++M){var B=i[M];if(B>255){var z=B>>18&31;a5(e,p,c[z+257]),p+=m[z+257],z>7&&(a3(e,p,B>>23&31),p+=aA[z]);var G=31&B;a5(e,p,u[G]),p+=d[G],G>3&&(a5(e,p,B>>5&8191),p+=aT[G])}else a5(e,p,c[B]),p+=m[B]}return a5(e,p,c[256]),p+m[256]},ne=new aM([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ns=new aC(0),ni=function(t,e,s,i,r,a){var n=a.z||t.length,o=new aC(i+n+5*(1+Math.ceil(n/7e3))+r),h=o.subarray(i,o.length-r),l=a.l,p=7&(a.r||0);if(e){p&&(h[0]=a.r>>3);for(var c=ne[e-1],m=c>>13,u=8191&c,d=(1<<s)-1,f=a.p||new aP(32768),g=a.h||new aP(d+1),y=Math.ceil(s/3),v=2*y,b=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<v)&d},_=new aM(25e3),x=new aP(288),w=new aP(32),S=0,E=0,k=a.i||0,C=0,P=a.w||0,M=0;k+2<n;++k){var A=b(k),T=32767&k,D=g[A];if(f[T]=D,g[A]=T,P<=k){var I=n-k;if((S>7e3||C>24576)&&(I>423||!l)){p=nt(t,h,0,_,x,w,E,C,M,k-M,p),C=S=E=0,M=k;for(var F=0;F<286;++F)x[F]=0;for(var F=0;F<30;++F)w[F]=0}var L=2,$=0,N=u,V=T-D&32767;if(I>2&&A==b(k-V))for(var R=Math.min(m,I)-1,O=Math.min(32767,k),z=Math.min(258,I);V<=O&&--N&&T!=D;){if(t[k+L]==t[k+L-V]){for(var B=0;B<z&&t[k+B]==t[k+B-V];++B);if(B>L){if(L=B,$=V,B>R)break;for(var G=Math.min(V,B-2),q=0,F=0;F<G;++F){var j=k-V+F&32767,H=f[j],W=j-H&32767;W>q&&(q=W,D=j)}}}D=f[T=D],V+=T-D&32767}if($){_[C++]=0x10000000|a$[L]<<18|aR[$];var J=31&a$[L],U=31&aR[$];E+=aA[J]+aT[U],++x[257+J],++w[U],P=k+L,++S}else _[C++]=t[k],++x[t[k]]}}for(k=Math.max(k,P);k<n;++k)_[C++]=t[k],++x[t[k]];p=nt(t,h,l,_,x,w,E,C,M,k-M,p),l||(a.r=7&p|h[p/8|0]<<3,p-=7,a.h=g,a.p=f,a.i=k,a.w=P)}else{for(var k=a.w||0;k<n+l;k+=65535){var Y=k+65535;Y>=n&&(h[p/8|0]=l,Y=n),p=a7(h,p+1,t.subarray(k,Y))}a.i=n}return aQ(o,0,i+aZ(p)+r)},nr=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var s=e,i=9;--i;)s=(1&s&&-0x12477ce0)^s>>>1;t[e]=s}return t}(),na=function(){var t=-1;return{p:function(e){for(var s=t,i=0;i<e.length;++i)s=nr[255&s^e[i]]^s>>>8;t=s},d:function(){return~t}}},nn=function(t,e,s,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),n=new aC(a.length+t.length);n.set(a),n.set(t,a.length),t=n,r.w=a.length}return ni(t,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,s,i,r)},no=function(t,e){var s={};for(var i in t)s[i]=t[i];for(var i in e)s[i]=e[i];return s},nh=function(t,e,s){for(var i=t(),r=t.toString(),a=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),n=0;n<i.length;++n){var o=i[n],h=a[n];if("function"==typeof o){e+=";"+h+"=";var l=o.toString();if(o.prototype)if(-1!=l.indexOf("[native code]")){var p=l.indexOf(" ",8)+1;e+=l.slice(p,l.indexOf("(",p))}else for(var c in e+=l,o.prototype)e+=";"+h+".prototype."+c+"="+o.prototype[c].toString();else e+=l}else s[h]=o}return e},nl=[],np=function(t){var e=[];for(var s in t)t[s].buffer&&e.push((t[s]=new t[s].constructor(t[s])).buffer);return e},nc=function(t,e,s,i){if(!nl[s]){for(var r="",a={},n=t.length-1,o=0;o<n;++o)r=nh(t[o],r,a);nl[s]={c:nh(t[n],r,a),e:a}}var h=no({},nl[s].e);return ak(nl[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,h,np(h),i)},nm=function(){return[aC,aP,aM,aA,aT,aD,aL,aV,aW,aU,aO,a0,aG,aY,aX,aK,aZ,aQ,a1,a2,nw,nd,nf]},nu=function(){return[aC,aP,aM,aA,aT,aD,a$,aR,aH,aq,aJ,aj,aO,ne,ns,aG,a3,a5,a4,a6,a8,a9,a7,nt,aZ,aQ,ni,nn,nx,nd]},nd=function(t){return postMessage(t,[t.buffer])},nf=function(t){return t&&{out:t.size&&new aC(t.size),dictionary:t.dictionary}},ng=function(t,e,s,i,r,a){var n=nc(s,i,r,function(t,e){n.terminate(),a(t,e)});return n.postMessage([t,e],e.consume?[t.buffer]:[]),function(){n.terminate()}},ny=function(t,e){return t[e]|t[e+1]<<8},nv=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},nb=function(t,e){return nv(t,e)+0x100000000*nv(t,e+4)},n_=function(t,e,s){for(;s;++e)t[e]=s,s>>>=8};function nx(t,e){return nn(t,e||{},0,0)}function nw(t,e){return a2(t,{i:2},e&&e.out,e&&e.dictionary)}var nS=function(t,e,s,i){for(var r in t){var a=t[r],n=e+r,o=i;Array.isArray(a)&&(o=no(i,a[1]),a=a[0]),ArrayBuffer.isView(a)?s[n]=[a,o]:(s[n+="/"]=[new aC(0),o],nS(a,n,s,i))}},nE="u">typeof TextEncoder&&new TextEncoder,nk="u">typeof TextDecoder&&new TextDecoder;try{nk.decode(ns,{stream:!0})}catch(t){}var nC=function(t){for(var e="",s=0;;){var i=t[s++],r=(i>127)+(i>223)+(i>239);if(s+r>t.length)return{s:e,r:aQ(t,s-1)};r?3==r?e+=String.fromCharCode(55296|(i=((15&i)<<18|(63&t[s++])<<12|(63&t[s++])<<6|63&t[s++])-65536)>>10,56320|1023&i):1&r?e+=String.fromCharCode((31&i)<<6|63&t[s++]):e+=String.fromCharCode((15&i)<<12|(63&t[s++])<<6|63&t[s++]):e+=String.fromCharCode(i)}};function nP(t,e){if(e){for(var s=new aC(t.length),i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}if(nE)return nE.encode(t);for(var r=t.length,a=new aC(t.length+(t.length>>1)),n=0,o=function(t){a[n++]=t},i=0;i<r;++i){if(n+5>a.length){var h=new aC(n+8+(r-i<<1));h.set(a),a=h}var l=t.charCodeAt(i);l<128||e?o(l):(l<2048?o(192|l>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++i))>>18),o(128|l>>12&63)):o(224|l>>12),o(128|l>>6&63)),o(128|63&l))}return aQ(a,0,n)}function nM(t,e){if(e){for(var s="",i=0;i<t.length;i+=16384)s+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return s}if(nk)return nk.decode(t);var r=nC(t),a=r.s,s=r.r;return s.length&&a1(8),a}var nA=function(t,e,s){var i=ny(t,e+28),r=ny(t,e+30),a=nM(t.subarray(e+46,e+46+i),!(2048&ny(t,e+8))),n=e+46+i,o=nT(t,n,r,s,nv(t,e+20),nv(t,e+24),nv(t,e+42)),h=o[0],l=o[1],p=o[2];return[ny(t,e+10),h,l,a,n+r+ny(t,e+32),p]},nT=function(t,e,s,i,r,a,n){var o=0xffffffff==r,h=0xffffffff==a,l=0xffffffff==n,p=e+s;if(i&&o+h+l){for(;e+4<p;e+=4+ny(t,e+2))if(1==ny(t,e))return[o?nb(t,e+4+8*h):r,h?nb(t,e+4):a,l?nb(t,e+4+8*(h+o)):n,1];i<2&&a1(13)}return[r,a,n,0]},nD=function(t){var e=0;if(t)for(var s in t){var i=t[s].length;i>65535&&a1(9),e+=i+4}return e},nI=function(t,e,s,i,r,a,n,o){var h=i.length,l=s.extra,p=o&&o.length,c=nD(l);n_(t,e,null!=n?0x2014b50:0x4034b50),e+=4,null!=n&&(t[e++]=20,t[e++]=s.os),t[e]=20,e+=2,t[e++]=s.flag<<1|(a<0&&8),t[e++]=r&&8,t[e++]=255&s.compression,t[e++]=s.compression>>8;var m=new Date(null==s.mtime?Date.now():s.mtime),u=m.getFullYear()-1980;if((u<0||u>119)&&a1(10),n_(t,e,u<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),e+=4,-1!=a&&(n_(t,e,s.crc),n_(t,e+4,a<0?-a-2:a),n_(t,e+8,s.size)),n_(t,e+12,h),n_(t,e+14,c),e+=16,null!=n&&(n_(t,e,p),n_(t,e+6,s.attrs),n_(t,e+10,n),e+=14),t.set(i,e),e+=h,c)for(var d in l){var f=l[d],g=f.length;n_(t,e,+d),n_(t,e+2,g),t.set(f,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},nF=function(t,e,s,i,r){n_(t,e,0x6054b50),n_(t,e+8,s),n_(t,e+10,s),n_(t,e+12,i),n_(t,e+16,r)},nL="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};let n$=async t=>await new Promise((e,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&a1(7);var i={};nS(t,"",i,e);var r=Object.keys(i),a=r.length,n=0,o=0,h=a,l=Array(a),p=[],c=function(){for(var t=0;t<p.length;++t)p[t]()},m=function(t,e){nL(function(){s(t,e)})};nL(function(){m=s});var u=function(){var t=new aC(o+22),e=n,s=o-n;o=0;for(var i=0;i<h;++i){var r=l[i];try{var a=r.c.length;nI(t,o,r,r.f,r.u,a);var p=30+r.f.length+nD(r.extra),c=o+p;t.set(r.c,c),nI(t,n,r,r.f,r.u,a,o,r.m),n+=16+p+(r.m?r.m.length:0),o=c+a}catch(t){return m(t,null)}}nF(t,n,l.length,s,e),m(null,t)};a||u();for(var d=function(t){var e,s,h=r[t],d=i[h],f=d[0],g=d[1],y=na(),v=f.length;y.p(f);var b=nP(h),_=b.length,x=g.comment,w=x&&nP(x),S=w&&w.length,E=nD(g.extra),k=8*(0!=g.level),C=function(e,s){if(e)c(),m(e,null);else{var i=s.length;l[t]=no(g,{size:v,crc:y.d(),c:s,f:b,m:w,u:_!=h.length||w&&x.length!=S,compression:k}),n+=30+_+E+i,o+=76+2*(_+E)+(S||0)+i,--a||u()}};if(_>65535&&C(a1(11,0,1),null),k)if(v<16e4)try{C(null,nx(f,g))}catch(t){C(t,null)}else p.push((e=g,(s=C)||(s=e,e={}),"function"!=typeof s&&a1(7),ng(f,e,[nu],function(t){return nd(nx(t.data[0],t.data[1]))},0,s)));else C(null,f)},f=0;f<h;++f)d(f)}(t,{level:9},(t,i)=>{t?s(t):i.buffer instanceof ArrayBuffer?e(i.buffer):s(Error("Data is not transferable"))})}),nN=async t=>{let e=await fetch(t),s=await e.blob();return new Promise((t,e)=>{try{let i=new FileReader;i.onload=()=>{"string"==typeof i.result?t(i.result):e(Error("Could not create bas64"))},i.readAsDataURL(s)}catch(t){t instanceof Error&&e(t)}})},nV=t=>nP(v?Buffer.from(O(t),"base64").toString("binary"):atob(O(t)),!0),nR=async(t,e,s)=>{let{length:i}=t.assets;for(let r=0;r<i;r++){let i=t.assets[r];if(!i.p||!V(i)&&!N(i))continue;let{p:a,u:n}=i;if(!a)continue;let o=k(),h=a.startsWith("data:"),l=h?D(a):T(a),p=a;if(!h){let t=a;n&&(t=`${B(n)}${a}`),p=await nN(t)}let c=t.assets[r];c.e=1,c.p=`${o}.${l}`,c.u="",e[`${N(i)?"audio":"i"}/${o}.${l}`]=[nV(p),{level:s}]}},nO=t=>{let{length:e}=t.layers;for(let s=0;s<e;s++){let{ks:e}=t.layers[s]??{},i=Object.keys(e),{length:r}=i;for(let t=0;t<r;t++){let s=e[i[t]],r=s?.x;s&&r&&(s.x=btoa(r),s.e=1)}}};async function nz({animations:t=[],filename:e="",manifest:s,shouldDownload:i=!0}){try{let r;if(0===t.length||!s)throw Error(`Missing or malformed required parameter(s):
4
- ${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let{dotLottie:a,name:n}=(r=F("lottie",e)||`${k()}.lottie`,{dotLottie:{"manifest.json":[nP(JSON.stringify(s),!0),{level:0}]},name:r}),{length:o}=t;for(let e=0;e<o;e++)await nR(t[e],a,9),nO(t[e]),a[`a/${s.animations[e]?.id}.json`]=[nP(JSON.stringify(t[e]),!0),{level:9}];let h=await n$(a);if(i)return M(h,{mimeType:"application/zip+dotlottie",name:n}),null;return h}catch(t){return P(t),null}}let nB=t=>{switch(t){case"svg":case"svg+xml":return"image/svg+xml";case"jpg":case"jpeg":return"image/jpeg";case"png":case"gif":case"webp":case"avif":return`image/${t}`;case"mp3":case"mpeg":case"wav":return`audio/${t}`;default:return""}},nG=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(O(t));async function nq(t,e){if(!Array.isArray(e))return;let s=[],{length:i}=e;for(let r=0;r<i;r++){let i,a=e[r];if(!N(a)&&!V(a))continue;let n=V(a),o=n?"images":"audio",h=a.u?.replace(/^\/+/,"");h&&""!==h?i=t?.[`${h}${a.p}`]:n&&(i=t?.[`i/${a.p}`]),(i=i??t?.[`${o}/${a.p}`])&&s.push(new Promise(t=>{let e;if(v)e=Buffer.from(i).toString("base64");else{let t="",{length:s}=i;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);e=btoa(t)}a.p=a.p?.startsWith("data:")||nG(a.p)?a.p:`data:${nB(T(a.p))};base64,${e}`,a.e=1,a.u="",t()}))}await Promise.all(s)}let nj=async t=>{let e=new Uint8Array(await t.arrayBuffer());return await new Promise((t,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&a1(7);var i=[],r=function(){for(var t=0;t<i.length;++t)i[t]()},a={},n=function(t,e){nL(function(){s(t,e)})};nL(function(){n=s});for(var o=t.length-22;0x6054b50!=nv(t,o);--o)if(!o||t.length-o>65558)return n(a1(13,0,1),null),r;var h=ny(t,o+8);if(h){var l=h,p=nv(t,o+16),c=0x7064b50==nv(t,o-20);if(c){var m=nv(t,o-12);(c=0x6064b50==nv(t,m))&&(l=h=nv(t,m+32),p=nv(t,m+48))}for(var u=e&&e.filter,d=0;d<l;++d)!function(){var e=nA(t,p,c),s=e[0],o=e[1],l=e[2],m=e[3],d=e[4],f=e[5],g=f+30+ny(t,f+26)+ny(t,f+28);p=d;var y=function(t,e){t?(r(),n(t,null)):(e&&(a[m]=e),--h||n(null,a))};if(!u||u({name:m,size:o,originalSize:l,compression:s}))if(s)if(8==s){var v,b,_=t.subarray(g,g+o);if(l<524288||o>.8*l)try{y(null,nw(_,{out:new aC(l)}))}catch(t){y(t,null)}else i.push((v={size:l},(b=y)||(b=v,v={}),"function"!=typeof b&&a1(7),ng(_,v,[nm],function(t){return nd(nw(t.data[0],nf(t.data[1])))},1,b)))}else y(a1(14,"unknown compression type "+s,1),null);else y(null,aQ(t,g,g+o));else y(null,null)}()}else n(null,{})}(e,(e,i)=>{e?s(e):t(i)})})},nH=t=>t.replaceAll(RegExp(/"""/,"g"),'""');async function nW(t){let e=await nj(t),s=(t=>{let e=JSON.parse(nM(t["manifest.json"],!1));if(!("animations"in e))throw Error("Manifest not found");if(0===e.animations.length)throw Error("No animations listed in manifest");return e})(e),i=[],r=[],{length:a}=s.animations,n="animations";("2"===s.version||e[`a/${s.animations[0]?.id}.json`])&&(n="a");for(let t=0;t<a;t++){let a=JSON.parse(nH(nM(e[`${n}/${s.animations[t]?.id}.json`]))),{length:o}=a.layers;for(let t=0;t<o;t++){let{ks:e}=a.layers[t]??{},s=Object.keys(e),{length:i}=s;for(let t=0;t<i;t++){let i=e[s[t]],{e:r,x:a}=i??{};a&&r&&i&&(i.x=atob(a))}}r.push(nq(e,a.assets)),i.push(a)}return await Promise.all(r),{data:i,manifest:s}}let nJ=async t=>{let e=t.clone().body?.getReader(),{value:s}=await e?.read()??{};return await e?.cancel(),!!s&&!(s.length<4)&&80===s[0]&&75===s[1]&&(3===s[2]&&4===s[3]||5===s[2]&&6===s[3]||7===s[2]&&8===s[3])},nU=async t=>{let e=t.headers.get("content-type")??"";return!!e.toLowerCase().includes("json")||!(e.toLowerCase().includes("zip")||await nJ(t))};async function nY(t){try{if(!t||"string"!=typeof t&&"object"!=typeof t)throw Error("Broken file or invalid file format");if("string"!=typeof t)return{animations:Array.isArray(t)?t:[t],isDotLottie:!1,manifest:null};let e=await fetch(t,{headers:{Accept:"application/json"}});if(!e.ok)throw Error(e.statusText);if(await nU(e)){let s=T(t);if("json"===s)return{animations:[await e.json()],isDotLottie:!1,manifest:null};let i=await e.clone().text();try{return{animations:[JSON.parse(i)],isDotLottie:!1,manifest:null}}catch(t){}}let{data:s,manifest:i}=await nW(e);return{animations:s,isDotLottie:!0,manifest:i}}catch(t){return P(t),{animations:void 0,isDotLottie:!1,manifest:null}}}function nX({animation:t,filename:e,shouldDownload:s}){try{if(!t)throw Error("createJSON: Missing or malformed required parameter(s):\n - animation\n'");let i=F("json",e)||`${k()}.json`,r=JSON.stringify(t);if(s)return M(r,{mimeType:"application/json",name:i}),null;return r}catch(t){return P(t),null}}var nK=Object.freeze({__proto__:null,addAnimation:async function({configs:t,filename:e,generator:s,id:i,shouldDownload:r=!0,src:a}){let{animations:n=[],manifest:o={animations:a?[{id:i}]:[]}}=a?await nY(a):{};try{if(!o)throw Error("Manifest is not set");o.generator=s;let{length:i}=t;for(let e=0;e<i;e++){let{url:s}=t[e]??{},{animations:i}=await nY(s);if(!i)throw Error("No animation loaded");if(o.animations.some(s=>s.id===t[e]?.id))throw Error("Duplicate id for animation");o.animations=[...o.animations,{id:t[e]?.id??""}],n.push(...i)}return{result:await nz({animations:n,filename:e,manifest:o,shouldDownload:r}),success:!0}}catch(t){return{error:t.message,result:null,success:!1}}},convert:async function({animations:t,currentAnimation:e=0,filename:s,generator:i,isDotLottie:r,manifest:a,shouldDownload:n=!0,src:o,typeCheck:h}){try{if(!o&&!t?.length)throw Error("No animation to convert");let l=t;if(l||(l=(await nY(o)).animations??[]),h||r){let t=I(s||o||"converted");return l.length>1&&(t+=`-${e+1}`),t+=".json",{result:nX({animation:l[e],filename:t,shouldDownload:n}),success:!0}}return{result:await nz({animations:l,filename:`${I(s||o||"converted")}.lottie`,manifest:{...a??a,generator:i,version:"2"},shouldDownload:n}),success:!0}}catch(t){return{error:t.message,result:null,success:!1}}},createDotLottie:nz,createJSON:nX,getAnimationData:nY,getLottieJSON:nW,resolveAssets:nq});let nZ=null;v&&(globalThis.HTMLElement??=class{});class nQ extends HTMLElement{constructor(){super();let{observedProperties:t}=this.constructor,{length:e}=t;for(let s=0;s<e;s++){let e=this[t[s]],i=Symbol(t[s]);this[i]=e,Object.defineProperty(this,t[s]??"",{get(){return this[i]},set(e){let r=this[i];this[i]=e,this.propertyChangedCallback(t[s],r,e)}})}}propertyChangedCallback(t,e,s){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}var n0=((X={}).Contain="contain",X.Cover="cover",X.Fill="fill",X.None="none",X.ScaleDown="scale-down",X),n1=((K={}).Pause="pause",K.Reverse="reverse",K.Stop="stop",K.Void="void",K),n2=((Z={}).Completed="completed",Z.Destroyed="destroyed",Z.Error="error",Z.Frozen="frozen",Z.Loading="loading",Z.Paused="paused",Z.Playing="playing",Z.Stopped="stopped",Z);let n3=t=>{let e={message:"Unknown error",status:v?500:400};return t&&"object"==typeof t&&("message"in t&&"string"==typeof t.message&&(e.message=t.message),"status"in t&&(e.status=Number(t.status))),e},n5=(t,e)=>null!=t&&Object.keys(e).filter(t=>Number.isNaN(Number(t))).some(s=>e[s]===t),n4=t=>["v","ip","op","layers","fr","w","h"].every(e=>Object.hasOwn(t,e)),n6=t=>null!==t&&["true","","1"].includes(t),n8=v?null:matchMedia("(any-hover: hover)"),n9="dotlottie-player",n7=v?null:matchMedia("(prefers-reduced-motion: reduce)"),ot=!v&&"IntersectionObserver"in window,oe=!v&&"ViewTimeline"in window,os=n8?.matches,oi=(async()=>{let t=new CSSStyleSheet;return await t.replace('*{box-sizing:border-box}:host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:#fff;--lottie-player-toolbar-icon-color:#000;--lottie-player-toolbar-icon-hover-color:#000;--lottie-player-toolbar-icon-active-color:#4285f4;--lottie-player-seeker-track-color:#0003;--lottie-player-seeker-thumb-color:#4285f4;--lottie-player-seeker-display:block;height:100%;width:100%;&:not([hidden]){display:block}& .main{display:flex;flex-direction:column;height:100%;margin:0;padding:0;width:100%}& .animation{contain:content;display:flex;height:100%;margin:0;padding:0;width:100%;& svg g{will-change:transform}}& [data-controls=true] .animation{height:calc(100% - 35px)}& .animation-container{position:relative}& .popover{animation:fade-in .2s ease-in-out;background-color:var(--lottie-player-toolbar-background-color);border:2px solid var(--lottie-player-toolbar-icon-color);border-radius:5px;bottom:40px;padding:10px 15px;position:absolute;right:5px;&:before{border:7px solid #0000;border-top:7px solid var(--lottie-player-toolbar-icon-color);content:"";height:0;margin-right:-7px;pointer-events:none;position:absolute;right:10px;top:100%;width:0}}& .error{align-items:center;display:flex;height:100%;justify-content:center;margin:auto;& svg{height:auto;width:100%}}& .toolbar{background:var(--lottie-player-toolbar-background-color);border-radius:5px;display:flex;gap:5px;height:35px;margin:0;padding:5px;place-items:center center;&.has-error{opacity:.5;pointer-events:none}& button{fill:var(--lottie-player-toolbar-icon-color);align-items:center;background:none;border:0;color:var(--lottie-player-toolbar-icon-color);cursor:pointer;gap:5px;height:100%;margin:0;opacity:.9;outline:0;padding:0;&:not([hidden]){display:flex}&:hover{opacity:1}&[data-active=true]{fill:var(--lottie-player-toolbar-icon-active-color);opacity:1}&:disabled{opacity:.5}&:focus{outline:0}& svg{pointer-events:none;&>*{fill:inherit}}&.disabled svg{display:none}}}& .progress-container{position:relative;width:100%;&.simple{margin-right:12px}}& progress{appearance:none;background-color:var(--lottie-player-seeker-track-color);border:0;border-radius:3px;height:5px;left:0;margin:7.5px 0;outline:none;pointer-events:none;position:absolute;top:0;width:100%;&::-webkit-progress-inner-element{border-radius:3px;overflow:hidden}&::-webkit-slider-runnable-track{background-color:initial}&::-webkit-progress-value{background-color:var(--lottie-player-seeker-thumb-color)}}& .seeker{appearance:none;background-color:initial;border:0;border-radius:3px;color:var(--lottie-player-seeker-thumb-color);cursor:pointer;display:var(--lottie-player-seeker-display);height:20px;margin:0;outline:none;padding:7.5px 0;position:relative;width:100%;z-index:1;&::-webkit-slider-runnable-track,&::-webkit-slider-thumb{appearance:none;outline:none}&::-webkit-slider-thumb{background-color:var(--lottie-player-seeker-thumb-color);border:0;border-radius:50%;cursor:pointer;height:15px;transform:scale(0);-webkit-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;width:15px}&:focus::-webkit-slider-thumb,&:hover::-webkit-slider-thumb{transform:scale(1)}&::-moz-range-progress{background-color:var(--lottie-player-seeker-thumb-color);border-radius:3px;height:5px}&::-moz-range-thumb{background-color:var(--lottie-player-seeker-thumb-color);border:0;border-radius:50%;cursor:pointer;height:15px;transform:scale(0);-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;width:15px}&:focus::-moz-range-thumb,&:hover::-moz-range-thumb{transform:scale(1)}&::-ms-track{background:#0000;border-color:#0000;color:#0000;cursor:pointer;height:5px;width:100%}&::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}&::-ms-fill-lower{background-color:var(--lottie-player-seeker-thumb-color);border-radius:3px}&::-ms-thumb{background:var(--lottie-player-seeker-thumb-color);border:0;border-radius:50%;cursor:pointer;height:15px;transform:scale(0);-ms-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;width:15px}&:hover::-ms-thumb{transform:scale(1)}&:focus{&::-ms-thumb{transform:scale(1)}&::-ms-fill-lower,&::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}}}& ::-moz-progress-bar{background-color:var(--lottie-player-seeker-thumb-color)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media (prefers-color-scheme:dark){:host{--lottie-player-toolbar-background-color:#000;--lottie-player-toolbar-icon-color:#fff;--lottie-player-toolbar-icon-hover-color:#fff;--lottie-player-seeker-track-color:#fff9}}'),t})();class or extends nQ{static get styles(){return oi}set animateOnScroll(t){this.setAttribute("animateOnScroll",(!!t).toString())}get animateOnScroll(){return n6(this.getAttribute("animateOnScroll"))}get animations(){return this._animations}set autoplay(t){this.setAttribute("autoplay",(!!t).toString())}get autoplay(){return n6(this.getAttribute("autoplay"))}set background(t){this.setAttribute("background",t)}get background(){return this.getAttribute("background")||"transparent"}set controls(t){this.setAttribute("controls",(!!t).toString())}get controls(){return n6(this.getAttribute("controls"))}set count(t){this.setAttribute("count",t.toString())}get count(){let t=this.getAttribute("count");return t?Number(t):0}get currentAnimation(){return this._currentAnimation}set delay(t){this.setAttribute("delay",t.toString())}get delay(){let t=this.getAttribute("delay");return t?Number(t):0}set description(t){t&&this.setAttribute("description",t)}get description(){return this.getAttribute("description")}set direction(t){this.setAttribute("direction",t.toString())}get direction(){let t=Number(this.getAttribute("direction"));return -1===t?t:1}set dontFreezeOnBlur(t){this.setAttribute("dontFreezeOnBlur",(!!t).toString())}get dontFreezeOnBlur(){return n6(this.getAttribute("dontFreezeOnBlur"))}set hover(t){this.setAttribute("hover",(!!t).toString())}get hover(){return n6(this.getAttribute("hover"))}set intermission(t){this.setAttribute("intermission",t.toString())}get intermission(){let t=Number(this.getAttribute("intermission"));return isNaN(t)?0:t}set loop(t){this.setAttribute("loop",(!!t).toString())}get loop(){return n6(this.getAttribute("loop"))}set mode(t){this.setAttribute("mode",t)}get mode(){let t=this.getAttribute("mode");return t===ti.Bounce?t:ti.Normal}set mouseout(t){this.setAttribute("mouseout",t)}get mouseout(){let t=this.getAttribute("mouseout");switch(t){case n1.Void:case n1.Pause:case n1.Reverse:return t;default:return n1.Stop}}set objectfit(t){this.setAttribute("objectfit",t)}get objectfit(){let t=this.getAttribute("objectfit");return n5(t,n0)?t:n0.Contain}set once(t){this.setAttribute("once",(!!t).toString())}get once(){return n6(this.getAttribute("once"))}set playOnClick(t){this.setAttribute("playOnClick",(!!t).toString())}get playOnClick(){return n6(this.getAttribute("playOnClick"))}set playOnVisible(t){this.setAttribute("playOnVisible",(!!t).toString())}get playOnVisible(){return n6(this.getAttribute("playOnVisible"))}set preserveAspectRatio(t){this.setAttribute("preserveAspectRatio",t||ta.Contain)}get preserveAspectRatio(){let t=this.getAttribute("preserveAspectRatio");return n5(t,ta)?t:null}set quiet(t){this.setAttribute("quiet",(!!t).toString())}get quiet(){return n6(this.getAttribute("quiet"))}set renderer(t){this.setAttribute("renderer",t)}get renderer(){let t=this.getAttribute("renderer");return t===tn.Canvas?t:tn.SVG}set selector(t){t?this.setAttribute("selector",t):this.removeAttribute("selector")}get selector(){return this.getAttribute("selector")}set simple(t){this.setAttribute("simple",(!!t).toString())}get simple(){return n6(this.getAttribute("simple"))}set speed(t){this.setAttribute("speed",t.toString())}get speed(){let t=this.getAttribute("speed");return null===t||isNaN(Number(t))?1:Number(t)}set src(t){this.setAttribute("src",t||"")}get src(){return this.getAttribute("src")}set subframe(t){this.setAttribute("subframe",(!!t).toString())}get subframe(){return n6(this.getAttribute("subframe"))}clearDevLog(){this._toLog=null}devLog(t,e="error"){}constructor(...t){super(...t),this.playerState=n2.Loading,this._animations=[],this._container=null,this._currentAnimation=0,this._errorMessage="Something went wrong",this._identifier=this.id||k(),this._lottieInstance=null,this._playerState={count:0,frame:0,loaded:!1,playTimeout:null,prev:n2.Loading},this._toLog=null}}class oa extends or{applyScrollProgress(){if(!this.animateOnScroll||!this._lottieInstance)return;let t=this._getScrollProgress();if(null===t)return;let{totalFrames:e}=this._lottieInstance,s=t*(e-1),i=this.subframe?.1:.5;Math.abs(s-this._playerState.frame)<i||(this._playerState.frame=s,this._lottieInstance.goToAndStop(s,!0))}cancelIntersectionObserver(){this._intersectionObserver?.disconnect(),this._intersectionObserver=void 0}cancelScrollProbe(){this._scrollProbe?.cancel(),this._scrollProbe=void 0,this._useGeometricScroll=!1}scrollLoop(){this._playerState.scrollLoopId=requestAnimationFrame(this.scrollLoop),this.applyScrollProgress()}startScrollLoop(){v?this.devLog("DotLottie: Scroll animations will not work in a Server Side Rendering context. Try to wrap this in a client component."):this._playerState.scrollLoopId??=requestAnimationFrame(this.scrollLoop)}stopScrollLoop(){void 0!==this._playerState.scrollLoopId&&(cancelAnimationFrame(this._playerState.scrollLoopId),this._playerState.scrollLoopId=void 0,this.applyScrollProgress())}_addIntersectionObserver(){this._container&&!this._intersectionObserver&&ot&&(this._intersectionObserver=new IntersectionObserver(([{isIntersecting:t}])=>{if(this.isIntersecting=t,this.animateOnScroll&&!n7?.matches)return t?void this.startScrollLoop():void this.stopScrollLoop();if(!t||document.hidden){this.playerState===n2.Playing&&this._freeze(),this._playerState.playTimeout&&clearTimeout(this._playerState.playTimeout);return}this.playOnVisible||this.playerState!==n2.Frozen||this.autoplay&&n7?.matches||this.play(),this._playOnVisible()}),this._observeIntersectionTarget())}_canDriveTimeline({source:t}){return!t||t===document.scrollingElement||"hidden"!==getComputedStyle(t).overflowY&&t.scrollHeight>t.clientHeight}_getGeometricScrollProgress(){if(!this._container)return null;let{height:t,top:e}=this._container.getBoundingClientRect(),s=visualViewport?.height??innerHeight;return C((s-e)/(s+t),0,1)}_getScrollProgress(){if(!this._container)return null;if(!oe||this._useGeometricScroll)return this._getGeometricScrollProgress();if(!this._scrollProbe){let t=new ViewTimeline({axis:"block",subject:this._container});if(!this._canDriveTimeline(t))return this._useGeometricScroll=!0,this.devLog("[dotlottie-player] animateOnScroll: the player's nearest scrolling ancestor cannot scroll, so its ViewTimeline would never advance. This is almost always an ancestor with `overflow: hidden` — use `overflow: clip` instead. Falling back to viewport measurement."),this._getGeometricScrollProgress();this._scrollProbe??=this._container.animate({"--dotlottie-scroll":[0,1]},{fill:"both",rangeEnd:"cover 100%",rangeStart:"cover 0%",timeline:t})}return this._scrollProbe.effect?.getComputedTiming().progress??null}_observeIntersectionTarget(){this._intersectionObserver&&this._container&&(this._intersectionObserver.disconnect(),this._intersectionObserver.observe(this._container))}_playOnVisible(){if(!(!this.playOnVisible||n7?.matches)){if(this.playerState===n2.Completed&&!this.once){this.playerState=n2.Playing,this._lottieInstance?.goToAndPlay(1===this.direction?0:this._lottieInstance.totalFrames);return}this._playerState.playTimeout=setTimeout(()=>{this.play()},this.delay),this.playerState===n2.Playing&&clearTimeout(this._playerState.playTimeout)}}constructor(...t){super(...t),this.isIntersecting=!1,this._useGeometricScroll=!1}}let on=null,oo=null;function oh(){return on?Promise.resolve(on):oo=oo??(async()=>{let{addAnimation:t,convert:e}=await Promise.resolve().then(function(){return nK});return on={addAnimation:t,convert:e},{addAnimation:t,convert:e}})()}let ol='<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg>';function op(){if(!this.shadow)return;let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.onclick=this.toggleLoop);let e=this.shadow.querySelector(".toggleBoomerang");e instanceof HTMLButtonElement&&(e.onclick=this.toggleBoomerang);let s=this.shadow.querySelector(".convert");s instanceof HTMLButtonElement&&(s.onclick=async()=>{s.disabled=!0;try{let{convert:t}=await oh();await t({isDotLottie:this.isDotLottie,manifest:this.getManifest(),src:this.src||this.source})}finally{s.disabled=!1}});let i=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&(i.onclick=()=>this.snapshot(!0));let r=this.shadow.querySelector(".toggleSettings");r instanceof HTMLButtonElement&&(r.onclick=this._handleSettingsClick,r.onblur=this._handleBlur)}function oc(){if(!this.shadow)return;let t=this.shadow.querySelector(".togglePlay");t instanceof HTMLButtonElement&&(t.onclick=this.togglePlay);let e=this.shadow.querySelector(".stop");e instanceof HTMLButtonElement&&(e.onclick=this.stop);let s=this.shadow.querySelector(".prev");s instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation&&(s.hidden=!1),s.onclick=this.prev);let i=this.shadow.querySelector(".next");i instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation<this.animations.length-1&&(i.hidden=!1),i.onclick=this.next);let r=this.shadow.querySelector(".seeker");r instanceof HTMLInputElement&&(r.onchange=this._handleSeekChange,r.onmousedown=this._freeze),this.simple||op.call(this)}function om(t,e){let s=e===n2.Playing||e===n2.Paused;t.dataset.active=s.toString(),t.innerHTML=e===n2.Playing?'<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"/></svg>':ol}var ou=Object.freeze({__proto__:null,renderControls:function(){if(!this.shadow)throw Error("No Shadow Element");let t=this.shadow.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="",this._controlElements=null;return}let e=this.isDotLottie?"dotLottie animation to JSON format":"JSON animation to dotLottie format",s=this.isDotLottie?"Convert to JSON":"Convert to dotLottie";t.innerHTML=`<div class="lottie-controls toolbar ${this.playerState===n2.Error?"has-error":""}" aria-label="Lottie Animation controls"><button class="togglePlay" data-active="${this.autoplay}" aria-label="Toggle Play/Pause">${ol}</button> <button class="stop" data-active="${!this.autoplay}" aria-label="Stop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M6 6h12v12H6V6z"/></svg></button> <button class="prev" aria-label="Previous animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.9 18.2 8.1 12l9.8-6.2v12.4zm-10.3 0H6.1V5.8h1.5v12.4z"/></svg></button> <button class="next" aria-label="Next animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m6.1 5.8 9.8 6.2-9.8 6.2V5.8zM16.4 5.8h1.5v12.4h-1.5z"/></svg></button><form class="progress-container${this.simple?" simple":""}"><input type="range" class="seeker" min="0" max="100" step="1" value="${this._seeker.toString()}" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${this._seeker.toString()}" tabindex="0" aria-label="Slider for search"><progress max="100" value="${this._seeker}"></progress></form>${this.simple?"":`<button class="toggleLoop" data-active="${this.loop}" aria-pressed="${this.loop}" tabindex="0" aria-label="Toggle loop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path 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"/></svg></button> <button class="toggleBoomerang" data-active="${this.mode===ti.Bounce}" aria-pressed="${this.mode===ti.Bounce}" aria-label="Toggle boomerang" tabindex="0"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m11.8 13.2-.3.3c-.5.5-1.1 1.1-1.7 1.5-.5.4-1 .6-1.5.8-.5.2-1.1.3-1.6.3s-1-.1-1.5-.3c-.6-.2-1-.5-1.4-1-.5-.6-.8-1.2-.9-1.9-.2-.9-.1-1.8.3-2.6.3-.7.8-1.2 1.3-1.6.3-.2.6-.4 1-.5.2-.2.5-.2.8-.3.3 0 .7-.1 1 0 .3 0 .6.1.9.2.9.3 1.7.9 2.4 1.5.4.4.8.7 1.1 1.1l.1.1.4-.4c.6-.6 1.2-1.2 1.9-1.6.5-.3 1-.6 1.5-.7.4-.1.7-.2 1-.2h.9c1 .1 1.9.5 2.6 1.4.4.5.7 1.1.8 1.8.2.9.1 1.7-.2 2.5-.4.9-1 1.5-1.8 2-.4.2-.7.4-1.1.4-.4.1-.8.1-1.2.1-.5 0-.9-.1-1.3-.3-.8-.3-1.5-.9-2.1-1.5-.4-.4-.8-.7-1.1-1.1h-.3zm-1.1-1.1c-.1-.1-.1-.1 0 0-.3-.3-.6-.6-.8-.9-.5-.5-1-.9-1.6-1.2-.4-.3-.8-.4-1.3-.4-.4 0-.8 0-1.1.2-.5.2-.9.6-1.1 1-.2.3-.3.7-.3 1.1 0 .3 0 .6.1.9.1.5.4.9.8 1.2.5.4 1.1.5 1.7.5.5 0 1-.2 1.5-.5.6-.4 1.1-.8 1.6-1.3.1-.3.3-.5.5-.6zM13 12c.5.5 1 1 1.5 1.4.5.5 1.1.9 1.9 1 .4.1.8 0 1.2-.1.3-.1.6-.3.9-.5.4-.4.7-.9.8-1.4.1-.5 0-.9-.1-1.4-.3-.8-.8-1.2-1.7-1.4-.4-.1-.8-.1-1.2 0-.5.1-1 .4-1.4.7-.5.4-1 .8-1.4 1.2-.2.2-.4.3-.5.5z"/></svg></button> <button class="toggleSettings" aria-label="Settings" aria-haspopup="true" aria-expanded="${this._isSettingsOpen}" aria-controls="${this._identifier}-settings"><svg width="24" height="24" aria-hidden="true" focusable="false"><circle cx="12" cy="5.4" r="2.5"/><circle cx="12" cy="12" r="2.5"/><circle cx="12" cy="18.6" r="2.5"/></svg></button><div id="${this._identifier}-settings" class="popover" hidden><button class="convert" aria-label="Convert ${e}" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path 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"/></svg> ${s}</button> <button class="snapshot" aria-label="Download still image"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M16.8 10.8 12 15.6l-4.8-4.8h3V3.6h3.6v7.2h3zM12 15.6H3v4.8h18v-4.8h-9zm7.8 2.4h-2.4v-1.2h2.4V18z"/></svg> Download still image</button></div>`}</div>`;let i=(e,s)=>{let i=t.querySelector(e);return i instanceof s?i:null},r=i(".togglePlay",HTMLButtonElement),a=i(".stop",HTMLButtonElement),n=i(".prev",HTMLButtonElement),o=i(".next",HTMLButtonElement),h=i(".seeker",HTMLInputElement),l=i("progress",HTMLProgressElement);this._controlElements=r&&a&&n&&o&&h&&l?{convert:i(".convert",HTMLButtonElement),next:o,popover:i(".popover",HTMLDivElement),prev:n,progress:l,seeker:h,snapshot:i(".snapshot",HTMLButtonElement),stop:a,togglePlay:r}:null,oc.call(this)},updatePlayPauseButton:om});function od(){if(!this.shadow||!this.template)throw Error("No Shadow Element or Template");this.template.innerHTML='<div class="animation-container main"><figure class="animation"></figure><slot name="controls"></slot></div>';let t=this.template.content.cloneNode(!0),e=t.querySelector(".animation-container"),s=t.querySelector("figure");if(!(e instanceof HTMLDivElement)||!s)throw Error("Template is broken");e.dataset.controls=String(this.controls),s.style.background=this.background,(this.description||this.controls)&&(e.lang=this.description?document.documentElement.lang:"en"),this.description&&s.setAttribute("aria-label",this.description),this.shadow.replaceChildren(t)}class of extends oa{static get observedAttributes(){return["animateonscroll","autoplay","controls","direction","hover","loop","mode","playonclick","playonvisible","selector","speed","src","subframe"]}static get observedProperties(){return["playerState","_isSettingsOpen","_seeker","_currentAnimation","_animations"]}get isDotLottie(){return this._isDotLottie}constructor(){super(),this.canConvert=!1,this._controlElements=null,this._isSettingsOpen=!1,this._seeker=0,this._controlsLoadId=0,this._errorLoadId=0,this._isBounce=!1,this._isDotLottie=!1,this._loadId=0,this._multiAnimationSettings=[],this._renderControls=async()=>{let t=this.shadow?.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="",this._controlElements=null;return}let e=++this._controlsLoadId,{renderControls:i}=await (s=s??Promise.resolve().then(function(){return ou}));e===this._controlsLoadId&&i.call(this)},this._complete=this._complete.bind(this),this._dataFailed=this._dataFailed.bind(this),this._dataReady=this._dataReady.bind(this),this._DOMLoaded=this._DOMLoaded.bind(this),this._enterFrame=this._enterFrame.bind(this),this._freeze=this._freeze.bind(this),this._handleBlur=this._handleBlur.bind(this),this._handleClick=this._handleClick.bind(this),this._handleSeekChange=this._handleSeekChange.bind(this),this._handleWindowBlur=this._handleWindowBlur.bind(this),this._loopComplete=this._loopComplete.bind(this),this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this.scrollLoop=this.scrollLoop.bind(this),this._switchInstance=this._switchInstance.bind(this),this._handleSettingsClick=this._handleSettingsClick.bind(this),this.togglePlay=this.togglePlay.bind(this),this.stop=this.stop.bind(this),this.prev=this.prev.bind(this),this.next=this.next.bind(this),this.snapshot=this.snapshot.bind(this),this.toggleLoop=this.toggleLoop.bind(this),this.toggleBoomerang=this.toggleBoomerang.bind(this),this.destroy=this.destroy.bind(this),this.template=document.createElement("template"),this.shadow=this.attachShadow({mode:"open"})}async attributeChangedCallback(t,e,s){if(this._lottieInstance&&this.shadow&&this._container)switch(this.clearDevLog(),t){case"animateonscroll":if(n6(s)){this._lottieInstance.autoplay=!1,this.isIntersecting&&this.startScrollLoop();return}this.stopScrollLoop();break;case"autoplay":if(this.animateOnScroll||this.playOnVisible||n7?.matches)return;if(n6(s))return void this.play();this.stop();break;case"controls":await this._renderControls();break;case"direction":if(-1===Number(s))return void this.setDirection(-1);this.setDirection(1);break;case"hover":if(n6(s)){this._container.addEventListener("mouseenter",this._mouseEnter),this._container.addEventListener("mouseleave",this._mouseLeave);return}this._container.removeEventListener("mouseenter",this._mouseEnter),this._container.removeEventListener("mouseleave",this._mouseLeave);break;case"loop":{let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.dataset.active=s),this.setLoop(""===s||!!s);break}case"mode":{let t=this.shadow.querySelector(".toggleBoomerang");if(!n5(s,ti))break;t instanceof HTMLButtonElement&&(t.dataset.active=(s===ti.Bounce).toString()),this._isBounce=s===ti.Bounce;break}case"playonclick":if(n6(s)){this._lottieInstance.autoplay=!1,this._container.addEventListener("click",this._handleClick);return}this._container.removeEventListener("click",this._handleClick);break;case"playonvisible":n6(s)&&(this._lottieInstance.autoplay=!1);break;case"selector":{let t=document.getElementById(this.selector??"");t?.addEventListener("click",this._handleClick);break}case"speed":{let t=Number(s);t&&!isNaN(t)&&this.setSpeed(t);break}case"src":await this.load(s);break;case"subframe":this.setSubframe(n6(s))}}connectedCallback(){(async()=>{try{if(await this._render(),!this.shadow)throw Error("Missing Shadow element");this._container=this.shadow.querySelector(".animation"),await this.load(this.src),this._addIntersectionObserver(),this.dispatchEvent(new CustomEvent(tr.Rendered))}catch(t){this._handleError(t)}})()}destroy(){this._lottieInstance?.destroy&&(this.cancelScrollProbe(),this.playerState=n2.Destroyed,this._lottieInstance.destroy(),this._lottieInstance=null,this.stopScrollLoop(),this.dispatchEvent(new CustomEvent(tr.Destroyed)),this.remove(),this._removeEventListeners())}disconnectedCallback(){this.cancelIntersectionObserver(),this.cancelScrollProbe(),this._playerState.scrollLoopId&&cancelAnimationFrame(this._playerState.scrollLoopId),this._playerState.playTimeout&&clearTimeout(this._playerState.playTimeout),this._removeEventListeners(),this.destroy(),this.clearDevLog()}getLottie(){return this._lottieInstance}getManifest(){return this._manifest}getMultiAnimationSettings(){return this._multiAnimationSettings}getSegment(){return this._segment}async load(t){try{if(!this.shadowRoot||!t||++this._loadId!==this._loadId)return;this.source=t;let{animations:e,isDotLottie:s,manifest:i}=await nY(t);if(!e?.every(n4))throw Error("Broken or corrupted file");this._handleInlineScript(),this._isBounce=this.mode===ti.Bounce,this._multiAnimationSettings.length>0&&this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce);let r=i?.animations[0];r&&(r.autoplay=!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,r.loop=this.loop),this._isDotLottie=s,this._animations=e,this._manifest=i??{animations:[{autoplay:!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,direction:this.direction,id:k(),loop:this.loop,mode:this.mode,speed:this.speed}]},this._clearPrevious(),this.playerState=n2.Stopped,!this.animateOnScroll&&(this.autoplay||this._multiAnimationSettings[this._currentAnimation]?.autoplay||this.playOnVisible)&&(this.playerState=n2.Playing),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:e[this._currentAnimation]}),this._addEventListeners();let a=this._multiAnimationSettings[this._currentAnimation]?.speed??this.speed,n=this._multiAnimationSettings[this._currentAnimation]?.direction??this.direction;this._lottieInstance.setSpeed(a),this._lottieInstance.setDirection(n),this._lottieInstance.setSubframe(!!this.subframe),this.animateOnScroll&&this.applyScrollProgress(),(this.autoplay||this.animateOnScroll||this.playOnVisible)&&-1===this.direction&&this.seek("99%"),await this._renderControls()}catch(t){await this._handleError(t)}}next(){this._currentAnimation++,this._switchInstance()}pause(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Pause))}catch(e){t=!0,this.devLog(e)}finally{this.playerState=t?n2.Error:n2.Paused}}play(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.play(),this.dispatchEvent(new CustomEvent(tr.Play))}catch(e){t=!0,this.devLog(e)}finally{this.playerState=t?n2.Error:n2.Playing}}prev(){this._currentAnimation--,this._switchInstance(!0)}propertyChangedCallback(t,e,s){if(!this.shadow)return;let i=this._controlElements;i&&("playerState"===t&&(om(i.togglePlay,s),i.stop.dataset.active=(s===n2.Stopped).toString()),"_seeker"===t&&"number"==typeof s&&(i.seeker.value=s.toString(),i.seeker.ariaValueNow=s.toString(),i.progress.value=s),"_animations"===t&&Array.isArray(s)&&this._currentAnimation+1<s.length&&(i.next.hidden=!1),"_currentAnimation"===t&&"number"==typeof s&&(i.next.hidden=s+1>=this._animations.length,i.prev.hidden=!s),"_isSettingsOpen"===t&&"boolean"==typeof s&&i.popover&&i.convert&&i.snapshot&&(i.popover.hidden=!s,i.convert.hidden=!this.canConvert))}async reload(){this.src&&await this.load(this.src)}seek(t){let e;if(!this._lottieInstance)return;let s=String(t).trim(),i=/^([+-]?(?:\d+(?:\.\d*)?|\.\d+))\s*(%?)$/.exec(s);if(!i)return;let{totalFrames:r}=this._lottieInstance,a=parseInt(i[1]);if(e="%"===i[2]?Math.round(r*a/100):Math.round(a/r*100),this._seeker=e,this.playerState===n2.Playing||this.playerState===n2.Frozen&&this._playerState.prev===n2.Playing){this._lottieInstance.goToAndPlay(a,!0),this.playerState=n2.Playing;return}this._lottieInstance.goToAndStop(a,!0),this._lottieInstance.pause()}setCount(t){this.count=t}setDirection(t){this._lottieInstance&&this._lottieInstance.setDirection(t)}setLoop(t){this._lottieInstance&&this._lottieInstance.setLoop(t)}setMultiAnimationSettings(t){this._multiAnimationSettings=t}setSegment(t){this._segment=t}setSpeed(t=1){this._lottieInstance&&this._lottieInstance.setSpeed(t)}setSubframe(t){this._lottieInstance&&this._lottieInstance.setSubframe(t)}async snapshot(t=!0,e="AM Lottie"){try{if(!this.shadowRoot||!this._lottieInstance)throw Error("Unknown error");let s=null,i=this.shadowRoot.querySelector(`.animation ${this.renderer}`);if(!i)throw Error("Could not retrieve animation from DOM");let r=this.renderer===tn.SVG;if(r)s=i instanceof Node?new XMLSerializer().serializeToString(i):null;else{let t=await new Promise(t=>{i instanceof HTMLCanvasElement&&i.toBlob(t,"image/png")});s=await t?.arrayBuffer()??null}if(!s)throw Error("Could not serialize SVG element");return t&&M(s,{mimeType:r?"image/svg+xml":"image/png",name:`${I(this.src||e)}-${(((this._seeker*this._lottieInstance.totalFrames/100)??0)+1).toString().padStart(3,"0")}.${r?"svg":"png"}`}),s}catch(t){return this.devLog(t),null}}stop(){if(this._lottieInstance){this._playerState.prev=this.playerState,this._playerState.count=0;try{this._lottieInstance.stop(),this.dispatchEvent(new CustomEvent(tr.Stop))}finally{this.playerState=n2.Stopped}}}toggleBoomerang(){let t=this._multiAnimationSettings[this._currentAnimation]??{};if(void 0!==t.mode){if(t.mode===ti.Normal){t.mode=ti.Bounce,this._isBounce=!0;return}t.mode=ti.Normal,this._isBounce=!1;return}if(this.mode===ti.Normal){this.mode=ti.Bounce,this._isBounce=!0;return}this.mode=ti.Normal,this._isBounce=!1}toggleLoop(){let t=!this.loop;this.loop=t,this.setLoop(t)}togglePlay(){if(!this._lottieInstance)return;let{currentFrame:t,playDirection:e,totalFrames:s}=this._lottieInstance;if(this.playerState===n2.Playing)return void this.pause();if(this.playerState!==n2.Completed)return void this.play();if(this.playerState=n2.Playing,this._isBounce){this.setDirection(-1*e),this._lottieInstance.goToAndPlay(t,!0);return}-1===e?this._lottieInstance.goToAndPlay(s,!0):this._lottieInstance.goToAndPlay(0,!0)}_freeze(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Freeze))}finally{this.playerState=n2.Frozen}}}_handleBlur(){let t=setTimeout(()=>{this._toggleSettings(!1)},200);this._isSettingsOpen||clearTimeout(t)}_handleClick(){(this.playOnClick||this.selector)&&this.togglePlay()}_handleSeekChange({target:t}){!(!(t instanceof HTMLInputElement)||!this._lottieInstance||isNaN(Number(t.value)))&&this.seek(Math.round(Number(t.value)/100*this._lottieInstance.totalFrames))}_handleSettingsClick({target:t}){this._toggleSettings(),t instanceof HTMLElement&&t.focus()}async _render(){this.shadow&&(this._controlElements=null,od.call(this),this.shadow.adoptedStyleSheets=[await of.styles])}async _showError(){if(this.playerState!==n2.Error)return;let t=this.shadow?.querySelector(".animation"),e=this.shadow?.querySelector("slot[name=controls]");if(e&&(e.innerHTML="",this._controlElements=null),!(t instanceof HTMLElement))return;let s=++this._errorLoadId,{errorScreen:i}=await (nZ=nZ??Promise.resolve().then(function(){return oy}));s===this._errorLoadId&&(t.innerHTML=i(this._errorMessage))}_addEventListeners(){this._toggleEventListeners("add")}_clearPrevious(){this._lottieInstance?.destroy();let t=this.shadow?.querySelector(".animation");t&&(t.innerHTML="")}_complete(){if(!this._lottieInstance)return;if(this._animations.length>1){if(this._multiAnimationSettings[this._currentAnimation+1]?.autoplay)return void this.next();if(this.loop&&this._currentAnimation===this._animations.length-1){this._currentAnimation=0,this._switchInstance();return}}let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.playerState=n2.Completed,this.dispatchEvent(new CustomEvent(tr.Complete,{detail:{frame:t,seeker:this._seeker}}))}_dataFailed(){this.playerState=n2.Error,this.dispatchEvent(new CustomEvent(tr.Error))}_dataReady(){this.dispatchEvent(new CustomEvent(tr.Load))}_DOMLoaded(){this.dispatchEvent(new CustomEvent(tr.Ready))}_enterFrame(){if(!this._lottieInstance)return;let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.dispatchEvent(new CustomEvent(tr.Frame,{detail:{frame:t,seeker:this._seeker}}))}_getOptions(){if(!this._container)throw Error("Container not rendered");let t=this.preserveAspectRatio??(t=>{switch(t){case n0.Contain:case n0.ScaleDown:return ta.Contain;case n0.Cover:return ta.Cover;case n0.Fill:return ta.Initial;case n0.None:return ta.None;default:return ta.Contain}})(this.objectfit),e=this._multiAnimationSettings.length>0?this._multiAnimationSettings[this._currentAnimation]:void 0,s=this._manifest?.animations[this._currentAnimation],i=!!this.loop;s?.loop!==void 0&&(i=!!s.loop),e?.loop!==void 0&&(i=!!e.loop);let r=!!this.autoplay;s?.autoplay!==void 0&&(r=!!s.autoplay),e?.autoplay!==void 0&&(r=!!e.autoplay),(this.animateOnScroll||n7?.matches)&&(r=!1);let a=this._segment;return this._segment?.every(t=>t>0)&&(a=[this._segment[0]-1,this._segment[1]-1]),this._segment?.some(t=>t<0)&&(a=void 0),this.setOptions({container:this._container,hasAutoplay:r,hasLoop:i,initialSegment:a,preserveAspectRatio:t,rendererType:this.renderer})}async _handleError(t){this.playerState=n2.Error,this.quiet||(this._errorMessage=n3(t).message,await this._showError()),this.dispatchEvent(new CustomEvent(tr.Error)),this.devLog(t)}_handleInlineScript(){let t=this.parentElement?.querySelector(":scope > script.aamd_inline_script");if(t)try{let e=JSON.parse(t.innerHTML);e.selector&&(this.selector=e.selector),e.segment&&this.setSegment(e.segment),e.multiAnimationSettings&&this.setMultiAnimationSettings(e.multiAnimationSettings)}catch(t){this.devLog(t)}}_handleSelector(t){if(!this.selector)return;let e=document.getElementById(this.selector);e?this.hover?(e[t]("mouseenter",this._mouseEnter),e[t]("mouseleave",this._mouseLeave)):e[t]("click",this._handleClick):this.selector=null}_handleWindowBlur({type:t}){this.dontFreezeOnBlur||(this.playerState===n2.Playing&&"blur"===t&&this._freeze(),this.playerState===n2.Frozen&&"focus"===t&&this.play())}_loopComplete(){if(!this._lottieInstance)return;let{playDirection:t,totalFrames:e}=this._lottieInstance,s=this._segment?this._segment[0]:0,i=this._segment?this._segment[1]:e;if(this.count&&(this._isBounce?this._playerState.count+=.5:this._playerState.count+=1,this._playerState.count>=this.count)){this.setLoop(!1),this.playerState=n2.Completed,this.dispatchEvent(new CustomEvent(tr.Complete));return}return(this.dispatchEvent(new CustomEvent(tr.Loop)),this._isBounce)?(this._lottieInstance.goToAndStop(-1===t?s:.99*i,!0),this._lottieInstance.setDirection(-1*t),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission)):(this._lottieInstance.goToAndStop(-1===t?.99*i:s,!0),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission))}_mouseEnter(){if(!(!this.hover||!this._lottieInstance||!os||n7?.matches)){if(this.mouseout===n1.Reverse&&this._lottieInstance.setDirection(1),this.playerState===n2.Completed){this._lottieInstance.goToAndPlay(0,!0),this.playerState=n2.Playing;return}this.playerState!==n2.Playing&&this.play()}}_mouseLeave(){if(!(!this.hover||!this._lottieInstance||!os||n7?.matches))switch(this.mouseout){case n1.Void:break;case n1.Pause:this.pause();break;case n1.Reverse:this._lottieInstance.setDirection(-1),this.play();break;default:this.stop()}}_onVisibilityChange(){if(!(this.autoplay&&n7?.matches)){if(document.hidden&&this.playerState===n2.Playing)return void this._freeze();this.playerState===n2.Frozen&&this.play()}}_removeEventListeners(){this._toggleEventListeners("remove")}_switchInstance(t=!1){if(this._animations[this._currentAnimation])try{if(this._lottieInstance?.destroy(),this.cancelScrollProbe(),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:this._animations[this._currentAnimation]}),this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce),this._removeEventListeners(),this._addEventListeners(),this.dispatchEvent(new CustomEvent(t?tr.Previous:tr.Next)),this._multiAnimationSettings[this._currentAnimation]?.autoplay??this.autoplay){if(this.animateOnScroll){this.applyScrollProgress(),this.playerState=n2.Paused;return}this._lottieInstance.goToAndPlay(0,!0),this.playerState=n2.Playing;return}this._lottieInstance.goToAndStop(0,!0),this.playerState=n2.Stopped}catch(t){this._errorMessage=n3(t).message,this.playerState=n2.Error,this.dispatchEvent(new CustomEvent(tr.Error))}}_toggleEventListeners(t){let e="add"===t?"addEventListener":"removeEventListener";void 0!==document.hidden&&document[e]("visibilitychange",this._onVisibilityChange),this._lottieInstance&&(this._lottieInstance[e](tr.EnterFrame,this._enterFrame),this._lottieInstance[e](tr.Complete,this._complete),this._lottieInstance[e](tr.LoopComplete,this._loopComplete),this._lottieInstance[e](tr.DOMLoaded,this._DOMLoaded),this._lottieInstance[e](tr.DataReady,this._dataReady),this._lottieInstance[e](tr.DataFailed,this._dataFailed)),this._handleSelector(e),this._container&&!this.selector&&(this.hover&&(this._container[e]("mouseenter",this._mouseEnter),this._container[e]("mouseleave",this._mouseLeave)),this.playOnClick&&this._container[e]("click",this._handleClick)),window[e]("focus",this._handleWindowBlur,{capture:!1,passive:!0}),window[e]("blur",this._handleWindowBlur,{capture:!1,passive:!0})}_toggleSettings(t){if(void 0===t){this._isSettingsOpen=!this._isSettingsOpen;return}this._isSettingsOpen=t}}class og extends of{constructor(){super(),this.canConvert=!0}async addAnimation(t){let{addAnimation:e}=await oh();return await e(t)}async convert(t){let{convert:e}=await oh();return await e(t)}loadAnimation(t){return ih(t)}setOptions({container:t,hasAutoplay:e,hasLoop:s,initialSegment:i,preserveAspectRatio:r,rendererType:a}){let n={autoplay:e,container:t,initialSegment:i,loop:s,renderer:a,rendererSettings:{imagePreserveAspectRatio:r}};switch(this.renderer){case tn.SVG:n.rendererSettings={...n.rendererSettings,hideOnTransparent:!0,preserveAspectRatio:r,progressiveLoad:!0};break;case tn.Canvas:n.rendererSettings={...n.rendererSettings,preserveAspectRatio:r,progressiveLoad:!0}}return n}}globalThis.dotLottiePlayer=()=>new og,v||customElements.get(n9)||customElements.define(n9,og);var oy=Object.freeze({__proto__:null,errorScreen:function(t){return`<div class="error"><svg preserveAspectRatio="${ta.Cover}" xmlns="${y}" width="1920" height="1080" viewBox="0 0 1920 1080" style="white-space:preserve"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${t.replaceAll(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`)}</text></svg></div>`}});t.DotLottiePlayerBase=of,t.default=og,Object.defineProperty(t,"__esModule",{value:!0})}(this["@aarsteinmedia/dotlottie-player"]=this["@aarsteinmedia/dotlottie-player"]||{});
3
+ obj.scoped_bm_rt = $bm_rt;`),O=0,z,B=null,G,q,j,H,W=s.kf?i.length:0,J=e.ix,U=!this.data||!0!==this.data.hd,Y=(t=5,e=20)=>{let{pv:s}=this,i=$(s)?s.length:1,r=tm(te.Float32,i),a=iX.floor(O*t),n=0;for(;n<a;){for(let t=0;t<i;t++)r[t]=(r[t]??0)+-e+2*e*iX.random();n++}let o=O*t,h=o-iX.floor(o),l=tm(te.Float32,i);if(i>1){for(let t=0;t<i;t++)l[t]=s[t]+r[t]+(-e+2*e*iX.random())*h;return l}return s+r[0]+(-e+2*e*iX.random())*h};function X(t,e){k(t,e,!0)}function K(t,e){M(t,e,!0)}s.loopIn&&(P=k=s.loopIn.bind(s)),s.loopOut&&(A=M=s.loopOut.bind(s)),s.smooth&&(D=s.smooth.bind(s));let Z=this.getValueAtTime.bind(this),Q=this.getVelocityAtTime.bind(this),{frameRate:tt,projectInterface:ts}=t.comp.globalData;function ti(t,e){let s=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=iX.atan2(s[0],iX.sqrt(s[1]*s[1]+s[2]*s[2]))/f;return[-iX.atan2(s[1],s[2])/f,i,0]}function tr(t){let s=t,r,a=i.length,n,o=0;if(0===i.length||"number"==typeof i[0])return{index:0,time:0};if(n=-1,(s*=tt)<(i[0]?.t??0))return{index:1,time:(i[0]?.t??0)/tt};for(r=0;r<a-1;r+=1)if(s===i[r]?.t){n=r+1,o=i[r]?.t??0;break}else if(s>(i[r]?.t??0)&&s<(i[r+1]?.t??0)){s-(i[r]?.t??0)>(i[r+1]?.t??0)-s?(n=r+2,o=i[r+1]?.t??0):(n=r+1,o=i[r]?.t??0);break}return -1===n&&(n=r+1,o=e.k[r]?.t??0),{index:n,time:o/tt}}function ta(t){let s=t;if(0===e.k.length||"number"==typeof e.k[0])throw Error(`The property has no keyframe at index ${s}`);s-=1;let i={time:(e.k[s]?.t??0)/tt,value:[]},r=(Object.hasOwn(e.k[s]??{},"s")?e.k[s]?.s:e.k[s-1]?.e)??[],{length:a}=r;for(let t=0;t<a;t+=1)i[t]=r[t],i.value[t]=r[t];return i}function tn(t,e){let s=e;return s||(s=tt),t/s}function to(t,e){let s=t,i=e;return s||0===s||(s=O),i||(i=tt),s*i}function th(t){iX.seedrandom(y+t)}function tp(){return t.sourceRectAtTime()}function tc(t,e){return"string"==typeof B?void 0===e?B.slice(iX.max(0,t)):B.slice(t,e):""}function tu(t,e){return"string"==typeof B?void 0===e?B.slice(t):B.slice(t,e):""}let td=t.data.ind,tf=t.hierarchy.length>0,tg=null;y=iX.floor(1e6*iX.random());let{globalData:ty}=t;function tv(t){B=Z(O=0===t?0:iX.floor(O*t)/t)}return function(e){return(B=e,this.frameExpressionId===ty.frameId&&this.propType!==tl.TextSelector)?B:(this.propType===tl.TextSelector&&(q=this.textIndex??0,j=this.textTotal??0,H=this.selectorValue),N||(G=t.layerInterface?.text,N=t.layerInterface,I=t.comp?.compInterface??null,L=N?.toWorld.bind(N)??null,E=N?.fromWorld.bind(N)??null,w=N?.fromComp.bind(N)??null,F=N?.toComp.bind(N)??null,T=N?.mask??null,S=w),!v&&(u=v=t.layerInterface?.getInterface("ADBE Transform Group"),v&&(x=v.anchorPoint)),4!==m||d||(d=N?.getInterface("ADBE Root Vectors Group")),g=g??N?.getInterface(4),t.hierarchy.length>0&&!tg&&(tg=t.hierarchy[0]?.layerInterface??null),O=(this.comp?.renderedFrame??0)/(this.comp?.globalData?.frameRate??60),n&&th(y+O),a&&(z=Q(O)),R(i1,rp,ru,rd,i7,ry,rv,u,U,rv,x,C,ts,d,rt,rg,rl,rp,null,rr,ri,rs,g,null,null,tn,w,S,E,ty,p,i8,td,b,ta,rm,ra,ti,P,A,k,X,M,K,T,ru,rd,h,tr,rn,W,V,_,null,tv,J,rg,rg,ro,y,i9,null,null,th,H,D,tp,ry,tu,tc,G,q,j,I,N,s,O,to,F,L,v,B,Z,z,c,Y,null,null,null,null,null,null,null),this.frameExpressionId=ty.frameId,V.scoped_bm_rt?.propType===tl.Shape?V.scoped_bm_rt.v:V.scoped_bm_rt)}},resetFrame:function(){i1={}}},r_={getSpeedAtTime:function(t){let e=this.getValueAtTime(t),s=this.getValueAtTime(t+-.01),i=0;if($(e)&&$(s)){let{length:t}=e;for(let r=0;r<t;r++)i+=Math.pow(s[r]-e[r],2);i=100*Math.sqrt(i)}return i},getStaticValueAtTime:function(t,e){return this.pv},getValueAtTime:function(t){let e=t;return e*=this.elem?.globalData?.frameRate??60,e-=this.offsetTime,this._cachingAtTime&&e!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime?.value},getVelocityAtTime:function(t){let e;if(void 0!==this.vel)return this.vel;let s=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if($(s)&&$(i)){let{length:t}=s;e=tm(te.Float32,t);for(let r=0;r<t;r++)e[r]=-((i[r]-s[r])/.001);return e}return-((i-s)/.001)},searchExpressions:function(t,e,s){e?.x&&s&&(s.k=!0,s.x=!0,s.initiateExpression=rb.initiateExpression,s.effectsSequence.push(s.initiateExpression(t,e,s).bind(s)))},setGroupProperty:function(t){this.propertyGroup=t}};class rx extends t6{inTangents(t){return this.vertices("i",t)}isClosed(){return!!this.v?.c}normalOnPath(t,e){return this.vectorOnPath(t,e,"normal")}outTangents(t){return this.vertices("o",t)}pointOnPath(t,e){let s,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),!this._segmentsLength&&i&&(this._segmentsLength=tA(i));let r=this._segmentsLength,{lengths:a}=r??{lengths:[]},n=(r?.totalLength??0)*t,o=0,h=a.length,l=0;for(;o<h;){if(l+a[o].addedLength>n){let t=o,e=i?.c&&o===h-1?0:o+1,r=(n-l)/a[o].addedLength;i&&(s=tN(i.v[t],i.v[e],i.o[t],i.i[e],r,a[o]));break}l+=a[o].addedLength,o++}return i&&(s=s??(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])),s}points(t){return this.vertices("v",t)}tangentOnPath(t,e){return this.vectorOnPath(t,e,"tangent")}vectorOnPath(t,e,s){let i=t;1==i?i=Number(this.v?.c):0==i&&(i=.999);let r=this.pointOnPath(i,e)??[],a=this.pointOnPath(i+.001,e)??[],n=a[0]-r[0],o=a[1]-r[1],h=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));return 0===h?[0,0]:"tangent"===s?[n/h,o/h]:[-o/h,n/h]}vertices(t,e){this.k&&this.getValue();let s=this.v;void 0!==e&&(s=this.getValueAtTime(e,0));let i=s?._length??0,r=s?.[t],a=s?.v,n=tu(i);for(let e=0;e<i;e+=1)"i"===t||"o"===t?n[e]=[r[e][0]-a[e][0],r[e][1]-a[e][1]]:n[e]=[r[e][0],r[e][1]];return n}constructor(...t){super(...t),this.getValueAtTime=r_.getStaticValueAtTime,this.setGroupProperty=r_.setGroupProperty}}function rw(t,e,s){let i,r,a;if(!this.k||this.keyframes?.length===0)return this.pv;let n=e,{comp:o,elem:h,keyframes:l=[],pv:p}=this;if(!h?.comp)throw Error("Element is not implemented");if(!o)throw Error("Comp is not implemented");let c=t?t.toLowerCase():"",m=o.renderedFrame,u=l[l.length-1]?.t??0,{frameRate:d}=h.comp.globalData??{frameRate:60};if(m<=u)return p;let f,g=0;switch(s?f=n?Math.abs(u-d*n):Math.max(0,u-h.data.ip):((!n||n>l.length-1)&&(n=l.length-1),f=u-(g=l[l.length-1-n]?.t??0)),c){case"pingpong":if(Math.floor((m-g)/f)%2!=0)return this.getValueAtTime((f-(m-g)%f+g)/d,0);break;case"offset":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime(u/d,0),s=this.getValueAtTime(((m-g)%f+g)/d,0),n=Math.floor((m-g)/f);if($(p)&&$(t)&&$(e)&&$(s)){for(r=(a=Array.from({length:t.length})).length,i=0;i<r;i++)a[i]=(e[i]-t[i])*n+s[i];return a}return(e-t)*n+s}case"continue":{let t=this.getValueAtTime(u/d,0),e=this.getValueAtTime((u-.001)/d,0);if($(p)&&$(t)&&$(e)){for(r=(a=Array.from({length:t.length})).length,i=0;i<r;i+=1)a[i]=t[i]+(t[i]-e[i])*((m-u)/d)/5e-4;return a}return t+(m-u)/.001*(t-e)}}return this.getValueAtTime(((m-g)%f+g)/d,0)}function rS(t,e,s){let i,r,a,n,o;if(!this.k)return this.pv;let h=e,{comp:l,elem:p,keyframes:c=[],pv:m}=this;if(!p?.comp)throw Error("Element is not implemented");if(!l)throw Error("Comp is not implemented");let{frameRate:u}=p.comp.globalData??{frameRate:60},d=t?t.toLowerCase():"",f=l.renderedFrame,g=c[0]?.t??0;if(f>=g)return m;switch(s?(i=h?Math.abs(u*h):Math.max(0,p.data.op-g),r=g+i):((!h||h>c.length-1)&&(h=c.length-1),i=(r=c[h]?.t??0)-g),d){case"pingpong":if(Math.floor((g-f)/i)%2==0)return this.getValueAtTime(((g-f)%i+g)/u,0);break;case"offset":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime(r/u,0),s=this.getValueAtTime((i-(g-f)%i+g)/u,0),h=Math.floor((g-f)/i)+1;if($(m)&&$(t)&&$(e)&&$(s)){for(n=(o=Array.from({length:t.length})).length,a=0;a<n;a+=1)o[a]=s[a]-(e[a]-t[a])*h;return o}return s-(e-t)*h}case"continue":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime((g+.001)/u,0);if($(m)&&$(t)&&$(e)){for(n=(o=Array.from({length:t.length})).length,a=0;a<n;a+=1)o[a]=t[a]+(t[a]-e[a])*(g-f)/.001;return o}return t+(t-e)*(g-f)/.001}}return this.getValueAtTime((i-((g-f)%i+g))/u,0)}function rE(t,e){let s,{comp:i,k:r,pv:a}=this;if(!r)return a;let{renderedFrame:n}=i??{renderedFrame:0},{frameRate:o}=i?.globalData??{frameRate:60},h=.5*(t||.4),l=Math.floor(e||5);if(l<=1)return a;let p=n/o,c=p-h,m=l>1?(p+h-c)/(l-1):1,u=0,d,f;for(f=$(a)?tm(te.Float32,a.length):0;u<l;){if(s=this.getValueAtTime(c+u*m),$(a)&&$(f)&&$(s)){let{length:t}=a;for(d=0;d<t;d++)f[d]+=s[d];u++;continue}f+=s,u++}if($(a)&&$(f)){let{length:t}=a;for(d=0;d<t;d++)f[d]/=l;return f}return f/l}function rk(t){this._transformCachingAtTime=this._transformCachingAtTime??{v:new td};let{v:e}=this._transformCachingAtTime,{mult:s=1}=this.a??{mult:1},{mult:i=1}=this.s??{mult:1};if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){let i=this.a?.getValueAtTime(t)??[0,0,0];e.translate(-i[0]*s,-i[1]*s,i[2]*s)}if(this.appliedTransformations<2){let s=this.s?.getValueAtTime(t)??[0,0,0];e.scale(s[0]*i,s[1]*i,s[2]*i)}if(this.sk&&this.appliedTransformations<3){let s=this.sk.getValueAtTime(t),i=this.sa?.getValueAtTime(t)??0;e.skewFromAxis(-s*(this.sk.mult??1),i*(this.sa?.mult??1))}if(this.r&&this.appliedTransformations<4){let s=this.r.getValueAtTime(t);e.rotate(-s*(this.r.mult??1))}else if(!this.r&&this.appliedTransformations<4){let s=Number(this.rz?.getValueAtTime(t)),i=Number(this.ry?.getValueAtTime(t)),r=Number(this.rx?.getValueAtTime(t)),a=this.or?.getValueAtTime(t)??[];e.rotateZ(-s*(this.rz?.mult??1)).rotateY(i*(this.ry?.mult??1)).rotateX(r*(this.rx?.mult??1)).rotateZ(-a[2]*(this.or?.mult??1)).rotateY(a[1]*(this.or?.mult??1)).rotateX(a[0]*(this.or?.mult??1))}if(this.data.p?.s){let s=this.px?.getValueAtTime(t),i=this.py?.getValueAtTime(t);if(this.data.p.z){let r=this.pz?.getValueAtTime(t);e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),-r*(this.pz?.mult??1))}else e.translate(s*(this.px?.mult??1),i*(this.py?.mult??1),0)}else{let s=this.p?.getValueAtTime(t)??[0,0,0];e.translate(s[0]*(this.p?.mult??1),s[1]*(this.p?.mult??1),-s[2]*(this.p?.mult??1))}return e}function rC(){return this.v.clone(new td)}function rP(t,e){this._cachingAtTime=this._cachingAtTime??{lastIndex:0,lastTime:-999999,shapeValue:t0(this.pv)};let s=t;return s*=this.elem?.globalData?.frameRate??60,(s-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<s?this._caching?.lastIndex??0:0,this._cachingAtTime.lastTime=s,this.interpolateShape(s,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}class rM{constructor(t){this.displayStartTime=0,this.pixelAspect=1,this.comp=t,this._name=t.data?.nm,this.layer=this,this.height=t.data?.h||t.globalData?.compSize?.h,this.width=t.data?.w||t.globalData?.compSize?.w,this.frameDuration=1/(t.globalData?.frameRate??60),this.numLayers=t.layers?.length}getInterface(t){let e=0,{length:s}=this.comp.layers??[];for(;e<s;){if(this.comp.layers?.[e]?.nm===t||this.comp.layers?.[e]?.ind===t)return this.comp.elements[e]?.layerInterface??null;e++}return null}}let{resetFrame:rA}=rb,rT={initExpressions:function(t){let e=0,s=[];if(!t.renderer.globalData)throw Error("Renderer -> GlobalData is not set");t.renderer.compInterface=new rM(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e++},t.renderer.globalData.popExpression=function(){0==--e&&function(){let{length:t}=s;for(let e=0;e<t;e++)s[e]?.release?.();s.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){s.includes(t)||s.push(t)}},resetFrame:rA};function rD(){return this.data.d?.x?(this.calculateExpression=rb.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}tt=Symbol.toPrimitive;class rI{constructor(t){this.value=t,this[0]=t}set(t){return this.value=t,this[0]=t,this}[tt](t){return"string"===t?`${this.value}`:this.value}toExponential(...t){return Number.prototype.toExponential.apply(this.value,t)}toFixed(...t){return Number.prototype.toFixed.apply(this.value,t)}toJSON(){return this.value}toLocaleString(...t){return Number.prototype.toLocaleString.apply(this.value,t)}toPrecision(...t){return Number.prototype.toPrecision.apply(this.value,t)}toString(...t){return Number.prototype.toString.apply(this.value,t)}valueOf(){return this.value}}class rF{completeProperty(t,e,s){Object.defineProperty(t,"velocity",{get:()=>e.getVelocityAtTime(e.comp?.currentFrame??0)}),t.numKeys=e.keyframes?.length??0,t.key=i=>{let r;if(!t.numKeys)return 0;let a=e.keyframes??[];r="s"in a[i-1]?a[i-1].s:"e"in a[i-2]?a[i-2].e:a[i-2].s;let n=a[i-1].t/(e.elem?.comp?.globalData?.frameRate??60);return s===tl.UniDimensional?Object.assign(new rI(Array.isArray(r)?r[0]:r),{time:n}):Object.assign({},r,{time:n,value:r})},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}defaultGetter(){return this.defaultUnidimensionalValue}getInterface(t){return t?t.propType===tl.UniDimensional?this.UnidimensionalPropertyInterface(t):this.MultidimensionalPropertyInterface(t):()=>this.defaultGetter()}MultidimensionalPropertyInterface(t){let e=t;e&&"pv"in e||(e=this.defaultMultidimensionalValue);let s=1/e?.mult,i=e.data?.l??e.pv.length,r=tm(te.Float32,i),a=tm(te.Float32,i);return r.value=a,this.completeProperty(r,e,tl.MultiDimensional),()=>{e.k&&e.getValue();for(let t=0;t<i;t+=1)a[t]=e.v[t]*s,r[t]=a[t];return r}}UnidimensionalPropertyInterface(t){let e=t;e&&"pv"in e||(e=this.defaultUnidimensionalValue);let s=1/e.mult,i=new rI(e.pv*s);return this.completeProperty(i,e,tl.UniDimensional),()=>(e.k&&e.getValue(),i.set(e.v*s))}constructor(){this.defaultMultidimensionalValue={mult:1,pv:[0,0,0],v:[0,0,0]},this.defaultUnidimensionalValue={mult:1,pv:0,v:0}}}function rL(t){return new rF().getInterface(t)}class r${constructor(t,e){this.interfaceFunction=t,this.parentPropertyGroup=e}getInterface(t=1){return t<=0?this.interfaceFunction:this.parentPropertyGroup.getInterface(t-1)}}class rN{constructor(t,e){this._name=t,this.propertyGroup=e}getInterface(t){return t<=0?this:this.propertyGroup.getInterface(t-1)}}class rV{get numProperties(){return this.effects.length}constructor(t,e){this.effects=t,this.effectElements=e}getInterface(t){let e=0,{length:s}=this.effects;for(;e<s;){if([this.effects[e].nm,this.effects[e].mn,this.effects[e].ix].includes(t))return this.effectElements[e];e++}return null}}class rR{get maskOpacity(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}get maskPath(){return this._mask.prop?.k&&this._mask.prop.getValue(),this._mask.prop}constructor(t,e){this._mask=t,this._data=e}}class rO{constructor(t,e){this.maskManager=t,this._masksInterfaces=tu(t.viewData.length);let{length:s}=t.viewData;for(let e=0;e<s;e++)this._masksInterfaces[e]=new rR(t.viewData[e],t.masksProperties[e])}getInterface(t){let e=0;for(;e<length;){if(this.maskManager.masksProperties[e]?.nm===t)return this._masksInterfaces[e];e++}return null}}class rz{get anchorPoint(){return rL(this.transform.a)}get opacity(){return rL(this.transform.o)}get orientation(){return rL(this.transform.or)}get position(){return this.transform.p?this._transformFactory?.():[this._px?.(),this._py?.(),this._pz?.()??0]}get rotation(){return rL(this.transform.r??this.transform.rz)}get scale(){return rL(this.transform.s)}get skew(){return rL(this.transform.sk)}get skewAxis(){return rL(this.transform.sa)}get xPosition(){return rL(this.transform.px)}get xRotation(){return rL(this.transform.rx)}get yPosition(){return rL(this.transform.py)}get yRotation(){return rL(this.transform.ry)}get zPosition(){return rL(this.transform.pz)}get zRotation(){return rL(this.transform.rz??this.transform.r)}constructor(t){this.transform=t,t.p?this._transformFactory=rL(t.p):(this._px=rL(t.px),this._py=rL(t.py),t.pz&&(this._pz=rL(t.pz)))}getInterface(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return this.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return this.rotation;case"ADBE Rotate X":return this.xRotation;case"ADBE Rotate Y":return this.yRotation;case"position":case"Position":case"ADBE Position":case 2:return this.position;case"ADBE Position_0":return this.xPosition;case"ADBE Position_1":return this.yPosition;case"ADBE Position_2":return this.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return this.anchorPoint;case"opacity":case"Opacity":case 11:return this.opacity;default:return null}}}class rB{getInterface(t){throw Error("Method not implemented")}}class rG extends rB{getInterface(t){let e=0,{length:s}=this.interfaces;for(;e<s;){if(this.interfaces[e]?._name===t||this.interfaces[e]?.mn===t||this.interfaces[e]?.propertyIndex===t||this.interfaces[e]?.ix===t||this.interfaces[e]?.ind===t)return this.interfaces[e];e++}return"number"==typeof t?this.interfaces[t-1]:null}constructor(...t){super(...t),this.interfaces=[]}}class rq extends rB{get position(){return rL(this.prop?.p)}get size(){return rL(this.prop?.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.s?.ix===t?this.size:null}constructor(...t){super(...t),this.prop=void 0}}class rj extends rB{get color(){return rL(this.c)}get opacity(){return rL(this.o)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:null}}class rH extends rB{get endPoint(){return rL(this.prop?.e)}get opacity(){return rL(this.prop?.o)}get startPoint(){return rL(this.prop?.s)}get type(){return"a"}getInterface(t){return"Start Point"===t||"start point"===t?this.startPoint:"End Point"===t||"end point"===t?this.endPoint:"Opacity"===t||"opacity"===t?this.opacity:null}constructor(...t){super(...t),this.prop=void 0}}class rW extends rB{get _name(){return this.shape?.nm}getInterface(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return this.content;default:return this.transform}}}class rJ extends rB{get position(){return rL(this.prop?.p)}get roundness(){return rL(this.prop?.r)}get size(){return rL(this.prop?.s)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.roundness:this.shape?.s?.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?this.size:null}constructor(...t){super(...t),this.prop=void 0}}class rU extends rB{get copies(){return rL(this.prop?.c)}get offset(){return rL(this.prop?.o)}getInterface(t){return this.shape?.c?.ix===t||"Copies"===t?this.copies:this.shape?.o?.ix===t||"Offset"===t?this.offset:null}constructor(...t){super(...t),this.prop=void 0}}class rY extends rB{get radius(){return rL(this.prop?.rd)}getInterface(t){return this.shape?.r?.ix===t||"Round Corners 1"===t?this.radius:null}constructor(...t){super(...t),this.prop=void 0}}class rX{get path(){return this.prop?.k&&this.prop.getValue(),this.prop}get shape(){return this.path}constructor(t,e,s){this.prop=e.sh;let i=new r$(this,s);this.prop?.setGroupProperty(new rN("Path",i)),this._name=t.nm,this.ix=t.ix,this.mn=t.mn,this.propertyGroup=s,this.propertyIndex=t.ix}getInterface(t){return["Shape","shape","Path","path","ADBE Vector Shape",2].includes(t)?this.path:null}}class rK extends rB{get innerRadius(){return rL(this.prop?.ir)}get innerRoundness(){return rL(this.prop?.is)}get outerRadius(){return rL(this.prop?.or)}get outerRoundness(){return rL(this.prop?.os)}get points(){return rL(this.prop?.pt)}get position(){return rL(this.prop?.p)}get rotation(){return rL(this.prop?.r)}getInterface(t){return this.shape?.p?.ix===t?this.position:this.shape?.r?.ix===t?this.rotation:this.shape?.pt?.ix===t?this.points:this.shape?.or?.ix===t||"ADBE Vector Star Outer Radius"===t?this.outerRadius:this.shape?.os?.ix===t?this.outerRoundness:this.shape?.ir?.ix===t||"ADBE Vector Star Inner Radius"===t?this.innerRadius:this.shape?.is?.ix===t?this.innerRoundness:null}constructor(...t){super(...t),this.prop=void 0}}class rZ extends rB{get color(){return rL(this.prop?.c)}get dash(){return this.dashOb}get opacity(){return rL(this.prop?.o)}get strokeWidth(){return rL(this.prop?.w)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:"Stroke Width"===t||"stroke width"===t?this.strokeWidth:null}constructor(...t){super(...t),this.prop=void 0}}class rQ extends rB{get anchorPoint(){return rL(this.prop?.transform?.mProps.a)}get opacity(){return rL(this.prop?.transform?.mProps.o)}get position(){return rL(this.prop?.transform?.mProps.p)}get rotation(){return rL(this.prop?.transform?.mProps.r)}get scale(){return rL(this.prop?.transform?.mProps.s)}get skew(){return rL(this.prop?.transform?.mProps.sk)}get skewAxis(){return rL(this.prop?.transform?.mProps.sa)}getInterface(t){return this.shape?.a?.ix===t||"Anchor Point"===t?this.anchorPoint:this.shape?.o?.ix===t||"Opacity"===t?this.opacity:this.shape?.p?.ix===t||"Position"===t?this.position:this.shape?.r?.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?this.rotation:this.shape?.s?.ix===t||"Scale"===t?this.scale:this.shape?.sk?.ix===t||"Skew"===t?this.skew:this.shape?.sa?.ix===t||"Skew Axis"===t?this.skewAxis:null}constructor(...t){super(...t),this.prop=void 0}}class r0 extends rB{get end(){return rL(this.prop?.e)}get offset(){return rL(this.prop?.o)}get start(){return rL(this.prop?.s)}getInterface(t){return t===this.shape?.e?.ix||"end"===String(t).toLowerCase()?this.end:t===this.shape?.s?.ix?this.start:t===this.shape?.o?.ix?this.offset:null}constructor(...t){super(...t),this.prop=void 0}}let r1={comp:rM,effects:class{createEffectsInterface(t,e){if(t.effectsManager){this.effectsData=t.data?.ef??[];let{length:s}=t.effectsManager.effectElements;for(let i=0;i<s;i++)this.effectElements.push(this.createGroupInterface(this.effectsData[i],t.effectsManager.effectElements[i],e,t));return this.effects=t.data?.ef??[],new rV(this.effects,this.effectElements)}return null}createGroupInterface(t,e,s,i){let r=e=>{let s=t.ef??[],i=0,{length:r}=s;for(;i<r;){if([s[i].nm,s[i].mn,s[i].ix].includes(e)){if(5===s[i].ty)return this.effectElements[i];return this.effectElements[i]()}i++}throw Error("Could not create Group Interface")},a=new r$(r,s),{length:n}=t.ef??[];for(let s=0;s<n;s+=1)t.ef?.[s].ty===5?this.effectElements.push(this.createGroupInterface(t.ef[s],e.effectElements[s],e.effectElements[s].propertyGroup,i)):this.effectElements.push(this.createValueInterface(e.effectElements[s],t.ef[s].ty,i,a));return"ADBE Color Control"===t.mn&&Object.defineProperty(r,"color",{get(){return this.effectElements[0]()}}),Object.defineProperties(r,{_name:{value:t.nm},numProperties:{get:()=>t.np},propertyGroup:{value:a}}),r.enabled=0!==t.en,r.active=r.enabled,r}createValueInterface(t,e,s,i){let r=rL(t.p);return t.p?.setGroupProperty&&t.p.setGroupProperty(new rN("",i)),function(){return 10===e?s.comp?.compInterface?.getInterface(t.p?.v):r()}}constructor(){this.effectElements=[],this.effects=[],this.effectsData=[]}},footage:class{constructor(t){this.currentPropertyName="",this.elem=t,this._name="Data",this.dataInterface=this.dataInterfaceFactory(t)}dataInterfaceFactory(t){return this._name="Outline",this.outlineInterface=this.outlineInterfaceFactory(t),this}getInterface(t){return"Data"===t?this.dataInterface:"Outline"===t?void this.outlineInterface():null}init(){return this.currentPropertyName="",this.currentProperty=this.elem.getFootageData(),this.searchProperty}outlineInterface(t){throw Error("Method is not implemented")}outlineInterfaceFactory(t){return this.currentPropertyName="",this.currentProperty=t.getFootageData(),this.elem=t,this.init}searchProperty(t){if(this.currentProperty?.[t])return(this.currentPropertyName=t,this.currentProperty=this.currentProperty[t],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty;let e=t.indexOf(this.currentPropertyName);if(-1!==e){let s=parseInt(t.slice(e+this.currentPropertyName.length),10);return(this.currentProperty=this.currentProperty?.[s],"object"==typeof this.currentProperty)?this.searchProperty:this.currentProperty}return""}},layer:class{get active(){return this._elem.isInRange}get hasParent(){return this._elem.hierarchy.length>0}get parent(){return this._elem.hierarchy[0]?.layerInterface??null}get transform(){return this.transformInterface}constructor(t){if(this.sourceRectAtTime=t.sourceRectAtTime.bind(t),this._elem=t,!t.finalTransform)throw Error(`FinalTransform is not iplemented in ${t.constructor.name}`);this.transformInterface=new rz(t.finalTransform.mProp);let{anchorPoint:e,opacity:s,position:i,rotation:r,scale:a}=this.transformInterface;this.anchor_point=e,this.anchorPoint=e,this.opacity=s,this.position=i,this.rotation=r,this.scale=a,this.toComp=this.toWorld;let{frameRate:n}=t.comp?.globalData??{frameRate:60};this.startTime=t.data.st,this.index=t.data.ind,this.source=t.data.refId,this.height=0===t.data.ty?t.data.h:100,this.width=0===t.data.ty?t.data.w:100,this.inPoint=t.data.ip/n,this.outPoint=t.data.op/n,this._name=t.data.nm}applyPoint(t,e){if(this._elem.hierarchy.length>0){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s]?.finalTransform?.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0]??0,e[1]??0,e[2]??0)}fromComp(t){let e=new td;if(e.reset(),this._elem.finalTransform?.mProp.applyToMatrix(e),this._elem.hierarchy.length>0){let t,s=this._elem.hierarchy.length;for(t=0;t<s;t+=1)this._elem.hierarchy[t]?.finalTransform?.mProp.applyToMatrix(e)}return e.inversePoint(t)}fromWorld(t,e){let s=this.getMatrix(e);return this.invertPoint(s,t)}fromWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.invertPoint(s,t)}getInterface(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return this.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return this.transformInterface;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return this.effect;case"ADBE Text Properties":return this.textInterface;default:return null}}getMatrix(t){let e=new td;if(void 0===t){let t=this._elem.finalTransform?.mProp;t?.applyToMatrix(e)}else(this._elem.finalTransform?.mProp.getValueAtTime(t)).clone(e);return e}invertPoint(t,e){if(this._elem.hierarchy.length>0){let{length:e}=this._elem.hierarchy;for(let s=0;s<e;s++)this._elem.hierarchy[s]?.finalTransform?.mProp.applyToMatrix(t)}return t.inversePoint(e)}registerEffectsInterface(t){this.effect=t}registerMaskInterface(t){this.mask=new rO(t,this._elem)}sampleImage(){return[1,1,1,1]}toComp(t,e){throw Error("Method is not implemented")}toWorld(t,e){let s=this.getMatrix(e);return this.applyPoint(s,t)}toWorldVec(t,e){let s=this.getMatrix(e);return s.props[12]=0,s.props[13]=0,s.props[14]=0,this.applyPoint(s,t)}},shape:class{constructor(t,e,s){this._name="Contents",this.arr=[],this.parentGroup=s,this.propertyGroup=new r$(this,this.parentGroupWrapper),this.interfaces=this.iterateElements(t,e,this.propertyGroup),this.numProperties=this.interfaces.length}contentsInterfaceFactory(t,e,s){rG.prototype.propertyGroup=new r$(rG,s),this.interfaces=this.iterateElements(t.it??null,e.it,rG.prototype.propertyGroup),rG.prototype.numProperties=this.interfaces.length;let i=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],rG.prototype.propertyGroup);return rG.prototype.transform=i,rG.prototype.propertyIndex=t.cix,rG.prototype._name=t.nm,rG.prototype.getInterface}defaultInterfaceFactory(){return this.noOp}ellipseInterfaceFactory(t,e,s){let i=new r$(rq,s);rq.prototype.shape=t,rq.prototype.propertyIndex=t.ix;let r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return r.s.setGroupProperty(new rN("Size",i)),r.p?.setGroupProperty(new rN("Position",i)),rq.prototype._name=t.nm,rq.prototype.prop=r,rq.prototype.mn=t.mn,rq.prototype.getInterface}fillInterfaceFactory(t,e,s){return rj.prototype._name=t.nm,rj.prototype.c=e.c,rj.prototype.mn=t.mn,rj.prototype.o=e.o,e.c?.setGroupProperty(new rN("Color",s)),e.o?.setGroupProperty(new rN("Opacity",s)),rj.prototype.getInterface}getInterface(t){let e=t;if("number"==typeof e)return 0===(e=t??1)?propertyGroup:this.interfaces[e-1];let s=0,{length:i}=this.interfaces;for(;s<i;){if(this.interfaces[s]._name===e)return this.interfaces[s];s++}return null}gradientFillInterfaceFactory(t,e,s){return rH.prototype._name=t.nm,rH.prototype.prop=e,rH.prototype.mn=t.mn,e.s?.setGroupProperty(new rN("Start Point",s)),e.e?.setGroupProperty(new rN("End Point",s)),e.o?.setGroupProperty(new rN("Opacity",s)),rH.prototype.getInterface}groupInterfaceFactory(t,e,s){rW.prototype.propertyGroup=new r$(rW,s);let i=this.contentsInterfaceFactory(t,e,rW.prototype.propertyGroup),r=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],rW.prototype.propertyGroup);return rW.prototype.content=i,rW.prototype.transform=r,rW.prototype.shape=t,rW.prototype.numProperties=t.np,rW.prototype.propertyIndex=t.ix,rW.prototype.nm=t.nm,rW.prototype.mn=t.mn,rW.prototype.getInterface}iterateElements(t,e,s){let i=[],{length:r}=t??[];for(let a=0;a<r;a++)if(t)switch(t[a].ty){case to.Group:i.push(this.groupInterfaceFactory(t[a],e[a],s));break;case to.Fill:i.push(this.fillInterfaceFactory(t[a],e[a],s));break;case to.Stroke:i.push(this.strokeInterfaceFactory(t[a],e[a],s));break;case to.Trim:i.push(this.trimInterfaceFactory(t[a],e[a],s));break;case to.Transform:break;case to.Ellipse:i.push(this.ellipseInterfaceFactory(t[a],e[a],s));break;case to.PolygonStar:i.push(this.starInterfaceFactory(t[a],e[a],s));break;case to.Path:i.push(new rX(t[a],e[a],s));break;case to.Rectangle:i.push(this.rectInterfaceFactory(t[a],e[a],s));break;case to.RoundedCorners:i.push(this.roundedInterfaceFactory(t[a],e[a],s));break;case to.Repeater:i.push(this.repeaterInterfaceFactory(t[a],e[a],s));break;case to.GradientFill:i.push(this.gradientFillInterfaceFactory(t[a],e[a],s));break;default:i.push(this.defaultInterfaceFactory(t[a],e[a],s))}return i}parentGroupWrapper(){return this.parentGroup}rectInterfaceFactory(t,e,s){rJ.prototype.shape=t;let i=new r$(rJ,s),r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return rJ.prototype.propertyIndex=t.ix,r.p?.setGroupProperty(new rN("Position",i)),r.s.setGroupProperty(new rN("Size",i)),r.r.setGroupProperty(new rN("Rotation",i)),rJ.prototype.prop=r,rJ.prototype._name=t.nm,rJ.prototype.mn=t.mn,rJ.prototype.getInterface}repeaterInterfaceFactory(t,e,s){rU.prototype.shape=t,rU.prototype.propertyIndex=t.ix,rU.prototype._name=t.nm,rU.prototype.mn=t.mn;let i=new r$(rU,s);return rU.prototype.prop=e,e.c?.setGroupProperty(new rN("Copies",i)),e.o?.setGroupProperty(new rN("Offset",i)),rU.prototype.getInterface}roundedInterfaceFactory(t,e,s){rY.prototype.shape=t,rY.prototype._name=t.nm,rY.prototype.propertyIndex=t.ix,rY.prototype.mn=t.mn;let i=new r$(rY,s);return e.rd.setGroupProperty(new rN("Radius",i)),rY.prototype.getInterface}starInterfaceFactory(t,e,s){rK.prototype.shape=t;let i=new r$(rK,s),r=e.sh?.ty===to.Trim?e.sh.prop:e.sh;return rK.prototype.propertyIndex=t.ix,r.or.setGroupProperty(new rN("Outer Radius",i)),r.os.setGroupProperty(new rN("Outer Roundness",i)),r.pt.setGroupProperty(new rN("Points",i)),r.p.setGroupProperty(new rN("Position",i)),r.r.setGroupProperty(new rN("Rotation",i)),t.ir&&(r.ir.setGroupProperty(new rN("Inner Radius",i)),r.is.setGroupProperty(new rN("Inner Roundness",i))),rK.prototype._name=t.nm,rK.prototype.prop=r,rK.prototype.mn=t.mn,rK.prototype.getInterface}strokeInterfaceFactory(t,e,s){let i={},r=new r$(rZ,s),a=new r$(i,r),{length:n}=t.d??[];for(let s=0;s<n;s++){var o;o=s,Object.defineProperty(i,t.d?.[o].nm,{get:rL(e.d.dataProps[o].p)}),e.d.dataProps[s].p.setGroupProperty(a)}return rZ.prototype._name=t.nm,rZ.prototype.mn=t.mn,rZ.prototype.dashOb=i,rZ.prototype.prop=e,e.c?.setGroupProperty(new rN("Color",r)),e.o?.setGroupProperty(new rN("Opacity",r)),e.w?.setGroupProperty(new rN("Stroke Width",r)),rZ.prototype.getInterface}transformInterfaceFactory(t,e,s){rQ.prototype.shape=t;let i=new r$(rQ,s);return e.transform?.mProps.o?.setGroupProperty(new rN("Opacity",i)),e.transform?.mProps.p?.setGroupProperty(new rN("Position",i)),e.transform?.mProps.a?.setGroupProperty(new rN("Anchor Point",i)),e.transform?.mProps.s?.setGroupProperty(new rN("Scale",i)),e.transform?.mProps.r?.setGroupProperty(new rN("Rotation",i)),e.transform?.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(new rN("Skew",i)),e.transform.mProps.sa?.setGroupProperty(new rN("Skew Angle",i))),e.transform?.op.setGroupProperty(new rN("Opacity",i)),rQ.prototype._name=t.nm,rQ.prototype.prop=e,rQ.prototype.ty=to.Transform,rQ.prototype.mn=t.mn,rQ.prototype.propertyGroup=s,rQ.prototype.getInterface}trimInterfaceFactory(t,e,s){r0.prototype.shape=t;let i=new r$(r0,s);return r0.prototype.propertyIndex=t.ix,e.s?.setGroupProperty(new rN("Start",i)),e.e?.setGroupProperty(new rN("End",i)),e.o?.setGroupProperty(new rN("Offset",i)),r0.prototype.propertyIndex=t.ix,r0.prototype.propertyGroup=s,r0.prototype._name=t.nm,r0.prototype.prop=e,r0.prototype.mn=t.mn,r0.prototype.getInterface}noOp(){return null}},text:class{get sourceText(){this.elem.textProperty?.getValue();let t=this.elem.textProperty?.currentData.t;return this._sourceText&&t===this._sourceText.value||(this._sourceText=new String(t),this._sourceText.value=t||String(t),Object.defineProperty(this._sourceText,"style",{get(){return{fillColor:this.elem.textProperty.currentData.fc}}})),this._sourceText}constructor(t){this.elem=t}getInterface(t){return t.toLowerCase().includes("adbe text document")?this.sourceText:null}}};function r2(t){return r1[t]}let r3="__lottie_element_luma_buffer",r5=null,r4=null,r6=null;function r8(){if(!r5||!r4){let t,e,s;t=tf("svg"),e=tf("filter"),s=tf("feColorMatrix"),e.id=r3,s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.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"),e.appendChild(s),t.appendChild(e),t.id=`${r3}_svg`,t_.svgLumaHidden&&(t.style.display="none"),r6=t,document.body.appendChild(r6),(r4=(r5=tx("canvas")).getContext("2d"))&&(r4.filter=`url(#${r3})`,r4.fillStyle="rgba(0,0,0,0)",r4.fillRect(0,0,1,1))}}let r9=function(t,e){if(t_.offscreenCanvas)return new OffscreenCanvas(t,e);let s=tx("canvas");return s.width=t,s.height=e,s},r7=function(t){if(r5&&r4||r8(),!r5||!r4)throw Error("Could not create Canvas Element");return r5.width=t.width,r5.height=t.height,r4.filter=`url(#${r3})`,r5};function at(t,e){let s=e._length;if(0===s)return;let{i,o:r,v:a}=e,{c:n}=e;t.moveTo(a[0][0],a[0][1]);for(let e=1;e<s;e++)t.bezierCurveTo(r[e-1][0],r[e-1][1],i[e][0],i[e][1],a[e][0],a[e][1]);n&&(t.bezierCurveTo(r[s-1][0],r[s-1][1],i[0][0],i[0][1],a[0][0],a[0][1]),t.closePath())}let ae={a:"source-over",d:"source-over",f:"xor",i:"destination-in",l:"source-over",s:"destination-out"};function as(t){if(!t?.length)return!0;for(let e of t){if("n"===e.mode)continue;if("a"!==e.mode||e.inv||e.o?.x)return!1;let t=e.o?.k;if("number"==typeof t){if(100!==t)return!1}else if(Array.isArray(t))return!1}return!0}class ai{constructor(t,e){this._isFirstFrame=!1,this.opacityData=[],this.maskBuffer=null,this.pathBuffer=null,this.data=t,this.element=e,this.masksProperties=this.data.masksProperties??[],this.viewData=tu(this.masksProperties.length),this.opacityData=tu(this.masksProperties.length);let s=!1,i=this.element;for(let t=0;t<this.masksProperties.length;t++)this.masksProperties[t]?.mode!=="n"&&(s=!0),this.viewData[t]=t7.getShapeProp(this.element,this.masksProperties[t],3),this.opacityData[t]=tU.getProp(i,this.masksProperties[t]?.o,0,.01,i);this.hasMasks=s,this.isSimple=as(this.masksProperties)}applyMasks(){if(!this.hasMasks||this.isSimple)return;let t=this.element.canvasContext;if(!t)return;if(!this.element.globalData?.compSize)throw Error(`${this.constructor.name}: element->globalData->compSize is not implemented`);let{canvas:e}=t,{h:s,w:i}=this.element.globalData.compSize,r=this.ensureBufferCtx(e.width,e.height,"mask"),a=this.ensureBufferCtx(e.width,e.height,"path"),n=t.getTransform(),{length:o}=this.masksProperties;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,e.width,e.height),r.setTransform(n);let h=this.firstActiveMode();("s"===h||"i"===h)&&(r.globalCompositeOperation="source-over",r.fillStyle="#ffffff",r.fillRect(0,0,i,s));for(let t=0;t<o;t++){let o=this.masksProperties[t];if("n"===o.mode)continue;let h=this.viewData[t]?.v;if(!h)continue;let l=this.opacityData[t]?.v??1,p=o.mode??"a",c=!!o.inv;a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.width,e.height),a.setTransform(n),a.globalCompositeOperation="source-over",a.beginPath(),c&&a.rect(0,0,i,s),at(a,h),a.fillStyle=`rgba(255,255,255,${l})`,a.fill(c?"evenodd":"nonzero"),r.setTransform(1,0,0,1,0,0),r.globalCompositeOperation=ae[p]??"source-over",r.drawImage(this.pathBuffer,0,0),r.setTransform(n)}t.save(),t.setTransform(1,0,0,1,0,0),t.globalCompositeOperation="destination-in",t.drawImage(this.maskBuffer,0,0),t.restore()}clipLocal(){if(!this.hasMasks||!this.isSimple)return;let t=this.element.canvasContext;if(t){t.beginPath();for(let e=0;e<this.masksProperties.length;e++){if(this.masksProperties[e]?.mode==="n")continue;let s=this.viewData[e]?.v;s&&at(t,s)}t.clip()}}destroy(){this.element=null,this.maskBuffer=null,this.pathBuffer=null}getMaskProperty(t){return this.viewData[t]}renderFrame(t){}ensureBufferCtx(t,e,s){let i="mask"===s?this.maskBuffer:this.pathBuffer;return i&&i.width===t&&i.height===e||(i=r9(t,e),"mask"===s?this.maskBuffer=i:this.pathBuffer=i),i.getContext("2d")}firstActiveMode(){for(let t of this.masksProperties)if(t.mode&&"n"!==t.mode)return t.mode;return"a"}}let ar={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};class aa extends ex{clearCanvas(t){if(t){if(!this.transformCanvas)throw Error(`${this.constructor.name}: transformCanvas is not implemented`);t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)}}createContainerElements(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.globalData.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented in globalData`);let t=!!(this.data.tt&&this.data.tt>=1),e=function(t){if(!t?.length)return!1;for(let e of t)if("n"!==e.mode)return!as(t);return!1}(this.data.masksProperties);if(t||e){this.buffers=[];let{canvasContext:e}=this.globalData,s=r9(e.canvas.width,e.canvas.height);this.buffers.push(s);let i=r9(e.canvas.width,e.canvas.height);this.buffers.push(i),t&&void 0!==this.data.tt&&this.data.tt>=3&&!document._isProxy&&r8()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new tb(this),this.searchEffectTransforms()}createContent(){}createRenderableComponents(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.maskManager=new ai(this.data,this),this.renderableEffectsManager&&(this.transformEffects=this.renderableEffectsManager.getEffects(th.TransformEffect))}destroy(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager?.destroy()}exitLayer(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);let t=this.data.tt||0;if(t<1)return;let e=this.buffers[1],s=e.getContext("2d");this.clearCanvas(s),s.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);let i=null;if("tp"in this.data&&void 0!==this.data.tp)i=this.comp?.getElementById(this.data.tp)??null;else{let t=this.comp?.layers??[],e=t.indexOf(this.data);e>0&&(i=this.comp?.getElementById(Number(t[e-1].ind))??null)}if(i?.renderFrame(1),this.canvasContext.setTransform(1,0,0,1,0,0),t>=3&&!document._isProxy){let t=r7(this.canvasContext.canvas),e=t.getContext("2d");e?.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(t,0,0)}this.canvasContext.globalCompositeOperation=ar[t],this.canvasContext.drawImage(e,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"}hideElement(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)}initRendererElement(){}prepareLayer(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);if(0===this.buffers.length)return;let 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)}renderFrame(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.hidden||this.data.hd||1===this.data.td&&!t)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();let e=(this.data.tt||0)>=1,s=!!(this.maskManager?.hasMasks&&this.maskManager.isSimple),i=!!(this.maskManager?.hasMasks&&!this.maskManager.isSimple),r=0===this.data.ty||s;(e||i)&&this.prepareLayer();let{renderer:a}=this.globalData;a.save(r),a.ctxTransform(this.finalTransform?.localMat.props),a.ctxOpacity(this.finalTransform?.localOpacity),s&&this.maskManager?.clipLocal(),this.renderInnerContent(),i&&this.maskManager?.applyMasks(),a.restore(r),e?this.exitLayer():i&&this.restoreIsolatedLayer(),this._isFirstFrame&&(this._isFirstFrame=!1)}restoreIsolatedLayer(){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);0!==this.buffers.length&&(this.canvasContext.setTransform(1,0,0,1,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.currentTransform&&this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over")}setBlendMode(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let{data:t,globalData:e}=this;if(!e.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented in globalData`);if(e.blendMode!==t.bm){e.blendMode=t.bm;let s=ed(t.bm);e.canvasContext.globalCompositeOperation=s}}showElement(){if(!this.maskManager)throw Error(`${this.constructor.name}: Method maskManager is not implemented`);this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)}constructor(...t){super(...t),this.buffers=[],this.maskManager=void 0,this.renderableEffectsManager=void 0,this.transformEffects=[]}}aa.prototype.hide=aa.prototype.hideElement,aa.prototype.show=aa.prototype.showElement;class an extends aa{constructor(t,e,s){if(super(),this.assetData=e.getAssetData(t.refId)??null,!e.imageLoader)throw Error(`${this.constructor.name} imageLoader is not implemented in globalData`);this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,s)}createContent(){let t,e;if(!this.assetData)throw Error(`${this.constructor.name}: assetData is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height)return;let s=tx("canvas");s.width=Number(this.assetData.w),s.height=Number(this.assetData.h);let i=s.getContext("2d"),r=this.img.width,a=this.img.height,n=r/a,o=Number(this.assetData.w)/Number(this.assetData.h),h=this.assetData.pr||this.globalData.renderConfig?.imagePreserveAspectRatio;n>o&&"xMidYMid slice"===h||n<o&&"xMidYMid slice"!==h?t=(e=a)*o:e=(t=r)/o,i?.drawImage(this.img,(r-t)/2,(a-e)/2,t,e,0,0,Number(this.assetData.w),Number(this.assetData.h)),this.img=s}destroy(){this.img=null}renderInnerContent(){this.canvasContext?.drawImage(this.img,0,0)}}e2(an,e8,["initElement"]),e2(an,eI,["prepareFrame"]);class ao extends eY{constructor(t,e,s,i){let r,a;switch(super(),this.styledShapes=[],this.tr=[0,0,0,0,0,0],e.ty){case to.Rectangle:r=5;break;case to.Ellipse:r=6;break;case to.PolygonStar:r=7;break;default:r=4}this.sh=t7.getShapeProp(t,e,r);for(let t=0;t<s.length;t++)s[t]?.closed||(a={transforms:i.addTransformSequence(s[t]?.transforms),trNodes:[]},this.styledShapes.push(a),s[t]?.elements.push(a))}}class ah{addTransformSequence(t){let e="_";for(let s=0;s<t.length;s++)e+=`${t[s]?.transform.key}_`;let s=this.sequences[e];return s||(s={_mdf:!1,finalTransform:new td,transforms:[...t]},this.sequences[e]=s,this.sequenceList.push(s)),s}getNewKey(){return this.transform_key_count++,`_${this.transform_key_count}`}processSequence(t,e){let s=0,{length:i}=t.transforms??[],r=e;if(!e)for(;s<i;){if(t.transforms?.[s]?.transform.mProps._mdf){r=!0;break}s++}if(r)for(t.finalTransform?.reset(),s=i-1;s>=0;s-=1){let{v:e}=t.transforms?.[s]?.transform.mProps??{v:null};e&&t.finalTransform?.multiply(e)}t._mdf=!!r}processSequences(t){for(let e=0;e<this.sequenceList.length;e++)this.processSequence(this.sequenceList[e],t)}constructor(){this.sequenceList=[],this.sequences={},this.transform_key_count=0}}class al extends e1{constructor(t,e,s){super(),this.dashResetter=[],this.prevViewData=[],this.stylesList=[],this.transformHelper={_opMdf:!1,opacity:1},this.transformsManager=new ah,this.shapes=[],this.shapesData=t.shapes,this.itemsData=[],this.shapeModifiers=[],this.processedElements=[],this.initElement(t,e,s)}addTransformToStyleList(t){for(let e=0;e<this.stylesList.length;e++)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)}closeStyles(t){for(let e=0;e<t.length;e++)t[e].closed=!0}createContent(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])}createGroupElement(t){return{it:[],prevViewData:[]}}createShapeElement(t){let e=new ao(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e}createStyleElement(t,e){try{let s={closed:!0===t.hd,data:t,elements:[],preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],type:t.ty},i={};switch(t.ty){case to.Fill:case to.Stroke:i.c=tU.getProp(this,t.c,1,255,this),i.c.k||(s.co=z(i.c.v));break;case to.GradientFill:case to.GradientStroke:i.s=tU.getProp(this,t.s,1,null,this),i.e=tU.getProp(this,t.e,1,null,this),i.h=tU.getProp(this,t.h??{k:0},0,.01,this),i.a=tU.getProp(this,t.a??{k:0},0,f,this),t.g&&(i.g=new ej(this,t.g,this))}return i.o=tU.getProp(this,t.o,0,.01,this),t.ty===to.Stroke||t.ty===to.GradientStroke?(s.lc=tp[t.lc||2],s.lj=tc[t.lj||2],1===t.lj&&(s.ml=t.ml),i.w=tU.getProp(this,t.w,0,null,this),i.w.k||(s.wi=i.w.v),t.d&&"object"==typeof t.d&&(i.d=new eW(this,t.d,tn.Canvas,this),i.d.k||(s.da=i.d.dashArray,s.do=i.d.dashoffset[0]))):s.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(s),i.style=s,i}catch(t){return P(this.constructor.name,t),null}}createTransformElement(t){return{transform:{_opMdf:!1,key:this.transformsManager.getNewKey(),mProps:ey.getTransformProperty(this,t,this),op:tU.getProp(this,t.o,0,.01,this),opacity:1}}}destroy(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0}drawLayer(){try{let t;if(!this.globalData)throw Error(`${this.constructor.name} globalData is not implemented`);if(!this.globalData.renderer)throw Error(`${this.constructor.name} renderer is not implemented`);let{renderer:e}=this.globalData,s=this.globalData.canvasContext;for(let i=0;i<this.stylesList.length;i++){let{co:r,coOp:a,da:n,data:o,elements:h,grd:l,lc:p,lj:c,ml:m,preTransforms:u,r:d,type:f,wi:g}=t=this.stylesList[i],y=f===to.Stroke||f===to.GradientStroke;if((!y||0!==g)&&o._shouldRender&&0!==a&&0!==this.globalData.currentGlobalAlpha){e.save(),y?(e.ctxStrokeStyle(f===to.Stroke?r:l),e.ctxLineWidth(g||0),p&&e.ctxLineCap(p),c&&e.ctxLineJoin(c),e.ctxMiterLimit(m||0)):e.ctxFillStyle(f===to.Fill?r:l),e.ctxOpacity(a),f!==to.Stroke&&f!==to.GradientStroke&&s?.beginPath(),e.ctxTransform(u.finalTransform?.props);for(let i=0;i<h.length;i++){(f===to.Stroke||f===to.GradientStroke)&&(s?.beginPath(),s&&n&&(s.setLineDash(n),s.lineDashOffset=t.do||0));let r=h[i].trNodes,{length:a}=r;for(let t=0;t<a;t++){let{p:e=[],pts:i=[]}=r[t];"m"===r[t].t?s?.moveTo(e[0],e[1]):"c"===r[t].t?s?.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]):s?.closePath()}y&&(e.ctxStroke(),n&&s?.setLineDash(this.dashResetter))}y||this.globalData.renderer.ctxFill(d),e.restore()}}}catch(t){P(this.constructor.name,t)}}reloadShapes(){this._isFirstFrame=!0;for(let t=0;t<this.itemsData.length;t++)this.prevViewData[t]=this.itemsData[t];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]);for(let t=0;t<this.dynamicProperties.length;t++)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)}removeTransformFromStyleList(){for(let t=0;t<this.stylesList.length;t++)this.stylesList[t].closed||this.stylesList[t].transforms.pop()}renderFill(t,e,s){let i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co=z(e.c.v)),(e.o._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*s.opacity)}renderGradientFill(t,e,s){let i;if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);let r=e.style;if(!r?.grd||e.g?._mdf||e.s?._mdf||e.e?._mdf||1!==t.t&&(e.h?._mdf||e.a?._mdf)){let s=this.globalData.canvasContext,a=e.s?.v??[0,0],n=e.e?.v??[0,0];if(1===t.t)i=s?.createLinearGradient(a[0],a[1],n[0],n[1]);else{let t=Math.sqrt(Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)),r=Math.atan2(n[1]-a[1],n[0]-a[0]),o=e.h?.v??0;o>=1?o=.99:o<=-1&&(o=-.99);let h=t*o,l=e.a?.v??0,p=Math.cos(r+l)*h+a[0],c=Math.sin(r+l)*h+a[1];i=s?.createRadialGradient(p,c,0,a[0],a[1],t)}let o=t.g?.p??0,h=e.g?.c??[],l=1;for(let t=0;t<o;t++)e.g?._hasOpacity&&e.g._collapsable&&(l=e.g.o[2*t+1]),i?.addColorStop(h[4*t]/100,`rgba(${h[4*t+1]},${h[4*t+2]},${h[4*t+3]},${l})`);r&&(r.grd=i)}r&&(r.coOp=(e.o?.v??0)*s.opacity)}renderInnerContent(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)}renderPath(t,e){if(!0!==t.hd&&t._shouldRender&&e.sh)for(let t=0;t<e.styledShapes.length;t++)this.renderStyledShape(e.styledShapes[t],e.sh)}renderShape(t,e,s,i){try{let r,a=e.length-1;r=t;for(let i=a;i>=0;i--)switch(e[i].ty){case to.Transform:(r=s[i].transform)&&this.renderShapeTransform(t,r);break;case to.Path:case to.Ellipse:case to.Rectangle:case to.PolygonStar:this.renderPath(e[i],s[i]);break;case to.Fill:this.renderFill(e[i],s[i],r);break;case to.Stroke:this.renderStroke(e[i],s[i],r);break;case to.GradientFill:case to.GradientStroke:this.renderGradientFill(e[i],s[i],r);break;case to.Group:this.renderShape(r,e[i].it??[],s[i].it);case to.Trim:}i&&this.drawLayer()}catch(t){P(this.constructor.name,t)}}renderShapeTransform(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)}renderStroke(t,e,s){let i=e.style,{c:r,d:a,o:n,w:o}=e;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r._mdf||this._isFirstFrame)&&(i.co=z(r.v)),(n._mdf||s._opMdf||this._isFirstFrame)&&(i.coOp=n.v*s.opacity),(o._mdf||this._isFirstFrame)&&(i.wi=o.v)}renderStyledShape(t,e){let s,i,r;if(!this._isFirstFrame&&!e._mdf&&!t.transforms._mdf)return;let{transforms:a,trNodes:n}=t,{paths:o}=e,h=o?._length||0;n.length=0;let l=a?.finalTransform;for(r=0;r<h;r++){let t=o?.shapes[r];if(t?.v){for(i=t._length,s=1;s<i;s++)1===s&&n.push({p:l?.applyToPointArray(t.v[0][0],t.v[0][1],0),t:"m"}),n.push({pts:l?.applyToTriplePoints(t.o[s-1],t.i[s],t.v[s]),t:"c"});1===i&&n.push({p:l?.applyToPointArray(t.v[0][0],t.v[0][1],0),t:"m"}),t.c&&i&&n.push({pts:l?.applyToTriplePoints(t.o[s-1],t.i[0],t.v[0]),t:"c"},{t:"z"})}}t.trNodes=n}searchShapes(t,e,s,i,r){let a,n,o=i,h=t.length-1,l=[],p=[],c=[...r];for(let i=h;i>=0;i--){let r=this.searchProcessedElement(t[i]);switch(r?e[i]=s[r-1]:t[i]._shouldRender=o,t[i].ty){case to.Fill:case to.Stroke:case to.GradientFill:case to.GradientStroke:r?e[i].style.closed=!1:e[i]=this.createStyleElement(t[i],c),l.push(e[i].style);break;case to.Group:if(r)for(let t=0;t<e[i].it.length;t++)e[i].prevViewData[t]=e[i].it[t];else e[i]=this.createGroupElement(t[i]);this.searchShapes(t[i].it??[],e[i].it,e[i].prevViewData,o,c);break;case to.Transform:r||(n=this.createTransformElement(t[i]),e[i]=n),c.push(e[i]),this.addTransformToStyleList(e[i]);break;case to.Path:case to.Rectangle:case to.Ellipse:case to.PolygonStar:r||(e[i]=this.createShapeElement(t[i]));break;case to.Trim:case to.RoundedCorners:case to.PuckerBloat:case to.ZigZag:case to.OffsetPath:r?(a=e[i]).closed=!1:((a=e4(t[i].ty)).init(this,t[i]),e[i]=a,this.shapeModifiers.push(a)),p.push(a);break;case to.Repeater:r?(a=e[i]).closed=!0:(a=e4(t[i].ty),e[i]=a,a.init(this,t,i,e),this.shapeModifiers.push(a),o=!1),p.push(a)}this.addProcessedElement(t[i],i+1)}this.removeTransformFromStyleList(),this.closeStyles(l);for(let t=0;t<p.length;t++)p[t].closed=!0}}e2(al,aa,["clearCanvas","createContainerElements","createRenderableComponents","exitLayer","hide","initRendererElement","prepareLayer","renderFrame","setBlendMode","show"]);class ap extends aa{constructor(t,e,s){super(),this.initElement(t,e,s)}renderInnerContent(){if(!this.globalData)throw Error(`${this.constructor.name}: globalData it not implemented`);if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) it not implemented`);if(!this.globalData.renderer)throw Error(`${this.constructor.name}: globalData.renderer it not implemented`);this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw||0,this.data.sh||0)}}e2(ap,e8,["initElement"]),e2(ap,eI,["prepareFrame"]);let ac="rgba(0,0,0,0)";class am extends sg{constructor(t,e,s){super(),this.currentRender=null,this.fill=!1,this.fillColorAnim=!1,this.justifyOffset=0,this.renderedLetters=[],this.stroke=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.textSpans=[],this.tHelper=tx("canvas").getContext("2d"),this.values={fill:ac,fValue:"",stroke:ac,sWidth:0},this.yOffset=0,this.renderType=tn.Canvas,this.initElement(t,e,s)}buildNewText(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.globalData.fontManager)throw Error(`${this.constructor.name}: fontManager is not implemented in globalData`);if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not implemented`);let t=this.textProperty.currentData;this.renderedLetters=tu(t.l.length||0);let e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;let s=!1;t.sc&&(s=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=Number(t.sw));let i=this.globalData.fontManager.getFontByName(t.f),r=t.l,a=this.mHelper;this.stroke=s,this.values.fValue=`${t.finalSize}px ${this.globalData.fontManager.getFontByName(t.f).fFamily}`;let{singleShape:n}=this.data,o=.001*t.tr*Number(t.finalSize),h,l=0,p=0,c=!0,m=0;for(let e=0;e<t.finalText.length;e++){let s=this.globalData.fontManager.getCharData(t.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily).data??{};a.reset(),n&&r[e]?.n&&(l=-o,p+=Number(t.yOffset),p+=+!!c,c=!1);let u=s.shapes?.[0]?.it??[];a.scale(Number(t.finalSize)/100,Number(t.finalSize)/100),n&&this.applyTextPropertiesToMatrix(t,a,r[e]?.line??0,l,p);let{length:d}=u,f=tu(d-1),g=0;for(let t=0;t<d;t++){if(u[t]?.ty!==to.Path)continue;let{length:e}=(u[t]?.ks?.k).i,s=u[t]?.ks?.k,i=[];for(h=1;h<e;h++)1===h&&i.push(a.applyToX(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0),a.applyToY(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0)),i.push(a.applyToX(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToY(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToX(s.i[h]?.[0]??0,s.i[h]?.[1]??0,0),a.applyToY(s.i[h]?.[0]??0,s.i[h]?.[1]??0,0),a.applyToX(s.v[h]?.[0]??0,s.v[h]?.[1]??0,0),a.applyToY(s.v[h]?.[0]??0,s.v[h]?.[1]??0,0));i.push(a.applyToX(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToY(s.o[h-1]?.[0]??0,s.o[h-1]?.[1]??0,0),a.applyToX(s.i[0]?.[0]??0,s.i[0]?.[1]??0,0),a.applyToY(s.i[0]?.[0]??0,s.i[0]?.[1]??0,0),a.applyToX(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0),a.applyToY(s.v[0]?.[0]??0,s.v[0]?.[1]??0,0)),f[g]=i,g++}n&&(l+=r[e]?.l??0,l+=o),this.textSpans[m]?this.textSpans[m].elem=f:this.textSpans[m]={elem:f},m++}}destroyBaseElement(){}renderElement(){}renderInnerContent(){let t,e,s,i;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.textAnimator)throw Error(`${this.constructor.name}: textAnimator is not implemented`);if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer?.ctxLineCap("butt"),this.globalData.renderer?.ctxLineJoin("miter"),this.globalData.renderer?.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);let{renderedLetters:r}=this.textAnimator,a=this.textProperty.currentData.l,n,o=null,h=null,l=null,p,c,m=this.globalData.renderer,{length:u}=a;for(let d=0;d<u;d++)if(!a[d]?.n){if(n=r[d],m.save(),m.ctxTransform(n.p),m.ctxOpacity(n.o),this.fill){for(n.fc?o!==n.fc&&(m.ctxFillStyle(n.fc),o=n.fc):o!==this.values.fill&&(o=this.values.fill,m.ctxFillStyle(this.values.fill)),p=this.textSpans[d]?.elem??[],this.globalData.canvasContext?.beginPath(),t=0;t<p.length;t++)for(c=p[t]??[],this.globalData.canvasContext?.moveTo(c[0]??0,c[1]??0),s=2;s<c.length;s+=6)this.globalData.canvasContext?.bezierCurveTo(c[s]??0,c[s+1]??0,c[s+2]??0,c[s+3]??0,c[s+4]??0,c[s+5]??0);this.globalData.canvasContext?.closePath(),m.ctxFill()}if(this.stroke){for(n.sw?l!==n.sw&&(l=n.sw,m.ctxLineWidth(n.sw)):l!==this.values.sWidth&&(l=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),n.sc?h!==n.sc&&(h=n.sc,m.ctxStrokeStyle(n.sc)):h!==this.values.stroke&&(h=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),e=(p=this.textSpans[d]?.elem??[]).length,this.globalData.canvasContext?.beginPath(),t=0;t<e;t++)for(i=(c=p[t]??[]).length,this.globalData.canvasContext?.moveTo(c[0]??0,c[1]??0),s=2;s<i;s+=6)this.globalData.canvasContext?.bezierCurveTo(c[s]??0,c[s+1]??0,c[s+2]??0,c[s+3]??0,c[s+4]??0,c[s+5]??0);this.globalData.canvasContext?.closePath(),m.ctxStroke()}this.globalData.renderer?.restore()}}}e2(am,aa,["clearCanvas","createContainerElements","createContent","createRenderableComponents","hide","hideElement","initRendererElement","destroy","exitLayer","prepareLayer","renderFrame","renderLocalTransform","renderRenderable","searchEffectTransforms","setBlendMode","show","showElement"]);class au extends sx{addResizeObserver(){if(!this.animationItem?.wrapper||this._resizeObserver)return;let t=((t,e=300)=>{let s;return(...i)=>{void 0!==s&&clearTimeout(s),s=setTimeout(()=>{t(...i)},e)}})((t,e)=>{this.updateContainerSize(t,e)});this._resizeObserver=new ResizeObserver(e=>{let{contentBoxSize:s}=e[0],{blockSize:i,inlineSize:r}=s[0];r<=this._elementWidth||t(r,i)}),this._resizeObserver.observe(this.animationItem.wrapper)}buildItem(t){let{elements:e,layers:s}=this;if(e[t]||s[t]?.ty===99)return;let i=this.createItem(s[t]);e[t]=i,i.initExpressions()}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();t?.checkParenting()}}configAnimation(t){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.renderConfig)throw Error(`${this.constructor.name}: renderConfig is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(this.animationItem.wrapper){this.animationItem.container=tx("canvas");let{style:t}=this.animationItem.container;t.width="100%",t.height="100%",t.transformOrigin="0px 0px 0px",t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&(this.animationItem.container.className=this.renderConfig.className),this.renderConfig.id&&(this.animationItem.container.id=this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData?.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={h:t.h,sx:0,sy:0,tx:0,ty:0,w:t.w},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=tu(t.layers.length),this.updateContainerSize(),this.addResizeObserver()}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new an(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new al(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new ap(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new am(t,this.globalData,this)}ctxFill(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fill(t)}ctxFillRect(t,e,s,i){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fillRect(t,e,s,i)}ctxFillStyle(t=""){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.fillStyle=t}ctxLineCap(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineCap=t}ctxLineJoin(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineJoin=t}ctxLineWidth(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.lineWidth=t}ctxMiterLimit(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.miterLimit=t}ctxOpacity(t=1){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.globalAlpha*=t<0?0:t}ctxStroke(){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.stroke()}ctxStrokeStyle(t=""){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);this.canvasContext.strokeStyle=t}ctxTransform(t){if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])}destroy(){if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.renderConfig?.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");for(let t=this.layers.length-1;t>=0;t-=1)this.elements[t]?.destroy();this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=void 0),this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0}hide(){if(!this.animationItem?.container)throw Error(`${this.constructor.name}: animationItem -> container is not implemented`);this.animationItem.container.style.display="none"}renderFrame(t,e){try{if(!this.globalData)throw Error("globalData is not implemented");if(!this.animationItem)throw Error("animationItem is not implemented");if(!1===t||this.renderedFrame===t&&this.renderConfig?.clearCanvas===!0&&!e||this.destroyed||-1===t)return;this.renderedFrame=t,this.globalData.frameNum=t-Number(this.animationItem._isFirstFrame),this.globalData.frameId++,this.globalData._mdf=!!(!this.renderConfig?.clearCanvas||e),this.globalData.projectInterface.currentFrame=t;let{length:s}=this.layers;this.completeLayers||this.checkLayers(t);for(let e=s-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e]?.prepareFrame(t-(this.layers[e]?.st??0));if(this.globalData._mdf){this.renderConfig?.clearCanvas===!0?this.canvasContext?.clearRect(0,0,this.transformCanvas?.w||0,this.transformCanvas?.h||0):this.save();for(let t=s-1;t>=0;t--)(this.completeLayers||this.elements[t])&&this.elements[t]?.renderFrame();this.renderConfig?.clearCanvas!==!0&&this.restore()}}catch(t){P(this.constructor.name,t)}}reset(){this.renderConfig?.clearCanvas?this.contextData?.reset():this.canvasContext?.restore()}restore(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.renderConfig?.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData?.restore(t)):this.canvasContext?.restore()}save(t){this.canvasContext?.save()}show(){if(!this.animationItem?.container)throw Error(`${this.constructor.name}: animationItem -> container is not implemented`);this.animationItem.container.style.display="block"}syncDevicePixelRatio(){this.renderConfig&&!this._dprLocked&&(this.renderConfig.dpr=A())}updateContainerSize(t,e){let s,i,r,a;if(!this.animationItem)throw Error(`${this.constructor.name}: animationItem is not implemented`);if(!this.canvasContext)throw Error(`${this.constructor.name}: canvasContext is not implemented`);if(!this.renderConfig)throw Error(`${this.constructor.name}: renderConfig is not implemented`);if(!this.transformCanvas)throw Error(`${this.constructor.name}: transformCanvas is not implemented`);this.syncDevicePixelRatio();let{dpr:n,preserveAspectRatio:o}=this.renderConfig;if(!("number"==typeof n&&n>0))throw Error(`${this.constructor.name}: renderConfig -> dpr is not implemented`);this.reset(),"number"==typeof t&&"number"==typeof e?(s=t,i=e):this.animationItem.wrapper&&this.animationItem.container?(s=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(s=this.canvasContext.canvas.width/n,i=this.canvasContext.canvas.height/n);let{canvas:h}=this.canvasContext;if(h.width=Math.max(1,Math.round(s*n)),h.height=Math.max(1,Math.round(i*n)),this.animationItem.container){let{style:t}=this.animationItem.container;t.width=`${s}px`,t.height="auto",t.maxWidth="100%",t.aspectRatio=`${s} / ${i}`}if(this.canvasContext.imageSmoothingEnabled=!0,"imageSmoothingQuality"in this.canvasContext&&(this.canvasContext.imageSmoothingQuality="high"),o.includes("meet")||o.includes("slice")){let t=o.split(" "),e=t[1]||"meet",h=t[0]||"xMidYMid",l=h.slice(0,4),p=h.slice(4);r=s/i,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===e||a<r&&"slice"===e?(this.transformCanvas.sx=s/(this.transformCanvas.w/n),this.transformCanvas.sy=s/(this.transformCanvas.w/n)):(this.transformCanvas.sx=i/(this.transformCanvas.h/n),this.transformCanvas.sy=i/(this.transformCanvas.h/n)),"xMid"===l&&(a<r&&"meet"===e||a>r&&"slice"===e)?this.transformCanvas.tx=(s-this.transformCanvas.w*(i/this.transformCanvas.h))/2*n:"xMax"===l&&(a<r&&"meet"===e||a>r&&"slice"===e)?this.transformCanvas.tx=(s-this.transformCanvas.w*(i/this.transformCanvas.h))*n:this.transformCanvas.tx=0,"YMid"===p&&(a>r&&"meet"===e||a<r&&"slice"===e)?this.transformCanvas.ty=(i-this.transformCanvas.h*(s/this.transformCanvas.w))/2*n:"YMax"===p&&(a>r&&"meet"===e||a<r&&"slice"===e)?this.transformCanvas.ty=(i-this.transformCanvas.h*(s/this.transformCanvas.w))*n:this.transformCanvas.ty=0}else o===ta.Initial?(this.transformCanvas.sx=s/(this.transformCanvas.w/n),this.transformCanvas.sy=i/(this.transformCanvas.h/n)):(this.transformCanvas.sx=n,this.transformCanvas.sy=n),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this._elementWidth=s,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)}constructor(...t){super(...t),this._dprLocked=!1,this._elementWidth=0}}class ad extends eS{constructor(t,e,s){super(),this.pendingElements=[],this.completeLayers=!1,this.layers=t.layers,this.elements=tu(this.layers.length),this.initElement(t,e,s),this.tm=t.tm?tU.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new ad(t,this.globalData,this)}destroy(){for(let t=this.layers.length-1;t>=0;t--)this.elements[t]?.destroy();this.layers=null,this.elements=null}destroyBaseElement(){}renderElement(){}renderInnerContent(){if(!this.data?.w||!this.data.h)throw Error(`${this.constructor.name} data (LottieLayer) is not implemented`);let{canvasContext:t,completeLayers:e,data:s,elements:i,layers:r}=this;if(!t)throw Error(`${this.constructor.name}: canvasContext is not implemented`);t.beginPath(),t.moveTo(0,0),t.lineTo(s.w||0,0),t.lineTo(s.w||0,s.h||0),t.lineTo(0,s.h||0),t.lineTo(0,0),t.clip();for(let t=r.length-1;t>=0;t--)(e||i[t])&&i[t]?.renderFrame()}}e2(ad,au,["addPendingElement","buildAllItems","buildElementParenting","buildItem","checkLayers","checkPendingElements","configAnimation","createAudio","createCamera","createFootage","createImage","createItem","createNull","createShape","createSolid","createText","ctxFill","ctxFillRect","ctxFillStyle","ctxLineCap","ctxLineJoin","ctxLineWidth","ctxMiterLimit","ctxOpacity","ctxStroke","ctxStrokeStyle","ctxTransform","getElementById","getElementByPath","includeLayers","initItems","reset","restore","save","searchExtraCompositions","setProjectInterface","setupGlobalData","syncDevicePixelRatio","updateContainerSize"]),e2(ad,aa,["clearCanvas","createContainerElements","createContent","createRenderableComponents","exitLayer","hide","hideElement","initRendererElement","prepareLayer","renderFrame","setBlendMode","show","showElement"]);class af{constructor(){this.fillStyle="",this.lineCap="",this.lineJoin="",this.lineWidth="",this.miterLimit="",this.opacity=-1,this.strokeStyle="",this.transform=tm(te.Float32,16),this.id=Math.random()}}class ag{constructor(){this.appliedFillStyle="",this.appliedLineCap="",this.appliedLineJoin="",this.appliedLineWidth="",this.appliedMiterLimit="",this.appliedStrokeStyle="",this.cArrPos=0,this.cTr=new td,this.currentFillStyle="",this.currentLineCap="",this.currentLineJoin="",this.currentLineWidth="",this.currentMiterLimit="",this.currentOpacity=1,this.currentStrokeStyle="",this.nativeContext=null,this.stack=[],this.transformMat=new td;for(let t=0;t<15;t++){let e=new af;this.stack[t]=e}this._length=15}duplicate(){let t=2*this._length;for(let e=this._length;e<t;e++)this.stack[e]=new af;this._length=t}fill(t){this.nativeContext&&this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext?.fill(t)}fillRect(t,e,s,i){this.nativeContext&&this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext?.fillRect(t,e,s,i)}fillStyle(t){let e=this.stack[this.cArrPos];e.fillStyle!==t&&(this.currentFillStyle=t,e.fillStyle=t)}lineCap(t){let e=this.stack[this.cArrPos];e.lineCap!==t&&(this.currentLineCap=t,e.lineCap=t)}lineJoin(t){let e=this.stack[this.cArrPos];e.lineJoin!==t&&(this.currentLineJoin=t,e.lineJoin=t)}lineWidth(t){let e=this.stack[this.cArrPos];e.lineWidth!==t&&(this.currentLineWidth=t,e.lineWidth=t)}miterLimit(t){let e=this.stack[this.cArrPos];e.miterLimit!==t&&(this.currentMiterLimit=t,e.miterLimit=t)}opacity(t){let e=this.stack[this.cArrPos],s=e.opacity;s*=t<0?0:t,e.opacity!==s&&(this.nativeContext&&this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),e.opacity=s)}reset(){this.cArrPos=0,this.cTr.reset(),this.appliedFillStyle="",this.appliedStrokeStyle="",this.appliedLineWidth="",this.appliedLineCap="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentFillStyle="",this.currentStrokeStyle="",this.currentLineWidth="",this.currentLineCap="",this.currentLineJoin="",this.currentMiterLimit="",this.currentOpacity=1;let t=this.stack[0];t.opacity=1,t.fillStyle="",t.strokeStyle="",t.lineWidth="",t.lineCap="",t.lineJoin="",t.miterLimit=""}restore(t){this.cArrPos-=1;let{fillStyle:e,lineCap:s,lineJoin:i,lineWidth:r,miterLimit:a,opacity:n,strokeStyle:o,transform:h}=this.stack[this.cArrPos],l=this.cTr.props;for(let t=0;t<16;t++)l[t]=h[t]??0;t&&(this.nativeContext?.restore(),this.appliedFillStyle="",this.appliedStrokeStyle="",this.appliedLineWidth="",this.appliedLineCap="",this.appliedLineJoin="",this.appliedMiterLimit=""),this.nativeContext?.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),this.nativeContext&&(t||-1!==n&&this.currentOpacity!==n)&&(this.nativeContext.globalAlpha=n,this.currentOpacity=n),this.currentFillStyle=e,this.currentStrokeStyle=o,this.currentLineWidth=r,this.currentLineCap=s,this.currentLineJoin=i,this.currentMiterLimit=a}save(t){let e;t&&this.nativeContext?.save();let{props:s}=this.cTr;this._length<=this.cArrPos&&this.duplicate();let i=this.stack[this.cArrPos];for(e=0;e<16;e++)i.transform[e]=s[e]??0;this.cArrPos++;let r=this.stack[this.cArrPos];r.opacity=i.opacity,r.fillStyle=i.fillStyle,r.strokeStyle=i.strokeStyle,r.lineWidth=i.lineWidth,r.lineCap=i.lineCap,r.lineJoin=i.lineJoin,r.miterLimit=i.miterLimit}setContext(t=null){this.nativeContext=t}setOpacity(t){this.stack[this.cArrPos].opacity=t}stroke(){if(!this.nativeContext)throw Error(`${this.constructor.name}: nativeContext is not implemented`);this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=Number(this.appliedLineWidth)),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=Number(this.appliedMiterLimit)),this.nativeContext.stroke()}strokeStyle(t){let e=this.stack[this.cArrPos];e.strokeStyle!==t&&(this.currentStrokeStyle=t,e.strokeStyle=t)}transform(t){this.transformMat.cloneFromProps(t);let e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);let s=e.props;this.nativeContext?.setTransform(s[0],s[1],s[4],s[5],s[12],s[13])}}class ay{createMergeNode(t,e){let s,i=tf("feMerge");i.setAttribute("result",t);for(let t=0;t<e.length;t++)(s=tf("feMergeNode")).setAttribute("in",e[t]),i.appendChild(s),i.appendChild(s);return i}}let av=[],ab="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";class a_ extends eI{createContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);let t=tf("rect");t.width.baseVal.value=this.data.sw||0,t.height.baseVal.value=this.data.sh||0,this.data.sc&&t.setAttribute("fill",this.data.sc),this.layerElement?.appendChild(t)}}let ax={shapes:[]};class aw extends sg{constructor(t,e,s){super(),this.renderedLetters=[],this.textSpans=[],this.renderType=tn.SVG,this.initElement(t,e,s)}buildNewText(){let t,e;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);if(!this.textProperty?.currentData)throw Error(`${this.constructor.name}: DocumentData is not implemented`);this.addDynamicProperty(this);let s=this.textProperty.currentData;this.renderedLetters=tu(s.l.length||0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",`${s.sw||0}`)),this.layerElement.setAttribute("font-size",`${s.finalSize||0}`);let i=this.globalData.fontManager?.getFontByName(s.f);if(i?.fClass)this.layerElement.classList.add(i.fClass);else{i?.fFamily&&this.layerElement.setAttribute("font-family",i.fFamily);let{fWeight:t}=s,{fStyle:e}=s;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)}this.layerElement.ariaLabel=`${s.t}`;let r=s.l,a=!!this.globalData.fontManager?.chars;e=r.length;let n=null,o=this.mHelper,{singleShape:h}=this.data,l=0,p=0,c=!0,m=.001*s.tr*Number(s.finalSize);if(!h||a||s.sz){let u,d=this.textSpans.length;for(t=0;t<e;t++){if(this.textSpans[t]=this.textSpans[t]??{childSpan:null,glyph:null,span:null},!a||!h||0===t){let e=a?"g":"text";if(!(n=(d>t?this.textSpans[t]?.span:tf(e))??null))throw Error("Could not create tSpan");if(d<=t){if(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t]&&(this.textSpans[t].span=n),a){let e=tf("g");n.appendChild(e),this.textSpans[t]&&(this.textSpans[t].childSpan=e)}this.textSpans[t]&&(this.textSpans[t].span=n),this.layerElement.appendChild(n)}n.style.display="inherit"}if(o.reset(),h&&(r[t]?.n&&(l=-m,p+=Number(s.yOffset),p+=+!!c,c=!1),this.applyTextPropertiesToMatrix(s,o,r[t]?.line??0,l,p),l+=r[t]?.l||0,l+=m),a){let e;if(u=this.globalData.fontManager?.getCharData(s.finalText[t]??"",i?.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily),u?.t===1)e=this.comp.createComp(u.data,void 0,this);else{let t=ax;u?.data?.shapes&&(t=this.buildShapeData(u.data,Number(s.finalSize))),e=new e8(t,this.globalData,this)}if(this.textSpans[t]){let{glyph:s}=this.textSpans[t]??{};s&&(s.layerElement&&this.textSpans[t]?.childSpan?.removeChild(s.layerElement),s.destroy()),this.textSpans[t].glyph=e}e._debug=!0,e.prepareFrame(0),e.renderFrame(),e.layerElement&&this.textSpans[t]?.childSpan?.appendChild(e.layerElement),u?.t===1&&this.textSpans[t]?.childSpan?.setAttribute("transform",`scale(${Number(s.finalSize)/100},${Number(s.finalSize)/100})`);continue}n&&(h&&n.setAttribute("transform",`translate(${o.props[12]},${o.props[13]})`),n.textContent=r[t]?.val??"",n.style.whiteSpace="preserve")}h&&n?.setAttribute("d","")}else{let i,r=this.textContainer;switch(s.j){case 1:i="end";break;case 2:i="middle";break;default:i="start"}r?.setAttribute("text-anchor",i),r?.setAttribute("letter-spacing",`${m}`);let a=this.buildTextContents(s.finalText);for(e=a.length,p=s.ps?s.ps[1]+Number(s.ascent):0,t=0;t<e;t++)(n=this.textSpans[t]?.span??tf("tspan")).textContent=a[t]??"",n.setAttribute("x","0"),n.setAttribute("y",`${p}`),n.style.display="inherit",r?.appendChild(n),this.textSpans[t]=this.textSpans[t]??{glyph:null,span:null},this.textSpans[t].span=n,p+=Number(s.finalLineHeight);r&&this.layerElement.appendChild(r)}let u=this.textSpans[t]?.span;if(u)for(;t<this.textSpans.length;)u.style.display="none",t++;this._sizeChanged=!0}buildShapeData(t,e){if(t.shapes.length>0){let s=t.shapes[0];if(s.it){let t=s.it[s.it.length-1];t.s&&(t.s.k[0]=e,t.s.k[1]=e)}}return t}buildTextContents(t){let e=0,s=[],i="";for(;e<t.length;)"\r"===t[e]||"\x03"===t[e]?(s.push(i),i=""):i+=t[e]??"",e++;return s.push(i),s}createContent(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);this.data.singleShape&&!this.globalData.fontManager?.chars&&(this.textContainer=tf("text"))}getValue(){let t;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);this.renderedFrame=this.comp?.renderedFrame??-1;for(let e=0;e<this.textSpans.length;e++)(t=this.textSpans[e]?.glyph)&&(t.prepareFrame(Number(this.comp?.renderedFrame)-this.data.st),t._mdf&&(this._mdf=!0))}renderInnerContent(){let t,e,s;if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(this.validateText(),this.data.singleShape&&!this._mdf)return;if(!this.textProperty)throw Error(`${this.constructor.name}: textProperty is not initialized`);if(this.textAnimator?.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator?.lettersChangedFlag)return;this._sizeChanged=!0;let i=this.textAnimator?.renderedLetters,r=this.textProperty.currentData.l,{length:a}=r;for(let n=0;n<a;n++)!r[n]?.n&&(t=i?.[n],e=this.textSpans[n]?.span,(s=this.textSpans[n]?.glyph)&&s.renderFrame(),t?._mdf.m&&e?.setAttribute("transform",t.m),t?._mdf.o&&e?.setAttribute("opacity",`${t.o??1}`),t?._mdf.sw&&e?.setAttribute("stroke-width",`${t.sw||0}`),t?._mdf.sc&&e?.setAttribute("stroke",t.sc),t?._mdf.fc&&e?.setAttribute("fill",t.fc))}sourceRectAtTime(){if(!this.data)throw Error(`${this.constructor.name}: data (LottieLayer) is not implemented`);if(!this.comp)throw Error(`${this.constructor.name}: comp (ElementInterface) is not implemented`);if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;let t=this.layerElement.getBBox();return this.bbox={height:t.height,left:t.x,top:t.y,width:t.width},this.bbox}return null}}e2(aw,eD,["createContainerElements","createRenderableComponents","destroyBaseElement","getBaseElement","getMatte","initRendererElement","renderElement","setMatte"]);class aS extends sx{appendElementInPos(t,e){let s=t.getBaseElement();if(!s)return;let i=0,r;for(;i<e;)!0!==this.elements[i]&&this.elements[i]?.getBaseElement()&&(r=this.elements[i]?.getBaseElement()),i++;r?this.layerElement?.insertBefore(s,r):this.layerElement?.appendChild(s)}buildItem(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData it not implemented`);let{elements:e,globalData:s,layers:i}=this;if(e[t]||i[t]?.ty===99)return;e[t]=!0;let r=this.createItem(i[t]);if(e[t]=r,em.plugin&&(i[t]?.ty===0&&s.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),i[t]?.tt){let s="tp"in i[t]?this.findIndexByInd(i[t].tp):t-1;if(-1===s)return;if(!e[s]||!0===e[s]){this.buildItem(s),this.addPendingElement(r);return}let a=e[s].getMatte(i[t].tt);r.setMatte(a)}}checkPendingElements(){for(;this.pendingElements.length>0;){let t=this.pendingElements.pop();if(t?.checkParenting(),t?.data?.tt){let e=0;for(;e<this.elements.length;){if(this.elements[e]!==t){e++;continue}let s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[s]?.getMatte(this.layers[e]?.tt)??"";t.setMatte(i);break}}}}configAnimation(t){try{if(!this.animationItem)throw Error(`${this.constructor.name}: Can't access animationItem`);if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);if(!this.renderConfig)throw Error(`${this.constructor.name}: Can't access renderConfig`);if(!this.svgElement)throw Error(`${this.constructor.name}: Can't access svgElement`);this.svgElement.setAttribute("xmlns",y),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.renderConfig.contentVisibility&&(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.classList.add(this.renderConfig.className),this.renderConfig.id&&(this.svgElement.id=this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",`${this.renderConfig.focusable}`),this.renderConfig.preserveAspectRatio&&this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper?.appendChild(this.svgElement);let{defs:e}=this.globalData;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;let s=tf("clipPath"),i=tf("rect");i.width.baseVal.value=t.w,i.height.baseVal.value=t.h,i.x.baseVal.value=0,i.y.baseVal.value=0;let r=k();s.id=r,s.appendChild(i),this.layerElement?.setAttribute("clip-path",`url(${ty()}#${r})`),e.appendChild(s),this.layers=t.layers,this.elements=tu(t.layers.length)}catch(t){P(this.constructor.name,t)}}createImage(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new eI(t,this.globalData,this)}createShape(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new e8(t,this.globalData,this)}createSolid(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new a_(t,this.globalData,this)}createText(t){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new aw(t,this.globalData,this)}destroy(){if(!this.animationItem)throw Error(`${this.constructor.name}: Can't access animationItem`);if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;for(let t=0;t<this.layers.length;t++)this.elements[t]?.destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null}findIndexByInd(t){for(let e=0;e<this.layers.length;e++)if(this.layers[e]?.ind===t)return e;return -1}hide(){if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.layerElement.style.display="none"}renderFrame(t){try{if(!this.globalData||this.renderedFrame===t||this.destroyed)return;let e=t;!1===e?e=this.renderedFrame:this.renderedFrame=Number(e),this.globalData.frameNum=e,this.globalData.frameId++,this.globalData.projectInterface.currentFrame=e||0,this.globalData._mdf=!1;let{length:s}=this.layers;this.completeLayers||this.checkLayers(e);for(let t=s-1;t>=0;t--)"boolean"!=typeof this.elements[t]&&(this.completeLayers||this.elements[t])&&this.elements[t]?.prepareFrame(Number(e)-(this.layers[t]?.st??0));if(this.globalData._mdf)for(let t=0;t<s;t++)"boolean"!=typeof this.elements[t]&&(this.completeLayers||this.elements[t])&&this.elements[t]?.renderFrame()}catch(t){P(this.constructor.name,t)}}show(){if(!this.layerElement)throw Error(`${this.constructor.name}: layerElement is not implemented`);this.layerElement.style.display="block"}updateContainerSize(t,e){}constructor(...t){super(...t),this.destroyed=!1}}class aE extends eD{constructor(t,e,s){super(),this.completeLayers=!1,this.currentFrame=0,this.pendingElements=[],this.supports3d=!0,this.layers=t.layers,this.elements=this.layers?tu(this.layers.length):[],this.initElement(t,e,s),this.tm=t.tm?tU.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}createComp(t,e,s){if(!this.globalData)throw Error(`${this.constructor.name}: Cannot access global data`);return new aE(t,this.globalData,s??this)}}e2(aE,aS,["addPendingElement","appendElementInPos","buildAllItems","buildElementParenting","buildItem","checkLayers","checkPendingElements","configAnimation","createAudio","createCamera","createFootage","createImage","createItem","createNull","createShape","createSolid","createText","findIndexByInd","getElementById","getElementByPath","includeLayers","initItems","searchExtraCompositions","setProjectInterface","setupGlobalData","updateContainerSize"]),e2(aE,eS,["createContent","destroy","destroyElements","getElements","hide","initElement","prepareFrame","renderFrame","renderInnerContent","setElements","show"]),!function({effects:t,expressions:e,renderers:s}){e?.installPlugin,s.forEach(({renderer:t,rendererType:e})=>{sD[e]=t}),e6(ts.TrimModifier,iq),e6(ts.PuckerAndBloatModifier,iz),e6(ts.RepeaterModifier,iB),e6(ts.RoundCornersModifier,iG),e6(ts.ZigZagModifier,iJ),e6(ts.OffsetPathModifier,iO),e?.registerExpressions(),t.forEach(({countsAsEffect:t,effect:e,id:s,isCanvas:i})=>{i?tv[s]={countsAsEffect:void 0,effect:e}:eA[s]={countsAsEffect:t,effect:e}}),v||iU||(iU=!0,"complete"===document.readyState?ip():addEventListener("DOMContentLoaded",()=>{ip()},{once:!0})),e?.installPlugin}({effects:[{countsAsEffect:!0,effect:class extends ay{constructor(t,e,s,i,r){super(),this.filterManager=e;let a=tf("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",`${ab} 1 0`),this.linearFilter=a,a.setAttribute("result",`${i}_tint_1`),t.appendChild(a),(a=tf("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;let n=this.createMergeNode(i,[r,`${i}_tint_1`,`${i}_tint_2`]);t.appendChild(n)}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0]?.p.v,s=this.filterManager.effectElements[1]?.p.v,i=this.filterManager.effectElements[2]?.p.v/100;this.linearFilter.setAttribute("values",`${ab} ${i} 0`),this.matrixFilter.setAttribute("values",`${s[0]-e[0]} 0 0 0 ${e[0]} ${s[1]-e[1]} 0 0 0 ${e[1]} ${s[2]-e[2]} 0 0 0 ${e[2]} 0 0 0 1 0`)}},id:20},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;let r=tf("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",i),t.appendChild(r),this.matrixFilter=r}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[2]?.p.v,s=this.filterManager.effectElements[6]?.p.v;this.matrixFilter.setAttribute("values",`0 0 0 0 ${e[0]} 0 0 0 0 ${e[1]} 0 0 0 0 ${e[2]} 0 0 0 ${s} 0`)}},id:21},{effect:class{constructor(t,e,s){this.initialized=!1,this.paths=[],this.filterManager=e,this.elem=s}initialize(){let t,e,s,i=[...this.elem.layerElement?.children??this.elem.layerElement?.childNodes??[]];this.filterManager.effectElements[1]?.p.v===1?(s=this.elem.maskManager?.masksProperties.length||0,e=0):s=(e=this.filterManager.effectElements[0]?.p.v-1)+1;let r=tf("g");for(r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset","1");e<s;e++)t=tf("path"),r.appendChild(t),this.paths.push({m:e,p:t});if(this.filterManager.effectElements[10]?.p.v===3){let t=tf("mask"),e=k();t.id=e,t.setAttribute("mask-type","alpha"),t.appendChild(r),this.elem.globalData?.defs.appendChild(t);let s=tf("g");for(s.setAttribute("mask",`url(${ty()}#${e})`);i[0];)s.appendChild(i[0]);this.elem.layerElement?.appendChild(s),this.masker=t,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10]?.p.v===1||this.filterManager.effectElements[10]?.p.v===2){if(2===this.filterManager.effectElements[10].p.v)for(i=[...this.elem.layerElement?.children??this.elem.layerElement?.childNodes??[]];i.length>0;)this.elem.layerElement?.removeChild(i[0]);this.elem.layerElement?.appendChild(r),this.elem.layerElement?.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r}renderFrame(t){let e,s;this.initialized||this.initialize();for(let i=0;i<this.paths.length;i++)if(this.paths[i]?.m!==-1&&(e=this.elem.maskManager?.viewData[this.paths[i]?.m??0],s=this.paths[i]?.p,e&&(t||this.filterManager._mdf||e.prop?._mdf)&&s.setAttribute("d",e.lastPath),t||this.filterManager.effectElements[9]?.p._mdf||this.filterManager.effectElements[4]?.p._mdf||this.filterManager.effectElements[7]?.p._mdf||this.filterManager.effectElements[8]?.p._mdf||e?.prop?._mdf)){let t;if(this.filterManager.effectElements[7]?.p.v!==0||this.filterManager.effectElements[8]?.p.v!==100){let e=.01*Math.min(this.filterManager.effectElements[7]?.p.v,this.filterManager.effectElements[8]?.p.v),i=.01*Math.max(this.filterManager.effectElements[7]?.p.v,this.filterManager.effectElements[8]?.p.v),r=s.getTotalLength();t=`0 0 0 ${r*e} `;let a=Math.floor(r*(i-e)/(1+this.filterManager.effectElements[4]?.p.v*2*this.filterManager.effectElements[9]?.p.v*.01));for(let e=0;e<a;e++)t+=`1 ${this.filterManager.effectElements[4]?.p.v*2*this.filterManager.effectElements[9]?.p.v*.01} `;t+=`0 ${10*r} 0 0`}else t=`1 ${this.filterManager.effectElements[4]?.p.v*2*this.filterManager.effectElements[9]?.p.v*.01}`;s.setAttribute("stroke-dasharray",t)}(t||this.filterManager.effectElements[4]?.p._mdf)&&this.pathMasker?.setAttribute("stroke-width",`${this.filterManager.effectElements[4]?.p.v*2}`),(t||this.filterManager.effectElements[6]?.p._mdf)&&this.pathMasker?.setAttribute("opacity",`${Number(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)&&this.pathMasker?.setAttribute("stroke",z(this.filterManager.effectElements[3]?.p.v))}},id:22},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;let r=tf("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.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(r);let a=tf("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;let n=tf("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;let o=tf("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;let h=tf("feFuncB");h.setAttribute("type","table"),a.appendChild(h),this.feFuncB=h,t.appendChild(a)}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0]?.p.v,s=this.filterManager.effectElements[1]?.p.v,i=this.filterManager.effectElements[2]?.p.v,r=`${i[0]} ${s[0]} ${e[0]}`,a=`${i[1]} ${s[1]} ${e[1]}`,n=`${i[2]} ${s[2]} ${e[2]}`;this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},id:23},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;let{effectElements:r}=this.filterManager,a=tf("feComponentTransfer");(r[10]?.p.k||r[10]?.p.v!==0||r[11]?.p.k||r[11]?.p.v!==1||r[12]?.p.k||r[12]?.p.v!==1||r[13]?.p.k||r[13]?.p.v!==0||r[14]?.p.k||r[14]?.p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(r[17]?.p.k||r[17]?.p.v!==0||r[18]?.p.k||r[18]?.p.v!==1||r[19]?.p.k||r[19]?.p.v!==1||r[20]?.p.k||r[20]?.p.v!==0||r[21]?.p.k||r[21]?.p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(r[24]?.p.k||r[24]?.p.v!==0||r[25]?.p.k||r[25]?.p.v!==1||r[26]?.p.k||r[26]?.p.v!==1||r[27]?.p.k||r[27]?.p.v!==0||r[28]?.p.k||r[28]?.p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(r[31]?.p.k||r[31]?.p.v!==0||r[32]?.p.k||r[32]?.p.v!==1||r[33]?.p.k||r[33]?.p.v!==1||r[34]?.p.k||r[34]?.p.v!==0||r[35]?.p.k||r[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)),(r[3]?.p.k||r[3]?.p.v!==0||r[4]?.p.k||r[4]?.p.v!==1||r[5]?.p.k||r[5]?.p.v!==1||r[6]?.p.k||r[6]?.p.v!==0||r[7]?.p.k||r[7]?.p.v!==1)&&((a=tf("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))}createFeFunc(t,e){let s=tf(t);return s.setAttribute("type","table"),e.appendChild(s),s}getTableValue(t,e,s,i,r){let a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=tu(256),p,c=0,m=r-i,u=e-t;for(;n<=256;)p=(a=n/256)<=o?u<0?r:i:a>=h?u<0?i:r:i+m*Math.pow((a-t)/u,1/s),l[c]=p,c++,n+=256/255;return l.join(" ")}renderFrame(t){let e;if(!t&&!this.filterManager._mdf)return;let{effectElements:s}=this.filterManager;this.feFuncRComposed&&(t||s[3]?.p._mdf||s[4]?.p._mdf||s[5]?.p._mdf||s[6]?.p._mdf||s[7]?.p._mdf)&&(e=this.getTableValue(s[3]?.p.v,s[4]?.p.v,s[5]?.p.v,s[6]?.p.v,s[7]?.p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed?.setAttribute("tableValues",e),this.feFuncBComposed?.setAttribute("tableValues",e)),this.feFuncR&&(t||s[10]?.p._mdf||s[11]?.p._mdf||s[12]?.p._mdf||s[13]?.p._mdf||s[14]?.p._mdf)&&(e=this.getTableValue(s[10]?.p.v,s[11]?.p.v,s[12]?.p.v,s[13]?.p.v,s[14]?.p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||s[17]?.p._mdf||s[18]?.p._mdf||s[19]?.p._mdf||s[20]?.p._mdf||s[21]?.p._mdf)&&(e=this.getTableValue(s[17]?.p.v,s[18]?.p.v,s[19]?.p.v,s[20]?.p.v,s[21]?.p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||s[24]?.p._mdf||s[25]?.p._mdf||s[26]?.p._mdf||s[27]?.p._mdf||s[28]?.p._mdf)&&(e=this.getTableValue(s[24]?.p.v,s[25]?.p.v,s[26]?.p.v,s[27]?.p.v,s[28]?.p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||s[31]?.p._mdf||s[32]?.p._mdf||s[33]?.p._mdf||s[34]?.p._mdf||s[35]?.p._mdf)&&(e=this.getTableValue(s[31]?.p.v,s[32]?.p.v,s[33]?.p.v,s[34]?.p.v,s[35]?.p.v),this.feFuncA.setAttribute("tableValues",e))}},id:24},{countsAsEffect:!0,effect:class extends ay{constructor(t,e,s,i,r){super();let a=(e.container?.globalData?.renderConfig).filterSize,n=e.data?.fs??a??{height:"100%",width:"100%",x:"0%",y:"0%"};t.setAttribute("x",n.x),t.setAttribute("y",n.y),t.setAttribute("width",n.width),t.setAttribute("height",n.height),this.filterManager=e;let o=tf("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",`${i}_drop_shadow_1`),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);let h=tf("feOffset");h.dx.baseVal=25,h.dy.baseVal=0,h.setAttribute("in",`${i}_drop_shadow_1`),h.setAttribute("result",`${i}_drop_shadow_2`),this.feOffset=h,t.appendChild(h);let l=tf("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",`${i}_drop_shadow_3`),this.feFlood=l,t.appendChild(l);let p=tf("feComposite");p.setAttribute("in",`${i}_drop_shadow_3`),p.in2.baseVal=`${i}_drop_shadow_2`,p.setAttribute("operator","in"),p.result.baseVal=`${i}_drop_shadow_4`,t.appendChild(p);let c=this.createMergeNode(i,[`${i}_drop_shadow_4`,r]);t.appendChild(c)}renderFrame(t){if(t||this.filterManager._mdf){if(t||this.filterManager.effectElements[4]?.p._mdf){let t=this.filterManager.effectElements[4]?.p.v/4;this.feGaussianBlur.setStdDeviation(t,t)}if(t||this.filterManager.effectElements[0]?.p._mdf){let t=this.filterManager.effectElements[0]?.p.v;this.feFlood.setAttribute("flood-color",((t,e,s)=>{let i,r=[];for(let t=0;t<256;t++)i=t.toString(16),r[t]=1===i.length?`0${i}`:i;let a=t,n=e,o=s;return t<0&&(a=0),e<0&&(n=0),s<0&&(o=0),`#${r[a]}${r[n]}${r[o]}`})(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[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){let t=this.filterManager.effectElements[3]?.p.v,e=(this.filterManager.effectElements[2]?.p.v-90)*f,s=t*Math.cos(e),i=t*Math.sin(e);this.feOffset.dx.baseVal=s,this.feOffset.dy.baseVal=i}}}},id:25},{effect:class{constructor(t,e,s){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=s,s.matteElement=tf("g"),s.layerElement&&s.matteElement.appendChild(s.layerElement),s.transformedElement&&s.matteElement.appendChild(s.transformedElement),s.baseElement=s.matteElement}findSymbol(t){let e=0;for(;e<av.length;){if(av[e]===t)return av[e];e++}return null}initialize(){let t=this.filterManager.effectElements[0]?.p.v,e=this.elem.comp?.elements??[],s=0;for(;s<e.length;){let i=e[s];i&&i.data.ind===t&&this.setElementAsMask(this.elem,i),s++}this.initialized=!0}renderFrame(t){this.initialized||this.initialize()}replaceInParent(t,e){let s,i=t.layerElement?.parentNode;if(!i)return;let{children:r}=i,a=0;for(;a<r.length&&r[a]!==t.layerElement;)a++;a<=r.length-2&&(s=r[a+1]);let n=tf("use");n.setAttribute("href",`#${e}`),s?i.insertBefore(n,s):i.appendChild(n)}setElementAsMask(t,e){if(!this.findSymbol(e)){let s=k(),i=tf("mask");e.layerId&&(i.id=e.layerId),i.setAttribute("mask-type","alpha"),av.push(e);let{defs:r}=t.globalData??{defs:null};r?.appendChild(i);let a=tf("symbol");a.id=s,this.replaceInParent(e,s),e.layerElement&&a.appendChild(e.layerElement),r?.appendChild(a);let n=tf("use");n.href.baseVal=`#${s}`,i.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId||"")}},id:28},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;let r=tf("feGaussianBlur");r.setAttribute("result",i),t.appendChild(r),this.feGaussianBlur=r}renderFrame(t){if(!t&&!this.filterManager._mdf)return;let e=this.filterManager.effectElements[0]?.p.v*.3,s=Number(this.filterManager.effectElements[1]?.p.v);this.feGaussianBlur.setAttribute("stdDeviation",`${3===s?0:e} ${2===s?0:e}`);let i=1===Number(this.filterManager.effectElements[2]?.p.v)?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},id:29},{effect:class extends iY{constructor(t,e){super(),this.init(e)}},id:35},{effect:class extends iY{constructor(t){super(),this.init(t)}},id:35,isCanvas:!0}],expressions:{installPlugin:(t,e)=>{"expressions"===t&&eu(e)},registerExpressions:()=>{eu(rT),em.interface=r2,function(){let{getTransformProperty:t}=ey;ey.getTransformProperty=function(e,s,i){let r=t(e,s,i);return r.dynamicProperties.length>0?r.getValueAtTime=rk.bind(r):r.getValueAtTime=rC.bind(r),r.setGroupProperty=r_.setGroupProperty,r};let e=tU.getProp;tU.getProp=function(t,s,i,r,a){let n=e(t,s,i,r,a);n.kf?n.getValueAtTime=r_.getValueAtTime.bind(n):n.getValueAtTime=r_.getStaticValueAtTime.bind(n),n.setGroupProperty=r_.setGroupProperty,n.loopOut=rw,n.loopIn=rS,n.smooth=rE,n.getVelocityAtTime=r_.getVelocityAtTime.bind(n),n.getSpeedAtTime=r_.getSpeedAtTime.bind(n),n.numKeys=s?.a===1?s.k.length:0,n.propertyIndex=s?.ix;let o=0;return 0!==i&&(o=tm(te.Float32,s?.a===1?s.k[0]?.s.length:(s?.k).length)),n._cachingAtTime={lastFrame:-999999,lastIndex:0,value:o},r_.searchExpressions(t,s,n),n.k&&a?.addDynamicProperty(n),n};let s=t7.getConstructorFunction(),i=t7.getKeyframeConstructorFunction();e3([rx],s),e3([rx],i),i.prototype.getValueAtTime=rP,i.prototype.initiateExpression=rb.initiateExpression;let r=t7.getShapeProp;t7.getShapeProp=function(t,e,s,i,a){let n=r(t,e,s,i,a);return n&&(n.propertyIndex=e.ix,n.lock=!1,3===s?r_.searchExpressions(t,e.pt,n):4===s&&r_.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n)),n}}(),sf.prototype.getExpressionValue=function(t,e){let s=this.calculateExpression(e);if(t.t!==s){let e={};return this.copyData(e,t),e.t=s.toString(),e.__complete=!1,e}return t},sf.prototype.searchProperty=function(){let t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=!!(t||e),this.kf},sf.prototype.searchExpressions=rD}},renderers:[{renderer:class extends aS{constructor(t,e={}){super(),this.rendererType=tn.SVG,this.animationItem=t,this.svgElement=tf("svg");let s="";if(e.title){let t=tf("title"),i=k();t.id=i,t.textContent=e.title,this.svgElement.appendChild(t),s+=i}if(e.description){let t=tf("desc"),i=k();t.id=i,t.textContent=e.description,this.svgElement.appendChild(t),s+=` ${i}`}s&&this.svgElement.setAttribute("aria-labelledby",s);let i=tf("defs");this.svgElement.appendChild(i);let r=tf("g");this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={className:e.className||"",contentVisibility:e.contentVisibility||"visible",filterSize:{height:e.filterSize?.height||"100%",width:e.filterSize?.width||"100%",x:e.filterSize?.x||"0%",y:e.filterSize?.y||"0%"},focusable:e.focusable,height:e.height,hideOnTransparent:!1!==e.hideOnTransparent,id:e.id||"",imagePreserveAspectRatio:e.imagePreserveAspectRatio||"xMidYMid slice",preserveAspectRatio:e.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e.progressiveLoad||!1,runExpressions:void 0===e.runExpressions||e.runExpressions,viewBoxOnly:e.viewBoxOnly||!1,viewBoxSize:e.viewBoxSize||!1,width:e.width},this.globalData={_mdf:!1,defs:i,frameNum:-1,frameRate:60,renderConfig:this.renderConfig}}createComp(t,e,s){if(!this.globalData)throw Error(`${this.constructor.name}: Can't access globalData`);return new aE(t,this.globalData,s??this)}},rendererType:tn.SVG},{renderer:class extends au{constructor(t,e){super(),this.rendererType=tn.Canvas,this.transformMat=new td,this.animationItem=t,this._dprLocked="number"==typeof e?.dpr&&e.dpr>0;let s=this._dprLocked||!!t.wrapper;this.renderConfig={className:e?.className||"",clearCanvas:e?.clearCanvas??!0,contentVisibility:e?.contentVisibility||"visible",context:e?.context??null,dpr:s?A(e?.dpr):1,id:e?.id||"",imagePreserveAspectRatio:e?.imagePreserveAspectRatio||ta.Cover,preserveAspectRatio:e?.preserveAspectRatio||ta.Contain,progressiveLoad:!!e?.progressiveLoad,runExpressions:e?.runExpressions??!0},s||(this._dprLocked=!0),this.globalData={_mdf:!1,currentGlobalAlpha:-1,frameNum:-1,renderConfig:this.renderConfig},this.contextData=new ag,this.elements=[],this.pendingElements=[],this.completeLayers=!1,this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}createComp(t){if(!this.globalData)throw Error(`${this.constructor.name}: globalData is not implemented`);return new ad(t,this.globalData,this)}},rendererType:tn.Canvas}]});var ak={},aC=function(t,e,s,i,r){var a=new Worker(ak[e]||(ak[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(t){var e=t.data,s=e.$e$;if(s){var i=Error(s[0]);i.code=s[1],i.stack=s[2],r(i,null)}else r(null,e)},a.postMessage(s,i),a},aP=Uint8Array,aM=Uint16Array,aA=Int32Array,aT=new aP([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),aD=new aP([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),aI=new aP([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),aF=function(t,e){for(var s=new aM(31),i=0;i<31;++i)s[i]=e+=1<<t[i-1];for(var r=new aA(s[30]),i=1;i<30;++i)for(var a=s[i];a<s[i+1];++a)r[a]=a-s[i]<<5|i;return{b:s,r:r}},aL=aF(aT,2),a$=aL.b,aN=aL.r;a$[28]=258,aN[258]=28;for(var aV=aF(aD,0),aR=aV.b,aO=aV.r,az=new aM(32768),aB=0;aB<32768;++aB){var aG=(43690&aB)>>1|(21845&aB)<<1;aG=(61680&(aG=(52428&aG)>>2|(13107&aG)<<2))>>4|(3855&aG)<<4,az[aB]=((65280&aG)>>8|(255&aG)<<8)>>1}for(var aq=function(t,e,s){for(var i,r=t.length,a=0,n=new aM(e);a<r;++a)t[a]&&++n[t[a]-1];var o=new aM(e);for(a=1;a<e;++a)o[a]=o[a-1]+n[a-1]<<1;if(s){i=new aM(1<<e);var h=15-e;for(a=0;a<r;++a)if(t[a])for(var l=a<<4|t[a],p=e-t[a],c=o[t[a]-1]++<<p,m=c|(1<<p)-1;c<=m;++c)i[az[c]>>h]=l}else for(i=new aM(r),a=0;a<r;++a)t[a]&&(i[a]=az[o[t[a]-1]++]>>15-t[a]);return i},aj=new aP(288),aB=0;aB<144;++aB)aj[aB]=8;for(var aB=144;aB<256;++aB)aj[aB]=9;for(var aB=256;aB<280;++aB)aj[aB]=7;for(var aB=280;aB<288;++aB)aj[aB]=8;for(var aH=new aP(32),aB=0;aB<32;++aB)aH[aB]=5;var aW=aq(aj,9,0),aJ=aq(aj,9,1),aU=aq(aH,5,0),aY=aq(aH,5,1),aX=function(t){for(var e=t[0],s=1;s<t.length;++s)t[s]>e&&(e=t[s]);return e},aK=function(t,e,s){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&s},aZ=function(t,e){var s=e/8|0;return(t[s]|t[s+1]<<8|t[s+2]<<16)>>(7&e)},aQ=function(t){return(t+7)/8|0},a0=function(t,e,s){return(null==e||e<0)&&(e=0),(null==s||s>t.length)&&(s=t.length),new aP(t.subarray(e,s))},a1=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],a2=function(t,e,s){var i=Error(e||a1[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,a2),!s)throw i;return i},a3=function(t,e,s,i){var r=t.length,a=i?i.length:0;if(!r||e.f&&!e.l)return s||new aP(0);var n=!s,o=n||2!=e.i,h=e.i;n&&(s=new aP(3*r));var l=function(t){var e=s.length;if(t>e){var i=new aP(Math.max(2*e,t));i.set(s),s=i}},p=e.f||0,c=e.p||0,m=e.b||0,u=e.l,d=e.d,f=e.m,g=e.n,y=8*r;do{if(!u){p=aK(t,c,1);var v=aK(t,c+1,3);if(c+=3,v)if(1==v)u=aJ,d=aY,f=9,g=5;else if(2==v){var b=aK(t,c,31)+257,_=aK(t,c+10,15)+4,x=b+aK(t,c+5,31)+1;c+=14;for(var w=new aP(x),S=new aP(19),E=0;E<_;++E)S[aI[E]]=aK(t,c+3*E,7);c+=3*_;for(var k=aX(S),C=(1<<k)-1,P=aq(S,k,1),E=0;E<x;){var M=P[aK(t,c,C)];c+=15&M;var A=M>>4;if(A<16)w[E++]=A;else{var T=0,D=0;for(16==A?(D=3+aK(t,c,3),c+=2,T=w[E-1]):17==A?(D=3+aK(t,c,7),c+=3):18==A&&(D=11+aK(t,c,127),c+=7);D--;)w[E++]=T}}var I=w.subarray(0,b),F=w.subarray(b);f=aX(I),g=aX(F),u=aq(I,f,1),d=aq(F,g,1)}else a2(1);else{var A=aQ(c)+4,L=t[A-4]|t[A-3]<<8,$=A+L;if($>r){h&&a2(0);break}o&&l(m+L),s.set(t.subarray(A,$),m),e.b=m+=L,e.p=c=8*$,e.f=p;continue}if(c>y){h&&a2(0);break}}o&&l(m+131072);for(var N=(1<<f)-1,V=(1<<g)-1,R=c;;R=c){var T=u[aZ(t,c)&N],O=T>>4;if((c+=15&T)>y){h&&a2(0);break}if(T||a2(2),O<256)s[m++]=O;else if(256==O){R=c,u=null;break}else{var z=O-254;if(O>264){var E=O-257,B=aT[E];z=aK(t,c,(1<<B)-1)+a$[E],c+=B}var G=d[aZ(t,c)&V],q=G>>4;G||a2(3),c+=15&G;var F=aR[q];if(q>3){var B=aD[q];F+=aZ(t,c)&(1<<B)-1,c+=B}if(c>y){h&&a2(0);break}o&&l(m+131072);var j=m+z;if(m<F){var H=a-F,W=Math.min(F,j);for(H+m<0&&a2(3);m<W;++m)s[m]=i[H+m]}for(;m<j;++m)s[m]=s[m-F]}}e.l=u,e.p=R,e.b=m,e.f=p,u&&(p=1,e.m=f,e.d=d,e.n=g)}while(!p);return m!=s.length&&n?a0(s,0,m):s.subarray(0,m)},a5=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8},a4=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8,t[i+2]|=s>>16},a6=function(t,e){for(var s=[],i=0;i<t.length;++i)t[i]&&s.push({s:i,f:t[i]});var r=s.length,a=s.slice();if(!r)return{t:ni,l:0};if(1==r){var n=new aP(s[0].s+1);return n[s[0].s]=1,{t:n,l:1}}s.sort(function(t,e){return t.f-e.f}),s.push({s:-1,f:25001});var o=s[0],h=s[1],l=0,p=1,c=2;for(s[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=s[s[l].f<s[c].f?l++:c++],h=s[l!=p&&s[l].f<s[c].f?l++:c++],s[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var m=a[0].s,i=1;i<r;++i)a[i].s>m&&(m=a[i].s);var u=new aM(m+1),d=a8(s[p-1],u,0);if(d>e){var i=0,f=0,g=d-e,y=1<<g;for(a.sort(function(t,e){return u[e.s]-u[t.s]||t.f-e.f});i<r;++i){var v=a[i].s;if(u[v]>e)f+=y-(1<<d-u[v]),u[v]=e;else break}for(f>>=g;f>0;){var b=a[i].s;u[b]<e?f-=1<<e-u[b]++-1:++i}for(;i>=0&&f;--i){var _=a[i].s;u[_]==e&&(--u[_],++f)}d=e}return{t:new aP(u),l:d}},a8=function(t,e,s){return -1==t.s?Math.max(a8(t.l,e,s+1),a8(t.r,e,s+1)):e[t.s]=s},a9=function(t){for(var e=t.length;e&&!t[--e];);for(var s=new aM(++e),i=0,r=t[0],a=1,n=function(t){s[i++]=t},o=1;o<=e;++o)if(t[o]==r&&o!=e)++a;else{if(!r&&a>2){for(;a>138;a-=138)n(32754);a>2&&(n(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(n(r),--a;a>6;a-=6)n(8304);a>2&&(n(a-3<<5|8208),a=0)}for(;a--;)n(r);a=1,r=t[o]}return{c:s.subarray(0,i),n:e}},a7=function(t,e){for(var s=0,i=0;i<e.length;++i)s+=t[i]*e[i];return s},nt=function(t,e,s){var i=s.length,r=aQ(e+2);t[r]=255&i,t[r+1]=i>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var a=0;a<i;++a)t[r+a+4]=s[a];return(r+4+i)*8},ne=function(t,e,s,i,r,a,n,o,h,l,p){a5(e,p++,s),++r[256];for(var c,m,u,d,f=a6(r,15),g=f.t,y=f.l,v=a6(a,15),b=v.t,_=v.l,x=a9(g),w=x.c,S=x.n,E=a9(b),k=E.c,C=E.n,P=new aM(19),M=0;M<w.length;++M)++P[31&w[M]];for(var M=0;M<k.length;++M)++P[31&k[M]];for(var A=a6(P,7),T=A.t,D=A.l,I=19;I>4&&!T[aI[I-1]];--I);var F=l+5<<3,L=a7(r,aj)+a7(a,aH)+n,$=a7(r,g)+a7(a,b)+n+14+3*I+a7(P,T)+2*P[16]+3*P[17]+7*P[18];if(h>=0&&F<=L&&F<=$)return nt(e,p,t.subarray(h,h+l));if(a5(e,p,1+($<L)),p+=2,$<L){c=aq(g,y,0),m=g,u=aq(b,_,0),d=b;var N=aq(T,D,0);a5(e,p,S-257),a5(e,p+5,C-1),a5(e,p+10,I-4),p+=14;for(var M=0;M<I;++M)a5(e,p+3*M,T[aI[M]]);p+=3*I;for(var V=[w,k],R=0;R<2;++R)for(var O=V[R],M=0;M<O.length;++M){var z=31&O[M];a5(e,p,N[z]),p+=T[z],z>15&&(a5(e,p,O[M]>>5&127),p+=O[M]>>12)}}else c=aW,m=aj,u=aU,d=aH;for(var M=0;M<o;++M){var B=i[M];if(B>255){var z=B>>18&31;a4(e,p,c[z+257]),p+=m[z+257],z>7&&(a5(e,p,B>>23&31),p+=aT[z]);var G=31&B;a4(e,p,u[G]),p+=d[G],G>3&&(a4(e,p,B>>5&8191),p+=aD[G])}else a4(e,p,c[B]),p+=m[B]}return a4(e,p,c[256]),p+m[256]},ns=new aA([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ni=new aP(0),nr=function(t,e,s,i,r,a){var n=a.z||t.length,o=new aP(i+n+5*(1+Math.ceil(n/7e3))+r),h=o.subarray(i,o.length-r),l=a.l,p=7&(a.r||0);if(e){p&&(h[0]=a.r>>3);for(var c=ns[e-1],m=c>>13,u=8191&c,d=(1<<s)-1,f=a.p||new aM(32768),g=a.h||new aM(d+1),y=Math.ceil(s/3),v=2*y,b=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<v)&d},_=new aA(25e3),x=new aM(288),w=new aM(32),S=0,E=0,k=a.i||0,C=0,P=a.w||0,M=0;k+2<n;++k){var A=b(k),T=32767&k,D=g[A];if(f[T]=D,g[A]=T,P<=k){var I=n-k;if((S>7e3||C>24576)&&(I>423||!l)){p=ne(t,h,0,_,x,w,E,C,M,k-M,p),C=S=E=0,M=k;for(var F=0;F<286;++F)x[F]=0;for(var F=0;F<30;++F)w[F]=0}var L=2,$=0,N=u,V=T-D&32767;if(I>2&&A==b(k-V))for(var R=Math.min(m,I)-1,O=Math.min(32767,k),z=Math.min(258,I);V<=O&&--N&&T!=D;){if(t[k+L]==t[k+L-V]){for(var B=0;B<z&&t[k+B]==t[k+B-V];++B);if(B>L){if(L=B,$=V,B>R)break;for(var G=Math.min(V,B-2),q=0,F=0;F<G;++F){var j=k-V+F&32767,H=f[j],W=j-H&32767;W>q&&(q=W,D=j)}}}D=f[T=D],V+=T-D&32767}if($){_[C++]=0x10000000|aN[L]<<18|aO[$];var J=31&aN[L],U=31&aO[$];E+=aT[J]+aD[U],++x[257+J],++w[U],P=k+L,++S}else _[C++]=t[k],++x[t[k]]}}for(k=Math.max(k,P);k<n;++k)_[C++]=t[k],++x[t[k]];p=ne(t,h,l,_,x,w,E,C,M,k-M,p),l||(a.r=7&p|h[p/8|0]<<3,p-=7,a.h=g,a.p=f,a.i=k,a.w=P)}else{for(var k=a.w||0;k<n+l;k+=65535){var Y=k+65535;Y>=n&&(h[p/8|0]=l,Y=n),p=nt(h,p+1,t.subarray(k,Y))}a.i=n}return a0(o,0,i+aQ(p)+r)},na=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var s=e,i=9;--i;)s=(1&s&&-0x12477ce0)^s>>>1;t[e]=s}return t}(),nn=function(){var t=-1;return{p:function(e){for(var s=t,i=0;i<e.length;++i)s=na[255&s^e[i]]^s>>>8;t=s},d:function(){return~t}}},no=function(t,e,s,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),n=new aP(a.length+t.length);n.set(a),n.set(t,a.length),t=n,r.w=a.length}return nr(t,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,s,i,r)},nh=function(t,e){var s={};for(var i in t)s[i]=t[i];for(var i in e)s[i]=e[i];return s},nl=function(t,e,s){for(var i=t(),r=t.toString(),a=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),n=0;n<i.length;++n){var o=i[n],h=a[n];if("function"==typeof o){e+=";"+h+"=";var l=o.toString();if(o.prototype)if(-1!=l.indexOf("[native code]")){var p=l.indexOf(" ",8)+1;e+=l.slice(p,l.indexOf("(",p))}else for(var c in e+=l,o.prototype)e+=";"+h+".prototype."+c+"="+o.prototype[c].toString();else e+=l}else s[h]=o}return e},np=[],nc=function(t){var e=[];for(var s in t)t[s].buffer&&e.push((t[s]=new t[s].constructor(t[s])).buffer);return e},nm=function(t,e,s,i){if(!np[s]){for(var r="",a={},n=t.length-1,o=0;o<n;++o)r=nl(t[o],r,a);np[s]={c:nl(t[n],r,a),e:a}}var h=nh({},np[s].e);return aC(np[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,h,nc(h),i)},nu=function(){return[aP,aM,aA,aT,aD,aI,a$,aR,aJ,aY,az,a1,aq,aX,aK,aZ,aQ,a0,a2,a3,nS,nf,ng]},nd=function(){return[aP,aM,aA,aT,aD,aI,aN,aO,aW,aj,aU,aH,az,ns,ni,aq,a5,a4,a6,a8,a9,a7,nt,ne,aQ,a0,nr,no,nw,nf]},nf=function(t){return postMessage(t,[t.buffer])},ng=function(t){return t&&{out:t.size&&new aP(t.size),dictionary:t.dictionary}},ny=function(t,e,s,i,r,a){var n=nm(s,i,r,function(t,e){n.terminate(),a(t,e)});return n.postMessage([t,e],e.consume?[t.buffer]:[]),function(){n.terminate()}},nv=function(t,e){return t[e]|t[e+1]<<8},nb=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},n_=function(t,e){return nb(t,e)+0x100000000*nb(t,e+4)},nx=function(t,e,s){for(;s;++e)t[e]=s,s>>>=8};function nw(t,e){return no(t,e||{},0,0)}function nS(t,e){return a3(t,{i:2},e&&e.out,e&&e.dictionary)}var nE=function(t,e,s,i){for(var r in t){var a=t[r],n=e+r,o=i;Array.isArray(a)&&(o=nh(i,a[1]),a=a[0]),ArrayBuffer.isView(a)?s[n]=[a,o]:(s[n+="/"]=[new aP(0),o],nE(a,n,s,i))}},nk="u">typeof TextEncoder&&new TextEncoder,nC="u">typeof TextDecoder&&new TextDecoder;try{nC.decode(ni,{stream:!0})}catch(t){}var nP=function(t){for(var e="",s=0;;){var i=t[s++],r=(i>127)+(i>223)+(i>239);if(s+r>t.length)return{s:e,r:a0(t,s-1)};r?3==r?e+=String.fromCharCode(55296|(i=((15&i)<<18|(63&t[s++])<<12|(63&t[s++])<<6|63&t[s++])-65536)>>10,56320|1023&i):1&r?e+=String.fromCharCode((31&i)<<6|63&t[s++]):e+=String.fromCharCode((15&i)<<12|(63&t[s++])<<6|63&t[s++]):e+=String.fromCharCode(i)}};function nM(t,e){if(e){for(var s=new aP(t.length),i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}if(nk)return nk.encode(t);for(var r=t.length,a=new aP(t.length+(t.length>>1)),n=0,o=function(t){a[n++]=t},i=0;i<r;++i){if(n+5>a.length){var h=new aP(n+8+(r-i<<1));h.set(a),a=h}var l=t.charCodeAt(i);l<128||e?o(l):(l<2048?o(192|l>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++i))>>18),o(128|l>>12&63)):o(224|l>>12),o(128|l>>6&63)),o(128|63&l))}return a0(a,0,n)}function nA(t,e){if(e){for(var s="",i=0;i<t.length;i+=16384)s+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return s}if(nC)return nC.decode(t);var r=nP(t),a=r.s,s=r.r;return s.length&&a2(8),a}var nT=function(t,e,s){var i=nv(t,e+28),r=nv(t,e+30),a=nA(t.subarray(e+46,e+46+i),!(2048&nv(t,e+8))),n=e+46+i,o=nD(t,n,r,s,nb(t,e+20),nb(t,e+24),nb(t,e+42)),h=o[0],l=o[1],p=o[2];return[nv(t,e+10),h,l,a,n+r+nv(t,e+32),p]},nD=function(t,e,s,i,r,a,n){var o=0xffffffff==r,h=0xffffffff==a,l=0xffffffff==n,p=e+s;if(i&&o+h+l){for(;e+4<p;e+=4+nv(t,e+2))if(1==nv(t,e))return[o?n_(t,e+4+8*h):r,h?n_(t,e+4):a,l?n_(t,e+4+8*(h+o)):n,1];i<2&&a2(13)}return[r,a,n,0]},nI=function(t){var e=0;if(t)for(var s in t){var i=t[s].length;i>65535&&a2(9),e+=i+4}return e},nF=function(t,e,s,i,r,a,n,o){var h=i.length,l=s.extra,p=o&&o.length,c=nI(l);nx(t,e,null!=n?0x2014b50:0x4034b50),e+=4,null!=n&&(t[e++]=20,t[e++]=s.os),t[e]=20,e+=2,t[e++]=s.flag<<1|(a<0&&8),t[e++]=r&&8,t[e++]=255&s.compression,t[e++]=s.compression>>8;var m=new Date(null==s.mtime?Date.now():s.mtime),u=m.getFullYear()-1980;if((u<0||u>119)&&a2(10),nx(t,e,u<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),e+=4,-1!=a&&(nx(t,e,s.crc),nx(t,e+4,a<0?-a-2:a),nx(t,e+8,s.size)),nx(t,e+12,h),nx(t,e+14,c),e+=16,null!=n&&(nx(t,e,p),nx(t,e+6,s.attrs),nx(t,e+10,n),e+=14),t.set(i,e),e+=h,c)for(var d in l){var f=l[d],g=f.length;nx(t,e,+d),nx(t,e+2,g),t.set(f,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},nL=function(t,e,s,i,r){nx(t,e,0x6054b50),nx(t,e+8,s),nx(t,e+10,s),nx(t,e+12,i),nx(t,e+16,r)},n$="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};let nN=async t=>{let e=await fetch(t),s=await e.blob();return new Promise((t,e)=>{try{let i=new FileReader;i.onload=()=>{"string"==typeof i.result?t(i.result):e(Error("Could not create bas64"))},i.readAsDataURL(s)}catch(t){t instanceof Error&&e(t)}})},nV=t=>nM(v?Buffer.from(O(t),"base64").toString("binary"):atob(O(t)),!0),nR=async(t,e,s)=>{let{length:i}=t.assets;for(let r=0;r<i;r++){let i=t.assets[r];if(!i.p||!V(i)&&!N(i))continue;let{p:a,u:n}=i;if(!a)continue;let o=k(),h=a.startsWith("data:"),l=h?D(a):T(a),p=a;if(!h){let t=a;n&&(t=`${B(n)}${a}`),p=await nN(t)}let c=t.assets[r];c.e=1,c.p=`${o}.${l}`,c.u="",e[`${N(i)?"audio":"i"}/${o}.${l}`]=[nV(p),{level:s}]}},nO=t=>{let{length:e}=t.layers;for(let s=0;s<e;s++){let{ks:e}=t.layers[s]??{},i=Object.keys(e),{length:r}=i;for(let t=0;t<r;t++){let s=e[i[t]],r=s?.x;s&&r&&(s.x=btoa(r),s.e=1)}}};async function nz({animations:t=[],filename:e="",manifest:s,shouldDownload:i=!0}){try{let r;if(0===t.length||!s)throw Error(`Missing or malformed required parameter(s):
4
+ ${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let{dotLottie:a,name:n}=(r=F("lottie",e)||`${k()}.lottie`,{dotLottie:{"manifest.json":[nM(JSON.stringify(s),!0),{level:0}]},name:r}),{length:o}=t;for(let e=0;e<o;e++)await nR(t[e],a,9),nO(t[e]),a[`a/${s.animations[e]?.id}.json`]=[nM(JSON.stringify(t[e]),!0),{level:9}];let h=await (async t=>await new Promise((e,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&a2(7);var i={};nE(t,"",i,e);var r=Object.keys(i),a=r.length,n=0,o=0,h=a,l=Array(a),p=[],c=function(){for(var t=0;t<p.length;++t)p[t]()},m=function(t,e){n$(function(){s(t,e)})};n$(function(){m=s});var u=function(){var t=new aP(o+22),e=n,s=o-n;o=0;for(var i=0;i<h;++i){var r=l[i];try{var a=r.c.length;nF(t,o,r,r.f,r.u,a);var p=30+r.f.length+nI(r.extra),c=o+p;t.set(r.c,c),nF(t,n,r,r.f,r.u,a,o,r.m),n+=16+p+(r.m?r.m.length:0),o=c+a}catch(t){return m(t,null)}}nL(t,n,l.length,s,e),m(null,t)};a||u();for(var d=function(t){var e,s,h=r[t],d=i[h],f=d[0],g=d[1],y=nn(),v=f.length;y.p(f);var b=nM(h),_=b.length,x=g.comment,w=x&&nM(x),S=w&&w.length,E=nI(g.extra),k=8*(0!=g.level),C=function(e,s){if(e)c(),m(e,null);else{var i=s.length;l[t]=nh(g,{size:v,crc:y.d(),c:s,f:b,m:w,u:_!=h.length||w&&x.length!=S,compression:k}),n+=30+_+E+i,o+=76+2*(_+E)+(S||0)+i,--a||u()}};if(_>65535&&C(a2(11,0,1),null),k)if(v<16e4)try{C(null,nw(f,g))}catch(t){C(t,null)}else p.push((e=g,(s=C)||(s=e,e={}),"function"!=typeof s&&a2(7),ny(f,e,[nd],function(t){return nf(nw(t.data[0],t.data[1]))},0,s)));else C(null,f)},f=0;f<h;++f)d(f)}(t,{level:9},(t,i)=>{t?s(t):i.buffer instanceof ArrayBuffer?e(i.buffer):s(Error("Data is not transferable"))})}))(a);if(i)return M(h,{mimeType:"application/zip+dotlottie",name:n}),null;return h}catch(t){return P(t),null}}let nB=t=>{switch(t){case"svg":case"svg+xml":return"image/svg+xml";case"jpg":case"jpeg":return"image/jpeg";case"png":case"gif":case"webp":case"avif":return`image/${t}`;case"mp3":case"mpeg":case"wav":return`audio/${t}`;default:return""}},nG=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(O(t));async function nq(t,e){if(!Array.isArray(e))return;let s=[],{length:i}=e;for(let r=0;r<i;r++){let i,a=e[r];if(!N(a)&&!V(a))continue;let n=V(a),o=n?"images":"audio",h=a.u?.replace(/^\/+/,"");h&&""!==h?i=t?.[`${h}${a.p}`]:n&&(i=t?.[`i/${a.p}`]),(i=i??t?.[`${o}/${a.p}`])&&s.push(new Promise(t=>{let e;if(v)e=Buffer.from(i).toString("base64");else{let t="",{length:s}=i;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);e=btoa(t)}a.p=a.p?.startsWith("data:")||nG(a.p)?a.p:`data:${nB(T(a.p))};base64,${e}`,a.e=1,a.u="",t()}))}await Promise.all(s)}let nj=t=>t.replaceAll(RegExp(/"""/,"g"),'""');async function nH(t){let e=await (async t=>{let e=new Uint8Array(await t.arrayBuffer());return await new Promise((t,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&a2(7);var i=[],r=function(){for(var t=0;t<i.length;++t)i[t]()},a={},n=function(t,e){n$(function(){s(t,e)})};n$(function(){n=s});for(var o=t.length-22;0x6054b50!=nb(t,o);--o)if(!o||t.length-o>65558)return n(a2(13,0,1),null),r;var h=nv(t,o+8);if(h){var l=h,p=nb(t,o+16),c=0x7064b50==nb(t,o-20);if(c){var m=nb(t,o-12);(c=0x6064b50==nb(t,m))&&(l=h=nb(t,m+32),p=nb(t,m+48))}for(var u=e&&e.filter,d=0;d<l;++d)!function(){var e=nT(t,p,c),s=e[0],o=e[1],l=e[2],m=e[3],d=e[4],f=e[5],g=f+30+nv(t,f+26)+nv(t,f+28);p=d;var y=function(t,e){t?(r(),n(t,null)):(e&&(a[m]=e),--h||n(null,a))};if(!u||u({name:m,size:o,originalSize:l,compression:s}))if(s)if(8==s){var v,b,_=t.subarray(g,g+o);if(l<524288||o>.8*l)try{y(null,nS(_,{out:new aP(l)}))}catch(t){y(t,null)}else i.push((v={size:l},(b=y)||(b=v,v={}),"function"!=typeof b&&a2(7),ny(_,v,[nu],function(t){return nf(nS(t.data[0],ng(t.data[1])))},1,b)))}else y(a2(14,"unknown compression type "+s,1),null);else y(null,a0(t,g,g+o));else y(null,null)}()}else n(null,{})}(e,(e,i)=>{e?s(e):t(i)})})})(t),s=(t=>{let e=JSON.parse(nA(t["manifest.json"],!1));if(!("animations"in e))throw Error("Manifest not found");if(0===e.animations.length)throw Error("No animations listed in manifest");return e})(e),i=[],r=[],{length:a}=s.animations,n="animations";("2"===s.version||e[`a/${s.animations[0]?.id}.json`])&&(n="a");for(let t=0;t<a;t++){let a=JSON.parse(nj(nA(e[`${n}/${s.animations[t]?.id}.json`]))),{length:o}=a.layers;for(let t=0;t<o;t++){let{ks:e}=a.layers[t]??{},s=Object.keys(e),{length:i}=s;for(let t=0;t<i;t++){let i=e[s[t]],{e:r,x:a}=i??{};a&&r&&i&&(i.x=atob(a))}}r.push(nq(e,a.assets)),i.push(a)}return await Promise.all(r),{data:i,manifest:s}}async function nW(t){try{if(!t||"string"!=typeof t&&"object"!=typeof t)throw Error("Broken file or invalid file format");if("string"!=typeof t)return{animations:Array.isArray(t)?t:[t],isDotLottie:!1,manifest:null};let e=await fetch(t,{headers:{Accept:"application/json"}});if(!e.ok)throw Error(e.statusText);if(await (async t=>{let e=t.headers.get("content-type")??"";return!!e.toLowerCase().includes("json")||!(e.toLowerCase().includes("zip")||await (async t=>{let e=t.clone().body?.getReader(),{value:s}=await e?.read()??{};return await e?.cancel(),!!s&&!(s.length<4)&&80===s[0]&&75===s[1]&&(3===s[2]&&4===s[3]||5===s[2]&&6===s[3]||7===s[2]&&8===s[3])})(t))})(e)){let s=T(t);if("json"===s)return{animations:[await e.json()],isDotLottie:!1,manifest:null};let i=await e.clone().text();try{return{animations:[JSON.parse(i)],isDotLottie:!1,manifest:null}}catch(t){}}let{data:s,manifest:i}=await nH(e);return{animations:s,isDotLottie:!0,manifest:i}}catch(t){return P(t),{animations:void 0,isDotLottie:!1,manifest:null}}}function nJ({animation:t,filename:e,shouldDownload:s}){try{if(!t)throw Error("createJSON: Missing or malformed required parameter(s):\n - animation\n'");let i=F("json",e)||`${k()}.json`,r=JSON.stringify(t);if(s)return M(r,{mimeType:"application/json",name:i}),null;return r}catch(t){return P(t),null}}var nU=Object.freeze({__proto__:null,addAnimation:async function({configs:t,filename:e,generator:s,id:i,shouldDownload:r=!0,src:a}){let{animations:n=[],manifest:o={animations:a?[{id:i}]:[]}}=a?await nW(a):{};try{if(!o)throw Error("Manifest is not set");o.generator=s;let{length:i}=t;for(let e=0;e<i;e++){let{url:s}=t[e]??{},{animations:i}=await nW(s);if(!i)throw Error("No animation loaded");if(o.animations.some(s=>s.id===t[e]?.id))throw Error("Duplicate id for animation");o.animations=[...o.animations,{id:t[e]?.id??""}],n.push(...i)}return{result:await nz({animations:n,filename:e,manifest:o,shouldDownload:r}),success:!0}}catch(t){return{error:t.message,result:null,success:!1}}},convert:async function({animations:t,currentAnimation:e=0,filename:s,generator:i,isDotLottie:r,manifest:a,shouldDownload:n=!0,src:o,typeCheck:h}){try{if(!o&&!t?.length)throw Error("No animation to convert");let l=t;if(l||(l=(await nW(o)).animations??[]),h||r){let t=I(s||o||"converted");return l.length>1&&(t+=`-${e+1}`),t+=".json",{result:nJ({animation:l[e],filename:t,shouldDownload:n}),success:!0}}return{result:await nz({animations:l,filename:`${I(s||o||"converted")}.lottie`,manifest:{...a??a,generator:i,version:"2"},shouldDownload:n}),success:!0}}catch(t){return{error:t.message,result:null,success:!1}}},createDotLottie:nz,createJSON:nJ,getAnimationData:nW,getLottieJSON:nH,resolveAssets:nq});let nY=null;v&&(globalThis.HTMLElement??=class{});class nX extends HTMLElement{constructor(){super();let{observedProperties:t}=this.constructor;for(let e=0;e<t.length;e++){let s=this[t[e]],i=Symbol(t[e]);this[i]=s,Object.defineProperty(this,t[e]??"",{get(){return this[i]},set(s){let r=this[i];this[i]=s,this.propertyChangedCallback(t[e],r,s)}})}}propertyChangedCallback(t,e,s){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}var nK=((X={}).Contain="contain",X.Cover="cover",X.Fill="fill",X.None="none",X.ScaleDown="scale-down",X),nZ=((K={}).Pause="pause",K.Reverse="reverse",K.Stop="stop",K.Void="void",K),nQ=((Z={}).Completed="completed",Z.Destroyed="destroyed",Z.Error="error",Z.Frozen="frozen",Z.Loading="loading",Z.Paused="paused",Z.Playing="playing",Z.Stopped="stopped",Z);let n0=t=>{let e={message:"Unknown error",status:v?500:400};return t&&"object"==typeof t&&("message"in t&&"string"==typeof t.message&&(e.message=t.message),"status"in t&&(e.status=Number(t.status))),e},n1=(t,e)=>null!=t&&Object.keys(e).filter(t=>Number.isNaN(Number(t))).some(s=>e[s]===t),n2=t=>["v","ip","op","layers","fr","w","h"].every(e=>Object.hasOwn(t,e)),n3=t=>null!==t&&["true","","1"].includes(t),n5=v?null:matchMedia("(any-hover: hover)"),n4="dotlottie-player",n6=v?null:matchMedia("(prefers-reduced-motion: reduce)"),n8=!v&&"IntersectionObserver"in window,n9=!v&&"ViewTimeline"in window,n7=n5?.matches,ot=(async()=>{let t=new CSSStyleSheet;return await t.replace('*{box-sizing:border-box}:host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:#fff;--lottie-player-toolbar-icon-color:#000;--lottie-player-toolbar-icon-hover-color:#000;--lottie-player-toolbar-icon-active-color:#4285f4;--lottie-player-seeker-track-color:#0003;--lottie-player-seeker-thumb-color:#4285f4;--lottie-player-seeker-display:block;height:100%;width:100%;&:not([hidden]){display:block}& .main{display:flex;flex-direction:column;height:100%;margin:0;padding:0;width:100%}& .animation{contain:content;display:flex;height:100%;margin:0;padding:0;width:100%;& svg g{will-change:transform}}& [data-controls=true] .animation{height:calc(100% - 35px)}& .animation-container{position:relative}& .popover{animation:fade-in .2s ease-in-out;background-color:var(--lottie-player-toolbar-background-color);border:2px solid var(--lottie-player-toolbar-icon-color);border-radius:5px;bottom:40px;padding:10px 15px;position:absolute;right:5px;&:before{border:7px solid #0000;border-top:7px solid var(--lottie-player-toolbar-icon-color);content:"";height:0;margin-right:-7px;pointer-events:none;position:absolute;right:10px;top:100%;width:0}}& .error{align-items:center;display:flex;height:100%;justify-content:center;margin:auto;& svg{height:auto;width:100%}}& .toolbar{background:var(--lottie-player-toolbar-background-color);border-radius:5px;display:flex;gap:5px;height:35px;margin:0;padding:5px;place-items:center center;&.has-error{opacity:.5;pointer-events:none}& button{fill:var(--lottie-player-toolbar-icon-color);align-items:center;background:none;border:0;color:var(--lottie-player-toolbar-icon-color);cursor:pointer;gap:5px;height:100%;margin:0;opacity:.9;outline:0;padding:0;&:not([hidden]){display:flex}&:hover{opacity:1}&[data-active=true]{fill:var(--lottie-player-toolbar-icon-active-color);opacity:1}&:disabled{opacity:.5}&:focus{outline:0}& svg{pointer-events:none;&>*{fill:inherit}}&.disabled svg{display:none}}}& .progress-container{position:relative;width:100%;&.simple{margin-right:12px}}& progress{appearance:none;background-color:var(--lottie-player-seeker-track-color);border:0;border-radius:3px;height:5px;left:0;margin:7.5px 0;outline:none;pointer-events:none;position:absolute;top:0;width:100%;&::-webkit-progress-inner-element{border-radius:3px;overflow:hidden}&::-webkit-slider-runnable-track{background-color:initial}&::-webkit-progress-value{background-color:var(--lottie-player-seeker-thumb-color)}}& .seeker{appearance:none;background-color:initial;border:0;border-radius:3px;color:var(--lottie-player-seeker-thumb-color);cursor:pointer;display:var(--lottie-player-seeker-display);height:20px;margin:0;outline:none;padding:7.5px 0;position:relative;width:100%;z-index:1;&::-webkit-slider-runnable-track,&::-webkit-slider-thumb{appearance:none;outline:none}&::-webkit-slider-thumb{background-color:var(--lottie-player-seeker-thumb-color);border:0;border-radius:50%;cursor:pointer;height:15px;transform:scale(0);-webkit-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;width:15px}&:focus::-webkit-slider-thumb,&:hover::-webkit-slider-thumb{transform:scale(1)}&::-moz-range-progress{background-color:var(--lottie-player-seeker-thumb-color);border-radius:3px;height:5px}&::-moz-range-thumb{background-color:var(--lottie-player-seeker-thumb-color);border:0;border-radius:50%;cursor:pointer;height:15px;transform:scale(0);-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;width:15px}&:focus::-moz-range-thumb,&:hover::-moz-range-thumb{transform:scale(1)}&::-ms-track{background:#0000;border-color:#0000;color:#0000;cursor:pointer;height:5px;width:100%}&::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}&::-ms-fill-lower{background-color:var(--lottie-player-seeker-thumb-color);border-radius:3px}&::-ms-thumb{background:var(--lottie-player-seeker-thumb-color);border:0;border-radius:50%;cursor:pointer;height:15px;transform:scale(0);-ms-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;width:15px}&:hover::-ms-thumb{transform:scale(1)}&:focus{&::-ms-thumb{transform:scale(1)}&::-ms-fill-lower,&::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}}}& ::-moz-progress-bar{background-color:var(--lottie-player-seeker-thumb-color)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media (prefers-color-scheme:dark){:host{--lottie-player-toolbar-background-color:#000;--lottie-player-toolbar-icon-color:#fff;--lottie-player-toolbar-icon-hover-color:#fff;--lottie-player-seeker-track-color:#fff9}}'),t})();class oe extends nX{static get styles(){return ot}set animateOnScroll(t){this.setAttribute("animateOnScroll",(!!t).toString())}get animateOnScroll(){return n3(this.getAttribute("animateOnScroll"))}get animations(){return this._animations}set autoplay(t){this.setAttribute("autoplay",(!!t).toString())}get autoplay(){return n3(this.getAttribute("autoplay"))}set background(t){this.setAttribute("background",t)}get background(){return this.getAttribute("background")||"transparent"}set controls(t){this.setAttribute("controls",(!!t).toString())}get controls(){return n3(this.getAttribute("controls"))}set count(t){this.setAttribute("count",t.toString())}get count(){let t=this.getAttribute("count");return t?Number(t):0}get currentAnimation(){return this._currentAnimation}set delay(t){this.setAttribute("delay",t.toString())}get delay(){let t=this.getAttribute("delay");return t?Number(t):0}set description(t){t&&this.setAttribute("description",t)}get description(){return this.getAttribute("description")}set direction(t){this.setAttribute("direction",t.toString())}get direction(){let t=Number(this.getAttribute("direction"));return -1===t?t:1}set dontFreezeOnBlur(t){this.setAttribute("dontFreezeOnBlur",(!!t).toString())}get dontFreezeOnBlur(){return n3(this.getAttribute("dontFreezeOnBlur"))}set hover(t){this.setAttribute("hover",(!!t).toString())}get hover(){return n3(this.getAttribute("hover"))}set intermission(t){this.setAttribute("intermission",t.toString())}get intermission(){let t=Number(this.getAttribute("intermission"));return isNaN(t)?0:t}set loop(t){this.setAttribute("loop",(!!t).toString())}get loop(){return n3(this.getAttribute("loop"))}set mode(t){this.setAttribute("mode",t)}get mode(){let t=this.getAttribute("mode");return t===ti.Bounce?t:ti.Normal}set mouseout(t){this.setAttribute("mouseout",t)}get mouseout(){let t=this.getAttribute("mouseout");switch(t){case nZ.Void:case nZ.Pause:case nZ.Reverse:return t;default:return nZ.Stop}}set objectfit(t){this.setAttribute("objectfit",t)}get objectfit(){let t=this.getAttribute("objectfit");return n1(t,nK)?t:nK.Contain}set once(t){this.setAttribute("once",(!!t).toString())}get once(){return n3(this.getAttribute("once"))}set playOnClick(t){this.setAttribute("playOnClick",(!!t).toString())}get playOnClick(){return n3(this.getAttribute("playOnClick"))}set playOnVisible(t){this.setAttribute("playOnVisible",(!!t).toString())}get playOnVisible(){return n3(this.getAttribute("playOnVisible"))}set preserveAspectRatio(t){this.setAttribute("preserveAspectRatio",t||ta.Contain)}get preserveAspectRatio(){let t=this.getAttribute("preserveAspectRatio");return n1(t,ta)?t:null}set quiet(t){this.setAttribute("quiet",(!!t).toString())}get quiet(){return n3(this.getAttribute("quiet"))}set renderer(t){this.setAttribute("renderer",t)}get renderer(){let t=this.getAttribute("renderer");return t===tn.Canvas?t:tn.SVG}set selector(t){t?this.setAttribute("selector",t):this.removeAttribute("selector")}get selector(){return this.getAttribute("selector")}set simple(t){this.setAttribute("simple",(!!t).toString())}get simple(){return n3(this.getAttribute("simple"))}set speed(t){this.setAttribute("speed",t.toString())}get speed(){let t=this.getAttribute("speed");return null===t||isNaN(Number(t))?1:Number(t)}set src(t){this.setAttribute("src",t||"")}get src(){return this.getAttribute("src")}set subframe(t){this.setAttribute("subframe",(!!t).toString())}get subframe(){return n3(this.getAttribute("subframe"))}clearDevLog(){this._toLog=null}devLog(t,e="error"){}constructor(...t){super(...t),this.playerState=nQ.Loading,this._animations=[],this._container=null,this._currentAnimation=0,this._errorMessage="Something went wrong",this._identifier=this.id||k(),this._lottieInstance=null,this._playerState={count:0,frame:0,loaded:!1,playTimeout:null,prev:nQ.Loading},this._toLog=null}}class os extends oe{applyScrollProgress(){if(!this.animateOnScroll||!this._lottieInstance)return;let t=this._getScrollProgress();if(null===t)return;let{totalFrames:e}=this._lottieInstance,s=t*(e-1),i=this.subframe?.1:.5;Math.abs(s-this._playerState.frame)<i||(this._playerState.frame=s,this._lottieInstance.goToAndStop(s,!0))}cancelIntersectionObserver(){this._intersectionObserver?.disconnect(),this._intersectionObserver=void 0}cancelScrollProbe(){this._scrollProbe?.cancel(),this._scrollProbe=void 0,this._useGeometricScroll=!1}scrollLoop(){this._playerState.scrollLoopId=requestAnimationFrame(this.scrollLoop),this.applyScrollProgress()}startScrollLoop(){v?this.devLog("DotLottie: Scroll animations will not work in a Server Side Rendering context. Try to wrap this in a client component."):this._playerState.scrollLoopId??=requestAnimationFrame(this.scrollLoop)}stopScrollLoop(){void 0!==this._playerState.scrollLoopId&&(cancelAnimationFrame(this._playerState.scrollLoopId),this._playerState.scrollLoopId=void 0,this.applyScrollProgress())}_addIntersectionObserver(){this._container&&!this._intersectionObserver&&n8&&(this._intersectionObserver=new IntersectionObserver(([{isIntersecting:t}])=>{if(this.isIntersecting=t,this.animateOnScroll&&!n6?.matches)return t?void this.startScrollLoop():void this.stopScrollLoop();if(!t||document.hidden){this.playerState===nQ.Playing&&this._freeze(),this._playerState.playTimeout&&clearTimeout(this._playerState.playTimeout);return}this.playOnVisible||this.playerState!==nQ.Frozen||this.autoplay&&n6?.matches||this.play(),this._playOnVisible()}),this._observeIntersectionTarget())}_canDriveTimeline({source:t}){return!t||t===document.scrollingElement||"hidden"!==getComputedStyle(t).overflowY&&t.scrollHeight>t.clientHeight}_getGeometricScrollProgress(){if(!this._container)return null;let{height:t,top:e}=this._container.getBoundingClientRect(),s=visualViewport?.height??innerHeight;return C((s-e)/(s+t),0,1)}_getScrollProgress(){if(!this._container)return null;if(!n9||this._useGeometricScroll)return this._getGeometricScrollProgress();if(!this._scrollProbe){let t=new ViewTimeline({axis:"block",subject:this._container});if(!this._canDriveTimeline(t))return this._useGeometricScroll=!0,this.devLog("[dotlottie-player] animateOnScroll: the player's nearest scrolling ancestor cannot scroll, so its ViewTimeline would never advance. This is almost always an ancestor with `overflow: hidden` — use `overflow: clip` instead. Falling back to viewport measurement."),this._getGeometricScrollProgress();this._scrollProbe??=this._container.animate({"--dotlottie-scroll":[0,1]},{fill:"both",rangeEnd:"cover 100%",rangeStart:"cover 0%",timeline:t})}return this._scrollProbe.effect?.getComputedTiming().progress??null}_observeIntersectionTarget(){this._intersectionObserver&&this._container&&(this._intersectionObserver.disconnect(),this._intersectionObserver.observe(this._container))}_playOnVisible(){if(!(!this.playOnVisible||n6?.matches)){if(this.playerState===nQ.Completed&&!this.once){this.playerState=nQ.Playing,this._lottieInstance?.goToAndPlay(1===this.direction?0:this._lottieInstance.totalFrames);return}this._playerState.playTimeout=setTimeout(()=>{this.play()},this.delay),this.playerState===nQ.Playing&&clearTimeout(this._playerState.playTimeout)}}constructor(...t){super(...t),this.isIntersecting=!1,this._useGeometricScroll=!1}}let oi=null,or=null;function oa(){return oi?Promise.resolve(oi):or=or??(async()=>{let{addAnimation:t,convert:e}=await Promise.resolve().then(function(){return nU});return oi={addAnimation:t,convert:e},{addAnimation:t,convert:e}})()}let on='<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z"/></svg>';function oo(){if(!this.shadow)return;let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.onclick=this.toggleLoop);let e=this.shadow.querySelector(".toggleBoomerang");e instanceof HTMLButtonElement&&(e.onclick=this.toggleBoomerang);let s=this.shadow.querySelector(".convert");s instanceof HTMLButtonElement&&(s.onclick=async()=>{s.disabled=!0;try{let{convert:t}=await oa();await t({isDotLottie:this.isDotLottie,manifest:this.getManifest(),src:this.src||this.source})}finally{s.disabled=!1}});let i=this.shadow.querySelector(".snapshot");i instanceof HTMLButtonElement&&(i.onclick=()=>this.snapshot(!0));let r=this.shadow.querySelector(".toggleSettings");r instanceof HTMLButtonElement&&(r.onclick=this._handleSettingsClick,r.onblur=this._handleBlur)}function oh(){if(!this.shadow)return;let t=this.shadow.querySelector(".togglePlay");t instanceof HTMLButtonElement&&(t.onclick=this.togglePlay);let e=this.shadow.querySelector(".stop");e instanceof HTMLButtonElement&&(e.onclick=this.stop);let s=this.shadow.querySelector(".prev");s instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation&&(s.hidden=!1),s.onclick=this.prev);let i=this.shadow.querySelector(".next");i instanceof HTMLButtonElement&&(this.animations.length>0&&this.currentAnimation<this.animations.length-1&&(i.hidden=!1),i.onclick=this.next);let r=this.shadow.querySelector(".seeker");r instanceof HTMLInputElement&&(r.onchange=this._handleSeekChange,r.onmousedown=this._freeze),this.simple||oo.call(this)}function ol(t,e){let s=e===nQ.Playing||e===nQ.Paused;t.dataset.active=s.toString(),t.innerHTML=e===nQ.Playing?'<svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z"/></svg>':on}var op=Object.freeze({__proto__:null,renderControls:function(){if(!this.shadow)throw Error("No Shadow Element");let t=this.shadow.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="",this._controlElements=null;return}let e=this.isDotLottie?"dotLottie animation to JSON format":"JSON animation to dotLottie format",s=this.isDotLottie?"Convert to JSON":"Convert to dotLottie";t.innerHTML=`<div class="lottie-controls toolbar ${this.playerState===nQ.Error?"has-error":""}" aria-label="Lottie Animation controls"><button class="togglePlay" data-active="${this.autoplay}" aria-label="Toggle Play/Pause">${on}</button> <button class="stop" data-active="${!this.autoplay}" aria-label="Stop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M6 6h12v12H6V6z"/></svg></button> <button class="prev" aria-label="Previous animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M17.9 18.2 8.1 12l9.8-6.2v12.4zm-10.3 0H6.1V5.8h1.5v12.4z"/></svg></button> <button class="next" aria-label="Next animation" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m6.1 5.8 9.8 6.2-9.8 6.2V5.8zM16.4 5.8h1.5v12.4h-1.5z"/></svg></button><form class="progress-container${this.simple?" simple":""}"><input type="range" class="seeker" min="0" max="100" step="1" value="${this._seeker.toString()}" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${this._seeker.toString()}" tabindex="0" aria-label="Slider for search"><progress max="100" value="${this._seeker}"></progress></form>${this.simple?"":`<button class="toggleLoop" data-active="${this.loop}" aria-pressed="${this.loop}" tabindex="0" aria-label="Toggle loop"><svg width="24" height="24" aria-hidden="true" focusable="false"><path 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"/></svg></button> <button class="toggleBoomerang" data-active="${this.mode===ti.Bounce}" aria-pressed="${this.mode===ti.Bounce}" aria-label="Toggle boomerang" tabindex="0"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="m11.8 13.2-.3.3c-.5.5-1.1 1.1-1.7 1.5-.5.4-1 .6-1.5.8-.5.2-1.1.3-1.6.3s-1-.1-1.5-.3c-.6-.2-1-.5-1.4-1-.5-.6-.8-1.2-.9-1.9-.2-.9-.1-1.8.3-2.6.3-.7.8-1.2 1.3-1.6.3-.2.6-.4 1-.5.2-.2.5-.2.8-.3.3 0 .7-.1 1 0 .3 0 .6.1.9.2.9.3 1.7.9 2.4 1.5.4.4.8.7 1.1 1.1l.1.1.4-.4c.6-.6 1.2-1.2 1.9-1.6.5-.3 1-.6 1.5-.7.4-.1.7-.2 1-.2h.9c1 .1 1.9.5 2.6 1.4.4.5.7 1.1.8 1.8.2.9.1 1.7-.2 2.5-.4.9-1 1.5-1.8 2-.4.2-.7.4-1.1.4-.4.1-.8.1-1.2.1-.5 0-.9-.1-1.3-.3-.8-.3-1.5-.9-2.1-1.5-.4-.4-.8-.7-1.1-1.1h-.3zm-1.1-1.1c-.1-.1-.1-.1 0 0-.3-.3-.6-.6-.8-.9-.5-.5-1-.9-1.6-1.2-.4-.3-.8-.4-1.3-.4-.4 0-.8 0-1.1.2-.5.2-.9.6-1.1 1-.2.3-.3.7-.3 1.1 0 .3 0 .6.1.9.1.5.4.9.8 1.2.5.4 1.1.5 1.7.5.5 0 1-.2 1.5-.5.6-.4 1.1-.8 1.6-1.3.1-.3.3-.5.5-.6zM13 12c.5.5 1 1 1.5 1.4.5.5 1.1.9 1.9 1 .4.1.8 0 1.2-.1.3-.1.6-.3.9-.5.4-.4.7-.9.8-1.4.1-.5 0-.9-.1-1.4-.3-.8-.8-1.2-1.7-1.4-.4-.1-.8-.1-1.2 0-.5.1-1 .4-1.4.7-.5.4-1 .8-1.4 1.2-.2.2-.4.3-.5.5z"/></svg></button> <button class="toggleSettings" aria-label="Settings" aria-haspopup="true" aria-expanded="${this._isSettingsOpen}" aria-controls="${this._identifier}-settings"><svg width="24" height="24" aria-hidden="true" focusable="false"><circle cx="12" cy="5.4" r="2.5"/><circle cx="12" cy="12" r="2.5"/><circle cx="12" cy="18.6" r="2.5"/></svg></button><div id="${this._identifier}-settings" class="popover" hidden><button class="convert" aria-label="Convert ${e}" hidden><svg width="24" height="24" aria-hidden="true" focusable="false"><path 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"/></svg> ${s}</button> <button class="snapshot" aria-label="Download still image"><svg width="24" height="24" aria-hidden="true" focusable="false"><path d="M16.8 10.8 12 15.6l-4.8-4.8h3V3.6h3.6v7.2h3zM12 15.6H3v4.8h18v-4.8h-9zm7.8 2.4h-2.4v-1.2h2.4V18z"/></svg> Download still image</button></div>`}</div>`;let i=(e,s)=>{let i=t.querySelector(e);return i instanceof s?i:null},r=i(".togglePlay",HTMLButtonElement),a=i(".stop",HTMLButtonElement),n=i(".prev",HTMLButtonElement),o=i(".next",HTMLButtonElement),h=i(".seeker",HTMLInputElement),l=i("progress",HTMLProgressElement);this._controlElements=r&&a&&n&&o&&h&&l?{convert:i(".convert",HTMLButtonElement),next:o,popover:i(".popover",HTMLDivElement),prev:n,progress:l,seeker:h,snapshot:i(".snapshot",HTMLButtonElement),stop:a,togglePlay:r}:null,oh.call(this)},updatePlayPauseButton:ol});function oc(){if(!this.shadow||!this.template)throw Error("No Shadow Element or Template");this.template.innerHTML='<div class="animation-container main"><figure class="animation"></figure><slot name="controls"></slot></div>';let t=this.template.content.cloneNode(!0),e=t.querySelector(".animation-container"),s=t.querySelector("figure");if(!(e instanceof HTMLDivElement)||!s)throw Error("Template is broken");e.dataset.controls=String(this.controls),s.style.background=this.background,(this.description||this.controls)&&(e.lang=this.description?document.documentElement.lang:"en"),this.description&&s.setAttribute("aria-label",this.description),this.shadow.replaceChildren(t)}class om extends os{static get observedAttributes(){return["animateonscroll","autoplay","controls","direction","hover","loop","mode","playonclick","playonvisible","selector","speed","src","subframe"]}static get observedProperties(){return["playerState","_isSettingsOpen","_seeker","_currentAnimation","_animations"]}get isDotLottie(){return this._isDotLottie}constructor(){super(),this.canConvert=!1,this._controlElements=null,this._isSettingsOpen=!1,this._seeker=0,this._controlsLoadId=0,this._errorLoadId=0,this._isBounce=!1,this._isDotLottie=!1,this._loadId=0,this._multiAnimationSettings=[],this._renderControls=async()=>{let t=this.shadow?.querySelector("slot[name=controls]");if(!t)return;if(!this.controls){t.innerHTML="",this._controlElements=null;return}let e=++this._controlsLoadId,{renderControls:i}=await (s=s??Promise.resolve().then(function(){return op}));e===this._controlsLoadId&&i.call(this)},this._complete=this._complete.bind(this),this._dataFailed=this._dataFailed.bind(this),this._dataReady=this._dataReady.bind(this),this._DOMLoaded=this._DOMLoaded.bind(this),this._enterFrame=this._enterFrame.bind(this),this._freeze=this._freeze.bind(this),this._handleBlur=this._handleBlur.bind(this),this._handleClick=this._handleClick.bind(this),this._handleSeekChange=this._handleSeekChange.bind(this),this._handleWindowBlur=this._handleWindowBlur.bind(this),this._loopComplete=this._loopComplete.bind(this),this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this.scrollLoop=this.scrollLoop.bind(this),this._switchInstance=this._switchInstance.bind(this),this._handleSettingsClick=this._handleSettingsClick.bind(this),this.togglePlay=this.togglePlay.bind(this),this.stop=this.stop.bind(this),this.prev=this.prev.bind(this),this.next=this.next.bind(this),this.snapshot=this.snapshot.bind(this),this.toggleLoop=this.toggleLoop.bind(this),this.toggleBoomerang=this.toggleBoomerang.bind(this),this.destroy=this.destroy.bind(this),this.template=document.createElement("template"),this.shadow=this.attachShadow({mode:"open"})}async attributeChangedCallback(t,e,s){if(this._lottieInstance&&this.shadow&&this._container)switch(this.clearDevLog(),t){case"animateonscroll":if(n3(s)){this._lottieInstance.autoplay=!1,this.isIntersecting&&this.startScrollLoop();return}this.stopScrollLoop();break;case"autoplay":if(this.animateOnScroll||this.playOnVisible||n6?.matches)return;if(n3(s))return void this.play();this.stop();break;case"controls":await this._renderControls();break;case"direction":if(-1===Number(s))return void this.setDirection(-1);this.setDirection(1);break;case"hover":if(n3(s)){this._container.addEventListener("mouseenter",this._mouseEnter),this._container.addEventListener("mouseleave",this._mouseLeave);return}this._container.removeEventListener("mouseenter",this._mouseEnter),this._container.removeEventListener("mouseleave",this._mouseLeave);break;case"loop":{let t=this.shadow.querySelector(".toggleLoop");t instanceof HTMLButtonElement&&(t.dataset.active=s),this.setLoop(""===s||!!s);break}case"mode":{let t=this.shadow.querySelector(".toggleBoomerang");if(!n1(s,ti))break;t instanceof HTMLButtonElement&&(t.dataset.active=(s===ti.Bounce).toString()),this._isBounce=s===ti.Bounce;break}case"playonclick":if(n3(s)){this._lottieInstance.autoplay=!1,this._container.addEventListener("click",this._handleClick);return}this._container.removeEventListener("click",this._handleClick);break;case"playonvisible":n3(s)&&(this._lottieInstance.autoplay=!1);break;case"selector":{let t=document.getElementById(this.selector??"");t?.addEventListener("click",this._handleClick);break}case"speed":{let t=Number(s);t&&!isNaN(t)&&this.setSpeed(t);break}case"src":await this.load(s);break;case"subframe":this.setSubframe(n3(s))}}connectedCallback(){(async()=>{try{if(await this._render(),!this.shadow)throw Error("Missing Shadow element");this._container=this.shadow.querySelector(".animation"),await this.load(this.src),this._addIntersectionObserver(),this.dispatchEvent(new CustomEvent(tr.Rendered))}catch(t){this._handleError(t)}})()}destroy(){this._lottieInstance?.destroy&&(this.cancelScrollProbe(),this.playerState=nQ.Destroyed,this._lottieInstance.destroy(),this._lottieInstance=null,this.stopScrollLoop(),this.dispatchEvent(new CustomEvent(tr.Destroyed)),this.remove(),this._removeEventListeners())}disconnectedCallback(){this.cancelIntersectionObserver(),this.cancelScrollProbe(),this._playerState.scrollLoopId&&cancelAnimationFrame(this._playerState.scrollLoopId),this._playerState.playTimeout&&clearTimeout(this._playerState.playTimeout),this._removeEventListeners(),this.destroy(),this.clearDevLog()}getLottie(){return this._lottieInstance}getManifest(){return this._manifest}getMultiAnimationSettings(){return this._multiAnimationSettings}getSegment(){return this._segment}async load(t){try{if(!this.shadowRoot||!t||++this._loadId!==this._loadId)return;this.source=t;let{animations:e,isDotLottie:s,manifest:i}=await nW(t);if(!e?.every(n2))throw Error("Broken or corrupted file");this._handleInlineScript(),this._isBounce=this.mode===ti.Bounce,this._multiAnimationSettings.length>0&&this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce);let r=i?.animations[0];r&&(r.autoplay=!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,r.loop=this.loop),this._isDotLottie=s,this._animations=e,this._manifest=i??{animations:[{autoplay:!this.animateOnScroll&&!this.playOnVisible&&this.autoplay,direction:this.direction,id:k(),loop:this.loop,mode:this.mode,speed:this.speed}]},this._clearPrevious(),this.playerState=nQ.Stopped,!this.animateOnScroll&&(this.autoplay||this._multiAnimationSettings[this._currentAnimation]?.autoplay||this.playOnVisible)&&(this.playerState=nQ.Playing),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:e[this._currentAnimation]}),this._addEventListeners();let a=this._multiAnimationSettings[this._currentAnimation]?.speed??this.speed,n=this._multiAnimationSettings[this._currentAnimation]?.direction??this.direction;this._lottieInstance.setSpeed(a),this._lottieInstance.setDirection(n),this._lottieInstance.setSubframe(!!this.subframe),this.animateOnScroll&&this.applyScrollProgress(),(this.autoplay||this.animateOnScroll||this.playOnVisible)&&-1===this.direction&&this.seek("99%"),await this._renderControls()}catch(t){await this._handleError(t)}}next(){this._currentAnimation++,this._switchInstance()}pause(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Pause))}catch(e){t=!0,this.devLog(e)}finally{this.playerState=t?nQ.Error:nQ.Paused}}play(){if(!this._lottieInstance)return;this._playerState.prev=this.playerState;let t=!1;try{this._lottieInstance.play(),this.dispatchEvent(new CustomEvent(tr.Play))}catch(e){t=!0,this.devLog(e)}finally{this.playerState=t?nQ.Error:nQ.Playing}}prev(){this._currentAnimation--,this._switchInstance(!0)}propertyChangedCallback(t,e,s){if(!this.shadow)return;let i=this._controlElements;i&&("playerState"===t&&(ol(i.togglePlay,s),i.stop.dataset.active=(s===nQ.Stopped).toString()),"_seeker"===t&&"number"==typeof s&&(i.seeker.value=s.toString(),i.seeker.ariaValueNow=s.toString(),i.progress.value=s),"_animations"===t&&Array.isArray(s)&&this._currentAnimation+1<s.length&&(i.next.hidden=!1),"_currentAnimation"===t&&"number"==typeof s&&(i.next.hidden=s+1>=this._animations.length,i.prev.hidden=!s),"_isSettingsOpen"===t&&"boolean"==typeof s&&i.popover&&i.convert&&i.snapshot&&(i.popover.hidden=!s,i.convert.hidden=!this.canConvert))}async reload(){this.src&&await this.load(this.src)}seek(t){let e;if(!this._lottieInstance)return;let s=String(t).trim(),i=/^([+-]?(?:\d+(?:\.\d*)?|\.\d+))\s*(%?)$/.exec(s);if(!i)return;let{totalFrames:r}=this._lottieInstance,a=parseInt(i[1]);if(e="%"===i[2]?Math.round(r*a/100):Math.round(a/r*100),this._seeker=e,this.playerState===nQ.Playing||this.playerState===nQ.Frozen&&this._playerState.prev===nQ.Playing){this._lottieInstance.goToAndPlay(a,!0),this.playerState=nQ.Playing;return}this._lottieInstance.goToAndStop(a,!0),this._lottieInstance.pause()}setCount(t){this.count=t}setDirection(t){this._lottieInstance&&this._lottieInstance.setDirection(t)}setLoop(t){this._lottieInstance&&this._lottieInstance.setLoop(t)}setMultiAnimationSettings(t){this._multiAnimationSettings=t}setSegment(t){this._segment=t}setSpeed(t=1){this._lottieInstance&&this._lottieInstance.setSpeed(t)}setSubframe(t){this._lottieInstance&&this._lottieInstance.setSubframe(t)}async snapshot(t=!0,e="AM Lottie"){try{if(!this.shadowRoot||!this._lottieInstance)throw Error("Unknown error");let s=null,i=this.shadowRoot.querySelector(`.animation ${this.renderer}`);if(!i)throw Error("Could not retrieve animation from DOM");let r=this.renderer===tn.SVG;if(r)s=i instanceof Node?new XMLSerializer().serializeToString(i):null;else{let t=await new Promise(t=>{i instanceof HTMLCanvasElement&&i.toBlob(t,"image/png")});s=await t?.arrayBuffer()??null}if(!s)throw Error("Could not serialize SVG element");return t&&M(s,{mimeType:r?"image/svg+xml":"image/png",name:`${I(this.src||e)}-${(((this._seeker*this._lottieInstance.totalFrames/100)??0)+1).toString().padStart(3,"0")}.${r?"svg":"png"}`}),s}catch(t){return this.devLog(t),null}}stop(){if(this._lottieInstance){this._playerState.prev=this.playerState,this._playerState.count=0;try{this._lottieInstance.stop(),this.dispatchEvent(new CustomEvent(tr.Stop))}finally{this.playerState=nQ.Stopped}}}toggleBoomerang(){let t=this._multiAnimationSettings[this._currentAnimation]??{};if(void 0!==t.mode){if(t.mode===ti.Normal){t.mode=ti.Bounce,this._isBounce=!0;return}t.mode=ti.Normal,this._isBounce=!1;return}if(this.mode===ti.Normal){this.mode=ti.Bounce,this._isBounce=!0;return}this.mode=ti.Normal,this._isBounce=!1}toggleLoop(){let t=!this.loop;this.loop=t,this.setLoop(t)}togglePlay(){if(!this._lottieInstance)return;let{currentFrame:t,playDirection:e,totalFrames:s}=this._lottieInstance;if(this.playerState===nQ.Playing)return void this.pause();if(this.playerState!==nQ.Completed)return void this.play();if(this.playerState=nQ.Playing,this._isBounce){this.setDirection(-1*e),this._lottieInstance.goToAndPlay(t,!0);return}-1===e?this._lottieInstance.goToAndPlay(s,!0):this._lottieInstance.goToAndPlay(0,!0)}_freeze(){if(this._lottieInstance){this._playerState.prev=this.playerState;try{this._lottieInstance.pause(),this.dispatchEvent(new CustomEvent(tr.Freeze))}finally{this.playerState=nQ.Frozen}}}_handleBlur(){let t=setTimeout(()=>{this._toggleSettings(!1)},200);this._isSettingsOpen||clearTimeout(t)}_handleClick(){(this.playOnClick||this.selector)&&this.togglePlay()}_handleSeekChange({target:t}){!(!(t instanceof HTMLInputElement)||!this._lottieInstance||isNaN(Number(t.value)))&&this.seek(Math.round(Number(t.value)/100*this._lottieInstance.totalFrames))}_handleSettingsClick({target:t}){this._toggleSettings(),t instanceof HTMLElement&&t.focus()}async _render(){this.shadow&&(this._controlElements=null,oc.call(this),this.shadow.adoptedStyleSheets=[await om.styles])}async _showError(){if(this.playerState!==nQ.Error)return;let t=this.shadow?.querySelector(".animation"),e=this.shadow?.querySelector("slot[name=controls]");if(e&&(e.innerHTML="",this._controlElements=null),!(t instanceof HTMLElement))return;let s=++this._errorLoadId,{errorScreen:i}=await (nY=nY??Promise.resolve().then(function(){return od}));s===this._errorLoadId&&(t.innerHTML=i(this._errorMessage))}_addEventListeners(){this._toggleEventListeners("add")}_clearPrevious(){this._lottieInstance?.destroy();let t=this.shadow?.querySelector(".animation");t&&(t.innerHTML="")}_complete(){if(!this._lottieInstance)return;if(this._animations.length>1){if(this._multiAnimationSettings[this._currentAnimation+1]?.autoplay)return void this.next();if(this.loop&&this._currentAnimation===this._animations.length-1){this._currentAnimation=0,this._switchInstance();return}}let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.playerState=nQ.Completed,this.dispatchEvent(new CustomEvent(tr.Complete,{detail:{frame:t,seeker:this._seeker}}))}_dataFailed(){this.playerState=nQ.Error,this.dispatchEvent(new CustomEvent(tr.Error))}_dataReady(){this.dispatchEvent(new CustomEvent(tr.Load))}_DOMLoaded(){this.dispatchEvent(new CustomEvent(tr.Ready))}_enterFrame(){if(!this._lottieInstance)return;let{currentFrame:t,totalFrames:e}=this._lottieInstance;this._seeker=Math.round(t/e*100),this.dispatchEvent(new CustomEvent(tr.Frame,{detail:{frame:t,seeker:this._seeker}}))}_getOptions(){if(!this._container)throw Error("Container not rendered");let t=this.preserveAspectRatio??(t=>{switch(t){case nK.Contain:case nK.ScaleDown:return ta.Contain;case nK.Cover:return ta.Cover;case nK.Fill:return ta.Initial;case nK.None:return ta.None;default:return ta.Contain}})(this.objectfit),e=this._multiAnimationSettings.length>0?this._multiAnimationSettings[this._currentAnimation]:void 0,s=this._manifest?.animations[this._currentAnimation],i=!!this.loop;s?.loop!==void 0&&(i=!!s.loop),e?.loop!==void 0&&(i=!!e.loop);let r=!!this.autoplay;s?.autoplay!==void 0&&(r=!!s.autoplay),e?.autoplay!==void 0&&(r=!!e.autoplay),(this.animateOnScroll||n6?.matches)&&(r=!1);let a=this._segment;return this._segment?.every(t=>t>0)&&(a=[this._segment[0]-1,this._segment[1]-1]),this._segment?.some(t=>t<0)&&(a=void 0),this.setOptions({container:this._container,hasAutoplay:r,hasLoop:i,initialSegment:a,preserveAspectRatio:t,rendererType:this.renderer})}async _handleError(t){this.playerState=nQ.Error,this.quiet||(this._errorMessage=n0(t).message,await this._showError()),this.dispatchEvent(new CustomEvent(tr.Error)),this.devLog(t)}_handleInlineScript(){let t=this.parentElement?.querySelector(":scope > script.aamd_inline_script");if(t)try{let e=JSON.parse(t.innerHTML);e.selector&&(this.selector=e.selector),e.segment&&this.setSegment(e.segment),e.multiAnimationSettings&&this.setMultiAnimationSettings(e.multiAnimationSettings)}catch(t){this.devLog(t)}}_handleSelector(t){if(!this.selector)return;let e=document.getElementById(this.selector);e?this.hover?(e[t]("mouseenter",this._mouseEnter),e[t]("mouseleave",this._mouseLeave)):e[t]("click",this._handleClick):this.selector=null}_handleWindowBlur({type:t}){this.dontFreezeOnBlur||(this.playerState===nQ.Playing&&"blur"===t&&this._freeze(),this.playerState===nQ.Frozen&&"focus"===t&&this.play())}_loopComplete(){if(!this._lottieInstance)return;let{playDirection:t,totalFrames:e}=this._lottieInstance,s=this._segment?this._segment[0]:0,i=this._segment?this._segment[1]:e;if(this.count&&(this._isBounce?this._playerState.count+=.5:this._playerState.count+=1,this._playerState.count>=this.count)){this.setLoop(!1),this.playerState=nQ.Completed,this.dispatchEvent(new CustomEvent(tr.Complete));return}return(this.dispatchEvent(new CustomEvent(tr.Loop)),this._isBounce)?(this._lottieInstance.goToAndStop(-1===t?s:.99*i,!0),this._lottieInstance.setDirection(-1*t),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission)):(this._lottieInstance.goToAndStop(-1===t?.99*i:s,!0),setTimeout(()=>{this.animateOnScroll||this._lottieInstance?.play()},this.intermission))}_mouseEnter(){if(!(!this.hover||!this._lottieInstance||!n7||n6?.matches)){if(this.mouseout===nZ.Reverse&&this._lottieInstance.setDirection(1),this.playerState===nQ.Completed){this._lottieInstance.goToAndPlay(0,!0),this.playerState=nQ.Playing;return}this.playerState!==nQ.Playing&&this.play()}}_mouseLeave(){if(!(!this.hover||!this._lottieInstance||!n7||n6?.matches))switch(this.mouseout){case nZ.Void:break;case nZ.Pause:this.pause();break;case nZ.Reverse:this._lottieInstance.setDirection(-1),this.play();break;default:this.stop()}}_onVisibilityChange(){if(!(this.autoplay&&n6?.matches)){if(document.hidden&&this.playerState===nQ.Playing)return void this._freeze();this.playerState===nQ.Frozen&&this.play()}}_removeEventListeners(){this._toggleEventListeners("remove")}_switchInstance(t=!1){if(this._animations[this._currentAnimation])try{if(this._lottieInstance?.destroy(),this.cancelScrollProbe(),this._lottieInstance=this.loadAnimation({...this._getOptions(),animationData:this._animations[this._currentAnimation]}),this._multiAnimationSettings[this._currentAnimation]?.mode&&(this._isBounce=this._multiAnimationSettings[this._currentAnimation]?.mode===ti.Bounce),this._removeEventListeners(),this._addEventListeners(),this.dispatchEvent(new CustomEvent(t?tr.Previous:tr.Next)),this._multiAnimationSettings[this._currentAnimation]?.autoplay??this.autoplay){if(this.animateOnScroll){this.applyScrollProgress(),this.playerState=nQ.Paused;return}this._lottieInstance.goToAndPlay(0,!0),this.playerState=nQ.Playing;return}this._lottieInstance.goToAndStop(0,!0),this.playerState=nQ.Stopped}catch(t){this._errorMessage=n0(t).message,this.playerState=nQ.Error,this.dispatchEvent(new CustomEvent(tr.Error))}}_toggleEventListeners(t){let e="add"===t?"addEventListener":"removeEventListener";void 0!==document.hidden&&document[e]("visibilitychange",this._onVisibilityChange),this._lottieInstance&&(this._lottieInstance[e](tr.EnterFrame,this._enterFrame),this._lottieInstance[e](tr.Complete,this._complete),this._lottieInstance[e](tr.LoopComplete,this._loopComplete),this._lottieInstance[e](tr.DOMLoaded,this._DOMLoaded),this._lottieInstance[e](tr.DataReady,this._dataReady),this._lottieInstance[e](tr.DataFailed,this._dataFailed)),this._handleSelector(e),this._container&&!this.selector&&(this.hover&&(this._container[e]("mouseenter",this._mouseEnter),this._container[e]("mouseleave",this._mouseLeave)),this.playOnClick&&this._container[e]("click",this._handleClick)),window[e]("focus",this._handleWindowBlur,{capture:!1,passive:!0}),window[e]("blur",this._handleWindowBlur,{capture:!1,passive:!0})}_toggleSettings(t){if(void 0===t){this._isSettingsOpen=!this._isSettingsOpen;return}this._isSettingsOpen=t}}class ou extends om{constructor(){super(),this.canConvert=!0}async addAnimation(t){let{addAnimation:e}=await oa();return await e(t)}async convert(t){let{convert:e}=await oa();return await e(t)}loadAnimation(t){return ih(t)}setOptions({container:t,hasAutoplay:e,hasLoop:s,initialSegment:i,preserveAspectRatio:r,rendererType:a}){let n={autoplay:e,container:t,initialSegment:i,loop:s,renderer:a,rendererSettings:{imagePreserveAspectRatio:r}};switch(this.renderer){case tn.SVG:n.rendererSettings={...n.rendererSettings,hideOnTransparent:!0,preserveAspectRatio:r,progressiveLoad:!0};break;case tn.Canvas:n.rendererSettings={...n.rendererSettings,preserveAspectRatio:r,progressiveLoad:!0}}return n}}globalThis.dotLottiePlayer=()=>new ou,v||customElements.get(n4)||customElements.define(n4,ou);var od=Object.freeze({__proto__:null,errorScreen:function(t){return`<div class="error"><svg preserveAspectRatio="${ta.Cover}" xmlns="${y}" width="1920" height="1080" viewBox="0 0 1920 1080" style="white-space:preserve"><path fill="#fff" d="M0 0h1920v1080H0z"/><path fill="#3a6d8b" d="M1190.2 531 1007 212.4c-22-38.2-77.2-38-98.8.5L729.5 531.3c-21.3 37.9 6.1 84.6 49.5 84.6l361.9.3c43.7 0 71.1-47.3 49.3-85.2zM937.3 288.7c.2-7.5 3.3-23.9 23.2-23.9 16.3 0 23 16.1 23 23.5 0 55.3-10.7 197.2-12.2 214.5-.1 1-.9 1.7-1.9 1.7h-18.3c-1 0-1.8-.7-1.9-1.7-1.4-17.5-13.4-162.9-11.9-214.1zm24.2 283.8c-13.1 0-23.7-10.6-23.7-23.7s10.6-23.7 23.7-23.7 23.7 10.6 23.7 23.7-10.6 23.7-23.7 23.7zM722.1 644h112.6v34.4h-70.4V698h58.8v31.7h-58.8v22.6h72.4v36.2H722.1V644zm162 57.1h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6zm78.9 0h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5H963v15.6zm39.5 36.2c0-31.3 22.2-54.8 56.6-54.8 34.4 0 56.2 23.5 56.2 54.8s-21.8 54.6-56.2 54.6c-34.4-.1-56.6-23.3-56.6-54.6zm74 0c0-17.4-6.1-29.1-17.8-29.1-11.7 0-17.4 11.7-17.4 29.1 0 17.4 5.7 29.1 17.4 29.1s17.8-11.8 17.8-29.1zm83.1-36.2h.6c8.3-12.9 18.2-17.8 31.3-17.8 3 0 5.1.4 6.3 1v32.6h-.8c-22.4-3.8-35.6 6.3-35.6 29.5v42.3h-38.2V685.5h36.4v15.6z"/><path fill="none" d="M718.9 807.7h645v285.4h-645z"/><text fill="#3a6d8b" style="text-align:center;position:absolute;left:100%;font-size:47px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'.SFNSText-Regular',sans-serif" x="50%" y="848.017" text-anchor="middle">${t.replaceAll(/[&<>"']/g,t=>`&#${t.charCodeAt(0)};`)}</text></svg></div>`}});t.DotLottiePlayerBase=om,t.default=ou,Object.defineProperty(t,"__esModule",{value:!0})}(this["@aarsteinmedia/dotlottie-player"]=this["@aarsteinmedia/dotlottie-player"]||{});