},moveBy:function(){thrownewError("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([newM(c.read(arguments))])},cubicCurveTo:function(){vare=c.read(arguments),n=c.read(arguments),i=c.read(arguments),r=t(this);r.setHandleOut(e.subtract(r._point)),this._add([newM(i,n.subtract(i))])},quadraticCurveTo:function(){vare=c.read(arguments),n=c.read(arguments),i=t(this)._point;this.cubicCurveTo(e.add(i.subtract(e).multiply(1/3)),e.add(n.subtract(e).multiply(1/3)),n)},curveTo:function(){vare=c.read(arguments),n=c.read(arguments),i=r.pick(r.read(arguments),.5),s=1-i,a=t(this)._point,o=e.subtract(a.multiply(s*s)).subtract(n.multiply(i*i)).divide(2*i*s);if(o.isNaN())thrownewError("Cannot put a curve through points with parameter = "+i);this.quadraticCurveTo(o,n)},arcTo:function(){vare,n,i,s,a,o=Math.abs,h=Math.sqrt,l=t(this),f=l._point,_=c.read(arguments),g=r.peek(arguments),v=r.pick(g,!0);if("boolean"==typeofv)vary=f.add(_).divide(2),e=y.add(y.subtract(f).rotate(v?-90:90));elseif(r.remain(arguments)<=2)e=_,_=c.read(arguments);elseif(!f.equals(_)){varw=d.read(arguments),x=u.isZero;if(x(w.width)||x(w.height))returnthis.lineTo(_);varb=r.read(arguments),v=!!r.read(arguments),C=!!r.read(arguments),y=f.add(_).divide(2),S=f.subtract(y).rotate(-b),k=S.x,I=S.y,P=o(w.width),T=o(w.height),A=P*P,O=T*T,z=k*k,L=I*I,E=h(z/A+L/O);if(E>1&&(P*=E,T*=E,A=P*P,O=T*T),E=(A*O-A*L-O*z)/(A*L+O*z),o(E)<1e-12&&(E=0),E<0)thrownewError("Cannot create an arc with the given arguments");n=newc(P*I/T,-T*k/P).multiply((C===v?-1:1)*h(E)).rotate(b).add(y),a=(newp).translate(n).rotate(b).scale(P,T),s=a._inverseTransform(f),i=s.getDirectedAngle(a._inverseTransform(_)),!v&&i>0?i-=360:v&&i<0&&(i+=360)}if(e){varN=newm(f.add(e).divide(2),e.subtract(f).rotate(90),(!0)),B=newm(e.add(_).divide(2),_.subtract(e).rotate(90),(!0)),F=newm(f,_),j=F.getSide(e);if(n=N.intersect(B,!0),!n){if(!j)returnthis.lineTo(_);thrownewError("Cannot create an arc with the given arguments")}s=f.subtract(n),i=s.getDirectedAngle(_.subtract(n));varR=F.getSide(n,!0);0===R?i=j*o(i):j===R&&(i+=i<0?360:-360)}if(i){for(varD=1e-7,q=o(i),V=q>=360?4:Math.ceil((q-D)/90),U=i/V,H=U*Math.PI/360,Z=4/3*Math.sin(H)/(1+Math.cos(H)),W=[],$=0;$<=V;$++){varS=_,G=null;if($<V&&(G=s.rotate(90).multiply(Z),a?(S=a._transformPoint(s),G=a._transformPoint(s.add(G)).subtract(S)):S=n.add(s)),$){varJ=s.rotate(-90).multiply(Z);a&&(J=a._transformPoint(s.add(J)).subtract(S)),W.push(newM(S,J,G))}elsel.setHandleOut(G);s=s.rotate(U)}this._add(W)}},lineBy:function(){vare=c.read(arguments),n=t(this)._point;this.lineTo(n.add(e))},curveBy:function(){vare=c.read(arguments),n=c.read(arguments),i=r.read(arguments),s=t(this)._point;this.curveTo(s.add(e),s.add(n),i)},cubicCurveBy:function(){vare=c.read(arguments),n=c.read(arguments),i=c.read(arguments),r=t(this)._point;this.cubicCurveTo(r.add(e),r.add(n),r.add(i))},quadraticCurveBy:function(){vare=c.read(arguments),n=c.read(arguments),i=t(this)._point;this.quadraticCurveTo(i.add(e),i.add(n))},arcBy:function(){vare=t(this)._point,n=e.add(c.read(arguments)),i=r.pick(r.peek(arguments),!0);"boolean"==typeofi?this.arcTo(n,i):this.arcTo(n,e.add(c.read(arguments)))},closePath:function(t){this.setClosed(!0),this.join(this,t)}}},{_getBounds:function(t,e){varn=e.handle?"getHandleBounds":e.stroke?"getStrokeBounds":"getBounds";returnL[n](this._segments,this._closed,this,t,e)},statics:{getBounds:function(t,e,n,i,r,s){functiona(t){t._transformCoordinates(i,h);for(vare=0;e<2;e++)A._addBounds(u[e],u[e+4],h[e+2],h[e],e,s?s[e]:0,l,c,f);varn=u;u=h,h=n}varo=t[0];if(!o)returnnewg;for(varh=newArray(6),u=o._transformCoordinates(i,newArray(6)),l=u.slice(0,2),c=l.slice(),f=newArray(2),d=1,_=t.length;d<_;d++)a(t[d]);returne&&a(o),newg(l[0],l[1],c[0]-l[0],c[1]-l[1])},getStrokeBounds:function(t,e,n,i,r){functions(t){v=v.include(t)}functiona(t){v=v.unite(x.setCenter(t._point.transform(i)))}functiono(t,e){"round"===e||t.isSmooth()?a(t):L._addBevelJoin(t,e,p,w,i,f,s)}functionh(t,e){"round"===e?a(t):L._addSquareCap(t,e,p,i,f,s)}varu=n.getStyle(),l=u.
returne===this||e&&this._class===e._class&&this._type===e._type&&this.getAlpha()===e.getAlpha()&&r.equals(this._components,e._components)||!1},toString:function(){for(vart=this._properties,e=[],n="gradient"===this._type,i=h.instance,r=0,s=t.length;r<s;r++){vara=this._components[r];null!=a&&e.push(t[r]+": "+(n?a:i.number(a)))}returnnull!=this._alpha&&e.push("alpha: "+i.number(this._alpha)),"{ "+e.join(", ")+" }"},toCSS:function(t){functione(t){returnMath.round(255*(t<0?0:t>1?1:t))}varn=this._convert("rgb"),i=t||null==this._alpha?1:this._alpha;returnn=[e(n[0]),e(n[1]),e(n[2])],i<1&&n.push(i<0?0:i),t?"#"+((1<<24)+(n[0]<<16)+(n[1]<<8)+n[2]).toString(16).slice(1):(4==n.length?"rgba(":"rgb(")+n.join(",")+")"},toCanvasStyle:function(t,e){if(this._canvasStyle)returnthis._canvasStyle;if("gradient"!==this._type)returnthis._canvasStyle=this.toCSS();varn,i=this._components,r=i[0],s=r._stops,a=i[1],o=i[2],h=i[3],u=e&&e.inverted();if(u&&(a=u._transformPoint(a),o=u._transformPoint(o),h&&(h=u._transformPoint(h))),r._radial){varl=o.getDistance(a);if(h){varc=h.subtract(a);c.getLength()>l&&(h=a.add(c.normalize(l-.1)))}varf=h||a;n=t.createRadialGradient(f.x,f.y,0,a.x,a.y,l)}elsen=t.createLinearGradient(a.x,a.y,o.x,o.y);for(vard=0,_=s.length;d<_;d++){varg=s[d],v=g._offset;n.addColorStop(null==v?d/(_-1):v,g._color.toCanvasStyle())}returnthis._canvasStyle=n},transform:function(t){if("gradient"===this._type){for(vare=this._components,n=1,i=e.length;n<i;n++){varr=e[n];t._transformPoint(r,r,!0)}this._changed()}},statics:{_types:i,random:function(){vart=Math.random;returnnewR(t(),t(),t())},_setOwner:function(t,e,n){returnt&&(t._owner&&e&&t._owner!==e&&(t=t.clone()),!t._owner^!e&&(t._owner=e||null,t._setter=n||null)),t}}})},newfunction(){vart={add:function(t,e){returnt+e},subtract:function(t,e){returnt-e},multiply:function(t,e){returnt*e},divide:function(t,e){returnt/e}};returnr.each(t,function(t,e){this[e]=function(e){e=R.read(arguments);for(varn=this._type,i=this._components,r=e._convert(n),s=0,a=i.length;s<a;s++)r[s]=t(i[s],r[s]);returnnewR(n,r,null!=this._alpha?t(this._alpha,e.getAlpha()):null)}},{})}),D=r.extend({_class:"Gradient",initialize:function(t,e){this._id=l.get(),t&&r.isPlainObject(t)&&(this.set(t),t=e=null),null==this._stops&&this.setStops(t||["white","black"]),null==this._radial&&this.setRadial("string"==typeofe&&"radial"===e||e||!1)},_serialize:function(t,e){returne.add(this,function(){returnr.serialize([this._stops,this._radial],t,!0,e)})},_changed:function(){for(vart=0,e=this._owners&&this._owners.length;t<e;t++)this._owners[t]._changed()},_addOwner:function(t){this._owners||(this._owners=[]),this._owners.push(t)},_removeOwner:function(t){varn=this._owners?this._owners.indexOf(t):-1;n!=-1&&(this._owners.splice(n,1),this._owners.length||(this._owners=e))},clone:function(){for(vart=[],e=0,n=this._stops.length;e<n;e++)t[e]=this._stops[e].clone();returnnewD(t,this._radial)},getStops:function(){returnthis._stops},setStops:function(t){if(t.length<2)thrownewError("Gradient stop list needs to contain at least two stops.");varn=this._stops;if(n)for(vari=0,r=n.length;i<r;i++)n[i]._owner=e;n=this._stops=q.readList(t,0,{clone:!0});for(vari=0,r=n.length;i<r;i++)n[i]._owner=this;this._changed()},getRadial:function(){returnthis._radial},setRadial:function(t){this._radial=t,this._changed()},equals:function(t){if(t===this)return!0;if(t&&this._class===t._class){vare=this._stops,n=t._stops,i=e.length;if(i===n.length){for(varr=0;r<i;r++)if(!e[r].equals(n[r]))return!1;return!0}}return!1}}),q=r.extend({_class:"GradientStop",initialize:function(t,n){vari=t,r=n;"object"==typeoft&&n===e&&(Array.isArray(t)&&"number"!=typeoft[0]?(i=t[0],r=t[1]):("color"int||"offset"int||"rampPoint"int)&&(i=t.color,r=t.offset||t.rampPoint||0)),this.setColor(i),this.setOffset(r)},clone:function(){returnnewq(this._color.clone(),this._offset)},_serialize:function(t,e){varn=this._color,i=this._offset;returnr.serialize(null==i?[n]:[n,i],t,!0,e)},_changed:function(){this._owner&&this._owner._changed(129)},getOffset:fun
T(),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=L(),e=bt.isUpdate;returnt.operator=Ct,t.prefix=!0,St=!0,T(),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=E(i);t.operator=Ct,t.prefix=!1,t.argument=i,V(i),T(),i=N(t,"UpdateExpression")}returni}functionnt(){returnit(rt())}functionit(t,e){if(F(we)){varn=E(t);returnn.object=t,n.property=lt(!0),n.computed=!1,it(N(n,"MemberExpression"),e)}if(F(ce)){varn=E(t);returnn.object=t,n.property=X(),n.computed=!0,D(fe),it(N(n,"MemberExpression"),e)}if(!e&&F(ge)){varn=E(t);returnn.callee=t,n.arguments=ut(ve,!1),it(N(n,"CallExpression"),e)}returnt}functionrt(){switch(bt){casese:vart=L();returnT(),N(t,"ThisExpression");caseFt:returnlt();caseEt:caseBt:caseNt:vart=L();returnt.value=Ct,t.raw=ft.slice(mt,yt),T(),N(t,"Literal");caseae:caseoe:casehe:vart=L();returnt.value=bt.atomValue,t.raw=bt.keyword,T(),N(t,"Literal");casege:vare=wt,n=mt;T();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=L();returnT(),t.elements=ut(fe,!0,!0),N(t,"ArrayExpression");casede:returnat();caseJt:vart=L();returnT(),ht(t,!1);casere:returnst();default:q()}}functionst(){vart=L();returnT(),t.callee=it(rt(),!0),F(ge)?t.arguments=ut(ve,!1):t.arguments=Lt,N(t,"NewExpression")}functionat(){vart=L(),e=!0,i=!1;for(t.properties=[],T();!F(_e);){if(e)e=!1;elseif(D(pe),ct.allowTrailingCommas&&F(_e))break;varr,s={key:ot()},a=!1;if(F(ye)?(s.value=X(!0),r=s.kind="init"):ct.ecmaVersion>=5&&"Identifier"===s.key.type&&("get"===s.key.name||"set"===s.key.name)?(a=i=!0,r=s.kind=s.key.name,s.key=ot(),bt!==ge&&q(),s.value=ht(L(),!1)):q(),"Identifier"===s.key.type&&(zt||i))for(varo=0;o<t.properties.length;++o){varh=t.properties[o];if(h.key.name===s.key.name){varu=r==h.kind||a&&"init"===h.kind||"init"===r&&("get"===h.kind||"set"===h.kind);u&&!zt&&"init"===r&&"init"===h.kind&&(u=!1),u&&n(s.key.start,"Redefinition of property")}}t.properties.push(s)}returnN(t,"ObjectExpression")}functionot(){returnbt===Et||bt===Bt?rt():lt(!0)}functionht(t,e){bt===Ft?t.id=lt():e?q():t.id=null,t.params=[];vari=!0;for(D(ge);!F(ve);)i?i=!1:D(pe),t.params.push(lt());varr=At,s=Ot;if(At=!0,Ot=[],t.body=W(!0),At=r,Ot=s,zt||t.body.body.length&&B(t.body.body[0]))for(vara=t.id?-1:0;a<t.params.length;++a){varo=a<0?t.id:t.params[a];if((qe(o.name)||Ve(o.name))&&n(o.start,"Defining '"+o.name+"' in strict mode"),a>=0)for(varh=0;h<a;++h)o.name===t.params[h].name&&n(o.start,"Argument name clash in strict mode")}returnN(t,e?"FunctionDeclaration":"FunctionExpression")}functionut(t,e,n){for(vari=[],r=!0;!F(t);){if(r)r=!1;elseif(D(pe),e&&ct.allowTrailingCommas&&F(t))break;n&&bt===pe?i.push(null):i.push(X(!0))}returni}functionlt(t){vare=L();returnt&&"everywhere"==ct.forbidReserved&&(t=!1),bt===Ft?(!t&&(ct.forbidReserved&&(3===ct.ecmaVersion?Re:De)(Ct)||zt&&qe(Ct))&&ft.slice(mt,yt).indexOf("\\")==-1&&n(mt,"The keyword '"+Ct+"' is reserved"),e.name=Ct):t&&bt.keyword?e.name=bt.keyword:q(),St=!1,T(),N(e,"Identifier")}t.version="0.5.0";varct,ft,dt,_t;t.parse=function(t,n){returnft=String(t),dt=ft.length,e(n),s(),U(ct.program)};vargt=t.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbidReserved:!1,allowReturnOutsideFunction:!1,locations:!1,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null},vt=t.getLineInfo=function(t,e){for(varn=1,i=0;;){Xe.lastIndex=i;varr=Xe.exec(t);if(!(r&&r.index<e))break;++n,i=r.index+r[0].length}return{line:n,column:e-i}};t.tokenize=function(t,n){functioni(t){returnMt=yt,y(t),r.start=mt,r.end=yt,r.startLoc=wt,r.endLoc=xt,r.type=bt,r.value=Ct,r}ft=String(t),dt=ft.length,e(n),s();varr={};returni.jumpTo=function(t,e){if(pt=t,ct.locations){kt=1,It=Xe.lastIndex=0;for(varn;(n=Xe.exec(ft))&&n