UNPKG

@teamhive/lottie-player

Version:

Lottie animation web component.

9 lines 200 kB
import{r as registerInstance,c as createEvent,h}from"./p-414a63e1.js";function createCommonjsModule(t,i){return t(i={exports:{}},i.exports),i.exports}var lottie_svg=createCommonjsModule((function(module){"undefined"!=typeof navigator&&function(t,i){module.exports?module.exports=i(t):(t.lottie=i(t),t.bodymovin=t.lottie)}(window||{},(function(window){var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_floor=Math.floor,bm_min=Math.min,BMMath={};function ProjectInterface(){return{}}!function(){var t,i=["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"],e=i.length;for(t=0;t<e;t+=1)BMMath[i[t]]=Math[i[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){var i,e=createSizedArray(t.length),s=t.length;for(i=0;i<s;i+=1)e[i]=Math.abs(t[i]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function BMEnterFrameEvent(t,i,e,s){this.type=t,this.currentTime=i,this.totalTime=e,this.direction=s<0?-1:1}function BMCompleteEvent(t,i){this.type=t,this.direction=i<0?-1:1}function BMCompleteLoopEvent(t,i,e,s){this.type=t,this.currentLoop=e,this.totalLoops=i,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,i,e){this.type=t,this.firstFrame=i,this.totalFrames=e}function BMDestroyEvent(t,i){this.type=t,this.target=i}function BMRenderFrameErrorEvent(t,i){this.type="renderFrameError",this.nativeError=t,this.currentTime=i}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(_count=0,function(){return"__lottie_element_"+ ++_count}),_count;function HSVtoRGB(t,i,e){var s,r,h,n,o,a,f,c;switch(a=e*(1-i),f=e*(1-(o=6*t-(n=Math.floor(6*t)))*i),c=e*(1-(1-o)*i),n%6){case 0:s=e,r=c,h=a;break;case 1:s=f,r=e,h=a;break;case 2:s=a,r=e,h=c;break;case 3:s=a,r=f,h=e;break;case 4:s=c,r=a,h=e;break;case 5:s=e,r=a,h=f}return[s,r,h]}function RGBtoHSV(t,i,e){var s,r=Math.max(t,i,e),h=Math.min(t,i,e),n=r-h,o=0===r?0:n/r,a=r/255;switch(r){case h:s=0;break;case t:s=i-e+n*(i<e?6:0),s/=6*n;break;case i:s=e-t+2*n,s/=6*n;break;case e:s=t-i+4*n,s/=6*n}return[s,o,a]}function addSaturationToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[1]+=i,e[1]>1?e[1]=1:e[1]<=0&&(e[1]=0),HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[2]+=i,e[2]>1?e[2]=1:e[2]<0&&(e[2]=0),HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(t,i){var e=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return e[0]+=i/360,e[0]>1?e[0]-=1:e[0]<0&&(e[0]+=1),HSVtoRGB(e[0],e[1],e[2])}var rgbToHex=function(){var t,i,e=[];for(t=0;t<256;t+=1)i=t.toString(16),e[t]=1==i.length?"0"+i:i;return function(t,i,s){return t<0&&(t=0),i<0&&(i=0),s<0&&(s=0),"#"+e[t]+e[i]+e[s]}}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,i){if(this._cbs[t])for(var e=this._cbs[t].length,s=0;s<e;s++)this._cbs[t][s](i)},addEventListener:function(t,i){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(i),function(){this.removeEventListener(t,i)}.bind(this)},removeEventListener:function(t,i){if(i){if(this._cbs[t]){for(var e=0,s=this._cbs[t].length;e<s;)this._cbs[t][e]===i&&(this._cbs[t].splice(e,1),e-=1,s-=1),e+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray="function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,i){return"float32"===t?new Float32Array(i):"int16"===t?new Int16Array(i):"uint8c"===t?new Uint8ClampedArray(i):void 0}:function(t,i){var e,s=0,r=[];switch(t){case"int16":case"uint8c":e=1;break;default:e=1.1}for(s=0;s<i;s+=1)r.push(e);return r};function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,i=this.dynamicProperties.length;for(t=0;t<i;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums,Matrix=function(){var t=Math.cos,i=Math.sin,e=Math.tan,s=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function h(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function n(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function a(e){if(0===e)return this;var s=t(e),r=i(e);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function f(t,i){return this._t(1,i,t,1,0,0)}function c(t,i){return this.shear(e(t),e(i))}function u(s,r){var h=t(r),n=i(r);return this._t(h,n,0,0,-n,h,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,e(s),1,0,0,0,0,1,0,0,0,0,1)._t(h,-n,0,0,n,h,0,0,0,0,1,0,0,0,0,1)}function l(t,i,e){return e||0===e||(e=1),1===t&&1===i&&1===e?this:this._t(t,0,0,0,0,i,0,0,0,0,e,0,0,0,0,1)}function p(t,i,e,s,r,h,n,o,a,f,c,u,l,p,m,d){return this.props[0]=t,this.props[1]=i,this.props[2]=e,this.props[3]=s,this.props[4]=r,this.props[5]=h,this.props[6]=n,this.props[7]=o,this.props[8]=a,this.props[9]=f,this.props[10]=c,this.props[11]=u,this.props[12]=l,this.props[13]=p,this.props[14]=m,this.props[15]=d,this}function m(t,i,e){return e=e||0,0!==t||0!==i||0!==e?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,i,e,1):this}function d(t,i,e,s,r,h,n,o,a,f,c,u,l,p,m,d){var v=this.props;if(1===t&&0===i&&0===e&&0===s&&0===r&&1===h&&0===n&&0===o&&0===a&&0===f&&1===c&&0===u)return v[12]=v[12]*t+v[15]*l,v[13]=v[13]*h+v[15]*p,v[14]=v[14]*c+v[15]*m,v[15]=v[15]*d,this._identityCalculated=!1,this;var y=v[0],S=v[1],g=v[2],M=v[3],P=v[4],E=v[5],x=v[6],b=v[7],w=v[8],T=v[9],I=v[10],F=v[11],k=v[12],G=v[13],A=v[14],_=v[15];return v[0]=y*t+S*r+g*a+M*l,v[1]=y*i+S*h+g*f+M*p,v[2]=y*e+S*n+g*c+M*m,v[3]=y*s+S*o+g*u+M*d,v[4]=P*t+E*r+x*a+b*l,v[5]=P*i+E*h+x*f+b*p,v[6]=P*e+E*n+x*c+b*m,v[7]=P*s+E*o+x*u+b*d,v[8]=w*t+T*r+I*a+F*l,v[9]=w*i+T*h+I*f+F*p,v[10]=w*e+T*n+I*c+F*m,v[11]=w*s+T*o+I*u+F*d,v[12]=k*t+G*r+A*a+_*l,v[13]=k*i+G*h+A*f+_*p,v[14]=k*e+G*n+A*c+_*m,v[15]=k*s+G*o+A*u+_*d,this._identityCalculated=!1,this}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var i=0;i<16;){if(t.props[i]!==this.props[i])return!1;i+=1}return!0}function S(t){var i;for(i=0;i<16;i+=1)t.props[i]=this.props[i]}function g(t){var i;for(i=0;i<16;i+=1)this.props[i]=t[i]}function M(t,i,e){return{x:t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],y:t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],z:t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}}function P(t,i,e){return t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12]}function E(t,i,e){return t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13]}function x(t,i,e){return t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]}function b(t){var i=this.props[0]*this.props[5]-this.props[1]*this.props[4];return[t[0]*(this.props[5]/i)+t[1]*(-this.props[4]/i)+(this.props[4]*this.props[13]-this.props[5]*this.props[12])/i,t[0]*(-this.props[1]/i)+t[1]*(this.props[0]/i)+-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/i,0]}function w(t){var i,e=t.length,s=[];for(i=0;i<e;i+=1)s[i]=b(t[i]);return s}function T(t,i,e){var s=createTypedArray("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=i[0],s[3]=i[1],s[4]=e[0],s[5]=e[1];else{var r=this.props[0],h=this.props[1],n=this.props[4],o=this.props[5],a=this.props[12],f=this.props[13];s[0]=t[0]*r+t[1]*n+a,s[1]=t[0]*h+t[1]*o+f,s[2]=i[0]*r+i[1]*n+a,s[3]=i[0]*h+i[1]*o+f,s[4]=e[0]*r+e[1]*n+a,s[5]=e[0]*h+e[1]*o+f}return s}function I(t,i,e){return this.isIdentity()?[t,i,e]:[t*this.props[0]+i*this.props[4]+e*this.props[8]+this.props[12],t*this.props[1]+i*this.props[5]+e*this.props[9]+this.props[13],t*this.props[2]+i*this.props[6]+e*this.props[10]+this.props[14]]}function F(t,i){if(this.isIdentity())return t+","+i;var e=this.props;return Math.round(100*(t*e[0]+i*e[4]+e[12]))/100+","+Math.round(100*(t*e[1]+i*e[5]+e[13]))/100}function k(){for(var t=0,i=this.props,e="matrix3d(";t<16;)e+=s(1e4*i[t])/1e4,e+=15===t?")":",",t+=1;return e}function G(t){return t<1e-6&&t>0||t>-1e-6&&t<0?s(1e4*t)/1e4:t}function A(){var t=this.props;return"matrix("+G(t[0])+","+G(t[1])+","+G(t[4])+","+G(t[5])+","+G(t[12])+","+G(t[13])+")"}return function(){this.reset=r,this.rotate=h,this.rotateX=n,this.rotateY=o,this.rotateZ=a,this.skew=c,this.skewFromAxis=u,this.shear=f,this.scale=l,this.setTransform=p,this.translate=m,this.transform=d,this.applyToPoint=M,this.applyToX=P,this.applyToY=E,this.applyToZ=x,this.applyToPointArray=I,this.applyToTriplePoints=T,this.applyToPointStringified=F,this.toCSS=k,this.to2dCSS=A,this.clone=S,this.cloneFromProps=g,this.equals=y,this.inversePoints=w,this.inversePoint=b,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}(); /*! Transformation Matrix v2.0 (c) Epistemex 2014-2015 www.epistemex.com By Ken Fyrstenberg Contributions by leeoniya. License: MIT, header required. */!function(t,i){var e=this,s=256,r=i.pow(s,6),h=i.pow(2,52),n=2*h,o=s-1;function a(t){var i,e=t.length,r=this,h=0,n=r.i=r.j=0,a=r.S=[];for(e||(t=[e++]);h<s;)a[h]=h++;for(h=0;h<s;h++)a[h]=a[n=o&n+t[h%e]+(i=a[h])],a[n]=i;r.g=function(t){for(var i,e=0,h=r.i,n=r.j,a=r.S;t--;)i=a[h=o&h+1],e=e*s+a[o&(a[h]=a[n=o&n+i])+(a[n]=i)];return r.i=h,r.j=n,e}}function f(t,i){return i.i=t.i,i.j=t.j,i.S=t.S.slice(),i}function c(t,i){for(var e,s=t+"",r=0;r<s.length;)i[o&r]=o&(e^=19*i[o&r])+s.charCodeAt(r++);return u(i)}function u(t){return String.fromCharCode.apply(0,t)}i.seedrandom=function(o,l,p){var m=[],d=c(function t(i,e){var s,r=[],h=typeof i;if(e&&"object"==h)for(s in i)try{r.push(t(i[s],e-1))}catch(n){}return r.length?r:"string"==h?i:i+"\0"}((l=!0===l?{entropy:!0}:l||{}).entropy?[o,u(t)]:null===o?function(){try{var i=new Uint8Array(s);return(e.crypto||e.msCrypto).getRandomValues(i),u(i)}catch(n){var r=e.navigator,h=r&&r.plugins;return[+new Date,e,h,e.screen,u(t)]}}():o,3),m),v=new a(m),y=function(){for(var t=v.g(6),i=r,e=0;t<h;)t=(t+e)*s,i*=s,e=v.g(1);for(;t>=n;)t/=2,i/=2,e>>>=1;return(t+e)/i};return y.int32=function(){return 0|v.g(4)},y.quick=function(){return v.g(4)/4294967296},y.double=y,c(u(v.S),t),(l.pass||p||function(t,e,s,r){return r&&(r.S&&f(r,v),t.state=function(){return f(v,{})}),s?(i.random=t,e):t})(y,d,"global"in l?l.global:this==i,l.state)},c(i.random(),t)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,e,s,r,h){var n=h||("bez_"+t+"_"+e+"_"+s+"_"+r).replace(/\./g,"p");if(i[n])return i[n];var o=new c([t,e,s,r]);return i[n]=o,o}},i={},e=11,s=1/(e-1),r="function"==typeof Float32Array;function h(t,i){return 1-3*i+3*t}function n(t,i){return 3*i-6*t}function o(t){return 3*t}function a(t,i,e){return((h(i,e)*t+n(i,e))*t+o(i))*t}function f(t,i,e){return 3*h(i,e)*t*t+2*n(i,e)*t+o(i)}function c(t){this._p=t,this._mSampleValues=r?new Float32Array(e):new Array(e),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var i=this._p[0],e=this._p[1],s=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),i===e&&s===r?t:0===t?0:1===t?1:a(this._getTForX(t),e,r)},_precompute:function(){var t=this._p[0],i=this._p[1],e=this._p[2],s=this._p[3];this._precomputed=!0,t===i&&e===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],i=this._p[2],r=0;r<e;++r)this._mSampleValues[r]=a(r*s,t,i)},_getTForX:function(t){for(var i=this._p[0],r=this._p[2],h=this._mSampleValues,n=0,o=1,c=e-1;o!==c&&h[o]<=t;++o)n+=s;var u=n+(t-h[--o])/(h[o+1]-h[o])*s,l=f(u,i,r);return l>=.001?function(t,i,e,s){for(var r=0;r<4;++r){var h=f(i,e,s);if(0===h)return i;i-=(a(i,e,s)-t)/h}return i}(t,u,i,r):0===l?u:function(t,i,e,s,r){var h,n,o=0;do{(h=a(n=i+(e-i)/2,s,r)-t)>0?e=n:i=n}while(Math.abs(h)>1e-7&&++o<10);return n}(t,n,n+s,i,r)}},t}();function extendPrototype(t,i){var e,s,r=t.length;for(e=0;e<r;e+=1)for(var h in s=t[e].prototype)s.hasOwnProperty(h)&&(i.prototype[h]=s[h])}function getDescriptor(t,i){return Object.getOwnPropertyDescriptor(t,i)}function createProxyFunction(t){function i(){}return i.prototype=t,i}function bezFunction(){function t(t,i,e,s,r,h){var n=t*s+i*r+e*h-r*s-h*t-e*i;return n>-.001&&n<.001}var i=function(t,i,e,s){var r,h,n,o,a,f,c=defaultCurveSegments,u=0,l=[],p=[],m=bezier_length_pool.newElement();for(n=e.length,r=0;r<c;r+=1){for(a=r/(c-1),f=0,h=0;h<n;h+=1)o=bm_pow(1-a,3)*t[h]+3*bm_pow(1-a,2)*a*e[h]+3*(1-a)*bm_pow(a,2)*s[h]+bm_pow(a,3)*i[h],l[h]=o,null!==p[h]&&(f+=bm_pow(l[h]-p[h],2)),p[h]=l[h];f&&(u+=f=bm_sqrt(f)),m.percents[r]=a,m.lengths[r]=u}return m.addedLength=u,m};function e(t){this.segmentLength=0,this.points=new Array(t)}function s(t,i){this.partialLength=t,this.point=i}var r,h=(r={},function(i,h,n,o){var a=(i[0]+"_"+i[1]+"_"+h[0]+"_"+h[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!r[a]){var f,c,u,l,p,m,d,v=defaultCurveSegments,y=0,S=null;2===i.length&&(i[0]!=h[0]||i[1]!=h[1])&&t(i[0],i[1],h[0],h[1],i[0]+n[0],i[1]+n[1])&&t(i[0],i[1],h[0],h[1],h[0]+o[0],h[1]+o[1])&&(v=2);var g=new e(v);for(u=n.length,f=0;f<v;f+=1){for(d=createSizedArray(u),p=f/(v-1),m=0,c=0;c<u;c+=1)l=bm_pow(1-p,3)*i[c]+3*bm_pow(1-p,2)*p*(i[c]+n[c])+3*(1-p)*bm_pow(p,2)*(h[c]+o[c])+bm_pow(p,3)*h[c],d[c]=l,null!==S&&(m+=bm_pow(d[c]-S[c],2));y+=m=bm_sqrt(m),g.points[f]=new s(m,d),S=d}g.segmentLength=y,r[a]=g}return r[a]});function n(t,i){var e=i.percents,s=i.lengths,r=e.length,h=bm_floor((r-1)*t),n=t*i.addedLength,o=0;if(h===r-1||0===h||n===s[h])return e[h];for(var a=s[h]>n?-1:1,f=!0;f;)if(s[h]<=n&&s[h+1]>n?(o=(n-s[h])/(s[h+1]-s[h]),f=!1):h+=a,h<0||h>=r-1){if(h===r-1)return e[h];f=!1}return e[h]+(e[h+1]-e[h])*o}var o=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,s=segments_length_pool.newElement(),r=t.c,h=t.v,n=t.o,o=t.i,a=t._length,f=s.lengths,c=0;for(e=0;e<a-1;e+=1)f[e]=i(h[e],h[e+1],n[e],o[e+1]),c+=f[e].addedLength;return r&&a&&(f[e]=i(h[e],h[0],n[e],o[0]),c+=f[e].addedLength),s.totalLength=c,s},getNewSegment:function(t,i,e,s,r,h,a){var f,c=n(r=r<0?0:r>1?1:r,a),u=n(h=h>1?1:h,a),l=t.length,p=1-c,m=1-u,d=p*p*p,v=c*p*p*3,y=c*c*p*3,S=c*c*c,g=p*p*m,M=c*p*m+p*c*m+p*p*u,P=c*c*m+p*c*u+c*p*u,E=c*c*u,x=p*m*m,b=c*m*m+p*u*m+p*m*u,w=c*u*m+p*u*u+c*m*u,T=c*u*u,I=m*m*m,F=u*m*m+m*u*m+m*m*u,k=u*u*m+m*u*u+u*m*u,G=u*u*u;for(f=0;f<l;f+=1)o[4*f]=Math.round(1e3*(d*t[f]+v*e[f]+y*s[f]+S*i[f]))/1e3,o[4*f+1]=Math.round(1e3*(g*t[f]+M*e[f]+P*s[f]+E*i[f]))/1e3,o[4*f+2]=Math.round(1e3*(x*t[f]+b*e[f]+w*s[f]+T*i[f]))/1e3,o[4*f+3]=Math.round(1e3*(I*t[f]+F*e[f]+k*s[f]+G*i[f]))/1e3;return o},getPointInSegment:function(t,i,e,s,r,h){var o=n(r,h),a=1-o;return[Math.round(1e3*(a*a*a*t[0]+(o*a*a+a*o*a+a*a*o)*e[0]+(o*o*a+a*o*o+o*a*o)*s[0]+o*o*o*i[0]))/1e3,Math.round(1e3*(a*a*a*t[1]+(o*a*a+a*o*a+a*a*o)*e[1]+(o*o*a+a*o*o+o*a*o)*s[1]+o*o*o*i[1]))/1e3]},buildBezierData:h,pointOnLine2D:t,pointOnLine3D:function(i,e,s,r,h,n,o,a,f){if(0===s&&0===n&&0===f)return t(i,e,r,h,o,a);var c,u=Math.sqrt(Math.pow(r-i,2)+Math.pow(h-e,2)+Math.pow(n-s,2)),l=Math.sqrt(Math.pow(o-i,2)+Math.pow(a-e,2)+Math.pow(f-s,2)),p=Math.sqrt(Math.pow(o-r,2)+Math.pow(a-h,2)+Math.pow(f-n,2));return(c=u>l?u>p?u-l-p:p-l-u:p>l?p-l-u:l-u-p)>-1e-4&&c<1e-4}}}!function(){for(var t=0,i=["ms","moz","webkit","o"],e=0;e<i.length&&!window.requestAnimationFrame;++e)window.requestAnimationFrame=window[i[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[i[e]+"CancelAnimationFrame"]||window[i[e]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(i){var e=(new Date).getTime(),s=Math.max(0,16-(e-t)),r=setTimeout((function(){i(e+s)}),s);return t=e+s,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction();function dataFunctionManager(){function t(t,i){for(var e=0,s=i.length;e<s;){if(i[e].id===t)return i[e].layers.__used?JSON.parse(JSON.stringify(i[e].layers)):(i[e].layers.__used=!0,i[e].layers);e+=1}}function i(t){var s,r,h;for(s=t.length-1;s>=0;s-=1)if("sh"==t[s].ty)if(t[s].ks.k.i)e(t[s].ks.k);else for(h=t[s].ks.k.length,r=0;r<h;r+=1)t[s].ks.k[r].s&&e(t[s].ks.k[r].s[0]),t[s].ks.k[r].e&&e(t[s].ks.k[r].e[0]);else"gr"==t[s].ty&&i(t[s].it)}function e(t){var i,e=t.i.length;for(i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function s(t,i){var e=i?i.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||!(e[2]>t[2])&&void 0))}var r,h=function(){var t=[4,4,14];function i(t){var i,e,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&((e=t[i]).t.d={k:[{s:e.t.d,t:0}]})}return function(e){if(s(t,e.v)&&(i(e.layers),e.assets)){var r,h=e.assets.length;for(r=0;r<h;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),n=(r=[4,7,99],function(t){if(t.chars&&!s(r,t.v)){var i,h,n,o,a,f=t.chars.length;for(i=0;i<f;i+=1)if(t.chars[i].data&&t.chars[i].data.shapes)for(n=(a=t.chars[i].data.shapes[0].it).length,h=0;h<n;h+=1)(o=a[h].ks.k).__converted||(e(a[h].ks.k),o.__converted=!0)}}),o=function(){var t=[4,1,9];function i(t){var e,s,r,h=t.length;for(e=0;e<h;e+=1)if("gr"===t[e].ty)i(t[e].it);else if("fl"===t[e].ty||"st"===t[e].ty)if(t[e].c.k&&t[e].c.k[0].i)for(r=t[e].c.k.length,s=0;s<r;s+=1)t[e].c.k[s].s&&(t[e].c.k[s].s[0]/=255,t[e].c.k[s].s[1]/=255,t[e].c.k[s].s[2]/=255,t[e].c.k[s].s[3]/=255),t[e].c.k[s].e&&(t[e].c.k[s].e[0]/=255,t[e].c.k[s].e[1]/=255,t[e].c.k[s].e[2]/=255,t[e].c.k[s].e[3]/=255);else t[e].c.k[0]/=255,t[e].c.k[1]/=255,t[e].c.k[2]/=255,t[e].c.k[3]/=255}function e(t){var e,s=t.length;for(e=0;e<s;e+=1)4===t[e].ty&&i(t[e].shapes)}return function(i){if(s(t,i.v)&&(e(i.layers),i.assets)){var r,h=i.assets.length;for(r=0;r<h;r+=1)i.assets[r].layers&&e(i.assets[r].layers)}}}(),a=function(){var t=[4,4,18];function i(t){var e,s,r;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)t[e].ks.k.c=t[e].closed;else for(r=t[e].ks.k.length,s=0;s<r;s+=1)t[e].ks.k[s].s&&(t[e].ks.k[s].s[0].c=t[e].closed),t[e].ks.k[s].e&&(t[e].ks.k[s].e[0].c=t[e].closed);else"gr"==t[e].ty&&i(t[e].it)}function e(t){var e,s,r,h,n,o,a=t.length;for(s=0;s<a;s+=1){if((e=t[s]).hasMask){var f=e.masksProperties;for(h=f.length,r=0;r<h;r+=1)if(f[r].pt.k.i)f[r].pt.k.c=f[r].cl;else for(o=f[r].pt.k.length,n=0;n<o;n+=1)f[r].pt.k[n].s&&(f[r].pt.k[n].s[0].c=f[r].cl),f[r].pt.k[n].e&&(f[r].pt.k[n].e[0].c=f[r].cl)}4===e.ty&&i(e.shapes)}}return function(i){if(s(t,i.v)&&(e(i.layers),i.assets)){var r,h=i.assets.length;for(r=0;r<h;r+=1)i.assets[r].layers&&e(i.assets[r].layers)}}}();return{completeData:function(s){s.__complete||(o(s),h(s),n(s),a(s),function s(r,h){var n,o,a,f,c,u,l,p=r.length;for(o=0;o<p;o+=1)if("ks"in(n=r[o])&&!n.completed){if(n.completed=!0,n.tt&&(r[o-1].td=n.tt),n.hasMask){var m=n.masksProperties;for(f=m.length,a=0;a<f;a+=1)if(m[a].pt.k.i)e(m[a].pt.k);else for(u=m[a].pt.k.length,c=0;c<u;c+=1)m[a].pt.k[c].s&&e(m[a].pt.k[c].s[0]),m[a].pt.k[c].e&&e(m[a].pt.k[c].e[0])}0===n.ty?(n.layers=t(n.refId,h),s(n.layers,h)):4===n.ty?i(n.shapes):5==n.ty&&(0!==(l=n).t.a.length||"m"in l.t.p||(l.singleShape=!0))}}(s.layers,s.assets),s.__complete=!0)}}}var dataManager=dataFunctionManager(),FontManager=function(){var t={w:0,size:0,shapes:[]},i=[];function e(t,i){var e=createTag("span");e.style.fontFamily=i;var s=createTag("span");s.innerHTML="giItT1WQy@!-/#",e.style.position="absolute",e.style.left="-10000px",e.style.top="-10000px",e.style.fontSize="300px",e.style.fontVariant="normal",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="0",e.appendChild(s),document.body.appendChild(e);var r=s.offsetWidth;return s.style.fontFamily=t+", "+i,{node:s,w:r,parent:e}}function s(t,i){var e=createNS("text");return e.style.fontSize="100px",e.setAttribute("font-family",i.fFamily),e.setAttribute("font-style",i.fStyle),e.setAttribute("font-weight",i.fWeight),e.textContent="1",i.fClass?(e.style.fontFamily="inherit",e.setAttribute("class",i.fClass)):e.style.fontFamily=i.fFamily,t.appendChild(e),createTag("canvas").getContext("2d").font=i.fWeight+" "+i.fStyle+" 100px "+i.fFamily,e}i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now()};return r.getCombinedCharacterCodes=function(){return i},r.prototype.addChars=function(t){if(t){this.chars||(this.chars=[]);var i,e,s,r=t.length,h=this.chars.length;for(i=0;i<r;i+=1){for(e=0,s=!1;e<h;)this.chars[e].style===t[i].style&&this.chars[e].fFamily===t[i].fFamily&&this.chars[e].ch===t[i].ch&&(s=!0),e+=1;s||(this.chars.push(t[i]),h+=1)}}},r.prototype.addFonts=function(t,i){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var r,h=t.list,n=h.length,o=n;for(r=0;r<n;r+=1){var a,f,c=!0;if(h[r].loaded=!1,h[r].monoCase=e(h[r].fFamily,"monospace"),h[r].sansCase=e(h[r].fFamily,"sans-serif"),h[r].fPath){if("p"===h[r].fOrigin||3===h[r].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+h[r].fFamily+'"], style[f-origin="3"][f-family="'+h[r].fFamily+'"]')).length>0&&(c=!1),c){var u=createTag("style");u.setAttribute("f-forigin",h[r].fOrigin),u.setAttribute("f-origin",h[r].origin),u.setAttribute("f-family",h[r].fFamily),u.type="text/css",u.innerHTML="@font-face {font-family: "+h[r].fFamily+"; font-style: normal; src: url('"+h[r].fPath+"');}",i.appendChild(u)}}else if("g"===h[r].fOrigin||1===h[r].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),f=0;f<a.length;f++)-1!==a[f].href.indexOf(h[r].fPath)&&(c=!1);if(c){var l=createTag("link");l.setAttribute("f-forigin",h[r].fOrigin),l.setAttribute("f-origin",h[r].origin),l.type="text/css",l.rel="stylesheet",l.href=h[r].fPath,document.body.appendChild(l)}}else if("t"===h[r].fOrigin||2===h[r].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),f=0;f<a.length;f++)h[r].fPath===a[f].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",h[r].fOrigin),p.setAttribute("f-origin",h[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",h[r].fPath),i.appendChild(p)}}}else h[r].loaded=!0,o-=1;h[r].helper=s(i,h[r]),h[r].cache={},this.fonts.push(h[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},r.prototype.getCharData=function(i,e,s){for(var r=0,h=this.chars.length;r<h;){if(this.chars[r].ch===i&&this.chars[r].style===e&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return("string"==typeof i&&13!==i.charCodeAt(0)||!i)&&console&&console.warn&&console.warn("Missing character from exported characters list: ",i,e,s),t},r.prototype.getFontByName=function(t){for(var i=0,e=this.fonts.length;i<e;){if(this.fonts[i].fName===t)return this.fonts[i];i+=1}return this.fonts[0]},r.prototype.measureText=function(t,i,e){var s=this.getFontByName(i),r=t.charCodeAt(0);if(!s.cache[r+1]){var h=s.helper;if(" "===t){h.textContent="|"+t+"|";var n=h.getComputedTextLength();h.textContent="||";var o=h.getComputedTextLength();s.cache[r+1]=(n-o)/100}else h.textContent=t,s.cache[r+1]=h.getComputedTextLength()/100}return s.cache[r+1]*e},r.prototype.checkLoadedFonts=function(){var t,i=this.fonts.length,e=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?e-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(this.fonts[t].monoCase.node.offsetWidth!==this.fonts[t].monoCase.w?(e-=1,this.fonts[t].loaded=!0):this.fonts[t].sansCase.node.offsetWidth!==this.fonts[t].sansCase.w&&(e-=1,this.fonts[t].loaded=!0),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==e&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFonts.bind(this),20):setTimeout(function(){this.isLoaded=!0}.bind(this),0)},r.prototype.loaded=function(){return this.isLoaded},r}(),PropertyFactory=function(){var t=initialDefaultFrame,i=Math.abs;function e(t,i){var e,r=this.offsetTime;"multidimensional"===this.propType&&(e=createTypedArray("float32",this.pv.length));for(var h,n,o,a,f,c,u,l,p=i.lastIndex,m=p,d=this.keyframes.length-1,v=!0;v;){if(h=this.keyframes[m],n=this.keyframes[m+1],m===d-1&&t>=n.t-r){h.h&&(h=n),p=0;break}if(n.t-r>t){p=m;break}m<d-1?m+=1:(p=0,v=!1)}var y,S,g,M,P,E,x,b,w,T,I,F,k,G,A,_,R,V,B=n.t-r,C=h.t-r;if(h.to){h.bezierData||(h.bezierData=bez.buildBezierData(h.s,n.s||h.e,h.to,h.ti));var D=h.bezierData;if(t>=B||t<C){var N=t>=B?D.points.length-1:0;for(a=D.points[N].point.length,o=0;o<a;o+=1)e[o]=D.points[N].point[o]}else{h.__fnct?l=h.__fnct:(l=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y,h.n).get,h.__fnct=l),f=l((t-C)/(B-C));var O,j=D.segmentLength*f,z=i.lastFrame<t&&i._lastKeyframeIndex===m?i._lastAddedLength:0;for(u=i.lastFrame<t&&i._lastKeyframeIndex===m?i._lastPoint:0,v=!0,c=D.points.length;v;){if(z+=D.points[u].partialLength,0===j||0===f||u===D.points.length-1){for(a=D.points[u].point.length,o=0;o<a;o+=1)e[o]=D.points[u].point[o];break}if(j>=z&&j<z+D.points[u+1].partialLength){for(O=(j-z)/D.points[u+1].partialLength,a=D.points[u].point.length,o=0;o<a;o+=1)e[o]=D.points[u].point[o]+(D.points[u+1].point[o]-D.points[u].point[o])*O;break}u<c-1?u+=1:v=!1}i._lastPoint=u,i._lastAddedLength=z-D.points[u].partialLength,i._lastKeyframeIndex=m}}else{var L;if(d=h.s.length,y=n.s||h.e,this.sh&&1!==h.h)t>=B?(e[0]=y[0],e[1]=y[1],e[2]=y[2]):t<=C?(e[0]=h.s[0],e[1]=h.s[1],e[2]=h.s[2]):function(t,i){var e=i[0],s=i[1],r=i[2],h=i[3],n=Math.atan2(2*s*h-2*e*r,1-2*s*s-2*r*r),o=Math.asin(2*e*s+2*r*h),a=Math.atan2(2*e*h-2*s*r,1-2*e*e-2*r*r);t[0]=n/degToRads,t[1]=o/degToRads,t[2]=a/degToRads}(e,(S=s(h.s),g=s(y),M=(t-C)/(B-C),T=[],(E=(I=S[0])*(A=g[0])+(F=S[1])*(_=g[1])+(k=S[2])*(R=g[2])+(G=S[3])*(V=g[3]))<0&&(E=-E,A=-A,_=-_,R=-R,V=-V),1-E>1e-6?(P=Math.acos(E),x=Math.sin(P),b=Math.sin((1-M)*P)/x,w=Math.sin(M*P)/x):(b=1-M,w=M),T[0]=b*I+w*A,T[1]=b*F+w*_,T[2]=b*k+w*R,T[3]=b*G+w*V,T));else for(m=0;m<d;m+=1)1!==h.h&&(t>=B?f=1:t<C?f=0:(h.o.x.constructor===Array?(h.__fnct||(h.__fnct=[]),h.__fnct[m]?l=h.__fnct[m]:(l=BezierFactory.getBezierEasing(void 0===h.o.x[m]?h.o.x[0]:h.o.x[m],void 0===h.o.y[m]?h.o.y[0]:h.o.y[m],void 0===h.i.x[m]?h.i.x[0]:h.i.x[m],void 0===h.i.y[m]?h.i.y[0]:h.i.y[m]).get,h.__fnct[m]=l)):h.__fnct?l=h.__fnct:(l=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,h.__fnct=l),f=l((t-C)/(B-C)))),y=n.s||h.e,L=1===h.h?h.s[m]:h.s[m]+(y[m]-h.s[m])*f,"multidimensional"===this.propType?e[m]=L:e=L}return i.lastIndex=p,e}function s(t){var i=t[0]*degToRads,e=t[1]*degToRads,s=t[2]*degToRads,r=Math.cos(i/2),h=Math.cos(e/2),n=Math.cos(s/2),o=Math.sin(i/2),a=Math.sin(e/2),f=Math.sin(s/2);return[o*a*n+r*h*f,o*h*n+r*a*f,r*a*n-o*h*f,r*h*n-o*a*f]}function r(){var i=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=s&&i>=s||this._caching.lastFrame<e&&i<e))){this._caching.lastFrame>=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(i,this._caching);this.pv=r}return this._caching.lastFrame=i,this.pv}function h(t){var e;if("unidimensional"===this.propType)i(this.v-(e=t*this.mult))>1e-5&&(this.v=e,this._mdf=!0);else for(var s=0,r=this.v.length;s<r;)i(this.v[s]-(e=t[s]*this.mult))>1e-5&&(this.v[s]=e,this._mdf=!0),s+=1}function n(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,i=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function a(t,i,e,s){this.propType="unidimensional",this.mult=e||1,this.data=i,this.v=e?i.k*e:i.k,this.pv=i.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=n,this.setVValue=h,this.addEffect=o}function f(t,i,e,s){this.propType="multidimensional",this.mult=e||1,this.data=i,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,a=i.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),createTypedArray("float32",a),this.vel=createTypedArray("float32",a),r=0;r<a;r+=1)this.v[r]=i.k[r]*this.mult,this.pv[r]=i.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=n,this.setVValue=h,this.addEffect=o}function c(i,s,a,f){this.propType="unidimensional",this.keyframes=s.k,this.offsetTime=i.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=a||1,this.elem=i,this.container=f,this.comp=i.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=n,this.setVValue=h,this.interpolateValue=e,this.effectsSequence=[r.bind(this)],this.addEffect=o}function u(i,s,a,f){this.propType="multidimensional";var c,u,l,p,m,d=s.k.length;for(c=0;c<d-1;c+=1)s.k[c].to&&s.k[c].s&&s.k[c].e&&(l=s.k[c].e,p=s.k[c].to,m=s.k[c].ti,(2===(u=s.k[c].s).length&&(u[0]!==l[0]||u[1]!==l[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],u[0]+p[0],u[1]+p[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],l[0]+m[0],l[1]+m[1])||3===u.length&&(u[0]!==l[0]||u[1]!==l[1]||u[2]!==l[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],u[0]+p[0],u[1]+p[1],u[2]+p[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],l[0]+m[0],l[1]+m[1],l[2]+m[2]))&&(s.k[c].to=null,s.k[c].ti=null),u[0]===l[0]&&u[1]===l[1]&&0===p[0]&&0===p[1]&&0===m[0]&&0===m[1]&&(2===u.length||u[2]===l[2]&&0===p[2]&&0===m[2])&&(s.k[c].to=null,s.k[c].ti=null));this.effectsSequence=[r.bind(this)],this.keyframes=s.k,this.offsetTime=i.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=i,this.container=f,this.comp=i.comp,this.getValue=n,this.setVValue=h,this.interpolateValue=e,this.frameId=-1;var v=s.k[0].s.length;for(this.v=createTypedArray("float32",v),this.pv=createTypedArray("float32",v),c=0;c<v;c+=1)this.v[c]=t,this.pv[c]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",v)},this.addEffect=o}return{getProp:function(t,i,e,s,r){var h;if(i.k.length)if("number"==typeof i.k[0])h=new f(t,i,s,r);else switch(e){case 0:h=new c(t,i,s,r);break;case 1:h=new u(t,i,s,r)}else h=new a(t,i,s,r);return h.effectsSequence.length&&r.addDynamicProperty(h),h}}}(),TransformPropertyFactory=function(){function t(t,i,e){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(e||t),i.p&&i.p.s?(this.px=PropertyFactory.getProp(t,i.p.x,0,0,this),this.py=PropertyFactory.getProp(t,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(t,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(t,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,i.rz,0,degToRads,this),i.or.k[0].ti){var s,r=i.or.k.length;for(s=0;s<r;s+=1)i.or.k[s].to=i.or.k[s].ti=null}this.or=PropertyFactory.getProp(t,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(t,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,i.s||{k:[100,100,100]},1,.01,this),this.o=i.o?PropertyFactory.getProp(t,i.o,0,.01,t):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(t){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?t.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,e,s=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/s,0),e=this.p.getValueAtTime(this.p.keyframes[0].t/s,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/s,0),e=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/s,0)):(i=this.p.pv,e=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/s,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],e=[];var r=this.px,h=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(i[0]=r.getValueAtTime((r.keyframes[0].t+.01)/s,0),i[1]=h.getValueAtTime((h.keyframes[0].t+.01)/s,0),e[0]=r.getValueAtTime(r.keyframes[0].t/s,0),e[1]=h.getValueAtTime(h.keyframes[0].t/s,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(i[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/s,0),i[1]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/s,0),e[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/s,0),e[1]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/s,0)):(i=[r.pv,h.pv],e[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/s,r.offsetTime),e[1]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/s,h.offsetTime))}this.v.rotate(-Math.atan2(i[1]-e[1],i[0]-e[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(i,e,s){return new t(i,e,s)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,i){this.c=t,this.setLength(i);for(var e=0;e<i;)this.v[e]=point_pool.newElement(),this.o[e]=point_pool.newElement(),this.i[e]=point_pool.newElement(),e+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,i,e,s,r){var h;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),e){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o}(!h[s]||h[s]&&!r)&&(h[s]=point_pool.newElement()),h[s][0]=t,h[s][1]=i},ShapePath.prototype.setTripleAt=function(t,i,e,s,r,h,n,o){this.setXYAt(t,i,"v",n,o),this.setXYAt(e,s,"o",n,o),this.setXYAt(r,h,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var i=this.v,e=this.o,s=this.i,r=0;this.c&&(t.setTripleAt(i[0][0],i[0][1],s[0][0],s[0][1],e[0][0],e[0][1],0,!1),r=1);var h,n=this._length-1,o=this._length;for(h=r;h<o;h+=1)t.setTripleAt(i[n][0],i[n][1],s[n][0],s[n][1],e[n][0],e[n][1],h,!1),n-=1;return t};var ShapePropertyFactory=function(){var t=-999999;function i(t,i,e){var s,r,h,n,o,a,f,c,u=e.lastIndex,l=this.keyframes;if(t<l[0].t-this.offsetTime)s=l[0].s[0],h=!0,u=0;else if(t>=l[l.length-1].t-this.offsetTime)s=l[l.length-1].s?l[l.length-1].s[0]:l[l.length-2].e[0],h=!0;else{for(var p,m,d=u,v=l.length-1,y=!0;y&&(p=l[d],!((m=l[d+1]).t-this.offsetTime>t));)d<v-1?d+=1:y=!1;if(u=d,!(h=1===p.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<p.t-this.offsetTime)c=0;else{var S;p.__fnct?S=p.__fnct:(S=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,p.__fnct=S),c=S((t-(p.t-this.offsetTime))/(m.t-this.offsetTime-(p.t-this.offsetTime)))}r=m.s?m.s[0]:p.e[0]}s=p.s[0]}for(a=i._length,f=s.i[0].length,e.lastIndex=u,n=0;n<a;n+=1)for(o=0;o<f;o+=1)i.i[n][o]=h?s.i[n][o]:s.i[n][o]+(r.i[n][o]-s.i[n][o])*c,i.o[n][o]=h?s.o[n][o]:s.o[n][o]+(r.o[n][o]-s.o[n][o])*c,i.v[n][o]=h?s.v[n][o]:s.v[n][o]+(r.v[n][o]-s.v[n][o])*c}function e(){var i=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<e&&i<e||r>s&&i>s)||(this._caching.lastIndex=r<i?this._caching.lastIndex:0,this.interpolateShape(i,this.pv,this._caching)),this._caching.lastFrame=i,this.pv}function s(){this.paths=this.localShapeCollection}function r(t){(function(t,i){if(t._length!==i._length||t.c!==i.c)return!1;var e,s=t._length;for(e=0;e<s;e+=1)if(t.v[e][0]!==i.v[e][0]||t.v[e][1]!==i.v[e][1]||t.o[e][0]!==i.o[e][0]||t.o[e][1]!==i.o[e][1]||t.i[e][0]!==i.i[e][0]||t.i[e][1]!==i.i[e][1])return!1;return!0})(this.v,t)||(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function h(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var t,i=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,e=this.effectsSequence.length;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function n(t,i,e){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=i,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shape_pool.clone(3===e?i.pt.k:i.ks.k),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function a(i,r,h){this.propType="shape",this.comp=i.comp,this.elem=i,this.container=i,this.offsetTime=i.data.st,this.keyframes=3===h?r.pt.k:r.ks.k,this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[e.bind(this)]}n.prototype.interpolateShape=i,n.prototype.getValue=h,n.prototype.setVValue=r,n.prototype.addEffect=o,a.prototype.getValue=h,a.prototype.interpolateShape=i,a.prototype.setVValue=r,a.prototype.addEffect=o;var f=function(){var t=roundCorner;function i(t,i){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=i.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.s=PropertyFactory.getProp(t,i.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return i.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var i=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,h=3!==this.d,n=this.v;n.v[0][0]=i,n.v[0][1]=e-r,n.v[1][0]=h?i+s:i-s,n.v[1][1]=e,n.v[2][0]=i,n.v[2][1]=e+r,n.v[3][0]=h?i-s:i+s,n.v[3][1]=e,n.i[0][0]=h?i-s*t:i+s*t,n.i[0][1]=e-r,n.i[1][0]=h?i+s:i-s,n.i[1][1]=e-r*t,n.i[2][0]=h?i+s*t:i-s*t,n.i[2][1]=e+r,n.i[3][0]=h?i-s:i+s,n.i[3][1]=e+r*t,n.o[0][0]=h?i+s*t:i-s*t,n.o[0][1]=e-r,n.o[1][0]=h?i+s:i-s,n.o[1][1]=e+r*t,n.o[2][0]=h?i-s*t:i+s*t,n.o[2][1]=e+r,n.o[3][0]=h?i-s:i+s,n.o[3][1]=e-r*t}},extendPrototype([DynamicPropertyContainer],i),i}(),c=function(){function t(t,i){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=i,this.frameId=-1,this.d=i.d,this.initDynamicPropertyContainer(t),1===i.sy?(this.ir=PropertyFactory.getProp(t,i.ir,0,0,this),this.is=PropertyFactory.getProp(t,i.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,i.pt,0,0,this),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.r=PropertyFactory.getProp(t,i.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,i.or,0,0,this),this.os=PropertyFactory.getProp(t,i.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,i,e,s,r=2*Math.floor(this.pt.v),h=2*Math.PI/r,n=!0,o=this.or.v,a=this.ir.v,f=this.os.v,c=this.is.v,u=2*Math.PI*o/(2*r),l=2*Math.PI*a/(2*r),p=-Math.PI/2;p+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){e=n?f:c,s=n?u:l;var d=(i=n?o:a)*Math.cos(p),v=i*Math.sin(p),y=0===d&&0===v?0:v/Math.sqrt(d*d+v*v),S=0===d&&0===v?0:-d/Math.sqrt(d*d+v*v);this.v.setTripleAt(d+=+this.p.v[0],v+=+this.p.v[1],d-y*s*e*m,v-S*s*e*m,d+y*s*e*m,v+S*s*e*m,t,!0),n=!n,p+=h*m}},convertPolygonToPath:function(){var t,i=Math.floor(this.pt.v),e=2*Math.PI/i,s=this.or.v,r=this.os.v,h=2*Math.PI*s/(4*i),n=-Math.PI/2,o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<i;t+=1){var a=s*Math.cos(n),f=s*Math.sin(n),c=0===a&&0===f?0:f/Math.sqrt(a*a+f*f),u=0===a&&0===f?0:-a/Math.sqrt(a*a+f*f);this.v.setTripleAt(a+=+this.p.v[0],f+=+this.p.v[1],a-c*h*r*o,f-u*h*r*o,a+c*h*r*o,f+u*h*r*o,t,!0),n+=e*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function t(t,i){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=i.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,i.p,1,0,this),this.s=PropertyFactory.getProp(t,i.s,1,0,this),this.r=PropertyFactory.getProp(t,i.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],i=this.p.v[1],e=this.s.v[0]/2,s=this.s.v[1]/2,r=bm_min(e,s,this.r.v),h=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+e,i-s+r,t+e,i-s+r,t+e,i-s+h,0,!0),this.v.setTripleAt(t+e,i+s-r,t+e,i+s-h,t+e,i+s-r,1,!0),0!==r?(this.v.setTripleAt(t+e-r,i+s,t+e-r,i+s,t+e-h,i+s,2,!0),this.v.setTripleAt(t-e+r,i+s,t-e+h,i+s,t-e+r,i+s,3,!0),this.v.setTripleAt(t-e,i+s-r,t-e,i+s-r,t-e,i+s-h,4,!0),this.v.setTripleAt(t-e,i-s+r,t-e,i-s+h,t-e,i-s+r,5,!0),this.v.setTripleAt(t-e+r,i-s,t-e+r,i-s,t-e+h,i-s,6,!0),this.v.setTripleAt(t+e-r,i-s,t+e-h,i-s,t+e-r,i-s,7,!0)):(this.v.setTripleAt(t-e,i+s,t-e+h,i+s,t-e,i+s,2),this.v.setTripleAt(t-e,i-s,t-e,i-s+h,t-e,i-s,3))):(this.v.setTripleAt(t+e,i-s+r,t+e,i-s+h,t+e,i-s+r,0,!0),0!==r?(this.v.setTripleAt(t+e-r,i-s,t+e-r,i-s,t+e-h,i-s,1,!0),this.v.setTripleAt(t-e+r,i-s,t-e+h,i-s,t-e+r,i-s,2,!0),this.v.setTripleAt(t-e,i-s+r,t-e,i-s+r,t-e,i-s+h,3,!0),this.v.setTripleAt(t-e,i+s-r,t-e,i+s-h,t-e,i+s-r,4,!0),this.v.setTripleAt(t-e+r,i+s,t-e+r,i+s,t-e+h,i+s,5,!0),this.v.setTripleAt(t+e-r,i+s,t+e-h,i+s,t+e-r,i+s,6,!0),this.v.setTripleAt(t+e,i+s-r,t+e,i+s-r,t+e,i+s-h,7,!0)):(this.v.setTripleAt(t-e,i-s,t-e+h,i-s,t-e,i-s,1,!0),this.v.setTripleAt(t-e,i+s,t-e,i+s-h,t-e,i+s,2,!0),this.v.setTripleAt(t+e,i+s,t+e-h,i+s,t+e,i+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,i,e){var s;return 3===e||4===e?s=(3===e?i.pt:i.ks).k.length?new a(t,i,e):new n(t,i,e):5===e?s=new u(t,i):6===e?s=new f(t,i):7===e&&(s=new c(t,i)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return n},getKeyframedConstructorFunction:function(){return a}}}(),ShapeModifiers=function(){var t={},i={};return t.registerModifier=function(t,e){i[t]||(i[t]=e)},t.getModifier=function(t,e,s){return new i[t](e,s)},t}();function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,i,e,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=e,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);var r,h,n=i.length||0;for(r=0;r<n;r+=1)h=PropertyFactory.getProp(t,i[r].v,0,0,this),this.k=h.k||this.k,this.dataProps[r]={n:i[r].n,p:h};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,i,e){this.data=i,this.c=createTypedArray("uint8c",4*i.p);var s=i.k.k[0].s?i.k.k[0].s.length-4*i.p:i.k.k.length-4*i.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(e),this.prop=PropertyFactory.getProp(t,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var i={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()};this