blob: 54f4e71ac155a8259d405dfd756370d7015d6f53 [file] [log] [blame]
!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(t):(t.lottie=e(t),t.bodymovin=t.lottie)}(window||{},function(window){"use strict";function ProjectInterface(){return{}}function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,s){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,s){this.type=t,this.currentLoop=e,this.totalLoops=r,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this._ch=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function randomString(t,e){void 0===e&&(e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");var r,s="";for(r=t;r>0;--r)s+=e[Math.round(Math.random()*(e.length-1))];return s}function HSVtoRGB(t,e,r){var s,i,a,n,o,h,l,p;switch(1===arguments.length&&(e=t.s,r=t.v,t=t.h),n=Math.floor(6*t),o=6*t-n,h=r*(1-e),l=r*(1-o*e),p=r*(1-(1-o)*e),n%6){case 0:s=r,i=p,a=h;break;case 1:s=l,i=r,a=h;break;case 2:s=h,i=r,a=p;break;case 3:s=h,i=l,a=r;break;case 4:s=p,i=h,a=r;break;case 5:s=r,i=h,a=l}return[s,i,a]}function RGBtoHSV(t,e,r){1===arguments.length&&(e=t.g,r=t.b,t=t.r);var s,i=Math.max(t,e,r),a=Math.min(t,e,r),n=i-a,o=0===i?0:n/i,h=i/255;switch(i){case a:s=0;break;case t:s=e-r+n*(e<r?6:0),s/=6*n;break;case e:s=r-t+2*n,s/=6*n;break;case r:s=t-e+4*n,s/=6*n}return[s,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}function BaseEvent(){}function _cv(t){return Array.apply(null,{length:t})}function _ct(t){return document.createElementNS(svgNS,t)}function _cu(t){return document.createElement(t)}function extendPrototype(t,e){var r,s,i=t.length;for(r=0;r<i;r+=1){s=t[r].prototype;for(var a in s)s.hasOwnProperty(a)&&(e.prototype[a]=s[a])}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function bezFunction(){function t(t,e,r,s,i,a){var n=t*s+e*i+r*a-i*s-a*t-r*e;return n>-1e-4&&n<1e-4}function e(e,r,s,i,a,n,o,h,l){if(0===s&&0===n&&0===l)return t(e,r,i,a,o,h);var p,m=Math.sqrt(Math.pow(i-e,2)+Math.pow(a-r,2)+Math.pow(n-s,2)),f=Math.sqrt(Math.pow(o-e,2)+Math.pow(h-r,2)+Math.pow(l-s,2)),c=Math.sqrt(Math.pow(o-i,2)+Math.pow(h-a,2)+Math.pow(l-n,2));return p=m>f?m>c?m-f-c:c-f-m:c>f?c-f-m:f-m-c,p>-1e-4&&p<1e-4}function r(t){var e,r=segments_length_pool.newElement(),s=t.c,i=t.v,a=t.o,n=t.i,o=t._length,l=r.lengths,p=0;for(e=0;e<o-1;e+=1)l[e]=h(i[e],i[e+1],a[e],n[e+1]),p+=l[e].addedLength;return s&&(l[e]=h(i[e],i[0],a[e],n[0]),p+=l[e].addedLength),r.totalLength=p,r}function s(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}function a(t,e){var r=e.percents,s=e.lengths,i=r.length,a=bm_floor((i-1)*t),n=t*e.addedLength,o=0;if(a===i-1||0===a||n===s[a])return r[a];for(var h=s[a]>n?-1:1,l=!0;l;)if(s[a]<=n&&s[a+1]>n?(o=(n-s[a])/(s[a+1]-s[a]),l=!1):a+=h,a<0||a>=i-1){if(a===i-1)return r[a];l=!1}return r[a]+(r[a+1]-r[a])*o}function n(t,e,r,s,i,n){var o=a(i,n),h=1-o,l=Math.round(1e3*(h*h*h*t[0]+(o*h*h+h*o*h+h*h*o)*r[0]+(o*o*h+h*o*o+o*h*o)*s[0]+o*o*o*e[0]))/1e3,p=Math.round(1e3*(h*h*h*t[1]+(o*h*h+h*o*h+h*h*o)*r[1]+(o*o*h+h*o*o+o*h*o)*s[1]+o*o*o*e[1]))/1e3;return[l,p]}function o(t,e,r,s,i,n,o){i=i<0?0:i>1?1:i;var h=a(i,o);n=n>1?1:n;var l,m=a(n,o),f=t.length,c=1-h,d=1-m,u=c*c*c,y=h*c*c*3,g=h*h*c*3,v=h*h*h,b=c*c*d,E=h*c*d+c*h*d+c*c*m,P=h*h*d+c*h*m+h*c*m,x=h*h*m,S=c*d*d,C=h*d*d+c*m*d+c*d*m,A=h*m*d+c*m*m+h*d*m,k=h*m*m,M=d*d*d,T=m*d*d+d*m*d+d*d*m,D=m*m*d+d*m*m+m*d*m,w=m*m*m;for(l=0;l<f;l+=1)p[4*l]=Math.round(1e3*(u*t[l]+y*r[l]+g*s[l]+v*e[l]))/1e3,p[4*l+1]=Math.round(1e3*(b*t[l]+E*r[l]+P*s[l]+x*e[l]))/1e3,p[4*l+2]=Math.round(1e3*(S*t[l]+C*r[l]+A*s[l]+k*e[l]))/1e3,p[4*l+3]=Math.round(1e3*(M*t[l]+T*r[l]+D*s[l]+w*e[l]))/1e3;return p}var h=(Math,function(){return function(t,e,r,s){var i,a,n,o,h,l,p=defaultCurveSegments,m=0,f=[],c=[],d=bezier_length_pool.newElement();for(n=r.length,i=0;i<p;i+=1){for(h=i/(p-1),l=0,a=0;a<n;a+=1)o=bm_pow(1-h,3)*t[a]+3*bm_pow(1-h,2)*h*r[a]+3*(1-h)*bm_pow(h,2)*s[a]+bm_pow(h,3)*e[a],f[a]=o,null!==c[a]&&(l+=bm_pow(f[a]-c[a],2)),c[a]=f[a];l&&(l=bm_sqrt(l),m+=l),d.percents[i]=h,d.lengths[i]=m}return d.addedLength=m,d}}()),l=function(){var e={};return function(r){var a=r.s,n=r.e,o=r.to,h=r.ti,l=(a[0]+"_"+a[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+h[0]+"_"+h[1]).replace(/\./g,"p");if(e[l])return void(r.bezierData=e[l]);var p,m,f,c,d,u,y,g=defaultCurveSegments,v=0,b=null;2===a.length&&(a[0]!=n[0]||a[1]!=n[1])&&t(a[0],a[1],n[0],n[1],a[0]+o[0],a[1]+o[1])&&t(a[0],a[1],n[0],n[1],n[0]+h[0],n[1]+h[1])&&(g=2);var E=new s(g);for(f=o.length,p=0;p<g;p+=1){for(y=_cv(f),d=p/(g-1),u=0,m=0;m<f;m+=1)c=bm_pow(1-d,3)*a[m]+3*bm_pow(1-d,2)*d*(a[m]+o[m])+3*(1-d)*bm_pow(d,2)*(n[m]+h[m])+bm_pow(d,3)*n[m],y[m]=c,null!==b&&(u+=bm_pow(y[m]-b[m],2));u=bm_sqrt(u),v+=u,E.points[p]=new i(u,y),b=y}E.segmentLength=v,r.bezierData=E,e[l]=E}}(),p=_cs("float32",8);return{getSegmentsLength:r,getNewSegment:o,getPointInSegment:n,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:e}}function dataFunctionManager(){function t(i,a,o){var h,l,p,m,f,c,d,u,y=i.length;for(m=0;m<y;m+=1)if(h=i[m],"ks"in h&&!h.completed){if(h.completed=!0,h.tt&&(i[m-1].td=h.tt),l=[],p=-1,h.hasMask){var g=h.masksProperties;for(c=g.length,f=0;f<c;f+=1)if(g[f].pt.k.i)s(g[f].pt.k);else for(u=g[f].pt.k.length,d=0;d<u;d+=1)g[f].pt.k[d].s&&s(g[f].pt.k[d].s[0]),g[f].pt.k[d].e&&s(g[f].pt.k[d].e[0])}0===h.ty?(h.layers=e(h.refId,a),t(h.layers,a,o)):4===h.ty?r(h.shapes):5==h.ty&&n(h,o)}}function e(t,e){for(var r=0,s=e.length;r<s;){if(e[r].id===t)return e[r].layers.__used?JSON.parse(JSON.stringify(e[r].layers)):(e[r].layers.__used=!0,e[r].layers);r+=1}}function r(t){var e,i,a,n=t.length,o=!1;for(e=n-1;e>=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)s(t[e].ks.k);else for(a=t[e].ks.k.length,i=0;i<a;i+=1)t[e].ks.k[i].s&&s(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&s(t[e].ks.k[i].e[0]);o=!0}else"gr"==t[e].ty&&r(t[e].it)}function s(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function i(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&void 0))}function a(e,r){e.__complete||(l(e),o(e),h(e),p(e),t(e.layers,e.assets,r),e.__complete=!0)}function n(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var o=function(){function t(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function e(e){var r,s=e.length;for(r=0;r<s;r+=1)5===e[r].ty&&t(e[r])}var r=[4,4,14];return function(t){if(i(r,t.v)&&(e(t.layers),t.assets)){var s,a=t.assets.length;for(s=0;s<a;s+=1)t.assets[s].layers&&e(t.assets[s].layers)}}}(),h=function(){var t=[4,7,99];return function(e){if(e.chars&&!i(t,e.v)){var r,a,n,o,h,l=e.chars.length;for(r=0;r<l;r+=1)if(e.chars[r].data&&e.chars[r].data.shapes)for(h=e.chars[r].data.shapes[0].it,n=h.length,a=0;a<n;a+=1)o=h[a].ks.k,o.__converted||(s(h[a].ks.k),o.__converted=!0)}}}(),l=function(){function t(e){var r,s,i,a=e.length;for(r=0;r<a;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,s=0;s<i;s+=1)e[r].c.k[s].s&&(e[r].c.k[s].s[0]/=255,e[r].c.k[s].s[1]/=255,e[r].c.k[s].s[2]/=255,e[r].c.k[s].s[3]/=255),e[r].c.k[s].e&&(e[r].c.k[s].e[0]/=255,e[r].c.k[s].e[1]/=255,e[r].c.k[s].e[2]/=255,e[r].c.k[s].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function e(e){var r,s=e.length;for(r=0;r<s;r+=1)4===e[r].ty&&t(e[r].shapes)}var r=[4,1,9];return function(t){if(i(r,t.v)&&(e(t.layers),t.assets)){var s,a=t.assets.length;for(s=0;s<a;s+=1)t.assets[s].layers&&e(t.assets[s].layers)}}}(),p=function(){function t(e){var r,s,i,a=e.length,n=!1;for(r=a-1;r>=0;r-=1)if("sh"==e[r].ty){if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,s=0;s<i;s+=1)e[r].ks.k[s].s&&(e[r].ks.k[s].s[0].c=e[r].closed),e[r].ks.k[s].e&&(e[r].ks.k[s].e[0].c=e[r].closed);n=!0}else"gr"==e[r].ty&&t(e[r].it)}function e(e){var r,s,i,a,n,o,h=e.length;for(s=0;s<h;s+=1){if(r=e[s],r.hasMask){var l=r.masksProperties;for(a=l.length,i=0;i<a;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(o=l[i].pt.k.length,n=0;n<o;n+=1)l[i].pt.k[n].s&&(l[i].pt.k[n].s[0].c=l[i].cl),l[i].pt.k[n].e&&(l[i].pt.k[n].e[0].c=l[i].cl)}4===r.ty&&t(r.shapes)}}var r=[4,4,18];return function(t){if(i(r,t.v)&&(e(t.layers),t.assets)){var s,a=t.assets.length;for(s=0;s<a;s+=1)t.assets[s].layers&&e(t.assets[s].layers)}}}(),m={};return m.completeData=a,m}function _av(){this.c=!1,this._length=0,this._maxLength=8,this.v=_cv(this._maxLength),this.o=_cv(this._maxLength),this.i=_cv(this._maxLength)}function _at(){}function _an(){}function _au(){}function _aj(){}function _am(){this._length=0,this._maxLength=4,this.shapes=_cv(this._maxLength)}function DashProperty(t,e,r,s){this.elem=t,this.frameId=-1,this.dataProps=_cv(e.length),this.renderer=r,this.mdf=!1,this.k=!1,this.dashStr="",this.dashArray=_cs("float32",e.length-1),this.dashoffset=_cs("float32",1);var i,a,n=e.length;for(i=0;i<n;i+=1)a=_ai._bo(t,e[i].v,0,0,s),this.k=!!a.k||this.k,this.dataProps[i]={n:e[i].n,p:a};this.k?s.push(this):this.getValue(!0)}function GradientProperty(t,e,r){this.prop=_ai._bo(t,e.k,1,null,[]),this.data=e,this.k=this.prop.k,this.c=_cs("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=_cs("float32",s),this.cmdf=!1,this.omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.prop.k&&r.push(this),this.getValue(!0)}function _bl(t,e,r){this.mdf=!1,this._ch=!0,this._hasMaskedPath=!1,this._frameId=-1,this.__co=[],this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=_cv(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this._bt=[],this.lettersChangedFlag=!1}function TextAnimatorDataProperty(t,e,r){var s={propType:!1},i=_ai._bo,a=e.a;this.a={r:a.r?i(t,a.r,0,degToRads,r):s,rx:a.rx?i(t,a.rx,0,degToRads,r):s,ry:a.ry?i(t,a.ry,0,degToRads,r):s,sk:a.sk?i(t,a.sk,0,degToRads,r):s,sa:a.sa?i(t,a.sa,0,degToRads,r):s,s:a.s?i(t,a.s,1,.01,r):s,a:a.a?i(t,a.a,1,0,r):s,o:a.o?i(t,a.o,0,.01,r):s,p:a.p?i(t,a.p,1,0,r):s,sw:a.sw?i(t,a.sw,0,0,r):s,sc:a.sc?i(t,a.sc,1,0,r):s,fc:a.fc?i(t,a.fc,1,0,r):s,fh:a.fh?i(t,a.fh,0,0,r):s,fs:a.fs?i(t,a.fs,0,.01,r):s,fb:a.fb?i(t,a.fb,0,.01,r):s,t:a.t?i(t,a.t,0,0,r):s},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function LetterProps(t,e,r,s,i,a){this.o=t,this.sw=e,this.sc=r,this.fc=s,this.m=i,this.p=a,this.mdf={o:!0,sw:!!e,sc:!!r,fc:!!s,m:!0,p:!0}}function _ar(t,e,r){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._ch=!0,this.mdf=!0,this.data=e,this.elem=t,this.keysIndex=-1,this.currentData={ascent:0,boxWidth:[0,0],f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:[0,0],fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,__complete:!1},this.searchProperty()?r.push(this):this.getValue(!0)}function _l(){}function _ao(t,e){this._cq=t,this.layers=null,this.renderedFrame=-1,this._cf=_ct("svg");var r=_ct("g");this._cf.appendChild(r),this._bx=r;var s=_ct("defs");this._cf.appendChild(s),this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||e.hideOnTransparent!==!1,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||""},this._x={mdf:!1,frameNum:-1,defs:s,frameId:0,_de:{w:0,h:0},renderConfig:this.renderConfig,_cr:new FontManager},this._br=[],this._dc=[],this.destroyed=!1}function _ay(t,e,r){this._co=[],this.data=t,this.element=e,this._x=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null,this._ch=!0;var s,i=this._x.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=_cv(a),this.solidPath="";var n,o,h,l,p,m,f,c=this.masksProperties,d=0,u=[],y=randomString(10),g="clipPath",v="clip-path";for(s=0;s<a;s++)if(("a"!==c[s].mode&&"n"!==c[s].mode||c[s].inv||100!==c[s].o.k)&&(g="mask",v="mask"),"s"!=c[s].mode&&"i"!=c[s].mode||0!=d?l=null:(l=_ct("rect"),l.setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w),l.setAttribute("height",this.element.comp.data.h),u.push(l)),n=_ct("path"),"n"!=c[s].mode){if(d+=1,n.setAttribute("fill","s"===c[s].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==c[s].x.k){g="mask",v="mask",f=_ai._bo(this.element,c[s].x,0,null,this._co);var b="fi_"+randomString(10);p=_ct("filter"),p.setAttribute("id",b),m=_ct("feMorphology"),m.setAttribute("operator","dilate"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),p.appendChild(m),i.appendChild(p),n.setAttribute("stroke","s"===c[s].mode?"#000000":"#ffffff")}else m=null,f=null;if(this.storedData[s]={elem:n,x:f,expan:m,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"==c[s].mode){h=u.length;var E=_ct("g");for(o=0;o<h;o+=1)E.appendChild(u[o]);var P=_ct("mask");P.setAttribute("mask-type","alpha"),P.setAttribute("id",y+"_"+d),P.appendChild(n),i.appendChild(P),E.setAttribute("mask","url("+locationHref+"#"+y+"_"+d+")"),u.length=0,u.push(E)}else u.push(n);c[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:n,lastPath:"",op:_ai._bo(this.element,c[s].o,0,.01,this._co),prop:_ah._bp(this.element,c[s],3,this._co,null)},l&&(this.viewData[s].invRect=l),this.viewData[s].prop.k||this.drawPath(c[s],this.viewData[s].prop.v,this.viewData[s])}else this.viewData[s]={op:_ai._bo(this.element,c[s].o,0,.01,this._co),prop:_ah._bp(this.element,c[s],3,this._co,null),elem:n},i.appendChild(n);for(this.maskElement=_ct(g),a=u.length,s=0;s<a;s+=1)this.maskElement.appendChild(u[s]);d>0&&(this.maskElement.setAttribute("id",y),this.element._ca.setAttribute(v,"url("+locationHref+"#"+y+")"),i.appendChild(this.maskElement))}function _ad(){}function _ac(){}function _af(){}function _ae(){}function _ci(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this.mdf=!1,this.closed=!1,this.pElem=_ct("path"),this.msElem=null}function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e}function SVGTransformData(t,e){this.transform={mProps:t,op:e},this._br=[]}function SVGStrokeStyleData(t,e,r,s){this.o=_ai._bo(t,e.o,0,.01,r),this.w=_ai._bo(t,e.w,0,null,r),this.d=new DashProperty(t,e.d||{},"svg",r),this.c=_ai._bo(t,e.c,1,255,r),this.style=s}function SVGFillStyleData(t,e,r,s){this.o=_ai._bo(t,e.o,0,.01,r),this.c=_ai._bo(t,e.c,1,255,r),this.style=s}function _ck(t,e,r,s){this.initGradientData(t,e,r,s)}function _cj(t,e,r,s){this.w=_ai._bo(t,e.w,0,null,r),this.d=new DashProperty(t,e.d||{},"svg",r),this.initGradientData(t,e,r,s)}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=_ct("g")}function _e(){}function _i(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function _d(){}function _f(){}function _k(){}function _g(){}function _h(t,e,r){this.assetData=e.getAssetData(t.refId),this._cz(t,e,r)}function _j(t,e,r){this._cz(t,e,r)}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this._db=!1,this._dc=[],this._br=this.layers?_cv(this.layers.length):[],this._cz(t,e,r),this.tm=t.tm?_ai._bo(this,t.tm,0,e.frameRate,this._co):{_placeholder:!0}}function _cw(t,e,r){this.textSpans=[],this.renderType="svg",this._cz(t,e,r)}function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this._cz(t,e,r),this.prevViewData=[]}function _bb(t,e){this._cl=e;var r=_ct("feColorMatrix");if(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"),r.setAttribute("result","f1"),t.appendChild(r),r=_ct("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","f2"),t.appendChild(r),this.matrixFilter=r,100!==e._cm[2].p.v||e._cm[2].p.k){var s=_ct("feMerge");t.appendChild(s);var i;i=_ct("feMergeNode"),i.setAttribute("in","SourceGraphic"),s.appendChild(i),i=_ct("feMergeNode"),i.setAttribute("in","f2"),s.appendChild(i)}}function _bc(t,e){this._cl=e;var r=_ct("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"),t.appendChild(r),this.matrixFilter=r}function _bd(t,e){this.initialized=!1,this._cl=e,this.elem=t,this.paths=[]}function _be(t,e){this._cl=e;var r=_ct("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"),r.setAttribute("result","f1"),t.appendChild(r);var s=_ct("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.matrixFilter=s;var i=_ct("feFuncR");i.setAttribute("type","table"),s.appendChild(i),this.feFuncR=i;var a=_ct("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var n=_ct("feFuncB");n.setAttribute("type","table"),s.appendChild(n),this.feFuncB=n}function _bf(t,e){this._cl=e;var r=this._cl._cm,s=_ct("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),s=_ct("feComponentTransfer")),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function _bg(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this._cl=e;var r=_ct("feGaussianBlur");r.setAttribute("in","SourceAlpha"),r.setAttribute("result","drop_shadow_1"),r.setAttribute("stdDeviation","0"),this.feGaussianBlur=r,t.appendChild(r);var s=_ct("feOffset");s.setAttribute("dx","25"),s.setAttribute("dy","0"),s.setAttribute("in","drop_shadow_1"),s.setAttribute("result","drop_shadow_2"),this.feOffset=s,t.appendChild(s);var i=_ct("feFlood");i.setAttribute("flood-color","#00ff00"),i.setAttribute("flood-opacity","1"),i.setAttribute("result","drop_shadow_3"),this.feFlood=i,t.appendChild(i);var a=_ct("feComposite");a.setAttribute("in","drop_shadow_3"),a.setAttribute("in2","drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result","drop_shadow_4"),t.appendChild(a);var n=_ct("feMerge");t.appendChild(n);var o;o=_ct("feMergeNode"),n.appendChild(o),o=_ct("feMergeNode"),o.setAttribute("in","SourceGraphic"),this.feMergeNode=o,this.feMerge=n,this.originalNodeAdded=!1,n.appendChild(o)}function _bh(t,e,r){this.initialized=!1,this._cl=e,this.filterElem=t,this.elem=r,r.matteElement=_ct("g"),r.matteElement.appendChild(r._bx),r.matteElement.appendChild(r._bz),r._by=r.matteElement}function _bi(t){var e,r=t.data.ef?t.data.ef.length:0,s=randomString(10),i=filtersFactory.createFilter(s),a=0;this.filters=[];var n;for(e=0;e<r;e+=1)20===t.data.ef[e].ty?(a+=1,n=new _bb(i,t.effects._cm[e]),this.filters.push(n)):21===t.data.ef[e].ty?(a+=1,n=new _bc(i,t.effects._cm[e]),this.filters.push(n)):22===t.data.ef[e].ty?(n=new _bd(t,t.effects._cm[e]),this.filters.push(n)):23===t.data.ef[e].ty?(a+=1,n=new _be(i,t.effects._cm[e]),this.filters.push(n)):24===t.data.ef[e].ty?(a+=1,n=new _bf(i,t.effects._cm[e]),this.filters.push(n)):25===t.data.ef[e].ty?(a+=1,n=new _bg(i,t.effects._cm[e]),this.filters.push(n)):28===t.data.ef[e].ty&&(n=new _bh(i,t.effects._cm[e],t),this.filters.push(n));a&&(t._x.defs.appendChild(i),t._bx.setAttribute("filter","url("+locationHref+"#"+s+")"))}function _aq(t,e){this._cq=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",className:e&&e.className||""},this.renderConfig.dpr=e&&e.dpr||1,this._cq.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this._x={frameNum:-1,mdf:!1,renderConfig:this.renderConfig};this.contextData=new _n,this._br=[],this._dc=[],this.transformMat=new Matrix,this._db=!1}function _ap(t,e){this._cq=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",hideOnTransparent:!e||e.hideOnTransparent!==!1},this._x={mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this._dc=[],this._br=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0}function _n(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var t,e=15;for(this.savedOp=_cs("float32",e),t=0;t<e;t+=1)this.saved[t]=_cs("float32",16);this._length=e}function _c(t,e,r){}function _p(t,e,r){this.failed=!1,this.img=new Image,this.assetData=e.getAssetData(t.refId),this._cz(t,e,r),this._x.addPendingElement()}function _m(t,e,r){this._db=!1,this.layers=t.layers,this._dc=[],this._br=_cv(this.layers.length),this._cz(t,e,r),this.tm=t.tm?_ai._bo(this,t.tm,0,e.frameRate,this._co):{_placeholder:!0}}function _q(t,e){this.data=t,this.element=e,this._co=[],this.masksProperties=this.data.masksProperties||[],this.viewData=_cv(this.masksProperties.length);var r,s=this.masksProperties.length,i=!1;for(r=0;r<s;r++)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=_ah._bp(this.element,this.masksProperties[r],3,this._co,null);this.hasMasks=i}function _r(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this._cz(t,e,r)}function _s(t,e,r){this._cz(t,e,r)}function _t(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this._cz(t,e,r)}function _o(){}function _b(t,e,r){}function _aa(t,e,r){this._cz(t,e,r)}function _w(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this._db=!1,this._dc=[],this._br=this.layers?_cv(this.layers.length):[],this.tm=t.tm?_ai._bo(this,t.tm,0,e.frameRate,this._co):{_placeholder:!0},this._cz(t,e,r)}function _z(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.shapesContainer=_ct("g"),this._cz(t,e,r),this.prevViewData=[],this._cg={x:999999,y:-999999,h:0,w:0}}function _ab(t,e,r){this.textSpans=[],this.textPaths=[],this._cg={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this._cz(t,e,r)}function _y(t,e,r){this.assetData=e.getAssetData(t.refId),this._cz(t,e,r)}function _v(t,e,r){this.initFrame(),this.initBaseData(t,e,r);var s=_ai._bo;if(this.pe=s(this,t.pe,0,0,this._co),t.ks.p.s?(this.px=s(this,t.ks.p.x,1,0,this._co),this.py=s(this,t.ks.p.y,1,0,this._co),this.pz=s(this,t.ks.p.z,1,0,this._co)):this.p=s(this,t.ks.p,1,0,this._co),t.ks.a&&(this.a=s(this,t.ks.a,1,0,this._co)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,a=t.ks.or.k.length;for(i=0;i<a;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=s(this,t.ks.or,1,degToRads,this._co),this.or.sh=!0,this.rx=s(this,t.ks.rx,0,degToRads,this._co),this.ry=s(this,t.ks.ry,0,degToRads,this._co),this.rz=s(this,t.ks.rz,0,degToRads,this._co),this.mat=new Matrix,this._prevMat=new Matrix,this._ch=!0}function _bv(){}function SliderEffect(t,e,r){this.p=_ai._bo(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=_ai._bo(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=_ai._bo(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=_ai._bo(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=_ai._bo(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=_ai._bo(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=_ai._bo(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e,r){var s=t.ef||[];this._cm=[];var i,a,n=s.length;for(i=0;i<n;i++)a=new GroupEffect(s[i],e,r),this._cm.push(a)}function GroupEffect(t,e,r){this._co=[],this.init(t,e,this._co),this._co.length&&r.push(this)}function setLocationHref(t){locationHref=t}function play(t){animationManager.play(t)}function pause(t){animationManager.pause(t)}function togglePause(t){animationManager.togglePause(t)}function setSpeed(t,e){animationManager.setSpeed(t,e)}function setDirection(t,e){animationManager.setDirection(t,e)}function stop(t){animationManager.stop(t)}function moveFrame(t){animationManager.moveFrame(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function registerAnimation(t){return animationManager.registerAnimation(t)}function resize(){animationManager.resize()}function goToAndStop(t,e,r){animationManager.goToAndStop(t,e,r)}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function destroy(t){return animationManager.destroy(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return _ai;case"shape_ai":return _ah;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r++){var s=e[r].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}}var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};!function(){var t,e=Object.getOwnPropertyNames(Math),r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){var e=typeof t;if("object"===e&&t.length){var r,s=_cv(t.length),i=t.length;for(r=0;r<i;r+=1)s[r]=Math.abs(t[r]);return s}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;roundValues(!1);var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1==e.length?"0"+e:e;return function(t,e,s){return t<0&&(t=0),e<0&&(e=0),s<0&&(s=0),"#"+r[t]+r[e]+r[s]}}();BaseEvent.prototype={_cy:function(t,e){if(this._cbs[t])for(var r=this._cbs[t].length,s=0;s<r;s++)this._cbs[t][s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,s=this._cbs[t].length;r<s;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,s-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var _cs=function(){function t(t,e){var r,s=0,i=[];
switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(s=0;s<e;s+=1)i.push(r);return i}function e(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}(),Matrix=function(){function t(){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 e(t){if(0===t)return this;var e=k(t),r=M(t);return this._t(e,-r,0,0,r,e,0,0,0,0,1,0,0,0,0,1)}function r(t){if(0===t)return this;var e=k(t),r=M(t);return this._t(1,0,0,0,0,e,-r,0,0,r,e,0,0,0,0,1)}function s(t){if(0===t)return this;var e=k(t),r=M(t);return this._t(e,0,r,0,0,1,0,0,-r,0,e,0,0,0,0,1)}function i(t){if(0===t)return this;var e=k(t),r=M(t);return this._t(e,-r,0,0,r,e,0,0,0,0,1,0,0,0,0,1)}function a(t,e){return this._t(1,e,t,1,0,0)}function n(t,e){return this.shear(T(t),T(e))}function o(t,e){var r=k(e),s=M(e);return this._t(r,s,0,0,-s,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,T(t),1,0,0,0,0,1,0,0,0,0,1)._t(r,-s,0,0,s,r,0,0,0,0,1,0,0,0,0,1)}function h(t,e,r){return r=isNaN(r)?1:r,1==t&&1==e&&1==r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function l(t,e,r,s,i,a,n,o,h,l,p,m,f,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=s,this.props[4]=i,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=m,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function p(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function m(t,e,r,s,i,a,n,o,h,l,p,m,f,c,d,u){if(1===t&&0===e&&0===r&&0===s&&0===i&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===m)return this.props[12]=this.props[12]*t+this.props[15]*f,this.props[13]=this.props[13]*a+this.props[15]*c,this.props[14]=this.props[14]*p+this.props[15]*d,this.props[15]=this.props[15]*u,this._identityCalculated=!1,this;var y=this.props[0],g=this.props[1],v=this.props[2],b=this.props[3],E=this.props[4],P=this.props[5],x=this.props[6],S=this.props[7],C=this.props[8],A=this.props[9],k=this.props[10],M=this.props[11],T=this.props[12],D=this.props[13],w=this.props[14],F=this.props[15];return this.props[0]=y*t+g*i+v*h+b*f,this.props[1]=y*e+g*a+v*l+b*c,this.props[2]=y*r+g*n+v*p+b*d,this.props[3]=y*s+g*o+v*m+b*u,this.props[4]=E*t+P*i+x*h+S*f,this.props[5]=E*e+P*a+x*l+S*c,this.props[6]=E*r+P*n+x*p+S*d,this.props[7]=E*s+P*o+x*m+S*u,this.props[8]=C*t+A*i+k*h+M*f,this.props[9]=C*e+A*a+k*l+M*c,this.props[10]=C*r+A*n+k*p+M*d,this.props[11]=C*s+A*o+k*m+M*u,this.props[12]=T*t+D*i+w*h+F*f,this.props[13]=T*e+D*a+w*l+F*c,this.props[14]=T*r+D*n+w*p+F*d,this.props[15]=T*s+D*o+w*m+F*u,this._identityCalculated=!1,this}function f(){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 c(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function d(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function u(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function y(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function g(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function v(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function b(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function E(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],r=this.props[5]/e,s=-this.props[1]/e,i=-this.props[4]/e,a=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*r+t[1]*i+n,t[0]*s+t[1]*a+o,0]}function P(t){var e,r=t.length,s=[];for(e=0;e<r;e+=1)s[e]=E(t[e]);return s}function x(t,e,r,s){if(s&&2===s){var i=point_pool.newElement();return i[0]=t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],i[1]=t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],i}return[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function S(t,e){return this.isIdentity()?t+","+e:t*this.props[0]+e*this.props[4]+this.props[12]+","+(t*this.props[1]+e*this.props[5]+this.props[13])}function C(){for(var t=0,e=this.props,r="matrix3d(",s=1e4;t<16;)r+=D(e[t]*s)/s,r+=15===t?")":",",t+=1;return r}function A(){var t=1e4,e=this.props;return"matrix("+D(e[0]*t)/t+","+D(e[1]*t)/t+","+D(e[4]*t)/t+","+D(e[5]*t)/t+","+D(e[12]*t)/t+","+D(e[13]*t)/t+")"}var k=Math.cos,M=Math.sin,T=Math.tan,D=Math.round;return function(){this.reset=t,this.rotate=e,this.rotateX=r,this.rotateY=s,this.rotateZ=i,this.skew=n,this.skewFromAxis=o,this.shear=a,this.scale=h,this.setTransform=l,this.translate=p,this.transform=m,this.applyToPoint=y,this.applyToX=g,this.applyToY=v,this.applyToZ=b,this._cn=x,this.applyToPointStringified=S,this.toCSS=C,this.to2dCSS=A,this.clone=d,this.cloneFromProps=u,this.equals=c,this.inversePoints=P,this.inversePoint=E,this._t=this.transform,this.isIdentity=f,this._identity=!0,this._identityCalculated=!1,this.props=_cs("float32",16),this.reset()}}();!function(t,e){function r(r,l,p){var c=[];l=1==l?{entropy:!0}:l||{};var v=n(a(l.entropy?[r,h(t)]:null==r?o():r,3),c),b=new s(c),E=function(){for(var t=b.g(f),e=u,r=0;t<y;)t=(t+r)*m,e*=m,r=b.g(1);for(;t>=g;)t/=2,e/=2,r>>>=1;return(t+r)/e};return E.int32=function(){return 0|b.g(4)},E.quick=function(){return b.g(4)/4294967296},E["double"]=E,n(h(b.S),t),(l.pass||p||function(t,r,s,a){return a&&(a.S&&i(a,b),t.state=function(){return i(b,{})}),s?(e[d]=t,r):t})(E,v,"global"in l?l.global:this==e,l.state)}function s(t){var e,r=t.length,s=this,i=0,a=s.i=s.j=0,n=s.S=[];for(r||(t=[r++]);i<m;)n[i]=i++;for(i=0;i<m;i++)n[i]=n[a=v&a+t[i%r]+(e=n[i])],n[a]=e;(s.g=function(t){for(var e,r=0,i=s.i,a=s.j,n=s.S;t--;)e=n[i=v&i+1],r=r*m+n[v&(n[i]=n[a=v&a+e])+(n[a]=e)];return s.i=i,s.j=a,r})(m)}function i(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function a(t,e){var r,s=[],i=typeof t;if(e&&"object"==i)for(r in t)try{s.push(a(t[r],e-1))}catch(n){}return s.length?s:"string"==i?t:t+"\0"}function n(t,e){for(var r,s=t+"",i=0;i<s.length;)e[v&i]=v&(r^=19*e[v&i])+s.charCodeAt(i++);return h(e)}function o(){try{if(l)return h(l.randomBytes(m));var e=new Uint8Array(m);return(p.crypto||p.msCrypto).getRandomValues(e),h(e)}catch(r){var s=p.navigator,i=s&&s.plugins;return[+new Date,p,i,p.screen,h(t)]}}function h(t){return String.fromCharCode.apply(0,t)}var l,p=this,m=256,f=6,c=52,d="random",u=e.pow(m,f),y=e.pow(2,c),g=2*y,v=m-1;e["seed"+d]=r,n(e.random(),t)}([],BMMath);var BezierFactory=function(){function t(t,e,r,s,i){var a=i||("bez_"+t+"_"+e+"_"+r+"_"+s).replace(/\./g,"p");if(p[a])return p[a];var n=new h([t,e,r,s]);return p[a]=n,n}function e(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function s(t){return 3*t}function i(t,i,a){return((e(i,a)*t+r(i,a))*t+s(i))*t}function a(t,i,a){return 3*e(i,a)*t*t+2*r(i,a)*t+s(i)}function n(t,e,r,s,a){var n,o,h=0;do o=e+(r-e)/2,n=i(o,s,a)-t,n>0?r=o:e=o;while(Math.abs(n)>c&&++h<d);return o}function o(t,e,r,s){for(var n=0;n<m;++n){var o=a(e,r,s);if(0===o)return e;var h=i(e,r,s)-t;e-=h/o}return e}function h(t){this._p=t,this._mSampleValues=g?new Float32Array(u):new Array(u),this._precomputed=!1,this.get=this.get.bind(this)}var l={};l.getBezierEasing=t;var p={},m=4,f=.001,c=1e-7,d=10,u=11,y=1/(u-1),g="function"==typeof Float32Array;return h.prototype={get:function(t){var e=this._p[0],r=this._p[1],s=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),e===r&&s===a?t:0===t?0:1===t?1:i(this._getTForX(t),r,a)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&r===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<u;++r)this._mSampleValues[r]=i(r*y,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],s=this._mSampleValues,i=0,h=1,l=u-1;h!==l&&s[h]<=t;++h)i+=y;--h;var p=(t-s[h])/(s[h+1]-s[h]),m=i+p*y,c=a(m,e,r);return c>=f?o(t,m,e,r):0===c?m:n(t,i,i+y,e,r)}},l}();!function(){for(var t=0,e=["ms","moz","webkit","o"],r=0;r<e.length&&!window.requestAnimationFrame;++r)window.requestAnimationFrame=window[e[r]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[r]+"CancelAnimationFrame"]||window[e[r]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,r){var s=(new Date).getTime(),i=Math.max(0,16-(s-t)),a=setTimeout(function(){e(s+i)},i);return t=s+i,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction(),dataManager=dataFunctionManager(),FontManager=function(){function t(t,e){var r=_cu("span");r.style.fontFamily=e;var s=_cu("span");s.innerHTML="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(s),document.body.appendChild(r);var i=s.offsetWidth;return s.style.fontFamily=t+", "+e,{node:s,w:i,parent:r}}function e(){var t,r,s,i=this.fonts.length,a=i;for(t=0;t<i;t+=1)if(this.fonts[t].loaded)a-=1;else if("t"===this.fonts[t].fOrigin||2===this.fonts[t].origin){if(window.Typekit&&window.Typekit.load&&0===this.typekitLoaded){this.typekitLoaded=1;try{window.Typekit.load({async:!0,active:function(){this.typekitLoaded=2}.bind(this)})}catch(n){}}2===this.typekitLoaded&&(this.fonts[t].loaded=!0)}else"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(r=this.fonts[t].monoCase.node,s=this.fonts[t].monoCase.w,r.offsetWidth!==s?(a-=1,this.fonts[t].loaded=!0):(r=this.fonts[t].sansCase.node,s=this.fonts[t].sansCase.w,r.offsetWidth!==s&&(a-=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!==a&&Date.now()-this.initTime<h?setTimeout(e.bind(this),20):setTimeout(function(){this.loaded=!0}.bind(this),0)}function r(t,e){var r=_ct("text");r.style.fontSize="100px",r.style.fontFamily=e.fFamily,r.textContent="1",e.fClass?(r.style.fontFamily="inherit",r.className=e.fClass):r.style.fontFamily=e.fFamily,t.appendChild(r);var s=_cu("canvas").getContext("2d");return s.font="100px "+e.fFamily,s}function s(s,i){if(!s)return void(this.loaded=!0);if(this.chars)return this.loaded=!0,void(this.fonts=s.list);var a,n=s.list,o=n.length;for(a=0;a<o;a+=1){if(n[a].loaded=!1,n[a].monoCase=t(n[a].fFamily,"monospace"),n[a].sansCase=t(n[a].fFamily,"sans-serif"),n[a].fPath){if("p"===n[a].fOrigin||3===n[a].origin){var h=_cu("style");h.type="text/css",h.innerHTML="@font-face {font-family: "+n[a].fFamily+"; font-style: normal; src: url('"+n[a].fPath+"');}",i.appendChild(h)}else if("g"===n[a].fOrigin||1===n[a].origin){var l=_cu("link");l.type="text/css",l.rel="stylesheet",l.href=n[a].fPath,i.appendChild(l)}else if("t"===n[a].fOrigin||2===n[a].origin){var p=_cu("script");p.setAttribute("src",n[a].fPath),i.appendChild(p)}}else n[a].loaded=!0;n[a].helper=r(i,n[a]),this.fonts.push(n[a])}e.bind(this)()}function i(t){if(t){this.chars||(this.chars=[]);var e,r,s,i=t.length,a=this.chars.length;for(e=0;e<i;e+=1){for(r=0,s=!1;r<a;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(s=!0),r+=1;s||(this.chars.push(t[e]),a+=1)}}}function a(t,e,r){for(var s=0,i=this.chars.length;s<i;){if(this.chars[s].ch===t&&this.chars[s].style===e&&this.chars[s].fFamily===r)return this.chars[s];s+=1}return console&&console.warn&&console.warn("Missing character from exported characters list: ",t,e,r),l}function n(t,e,r){var s=this.getFontByName(e),i=s.helper;return i.measureText(t).width*r/100}function o(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return"sans-serif"}var h=5e3,l={w:0,size:0,shapes:[]},p=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.loaded=!1,this.initTime=Date.now()};return p.prototype.addChars=i,p.prototype.addFonts=s,p.prototype.getCharData=a,p.prototype.getFontByName=o,p.prototype.measureText=n,p}(),_ai=function(){function t(t,e,r){var s,i=this.offsetTime;"multidimensional"===this.propType&&(s=_cs("float32",e.length));for(var a,n,o=r.lastIndex,h=o,l=this._df.length-1,p=!0;p;){if(a=this._df[h],n=this._df[h+1],h==l-1&&t>=n.t-i){a.h&&(a=n),o=0;break}if(n.t-i>t){o=h;break}h<l-1?h+=1:(o=0,p=!1)}var m,f,c,d,u,y;if(a.to){a.bezierData||bez.buildBezierData(a);var g=a.bezierData;if(t>=n.t-i||t<a.t-i){var v=t>=n.t-i?g.points.length-1:0;for(f=g.points[v].point.length,m=0;m<f;m+=1)s[m]=g.points[v].point[m];r._lastBezierData=null}else{a.__fnct?y=a.__fnct:(y=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,a.__fnct=y),c=y((t-(a.t-i))/(n.t-i-(a.t-i)));var b,E=g.segmentLength*c,P=r.lastFrame<t&&r._lastBezierData===g?r._lastAddedLength:0;for(u=r.lastFrame<t&&r._lastBezierData===g?r._lastPoint:0,p=!0,d=g.points.length;p;){if(P+=g.points[u].partialLength,0===E||0===c||u==g.points.length-1){for(f=g.points[u].point.length,m=0;m<f;m+=1)s[m]=g.points[u].point[m];break}if(E>=P&&E<P+g.points[u+1].partialLength){for(b=(E-P)/g.points[u+1].partialLength,f=g.points[u].point.length,m=0;m<f;m+=1)s[m]=g.points[u].point[m]+(g.points[u+1].point[m]-g.points[u].point[m])*b;break}u<d-1?u+=1:p=!1}r._lastPoint=u,r._lastAddedLength=P-g.points[u].partialLength,r._lastBezierData=g}}else{var x,S,C,A,k;for(l=a.s.length,h=0;h<l;h+=1){if(1!==a.h&&(t>=n.t-i?c=1:t<a.t-i?c=0:(a.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?y=a.__fnct[h]:(x=a.o.x[h]||a.o.x[0],S=a.o.y[h]||a.o.y[0],C=a.i.x[h]||a.i.x[0],A=a.i.y[h]||a.i.y[0],y=BezierFactory.getBezierEasing(x,S,C,A).get,a.__fnct[h]=y)):a.__fnct?y=a.__fnct:(x=a.o.x,S=a.o.y,C=a.i.x,A=a.i.y,y=BezierFactory.getBezierEasing(x,S,C,A).get,a.__fnct=y),c=y((t-(a.t-i))/(n.t-i-(a.t-i))))),this.sh&&1!==a.h){var M=a.s[h],T=a.e[h];M-T<-180?M+=360:M-T>180&&(M-=360),k=M+(T-M)*c}else k=1===a.h?a.s[h]:a.s[h]+(a.e[h]-a.s[h])*c;1===l?s=k:s[h]=k}}return r.lastIndex=o,s}function e(t){for(var e=0;e<this.v.length;)this.pv[e]=t[e],this.v[e]=this.mult?this.pv[e]*this.mult:this.pv[e],this.lastPValue[e]!==this.pv[e]&&(this.mdf=!0,this.lastPValue[e]=this.pv[e]),e+=1}function r(t){this.pv=t,this.v=this.mult?this.pv*this.mult:this.pv,this.lastPValue!=this.pv&&(this.mdf=!0,this.lastPValue=this.pv)}function s(){if(this.elem._x.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this._df[0].t-this.offsetTime,r=this._df[this._df.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==p&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<e&&t<e))){this._caching.lastIndex=this._caching.lastFrame<t?this._caching.lastIndex:0;var s=this.interpolateValue(t,this.pv,this._caching);this.calculateValueAtCurrentTime(s)}this._caching.lastFrame=t,this.frameId=this.elem._x.frameId}}function i(){}function a(t,e,r){this.propType="unidimensional",this.mult=r,this.v=r?e.k*r:e.k,this.pv=e.k,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.getValue=i}function n(t,e,r){this.propType="multidimensional",this.mult=r,this.data=e,this.mdf=!1,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1,this.v=_cs("float32",e.k.length),this.pv=_cs("float32",e.k.length),this.lastValue=_cs("float32",e.k.length);_cs("float32",e.k.length);this.vel=_cs("float32",e.k.length);var s,a=e.k.length;for(s=0;s<a;s+=1)this.v[s]=r?e.k[s]*r:e.k[s],this.pv[s]=e.k[s];this.getValue=i}function o(e,i,a){this.propType="unidimensional",this._df=i.k,this.offsetTime=e.data.st,this.lastValue=p,this.lastPValue=p,this.frameId=-1,this._caching={lastFrame:p,lastIndex:0,value:0},this.k=!0,this.kf=!0,this.data=i,this.mult=a,this.elem=e,this._ch=!1,this.comp=e.comp,this.v=a?i.k[0].s[0]*a:i.k[0].s[0],this.pv=i.k[0].s[0],this.getValue=s,this.calculateValueAtCurrentTime=r,this.interpolateValue=t}function h(r,i,a){this.propType="multidimensional";var n,o,h,l,m,f=i.k.length;for(n=0;n<f-1;n+=1)i.k[n].to&&i.k[n].s&&i.k[n].e&&(o=i.k[n].s,h=i.k[n].e,l=i.k[n].to,m=i.k[n].ti,(2===o.length&&(o[0]!==h[0]||o[1]!==h[1])&&bez.pointOnLine2D(o[0],o[1],h[0],h[1],o[0]+l[0],o[1]+l[1])&&bez.pointOnLine2D(o[0],o[1],h[0],h[1],h[0]+m[0],h[1]+m[1])||3===o.length&&(o[0]!==h[0]||o[1]!==h[1]||o[2]!==h[2])&&bez.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],o[0]+l[0],o[1]+l[1],o[2]+l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],h[0]+m[0],h[1]+m[1],h[2]+m[2]))&&(i.k[n].to=null,i.k[n].ti=null),o[0]===h[0]&&o[1]===h[1]&&0===l[0]&&0===l[1]&&0===m[0]&&0===m[1]&&(2===o.length||o[2]===h[2]&&0===l[2]&&0===m[2])&&(i.k[n].to=null,i.k[n].ti=null));this._df=i.k,this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._ch=!0,this.mult=a,this.elem=r,this.comp=r.comp,this.getValue=s,this.calculateValueAtCurrentTime=e,this.interpolateValue=t,this.frameId=-1;var c=i.k[0].s.length;this.v=_cs("float32",c),this.pv=_cs("float32",c),this.lastValue=_cs("float32",c),this.lastPValue=_cs("float32",c),this._caching={lastFrame:p,lastIndex:0,value:_cs("float32",c)}}function l(t,e,r,s,i){var l;if(0===e.a)l=0===r?new a(t,e,s):new n(t,e,s);else if(1===e.a)l=0===r?new o(t,e,s):new h(t,e,s);else if(e.k.length)if("number"==typeof e.k[0])l=new n(t,e,s);else switch(r){case 0:l=new o(t,e,s);break;case 1:l=new h(t,e,s)}else l=new a(t,e,s);return l.k&&i.push(l),l}var p=initialDefaultFrame,m={_bo:l};return m}(),_ag=function(){function t(t){var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(),this._co[e].mdf&&(this.mdf=!0);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.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?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function e(t){if(this.elem._x.frameId!==this.frameId){this.mdf=t;var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(),this._co[e].mdf&&(this.mdf=!0);if(this.mdf){if(this.v.reset(),this.a&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r?this.v.rotate(-this.r.v):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&&this.p._df&&this.p._dg){var s,i;this.p._caching.lastFrame+this.p.offsetTime<=this.p._df[0].t?(s=this.p._dg((this.p._df[0].t+.01)/this.elem._x.frameRate,0),i=this.p._dg(this.p._df[0].t/this.elem._x.frameRate,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p._df[this.p._df.length-1].t?(s=this.p._dg(this.p._df[this.p._df.length-1].t/this.elem._x.frameRate,0),i=this.p._dg((this.p._df[this.p._df.length-1].t-.01)/this.elem._x.frameRate,0)):(s=this.p.pv,i=this.p._dg((this.p._caching.lastFrame+this.p.offsetTime-.01)/this.elem._x.frameRate,this.p.offsetTime)),this.v.rotate(-Math.atan2(s[1]-i[1],s[0]-i[0]))}this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem._x.frameId}}function r(){this.inverted=!0,this.iv=new Matrix,this.k||(this.data.p.s?this.iv.translate(this.px.v,this.py.v,-this.pz.v):this.iv.translate(this.p.v[0],this.p.v[1],-this.p.v[2]),this.r?this.iv.rotate(-this.r.v):this.iv.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.s&&this.iv.scale(this.s.v[0],this.s.v[1],1),this.a&&this.iv.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]))}function s(){}function i(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this._co=[],this.mdf=!1,this.data=e,this.v=new Matrix,e.p.s?(this.px=_ai._bo(t,e.p.x,0,0,this._co),this.py=_ai._bo(t,e.p.y,0,0,this._co),e.p.z&&(this.pz=_ai._bo(t,e.p.z,0,0,this._co))):this.p=_ai._bo(t,e.p,1,0,this._co),e.r)this.r=_ai._bo(t,e.r,0,degToRads,this._co);else if(e.rx){if(this.rx=_ai._bo(t,e.rx,0,degToRads,this._co),this.ry=_ai._bo(t,e.ry,0,degToRads,this._co),this.rz=_ai._bo(t,e.rz,0,degToRads,this._co),e.or.k[0].ti){var s,i=e.or.k.length;for(s=0;s<i;s+=1)e.or.k[s].to=e.or.k[s].ti=null}this.or=_ai._bo(t,e.or,1,degToRads,this._co),this.or.sh=!0}e.sk&&(this.sk=_ai._bo(t,e.sk,0,degToRads,this._co),this.sa=_ai._bo(t,e.sa,0,degToRads,this._co)),e.a&&(this.a=_ai._bo(t,e.a,1,0,this._co)),e.s&&(this.s=_ai._bo(t,e.s,1,.01,this._co)),e.o?this.o=_ai._bo(t,e.o,0,.01,r):this.o={mdf:!1,v:1},this._co.length?r.push(this):this.getValue(!0)}function a(t,e,r){return new i(t,e,r)}return i.prototype.applyToMatrix=t,i.prototype.getValue=e,i.prototype.setInverted=r,i.prototype.autoOrient=s,{_bj:a}}();_av.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=point_pool.newElement(),this.o[r]=point_pool.newElement(),this.i[r]=point_pool.newElement(),r+=1},_av.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},_av.prototype.doubleArrayLength=function(){this.v=this.v.concat(_cv(this._maxLength)),this.i=this.i.concat(_cv(this._maxLength)),this.o=this.o.concat(_cv(this._maxLength)),this._maxLength*=2},_av.prototype._ax=function(t,e,r,s,i){var a;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}(!a[s]||a[s]&&!i)&&(a[s]=point_pool.newElement()),a[s][0]=t,a[s][1]=e},_av.prototype._aw=function(t,e,r,s,i,a,n,o){this._ax(t,e,"v",n,o),this._ax(r,s,"o",n,o),this._ax(i,a,"i",n,o)},_av.prototype.reverse=function(){var t=new _av;t.setPathData(this.c,this._length);var e=this.v,r=this.o,s=this.i,a=0;this.c&&(t._aw(e[0][0],e[0][1],s[0][0],s[0][1],r[0][0],r[0][1],0,!1),a=1);var n=this._length-1,o=this._length;for(i=a;i<o;i+=1)t._aw(e[n][0],e[n][1],s[n][0],s[n][1],r[n][0],r[n][1],i,!1),n-=1;return t};var _ah=function(){function t(t,e,r,s){var i,a,n,o=s.lastIndex;if(t<this._df[0].t-this.offsetTime)i=this._df[0].s[0],n=!0,o=0;else if(t>=this._df[this._df.length-1].t-this.offsetTime)i=1===this._df[this._df.length-2].h?this._df[this._df.length-1].s[0]:this._df[this._df.length-2].e[0],n=!0;else{for(var h,l,p,m,f,c,d=o,u=this._df.length-1,y=!0;y&&(h=this._df[d],l=this._df[d+1],!(l.t-this.offsetTime>t));)d<u-1?d+=1:y=!1;n=1===h.h,o=d;var g;if(!n){if(t>=l.t-this.offsetTime)g=1;else if(t<h.t-this.offsetTime)g=0;else{var v;h.__fnct?v=h.__fnct:(v=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,h.__fnct=v),g=v((t-(h.t-this.offsetTime))/(l.t-this.offsetTime-(h.t-this.offsetTime)))}a=h.e[0]}i=h.s[0]}m=e._length,c=i.i[0].length;var b,E=!1;s.lastIndex=o;var p,f,b,m=e._length,c=i.i[0].length,E=!1;for(p=0;p<m;p+=1)for(f=0;f<c;f+=1)b=n?i.i[p][f]:i.i[p][f]+(a.i[p][f]-i.i[p][f])*g,e.i[p][f]!==b&&(e.i[p][f]=b,r&&(this.pv.i[p][f]=b),E=!0),b=n?i.o[p][f]:i.o[p][f]+(a.o[p][f]-i.o[p][f])*g,e.o[p][f]!==b&&(e.o[p][f]=b,r&&(this.pv.o[p][f]=b),E=!0),b=n?i.v[p][f]:i.v[p][f]+(a.v[p][f]-i.v[p][f])*g,e.v[p][f]!==b&&(e.v[p][f]=b,r&&(this.pv.v[p][f]=b),E=!0);return E}function e(){if(this.elem._x.frameId!==this.frameId){this.mdf=!1;var t=this.comp.renderedFrame-this.offsetTime,e=this._df[0].t-this.offsetTime,r=this._df[this._df.length-1].t-this.offsetTime,s=this._caching.lastFrame;if(s===l||!(s<e&&t<e||s>r&&t>r)){this._caching.lastIndex=s<t?this._caching.lastIndex:0;var i=this.interpolateShape(t,this.v,!0,this._caching);this.mdf=i,i&&(this.paths=this._ak)}this._caching.lastFrame=t,this.frameId=this.elem._x.frameId}}function r(){return this.v}function s(){this.paths=this._ak,this.k||(this.mdf=!1)}function i(t,e,r){this.propType="shape",this.comp=t.comp,this.k=!1,this.mdf=!1;var i=3===r?e.pt.k:e.ks.k;this.v=shape_pool.clone(i),this.pv=shape_pool.clone(this.v),this._ak=shapeCollection_pool._al(),this.paths=this._ak,this.paths.addShape(this.v),this.reset=s}function a(t,e,r){this.propType="shape",this.comp=t.comp,this.elem=t,this.offsetTime=t.data.st,this._df=3===r?e.pt.k:e.ks.k,this.k=!0,this.kf=!0;var i=this._df[0].s[0].i.length;this._df[0].s[0].i[0].length;this.v=shape_pool.newElement(),this.v.setPathData(this._df[0].s[0].c,i),this.pv=shape_pool.clone(this.v),this._ak=shapeCollection_pool._al(),this.paths=this._ak,this.paths.addShape(this.v),this.lastFrame=l,this.reset=s,this._caching={lastFrame:l,lastIndex:0}}function n(t,e,r,s){var n;if(3===r||4===r){var o=3===r?e.pt:e.ks,h=o.k;n=1===o.a||h.length?new a(t,e,r):new i(t,e,r)}else 5===r?n=new f(t,e):6===r?n=new p(t,e):7===r&&(n=new m(t,e));return n.k&&s.push(n),n}function o(){return i}function h(){return a}var l=-999999;i.prototype.interpolateShape=t,i.prototype.getValue=r,a.prototype.getValue=e,a.prototype.interpolateShape=t;var p=function(){function t(){var t=this.p.v[0],e=this.p.v[1],s=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,n=this.v;3!==this.d&&(n.v[0][0]=t,n.v[0][1]=e-i,n.v[1][0]=a?t+s:t-s,n.v[1][1]=e,n.v[2][0]=t,n.v[2][1]=e+i,n.v[3][0]=a?t-s:t+s,n.v[3][1]=e,n.i[0][0]=a?t-s*r:t+s*r,n.i[0][1]=e-i,n.i[1][0]=a?t+s:t-s,n.i[1][1]=e-i*r,n.i[2][0]=a?t+s*r:t-s*r,n.i[2][1]=e+i,n.i[3][0]=a?t-s:t+s,n.i[3][1]=e+i*r,n.o[0][0]=a?t+s*r:t-s*r,n.o[0][1]=e-i,n.o[1][0]=a?t+s:t-s,n.o[1][1]=e+i*r,n.o[2][0]=a?t-s*r:t+s*r,n.o[2][1]=e+i,n.o[3][0]=a?t-s:t+s,n.o[3][1]=e-i*r)}function e(t){var e,r=this._co.length;if(this.elem._x.frameId!==this.frameId){for(this.mdf=!1,this.frameId=this.elem._x.frameId,e=0;e<r;e+=1)this._co[e].getValue(t),this._co[e].mdf&&(this.mdf=!0);this.mdf&&this.convertEllToPath()}}var r=roundCorner;return function(r,i){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this._ak=shapeCollection_pool._al(),this.paths=this._ak,this._ak.addShape(this.v),this.d=i.d,this._co=[],this.elem=r,this.comp=r.comp,this.frameId=-1,this.mdf=!1,this.getValue=e,this.convertEllToPath=t,this.reset=s,this.p=_ai._bo(r,i.p,1,0,this._co),this.s=_ai._bo(r,i.s,1,0,this._co),this._co.length?this.k=!0:this.convertEllToPath()}}(),m=function(){function t(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,s=this.or.v,i=this.os.v,a=2*Math.PI*s/(4*e),n=-Math.PI/2,o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(n),l=s*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),m=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v._aw(h,l,h-p*a*i*o,l-m*a*i*o,h+p*a*i*o,l+m*a*i*o,t,!0),n+=r*o}this.paths.length=0,this.paths[0]=this.v}function e(){var t,e,r,s,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,m=2*Math.PI*o/(2*i),f=2*Math.PI*h/(2*i),c=-Math.PI/2;c+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){e=n?o:h,r=n?l:p,s=n?m:f;var u=e*Math.cos(c),y=e*Math.sin(c),g=0===u&&0===y?0:y/Math.sqrt(u*u+y*y),v=0===u&&0===y?0:-u/Math.sqrt(u*u+y*y);u+=+this.p.v[0],y+=+this.p.v[1],this.v._aw(u,y,u-g*s*r*d,y-v*s*r*d,u+g*s*r*d,y+v*s*r*d,t,!0),n=!n,c+=a*d}}function r(){if(this.elem._x.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem._x.frameId;var t,e=this._co.length;for(t=0;t<e;t+=1)this._co[t].getValue(),this._co[t].mdf&&(this.mdf=!0);this.mdf&&this.convertToPath()}}return function(i,a){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=i,this.comp=i.comp,this.data=a,this.frameId=-1,this.d=a.d,this._co=[],this.mdf=!1,this.getValue=r,this.reset=s,1===a.sy?(this.ir=_ai._bo(i,a.ir,0,0,this._co),this.is=_ai._bo(i,a.is,0,.01,this._co),this.convertToPath=e):this.convertToPath=t,this.pt=_ai._bo(i,a.pt,0,0,this._co),this.p=_ai._bo(i,a.p,1,0,this._co),this.r=_ai._bo(i,a.r,0,degToRads,this._co),this.or=_ai._bo(i,a.or,0,0,this._co),this.os=_ai._bo(i,a.os,0,.01,this._co),this._ak=shapeCollection_pool._al(),this._ak.addShape(this.v),this.paths=this._ak,this._co.length?this.k=!0:this.convertToPath()}}(),f=function(){function t(t){if(this.elem._x.frameId!==this.frameId){this.mdf=!1,this.frameId=this.elem._x.frameId;var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(t),this._co[e].mdf&&(this.mdf=!0);this.mdf&&this.convertRectToPath()}}function e(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,s=this.s.v[1]/2,i=bm_min(r,s,this.r.v),a=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v._aw(t+r,e-s+i,t+r,e-s+i,t+r,e-s+a,0,!0),this.v._aw(t+r,e+s-i,t+r,e+s-a,t+r,e+s-i,1,!0),0!==i?(this.v._aw(t+r-i,e+s,t+r-i,e+s,t+r-a,e+s,2,!0),this.v._aw(t-r+i,e+s,t-r+a,e+s,t-r+i,e+s,3,!0),this.v._aw(t-r,e+s-i,t-r,e+s-i,t-r,e+s-a,4,!0),this.v._aw(t-r,e-s+i,t-r,e-s+a,t-r,e-s+i,5,!0),this.v._aw(t-r+i,e-s,t-r+i,e-s,t-r+a,e-s,6,!0),this.v._aw(t+r-i,e-s,t+r-a,e-s,t+r-i,e-s,7,!0)):(this.v._aw(t-r,e+s,t-r+a,e+s,t-r,e+s,2),this.v._aw(t-r,e-s,t-r,e-s+a,t-r,e-s,3))):(this.v._aw(t+r,e-s+i,t+r,e-s+a,t+r,e-s+i,0,!0),0!==i?(this.v._aw(t+r-i,e-s,t+r-i,e-s,t+r-a,e-s,1,!0),this.v._aw(t-r+i,e-s,t-r+a,e-s,t-r+i,e-s,2,!0),this.v._aw(t-r,e-s+i,t-r,e-s+i,t-r,e-s+a,3,!0),this.v._aw(t-r,e+s-i,t-r,e+s-a,t-r,e+s-i,4,!0),this.v._aw(t-r+i,e+s,t-r+i,e+s,t-r+a,e+s,5,!0),
this.v._aw(t+r-i,e+s,t+r-a,e+s,t+r-i,e+s,6,!0),this.v._aw(t+r,e+s-i,t+r,e+s-i,t+r,e+s-a,7,!0)):(this.v._aw(t-r,e-s,t-r+a,e-s,t-r,e-s,1,!0),this.v._aw(t-r,e+s,t-r,e+s-a,t-r,e+s,2,!0),this.v._aw(t+r,e+s,t+r-a,e+s,t+r,e+s,3,!0)))}return function(r,i){this.v=shape_pool.newElement(),this.v.c=!0,this._ak=shapeCollection_pool._al(),this._ak.addShape(this.v),this.paths=this._ak,this.elem=r,this.comp=r.comp,this.frameId=-1,this.d=i.d,this._co=[],this.mdf=!1,this.getValue=t,this.convertRectToPath=e,this.reset=s,this.p=_ai._bo(r,i.p,1,0,this._co),this.s=_ai._bo(r,i.s,1,0,this._co),this.r=_ai._bo(r,i.r,0,0,this._co),this._co.length?this.k=!0:this.convertRectToPath()}}(),c={};return c._bp=n,c.getConstructorFunction=o,c.getKeyframedConstructorFunction=h,c}(),_as=function(){function t(t,e){s[t]||(s[t]=e)}function e(t,e,r,i){return new s[t](e,r,i)}var r={},s={};return r.registerModifier=t,r.getModifier=e,r}();_at.prototype.initModifierProperties=function(){},_at.prototype.addShapeToModifier=function(){},_at.prototype.addShape=function(t){if(!this.closed){var e={shape:t.sh,data:t,_ak:shapeCollection_pool._al()};this.shapes.push(e),this.addShapeToModifier(e)}},_at.prototype.init=function(t,e,r){this._co=[],this.shapes=[],this.elem=t,this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.mdf=!1,this.closed=!1,this.k=!1,this._co.length?(this.k=!0,r.push(this)):this.getValue(!0)},extendPrototype([_at],_an),_an.prototype.processKeys=function(t){if(this.elem._x.frameId!==this.frameId||t){this.mdf=t,this.frameId=this.elem._x.frameId;var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(),this._co[e].mdf&&(this.mdf=!0);if(this.mdf||t){var s=this.o.v%360/360;s<0&&(s+=1);var i=this.s.v+s,a=this.e.v+s;if(i>a){var n=i;i=a,a=n}this.sValue=i,this.eValue=a,this.oValue=s}}},_an.prototype.initModifierProperties=function(t,e){this.s=_ai._bo(t,e.s,0,.01,this._co),this.e=_ai._bo(t,e.e,0,.01,this._co),this.o=_ai._bo(t,e.o,0,0,this._co),this.sValue=0,this.eValue=0,this.oValue=0,this.getValue=this.processKeys,this.m=e.m},_an.prototype.addShapeToModifier=function(t){t.pathsData=[]},_an.prototype.calculateShapeEdges=function(t,e,r,s,i){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n,o,h=[],l=a.length;for(n=0;n<l;n+=1)if(o=a[n],o.e*i<s||o.s*i>s+r);else{var p,m;p=o.s*i<=s?0:(o.s*i-s)/r,m=o.e*i>=s+r?1:(o.e*i-s)/r,h.push([p,m])}return h.length||h.push([0,0]),h},_an.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segments_length_pool.release(t[e]);return t.length=0,t},_an.prototype.processShapes=function(t){var e,r,s,i,a,n,o,h=this.shapes.length,l=this.sValue,p=this.eValue,m=0;if(p===l)for(r=0;r<h;r+=1)this.shapes[r]._ak.releaseShapes(),this.shapes[r].shape.mdf=!0,this.shapes[r].shape.paths=this.shapes[r]._ak;else if(1===p&&0===l||0===p&&1===l){if(this.mdf)for(r=0;r<h;r+=1)this.shapes[r].shape.mdf=!0}else{var f,c,d=[];for(r=0;r<h;r+=1)if(f=this.shapes[r],f.shape.mdf||this.mdf||t||2===this.m){if(e=f.shape.paths,i=e._length,o=0,!f.shape.mdf&&f.pathsData.length)o=f.totalShapeLength;else{for(a=this.releasePathsData(f.pathsData),s=0;s<i;s+=1)n=bez.getSegmentsLength(e.shapes[s]),a.push(n),o+=n.totalLength;f.totalShapeLength=o,f.pathsData=a}m+=o,f.shape.mdf=!0}else f.shape.paths=f._ak;var s,i,u=l,y=p,g=0;for(r=h-1;r>=0;r-=1)if(f=this.shapes[r],f.shape.mdf){if(c=f._ak,c.releaseShapes(),2===this.m&&h>1){var v=this.calculateShapeEdges(l,p,f.totalShapeLength,g,m);g+=f.totalShapeLength}else v=[[u,y]];for(i=v.length,s=0;s<i;s+=1){u=v[s][0],y=v[s][1],d.length=0,y<=1?d.push({s:f.totalShapeLength*u,e:f.totalShapeLength*y}):u>=1?d.push({s:f.totalShapeLength*(u-1),e:f.totalShapeLength*(y-1)}):(d.push({s:f.totalShapeLength*u,e:f.totalShapeLength}),d.push({s:0,e:f.totalShapeLength*(y-1)}));var b=this.addShapes(f,d[0]);if(d[0].s!==d[0].e){if(d.length>1)if(f.shape.v.c){var E=b.pop();this.addPaths(b,c),b=this.addShapes(f,d[1],E)}else this.addPaths(b,c),b=this.addShapes(f,d[1]);this.addPaths(b,c)}}f.shape.paths=c}}this._co.length||(this.mdf=!1)},_an.prototype.addPaths=function(t,e){var r,s=t.length;for(r=0;r<s;r+=1)e.addShape(t[r])},_an.prototype.addSegment=function(t,e,r,s,i,a,n){i._ax(e[0],e[1],"o",a),i._ax(r[0],r[1],"i",a+1),n&&i._ax(t[0],t[1],"v",a),i._ax(s[0],s[1],"v",a+1)},_an.prototype.addSegmentFromArray=function(t,e,r,s){e._ax(t[1],t[5],"o",r),e._ax(t[2],t[6],"i",r+1),s&&e._ax(t[0],t[4],"v",r),e._ax(t[3],t[7],"v",r+1)},_an.prototype.addShapes=function(t,e,r){var s,i,a,n,o,h,l,p,m=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0;for(r?(o=r._length,p=r._length):(r=shape_pool.newElement(),o=0,p=0),u.push(r),s=0;s<c;s+=1){for(h=m[s].lengths,r.c=f[s].c,a=f[s].c?h.length:h.length+1,i=1;i<a;i+=1)if(n=h[i-1],d+n.addedLength<e.s)d+=n.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+n.addedLength?(this.addSegment(f[s].v[i-1],f[s].o[i-1],f[s].i[i],f[s].v[i],r,o,y),y=!1):(l=bez.getNewSegment(f[s].v[i-1],f[s].v[i],f[s].o[i-1],f[s].i[i],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,h[i-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),d+=n.addedLength,o+=1}if(f[s].c){if(n=h[i-1],d<=e.e){var g=h[i-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(f[s].v[i-1],f[s].o[i-1],f[s].i[0],f[s].v[0],r,o,y),y=!1):(l=bez.getNewSegment(f[s].v[i-1],f[s].v[0],f[s].o[i-1],f[s].i[0],(e.s-d)/g,(e.e-d)/g,h[i-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=n.addedLength,o+=1}if(r._length&&(r._ax(r.v[p][0],r.v[p][1],"i",p),r._ax(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;s<c-1&&(r=shape_pool.newElement(),y=!0,u.push(r),o=0)}return u},_as.registerModifier("tm",_an),extendPrototype([_at],_au),_au.prototype.processKeys=function(t){if(this.elem._x.frameId!==this.frameId||t){this.mdf=!!t,this.frameId=this.elem._x.frameId;var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(),this._co[e].mdf&&(this.mdf=!0)}},_au.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=_ai._bo(t,e.r,0,null,this._co)},_au.prototype.processPath=function(t,e){var r=shape_pool.newElement();r.c=t.c;var s,i,a,n,o,h,l,p,m,f,c,d,u,y=t._length,g=0;for(s=0;s<y;s+=1)i=t.v[s],n=t.o[s],a=t.i[s],i[0]===n[0]&&i[1]===n[1]&&i[0]===a[0]&&i[1]===a[1]?0!==s&&s!==y-1||t.c?(o=0===s?t.v[y-1]:t.v[s-1],h=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)),l=h?Math.min(h/2,e)/h:0,p=d=i[0]+(o[0]-i[0])*l,m=u=i[1]-(i[1]-o[1])*l,f=p-(p-i[0])*roundCorner,c=m-(m-i[1])*roundCorner,r._aw(p,m,f,c,d,u,g),g+=1,o=s===y-1?t.v[0]:t.v[s+1],h=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)),l=h?Math.min(h/2,e)/h:0,p=f=i[0]+(o[0]-i[0])*l,m=c=i[1]+(o[1]-i[1])*l,d=p-(p-i[0])*roundCorner,u=m-(m-i[1])*roundCorner,r._aw(p,m,f,c,d,u,g),g+=1):(r._aw(i[0],i[1],n[0],n[1],a[0],a[1],g),g+=1):(r._aw(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],g),g+=1);return r},_au.prototype.processShapes=function(t){var e,r,s,i,a=this.shapes.length,n=this.rd.v;if(0!==n){var o,h,l;for(r=0;r<a;r+=1){if(o=this.shapes[r],h=o.shape.paths,l=o._ak,o.shape.mdf||this.mdf||t)for(l.releaseShapes(),o.shape.mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,s=0;s<i;s+=1)l.addShape(this.processPath(e[s],n));o.shape.paths=o._ak}}this._co.length||(this.mdf=!1)},_as.registerModifier("rd",_au),_aj.prototype.processKeys=function(t){if(this.elem._x.frameId!==this.frameId||t){this.mdf=!!t;var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(),this._co[e].mdf&&(this.mdf=!0)}},_aj.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=_ai._bo(t,e.c,0,null,this._co),this.o=_ai._bo(t,e.o,0,null,this._co),this.tr=_ag._bj(t,e.tr,this._co),this.data=e,this._co.length||this.getValue(!0),this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},_aj.prototype.applyTransforms=function(t,e,r,s,i,a){var n=a?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-i),h=s.s.v[1]+(1-s.s.v[1])*(1-i);t.translate(s.p.v[0]*n*i,s.p.v[1]*n*i,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*n*i),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),r.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),r.scale(a?1/o:o,a?1/h:h),r.translate(s.a.v[0],s.a.v[1],s.a.v[2])},_aj.prototype.init=function(t,e,r,s,i){this.elem=t,this.arr=e,this.pos=r,this.elemsData=s,this._currentCopies=0,this._bq=[],this._groups=[],this._co=[],this.frameId=-1,this.initModifierProperties(t,e[r]);for(var a=0;r>0;)r-=1,this._bq.unshift(e[r]),a+=1;this._co.length?(this.k=!0,i.push(this)):this.getValue(!0)},_aj.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},_aj.prototype.cloneElements=function(t){var e=(t.length,JSON.parse(JSON.stringify(t)));return this.resetElements(e),e},_aj.prototype.changeGroupRender=function(t,e){var r,s=t.length;for(r=0;r<s;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},_aj.prototype.processShapes=function(t){if(this.elem._x.frameId!==this.frameId&&(this.frameId=this.elem._x.frameId,this._co.length||t||(this.mdf=!1),this.mdf)){var e=Math.ceil(this.c.v);if(this._groups.length<e){for(;this._groups.length<e;){var r={it:this.cloneElements(this._bq),ty:"gr"};r.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:0,ix:6,k:0},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,r),this._groups.splice(0,0,r),this._currentCopies+=1}this.elem.reloadShapes()}var s,i,a=0;for(s=0;s<=this._groups.length-1;s+=1)i=a<e,this._groups[s]._render=i,this.changeGroupRender(this._groups[s].it,i),a+=1;this._currentCopies=e,this.elem._ch=!0;var n=this.o.v,o=n%1,h=n>0?Math.floor(n):Math.ceil(n),l=(this.tr.v.props,this.pMatrix.props),p=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var f=0;if(n>0){for(;f<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),f+=1;o&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,o,!1),f+=o)}else if(n<0){for(;f>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),f-=1;o&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-o,!0),f-=o)}s=1===this.data.m?0:this._currentCopies-1;var c=1===this.data.m?1:-1;for(a=this._currentCopies;a;){if(0!==f){(0!==s&&1===c||s!==this._currentCopies-1&&c===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]);var d,u=this.elemsData[s].it,y=u[u.length-1].transform.mProps.v.props,g=y.length;for(d=0;d<g;d+=1)y[d]=this.matrix.props[d];this.matrix.reset()}else{this.matrix.reset();var d,u=this.elemsData[s].it,y=u[u.length-1].transform.mProps.v.props,g=y.length;for(d=0;d<g;d+=1)y[d]=this.matrix.props[d]}f+=1,a-=1,s+=c}}},_aj.prototype.addShape=function(){},_as.registerModifier("rp",_aj),_am.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(_cv(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},_am.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if(this.elem._x.frameId!==this.frameId||t){var e=0,r=this.dataProps.length;for(this.mdf=!1,this.frameId=this.elem._x.frameId;e<r;){if(this.dataProps[e].p.mdf){this.mdf=!t;break}e+=1}if(this.mdf||t)for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},GradientProperty.prototype.comparePoints=function(t,e){for(var r,s=0,i=this.o.length/2;s<i;){if(r=Math.abs(t[4*s]-t[4*e+2*s]),r>.01)return!1;s+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this.cmdf=!1,this.omdf=!1,this.prop.mdf||t){var e,r,s,i=4*this.data.p;for(e=0;e<i;e+=1)r=e%4===0?100:255,s=Math.round(this.prop.v[e]*r),this.c[e]!==s&&(this.c[e]=s,this.cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)r=e%2===0?100:1,s=e%2===0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this.omdf=!t)}};var ImagePreloader=function(){function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function e(t){var e="";if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e}function r(e){var r=_cu("img");r.addEventListener("load",t.bind(this),!1),r.addEventListener("error",t.bind(this),!1),r.src=e}function s(t,s){this.imagesLoadedCb=s,this.totalAssets=t.length;var i;for(i=0;i<this.totalAssets;i+=1)t[i].layers||(r.bind(this)(e.bind(this)(t[i])),this.totalImages+=1)}function i(t){this.path=t||""}function a(t){this.assetsPath=t||""}function n(){this.imagesLoadedCb=null}return function(){this.loadAssets=s,this.setAssetsPath=a,this.setPath=i,this.destroy=n,this.assetsPath="",this.path="",this.totalAssets=0,this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null}}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory=function(){function t(t){var e=_ct("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e}function e(){var t=_ct("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}var r={};return r.createFilter=t,r.createAlphaToLuminanceFilter=e,r}();_bl.prototype.searchProperties=function(t){var e,r,s=this._textData.a.length,i=_ai._bo;for(e=0;e<s;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this.__co);this._textData.p&&"m"in this._textData.p?(this._pathData={f:i(this._elem,this._textData.p.f,0,0,this.__co),l:i(this._elem,this._textData.p.l,0,0,this.__co),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this.__co),this.__co.length&&t.push(this)},_bl.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this.mdf||this._ch||e||this._hasMaskedPath&&this._pathData.m.mdf){this._ch=!1;var r,s,i,a,n=this._moreOptions.alignment.v,o=this._animatorsData,h=this._textData,l=this.mHelper,p=this._renderType,m=this._bt.length,f=(this.data,t.l);if(this._hasMaskedPath){var c=this._pathData.m;if(!this._pathData.n||this._pathData.mdf){var d=c.v;this._pathData.r&&(d=d.reverse());var u={tLength:0,segments:[]};a=d._length-1;var y,g=0;for(i=0;i<a;i+=1)y={s:d.v[i],e:d.v[i+1],to:[d.o[i][0]-d.v[i][0],d.o[i][1]-d.v[i][1]],ti:[d.i[i+1][0]-d.v[i+1][0],d.i[i+1][1]-d.v[i+1][1]]},bez.buildBezierData(y),u.tLength+=y.bezierData.segmentLength,u.segments.push(y),g+=y.bezierData.segmentLength;i=a,c.v.c&&(y={s:d.v[i],e:d.v[0],to:[d.o[i][0]-d.v[i][0],d.o[i][1]-d.v[i][1]],ti:[d.i[0][0]-d.v[0][0],d.i[0][1]-d.v[0][1]]},bez.buildBezierData(y),u.tLength+=y.bezierData.segmentLength,u.segments.push(y),g+=y.bezierData.segmentLength),this._pathData.pi=u}var v,b,E,u=this._pathData.pi,P=this._pathData.f.v,x=0,S=1,C=0,A=!0,k=u.segments;if(P<0&&c.v.c)for(u.tLength<Math.abs(P)&&(P=-Math.abs(P)%u.tLength),x=k.length-1,E=k[x].bezierData.points,S=E.length-1;P<0;)P+=E[S].partialLength,S-=1,S<0&&(x-=1,E=k[x].bezierData.points,S=E.length-1);E=k[x].bezierData.points,b=E[S-1],v=E[S];var M,T,D=v.partialLength}a=f.length,r=0,s=0;var w,F,_,I,V,R=1.2*t.s*.714,B=!0;I=o.length;var L,G,N,z,O,H,j,W,q,Y,X,K,J,Z=-1,U=P,Q=x,$=S,tt=-1,et=0,rt="",st=this.defaultPropsArray;for(i=0;i<a;i+=1){if(l.reset(),O=1,f[i].n)r=0,s+=t.yOffset,s+=B?1:0,P=U,B=!1,et=0,this._hasMaskedPath&&(x=Q,S=$,E=k[x].bezierData.points,b=E[S-1],v=E[S],D=v.partialLength,C=0),J=Y=K=rt="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(tt!==f[i].line){switch(t.j){case 1:P+=g-t.lineWidths[f[i].line];break;case 2:P+=(g-t.lineWidths[f[i].line])/2}tt=f[i].line}Z!==f[i].ind&&(f[Z]&&(P+=f[Z].extra),P+=f[i].an/2,Z=f[i].ind),P+=n[0]*f[i].an/200;var it=0;for(_=0;_<I;_+=1)w=o[_].a,w.p.propType&&(F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),it+=L.length?w.p.v[0]*L[0]:w.p.v[0]*L),w.a.propType&&(F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),it+=L.length?w.a.v[0]*L[0]:w.a.v[0]*L);for(A=!0;A;)C+D>=P+it||!E?(M=(P+it-C)/v.partialLength,N=b.point[0]+(v.point[0]-b.point[0])*M,z=b.point[1]+(v.point[1]-b.point[1])*M,l.translate(-n[0]*f[i].an/200,-(n[1]*R/100)),A=!1):E&&(C+=v.partialLength,S+=1,S>=E.length&&(S=0,x+=1,k[x]?E=k[x].bezierData.points:c.v.c?(S=0,x=0,E=k[x].bezierData.points):(C-=v.partialLength,E=null)),E&&(b=v,v=E[S],D=v.partialLength));G=f[i].an/2-f[i].add,l.translate(-G,0,0)}else G=f[i].an/2-f[i].add,l.translate(-G,0,0),l.translate(-n[0]*f[i].an/200,-n[1]*R/100,0);for(et+=f[i].l/2,_=0;_<I;_+=1)w=o[_].a,w.t.propType&&(F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),this._hasMaskedPath?P+=L.length?w.t*L[0]:w.t*L:r+=L.length?w.t.v*L[0]:w.t.v*L);for(et+=f[i].l/2,t.strokeWidthAnim&&(j=t.sw||0),t.strokeColorAnim&&(H=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(W=[t.fc[0],t.fc[1],t.fc[2]]),_=0;_<I;_+=1)w=o[_].a,w.a.propType&&(F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),L.length?l.translate(-w.a.v[0]*L[0],-w.a.v[1]*L[1],w.a.v[2]*L[2]):l.translate(-w.a.v[0]*L,-w.a.v[1]*L,w.a.v[2]*L));for(_=0;_<I;_+=1)w=o[_].a,w.s.propType&&(F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),L.length?l.scale(1+(w.s.v[0]-1)*L[0],1+(w.s.v[1]-1)*L[1],1):l.scale(1+(w.s.v[0]-1)*L,1+(w.s.v[1]-1)*L,1));for(_=0;_<I;_+=1){if(w=o[_].a,F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),w.sk.propType&&(L.length?l.skewFromAxis(-w.sk.v*L[0],w.sa.v*L[1]):l.skewFromAxis(-w.sk.v*L,w.sa.v*L)),w.r.propType&&(L.length?l.rotateZ(-w.r.v*L[2]):l.rotateZ(-w.r.v*L)),w.ry.propType&&(L.length?l.rotateY(w.ry.v*L[1]):l.rotateY(w.ry.v*L)),w.rx.propType&&(L.length?l.rotateX(w.rx.v*L[0]):l.rotateX(w.rx.v*L)),w.o.propType&&(O+=L.length?(w.o.v*L[0]-O)*L[0]:(w.o.v*L-O)*L),t.strokeWidthAnim&&w.sw.propType&&(j+=L.length?w.sw.v*L[0]:w.sw.v*L),t.strokeColorAnim&&w.sc.propType)for(q=0;q<3;q+=1)L.length?H[q]=H[q]+(w.sc.v[q]-H[q])*L[0]:H[q]=H[q]+(w.sc.v[q]-H[q])*L;if(t.fillColorAnim&&t.fc){if(w.fc.propType)for(q=0;q<3;q+=1)L.length?W[q]=W[q]+(w.fc.v[q]-W[q])*L[0]:W[q]=W[q]+(w.fc.v[q]-W[q])*L;w.fh.propType&&(W=L.length?addHueToRGB(W,w.fh.v*L[0]):addHueToRGB(W,w.fh.v*L)),w.fs.propType&&(W=L.length?addSaturationToRGB(W,w.fs.v*L[0]):addSaturationToRGB(W,w.fs.v*L)),w.fb.propType&&(W=L.length?addBrightnessToRGB(W,w.fb.v*L[0]):addBrightnessToRGB(W,w.fb.v*L))}}for(_=0;_<I;_+=1)w=o[_].a,w.p.propType&&(F=o[_].s,L=F.getMult(f[i].anIndexes[_],h.a[_].s.totalChars),this._hasMaskedPath?L.length?l.translate(0,w.p.v[1]*L[0],-w.p.v[2]*L[1]):l.translate(0,w.p.v[1]*L,-w.p.v[2]*L):L.length?l.translate(w.p.v[0]*L[0],w.p.v[1]*L[1],-w.p.v[2]*L[2]):l.translate(w.p.v[0]*L,w.p.v[1]*L,-w.p.v[2]*L));if(t.strokeWidthAnim&&(Y=j<0?0:j),t.strokeColorAnim&&(X="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),this._hasMaskedPath){if(l.translate(0,-t.ls),l.translate(0,n[1]*R/100+s,0),h.p.p){T=(v.point[1]-b.point[1])/(v.point[0]-b.point[0]);var at=180*Math.atan(T)/Math.PI;v.point[0]<b.point[0]&&(at+=180),l.rotate(-at*Math.PI/180)}l.translate(N,z,0),P-=n[0]*f[i].an/200,f[i+1]&&Z!==f[i+1].ind&&(P+=f[i].an/2,P+=t.tr/1e3*t.s)}else{switch(l.translate(r,s,0),t.ps&&l.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:l.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[f[i].line]),0,0);break;case 2:l.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[f[i].line])/2,0,0)}l.translate(0,-t.ls),l.translate(G,0,0),l.translate(n[0]*f[i].an/200,n[1]*R/100,0),r+=f[i].l+t.tr/1e3*t.s}"html"===p?rt=l.toCSS():"svg"===p?rt=l.to2dCSS():st=[l.props[0],l.props[1],l.props[2],l.props[3],l.props[4],l.props[5],l.props[6],l.props[7],l.props[8],l.props[9],l.props[10],l.props[11],l.props[12],l.props[13],l.props[14],l.props[15]],J=O}m<=i?(V=new LetterProps(J,Y,X,K,rt,st),this._bt.push(V),m+=1,this.lettersChangedFlag=!0):(V=this._bt[i],this.lettersChangedFlag=V.update(J,Y,X,K,rt,st)||this.lettersChangedFlag)}}},_bl.prototype.getValue=function(){if(this._elem._x.frameId!==this._frameId){this._frameId=this._elem._x.frameId;var t,e=this.__co.length;for(this.mdf=!1,t=0;t<e;t+=1)this.__co[t].getValue(),this.mdf=this.__co[t].mdf||this.mdf}},_bl.prototype.mHelper=new Matrix,_bl.prototype.defaultPropsArray=[],LetterProps.prototype.update=function(t,e,r,s,i,a){this.mdf.o=!1,this.mdf.sw=!1,this.mdf.sc=!1,this.mdf.fc=!1,this.mdf.m=!1,this.mdf.p=!1;var n=!1;return this.o!==t&&(this.o=t,this.mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this.mdf.sw=!0,n=!0),this.sc!==r&&(this.sc=r,this.mdf.sc=!0,n=!0),this.fc!==s&&(this.fc=s,this.mdf.fc=!0,n=!0),this.m!==i&&(this.m=i,this.mdf.m=!0,n=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this.mdf.p=!0,n=!0),n},_ar.prototype.setCurrentData=function(t){var e=this.currentData;e.ascent=t.ascent,e.boxWidth=t.boxWidth?t.boxWidth:e.boxWidth,e.f=t.f,e.fStyle=t.fStyle,e.fWeight=t.fWeight,e.fc=t.fc,e.j=t.j,e.justifyOffset=t.justifyOffset,e.l=t.l,e.lh=t.lh,e.lineWidths=t.lineWidths,e.ls=t.ls,e.of=t.of,e.s=t.s,e.sc=t.sc,e.sw=t.sw,e.sz=t.sz,e.ps=t.ps,e.t=t.t,e.tr=t.tr,e.fillColorAnim=t.fillColorAnim||e.fillColorAnim,e.strokeColorAnim=t.strokeColorAnim||e.strokeColorAnim,e.strokeWidthAnim=t.strokeWidthAnim||e.strokeWidthAnim,e.yOffset=t.yOffset,e.__complete=!1},_ar.prototype.searchProperty=function(){return this.kf=this.data.d.k.length>1,this.kf},_ar.prototype.getValue=function(){this.mdf=!1;var t=this.elem._x.frameId;if(t!==this._frameId&&this.kf||this._ch){for(var e,r=this.data.d.k,s=0,i=r.length;s<=i-1&&(e=r[s].s,!(s===i-1||r[s+1].t>t));)s+=1;this.keysIndex!==s&&(e.__complete||this.completeTextData(e),this.setCurrentData(e),this.mdf=!this._ch,this.pv=this.v=this.currentData.t,this.keysIndex=s),this._frameId=t}},_ar.prototype.completeTextData=function(t){t.__complete=!0;var e,r,s,i,a,n,o,h=this.elem._x._cr,l=this.data,p=[],m=0,f=l.m.g,c=0,d=0,u=0,y=[],g=0,v=0,b=h.getFontByName(t.f),E=0,P=b.fStyle.split(" "),x="normal",S="normal";r=P.length;var C;for(e=0;e<r;e+=1)switch(C=P[e].toLowerCase()){case"italic":S="italic";break;case"bold":x="700";break;case"black":x="900";break;case"medium":x="500";break;case"regular":case"normal":x="400";case"light":case"thin":x="200"}t.fWeight=x,t.fStyle=S,r=t.t.length;var A=t.tr/1e3*t.s;if(t.sz){var k=t.sz[0],M=-1;for(e=0;e<r;e+=1)s=!1," "===t.t.charAt(e)?M=e:13===t.t.charCodeAt(e)&&(g=0,s=!0),h.chars?(o=h.getCharData(t.t.charAt(e),b.fStyle,b.fFamily),E=s?0:o.w*t.s/100):E=h.measureText(t.t.charAt(e),t.f,t.s),g+E>k&&" "!==t.t.charAt(e)?(M===-1?r+=1:e=M,t.t=t.t.substr(0,e)+"\r"+t.t.substr(e===M?e+1:e),M=-1,g=0):(g+=E,g+=A);r=t.t.length}g=-A,E=0;var T,D=0;for(e=0;e<r;e+=1)if(s=!1,T=t.t.charAt(e)," "===T?i="\xa0":13===T.charCodeAt(0)?(D=0,y.push(g),v=g>v?g:v,g=-2*A,i="",s=!0,u+=1):i=t.t.charAt(e),h.chars?(o=h.getCharData(T,b.fStyle,h.getFontByName(t.f).fFamily),E=s?0:o.w*t.s/100):E=h.measureText(i,t.f,t.s)," "===T?D+=E+A:(g+=E+A+D,D=0),p.push({l:E,an:E,add:c,n:s,anIndexes:[],val:i,line:u}),2==f){if(c+=E,""==i||"\xa0"==i||e==r-1){for(""!=i&&"\xa0"!=i||(c-=E);d<=e;)p[d].an=c,p[d].ind=m,p[d].extra=E,d+=1;m+=1,c=0}}else if(3==f){if(c+=E,""==i||e==r-1){for(""==i&&(c-=E);d<=e;)p[d].an=c,p[d].ind=m,p[d].extra=E,d+=1;c=0,m+=1}}else p[m].ind=m,p[m].extra=0,m+=1;if(t.l=p,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var w,F,_=l.a;n=_.length;var I,V,R=[];for(a=0;a<n;a+=1){for(w=_[a],w.a.sc&&(t.strokeColorAnim=!0),w.a.sw&&(t.strokeWidthAnim=!0),(w.a.fc||w.a.fh||w.a.fs||w.a.fb)&&(t.fillColorAnim=!0),V=0,I=w.s.b,e=0;e<r;e+=1)F=p[e],F.anIndexes[a]=V,(1==I&&""!=F.val||2==I&&""!=F.val&&"\xa0"!=F.val||3==I&&(F.n||"\xa0"==F.val||e==r-1)||4==I&&(F.n||e==r-1))&&(1===w.s.rn&&R.push(V),V+=1);l.a[a].s.totalChars=V;var B,L=-1;if(1===w.s.rn)for(e=0;e<r;e+=1)F=p[e],L!=F.anIndexes[a]&&(L=F.anIndexes[a],B=R.splice(Math.floor(Math.random()*R.length),1)[0]),F.anIndexes[a]=B}t.yOffset=t.lh||1.2*t.s,t.ls=t.ls||0,t.ascent=b.ascent*t.s/100},_ar.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.data.d.k[e].s;r.__complete=!1,r.t=t.t,this.keysIndex=-1,this._ch=!0,this.getValue()};var TextSelectorProp=function(){function t(t){if(this.mdf=t||!1,this._co.length){var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(),this._co[e].mdf&&(this.mdf=!0)}var s=this.elem.textProperty.currentData?this.elem.textProperty.currentData.l.length:0;t&&2===this.data.r&&(this.e.v=s);var i=2===this.data.r?1:100/s,a=this.o.v/i,n=this.s.v/i+a,o=this.e.v/i+a;if(n>o){var h=n;n=o,o=h}this.finalS=n,this.finalE=o}function e(t){var e=BezierFactory.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,r=0,s=this.finalS,o=this.finalE,h=this.data.sh;if(2==h)r=o===s?t>=o?1:0:i(0,a(.5/(o-s)+(t-s)/(o-s),1)),r=e(r);else if(3==h)r=o===s?t>=o?0:1:1-i(0,a(.5/(o-s)+(t-s)/(o-s),1)),r=e(r);else if(4==h)o===s?r=0:(r=i(0,a(.5/(o-s)+(t-s)/(o-s),1)),r<.5?r*=2:r=1-2*(r-.5)),r=e(r);else if(5==h){if(o===s)r=0;else{var l=o-s;t=a(i(0,t+.5-s),o-s);var p=-l/2+t,m=l/2;r=Math.sqrt(1-p*p/(m*m))}r=e(r)}else 6==h?(o===s?r=0:(t=a(i(0,t+.5-s),o-s),r=(1+Math.cos(Math.PI+2*Math.PI*t/(o-s)))/2),r=e(r)):(t>=n(s)&&(r=t-s<0?1-(s-t):i(0,a(o-t,1))),r=e(r));return r*this.a.v}function r(r,s,i){this.mdf=!1,this.k=!1,this.data=s,this._co=[],this.getValue=t,this.getMult=e,this.elem=r,this.comp=r.comp,this.finalS=0,this.finalE=0,this.s=_ai._bo(r,s.s||{k:0},0,0,this._co),"e"in s?this.e=_ai._bo(r,s.e,0,0,this._co):this.e={v:100},this.o=_ai._bo(r,s.o||{k:0},0,0,this._co),this.xe=_ai._bo(r,s.xe||{k:0},0,0,this._co),this.ne=_ai._bo(r,s.ne||{k:0},0,0,this._co),this.a=_ai._bo(r,s.a,0,.01,this._co),this._co.length?i.push(this):this.getValue()}function s(t,e,s){return new r(t,e,s)}var i=Math.max,a=Math.min,n=Math.floor;return{getTextSelectorProp:s}}(),pool_factory=function(){return function(t,e,r,s){function i(){var t;return n?(n-=1,t=h[n]):t=e(),t}function a(t){n===o&&(h=pooling["double"](h),o=2*o),r&&r(t),h[n]=t,n+=1}var n=0,o=t,h=_cv(o),l={newElement:i,release:a};return l}}(),pooling=function(){function t(t){return t.concat(_cv(t.length))}return{"double":t}}(),point_pool=function(){function t(){return _cs("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new _av}function e(t){var e,r=t._length;for(e=0;e<r;e+=1)point_pool.release(t.v[e]),point_pool.release(t.i[e]),point_pool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function r(t){var e,r=s.newElement(),i=void 0===t._length?t.v.length:t._length;r.setLength(i),r.c=t.c;for(e=0;e<i;e+=1)r._aw(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r}var s=pool_factory(4,t,e);return s.clone=r,s}(),shapeCollection_pool=function(){function t(){var t;return s?(s-=1,t=a[s]):t=new _am,t}function e(t){var e,r=t._length;for(e=0;e<r;e+=1)shape_pool.release(t.shapes[e]);t._length=0,s===i&&(a=pooling["double"](a),i=2*i),a[s]=t,s+=1}var r={_al:t,release:e},s=0,i=4,a=_cv(i);return r}(),segments_length_pool=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezier_length_pool.release(t.lengths[e]);t.lengths.length=0}return pool_factory(8,t,e)}(),bezier_length_pool=function(){function t(){return{addedLength:0,percents:_cs("float32",defaultCurveSegments),lengths:_cs("float32",defaultCurveSegments)}}return pool_factory(8,t)}();_l.prototype.checkLayers=function(t){var e,r,s=this.layers.length;for(this._db=!0,e=s-1;e>=0;e--)this._br[e]||(r=this.layers[e],r.ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e)),this._db=!!this._br[e]&&this._db;this.checkPendingElements()},_l.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t);case 99:return null}return this.createBase(t)},_l.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},_l.prototype.buildAllItems=function(){
var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},_l.prototype.includeLayers=function(t){this._db=!1;var e,r,s=t.length,i=this.layers.length;for(e=0;e<s;e+=1)for(r=0;r<i;){if(this.layers[r].id==t[e].id){this.layers[r]=t[e];break}r+=1}},_l.prototype.setProjectInterface=function(t){this._x.projectInterface=t},_l.prototype.initItems=function(){this._x.progressiveLoad||this.buildAllItems()},_l.prototype.buildElementParenting=function(t,e,r){for(var s=this._br,i=this.layers,a=0,n=i.length;a<n;)i[a].ind==e&&(s[a]&&s[a]!==!0?void 0!==i[a].parent?(r.push(s[a]),s[a]._isParent=!0,this.buildElementParenting(t,i[a].parent,r)):(r.push(s[a]),s[a]._isParent=!0,t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+=1},_l.prototype.addPendingElement=function(t){this._dc.push(t)},extendPrototype([_l],_ao),_ao.prototype.createBase=function(t){return new _d(t,this._x,this)},_ao.prototype.createNull=function(t){return new _i(t,this._x,this)},_ao.prototype.createShape=function(t){return new SVGShapeElement(t,this._x,this)},_ao.prototype.createText=function(t){return new _cw(t,this._x,this)},_ao.prototype.createImage=function(t){return new _h(t,this._x,this)},_ao.prototype.createComp=function(t){return new SVGCompElement(t,this._x,this)},_ao.prototype.createSolid=function(t){return new _j(t,this._x,this)},_ao.prototype.configAnimation=function(t){this._cf.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this._cf.setAttribute("viewBox",this.renderConfig.viewBoxSize):this._cf.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this._cf.setAttribute("width",t.w),this._cf.setAttribute("height",t.h),this._cf.style.width="100%",this._cf.style.height="100%"),this.renderConfig.className&&this._cf.setAttribute("class",this.renderConfig.className),this._cf.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this._cq.wrapper.appendChild(this._cf);var e=this._x.defs;this._x.getAssetData=this._cq.getAssetData.bind(this._cq),this._x.getAssetsPath=this._cq.getAssetsPath.bind(this._cq),this._x.progressiveLoad=this.renderConfig.progressiveLoad,this._x.nm=t.nm,this._x._de.w=t.w,this._x._de.h=t.h,this._x.frameRate=t.fr,this.data=t;var r=_ct("clipPath"),s=_ct("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var i="animationMask_"+randomString(10);r.setAttribute("id",i),r.appendChild(s),this._bx.setAttribute("clip-path","url("+locationHref+"#"+i+")"),e.appendChild(r),this.layers=t.layers,this._x._cr.addChars(t.chars),this._x._cr.addFonts(t.fonts,e),this._br=_cv(t.layers.length)},_ao.prototype.destroy=function(){this._cq.wrapper.innerHTML="",this._bx=null,this._x.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this._br[t]&&this._br[t].destroy();this._br.length=0,this.destroyed=!0,this._cq=null},_ao.prototype.updateContainerSize=function(){},_ao.prototype.buildItem=function(t){var e=this._br;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);e[t]=r,expressionsPlugin&&(0===this.layers[t].ty&&this._x.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt&&(this._br[t-1]&&this._br[t-1]!==!0?r.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(r)))}},_ao.prototype.checkPendingElements=function(){for(;this._dc.length;){var t=this._dc.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this._br.length;e<r;){if(this._br[e]===t){t.setMatte(this._br[e-1].layerId);break}e+=1}}},_ao.prototype._ba=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this._x.frameNum=t,this._x.frameId+=1,this._x.projectInterface.currentFrame=t;var e,r=this.layers.length;for(this._db||this.checkLayers(t),e=r-1;e>=0;e--)(this._db||this._br[e])&&this._br[e]._az(t-this.layers[e].st);for(e=0;e<r;e+=1)(this._db||this._br[e])&&this._br[e]._ba()}},_ao.prototype.appendElementInPos=function(t,e){var r=t.get_e();if(r){for(var s,i=0;i<e;)this._br[i]&&this._br[i]!==!0&&this._br[i].get_e()&&(s=this._br[i].get_e()),i+=1;s?this._bx.insertBefore(r,s):this._bx.appendChild(r)}},_ao.prototype.hide=function(){this._bx.style.display="none"},_ao.prototype.show=function(){this._bx.style.display="block"},_ao.prototype.searchExtraCompositions=function(t){var e,r=t.length,s=_ct("g");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],s,this._x.comp,null);i.initExpressions(),this._x.projectInterface.registerComposition(i)}},_ay.prototype.getMaskProperty=function(t){return this.viewData[t].prop},_ay.prototype._az=function(){var t,e=this._co.length;for(t=0;t<e;t+=1)this._co[t].getValue()},_ay.prototype._ba=function(t){var e,r=this.masksProperties.length;for(e=0;e<r;e++)if((this.viewData[e].prop.mdf||this._ch)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op.mdf||this._ch)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp.mdf||this._ch)&&(this.viewData[e].invRect.setAttribute("x",-t.props[12]),this.viewData[e].invRect.setAttribute("y",-t.props[13])),this.storedData[e].x&&(this.storedData[e].x.mdf||this._ch))){var s=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[e].filterId+")")),s.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}this._ch=!1},_ay.prototype.getMaskelement=function(){return this.maskElement},_ay.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this._x._de.w,t+=" v"+this._x._de.h,t+=" h-"+this._x._de.w,t+=" v-"+this._x._de.h+" "},_ay.prototype.drawPath=function(t,e,r){var s,i,a=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,s=1;s<i;s+=1)a+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&i>1&&(a+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==a){var n="";r.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",n)),r.lastPath=a}},_ay.prototype.destroy=function(){this.element=null,this._x=null,this.maskElement=null,this.data=null,this.masksProperties=null},_ad.prototype.initHierarchy=function(){this._dd=[],this._isParent=!1,this.checkParenting()},_ad.prototype.resetHierarchy=function(){this._dd.length=0},_ad.prototype.getHierarchy=function(){return this._dd},_ad.prototype.setHierarchy=function(t){this._dd=t},_ad.prototype.checkParenting=function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])},_ad.prototype.prepareHierarchy=function(){},_ac.prototype.initFrame=function(){this._ch=!1,this._co=[]},_ac.prototype.prepareProperties=function(t,e){var r,s=this._co.length;for(r=0;r<s;r+=1)(e||this._isParent&&"transform"===this._co[r].propType)&&(this._co[r].getValue(this._ch),this._co[r].mdf&&(this._x.mdf=!0))},_af.prototype.initTransform=function(){this.finalTransform={mProp:this.data.ks?_ag._bj(this,this.data.ks,this._co):{o:0},matMdf:!1,opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),11!==this.data.ty},_af.prototype.renderTransform=function(){if(this.finalTransform.opMdf=this.finalTransform.mProp.o.mdf||this._ch,this.finalTransform.matMdf=this.finalTransform.mProp.mdf||this._ch,this._dd){var t,e=this.finalTransform.mat,r=0,s=this._dd.length;if(!this.finalTransform.matMdf)for(;r<s;){if(this._dd[r].finalTransform.mProp.mdf){this.finalTransform.matMdf=!0;break}r+=1}if(this.finalTransform.matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<s;r+=1)t=this._dd[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},_af.prototype.globalToLocal=function(t){var e=[];e.push(this.finalTransform);for(var r=!0,s=this.comp;r;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):r=!1;var i,a,n=e.length;for(i=0;i<n;i+=1)a=e[i].mat._cn(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},_af.prototype.mHelper=new Matrix,_ae.prototype.initRenderable=function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1},_ae.prototype.prepareRenderableFrame=function(t){this.checkLayerLimits(t),this.prepareMasks(t),this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this._x.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},_ae.prototype.checkLayerLimits=function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this._x.mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this._x.mdf=!0,this.isInRange=!1,this.hide())},_ae.prototype.prepareMasks=function(){this.isInRange&&this.maskManager._az()},_ae.prototype.renderRenderable=function(){this.maskManager._ba(this.finalTransform.mat),this.effectsManager._ba(this._ch)},_ae.prototype.sourceRectAtTime=function(){return{top:0,left:0,width:100,height:100}},_ae.prototype.getLayerSize=function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}},extendPrototype([_ae],_ci),_ci.prototype._cz=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),this.createContent(),this.hide()},_ci.prototype.hide=function(){this.hidden||this.isInRange&&!this.isTransparent||(this._bx.style.display="none",this.hidden=!0)},_ci.prototype.show=function(){this.isInRange&&!this.isTransparent&&(this.data.hd||(this._bx.style.display="block"),this.hidden=!1,this._ch=!0,this.maskManager._ch=!0)},_ci.prototype._ba=function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._ch&&(this._ch=!1))},_ci.prototype.renderInnerContent=function(){},_ci.prototype.destroy=function(){this._cc=null,this.destroy_e()},_ci.prototype._az=function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},SVGStyleData.prototype.reset=function(){this.d="",this.mdf=!1},_ck.prototype.initGradientData=function(t,e,r,s){this.o=_ai._bo(t,e.o,0,.01,r),this.s=_ai._bo(t,e.s,1,null,r),this.e=_ai._bo(t,e.e,1,null,r),this.h=_ai._bo(t,e.h||{k:0},0,.01,r),this.a=_ai._bo(t,e.a||{k:0},0,degToRads,r),this.g=new GradientProperty(t,e.g,r),this.style=s,this.stops=[],this.setGradientData(s.pElem,e),this.setGradientOpacity(e,s)},_ck.prototype.setGradientData=function(t,e){var r="gr_"+randomString(10),s=_ct(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",r),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var i,a,n,o=[];for(n=4*e.g.p,a=0;a<n;a+=4)i=_ct("stop"),s.appendChild(i),o.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url(#"+r+")"),this.gf=s,this.cst=o},_ck.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,s,i,a=_ct("mask"),n=_ct("path");a.appendChild(n);var o="op_"+randomString(10),h="mk_"+randomString(10);a.setAttribute("id",h);var l=_ct(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",o),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(s=4*t.g.p;s<i;s+=2)r=_ct("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),p.push(r);n.setAttribute("gf"===t.ty?"fill":"stroke","url(#"+o+")"),this.of=l,this.ms=a,this.ost=p,this.maskId=h,e.msElem=n}},_cj.prototype.initGradientData=_ck.prototype.initGradientData,_cj.prototype.setGradientData=_ck.prototype.setGradientData,_cj.prototype.setGradientOpacity=_ck.prototype.setGradientOpacity,_e.prototype.checkMasks=function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},_e.prototype.initExpressions=function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},_e.prototype.blendModeEnums={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"},_e.prototype.getBlendMode=function(){return this.blendModeEnums[this.data.bm]||""},_e.prototype.setBlendMode=function(){var t=this.getBlendMode(),e=this._by||this._bx;e.style["mix-blend-mode"]=t},_e.prototype.initBaseData=function(t,e,r){this._x=e,this.comp=r,this.data=t,this.layerId="ly_"+randomString(10),this.data.sr||(this.data.sr=1),this.effects=new EffectsManager(this.data,this,this._co)},_e.prototype.getType=function(){return this.type},_i.prototype._az=function(t){this.prepareProperties(t,!0)},_i.prototype._ba=function(){},_i.prototype.get_e=function(){return null},_i.prototype.destroy=function(){},_i.prototype.sourceRectAtTime=function(){},_i.prototype.hide=function(){},extendPrototype([_e,_af,_ad,_ac],_i),_d.prototype.initRendererElement=function(){this._bx=_ct("g")},_d.prototype.createContainerElements=function(){this.matteElement=_ct("g"),this._bz=this._bx,this._ca=this._bx,this._sizeChanged=!1;var t=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var e=_ct("mask");if(e.setAttribute("id",this.layerId),e.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),e.appendChild(this._bx),t=e,this._x.defs.appendChild(e),!featureSupport.maskType&&1==this.data.td){e.setAttribute("mask-type","luminance");var r=randomString(10),s=filtersFactory.createFilter(r);this._x.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter());var i=_ct("g");i.appendChild(this._bx),t=i,e.appendChild(i),i.setAttribute("filter","url("+locationHref+"#"+r+")")}}else if(2==this.data.td){var a=_ct("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var n=_ct("g");a.appendChild(n);var r=randomString(10),s=filtersFactory.createFilter(r),o=_ct("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 -1 1"),s.appendChild(o),this._x.defs.appendChild(s);var h=_ct("rect");if(h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),n.setAttribute("filter","url("+locationHref+"#"+r+")"),n.appendChild(h),n.appendChild(this._bx),t=n,!featureSupport.maskType){a.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter());var i=_ct("g");n.appendChild(h),i.appendChild(this._bx),t=i,n.appendChild(i)}this._x.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this._bx),t=this.matteElement,this._by=this.matteElement):this._by=this._bx;if(!this.data.ln&&!this.data.cl||4!==this.data.ty&&0!==this.data.ty||(this.data.ln&&this._bx.setAttribute("id",this.data.ln),this.data.cl&&this._bx.setAttribute("class",this.data.cl)),0===this.data.ty&&!this.data.hd){var l=_ct("clipPath"),p=_ct("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var m="cp_"+randomString(8);if(l.setAttribute("id",m),l.appendChild(p),this._x.defs.appendChild(l),this.checkMasks()){var f=_ct("g");f.setAttribute("clip-path","url("+locationHref+"#"+m+")"),f.appendChild(this._bx),this._bz=f,t?t.appendChild(this._bz):this._by=this._bz}else this._bx.setAttribute("clip-path","url("+locationHref+"#"+m+")")}0!==this.data.bm&&this.setBlendMode(),this.effectsManager=new _bi(this)},_d.prototype.renderElement=function(){this.finalTransform.matMdf&&this._bz.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform.opMdf&&this._bz.setAttribute("opacity",this.finalTransform.mProp.o.v)},_d.prototype.destroy_e=function(){this._bx=null,this.matteElement=null,this.maskManager.destroy()},_d.prototype.get_e=function(){return this.data.hd?null:this._by},_d.prototype.addMasks=function(){this.maskManager=new _ay(this.data,this,this._x)},_d.prototype.setMatte=function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")},_f.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].reset();for(e=this.shapeModifiers.length,t=e-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this._ch)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"butt"},searchProcessedElement:function(t){for(var e=0,r=this.processedElements.length;e<r;){if(this.processedElements[e].elem===t)return this.processedElements[e].pos;e+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements.length;r;)if(r-=1,this.processedElements[r].elem===t){this.processedElements[r].pos=e;break}0===r&&this.processedElements.push(new ProcessedElement(t,e))},_az:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},buildShapeString:function(t,e,r,s){var i,a="";for(i=1;i<e;i+=1)1===i&&(a+=" M"+s.applyToPointStringified(t.v[0][0],t.v[0][1])),a+=" C"+s.applyToPointStringified(t.o[i-1][0],t.o[i-1][1])+" "+s.applyToPointStringified(t.i[i][0],t.i[i][1])+" "+s.applyToPointStringified(t.v[i][0],t.v[i][1]);return 1===e&&(a+=" M"+s.applyToPointStringified(t.v[0][0],t.v[0][1])),r&&e&&(a+=" C"+s.applyToPointStringified(t.o[i-1][0],t.o[i-1][1])+" "+s.applyToPointStringified(t.i[0][0],t.i[0][1])+" "+s.applyToPointStringified(t.v[0][0],t.v[0][1]),a+="z"),a}},_k.prototype._cz=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textAnimator=new _bl(t.t,this.renderType,this),this.textProperty=new _ar(this,t.t,this._co),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),this.createContent(),this.textAnimator.searchProperties(this._co)},_k.prototype._az=function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty.mdf||this.textProperty._ch)&&(this.buildNewText(),this.textProperty._ch=!1)},_k.prototype.createPathShape=function(t,e){var r,s,i=e.length,a="";for(r=0;r<i;r+=1)s=e[r].ks.k,a+=this.buildShapeString(s,s.i.length,!0,t);return a},_k.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},_k.prototype.applyTextPropertiesToMatrix=function(t,e,r,s,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(s,i,0)},_k.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},_k.prototype.buildShapeString=_f.prototype.buildShapeString,_k.prototype.emptyProp=new LetterProps,_k.prototype.destroy=function(){},extendPrototype([_e,_af,_ad,_ac,_ci],_g),_g.prototype._cz=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.addMasks(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},_g.prototype._az=function(t){if(this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,s=this._br.length;for(this._db||this.checkLayers(this.renderedFrame),r=0;r<s;r+=1)(this._db||this._br[r])&&this._br[r]._az(this.renderedFrame-this.layers[r].st)}},_g.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this._db||this._br[t])&&this._br[t]._ba()},_g.prototype.setElements=function(t){this._br=t},_g.prototype.getElements=function(){return this._br},_g.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this._br[t]&&this._br[t].destroy()},_g.prototype.destroy=function(){this.destroyElements(),this.destroy_e()},extendPrototype([_e,_af,_d,_ad,_ac,_ci],_h),_h.prototype.createContent=function(){var t=this._x.getAssetsPath(this.assetData);this._cc=_ct("image"),this._cc.setAttribute("width",this.assetData.w+"px"),this._cc.setAttribute("height",this.assetData.h+"px"),this._cc.setAttribute("preserveAspectRatio","xMidYMid slice"),this._cc.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this._bx.appendChild(this._cc)},extendPrototype([_h],_j),_j.prototype.createContent=function(){var t=_ct("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this._bx.appendChild(t)},extendPrototype([_ao,_g,_d],SVGCompElement),extendPrototype([_e,_af,_d,_ad,_ac,_ci,_k],_cw),_cw.prototype.createContent=function(){this.data.ln&&this._bx.setAttribute("id",this.data.ln),this.data.cl&&this._bx.setAttribute("class",this.data.cl),this.data.singleShape&&!this._x._cr.chars&&(this.textContainer=_ct("text"))},_cw.prototype.buildNewText=function(){var t,e,r=this.textProperty.currentData;this._bt=_cv(r?r.l.length:0),r.fc?this._bx.setAttribute("fill",this.buildColor(r.fc)):this._bx.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this._bx.setAttribute("stroke",this.buildColor(r.sc)),this._bx.setAttribute("stroke-width",r.sw)),this._bx.setAttribute("font-size",r.s);var s=this._x._cr.getFontByName(r.f);if(s.fClass)this._bx.setAttribute("class",s.fClass);else{this._bx.setAttribute("font-family",s.fFamily);var i=r.fWeight,a=r.fStyle;this._bx.setAttribute("font-style",a),this._bx.setAttribute("font-weight",i)}var n=r.l||[],o=this._x._cr.chars;if(e=n.length){var h,l,p=this.mHelper,m="",f=this.data.singleShape,c=0,d=0,u=!0,y=r.tr/1e3*r.s;if(f&&!o){var g=this.textContainer,v="";switch(r.j){case 1:v="end";break;case 2:v="middle";break;case 2:v="start"}g.setAttribute("text-anchor",v),g.setAttribute("letter-spacing",y);var b=r.t.split(String.fromCharCode(13));e=b.length;var d=r.ps?r.ps[1]+r.ascent:0;for(t=0;t<e;t+=1)h=this.textSpans[t]||_ct("tspan"),h.textContent=b[t],h.setAttribute("x",0),h.setAttribute("y",d),h.style.display="inherit",g.appendChild(h),this.textSpans[t]=h,d+=r.lh;this._bx.appendChild(g)}else{var E,P,x=this.textSpans.length;for(t=0;t<e;t+=1)o&&f&&0!==t||(h=x>t?this.textSpans[t]:_ct(o?"path":"text"),x<=t&&(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=h,this._bx.appendChild(h)),h.style.display="inherit"),p.reset(),o?(p.scale(r.s/100,r.s/100),f&&(n[t].n&&(c=-y,d+=r.yOffset,d+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,p,n[t].line,c,d),c+=n[t].l||0,c+=y),P=this._x._cr.getCharData(r.t.charAt(t),s.fStyle,this._x._cr.getFontByName(r.f).fFamily),E=P&&P.data||{},l=E.shapes?E.shapes[0].it:[],f?m+=this.createPathShape(p,l):h.setAttribute("d",this.createPathShape(p,l))):(h.textContent=n[t].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));f&&h.setAttribute("d",m)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0}},_cw.prototype.sourceRectAtTime=function(t){if(this._az(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this._bx.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},_cw.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,r=this.textAnimator._bt,s=this.textProperty.currentData.l;e=s.length;var i,a;for(t=0;t<e;t+=1)s[t].n||(i=r[t],a=this.textSpans[t],i.mdf.m&&a.setAttribute("transform",i.m),i.mdf.o&&a.setAttribute("opacity",i.o),i.mdf.sw&&a.setAttribute("stroke-width",i.sw),i.mdf.sc&&a.setAttribute("stroke",i.sc),i.mdf.fc&&a.setAttribute("fill",i.fc))}},extendPrototype([_e,_af,_d,_f,_ad,_ac,_ci],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this._bx,this._co,0,[],!0)},SVGShapeElement.prototype.createStyleElement=function(t,e,r){var s,i=new SVGStyleData(t,e),a=i.pElem;if("st"===t.ty)s=new SVGStrokeStyleData(this,t,r,i);else if("fl"===t.ty)s=new SVGFillStyleData(this,t,r,i);else if("gf"===t.ty||"gs"===t.ty){var n="gf"===t.ty?_ck:_cj;s=new n(this,t,r,i),this._x.defs.appendChild(s.gf),s.maskId&&(this._x.defs.appendChild(s.ms),this._x.defs.appendChild(s.of),a.setAttribute("mask","url(#"+s.maskId+")"))}return"st"!==t.ty&&"gs"!==t.ty||(a.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),a.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),a.setAttribute("fill-opacity","0"),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&a.setAttribute("fill-rule","evenodd"),t.ln&&a.setAttribute("id",t.ln),t.cl&&a.setAttribute("class",t.cl),this.stylesList.push(i),s},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),e},SVGShapeElement.prototype._cp=function(t,e){return new SVGTransformData(_ag._bj(this,t,e),_ai._bo(this,t.o,0,.01,e))},SVGShapeElement.prototype.createShapeElement=function(t,e,r,s){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var a=_ah._bp(this,t,i,s),n=new SVGShapeData(e,r,a);return this.shapes.push(n.sh),this.addShapeToModifiers(n),n},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._ch=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this._bx,this._co,0,[],!0);var t,e=this._co.length;for(t=0;t<e;t+=1)this._co[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,s,i,a,n,o){var h,l,p,m,f,c,d=[].concat(n),u=t.length-1,y=[],g=[];for(h=u;h>=0;h-=1){if(c=this.searchProcessedElement(t[h]),
c?e[h]=r[c-1]:t[h]._render=o,"fl"==t[h].ty||"st"==t[h].ty||"gf"==t[h].ty||"gs"==t[h].ty)c?e[h].style.closed=!1:e[h]=this.createStyleElement(t[h],a,i),t[h]._render&&s.appendChild(e[h].style.pElem),y.push(e[h].style);else if("gr"==t[h].ty){if(c)for(p=e[h].it.length,l=0;l<p;l+=1)e[h].prevViewData[l]=e[h].it[l];else e[h]=this.createGroupElement(t[h]);this.searchShapes(t[h].it,e[h].it,e[h].prevViewData,e[h].gr,i,a+1,d,o),t[h]._render&&s.appendChild(e[h].gr)}else"tr"==t[h].ty?(c||(e[h]=this._cp(t[h],i)),m=e[h].transform,d.push(m)):"sh"==t[h].ty||"rc"==t[h].ty||"el"==t[h].ty||"sr"==t[h].ty?(c||(e[h]=this.createShapeElement(t[h],d,a,i)),this.setElementStyles(e[h])):"tm"==t[h].ty||"rd"==t[h].ty||"ms"==t[h].ty?(c?(f=e[h],f.closed=!1):(f=_as.getModifier(t[h].ty),f.init(this,t[h],i),e[h]=f,this.shapeModifiers.push(f)),g.push(f)):"rp"==t[h].ty&&(c?(f=e[h],f.closed=!0):(f=_as.getModifier(t[h].ty),e[h]=f,f.init(this,t,h,e,i),this.shapeModifiers.push(f),o=!1),g.push(f));this.addProcessedElement(t[h],h+1)}for(u=y.length,h=0;h<u;h+=1)y[h].closed=!0;for(u=g.length,h=0;h<u;h+=1)g[h].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(this.shapesData,this.itemsData,null),t=0;t<e;t+=1)(this.stylesList[t].mdf||this._ch)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(t,e,r){var s,i,a=t.length-1;for(s=0;s<=a;s+=1)i=t[s].ty,"tr"==i?((this._ch||e[s].transform.op.mdf&&r)&&r.setAttribute("opacity",e[s].transform.op.v),(this._ch||e[s].transform.mProps.mdf&&r)&&r.setAttribute("transform",e[s].transform.mProps.v.to2dCSS())):!t[s]._render||"sh"!=i&&"el"!=i&&"rc"!=i&&"sr"!=i?"fl"==i?this.renderFill(t[s],e[s]):"gf"==i?this.renderGradient(t[s],e[s]):"gs"==i?(this.renderGradient(t[s],e[s]),this.renderStroke(t[s],e[s])):"st"==i?this.renderStroke(t[s],e[s]):"gr"==i&&this.renderShape(t[s].it,e[s].it,e[s].gr):this.renderPath(e[s])},SVGShapeElement.prototype.renderPath=function(t){var e,r,s,i,a,n,o,h,l,p,m,f=t.styles.length,c=t.lvl;for(n=0;n<f;n+=1){if(i=t.sh.mdf||this._ch,t.styles[n].lvl<c)for(h=this.mHelper.reset(),p=c-t.styles[n].lvl,m=t.transformers.length-1;p>0;)i=t.transformers[m].mProps.mdf||i,l=t.transformers[m].mProps.v.props,h.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15]),p--,m--;else h=this.identityMatrix;if(o=t.sh.paths,r=o._length,i){for(s="",e=0;e<r;e+=1)a=o.shapes[e],a&&a._length&&(s+=this.buildShapeString(a,a._length,a.c,h));t.caches[n]=s}else s=t.caches[n];t.styles[n].d+=s,t.styles[n].mdf=i||t.styles[n].mdf}},SVGShapeElement.prototype.renderFill=function(t,e){var r=e.style;(e.c.mdf||this._ch)&&r.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||this._ch)&&r.pElem.setAttribute("fill-opacity",e.o.v)},SVGShapeElement.prototype.renderGradient=function(t,e){var r=e.gf,s=e.g._hasOpacity,i=e.s.v,a=e.e.v;if(e.o.mdf||this._ch){var n="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(n,e.o.v)}if(e.s.mdf||this._ch){var o=1===t.t?"x1":"cx",h="x1"===o?"y1":"cy";r.setAttribute(o,i[0]),r.setAttribute(h,i[1]),s&&!e.g._collapsable&&(e.of.setAttribute(o,i[0]),e.of.setAttribute(h,i[1]))}var l,p,m,f;if(e.g.cmdf||this._ch){l=e.cst;var c=e.g.c;for(m=l.length,p=0;p<m;p+=1)f=l[p],f.setAttribute("offset",c[4*p]+"%"),f.setAttribute("stop-color","rgb("+c[4*p+1]+","+c[4*p+2]+","+c[4*p+3]+")")}if(s&&(e.g.omdf||this._ch)){var d=e.g.o;for(l=e.g._collapsable?e.cst:e.ost,m=l.length,p=0;p<m;p+=1)f=l[p],e.g._collapsable||f.setAttribute("offset",d[2*p]+"%"),f.setAttribute("stop-opacity",d[2*p+1])}if(1===t.t)(e.e.mdf||this._ch)&&(r.setAttribute("x2",a[0]),r.setAttribute("y2",a[1]),s&&!e.g._collapsable&&(e.of.setAttribute("x2",a[0]),e.of.setAttribute("y2",a[1])));else{var u;if((e.s.mdf||e.e.mdf||this._ch)&&(u=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),r.setAttribute("r",u),s&&!e.g._collapsable&&e.of.setAttribute("r",u)),e.e.mdf||e.h.mdf||e.a.mdf||this._ch){u||(u=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)));var y=Math.atan2(a[1]-i[1],a[0]-i[0]),g=e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v,v=u*g,b=Math.cos(y+e.a.v)*v+i[0],E=Math.sin(y+e.a.v)*v+i[1];r.setAttribute("fx",b),r.setAttribute("fy",E),s&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",E))}}},SVGShapeElement.prototype.renderStroke=function(t,e){var r=e.style,s=e.d;s&&(s.mdf||this._ch)&&(r.pElem.setAttribute("stroke-dasharray",s.dashStr),r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c.mdf||this._ch)&&r.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||this._ch)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w.mdf||this._ch)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))},SVGShapeElement.prototype.destroy=function(){this.destroy_e(),this.shapeData=null,this.itemsData=null},_bb.prototype._ba=function(t){if(t||this._cl.mdf){var e=this._cl._cm[0].p.v,r=this._cl._cm[1].p.v,s=this._cl._cm[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+s+" 0")}},_bc.prototype._ba=function(t){if(t||this._cl.mdf){var e=this._cl._cm[2].p.v,r=this._cl._cm[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},_bd.prototype.initialize=function(){var t,e,r,s,i=this.elem._bx.children||this.elem._bx.childNodes;for(1===this._cl._cm[1].p.v?(s=this.elem.maskManager.masksProperties.length,r=0):(r=this._cl._cm[0].p.v-1,s=r+1),e=_ct("g"),e.setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1),r;r<s;r+=1)t=_ct("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this._cl._cm[10].p.v){var a=_ct("mask"),n="stms_"+randomString(10);a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem._x.defs.appendChild(a);var o=_ct("g");o.setAttribute("mask","url("+locationHref+"#"+n+")"),i[0]&&o.appendChild(i[0]),this.elem._bx.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this._cl._cm[10].p.v||2===this._cl._cm[10].p.v){if(2===this._cl._cm[10].p.v)for(var i=this.elem._bx.children||this.elem._bx.childNodes;i.length;)this.elem._bx.removeChild(i[0]);this.elem._bx.appendChild(e),this.elem._bx.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},_bd.prototype._ba=function(t){this.initialized||this.initialize();var e,r,s,i=this.paths.length;for(e=0;e<i;e+=1)if(r=this.elem.maskManager.viewData[this.paths[e].m],s=this.paths[e].p,(t||this._cl.mdf||r.prop.mdf)&&s.setAttribute("d",r.lastPath),t||this._cl._cm[9].p.mdf||this._cl._cm[4].p.mdf||this._cl._cm[7].p.mdf||this._cl._cm[8].p.mdf||r.prop.mdf){var a;if(0!==this._cl._cm[7].p.v||100!==this._cl._cm[8].p.v){var n=Math.min(this._cl._cm[7].p.v,this._cl._cm[8].p.v)/100,o=Math.max(this._cl._cm[7].p.v,this._cl._cm[8].p.v)/100,h=s.getTotalLength();a="0 0 0 "+h*n+" ";var l,p=h*(o-n),m=1+2*this._cl._cm[4].p.v*this._cl._cm[9].p.v/100,f=Math.floor(p/m);for(l=0;l<f;l+=1)a+="1 "+2*this._cl._cm[4].p.v*this._cl._cm[9].p.v/100+" ";a+="0 "+10*h+" 0 0"}else a="1 "+2*this._cl._cm[4].p.v*this._cl._cm[9].p.v/100;s.setAttribute("stroke-dasharray",a)}if((t||this._cl._cm[4].p.mdf)&&this.pathMasker.setAttribute("stroke-width",2*this._cl._cm[4].p.v),(t||this._cl._cm[6].p.mdf)&&this.pathMasker.setAttribute("opacity",this._cl._cm[6].p.v),(1===this._cl._cm[10].p.v||2===this._cl._cm[10].p.v)&&(t||this._cl._cm[3].p.mdf)){var c=this._cl._cm[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bm_floor(255*c[0])+","+bm_floor(255*c[1])+","+bm_floor(255*c[2])+")")}},_be.prototype._ba=function(t){if(t||this._cl.mdf){var e=this._cl._cm[0].p.v,r=this._cl._cm[1].p.v,s=this._cl._cm[2].p.v,i=s[0]+" "+r[0]+" "+e[0],a=s[1]+" "+r[1]+" "+e[1],n=s[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},_bf.prototype.createFeFunc=function(t,e){var r=_ct(t);return r.setAttribute("type","table"),e.appendChild(r),r},_bf.prototype.getTableValue=function(t,e,r,s,i){for(var a,n,o=0,h=256,l=Math.min(t,e),p=Math.max(t,e),m=Array.call(null,{length:h}),f=0,c=i-s,d=e-t;o<=256;)a=o/256,n=a<=l?d<0?i:s:a>=p?d<0?s:i:s+c*Math.pow((a-t)/d,1/r),m[f++]=n,o+=256/(h-1);return m.join(" ")},_bf.prototype._ba=function(t){if(t||this._cl.mdf){var e,r=this._cl._cm;this.feFuncRComposed&&(t||r[3].p.mdf||r[4].p.mdf||r[5].p.mdf||r[6].p.mdf||r[7].p.mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p.mdf||r[11].p.mdf||r[12].p.mdf||r[13].p.mdf||r[14].p.mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p.mdf||r[18].p.mdf||r[19].p.mdf||r[20].p.mdf||r[21].p.mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p.mdf||r[25].p.mdf||r[26].p.mdf||r[27].p.mdf||r[28].p.mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p.mdf||r[32].p.mdf||r[33].p.mdf||r[34].p.mdf||r[35].p.mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},_bg.prototype._ba=function(t){if(t||this._cl.mdf){if((t||this._cl._cm[4].p.mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this._cl._cm[4].p.v/4),t||this._cl._cm[0].p.mdf){var e=this._cl._cm[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this._cl._cm[1].p.mdf)&&this.feFlood.setAttribute("flood-opacity",this._cl._cm[1].p.v/255),t||this._cl._cm[2].p.mdf||this._cl._cm[3].p.mdf){var r=this._cl._cm[3].p.v,s=(this._cl._cm[2].p.v-90)*degToRads,i=r*Math.cos(s),a=r*Math.sin(s);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[],_svgMatteMaskCounter=0;_bh.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},_bh.prototype.replaceInParent=function(t,e){var r=t._bx.parentNode;if(r){for(var s=r.children,i=0,a=s.length;i<a&&s[i]!==t._bx;)i+=1;var n;i<=a-2&&(n=s[i+1]);var o=_ct("use");o.setAttribute("href","#"+e),n?r.insertBefore(o,n):r.appendChild(o)}},_bh.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r="matte_"+randomString(5)+"_"+_svgMatteMaskCounter++,s=_ct("mask");s.setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t._x.defs;i.appendChild(s);var a=_ct("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e._bx),i.appendChild(a),useElem=_ct("use"),useElem.setAttribute("href","#"+r),s.appendChild(useElem),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},_bh.prototype.initialize=function(){for(var t=this._cl._cm[0].p.v,e=0,r=this.elem.comp._br.length;e<r;)this.elem.comp._br[e].data.ind===t&&this.setElementAsMask(this.elem,this.elem.comp._br[e]),e+=1;this.initialized=!0},_bh.prototype._ba=function(){this.initialized||this.initialize()},_bi.prototype._ba=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e]._ba(t)};var animationManager=function(){function t(t){for(var e=0,r=t.target;e<S;)P[e].animation===r&&(P.splice(e,1),e-=1,S-=1,r.isPaused||s()),e+=1}function e(t,e){if(!t)return null;for(var r=0;r<S;){if(P[r].elem==t&&null!==P[r].elem)return P[r].animation;r+=1}var s=new _a;return i(s,t),s.setData(t,e),s}function r(){A+=1,b()}function s(){A-=1,0===A&&(C=!0)}function i(e,i){e.addEventListener("destroy",t),e.addEventListener("_active",r),e.addEventListener("_idle",s),P.push({elem:i,animation:e}),S+=1}function a(t){var e=new _a;return i(e,null),e.setParams(t),e}function n(t,e){var r;for(r=0;r<S;r+=1)P[r].animation.setSpeed(t,e)}function o(t,e){var r;for(r=0;r<S;r+=1)P[r].animation.setDirection(t,e)}function h(t){var e;for(e=0;e<S;e+=1)P[e].animation.play(t)}function l(t,e){x=Date.now();var r;for(r=0;r<S;r+=1)P[r].animation.moveFrame(t,e)}function p(t){var e,r=t-x;for(e=0;e<S;e+=1)P[e].animation.advanceTime(r);x=t,C?k=!0:window.requestAnimationFrame(p)}function m(t){x=t,window.requestAnimationFrame(p)}function f(t){var e;for(e=0;e<S;e+=1)P[e].animation.pause(t)}function c(t,e,r){var s;for(s=0;s<S;s+=1)P[s].animation.goToAndStop(t,e,r)}function d(t){var e;for(e=0;e<S;e+=1)P[e].animation.stop(t)}function u(t){var e;for(e=0;e<S;e+=1)P[e].animation.togglePause(t)}function y(t){var e;for(e=S-1;e>=0;e-=1)P[e].animation.destroy(t)}function g(t,r,s){var i,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=a.length;for(i=0;i<n;i+=1)s&&a[i].setAttribute("data-bm-type",s),e(a[i],t);if(r&&0===n){s||(s="svg");var o=document.getElementsByTagName("body")[0];o.innerHTML="";var h=_cu("div");h.style.width="100%",h.style.height="100%",h.setAttribute("data-bm-type",s),o.appendChild(h),e(h,t)}}function v(){var t;for(t=0;t<S;t+=1)P[t].animation.resize()}function b(){C&&(C=!1,k&&(window.requestAnimationFrame(m),k=!1))}var E={},P=[],x=0,S=0,C=!0,A=0,k=!0;return E.registerAnimation=e,E.loadAnimation=a,E.setSpeed=n,E.setDirection=o,E.play=h,E.moveFrame=l,E.pause=f,E.stop=d,E.togglePause=u,E.searchAnimations=g,E.resize=v,E.goToAndStop=c,E.destroy=y,E}(),_a=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this._dc=0,this.playCount=0,this.animationData={},this.layers=[],this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=randomString(10),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=subframeEnabled,this.segments=[],this.pendingSegment=!1,this._idle=!0,this.projectInterface=ProjectInterface()};extendPrototype([BaseEvent],_a),_a.prototype.setParams=function(t){var e=this;t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var r=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(r){case"canvas":this.renderer=new _aq(this,t.rendererSettings);break;case"svg":this.renderer=new _ao(this,t.rendererSettings);break;case"hybrid":case"html":default:this.renderer=new _ap(this,t.rendererSettings)}if(this.renderer.setProjectInterface(this.projectInterface),this.animType=r,""===t.loop||null===t.loop||(t.loop===!1?this.loop=!1:t.loop===!0?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,t.animationData)e.configAnimation(t.animationData);else if(t.path){"json"!=t.path.substr(-4)&&("/"!=t.path.substr(-1,1)&&(t.path+="/"),t.path+="data.json");var s=new XMLHttpRequest;t.path.lastIndexOf("\\")!=-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.assetsPath=t.assetsPath,this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),s.open("GET",t.path,!0),s.send(),s.onreadystatechange=function(){if(4==s.readyState)if(200==s.status)e.configAnimation(JSON.parse(s.responseText));else try{var t=JSON.parse(s.responseText);e.configAnimation(t)}catch(r){}}}},_a.prototype.setData=function(t,e){var r={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},s=t.attributes;r.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",r.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:"canvas";var i=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";""===i||("false"===i?r.loop=!1:"true"===i?r.loop=!0:r.loop=parseInt(i));var a=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"";var n=s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"";"false"===n&&(r.prerender=!1),this.setParams(r)},_a.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip),this.animationData.tf=this.totalFrames);var e,r,s=this.animationData.layers,i=s.length,a=t.layers,n=a.length;for(r=0;r<n;r+=1)for(e=0;e<i;){if(s[e].id==a[r].id){s[e]=a[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer._x._cr.addChars(t.chars),this.renderer._x._cr.addFonts(t.fonts,this.renderer._x.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer._x._cr),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer._ba(null),this.loadNextSegment()},_a.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.animationData.tf);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=new XMLHttpRequest,s=this,i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,r.open("GET",i,!0),r.send(),r.onreadystatechange=function(){if(4==r.readyState)if(200==r.status)s.includeLayers(JSON.parse(r.responseText));else try{var t=JSON.parse(r.responseText);s.includeLayers(t)}catch(e){}}},_a.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.animationData.tf),this.loadNextSegment()},_a.prototype.configAnimation=function(t){var e=this;this.renderer&&this.renderer.destroyed||(this.animationData=t,this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.animationData.tf=this.totalFrames,this.renderer.configAnimation(t),t.assets||(t.assets=[]),t.comps&&(t.assets=t.assets.concat(t.comps),t.comps=null),this.renderer.searchExtraCompositions(t.assets),this.layers=this.animationData.layers,this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this._ch=Math.round(this.animationData.ip),this.frameMult=this.animationData.fr/1e3,this.trigger("config_ready"),this.imagePreloader=new ImagePreloader,this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(t.assets,function(t){t||e.trigger("loaded_images")}),this.loadSegments(),this.updaFrameModifier(),this.renderer._x._cr?this.waitForFontsLoaded():(dataManager.completeData(this.animationData,this.renderer._x._cr),this.checkLoaded()))},_a.prototype.waitForFontsLoaded=function(){function t(){this.renderer._x._cr.loaded?(dataManager.completeData(this.animationData,this.renderer._x._cr),this.checkLoaded()):setTimeout(t.bind(this),20)}return function(){t.bind(this)()}}(),_a.prototype.addPendingElement=function(){this._dc+=1},_a.prototype.elementLoaded=function(){this._dc--,this.checkLoaded()},_a.prototype.checkLoaded=function(){0===this._dc&&(expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.isLoaded=!0,this.gotoFrame(),this.autoplay&&this.play())},_a.prototype.resize=function(){this.renderer.updateContainerSize()},_a.prototype.setSubframe=function(t){this.subframeEnabled=!!t},_a.prototype.gotoFrame=function(){this.currentFrame=this.subframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this._ba()},_a.prototype._ba=function(){this.isLoaded!==!1&&this.renderer._ba(this.currentFrame+this._ch)},_a.prototype.play=function(t){t&&this.name!=t||this.isPaused===!0&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},_a.prototype.pause=function(t){t&&this.name!=t||this.isPaused===!1&&(this.isPaused=!0,this.pendingSegment||(this._idle=!0,this.trigger("_idle")))},_a.prototype.togglePause=function(t){t&&this.name!=t||(this.isPaused===!0?this.play():this.pause())},_a.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.currentFrame=this.currentRawFrame=0,this.playCount=0,this.gotoFrame())},_a.prototype.goToAndStop=function(t,e,r){r&&this.name!=r||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},_a.prototype.goToAndPlay=function(t,e,r){this.goToAndStop(t,e,r),this.play()},_a.prototype.advanceTime=function(t){return this.pendingSegment?(this.pendingSegment=!1,this.adjustSegment(this.segments.shift()),void(this.isPaused&&this.play())):void(this.isPaused!==!0&&this.isLoaded!==!1&&this.setCurrentRawFrameValue(this.currentRawFrame+t*this.frameModifier))},_a.prototype.updateAnimation=function(t){this.setCurrentRawFrameValue(this.totalFrames*t)},_a.prototype.moveFrame=function(t,e){e&&this.name!=e||this.setCurrentRawFrameValue(this.currentRawFrame+t)},_a.prototype.adjustSegment=function(t){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this._ch=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this._ch=t[0],this.setCurrentRawFrameValue(.001)),this.trigger("segmentStart")},_a.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this._ch<t?r=t:this.currentRawFrame+this._ch>e&&(r=e-t)),this._ch=t,this.totalFrames=e-t,r!==-1&&this.goToAndStop(r,!0)},_a.prototype.playSegments=function(t,e){if("object"==typeof t[0]){var r,s=t.length;for(r=0;r<s;r+=1)this.segments.push(t[r])}else this.segments.push(t);e&&this.adjustSegment(this.segments.shift()),this.isPaused&&this.play()},_a.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.adjustSegment(this.segments.shift())},_a.prototype.checkSegments=function(){this.segments.length&&(this.pendingSegment=!0)},_a.prototype.remove=function(t){t&&this.name!=t||this.renderer.destroy()},_a.prototype.destroy=function(t){t&&this.name!=t||this.renderer&&this.renderer.destroyed||(this.renderer.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},_a.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t;var e=!1;this.currentRawFrame>=this.totalFrames?(this.checkSegments(),this.loop===!1?(this.currentRawFrame=this.totalFrames,e=!0):(this.trigger("loopComplete"),this.playCount+=1,this.loop!==!0&&this.playCount==this.loop||this.pendingSegment?(this.currentRawFrame=this.totalFrames,e=!0):this.currentRawFrame=this.currentRawFrame%this.totalFrames)):this.currentRawFrame<0&&(this.checkSegments(),this.playCount-=1,this.playCount<0&&(this.playCount=0),this.loop===!1||this.pendingSegment?(this.currentRawFrame=0,e=!0):(this.trigger("loopComplete"),this.currentRawFrame=(this.totalFrames+this.currentRawFrame)%this.totalFrames)),this.gotoFrame(),e&&(this.pause(),this.trigger("complete"))},_a.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},_a.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},_a.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},_a.prototype.getPath=function(){return this.path},_a.prototype.getAssetsPath=function(t){var e="";if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},_a.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t==this.assets[e].id)return this.assets[e];e+=1}},_a.prototype.hide=function(){this.renderer.hide()},_a.prototype.show=function(){this.renderer.show()},_a.prototype.getAssets=function(){return this.assets},_a.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this._cy(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult));break;case"loopComplete":this._cy(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this._cy(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this._cy(t,new BMSegmentStartEvent(t,this._ch,this.totalFrames));break;case"destroy":this._cy(t,new BMDestroyEvent(t,this));break;default:this._cy(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this._ch,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},extendPrototype([_l],_aq),_aq.prototype.createBase=function(t){return new _c(t,this._x,this)},_aq.prototype.createShape=function(t){return new _r(t,this._x,this)},_aq.prototype.createText=function(t){return new _t(t,this._x,this)},_aq.prototype.createImage=function(t){return new _p(t,this._x,this)},_aq.prototype.createComp=function(t){return new _m(t,this._x,this)},_aq.prototype.createSolid=function(t){return new _s(t,this._x,this)},_aq.prototype.createNull=_ao.prototype.createNull,_aq.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13]){if(!this.renderConfig.clearCanvas)return void this._da.transform(t[0],t[1],t[4],t[5],t[12],t[13]);this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this._da.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}},_aq.prototype.ctxOpacity=function(t){return this.renderConfig.clearCanvas?(this.contextData.cO*=t<0?0:t,void(this._da.globalAlpha=this.contextData.cO)):void(this._da.globalAlpha*=t<0?0:t)},_aq.prototype.reset=function(){return this.renderConfig.clearCanvas?void this.contextData.reset():void this._da.restore()},_aq.prototype.save=function(t){if(!this.renderConfig.clearCanvas)return void this._da.save();t&&this._da.save();var e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r,s=this.contextData.saved[this.contextData.cArrPos];for(r=0;r<16;r+=1)s[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1},_aq.prototype.restore=function(t){if(!this.renderConfig.clearCanvas)return void this._da.restore();t&&(this._da.restore(),this._x.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],s=this.contextData.cTr.props;for(e=0;e<16;e+=1)s[e]=r[e];this._da.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this._da.globalAlpha=r},_aq.prototype.configAnimation=function(t){
this._cq.wrapper?(this._cq.container=_cu("canvas"),this._cq.container.style.width="100%",this._cq.container.style.height="100%",this._cq.container.style.transformOrigin=this._cq.container.style.mozTransformOrigin=this._cq.container.style.webkitTransformOrigin=this._cq.container.style["-webkit-transform"]="0px 0px 0px",this._cq.wrapper.appendChild(this._cq.container),this._da=this._cq.container.getContext("2d"),this.renderConfig.className&&this._cq.container.setAttribute("class",this.renderConfig.className)):this._da=this.renderConfig.context,this.data=t,this._x._da=this._da,this._x.renderer=this,this._x.isDashed=!1,this._x.totalFrames=Math.floor(t.tf),this._x.compWidth=t.w,this._x.compHeight=t.h,this._x.frameRate=t.fr,this._x.frameId=0,this._x._de={w:t.w,h:t.h},this._x.progressiveLoad=this.renderConfig.progressiveLoad,this.layers=t.layers,this._cx={},this._cx.w=t.w,this._cx.h=t.h,this._x._cr=new FontManager,this._x._cr.addChars(t.chars),this._x._cr.addFonts(t.fonts,document.body),this._x.getAssetData=this._cq.getAssetData.bind(this._cq),this._x.getAssetsPath=this._cq.getAssetsPath.bind(this._cq),this._x.elementLoaded=this._cq.elementLoaded.bind(this._cq),this._x.addPendingElement=this._cq.addPendingElement.bind(this._cq),this._x._cx=this._cx,this._br=_cv(t.layers.length),this.updateContainerSize()},_aq.prototype.updateContainerSize=function(){this.reset();var t,e;this._cq.wrapper&&this._cq.container?(t=this._cq.wrapper.offsetWidth,e=this._cq.wrapper.offsetHeight,this._cq.container.setAttribute("width",t*this.renderConfig.dpr),this._cq.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this._da.canvas.width*this.renderConfig.dpr,e=this._da.canvas.height*this.renderConfig.dpr);var r,s;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var i=this.renderConfig.preserveAspectRatio.split(" "),a=i[1]||"meet",n=i[0]||"xMidYMid",o=n.substr(0,4),h=n.substr(4);r=t/e,s=this._cx.w/this._cx.h,s>r&&"meet"===a||s<r&&"slice"===a?(this._cx.sx=t/(this._cx.w/this.renderConfig.dpr),this._cx.sy=t/(this._cx.w/this.renderConfig.dpr)):(this._cx.sx=e/(this._cx.h/this.renderConfig.dpr),this._cx.sy=e/(this._cx.h/this.renderConfig.dpr)),"xMid"===o&&(s<r&&"meet"===a||s>r&&"slice"===a)?this._cx.tx=(t-this._cx.w*(e/this._cx.h))/2*this.renderConfig.dpr:"xMax"===o&&(s<r&&"meet"===a||s>r&&"slice"===a)?this._cx.tx=(t-this._cx.w*(e/this._cx.h))*this.renderConfig.dpr:this._cx.tx=0,"YMid"===h&&(s>r&&"meet"===a||s<r&&"slice"===a)?this._cx.ty=(e-this._cx.h*(t/this._cx.w))/2*this.renderConfig.dpr:"YMax"===h&&(s>r&&"meet"===a||s<r&&"slice"===a)?this._cx.ty=(e-this._cx.h*(t/this._cx.w))*this.renderConfig.dpr:this._cx.ty=0}else"none"==this.renderConfig.preserveAspectRatio?(this._cx.sx=t/(this._cx.w/this.renderConfig.dpr),this._cx.sy=e/(this._cx.h/this.renderConfig.dpr),this._cx.tx=0,this._cx.ty=0):(this._cx.sx=this.renderConfig.dpr,this._cx.sy=this.renderConfig.dpr,this._cx.tx=0,this._cx.ty=0);this._cx.props=[this._cx.sx,0,0,0,0,this._cx.sy,0,0,0,0,1,0,this._cx.tx,this._cx.ty,0,1],this.ctxTransform(this._cx.props)},_aq.prototype.destroy=function(){this.renderConfig.clearCanvas&&(this._cq.wrapper.innerHTML="");var t,e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1)this._br[t]&&this._br[t].destroy();this._br.length=0,this._x._da=null,this._cq.container=null,this.destroyed=!0},_aq.prototype._ba=function(t){if(!(this.renderedFrame==t&&this.renderConfig.clearCanvas===!0||this.destroyed||null===t)){this.renderedFrame=t,this._x.frameNum=t-this._cq._ch,this._x.frameId+=1,this._x.projectInterface.currentFrame=t,this.renderConfig.clearCanvas===!0?this._da.clearRect(this._cx.tx,this._cx.ty,this._cx.w*this._cx.sx,this._cx.h*this._cx.sy):this.save(),this._da.beginPath(),this._da.rect(0,0,this._cx.w,this._cx.h),this._da.closePath(),this._da.clip();var e,r=this.layers.length;for(this._db||this.checkLayers(t),e=0;e<r;e++)(this._db||this._br[e])&&this._br[e]._az(t-this.layers[e].st);for(e=r-1;e>=0;e-=1)(this._db||this._br[e])&&this._br[e]._ba();this.renderConfig.clearCanvas!==!0&&this.restore()}},_aq.prototype.buildItem=function(t){var e=this._br;if(!e[t]&&99!=this.layers[t].ty){var r=this.createItem(this.layers[t],this,this._x);e[t]=r,r.initExpressions()}},_aq.prototype.checkPendingElements=function(){for(;this._dc.length;){var t=this._dc.pop();t.checkParenting()}},_aq.prototype.hide=function(){this._cq.container.style.display="none"},_aq.prototype.show=function(){this._cq.container.style.display="block"},_aq.prototype.searchExtraCompositions=function(t){var e,r=t.length;_ct("g");for(e=0;e<r;e+=1)if(t[e].xt){var s=this.createComp(t[e],this._x.comp,this._x);s.initExpressions(),this._x.projectInterface.registerComposition(s)}},extendPrototype([_l],_ap),_ap.prototype.buildItem=_ao.prototype.buildItem,_ap.prototype.checkPendingElements=function(){for(;this._dc.length;){var t=this._dc.pop();t.checkParenting()}},_ap.prototype.appendElementInPos=function(t,e){var r=t.get_e();if(r){var s=this.layers[e];if(s.ddd&&this.supports3d)this.addTo3dContainer(r,e);else{for(var i,a,n=0;n<e;)this._br[n]&&this._br[n]!==!0&&this._br[n].get_e&&(a=this._br[n],i=this.layers[n].ddd?this.getThreeDContainerByPos(n):a.get_e()),n+=1;i?s.ddd&&this.supports3d||this._bx.insertBefore(r,i):s.ddd&&this.supports3d||this._bx.appendChild(r)}}},_ap.prototype.createBase=function(t){return new _d(t,this._x,this)},_ap.prototype.createShape=function(t){return this.supports3d?new _z(t,this._x,this):new SVGShapeElement(t,this._x,this)},_ap.prototype.createText=function(t){return this.supports3d?new _ab(t,this._x,this):new _cw(t,this._x,this)},_ap.prototype.createCamera=function(t){return this.camera=new _v(t,this._x,this),this.camera},_ap.prototype.createImage=function(t){return this.supports3d?new _y(t,this._x,this):new _h(t,this._x,this)},_ap.prototype.createComp=function(t){return this.supports3d?new _w(t,this._x,this):new _g(t,this._x,this)},_ap.prototype.createSolid=function(t){return this.supports3d?new _aa(t,this._x,this):new _j(t,this._x,this)},_ap.prototype.createNull=_ao.prototype.createNull,_ap.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}},_ap.prototype.createThreeDContainer=function(t){var e=_cu("div");styleDiv(e),e.style.width=this._x._de.w+"px",e.style.height=this._x._de.h+"px",e.style.transformOrigin=e.style.mozTransformOrigin=e.style.webkitTransformOrigin="50% 50%";var r=_cu("div");styleDiv(r),r.style.transform=r.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",e.appendChild(r),this.resizerElem.appendChild(e);var s={container:r,perspectiveElem:e,startPos:t,endPos:t};return this.threeDElements.push(s),s},_ap.prototype.build3dContainers=function(){var t,e,r=this.layers.length;for(t=0;t<r;t+=1)this.layers[t].ddd?(e||(e=this.createThreeDContainer(t)),e.endPos=Math.max(e.endPos,t)):e=null},_ap.prototype.addTo3dContainer=function(t,e){for(var r=0,s=this.threeDElements.length;r<s;){if(e<=this.threeDElements[r].endPos){for(var i,a=this.threeDElements[r].startPos;a<e;)this._br[a]&&this._br[a].get_e&&(i=this._br[a].get_e()),a+=1;i?this.threeDElements[r].container.insertBefore(t,i):this.threeDElements[r].container.appendChild(t);break}r+=1}},_ap.prototype.configAnimation=function(t){var e=_cu("div"),r=this._cq.wrapper;e.style.width=t.w+"px",e.style.height=t.h+"px",this.resizerElem=e,styleDiv(e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",this.renderConfig.className&&r.setAttribute("class",this.renderConfig.className),r.appendChild(e),e.style.overflow="hidden";var s=_ct("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var i=_ct("defs");s.appendChild(i),this._x.defs=i,this.data=t,this._x.getAssetData=this._cq.getAssetData.bind(this._cq),this._x.getAssetsPath=this._cq.getAssetsPath.bind(this._cq),this._x.elementLoaded=this._cq.elementLoaded.bind(this._cq),this._x.frameId=0,this._x._de={w:t.w,h:t.h},this._x.frameRate=t.fr,this.layers=t.layers,this._x._cr=new FontManager,this._x._cr.addChars(t.chars),this._x._cr.addFonts(t.fonts,s),this._bx=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},_ap.prototype.destroy=function(){this._cq.wrapper.innerHTML="",this._cq.container=null,this._x.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this._br[t].destroy();this._br.length=0,this.destroyed=!0,this._cq=null},_ap.prototype.updateContainerSize=function(){var t,e,r,s,i=this._cq.wrapper.offsetWidth,a=this._cq.wrapper.offsetHeight,n=i/a,o=this._x._de.w/this._x._de.h;o>n?(t=i/this._x._de.w,e=i/this._x._de.w,r=0,s=(a-this._x._de.h*(i/this._x._de.w))/2):(t=a/this._x._de.h,e=a/this._x._de.h,r=(i-this._x._de.w*(a/this._x._de.h))/2,s=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+s+",0,1)"},_ap.prototype._ba=_ao.prototype._ba,_ap.prototype.hide=function(){this.resizerElem.style.display="none"},_ap.prototype.show=function(){this.resizerElem.style.display="block"},_ap.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this._x._de.w,r=this._x._de.h,s=this.threeDElements.length;for(t=0;t<s;t+=1)this.threeDElements[t].perspectiveElem.style.perspective=this.threeDElements[t].perspectiveElem.style.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px"}},_ap.prototype.searchExtraCompositions=function(t){var e,r=t.length,s=_cu("div");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],s,this._x.comp,null);i.initExpressions(),this._x.projectInterface.registerComposition(i)}},_n.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=_cs("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=_cs("float32",16);this._length=t},_n.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},_c.prototype.createElements=function(){this.checkParenting()},_c.prototype.initRendererElement=function(){},_c.prototype.createContainerElements=function(){this._da=this._x._da,this.effectsManager=new _o(this)},_c.prototype.createContent=function(){},_c.prototype.setBlendMode=function(){var t=this._x;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=this.getBlendMode();t._da.globalCompositeOperation=e}},_c.prototype.addMasks=function(){this.maskManager=new _q(this.data,this,this._x)},_c.prototype.hideElement=function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},_c.prototype.showElement=function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._ch=!0,this.maskManager._ch=!0)},_c.prototype._ba=function(){this.hidden||(this.renderTransform(),this.renderRenderable(),this.setBlendMode(),this._x.renderer.save(),this._x.renderer.ctxTransform(this.finalTransform.mat.props),this._x.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this._x.renderer.restore(),this.maskManager.hasMasks&&this._x.renderer.restore(!0),this._ch&&(this._ch=!1))},_c.prototype.hide=_c.prototype.hideElement,_c.prototype.show=_c.prototype.showElement,_c.prototype.destroy=function(){this._da=null,this.data=null,this._x=null,this.maskManager.destroy()},_c.prototype.mHelper=new Matrix,extendPrototype([_e,_af,_c,_ad,_ac,_ae],_p),_p.prototype._cz=SVGShapeElement.prototype._cz,_p.prototype._az=_h.prototype._az,_p.prototype.imageLoaded=function(){if(this._x.elementLoaded(),this.assetData.w!==this.img.width||this.assetData.h!==this.img.height){var t=_cu("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,s=t.getContext("2d"),i=this.img.width,a=this.img.height,n=i/a,o=this.assetData.w/this.assetData.h;n>o?(r=a,e=r*o):(e=i,r=e/o),s.drawImage(this.img,(i-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},_p.prototype.imageFailed=function(){this.failed=!0,this._x.elementLoaded()},_p.prototype.createContent=function(){var t=this.img;t.addEventListener("load",this.imageLoaded.bind(this),!1),t.addEventListener("error",this.imageFailed.bind(this),!1);var e=this._x.getAssetsPath(this.assetData);t.src=e},_p.prototype.renderInnerContent=function(t){this.failed||this._da.drawImage(this.img,0,0)},_p.prototype.destroy=function(){this.img=null,this.destroy_e()},extendPrototype([_aq,_g,_c],_m),_m.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)(this._db||this._br[t])&&this._br[t]._ba()},_m.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this._br[t].destroy();this.layers=null,this._br=null},_q.prototype._az=function(t){var e,r=this._co.length;for(e=0;e<r;e+=1)this._co[e].getValue(t),this._co[e].mdf&&(this.element._x.mdf=!0)},_q.prototype._ba=function(t){if(this.hasMasks){var e,r,s,i,a,n=this.element._da,o=this.masksProperties.length;for(n.beginPath(),e=0;e<o;e++)if("n"!==this.masksProperties[e].mode){this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element._x.compWidth,0),n.lineTo(this.element._x.compWidth,this.element._x.compHeight),n.lineTo(0,this.element._x.compHeight),n.lineTo(0,0)),a=this.viewData[e].v,r=t?t._cn(a.v[0][0],a.v[0][1],0):a.v[0],n.moveTo(r[0],r[1]);var h,l=a._length;for(h=1;h<l;h++)r=t?t._cn(a.o[h-1][0],a.o[h-1][1],0):a.o[h-1],s=t?t._cn(a.i[h][0],a.i[h][1],0):a.i[h],i=t?t._cn(a.v[h][0],a.v[h][1],0):a.v[h],n.bezierCurveTo(r[0],r[1],s[0],s[1],i[0],i[1]);r=t?t._cn(a.o[h-1][0],a.o[h-1][1],0):a.o[h-1],s=t?t._cn(a.i[0][0],a.i[0][1],0):a.i[0],i=t?t._cn(a.v[0][0],a.v[0][1],0):a.v[0],n.bezierCurveTo(r[0],r[1],s[0],s[1],i[0],i[1])}this.element._x.renderer.save(!0),n.clip()}},_q.prototype.getMaskProperty=_ay.prototype.getMaskProperty,_q.prototype.destroy=function(){this.element=null},extendPrototype([_e,_af,_c,_f,_ad,_ac,_ae],_r),_r.prototype._cz=_ci.prototype._cz,_r.prototype.transformHelper={opacity:1,mat:new Matrix,matMdf:!1,opMdf:!1},_r.prototype.dashResetter=[],_r.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this._co,!0)},_r.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,_br:[]},s={};if("fl"!=t.ty&&"st"!=t.ty||(s.c=_ai._bo(this,t.c,1,255,e),s.c.k||(r.co="rgb("+bm_floor(s.c.v[0])+","+bm_floor(s.c.v[1])+","+bm_floor(s.c.v[2])+")")),s.o=_ai._bo(this,t.o,0,.01,e),"st"==t.ty){if(r.lc=this.lcEnum[t.lc]||"round",r.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(r.ml=t.ml),s.w=_ai._bo(this,t.w,0,null,e),s.w.k||(r.wi=s.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",e);s.d=i,s.d.k||(r.da=s.d.dashArray,r["do"]=s.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),s.style=r,s},_r.prototype.createGroupElement=function(t){var e={it:[],prevViewData:[]};return e},_r.prototype._cp=function(t,e){var r={transform:{mat:new Matrix,opacity:1,matMdf:!1,opMdf:!1,op:_ai._bo(this,t.o,0,.01,e),mProps:_ag._bj(this,t,e)},_br:[]};return r},_r.prototype.createShapeElement=function(t,e){var r={nodes:[],trNodes:[],tr:[0,0,0,0,0,0]},s=4;"rc"==t.ty?s=5:"el"==t.ty?s=6:"sr"==t.ty&&(s=7),r.sh=_ah._bp(this,t,s,e),this.shapes.push(r.sh),this.addShapeToModifiers(r);var i,a=this.stylesList.length,n=!1,o=!1;for(i=0;i<a;i+=1)this.stylesList[i].closed||(this.stylesList[i]._br.push(r),"st"===this.stylesList[i].type?n=!0:o=!0);return r.st=n,r.fl=o,r},_r.prototype.reloadShapes=function(){this._ch=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this._co,!0);var t,e=this._co.length;for(t=0;t<e;t+=1)this._co[t].getValue();this.renderModifiers()},_r.prototype.searchShapes=function(t,e,r,s,i){var a,n,o,h,l=t.length-1,p=[],m=[];for(a=l;a>=0;a-=1){if(h=this.searchProcessedElement(t[a]),h?e[a]=r[h-1]:t[a]._render=i,"fl"==t[a].ty||"st"==t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],s),p.push(e[a].style);else if("gr"==t[a].ty){if(h)for(o=e[a].it.length,n=0;n<o;n+=1)e[a].prevViewData[n]=e[a].it[n];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,s,i)}else if("tr"==t[a].ty)h||(e[a]=this._cp(t[a],s));else if("sh"==t[a].ty||"rc"==t[a].ty||"el"==t[a].ty||"sr"==t[a].ty)h||(e[a]=this.createShapeElement(t[a],s));else if("tm"==t[a].ty||"rd"==t[a].ty){if(h)f=e[a],f.closed=!1;else{var f=_as.getModifier(t[a].ty);f.init(this,t[a],s),e[a]=f,this.shapeModifiers.push(f)}m.push(f)}else"rp"==t[a].ty&&(h?(f=e[a],f.closed=!0):(f=_as.getModifier(t[a].ty),e[a]=f,f.init(this,t,a,e,s),this.shapeModifiers.push(f),i=!1),m.push(f));this.addProcessedElement(t[a],a+1)}for(l=p.length,a=0;a<l;a+=1)p[a].closed=!0;for(l=m.length,a=0;a<l;a+=1)m[a].closed=!0},_r.prototype.renderInnerContent=function(){this.transformHelper.mat.reset(),this.transformHelper.opacity=this.finalTransform.mProp.o.v,this.transformHelper.matMdf=!1,this.transformHelper.opMdf=this.finalTransform.opMdf,this.renderModifiers(),this.renderShape(this.transformHelper,null,null,!0)},_r.prototype.renderShape=function(t,e,r,s){var i,a;if(!e)for(e=this.shapesData,a=this.stylesList.length,i=0;i<a;i+=1)this.stylesList[i].d="",this.stylesList[i].mdf=!1;r||(r=this.itemsData),a=e.length-1;var n,o;for(n=t,i=a;i>=0;i-=1)if("tr"==e[i].ty){n=r[i].transform;var h=r[i].transform.mProps.v.props;if(n.matMdf=n.mProps.mdf,n.opMdf=n.op.mdf,o=n.mat,o.cloneFromProps(h),t){var l=t.mat.props;n.opacity=t.opacity,n.opacity*=r[i].transform.op.v,n.matMdf=!!t.matMdf||n.matMdf,n.opMdf=!!t.opMdf||n.opMdf,o.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15])}else n.opacity=n.op.o}else"sh"==e[i].ty||"el"==e[i].ty||"rc"==e[i].ty||"sr"==e[i].ty?this.renderPath(e[i],r[i],n):"fl"==e[i].ty?this.renderFill(e[i],r[i],n):"st"==e[i].ty?this.renderStroke(e[i],r[i],n):"gr"==e[i].ty?this.renderShape(n,e[i].it,r[i].it):"tm"==e[i].ty;if(s){a=this.stylesList.length;var p,m,f,c,d,u,y,g=this._x.renderer,v=this._x._da;for(i=0;i<a;i+=1)if(y=this.stylesList[i].type,("st"!==y||0!==this.stylesList[i].wi)&&this.stylesList[i].data._render){for(g.save(),d=this.stylesList[i]._br,"st"===y?(v.strokeStyle=this.stylesList[i].co,v.lineWidth=this.stylesList[i].wi,v.lineCap=this.stylesList[i].lc,v.lineJoin=this.stylesList[i].lj,v.miterLimit=this.stylesList[i].ml||0):v.fillStyle=this.stylesList[i].co,g.ctxOpacity(this.stylesList[i].coOp),"st"!==y&&v.beginPath(),m=d.length,p=0;p<m;p+=1){for("st"===y&&(v.beginPath(),this.stylesList[i].da?(v.setLineDash(this.stylesList[i].da),v.lineDashOffset=this.stylesList[i]["do"],this._x.isDashed=!0):this._x.isDashed&&(v.setLineDash(this.dashResetter),this._x.isDashed=!1)),u=d[p].trNodes,c=u.length,f=0;f<c;f+=1)"m"==u[f].t?v.moveTo(u[f].p[0],u[f].p[1]):"c"==u[f].t?v.bezierCurveTo(u[f].p1[0],u[f].p1[1],u[f].p2[0],u[f].p2[1],u[f].p3[0],u[f].p3[1]):v.closePath();"st"===y&&v.stroke()}"st"!==y&&v.fill(this.stylesList[i].r),g.restore()}this._ch&&(this._ch=!1)}},_r.prototype.renderPath=function(t,e,r){var s,i,a,n,o=r.matMdf||e.sh.mdf||this._ch;if(o){var h=e.sh.paths,l=r.mat;n=t._render===!1?0:h._length;var p=e.trNodes;for(p.length=0,a=0;a<n;a+=1){var m=h.shapes[a];if(m&&m.v){for(s=m._length,i=1;i<s;i+=1)1==i&&p.push({t:"m",p:l._cn(m.v[0][0],m.v[0][1],0)}),p.push({t:"c",p1:l._cn(m.o[i-1][0],m.o[i-1][1],0),p2:l._cn(m.i[i][0],m.i[i][1],0),p3:l._cn(m.v[i][0],m.v[i][1],0)});1==s&&p.push({t:"m",p:l._cn(m.v[0][0],m.v[0][1],0)}),m.c&&s&&(p.push({t:"c",p1:l._cn(m.o[i-1][0],m.o[i-1][1],0),p2:l._cn(m.i[0][0],m.i[0][1],0),p3:l._cn(m.v[0][0],m.v[0][1],0)}),p.push({t:"z"})),e.lStr=p}}if(e.st)for(i=0;i<16;i+=1)e.tr[i]=r.mat.props[i];e.trNodes=p}},_r.prototype.renderFill=function(t,e,r){var s=e.style;(e.c.mdf||this._ch)&&(s.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||r.opMdf||this._ch)&&(s.coOp=e.o.v*r.opacity)},_r.prototype.renderStroke=function(t,e,r){var s=e.style,i=e.d;i&&(i.mdf||this._ch)&&(s.da=i.dashArray,s["do"]=i.dashoffset[0]),(e.c.mdf||this._ch)&&(s.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o.mdf||r.opMdf||this._ch)&&(s.coOp=e.o.v*r.opacity),(e.w.mdf||this._ch)&&(s.wi=e.w.v)},_r.prototype.destroy=function(){this.shapesData=null,this._x=null,this._da=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([_e,_af,_c,_ad,_ac,_ae],_s),_s.prototype._cz=SVGShapeElement.prototype._cz,_s.prototype._az=_h.prototype._az,_s.prototype.renderInnerContent=function(){var t=this._da;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([_e,_af,_c,_ad,_ac,_ae,_k],_t),_t.prototype.tHelper=_cu("canvas").getContext("2d"),_t.prototype.buildNewText=function(){var t=this.textProperty.currentData;this._bt=_cv(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var s,i,a=this._x._cr.getFontByName(t.f),n=t.l,o=this.mHelper;this.stroke=r,this.values.fValue=t.s+"px "+this._x._cr.getFontByName(t.f).fFamily,i=t.t.length;var h,l,p,m,f,c,d,u,y,g,v=this.data.singleShape,b=t.tr/1e3*t.s,E=0,P=0,x=!0,S=0;for(s=0;s<i;s+=1){for(h=this._x._cr.getCharData(t.t.charAt(s),a.fStyle,this._x._cr.getFontByName(t.f).fFamily),l=h&&h.data||{},o.reset(),v&&n[s].n&&(E=-b,P+=t.yOffset,P+=x?1:0,x=!1),f=l.shapes?l.shapes[0].it:[],d=f.length,o.scale(t.s/100,t.s/100),v&&this.applyTextPropertiesToMatrix(t,o,n[s].line,E,P),y=_cv(d),c=0;c<d;c+=1){for(m=f[c].ks.k.i.length,u=f[c].ks.k,g=[],p=1;p<m;p+=1)1==p&&g.push(o.applyToX(u.v[0][0],u.v[0][1],0),o.applyToY(u.v[0][0],u.v[0][1],0)),g.push(o.applyToX(u.o[p-1][0],u.o[p-1][1],0),o.applyToY(u.o[p-1][0],u.o[p-1][1],0),o.applyToX(u.i[p][0],u.i[p][1],0),o.applyToY(u.i[p][0],u.i[p][1],0),o.applyToX(u.v[p][0],u.v[p][1],0),o.applyToY(u.v[p][0],u.v[p][1],0));g.push(o.applyToX(u.o[p-1][0],u.o[p-1][1],0),o.applyToY(u.o[p-1][0],u.o[p-1][1],0),o.applyToX(u.i[0][0],u.i[0][1],0),o.applyToY(u.i[0][0],u.i[0][1],0),o.applyToX(u.v[0][0],u.v[0][1],0),o.applyToY(u.v[0][0],u.v[0][1],0)),y[c]=g}v&&(E+=n[s].l,E+=b),this.textSpans[S]?this.textSpans[S].elem=y:this.textSpans[S]={elem:y},S+=1}},_t.prototype.renderInnerContent=function(){var t=this._da;this.finalTransform.mat.props;t.font=this.values.fValue,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var e,r,s,i,a,n,o=this.textAnimator._bt,h=this.textProperty.currentData.l;r=h.length;var l,p,m,f=null,c=null,d=null;for(e=0;e<r;e+=1)if(!h[e].n){if(l=o[e],l&&(this._x.renderer.save(),this._x.renderer.ctxTransform(l.p),this._x.renderer.ctxOpacity(l.o)),this.fill){for(l&&l.fc?f!==l.fc&&(f=l.fc,t.fillStyle=l.fc):f!==this.values.fill&&(f=this.values.fill,t.fillStyle=this.values.fill),p=this.textSpans[e].elem,i=p.length,this._x._da.beginPath(),s=0;s<i;s+=1)for(m=p[s],n=m.length,this._x._da.moveTo(m[0],m[1]),a=2;a<n;a+=6)this._x._da.bezierCurveTo(m[a],m[a+1],m[a+2],m[a+3],m[a+4],m[a+5]);this._x._da.closePath(),this._x._da.fill()}if(this.stroke){for(l&&l.sw?d!==l.sw&&(d=l.sw,t.lineWidth=l.sw):d!==this.values.sWidth&&(d=this.values.sWidth,t.lineWidth=this.values.sWidth),l&&l.sc?c!==l.sc&&(c=l.sc,t.strokeStyle=l.sc):c!==this.values.stroke&&(c=this.values.stroke,t.strokeStyle=this.values.stroke),p=this.textSpans[e].elem,i=p.length,this._x._da.beginPath(),s=0;s<i;s+=1)for(m=p[s],n=m.length,this._x._da.moveTo(m[0],m[1]),a=2;a<n;a+=6)this._x._da.bezierCurveTo(m[a],m[a+1],m[a+2],m[a+3],m[a+4],m[a+5]);this._x._da.closePath(),this._x._da.stroke()}l&&this._x.renderer.restore()}},_o.prototype._ba=function(){},_b.prototype.checkBlendMode=function(){},_b.prototype.get_e=_d.prototype.get_e,_b.prototype.initRendererElement=function(){this._by=_cu("div"),this.data.hasMask?(this._cf=_ct("svg"),this._bx=_ct("g"),this._ca=this._bx,this._cf.appendChild(this._bx),this._by.appendChild(this._cf)):this._bx=this._by,styleDiv(this._by)},_b.prototype.createContainerElements=function(){this.effectsManager=new _o(this),this._bz=this._by,this._ca=this._bx,this.data.ln&&this._bx.setAttribute("id",this.data.ln),0!==this.data.bm&&this.setBlendMode(),this.checkParenting()},_b.prototype.renderElement=function(){this.finalTransform.matMdf&&(this._bz.style.transform=this._bz.style.webkitTransform=this.finalTransform.mat.toCSS()),this.finalTransform.opMdf&&(this._bz.style.opacity=this.finalTransform.mProp.o.v)},_b.prototype._ba=function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._ch&&(this._ch=!1))},_b.prototype.destroy=function(){this._bx=null,this._bz=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},_b.prototype.getDomElement=function(){return this._bx},_b.prototype.addMasks=function(){this.maskManager=new _ay(this.data,this,this._x)},_b.prototype.setMatte=function(){},_b.prototype.buildElementParenting=_ap.prototype.buildElementParenting,extendPrototype([_e,_af,_b,_ad,_ac,_ci],_aa),_aa.prototype.createContent=function(){var t;this.data.hasMask?(t=_ct("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this._cf.setAttribute("width",this.data.sw),this._cf.setAttribute("height",this.data.sh)):(t=_cu("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this._bx.appendChild(t)},extendPrototype([_ap,_g,_b],_w),_w.prototype.createContainerElements=function(){this.data.hasMask?(this._bz=this._bx,this._cf.setAttribute("width",this.data.w),this._cf.setAttribute("height",this.data.h)):this._bz=this._bx,this.effectsManager=new _o(this),this.checkParenting()},extendPrototype([_e,_af,_aa,SVGShapeElement,_b,_ad,_ac,_ae],_z),_z.prototype._renderShapeFrame=_z.prototype.renderInnerContent,_z.prototype.createContent=function(){var t;if(this.data.hasMask)this._bx.appendChild(this.shapesContainer),
t=this._cf;else{t=_ct("svg");var e=this.comp.data?this.comp.data:this._x._de;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this._bx.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,this._co,0,[],!0),this.shapeCont=t},_z.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&this._ch){var t=this.shapeCont.getBBox(),e=!1;this._cg.w!==t.width&&(this._cg.w=t.width,this.shapeCont.setAttribute("width",t.width),e=!0),this._cg.h!==t.height&&(this._cg.h=t.height,this.shapeCont.setAttribute("height",t.height),e=!0),(e||this._cg.x!==t.x||this._cg.y!==t.y)&&(this._cg.w=t.width,this._cg.h=t.height,this._cg.x=t.x,this._cg.y=t.y,this.shapeCont.setAttribute("viewBox",this._cg.x+" "+this._cg.y+" "+this._cg.w+" "+this._cg.h),this.shapeCont.style.transform=this.shapeCont.style.webkitTransform="translate("+this._cg.x+"px,"+this._cg.y+"px)")}},extendPrototype([_e,_af,_b,_ad,_ac,_ci,_k],_ab),_ab.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this._cf.setAttribute("width",this.compW),this._cf.setAttribute("height",this.compH);var t=_ct("g");this._ca.appendChild(t),this._cc=t}else this.renderType="html",this._cc=this._bx;this.checkParenting()},_ab.prototype.buildNewText=function(){var t=this.textProperty.currentData;this._bt=_cv(this.textProperty.currentData.l?this.textProperty.currentData.l.length:0);var e=this._cc.style;e.color=e.fill=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)",t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r=this._x._cr.getFontByName(t.f);if(!this._x._cr.chars)if(e.fontSize=t.s+"px",e.lineHeight=t.s+"px",r.fClass)this._cc.className=r.fClass;else{e.fontFamily=r.fFamily;var s=t.fWeight,i=t.fStyle;e.fontStyle=i,e.fontWeight=s}var a,n,o=t.l;n=o.length;var h,l,p,m,f=this.mHelper,c="",d=0;for(a=0;a<n;a+=1){if(this._x._cr.chars?(this.textPaths[d]?h=this.textPaths[d]:(h=_ct("path"),h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?(l=this.textSpans[d],p=l.children[0]):(l=_cu("div"),p=_ct("svg"),p.appendChild(h),styleDiv(l)))):this.isMasked?h=this.textPaths[d]?this.textPaths[d]:_ct("text"):this.textSpans[d]?(l=this.textSpans[d],h=this.textPaths[d]):(l=_cu("span"),styleDiv(l),h=_cu("span"),styleDiv(h),l.appendChild(h)),this._x._cr.chars){var u,y=this._x._cr.getCharData(t.t.charAt(a),r.fStyle,this._x._cr.getFontByName(t.f).fFamily);if(u=y?y.data:null,f.reset(),u&&u.shapes&&(m=u.shapes[0].it,f.scale(t.s/100,t.s/100),c=this.createPathShape(f,m),h.setAttribute("d",c)),this.isMasked)this._cc.appendChild(h);else if(this._cc.appendChild(l),u&&u.shapes){var g=p.getBBox();p.setAttribute("width",g.width+2),p.setAttribute("height",g.height+2),p.setAttribute("viewBox",g.x-1+" "+(g.y-1)+" "+(g.width+2)+" "+(g.height+2)),p.style.transform=p.style.webkitTransform="translate("+(g.x-1)+"px,"+(g.y-1)+"px)",o[a].yOffset=g.y-1,l.appendChild(p)}else p.setAttribute("width",1),p.setAttribute("height",1)}else h.textContent=o[a].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this._cc.appendChild(h):(this._cc.appendChild(l),h.style.transform=h.style.webkitTransform="translate3d(0,"+-t.s/1.2+"px,0)");this.isMasked?this.textSpans[d]=h:this.textSpans[d]=l,this.textSpans[d].style.display="block",this.textPaths[d]=h,d+=1}for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},_ab.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._ch&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform.matMdf&&(this._cf.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this._cf.style.transform=this._cf.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var t,e,r=0,s=this.textAnimator._bt,i=this.textProperty.currentData.l;e=i.length;var a,n,o;for(t=0;t<e;t+=1)i[t].n?r+=1:(n=this.textSpans[t],o=this.textPaths[t],a=s[r],r+=1,this.isMasked?n.setAttribute("transform",a.m):n.style.transform=n.style.webkitTransform=a.m,n.style.opacity=a.o,a.sw&&o.setAttribute("stroke-width",a.sw),a.sc&&o.setAttribute("stroke",a.sc),a.fc&&(o.setAttribute("fill",a.fc),o.style.color=a.fc));if(this.isVisible&&this._ch&&this._cc.getBBox){var h=this._cc.getBBox();this._cg.w!==h.width&&(this._cg.w=h.width,this._cf.setAttribute("width",h.width)),this._cg.h!==h.height&&(this._cg.h=h.height,this._cf.setAttribute("height",h.height));var l=1;this._cg.w===h.width+2*l&&this._cg.h===h.height+2*l&&this._cg.x===h.x-l&&this._cg.y===h.y-l||(this._cg.w=h.width+2*l,this._cg.h=h.height+2*l,this._cg.x=h.x-l,this._cg.y=h.y-l,this._cf.setAttribute("viewBox",this._cg.x+" "+this._cg.y+" "+this._cg.w+" "+this._cg.h),this._cf.style.transform=this._cf.style.webkitTransform="translate("+this._cg.x+"px,"+this._cg.y+"px)")}}},extendPrototype([_e,_af,_b,_aa,_ad,_ac,_ae],_y),_y.prototype.createContent=function(){var t=this._x.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=_ct("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this._bx.appendChild(this.imageElem),this._by.setAttribute("width",this.assetData.w),this._by.setAttribute("height",this.assetData.h)):this._bx.appendChild(e),e.src=t,this.data.ln&&this._cc.setAttribute("id",this.data.ln),this.checkParenting()},extendPrototype([_e,_ac],_v),_v.prototype.setup=function(){var t,e,r=this.comp.threeDElements.length;for(t=0;t<r;t+=1)e=this.comp.threeDElements[t],e.perspectiveElem.style.perspective=e.perspectiveElem.style.webkitPerspective=this.pe.v+"px",e.container.style.transformOrigin=e.container.style.mozTransformOrigin=e.container.style.webkitTransformOrigin="0px 0px 0px",e.perspectiveElem.style.transform=e.perspectiveElem.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"},_v.prototype.createElements=function(){},_v.prototype.hide=function(){},_v.prototype._ba=function(){var t,e,r=this._ch;if(this._dd)for(e=this._dd.length,t=0;t<e;t+=1)r=!!this._dd[t].finalTransform.mProp.mdf||r;if(r||this.p&&this.p.mdf||this.px&&(this.px.mdf||this.py.mdf||this.pz.mdf)||this.rx.mdf||this.ry.mdf||this.rz.mdf||this.or.mdf||this.a&&this.a.mdf){if(this.mat.reset(),this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]],i=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),a=[s[0]/i,s[1]/i,s[2]/i],n=Math.sqrt(a[2]*a[2]+a[0]*a[0]),o=Math.atan2(a[1],n),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).rotateX(-o)}if(this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this._x._de.w/2,this._x._de.h/2,0),this.mat.translate(0,0,this.pe.v),this._dd){var l;for(e=this._dd.length,t=0;t<e;t+=1)l=this._dd[t].finalTransform.mProp.iv.props,this.mat.transform(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],-l[12],-l[13],l[14],l[15])}if(!this._prevMat.equals(this.mat)){e=this.comp.threeDElements.length;var p;for(t=0;t<e;t+=1)p=this.comp.threeDElements[t],p.container.style.transform=p.container.style.webkitTransform=this.mat.toCSS();this.mat.clone(this._prevMat)}}this._ch=!1},_v.prototype._az=function(t){this.prepareProperties(t,!0)},_v.prototype.destroy=function(){},_v.prototype.initExpressions=function(){},_v.prototype.get_e=function(){return null},_bv.prototype._ba=function(){};var Expressions=function(){function t(t){t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer._x.projectInterface.registerComposition(t.renderer)}var e={};return e.initExpressions=t,e}();expressionsPlugin=Expressions;var ExpressionManager=function(){function duplicatePropertyValue(t,e){if(e=e||1,"number"==typeof t||t instanceof Number)return t*e;if(t.i)return shape_pool.clone(t);var r,s=_cs("float32",t.length),i=t.length;for(r=0;r<i;r+=1)s[r]=t[r]*e;return s}function isTypeOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function shapesEqual(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,s=t._length;for(r=0;r<s;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0}function $bm_neg(t){var e=typeof t;if("number"===e||"boolean"===e||t instanceof Number)return-t;if(isTypeOfArray(t)){var r,s=t.length,i=[];for(r=0;r<s;r+=1)i[r]=-t[r];return i}}function sum(t,e){var r=typeof t,s=typeof e;if("string"===r||"string"===s)return t+e;if(("number"===r||"boolean"===r||"string"===r||t instanceof Number)&&("number"===s||"boolean"===s||"string"===s||e instanceof Number))return t+e;if(isTypeOfArray(t)&&("number"===s||"boolean"===s||"string"===s||e instanceof Number))return t[0]=t[0]+e,t;if(("number"===r||"boolean"===r||"string"===r||t instanceof Number)&&isTypeOfArray(e))return e[0]=t+e[0],e;if(isTypeOfArray(t)&&isTypeOfArray(e)){for(var i=0,a=t.length,n=e.length,o=[];i<a||i<n;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?o[i]=t[i]+e[i]:o[i]=void 0==e[i]?t[i]:t[i]||e[i],i+=1;return o}return 0}function sub(t,e){var r=typeof t,s=typeof e;if(("number"===r||"boolean"===r||"string"===r||t instanceof Number)&&("number"===s||"boolean"===s||"string"===s||e instanceof Number))return"string"===r&&(t=parseInt(t)),"string"===s&&(e=parseInt(e)),t-e;if(isTypeOfArray(t)&&("number"===s||"boolean"===s||"string"===s||e instanceof Number))return t[0]=t[0]-e,t;if(("number"===r||"boolean"===r||"string"===r||t instanceof Number)&&isTypeOfArray(e))return e[0]=t-e[0],e;if(isTypeOfArray(t)&&isTypeOfArray(e)){for(var i=0,a=t.length,n=e.length,o=[];i<a||i<n;)"number"==typeof t[i]||t[i]instanceof Number?o[i]=t[i]-e[i]:o[i]=void 0==e[i]?t[i]:t[i]||e[i],i+=1;return o}return 0}function mul(t,e){var r,s=typeof t,i=typeof e;if(("number"===s||"boolean"===s||"string"===s||t instanceof Number)&&("number"===i||"boolean"===i||"string"===i||e instanceof Number))return t*e;var a,n;if(isTypeOfArray(t)&&("number"===i||"boolean"===i||"string"===i||e instanceof Number)){for(n=t.length,r=_cs("float32",n),a=0;a<n;a+=1)r[a]=t[a]*e;return r}if(("number"===s||"boolean"===s||"string"===s||t instanceof Number)&&isTypeOfArray(e)){for(n=e.length,r=_cs("float32",n),a=0;a<n;a+=1)r[a]=t*e[a];return r}return 0}function div(t,e){var r,s=typeof t,i=typeof e;if(("number"===s||"boolean"===s||"string"===s||t instanceof Number)&&("number"===i||"boolean"===i||"string"===i||e instanceof Number))return t/e;var a,n;if(isTypeOfArray(t)&&("number"===i||"boolean"===i||"string"===i||e instanceof Number)){for(n=t.length,r=_cs("float32",n),a=0;a<n;a+=1)r[a]=t[a]/e;return r}if(("number"===s||"boolean"===s||"string"===s||t instanceof Number)&&isTypeOfArray(e)){for(n=e.length,r=_cs("float32",n),a=0;a<n;a+=1)r[a]=t/e[a];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t)),"string"==typeof e&&(e=parseInt(e)),t%e}function clamp(t,e,r){if(e>r){var s=r;r=e,e=s}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}function degreesToRadians(t){return t*degToRads}function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,s=Math.min(t.length,e.length),i=0;for(r=0;r<s;r+=1)i+=Math.pow(e[r]-t[r],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,s=t[0],i=t[1],a=t[2],n=Math.max(s,i,a),o=Math.min(s,i,a),h=(n+o)/2;if(n==o)e=r=0;else{var l=n-o;switch(r=h>.5?l/(2-n-o):l/(n+o),n){case s:e=(i-a)/l+(i<a?6:0);break;case i:e=(a-s)/l+2;break;case a:e=(s-i)/l+4}e/=6}return[e,r,h,t[3]]}function hslToRgb(t){function e(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}var r,s,i,a=t[0],n=t[1],o=t[2];if(0==n)r=s=i=o;else{var h=o<.5?o*(1+n):o+n-o*n,l=2*o-h;r=e(l,h,a+1/3),s=e(l,h,a),i=e(l,h,a-1/3)}return[r,s,i,t[3]]}function linear(t,e,r,s,i){if(void 0===s||void 0===i)return linear(t,0,1,e,r);if(t<=e)return s;if(t>=r)return i;var a=r===e?0:(t-e)/(r-e);if(!s.length)return s+(i-s)*a;var n,o=s.length,h=_cs("float32",o);for(n=0;n<o;n+=1)h[n]=s[n]+(i[n]-s[n])*a;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,s=e.length;t||(t=_cs("float32",s));var i=_cs("float32",s),a=BMMath.random();for(r=0;r<s;r+=1)i[r]=t[r]+a*(e[r]-t[r]);return i}void 0===t&&(t=0);var n=BMMath.random();return t+n*(e-t)}function createPath(t,e,r,s){e=e&&e.length?e:t,r=r&&r.length?r:t;var a=shape_pool.newElement(),n=t.length;for(a.setPathData(s,n),i=0;i<n;i+=1)a._aw(t[i][0],t[i][1],r[i][0]+t[i][0],r[i][1]+t[i][1],e[i][0]+t[i][0],e[i][1]+t[i][1],i,!0);return a}function initiateExpression(elem,data,property){function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],s=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,i=-Math.atan2(r[1],r[2])/degToRads;return[i,s,0]}function easeOut(t,e,r,s,i){return void 0===s?(s=e,i=r):t=(t-e)/(r-e),-(i-s)*t*(t-2)+s}function easeIn(t,e,r,s,i){return void 0===s?(s=e,i=r):t=(t-e)/(r-e),(i-s)*t*t+s}function nearestKey(t){var e,r,s,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,t*=elem.comp._x.frameRate,t<data.k[0].t)r=1,s=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){r=e+1,s=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,s=data.k[e+1].t):(r=e+1,s=data.k[e].t);break}}r===-1&&(r=e+1,s=data.k[e].t)}else r=0,s=0;var a={};return a.index=r,a.time=s/elem.comp._x.frameRate,a}function key(t){var e,r,s;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp._x.frameRate};var i;for(i=t!==data.k.length-1||data.k[t].h?data.k[t].s:data.k[t-1].e,s=i.length,r=0;r<s;r+=1)e[r]=i[r];return e}function framesToTime(t,e){return e||(e=elem.comp._x.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp._x.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function executeExpression(){if(_needsRandom&&seedRandom(randSeed),this.frameExpressionId!==elem._x.frameId||"textSelector"===this.propType){if(this.lock)return this.v=duplicatePropertyValue(this.pv,this.mult),!0;"textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),anchorPoint=transform.anchorPoint),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!(!elem._dd||!elem._dd.length),hasParent&&!parent&&(parent=elem._dd[0].layerInterface),this.lock=!0,this.getPreValue&&this.getPreValue(),value=this.pv,time=this.comp.renderedFrame/this.comp._x.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),"shape"===scoped_bm_rt.propType?this.v=shape_pool.clone(scoped_bm_rt.v):this.v=scoped_bm_rt,this.frameExpressionId=elem._x.frameId;var t,e;if(this.mult)if("unidimensional"===this.propType)this.v*=this.mult;else if(1===this.v.length)this.v=this.v[0]*this.mult;else for(e=this.v.length,value===this.v&&(this.v=2===e?[value[0],value[1]]:[value[0],value[1],value[2]]),t=0;t<e;t+=1)this.v[t]*=this.mult;if(1===this.v.length&&(this.v=this.v[0]),"unidimensional"===this.propType)this.lastValue!==this.v&&(this.lastValue=this.v,this.mdf=!0);else if("shape"===this.propType)shapesEqual(this.v,this._ak.shapes[0])||(this.mdf=!0,this._ak.releaseShapes(),this._ak.addShape(shape_pool.clone(this.v)));else for(e=this.v.length,t=0;t<e;t+=1)this.v[t]!==this.lastValue[t]&&(this.lastValue[t]=this.v[t],this.mdf=!0);this.lock=!1}}var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,content,effect,thisComp=elem.comp,thisProperty=property;elem.comp.frameDuration=1/elem.comp._x.frameRate;var inPoint=elem.data.ip/elem.comp._x.frameRate,outPoint=elem.data.op/elem.comp._x.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,loopIn,loop_in,loopOut,loop_out,toWorld,fromWorld,fromComp,fromCompToSurface,anchorPoint,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,wiggle=function(t,e){var r,s,i=this.pv.length?this.pv.length:1,a=_cs("float32",i);t=5;var n=Math.floor(time*t);for(r=0,s=0;r<n;){for(s=0;s<i;s+=1)a[s]+=-e+2*e*BMMath.random();r+=1}var o=time*t,h=o-Math.floor(o),l=_cs("float32",i);if(i>1){for(s=0;s<i;s+=1)l[s]=this.pv[s]+a[s]+(-e+2*e*BMMath.random())*h;return l}return this.pv+a[0]+(-e+2*e*BMMath.random())*h}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut);var loopInDuration=function(t,e){return loopIn(t,e,!0)}.bind(this),loopOutDuration=function(t,e){return loopOut(t,e,!0)}.bind(this);this._dg&&(valueAtTime=this._dg.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp._x.projectInterface.bind(elem.comp._x.projectInterface),time,velocity,value,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!(!elem._dd||!elem._dd.length),parent,randSeed=Math.floor(1e6*Math.random());return executeExpression}var ob={},Math=BMMath,window=null,document=null,add=sum,radians_to_degrees=radiansToDegrees,degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];return ob.initiateExpression=initiateExpression,ob}();!function(){function t(){return this.pv}function e(t,e,r){if(!this.k||!this._df)return this.pv;t=t?t.toLowerCase():"";var s=this.comp.renderedFrame,i=this._df,a=i[i.length-1].t;if(s<=a)return this.pv;var n,o;r?(n=e?Math.abs(a-elem.comp._x.frameRate*e):Math.max(0,a-this.elem.data.ip),o=a-n):((!e||e>i.length-1)&&(e=i.length-1),o=i[i.length-1-e].t,n=a-o);var h,l,p;if("pingpong"===t){var m=Math.floor((s-o)/n);if(m%2!==0)return this._dg((n-(s-o)%n+o)/this.comp._x.frameRate,0)}else{if("offset"===t){var f=this._dg(o/this.comp._x.frameRate,0),c=this._dg(a/this.comp._x.frameRate,0),d=this._dg(((s-o)%n+o)/this.comp._x.frameRate,0),u=Math.floor((s-o)/n);if(this.pv.length){for(p=new Array(f.length),l=p.length,h=0;h<l;h+=1)p[h]=(c[h]-f[h])*u+d[h];return p}return(c-f)*u+d}if("continue"===t){var y=this._dg(a/this.comp._x.frameRate,0),g=this._dg((a-.001)/this.comp._x.frameRate,0);if(this.pv.length){for(p=new Array(y.length),l=p.length,h=0;h<l;h+=1)p[h]=y[h]+(y[h]-g[h])*((s-a)/this.comp._x.frameRate)/5e-4;return p}return y+(y-g)*((s-a)/.001)}}return this._dg(((s-o)%n+o)/this.comp._x.frameRate,0)}function r(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var s=this.comp.renderedFrame,i=this._df,a=i[0].t;if(s>=a)return this.pv;var n,o;r?(n=e?Math.abs(elem.comp._x.frameRate*e):Math.max(0,this.elem.data.op-a),o=a+n):((!e||e>i.length-1)&&(e=i.length-1),o=i[e].t,n=o-a);var h,l,p;if("pingpong"===t){var m=Math.floor((a-s)/n);if(m%2===0)return this._dg(((a-s)%n+a)/this.comp._x.frameRate,0)}else{if("offset"===t){var f=this._dg(a/this.comp._x.frameRate,0),c=this._dg(o/this.comp._x.frameRate,0),d=this._dg((n-(a-s)%n+a)/this.comp._x.frameRate,0),u=Math.floor((a-s)/n)+1;if(this.pv.length){for(p=new Array(f.length),l=p.length,h=0;h<l;h+=1)p[h]=d[h]-(c[h]-f[h])*u;return p}return d-(c-f)*u}if("continue"===t){var y=this._dg(a/this.comp._x.frameRate,0),g=this._dg((a+.001)/this.comp._x.frameRate,0);if(this.pv.length){for(p=new Array(y.length),l=p.length,h=0;h<l;h+=1)p[h]=y[h]+(y[h]-g[h])*(a-s)/.001;return p}return y+(y-g)*(a-s)/.001}}return this._dg((n-(a-s)%n+a)/this.comp._x.frameRate,0)}function s(t){return this._cachingAtTime||(this._cachingAtTime={lastValue:initialDefaultFrame,lastIndex:0}),t!==this._cachingAtTime.lastFrame&&(t*=this.elem._x.frameRate,t-=this.offsetTime,this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this.pv,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value}function i(t){if(void 0!==this.vel)return this.vel;var e,r=-.01,s=this._dg(t),i=this._dg(t+r);if(s.length){e=_cs("float32",s.length);var a;for(a=0;a<s.length;a+=1)e[a]=(i[a]-s[a])/r}else e=(i-s)/r;return e}function a(t){this.propertyGroup=t}function n(t,e,r){e.x&&(r.k=!0,r.x=!0,r.getValue&&(r.getPreValue=r.getValue),r.initiateExpression=ExpressionManager.initiateExpression,r.getValue=r.initiateExpression(t,e,r))}function o(t){}function h(t){}function l(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastTime=t,t*=this.elem._x.frameRate,this.interpolateShape(t,this._cachingAtTime.shapeValue,!1,this._cachingAtTime)),this._cachingAtTime.shapeValue}function p(){}var m=function(){function e(t,e){return this.textIndex=t+1,this.textTotal=e,this.getValue(),this.v}return function(r,o){this.pv=1,this.comp=r.comp,this.elem=r,this.mult=.01,this.propType="textSelector",this.textTotal=o.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],n.bind(this)(r,o,this),this.getMult=e,this.getVelocityAtTime=i,this.kf?this._dg=s.bind(this):this._dg=t.bind(this),this._ce=a}}(),f=_ag._bj;_ag._bj=function(t,e,r){var s=f(t,e,r);return s._co.length?s._dg=o.bind(s):s._dg=h.bind(s),s._ce=a,s};var c=_ai._bo;_ai._bo=function(o,h,l,p,m){var f=c(o,h,l,p,m);f.kf?f._dg=s.bind(f):f._dg=t.bind(f),f._ce=a,f.loopOut=e,f.loopIn=r,f.getVelocityAtTime=i,f.numKeys=1===h.a?h.k.length:0;var d=f.k;return f.propertyIndex=h.ix,f._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:0===l?0:_cs("float32",3)},n(o,h,f),!d&&f.x&&m.push(f),f};var d=_ah.getConstructorFunction(),u=_ah.getKeyframedConstructorFunction();p.prototype={vertices:function(t,e){var r=this.v;void 0!==e&&(r=this._dg(e,0));var s,i=r._length,a=r[t],n=r.v,o=_cv(i);for(s=0;s<i;s+=1)"i"===t||"o"===t?o[s]=[a[s][0]-n[s][0],a[s][1]-n[s][1]]:o[s]=[a[s][0],a[s][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this._dg(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var s=this._segmentsLength,i=s.lengths,a=s.totalLength*t,n=0,o=i.length,h=0;n<o;){if(h+i[n].addedLength>a){var l=n,p=r.c&&n===o-1?0:n+1,m=(a-h)/i[n].addedLength,f=bez.getPointInSegment(r.v[l],r.v[p],r.o[l],r.i[p],m,i[n]);break}h+=i[n].addedLength,n+=1}return f||(f=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),f},vectorOnPath:function(t,e,r){t=1==t?this.v.c?0:.999:t;var s=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),a=i[0]-s[0],n=i[1]-s[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2)),h="tangent"===r?[a/o,n/o]:[-n/o,a/o];return h},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},_ce:a,_dg:t},extendPrototype([p],d),extendPrototype([p],u),u.prototype._dg=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var y=_ah._bp;_ah._bp=function(t,e,r,s,i){var a=y(t,e,r,s,i),o=a.k;return a.propertyIndex=e.ix,a.lock=!1,3===r?n(t,e.pt,a):4===r&&n(t,e.ks,a),!o&&a.x&&s.push(a),a};var g=TextSelectorProp.getTextSelectorProp;TextSelectorProp.getTextSelectorProp=function(t,e,r){return 1===e.t?new m(t,e,r):g(t,e,r)}}(),function(){function t(){return!!this.data.d.x&&(this.comp=this.elem.comp,this.getValue&&(this.getPreValue=this.getValue),this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.getValue=this.getExpressionValue,!0)}_ar.prototype.searchProperty=function(){return this.kf=this.searchExpressions()||this.data.d.k.length>1,this.kf},_ar.prototype.getExpressionValue=function(t){this.calculateExpression(),this.mdf&&(this.currentData.t=this.v.toString(),this.completeTextData(this.currentData))},_ar.prototype.searchExpressions=t}();var ShapeExpressionInterface=function(){function t(t,e,n){var c,d=[],u=t?t.length:0;for(c=0;c<u;c+=1)"gr"==t[c].ty?d.push(r(t[c],e[c],n)):"fl"==t[c].ty?d.push(s(t[c],e[c],n)):"st"==t[c].ty?d.push(i(t[c],e[c],n)):"tm"==t[c].ty?d.push(a(t[c],e[c],n)):"tr"==t[c].ty||("el"==t[c].ty?d.push(o(t[c],e[c],n)):"sr"==t[c].ty?d.push(h(t[c],e[c],n)):"sh"==t[c].ty?d.push(f(t[c],e[c],n)):"rc"==t[c].ty?d.push(l(t[c],e[c],n)):"rd"==t[c].ty?d.push(p(t[c],e[c],n)):"rp"==t[c].ty&&d.push(m(t[c],e[c],n)));return d}function e(e,r,s){var i,a=function(t){for(var e=0,r=i.length;e<r;){if(i[e]._name===t||i[e].mn===t||i[e].propertyIndex===t||i[e].ix===t||i[e].ind===t)return i[e];e+=1}if("number"==typeof t)return i[t-1]};return a.propertyGroup=function(t){return 1===t?a:s(t-1)},i=t(e.it,r.it,a.propertyGroup),a.numProperties=i.length,a.propertyIndex=e.cix,a}function r(t,r,s){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;case"ADBE Vector Transform Group":case 3:default:return i.transform}};i.propertyGroup=function(t){return 1===t?i:s(t-1)};var a=e(t,r,i.propertyGroup),o=n(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=a,i.transform=o,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function s(t,e,r){function s(t){return"Color"===t||"color"===t?s.color:"Opacity"===t||"opacity"===t?s.opacity:void 0}return Object.defineProperties(s,{color:{get:function(){return ExpressionValue(e.c,1/e.c.mult,"color")}},opacity:{get:function(){return ExpressionValue(e.o,100)}},_name:{value:t.nm},mn:{value:t.mn}}),e.c._ce(r),e.o._ce(r),s}function i(t,e,r){function s(t){return 1===t?ob:r(t-1)}function i(t){return 1===t?l:s(t-1)}function a(r){Object.defineProperty(l,t.d[r].nm,{get:function(){return ExpressionValue(e.d.dataProps[r].p)}})}function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:"Stroke Width"===t||"stroke width"===t?n.strokeWidth:void 0}var o,h=t.d?t.d.length:0,l={};for(o=0;o<h;o+=1)a(o),e.d.dataProps[o].p._ce(i);return Object.defineProperties(n,{color:{get:function(){return ExpressionValue(e.c,1/e.c.mult,"color")}},opacity:{get:function(){return ExpressionValue(e.o,100)}},strokeWidth:{get:function(){return ExpressionValue(e.w)}},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c._ce(s),e.o._ce(s),e.w._ce(s),n}function a(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){return e===t.e.ix||"End"===e||"end"===e?i.end:e===t.s.ix?i.start:e===t.o.ix?i.offset:void 0}return i.propertyIndex=t.ix,e.s._ce(s),e.e._ce(s),e.o._ce(s),i.propertyIndex=t.ix,Object.defineProperties(i,{start:{get:function(){return ExpressionValue(e.s,1/e.s.mult)}},end:{get:function(){return ExpressionValue(e.e,1/e.e.mult)}},offset:{get:function(){return ExpressionValue(e.o)}},_name:{value:t.nm}}),i.mn=t.mn,i}function n(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){return t.a.ix===e||"Anchor Point"===e?i.anchorPoint:t.o.ix===e||"Opacity"===e?i.opacity:t.p.ix===e||"Position"===e?i.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?i.rotation:t.s.ix===e||"Scale"===e?i.scale:t.sk&&t.sk.ix===e||"Skew"===e?i.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?i.skewAxis:void 0}return e.transform.mProps.o._ce(s),e.transform.mProps.p._ce(s),e.transform.mProps.a._ce(s),e.transform.mProps.s._ce(s),e.transform.mProps.r._ce(s),e.transform.mProps.sk&&(e.transform.mProps.sk._ce(s),e.transform.mProps.sa._ce(s)),e.transform.op._ce(s),Object.defineProperties(i,{opacity:{get:function(){return ExpressionValue(e.transform.mProps.o,1/e.transform.mProps.o.mult)}},position:{get:function(){return ExpressionValue(e.transform.mProps.p)}},anchorPoint:{get:function(){return ExpressionValue(e.transform.mProps.a)}},scale:{get:function(){return ExpressionValue(e.transform.mProps.s,1/e.transform.mProps.s.mult)}},rotation:{get:function(){return ExpressionValue(e.transform.mProps.r,1/e.transform.mProps.r.mult)}},skew:{get:function(){return ExpressionValue(e.transform.mProps.sk)}},skewAxis:{get:function(){return ExpressionValue(e.transform.mProps.sa)}},_name:{value:t.nm}}),i.ty="tr",i.mn=t.mn,i}function o(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){return t.p.ix===e?i.position:t.s.ix===e?i.size:void 0}i.propertyIndex=t.ix;var a="tm"===e.sh.ty?e.sh.prop:e.sh;
return a.s._ce(s),a.p._ce(s),Object.defineProperties(i,{size:{get:function(){return ExpressionValue(a.s)}},position:{get:function(){return ExpressionValue(a.p)}},_name:{value:t.nm}}),i.mn=t.mn,i}function h(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.rotation:t.pt.ix===e?i.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?i.outerRadius:t.os.ix===e?i.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?i.innerRoundness:void 0:i.innerRadius}var a="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,a.or._ce(s),a.os._ce(s),a.pt._ce(s),a.p._ce(s),a.r._ce(s),t.ir&&(a.ir._ce(s),a.is._ce(s)),Object.defineProperties(i,{position:{get:function(){return ExpressionValue(a.p)}},rotation:{get:function(){return ExpressionValue(a.r,1/a.r.mult)}},points:{get:function(){return ExpressionValue(a.pt)}},outerRadius:{get:function(){return ExpressionValue(a.or)}},outerRoundness:{get:function(){return ExpressionValue(a.os)}},innerRadius:{get:function(){return a.ir?ExpressionValue(a.ir):0}},innerRoundness:{get:function(){return a.is?ExpressionValue(a.is,1/a.is.mult):0}},_name:{value:t.nm}}),i.mn=t.mn,i}function l(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?i.size:void 0}var a="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,a.p._ce(s),a.s._ce(s),a.r._ce(s),Object.defineProperties(i,{position:{get:function(){return ExpressionValue(a.p)}},roundness:{get:function(){return ExpressionValue(a.r)}},size:{get:function(){return ExpressionValue(a.s)}},_name:{value:t.nm}}),i.mn=t.mn,i}function p(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){if(t.r.ix===e||"Round Corners 1"===e)return i.radius}var a=e;return i.propertyIndex=t.ix,a.rd._ce(s),Object.defineProperties(i,{radius:{get:function(){return ExpressionValue(a.rd)}},_name:{value:t.nm}}),i.mn=t.mn,i}function m(t,e,r){function s(t){return 1==t?i:r(--t)}function i(e){return t.c.ix===e||"Copies"===e?i.copies:t.o.ix===e||"Offset"===e?i.offset:void 0}var a=e;return i.propertyIndex=t.ix,a.c._ce(s),a.o._ce(s),Object.defineProperties(i,{copies:{get:function(){return ExpressionValue(a.c)}},offset:{get:function(){return ExpressionValue(a.o)}},_name:{value:t.nm}}),i.mn=t.mn,i}function f(t,e,r){function s(t){return 1==t?i:r(--t)}function i(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return i.path}var a=e.sh;return a._ce(s),Object.defineProperties(i,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:t.nm},ix:{value:t.ix},mn:{value:t.mn}}),i}return function(e,r,s){function i(t){if("number"==typeof t)return a[t-1];for(var e=0,r=a.length;e<r;){if(a[e]._name===t)return a[e];e+=1}}var a;return i.propertyGroup=s,a=t(e,r,i),i}}(),TextExpressionInterface=function(){return function(t){function e(){}var r,s;return Object.defineProperty(e,"sourceText",{get:function(){var e=t.textProperty.currentData.t;return t.textProperty.currentData.t!==r&&(t.textProperty.currentData.t=r,s=new String(e),s.value=e?e:new String(e)),s}}),e}}(),LayerExpressionInterface=function(){function t(t,e){var r=new Matrix;r.reset();var s;if(s=e?this._elem.finalTransform.mProp:this._elem.finalTransform.mProp,s.applyToMatrix(r),this._elem._dd&&this._elem._dd.length){var i,a=this._elem._dd.length;for(i=0;i<a;i+=1)this._elem._dd[i].finalTransform.mProp.applyToMatrix(r);return r._cn(t[0],t[1],t[2]||0)}return r._cn(t[0],t[1],t[2]||0)}function e(t,e){var r=new Matrix;r.reset();var s;if(s=e?this._elem.finalTransform.mProp:this._elem.finalTransform.mProp,s.applyToMatrix(r),this._elem._dd&&this._elem._dd.length){var i,a=this._elem._dd.length;for(i=0;i<a;i+=1)this._elem._dd[i].finalTransform.mProp.applyToMatrix(r);return r.inversePoint(t)}return r.inversePoint(t)}function r(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem._dd&&this._elem._dd.length){var r,s=this._elem._dd.length;for(r=0;r<s;r+=1)this._elem._dd[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}return function(s){function i(t){n.mask=new MaskManagerInterface(t,s)}function a(t){n.effect=t}function n(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return n.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return o;case 4:case"ADBE Effect Parade":return n.effect}}var o;n.toWorld=t,n.fromWorld=e,n.toComp=t,n.fromComp=r,n.sourceRectAtTime=s.sourceRectAtTime.bind(s),n._elem=s,o=TransformExpressionInterface(s.finalTransform.mProp);var h=getDescriptor(o,"anchorPoint");return Object.defineProperties(n,{hasParent:{get:function(){return s._dd.length}},parent:{get:function(){return s._dd[0].layerInterface}},rotation:getDescriptor(o,"rotation"),scale:getDescriptor(o,"scale"),position:getDescriptor(o,"position"),opacity:getDescriptor(o,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return o}},active:{get:function(){return s.isInRange}}}),n.startTime=s.data.st,n.index=s.data.ind,n.source=s.data.refId,n.height=0===s.data.ty?s.data.h:100,n.width=0===s.data.ty?s.data.w:100,n.registerMaskInterface=i,n.registerEffectsInterface=a,n}}(),CompExpressionInterface=function(){return function(t){function e(e){for(var r=0,s=t.layers.length;r<s;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t._br[r].layerInterface;r+=1}return{active:!1}}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t._x._de.h,e.width=t._x._de.w,e.pixelAspect=1,e.frameDuration=1/t._x.frameRate,e}}(),TransformExpressionInterface=function(){return function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}return Object.defineProperty(e,"rotation",{get:function(){return t.r?ExpressionValue(t.r,1/degToRads):ExpressionValue(t.rz,1/degToRads)}}),Object.defineProperty(e,"scale",{get:function(){return ExpressionValue(t.s,100)}}),Object.defineProperty(e,"position",{get:function(){return t.p?ExpressionValue(t.p):[t.px.v,t.py.v,t.pz?t.pz.v:0]}}),Object.defineProperty(e,"xPosition",{get:function(){return ExpressionValue(t.px)}}),Object.defineProperty(e,"yPosition",{get:function(){return ExpressionValue(t.py)}}),Object.defineProperty(e,"zPosition",{get:function(){return ExpressionValue(t.pz)}}),Object.defineProperty(e,"anchorPoint",{get:function(){return ExpressionValue(t.a)}}),Object.defineProperty(e,"opacity",{get:function(){return ExpressionValue(t.o,100)}}),Object.defineProperty(e,"skew",{get:function(){return ExpressionValue(t.sk)}}),Object.defineProperty(e,"skewAxis",{get:function(){return ExpressionValue(t.sa)}}),Object.defineProperty(e,"orientation",{get:function(){return ExpressionValue(t.or)}}),e}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e]._az&&this.compositions[e]._az(this.compositions[e].data.xt?this.currentFrame:this.compositions[e].renderedFrame),this.compositions[e].compInterface;e+=1}}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),EffectsExpressionInterface=function(){function t(t,r){if(t.effects){var s,i=[],a=t.data.ef,n=t.effects._cm.length;for(s=0;s<n;s+=1)i.push(e(a[s],t.effects._cm[s],r,t));return function(e){for(var r=t.data.ef,s=0,a=r.length;s<a;){if(e===r[s].nm||e===r[s].mn||e===r[s].ix)return i[s];s+=1}}}}function e(t,s,i,a){function n(t){return 1===t?p:i(t-1)}var o,h=[],l=t.ef.length;for(o=0;o<l;o+=1)5===t.ef[o].ty?h.push(e(t.ef[o],s._cm[o],s._cm[o].propertyGroup,a)):h.push(r(s._cm[o],t.ef[o].ty,a,n));var p=function(e){for(var r=t.ef,s=0,i=r.length;s<i;){if(e===r[s].nm||e===r[s].mn||e===r[s].ix)return 5===r[s].ty?h[s]:h[s]();s+=1}return h[0]()};return p.propertyGroup=n,"ADBE Color Control"===t.mn&&Object.defineProperty(p,"color",{get:function(){return h[0]()}}),Object.defineProperty(p,"numProperties",{get:function(){return t.np}}),p.active=0!==t.en,p}function r(t,e,r,s){function i(){return 10===e?r.comp.compInterface(t.p.v):ExpressionValue(t.p)}return t.p._ce&&t.p._ce(s),i}var s={createEffectsInterface:t};return s}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}});var e=function(e,r){var s,i=_cv(e.viewData.length),a=e.viewData.length;for(s=0;s<a;s+=1)i[s]=new t(e.viewData[s],e.masksProperties[s]);var n=function(t){for(s=0;s<a;){if(e.masksProperties[s].nm===t)return i[s];s+=1}};return n};return e}(),ExpressionValue=function(){return function(t,e,r){var s;t.k&&t.getValue();var i,a,n;if(r){if("color"===r){for(a=4,s=_cs("float32",a),n=_cs("float32",a),i=0;i<a;i+=1)s[i]=n[i]=e&&i<3?t.v[i]*e:1;s.value=n}}else if("number"==typeof t.v||t.v instanceof Number)s=e?new Number(t.v*e):new Number(t.v),s.value=e?t.v*e:t.v;else{for(a=t.v.length,s=_cs("float32",a),n=_cs("float32",a),i=0;i<a;i+=1)s[i]=n[i]=e?t.v[i]*e:t.v[i];s.value=n}return s.numKeys=t._df?t._df.length:0,s.key=function(e){return s.numKeys?t._df[e-1].t:0},s.valueAtTime=t._dg,s.propertyGroup=t.propertyGroup,s}}();GroupEffect.prototype.getValue=function(){this.mdf=!1;var t,e=this._co.length;for(t=0;t<e;t+=1)this._co[t].getValue(),this.mdf=!!this._co[t].mdf||this.mdf},GroupEffect.prototype.init=function(t,e,r){this.data=t,this.mdf=!1,this._cm=[];var s,i,a=this.data.ef.length,n=this.data.ef;for(s=0;s<a;s+=1)switch(n[s].ty){case 0:i=new SliderEffect(n[s],e,r),this._cm.push(i);break;case 1:i=new AngleEffect(n[s],e,r),this._cm.push(i);break;case 2:i=new ColorEffect(n[s],e,r),this._cm.push(i);break;case 3:i=new PointEffect(n[s],e,r),this._cm.push(i);break;case 4:case 7:i=new CheckboxEffect(n[s],e,r),this._cm.push(i);break;case 10:i=new LayerIndexEffect(n[s],e,r),this._cm.push(i);break;case 11:i=new MaskIndexEffect(n[s],e,r),this._cm.push(i);break;case 5:i=new EffectsManager(n[s],e,r),this._cm.push(i);break;case 6:default:i=new NoValueEffect(n[s],e,r),this._cm.push(i)}};var lottiejs={};lottiejs.play=play,lottiejs.pause=pause,lottiejs.setLocationHref=setLocationHref,lottiejs.togglePause=togglePause,lottiejs.setSpeed=setSpeed,lottiejs.setDirection=setDirection,lottiejs.stop=stop,lottiejs.moveFrame=moveFrame,lottiejs.searchAnimations=searchAnimations,lottiejs.registerAnimation=registerAnimation,lottiejs.loadAnimation=loadAnimation,lottiejs.setSubframeRendering=setSubframeRendering,lottiejs.resize=resize,lottiejs.goToAndStop=goToAndStop,lottiejs.destroy=destroy,lottiejs.setQuality=setQuality,lottiejs.inBrowser=inBrowser,lottiejs.installPlugin=installPlugin,lottiejs.__getFactory=getFactory,lottiejs.version="5.0.6";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,"");renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottiejs});