!function(s,h){var e,a,i,r,n,o,c,u,l,f,d={},p=s.document,m=Object.prototype.toString,g=Array.prototype.slice,y=Function.prototype.call.bind(Object.prototype.hasOwnProperty),v=/^\d*\.\d+$/,b=/^(\d+|(\d+)?\.\d+)(em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|px|pt|pc)?$/,x=s.URL||s.webkitURL||s,w={mouse:["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","mousewheel","blur","focus"],touch:["touchstart","touchmove","touchend","touchcancel"],pointer:["pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","gotpointercapture","lostpointercapture"],keyboard:["keypress","keydown","keyup"]},k=s.requestAnimationFrame||s.webkitRequestAnimationFrame||s.mozRequestAnimationFrame||s.oRequestAnimationFrame||s.msRequestAnimationFrame||function(t){return s.setTimeout(t,1e3/60)};s.cancelAnimationFrame||s.webkitCancelAnimationFrame||s.mozCancelAnimationFrame||s.oCancelAnimationFrame||s.msCancelAnimationFrame||s.cancelRequestAnimationFrame||s.webkitCancelRequestAnimationFrame||s.mozCancelRequestAnimationFrame||s.oCancelRequestAnimationFrame||s.msCancelRequestAnimationFrame||s.clearTimeout;function O(t){return t.constructor===String}function A(t){return t.constructor===Object}function C(t){return Array.isArray(t)}function M(t,e,r,s){r<0&&(t-=r=-r),s<0&&(e-=s=-s),this.x=this.x1=t,this.y=this.y1=e,this.w=this.width=r,this.h=this.height=s,this.x2=t+r,this.y2=e+s,this.cx=t+r/2,this.cy=e+s/2}function A(t){return"[object Object]"===m.call(t)}function P(t){return+t===t||t+""===t&&b.test(t)}d.renderers={},d.xtypes={rect:d.Rect,circle:d.Circle,path:d.Path,curve:d.Curve,image:d.Image,text:d.Text,gradient:d.Gradient,pattern:d.Pattern},d.bounds=function(t,e,r,s){return new M(t,e,r,s)},d.Class=F,d.Bounds=M,d.argument=function(e){return function(t){return this.argument(e,t)}},d.wrap=function(t,e){var r=t[e];return t=g.call(t,e+1),function(){this[r].apply(this,t)}},d.isObject=A,d.isNumberLike=P,d.isPatternLike=function(t){return t instanceof Image||A(t)&&y(t,"image")||t+""===t&&!(t.indexOf("http://")&&t.indexOf("https://")&&t.indexOf("./")&&t.indexOf("../")&&t.indexOf("data:image/")&&t.indexOf("this.attrs.x&&e>this.attrs.y&&ti.x1&&e>i.y1&&te[0]?1:-1});s[r][0]s[s.length-1][0])return d.color(s[s.length-1][1]);var i=d.color(s[r-1][1]),n=d.color(s[r][1]);return t=(t-s[r-1][0])/(s[r][0]-s[r-1][0]),[i[0]+(n[0]-i[0])*t+.5|0,i[1]+(n[1]-i[1])*t+.5|0,i[2]+(n[2]-i[2])*t+.5|0,+(i[3]+(n[3]-i[3])*t).toFixed(2)]}}),l.types={default:"linear",linear:{attrHooks:new l.AttrHooks({from:{set:N},to:{set:N}}),toCanvasStyle:function(t,e){var r=O(this.attrs.from)?e.corner(this.attrs.from,this.attrs.boundsOptions):this.attrs.from,s=O(this.attrs.to)?e.corner(this.attrs.to,this.attrs.boundsOptions):this.attrs.to,i=this.attrs.colors,n=r+" "+s;if(this.cached&&this.cached.key===n)return this.cached.grad;var a=t.createLinearGradient(r[0],r[1],s[0],s[1]);return i.forEach(function(t){a.addColorStop(t[0],t[1])}),this.cached={grad:a,key:n},a}},radial:{attrHooks:new l.AttrHooks({from:{set:function(t){C(t)&&2