@aarsteinmedia/dotlottie-player 6.4.4 → 6.4.5
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.
- package/README.md +145 -129
- package/dist/unpkg-canvas.js +2 -2
- package/dist/unpkg-full.js +2 -2
- package/dist/unpkg-light.js +1 -1
- package/dist/unpkg-svg.js +2 -2
- package/package.json +5 -5
package/dist/unpkg-full.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
`,t),Error(`${this.constructor.name}: Could not set params`)}}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){iI(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 ti.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,this.onEnterFrame?.(s);break}case ti.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 ti.LoopComplete:this.triggerEvent(t,new sQ(t,Number(this.loop),this.playCount,this.frameMult)),this.onLoopComplete?.(new sQ(t,this.loop,this.playCount,this.frameMult));break;case ti.Complete:this.triggerEvent(t,new sZ(t,this.frameMult)),this.onComplete?.(new sZ(t,this.frameMult));break;case ti.SegmentStart:this.triggerEvent(t,new s0(t,this.firstFrame,this.totalFrames)),this.onSegmentStart?.(new s0(t,this.firstFrame,this.totalFrames));break;case ti.Destroy:this.triggerEvent(t,new s1(t,this)),this.onDestroy?.(new s1(t,this));break;default:this.triggerEvent(t)}}catch(t){M(`${this.constructor.name}:
|
|
5
5
|
`,t)}}triggerConfigError(t){let e=new s3(t,this.currentFrame);this.triggerEvent(ti.Error,e),this.onError?.(e)}triggerRenderFrameError(t){let e=new s2(t,this.currentFrame);this.triggerEvent(ti.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){M(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():setTimeout(this.waitForFontsLoaded.bind(this),20)}}let iR=!1,iV=!0,iO=0,iz=0,iG=0,iq=[];function ij(t){try{let e=new iB;return iK(e,null),e.setParams(t),e}catch(t){throw M("AnimationManager:\n",t),Error("Could not load animation",{cause:t})}}function iH(t,e){try{if(!t)return null;let s=0;for(;s<iz;){if(iq[s]?.elem===t&&iq[s]?.elem!==null)return iq[s]?.animation;s++}let i=new iB;return iK(i,t),i.setData(t,e),i}catch(t){throw M("AnimationManager:\n",t),Error("Could not register animation")}}function iW(t,e,s){if(b)return;let i=[...document.getElementsByClassName("lottie"),...document.getElementsByClassName("bodymovin")],{length:r}=i;for(let e=0;e<r;e++)iH(i[e],t)}function iY(){!iR&&iG&&iV&&!b&&(requestAnimationFrame(iJ),iV=!1)}function iU(){iG++,iY()}function iJ(t){iO=t,b||requestAnimationFrame(iZ)}function iX({target:t}){let e=0;if(!t)throw Error("No animation to remove");for(;e<iz;)iq[e]?.animation===t&&(iq.splice(e,1),e--,iz-=1,t.isPaused||iQ()),e++}function iZ(t){let e=t-iO;for(let t=0;t<iz;t++)iq[t].animation.advanceTime(e);iO=t,!iG||iR||iV?iV=!0:b||requestAnimationFrame(iZ)}function iK(t,e){t.addEventListener(ti.Destroy,iX),t.addEventListener(ti.Active,iU),t.addEventListener(ti.Idle,iQ),iq.push({animation:t,elem:e}),iz++}function iQ(){iG--}let i0=(t,e,s,i)=>[-t+3*e-3*s+i,3*t-6*e+3*s,-3*t+3*e,t],i1=(t,e,s)=>t*(1-s)+e*s,i2=(t,e,s)=>[i1(t[0],e[0],s),i1(t[1],e[1],s)],i3=(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}},i5=t=>{let e=t.bez.split(.5);if(!e[0]||!e[1])throw Error("Could not set PolynomialBezier");return[i3(e[0],t.t1,t.t),i3(e[1],t.t,t.t2)]},i4=(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=i5(t),o=i5(e);if(!n[0]||!n[1]||!o[0]||!o[1])throw Error("Could not set IntersectData");i4(n[0],o[0],s+1,i,r,a),i4(n[0],o[1],s+1,i,r,a),i4(n[1],o[0],s+1,i,r,a),i4(n[1],o[1],s+1,i,r,a)},i6=t=>new i8(t,t,t,t,!1);class i8{constructor(t,e,s,i,r){let a=e,n=s;r&&C(t,a)&&(a=i2(t,i,1/3)),r&&C(n,i)&&(n=i2(t,i,2/3));const o=i0(t[0],a[0],n[0],i[0]),h=i0(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(E(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 E(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 i4(i3(this,0,1),i3(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[i6(this.points[0]),this];if(t>=1)return[this,i6(this.points[this.points.length-1])];let e=i2(this.points[0],this.points[1],t),s=i2(this.points[1],this.points[2],t),i=i2(this.points[2],this.points[3],t),r=i2(e,s,t),a=i2(s,i,t),n=i2(r,a,t);return[new i8(this.points[0],e,r,n,!0),new i8(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 i9(t,e){let s=(e+1)%t.length();return new i8(t.v[e],t.o[e],t.i[s],t.v[s],!0)}class i7 extends tY{addShape(t){if(this.closed)return;t.sh?.container?.addDynamicProperty(t.sh);let e={data:t,localShapeCollection:t7(),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 rt=(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)],re=(t,e,s)=>[t[0]+Math.cos(e)*s,t[1]-Math.sin(e)*s],rs=(t,e,s)=>{let i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[re(t,i,s),re(e,i,s)]},ri=(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=rt(rt(r,a),rt(n,o));return E(h[2]??0)?null:[(h[0]??0)/(h[2]??0),(h[1]??0)/(h[2]??0)]},rr=(t,e)=>Math.hypot(t[0]-e[0],t[1]-e[1]),ra=(t,e,s,i,r)=>{let a=e.points[3],n=s.points[0];if(3===i||C(a,n))return a;if(2===i){let i=-e.tangentAngle(1),r=-s.tangentAngle(0)+Math.PI,o=ri(a,re(a,i+Math.PI/2,100),n,re(n,i+Math.PI/2,100)),h=o?rr(o,a):rr(a,n)/2,l=re(a,i,2*h*.5519);return t.setXYAt(l[0],l[1],"o",t.length()-1),l=re(n,r,2*h*.5519),t.setTripleAt(n[0],n[1],n[0],n[1],l[0],l[1],t.length()),n}let o=C(a,e.points[2])?e.points[0]:e.points[2],h=C(n,s.points[1])?s.points[3]:s.points[1],l=ri(o,a,n,h);return l&&rr(l,a)<r?(t.setTripleAt(l[0],l[1],l[0],l[1],l[0],l[1],t.length()),l):a},rn=(t,e)=>{let s,i=(s=rs(t.points[0],t.points[1],e))[0],r=s[1],a=(s=rs(t.points[1],t.points[2],e))[0],n=s[1],o=(s=rs(t.points[2],t.points[3],e))[0],h=s[1],l=ri(i,r,a,n);l=l??r;let p=ri(o,h,a,n);return new i8(i,l,p=p??o,h)},ro=(t,e)=>{let s,i,r,a=t.inflectionPoints();if(0===a.length)return[rn(t,e)];if(1===a.length||w(a[1]??0,1))return s=(r=t.split(a[0]??0))[0],i=r[1],[rn(s,e),rn(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],[rn(s,e),rn(o,e),rn(i,e)]},rh=(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},rl=(t,e)=>{let s=[...t],i=[...e],r=rh(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=rh(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 rp extends i7{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=t1.getProp(t,e.a,0,null,this),this.miterLimit=t1.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=t4();r.c=t.c;let a=t.length();t.c||(a-=1);let n,o=[];for(let s=0;s<a;s++)n=i9(t,s),o.push(ro(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 i8(t.v[s],t.i[s],t.o[e],t.v[e],!0)}(t,s),o.push(ro(n,e));o=(t=>{let e;for(let s=1;s<t.length;s++)e=rl(t[s-1],t[s]),t[s-1]=e[0],t[s]=e[1];return t.length>1&&(e=rl(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=ra(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&&C(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&&ra(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 rm extends i7{initModifierProperties(t,e){this.getValue=this.processKeys,this.amount=t1.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],m=t._length;for(s=0;s<m;s++)p[0]+=t.v[s]?.[0]??0,p[1]+=t.v[s]?.[1]??0;p[0]/=m,p[1]/=m;let c=t4();for(c.c=t.c,s=0;s<m;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),c.setTripleAt(i,r,a,n,o,h,s);return c}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 rc extends i7{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===tn.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=t1.getProp(t,e.c,0,null,this),this.o=t1.getProp(t,e.o,0,null,this),e.tr&&(this.tr=eM.getTransformProperty(t,e.tr,this),this.so=t1.getProp(t,e.tr.so,0,.01,this),this.eo=t1.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:"gr"};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:tn.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 m=Number(this.o?.v),c=m%1,d=m>0?Math.floor(m):Math.ceil(m),u=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(m>0){for(;y<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y++;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),y+=c)}else if(m<0){for(;y>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y--;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),y-=c)}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(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[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===tn.Group&&e&&this.resetElements(e)}}constructor(...t){super(...t),this.arr=[],this.data=void 0,this.elemsData=[],this._elements=[],this._groups=[]}}class rd extends i7{initModifierProperties(t,e){this.getValue=this.processKeys,this.rd=t1.getProp(t,e.r,0,null,this),this._isAnimated=this.rd.effectsSequence.length>0}processPath(t,e){let s=t4();s.c=t.c;let i=t._length,r,a,n,o,h,l,p=0,m,c,d,u,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,m=f=r[0]+(o[0]-r[0])*l,c=g=r[1]-(r[1]-o[1])*l,d=m-(m-r[0])*.5519,u=c-(c-r[1])*.5519,s.setTripleAt(m,c,d,u,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,m=d=r[0]+(o[0]-r[0])*l,c=u=r[1]+(o[1]-r[1])*l,f=m-(m-r[0])*.5519,g=c-(c-r[1])*.5519,s.setTripleAt(m,c,d,u,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 ru extends i7{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,m,c,d,u=[],f,g=!0;i?(c=i._length,f=i._length):(i=t4(),c=0,f=0),u.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+(m=s[h-1]).addedLength<e.s){p+=m.addedLength,i.c=!1;continue}if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+m.addedLength?(this.addSegment(n[t]?.v[h-1],n[t]?.o[h-1],n[t]?.i[h],n[t]?.v[h],i,c,g),g=!1):(d=t$(n[t]?.v[h-1],n[t]?.v[h],n[t]?.o[h-1],n[t]?.i[h],(e.s-p)/m.addedLength,(e.e-p)/m.addedLength,s[h-1]),this.addSegmentFromArray(d,i,c,g),g=!1,i.c=!1),p+=m.addedLength,c++}if(n[t]?.c&&s.length>0){if(m=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,c,g),g=!1):(d=t$(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(d,i,c,g),g=!1,i.c=!1)}else i.c=!1;p+=m.addedLength,c++}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=t4(),g=!0,u.push(i),c=0)}return u}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=t1.getProp(t,e.s,0,.01,this),this.e=t1.getProp(t,e.e,0,.01,this),this.o=t1.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 m,c,d=[];for(let e=0;e<p;e++)if(m=this.shapes[e],m.shape?._mdf||this._mdf||t||2===this.m){if(i=m.shape?.paths,a=i?._length||0,h=0,!m.shape?._mdf&&m.pathsData.length>0)h=m.totalShapeLength;else{for(n=this.releasePathsData(m.pathsData),r=0;r<a;r++)i&&(o=tN(i.shapes[r]),n.push(o),h+=o.totalLength);m.totalShapeLength=h,m.pathsData=n}l+=Number(h),m.shape&&(m.shape._mdf=!0)}else m.shape&&(m.shape.paths=m.localShapeCollection);let u=e,f=s,g=0,y;for(let t=p-1;t>=0;t--)if(m=this.shapes[t],m.shape?._mdf){if(!(c=m.localShapeCollection))throw Error(`${this.constructor.name}: Could not set localShapeCollection`);for(c.releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,s,m.totalShapeLength||0,g,l),g+=Number(m.totalShapeLength)):y=[[u,f]],a=y.length,r=0;r<a;r++){u=y[r]?.[0]??0,f=y[r]?.[1]??0,d.length=0,f<=1?d.push({e:Number(m.totalShapeLength)*f,s:Number(m.totalShapeLength)*u}):u>=1?d.push({e:Number(m.totalShapeLength)*(f-1),s:Number(m.totalShapeLength)*(u-1)}):d.push({e:Number(m.totalShapeLength),s:Number(m.totalShapeLength)*u},{e:Number(m.totalShapeLength)*(f-1),s:0});let t={e:0,s:0},e=this.addShapes(m,d[0]??t);if(d[0]?.s!==d[0]?.e){if(d.length>1){let s=m.shape.paths?.shapes[m.shape.paths._length-1];if(s?.c){let s=e.pop();this.addPaths(e,c),e=this.addShapes(m,d[1]??t,s)}else this.addPaths(e,c),e=this.addShapes(m,d[1]??t)}this.addPaths(e,c)}}m.shape.paths=c}}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++)tI.release(t[s]);return t.length=0,t}}let rf=(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())},rg=(t,e,s,i,r,a,n)=>{let o,h,l,p,m,c,d,u=(l=0===s?e.length()-1:s-1,p=(s+1)%e.length(),m=e.v[l],c=e.v[p],o=[c[0]-m[0],c[1]-m[1]],Math.atan2(0,1)-Math.atan2((d=[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],d[0])),f=e.v[s%e._length],g=e.v[0===s?e._length-1:s-1],y=e.v[(s+1)%e._length],b=2===a?Math.sqrt(Math.pow(f[0]-g[0],2)+Math.pow(f[1]-g[1],2)):0,v=2===a?Math.sqrt(Math.pow(f[0]-y[0],2)+Math.pow(f[1]-y[1],2)):0;rf(t,e.v[s%e._length]??[0,0],u,n,i,v/((r+1)*2),b/((r+1)*2))},ry=(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);rf(t,e.point(o),l,n,s,h/((i+1)*2),h/((i+1)*2)),n=-n}return n};class rb extends i7{initModifierProperties(t,e){this.getValue=this.processKeys,this.amplitude=t1.getProp(t,e.s,0,null,this),this.frequency=t1.getProp(t,e.r,0,null,this),this.pointsType=t1.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=t4();if(a.c=t.c,t.c||(r-=1),0===r)return a;let n=-1,o=i9(t,0);rg(a,t,0,e,s,i,n);for(let h=0;h<r;h++)n=ry(a,o,e,s,i,-n),o=h!==r-1||t.c?i9(t,(h+1)%r):null,rg(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)}}b||("complete"===document.readyState?iW():addEventListener("DOMContentLoaded",()=>{iW()},{once:!0}));class rv{init(t){this.effectsManager=t,this.type=to.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 r_={};(()=>{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];r_[e]=Math[e]}})(),r_.random=Math.random,r_.abs=t=>{if($(t)){let e=tc(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 rx{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;const h=this.S;for(r||(i=[r++]);a<e;)h[a]=a++;for(a=0;a<this._width;a++)h[a]=h[n=this._mask&n+(i[a%r]??0)+(o=h[a]??0)]??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,i=i*this._width+(r[this._mask&(r[this.i]=r[this.j=this._mask&this.j+s]??0)+(r[this.j]=s)]??0);return i}}function rw(t,e){return e.i=t.i,e.j=t.j,e.S=[...t.S],e}function rE(t){return String.fromCharCode.apply(0,t)}let rC={};!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;)e[255&r]=255&(i^=(e[255&r]??0)*19)+s.charCodeAt(r++);return rE(e)}e[`seed${s}`]=function(o,h,l){let p=h,m=[],c=o,d=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`}(c=(p=!0===p?{entropy:!0}:p??{})&&p.entropy?[o??"",rE(t)]:c??function(){try{let t=new Uint8Array(256);return global.crypto.getRandomValues(t),rE(t)}catch(i){let{navigator:{plugins:e},screen:s}=global;return[Date.now(),global,e,s,rE(t)]}}(),3),m),u=new rx(m,256,255),f=()=>{let t=u.g(6),e=i,s=0;for(;t<r;)t=(t+s)*256,e*=256,s=u.g(1);for(;t>=a;)t/=2,e/=2,s>>>=1;return(t+s)/e};f.int32=()=>0|u.g(4),f.quick=()=>u.g(4)/0x100000000,f.double=f,n(rE(u.S),t);let g=(t,i,r,a)=>(a&&(rw(a,u),t.state=()=>rw(u,{})),r)?(e[s]=f,i):t;return p&&p.pass?g=p.pass:l&&(g=l),g(f,d,p&&"global"in p?p.global:this===e,p?p.state:void 0)},n(e.random(),t)}([],r_);let rS=[0,0,0,0,0,0],rk=tH(.333,0,.833,.833,"easeIn").get,rM=tH(.33,0,.667,1,"easeInOut").get,rP=tH(.167,.167,.667,1,"easeOut").get,rA=(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},rD=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=rA(o,t,r+1/3),s=rA(o,t,r),i=rA(o,t,r-1/3)}return[e,s,i,t[3]??0]},rT=t=>{let e=t[0],s=t[1],i=t[2],r=r_.max(e,s,i),a=r_.min(e,s,i),n=0,o,h=(r+a)/2;if(r===a)n=0,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 rI(t){let e=typeof t;if("number"===e||t instanceof Number||"boolean"===e)return-t;if(rz(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 rF(t,e,s,i){let r,a,{length:n}=t,o=t4();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 rL(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(rz(o)&&rz(h)){let t,e=o.length,s=tm(tt.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 r$(t,e,s,i,r){return rL(rP,t,e,s,i,r)}function rN(t,e,s,i,r){return rL(rk,t,e,s,i,r)}function rB(t,e,s,i,r){return rL(rM,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(tt.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 rV(t){return rq(t,rH(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(tt.Float32,t));let e=tm(tt.Float32,t),r=r_.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)+r_.random()*(i-s)}function rz(t){return"object"==typeof t&&null!==t&&(t.constructor===Array||t.constructor===Float32Array)}function rG(t){return t*f}function rq(t,e){let s,i,r,a=typeof t,n=typeof e;if(rj(a,t)&&rj(n,e))return Number(t)/Number(e);if(rz(t)&&rj(n,e)){for(r=t.length,s=tm(tt.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)/Number(e);return s}if(rj(a,t)&&rz(e)){for(r=e.length,s=tm(tt.Float32,r),i=0;i<r;i+=1)s[i]=Number(t)/(e[i]??0);return s}return 0}function rj(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function rH(t,e){let s,i=e;if("number"==typeof t||t instanceof Number)return i=i||0,r_.abs(Number(t)-Number(i));i||(i=rS);let r=r_.min(t.length,i.length),a=0;for(s=0;s<r;s+=1)a+=r_.pow((i[s]??0)-(t[s]??0),2);return r_.sqrt(a)}function rW(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 rY(t,e){let s,i,r,a=typeof t,n=typeof e;if(rj(a,t)&&rj(n,e))return Number(t)*Number(e);if(rz(t)&&rj(n,e)){for(r=t.length,s=tm(tt.Float32,r),i=0;i<r;i+=1)s[i]=(t[i]??0)*Number(e);return s}if(rj(a,t)&&rz(e)){for(r=e.length,s=tm(tt.Float32,r),i=0;i<r;i++)s[i]=Number(t)*(e[i]??0);return s}return 0}function rU(t){return t}function rJ(t){return t/f}function rX(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rj(r,s)&&rj(a,i))return"string"===r&&(s=parseInt(s,10)),"string"===a&&(i=parseInt(i,10)),s-i;if(rz(s)&&rj(a,i))return s=[...s],s[0]-=Number(i),s;if(rj(r,s)&&rz(i))return(i=[...i])[0]=Number(s)-i[0],i;if(rz(s)&&rz(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 rZ(t,e){let s=t,i=e,r=typeof s,a=typeof i;if(rj(r,s)&&rj(a,i)||"string"===r||"string"===a)return Number(s)+Number(i);if(rz(s)&&rj(a,i))return s=[...s],s[0]+=Number(i),s;if(rj(r,s)&&rz(i))return(i=[...i])[0]=s+i[0],i;if(rz(s)&&rz(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 rK={initiateExpression:function(t,e,s){if(!t.globalData?.renderConfig?.runExpressions)return rU;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:m=0,ty:c}=t.data,d,u,g,y=0,b;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 v=o/t.comp.globalData.frameRate,_=l/t.comp.globalData.frameRate,x=null,w=null,E=null,C=null,S,M=null,P,A=null,D=null,T=null,I=null,F=null,L=null,N,B={},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",`
|
|
6
6
|
${r}
|
|
7
|
-
obj.scoped_bm_rt = $bm_rt;`),V=0,O,z=null,G,q,j,H,W=s.kf?i.length:0,Y=e.ix,U=!this.data||!0!==this.data.hd,J=(t=5,e=20)=>{let{pv:s}=this,i=$(s)?s.length:1,r=tm(tt.Float32,i),a=r_.floor(V*t),n=0;for(;n<a;){for(let t=0;t<i;t++)r[t]=(r[t]??0)+-e+2*e*r_.random();n++}let o=V*t,h=o-r_.floor(o),l=tm(tt.Float32,i);if(i>1){for(let t=0;t<i;t++)l[t]=s[t]+r[t]+(-e+2*e*r_.random())*h;return l}return s+r[0]+(-e+2*e*r_.random())*h};function X(t,e){S(t,e,!0)}function Z(t,e){P(t,e,!0)}s.loopIn&&(M=S=s.loopIn.bind(s)),s.loopOut&&(A=P=s.loopOut.bind(s)),s.smooth&&(T=s.smooth.bind(s));let K=this.getValueAtTime.bind(this),Q=this.getVelocityAtTime.bind(this),{frameRate:te,projectInterface:ts}=t.comp.globalData;function ti(t,e){let s=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=r_.atan2(s[0],r_.sqrt(s[1]*s[1]+s[2]*s[2]))/f;return[-r_.atan2(s[1],s[2])/f,i,0]}function tr(t){let s,r,a=t,n,o=i.length;if(0===i.length||"number"==typeof i[0])s=0,r=0;else if(s=-1,(a*=te)<(i[0]?.t??0))s=1,r=i[0]?.t??0;else{for(n=0;n<o-1;n+=1)if(a===i[n]?.t){s=n+1,r=i[n]?.t??0;break}else if(a>(i[n]?.t??0)&&a<(i[n+1]?.t??0)){a-(i[n]?.t??0)>(i[n+1]?.t??0)-a?(s=n+2,r=i[n+1]?.t??0):(s=n+1,r=i[n]?.t??0);break}-1===s&&(s=n+1,r=e.k[n]?.t??0)}return{index:s,time:r||0/te}}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)/te,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=te),t/s}function to(t,e){let s=t,i=e;return s||0===s||(s=V),i||(i=te),s*i}function tl(t){r_.seedrandom(y+t)}function tp(){return t.sourceRectAtTime()}function tc(t,e){return"string"==typeof z?void 0===e?z.slice(r_.max(0,t)):z.slice(t,e):""}function td(t,e){return"string"==typeof z?void 0===e?z.slice(t):z.slice(t,e):""}let tu=t.data.ind,tf=t.hierarchy.length>0,tg=null;y=r_.floor(1e6*r_.random());let{globalData:ty}=t;function tb(t){z=K(V=0===t?0:r_.floor(V*t)/t)}return function(e){return(z=e,this.frameExpressionId===ty.frameId&&this.propType!==th.TextSelector)?z:(this.propType===th.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,C=N?.fromWorld.bind(N)??null,w=N?.fromComp.bind(N)??null,F=N?.toComp.bind(N)??null,D=N?.mask??null,E=w),!b&&(d=b=t.layerInterface?.getInterface("ADBE Transform Group"),b&&(x=b.anchorPoint)),4!==c||u||(u=N?.getInterface("ADBE Root Vectors Group")),g=g??N?.getInterface(4),t.hierarchy.length>0&&!tg&&(tg=t.hierarchy[0]?.layerInterface??null),V=(this.comp?.renderedFrame??0)/(this.comp?.globalData?.frameRate??60),n&&tl(y+V),a&&(O=Q(V)),R(rC,rq,rW,rY,rI,rX,rZ,d,U,rZ,x,k,ts,u,rF,rJ,rG,rq,null,rB,rN,r$,g,null,null,tn,w,E,C,ty,p,rD,tu,v,ta,rH,rR,ti,M,A,S,X,P,Z,D,rW,rY,h,tr,rV,W,B,_,null,tb,Y,rJ,rJ,rO,y,rT,null,null,tl,H,T,tp,rX,td,tc,G,q,j,I,N,s,V,to,F,L,b,z,K,O,m,J,null,null),this.frameExpressionId=ty.frameId,B.scoped_bm_rt?.propType===th.Shape?B.scoped_bm_rt.v:B.scoped_bm_rt)}},resetFrame:function(){rC={}}},rQ={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)}else i=0;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(tt.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=rK.initiateExpression,s.effectsSequence.push(s.initiateExpression(t,e,s).bind(s)))},setGroupProperty:function(t){this.propertyGroup=t}};class r0 extends ei{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=tN(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=tq(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=tc(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=rQ.getStaticValueAtTime,this.setGroupProperty=rQ.setGroupProperty}}let r1=(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]??""])}};function r2(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 m=t?t.toLowerCase():"",c=o.renderedFrame,d=l[l.length-1]?.t??0,{frameRate:u}=h.comp.globalData??{frameRate:60};if(c<=d)return p;let f,g=0;switch(s?f=n?Math.abs(d-u*n):Math.max(0,d-h.data.ip):((!n||n>l.length-1)&&(n=l.length-1),f=d-(g=l[l.length-1-n]?.t??0)),m){case"pingpong":if(Math.floor((c-g)/f)%2!=0)return this.getValueAtTime((f-(c-g)%f+g)/u,0);break;case"offset":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime(d/u,0),s=this.getValueAtTime(((c-g)%f+g)/u,0),n=Math.floor((c-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(d/u,0),e=this.getValueAtTime((d-.001)/u,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])*((c-d)/u)/5e-4;return a}return t+(c-d)/.001*(t-e)}}return this.getValueAtTime(((c-g)%f+g)/u,0)}function r3(t,e,s){let i,r,a,n,o;if(!this.k)return this.pv;let h=e,{comp:l,elem:p,keyframes:m=[],pv:c}=this;if(!p?.comp)throw Error("Element is not implemented");if(!l)throw Error("Comp is not implemented");let{frameRate:d}=p.comp.globalData??{frameRate:60},u=t?t.toLowerCase():"",f=l.renderedFrame,g=m[0]?.t??0;if(f>=g)return c;switch(s?(i=h?Math.abs(d*h):Math.max(0,p.data.op-g),r=g+i):((!h||h>m.length-1)&&(h=m.length-1),i=(r=m[h]?.t??0)-g),u){case"pingpong":if(Math.floor((g-f)/i)%2==0)return this.getValueAtTime(((g-f)%i+g)/d,0);break;case"offset":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime(r/d,0),s=this.getValueAtTime((i-(g-f)%i+g)/d,0),h=Math.floor((g-f)/i)+1;if($(c)&&$(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/d,0),e=this.getValueAtTime((g+.001)/d,0);if($(c)&&$(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))/d,0)}function r5(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,m=p-h,c=l>1?(p+h-m)/(l-1):1,d=0,u,f;for(f=$(a)?tm(tt.Float32,a.length):0;d<l;){if(s=this.getValueAtTime(m+d*c),$(a)&&$(f)&&$(s)){for(u=0;u<a.length;u++)f[u]+=s[u];d++;continue}f+=s,d++}if($(a)&&$(f)){for(u=0;u<a.length;u+=1)f[u]/=l;return f}return f/l}function r4(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 r6(){return this.v.clone(new td)}function r8(t,e){this._cachingAtTime=this._cachingAtTime??{lastIndex:0,lastTime:-999999,shapeValue:t8(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 r9{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:r7}=rK,at={initExpressions:function(t){let e=0,s=[];if(!t.renderer.globalData)throw Error("Renderer -> GlobalData is not set");t.renderer.compInterface=new r9(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:r7};function ae(){return this.data.d?.x?(this.calculateExpression=rK.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}class as{completeProperty(t,e,s){Object.defineProperty(t,"velocity",{get:()=>e.getVelocityAtTime(e.comp?.currentFrame??0)}),t.numKeys=e.keyframes?.length??0,t.key=function(i){let r;if(!t.numKeys)return 0;e.keyframes&&(r="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s);let a=s===th.UniDimensional?new Number(r):{...r};return a.time=Number(e.keyframes?.[i-1].t)/(e.elem?.comp?.globalData?.frameRate??60),a.value=s===th.UniDimensional?r[0]:r,a},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===th.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(tt.Float32,i),a=tm(tt.Float32,i);return r.value=a,this.completeProperty(r,e,"multidimensional"),function(){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=e.pv*s,r=new Number(i);return r.value=i,this.completeProperty(r,e,th.UniDimensional),()=>(e.k&&e.getValue(),i=e.v*s,r.value!==i&&((r=new Number(i)).value=i,r[0]=i,this.completeProperty(r,e,th.UniDimensional)),r)}constructor(){this.defaultMultidimensionalValue={mult:1,pv:[0,0,0],v:[0,0,0]},this.defaultUnidimensionalValue={mult:1,pv:0,v:0}}}function ai(t){return new as().getInterface(t)}class ar{constructor(t,e){this.interfaceFunction=t,this.parentPropertyGroup=e}getInterface(t=1){return t<=0?this.interfaceFunction:this.parentPropertyGroup(t-1)}}class aa{constructor(t,e){this._name=t,this.propertyGroup=e}getInterface(t){return t<=0?this:this.propertyGroup(t-1)}}class an{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 ao{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 ah{constructor(t,e){this.maskManager=t,this._masksInterfaces=tc(t.viewData.length);const{length:s}=t.viewData;for(let e=0;e<s;e++)this._masksInterfaces[e]=new ao(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 al{get anchorPoint(){return ai(this.transform.a)}get opacity(){return ai(this.transform.o)}get orientation(){return ai(this.transform.or)}get position(){return this.transform.p?this._transformFactory?.():[this._px?.(),this._py?.(),this._pz?.()??0]}get rotation(){return ai(this.transform.r??this.transform.rz)}get scale(){return ai(this.transform.s)}get skew(){return ai(this.transform.sk)}get skewAxis(){return ai(this.transform.sa)}get xPosition(){return ai(this.transform.px)}get xRotation(){return ai(this.transform.rx)}get yPosition(){return ai(this.transform.py)}get yRotation(){return ai(this.transform.ry)}get zPosition(){return ai(this.transform.pz)}get zRotation(){return ai(this.transform.rz??this.transform.r)}constructor(t){this.transform=t,t.p?this._transformFactory=ai(t.p):(this._px=ai(t.px),this._py=ai(t.py),t.pz&&(this._pz=ai(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 ap{getInterface(t){throw Error("Method not implemented")}}class am extends ap{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 ac extends ap{get position(){return ai(this.prop?.p)}get size(){return ai(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 ad extends ap{get color(){return ai(this.c)}get opacity(){return ai(this.o)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:null}}class au extends ap{get endPoint(){return ai(this.prop?.e)}get opacity(){return ai(this.prop?.o)}get startPoint(){return ai(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 af extends ap{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 ag extends ap{get position(){return ai(this.prop?.p)}get roundness(){return ai(this.prop?.r)}get size(){return ai(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 ay extends ap{get copies(){return ai(this.prop?.c)}get offset(){return ai(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 ab extends ap{get radius(){return ai(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 av{get path(){return this.prop?.k&&this.prop.getValue(),this.prop}get shape(){return this.path}constructor(t,e,s){this.prop=e.sh;const i=new ar(this,s);this.prop?.setGroupProperty(new aa("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 a_ extends ap{get innerRadius(){return ai(this.prop?.ir)}get innerRoundness(){return ai(this.prop?.is)}get outerRadius(){return ai(this.prop?.or)}get outerRoundness(){return ai(this.prop?.os)}get points(){return ai(this.prop?.pt)}get position(){return ai(this.prop?.p)}get rotation(){return ai(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 ax extends ap{get color(){return ai(this.prop?.c)}get dash(){return this.dashOb}get opacity(){return ai(this.prop?.o)}get strokeWidth(){return ai(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 aw extends ap{get anchorPoint(){return ai(this.prop?.transform?.mProps.a)}get opacity(){return ai(this.prop?.transform?.mProps.o)}get position(){return ai(this.prop?.transform?.mProps.p)}get rotation(){return ai(this.prop?.transform?.mProps.r)}get scale(){return ai(this.prop?.transform?.mProps.s)}get skew(){return ai(this.prop?.transform?.mProps.sk)}get skewAxis(){return ai(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 aE extends ap{get end(){return ai(this.prop?.e)}get offset(){return ai(this.prop?.o)}get start(){return ai(this.prop?.s)}getInterface(t){return t===this.shape?.e?.ix||"End"===t||"end"===t?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 aC={comp:r9,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 an(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 ar(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=ai(t.p);return t.p?.setGroupProperty&&t.p.setGroupProperty(new aa("",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 al(t.finalTransform.mProp);const{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;const{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 ah(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 ar(this,this.parentGroupWrapper),this.interfaces=this.iterateElements(t,e,this.propertyGroup),this.numProperties=this.interfaces.length}contentsInterfaceFactory(t,e,s){am.prototype.propertyGroup=new ar(am,s),this.interfaces=this.iterateElements(t.it??null,e.it,am.prototype.propertyGroup),am.prototype.numProperties=this.interfaces.length;let i=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],am.prototype.propertyGroup);return am.prototype.transform=i,am.prototype.propertyIndex=t.cix,am.prototype._name=t.nm,am.prototype.getInterface}defaultInterfaceFactory(){return this.noOp}ellipseInterfaceFactory(t,e,s){let i=new ar(ac,s);ac.prototype.shape=t,ac.prototype.propertyIndex=t.ix;let r=e.sh?.ty===tn.Trim?e.sh.prop:e.sh;return r.s.setGroupProperty(new aa("Size",i)),r.p?.setGroupProperty(new aa("Position",i)),ac.prototype._name=t.nm,ac.prototype.prop=r,ac.prototype.mn=t.mn,ac.prototype.getInterface}fillInterfaceFactory(t,e,s){return ad.prototype._name=t.nm,ad.prototype.c=e.c,ad.prototype.mn=t.mn,ad.prototype.o=e.o,e.c?.setGroupProperty(new aa("Color",s)),e.o?.setGroupProperty(new aa("Opacity",s)),ad.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 au.prototype._name=t.nm,au.prototype.prop=e,au.prototype.mn=t.mn,e.s?.setGroupProperty(new aa("Start Point",s)),e.e?.setGroupProperty(new aa("End Point",s)),e.o?.setGroupProperty(new aa("Opacity",s)),au.prototype.getInterface}groupInterfaceFactory(t,e,s){af.prototype.propertyGroup=new ar(af,s);let i=this.contentsInterfaceFactory(t,e,af.prototype.propertyGroup),r=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],af.prototype.propertyGroup);return af.prototype.content=i,af.prototype.transform=r,af.prototype.shape=t,af.prototype.numProperties=t.np,af.prototype.propertyIndex=t.ix,af.prototype.nm=t.nm,af.prototype.mn=t.mn,af.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 tn.Group:i.push(this.groupInterfaceFactory(t[a],e[a],s));break;case tn.Fill:i.push(this.fillInterfaceFactory(t[a],e[a],s));break;case tn.Stroke:i.push(this.strokeInterfaceFactory(t[a],e[a],s));break;case tn.Trim:i.push(this.trimInterfaceFactory(t[a],e[a],s));break;case tn.Transform:break;case tn.Ellipse:i.push(this.ellipseInterfaceFactory(t[a],e[a],s));break;case tn.PolygonStar:i.push(this.starInterfaceFactory(t[a],e[a],s));break;case tn.Path:i.push(new av(t[a],e[a],s));break;case tn.Rectangle:i.push(this.rectInterfaceFactory(t[a],e[a],s));break;case tn.RoundedCorners:i.push(this.roundedInterfaceFactory(t[a],e[a],s));break;case tn.Repeater:i.push(this.repeaterInterfaceFactory(t[a],e[a],s));break;case tn.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){ag.prototype.shape=t;let i=new ar(ag,s),r=e.sh?.ty===tn.Trim?e.sh.prop:e.sh;return ag.prototype.propertyIndex=t.ix,r.p?.setGroupProperty(new aa("Position",i)),r.s.setGroupProperty(new aa("Size",i)),r.r.setGroupProperty(new aa("Rotation",i)),ag.prototype.prop=r,ag.prototype._name=t.nm,ag.prototype.mn=t.mn,ag.prototype.getInterface}repeaterInterfaceFactory(t,e,s){ay.prototype.shape=t,ay.prototype.propertyIndex=t.ix,ay.prototype._name=t.nm,ay.prototype.mn=t.mn;let i=new ar(ay,s);return ay.prototype.prop=e,e.c?.setGroupProperty(new aa("Copies",i)),e.o?.setGroupProperty(new aa("Offset",i)),ay.prototype.getInterface}roundedInterfaceFactory(t,e,s){ab.prototype.shape=t,ab.prototype._name=t.nm,ab.prototype.propertyIndex=t.ix,ab.prototype.mn=t.mn;let i=new ar(ab,s);return e.rd.setGroupProperty(new aa("Radius",i)),ab.prototype.getInterface}starInterfaceFactory(t,e,s){a_.prototype.shape=t;let i=new ar(a_,s),r=e.sh?.ty===tn.Trim?e.sh.prop:e.sh;return a_.prototype.propertyIndex=t.ix,r.or.setGroupProperty(new aa("Outer Radius",i)),r.os.setGroupProperty(new aa("Outer Roundness",i)),r.pt.setGroupProperty(new aa("Points",i)),r.p.setGroupProperty(new aa("Position",i)),r.r.setGroupProperty(new aa("Rotation",i)),t.ir&&(r.ir.setGroupProperty(new aa("Inner Radius",i)),r.is.setGroupProperty(new aa("Inner Roundness",i))),a_.prototype._name=t.nm,a_.prototype.prop=r,a_.prototype.mn=t.mn,a_.prototype.getInterface}strokeInterfaceFactory(t,e,s){let i={},r=new ar(ax,s),a=new ar(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:ai(e.d.dataProps[o].p)}),e.d.dataProps[s].p.setGroupProperty(a)}return ax.prototype._name=t.nm,ax.prototype.mn=t.mn,ax.prototype.dashOb=i,ax.prototype.prop=e,e.c?.setGroupProperty(new aa("Color",r)),e.o?.setGroupProperty(new aa("Opacity",r)),e.w?.setGroupProperty(new aa("Stroke Width",r)),ax.prototype.getInterface}transformInterfaceFactory(t,e,s){aw.prototype.shape=t;let i=new ar(aw,s);return e.transform?.mProps.o?.setGroupProperty(new aa("Opacity",i)),e.transform?.mProps.p?.setGroupProperty(new aa("Position",i)),e.transform?.mProps.a?.setGroupProperty(new aa("Anchor Point",i)),e.transform?.mProps.s?.setGroupProperty(new aa("Scale",i)),e.transform?.mProps.r?.setGroupProperty(new aa("Rotation",i)),e.transform?.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(new aa("Skew",i)),e.transform.mProps.sa?.setGroupProperty(new aa("Skew Angle",i))),e.transform?.op.setGroupProperty(new aa("Opacity",i)),aw.prototype._name=t.nm,aw.prototype.prop=e,aw.prototype.ty=tn.Transform,aw.prototype.mn=t.mn,aw.prototype.propertyGroup=s,aw.prototype.getInterface}trimInterfaceFactory(t,e,s){aE.prototype.shape=t;let i=new ar(aE,s);return aE.prototype.propertyIndex=t.ix,e.s?.setGroupProperty(new aa("Start",i)),e.e?.setGroupProperty(new aa("End",i)),e.o?.setGroupProperty(new aa("Offset",i)),aE.prototype.propertyIndex=t.ix,aE.prototype.propertyGroup=s,aE.prototype._name=t.nm,aE.prototype.prop=e,aE.prototype.mn=t.mn,aE.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||new 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"ADBE Text Document"===t?this.sourceText:null}}};function aS(t){return aC[t]}class ak{createMergeNode(t,e){let s,i=tu("feMerge");i.setAttribute("result",t);let{length:r}=e;for(let t=0;t<r;t++)(s=tu("feMergeNode")).setAttribute("in",e[t]),i.appendChild(s),i.appendChild(s);return i}}let aM=[],aP="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";!function({effects:t,expressions:e,renderers:s}){e?.installPlugin,s.forEach(({renderer:t,rendererType:e})=>{s4[e]=t}),sn(te.TrimModifier,ru),sn(te.PuckerAndBloatModifier,rm),sn(te.RepeaterModifier,rc),sn(te.RoundCornersModifier,rd),sn(te.ZigZagModifier,rb),sn(te.OffsetPathModifier,rp),e?.registerExpressions(),t.forEach(({countsAsEffect:t,effect:e,id:s,isCanvas:i})=>{i?ty[s]={countsAsEffect:void 0,effect:e}:ez[s]={countsAsEffect:t,effect:e}}),e?.installPlugin}({effects:[{countsAsEffect:!0,effect:class extends ak{constructor(t,e,s,i,r){super(),this.filterManager=e;let a=tu("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",`${aP} 1 0`),this.linearFilter=a,a.setAttribute("result",`${i}_tint_1`),t.appendChild(a),(a=tu("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;const 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",`${aP} ${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;const r=tu("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=tu("g");for(r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset","1");e<s;e++)t=tu("path"),r.appendChild(t),this.paths.push({m:e,p:t});if(this.filterManager.effectElements[10]?.p.v===3){let t=tu("mask"),e=S();t.id=e,t.setAttribute("mask-type","alpha"),t.appendChild(r),this.elem.globalData?.defs.appendChild(t);let s=tu("g");for(s.setAttribute("mask",`url(${tg()}#${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:21},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;const r=tu("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);const a=tu("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;const n=tu("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;const o=tu("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;const h=tu("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;const{effectElements:r}=this.filterManager;let a=tu("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=tu("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=tu(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=tc(256),p,m=0,c=r-i,d=e-t;for(;n<=256;)p=(a=n/256)<=o?d<0?r:i:a>=h?d<0?i:r:i+c*Math.pow((a-t)/d,1/s),l[m]=p,m++,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 ak{constructor(t,e,s,i,r){super();const 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;const o=tu("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",`${i}_drop_shadow_1`),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);const h=tu("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);const l=tu("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",`${i}_drop_shadow_3`),this.feFlood=l,t.appendChild(l);const p=tu("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);const m=this.createMergeNode(i,[`${i}_drop_shadow_4`,r]);t.appendChild(m)}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=tu("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}=aM;for(;e<s;){if(aM[e]===t)return aM[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=tu("use");o.setAttribute("href",`#${e}`),s?i.insertBefore(o,s):i.appendChild(o)}setElementAsMask(t,e){if(!this.findSymbol(e)){let s=S(),i=tu("mask");e.layerId&&(i.id=e.layerId),i.setAttribute("mask-type","alpha"),aM.push(e);let{defs:r}=t.globalData??{defs:null};r?.appendChild(i);let a=tu("symbol");a.id=s,this.replaceInParent(e,s),e.layerElement&&a.appendChild(e.layerElement),r?.appendChild(a);let n=tu("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;const r=tu("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 rv{constructor(t,e){super(),this.init(e)}},id:35},{effect:class extends rv{constructor(t){super(),this.init(t)}},id:35,isCanvas:!0}],expressions:{installPlugin:(t,e)=>{"expressions"===t&&eE(e)},registerExpressions:()=>{eE(at),ew.interface=aS,function(){let{getTransformProperty:t}=eM;eM.getTransformProperty=function(e,s,i){let r=t(e,s,i);return r.dynamicProperties.length>0?r.getValueAtTime=r4.bind(r):r.getValueAtTime=r6.bind(r),r.setGroupProperty=rQ.setGroupProperty,r};let e=t1.getProp;t1.getProp=function(t,s,i,r,a){let n=e(t,s,i,r,a);n.kf?n.getValueAtTime=rQ.getValueAtTime.bind(n):n.getValueAtTime=rQ.getStaticValueAtTime.bind(n),n.setGroupProperty=rQ.setGroupProperty,n.loopOut=r2,n.loopIn=r3,n.smooth=r5,n.getVelocityAtTime=rQ.getVelocityAtTime.bind(n),n.getSpeedAtTime=rQ.getSpeedAtTime.bind(n),n.numKeys=s?.a===1?s.k.length:0,n.propertyIndex=s?.ix;let o=0;return 0!==i&&(o=tm(tt.Float32,s?.a===1?s.k[0]?.s.length:(s?.k).length)),n._cachingAtTime={lastFrame:-999999,lastIndex:0,value:o},rQ.searchExpressions(t,s,n),n.k&&a?.addDynamicProperty(n),n};let s=en.getConstructorFunction(),i=en.getKeyframedConstructorFunction();r1([r0],s),r1([r0],i),i.prototype.getValueAtTime=r8,i.prototype.initiateExpression=rK.initiateExpression;let r=en.getShapeProp;en.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?rQ.searchExpressions(t,e.pt,n):4===s&&rQ.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n)),n}}(),sD.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},sD.prototype.searchProperty=function(){let t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=!!(t||e),this.kf},sD.prototype.searchExpressions=ae}},renderers:[{renderer:sj,rendererType:ta.SVG},{renderer:sJ,rendererType:ta.Canvas}]});var aA={},aD=function(t,e,s,i,r){var a=new Worker(aA[e]||(aA[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},aT=Uint8Array,aI=Uint16Array,aF=Int32Array,aL=new aT([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]),a$=new aT([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]),aN=new aT([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),aB=function(t,e){for(var s=new aI(31),i=0;i<31;++i)s[i]=e+=1<<t[i-1];for(var r=new aF(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}},aR=aB(aL,2),aV=aR.b,aO=aR.r;aV[28]=258,aO[258]=28;for(var az=aB(a$,0),aG=az.b,aq=az.r,aj=new aI(32768),aH=0;aH<32768;++aH){var aW=(43690&aH)>>1|(21845&aH)<<1;aW=(61680&(aW=(52428&aW)>>2|(13107&aW)<<2))>>4|(3855&aW)<<4,aj[aH]=((65280&aW)>>8|(255&aW)<<8)>>1}for(var aY=function(t,e,s){for(var i,r=t.length,a=0,n=new aI(e);a<r;++a)t[a]&&++n[t[a]-1];var o=new aI(e);for(a=1;a<e;++a)o[a]=o[a-1]+n[a-1]<<1;if(s){i=new aI(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],m=o[t[a]-1]++<<p,c=m|(1<<p)-1;m<=c;++m)i[aj[m]>>h]=l}else for(i=new aI(r),a=0;a<r;++a)t[a]&&(i[a]=aj[o[t[a]-1]++]>>15-t[a]);return i},aU=new aT(288),aH=0;aH<144;++aH)aU[aH]=8;for(var aH=144;aH<256;++aH)aU[aH]=9;for(var aH=256;aH<280;++aH)aU[aH]=7;for(var aH=280;aH<288;++aH)aU[aH]=8;for(var aJ=new aT(32),aH=0;aH<32;++aH)aJ[aH]=5;var aX=aY(aU,9,0),aZ=aY(aU,9,1),aK=aY(aJ,5,0),aQ=aY(aJ,5,1),a0=function(t){for(var e=t[0],s=1;s<t.length;++s)t[s]>e&&(e=t[s]);return e},a1=function(t,e,s){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&s},a2=function(t,e){var s=e/8|0;return(t[s]|t[s+1]<<8|t[s+2]<<16)>>(7&e)},a3=function(t){return(t+7)/8|0},a5=function(t,e,s){return(null==e||e<0)&&(e=0),(null==s||s>t.length)&&(s=t.length),new aT(t.subarray(e,s))},a4=["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"],a6=function(t,e,s){var i=Error(e||a4[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,a6),!s)throw i;return i},a8=function(t,e,s,i){var r=t.length,a=i?i.length:0;if(!r||e.f&&!e.l)return s||new aT(0);var n=!s,o=n||2!=e.i,h=e.i;n&&(s=new aT(3*r));var l=function(t){var e=s.length;if(t>e){var i=new aT(Math.max(2*e,t));i.set(s),s=i}},p=e.f||0,m=e.p||0,c=e.b||0,d=e.l,u=e.d,f=e.m,g=e.n,y=8*r;do{if(!d){p=a1(t,m,1);var b=a1(t,m+1,3);if(m+=3,b)if(1==b)d=aZ,u=aQ,f=9,g=5;else if(2==b){var v=a1(t,m,31)+257,_=a1(t,m+10,15)+4,x=v+a1(t,m+5,31)+1;m+=14;for(var w=new aT(x),E=new aT(19),C=0;C<_;++C)E[aN[C]]=a1(t,m+3*C,7);m+=3*_;for(var S=a0(E),k=(1<<S)-1,M=aY(E,S,1),C=0;C<x;){var P=M[a1(t,m,k)];m+=15&P;var A=P>>4;if(A<16)w[C++]=A;else{var D=0,T=0;for(16==A?(T=3+a1(t,m,3),m+=2,D=w[C-1]):17==A?(T=3+a1(t,m,7),m+=3):18==A&&(T=11+a1(t,m,127),m+=7);T--;)w[C++]=D}}var I=w.subarray(0,v),F=w.subarray(v);f=a0(I),g=a0(F),d=aY(I,f,1),u=aY(F,g,1)}else a6(1);else{var A=a3(m)+4,L=t[A-4]|t[A-3]<<8,$=A+L;if($>r){h&&a6(0);break}o&&l(c+L),s.set(t.subarray(A,$),c),e.b=c+=L,e.p=m=8*$,e.f=p;continue}if(m>y){h&&a6(0);break}}o&&l(c+131072);for(var N=(1<<f)-1,B=(1<<g)-1,R=m;;R=m){var D=d[a2(t,m)&N],V=D>>4;if((m+=15&D)>y){h&&a6(0);break}if(D||a6(2),V<256)s[c++]=V;else if(256==V){R=m,d=null;break}else{var O=V-254;if(V>264){var C=V-257,z=aL[C];O=a1(t,m,(1<<z)-1)+aV[C],m+=z}var G=u[a2(t,m)&B],q=G>>4;G||a6(3),m+=15&G;var F=aG[q];if(q>3){var z=a$[q];F+=a2(t,m)&(1<<z)-1,m+=z}if(m>y){h&&a6(0);break}o&&l(c+131072);var j=c+O;if(c<F){var H=a-F,W=Math.min(F,j);for(H+c<0&&a6(3);c<W;++c)s[c]=i[H+c]}for(;c<j;++c)s[c]=s[c-F]}}e.l=d,e.p=R,e.b=c,e.f=p,d&&(p=1,e.m=f,e.d=u,e.n=g)}while(!p);return c!=s.length&&n?a5(s,0,c):s.subarray(0,c)},a9=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8},a7=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},nt=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:no,l:0};if(1==r){var n=new aT(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,m=2;for(s[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=s[s[l].f<s[m].f?l++:m++],h=s[l!=p&&s[l].f<s[m].f?l++:m++],s[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var c=a[0].s,i=1;i<r;++i)a[i].s>c&&(c=a[i].s);var d=new aI(c+1),u=ne(s[p-1],d,0);if(u>e){var i=0,f=0,g=u-e,y=1<<g;for(a.sort(function(t,e){return d[e.s]-d[t.s]||t.f-e.f});i<r;++i){var b=a[i].s;if(d[b]>e)f+=y-(1<<u-d[b]),d[b]=e;else break}for(f>>=g;f>0;){var v=a[i].s;d[v]<e?f-=1<<e-d[v]++-1:++i}for(;i>=0&&f;--i){var _=a[i].s;d[_]==e&&(--d[_],++f)}u=e}return{t:new aT(d),l:u}},ne=function(t,e,s){return -1==t.s?Math.max(ne(t.l,e,s+1),ne(t.r,e,s+1)):e[t.s]=s},ns=function(t){for(var e=t.length;e&&!t[--e];);for(var s=new aI(++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}},ni=function(t,e){for(var s=0,i=0;i<e.length;++i)s+=t[i]*e[i];return s},nr=function(t,e,s){var i=s.length,r=a3(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},na=function(t,e,s,i,r,a,n,o,h,l,p){a9(e,p++,s),++r[256];for(var m,c,d,u,f=nt(r,15),g=f.t,y=f.l,b=nt(a,15),v=b.t,_=b.l,x=ns(g),w=x.c,E=x.n,C=ns(v),S=C.c,k=C.n,M=new aI(19),P=0;P<w.length;++P)++M[31&w[P]];for(var P=0;P<S.length;++P)++M[31&S[P]];for(var A=nt(M,7),D=A.t,T=A.l,I=19;I>4&&!D[aN[I-1]];--I);var F=l+5<<3,L=ni(r,aU)+ni(a,aJ)+n,$=ni(r,g)+ni(a,v)+n+14+3*I+ni(M,D)+2*M[16]+3*M[17]+7*M[18];if(h>=0&&F<=L&&F<=$)return nr(e,p,t.subarray(h,h+l));if(a9(e,p,1+($<L)),p+=2,$<L){m=aY(g,y,0),c=g,d=aY(v,_,0),u=v;var N=aY(D,T,0);a9(e,p,E-257),a9(e,p+5,k-1),a9(e,p+10,I-4),p+=14;for(var P=0;P<I;++P)a9(e,p+3*P,D[aN[P]]);p+=3*I;for(var B=[w,S],R=0;R<2;++R)for(var V=B[R],P=0;P<V.length;++P){var O=31&V[P];a9(e,p,N[O]),p+=D[O],O>15&&(a9(e,p,V[P]>>5&127),p+=V[P]>>12)}}else m=aX,c=aU,d=aK,u=aJ;for(var P=0;P<o;++P){var z=i[P];if(z>255){var O=z>>18&31;a7(e,p,m[O+257]),p+=c[O+257],O>7&&(a9(e,p,z>>23&31),p+=aL[O]);var G=31&z;a7(e,p,d[G]),p+=u[G],G>3&&(a7(e,p,z>>5&8191),p+=a$[G])}else a7(e,p,m[z]),p+=c[z]}return a7(e,p,m[256]),p+c[256]},nn=new aF([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),no=new aT(0),nh=function(t,e,s,i,r,a){var n=a.z||t.length,o=new aT(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 m=nn[e-1],c=m>>13,d=8191&m,u=(1<<s)-1,f=a.p||new aI(32768),g=a.h||new aI(u+1),y=Math.ceil(s/3),b=2*y,v=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<b)&u},_=new aF(25e3),x=new aI(288),w=new aI(32),E=0,C=0,S=a.i||0,k=0,M=a.w||0,P=0;S+2<n;++S){var A=v(S),D=32767&S,T=g[A];if(f[D]=T,g[A]=D,M<=S){var I=n-S;if((E>7e3||k>24576)&&(I>423||!l)){p=na(t,h,0,_,x,w,C,k,P,S-P,p),k=E=C=0,P=S;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=d,B=D-T&32767;if(I>2&&A==v(S-B))for(var R=Math.min(c,I)-1,V=Math.min(32767,S),O=Math.min(258,I);B<=V&&--N&&D!=T;){if(t[S+L]==t[S+L-B]){for(var z=0;z<O&&t[S+z]==t[S+z-B];++z);if(z>L){if(L=z,$=B,z>R)break;for(var G=Math.min(B,z-2),q=0,F=0;F<G;++F){var j=S-B+F&32767,H=f[j],W=j-H&32767;W>q&&(q=W,T=j)}}}T=f[D=T],B+=D-T&32767}if($){_[k++]=0x10000000|aO[L]<<18|aq[$];var Y=31&aO[L],U=31&aq[$];C+=aL[Y]+a$[U],++x[257+Y],++w[U],M=S+L,++E}else _[k++]=t[S],++x[t[S]]}}for(S=Math.max(S,M);S<n;++S)_[k++]=t[S],++x[t[S]];p=na(t,h,l,_,x,w,C,k,P,S-P,p),l||(a.r=7&p|h[p/8|0]<<3,p-=7,a.h=g,a.p=f,a.i=S,a.w=M)}else{for(var S=a.w||0;S<n+l;S+=65535){var J=S+65535;J>=n&&(h[p/8|0]=l,J=n),p=nr(h,p+1,t.subarray(S,J))}a.i=n}return a5(o,0,i+a3(p)+r)},nl=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}(),np=function(){var t=-1;return{p:function(e){for(var s=t,i=0;i<e.length;++i)s=nl[255&s^e[i]]^s>>>8;t=s},d:function(){return~t}}},nm=function(t,e,s,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),n=new aT(a.length+t.length);n.set(a),n.set(t,a.length),t=n,r.w=a.length}return nh(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)},nc=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},nd=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 m in e+=l,o.prototype)e+=";"+h+".prototype."+m+"="+o.prototype[m].toString();else e+=l}else s[h]=o}return e},nu=[],nf=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},ng=function(t,e,s,i){if(!nu[s]){for(var r="",a={},n=t.length-1,o=0;o<n;++o)r=nd(t[o],r,a);nu[s]={c:nd(t[n],r,a),e:a}}var h=nc({},nu[s].e);return aD(nu[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,h,nf(h),i)},ny=function(){return[aT,aI,aF,aL,a$,aN,aV,aG,aZ,aQ,aj,a4,aY,a0,a1,a2,a3,a5,a6,a8,nM,nv,n_]},nb=function(){return[aT,aI,aF,aL,a$,aN,aO,aq,aX,aU,aK,aJ,aj,nn,no,aY,a9,a7,nt,ne,ns,ni,nr,na,a3,a5,nh,nm,nk,nv]},nv=function(t){return postMessage(t,[t.buffer])},n_=function(t){return t&&{out:t.size&&new aT(t.size),dictionary:t.dictionary}},nx=function(t,e,s,i,r,a){var n=ng(s,i,r,function(t,e){n.terminate(),a(t,e)});return n.postMessage([t,e],e.consume?[t.buffer]:[]),function(){n.terminate()}},nw=function(t,e){return t[e]|t[e+1]<<8},nE=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},nC=function(t,e){return nE(t,e)+0x100000000*nE(t,e+4)},nS=function(t,e,s){for(;s;++e)t[e]=s,s>>>=8};function nk(t,e){return nm(t,e||{},0,0)}function nM(t,e){return a8(t,{i:2},e&&e.out,e&&e.dictionary)}var nP=function(t,e,s,i){for(var r in t){var a=t[r],n=e+r,o=i;Array.isArray(a)&&(o=nc(i,a[1]),a=a[0]),ArrayBuffer.isView(a)?s[n]=[a,o]:(s[n+="/"]=[new aT(0),o],nP(a,n,s,i))}},nA="u">typeof TextEncoder&&new TextEncoder,nD="u">typeof TextDecoder&&new TextDecoder;try{nD.decode(no,{stream:!0})}catch(t){}var nT=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:a5(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 nI(t,e){if(e){for(var s=new aT(t.length),i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}if(nA)return nA.encode(t);for(var r=t.length,a=new aT(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 aT(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 a5(a,0,n)}function nF(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(nD)return nD.decode(t);var r=nT(t),a=r.s,s=r.r;return s.length&&a6(8),a}var nL=function(t,e,s){var i=nw(t,e+28),r=nw(t,e+30),a=nF(t.subarray(e+46,e+46+i),!(2048&nw(t,e+8))),n=e+46+i,o=n$(t,n,r,s,nE(t,e+20),nE(t,e+24),nE(t,e+42)),h=o[0],l=o[1],p=o[2];return[nw(t,e+10),h,l,a,n+r+nw(t,e+32),p]},n$=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+nw(t,e+2))if(1==nw(t,e))return[o?nC(t,e+4+8*h):r,h?nC(t,e+4):a,l?nC(t,e+4+8*(h+o)):n,1];i<2&&a6(13)}return[r,a,n,0]},nN=function(t){var e=0;if(t)for(var s in t){var i=t[s].length;i>65535&&a6(9),e+=i+4}return e},nB=function(t,e,s,i,r,a,n,o){var h=i.length,l=s.extra,p=o&&o.length,m=nN(l);nS(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 c=new Date(null==s.mtime?Date.now():s.mtime),d=c.getFullYear()-1980;if((d<0||d>119)&&a6(10),nS(t,e,d<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),e+=4,-1!=a&&(nS(t,e,s.crc),nS(t,e+4,a<0?-a-2:a),nS(t,e+8,s.size)),nS(t,e+12,h),nS(t,e+14,m),e+=16,null!=n&&(nS(t,e,p),nS(t,e+6,s.attrs),nS(t,e+10,n),e+=14),t.set(i,e),e+=h,m)for(var u in l){var f=l[u],g=f.length;nS(t,e,+u),nS(t,e+2,g),t.set(f,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},nR=function(t,e,s,i,r){nS(t,e,0x6054b50),nS(t,e+8,s),nS(t,e+10,s),nS(t,e+12,i),nS(t,e+16,r)},nV="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};let nO=async t=>await new Promise((e,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&a6(7);var i={};nP(t,"",i,e);var r=Object.keys(i),a=r.length,n=0,o=0,h=a,l=Array(a),p=[],m=function(){for(var t=0;t<p.length;++t)p[t]()},c=function(t,e){nV(function(){s(t,e)})};nV(function(){c=s});var d=function(){var t=new aT(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;nB(t,o,r,r.f,r.u,a);var p=30+r.f.length+nN(r.extra),m=o+p;t.set(r.c,m),nB(t,n,r,r.f,r.u,a,o,r.m),n+=16+p+(r.m?r.m.length:0),o=m+a}catch(t){return c(t,null)}}nR(t,n,l.length,s,e),c(null,t)};a||d();for(var u=function(t){var e,s,h=r[t],u=i[h],f=u[0],g=u[1],y=np(),b=f.length;y.p(f);var v=nI(h),_=v.length,x=g.comment,w=x&&nI(x),E=w&&w.length,C=nN(g.extra),S=8*(0!=g.level),k=function(e,s){if(e)m(),c(e,null);else{var i=s.length;l[t]=nc(g,{size:b,crc:y.d(),c:s,f:v,m:w,u:_!=h.length||w&&x.length!=E,compression:S}),n+=30+_+C+i,o+=76+2*(_+C)+(E||0)+i,--a||d()}};if(_>65535&&k(a6(11,0,1),null),S)if(b<16e4)try{k(null,nk(f,g))}catch(t){k(t,null)}else p.push((e=g,(s=k)||(s=e,e={}),"function"!=typeof s&&a6(7),nx(f,e,[nb],function(t){return nv(nk(t.data[0],t.data[1]))},0,s)));else k(null,f)},f=0;f<h;++f)u(f)}(t,{level:9},(t,i)=>{t?s(t):i.buffer instanceof ArrayBuffer?e(i.buffer):s(Error("Data is not transferable"))})}),nz=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)}})},nG=t=>nI(b?Buffer.from(V(t),"base64").toString("binary"):atob(V(t)),!0);async function nq({animations:t=[],fileName:e,manifest:s,shouldDownload:i=!0}){try{if(0===t.length||!s)throw Error(`Missing or malformed required parameter(s):
|
|
8
|
-
${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let r=F("lottie",e)||`${S()}.lottie`,a={"manifest.json":[nI(JSON.stringify(s),!0),{level:0}]},{length:n}=t;for(let e=0;e<n;e++){let{length:i}=t[e]?.assets??[];for(let s=0;s<i;s++){let i=t[e]?.assets[s];if(!i.p||!B(i)&&!N(i))continue;let{p:r,u:n}=i;if(!r)continue;let o=S(),h=r.startsWith("data:"),l=h?T(r):D(r),p=h?r:await nz(n?n.endsWith("/")&&`${n}${r}`||`${n}/${r}`:r),m=t[e]?.assets[s];m.e=1,m.p=`${o}.${l}`,m.u="",a[`${N(i)?"audio":"i"}/${o}.${l}`]=[nG(p),{level:9}]}let{length:r}=t[e]?.layers??[];for(let s=0;s<r;s++){let{ks:i}=t[e]?.layers[s]??{},r=Object.keys(i),{length:a}=r;for(let
|
|
7
|
+
obj.scoped_bm_rt = $bm_rt;`),V=0,O,z=null,G,q,j,H,W=s.kf?i.length:0,Y=e.ix,U=!this.data||!0!==this.data.hd,J=(t=5,e=20)=>{let{pv:s}=this,i=$(s)?s.length:1,r=tm(tt.Float32,i),a=r_.floor(V*t),n=0;for(;n<a;){for(let t=0;t<i;t++)r[t]=(r[t]??0)+-e+2*e*r_.random();n++}let o=V*t,h=o-r_.floor(o),l=tm(tt.Float32,i);if(i>1){for(let t=0;t<i;t++)l[t]=s[t]+r[t]+(-e+2*e*r_.random())*h;return l}return s+r[0]+(-e+2*e*r_.random())*h};function X(t,e){S(t,e,!0)}function Z(t,e){P(t,e,!0)}s.loopIn&&(M=S=s.loopIn.bind(s)),s.loopOut&&(A=P=s.loopOut.bind(s)),s.smooth&&(T=s.smooth.bind(s));let K=this.getValueAtTime.bind(this),Q=this.getVelocityAtTime.bind(this),{frameRate:te,projectInterface:ts}=t.comp.globalData;function ti(t,e){let s=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=r_.atan2(s[0],r_.sqrt(s[1]*s[1]+s[2]*s[2]))/f;return[-r_.atan2(s[1],s[2])/f,i,0]}function tr(t){let s,r,a=t,n,o=i.length;if(0===i.length||"number"==typeof i[0])s=0,r=0;else if(s=-1,(a*=te)<(i[0]?.t??0))s=1,r=i[0]?.t??0;else{for(n=0;n<o-1;n+=1)if(a===i[n]?.t){s=n+1,r=i[n]?.t??0;break}else if(a>(i[n]?.t??0)&&a<(i[n+1]?.t??0)){a-(i[n]?.t??0)>(i[n+1]?.t??0)-a?(s=n+2,r=i[n+1]?.t??0):(s=n+1,r=i[n]?.t??0);break}-1===s&&(s=n+1,r=e.k[n]?.t??0)}return{index:s,time:r||0/te}}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)/te,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=te),t/s}function to(t,e){let s=t,i=e;return s||0===s||(s=V),i||(i=te),s*i}function tl(t){r_.seedrandom(y+t)}function tp(){return t.sourceRectAtTime()}function tc(t,e){return"string"==typeof z?void 0===e?z.slice(r_.max(0,t)):z.slice(t,e):""}function td(t,e){return"string"==typeof z?void 0===e?z.slice(t):z.slice(t,e):""}let tu=t.data.ind,tf=t.hierarchy.length>0,tg=null;y=r_.floor(1e6*r_.random());let{globalData:ty}=t;function tb(t){z=K(V=0===t?0:r_.floor(V*t)/t)}return function(e){return(z=e,this.frameExpressionId===ty.frameId&&this.propType!==th.TextSelector)?z:(this.propType===th.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,C=N?.fromWorld.bind(N)??null,w=N?.fromComp.bind(N)??null,F=N?.toComp.bind(N)??null,D=N?.mask??null,E=w),!b&&(d=b=t.layerInterface?.getInterface("ADBE Transform Group"),b&&(x=b.anchorPoint)),4!==c||u||(u=N?.getInterface("ADBE Root Vectors Group")),g=g??N?.getInterface(4),t.hierarchy.length>0&&!tg&&(tg=t.hierarchy[0]?.layerInterface??null),V=(this.comp?.renderedFrame??0)/(this.comp?.globalData?.frameRate??60),n&&tl(y+V),a&&(O=Q(V)),R(rC,rq,rW,rY,rI,rX,rZ,d,U,rZ,x,k,ts,u,rF,rJ,rG,rq,null,rB,rN,r$,g,null,null,tn,w,E,C,ty,p,rD,tu,v,ta,rH,rR,ti,M,A,S,X,P,Z,D,rW,rY,h,tr,rV,W,B,_,null,tb,Y,rJ,rJ,rO,y,rT,null,null,tl,H,T,tp,rX,td,tc,G,q,j,I,N,s,V,to,F,L,b,z,K,O,m,J,null,null),this.frameExpressionId=ty.frameId,B.scoped_bm_rt?.propType===th.Shape?B.scoped_bm_rt.v:B.scoped_bm_rt)}},resetFrame:function(){rC={}}},rQ={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)}else i=0;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(tt.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=rK.initiateExpression,s.effectsSequence.push(s.initiateExpression(t,e,s).bind(s)))},setGroupProperty:function(t){this.propertyGroup=t}};class r0 extends ei{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=tN(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=tq(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=tc(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=rQ.getStaticValueAtTime,this.setGroupProperty=rQ.setGroupProperty}}let r1=(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]??""])}};function r2(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 m=t?t.toLowerCase():"",c=o.renderedFrame,d=l[l.length-1]?.t??0,{frameRate:u}=h.comp.globalData??{frameRate:60};if(c<=d)return p;let f,g=0;switch(s?f=n?Math.abs(d-u*n):Math.max(0,d-h.data.ip):((!n||n>l.length-1)&&(n=l.length-1),f=d-(g=l[l.length-1-n]?.t??0)),m){case"pingpong":if(Math.floor((c-g)/f)%2!=0)return this.getValueAtTime((f-(c-g)%f+g)/u,0);break;case"offset":{let t=this.getValueAtTime(g/u,0),e=this.getValueAtTime(d/u,0),s=this.getValueAtTime(((c-g)%f+g)/u,0),n=Math.floor((c-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(d/u,0),e=this.getValueAtTime((d-.001)/u,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])*((c-d)/u)/5e-4;return a}return t+(c-d)/.001*(t-e)}}return this.getValueAtTime(((c-g)%f+g)/u,0)}function r3(t,e,s){let i,r,a,n,o;if(!this.k)return this.pv;let h=e,{comp:l,elem:p,keyframes:m=[],pv:c}=this;if(!p?.comp)throw Error("Element is not implemented");if(!l)throw Error("Comp is not implemented");let{frameRate:d}=p.comp.globalData??{frameRate:60},u=t?t.toLowerCase():"",f=l.renderedFrame,g=m[0]?.t??0;if(f>=g)return c;switch(s?(i=h?Math.abs(d*h):Math.max(0,p.data.op-g),r=g+i):((!h||h>m.length-1)&&(h=m.length-1),i=(r=m[h]?.t??0)-g),u){case"pingpong":if(Math.floor((g-f)/i)%2==0)return this.getValueAtTime(((g-f)%i+g)/d,0);break;case"offset":{let t=this.getValueAtTime(g/d,0),e=this.getValueAtTime(r/d,0),s=this.getValueAtTime((i-(g-f)%i+g)/d,0),h=Math.floor((g-f)/i)+1;if($(c)&&$(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/d,0),e=this.getValueAtTime((g+.001)/d,0);if($(c)&&$(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))/d,0)}function r5(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,m=p-h,c=l>1?(p+h-m)/(l-1):1,d=0,u,f;for(f=$(a)?tm(tt.Float32,a.length):0;d<l;){if(s=this.getValueAtTime(m+d*c),$(a)&&$(f)&&$(s)){for(u=0;u<a.length;u++)f[u]+=s[u];d++;continue}f+=s,d++}if($(a)&&$(f)){for(u=0;u<a.length;u+=1)f[u]/=l;return f}return f/l}function r4(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 r6(){return this.v.clone(new td)}function r8(t,e){this._cachingAtTime=this._cachingAtTime??{lastIndex:0,lastTime:-999999,shapeValue:t8(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 r9{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:r7}=rK,at={initExpressions:function(t){let e=0,s=[];if(!t.renderer.globalData)throw Error("Renderer -> GlobalData is not set");t.renderer.compInterface=new r9(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:r7};function ae(){return this.data.d?.x?(this.calculateExpression=rK.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}class as{completeProperty(t,e,s){Object.defineProperty(t,"velocity",{get:()=>e.getVelocityAtTime(e.comp?.currentFrame??0)}),t.numKeys=e.keyframes?.length??0,t.key=function(i){let r;if(!t.numKeys)return 0;e.keyframes&&(r="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s);let a=s===th.UniDimensional?new Number(r):{...r};return a.time=Number(e.keyframes?.[i-1].t)/(e.elem?.comp?.globalData?.frameRate??60),a.value=s===th.UniDimensional?r[0]:r,a},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===th.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(tt.Float32,i),a=tm(tt.Float32,i);return r.value=a,this.completeProperty(r,e,"multidimensional"),function(){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=e.pv*s,r=new Number(i);return r.value=i,this.completeProperty(r,e,th.UniDimensional),()=>(e.k&&e.getValue(),i=e.v*s,r.value!==i&&((r=new Number(i)).value=i,r[0]=i,this.completeProperty(r,e,th.UniDimensional)),r)}constructor(){this.defaultMultidimensionalValue={mult:1,pv:[0,0,0],v:[0,0,0]},this.defaultUnidimensionalValue={mult:1,pv:0,v:0}}}function ai(t){return new as().getInterface(t)}class ar{constructor(t,e){this.interfaceFunction=t,this.parentPropertyGroup=e}getInterface(t=1){return t<=0?this.interfaceFunction:this.parentPropertyGroup.getInterface(t-1)}}class aa{constructor(t,e){this._name=t,this.propertyGroup=e}getInterface(t){return t<=0?this:this.propertyGroup.getInterface(t-1)}}class an{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 ao{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 ah{constructor(t,e){this.maskManager=t,this._masksInterfaces=tc(t.viewData.length);const{length:s}=t.viewData;for(let e=0;e<s;e++)this._masksInterfaces[e]=new ao(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 al{get anchorPoint(){return ai(this.transform.a)}get opacity(){return ai(this.transform.o)}get orientation(){return ai(this.transform.or)}get position(){return this.transform.p?this._transformFactory?.():[this._px?.(),this._py?.(),this._pz?.()??0]}get rotation(){return ai(this.transform.r??this.transform.rz)}get scale(){return ai(this.transform.s)}get skew(){return ai(this.transform.sk)}get skewAxis(){return ai(this.transform.sa)}get xPosition(){return ai(this.transform.px)}get xRotation(){return ai(this.transform.rx)}get yPosition(){return ai(this.transform.py)}get yRotation(){return ai(this.transform.ry)}get zPosition(){return ai(this.transform.pz)}get zRotation(){return ai(this.transform.rz??this.transform.r)}constructor(t){this.transform=t,t.p?this._transformFactory=ai(t.p):(this._px=ai(t.px),this._py=ai(t.py),t.pz&&(this._pz=ai(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 ap{getInterface(t){throw Error("Method not implemented")}}class am extends ap{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 ac extends ap{get position(){return ai(this.prop?.p)}get size(){return ai(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 ad extends ap{get color(){return ai(this.c)}get opacity(){return ai(this.o)}getInterface(t){return"Color"===t||"color"===t?this.color:"Opacity"===t||"opacity"===t?this.opacity:null}}class au extends ap{get endPoint(){return ai(this.prop?.e)}get opacity(){return ai(this.prop?.o)}get startPoint(){return ai(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 af extends ap{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 ag extends ap{get position(){return ai(this.prop?.p)}get roundness(){return ai(this.prop?.r)}get size(){return ai(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 ay extends ap{get copies(){return ai(this.prop?.c)}get offset(){return ai(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 ab extends ap{get radius(){return ai(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 av{get path(){return this.prop?.k&&this.prop.getValue(),this.prop}get shape(){return this.path}constructor(t,e,s){this.prop=e.sh;const i=new ar(this,s);this.prop?.setGroupProperty(new aa("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 a_ extends ap{get innerRadius(){return ai(this.prop?.ir)}get innerRoundness(){return ai(this.prop?.is)}get outerRadius(){return ai(this.prop?.or)}get outerRoundness(){return ai(this.prop?.os)}get points(){return ai(this.prop?.pt)}get position(){return ai(this.prop?.p)}get rotation(){return ai(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 ax extends ap{get color(){return ai(this.prop?.c)}get dash(){return this.dashOb}get opacity(){return ai(this.prop?.o)}get strokeWidth(){return ai(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 aw extends ap{get anchorPoint(){return ai(this.prop?.transform?.mProps.a)}get opacity(){return ai(this.prop?.transform?.mProps.o)}get position(){return ai(this.prop?.transform?.mProps.p)}get rotation(){return ai(this.prop?.transform?.mProps.r)}get scale(){return ai(this.prop?.transform?.mProps.s)}get skew(){return ai(this.prop?.transform?.mProps.sk)}get skewAxis(){return ai(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 aE extends ap{get end(){return ai(this.prop?.e)}get offset(){return ai(this.prop?.o)}get start(){return ai(this.prop?.s)}getInterface(t){return t===this.shape?.e?.ix||"End"===t||"end"===t?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 aC={comp:r9,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 an(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 ar(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=ai(t.p);return t.p?.setGroupProperty&&t.p.setGroupProperty(new aa("",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 al(t.finalTransform.mProp);const{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;const{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 ah(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 ar(this,this.parentGroupWrapper),this.interfaces=this.iterateElements(t,e,this.propertyGroup),this.numProperties=this.interfaces.length}contentsInterfaceFactory(t,e,s){am.prototype.propertyGroup=new ar(am,s),this.interfaces=this.iterateElements(t.it??null,e.it,am.prototype.propertyGroup),am.prototype.numProperties=this.interfaces.length;let i=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],am.prototype.propertyGroup);return am.prototype.transform=i,am.prototype.propertyIndex=t.cix,am.prototype._name=t.nm,am.prototype.getInterface}defaultInterfaceFactory(){return this.noOp}ellipseInterfaceFactory(t,e,s){let i=new ar(ac,s);ac.prototype.shape=t,ac.prototype.propertyIndex=t.ix;let r=e.sh?.ty===tn.Trim?e.sh.prop:e.sh;return r.s.setGroupProperty(new aa("Size",i)),r.p?.setGroupProperty(new aa("Position",i)),ac.prototype._name=t.nm,ac.prototype.prop=r,ac.prototype.mn=t.mn,ac.prototype.getInterface}fillInterfaceFactory(t,e,s){return ad.prototype._name=t.nm,ad.prototype.c=e.c,ad.prototype.mn=t.mn,ad.prototype.o=e.o,e.c?.setGroupProperty(new aa("Color",s)),e.o?.setGroupProperty(new aa("Opacity",s)),ad.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 au.prototype._name=t.nm,au.prototype.prop=e,au.prototype.mn=t.mn,e.s?.setGroupProperty(new aa("Start Point",s)),e.e?.setGroupProperty(new aa("End Point",s)),e.o?.setGroupProperty(new aa("Opacity",s)),au.prototype.getInterface}groupInterfaceFactory(t,e,s){af.prototype.propertyGroup=new ar(af,s);let i=this.contentsInterfaceFactory(t,e,af.prototype.propertyGroup),r=this.transformInterfaceFactory(t.it[t.it.length-1],e.it[e.it.length-1],af.prototype.propertyGroup);return af.prototype.content=i,af.prototype.transform=r,af.prototype.shape=t,af.prototype.numProperties=t.np,af.prototype.propertyIndex=t.ix,af.prototype.nm=t.nm,af.prototype.mn=t.mn,af.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 tn.Group:i.push(this.groupInterfaceFactory(t[a],e[a],s));break;case tn.Fill:i.push(this.fillInterfaceFactory(t[a],e[a],s));break;case tn.Stroke:i.push(this.strokeInterfaceFactory(t[a],e[a],s));break;case tn.Trim:i.push(this.trimInterfaceFactory(t[a],e[a],s));break;case tn.Transform:break;case tn.Ellipse:i.push(this.ellipseInterfaceFactory(t[a],e[a],s));break;case tn.PolygonStar:i.push(this.starInterfaceFactory(t[a],e[a],s));break;case tn.Path:i.push(new av(t[a],e[a],s));break;case tn.Rectangle:i.push(this.rectInterfaceFactory(t[a],e[a],s));break;case tn.RoundedCorners:i.push(this.roundedInterfaceFactory(t[a],e[a],s));break;case tn.Repeater:i.push(this.repeaterInterfaceFactory(t[a],e[a],s));break;case tn.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){ag.prototype.shape=t;let i=new ar(ag,s),r=e.sh?.ty===tn.Trim?e.sh.prop:e.sh;return ag.prototype.propertyIndex=t.ix,r.p?.setGroupProperty(new aa("Position",i)),r.s.setGroupProperty(new aa("Size",i)),r.r.setGroupProperty(new aa("Rotation",i)),ag.prototype.prop=r,ag.prototype._name=t.nm,ag.prototype.mn=t.mn,ag.prototype.getInterface}repeaterInterfaceFactory(t,e,s){ay.prototype.shape=t,ay.prototype.propertyIndex=t.ix,ay.prototype._name=t.nm,ay.prototype.mn=t.mn;let i=new ar(ay,s);return ay.prototype.prop=e,e.c?.setGroupProperty(new aa("Copies",i)),e.o?.setGroupProperty(new aa("Offset",i)),ay.prototype.getInterface}roundedInterfaceFactory(t,e,s){ab.prototype.shape=t,ab.prototype._name=t.nm,ab.prototype.propertyIndex=t.ix,ab.prototype.mn=t.mn;let i=new ar(ab,s);return e.rd.setGroupProperty(new aa("Radius",i)),ab.prototype.getInterface}starInterfaceFactory(t,e,s){a_.prototype.shape=t;let i=new ar(a_,s),r=e.sh?.ty===tn.Trim?e.sh.prop:e.sh;return a_.prototype.propertyIndex=t.ix,r.or.setGroupProperty(new aa("Outer Radius",i)),r.os.setGroupProperty(new aa("Outer Roundness",i)),r.pt.setGroupProperty(new aa("Points",i)),r.p.setGroupProperty(new aa("Position",i)),r.r.setGroupProperty(new aa("Rotation",i)),t.ir&&(r.ir.setGroupProperty(new aa("Inner Radius",i)),r.is.setGroupProperty(new aa("Inner Roundness",i))),a_.prototype._name=t.nm,a_.prototype.prop=r,a_.prototype.mn=t.mn,a_.prototype.getInterface}strokeInterfaceFactory(t,e,s){let i={},r=new ar(ax,s),a=new ar(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:ai(e.d.dataProps[o].p)}),e.d.dataProps[s].p.setGroupProperty(a)}return ax.prototype._name=t.nm,ax.prototype.mn=t.mn,ax.prototype.dashOb=i,ax.prototype.prop=e,e.c?.setGroupProperty(new aa("Color",r)),e.o?.setGroupProperty(new aa("Opacity",r)),e.w?.setGroupProperty(new aa("Stroke Width",r)),ax.prototype.getInterface}transformInterfaceFactory(t,e,s){aw.prototype.shape=t;let i=new ar(aw,s);return e.transform?.mProps.o?.setGroupProperty(new aa("Opacity",i)),e.transform?.mProps.p?.setGroupProperty(new aa("Position",i)),e.transform?.mProps.a?.setGroupProperty(new aa("Anchor Point",i)),e.transform?.mProps.s?.setGroupProperty(new aa("Scale",i)),e.transform?.mProps.r?.setGroupProperty(new aa("Rotation",i)),e.transform?.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(new aa("Skew",i)),e.transform.mProps.sa?.setGroupProperty(new aa("Skew Angle",i))),e.transform?.op.setGroupProperty(new aa("Opacity",i)),aw.prototype._name=t.nm,aw.prototype.prop=e,aw.prototype.ty=tn.Transform,aw.prototype.mn=t.mn,aw.prototype.propertyGroup=s,aw.prototype.getInterface}trimInterfaceFactory(t,e,s){aE.prototype.shape=t;let i=new ar(aE,s);return aE.prototype.propertyIndex=t.ix,e.s?.setGroupProperty(new aa("Start",i)),e.e?.setGroupProperty(new aa("End",i)),e.o?.setGroupProperty(new aa("Offset",i)),aE.prototype.propertyIndex=t.ix,aE.prototype.propertyGroup=s,aE.prototype._name=t.nm,aE.prototype.prop=e,aE.prototype.mn=t.mn,aE.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||new 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"ADBE Text Document"===t?this.sourceText:null}}};function aS(t){return aC[t]}class ak{createMergeNode(t,e){let s,i=tu("feMerge");i.setAttribute("result",t);let{length:r}=e;for(let t=0;t<r;t++)(s=tu("feMergeNode")).setAttribute("in",e[t]),i.appendChild(s),i.appendChild(s);return i}}let aM=[],aP="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";!function({effects:t,expressions:e,renderers:s}){e?.installPlugin,s.forEach(({renderer:t,rendererType:e})=>{s4[e]=t}),sn(te.TrimModifier,ru),sn(te.PuckerAndBloatModifier,rm),sn(te.RepeaterModifier,rc),sn(te.RoundCornersModifier,rd),sn(te.ZigZagModifier,rb),sn(te.OffsetPathModifier,rp),e?.registerExpressions(),t.forEach(({countsAsEffect:t,effect:e,id:s,isCanvas:i})=>{i?ty[s]={countsAsEffect:void 0,effect:e}:ez[s]={countsAsEffect:t,effect:e}}),e?.installPlugin}({effects:[{countsAsEffect:!0,effect:class extends ak{constructor(t,e,s,i,r){super(),this.filterManager=e;let a=tu("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",`${aP} 1 0`),this.linearFilter=a,a.setAttribute("result",`${i}_tint_1`),t.appendChild(a),(a=tu("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;const 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",`${aP} ${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;const r=tu("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=tu("g");for(r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset","1");e<s;e++)t=tu("path"),r.appendChild(t),this.paths.push({m:e,p:t});if(this.filterManager.effectElements[10]?.p.v===3){let t=tu("mask"),e=S();t.id=e,t.setAttribute("mask-type","alpha"),t.appendChild(r),this.elem.globalData?.defs.appendChild(t);let s=tu("g");for(s.setAttribute("mask",`url(${tg()}#${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:21},{countsAsEffect:!0,effect:class{constructor(t,e,s,i){this.filterManager=e;const r=tu("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);const a=tu("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;const n=tu("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;const o=tu("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;const h=tu("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;const{effectElements:r}=this.filterManager;let a=tu("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=tu("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=tu(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=tc(256),p,m=0,c=r-i,d=e-t;for(;n<=256;)p=(a=n/256)<=o?d<0?r:i:a>=h?d<0?i:r:i+c*Math.pow((a-t)/d,1/s),l[m]=p,m++,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 ak{constructor(t,e,s,i,r){super();const 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;const o=tu("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",`${i}_drop_shadow_1`),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);const h=tu("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);const l=tu("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",`${i}_drop_shadow_3`),this.feFlood=l,t.appendChild(l);const p=tu("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);const m=this.createMergeNode(i,[`${i}_drop_shadow_4`,r]);t.appendChild(m)}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=tu("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}=aM;for(;e<s;){if(aM[e]===t)return aM[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=tu("use");o.setAttribute("href",`#${e}`),s?i.insertBefore(o,s):i.appendChild(o)}setElementAsMask(t,e){if(!this.findSymbol(e)){let s=S(),i=tu("mask");e.layerId&&(i.id=e.layerId),i.setAttribute("mask-type","alpha"),aM.push(e);let{defs:r}=t.globalData??{defs:null};r?.appendChild(i);let a=tu("symbol");a.id=s,this.replaceInParent(e,s),e.layerElement&&a.appendChild(e.layerElement),r?.appendChild(a);let n=tu("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;const r=tu("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 rv{constructor(t,e){super(),this.init(e)}},id:35},{effect:class extends rv{constructor(t){super(),this.init(t)}},id:35,isCanvas:!0}],expressions:{installPlugin:(t,e)=>{"expressions"===t&&eE(e)},registerExpressions:()=>{eE(at),ew.interface=aS,function(){let{getTransformProperty:t}=eM;eM.getTransformProperty=function(e,s,i){let r=t(e,s,i);return r.dynamicProperties.length>0?r.getValueAtTime=r4.bind(r):r.getValueAtTime=r6.bind(r),r.setGroupProperty=rQ.setGroupProperty,r};let e=t1.getProp;t1.getProp=function(t,s,i,r,a){let n=e(t,s,i,r,a);n.kf?n.getValueAtTime=rQ.getValueAtTime.bind(n):n.getValueAtTime=rQ.getStaticValueAtTime.bind(n),n.setGroupProperty=rQ.setGroupProperty,n.loopOut=r2,n.loopIn=r3,n.smooth=r5,n.getVelocityAtTime=rQ.getVelocityAtTime.bind(n),n.getSpeedAtTime=rQ.getSpeedAtTime.bind(n),n.numKeys=s?.a===1?s.k.length:0,n.propertyIndex=s?.ix;let o=0;return 0!==i&&(o=tm(tt.Float32,s?.a===1?s.k[0]?.s.length:(s?.k).length)),n._cachingAtTime={lastFrame:-999999,lastIndex:0,value:o},rQ.searchExpressions(t,s,n),n.k&&a?.addDynamicProperty(n),n};let s=en.getConstructorFunction(),i=en.getKeyframedConstructorFunction();r1([r0],s),r1([r0],i),i.prototype.getValueAtTime=r8,i.prototype.initiateExpression=rK.initiateExpression;let r=en.getShapeProp;en.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?rQ.searchExpressions(t,e.pt,n):4===s&&rQ.searchExpressions(t,e.ks,n),n.k&&t.addDynamicProperty(n)),n}}(),sD.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},sD.prototype.searchProperty=function(){let t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=!!(t||e),this.kf},sD.prototype.searchExpressions=ae}},renderers:[{renderer:sj,rendererType:ta.SVG},{renderer:sJ,rendererType:ta.Canvas}]});var aA={},aD=function(t,e,s,i,r){var a=new Worker(aA[e]||(aA[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},aT=Uint8Array,aI=Uint16Array,aF=Int32Array,aL=new aT([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]),a$=new aT([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]),aN=new aT([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),aB=function(t,e){for(var s=new aI(31),i=0;i<31;++i)s[i]=e+=1<<t[i-1];for(var r=new aF(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}},aR=aB(aL,2),aV=aR.b,aO=aR.r;aV[28]=258,aO[258]=28;for(var az=aB(a$,0),aG=az.b,aq=az.r,aj=new aI(32768),aH=0;aH<32768;++aH){var aW=(43690&aH)>>1|(21845&aH)<<1;aW=(61680&(aW=(52428&aW)>>2|(13107&aW)<<2))>>4|(3855&aW)<<4,aj[aH]=((65280&aW)>>8|(255&aW)<<8)>>1}for(var aY=function(t,e,s){for(var i,r=t.length,a=0,n=new aI(e);a<r;++a)t[a]&&++n[t[a]-1];var o=new aI(e);for(a=1;a<e;++a)o[a]=o[a-1]+n[a-1]<<1;if(s){i=new aI(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],m=o[t[a]-1]++<<p,c=m|(1<<p)-1;m<=c;++m)i[aj[m]>>h]=l}else for(i=new aI(r),a=0;a<r;++a)t[a]&&(i[a]=aj[o[t[a]-1]++]>>15-t[a]);return i},aU=new aT(288),aH=0;aH<144;++aH)aU[aH]=8;for(var aH=144;aH<256;++aH)aU[aH]=9;for(var aH=256;aH<280;++aH)aU[aH]=7;for(var aH=280;aH<288;++aH)aU[aH]=8;for(var aJ=new aT(32),aH=0;aH<32;++aH)aJ[aH]=5;var aX=aY(aU,9,0),aZ=aY(aU,9,1),aK=aY(aJ,5,0),aQ=aY(aJ,5,1),a0=function(t){for(var e=t[0],s=1;s<t.length;++s)t[s]>e&&(e=t[s]);return e},a1=function(t,e,s){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&s},a2=function(t,e){var s=e/8|0;return(t[s]|t[s+1]<<8|t[s+2]<<16)>>(7&e)},a3=function(t){return(t+7)/8|0},a5=function(t,e,s){return(null==e||e<0)&&(e=0),(null==s||s>t.length)&&(s=t.length),new aT(t.subarray(e,s))},a4=["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"],a6=function(t,e,s){var i=Error(e||a4[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,a6),!s)throw i;return i},a8=function(t,e,s,i){var r=t.length,a=i?i.length:0;if(!r||e.f&&!e.l)return s||new aT(0);var n=!s,o=n||2!=e.i,h=e.i;n&&(s=new aT(3*r));var l=function(t){var e=s.length;if(t>e){var i=new aT(Math.max(2*e,t));i.set(s),s=i}},p=e.f||0,m=e.p||0,c=e.b||0,d=e.l,u=e.d,f=e.m,g=e.n,y=8*r;do{if(!d){p=a1(t,m,1);var b=a1(t,m+1,3);if(m+=3,b)if(1==b)d=aZ,u=aQ,f=9,g=5;else if(2==b){var v=a1(t,m,31)+257,_=a1(t,m+10,15)+4,x=v+a1(t,m+5,31)+1;m+=14;for(var w=new aT(x),E=new aT(19),C=0;C<_;++C)E[aN[C]]=a1(t,m+3*C,7);m+=3*_;for(var S=a0(E),k=(1<<S)-1,M=aY(E,S,1),C=0;C<x;){var P=M[a1(t,m,k)];m+=15&P;var A=P>>4;if(A<16)w[C++]=A;else{var D=0,T=0;for(16==A?(T=3+a1(t,m,3),m+=2,D=w[C-1]):17==A?(T=3+a1(t,m,7),m+=3):18==A&&(T=11+a1(t,m,127),m+=7);T--;)w[C++]=D}}var I=w.subarray(0,v),F=w.subarray(v);f=a0(I),g=a0(F),d=aY(I,f,1),u=aY(F,g,1)}else a6(1);else{var A=a3(m)+4,L=t[A-4]|t[A-3]<<8,$=A+L;if($>r){h&&a6(0);break}o&&l(c+L),s.set(t.subarray(A,$),c),e.b=c+=L,e.p=m=8*$,e.f=p;continue}if(m>y){h&&a6(0);break}}o&&l(c+131072);for(var N=(1<<f)-1,B=(1<<g)-1,R=m;;R=m){var D=d[a2(t,m)&N],V=D>>4;if((m+=15&D)>y){h&&a6(0);break}if(D||a6(2),V<256)s[c++]=V;else if(256==V){R=m,d=null;break}else{var O=V-254;if(V>264){var C=V-257,z=aL[C];O=a1(t,m,(1<<z)-1)+aV[C],m+=z}var G=u[a2(t,m)&B],q=G>>4;G||a6(3),m+=15&G;var F=aG[q];if(q>3){var z=a$[q];F+=a2(t,m)&(1<<z)-1,m+=z}if(m>y){h&&a6(0);break}o&&l(c+131072);var j=c+O;if(c<F){var H=a-F,W=Math.min(F,j);for(H+c<0&&a6(3);c<W;++c)s[c]=i[H+c]}for(;c<j;++c)s[c]=s[c-F]}}e.l=d,e.p=R,e.b=c,e.f=p,d&&(p=1,e.m=f,e.d=u,e.n=g)}while(!p);return c!=s.length&&n?a5(s,0,c):s.subarray(0,c)},a9=function(t,e,s){s<<=7&e;var i=e/8|0;t[i]|=s,t[i+1]|=s>>8},a7=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},nt=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:no,l:0};if(1==r){var n=new aT(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,m=2;for(s[0]={s:-1,f:o.f+h.f,l:o,r:h};p!=r-1;)o=s[s[l].f<s[m].f?l++:m++],h=s[l!=p&&s[l].f<s[m].f?l++:m++],s[p++]={s:-1,f:o.f+h.f,l:o,r:h};for(var c=a[0].s,i=1;i<r;++i)a[i].s>c&&(c=a[i].s);var d=new aI(c+1),u=ne(s[p-1],d,0);if(u>e){var i=0,f=0,g=u-e,y=1<<g;for(a.sort(function(t,e){return d[e.s]-d[t.s]||t.f-e.f});i<r;++i){var b=a[i].s;if(d[b]>e)f+=y-(1<<u-d[b]),d[b]=e;else break}for(f>>=g;f>0;){var v=a[i].s;d[v]<e?f-=1<<e-d[v]++-1:++i}for(;i>=0&&f;--i){var _=a[i].s;d[_]==e&&(--d[_],++f)}u=e}return{t:new aT(d),l:u}},ne=function(t,e,s){return -1==t.s?Math.max(ne(t.l,e,s+1),ne(t.r,e,s+1)):e[t.s]=s},ns=function(t){for(var e=t.length;e&&!t[--e];);for(var s=new aI(++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}},ni=function(t,e){for(var s=0,i=0;i<e.length;++i)s+=t[i]*e[i];return s},nr=function(t,e,s){var i=s.length,r=a3(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},na=function(t,e,s,i,r,a,n,o,h,l,p){a9(e,p++,s),++r[256];for(var m,c,d,u,f=nt(r,15),g=f.t,y=f.l,b=nt(a,15),v=b.t,_=b.l,x=ns(g),w=x.c,E=x.n,C=ns(v),S=C.c,k=C.n,M=new aI(19),P=0;P<w.length;++P)++M[31&w[P]];for(var P=0;P<S.length;++P)++M[31&S[P]];for(var A=nt(M,7),D=A.t,T=A.l,I=19;I>4&&!D[aN[I-1]];--I);var F=l+5<<3,L=ni(r,aU)+ni(a,aJ)+n,$=ni(r,g)+ni(a,v)+n+14+3*I+ni(M,D)+2*M[16]+3*M[17]+7*M[18];if(h>=0&&F<=L&&F<=$)return nr(e,p,t.subarray(h,h+l));if(a9(e,p,1+($<L)),p+=2,$<L){m=aY(g,y,0),c=g,d=aY(v,_,0),u=v;var N=aY(D,T,0);a9(e,p,E-257),a9(e,p+5,k-1),a9(e,p+10,I-4),p+=14;for(var P=0;P<I;++P)a9(e,p+3*P,D[aN[P]]);p+=3*I;for(var B=[w,S],R=0;R<2;++R)for(var V=B[R],P=0;P<V.length;++P){var O=31&V[P];a9(e,p,N[O]),p+=D[O],O>15&&(a9(e,p,V[P]>>5&127),p+=V[P]>>12)}}else m=aX,c=aU,d=aK,u=aJ;for(var P=0;P<o;++P){var z=i[P];if(z>255){var O=z>>18&31;a7(e,p,m[O+257]),p+=c[O+257],O>7&&(a9(e,p,z>>23&31),p+=aL[O]);var G=31&z;a7(e,p,d[G]),p+=u[G],G>3&&(a7(e,p,z>>5&8191),p+=a$[G])}else a7(e,p,m[z]),p+=c[z]}return a7(e,p,m[256]),p+c[256]},nn=new aF([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),no=new aT(0),nh=function(t,e,s,i,r,a){var n=a.z||t.length,o=new aT(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 m=nn[e-1],c=m>>13,d=8191&m,u=(1<<s)-1,f=a.p||new aI(32768),g=a.h||new aI(u+1),y=Math.ceil(s/3),b=2*y,v=function(e){return(t[e]^t[e+1]<<y^t[e+2]<<b)&u},_=new aF(25e3),x=new aI(288),w=new aI(32),E=0,C=0,S=a.i||0,k=0,M=a.w||0,P=0;S+2<n;++S){var A=v(S),D=32767&S,T=g[A];if(f[D]=T,g[A]=D,M<=S){var I=n-S;if((E>7e3||k>24576)&&(I>423||!l)){p=na(t,h,0,_,x,w,C,k,P,S-P,p),k=E=C=0,P=S;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=d,B=D-T&32767;if(I>2&&A==v(S-B))for(var R=Math.min(c,I)-1,V=Math.min(32767,S),O=Math.min(258,I);B<=V&&--N&&D!=T;){if(t[S+L]==t[S+L-B]){for(var z=0;z<O&&t[S+z]==t[S+z-B];++z);if(z>L){if(L=z,$=B,z>R)break;for(var G=Math.min(B,z-2),q=0,F=0;F<G;++F){var j=S-B+F&32767,H=f[j],W=j-H&32767;W>q&&(q=W,T=j)}}}T=f[D=T],B+=D-T&32767}if($){_[k++]=0x10000000|aO[L]<<18|aq[$];var Y=31&aO[L],U=31&aq[$];C+=aL[Y]+a$[U],++x[257+Y],++w[U],M=S+L,++E}else _[k++]=t[S],++x[t[S]]}}for(S=Math.max(S,M);S<n;++S)_[k++]=t[S],++x[t[S]];p=na(t,h,l,_,x,w,C,k,P,S-P,p),l||(a.r=7&p|h[p/8|0]<<3,p-=7,a.h=g,a.p=f,a.i=S,a.w=M)}else{for(var S=a.w||0;S<n+l;S+=65535){var J=S+65535;J>=n&&(h[p/8|0]=l,J=n),p=nr(h,p+1,t.subarray(S,J))}a.i=n}return a5(o,0,i+a3(p)+r)},nl=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}(),np=function(){var t=-1;return{p:function(e){for(var s=t,i=0;i<e.length;++i)s=nl[255&s^e[i]]^s>>>8;t=s},d:function(){return~t}}},nm=function(t,e,s,i,r){if(!r&&(r={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),n=new aT(a.length+t.length);n.set(a),n.set(t,a.length),t=n,r.w=a.length}return nh(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)},nc=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},nd=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 m in e+=l,o.prototype)e+=";"+h+".prototype."+m+"="+o.prototype[m].toString();else e+=l}else s[h]=o}return e},nu=[],nf=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},ng=function(t,e,s,i){if(!nu[s]){for(var r="",a={},n=t.length-1,o=0;o<n;++o)r=nd(t[o],r,a);nu[s]={c:nd(t[n],r,a),e:a}}var h=nc({},nu[s].e);return aD(nu[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",s,h,nf(h),i)},ny=function(){return[aT,aI,aF,aL,a$,aN,aV,aG,aZ,aQ,aj,a4,aY,a0,a1,a2,a3,a5,a6,a8,nM,nv,n_]},nb=function(){return[aT,aI,aF,aL,a$,aN,aO,aq,aX,aU,aK,aJ,aj,nn,no,aY,a9,a7,nt,ne,ns,ni,nr,na,a3,a5,nh,nm,nk,nv]},nv=function(t){return postMessage(t,[t.buffer])},n_=function(t){return t&&{out:t.size&&new aT(t.size),dictionary:t.dictionary}},nx=function(t,e,s,i,r,a){var n=ng(s,i,r,function(t,e){n.terminate(),a(t,e)});return n.postMessage([t,e],e.consume?[t.buffer]:[]),function(){n.terminate()}},nw=function(t,e){return t[e]|t[e+1]<<8},nE=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},nC=function(t,e){return nE(t,e)+0x100000000*nE(t,e+4)},nS=function(t,e,s){for(;s;++e)t[e]=s,s>>>=8};function nk(t,e){return nm(t,e||{},0,0)}function nM(t,e){return a8(t,{i:2},e&&e.out,e&&e.dictionary)}var nP=function(t,e,s,i){for(var r in t){var a=t[r],n=e+r,o=i;Array.isArray(a)&&(o=nc(i,a[1]),a=a[0]),ArrayBuffer.isView(a)?s[n]=[a,o]:(s[n+="/"]=[new aT(0),o],nP(a,n,s,i))}},nA="u">typeof TextEncoder&&new TextEncoder,nD="u">typeof TextDecoder&&new TextDecoder;try{nD.decode(no,{stream:!0})}catch(t){}var nT=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:a5(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 nI(t,e){if(e){for(var s=new aT(t.length),i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}if(nA)return nA.encode(t);for(var r=t.length,a=new aT(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 aT(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 a5(a,0,n)}function nF(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(nD)return nD.decode(t);var r=nT(t),a=r.s,s=r.r;return s.length&&a6(8),a}var nL=function(t,e,s){var i=nw(t,e+28),r=nw(t,e+30),a=nF(t.subarray(e+46,e+46+i),!(2048&nw(t,e+8))),n=e+46+i,o=n$(t,n,r,s,nE(t,e+20),nE(t,e+24),nE(t,e+42)),h=o[0],l=o[1],p=o[2];return[nw(t,e+10),h,l,a,n+r+nw(t,e+32),p]},n$=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+nw(t,e+2))if(1==nw(t,e))return[o?nC(t,e+4+8*h):r,h?nC(t,e+4):a,l?nC(t,e+4+8*(h+o)):n,1];i<2&&a6(13)}return[r,a,n,0]},nN=function(t){var e=0;if(t)for(var s in t){var i=t[s].length;i>65535&&a6(9),e+=i+4}return e},nB=function(t,e,s,i,r,a,n,o){var h=i.length,l=s.extra,p=o&&o.length,m=nN(l);nS(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 c=new Date(null==s.mtime?Date.now():s.mtime),d=c.getFullYear()-1980;if((d<0||d>119)&&a6(10),nS(t,e,d<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),e+=4,-1!=a&&(nS(t,e,s.crc),nS(t,e+4,a<0?-a-2:a),nS(t,e+8,s.size)),nS(t,e+12,h),nS(t,e+14,m),e+=16,null!=n&&(nS(t,e,p),nS(t,e+6,s.attrs),nS(t,e+10,n),e+=14),t.set(i,e),e+=h,m)for(var u in l){var f=l[u],g=f.length;nS(t,e,+u),nS(t,e+2,g),t.set(f,e+4),e+=4+g}return p&&(t.set(o,e),e+=p),e},nR=function(t,e,s,i,r){nS(t,e,0x6054b50),nS(t,e+8,s),nS(t,e+10,s),nS(t,e+12,i),nS(t,e+16,r)},nV="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};let nO=async t=>await new Promise((e,s)=>{!function(t,e,s){s||(s=e,e={}),"function"!=typeof s&&a6(7);var i={};nP(t,"",i,e);var r=Object.keys(i),a=r.length,n=0,o=0,h=a,l=Array(a),p=[],m=function(){for(var t=0;t<p.length;++t)p[t]()},c=function(t,e){nV(function(){s(t,e)})};nV(function(){c=s});var d=function(){var t=new aT(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;nB(t,o,r,r.f,r.u,a);var p=30+r.f.length+nN(r.extra),m=o+p;t.set(r.c,m),nB(t,n,r,r.f,r.u,a,o,r.m),n+=16+p+(r.m?r.m.length:0),o=m+a}catch(t){return c(t,null)}}nR(t,n,l.length,s,e),c(null,t)};a||d();for(var u=function(t){var e,s,h=r[t],u=i[h],f=u[0],g=u[1],y=np(),b=f.length;y.p(f);var v=nI(h),_=v.length,x=g.comment,w=x&&nI(x),E=w&&w.length,C=nN(g.extra),S=8*(0!=g.level),k=function(e,s){if(e)m(),c(e,null);else{var i=s.length;l[t]=nc(g,{size:b,crc:y.d(),c:s,f:v,m:w,u:_!=h.length||w&&x.length!=E,compression:S}),n+=30+_+C+i,o+=76+2*(_+C)+(E||0)+i,--a||d()}};if(_>65535&&k(a6(11,0,1),null),S)if(b<16e4)try{k(null,nk(f,g))}catch(t){k(t,null)}else p.push((e=g,(s=k)||(s=e,e={}),"function"!=typeof s&&a6(7),nx(f,e,[nb],function(t){return nv(nk(t.data[0],t.data[1]))},0,s)));else k(null,f)},f=0;f<h;++f)u(f)}(t,{level:9},(t,i)=>{t?s(t):i.buffer instanceof ArrayBuffer?e(i.buffer):s(Error("Data is not transferable"))})}),nz=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)}})},nG=t=>nI(b?Buffer.from(V(t),"base64").toString("binary"):atob(V(t)),!0);async function nq({animations:t=[],fileName:e,manifest:s,shouldDownload:i=!0}){try{if(0===t.length||!s)throw Error(`Missing or malformed required parameter(s):
|
|
8
|
+
${t.length>0?"- manifest\n":""} ${s?"- animations\n":""}`);let r=F("lottie",e)||`${S()}.lottie`,a={"manifest.json":[nI(JSON.stringify(s),!0),{level:0}]},{length:n}=t;for(let e=0;e<n;e++){let{length:i}=t[e]?.assets??[];for(let s=0;s<i;s++){let i=t[e]?.assets[s];if(!i.p||!B(i)&&!N(i))continue;let{p:r,u:n}=i;if(!r)continue;let o=S(),h=r.startsWith("data:"),l=h?T(r):D(r),p=h?r:await nz(n?n.endsWith("/")&&`${n}${r}`||`${n}/${r}`:r),m=t[e]?.assets[s];m.e=1,m.p=`${o}.${l}`,m.u="",a[`${N(i)?"audio":"i"}/${o}.${l}`]=[nG(p),{level:9}]}let{length:r}=t[e]?.layers??[];for(let s=0;s<r;s++){let{ks:i}=t[e]?.layers[s]??{},r=Object.keys(i),{length:a}=r;for(let t=0;t<a;t++){let e=i[r[t]],s=e?.x;e&&s&&(e.x=btoa(s),e.e=1)}}a[`a/${s.animations[e]?.id}.json`]=[nI(JSON.stringify(t[e]),!0),{level:9}]}let o=await nO(a);if(i)return P(o,{mimeType:"application/zip+dotlottie",name:r}),null;return o}catch(t){return M(t),null}}let nj=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""}},nH=t=>!!t&&/^(?:[0-9a-z+/]{4})*(?:[0-9a-z+/]{2}==|[0-9a-z+/]{3}=)?$/i.test(V(t));async function nW(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)&&!B(a))continue;let n=B(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(b)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:")||nH(a.p)?a.p:`data:${nj(D(a.p))};base64,${e}`,a.e=1,a.u="",t()}))}await Promise.all(s)}let nY=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&&a6(7);var i=[],r=function(){for(var t=0;t<i.length;++t)i[t]()},a={},n=function(t,e){nV(function(){s(t,e)})};nV(function(){n=s});for(var o=t.length-22;0x6054b50!=nE(t,o);--o)if(!o||t.length-o>65558)return n(a6(13,0,1),null),r;var h=nw(t,o+8);if(h){var l=h,p=nE(t,o+16),m=0x7064b50==nE(t,o-20);if(m){var c=nE(t,o-12);(m=0x6064b50==nE(t,c))&&(l=h=nE(t,c+32),p=nE(t,c+48))}for(var d=e&&e.filter,u=0;u<l;++u)!function(){var e=nL(t,p,m),s=e[0],o=e[1],l=e[2],c=e[3],u=e[4],f=e[5],g=f+30+nw(t,f+26)+nw(t,f+28);p=u;var y=function(t,e){t?(r(),n(t,null)):(e&&(a[c]=e),--h||n(null,a))};if(!d||d({name:c,size:o,originalSize:l,compression:s}))if(s)if(8==s){var b,v,_=t.subarray(g,g+o);if(l<524288||o>.8*l)try{y(null,nM(_,{out:new aT(l)}))}catch(t){y(t,null)}else i.push((b={size:l},(v=y)||(v=b,b={}),"function"!=typeof v&&a6(7),nx(_,b,[ny],function(t){return nv(nM(t.data[0],n_(t.data[1])))},1,v)))}else y(a6(14,"unknown compression type "+s,1),null);else y(null,a5(t,g,g+o));else y(null,null)}()}else n(null,{})}(e,(e,i)=>{e&&s(e),t(i)})})},nU=t=>t.replaceAll(RegExp(/"""/,"g"),'""').replaceAll(/(["'])(.*?)\1/g,(t,e,s)=>`${e}${s}${e}`);async function nJ(t){let e=await nY(t),s=(t=>{let e=JSON.parse(nF(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(nU(nF(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(nW(e,a.assets)),i.push(a)}return await Promise.all(r),{data:i,manifest:s}}async function nX(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:{"Content-Type":"application/json; charset=UTF-8"}});if(!e.ok)throw Error(e.statusText);let s=!0,i=e.headers.get("content-type");if("application/zip+dotlottie"===i&&(s=!1),s){let s=D(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:r,manifest:a}=await nJ(e);return{animations:r,isDotLottie:!0,manifest:a}}catch(t){return M(t),{animations:void 0,isDotLottie:!1,manifest:null}}}function nZ({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)||`${S()}.json`,r=JSON.stringify(t);if(s)return P(r,{mimeType:"application/json",name:i}),null;return r}catch(t){return M(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 nX(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 nX(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 nq({animations:n,fileName:e,manifest:o,shouldDownload:r}),success:!0}}catch(t){return{error:t.message,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 nX(o)).animations??[]),h||r){let t=I(s||o||"converted");return l.length>1&&(t+=`-${e+1}`),t+=".json",{result:nZ({animation:l[e],fileName:t,shouldDownload:n}),success:!0}}return{result:await nq({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,success:!1}}},createDotLottie:nq,createJSON:nZ,getAnimationData:nX,getLottieJSON:nJ,resolveAssets:nW});let nQ=null,n0=Symbol("UPDATE_ON_CONNECTED");b&&(global.HTMLElement=class{});class n1 extends HTMLElement{constructor(){super(),n0 in this&&(this[n0]=[]);const{observedProperties:t}=this.constructor,{length:e}=t;for(let s=0;s<e;s++){const 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)}}),void 0!==e&&n0 in this&&Array.isArray(this[n0])&&this[n0].push(t[s])}}connectedCallback(){let t=[];n0 in this&&Array.isArray(this[n0])&&(t=this[n0]);let{length:e}=t;for(let s=0;s<e;s++)"propertyChangedCallback"in this&&"function"==typeof this.propertyChangedCallback&&(t[s]??""in this)&&this.propertyChangedCallback(t[s]??"",void 0,this[t[s]])}propertyChangedCallback(t,e,s){throw Error(`${this.constructor.name}: Method propertyChangedCallback is not implemented`)}}let n2=null,n3=null;function n5(){return n2?Promise.resolve(n2):n3=n3??(async()=>{let{addAnimation:t,convert:e}=await Promise.resolve().then(function(){return nK});return n2={addAnimation:t,convert:e},{addAnimation:t,convert:e}})()}let n4=`
|
|
9
9
|
<svg width="24" height="24" aria-hidden="true" focusable="false">
|
|
10
10
|
<path
|
|
11
11
|
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"
|