for(vara=i[r],o=a.getTimesWithTangent(t),h=0,u=o.length;h<u;h++){varl=n+a.getOffsetAtTime(o[h]);e.indexOf(l)<0&&e.push(l)}n+=a.length}returne}}),newfunction(){functiont(t,e,n,i){functionr(e){varn=l[e],i=l[e+1];s==n&&a==i||(t.beginPath(),t.moveTo(s,a),t.lineTo(n,i),t.stroke(),t.beginPath(),t.arc(n,i,o,0,2*Math.PI,!0),t.fill())}if(!(i<=0))for(vars,a,o=i/2,h=i-2,u=o-1,l=newArray(6),c=0,f=e.length;c<f;c++){vard=e[c],_=d._selection;if(d._transformCoordinates(n,l),s=l[0],a=l[1],2&_&&r(2),4&_&&r(4),t.fillRect(s-o,a-o,i,i),h>0&&!(1&_)){varg=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(s-u,a-u,h,h),t.fillStyle=g}}}functione(t,e,n){functioni(e){if(n)e._transformCoordinates(n,_),r=_[0],s=_[1];else{vari=e._point;r=i._x,s=i._y}if(g)t.moveTo(r,s),g=!1;else{if(n)h=_[2],u=_[3];else{varf=e._handleIn;h=r+f._x,u=s+f._y}h===r&&u===s&&l===a&&c===o?t.lineTo(r,s):t.bezierCurveTo(l,c,h,u,r,s)}if(a=r,o=s,n)l=_[4],c=_[5];else{varf=e._handleOut;l=a+f._x,c=o+f._y}}for(varr,s,a,o,h,u,l,c,f=e._segments,d=f.length,_=newArray(6),g=!0,v=0;v<d;v++)i(f[v]);e._closed&&d>0&&i(f[0])}return{_draw:function(t,n,i,r){functions(t){returnc[(t%f+f)%f]}vara=n.dontStart,o=n.dontFinish||n.clip,h=this.getStyle(),u=h.hasFill(),l=h.hasStroke(),c=h.getDashArray(),f=!at.support.nativeDash&&l&&c&&c.length;if(a||t.beginPath(),(u||l&&!f||o)&&(e(t,this,r),this._closed&&t.closePath()),!o&&(u||l)&&(this._setStyles(t,n,i),u&&(t.fill(h.getFillRule()),t.shadowColor="rgba(0,0,0,0)"),l)){if(f){a||t.beginPath();for(vard,_=newB(this,.25,32,(!1),r),g=_.length,v=-h.getDashOffset(),p=0;v>0;)v-=s(p--)+s(p--);for(;v<g;)d=v+s(p++),(v>0||d>0)&&_.drawPart(t,Math.max(v,0),Math.max(d,0)),v=d+s(p++)}t.stroke()}},_drawSelected:function(n,i){n.beginPath(),e(n,this,i),n.stroke(),t(n,this._segments,i,at.settings.handleSize)}}},newfunction(){functiont(t){vare=t._segments;if(!e.length)thrownewError("Use a moveTo() command first");returne[e.length-1]}return{moveTo:function(){vart=this._segments;1===t.length&&this.removeSegment(0),t.length||this._add([newA(f.read(arguments))])},moveBy:function(){thrownewError("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([newA(f.read(arguments))])},cubicCurveTo:function(){vare=arguments,n=f.read(e),i=f.read(e),r=f.read(e),s=t(this);s.setHandleOut(n.subtract(s._point)),this._add([newA(r,i.subtract(r))])},quadraticCurveTo:function(){vare=arguments,n=f.read(e),i=f.read(e),r=t(this)._point;this.cubicCurveTo(n.add(r.subtract(n).multiply(1/3)),n.add(i.subtract(n).multiply(1/3)),i)},curveTo:function(){vare=arguments,n=f.read(e),i=f.read(e),s=r.pick(r.read(e),.5),a=1-s,o=t(this)._point,h=n.subtract(o.multiply(a*a)).subtract(i.multiply(s*s)).divide(2*s*a);if(h.isNaN())thrownewError("Cannot put a curve through points with parameter = "+s);this.quadraticCurveTo(h,i)},arcTo:function(){vare,n,i,s,a,o=arguments,h=Math.abs,u=Math.sqrt,c=t(this),d=c._point,g=f.read(o),v=r.peek(o),p=r.pick(v,!0);if("boolean"==typeofp)varw=d.add(g).divide(2),e=w.add(w.subtract(d).rotate(p?-90:90));elseif(r.remain(o)<=2)e=g,g=f.read(o);elseif(!d.equals(g)){varx=_.read(o),b=l.isZero;if(b(x.width)||b(x.height))returnthis.lineTo(g);varC=r.read(o),p=!!r.read(o),S=!!r.read(o),w=d.add(g).divide(2),k=d.subtract(w).rotate(-C),I=k.x,P=k.y,M=h(x.width),T=h(x.height),O=M*M,z=T*T,E=I*I,L=P*P,N=u(E/O+L/z);if(N>1&&(M*=N,T*=N,O=M*M,z=T*T),N=(O*z-O*L-z*E)/(O*L+z*E),h(N)<1e-12&&(N=0),N<0)thrownewError("Cannot create an arc with the given arguments");n=newf(M*P/T,-T*I/M).multiply((S===p?-1:1)*u(N)).rotate(C).add(w),a=(newm).translate(n).rotate(C).scale(M,T),s=a._inverseTransform(d),i=s.getDirectedAngle(a._inverseTransform(g)),!p&&i>0?i-=360:p&&i<0&&(i+=360)}if(e){varB=newy(d.add(e).divide(2),e.subtract(d).rotate(90),(!0)),F=newy(e.add(g).divide(2),g.subtract(e).rotate(90),(!0)),j=newy(d,g),R=j.getSide(e);if(n=B.intersect(F,!0),!n){if(!R)returnthis.lineTo(g);thrownewError("Cannot create an arc with the given arguments")}s=d.subtract(n),i=s.getDirectedAngle(g.subtract(n));varD=j.getSide(n,!0);0===D?i=R*h(i):R===D&&(i+=i<0?360:-360)}if(i){for
s=!1);vara=r.getContext("2d");if(!a)thrownewError("Canvas "+r+" is unable to provide a 2D context.");returnr.width===t&&r.height===e?s&&a.clearRect(0,0,t+1,e+1):(r.width=t,r.height=e),a.save(),r},getContext:function(t,e){varn=this.getCanvas(t,e);returnn?n.getContext("2d"):null},release:function(t){vare=t&&t.canvas?t.canvas:t;e&&e.getContext&&(e.getContext("2d").restore(),this.canvases.push(e))}},it=newfunction(){functiont(t,e,n){return.2989*t+.587*e+.114*n}functione(e,n,i,r){vars=r-t(e,n,i);d=e+s,_=n+s,g=i+s;varr=t(d,_,g),a=v(d,_,g),o=p(d,_,g);if(a<0){varh=r-a;d=r+(d-r)*r/h,_=r+(_-r)*r/h,g=r+(g-r)*r/h}if(o>255){varu=255-r,l=o-r;d=r+(d-r)*u/l,_=r+(_-r)*u/l,g=r+(g-r)*u/l}}functionn(t,e,n){returnp(t,e,n)-v(t,e,n)}functioni(t,e,n,i){varr,s=[t,e,n],a=p(t,e,n),o=v(t,e,n);o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2,r=0===v(o,a)?1===p(o,a)?2:1:0,s[a]>s[o]?(s[r]=(s[r]-s[o])*i/(s[a]-s[o]),s[a]=i):s[r]=s[a]=0,s[o]=0,d=s[0],_=s[1],g=s[2]}vars,a,o,h,u,l,c,f,d,_,g,v=Math.min,p=Math.max,m=Math.abs,y={multiply:function(){d=u*s/255,_=l*a/255,g=c*o/255},screen:function(){d=u+s-u*s/255,_=l+a-l*a/255,g=c+o-c*o/255},overlay:function(){d=u<128?2*u*s/255:255-2*(255-u)*(255-s)/255,_=l<128?2*l*a/255:255-2*(255-l)*(255-a)/255,g=c<128?2*c*o/255:255-2*(255-c)*(255-o)/255},"soft-light":function(){vart=s*u/255;d=t+u*(255-(255-u)*(255-s)/255-t)/255,t=a*l/255,_=t+l*(255-(255-l)*(255-a)/255-t)/255,t=o*c/255,g=t+c*(255-(255-c)*(255-o)/255-t)/255},"hard-light":function(){d=s<128?2*s*u/255:255-2*(255-s)*(255-u)/255,_=a<128?2*a*l/255:255-2*(255-a)*(255-l)/255,g=o<128?2*o*c/255:255-2*(255-o)*(255-c)/255},"color-dodge":function(){d=0===u?0:255===s?255:v(255,255*u/(255-s)),_=0===l?0:255===a?255:v(255,255*l/(255-a)),g=0===c?0:255===o?255:v(255,255*c/(255-o))},"color-burn":function(){d=255===u?255:0===s?0:p(0,255-255*(255-u)/s),_=255===l?255:0===a?0:p(0,255-255*(255-l)/a),g=255===c?255:0===o?0:p(0,255-255*(255-c)/o)},darken:function(){d=u<s?u:s,_=l<a?l:a,g=c<o?c:o},lighten:function(){d=u>s?u:s,_=l>a?l:a,g=c>o?c:o},difference:function(){d=u-s,d<0&&(d=-d),_=l-a,_<0&&(_=-_),g=c-o,g<0&&(g=-g)},exclusion:function(){d=u+s*(255-u-u)/255,_=l+a*(255-l-l)/255,g=c+o*(255-c-c)/255},hue:function(){i(s,a,o,n(u,l,c)),e(d,_,g,t(u,l,c))},saturation:function(){i(u,l,c,n(s,a,o)),e(d,_,g,t(u,l,c))},luminosity:function(){e(u,l,c,t(s,a,o))},color:function(){e(s,a,o,t(u,l,c))},add:function(){d=v(u+s,255),_=v(l+a,255),g=v(c+o,255)},subtract:function(){d=p(u-s,0),_=p(l-a,0),g=p(c-o,0)},average:function(){d=(u+s)/2,_=(l+a)/2,g=(c+o)/2},negation:function(){d=255-m(255-s-u),_=255-m(255-a-l),g=255-m(255-o-c)}},w=this.nativeModes=r.each(["source-over","source-in","source-out","source-atop","destination-over","destination-in","destination-out","destination-atop","lighter","darker","copy","xor"],function(t){this[t]=!0},{}),x=nt.getContext(1,1);x&&(r.each(y,function(t,e){varn="darken"===e,i=!1;x.save();try{x.fillStyle=n?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=n?"#a00":"#300",x.fillRect(0,0,1,1),i=x.getImageData(0,0,1,1).data[0]!==n?170:51)}catch(r){}x.restore(),w[e]=i}),nt.release(x)),this.process=function(t,e,n,i,r){varv=e.canvas,p="normal"===t;if(p||w[t])n.save(),n.setTransform(1,0,0,1,0,0),n.globalAlpha=i,p||(n.globalCompositeOperation=t),n.drawImage(v,r.x,r.y),n.restore();else{varm=y[t];if(!m)return;for(varx=n.getImageData(r.x,r.y,v.width,v.height),b=x.data,C=e.getImageData(0,0,v.width,v.height).data,S=0,k=b.length;S<k;S+=4){s=C[S],u=b[S],a=C[S+1],l=b[S+1],o=C[S+2],c=b[S+2],h=C[S+3],f=b[S+3],m();varI=h*i/255,P=1-I;b[S]=I*d+P*u,b[S+1]=I*_+P*l,b[S+2]=I*g+P*c,b[S+3]=h*i+P*f}n.putImageData(x,r.x,r.y)}}},rt=newfunction(){functiont(t,e,s){returnn(i.createElementNS(r,t),e,s)}functione(t,e){varn=o[e],i=n?t.getAttributeNS(n,e):t.getAttribute(e);return"null"===i?null:i}functionn(t,e,n){for(variine){varr=e[i],s=o[i];"number"==typeofr&&n&&(r=n.number(r)),s?t.setAttributeNS(s,i,r):t.setAttribute(i,r)}returnt}varr="http://www.w3.org/2000/svg",s="http://www.w3.org/2000/xmlns",a="http://www.w3.org/1999/xl
h=!0,o.test=null),D(ye)}elseo||q(),o.consequent.push(H());returno&&N(o,"SwitchCase"),A(),Ot.pop(),N(e,"SwitchStatement");caseYt:returnA(),Je.test(ft.slice(Mt,mt))&&n(Mt,"Illegal newline after throw"),e.argument=X(),R(),N(e,"ThrowStatement");casete:if(A(),e.block=W(),e.handler=null,bt===qt){varl=E();A(),D(ge),l.param=lt(),zt&&Ve(l.param.name)&&n(l.param.start,"Binding "+l.param.name+" in strict mode"),D(ve),l.guard=null,l.body=W(),e.handler=N(l,"CatchClause")}returne.guardedHandlers=Et,e.finalizer=F($t)?W():null,e.handler||e.finalizer||n(e.start,"Missing catch or finally clause"),N(e,"TryStatement");caseee:returnA(),J(e),R(),N(e,"VariableDeclaration");casene:returnA(),e.test=Z(),Ot.push(Ye),e.body=H(),Ot.pop(),N(e,"WhileStatement");caseie:returnzt&&n(mt,"'with' in strict mode"),A(),e.object=Z(),e.body=H(),N(e,"WithStatement");casede:returnW();caseme:returnA(),N(e,"EmptyStatement");default:varc=Ct,f=X();if(t===Ft&&"Identifier"===f.type&&F(ye)){for(varr=0;r<Ot.length;++r)Ot[r].name===c&&n(f.start,"Label '"+c+"' is already declared");vard=bt.isLoop?"loop":bt===Qt?"switch":null;returnOt.push({name:c,kind:d}),e.body=H(),Ot.pop(),e.label=f,N(e,"LabeledStatement")}returne.expression=f,R(),N(e,"ExpressionStatement")}}functionZ(){D(ge);vart=X();returnD(ve),t}functionW(t){vare,n=E(),i=!0,r=!1;for(n.body=[],D(de);!F(_e);){vars=H();n.body.push(s),i&&t&&B(s)&&(e=r,T(r=!0)),i=!1}returnr&&!e&&T(!1),N(n,"BlockStatement")}function$(t,e){returnt.init=e,D(me),t.test=bt===me?null:X(),D(me),t.update=bt===ve?null:X(),D(ve),t.body=H(),Ot.pop(),N(t,"ForStatement")}functionG(t,e){returnt.left=e,t.right=X(),D(ve),t.body=H(),Ot.pop(),N(t,"ForInStatement")}functionJ(t,e){for(t.declarations=[],t.kind="var";;){vari=E();if(i.id=lt(),zt&&Ve(i.id.name)&&n(i.id.start,"Binding "+i.id.name+" in strict mode"),i.init=F(Ce)?X(!0,e):null,t.declarations.push(N(i,"VariableDeclarator")),!F(pe))break}returnt}functionX(t,e){varn=K(e);if(!t&&bt===pe){vari=L(n);for(i.expressions=[n];F(pe);)i.expressions.push(K(e));returnN(i,"SequenceExpression")}returnn}functionK(t){vare=Q(t);if(bt.isAssign){varn=L(e);returnn.operator=Ct,n.left=e,A(),n.right=K(t),V(e),N(n,"AssignmentExpression")}returne}functionQ(t){vare=Y(t);if(F(xe)){varn=L(e);returnn.test=e,n.consequent=X(!0),D(ye),n.alternate=X(!0,t),N(n,"ConditionalExpression")}returne}functionY(t){returntt(et(),-1,t)}functiontt(t,e,n){vari=bt.binop;if(null!=i&&(!n||bt!==ue)&&i>e){varr=L(t);r.left=t,r.operator=Ct;vars=bt;A(),r.right=tt(et(),i,n);vara=N(r,s===Pe||s===Me?"LogicalExpression":"BinaryExpression");returntt(a,e,n)}returnt}functionet(){if(bt.prefix){vart=E(),e=bt.isUpdate;returnt.operator=Ct,t.prefix=!0,St=!0,A(),t.argument=et(),e?V(t.argument):zt&&"delete"===t.operator&&"Identifier"===t.argument.type&&n(t.start,"Deleting local variable in strict mode"),N(t,e?"UpdateExpression":"UnaryExpression")}for(vari=nt();bt.postfix&&!j();){vart=L(i);t.operator=Ct,t.prefix=!1,t.argument=i,V(i),A(),i=N(t,"UpdateExpression")}returni}functionnt(){returnit(rt())}functionit(t,e){if(F(we)){varn=L(t);returnn.object=t,n.property=lt(!0),n.computed=!1,it(N(n,"MemberExpression"),e)}if(F(ce)){varn=L(t);returnn.object=t,n.property=X(),n.computed=!0,D(fe),it(N(n,"MemberExpression"),e)}if(!e&&F(ge)){varn=L(t);returnn.callee=t,n.arguments=ut(ve,!1),it(N(n,"CallExpression"),e)}returnt}functionrt(){switch(bt){casese:vart=E();returnA(),N(t,"ThisExpression");caseFt:returnlt();caseLt:caseBt:caseNt:vart=E();returnt.value=Ct,t.raw=ft.slice(mt,yt),A(),N(t,"Literal");caseae:caseoe:casehe:vart=E();returnt.value=bt.atomValue,t.raw=bt.keyword,A(),N(t,"Literal");casege:vare=wt,n=mt;A();vari=X();returni.start=n,i.end=yt,ct.locations&&(i.loc.start=e,i.loc.end=xt),ct.ranges&&(i.range=[n,yt]),D(ve),i;casece:vart=E();returnA(),t.elements=ut(fe,!0,!0),N(t,"ArrayExpression");casede:returnat();caseJt:vart=E();returnA(),ht(t,!1);casere:returnst();default:q()}}functionst(){vart=E();returnA(),t.callee=it(rt(),!0),F(ge)?t.arguments=ut(ve,!1):t.arguments=Et,N(t,"New