text: /**
   * ag-charts-community - Advanced Charting / Charts supporting Javascript / React / Angular * @version v1.2.0
   * @link http://www.ag-grid.com/
  ' * @license MIT
   */
  
  /**
   * ag-charts-community - Advanced Charting / Charts supporting Javascript / React / Angular * @version v1.2.0
   * @link http://www.ag-grid.com/
  ' * @license MIT
   */
  var t,e=function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=t),void 0===n&&(n=e),this.top=t,this.right=e,this.bottom=i,this.left=n}return t.prototype.clear=function(){this.top=this.right=this.bottom=this.left=0},t}(),i=function(){function t(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.isValid=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.dilate=function(t){this.x-=t,this.y-=t,this.width+=2*t,this.height+=2*t},t.prototype.containsPoint=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.render=function(e,i){void 0===i&&(i=t.noParams),e.save(),i.resetTransform&&e.setTransform(1,0,0,1,0,0),e.strokeStyle=i.strokeStyle||"cyan",e.lineWidth=i.lineWidth||1,e.strokeRect(this.x,this.y,this.width,this.height),i.label&&(e.fillStyle=i.fillStyle||"black",e.textBaseline="bottom",e.fillText(i.label,this.x,this.y)),e.restore()},t.noParams={},t}(),n=function(){function t(t){void 0===t&&(t=[1,0,0,1,0,0]),this.elements=t}return t.prototype.setElements=function(t){var e=this.elements;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},t.prototype.setIdentityElements=function(){var t=this.elements;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},Object.defineProperty(t.prototype,"identity",{get:function(){var t=this.elements;return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.elements[0]},set:function(t){this.elements[0]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.elements[1]},set:function(t){this.elements[1]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.elements[2]},set:function(t){this.elements[2]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d",{get:function(){return this.elements[3]},set:function(t){this.elements[3]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"e",{get:function(){return this.elements[4]},set:function(t){this.elements[4]=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"f",{get:function(){return this.elements[5]},set:function(t){this.elements[5]=t},enumerable:!0,configurable:!0}),t.prototype.AxB=function(t,e,i){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],h=t[5],u=e[0],l=e[1],c=e[2],f=e[3],p=e[4],d=e[5];(i=i||t)[0]=n*u+o*l,i[1]=r*u+a*l,i[2]=n*c+o*f,i[3]=r*c+a*f,i[4]=n*p+o*d+s,i[5]=r*p+a*d+h},t.prototype.multiplySelf=function(t){return this.AxB(this.elements,t.elements),this},t.prototype.multiply=function(e){var i=new Array(6);return this.AxB(this.elements,e.elements,i),new t(i)},t.prototype.preMultiplySelf=function(t){return this.AxB(t.elements,this.elements,this.elements),this},t.prototype.inverse=function(){var e=this.elements,i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],h=1/(i*o-n*r);return new t([o*=h,-(n*=h),-(r*=h),i*=h,r*s-o*a,n*a-i*s])},t.prototype.inverseTo=function(t){var e=this.elements,i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],h=1/(i*o-n*r);return i*=h,n*=h,r*=h,o*=h,t.setElements([o,-n,-r,i,r*s-o*a,n*a-i*s]),this},t.prototype.invertSelf=function(){var t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],o=t[4],a=t[5],s=1/(e*r-i*n);return e*=s,i*=s,n*=s,r*=s,t[0]=r,t[1]=-i,t[2]=-n,t[3]=e,t[4]=n*a-r*o,t[5]=i*o-e*a,this},t.prototype.clone=function(){return new t(this.elements.slice())},t.prototype.transformPoint=function(t,e){var i=this.elements;return{x:t*i[0]+e*i[2]+i[4],y:t*i[1]+e*i[3]+i[5]}},t.prototype.transformBBox=function(t,e,n){void 0===e&&(e=0);var r,o,a=this.elements,s=a[0],h=a[1],u=a[2],l=a[3],c=.5*t.width,f=.5*t.height,p=t.x+c,d=t.y+f;if(e){c-=e,f-=e;var y=Math.sqrt(s*s+u*u),g=Math.sqrt(h*h+l*l);r=Math.abs(c*s)+Math.abs(f*u)+Math.abs(y*e),o=Math.abs(c*h)+Math.abs(f*l)+Math.abs(g*e)}else r=Math.abs(c*s)+Math.abs(f*u),o=Math.abs(c*h)+Math.abs(f*l);return n||(n=new i(0,0,0,0)),n.x=p*s+d*u+a[4]-r,n.y=p*h+d*l+a[5]-o,n.width=r+r,n.height=o+o,n},t.prototype.toContext=function(t){if(!this.identity){var e=this.elements;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},t.flyweight=function(e){return e?e instanceof t?t.matrix.setElements(e.elements):t.matrix.setElements(e):t.matrix.setIdentityElements(),t.matrix},t.matrix=new t,t}();function r(t){var e=t.constructor,i=e.className;if(!i)throw new Error("The "+e+" is missing the 'className' property.");return i+"-"+(e.id=(e.id||0)+1)}!function(t){t[t.All=0]="All",t[t.None=1]="None"}(t||(t={}));var o=function(){function e(){this.id=r(this),this.tag=NaN,this.isContainerNode=!1,this._children=[],this.childSet={},this.matrix=new n,this.inverseMatrix=new n,this._dirtyTransform=!1,this._scalingX=1,this._scalingY=1,this._scalingCenterX=null,this._scalingCenterY=null,this._rotationCenterX=null,this._rotationCenterY=null,this._rotation=0,this._translationX=0,this._translationY=0,this._dirty=!0,this._visible=!0,this.pointerEvents=t.All}return e.isNode=function(t){return!!t&&void 0!==t.matrix},e.prototype._setScene=function(t){this._scene=t;for(var e=this.children,i=e.length,n=0;n<i;n++)e[n]._setScene(t)},Object.defineProperty(e.prototype,"scene",{get:function(){return this._scene},enumerable:!0,configurable:!0}),e.prototype._setParent=function(t){this._parent=t},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),e.prototype.countChildren=function(t){if(void 0===t&&(t=e.MAX_SAFE_INTEGER),t<=0)return 0;for(var i=this.children,n=i.length,r=n,o=0;o<n;o++)r+=i[o].countChildren(t-1);return r},e.prototype.append=function(t){e.isNode(t)&&(t=[t]);for(var i=t.length,n=0;n<i;n++){var r=t[n];if(r.parent)throw new Error(r+" already belongs to another parent: "+r.parent+".");if(r.scene)throw new Error(r+" already belongs a scene: "+r.scene+".");if(this.childSet[r.id])throw new Error("Duplicate "+r.constructor.name+" node: "+r);this._children.push(r),this.childSet[r.id]=!0,r._setParent(this),r._setScene(this.scene)}this.dirty=!0},e.prototype.appendChild=function(t){if(t.parent)throw new Error(t+" already belongs to another parent: "+t.parent+".");if(t.scene)throw new Error(t+" already belongs a scene: "+t.scene+".");if(this.childSet[t.id])throw new Error("Duplicate "+t.constructor.name+" node: "+t);return this._children.push(t),this.childSet[t.id]=!0,t._setParent(this),t._setScene(this.scene),this.dirty=!0,t},e.prototype.removeChild=function(t){if(t.parent===this){var e=this.children.indexOf(t);if(e>=0)return this._children.splice(e,1),delete this.childSet[t.id],t._setParent(void 0),t._setScene(void 0),this.dirty=!0,t}throw new Error("The node to be removed is not a child of this node.")},e.prototype.insertBefore=function(t,e){var i=t.parent;if(t.parent&&t.parent.removeChild(t),e&&e.parent===this){var n=this.children.indexOf(e);if(!(n>=0))throw new Error(e+" has "+i+" as the parent, but is not in its list of children.");this._children.splice(n,0,t),this.childSet[t.id]=!0,t._setParent(this),t._setScene(this.scene),this.dirty=!0}else this.append(t);return t},Object.defineProperty(e.prototype,"nextSibling",{get:function(){var t=this.parent;if(t){var e=t.children,i=e.indexOf(this);if(i>=0&&i<=e.length-1)return e[i+1]}},enumerable:!0,configurable:!0}),e.prototype.transformPoint=function(t,e){for(var i=n.flyweight(this.matrix),r=this.parent;r;)i.preMultiplySelf(r.matrix),r=r.parent;return i.invertSelf().transformPoint(t,e)},e.prototype.inverseTransformPoint=function(t,e){for(var i=n.flyweight(this.matrix),r=this.parent;r;)i.preMultiplySelf(r.matrix),r=r.parent;return i.transformPoint(t,e)},Object.defineProperty(e.prototype,"dirtyTransform",{get:function(){return this._dirtyTransform},set:function(t){this._dirtyTransform=t,t&&(this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this._scalingX},set:function(t){this._scalingX!==t&&(this._scalingX=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this._scalingY},set:function(t){this._scalingY!==t&&(this._scalingY=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterX",{get:function(){return this._scalingCenterX},set:function(t){this._scalingCenterX!==t&&(this._scalingCenterX=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterY",{get:function(){return this._scalingCenterY},set:function(t){this._scalingCenterY!==t&&(this._scalingCenterY=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterX",{get:function(){return this._rotationCenterX},set:function(t){this._rotationCenterX!==t&&(this._rotationCenterX=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterY",{get:function(){return this._rotationCenterY},set:function(t){this._rotationCenterY!==t&&(this._rotationCenterY=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDeg",{get:function(){return this.rotation/Math.PI*180},set:function(t){this.rotation=t/180*Math.PI},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function(){return this._translationX},set:function(t){this._translationX!==t&&(this._translationX=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this._translationY},set:function(t){this._translationY!==t&&(this._translationY=t,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),e.prototype.containsPoint=function(t,e){return!1},e.prototype.pickNode=function(e,i){if(this.visible&&this.pointerEvents!==t.None&&this.containsPoint(e,i)){var n=this.children;if(n.length)for(var r=n.length-1;r>=0;r--){var o=n[r].pickNode(e,i);if(o)return o}else if(!this.isContainerNode)return this}},e.prototype.computeBBox=function(){},e.prototype.computeBBoxCenter=function(){var t=this.computeBBox&&this.computeBBox();return t?[t.x+.5*t.width,t.y+.5*t.height]:[0,0]},e.prototype.computeTransformMatrix=function(){var t,e,i=[0,0],n=i[0],r=i[1],o=this.scalingX,a=this.scalingY;1===o&&1===a?(t=0,e=0):(t=null===this.scalingCenterX?n:this.scalingCenterX,e=null===this.scalingCenterY?r:this.scalingCenterY);var s,h,u=this.rotation,l=Math.cos(u),c=Math.sin(u);0===u?(s=0,h=0):(s=null===this.rotationCenterX?n:this.rotationCenterX,h=null===this.rotationCenterY?r:this.rotationCenterY);var f=this.translationX,p=this.translationY,d=t*(1-o)-s,y=e*(1-a)-h;this.dirtyTransform=!1,this.matrix.setElements([l*o,c*o,-c*a,l*a,l*d-c*y+s+f,c*d+l*y+h+p]).inverseTo(this.inverseMatrix)},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(t){this._dirty=t,t&&(this.parent?this.parent.dirty=!0:this.scene&&(this.scene.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._visible=t,this.dirty=!0)},enumerable:!0,configurable:!0}),e.MAX_SAFE_INTEGER=Math.pow(2,53)-1,e}();function a(t,e){var i=Object.create(t);for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i}var s,h=(s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.lastInstanceId=0,i._fillOpacity=1,i._strokeOpacity=1,i._fill=e.defaultStyles.fill,i._stroke=e.defaultStyles.stroke,i._strokeWidth=e.defaultStyles.strokeWidth,i._lineDash=e.defaultStyles.lineDash,i._lineDashOffset=e.defaultStyles.lineDashOffset,i._lineCap=e.defaultStyles.lineCap,i._lineJoin=e.defaultStyles.lineJoin,i._opacity=e.defaultStyles.opacity,i.onShadowChange=function(){i.dirty=!0},i._fillShadow=e.defaultStyles.fillShadow,i._strokeShadow=e.defaultStyles.strokeShadow,i}return h(e,t),e.createInstance=function(t){var e=Object.create(t);return e._setParent(void 0),e.id=t.id+"-Instance-"+String(++t.lastInstanceId),e},e.prototype.restoreOwnStyles=function(){for(var t=this.constructor.defaultStyles,e=Object.getOwnPropertyNames(t),i=0,n=e.length;i<n;i++){var r=e[i];this[r]=t[r]}},e.prototype.restoreAllStyles=function(){var t=this.constructor.defaultStyles;for(var e in t)this[e]=t[e]},e.prototype.restoreOverriddenStyles=function(){var t=this.constructor.defaultStyles,e=Object.getPrototypeOf(t);for(var i in t)t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&(this[i]=t[i])},Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(t){this._fillOpacity!==t&&(this._fillOpacity=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(t){this._strokeOpacity!==t&&(this._strokeOpacity=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){this._fill!==t&&(this._fill=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){this._stroke!==t&&(this._stroke=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth!==t&&(this._strokeWidth=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return Math.floor(this.strokeWidth)%2/2},enumerable:!0,configurable:!0}),e.prototype.align=function(t,e,i){return null!=i?Math.floor(i)+Math.floor(e%1+i%1):Math.floor(e)+t},Object.defineProperty(e.prototype,"lineDash",{get:function(){return this._lineDash},set:function(t){var e=this._lineDash;if(e!==t){if(e&&t&&e.length===t.length){for(var i=!0,n=t.length,r=0;r<n;r++)if(e[r]!==t[r]){i=!1;break}if(i)return}this._lineDash=t,this.dirty=!0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineDashOffset",{get:function(){return this._lineDashOffset},set:function(t){this._lineDashOffset!==t&&(this._lineDashOffset=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineCap",{get:function(){return this._lineCap},set:function(t){this._lineCap!==t&&(this._lineCap=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},set:function(t){t=Math.min(1,Math.max(0,t)),this._opacity!==t&&(this._opacity=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillShadow",{get:function(){return this._fillShadow},set:function(t){var e=this._fillShadow;e!==t&&(e&&e.removeEventListener("change",this.onShadowChange),t&&t.addEventListener("change",this.onShadowChange),this._fillShadow=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeShadow",{get:function(){return this._strokeShadow},set:function(t){var e=this._strokeShadow;e!==t&&(e&&e.removeEventListener("change",this.onShadowChange),t&&t.addEventListener("change",this.onShadowChange),this._strokeShadow=t,this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.fillStroke=function(t){var e=this.scene.canvas.pixelRatio||1;if(this.fill){t.fillStyle=this.fill,t.globalAlpha=this.opacity*this.fillOpacity;var i=this.fillShadow;i&&i.enabled&&(t.shadowColor=i.color,t.shadowOffsetX=i.xOffset*e,t.shadowOffsetY=i.yOffset*e,t.shadowBlur=i.blur*e),t.fill()}if(t.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.strokeWidth){t.strokeStyle=this.stroke,t.globalAlpha=this.opacity*this.strokeOpacity,t.lineWidth=this.strokeWidth,this.lineDash&&t.setLineDash(this.lineDash),this.lineDashOffset&&(t.lineDashOffset=this.lineDashOffset),this.lineCap&&(t.lineCap=this.lineCap),this.lineJoin&&(t.lineJoin=this.lineJoin);var n=this.strokeShadow;n&&n.enabled&&(t.shadowColor=n.color,t.shadowOffsetX=n.xOffset*e,t.shadowOffsetY=n.yOffset*e,t.shadowBlur=n.blur*e),t.stroke()}},e.prototype.containsPoint=function(t,e){return this.isPointInPath(t,e)},e.defaultStyles=a({},{fill:"black",stroke:void 0,strokeWidth:0,lineDash:void 0,lineDashOffset:0,lineCap:void 0,lineJoin:void 0,opacity:1,fillShadow:void 0,strokeShadow:void 0}),e}(o),l=function(){function t(t,e,i){void 0===t&&(t=window.document),void 0===e&&(e=600),void 0===i&&(i=300),this._container=void 0,this._pixelRatio=NaN,this.document=t,this.element=t.createElement("canvas"),this.context=this.element.getContext("2d"),this.element.style.userSelect="none",this.element.style.display="block",this.setPixelRatio(),this.resize(e,i)}return Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container!==t&&(this.remove(),t&&t.appendChild(this.element),this._container=t)},enumerable:!0,configurable:!0}),t.prototype.remove=function(){var t=this.element.parentNode;null!=t&&t.removeChild(this.element)},t.prototype.destroy=function(){this.element.remove(),this._canvas=void 0,Object.freeze(this)},t.prototype.toImage=function(){var t=this.document.createElement("img");return t.src=this.getDataURL(),t},t.prototype.getDataURL=function(t){return this.element.toDataURL(t)},t.prototype.download=function(t){t=((t||"").trim()||"image")+".png";var e=this.getDataURL("image/png"),i=this.document;if(navigator.msSaveOrOpenBlob){for(var n=atob(e.split(",")[1]),r=[],o=0,a=n.length;o<a;o++)r.push(n.charCodeAt(o));var s=new Blob([new Uint8Array(r)],{type:"image/png"});navigator.msSaveOrOpenBlob(s,t)}else{var h=i.createElement("a");h.href=e,h.download=t,h.style.display="none",i.body.appendChild(h),h.click(),i.body.removeChild(h)}},Object.defineProperty(t.prototype,"pixelRatio",{get:function(){return this._pixelRatio},enumerable:!0,configurable:!0}),t.prototype.setPixelRatio=function(e){var i=e||window.devicePixelRatio;i!==this.pixelRatio&&(t.overrideScale(this.context,i),this._pixelRatio=i,this.resize(this.width,this.height))},Object.defineProperty(t.prototype,"pixelated",{get:function(){return"pixelated"===this.element.style.imageRendering},set:function(t){this.element.style.imageRendering=t?"pixelated":"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.resize=function(t,e){var i=this.element,n=this.context,r=this.pixelRatio;i.width=Math.round(t*r),i.height=Math.round(e*r),i.style.width=t+"px",i.style.height=e+"px",n.resetTransform(),this._width=t,this._height=e},Object.defineProperty(t,"textMeasuringContext",{get:function(){if(this._textMeasuringContext)return this._textMeasuringContext;var t=document.createElement("canvas");return this._textMeasuringContext=t.getContext("2d")},enumerable:!0,configurable:!0}),Object.defineProperty(t,"svgText",{get:function(){if(this._svgText)return this._svgText;var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"svg");e.setAttribute("width","100"),e.setAttribute("height","100"),e.classList?e.classList.add("text-measuring-svg"):e.setAttribute("class","text-measuring-svg"),e.style.position="absolute",e.style.top="-1000px",e.style.visibility="hidden";var i=document.createElementNS(t,"text");return i.setAttribute("x","0"),i.setAttribute("y","30"),i.setAttribute("text","black"),e.appendChild(i),document.body.appendChild(e),this._svgText=i,i},enumerable:!0,configurable:!0}),Object.defineProperty(t,"has",{get:function(){return this._has?this._has:this._has=Object.freeze({textMetrics:void 0!==this.textMeasuringContext.measureText("test").actualBoundingBoxDescent&&!/Firefox\/\d+(.\d)+/.test(window.navigator.userAgent),getTransform:void 0!==this.textMeasuringContext.getTransform})},enumerable:!0,configurable:!0}),t.measureText=function(t,e,i,n){var r=this.textMeasuringContext;return r.font=e,r.textBaseline=i,r.textAlign=n,r.measureText(t)},t.getTextSize=function(t,e){if(this.has.textMetrics){var i=this.textMeasuringContext;i.font=e;var n=i.measureText(t);return{width:n.width,height:n.actualBoundingBoxAscent+n.actualBoundingBoxDescent}}return this.measureSvgText(t,e)},t.measureSvgText=function(t,e){var i=this.textSizeCache,n=i[e];if(n){var r=n[t];if(r)return r}else i[e]={};var o=this.svgText;o.style.font=e,o.textContent=t;var a=o.getBBox(),s={width:a.width,height:a.height};return i[e][t]=s,s},t.overrideScale=function(t,e){var i=0,n={save:function(){this.$save(),i++},restore:function(){i>0&&(this.$restore(),i--)},setTransform:function(t,i,n,r,o,a){this.$setTransform(t*e,i*e,n*e,r*e,o*e,a*e)},resetTransform:function(){this.$setTransform(e,0,0,e,0,0),this.save(),i=0}};for(var r in n)n.hasOwnProperty(r)&&(t["$"+r]||(t["$"+r]=t[r]),t[r]=n[r])},t.textSizeCache={},t}(),c=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),f=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i._x=0,i._y=0,i.lineBreakRegex=/\r?\n/g,i.lines=[],i._text="",i._dirtyFont=!0,i._fontSize=10,i._fontFamily="sans-serif",i._textAlign=e.defaultStyles.textAlign,i._textBaseline=e.defaultStyles.textBaseline,i._lineHeight=14,i}return c(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.splitText=function(){this.lines=this._text.split(this.lineBreakRegex)},Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){var e=String(t);this._text!==e&&(this._text=e,this.splitText(),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.dirtyFont&&(this.dirtyFont=!1,this._font=[this.fontStyle||"",this.fontWeight||"",this.fontSize+"px",this.fontFamily].join(" ").trim()),this._font},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirtyFont",{get:function(){return this._dirtyFont},set:function(t){this._dirtyFont!==t&&(this._dirtyFont=t,t&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){isFinite(t)||(t=10),this._fontSize!==t&&(this._fontSize=t,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this._fontFamily!==t&&(this._fontFamily=t,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textAlign",{get:function(){return this._textAlign},set:function(t){this._textAlign!==t&&(this._textAlign=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(){return l.has.textMetrics?this.getPreciseBBox():this.getApproximateBBox()},e.prototype.getPreciseBBox=function(){var t=l.measureText(this.text,this.font,this.textBaseline,this.textAlign);return new i(this.x-t.actualBoundingBoxLeft,this.y-t.actualBoundingBoxAscent,t.width,t.actualBoundingBoxAscent+t.actualBoundingBoxDescent)},e.prototype.getApproximateBBox=function(){var t=l.getTextSize(this.text,this.font),e=this.x,n=this.y;switch(this.textAlign){case"end":case"right":e-=t.width;break;case"center":e-=t.width/2}switch(this.textBaseline){case"alphabetic":n-=.7*t.height;break;case"middle":n-=.45*t.height;break;case"ideographic":n-=t.height;break;case"hanging":n-=.2*t.height;break;case"bottom":n-=t.height}return new i(e,n,t.width,t.height)},e.prototype.isPointInPath=function(t,e){var i=this.transformPoint(t,e),n=this.computeBBox();return!!n&&n.containsPoint(i.x,i.y)},e.prototype.isPointInStroke=function(t,e){return!1},e.prototype.render=function(t){if(this.lines.length){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(t);var e=this.fill,i=this.stroke,n=this.strokeWidth;t.font=this.font,t.textAlign=this.textAlign,t.textBaseline=this.textBaseline;var r=this.scene.canvas.pixelRatio||1;if(e){t.fillStyle=e,t.globalAlpha=this.opacity*this.fillOpacity;var o=this.fillShadow,a=this.text,s=this.x,h=this.y;o&&o.enabled&&(t.shadowColor=o.color,t.shadowOffsetX=o.xOffset*r,t.shadowOffsetY=o.yOffset*r,t.shadowBlur=o.blur*r),t.fillText(a,s,h)}if(i&&n){t.strokeStyle=i,t.lineWidth=n,t.globalAlpha=this.opacity*this.strokeOpacity;var u=this,l=u.lineDash,c=u.lineDashOffset,f=u.lineCap,p=u.lineJoin,d=u.strokeShadow;a=u.text,s=u.x,h=u.y;l&&t.setLineDash(l),c&&(t.lineDashOffset=c),f&&(t.lineCap=f),p&&(t.lineJoin=p),d&&d.enabled&&(t.shadowColor=d.color,t.shadowOffsetX=d.xOffset*r,t.shadowOffsetY=d.yOffset*r,t.shadowBlur=d.blur*r),t.strokeText(a,s,h)}this.dirty=!1}},e.className="Text",e.defaultStyles=a(u.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),e}(u),p=function(){return(p=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},d=function(){function t(){this.allPropertyListeners=new Map,this.allEventListeners=new Map}return t.prototype.addPropertyListener=function(t,e,i){void 0===i&&(i=this);var n=this.allPropertyListeners,r=n.get(t);if(r||(r=new Map,n.set(t,r)),!r.has(e)){var o=new Set;r.set(e,o)}r.get(e).add(i)},t.prototype.removePropertyListener=function(t,e,i){void 0===i&&(i=this);var n=this.allPropertyListeners.get(t);if(n)if(e){var r=n.get(e);r.delete(i),r.size||n.delete(e)}else n.clear()},t.prototype.notifyPropertyListeners=function(t,e,i){var n=this,r=this.allPropertyListeners.get(t);r&&r.forEach((function(r,o){r.forEach((function(r){return o.call(r,{type:t,source:n,value:i,oldValue:e})}))}))},t.prototype.addEventListener=function(t,e,i){void 0===i&&(i=this);var n=this.allEventListeners,r=n.get(t);if(r||(r=new Map,n.set(t,r)),!r.has(e)){var o=new Set;r.set(e,o)}r.get(e).add(i)},t.prototype.removeEventListener=function(t,e,i){void 0===i&&(i=this);var n=this.allEventListeners.get(t);if(n)if(e){var r=n.get(e);r.delete(i),r.size||n.delete(e)}else n.clear()},t.prototype.notifyEventListeners=function(t){var e=this,i=this.allEventListeners;t.forEach((function(t){var n=i.get(t);n&&n.forEach((function(i,n){i.forEach((function(i){return n.call(i,{type:t,source:e})}))}))}))},t.prototype.fireEvent=function(t){var e=this,i=this.allEventListeners.get(t.type);i&&i.forEach((function(i,n){i.forEach((function(i){return n.call(i,p(p({},t),{source:e}))}))}))},t.privateKeyPrefix="_",t}();function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,i){var n=d.privateKeyPrefix+i,r=n+"Events";e[i]||(t&&(e[r]=t),Object.defineProperty(e,i,{set:function(t){var e;if((e=this[n])!==t||"object"==typeof t&&null!==t){this[n]=t,this.notifyPropertyListeners(i,e,t);var o=this[r];o&&this.notifyEventListeners(o)}},get:function(){return this[n]},enumerable:!0,configurable:!0}))}}var g=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},b=function(i){function n(){var n=i.call(this)||this;n.node=new f,n.enabled=!0,n.padding=new e(10);var r=n.node;return r.textAlign="center",r.textBaseline="top",r.pointerEvents=t.None,n}return g(n,i),Object.defineProperty(n.prototype,"text",{get:function(){return this.node.text},set:function(t){this.node.text!==t&&(this.node.text=t,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fontStyle",{get:function(){return this.node.fontStyle},set:function(t){this.node.fontStyle!==t&&(this.node.fontStyle=t,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fontWeight",{get:function(){return this.node.fontWeight},set:function(t){this.node.fontWeight!==t&&(this.node.fontWeight=t,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fontSize",{get:function(){return this.node.fontSize},set:function(t){this.node.fontSize!==t&&(this.node.fontSize=t,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fontFamily",{get:function(){return this.node.fontFamily},set:function(t){this.node.fontFamily!==t&&(this.node.fontFamily=t,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this.node.fill},set:function(t){this.node.fill!==t&&(this.node.fill=t,this.fireEvent({type:"change"}))},enumerable:!0,configurable:!0}),m([y("change")],n.prototype,"enabled",void 0),m([y("change")],n.prototype,"padding",void 0),n}(d),v=function(){function t(){this.index=new Map,this.ordinalRange=[],this._domain=[],this._range=[0,1],this._bandwidth=1,this._paddingInner=0,this._paddingOuter=0,this._round=!1,this._align=.5}return Object.defineProperty(t.prototype,"domain",{get:function(){return this._domain},set:function(t){var e=this._domain;e.length=0,this.index=new Map;var i=this.index;t.forEach((function(t){void 0===i.get(t)&&i.set(t,e.push(t)-1)})),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this._range},set:function(t){this._range[0]=t[0],this._range[1]=t[1],this.rescale()},enumerable:!0,configurable:!0}),t.prototype.ticks=function(){return this._domain},t.prototype.convert=function(t){var e=this.index.get(t);if(void 0===e)return NaN;var i=this.ordinalRange[e];return void 0===i?NaN:i},Object.defineProperty(t.prototype,"bandwidth",{get:function(){return this._bandwidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._paddingInner},set:function(t){t=Math.max(0,Math.min(1,t)),this._paddingInner=t,this._paddingOuter=t,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingInner",{get:function(){return this._paddingInner},set:function(t){this._paddingInner=Math.max(0,Math.min(1,t)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingOuter",{get:function(){return this._paddingOuter},set:function(t){this._paddingOuter=Math.max(0,Math.min(1,t)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"round",{get:function(){return this._round},set:function(t){this._round=t,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align=Math.max(0,Math.min(1,t)),this.rescale()},enumerable:!0,configurable:!0}),t.prototype.rescale=function(){var t,e=this._domain.length;if(e){var i=this._range,n=i[0],r=i[1],o=r<n;o&&(n=(t=[r,n])[0],r=t[1]);var a=(r-n)/Math.max(1,e-this._paddingInner+2*this._paddingOuter);this._round&&(a=Math.floor(a)),n+=(r-n-a*(e-this._paddingInner))*this._align,this._bandwidth=a*(1-this._paddingInner),this._round&&(n=Math.round(n),this._bandwidth=Math.round(this._bandwidth));for(var s=[],h=0;h<e;h++)s.push(n+a*h);this.ordinalRange=o?s.reverse():s}},t}(),x=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContainerNode=!0,e}return x(e,t),e.prototype.containsPoint=function(t,e){return!0},e.prototype.computeBBox=function(){var t=1/0,r=-1/0,o=1/0,a=-1/0;return this.dirtyTransform&&this.computeTransformMatrix(),this.children.forEach((function(i){if(i.visible){var s=i.computeBBox();if(s){if(!(i instanceof e)){i.dirtyTransform&&i.computeTransformMatrix();for(var h=n.flyweight(i.matrix),u=i.parent;u;)h.preMultiplySelf(u.matrix),u=u.parent;h.transformBBox(s,0,s)}var l=s.x,c=s.y;l<t&&(t=l),c<o&&(o=c),l+s.width>r&&(r=l+s.width),c+s.height>a&&(a=c+s.height)}}})),new i(t,o,r-t,a-o)},e.prototype.render=function(t){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(t);for(var e=this.children,i=e.length,n=0;n<i;n++){t.save();var r=e[n];r.visible&&r.render(t),t.restore()}},e.className="Group",e}(o),w=function(){function t(t,e){this.next=null,this.scene=t.scene,this.parent=t,this.datum=e}return t.prototype.appendChild=function(t){if(null===this.next)return this.parent.insertBefore(t,null);if(!o.isNode(this.next))throw new Error(this.next+" is not a Node.");return this.parent.insertBefore(t,this.next)},t.prototype.insertBefore=function(t,e){return this.parent.insertBefore(t,e)},t}(),k=function(){function t(t,e){this.groups=t,this.parents=e}return t.select=function(e){return new t([["function"==typeof e?e():e]],[void 0])},t.selectAll=function(e){return new t([null==e?[]:e],[void 0])},t.prototype.append=function(t){return this.select((function(e){return e.appendChild(new t)}))},t.prototype.appendFn=function(t){return this.select((function(e,i,n,r){return e.appendChild(t(e,i,n,r))}))},t.prototype.select=function(e){for(var i=this.groups,n=i.length,r=[],o=0;o<n;o++)for(var a=i[o],s=a.length,h=r[o]=new Array(s),u=0;u<s;u++){var l=a[u];if(l){var c=e(l,l.datum,u,a);c&&(c.datum=l.datum),h[u]=c}}return new t(r,this.parents)},t.prototype.selectByClass=function(t){return this.select((function(e){if(o.isNode(e))for(var i=e.children,n=i.length,r=0;r<n;r++){var a=i[r];if(a instanceof t)return a}}))},t.prototype.selectByTag=function(t){return this.select((function(e){if(o.isNode(e))for(var i=e.children,n=i.length,r=0;r<n;r++){var a=i[r];if(a.tag===t)return a}}))},t.prototype.selectAllByClass=function(t){return this.selectAll((function(e){var i=[];if(o.isNode(e))for(var n=e.children,r=n.length,a=0;a<r;a++){var s=n[a];s instanceof t&&i.push(s)}return i}))},t.prototype.selectAllByTag=function(t){return this.selectAll((function(e){var i=[];if(o.isNode(e))for(var n=e.children,r=n.length,a=0;a<r;a++){var s=n[a];s.tag===t&&i.push(s)}return i}))},t.prototype.selectNone=function(){return[]},t.prototype.selectAll=function(e){e||(e=this.selectNone);for(var i=[],n=[],r=this.groups,o=r.length,a=0;a<o;a++)for(var s=r[a],h=s.length,u=0;u<h;u++){var l=s[u];l&&(i.push(e(l,l.datum,u,s)),n.push(l))}return new t(i,n)},t.prototype.each=function(t){for(var e=this.groups,i=e.length,n=0;n<i;n++)for(var r=e[n],o=r.length,a=0;a<o;a++){var s=r[a];s&&t(s,s.datum,a,r)}return this},t.prototype.remove=function(){return this.each((function(t){if(o.isNode(t)){var e=t.parent;e&&e.removeChild(t)}}))},t.prototype.merge=function(e){for(var i=this.groups,n=e.groups,r=i.length,o=n.length,a=Math.min(r,o),s=new Array(r),h=0;h<a;h++)for(var u=i[h],l=n[h],c=u.length,f=s[h]=new Array(c),p=0;p<c;p++){var d=u[p]||l[p];f[p]=d||void 0}for(;h<r;h++)s[h]=i[h];return new t(s,this.parents)},t.prototype.node=function(){for(var t=this.groups,e=t.length,i=0;i<e;i++)for(var n=t[i],r=n.length,o=0;o<r;o++){var a=n[o];if(a)return a}return null},t.prototype.attr=function(t,e){return this.each((function(i){i[t]=e})),this},t.prototype.attrFn=function(t,e){return this.each((function(i,n,r,o){i[t]=e(i,n,r,o)})),this},t.prototype.call=function(t){return t(this),this},Object.defineProperty(t.prototype,"size",{get:function(){var t=0;return this.each((function(){return t++})),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){var t=[];return this.each((function(e,i){return t.push(i)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enter",{get:function(){return new t(this.enterGroups?this.enterGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exit",{get:function(){return new t(this.exitGroups?this.exitGroups:[[]],this.parents)},enumerable:!0,configurable:!0}),t.prototype.setDatum=function(t){return this.each((function(e){e.datum=t}))},Object.defineProperty(t.prototype,"datum",{get:function(){var t=this.node();return t?t.datum:null},enumerable:!0,configurable:!0}),t.prototype.setData=function(e,i){if("function"!=typeof e){var n=e;e=function(){return n}}for(var r=this.groups,o=this.parents,a=r.length,s=new Array(a),h=new Array(a),u=new Array(a),l=0;l<a;l++){var c=r[l],f=o[l];if(!f)throw new Error("Group #"+l+" has no parent: "+c);var p=c.length,d=e(f,f.datum,l,o),y=d.length,g=h[l]=new Array(y),m=s[l]=new Array(y),b=u[l]=new Array(p);i?this.bindKey(f,c,g,m,b,d,i):this.bindIndex(f,c,g,m,b,d);for(var v=0,x=0;v<y;v++){var _=g[v];if(_){v>=x&&(x=v+1);for(var w=void 0;!(w=m[x])&&x<y;)x++;_.next=w||null}}}var k=new t(s,o);return k.enterGroups=h,k.exitGroups=u,k},t.prototype.bindIndex=function(t,e,i,n,r,o){for(var a=e.length,s=o.length,h=0;h<s;h++){(u=e[h])?(u.datum=o[h],n[h]=u):i[h]=new w(t,o[h])}for(;h<a;h++){var u;(u=e[h])&&(r[h]=u)}},t.prototype.bindKey=function(e,i,n,r,o,a,s){for(var h=i.length,u=a.length,l=new Array(h),c={},f=0;f<h;f++){if(d=i[f])(p=l[f]=t.keyPrefix+s(d,d.datum,f,i))in c?o[f]=d:c[p]=d}for(f=0;f<u;f++){var p;(d=c[p=t.keyPrefix+s(e,a[f],f,a)])?(r[f]=d,d.datum=a[f],c[p]=void 0):n[f]=new w(e,a[f])}for(f=0;f<h;f++){var d;(d=i[f])&&c[l[f]]===d&&(o[f]=d)}},t.keyPrefix="$",t}(),O=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),P=function(t){function e(){var e=t.call(this)||this;return e._x1=0,e._y1=0,e._x2=0,e._y2=0,e.restoreOwnStyles(),e}return O(e,t),Object.defineProperty(e.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1!==t&&(this._x1=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1!==t&&(this._y1=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2!==t&&(this._x2=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2!==t&&(this._y2=t,this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(){return new i(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)},e.prototype.isPointInPath=function(t,e){return!1},e.prototype.isPointInStroke=function(t,e){return!1},e.prototype.render=function(t){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(t);var e=this.x1,i=this.y1,n=this.x2,r=this.y2;if(e===n){var o=Math.round(e)+Math.floor(this.strokeWidth)%2/2;e=o,n=o}else if(i===r){var a=Math.round(i)+Math.floor(this.strokeWidth)%2/2;i=a,r=a}t.beginPath(),t.moveTo(e,i),t.lineTo(n,r),this.fillStroke(t),this.dirty=!1},e.className="Line",e.defaultStyles=a(u.defaultStyles,{fill:void 0,strokeWidth:1}),e}(u),S=2*Math.PI;function C(t){return t%=S,t+=S,t%=S}function M(t){return t%=S,(t+=S)!==S&&(t%=S),t}function D(t){return(t%=S)<-Math.PI?t+=S:t>=Math.PI&&(t-=S),t}function E(t){return t/180*Math.PI}function A(t){return t/Math.PI*180}var T=Math.sign?Math.sign:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1};function j(t,e,i,n){if(0===t)return function(t,e,i){if(0===t)return function(t,e){var i=-e/t;return 0!==t&&i>=0&&i<=1?[i]:[]}(e,i);var n=e*e-4*t*i,r=[];if(0===n){var o=-e/(2*t);o>=0&&o<=1&&r.push(o)}else if(n>0){var a=Math.sqrt(n),s=(-e-a)/(2*t),h=(-e+a)/(2*t);s>=0&&s<=1&&r.push(s),h>=0&&h<=1&&r.push(h)}return r}(e,i,n);var r=e/t,o=i/t,a=(3*o-r*r)/9,s=(9*r*o-27*(n/t)-2*r*r*r)/54,h=a*a*a+s*s,u=[];if(h>=0){var l=Math.sqrt(h),c=T(s+l)*Math.pow(Math.abs(s+l),1/3),f=T(s-l)*Math.pow(Math.abs(s-l),1/3),p=Math.abs(Math.sqrt(3)*(c-f)/2),d=-1/3*r+(c+f);if(d>=0&&d<=1&&u.push(d),0===p){var y=-1/3*r-(c+f)/2;y>=0&&y<=1&&u.push(y)}}else{var g=Math.acos(s/Math.sqrt(-a*a*a)),m=1/3*r,b=2*Math.sqrt(-a),v=b*Math.cos(1/3*g)-m,x=b*Math.cos(1/3*(g+2*Math.PI))-m,_=b*Math.cos(1/3*(g+4*Math.PI))-m;v>=0&&v<=1&&u.push(v),x>=0&&x<=1&&u.push(x),_>=0&&_<=1&&u.push(_)}return u}function F(t,e,i,n,r,o,a,s){var h=(i-t)*(s-o)-(n-e)*(a-r);if(0===h)return null;var u=((a-r)*(e-o)-(t-r)*(s-o))/h,l=((i-t)*(e-o)-(n-e)*(t-r))/h;return u>=0&&u<=1&&l>=0&&l<=1?{x:t+u*(i-t),y:e+u*(n-e)}:null}function I(t,e,i,n,r,o,a,s,h,u,l,c){for(var f=[],p=u-c,d=l-h,y=h*(c-u)-u*(l-h),g=N(t,i,r,a),m=N(e,n,o,s),b=j(p*g[0]+d*m[0],p*g[1]+d*m[1],p*g[2]+d*m[2],p*g[3]+d*m[3]+y),v=0;v<b.length;v++){var x=b[v],_=x*x,w=x*_,k=g[0]*w+g[1]*_+g[2]*x+g[3],O=m[0]*w+m[1]*_+m[2]*x+m[3],P=void 0;(P=h!==l?(k-h)/(l-h):(O-u)/(c-u))>=0&&P<=1&&f.push({x:k,y:O})}return f}function N(t,e,i,n){return[3*e-t-3*i+n,3*t-6*e+3*i,-3*t+3*e,t]}var L=function(){function t(){this.commands=[],this.params=[],this._closedPath=!1}return t.prototype.moveTo=function(t,e){this.xy?(this.xy[0]=t,this.xy[1]=e):this.xy=[t,e],this.commands.push("M"),this.params.push(t,e)},t.prototype.lineTo=function(t,e){this.xy?(this.commands.push("L"),this.params.push(t,e),this.xy[0]=t,this.xy[1]=e):this.moveTo(t,e)},t.prototype.rect=function(t,e,i,n){this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+n),this.lineTo(t,e+n),this.closePath()},t.prototype.arcTo=function(t,e,i,n,r,o,a){var s=this.xy;if(s){t<0&&(t=-t),e<0&&(e=-e);var h=s[0],u=s[1],l=(h-o)/2,c=(u-a)/2,f=Math.sin(i),p=Math.cos(i),d=p*l+f*c,y=-f*l+p*c,g=d/t,m=y/e,b=g*g+m*m,v=(h+o)/2,x=(u+a)/2,_=0,w=0;b>=1?(t*=b=Math.sqrt(b),e*=b):(b=Math.sqrt(1/b-1),n===r&&(b=-b),v+=p*(_=b*t*m)-f*(w=-b*e*g),x+=f*_+p*w);var k=Math.atan2((y-w)/e,(d-_)/t),O=Math.atan2((-y-w)/e,(-d-_)/t)-k;this.cubicArc(v,x,t,e,i,k,k+O,1-r)}},t.prototype.arcToAlt=function(t,e,i,n,r,o,a){if(this.xy)this.xy[0],this.xy[1]},t.cubicArc=function(t,e,i,n,r,o,a,s,h,u){if(u){var l=s;s=h,h=l}var c=e.length,f=.5522847498307935,p=Math.sin(s),d=Math.cos(s),y=Math.sin(a),g=Math.cos(a),m=Math.PI/2,b=g*d*r-y*p*o,v=y*d*r+g*p*o,x=-g*p*r-y*d*o,_=-y*p*r+g*d*o;for((h-=s)<0&&(h+=2*Math.PI),t.push("M"),e.push(b+i,v+n);h>=m;){h-=m,t.push("C");var w=x+i;e.push(b+x*f+i,v+_*f+n,b*f+x+i,v*f+_+n,Math.abs(w)<1e-8?0:w,_+n);l=b;b=x,x=-l,l=v,v=_,_=-l}if(h){var k=4/3*Math.tan(h/4),O=Math.sin(h),P=Math.cos(h),S=P+k*O,C=O-k*P;t.push("C");w=b*P+x*O+i;e.push(b+x*k+i,v+_*k+n,b*S+x*C+i,v*S+_*C+n,Math.abs(w)<1e-8?0:w,v*P+_*O+n)}if(u)for(var M=c,D=e.length-2;M<D;M+=2,D-=2){l=e[M];e[M]=e[D],e[D]=l,l=e[M+1],e[M+1]=e[D+1],e[D+1]=l}},t.prototype.cubicArc=function(e,i,n,r,o,a,s,h){var u=this.commands,l=this.params,c=u.length;t.cubicArc(u,l,e,i,n,r,o,a,s,h);var f=l[l.length-2],p=l[l.length-1];this.xy?(u[c]="L",this.xy[0]=f,this.xy[1]=p):this.xy=[f,p]},t.prototype.deCasteljau=function(t,e){var i=t.length;if(i<2||i%2==1)throw new Error("Fewer than two points or not an even count.");if(2===i||0===e)return t.slice(0,2);if(1===e)return t.slice(-2);for(var n=[],r=i-2,o=0;o<r;o+=2)n.push((1-e)*t[o]+e*t[o+2],(1-e)*t[o+1]+e*t[o+3]);return this.deCasteljau(n,e)},t.prototype.approximateCurve=function(t,e){var i=this.deCasteljau(t,0);this.moveTo(i[0],i[1]);for(var n=1/e,r=n;r<=1;r+=n){var o=this.deCasteljau(t,r);this.lineTo(o[0],o[1])}},t.prototype.quadraticCurveTo=function(t,e,i,n){this.xy||this.moveTo(t,e),this.cubicCurveTo((this.xy[0]+2*t)/3,(this.xy[1]+2*e)/3,(2*t+i)/3,(2*e+n)/3,i,n)},t.prototype.cubicCurveTo=function(t,e,i,n,r,o){this.xy||this.moveTo(t,e),this.commands.push("C"),this.params.push(t,e,i,n,r,o),this.xy[0]=r,this.xy[1]=o},Object.defineProperty(t.prototype,"closedPath",{get:function(){return this._closedPath},enumerable:!0,configurable:!0}),t.prototype.closePath=function(){this.xy&&(this.xy=void 0,this.commands.push("Z"),this._closedPath=!0)},t.prototype.clear=function(){this.commands.length=0,this.params.length=0,this.xy=void 0,this._closedPath=!1},t.prototype.isPointInPath=function(t,e){for(var i=this.commands,n=this.params,r=i.length,o=-1e4,a=-1e4,s=NaN,h=NaN,u=0,l=0,c=0,f=0,p=0;f<r;f++)switch(i[f]){case"M":isNaN(s)||F(s,h,u,l,o,a,t,e)&&c++,s=u=n[p++],h=l=n[p++];break;case"L":F(u,l,u=n[p++],l=n[p++],o,a,t,e)&&c++;break;case"C":c+=I(u,l,n[p++],n[p++],n[p++],n[p++],u=n[p++],l=n[p++],o,a,t,e).length;break;case"Z":isNaN(s)||F(s,h,u,l,o,a,t,e)&&c++}return c%2==1},t.fromString=function(e){var i=new t;return i.setFromString(e),i},t.parseSvgPath=function(e){return e.trim().split(t.splitCommandsRe).map((function(e){var i=e.match(t.matchParamsRe);return{command:e.substr(0,1),params:i?i.map(parseFloat):[]}}))},t.prettifySvgPath=function(e){return t.parseSvgPath(e).map((function(t){return t.command+t.params.join(",")})).join("\n")},t.prototype.setFromString=function(e){var i,n,r,o,a,s=this;function h(){a.match(t.quadraticCommandRe)||(r=i,o=n)}function u(){a.match(t.cubicCommandRe)||(r=i,o=n)}this.clear(),t.parseSvgPath(e).forEach((function(t){var e=t.params,l=e.length,c=0;switch(t.command){case"M":for(s.moveTo(i=e[c++],n=e[c++]);c<l;)s.lineTo(i=e[c++],n=e[c++]);break;case"m":for(s.moveTo(i+=e[c++],n+=e[c++]);c<l;)s.lineTo(i+=e[c++],n+=e[c++]);break;case"L":for(;c<l;)s.lineTo(i=e[c++],n=e[c++]);break;case"l":for(;c<l;)s.lineTo(i+=e[c++],n+=e[c++]);break;case"C":for(;c<l;)s.cubicCurveTo(e[c++],e[c++],r=e[c++],o=e[c++],i=e[c++],n=e[c++]);break;case"c":for(;c<l;)s.cubicCurveTo(i+e[c++],n+e[c++],r=i+e[c++],o=n+e[c++],i+=e[c++],n+=e[c++]);break;case"S":for(u();c<l;)s.cubicCurveTo(i+i-r,n+n-o,r=e[c++],o=e[c++],i=e[c++],n=e[c++]);break;case"s":for(u();c<l;)s.cubicCurveTo(i+i-r,n+n-o,r=i+e[c++],o=n+e[c++],i+=e[c++],n+=e[c++]);break;case"Q":for(;c<l;)s.quadraticCurveTo(r=e[c++],o=e[c++],i=e[c++],n=e[c++]);break;case"q":for(;c<l;)s.quadraticCurveTo(r=i+e[c++],o=n+e[c++],i+=e[c++],n+=e[c++]);break;case"T":for(h();c<l;)s.quadraticCurveTo(r=i+i-r,o=n+n-o,i=e[c++],n=e[c++]);break;case"t":for(h();c<l;)s.quadraticCurveTo(r=i+i-r,o=n+n-o,i+=e[c++],n+=e[c++]);break;case"A":for(;c<l;)s.arcTo(e[c++],e[c++],e[c++]*Math.PI/180,e[c++],e[c++],i=e[c++],n=e[c++]);break;case"a":for(;c<l;)s.arcTo(e[c++],e[c++],e[c++]*Math.PI/180,e[c++],e[c++],i+=e[c++],n+=e[c++]);break;case"Z":case"z":s.closePath();break;case"H":for(;c<l;)s.lineTo(i=e[c++],n);break;case"h":for(;c<l;)s.lineTo(i+=e[c++],n);break;case"V":for(;c<l;)s.lineTo(i,n=e[c++]);break;case"v":for(;c<l;)s.lineTo(i,n+=e[c++])}a=t.command}))},t.prototype.toString=function(){for(var t=this.commands,e=this.params,i=t.length,n=[],r=0,o=0;r<i;r++)switch(t[r]){case"M":n.push("M"+e[o++]+","+e[o++]);break;case"L":n.push("L"+e[o++]+","+e[o++]);break;case"C":n.push("C"+e[o++]+","+e[o++]+" "+e[o++]+","+e[o++]+" "+e[o++]+","+e[o++]);break;case"Z":n.push("Z")}return n.join("")},t.prototype.toPrettyString=function(){return t.prettifySvgPath(this.toString())},t.prototype.toSvg=function(){return t.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 50 50" version="1.1" xmlns="'+t.xmlns+'">\n    <path d="'+this.toString()+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},t.prototype.toDebugSvg=function(){var e=t.prettifySvgPath(this.toString());return t.xmlDeclaration+'\n<svg width="100%" height="100%" viewBox="0 0 100 100" version="1.1" xmlns="'+t.xmlns+'">\n    <path d="'+e+'" style="fill:none;stroke:#000;stroke-width:0.5;"/>\n</svg>'},t.prototype.toCubicPaths=function(){var t,e,i,n,r,o=[],a=this.params,s=0;return this.commands.forEach((function(h){switch(h){case"M":t=[e=n=a[s++],i=r=a[s++]],o.push(t);break;case"L":var u=a[s++],l=a[s++];t.push((n+n+u)/3,(r+r+l)/3,(n+u+u)/3,(r+l+l)/3,n=u,r=l);break;case"C":t.push(a[s++],a[s++],a[s++],a[s++],n=a[s++],r=a[s++]);break;case"Z":t.push((n+n+e)/3,(r+r+i)/3,(n+e+e)/3,(r+i+i)/3,n=e,r=i)}})),o},t.cubicPathToString=function(t){var e=t.length;if(!(e%2==0&&(e/2-1)/2>=1))throw new Error("Invalid path.");return"M"+t.slice(0,2).join(",")+"C"+t.slice(2).join(",")},t.splitCommandsRe=/(?=[AaCcHhLlMmQqSsTtVvZz])/g,t.matchParamsRe=/-?[0-9]*\.?\d+/g,t.quadraticCommandRe=/[QqTt]/,t.cubicCommandRe=/[CcSs]/,t.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>',t.xmlns="http://www.w3.org/2000/svg",t}(),B=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.path=new L,e._dirtyPath=!0,e._svgPath="",e}return B(e,t),Object.defineProperty(e.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(t){this._dirtyPath!==t&&(this._dirtyPath=t,t&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgPath",{get:function(){return this._svgPath},set:function(t){this._svgPath!==t&&(this._svgPath=t,this.path.setFromString(t),this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.isPointInPath=function(t,e){var i=this.transformPoint(t,e);return this.path.closedPath&&this.path.isPointInPath(i.x,i.y)},e.prototype.isPointInStroke=function(t,e){return!1},e.prototype.updatePath=function(){},e.prototype.render=function(t){var e=this.scene;this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(t),this.dirtyPath&&(this.updatePath(),this.dirtyPath=!1),e.appendPath(this.path),this.fillStroke(t),this.dirty=!1},e.className="Path",e}(u);function R(t,e,i){return void 0===i&&(i=1e-10),Math.abs(t-e)<i}function K(t,e){void 0===e&&(e=2);var i=Math.floor(Math.log(Math.abs(t))/Math.LN10);return i>=0||!isFinite(i)?t.toFixed(e):t.toFixed(Math.abs(i)-1+e)}var V,W=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){t[t.Open=0]="Open",t[t.Chord=1]="Chord",t[t.Round=2]="Round"}(V||(V={}));var H,Y=function(t){function e(){var e=t.call(this)||this;return e._centerX=0,e._centerY=0,e._radiusX=10,e._radiusY=10,e._startAngle=0,e._endAngle=2*Math.PI,e._counterClockwise=!1,e._type=V.Open,e.restoreOwnStyles(),e}return W(e,t),Object.defineProperty(e.prototype,"centerX",{get:function(){return this._centerX},set:function(t){this._centerX!==t&&(this._centerX=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this._centerY},set:function(t){this._centerY!==t&&(this._centerY=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusX",{get:function(){return this._radiusX},set:function(t){this._radiusX!==t&&(this._radiusX=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){return this._radiusY},set:function(t){this._radiusY!==t&&(this._radiusY=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this._startAngle},set:function(t){this._startAngle!==t&&(this._startAngle=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this._endAngle},set:function(t){this._endAngle!==t&&(this._endAngle=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPie",{get:function(){return R(C(this.startAngle),C(this.endAngle))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"counterClockwise",{get:function(){return this._counterClockwise},set:function(t){this._counterClockwise!==t&&(this._counterClockwise=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type!==t&&(this._type=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),e.prototype.updatePath=function(){var t=this.path;t.clear(),t.cubicArc(this.centerX,this.centerY,this.radiusX,this.radiusY,0,this.startAngle,this.endAngle,this.counterClockwise?1:0),this.type===V.Chord?t.closePath():this.type!==V.Round||this.fullPie||(t.lineTo(this.centerX,this.centerY),t.closePath())},e.prototype.computeBBox=function(){return new i(this.centerX-this.radiusX,this.centerY-this.radiusY,2*this.radiusX,2*this.radiusY)},e.prototype.isPointInPath=function(t,e){var i=this.transformPoint(t,e),n=this.computeBBox();return this.type!==V.Open&&n.containsPoint(i.x,i.y)&&this.path.isPointInPath(i.x,i.y)},e.className="Arc",e.defaultStyles=a(u.defaultStyles,{lineWidth:1,fillStyle:null}),e}(z);!function(t){t[t.Tick=0]="Tick",t[t.GridLine=1]="GridLine"}(H||(H={}));var X,U,G=function(){this.width=1,this.size=6,this.color="rgba(195, 195, 195, 1)",this.count=10},q=function(){function t(){this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)",this.rotation=0,this.mirrored=!1,this.parallel=!1}return Object.defineProperty(t.prototype,"format",{get:function(){return this._format},set:function(t){this._format!==t&&(this._format=t,this.onFormatChange&&this.onFormatChange(t))},enumerable:!0,configurable:!0}),t}(),J=function(){function t(t){this.lineNode=new P,this.group=new _,this.line={width:1,color:"rgba(195, 195, 195, 1)"},this.tick=new G,this.label=new q,this.translation={x:0,y:0},this.rotation=0,this._visibleRange=[0,1],this._title=void 0,this._gridLength=0,this.gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this._radialGrid=!1,this.scale=t,this.requestedRange=t.range.slice(),this.groupSelection=k.select(this.group).selectAll(),this.label.onFormatChange=this.onTickFormatChange.bind(this),this.group.append(this.lineNode),this.onTickFormatChange()}return t.prototype.updateRange=function(){var t=this.requestedRange,e=this.visibleRange,i=this.scale,n=(t[1]-t[0])/(e[1]-e[0]),r=n*e[0],o=t[0]-r;i.range=[o,o+n]},Object.defineProperty(t.prototype,"range",{get:function(){return this.requestedRange.slice()},set:function(t){this.requestedRange=t.slice(),this.updateRange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleRange",{get:function(){return this._visibleRange.slice()},set:function(t){if(t&&2===t.length){var e=t[0],i=t[1];e=Math.max(0,e),i=Math.min(1,i),e=Math.min(e,i),i=Math.max(e,i),this._visibleRange=[e,i],this.updateRange()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain.slice()},set:function(t){this.scale.domain=t.slice()},enumerable:!0,configurable:!0}),t.prototype.onTickFormatChange=function(t){t?this.scale.tickFormat&&(this.tickFormatter=this.scale.tickFormat(10,t)):this.scale.tickFormat?this.tickFormatter=this.scale.tickFormat(10,void 0):this.tickFormatter=void 0},Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){var e=this._title;e!==t&&(e&&this.group.removeChild(e.node),t&&(t.node.rotation=-Math.PI/2,this.group.appendChild(t.node)),this._title=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridLength",{get:function(){return this._gridLength},set:function(t){(this._gridLength&&!t||!this._gridLength&&t)&&(this.groupSelection=this.groupSelection.remove().setData([])),this._gridLength=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radialGrid",{get:function(){return this._radialGrid},set:function(t){this._radialGrid!==t&&(this._radialGrid=t,this.groupSelection=this.groupSelection.remove().setData([]))},enumerable:!0,configurable:!0}),t.prototype.update=function(){var t=this,e=this,i=e.group,n=e.scale,r=e.tick,o=e.label,a=e.gridStyle,s=e.requestedRange,h=Math.min(s[0],s[1]),u=Math.max(s[0],s[1]),l=E(this.rotation),c=o.parallel,p=C(E(o.rotation));i.translationX=this.translation.x,i.translationY=this.translation.y,i.rotation=l;var d=(n.bandwidth||0)/2,y=o.mirrored?1:-1,g=C(l),m=!p&&g>=0&&g<=Math.PI?-1:1,b=C(l-Math.PI/2),v=!p&&b>=0&&b<=Math.PI?-1:1,x=p>=0&&p<=Math.PI?-1:1,w=n.ticks(this.tick.count),k=this.groupSelection.setData(w);k.exit.remove();var O=k.enter.append(_);O.append(P).each((function(t){return t.tag=H.Tick})),this.gridLength&&(this.radialGrid?O.append(Y).each((function(t){return t.tag=H.GridLine})):O.append(P).each((function(t){return t.tag=H.GridLine}))),O.append(f);var S=k.merge(O);if(S.attrFn("translationY",(function(t,e){return Math.round(n.convert(e)+d)})).attrFn("visible",(function(t){return t.translationY>=h&&t.translationY<=u})),S.selectByTag(H.Tick).each((function(t){t.strokeWidth=r.width,t.stroke=r.color})).attr("x1",y*r.size).attr("x2",0).attr("y1",0).attr("y2",0),this.gridLength&&a.length){var D=a.length,A=void 0;if(this.radialGrid){var T=M(E(this.gridLength));A=S.selectByTag(H.GridLine).each((function(t,e){var i=Math.round(n.convert(e)+d);t.centerX=0,t.centerY=n.range[0]-i,t.endAngle=T,t.radiusX=i,t.radiusY=i}))}else A=S.selectByTag(H.GridLine).each((function(e){e.x1=0,e.x2=-y*t.gridLength,e.y1=0,e.y2=0,e.visible=Math.abs(e.parent.translationY-n.range[0])>1}));A.each((function(t,e,i){var n=a[i%D];t.stroke=n.stroke,t.strokeWidth=r.width,t.lineDash=n.lineDash,t.fill=void 0}))}var j=this.tickFormatter,F=w.fractionDigits>=0?w.fractionDigits:0,I=S.selectByClass(f).each((function(t,e,i){t.fontStyle=o.fontStyle,t.fontWeight=o.fontWeight,t.fontSize=o.fontSize,t.fontFamily=o.fontFamily,t.fill=o.color,t.textBaseline=c&&!p?y*m==-1?"hanging":"bottom":"middle",t.text=o.formatter?o.formatter({value:F>=0?e:String(e),index:i,fractionDigits:F,formatter:j}):F?e.toFixed(F):j?j(e):String(e),t.textAlign=c?p?y*x==-1?"end":"start":"center":y*v==-1?"end":"start"})),N=y*(r.size+o.padding),L=c?m*Math.PI/2:-1===v?Math.PI:0;I.each((function(t){t.x=N,t.rotationCenterX=N,t.rotation=L+p})),this.groupSelection=S;var B=this.lineNode;B.x1=0,B.x2=0,B.y1=s[0],B.y2=s[1],B.strokeWidth=this.line.width,B.stroke=this.line.color,B.visible=w.length>0;var z=this.title,R=!1;if(z&&z.enabled){R=!0;var K=z.padding.bottom,V=z.node,W=this.computeBBox({excludeTitle:!0}),X=-1===y&&g>Math.PI&&g<2*Math.PI?-1:1;V.rotation=X*y*Math.PI/2,V.x=X*y*(B.y1+B.y2)/2,V.x=X*y*(s[0]+s[1])/2,V.y=-1===y?X*(-K-W.width+Math.max(W.x+W.width,0)):-K-W.width-Math.min(W.x,0),V.textBaseline=1===X?"bottom":"top"}z&&(z.node.visible=R)},t.prototype.computeBBox=function(t){var e=this.title,r=this.lineNode,o=this.groupSelection.selectByClass(f),a=1/0,s=-1/0,h=1/0,u=-1/0;if(o.each((function(t){t.computeTransformMatrix();var e=n.flyweight(t.matrix),i=t.parent;i.computeTransformMatrix(),e.preMultiplySelf(i.matrix);var r=t.computeBBox();if(r){var o=e.transformBBox(r);a=Math.min(a,o.x),s=Math.max(s,o.x+o.width),h=Math.min(h,o.y),u=Math.max(u,o.y+o.height)}})),e&&e.enabled&&(!t||!t.excludeTitle)){var l=e.node;l.computeTransformMatrix();var c=n.flyweight(l.matrix),p=l.computeBBox();if(p){var d=c.transformBBox(p);a=Math.min(a,d.x),s=Math.max(s,d.x+d.width),h=Math.min(h,d.y),u=Math.max(u,d.y+d.height)}}return a=Math.min(a,0),s=Math.max(s,0),h=Math.min(h,r.y1,r.y2),u=Math.max(u,r.y1,r.y2),new i(a,h,s-a,u-h)},t}(),Z=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function $(t){return t===X.X?X.Y:X.X}!function(t){t.X="x",t.Y="y"}(X||(X={})),function(t){t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left",t.Angle="angle",t.Radius="radius"}(U||(U={}));var Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.keys=[],e.boundSeries=[],e}return Z(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this.constructor.type||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(t){if(this._position!==t)switch(this._position=t,t){case U.Top:this.direction=X.X,this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case U.Right:this.direction=X.Y,this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case U.Bottom:this.direction=X.X,this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case U.Left:this.direction=X.Y,this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1}},enumerable:!0,configurable:!0}),e}(J),tt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),et=function(t){function e(){var e=new v;return e.paddingInner=.2,e.paddingOuter=.3,t.call(this,e)||this}return tt(e,t),e.className="CategoryAxis",e.type="category",e}(Q);function it(t,e){for(var i=0,n=t.length;i<n;i++){var r=t[i];if(e(r,i,t))return r}}function nt(t){for(var e,i,n,r=t.length,o=-1;++o<r;)if(null!=(e=t[o])&&e>=e)for(i=n=e;++o<r;)null!=(e=t[o])&&(i>e&&(i=e),n<e&&(n=e));return void 0===i||void 0===n?void 0:[i,n]}function rt(t){for(var e,i,n,r=t.length,o=-1;++o<r;)if(null!=(e=t[o])&&e>=e&&isFinite(e))for(i=n=e;++o<r;)null!=(e=t[o])&&isFinite(e)&&(i>e&&(i=e),n<e&&(n=e));return void 0===i||void 0===n?void 0:[i,n]}function ot(t){var e=rt(t);if(void 0!==e){var i=e[0],n=e[1],r=i instanceof Date?i.getTime():i,o=n instanceof Date?n.getTime():n;return"number"==typeof r&&isFinite(r)&&"number"==typeof o&&isFinite(o)?[r,o]:void 0}}function at(t){for(var e=0,i=0,n=0,r=t;n<r.length;n++){var o=r[n];o<0?e+=o:i+=o}return{min:e,max:i}}function st(t){for(var e=0,i=0,n=0,r=t;n<r.length;n++){var o=r[n];o.min<e&&(e=o.min),o.max>i&&(i=o.max)}return{min:e,max:i}}var ht=function(){function t(t,e,i){void 0===t&&(t=""),void 0===i&&(i=0),this.x=0,this.y=0,this.subtreeLeft=NaN,this.subtreeRight=NaN,this.screenX=0,this.screenY=0,this.children=[],this.leafCount=0,this.prelim=0,this.mod=0,this.ancestor=this,this.change=0,this.shift=0,this.label=t,this.parent=e,this.depth=e?e.depth+1:0,this.number=i}return t.prototype.getLeftSibling=function(){return this.number>0&&this.parent?this.parent.children[this.number-1]:void 0},t.prototype.getLeftmostSibling=function(){return this.number>0&&this.parent?this.parent.children[0]:void 0},t.prototype.nextLeft=function(){return this.children?this.children[0]:this.thread},t.prototype.nextRight=function(){return this.children?this.children[this.children.length-1]:this.thread},t.prototype.getSiblings=function(){var t=this;return this.parent?this.parent.children.filter((function(e,i){return i!==t.number})):[]},t}();function ut(t,e){void 0===e&&(e=!0);var i=new ht,n=0;return e&&t.forEach((function(t){return n=Math.max(n,t.labels.length)})),t.forEach((function(t){if(e)for(;t.labels.length<n;)t.labels.unshift("");!function(t,e){var i=e.labels.slice().reverse(),n=i.length-1;i.forEach((function(e,i){var r=t.children,o=it(r,(function(t){return t.label===e})),a=i!==n;if(o&&a)t=o;else{var s=new ht(e,t);s.number=r.length,r.push(s),a&&(t=s)}}))}(i,t)})),i}function lt(t,e,i){var n=i/(e.number-t.number);e.change-=n,e.shift+=i,t.change+=n,e.prelim+=i,e.mod+=i}function ct(t,e,i){return e.getSiblings().indexOf(t.ancestor)>=0?t.ancestor:i}function ft(t,e){var i=t.children;if(i.length){var n=i[0];i.forEach((function(t){ft(t,e),n=function(t,e,i){var n=t.getLeftSibling();if(n){for(var r=t,o=t,a=n,s=o.getLeftmostSibling(),h=o.mod,u=r.mod,l=a.mod,c=s.mod;a.nextRight()&&o.nextLeft();){a=a.nextRight(),o=o.nextLeft(),s=s.nextLeft(),(r=r.nextRight()).ancestor=t;var f=a.prelim+l-(o.prelim+h)+i;f>0&&(lt(ct(a,t,e),t,f),h+=f,u+=f),l+=a.mod,h+=o.mod,c+=s.mod,u+=r.mod}a.nextRight()&&!r.nextRight()?(r.thread=a.nextRight(),r.mod+=l-u):(o.nextLeft()&&!s.nextLeft()&&(s.thread=o.nextLeft(),s.mod+=h-c),e=t)}return e}(t,n,e)})),function(t){var e=t.children;if(e)for(var i=0,n=0,r=e.length-1;r>=0;r--){var o=e[r];o.prelim+=i,o.mod+=i,n+=o.change,i+=o.shift+n}}(t);var r=(i[0].prelim+i[i.length-1].prelim)/2;(o=t.getLeftSibling())?(t.prelim=o.prelim+e,t.mod=t.prelim-r):t.prelim=r}else{var o=t.getLeftSibling();t.prelim=o?o.prelim+e:0}}var pt=function(){function t(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}return t.prototype.update=function(t,e){var i=e(t),n=i.x,r=i.y;n>this.right&&(this.right=n),n<this.left&&(this.left=n),r>this.bottom&&(this.bottom=r),r<this.top&&(this.top=r)},t}();function dt(t){var e=new gt;return ft(t,1),function t(e,i,n){e.x=e.prelim+i,e.y=e.depth,n.update(e),e.children.forEach((function(r){return t(r,i+e.mod,n)}))}(t,-t.prelim,e),function t(e){var i=e.children,n=0;i.forEach((function(e){t(e),e.children.length?n+=e.leafCount:n++})),e.leafCount=n,i.length?(e.subtreeLeft=i[0].subtreeLeft,e.subtreeRight=i[e.children.length-1].subtreeRight,e.x=(e.subtreeLeft+e.subtreeRight)/2):(e.subtreeLeft=e.x,e.subtreeRight=e.x)}(t),e}var yt,gt=function(){function t(){this.dimensions=new pt,this.leafCount=0,this.nodes=[],this.leafNodes=[],this.nonLeafNodes=[],this.depth=0}return t.prototype.update=function(t){this.dimensions.update(t,(function(t){return{x:t.x,y:t.y}})),t.children.length?this.nonLeafNodes.push(t):(this.leafCount++,this.leafNodes.push(t)),t.depth>this.depth&&(this.depth=t.depth),this.nodes.push(t)},t.prototype.resize=function(t,e,i,n,r){void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=!1);var o=this.leafCount-1,a=this.depth,s=this.dimensions,h=1,u=1;if(t>0&&o){var l=(s.right-s.left)/o;h=t/o/l,r&&(h=-h)}if(e>0&&a){var c=(s.bottom-s.top)/a;u=e/a/c}var f=new pt;this.nodes.forEach((function(t){t.screenX=t.x*h,t.screenY=t.y*u,f.update(t,(function(t){return{x:t.screenX,y:t.screenY}}))}));var p=-f.left,d=-f.top;this.nodes.forEach((function(t){t.screenX+=p+i,t.screenY+=d+n}))},t}(),mt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),bt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.grid=!1,e}return mt(e,t),e}(q),vt=function(t){function e(){var e=t.call(this,new v)||this;e.id=r(e),e.tickScale=new v,e.group=new _,e.longestSeparatorLength=0,e.translation={x:0,y:0},e.rotation=0,e.line={width:1,color:"rgba(195, 195, 195, 1)"},e.label=new bt,e.labelColor="rgba(87, 87, 87, 1)";var i=e,n=i.group,o=i.scale,a=i.tickScale;return o.paddingOuter=.1,o.paddingInner=2*o.paddingOuter,e.requestedRange=o.range.slice(),a.paddingInner=1,a.paddingOuter=0,e.gridLineSelection=k.select(n).selectAll(),e.axisLineSelection=k.select(n).selectAll(),e.separatorSelection=k.select(n).selectAll(),e.labelSelection=k.select(n).selectAll(),e}return mt(e,t),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(t){this.scale.domain=t;var e=ut(t);this.tickTreeLayout=dt(e);var i=t.slice();i.push(""),this.tickScale.domain=i,this.resizeTickTree()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.requestedRange.slice()},set:function(t){this.requestedRange=t.slice(),this.updateRange()},enumerable:!0,configurable:!0}),e.prototype.updateRange=function(){var t=this.requestedRange,e=this.visibleRange,i=this.scale,n=(t[1]-t[0])/(e[1]-e[0]),r=n*e[0],o=t[0]-r;this.tickScale.range=i.range=[o,o+n],this.resizeTickTree()},e.prototype.resizeTickTree=function(){var t=this.scale,e=t.domain.length?[t.convert(t.domain[0]),t.convert(t.domain[t.domain.length-1])]:t.range,i=this.tickTreeLayout,n=this.lineHeight;i&&i.resize(Math.abs(e[1]-e[0]),i.depth*n,(Math.min(e[0],e[1])||0)+(t.bandwidth||0)/2,-i.depth*n,e[1]-e[0]<0)},Object.defineProperty(e.prototype,"lineHeight",{get:function(){return 1.5*this.label.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(t){(this._gridLength&&!t||!this._gridLength&&t)&&(this.gridLineSelection=this.gridLineSelection.remove().setData([]),this.labelSelection=this.labelSelection.remove().setData([])),this._gridLength=t},enumerable:!0,configurable:!0}),e.prototype.update=function(){var t=this,e=this,i=e.group,n=e.scale,r=e.label,o=e.tickScale,a=e.requestedRange,s=n.range[0],h=n.range[1],u=Math.abs(h-s)/n.domain.length||0,l=r.parallel,c=E(this.rotation),p=Math.abs(Math.cos(c))<1e-8,d=C(E(this.label.rotation));i.translationX=this.translation.x,i.translationY=this.translation.y,i.rotation=c;var y=this.title;y&&(y.node.visible=!1);var g=this.lineHeight,m=this.tickTreeLayout,b=n.ticks(),v=m?m.nodes:[],x=!!m&&m.depth>1,_=o.ticks(),w=r.mirrored?1:-1,k=C(c),O=!d&&k>=0&&k<=Math.PI?-1:1,S=C(c-Math.PI/2),M=!d&&S>=0&&S<=Math.PI?-1:1,D=this.gridLineSelection.setData(this.gridLength?_:[]);D.exit.remove();var A=D.enter.append(P),T=D.merge(A),j=this.labelSelection.setData(v);j.exit.remove();var F=j.enter.append(f),I=j.merge(F),N=r.formatter,L=0;I.each((function(t,e,i){t.fontStyle=r.fontStyle,t.fontWeight=r.fontWeight,t.fontSize=r.fontSize,t.fontFamily=r.fontFamily,t.fill=r.color,t.textBaseline=-1===O?"bottom":"hanging",t.textAlign="center",t.translationX=e.screenY-.25*r.fontSize,t.translationY=e.screenX,y&&0===i?(t.text=y.text,t.fontSize=y.fontSize,t.fontStyle=y.fontStyle,t.fontWeight=y.fontWeight,t.fontFamily=y.fontFamily,t.textBaseline="hanging",t.visible=b.length>0):(t.text=N?N({value:String(e.label),index:i}):String(e.label),t.visible=e.screenX>=a[0]&&e.screenX<=a[1]);var n=t.computeBBox();n&&n.width>L&&(L=n.width)}));var B=w*r.padding,z=l?O*Math.PI/2:-1===M?Math.PI:0,R=this.label.grid,K=[];I.each((function(e,i,n){if(e.x=B,e.rotationCenterX=B,i.children.length?(e.translationX-=L-g+t.label.padding,e.rotation=p?z:-Math.PI/2):(e.rotation=d,e.textAlign="end",e.textBaseline="middle"),i.parent&&x){var r=i.children.length?i.screenX-i.leafCount*u/2:i.screenX-u/2;if(i.children.length){var o=-L-2*t.label.padding+i.screenY;K.push({y:r,x1:o+g,x2:o,toString:function(){return String(n)}})}else(i.number!==i.children.length-1||R)&&K.push({y:r,x1:0,x2:-L-2*t.label.padding,toString:function(){return String(n)}})}}));var V=0;K.forEach((function(t){return V=Math.min(V,t.x2)})),this.longestSeparatorLength=Math.abs(V),K.push({y:Math.max(s,h),x1:0,x2:V,toString:function(){return String(K.length)}});var W=this.separatorSelection.setData(K);W.exit.remove();var H=W.enter.append(P),Y=W.merge(H);this.separatorSelection=Y;Y.each((function(e,i,n){e.x1=i.x1,e.x2=i.x2,e.y1=i.y,e.y2=i.y,e.visible=i.y>=a[0]-1e-7&&i.y<=a[1]+1e-7,e.stroke=t.tick.color,e.fill=void 0,e.strokeWidth=1})),this.gridLineSelection=T,this.labelSelection=I;for(var X=m?m.depth+1:1,U=[],G=0;G<X;G++)U.push(G);var q=this.axisLineSelection.setData(U);q.exit.remove();var J=q.enter.append(P),Z=q.merge(J);if(this.axisLineSelection=Z,Z.each((function(e,i,n){var r=n>0?-L-2*t.label.padding-(n-1)*g:0;e.x1=r,e.x2=r,e.y1=a[0],e.y2=a[1],e.strokeWidth=t.line.width,e.stroke=t.line.color,e.visible=b.length>0&&(0===n||R&&x)})),this.gridLength){var $=this.gridStyle,Q=$.length;T.each((function(e,i,n){var r=Math.round(o.convert(i));e.x1=0,e.x2=-w*t.gridLength,e.y1=r,e.y2=r,e.visible=r>=a[0]&&r<=a[1]&&Math.abs(e.parent.translationY-s)>1;var h=$[n%Q];e.stroke=h.stroke,e.strokeWidth=t.tick.width,e.lineDash=h.lineDash,e.fill=void 0}))}},e.prototype.computeBBox=function(t){var e=!t||!t.excludeTitle,r=1/0,o=-1/0,a=1/0,s=-1/0;return this.labelSelection.each((function(t,i,h){if(h>0||e){t.computeTransformMatrix();var u=n.flyweight(t.matrix),l=t.computeBBox();if(l){var c=u.transformBBox(l);r=Math.min(r,c.x),o=Math.max(o,c.x+c.width),a=Math.min(a,c.y),s=Math.max(s,c.y+c.height)}}})),new i(r,a,Math.max(o-r,this.longestSeparatorLength),s-a)},e.className="GroupedCategoryAxis",e.type="groupedCategory",e}(Q),xt=function(){function t(t,e,i){var n=this;void 0===t&&(t=window.document),this.id=r(this),this._dirty=!1,this.animationFrameId=0,this._root=null,this.debug={renderFrameIndex:!1,renderBoundingBoxes:!1},this._frameIndex=0,this.render=function(){var t,e=n,i=e.ctx,r=e.root,o=e.pendingSize;n.animationFrameId=0,o&&((t=n.canvas).resize.apply(t,o),n.pendingSize=void 0),!r||r.visible?(i.clearRect(0,0,n.width,n.height),r&&(i.save(),r.visible&&r.render(i),i.restore()),n._frameIndex++,n.debug.renderFrameIndex&&(i.fillStyle="white",i.fillRect(0,0,40,15),i.fillStyle="black",i.fillText(n.frameIndex.toString(),2,10)),n.dirty=!1):n.dirty=!1},this.canvas=new l(t,e,i),this.ctx=this.canvas.context}return Object.defineProperty(t.prototype,"container",{get:function(){return this.canvas.container},set:function(t){this.canvas.container=t},enumerable:!0,configurable:!0}),t.prototype.download=function(t){this.canvas.download(t)},t.prototype.getDataURL=function(t){return this.canvas.getDataURL(t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.pendingSize?this.pendingSize[0]:this.canvas.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pendingSize?this.pendingSize[1]:this.canvas.height},enumerable:!0,configurable:!0}),t.prototype.resize=function(t,e){t=Math.round(t),e=Math.round(e),t===this.width&&e===this.height||(this.pendingSize=[t,e],this.dirty=!0)},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},set:function(t){t&&!this._dirty&&(this.animationFrameId=requestAnimationFrame(this.render)),this._dirty=t},enumerable:!0,configurable:!0}),t.prototype.cancelRender=function(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=0,this._dirty=!1)},Object.defineProperty(t.prototype,"root",{get:function(){return this._root},set:function(t){t!==this._root&&(this._root&&this._root._setScene(void 0),this._root=t,t&&(null===t.parent&&t.scene&&t.scene!==this&&(t.scene.root=null),t._setScene(this)),this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.appendPath=function(t){var e=this.ctx,i=t.commands,n=t.params,r=i.length,o=0;e.beginPath();for(var a=0;a<r;a++)switch(i[a]){case"M":e.moveTo(n[o++],n[o++]);break;case"L":e.lineTo(n[o++],n[o++]);break;case"C":e.bezierCurveTo(n[o++],n[o++],n[o++],n[o++],n[o++],n[o++]);break;case"Z":e.closePath()}},Object.defineProperty(t.prototype,"frameIndex",{get:function(){return this._frameIndex},enumerable:!0,configurable:!0}),t.className="Scene",t}(),_t=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){t[t.Content=0]="Content",t[t.Border=1]="Border"}(yt||(yt={}));var wt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._x=0,e._y=0,e._width=10,e._height=10,e._radius=0,e._crisp=!1,e.effectiveStrokeWidth=u.defaultStyles.strokeWidth,e._sizing=yt.Content,e}return _t(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width!==t&&(this._width=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height!==t&&(this._height=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this._radius},set:function(t){this._radius!==t&&(this._radius=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crisp",{get:function(){return this._crisp},set:function(t){this._crisp!==t&&(this._crisp=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth!==t&&(this._strokeWidth=t,this.crisp||this.sizing===yt.Border?this.dirtyPath=!0:(this.effectiveStrokeWidth=t,this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sizing",{get:function(){return this._sizing},set:function(t){this._sizing!==t&&(this._sizing=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),e.prototype.updatePath=function(){var t=this.sizing===yt.Border,e=this.path;e.clear();var i,n=this.x,r=this.y,o=this.width,a=this.height;if(t){var s=o/2,h=a/2;i=Math.min(this.strokeWidth,s,h),n=Math.min(n+i/2,n+s),r=Math.min(r+i/2,r+h),o=Math.max(o-i,0),a=Math.max(a-i,0)}else i=this.strokeWidth;if(this.effectiveStrokeWidth=i,this.crisp&&!t){var u=this.alignment,l=this.align;e.rect(l(u,n),l(u,r),l(u,n,o),l(u,r,a))}else e.rect(n,r,o,a)},e.prototype.computeBBox=function(){var t=this.x,e=this.y,n=this.width,r=this.height;return new i(t,e,n,r)},e.prototype.isPointInPath=function(t,e){var i=this.transformPoint(t,e);return this.computeBBox().containsPoint(i.x,i.y)},e.prototype.isPointInStroke=function(t,e){return!1},e.prototype.fillStroke=function(t){var e=this.scene.canvas.pixelRatio||1;if(this.fill){t.fillStyle=this.fill,t.globalAlpha=this.opacity*this.fillOpacity;var i=this.fillShadow;i&&i.enabled&&(t.shadowColor=i.color,t.shadowOffsetX=i.xOffset*e,t.shadowOffsetY=i.yOffset*e,t.shadowBlur=i.blur*e),t.fill()}if(t.shadowColor="rgba(0, 0, 0, 0)",this.stroke&&this.effectiveStrokeWidth){t.strokeStyle=this.stroke,t.globalAlpha=this.opacity*this.strokeOpacity,t.lineWidth=this.effectiveStrokeWidth,this.lineDash&&t.setLineDash(this.lineDash),this.lineDashOffset&&(t.lineDashOffset=this.lineDashOffset),this.lineCap&&(t.lineCap=this.lineCap),this.lineJoin&&(t.lineJoin=this.lineJoin);var n=this.strokeShadow;n&&n.enabled&&(t.shadowColor=n.color,t.shadowOffsetX=n.xOffset*e,t.shadowOffsetY=n.yOffset*e,t.shadowBlur=n.blur*e),t.stroke()}},e.className="Rect",e}(z),kt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._x=0,e._y=0,e._size=12,e}return kt(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size!==t&&(this._size=Math.abs(t),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(){var t=this.x,e=this.y,n=this.size,r=n/2;return new i(t-r,e-r,n,n)},e}(z),Pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pt(e,t),e.prototype.updatePath=function(){var t=this.path,e=this.x,i=this.y,n=this.size/2,r=this.alignment,o=this.align;t.clear(),t.moveTo(o(r,e-n),o(r,i-n)),t.lineTo(o(r,e+n),o(r,i-n)),t.lineTo(o(r,e+n),o(r,i+n)),t.lineTo(o(r,e-n),o(r,i+n)),t.closePath()},e.className="Square",e}(Ot),Ct=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Mt=function(t){function e(){var e=t.call(this)||this;e.label=new f,e._marker=new St,e._markerSize=15,e._spacing=8;var i=e.label;return i.textBaseline="middle",i.fontSize=12,i.fontFamily="Verdana, sans-serif",i.fill="black",i.y=l.has.textMetrics?1:0,e.append([e.marker,i]),e.update(),e}return Ct(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(t){this.label.text=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this.label.fontStyle},set:function(t){this.label.fontStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.label.fontWeight},set:function(t){this.label.fontWeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.label.fontSize},set:function(t){this.label.fontSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.label.fontFamily},set:function(t){this.label.fontFamily=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.label.fill},set:function(t){this.label.fill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},set:function(t){this._marker!==t&&(this.removeChild(this._marker),this._marker=t,this.appendChild(t),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerSize",{get:function(){return this._markerSize},set:function(t){this._markerSize!==t&&(this._markerSize=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerFill",{get:function(){return this.marker.fill},set:function(t){this.marker.fill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerStroke",{get:function(){return this.marker.stroke},set:function(t){this.marker.stroke=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerStrokeWidth",{get:function(){return this.marker.strokeWidth},set:function(t){this.marker.strokeWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerFillOpacity",{get:function(){return this.marker.fillOpacity},set:function(t){this.marker.fillOpacity=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markerStrokeOpacity",{get:function(){return this.marker.strokeOpacity},set:function(t){this.marker.strokeOpacity=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.marker.opacity},set:function(t){this.marker.opacity=t,this.label.opacity=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){this._spacing!==t&&(this._spacing=t,this.update())},enumerable:!0,configurable:!0}),e.prototype.update=function(){var t=this.marker,e=this.markerSize;t.size=e,this.label.x=e/2+this.spacing},e.className="MarkerLabel",e}(_),Dt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.updatePath=function(){var t=this.x,e=this.y,i=this.path,n=this.size/2;i.clear(),i.cubicArc(t,e,n,n,0,0,2*Math.PI,0),i.closePath()},e.className="Circle",e}(Ot),At=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return At(e,t),e.prototype.updatePath=function(){var t=this.x,e=this.y,i=this.path,n=this.size/4.2;i.clear(),i.moveTo(t-=n,e),i.lineTo(t-=n,e-=n),i.lineTo(t+=n,e-=n),i.lineTo(t+=n,e+=n),i.lineTo(t+=n,e-=n),i.lineTo(t+=n,e+=n),i.lineTo(t-=n,e+=n),i.lineTo(t+=n,e+=n),i.lineTo(t-=n,e+=n),i.lineTo(t-=n,e-=n),i.lineTo(t-=n,e+=n),i.lineTo(t-=n,e-=n),i.closePath()},e.className="Cross",e}(Ot),jt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.updatePath=function(){var t=this.x,e=this.y,i=this.path,n=this.size/2;i.clear(),i.moveTo(t,e-=n),i.lineTo(t+=n,e+=n),i.lineTo(t-=n,e+=n),i.lineTo(t-=n,e-=n),i.lineTo(t+=n,e-=n),i.closePath()},e.className="Diamond",e}(Ot),It=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return It(e,t),e.prototype.rad=function(t){return t/180*Math.PI},e.prototype.updatePath=function(){var t=this.x,e=this.path,i=this.size,n=this.rad,r=i/4,o=this.y+r/2;e.clear(),e.cubicArc(t-r,o-r,r,r,0,n(130),n(330),0),e.cubicArc(t+r,o-r,r,r,0,n(220),n(50),0),e.lineTo(t,o+r),e.closePath()},e.className="Heart",e}(Ot),Lt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lt(e,t),e.prototype.updatePath=function(){var t=this.x,e=this.y,i=this.path,n=this.size/3,r=n/2;i.clear(),i.moveTo(t-=r,e-=r),i.lineTo(t,e-=n),i.lineTo(t+=n,e),i.lineTo(t,e+=n),i.lineTo(t+=n,e),i.lineTo(t,e+=n),i.lineTo(t-=n,e),i.lineTo(t,e+=n),i.lineTo(t-=n,e),i.lineTo(t,e-=n),i.lineTo(t-=n,e),i.lineTo(t,e-=n),i.closePath()},e.className="Plus",e}(Ot),zt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zt(e,t),e.prototype.updatePath=function(){var t=this.x,e=this.y,i=this.path,n=1.1*this.size;i.clear(),i.moveTo(t,e-=.48*n),i.lineTo(t+=.5*n,e+=.87*n),i.lineTo(t-=n,e),i.closePath()},e.className="Triangle",e}(Ot);function Kt(t){if(void 0===t&&(t=St),"string"==typeof t)switch(t){case"circle":return Et;case"cross":return Tt;case"diamond":return Ft;case"heart":return Nt;case"plus":return Bt;case"triangle":return Rt;default:return St}return"function"==typeof t?t:St}var Vt,Wt,Ht=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Yt=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t[t.Vertical=0]="Vertical",t[t.Horizontal=1]="Horizontal"}(Vt||(Vt={})),function(t){t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left"}(Wt||(Wt={}));var Xt,Ut=function(t){function e(){var e=t.call(this)||this;return e.id=r(e),e.group=new _,e.itemSelection=k.select(e.group).selectAll(),e.oldSize=[0,0],e.data=[],e.enabled=!0,e.orientation=Vt.Vertical,e.position=Wt.Right,e.spacing=20,e.layoutHorizontalSpacing=16,e.layoutVerticalSpacing=8,e.itemSpacing=8,e.markerSize=15,e.strokeWidth=1,e.color="black",e.fontSize=12,e.fontFamily="Verdana, sans-serif",e._size=[0,0],e.addPropertyListener("data",e.onDataChange),e.addPropertyListener("enabled",e.onEnabledChange),e.addPropertyListener("position",e.onPositionChange),e.addPropertyListener("markerShape",e.onMarkerShapeChange),e.addEventListener("change",e.update),e}return Ht(e,t),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.onDataChange=function(t){this.group.visible=t.value.length>0&&this.enabled},e.prototype.onEnabledChange=function(t){this.group.visible=t.value&&this.data.length>0},e.prototype.onPositionChange=function(t){switch(t.value){case"right":case"left":this.orientation=Vt.Vertical;break;case"bottom":case"top":this.orientation=Vt.Horizontal}},e.prototype.onMarkerShapeChange=function(){this.itemSelection=this.itemSelection.setData([]),this.itemSelection.exit.remove()},e.prototype.performLayout=function(t,e){var i=this,n=this.markerShape,r=this.layoutHorizontalSpacing,o=this.layoutVerticalSpacing,a=this.itemSelection.setData(this.data,(function(t,e){var i=Kt(n||e.marker.shape);return e.id+"-"+e.itemId+"-"+i.name}));a.exit.remove();var s=a.enter.append(Mt).each((function(t,e){var i=Kt(n||e.marker.shape);t.marker=new i})),h=this.itemSelection=a.merge(s),u=h.size,l=[];h.each((function(t,e){t.markerSize=i.markerSize,t.fontStyle=i.fontStyle,t.fontWeight=i.fontWeight,t.fontSize=i.fontSize,t.fontFamily=i.fontFamily,t.text=e.label.text,t.spacing=i.itemSpacing,l.push(t.computeBBox())}));var c=l.length&&l[0].height,f=0,p=0,d=0,y=0;switch(this.orientation){case Vt.Horizontal:if(!(isFinite(t)&&t>0))return!1;f=0;var g=0;do{var m=0;g=0,p=0,f++;for(var b=0;b<u;){(_=l[b]).width>p&&(p=_.width),++b%f==0&&(m+=p,p=0,g++)}b%f!=0&&(m+=p,g++),d=m+(g-1)*r}while(d>t&&g>1);y=c*f+(f-1)*o;break;case Vt.Vertical:if(!(isFinite(e)&&e>0))return!1;f=2*u;do{f=(f>>1)+f%2,p=0;m=0;var v=0,x=0;for(b=0;b<u;){var _=l[b];x||(v+=_.height),_.width>p&&(p=_.width),++b%f==0&&(m+=p,p=0,x++)}b%f!=0&&(m+=p,x++),d=m+(x-1)*r,y=v+(f-1)*o}while(y>e&&f>1)}var w=(t-d)/2,k=(e-y)/2,O=0,P=0;p=0,h.each((function(t,e,i){t.translationX=Math.floor(w+O),t.translationY=Math.floor(k+P);var n=l[i];n.width>p&&(p=n.width),(i+1)%f==0?(O+=p+r,P=0,p=0):P+=n.height+o})),this.update();var S=this._size,C=this.oldSize;S[0]=d,S[1]=y,S[0]===C[0]&&S[1]===C[1]||(C[0]=S[0],C[1]=S[1])},e.prototype.update=function(){var t=this;this.itemSelection.each((function(e,i){var n=i.marker;e.markerFill=n.fill,e.markerStroke=n.stroke,e.markerStrokeWidth=t.strokeWidth,e.markerFillOpacity=n.fillOpacity,e.markerStrokeOpacity=n.strokeOpacity,e.opacity=i.enabled?1:.5,e.color=t.color}))},e.prototype.getDatumForPoint=function(t,e){var i=this.group.pickNode(t,e);if(i&&i.parent)return i.parent.datum},e.className="Legend",Yt([y("layoutChange")],e.prototype,"data",void 0),Yt([y("layoutChange")],e.prototype,"enabled",void 0),Yt([y("layoutChange")],e.prototype,"orientation",void 0),Yt([y("layoutChange")],e.prototype,"position",void 0),Yt([y("layoutChange")],e.prototype,"spacing",void 0),Yt([y("layoutChange")],e.prototype,"layoutHorizontalSpacing",void 0),Yt([y("layoutChange")],e.prototype,"layoutVerticalSpacing",void 0),Yt([y("layoutChange")],e.prototype,"itemSpacing",void 0),Yt([y("layoutChange")],e.prototype,"markerShape",void 0),Yt([y("layoutChange")],e.prototype,"markerSize",void 0),Yt([y("change")],e.prototype,"strokeWidth",void 0),Yt([y("change")],e.prototype,"color",void 0),Yt([y("layoutChange")],e.prototype,"fontStyle",void 0),Yt([y("layoutChange")],e.prototype,"fontWeight",void 0),Yt([y("layoutChange")],e.prototype,"fontSize",void 0),Yt([y("layoutChange")],e.prototype,"fontFamily",void 0),e}(d),Gt=function(){function t(){}return t.init=function(){var t=this,e=window.ResizeObserver;if(e)this.resizeObserver=new e((function(e){for(var i=0,n=e;i<n.length;i++){var r=n[i],o=r.contentRect,a=o.width,s=o.height;t.checkSize(t.elements.get(r.target),r.target,a,s)}}));else{window.setInterval((function(){t.elements.forEach((function(e,i){var n=i.clientWidth?i.clientWidth:0,r=i.clientHeight?i.clientHeight:0;t.checkSize(e,i,n,r)}))}),100)}this.ready=!0},t.checkSize=function(t,e,i,n){t&&(t.size&&i===t.size.width&&n===t.size.height||(t.size={width:i,height:n},t.cb(t.size,e)))},t.observe=function(t,e){this.ready||this.init(),this.unobserve(t),this.resizeObserver&&this.resizeObserver.observe(t),this.elements.set(t,{cb:e})},t.unobserve=function(t){this.resizeObserver&&this.resizeObserver.unobserve(t),this.elements.delete(t)},t.elements=new Map,t.requestAnimationFrameId=0,t.ready=!1,t}(),qt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Jt=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},Zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.id=r(e),e.group=new _,e.directions=[X.X,X.Y],e.tooltipEnabled=!0,e.data=void 0,e.visible=!0,e.showInLegend=!0,e.scheduleLayout=function(){e.fireEvent({type:"layoutChange"})},e.scheduleData=function(){e.fireEvent({type:"dataChange"})},e}return qt(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return this.constructor.type||""},enumerable:!0,configurable:!0}),e.prototype.getKeys=function(t){var e=this,i=this.directionKeys,n=i&&i[t],r=[];return n&&n.forEach((function(t){var i=e[t];i&&(Array.isArray(i)?r.push.apply(r,i):r.push(i))})),r},e.prototype.getNodeData=function(){return[]},e.prototype.fireNodeClickEvent=function(t){},e.prototype.toggleSeriesItem=function(t,e){this.visible=e},e.prototype.onHighlightChange=function(){},e.prototype.fixNumericExtent=function(t,e){if(!t)return[0,1];var i=t[0],n=t[1];return i===n&&(i-=1,n+=1),isFinite(i)&&isFinite(n)||(i=0,n=1),[i,n]},Jt([y("dataChange")],e.prototype,"data",void 0),Jt([y("dataChange")],e.prototype,"visible",void 0),Jt([y("layoutChange")],e.prototype,"showInLegend",void 0),e}(d),$t=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Qt=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.enabled=!0,e.shape=Et,e.size=8,e.minSize=8,e.strokeWidth=1,e}return $t(e,t),Qt([y("change")],e.prototype,"enabled",void 0),Qt([y("change")],e.prototype,"shape",void 0),Qt([y("change")],e.prototype,"size",void 0),Qt([y("change")],e.prototype,"minSize",void 0),Qt([y("change")],e.prototype,"fill",void 0),Qt([y("change")],e.prototype,"stroke",void 0),Qt([y("change")],e.prototype,"strokeWidth",void 0),e}(d),ee=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ie=function(t){function e(){var e,i=null!==t&&t.apply(this,arguments)||this;return i.directionKeys=((e={})[X.X]=["xKey"],e[X.Y]=["yKey"],e),i}return ee(e,t),e}(Zt),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ee(e,t),e}(te),re=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oe=function(){return(oe=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},ae=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},se=function(t){function i(n){void 0===n&&(n=window.document);var o=t.call(this)||this;o.id=r(o),o.background=new wt,o.legend=new Ut,o.legendAutoPadding=new e,o.captionAutoPadding=0,o._container=void 0,o._data=[],o._autoSize=!1,o.padding=new e(20),o._axes=[],o._series=[],o._axesChanged=!1,o._seriesChanged=!1,o.layoutCallbackId=0,o._performLayout=function(){o.layoutCallbackId=0,o.background.width=o.width,o.background.height=o.height,o.performLayout(),o.layoutPending||o.fireEvent({type:"layoutDone"})},o.dataCallbackId=0,o._onMouseDown=o.onMouseDown.bind(o),o._onMouseUp=o.onMouseUp.bind(o),o._onMouseMove=o.onMouseMove.bind(o),o._onMouseOut=o.onMouseOut.bind(o),o._onClick=o.onClick.bind(o),o._tooltipClass=i.defaultTooltipClass,o.tooltipTracking=!0;var a=new _,s=o.background;s.fill="white",a.appendChild(s);var h=o._element=n.createElement("div");h.style.boxSizing="border-box",h.style.overflow="hidden",h.style.height="100%";var u=new xt(n);o.scene=u,u.root=a,u.container=h,o.autoSize=!0;var l=o.legend;if(l.addEventListener("layoutChange",o.onLayoutChange,o),l.addPropertyListener("position",o.onLegendPositionChange,o),o.tooltipElement=n.createElement("div"),o.tooltipClass="",n.body.appendChild(o.tooltipElement),i.tooltipDocuments.indexOf(n)<0){var c=n.createElement("style");c.innerHTML='\n.ag-chart-tooltip {\n    display: none;\n    position: absolute;\n    user-select: none;\n    pointer-events: none;\n    white-space: nowrap;\n    z-index: 99999;\n    font: 12px Verdana, sans-serif;\n    color: black;\n    background: rgb(244, 244, 244);\n    border-radius: 5px;\n    box-shadow: 0 0 1px rgba(3, 3, 3, 0.7), 0.5vh 0.5vh 1vh rgba(3, 3, 3, 0.25);\n}\n\n.ag-chart-tooltip-visible {\n    display: table;\n}\n\n.ag-chart-tooltip-title {\n    font-weight: bold;\n    padding: 7px;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n    color: white;\n    background-color: #888888;\n    border-top-left-radius: 5px;\n    border-top-right-radius: 5px;\n}\n\n.ag-chart-tooltip-content {\n    padding: 7px;\n    line-height: 1.7em;\n    border-bottom-left-radius: 5px;\n    border-bottom-right-radius: 5px;\n}\n\n.ag-chart-tooltip-arrow::before {\n    content: "";\n\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    transform: translateX(-50%);\n\n    border: 6px solid #989898;\n\n    border-left-color: transparent;\n    border-right-color: transparent;\n    border-top-color: #989898;\n    border-bottom-color: transparent;\n\n    width: 0;\n    height: 0;\n\n    margin: 0 auto;\n}\n\n.ag-chart-tooltip-arrow::after {\n    content: "";\n\n    position: absolute;\n    top: 100%;\n    left: 50%;\n    transform: translateX(-50%);\n\n    border: 5px solid black;\n\n    border-left-color: transparent;\n    border-right-color: transparent;\n    border-top-color: rgb(244, 244, 244);\n    border-bottom-color: transparent;\n\n    width: 0;\n    height: 0;\n\n    margin: 0 auto;\n}\n',n.head.insertBefore(c,n.head.querySelector("style")),i.tooltipDocuments.push(n)}return o.setupDomListeners(u.canvas.element),o.addPropertyListener("title",o.onCaptionChange),o.addPropertyListener("subtitle",o.onCaptionChange),o.addEventListener("layoutChange",(function(){return o.layoutPending=!0})),o}return re(i,t),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},set:function(t){if(this._container!==t){var e=this.element.parentNode;null!=e&&e.removeChild(this.element),t&&t.appendChild(this.element),this._container=t}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t,this.series.forEach((function(e){return e.data=t}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.scene.width},set:function(t){this.autoSize=!1,this.width!==t&&(this.scene.resize(t,this.height),this.fireEvent({type:"layoutChange"}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.scene.height},set:function(t){this.autoSize=!1,this.height!==t&&(this.scene.resize(this.width,t),this.fireEvent({type:"layoutChange"}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoSize",{get:function(){return this._autoSize},set:function(t){if(this._autoSize!==t)if(this._autoSize=t,t){var e=this;Gt.observe(this.element,(function(t){t.width===e.width&&t.height===e.height||(e.scene.resize(t.width,t.height),e.fireEvent({type:"layoutChange"}))})),this.element.style.display="block"}else Gt.unobserve(this.element),this.element.style.display="inline-block"},enumerable:!0,configurable:!0}),i.prototype.download=function(t){this.scene.download(t)},i.prototype.destroy=function(){var t=this.tooltipElement.parentNode;t&&t.removeChild(this.tooltipElement),Gt.unobserve(this.element),this.container=void 0,this.cleanupDomListeners(this.scene.canvas.element),this.scene.container=void 0},i.prototype.onLayoutChange=function(){this.layoutPending=!0},i.prototype.onLegendPositionChange=function(){this.legendAutoPadding.clear(),this.layoutPending=!0},i.prototype.onCaptionChange=function(t){var e=t.value,i=t.oldValue;i&&(i.removeEventListener("change",this.onLayoutChange,this),this.scene.root.removeChild(i.node)),e&&(e.addEventListener("change",this.onLayoutChange,this),this.scene.root.appendChild(e.node))},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axes",{get:function(){return this._axes},set:function(t){var e=this;this._axes.forEach((function(t){return e.detachAxis(t)})),this._axes=t.filter((function(t){return!t.linkedTo})).concat(t.filter((function(t){return t.linkedTo}))),this._axes.forEach((function(t){return e.attachAxis(t)})),this.axesChanged=!0},enumerable:!0,configurable:!0}),i.prototype.attachAxis=function(t){this.scene.root.insertBefore(t.group,this.seriesRoot)},i.prototype.detachAxis=function(t){this.scene.root.removeChild(t.group)},Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(t){var e=this;this.removeAllSeries(),t.forEach((function(t){return e.addSeries(t)}))},enumerable:!0,configurable:!0}),i.prototype.scheduleLayout=function(){this.layoutPending=!0},i.prototype.scheduleData=function(){this.dehighlightDatum(),this.dataPending=!0},i.prototype.addSeries=function(t,e){var i=this.series,n=this.seriesRoot;if(i.indexOf(t)<0){var r=e?i.indexOf(e):-1;return r>=0?(i.splice(r,0,t),n.insertBefore(t.group,e.group)):(i.push(t),n.append(t.group)),this.initSeries(t),this.seriesChanged=!0,this.axesChanged=!0,!0}return!1},i.prototype.initSeries=function(t){t.chart=this,t.data||(t.data=this.data),t.addEventListener("layoutChange",this.scheduleLayout,this),t.addEventListener("dataChange",this.scheduleData,this),t.addEventListener("legendChange",this.updateLegend,this),t.addEventListener("nodeClick",this.onSeriesNodeClick,this)},i.prototype.freeSeries=function(t){t.chart=void 0,t.removeEventListener("layoutChange",this.scheduleLayout,this),t.removeEventListener("dataChange",this.scheduleData,this),t.removeEventListener("legendChange",this.updateLegend,this),t.removeEventListener("nodeClick",this.onSeriesNodeClick,this)},i.prototype.addSeriesAfter=function(t,e){var i=this.series,n=this.seriesRoot;if(i.indexOf(t)<0){var r=e?this.series.indexOf(e):-1;r>=0?(r+1<i.length?n.insertBefore(t.group,i[r+1].group):n.append(t.group),this.initSeries(t),i.splice(r+1,0,t)):(i.length>0?n.insertBefore(t.group,i[0].group):n.append(t.group),this.initSeries(t),i.unshift(t)),this.seriesChanged=!0,this.axesChanged=!0}return!1},i.prototype.removeSeries=function(t){var e=this.series.indexOf(t);return e>=0&&(this.series.splice(e,1),this.freeSeries(t),this.seriesRoot.removeChild(t.group),this.seriesChanged=!0,!0)},i.prototype.removeAllSeries=function(){var t=this;this.series.forEach((function(e){t.freeSeries(e),t.seriesRoot.removeChild(e.group)})),this._series=[],this.seriesChanged=!0},i.prototype.assignSeriesToAxes=function(){var t=this;this.axes.forEach((function(e){var i=e.direction+"Axis",n=[];t.series.forEach((function(t){t[i]===e&&n.push(t)})),e.boundSeries=n})),this.seriesChanged=!1},i.prototype.assignAxesToSeries=function(t){var e=this;void 0===t&&(t=!1);var i={};this.axes.forEach((function(t){var e=t.direction;(i[e]||(i[e]=[])).push(t)})),this.series.forEach((function(n){if(n.directions.forEach((function(r){var o=r+"Axis";if(!n[o]||t){var a=i[r];if(a){var s=e.findMatchingAxis(a,n.getKeys(r));s&&(n[o]=s)}}})),n instanceof ie){if(!n.xAxis)return void console.warn("Could not find a matching xAxis for the "+n.id+" series.");if(!n.yAxis)return void console.warn("Could not find a matching yAxis for the "+n.id+" series.")}})),this.axesChanged=!1},i.prototype.findMatchingAxis=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=n.keys;if(!r.length)return n;if(e)for(var o=0;o<e.length;o++)if(r.indexOf(e[o])>=0)return n}},Object.defineProperty(i.prototype,"axesChanged",{get:function(){return this._axesChanged},set:function(t){this._axesChanged=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"seriesChanged",{get:function(){return this._seriesChanged},set:function(t){this._seriesChanged=t,t&&(this.dataPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"layoutPending",{get:function(){return!!this.layoutCallbackId},set:function(t){t?this.layoutCallbackId||this.dataPending||(this.layoutCallbackId=requestAnimationFrame(this._performLayout)):this.layoutCallbackId&&(cancelAnimationFrame(this.layoutCallbackId),this.layoutCallbackId=0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataPending",{get:function(){return!!this.dataCallbackId},set:function(t){var e=this;this.dataCallbackId&&(clearTimeout(this.dataCallbackId),this.dataCallbackId=0),t&&(this.dataCallbackId=window.setTimeout((function(){e.dataPending=!1,e.processData()}),0))},enumerable:!0,configurable:!0}),i.prototype.processData=function(){this.layoutPending=!1,this.axesChanged&&(this.assignAxesToSeries(!0),this.assignSeriesToAxes()),this.seriesChanged&&this.assignSeriesToAxes(),this.series.filter((function(t){return t.visible})).forEach((function(t){return t.processData()})),this.updateLegend(),this.layoutPending=!0},i.prototype.updateLegend=function(){var t=[];this.series.filter((function(t){return t.showInLegend})).forEach((function(e){return e.listSeriesItems(t)})),this.legend.data=t},i.prototype.positionCaptions=function(){var t=this.title,e=this.subtitle,i=!1,n=!1,r=10;if(t&&t.enabled){t.node.x=this.width/2,t.node.y=r,i=!0;var o=t.node.computeBBox();if(o&&(r=o.y+o.height),e&&e.enabled){e.node.x=this.width/2,e.node.y=r+10,n=!0;var a=e.node.computeBBox();a&&(r=a.y+a.height)}}t&&(t.node.visible=i),e&&(e.node.visible=n),this.captionAutoPadding=Math.floor(r)},i.prototype.positionLegend=function(){if(this.legend.enabled&&this.legend.data.length){var t,e=this.legend,i=this.captionAutoPadding,n=this.legendAutoPadding,r=this.width,o=this.height-i,a=e.group,s=e.spacing,h=0,u=0;switch(e.position){case"bottom":e.performLayout(r-2*s,0),h=(r-(t=a.computeBBox()).width)/2-t.x,u=i+o-t.height-t.y-s,n.bottom=t.height;break;case"top":e.performLayout(r-2*s,0),h=(r-(t=a.computeBBox()).width)/2-t.x,u=i+s-t.y,n.top=t.height;break;case"left":e.performLayout(0,o-2*s),h=s-(t=a.computeBBox()).x,u=i+(o-t.height)/2-t.y,n.left=t.width;break;default:e.performLayout(0,o-2*s),h=r-(t=a.computeBBox()).width-t.x-s,u=i+(o-t.height)/2-t.y,n.right=t.width}a.translationX=Math.floor(h+a.translationX),a.translationY=Math.floor(u+a.translationY)}},i.prototype.setupDomListeners=function(t){t.addEventListener("mousedown",this._onMouseDown),t.addEventListener("mousemove",this._onMouseMove),t.addEventListener("mouseup",this._onMouseUp),t.addEventListener("mouseout",this._onMouseOut),t.addEventListener("click",this._onClick)},i.prototype.cleanupDomListeners=function(t){t.removeEventListener("mousedown",this._onMouseDown),t.removeEventListener("mousemove",this._onMouseMove),t.removeEventListener("mouseup",this._onMouseUp),t.removeEventListener("mouseout",this._onMouseOut),t.removeEventListener("click",this._onClick)},i.prototype.pickSeriesNode=function(t,e){if(this.seriesRect&&this.seriesRect.containsPoint(t,e))for(var i=this.series,n=void 0,r=i.length-1;r>=0;r--){var o=i[r];if(n=o.group.pickNode(t,e))return{series:o,node:n}}},i.prototype.pickClosestSeriesNodeDatum=function(t,e){if(this.seriesRect&&this.seriesRect.containsPoint(t,e)){for(var i,n=this.series,r=1/0,o=function(o){var a=n[o];if(!a.visible)return"continue";var s=a.group.transformPoint(t,e);a.getNodeData().forEach((function(t){if(t.point){var e,n,o=(e=s,n=t.point,Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)));o<r&&(r=o,i=t)}}))},a=n.length-1;a>=0;a--)o(a);return i||void 0}},i.prototype.onMouseMove=function(t){var e,i=this.lastPick,n=this.tooltipTracking,r=this.pickSeriesNode(t.offsetX,t.offsetY);if(r&&r.node instanceof u){var o=r.node;if(e=o.datum,i&&i.datum===e&&(i.node=o),!o.datum.point||!n)return void(i&&i.node===o?r.series.tooltipEnabled&&this.showTooltip(t):this.onSeriesDatumPick(t,o.datum,o))}var a=!1;if(n){var s=this.pickClosestSeriesNodeDatum(t.offsetX,t.offsetY);if(s&&s.point){var h=s.point,l=h.x,c=h.y,f=this.scene.canvas,p=s.series.group.inverseTransformPoint(l,c),d=f.element.getBoundingClientRect();this.onSeriesDatumPick({pageX:Math.round(d.left+window.pageXOffset+p.x),pageY:Math.round(d.top+window.pageYOffset+p.y)},s,e===s?r.node:void 0)}else a=!0}!i||!a&&n||(this.dehighlightDatum(),this.hideTooltip(),this.lastPick=void 0)},i.prototype.onMouseDown=function(t){},i.prototype.onMouseUp=function(t){},i.prototype.onMouseOut=function(t){this.toggleTooltip(!1)},i.prototype.onClick=function(t){this.checkSeriesNodeClick(),this.checkLegendClick(t)},i.prototype.checkSeriesNodeClick=function(){var t=this.lastPick;if(t&&t.node){var e=this.lastPick.datum;e.series.fireNodeClickEvent(e)}},i.prototype.onSeriesNodeClick=function(t){this.fireEvent(oe(oe({},t),{type:"seriesNodeClick"}))},i.prototype.checkLegendClick=function(t){var e=this.legend.getDatumForPoint(t.offsetX,t.offsetY);if(e){var i=e.id,n=e.itemId,r=e.enabled,o=it(this.series,(function(t){return t.id===i}));o&&(o.toggleSeriesItem(n,!r),r&&this.hideTooltip())}},i.prototype.onSeriesDatumPick=function(t,e,i){this.lastPick&&this.dehighlightDatum(),this.lastPick={datum:e,node:i},this.highlightDatum(e);var n=e.series.tooltipEnabled&&e.series.getTooltipHtml(e);n&&this.showTooltip(t,n)},i.prototype.highlightDatum=function(t){this.highlightedDatum=t,this.series.forEach((function(t){return t.onHighlightChange()}))},i.prototype.dehighlightDatum=function(){this.highlightedDatum&&(this.highlightedDatum=void 0,this.series.forEach((function(t){return t.onHighlightChange()})))},Object.defineProperty(i.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass!==t&&(this._tooltipClass=t,this.toggleTooltip())},enumerable:!0,configurable:!0}),i.prototype.toggleTooltip=function(t){!t&&this.lastPick&&(this.dehighlightDatum(),this.lastPick=void 0),this.updateTooltipClass(t)},i.prototype.updateTooltipClass=function(t,e){var n=[i.defaultTooltipClass,this.tooltipClass];!0===t&&n.push(i.defaultTooltipClass+"-visible"),!0!==e&&n.push(i.defaultTooltipClass+"-arrow"),this.tooltipElement.setAttribute("class",n.join(" "))},i.prototype.showTooltip=function(t,e){var i=this.tooltipElement,n=this.container;if(void 0!==e)i.innerHTML=e;else if(!i.innerHTML)return;e&&this.toggleTooltip(!0);var r=t.pageX-i.clientWidth/2,o=t.pageY-i.clientHeight-8;if(n){var a=i.getBoundingClientRect(),s=window.innerWidth-a.width;r<0?(r=0,this.updateTooltipClass(!0,!0)):r>s&&(r=s,this.updateTooltipClass(!0,!0))}i.style.left=r+"px",i.style.top=o+"px"},i.prototype.hideTooltip=function(){this.toggleTooltip(!1)},i.defaultTooltipClass="ag-chart-tooltip",i.tooltipDocuments=[],ae([y("layoutChange")],i.prototype,"padding",void 0),ae([y("layoutChange")],i.prototype,"title",void 0),ae([y("layoutChange")],i.prototype,"subtitle",void 0),i}(d),he=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ue=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContainerNode=!0,e.path=new L,e._active=!0,e._dirtyPath=!0,e._x=0,e._y=0,e._width=10,e._height=10,e}return he(e,t),e.prototype.containsPoint=function(t,e){var i=this.transformPoint(t,e);return i.x>=this.x&&i.x<=this.x+this.width&&i.y>=this.y&&i.y<=this.y+this.height},Object.defineProperty(e.prototype,"active",{get:function(){return this._active},set:function(t){this._active!==t&&(this._active=t,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(t){this._dirtyPath!==t&&(this._dirtyPath=t,t&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width!==t&&(this._width=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height!==t&&(this._height=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),e.prototype.updatePath=function(){var t=this.path;t.clear(),t.rect(this.x,this.y,this.width,this.height),this.dirtyPath=!1},e.prototype.computeBBox=function(){var t=this.x,e=this.y,n=this.width,r=this.height;return new i(t,e,n,r)},e.prototype.render=function(t){this.active&&(this.dirtyPath&&this.updatePath(),this.scene.appendPath(this.path),t.clip());for(var e=this.children,i=e.length,n=0;n<i;n++){t.save();var r=e[n];r.visible&&r.render(t),t.restore()}},e.className="ClipRect",e}(o),le=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ce=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._fill="#f2f2f2",e._stroke="#999999",e._strokeWidth=1,e._lineCap="square",e._centerX=0,e._centerY=0,e._width=8,e._gripLineGap=2,e._gripLineLength=8,e._height=16,e}return le(e,t),Object.defineProperty(e.prototype,"centerX",{get:function(){return this._centerX},set:function(t){this._centerX!==t&&(this._centerX=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this._centerY},set:function(t){this._centerY!==t&&(this._centerY=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width!==t&&(this._width=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gripLineGap",{get:function(){return this._gripLineGap},set:function(t){this._gripLineGap!==t&&(this._gripLineGap=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gripLineLength",{get:function(){return this._gripLineLength},set:function(t){this._gripLineLength!==t&&(this._gripLineLength=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height!==t&&(this._height=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(){var t=this.centerX,e=this.centerY,n=this.width,r=this.height;return new i(t-n/2,e-r/2,n,r)},e.prototype.isPointInPath=function(t,e){var i=this.transformPoint(t,e);return this.computeBBox().containsPoint(i.x,i.y)},e.prototype.updatePath=function(){var t=this,e=t.path,i=t.centerX,n=t.centerY,r=t.width,o=t.height,a=this.alignment,s=this.align;e.clear();var h=i-r/2,u=n-o/2,l=s(a,h),c=s(a,u),f=l+s(a,h,r),p=c+s(a,u,o);e.moveTo(l,c),e.lineTo(f,c),e.lineTo(f,p),e.lineTo(l,p),e.lineTo(l,c);var d=this.gripLineGap/2,y=this.gripLineLength/2;e.moveTo(s(a,i-d),s(a,n-y)),e.lineTo(s(a,i-d),s(a,n+y)),e.moveTo(s(a,i+d),s(a,n-y)),e.lineTo(s(a,i+d),s(a,n+y))},e.className="RangeHandle",e}(z),fe=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),pe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._stroke="#999999",e._strokeWidth=1,e._fill="#999999",e._fillOpacity=.2,e._lineCap="square",e._x=0,e._y=0,e._width=200,e._height=30,e.minRange=.05,e._min=0,e._max=1,e}return fe(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width!==t&&(this._width=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height!==t&&(this._height=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(t){t=Math.min(Math.max(t,0),this.max-this.minRange),isNaN(t)||this._min!==t&&(this._min=t,this.dirtyPath=!0,this.onRangeChange&&this.onRangeChange(t,this.max))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(t){t=Math.max(Math.min(t,1),this.min+this.minRange),isNaN(t)||this._max!==t&&(this._max=t,this.dirtyPath=!0,this.onRangeChange&&this.onRangeChange(this.min,t))},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(){var t=this.x,e=this.y,n=this.width,r=this.height;return new i(t,e,n,r)},e.prototype.computeVisibleRangeBBox=function(){var t=this,e=t.x,n=t.y,r=t.width,o=t.height,a=t.min,s=t.max,h=e+r*a;return new i(h,n,e+r*s-h,o)},e.prototype.updatePath=function(){var t=this,e=t.path,i=t.x,n=t.y,r=t.width,o=t.height,a=t.min,s=t.max,h=this.alignment,u=this.align;e.clear();var l=u(h,i),c=u(h,n),f=l+u(h,i,r),p=c+u(h,n,o);e.moveTo(l,c),e.lineTo(f,c),e.lineTo(f,p),e.lineTo(l,p),e.lineTo(l,c);var d=u(h,i+r*a),y=u(h,i+r*s);e.moveTo(d,c),e.lineTo(d,p),e.lineTo(y,p),e.lineTo(y,c),e.lineTo(d,c)},e.className="RangeMask",e}(z),de=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ye=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.isContainerNode=!0,i.minHandle=new ce,i.maxHandle=new ce,i.mask=function(){var t=e.defaults,n=t.x,r=t.y,o=t.width,a=t.height,s=t.min,h=t.max,u=new pe;u.x=n,u.y=r,u.width=o,u.height=a,u.min=s,u.max=h;var l=i,c=l.minHandle,f=l.maxHandle;return c.centerX=n,f.centerX=n+o,c.centerY=f.centerY=r+a/2,i.append([u,c,f]),u.onRangeChange=function(t,e){i.updateHandles(),i.onRangeChange&&i.onRangeChange(t,e)},u}(),i._x=e.defaults.x,i._y=e.defaults.y,i._width=e.defaults.width,i._height=e.defaults.height,i._min=e.defaults.min,i._max=e.defaults.max,i}return de(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.mask.x},set:function(t){this.mask.x=t,this.updateHandles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.mask.y},set:function(t){this.mask.y=t,this.updateHandles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.mask.width},set:function(t){this.mask.width=t,this.updateHandles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.mask.height},set:function(t){this.mask.height=t,this.updateHandles()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this.mask.min},set:function(t){this.mask.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this.mask.max},set:function(t){this.mask.max=t},enumerable:!0,configurable:!0}),e.prototype.updateHandles=function(){var t=this,e=t.minHandle,i=t.maxHandle,n=t.x,r=t.y,o=t.width,a=t.height,s=t.mask;e.centerX=n+o*s.min,i.centerX=n+o*s.max,e.centerY=i.centerY=r+a/2},e.prototype.computeBBox=function(){return this.mask.computeBBox()},e.prototype.computeVisibleRangeBBox=function(){return this.mask.computeVisibleRangeBBox()},e.prototype.render=function(t){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(t);[this.mask,this.minHandle,this.maxHandle].forEach((function(e){t.save(),e.visible&&e.render(t),t.restore()}))},e.className="Range",e.defaults={x:0,y:0,width:200,height:30,min:0,max:1},e}(_),ge=function(){function t(t){this.rm=t}return Object.defineProperty(t.prototype,"fill",{get:function(){return this.rm.fill},set:function(t){this.rm.fill=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this.rm.stroke},set:function(t){this.rm.stroke=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.rm.strokeWidth},set:function(t){this.rm.strokeWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this.rm.fillOpacity},set:function(t){this.rm.fillOpacity=t},enumerable:!0,configurable:!0}),t}(),me=function(){function t(t){this.rh=t}return Object.defineProperty(t.prototype,"fill",{get:function(){return this.rh.fill},set:function(t){this.rh.fill=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this.rh.stroke},set:function(t){this.rh.stroke=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.rh.strokeWidth},set:function(t){this.rh.strokeWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.rh.width},set:function(t){this.rh.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.rh.height},set:function(t){this.rh.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gripLineGap",{get:function(){return this.rh.gripLineGap},set:function(t){this.rh.gripLineGap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gripLineLength",{get:function(){return this.rh.gripLineLength},set:function(t){this.rh.gripLineLength=t},enumerable:!0,configurable:!0}),t}(),be=function(){function t(t){var e=this;this.rs=new ye,this.mask=new ge(this.rs.mask),this.minHandle=new me(this.rs.minHandle),this.maxHandle=new me(this.rs.maxHandle),this.minHandleDragging=!1,this.maxHandleDragging=!1,this.panHandleOffset=NaN,this._margin=10,this.chart=t,t.scene.root.append(this.rs),this.rs.onRangeChange=function(t,i){return e.updateAxes(t,i)}}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.rs.visible},set:function(t){this.rs.visible=t,this.chart.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.rs.x},set:function(t){this.rs.x=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.rs.y},set:function(t){this.rs.y=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.rs.width},set:function(t){this.rs.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.rs.height},set:function(t){this.rs.height=t,this.chart.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return this._margin},set:function(t){this._margin=t,this.chart.layoutPending=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.rs.min},set:function(t){this.rs.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.rs.max},set:function(t){this.rs.max=t},enumerable:!0,configurable:!0}),t.prototype.updateAxes=function(t,e){this.chart.axes.forEach((function(i){i.direction===X.X&&(i.visibleRange=[t,e],i.update())})),this.chart.series.forEach((function(t){return t.update()}))},t.prototype.onMouseDown=function(t){var e=t.offsetX,i=t.offsetY,n=this.rs,r=n.minHandle,o=n.maxHandle,a=n.x,s=n.width,h=n.min,u=n.computeVisibleRangeBBox();this.minHandleDragging||this.maxHandleDragging||(r.containsPoint(e,i)?this.minHandleDragging=!0:o.containsPoint(e,i)?this.maxHandleDragging=!0:u.containsPoint(e,i)&&(this.panHandleOffset=(e-a)/s-h))},t.prototype.onMouseMove=function(t){var e=this.rs,n=this.panHandleOffset,r=e.x,o=e.y,a=e.width,s=e.height,h=e.minHandle,u=e.maxHandle,l=this.chart.element.style,c=t.offsetX,f=t.offsetY,p=r+a*e.min,d=r+a*e.max,y=new i(p,o,d-p,s);function g(){return Math.min(Math.max((c-r)/a,0),1)}if(h.containsPoint(c,f)||u.containsPoint(c,f)?l.cursor="ew-resize":y.containsPoint(c,f)?l.cursor="grab":l.cursor="default",this.minHandleDragging)e.min=g();else if(this.maxHandleDragging)e.max=g();else if(!isNaN(n)){var m=e.max-e.min,b=Math.min(g()-n,1-m);b<=e.min?(e.min=b,e.max=e.min+m):(e.max=b+m,e.min=e.max-m)}},t.prototype.onMouseOut=function(t){this.stopHandleDragging()},t.prototype.onMouseUp=function(t){this.stopHandleDragging()},t.prototype.stopHandleDragging=function(){this.minHandleDragging=this.maxHandleDragging=!1,this.panHandleOffset=NaN},t}(),ve=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),xe=function(t){function e(e){void 0===e&&(e=window.document);var i=t.call(this,e)||this;i._seriesRoot=new ue,i.navigator=new be(i),i.scene.root.visible=!1;var n=i.scene.root;return n.append(i.seriesRoot),n.append(i.legend.group),i.navigator.enabled=!1,i}return ve(e,t),Object.defineProperty(e.prototype,"seriesRoot",{get:function(){return this._seriesRoot},enumerable:!0,configurable:!0}),e.prototype.performLayout=function(){if(!this.dataPending){this.scene.root.visible=!0;var t=this,e=t.width,n=t.height,r=t.axes,o=t.legend,a=t.navigator,s=new i(0,0,e,n);if(this.positionCaptions(),this.positionLegend(),o.enabled&&o.data.length){var h=this.legendAutoPadding,u=this.legend.spacing;switch(s.x+=h.left,s.y+=h.top,s.width-=h.left+h.right,s.height-=h.top+h.bottom,this.legend.position){case"right":s.width-=u;break;case"bottom":s.height-=u;break;case"left":s.x+=u,s.width-=u;break;case"top":s.y+=u,s.height-=u}}var l=this.captionAutoPadding,c=this.padding;this.updateAxes(),s.x+=c.left,s.width-=c.left+c.right,s.y+=c.top+l,s.height-=c.top+l+c.bottom,a.enabled&&(s.height-=a.height+a.margin);var f=0;r.forEach((function(t){t.group.visible=!0;var e=Math.floor(t.computeBBox().width);switch(t.position){case U.Top:s.y+=e,s.height-=e,t.translation.y=Math.floor(s.y+1),t.label.mirrored=!0;break;case U.Right:s.width-=e,t.translation.x=Math.floor(s.x+s.width),t.label.mirrored=!0;break;case U.Bottom:s.height-=e,f+=e,t.translation.y=Math.floor(s.y+s.height+1);break;case U.Left:s.x+=e,s.width-=e,t.translation.x=Math.floor(s.x)}})),r.forEach((function(t){switch(t.position){case U.Top:t.translation.x=Math.floor(s.x),t.range=[0,s.width],t.gridLength=s.height;break;case U.Right:t.translation.y=Math.floor(s.y),t.range=t instanceof et||t instanceof vt?[0,s.height]:[s.height,0],t.gridLength=s.width;break;case U.Bottom:t.translation.x=Math.floor(s.x),t.range=[0,s.width],t.gridLength=s.height;break;case U.Left:t.translation.y=Math.floor(s.y),t.range=t instanceof et||t instanceof vt?[0,s.height]:[s.height,0],t.gridLength=s.width}})),this.seriesRect=s,this.series.forEach((function(t){t.group.translationX=Math.floor(s.x),t.group.translationY=Math.floor(s.y),t.update()}));var p=this.seriesRoot;p.x=s.x,p.y=s.y,p.width=s.width,p.height=s.height,a.enabled&&(a.x=s.x,a.y=s.y+s.height+f+a.margin,a.width=s.width),this.axes.forEach((function(t){return t.update()}))}},e.prototype.initSeries=function(e){t.prototype.initSeries.call(this,e),e.addEventListener("dataProcessed",this.updateAxes,this)},e.prototype.freeSeries=function(e){t.prototype.freeSeries.call(this,e),e.removeEventListener("dataProcessed",this.updateAxes,this)},e.prototype.onMouseDown=function(e){t.prototype.onMouseDown.call(this,e),this.navigator.onMouseDown(e)},e.prototype.onMouseMove=function(e){t.prototype.onMouseMove.call(this,e),this.navigator.onMouseMove(e)},e.prototype.onMouseUp=function(e){t.prototype.onMouseUp.call(this,e),this.navigator.onMouseUp(e)},e.prototype.onMouseOut=function(e){t.prototype.onMouseOut.call(this,e),this.navigator.onMouseUp(e)},e.prototype.updateAxes=function(){this.axes.forEach((function(t){var e,i=t.direction,n=t.boundSeries;if(t.linkedTo)t.domain=t.linkedTo.domain;else{var r=[];n.filter((function(t){return t.visible})).forEach((function(t){r.push(t.getDomain(i))}));var o=(e=new Array).concat.apply(e,r);t.domain=ot(o)||o}t.update()}))},e.className="CartesianChart",e.type="cartesian",e}(se),_e=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _e(e,t),e.prototype.updateAxes=function(){this.axes.forEach((function(t){var e,i=t.direction,n=t.boundSeries,r=[],o=void 0;n.filter((function(t){return t.visible})).forEach((function(t){if(i===X.X)if(void 0===o){var e=t.getDomain(i);r.push(e),o="number"==typeof e[0]}else o&&r.push(t.getDomain(i));else r.push(t.getDomain(i))}));var a=(e=new Array).concat.apply(e,r);t.domain=ot(a)||a,t.update()}))},e}(xe),ke={fills:["#f3622d","#fba71b","#57b757","#41a9c9","#4258c9","#9a42c8","#c84164","#888888"],strokes:["#aa4520","#b07513","#3d803d","#2d768d","#2e3e8d","#6c2e8c","#8c2d46","#5f5f5f"]},Oe={fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]},Pe={fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]},Se={fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]},Ce={fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]},Me=((Xt=new Map).set("borneo",ke),Xt.set("material",Oe),Xt.set("pastel",Pe),Xt.set("bright",Se),Xt.set("flat",Ce),Xt),De=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ee=function(t){function e(){var e,i=null!==t&&t.apply(this,arguments)||this;return i.directionKeys=((e={})[X.X]=["angleKey"],e[X.Y]=["radiusKey"],e),i.centerX=0,i.centerY=0,i.radius=0,i}return De(e,t),e}(Zt),Ae=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}De(e,t)}(te),function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),Te=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},je=function(t){function n(i){void 0===i&&(i=window.document);var n=t.call(this,i)||this;return n.padding=new e(40),n.scene.root.append(n.legend.group),n}return Ae(n,t),Object.defineProperty(n.prototype,"seriesRoot",{get:function(){return this.scene.root},enumerable:!0,configurable:!0}),n.prototype.performLayout=function(){var t=new i(0,0,this.width,this.height);this.positionCaptions(),this.positionLegend();var e=this.captionAutoPadding;if(t.y+=e,t.height-=e,this.legend.enabled&&this.legend.data.length){var n=this.legendAutoPadding;t.x+=n.left,t.y+=n.top,t.width-=n.left+n.right,t.height-=n.top+n.bottom;var r=this.legend.spacing;switch(this.legend.position){case"right":t.width-=r;break;case"bottom":t.height-=r;break;case"left":t.x+=r,t.width-=r;break;case"top":t.y+=r,t.height-=r}}var o=this.padding;t.x+=o.left,t.y+=o.top,t.width-=o.left+o.right,t.height-=o.top+o.bottom,this.seriesRect=t;var a=t.x+t.width/2,s=t.y+t.height/2,h=Math.min(t.width,t.height)/2;this.series.forEach((function(t){t instanceof Ee&&(t.centerX=a,t.centerY=s,t.radius=h,t.update())}))},n.className="PolarChart",n.type="polar",Te([y("layoutChange")],n.prototype,"padding",void 0),n}(se);function Fe(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n=void 0;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!Fe(t[n],e[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();var r=Object.keys(t);if((i=r.length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=i;0!=n--;){var o=r[n];if(!Fe(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}var Ie,Ne=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Le=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},Be=function(e){function i(){var t=e.call(this)||this;return t.areaGroup=t.group.appendChild(new _),t.strokeGroup=t.group.appendChild(new _),t.markerGroup=t.group.appendChild(new _),t.areaSelection=k.select(t.areaGroup).selectAll(),t.strokeSelection=k.select(t.strokeGroup).selectAll(),t.markerSelection=k.select(t.markerGroup).selectAll(),t.markerSelectionData=[],t.seriesItemEnabled=new Map,t.xData=[],t.yData=[],t.yDomain=[],t.directionKeys={x:["xKey"],y:["yKeys"]},t.marker=new ne,t.fills=ke.fills,t.strokes=ke.strokes,t.fillOpacity=1,t.strokeOpacity=1,t._xKey="",t.xName="",t._yKeys=[],t.yNames=[],t.strokeWidth=2,t.highlightStyle={fill:"yellow"},t.addEventListener("update",t.update),t.marker.enabled=!1,t.marker.addPropertyListener("shape",t.onMarkerShapeChange,t),t.marker.addEventListener("change",t.update,t),t}return Ne(i,e),i.prototype.onMarkerShapeChange=function(){this.markerSelection=this.markerSelection.setData([]),this.markerSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},Object.defineProperty(i.prototype,"xKey",{get:function(){return this._xKey},set:function(t){this._xKey!==t&&(this._xKey=t,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yKeys",{get:function(){return this._yKeys},set:function(t){if(!Fe(this._yKeys,t)){this._yKeys=t,this.yData=[];var e=this.seriesItemEnabled;e.clear(),t.forEach((function(t){return e.set(t,!0)})),this.scheduleData()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(t){var e=t?Math.abs(t):void 0;this._normalizedTo!==e&&(this._normalizedTo=e,this.scheduleData())},enumerable:!0,configurable:!0}),i.prototype.onHighlightChange=function(){this.updateMarkerNodes()},i.prototype.processData=function(){var t=this.xKey,e=this.yKeys,i=this.seriesItemEnabled,n=t&&e.length&&this.data?this.data:[],r=!0;this.xData=n.map((function(e){return r&&!(t in e)&&(r=!1,console.warn("The key '"+t+"' was not found in the data: ",e)),e[t]})),this.yData=n.map((function(t){return e.map((function(e){r&&!(e in t)&&(r=!1,console.warn("The key '"+e+"' was not found in the data: ",t));var n=t[e];return isFinite(n)&&i.get(e)?n:0}))}));var o,a,s=this.yData,h=this.normalizedTo,u=s.map((function(t){return at(t)})),l=st(u);return h&&isFinite(h)?(o=l.min<0?-h:0,a=h,s.forEach((function(t,e){return t.forEach((function(i,n){t[n]=i<0?-i/u[e].min*h:i/u[e].max*h}))}))):(o=l.min,a=l.max),0===o&&0===a&&(a=1),this.yDomain=this.fixNumericExtent([o,a],"y"),this.fireEvent({type:"dataProcessed"}),!0},i.prototype.getDomain=function(t){return t===X.X?this.xData:this.yDomain},i.prototype.update=function(){var t=this,e=t.visible,i=t.chart,n=t.xAxis,r=t.yAxis,o=t.xData,a=t.yData;if(this.group.visible=e&&!(!o.length||!a.length),n&&r&&e&&i&&!i.layoutPending&&!i.dataPending&&o.length&&a.length){var s=this.generateSelectionData(),h=s.areaSelectionData,u=s.markerSelectionData;this.updateAreaSelection(h),this.updateStrokeSelection(h),this.updateMarkerSelection(u),this.updateMarkerNodes(),this.markerSelectionData=u}},i.prototype.generateSelectionData=function(){var t=this,e=this,i=e.yKeys,n=e.data,r=e.xData,o=e.yData,a=e.marker,s=e.fills,h=e.strokes,u=e.xAxis.scale,l=e.yAxis.scale,c=(u.bandwidth||0)/2,f=(l.bandwidth||0)/2,p=[],d=[],y=2*r.length-1;return r.forEach((function(e,r){var g=o[r],m=n[r],b=u.convert(e)+c,v=0,x=0;g.forEach((function(e,n){var o=e<0?v:x,u=l.convert(o+e)+f,c=i[n],g=m[c];a&&d.push({series:t,seriesDatum:m,yValue:g,yKey:c,point:{x:b,y:u},fill:s[n%s.length],stroke:h[n%h.length]});var _=(p[n]||(p[n]={yKey:c,points:[]})).points;_[r]={x:b,y:u},_[y-r]={x:b,y:l.convert(o)+f},e<0?v+=e:x+=e}))})),{areaSelectionData:p,markerSelectionData:d}},i.prototype.updateAreaSelection=function(e){var i=this.fills,n=this.fillOpacity,r=this.seriesItemEnabled,o=this.shadow,a=this.areaSelection.setData(e);a.exit.remove();var s=a.enter.append(z).each((function(e){e.stroke=void 0,e.pointerEvents=t.None})),h=a.merge(s);h.each((function(t,e,a){var s=t.path;t.fill=i[a%i.length],t.fillOpacity=n,t.fillShadow=o,t.visible=!!r.get(e.yKey),s.clear(),e.points.forEach((function(t,e){var i=t.x,n=t.y;e>0?s.lineTo(i,n):s.moveTo(i,n)})),s.closePath()})),this.areaSelection=h},i.prototype.updateStrokeSelection=function(e){var i=this,n=i.strokes,r=i.strokeWidth,o=i.strokeOpacity,a=i.data,s=i.seriesItemEnabled,h=this.strokeSelection.setData(e);h.exit.remove();var u=h.enter.append(z).each((function(e){e.fill=void 0,e.lineJoin=e.lineCap="round",e.pointerEvents=t.None})),l=h.merge(u);l.each((function(t,e,i){var h=t.path;t.stroke=n[i%n.length],t.strokeWidth=r,t.visible=!!s.get(e.yKey),t.strokeOpacity=o,h.clear();for(var u=e.points,l=0;l<a.length;l++){var c=u[l],f=c.x,p=c.y;l>0?h.lineTo(f,p):h.moveTo(f,p)}})),this.strokeSelection=l},i.prototype.updateMarkerSelection=function(t){var e=this.marker,i=e.shape?t:[],n=Kt(e.shape),r=this.markerSelection.setData(i);r.exit.remove();var o=r.enter.append(n);this.markerSelection=r.merge(o)},i.prototype.updateMarkerNodes=function(){var t=this.marker,e=t.formatter,i=void 0!==t.strokeWidth?t.strokeWidth:this.strokeWidth,n=t.size,r=this.xKey,o=this.seriesItemEnabled,a=this.chart.highlightedDatum,s=this.highlightStyle,h=s.fill,u=s.stroke;this.markerSelection.each((function(s,l){var c=l===a,f=c&&void 0!==h?h:t.fill||l.fill,p=c&&void 0!==u?u:t.stroke||l.stroke,d=void 0;e&&(d=e({datum:l.seriesDatum,xKey:r,yKey:l.yKey,fill:f,stroke:p,strokeWidth:i,size:n,highlighted:c})),s.fill=d&&d.fill||f,s.stroke=d&&d.stroke||p,s.strokeWidth=d&&void 0!==d.strokeWidth?d.strokeWidth:i,s.size=d&&void 0!==d.size?d.size:n,s.translationX=l.point.x,s.translationY=l.point.y,s.visible=t.enabled&&s.size>0&&!!o.get(l.yKey)}))},i.prototype.getNodeData=function(){return this.markerSelectionData},i.prototype.fireNodeClickEvent=function(t){this.fireEvent({type:"nodeClick",series:this,datum:t.seriesDatum,xKey:this.xKey,yKey:t.yKey})},i.prototype.getTooltipHtml=function(t){var e=this.xKey,i=t.yKey;if(!e||!i)return"";var n=this,r=n.xName,o=n.yKeys,a=n.yNames,s=n.fills,h=n.tooltipRenderer,u=o.indexOf(i),l=a[u],c=s[u%s.length];if(h)return h({datum:t.seriesDatum,xKey:e,xName:r,yKey:i,yName:l,color:c});var f='style="color: white; background-color: '+c+'"',p=l?'<div class="'+se.defaultTooltipClass+'-title" '+f+">"+l+"</div>":"",d=t.seriesDatum,y=d[e],g=d[i],m="number"==typeof y?K(y):String(y),b="number"==typeof g?K(g):String(g);return p+'<div class="'+se.defaultTooltipClass+'-content">'+m+": "+b+"</div>"},i.prototype.listSeriesItems=function(t){var e=this,i=e.data,n=e.id,r=e.xKey,o=e.yKeys,a=e.yNames,s=e.seriesItemEnabled,h=e.marker,u=e.fills,l=e.strokes,c=e.fillOpacity,f=e.strokeOpacity;i&&i.length&&r&&o.length&&o.forEach((function(e,i){t.push({id:n,itemId:e,enabled:s.get(e)||!1,label:{text:a[i]||o[i]},marker:{shape:h.shape,fill:h.fill||u[i%u.length],stroke:h.stroke||l[i%l.length],fillOpacity:c,strokeOpacity:f}})}))},i.prototype.toggleSeriesItem=function(t,e){this.seriesItemEnabled.set(t,e),this.scheduleData()},i.className="AreaSeries",i.type="area",Le([y("dataChange")],i.prototype,"fills",void 0),Le([y("dataChange")],i.prototype,"strokes",void 0),Le([y("update")],i.prototype,"fillOpacity",void 0),Le([y("update")],i.prototype,"strokeOpacity",void 0),Le([y("update")],i.prototype,"xName",void 0),Le([y("update")],i.prototype,"yNames",void 0),Le([y("update")],i.prototype,"strokeWidth",void 0),Le([y("update")],i.prototype,"shadow",void 0),i}(ie),ze=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Re=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},Ke=function(t){function e(){var e=t.call(this)||this;return e.enabled=!0,e.fontSize=12,e.fontFamily="Verdana, sans-serif",e.color="rgba(70, 70, 70, 1)",e}return ze(e,t),Re([y("change","dataChange")],e.prototype,"enabled",void 0),Re([y("change")],e.prototype,"fontStyle",void 0),Re([y("change")],e.prototype,"fontWeight",void 0),Re([y("change")],e.prototype,"fontSize",void 0),Re([y("change")],e.prototype,"fontFamily",void 0),Re([y("change")],e.prototype,"color",void 0),e}(d),Ve=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),We=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},He=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n};!function(t){t[t.Bar=0]="Bar",t[t.Label=1]="Label"}(Ie||(Ie={}));var Ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ve(e,t),We([y("change")],e.prototype,"formatter",void 0),e}(Ke),Xe=function(e){function i(){var t,i=e.call(this)||this;return i.rectGroup=i.group.appendChild(new _),i.textGroup=i.group.appendChild(new _),i.rectSelection=k.select(i.rectGroup).selectAll(),i.textSelection=k.select(i.textGroup).selectAll(),i.xData=[],i.yData=[],i.yDomain=[],i.label=new Ye,i.seriesItemEnabled=new Map,i.flipXY=!1,i.fills=ke.fills,i.strokes=ke.strokes,i.fillOpacity=1,i.strokeOpacity=1,i.groupScale=new v,i.directionKeys=((t={})[X.X]=["xKey"],t[X.Y]=["yKeys"],t),i._xKey="",i._xName="",i._yKeys=[],i._yNames=[],i.grouped=!1,i._strokeWidth=1,i.highlightStyle={fill:"yellow"},i.label.enabled=!1,i.label.addEventListener("change",i.update,i),i}return Ve(i,e),i.prototype.getKeys=function(t){var e=this,i=this.directionKeys,n=i&&i[this.flipXY?$(t):t],r=[];return n&&n.forEach((function(t){var i=e[t];i&&(Array.isArray(i)?r.push.apply(r,i):r.push(i))})),r},Object.defineProperty(i.prototype,"xKey",{get:function(){return this._xKey},set:function(t){this._xKey!==t&&(this._xKey=t,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xName",{get:function(){return this._xName},set:function(t){this._xName!==t&&(this._xName=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yKeys",{get:function(){return this._yKeys},set:function(t){if(!Fe(this._yKeys,t)){this._yKeys=t,this.yData=[];var e=this.seriesItemEnabled;e.clear(),t.forEach((function(t){return e.set(t,!0)}));var i=this.groupScale;i.domain=t,i.padding=.1,i.round=!0,this.scheduleData()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yNames",{get:function(){return this._yNames},set:function(t){this._yNames=t,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"normalizedTo",{get:function(){return this._normalizedTo},set:function(t){var e=t?Math.abs(t):void 0;this._normalizedTo!==e&&(this._normalizedTo=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth!==t&&(this._strokeWidth=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shadow",{get:function(){return this._shadow},set:function(t){this._shadow!==t&&(this._shadow=t,this.update())},enumerable:!0,configurable:!0}),i.prototype.onHighlightChange=function(){this.updateRectNodes()},i.prototype.processData=function(){var t=this.xKey,e=this.yKeys,i=this.seriesItemEnabled,n=t&&e.length&&this.data?this.data:[],r=!0;this.xData=n.map((function(e){return r&&!(t in e)&&(r=!1,console.warn("The key '"+t+"' was not found in the data: ",e)),e[t]})),this.yData=n.map((function(t){return e.map((function(e){r&&!(e in t)&&(r=!1,console.warn("The key '"+e+"' was not found in the data: ",t));var n=t[e];return isFinite(n)&&i.get(e)?n:0}))}));var o=this.yData.map((function(t){return at(t)})),a=this.yData,s=this.normalizedTo,h=1/0,u=-1/0;if(this.grouped)h=Math.min.apply(Math,He([0],a.map((function(t){return Math.min.apply(Math,t)})))),u=Math.max.apply(Math,a.map((function(t){return Math.max.apply(Math,t)})));else{var l=st(o);s&&isFinite(s)?(h=l.min<0?-s:0,u=s,a.forEach((function(t,e){return t.forEach((function(i,n){t[n]=i<0?-i/o[e].min*s:i/o[e].max*s}))}))):(h=l.min,u=l.max)}return this.yDomain=this.fixNumericExtent([h,u],"y"),this.fireEvent({type:"dataProcessed"}),!0},i.prototype.getDomain=function(t){return this.flipXY&&(t=$(t)),t===X.X?this.xData:this.yDomain},i.prototype.fireNodeClickEvent=function(t){this.fireEvent({type:"nodeClick",series:this,datum:t.seriesDatum,xKey:this.xKey,yKey:t.yKey})},i.prototype.generateNodeData=function(){var t=this,e=this.xAxis,i=this.yAxis,n=this.flipXY,r=(n?i:e).scale,o=(n?e:i).scale,a=this,s=a.groupScale,h=a.yKeys,u=a.fills,l=a.strokes,c=a.grouped,f=a.strokeWidth,p=a.seriesItemEnabled,d=a.data,y=a.xData,g=a.yData,m=this.label,b=m.fontStyle,v=m.fontWeight,x=m.fontSize,_=m.fontFamily,w=m.color,k=m.formatter;s.range=[0,r.bandwidth];var O=c?s.bandwidth:r.bandwidth,P=[];return y.forEach((function(e,i){var a=g[i],y=d[i],m=r.convert(e),S=0,C=0;a.forEach((function(e,i){var r,a=h[i],d=c?m+s.convert(a):m,g=e<0?S:C,M=o.convert(c?e:g+e),D=o.convert(c?0:g),E=y[a],A="number"==typeof E;r=k?k({value:A?E:void 0}):A&&isFinite(E)?E.toFixed(2):"",P.push({series:t,seriesDatum:y,yValue:E,yKey:a,x:n?Math.min(M,D):d,y:n?d:Math.min(M,D),width:n?Math.abs(D-M):O,height:n?O:Math.abs(D-M),fill:u[i%u.length],stroke:l[i%l.length],strokeWidth:f,label:p.get(a)&&r?{text:r,fontStyle:b,fontWeight:v,fontSize:x,fontFamily:_,fill:w,x:n?M+(E>=0?-1:1)*Math.abs(D-M)/2:d+O/2,y:n?d+O/2:M+(E>=0?1:-1)*Math.abs(D-M)/2}:void 0}),c||(e<0?S+=e:C+=e)}))})),P},i.prototype.update=function(){var t=this,e=t.visible,i=t.chart,n=t.xAxis,r=t.yAxis,o=t.xData,a=t.yData;if(this.group.visible=e,i&&!i.layoutPending&&!i.dataPending&&n&&r&&e&&o.length&&a.length){var s=this.generateNodeData();this.updateRectSelection(s),this.updateRectNodes(),this.updateTextSelection(s),this.updateTextNodes()}},i.prototype.updateRectSelection=function(t){var e=this.rectSelection.setData(t);e.exit.remove();var i=e.enter.append(wt).each((function(t){t.tag=Ie.Bar,t.crisp=!0}));this.rectSelection=e.merge(i)},i.prototype.updateRectNodes=function(){var t=this.fillOpacity,e=this.strokeOpacity,i=this.shadow,n=this.highlightStyle,r=n.fill,o=n.stroke,a=this.chart.highlightedDatum;this.rectSelection.each((function(n,s){var h=s===a;n.x=s.x,n.y=s.y,n.width=s.width,n.height=s.height,n.fill=h&&void 0!==r?r:s.fill,n.stroke=h&&void 0!==o?o:s.stroke,n.fillOpacity=t,n.strokeOpacity=e,n.strokeWidth=s.strokeWidth,n.fillShadow=i,n.visible=s.height>0}))},i.prototype.updateTextSelection=function(e){var i=this.textSelection.setData(e);i.exit.remove();var n=i.enter.append(f).each((function(e){e.tag=Ie.Label,e.pointerEvents=t.None,e.textAlign="center",e.textBaseline="middle"}));this.textSelection=i.merge(n)},i.prototype.updateTextNodes=function(){var t=this.label.enabled;this.textSelection.each((function(e,i){var n=i.label;n&&t?(e.fontStyle=n.fontStyle,e.fontWeight=n.fontWeight,e.fontSize=n.fontSize,e.fontFamily=n.fontFamily,e.text=n.text,e.x=n.x,e.y=n.y,e.fill=n.fill,e.visible=!0):e.visible=!1}))},i.prototype.getTooltipHtml=function(t){var e=this.xKey,i=t.yKey;if(!e||!i)return"";var n=this,r=n.xName,o=n.yKeys,a=n.yNames,s=n.fills,h=n.tooltipRenderer,u=t.seriesDatum,l=o.indexOf(i),c=a[l],f=s[l%s.length];if(h)return h({datum:u,xKey:e,xName:r,yKey:i,yName:c,color:f});var p='style="color: white; background-color: '+f+'"',d=c?'<div class="'+se.defaultTooltipClass+'-title" '+p+">"+c+"</div>":"",y=u[e],g=u[i],m="number"==typeof y?K(y):String(y),b="number"==typeof g?K(g):String(g);return d+'<div class="'+se.defaultTooltipClass+'-content">'+m+": "+b+"</div>"},i.prototype.listSeriesItems=function(t){var e=this,i=e.id,n=e.data,r=e.xKey,o=e.yKeys,a=e.yNames,s=e.seriesItemEnabled,h=e.fills,u=e.strokes,l=e.fillOpacity,c=e.strokeOpacity;n&&n.length&&r&&o.length&&o.forEach((function(e,n){t.push({id:i,itemId:e,enabled:s.get(e)||!1,label:{text:a[n]||o[n]},marker:{fill:h[n%h.length],stroke:u[n%u.length],fillOpacity:l,strokeOpacity:c}})}))},i.prototype.toggleSeriesItem=function(t,e){var i=this.seriesItemEnabled,n=[];i.set(t,e),i.forEach((function(t,e){t&&n.push(e)})),this.groupScale.domain=n,this.scheduleData()},i.className="BarSeries",i.type="bar",We([y("layoutChange")],i.prototype,"flipXY",void 0),We([y("dataChange")],i.prototype,"fills",void 0),We([y("dataChange")],i.prototype,"strokes",void 0),We([y("layoutChange")],i.prototype,"fillOpacity",void 0),We([y("layoutChange")],i.prototype,"strokeOpacity",void 0),We([y("dataChange")],i.prototype,"grouped",void 0),i}(ie);function Ue(t,e){return e-=t=+t,function(i){return t+e*i}}function Ge(t,e){var i=new Date,n=+t,r=+e-n;return function(t){return i.setTime(n+r*t),i}}function qe(t,e){var i,n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),a=new Array(n);for(i=0;i<r;++i)o[i]=Ze(t[i],e[i]);for(;i<n;++i)a[i]=e[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function Je(t,e){var i,n={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)i in t?n[i]=Ze(t[i],e[i]):r[i]=e[i];return function(t){for(i in n)r[i]=n[i](t);return r}}function Ze(t,e){var i,n=typeof e;return null==e||"boolean"===n?(i=e,function(){return i}):("number"===n?Ue:e instanceof Date?Ge:Array.isArray(e)?qe:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Je:Ue)(t,e)}var $e=function(t){return t};function Qe(t){var e,i=t[0],n=t[t.length-1];return i>n&&(i=(e=[n,i])[0],n=e[1]),function(t){return Math.max(i,Math.min(n,t))}}var ti=function(){function t(){this.unknown=void 0,this._clamp=$e,this._domain=[0,1],this._range=[0,1],this.transform=$e,this.untransform=$e,this._interpolate=Ze,this.rescale()}return Object.defineProperty(t.prototype,"clamp",{get:function(){return this._clamp!==$e},set:function(t){this._clamp=t?Qe(this.domain):$e},enumerable:!0,configurable:!0}),t.prototype.setDomain=function(t){this._domain=Array.prototype.map.call(t,(function(t){return+t})),this._clamp!==$e&&(this._clamp=Qe(this.domain)),this.rescale()},t.prototype.getDomain=function(){return this._domain.slice()},Object.defineProperty(t.prototype,"domain",{get:function(){return this.getDomain()},set:function(t){this.setDomain(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this._range.slice()},set:function(t){this._range=Array.prototype.slice.call(t),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"interpolate",{get:function(){return this._interpolate},set:function(t){this._interpolate=t,this.rescale()},enumerable:!0,configurable:!0}),t.prototype.rescale=function(){Math.min(this.domain.length,this.range.length)>2||(this.piecewise=this.bimap),this.output=void 0,this.input=void 0},t.prototype.normalize=function(t,e){return(e-=t=+t)?function(i){return(i-t)/e}:(i=isNaN(e)?NaN:.5,function(){return i});var i},t.prototype.bimap=function(t,e,i){var n,r,o=t[0],a=t[1],s=e[0],h=e[1];return a<o?(n=this.normalize(a,o),r=i(h,s)):(n=this.normalize(o,a),r=i(s,h)),function(t){return r(n(t))}},t.prototype.convert=function(t){return t=+t,isNaN(t)?this.unknown:(this.output||(this.output=this.piecewise(this.domain.map(this.transform),this.range,this.interpolate)),this.output(this.transform(this._clamp(t))))},t.prototype.invert=function(t){return this.input||(this.input=this.piecewise(this.range,this.domain.map(this.transform),Ue)),this._clamp(this.untransform(this.input(t)))},t}(),ei=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ii=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},ni=function(e){function i(){var i=e.call(this)||this;i.xDomain=[],i.yDomain=[],i.xData=[],i.yData=[],i.lineNode=new z,i.nodeSelection=k.select(i.group).selectAll(),i.nodeData=[],i.marker=new ne,i.stroke=ke.fills[0],i.strokeWidth=2,i.strokeOpacity=1,i._xKey="",i.xName="",i._yKey="",i.yName="",i.highlightStyle={fill:"yellow"};var n=i.lineNode;n.fill=void 0,n.lineJoin="round",n.pointerEvents=t.None,i.group.append(n),i.addEventListener("update",i.update);var r=i.marker;return r.fill=ke.fills[0],r.stroke=ke.strokes[0],r.addPropertyListener("shape",i.onMarkerShapeChange,i),r.addPropertyListener("enabled",i.onMarkerEnabledChange,i),r.addEventListener("change",i.update,i),i}return ei(i,e),i.prototype.onMarkerShapeChange=function(){this.nodeSelection=this.nodeSelection.setData([]),this.nodeSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},i.prototype.onMarkerEnabledChange=function(t){t.value||(this.nodeSelection=this.nodeSelection.setData([]),this.nodeSelection.exit.remove())},Object.defineProperty(i.prototype,"xKey",{get:function(){return this._xKey},set:function(t){this._xKey!==t&&(this._xKey=t,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yKey",{get:function(){return this._yKey},set:function(t){this._yKey!==t&&(this._yKey=t,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),i.prototype.processData=function(){var t=this,e=t.xAxis,i=t.yAxis,n=t.xKey,r=t.yKey,o=t.xData,a=t.yData,s=n&&r&&this.data?this.data:[];if(!e)return!1;var h=e.scale instanceof ti,u=i.scale instanceof ti;o.length=0,a.length=0;for(var l=0,c=s.length;l<c;l++){var f=s[l],p=f[n],d=f[r];o.push(p),a.push(d)}return this.xDomain=h?this.fixNumericExtent(ot(o),"x"):o,this.yDomain=u?this.fixNumericExtent(ot(a),"y"):a,!0},i.prototype.getDomain=function(t){return t===X.X?this.xDomain:this.yDomain},i.prototype.onHighlightChange=function(){this.updateNodes()},i.prototype.update=function(){this.group.visible=this.visible;var t=this.chart,e=this.xAxis,i=this.yAxis;t&&!t.layoutPending&&!t.dataPending&&e&&i&&(this.updateLinePath(),this.updateNodeSelection(),this.updateNodes())},i.prototype.updateLinePath=function(){var t=this,e=this,i=e.xAxis,n=e.yAxis,r=e.data,o=e.xData,a=e.yData,s=e.lineNode,h=i.scale,u=n.scale,l=(h.bandwidth||0)/2,c=(u.bandwidth||0)/2,f=h instanceof ti,p=u instanceof ti,d=s.path,y=[];d.clear();var g=!0;o.forEach((function(e,i){var n=a[i];if(null==n||p&&(isNaN(n)||!isFinite(n))||null==e||f&&(isNaN(e)||!isFinite(e)))g=!0;else{var o=h.convert(e)+l,s=u.convert(n)+c;g?(d.moveTo(o,s),g=!1):d.lineTo(o,s),y.push({series:t,seriesDatum:r[i],point:{x:o,y:s}})}})),s.stroke=this.stroke,s.strokeWidth=this.strokeWidth,s.strokeOpacity=this.strokeOpacity,this.nodeData=y},i.prototype.updateNodeSelection=function(){var t=this.marker,e=t.shape?this.nodeData:[],i=Kt(t.shape),n=this.nodeSelection.setData(e);n.exit.remove();var r=n.enter.append(_);r.append(i),this.nodeSelection=n.merge(r)},i.prototype.updateNodes=function(){var t=this,e=t.marker,i=t.xKey,n=t.yKey,r=t.stroke,o=t.strokeWidth,a=Kt(e.shape),s=this.chart.highlightedDatum,h=this.highlightStyle,u=h.fill,l=h.stroke,c=e.formatter,f=e.size,p=void 0!==e.strokeWidth?e.strokeWidth:o;this.nodeSelection.selectByClass(a).each((function(t,o){var a=o===s,h=a&&void 0!==u?u:e.fill,d=a&&void 0!==l?l:e.stroke||r,y=void 0;c&&(y=c({datum:o.seriesDatum,xKey:i,yKey:n,fill:h,stroke:d,strokeWidth:p,size:f,highlighted:a})),t.fill=y&&y.fill||h,t.stroke=y&&y.stroke||d,t.strokeWidth=y&&void 0!==y.strokeWidth?y.strokeWidth:p,t.size=y&&void 0!==y.size?y.size:f,t.translationX=o.point.x,t.translationY=o.point.y,t.visible=e.enabled&&t.size>0}))},i.prototype.getNodeData=function(){return this.nodeData},i.prototype.fireNodeClickEvent=function(t){this.fireEvent({type:"nodeClick",series:this,datum:t.seriesDatum,xKey:this.xKey,yKey:this.yKey})},i.prototype.getTooltipHtml=function(t){var e=this.xKey,i=this.yKey;if(!e||!i)return"";var n=this.xName,r=this.yName,o=this.stroke,a=this.tooltipRenderer;if(a)return a({datum:t.seriesDatum,xKey:e,xName:n,yKey:i,yName:r,title:this.title,color:o});var s=this.title||r,h='style="color: white; background-color: '+o+'"',u=s?'<div class="'+se.defaultTooltipClass+'-title" '+h+">"+s+"</div>":"",l=t.seriesDatum,c=l[e],f=l[i],p="number"==typeof c?K(c):String(c),d="number"==typeof f?K(f):String(f);return u+'<div class="'+se.defaultTooltipClass+'-content">'+p+": "+d+"</div>"},i.prototype.listSeriesItems=function(t){var e=this,i=e.id,n=e.data,r=e.xKey,o=e.yKey,a=e.yName,s=e.visible,h=e.title,u=e.marker,l=e.stroke,c=e.strokeOpacity;n&&n.length&&r&&o&&t.push({id:i,itemId:void 0,enabled:s,label:{text:h||a||o},marker:{shape:u.shape,fill:u.fill,stroke:u.stroke||l,fillOpacity:1,strokeOpacity:c}})},i.className="LineSeries",i.type="line",ii([y("layoutChange")],i.prototype,"title",void 0),ii([y("update")],i.prototype,"stroke",void 0),ii([y("update")],i.prototype,"strokeWidth",void 0),ii([y("update")],i.prototype,"strokeOpacity",void 0),ii([y("update")],i.prototype,"xName",void 0),ii([y("update")],i.prototype,"yName",void 0),i}(ie),ri=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function oi(t,e,i){var n=ui(t,e,i);return function(t,e,i){void 0===i&&(i=1);for(var n=Math.abs(i),r=n>0&&n<1?Math.abs(Math.floor(Math.log(n)/Math.LN10)):0,o=Math.pow(10,r),a=Math.max(0,Math.ceil((e-t)/i))||0,s=new ci(r,a),h=0;h<a;h++){var u=t+i*h;s[h]=Math.round(u*o)/o}return s}(t=Math.ceil(t/n)*n,e=Math.floor(e/n)*n+n/2,n)}var ai=Math.sqrt(50),si=Math.sqrt(10),hi=Math.sqrt(2);function ui(t,e,i){var n=Math.abs(e-t)/Math.max(0,i),r=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/r;return o>=ai?r*=10:o>=si?r*=5:o>=hi&&(r*=2),e<t?-r:r}function li(t,e,i){var n=(e-t)/Math.max(0,i),r=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,r);return r>=0?(o>=ai?10:o>=si?5:o>=hi?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=ai?10:o>=si?5:o>=hi?2:1)}var ci=function(t){function e(e,i){void 0===i&&(i=0);var n=t.call(this,i)||this;return n.fractionDigits=e,n}return ri(e,t),e}(Array);var fi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),pi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fi(e,t),e.prototype.ticks=function(t){void 0===t&&(t=10);var e=this._domain;return oi(e[0],e[e.length-1],t)},e.prototype.nice=function(t){void 0===t&&(t=10);var e,i=this.domain,n=0,r=i.length-1,o=i[n],a=i[r];a<o&&(e=o,o=a,a=e,e=n,n=r,r=e),(e=li(o,a,t))>0?e=li(o=Math.floor(o/e)*e,a=Math.ceil(a/e)*e,t):e<0&&(e=li(o=Math.ceil(o*e)/e,a=Math.floor(a*e)/e,t)),e>0?(i[n]=Math.floor(o/e)*e,i[r]=Math.ceil(a/e)*e,this.domain=i):e<0&&(i[n]=Math.ceil(o*e)/e,i[r]=Math.floor(a*e)/e,this.domain=i)},e}(ti);function di(){return new pi}var yi,gi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),mi=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},bi=function(t){function e(){var e=t.call(this)||this;e.xDomain=[],e.yDomain=[],e.xData=[],e.yData=[],e.sizeData=[],e.sizeScale=new pi,e.nodeSelection=k.select(e.group).selectAll(),e.nodeData=[],e.marker=new ne,e._fill=ke.fills[0],e._stroke=ke.strokes[0],e._strokeWidth=2,e._fillOpacity=1,e._strokeOpacity=1,e.highlightStyle={fill:"yellow"},e.xKey="",e.yKey="",e.xName="",e.yName="",e.sizeName="Size",e.labelName="Label";var i=e.marker;return i.addPropertyListener("shape",e.onMarkerShapeChange,e),i.addEventListener("change",e.update,e),e.addPropertyListener("xKey",(function(){return e.xData=[]})),e.addPropertyListener("yKey",(function(){return e.yData=[]})),e.addPropertyListener("sizeKey",(function(){return e.sizeData=[]})),e}return gi(e,t),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){this._fill!==t&&(this._fill=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){this._stroke!==t&&(this._stroke=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth!==t&&(this._strokeWidth=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(t){this._fillOpacity!==t&&(this._fillOpacity=t,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(t){this._strokeOpacity!==t&&(this._strokeOpacity=t,this.scheduleLayout())},enumerable:!0,configurable:!0}),e.prototype.onHighlightChange=function(){this.updateNodes()},e.prototype.onMarkerShapeChange=function(){this.nodeSelection=this.nodeSelection.setData([]),this.nodeSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},e.prototype.processData=function(){var t=this,e=t.xKey,i=t.yKey,n=t.sizeKey,r=t.xAxis,o=t.yAxis,a=e&&i&&this.data?this.data:[];return this.xData=a.map((function(t){return t[e]})),this.yData=a.map((function(t){return t[i]})),this.sizeData=n?a.map((function(t){return t[n]})):[],this.sizeScale.domain=rt(this.sizeData)||[1,1],r.scale instanceof ti?this.xDomain=this.fixNumericExtent(rt(this.xData),"x"):this.xDomain=this.xData,o.scale instanceof ti?this.yDomain=this.fixNumericExtent(rt(this.yData),"y"):this.yDomain=this.yData,!0},e.prototype.getDomain=function(t){return t===X.X?this.xDomain:this.yDomain},e.prototype.getNodeData=function(){return this.nodeData},e.prototype.fireNodeClickEvent=function(t){this.fireEvent({type:"nodeClick",series:this,datum:t.seriesDatum,xKey:this.xKey,yKey:this.yKey,sizeKey:this.sizeKey})},e.prototype.generateNodeData=function(){var t=this,e=this.xAxis.scale,i=this.yAxis.scale,n=(e.bandwidth||0)/2,r=(i.bandwidth||0)/2,o=this,a=o.data,s=o.xData,h=o.yData,u=o.sizeData,l=o.sizeScale,c=o.marker;return l.range=[c.minSize,c.size],s.map((function(o,s){return{series:t,seriesDatum:a[s],point:{x:e.convert(o)+n,y:i.convert(h[s])+r},size:u.length?l.convert(u[s]):c.size}}))},e.prototype.update=function(){var t=this.visible,e=this.chart,i=this.xAxis,n=this.yAxis;if(this.group.visible=t,t&&e&&!e.layoutPending&&!e.dataPending&&i&&n){var r=this.nodeData=this.generateNodeData();this.updateNodeSelection(r),this.updateNodes()}},e.prototype.updateNodeSelection=function(t){var e=Kt(this.marker.shape),i=this.nodeSelection.setData(t);i.exit.remove();var n=i.enter.append(_);n.append(e),this.nodeSelection=i.merge(n)},e.prototype.updateNodes=function(){var t=this.chart.highlightedDatum,e=this,i=e.marker,n=e.xKey,r=e.yKey,o=e.fill,a=e.stroke,s=e.strokeWidth,h=e.fillOpacity,u=e.strokeOpacity,l=this.highlightStyle,c=l.fill,f=l.stroke,p=void 0!==i.strokeWidth?i.strokeWidth:s,d=Kt(i.shape),y=i.formatter;this.nodeSelection.selectByClass(d).each((function(e,s){var l=s===t,d=l&&void 0!==c?c:i.fill||o,g=l&&void 0!==f?f:i.stroke||a,m=void 0;y&&(m=y({datum:s.seriesDatum,xKey:n,yKey:r,fill:d,stroke:g,strokeWidth:p,size:s.size,highlighted:l})),e.fill=m&&m.fill||d,e.stroke=m&&m.stroke||g,e.strokeWidth=m&&void 0!==m.strokeWidth?m.strokeWidth:p,e.size=m&&void 0!==m.size?m.size:s.size,e.fillOpacity=h,e.strokeOpacity=u,e.translationX=s.point.x,e.translationY=s.point.y,e.visible=i.enabled&&e.size>0}))},e.prototype.getTooltipHtml=function(t){var e=this.xKey,i=this.yKey;if(!e||!i)return"";var n=this,r=n.tooltipRenderer,o=n.xName,a=n.yName,s=n.sizeKey,h=n.sizeName,u=n.labelKey,l=n.labelName,c=n.fill||"gray";if(r)return r({datum:t.seriesDatum,xKey:e,yKey:i,sizeKey:s,labelKey:u,xName:o,yName:a,sizeName:h,labelName:l,title:this.title,color:c});var f=this.title||a,p='style="color: white; background-color: '+c+'"',d=f?'<div class="'+se.defaultTooltipClass+'-title" '+p+">"+f+"</div>":"",y=t.seriesDatum,g=y[e],m=y[i],b="<b>"+(o||e)+"</b>: "+("number"==typeof g?K(g):g)+"<br><b>"+(a||i)+"</b>: "+("number"==typeof m?K(m):m);return s&&(b+="<br><b>"+h+"</b>: "+y[s]),u&&(b="<b>"+l+"</b>: "+y[u]+"<br>"+b),d+'<div class="'+se.defaultTooltipClass+'-content">'+b+"</div>"},e.prototype.listSeriesItems=function(t){var e=this,i=e.id,n=e.data,r=e.xKey,o=e.yKey,a=e.yName,s=e.title,h=e.visible,u=e.marker,l=e.fill,c=e.stroke,f=e.fillOpacity,p=e.strokeOpacity;n&&n.length&&r&&o&&t.push({id:i,itemId:void 0,enabled:h,label:{text:s||a||o},marker:{shape:u.shape,fill:u.fill||l,stroke:u.stroke||c,fillOpacity:f,strokeOpacity:p}})},e.className="ScatterSeries",e.type="scatter",mi([y("layoutChange")],e.prototype,"title",void 0),mi([y("dataChange")],e.prototype,"xKey",void 0),mi([y("dataChange")],e.prototype,"yKey",void 0),mi([y("dataChange")],e.prototype,"sizeKey",void 0),mi([y("dataChange")],e.prototype,"labelKey",void 0),e}(ie),vi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),xi=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},_i=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n};!function(t){t[t.Bin=0]="Bin",t[t.Label=1]="Label"}(yi||(yi={}));var wi,ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vi(e,t),xi([y("change")],e.prototype,"formatter",void 0),e}(Ke),Oi={count:function(t){return t.data.length},sum:function(t,e){return t.data.reduce((function(t,i){return t+i[e]}),0)},mean:function(t,e){return Oi.sum(t,e)/Oi.count(t,e)}},Pi=function(){function t(t){var e=t[0],i=t[1];this.data=[],this.aggregatedValue=0,this.frequency=0,this.domain=[e,i]}return t.prototype.addDatum=function(t){this.data.push(t),this.frequency++},Object.defineProperty(t.prototype,"domainWidth",{get:function(){var t=this.domain,e=t[0];return t[1]-e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeHeight",{get:function(){return this.aggregatedValue/this.domainWidth},enumerable:!0,configurable:!0}),t.prototype.calculateAggregatedValue=function(t,e){e||(t="count");var i=Oi[t];this.aggregatedValue=i(this,e)},t.prototype.getY=function(t){return t?this.relativeHeight:this.aggregatedValue},t}(),Si=function(e){function i(){var t,i=e.call(this)||this;return i.rectGroup=i.group.appendChild(new _),i.textGroup=i.group.appendChild(new _),i.rectSelection=k.select(i.rectGroup).selectAll(),i.textSelection=k.select(i.textGroup).selectAll(),i.binnedData=[],i.xDomain=[],i.yDomain=[],i.label=new ki,i.seriesItemEnabled=!0,i.fill=ke.fills[0],i.stroke=ke.strokes[0],i.fillOpacity=1,i.strokeOpacity=1,i.directionKeys=((t={})[X.X]=["xKey"],t[X.Y]=["yKey"],t),i._xKey="",i._areaPlot=!1,i._xName="",i._yKey="",i._yName="",i._strokeWidth=1,i.highlightStyle={fill:"yellow"},i.label.enabled=!1,i.label.addEventListener("change",i.update,i),i}return vi(i,e),i.prototype.getKeys=function(t){var e=this,i=this.directionKeys,n=i&&i[t],r=[];return n&&n.forEach((function(t){var i=e[t];i&&(Array.isArray(i)?r.push.apply(r,i):r.push(i))})),r},Object.defineProperty(i.prototype,"xKey",{get:function(){return this._xKey},set:function(t){this._xKey!==t&&(this._xKey=t,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"areaPlot",{get:function(){return this._areaPlot},set:function(t){this._areaPlot=t,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bins",{get:function(){return this._bins},set:function(t){this._bins=t,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"aggregation",{get:function(){return this._aggregation},set:function(t){this._aggregation=t,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"binCount",{get:function(){return this._binCount},set:function(t){this._binCount=t,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xName",{get:function(){return this._xName},set:function(t){this._xName!==t&&(this._xName=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yKey",{get:function(){return this._yKey},set:function(t){this._yKey=t,this.seriesItemEnabled=!0,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yName",{get:function(){return this._yName},set:function(t){this._yName=t,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth!==t&&(this._strokeWidth=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shadow",{get:function(){return this._shadow},set:function(t){this._shadow!==t&&(this._shadow=t,this.update())},enumerable:!0,configurable:!0}),i.prototype.onHighlightChange=function(){this.updateRectNodes()},i.prototype.deriveBins=function(){var t=this,e=this.bins,i=this.binCount;if(e&&i&&console.warn("bin domain and bin count both specified - these are mutually exclusive properties"),e)return e;var n=this.data.map((function(e){return e[t.xKey]})),r=this.fixNumericExtent(rt(n),"x"),o=oi(r[0],r[1],this.binCount||10),a=ui(r[0],r[1],this.binCount||10),s=o[0];return _i([[s-a,s]],o.map((function(t){return[t,t+a]})))},i.prototype.placeDataInBins=function(t){var e=this,i=this.xKey,n=this.deriveBins(),r=t.slice().sort((function(t,e){return t[i]<e[i]?-1:t[i]>e[i]?1:0})),o=0,a=[new Pi(n[0])];return r.forEach((function(t){for(;t[i]>n[o][1];)o++,a.push(new Pi(n[o]));a[o].addDatum(t)})),a.forEach((function(t){return t.calculateAggregatedValue(e._aggregation,e.yKey)})),a},Object.defineProperty(i.prototype,"xMax",{get:function(){var t=this;return this.data&&this.data.reduce((function(e,i){return Math.max(e,i[t.xKey])}),Number.NEGATIVE_INFINITY)},enumerable:!0,configurable:!0}),i.prototype.processData=function(){var t=this,e=this.xKey,i=this.data;this.binnedData=this.placeDataInBins(e&&i?i:[]);var n=ot(this.binnedData.map((function(e){return e.getY(t.areaPlot)})));this.yDomain=this.fixNumericExtent([0,n[1]],"y");var r=this.binnedData[0],o=this.binnedData[this.binnedData.length-1],a=r.domain[0],s=o.domain[1];return this.xDomain=[a,s],this.fireEvent({type:"dataProcessed"}),!0},i.prototype.getDomain=function(t){return t===X.X?this.xDomain:this.yDomain},i.prototype.fireNodeClickEvent=function(t){this.fireEvent({type:"nodeClick",series:this,datum:t.seriesDatum,xKey:this.xKey})},i.prototype.update=function(){var t=this.visible,e=this.chart,i=this.xAxis,n=this.yAxis;if(this.group.visible=t,i&&n&&t&&e&&!e.layoutPending&&!e.dataPending){var r=this.generateNodeData();this.updateRectSelection(r),this.updateRectNodes(),this.updateTextSelection(r),this.updateTextNodes()}},i.prototype.generateNodeData=function(){var t=this;if(!this.seriesItemEnabled)return[];var e=this,i=e.xAxis.scale,n=e.yAxis.scale,r=e.fill,o=e.stroke,a=e.strokeWidth,s=[],h=this.label,u=h.formatter,l=void 0===u?function(t){return String(t.aggregatedValue)}:u,c=h.fontStyle,f=h.fontWeight,p=h.fontSize,d=h.fontFamily,y=h.color;return this.binnedData.forEach((function(e){var h=e.aggregatedValue,u=e.frequency,g=e.domain,m=g[0],b=g[1],v=e.relativeHeight,x=i.convert(m),_=i.convert(b),w=t.areaPlot?v:t.yKey?h:u,k=n.convert(0),O=n.convert(w),P=_-x,S=Math.abs(O-k),C=0!==w&&{text:l(e),fontStyle:c,fontWeight:f,fontSize:p,fontFamily:d,fill:y,x:x+P/2,y:O+S/2};s.push({series:t,seriesDatum:e,x:x,y:O,width:P,height:S,fill:r,stroke:o,strokeWidth:a,label:C})})),s},i.prototype.updateRectSelection=function(t){var e=this.rectSelection.setData(t);e.exit.remove();var i=e.enter.append(wt).each((function(t){t.tag=yi.Bin,t.crisp=!0}));this.rectSelection=e.merge(i)},i.prototype.updateRectNodes=function(){var t=this.chart.highlightedDatum,e=this.fillOpacity,i=this.strokeOpacity,n=this.shadow,r=this.highlightStyle,o=r.fill,a=r.stroke;this.rectSelection.each((function(r,s){var h=s===t;r.x=s.x,r.y=s.y,r.width=s.width,r.height=s.height,r.fill=h&&void 0!==o?o:s.fill,r.stroke=h&&void 0!==a?a:s.stroke,r.fillOpacity=e,r.strokeOpacity=i,r.strokeWidth=s.strokeWidth,r.fillShadow=n,r.visible=s.height>0}))},i.prototype.updateTextSelection=function(e){var i=this.textSelection.setData(e);i.exit.remove();var n=i.enter.append(f).each((function(e){e.tag=yi.Label,e.pointerEvents=t.None,e.textAlign="center",e.textBaseline="middle"}));this.textSelection=i.merge(n)},i.prototype.updateTextNodes=function(){var t=this.label.enabled;this.textSelection.each((function(e,i){var n=i.label;n&&t?(e.text=n.text,e.x=n.x,e.y=n.y,e.fontStyle=n.fontStyle,e.fontWeight=n.fontWeight,e.fontSize=n.fontSize,e.fontFamily=n.fontFamily,e.fill=n.fill,e.visible=!0):e.visible=!1}))},i.prototype.getTooltipHtml=function(t){var e=this.xKey,i=this.yKey;if(!e)return"";var n=this,r=n.xName,o=n.yName,a=n.fill,s=n.tooltipRenderer,h=n.aggregation,u=t.seriesDatum,l=u.aggregatedValue,c=u.frequency,f=u.domain,p=f[0],d=f[1];if(s)return s({datum:u,xKey:e,xName:r,yKey:i,yName:o,color:a});var y='style="color: white; background-color: '+a+'"',g='\n                <div class="'+se.defaultTooltipClass+'-title" '+y+">\n                    "+(r||e)+" "+K(p)+" - "+K(d)+"\n                </div>",m=i?"<b>"+(o||i)+" ("+h+")</b>: "+K(l)+"<br>":"";return m+="<b>Frequency</b>: "+c,"\n                "+g+'\n                <div class="'+se.defaultTooltipClass+'-content">\n                    '+m+"\n                </div>"},i.prototype.listSeriesItems=function(t){var e=this,i=e.id,n=e.data,r=e.yKey,o=e.yName,a=e.seriesItemEnabled,s=e.fill,h=e.stroke,u=e.fillOpacity,l=e.strokeOpacity;n&&n.length&&t.push({id:i,itemId:r,enabled:a,label:{text:o||r||"Frequency"},marker:{fill:s,stroke:h,fillOpacity:u,strokeOpacity:l}})},i.prototype.toggleSeriesItem=function(t,e){t===this.yKey&&(this.seriesItemEnabled=e),this.scheduleData()},i.className="HistogramSeries",i.type="histogram",xi([y("dataChange")],i.prototype,"fill",void 0),xi([y("dataChange")],i.prototype,"stroke",void 0),xi([y("layoutChange")],i.prototype,"fillOpacity",void 0),xi([y("layoutChange")],i.prototype,"strokeOpacity",void 0),i}(ie),Ci=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Mi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.path=new L,e._dirtyPath=!0,e._centerX=0,e._centerY=0,e._centerOffset=0,e._innerRadius=10,e._outerRadius=20,e._startAngle=0,e._endAngle=2*Math.PI,e._angleOffset=0,e}return Ci(e,t),Object.defineProperty(e.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(t){this._dirtyPath!==t&&(this._dirtyPath=t,t&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerX",{get:function(){return this._centerX},set:function(t){this._centerX!==t&&(this._centerX=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this._centerY},set:function(t){this._centerY!==t&&(this._centerY=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerOffset",{get:function(){return this._centerOffset},set:function(t){this._centerOffset!==t&&(this._centerOffset=Math.max(0,t),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(t){this._innerRadius!==t&&(this._innerRadius=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outerRadius",{get:function(){return this._outerRadius},set:function(t){this._outerRadius!==t&&(this._outerRadius=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this._startAngle},set:function(t){this._startAngle!==t&&(this._startAngle=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this._endAngle},set:function(t){this._endAngle!==t&&(this._endAngle=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angleOffset",{get:function(){return this._angleOffset},set:function(t){this._angleOffset!==t&&(this._angleOffset=t,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(){var t=this.outerRadius;return new i(this.centerX-t,this.centerY-t,2*t,2*t)},e.prototype.isPointInPath=function(t,e){var i=this.transformPoint(t,e);return this.path.isPointInPath(i.x,i.y)},e.prototype.isPointInStroke=function(t,e){return!1},Object.defineProperty(e.prototype,"fullPie",{get:function(){return R(C(this.startAngle),C(this.endAngle))},enumerable:!0,configurable:!0}),e.prototype.updatePath=function(){if(this.dirtyPath){var t=this.path,e=this.angleOffset,i=Math.min(this.startAngle,this.endAngle)+e,n=Math.max(this.startAngle,this.endAngle)+e,r=.5*(i+n),o=Math.min(this.innerRadius,this.outerRadius),a=Math.max(this.innerRadius,this.outerRadius),s=this.centerOffset,h=this.fullPie,u=this.centerX,l=this.centerY;if(t.clear(),s&&(u+=s*Math.cos(r),l+=s*Math.sin(r)),h||(t.moveTo(u+o*Math.cos(i),l+o*Math.sin(i)),t.lineTo(u+a*Math.cos(i),l+a*Math.sin(i))),t.cubicArc(u,l,a,a,0,i,n,0),h)t.moveTo(u+o*Math.cos(n),l+o*Math.sin(n));else{var c=u+o*Math.cos(n);t.lineTo(Math.abs(c)<1e-8?0:c,l+o*Math.sin(n))}t.cubicArc(u,l,o,o,0,n,i,1),t.closePath(),this.dirtyPath=!1}},e.prototype.render=function(t){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(t),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(t),this.dirty=!1},e.className="Sector",e}(u),Di=function(){function t(t,e,i,n){void 0===n&&(n=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,i||0)),this.a=Math.min(1,Math.max(0,n||0))}return t.fromString=function(e){if(e.indexOf("#")>=0)return t.fromHexString(e);var i=t.nameToHex[e];if(i)return t.fromHexString(i);if(e.indexOf("rgb")>=0)return t.fromRgbaString(e);throw new Error("Invalid color string: '"+e+"'")},t.fromHexString=function(e){var i=e.match(t.hexRe);if(i)return new t((n=parseInt(i[1],16))/255,(r=parseInt(i[2],16))/255,(o=parseInt(i[3],16))/255,(a=void 0!==i[4]?parseInt(i[4],16):255)/255);if(i=e.match(t.shortHexRe)){var n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16),a=void 0!==i[4]?parseInt(i[4],16):15;return new t((n+=16*n)/255,(r+=16*r)/255,(o+=16*o)/255,(a+=16*a)/255)}throw new Error("Malformed hexadecimal color string: '"+e+"'")},t.fromRgbaString=function(e){var i=e.match(t.rgbRe);if(i)return new t(+i[1]/255,+i[2]/255,+i[3]/255);if(i=e.match(t.rgbaRe))return new t(+i[1]/255,+i[2]/255,+i[3]/255,+i[4]);throw new Error("Malformed rgb/rgba color string: '"+e+"'")},t.fromArray=function(e){if(4===e.length)return new t(e[0],e[1],e[2],e[3]);if(3===e.length)return new t(e[0],e[1],e[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},t.fromHSB=function(e,i,n,r){void 0===r&&(r=1);var o=t.HSBtoRGB(e,i,n);return new t(o[0],o[1],o[2],r)},t.padHex=function(t){return 1===t.length?"0"+t:t},t.prototype.toHexString=function(){var e="#"+t.padHex(Math.round(255*this.r).toString(16))+t.padHex(Math.round(255*this.g).toString(16))+t.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(e+=t.padHex(Math.round(255*this.a).toString(16))),e},t.prototype.toRgbaString=function(t){void 0===t&&(t=3);var e=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],i=Math.pow(10,t);return 1!==this.a?(e.push(Math.round(this.a*i)/i),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},t.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},t.prototype.toHSB=function(){return t.RGBtoHSB(this.r,this.g,this.b)},t.RGBtoHSB=function(t,e,i){var n=Math.min(t,e,i),r=Math.max(t,e,i),o=NaN;if(n!==r){var a=r-n,s=(r-t)/a,h=(r-e)/a,u=(r-i)/a;o=t===r?u-h:e===r?2+s-u:4+h-s,(o/=6)<0&&(o+=1)}return[360*o,0!==r?(r-n)/r:0,r]},t.HSBtoRGB=function(t,e,i){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var n=0,r=0,o=0;if(0===e)n=r=o=i;else{var a=6*(t-Math.floor(t)),s=a-Math.floor(a),h=i*(1-e),u=i*(1-e*s),l=i*(1-e*(1-s));switch(a>>0){case 0:n=i,r=l,o=h;break;case 1:n=u,r=i,o=h;break;case 2:n=h,r=i,o=l;break;case 3:n=h,r=u,o=i;break;case 4:n=l,r=h,o=i;break;case 5:n=i,r=h,o=u}}return[n,r,o]},t.prototype.derive=function(e,i,n,r){var o=t.RGBtoHSB(this.r,this.g,this.b),a=o[2];0==a&&n>1&&(a=.05);var s=((o[0]+e)%360+360)%360,h=Math.max(Math.min(o[1]*i,1),0);a=Math.max(Math.min(a*n,1),0);var u=Math.max(Math.min(this.a*r,1),0),l=t.HSBtoRGB(s,h,a);return l.push(u),t.fromArray(l)},t.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},t.prototype.darker=function(){return this.derive(0,1,.7,1)},t.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,t.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,t.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,t.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,t.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),t}(),Ei=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ai=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t[t.Sector=0]="Sector",t[t.Callout=1]="Callout",t[t.Label=2]="Label"}(wi||(wi={}));var Ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.offset=3,e.minAngle=20,e}return Ei(e,t),Ai([y("change")],e.prototype,"offset",void 0),Ai([y("dataChange")],e.prototype,"minAngle",void 0),e}(Ke),ji=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.colors=ke.strokes,e.length=10,e.strokeWidth=1,e}return Ei(e,t),Ai([y("change")],e.prototype,"colors",void 0),Ai([y("change")],e.prototype,"length",void 0),Ai([y("change")],e.prototype,"strokeWidth",void 0),e}(d),Fi=function(e){function i(){var t,i=e.call(this)||this;return i.radiusScale=new pi,i.groupSelection=k.select(i.group).selectAll(),i.groupSelectionData=[],i.angleScale=((t=new pi).domain=[0,1],t.range=[-Math.PI,Math.PI].map((function(t){return t+Math.PI/2})),t),i.seriesItemEnabled=[],i.label=new Ti,i.callout=new ji,i.angleKey="",i.angleName="",i._fills=ke.fills,i._strokes=ke.strokes,i.fillOpacity=1,i.strokeOpacity=1,i.rotation=0,i.outerRadiusOffset=0,i.innerRadiusOffset=0,i.strokeWidth=1,i.highlightStyle={fill:"yellow"},i.addEventListener("update",i.update,i),i.label.addEventListener("change",i.scheduleLayout,i),i.label.addEventListener("dataChange",i.scheduleData,i),i.callout.addEventListener("change",i.scheduleLayout,i),i.addPropertyListener("data",(function(t){t.source.seriesItemEnabled=t.value.map((function(){return!0}))})),i}return Ei(i,e),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(t){var e=this._title;e!==t&&(e&&(e.removeEventListener("change",this.scheduleLayout),this.group.removeChild(e.node)),t&&(t.node.textBaseline="bottom",t.addEventListener("change",this.scheduleLayout),this.group.appendChild(t.node)),this._title=t,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fills",{get:function(){return this._fills},set:function(t){this._fills=t,this.strokes=t.map((function(t){return Di.fromString(t).darker().toHexString()})),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokes",{get:function(){return this._strokes},set:function(t){this._strokes=t,this.callout.colors=t,this.scheduleData()},enumerable:!0,configurable:!0}),i.prototype.onHighlightChange=function(){this.updateNodes()},i.prototype.getDomain=function(t){return t===X.X?this.angleScale.domain:this.radiusScale.domain},i.prototype.processData=function(){var t,e=this,i=this,n=i.angleKey,r=i.radiusKey,o=i.seriesItemEnabled,a=i.angleScale,s=i.groupSelectionData,h=n&&this.data?this.data:[],u=h.map((function(t,e){return o[e]&&Math.abs(+t[n])||0})),l=u.reduce((function(t,e){return t+e}),0),c=(t=0,u.map((function(e){return t+=e/l}))),f=this.label.enabled&&this.labelKey,p=f?h.map((function(t){return String(t[f])})):[],d=!!r&&!this.innerRadiusOffset,y=[];if(d){var g=h.map((function(t){return Math.abs(t[r])})),m=Math.max.apply(Math,g);y=g.map((function(t){return t/m}))}s.length=0;var b=E(this.rotation),v=Math.PI/2,x=0;return c.reduce((function(t,i){var n,r,o=d?y[x]:1,u=a.convert(t)+b,l=a.convert(i)+b,c=(u+l)/2,g=Math.abs(l-u),m=Math.cos(c),_=Math.sin(c),w=E(e.label.minAngle),k=f&&g>w,O=D(c),P=-3*Math.PI/4;return O>=P&&O<(P+=v)?(n="center",r="bottom"):O>=P&&O<(P+=v)?(n="left",r="middle"):O>=P&&O<(P+=v)?(n="center",r="hanging"):(n="right",r="middle"),s.push({series:e,seriesDatum:h[x],index:x,radius:o,startAngle:u,endAngle:l,midAngle:c,midCos:m,midSin:_,label:k?{text:p[x],textAlign:n,textBaseline:r}:void 0}),x++,i}),0),!0},i.prototype.update=function(){var t=this.chart;if((this.group.visible=this.visible&&this.seriesItemEnabled.indexOf(!0)>=0)&&t&&!t.dataPending&&!t.layoutPending){this.radiusScale.range=[0,this.radius],this.group.translationX=this.centerX,this.group.translationY=this.centerY;var e=this.title;e&&(e.node.translationY=-this.radius-this.outerRadiusOffset-2,e.node.visible=e.enabled),this.updateGroupSelection(),this.updateNodes()}},i.prototype.updateGroupSelection=function(){var e=this.groupSelection.setData(this.groupSelectionData);e.exit.remove();var i=e.enter.append(_);i.append(Mi).each((function(t){return t.tag=wi.Sector})),i.append(P).each((function(e){e.tag=wi.Callout,e.pointerEvents=t.None})),i.append(f).each((function(e){e.tag=wi.Label,e.pointerEvents=t.None})),this.groupSelection=e.merge(i)},i.prototype.updateNodes=function(){var t=this,e=t.fills,i=t.strokes,n=t.fillOpacity,r=t.strokeOpacity,o=t.strokeWidth,a=t.outerRadiusOffset,s=t.innerRadiusOffset,h=t.radiusScale,u=t.callout,l=t.shadow,c=t.highlightStyle,f=c.fill,p=c.stroke,d=c.centerOffset,y=this.chart.highlightedDatum,g=[],m=[];this.groupSelection.selectByTag(wi.Sector).each((function(t,u,c){var b=h.convert(u.radius),v=Math.max(0,b+a);t.outerRadius=v,t.innerRadius=Math.max(0,s?b+s:0),t.startAngle=u.startAngle,t.endAngle=u.endAngle;var x=u===y;t.fill=x&&void 0!==f?f:e[c%e.length],t.stroke=x&&void 0!==p?p:i[c%i.length],t.fillOpacity=n,t.strokeOpacity=r,t.centerOffset=x&&void 0!==d?d:0,t.fillShadow=l,t.strokeWidth=o,t.lineJoin="round",g.push(v),m.push(t.centerOffset)}));var b=u.colors,v=u.length,x=u.strokeWidth;this.groupSelection.selectByTag(wi.Callout).each((function(t,e,i){if(e.label){var n=m[i]+g[i];t.strokeWidth=x,t.stroke=b[i%b.length],t.x1=e.midCos*n,t.y1=e.midSin*n,t.x2=e.midCos*(n+v),t.y2=e.midSin*(n+v)}else t.stroke=void 0}));var _=this.label,w=_.offset,k=_.fontStyle,O=_.fontWeight,P=_.fontSize,S=_.fontFamily,C=_.color;this.groupSelection.selectByTag(wi.Label).each((function(t,e,i){var n=e.label;if(n){var r=g[i],o=m[i]+r+v+w;t.fontStyle=k,t.fontWeight=O,t.fontSize=P,t.fontFamily=S,t.text=n.text,t.x=e.midCos*o,t.y=e.midSin*o,t.fill=C,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline}else t.fill=void 0}))},i.prototype.fireNodeClickEvent=function(t){this.fireEvent({type:"nodeClick",series:this,datum:t.seriesDatum,angleKey:this.angleKey,radiusKey:this.radiusKey})},i.prototype.getTooltipHtml=function(t){var e=this.angleKey;if(!e)return"";var i=this,n=i.title,r=i.fills,o=i.tooltipRenderer,a=i.angleName,s=i.radiusKey,h=i.radiusName,u=i.labelKey,l=i.labelName,c=n?n.text:void 0,f=r[t.index%r.length];if(o)return o({datum:t.seriesDatum,angleKey:e,angleName:a,radiusKey:s,radiusName:h,labelKey:u,labelName:l,title:c,color:f});var p='style="color: white; background-color: '+f+'"',d=n?'<div class="'+se.defaultTooltipClass+'-title" '+p+">"+c+"</div>":"",y=u?t.seriesDatum[u]+": ":"",g=t.seriesDatum[e],m="number"==typeof g?K(g):g.toString();return d+'<div class="'+se.defaultTooltipClass+'-content">'+y+m+"</div>"},i.prototype.listSeriesItems=function(t){var e=this,i=this.labelKey,n=this.data;if(n&&n.length&&i){var r=this.fills,o=this.strokes,a=this.id;n.forEach((function(n,s){t.push({id:a,itemId:s,enabled:e.seriesItemEnabled[s],label:{text:String(n[i])},marker:{fill:r[s%r.length],stroke:o[s%o.length],fillOpacity:e.fillOpacity,strokeOpacity:e.strokeOpacity}})}))}},i.prototype.toggleSeriesItem=function(t,e){this.seriesItemEnabled[t]=e,this.scheduleData()},i.className="PieSeries",i.type="pie",Ai([y("dataChange")],i.prototype,"angleKey",void 0),Ai([y("update")],i.prototype,"angleName",void 0),Ai([y("dataChange")],i.prototype,"radiusKey",void 0),Ai([y("update")],i.prototype,"radiusName",void 0),Ai([y("dataChange")],i.prototype,"labelKey",void 0),Ai([y("update")],i.prototype,"labelName",void 0),Ai([y("layoutChange")],i.prototype,"fillOpacity",void 0),Ai([y("layoutChange")],i.prototype,"strokeOpacity",void 0),Ai([y("dataChange")],i.prototype,"rotation",void 0),Ai([y("layoutChange")],i.prototype,"outerRadiusOffset",void 0),Ai([y("dataChange")],i.prototype,"innerRadiusOffset",void 0),Ai([y("layoutChange")],i.prototype,"strokeWidth",void 0),Ai([y("layoutChange")],i.prototype,"shadow",void 0),i}(Ee),Ii=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ni=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},Li=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.enabled=!0,e.color="rgba(0, 0, 0, 0.5)",e.xOffset=0,e.yOffset=0,e.blur=5,e}return Ii(e,t),Ni([y("change")],e.prototype,"enabled",void 0),Ni([y("change")],e.prototype,"color",void 0),Ni([y("change")],e.prototype,"xOffset",void 0),Ni([y("change")],e.prototype,"yOffset",void 0),Ni([y("change")],e.prototype,"blur",void 0),e}(d),Bi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),zi=function(t){function e(){var e=t.call(this,new pi)||this;return e._nice=!0,e._min=NaN,e._max=NaN,e.scale.clamp=!0,e}return Bi(e,t),Object.defineProperty(e.prototype,"nice",{get:function(){return this._nice},set:function(t){this._nice!==t&&(this._nice=t,t&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(t){var e=this.min,i=this.max;t=[isNaN(e)?t[0]:e,isNaN(i)?t[1]:i],this.scale.domain=t,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(t){this._min!==t&&(this._min=t,isNaN(t)||(this.scale.domain=[t,this.scale.domain[1]]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(t){this._max!==t&&(this._max=t,isNaN(t)||(this.scale.domain=[this.scale.domain[0],t]))},enumerable:!0,configurable:!0}),e.className="NumberAxis",e.type="number",e}(Q);var Ri=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ki=new Date,Vi=new Date,Wi=function(t){function e(e,i,n,r){var o=t.call(this,e,i)||this;return o._count=n,o._field=r,o}return Ri(e,t),e.prototype.count=function(t,e){return Ki.setTime(+t),Vi.setTime(+e),this._floor(Ki),this._floor(Vi),Math.floor(this._count(Ki,Vi))},e.prototype.every=function(t){var e,i=this;if(t=Math.floor(t),isFinite(t)&&t>0)if(t>1){var n=this._field;e=n?this.filter((function(e){return n(e)%t==0})):this.filter((function(e){return i.count(0,e)%t==0}))}else e=this;return e},e}(function(){function t(t,e){this._floor=t,this._offset=e}return t.prototype.floor=function(t){return t=new Date(+t),this._floor(t),t},t.prototype.ceil=function(t){return t=new Date(+t-1),this._floor(t),this._offset(t,1),this._floor(t),t},t.prototype.round=function(t){var e=this.floor(t),i=this.ceil(t),n=+t;return n-e.getTime()<i.getTime()-n?e:i},t.prototype.offset=function(t,e){return void 0===e&&(e=1),t=new Date(+t),this._offset(t,Math.floor(e)),t},t.prototype.range=function(t,e,i){void 0===i&&(i=1);var n,r=[];if(t=this.ceil(t),i=Math.floor(i),t>e||i<=0)return r;do{n=new Date(+t),r.push(n),this._offset(t,i),this._floor(t)}while(n<t&&t<e);return r},t.prototype.filter=function(e){var i=this;return new t((function(t){if(t>=t)for(;i._floor(t),!e(t);)t.setTime(t.getTime()-1);return t}),(function(t,n){if(t>=t)if(n<0)for(;++n<=0;)do{i._offset(t,-1)}while(!e(t));else for(;--n>=0;)do{i._offset(t,1)}while(!e(t));return t}))},t}());var Hi=new Wi((function(t){return t}),(function(t,e){t.setTime(t.getTime()+e)}),(function(t,e){return e.getTime()-t.getTime()}));var Yi=new Wi((function(t){t.setTime(t.getTime()-t.getMilliseconds())}),(function(t,e){t.setTime(t.getTime()+1e3*e)}),(function(t,e){return(e.getTime()-t.getTime())/1e3}));var Xi=new Wi((function(t){t.setTime(t.getTime()-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(t.getTime()+6e4*e)}),(function(t,e){return(e.getTime()-t.getTime())/6e4}),(function(t){return t.getMinutes()}));var Ui=new Wi((function(t){t.setTime(t.getTime()-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(t.getTime()+36e5*e)}),(function(t,e){return(e.getTime()-t.getTime())/36e5}),(function(t){return t.getHours()}));var Gi=new Wi((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){var i=e.getTimezoneOffset()-t.getTimezoneOffset();return(e.getTime()-t.getTime()-6e4*i)/864e5}),(function(t){return t.getDate()-1}));function qi(t){return new Wi((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e.getTime()-t.getTime()-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Ji=qi(0),Zi=qi(1),$i=qi(2),Qi=qi(3),tn=qi(4),en=qi(5),nn=qi(6);var rn=new Wi((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));var on=new Wi((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));function an(t,e,i,n,r){void 0===n&&(n=0),void 0===r&&(r=t.length);for(var o=function(t){return function(e,i){return(n=t(e))<(r=i)?-1:n>r?1:n>=r?0:NaN;var n,r}}(i);n<r;){var a=n+r>>>1;o(t[a],e)<0?n=a+1:r=a}return n}var sn=new Wi((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e.getTime()-t.getTime())/864e5}),(function(t){return t.getUTCDate()-1}));var hn=new Wi((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));function un(t){return new Wi((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e.getTime()-t.getTime())/6048e5}))}var ln=un(0),cn=un(1),fn=(un(2),un(3),un(4));un(5),un(6);function pn(t){if(t.y>=0&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dn(t){if(t.y>=0&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yn(t){for(var e={},i=0,n=t.length;i<n;i++)e[t[i].toLowerCase()]=i;return e}function gn(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var mn,bn=/^\s*\d+/,vn=/^%/,xn=/[\\^$*+?|[\]().{}]/g,_n=function(t){return t.replace(xn,"\\$&")},wn=function(t){return new RegExp("^(?:"+t.map(_n).join("|")+")","i")},kn={"-":"",_:" ",0:"0"};function On(t,e,i){var n=t<0?"-":"",r=String(n?-t:t),o=r.length;return n+(o<i?new Array(i-o+1).join(e)+r:r)}mn=function(t){var e=t.dateTime,i=t.date,n=t.time,r=t.periods,o=t.days,a=t.shortDays,s=t.months,h=t.shortMonths,u=wn(r),l=yn(r),c=wn(o),f=yn(o),p=wn(a),d=yn(a),y=wn(s),g=yn(s),m=wn(h),b=yn(h),v={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return h[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:void 0,d:S,e:S,f:function(t,e){return P(t,e)+"000"},H:function(t,e){return On(t.getHours(),e,2)},I:function(t,e){return On(t.getHours()%12||12,e,2)},j:function(t,e){return On(1+Gi.count(on.floor(t),t),e,3)},L:P,m:function(t,e){return On(t.getMonth()+1,e,2)},M:function(t,e){return On(t.getMinutes(),e,2)},p:function(t){return r[t.getHours()>=12?1:0]},Q:E,s:A,S:function(t,e){return On(t.getSeconds(),e,2)},u:function(t){var e=t.getDay();return 0===e?7:e},U:function(t,e){return On(Ji.count(on.floor(t),t),e,2)},V:function(t,e){var i=t.getDay();t=i>=4||0===i?tn.floor(t):tn.ceil(t);var n=on.floor(t);return On(tn.count(n,t)+(4===n.getDay()?1:0),e,2)},w:function(t){return t.getDay()},W:function(t,e){return On(Zi.count(on.floor(t),t),e,2)},x:void 0,X:void 0,y:function(t,e){return On(t.getFullYear()%100,e,2)},Y:function(t,e){return On(t.getFullYear()%1e4,e,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+On(Math.floor(e/60),"0",2)+On(e%60,"0",2)},"%":D},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return h[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:void 0,d:M,e:M,f:function(t,e){return C(t,e)+"000"},H:function(t,e){return On(t.getUTCHours(),e,2)},I:function(t,e){return On(t.getUTCHours()%12||12,e,2)},j:function(t,e){return On(1+sn.count(hn.floor(t),t),e,3)},L:C,m:function(t,e){return On(t.getUTCMonth()+1,e,2)},M:function(t,e){return On(t.getUTCMinutes(),e,2)},p:function(t){return r[t.getUTCHours()>=12?1:0]},Q:E,s:A,S:function(t,e){return On(t.getUTCSeconds(),e,2)},u:function(t){var e=t.getUTCDay();return 0===e?7:e},U:function(t,e){return On(ln.count(hn.floor(t),t),e,2)},V:function(t,e){var i=t.getUTCDay();t=i>=4||0===i?fn.floor(t):fn.ceil(t);var n=hn.floor(t);return On(fn.count(n,t)+(4===n.getUTCDay()?1:0),e,4)},w:function(t){return t.getUTCDay()},W:function(t,e){return On(cn.count(hn.floor(t),t),e,2)},x:void 0,X:void 0,y:function(t,e){return On(t.getUTCFullYear()%100,e,2)},Y:function(t,e){return On(t.getUTCFullYear()%1e4,e,4)},Z:function(){return"+0000"},"%":D},_={a:function(t,e,i){var n=p.exec(e.slice(i));return n?(t.w=d[n[0].toLowerCase()],i+n[0].length):-1},A:function(t,e,i){var n=c.exec(e.slice(i));return n?(t.w=f[n[0].toLowerCase()],i+n[0].length):-1},b:function(t,e,i){var n=m.exec(e.slice(i));return n?(t.m=b[n[0].toLowerCase()],i+n[0].length):-1},B:function(t,e,i){var n=y.exec(e.slice(i));return n?(t.m=g[n[0].toLowerCase()],i+n[0].length):-1},c:function(t,i,n){return O(t,e,i,n)},d:j,e:j,f:function(t,e,i){var n=bn.exec(e.slice(i,i+6));return n?(t.L=Math.floor(parseFloat(n[0])/1e3),i+n[0].length):-1},H:T,I:T,j:function(t,e,i){var n=bn.exec(e.slice(i,i+3));return n?(t.m=0,t.d=+n[0],i+n[0].length):-1},L:function(t,e,i){var n=bn.exec(e.slice(i,i+3));return n?(t.L=+n[0],i+n[0].length):-1},m:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.m=parseFloat(n[0])-1,i+n[0].length):-1},M:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.M=+n[0],i+n[0].length):-1},p:function(t,e,i){var n=u.exec(e.slice(i));return n?(t.p=l[n[0].toLowerCase()],i+n[0].length):-1},Q:function(t,e,i){var n=bn.exec(e.slice(i));return n?(t.Q=+n[0],i+n[0].length):-1},s:function(t,e,i){var n=bn.exec(e.slice(i));return n?(t.Q=1e3*+n[0],i+n[0].length):-1},S:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.S=+n[0],i+n[0].length):-1},u:function(t,e,i){var n=bn.exec(e.slice(i,i+1));return n?(t.u=+n[0],i+n[0].length):-1},U:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.U=+n[0],i+n[0].length):-1},V:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.V=+n[0],i+n[0].length):-1},w:function(t,e,i){var n=bn.exec(e.slice(i,i+1));return n?(t.w=+n[0],i+n[0].length):-1},W:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.W=+n[0],i+n[0].length):-1},x:function(t,e,n){return O(t,i,e,n)},X:function(t,e,i){return O(t,n,e,i)},y:function(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),i+n[0].length):-1},Y:function(t,e,i){var n=bn.exec(e.slice(i,i+4));return n?(t.y=+n[0],i+n[0].length):-1},Z:function(t,e,i){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(i,i+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),i+n[0].length):-1},"%":function(t,e,i){var n=vn.exec(e.slice(i,i+1));return n?i+n[0].length:-1}};function w(t,e){return function(i){var n=gn(1900);if(O(n,t,i+="",0)==i.length){if("Q"in n)return new Date(n.Q);if("p"in n&&(n.H=n.H%12+12*n.p),"V"in n){if(n.V<1||n.V>53)return;if("w"in n||(n.w=1),"Z"in n){var r=(o=dn(gn(n.y))).getUTCDay();o=r>4||0===r?cn.ceil(o):cn.floor(o),o=sn.offset(o,7*(n.V-1)),n.y=o.getUTCFullYear(),n.m=o.getUTCMonth(),n.d=o.getUTCDate()+(n.w+6)%7}else{var o;r=(o=e(gn(n.y))).getDay(),o=r>4||0===r?Zi.ceil(o):Zi.floor(o),o=Gi.offset(o,7*(n.V-1)),n.y=o.getFullYear(),n.m=o.getMonth(),n.d=o.getDate()+(n.w+6)%7}}else("W"in n||"U"in n)&&("w"in n||(n.w="u"in n?n.u%7:"W"in n?1:0),r="Z"in n?dn(gn(n.y)).getUTCDay():e(gn(n.y)).getDay(),n.m=0,n.d="W"in n?(n.w+6)%7+7*n.W-(r+5)%7:n.w+7*n.U-(r+6)%7);return"Z"in n?(n.H+=n.Z/100|0,n.M+=n.Z%100,dn(n)):e(n)}}}function k(t,e){return function(i){var n=[],r=t.length,o=-1,a=0;for(i instanceof Date||(i=new Date(+i));++o<r;)if(37===t.charCodeAt(o)){n.push(t.slice(a,o));var s=t.charAt(++o),h=kn[s];null!=h?s=t.charAt(++o):h="e"===s?" ":"0";var u=e[s];u&&(s=u(i,h)),n.push(s),a=o+1}return n.push(t.slice(a,o)),n.join("")}}function O(t,e,i,n){for(var r=0,o=e.length,a=i.length;r<o;){if(n>=a)return-1;var s=e.charCodeAt(r++);if(37===s){var h=e.charAt(r++),u=_[h in kn?e.charAt(r++):h];if(!u||(n=u(t,i,n))<0)return-1}else if(s!=i.charCodeAt(n++))return-1}return n}function P(t,e){return On(t.getMilliseconds(),e,3)}function S(t,e){return On(t.getDate(),e,2)}function C(t,e){return On(t.getUTCMilliseconds(),e,3)}function M(t,e){return On(t.getUTCDate(),e,2)}function D(t){return"%"}function E(t){return t.getTime()}function A(t){return Math.floor(t.getTime()/1e3)}function T(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.H=+n[0],i+n[0].length):-1}function j(t,e,i){var n=bn.exec(e.slice(i,i+2));return n?(t.d=+n[0],i+n[0].length):-1}return v.x=k(i,v),v.X=k(n,v),v.c=k(e,v),x.x=k(i,x),x.X=k(n,x),x.c=k(e,x),{format:function(t){var e=k(t,v);return e.toString=function(){return t},e},parse:function(t){var e=w(t,pn);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t,x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t,dn);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Pn=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.year=on,e.month=rn,e.week=Ji,e.day=Gi,e.hour=Ui,e.minute=Xi,e.second=Yi,e.millisecond=Hi,e.format=mn.format,e.tickIntervals=[[e.second,1,1e3],[e.second,5,5e3],[e.second,15,15e3],[e.second,30,3e4],[e.minute,1,6e4],[e.minute,5,3e5],[e.minute,15,9e5],[e.minute,30,18e5],[e.hour,1,36e5],[e.hour,3,108e5],[e.hour,6,216e5],[e.hour,12,432e5],[e.day,1,864e5],[e.day,2,1728e5],[e.week,1,6048e5],[e.month,1,2592e6],[e.month,3,7776e6],[e.year,1,31536e6]],e.formatMillisecond=e.format(".%L"),e.formatSecond=e.format(":%S"),e.formatMinute=e.format("%I:%M"),e.formatHour=e.format("%I %p"),e.formatDay=e.format("%a %d"),e.formatWeek=e.format("%b %d"),e.formatMonth=e.format("%B"),e.formatYear=e.format("%Y"),e._domain=[new Date(2e3,0,1),new Date(2e3,0,2)],e}return Pn(e,t),e.prototype.defaultTickFormat=function(t){return(this.second.floor(t)<t?this.formatMillisecond:this.minute.floor(t)<t?this.formatSecond:this.hour.floor(t)<t?this.formatMinute:this.day.floor(t)<t?this.formatHour:this.month.floor(t)<t?this.week.floor(t)<t?this.formatDay:this.formatWeek:this.year.floor(t)<t?this.formatMonth:this.formatYear)(t)},e.prototype.tickInterval=function(t,e,i,n){var r;if(void 0===t&&(t=10),"number"==typeof t){var o=t,a=this.tickIntervals,s=Math.abs(i-e)/o,h=an(a,s,(function(t){return t[2]}));h===a.length?(n=ui(e/31536e6,i/31536e6,o),t=this.year):h?(t=(r=a[s/a[h-1][2]<a[h][2]/s?h-1:h])[0],n=r[1]):(n=Math.max(ui(e,i,t),1),t=this.millisecond)}return null==n?t:t.every(n)},Object.defineProperty(e.prototype,"domain",{get:function(){return t.prototype.getDomain.call(this).map((function(t){return new Date(t)}))},set:function(e){t.prototype.setDomain.call(this,Array.prototype.map.call(e,(function(t){return t instanceof Date?+t:+new Date(+t)})))},enumerable:!0,configurable:!0}),e.prototype.invert=function(e){return new Date(t.prototype.invert.call(this,e))},e.prototype.ticks=function(e){void 0===e&&(e=10);var i=t.prototype.getDomain.call(this),n=i[0],r=i[i.length-1],o=r<n;if(o){var a=n;n=r,r=a}var s=this.tickInterval(e,n,r),h=s?s.range(n,r+1):[];return o?h.reverse():h},e.prototype.tickFormat=function(t,e){return null==e?this.defaultTickFormat.bind(this):this.format(e)},e.prototype.nice=function(e){void 0===e&&(e=10);var i=t.prototype.getDomain.call(this),n=this.tickInterval(e,i[0],i[i.length-1]);n&&(this.domain=this._nice(i,n))},e.prototype._nice=function(t,e){var i,n,r=0,o=(t=t.slice()).length-1,a=t[r],s=t[o];return s<a&&(r=(i=[o,r])[0],o=i[1],a=(n=[s,a])[0],s=n[1]),t[r]=e.floor(a),t[o]=e.ceil(s),t},e}(ti),Cn=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Mn=function(t){function e(){var e=t.call(this,new Sn)||this;return e._nice=!0,e.scale.clamp=!0,e}return Cn(e,t),Object.defineProperty(e.prototype,"nice",{get:function(){return this._nice},set:function(t){this._nice!==t&&(this._nice=t,t&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(t){this.scale.domain=t,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),e.className="TimeAxis",e.type="time",e}(Q),Dn=function(){function t(){}var i;return t.createCartesianChart=function(t,e,i,n){var r=new xe(n);return r.container=t,e.position=U.Bottom,i.position=U.Left,r.axes=[e,i],r},t.createGroupedCategoryChart=function(t,e,i,n){var r=new we(n);return r.container=t,e.position=U.Bottom,i.position=U.Left,r.axes=[e,i],r},t.createBarChart=function(e,i){var n=this.createCartesianChart(e,t.createAxis(i.xAxis,"number"),t.createAxis(i.yAxis,"category"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initBarSeries(new Xe,e)}))),n},t.createGroupedBarChart=function(e,i){var n=this.createGroupedCategoryChart(e,t.createAxis(i.xAxis,"number"),t.createGroupedCategoryAxis(i.yAxis),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initBarSeries(new Xe,e)}))),n},t.createColumnChart=function(e,i){var n=this.createCartesianChart(e,t.createAxis(i.xAxis,"category"),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initBarSeries(new Xe,e)}))),n},t.createGroupedColumnChart=function(e,i){var n=this.createGroupedCategoryChart(e,t.createGroupedCategoryAxis(i.xAxis),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initBarSeries(new Xe,e)}))),n},t.createLineChart=function(e,i){var n=this.createCartesianChart(e,t.createAxis(i.xAxis,"category"),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initLineSeries(new ni,e)}))),n},t.createGroupedLineChart=function(e,i){var n=this.createGroupedCategoryChart(e,t.createGroupedCategoryAxis(i.xAxis),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initLineSeries(new ni,e)}))),n},t.createScatterChart=function(e,i){var n=this.createCartesianChart(e,t.createAxis(i.xAxis,"number"),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initScatterSeries(new bi,e)}))),n},t.createAreaChart=function(e,i){var n=this.createCartesianChart(e,t.createAxis(i.xAxis,"category"),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initAreaSeries(new Be,e)}))),n},t.createGroupedAreaChart=function(e,i){var n=this.createGroupedCategoryChart(e,t.createGroupedCategoryAxis(i.xAxis),t.createAxis(i.yAxis,"number"),i.document);return t.initCartesianChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initAreaSeries(new Be,e)}))),n},t.createHistogramChart=function(e,i){var n=this.createCartesianChart(e,t.createNumberAxis(i.xAxis),t.createNumberAxis(i.yAxis),i.document);return t.initCartesianChart(n,i),n},t.createPolarChart=function(t){var e=new je;return e.container=t,e},t.createDoughnutChart=function(t,e){return this.createPieChart(t,e)},t.createPieChart=function(e,i){var n=this.createPolarChart(e);return t.initChart(n,i),i.series&&(n.series=i.series.map((function(e){return t.initPieSeries(new Fi,e)}))),n},t.createSeries=function(e){switch(e&&e.type){case"line":return t.initLineSeries(new ni,e);case"scatter":return t.initScatterSeries(new bi,e);case"bar":return t.initBarSeries(new Xe,e);case"area":return t.initAreaSeries(new Be,e);case"pie":return t.initPieSeries(new Fi,e);case"histogram":return t.initHistogramSeries(new Si,e);default:return null}},t.initCartesianChart=function(e,i){return void 0!==i.navigator&&t.initNavigator(e.navigator,i.navigator),this.initChart(e,i)},t.initChart=function(i,n){this.setValueIfExists(i,"width",n.width),this.setValueIfExists(i,"height",n.height),this.setValueIfExists(i,"tooltipClass",n.tooltipClass),this.setTransformedValueIfExists(i,"title",(function(e){return t.createTitle(e)}),n.title),this.setTransformedValueIfExists(i,"subtitle",(function(e){return t.createSubtitle(e)}),n.subtitle),this.setTransformedValueIfExists(i,"padding",(function(t){return new e(t.top,t.right,t.bottom,t.left)}),n.padding),n.background&&(this.setValueIfExists(i.background,"fill",n.background.fill),this.setValueIfExists(i.background,"visible",n.background.visible)),void 0!==n.legend&&t.initLegend(i.legend,n.legend);var r=n.listeners;if(r)for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];"function"==typeof a&&i.addEventListener(o,a)}return i},t.initSeries=function(t,e){this.setValueIfExists(t,"visible",e.visible),this.setValueIfExists(t,"showInLegend",e.showInLegend),this.setValueIfExists(t,"data",e.data);var i=e.listeners;if(i)for(var n in i)if(i.hasOwnProperty(n)){var r=i[n];"function"==typeof r&&t.addEventListener(n,r)}return t},t.initLineSeries=function(e,i){t.initSeries(e,i),this.setValueIfExists(e,"title",i.title);var n=i.field,r=i.fill,o=i.stroke,a=i.highlightStyle,s=i.marker,h=i.tooltip;return n&&(this.setValueIfExists(e,"xKey",n.xKey),this.setValueIfExists(e,"xName",n.xName),this.setValueIfExists(e,"yKey",n.yKey),this.setValueIfExists(e,"yName",n.yName)),r&&this.setValueIfExists(e.marker,"fill",r.color),o&&(this.setValueIfExists(e,"stroke",o.color),this.setValueIfExists(e,"strokeWidth",o.width)),a&&this.initHighlightStyle(e.highlightStyle,a),s&&this.initMarker(e.marker,s),h&&(this.setValueIfExists(e,"tooltipEnabled",h.enabled),this.setValueIfExists(e,"tooltipRenderer",h.renderer)),e},t.initScatterSeries=function(e,i){t.initSeries(e,i),this.setValueIfExists(e,"title",i.title);var n=i.field,r=i.fill,o=i.stroke,a=i.highlightStyle,s=i.marker,h=i.tooltip;return n&&(this.setValueIfExists(e,"xKey",n.xKey),this.setValueIfExists(e,"xName",n.xName),this.setValueIfExists(e,"yKey",n.yKey),this.setValueIfExists(e,"yName",n.yName),this.setValueIfExists(e,"sizeKey",n.sizeKey),this.setValueIfExists(e,"sizeName",n.sizeName),this.setValueIfExists(e,"labelKey",n.labelKey),this.setValueIfExists(e,"labelName",n.labelName)),r&&this.setValueIfExists(e.marker,"fill",r.color),o&&(this.setValueIfExists(e.marker,"stroke",o.color),this.setValueIfExists(e.marker,"strokeWidth",o.width)),a&&this.initHighlightStyle(e.highlightStyle,a),s&&this.initMarker(e.marker,s),h&&(this.setValueIfExists(e,"tooltipEnabled",h.enabled),this.setValueIfExists(e,"tooltipRenderer",h.renderer)),e},t.initLabelOptions=function(t,e){this.setValueIfExists(t,"enabled",e.enabled),this.setValueIfExists(t,"fontStyle",e.fontStyle),this.setValueIfExists(t,"fontWeight",e.fontWeight),this.setValueIfExists(t,"fontSize",e.fontSize),this.setValueIfExists(t,"fontFamily",e.fontFamily),this.setValueIfExists(t,"color",e.color)},t.initBarSeries=function(e,i){t.initSeries(e,i),this.setValueIfExists(e,"grouped",i.grouped),this.setValueIfExists(e,"normalizedTo",i.normalizedTo);var n=i.field,r=i.fill,o=i.stroke,a=i.highlightStyle,s=i.label,h=i.tooltip;return n&&(this.setValueIfExists(e,"xKey",n.xKey),this.setValueIfExists(e,"yKeys",n.yKeys),this.setValueIfExists(e,"yNames",n.yNames)),r&&(this.setValueIfExists(e,"fills",r.colors),this.setValueIfExists(e,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(e,"strokes",o.colors),this.setValueIfExists(e,"strokeOpacity",o.opacity),this.setValueIfExists(e,"strokeWidth",o.width)),a&&this.initHighlightStyle(e.highlightStyle,a),s&&(t.initLabelOptions(e.label,s),this.setValueIfExists(e.label,"enabled",s.enabled),this.setValueIfExists(e.label,"formatter",s.formatter)),h&&(this.setValueIfExists(e,"tooltipEnabled",h.enabled),this.setValueIfExists(e,"tooltipRenderer",h.renderer)),this.setTransformedValueIfExists(e,"shadow",(function(e){return t.createDropShadow(e)}),i.shadow),e},t.initAreaSeries=function(e,i){t.initSeries(e,i),this.setValueIfExists(e,"normalizedTo",i.normalizedTo);var n=i.field,r=i.fill,o=i.stroke,a=i.highlightStyle,s=i.marker,h=i.tooltip;return n&&(this.setValueIfExists(e,"xKey",n.xKey),this.setValueIfExists(e,"yKeys",n.yKeys),this.setValueIfExists(e,"yNames",n.yNames)),r&&(this.setValueIfExists(e,"fills",r.colors),this.setValueIfExists(e,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(e,"strokes",o.colors),this.setValueIfExists(e,"strokeOpacity",o.opacity),this.setValueIfExists(e,"strokeWidth",o.width)),a&&this.initHighlightStyle(e.highlightStyle,a),s&&this.initMarker(e.marker,s),h&&(this.setValueIfExists(e,"tooltipEnabled",h.enabled),this.setValueIfExists(e,"tooltipRenderer",h.renderer)),this.setTransformedValueIfExists(e,"shadow",(function(e){return t.createDropShadow(e)}),i.shadow),e},t.initPieSeries=function(e,i){t.initSeries(e,i),this.setTransformedValueIfExists(e,"title",(function(e){return t.createPieTitle(e)}),i.title),this.setValueIfExists(e,"rotation",i.rotation),this.setValueIfExists(e,"outerRadiusOffset",i.outerRadiusOffset),this.setValueIfExists(e,"innerRadiusOffset",i.innerRadiusOffset);var n=i.field,r=i.fill,o=i.stroke,a=i.highlightStyle,s=i.callout,h=i.label,u=i.tooltip;return n&&(this.setValueIfExists(e,"angleKey",n.angleKey),this.setValueIfExists(e,"angleName",n.angleName),this.setValueIfExists(e,"radiusKey",n.radiusKey),this.setValueIfExists(e,"radiusName",n.radiusName),this.setValueIfExists(e,"labelKey",n.labelKey),this.setValueIfExists(e,"labelName",n.labelName)),r&&(this.setValueIfExists(e,"fills",r.colors),this.setValueIfExists(e,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(e,"strokes",o.colors),this.setValueIfExists(e,"strokeOpacity",o.opacity),this.setValueIfExists(e,"strokeWidth",o.width)),a&&this.initHighlightStyle(e.highlightStyle,a),s&&(this.setValueIfExists(e.callout,"colors",s.colors),this.setValueIfExists(e.callout,"strokeWidth",s.strokeWidth),this.setValueIfExists(e.callout,"length",s.length)),h&&(t.initLabelOptions(e.label,h),this.setValueIfExists(e.label,"enabled",h.enabled),this.setValueIfExists(e.label,"minAngle",h.minRequiredAngle),this.setValueIfExists(e.label,"offset",h.offset)),u&&(this.setValueIfExists(e,"tooltipEnabled",u.enabled),this.setValueIfExists(e,"tooltipRenderer",u.renderer)),this.setTransformedValueIfExists(e,"shadow",(function(e){return t.createDropShadow(e)}),i.shadow),e},t.initHistogramSeries=function(e,i){t.initSeries(e,i);var n=i.field,r=i.fill,o=i.stroke,a=i.highlightStyle,s=i.tooltip,h=i.binCount;return this.setValueIfExists(e,"binCount",h),n&&this.setValueIfExists(e,"xKey",n.xKey),r&&(this.setValueIfExists(e,"fill",r.color),this.setValueIfExists(e,"fillOpacity",r.opacity)),o&&(this.setValueIfExists(e,"stroke",o.color),this.setValueIfExists(e,"strokeOpacity",o.opacity),this.setValueIfExists(e,"strokeWidth",o.width)),a&&this.initHighlightStyle(e.highlightStyle,a),s&&(this.setValueIfExists(e,"tooltipEnabled",s.enabled),this.setValueIfExists(e,"tooltipRenderer",s.renderer)),e},t.getMarkerByName=function(t){return this.markerShapes.get(t)||St},t.initLegend=function(e,i){this.setValueIfExists(e,"enabled",i.enabled),this.setValueIfExists(e,"position",i.position);var n=i.item;if(n){var r=n.label,o=n.marker;r&&(this.setValueIfExists(e,"fontFamily",r.fontFamily),this.setValueIfExists(e,"fontSize",r.fontSize),this.setValueIfExists(e,"fontStyle",r.fontStyle),this.setValueIfExists(e,"fontWeight",r.fontWeight),this.setValueIfExists(e,"color",r.color)),o&&(this.setValueIfExists(e,"markerShape",t.getMarkerByName(o.shape)),this.setValueIfExists(e,"strokeWidth",o.strokeWidth),this.setValueIfExists(e,"markerSize",o.size),this.setValueIfExists(e,"itemSpacing",o.padding)),this.setValueIfExists(e,"layoutHorizontalSpacing",n.paddingX),this.setValueIfExists(e,"layoutVerticalSpacing",n.paddingY)}},t.initNavigator=function(t,e){this.setValueIfExists(t,"enabled",e.enabled),this.setValueIfExists(t,"height",e.height),this.setValueIfExists(t,"min",e.min),this.setValueIfExists(t,"max",e.max),this.initNavigatorMask(t.mask,e.mask),this.initNavigatorHandle(t.minHandle,e.minHandle),this.initNavigatorHandle(t.maxHandle,e.maxHandle)},t.initNavigatorMask=function(t,e){e&&(this.setValueIfExists(t,"fill",e.fill),this.setValueIfExists(t,"stroke",e.stroke),this.setValueIfExists(t,"strokeWidth",e.strokeWidth),this.setValueIfExists(t,"fillOpacity",e.fillOpacity))},t.initNavigatorHandle=function(t,e){e&&(this.setValueIfExists(t,"fill",e.fill),this.setValueIfExists(t,"stroke",e.stroke),this.setValueIfExists(t,"strokeWidth",e.strokeWidth),this.setValueIfExists(t,"width",e.width),this.setValueIfExists(t,"height",e.height),this.setValueIfExists(t,"gripLineGap",e.gripLineGap),this.setValueIfExists(t,"gripLineLength",e.gripLineLength))},t.initMarker=function(e,i){e.shape=t.getMarkerByName(i.shape),this.setValueIfExists(e,"enabled",i.enabled),this.setValueIfExists(e,"size",i.size),this.setValueIfExists(e,"minSize",i.minSize),this.setValueIfExists(e,"fill",i.fill),this.setValueIfExists(e,"stroke",i.stroke),this.setValueIfExists(e,"strokeWidth",i.strokeWidth)},t.initHighlightStyle=function(t,e){this.setValueIfExists(t,"fill",e.fill),this.setValueIfExists(t,"stroke",e.stroke)},t.setDefaultFontOptions=function(t,e,i,n){void 0===e&&(e=16),void 0===i&&(i="bold"),void 0===n&&(n="Verdana, sans-serif"),void 0===t.fontSize&&(t.fontSize=e),void 0===t.fontWeight&&(t.fontWeight=i),void 0===t.fontFamily&&(t.fontFamily=n)},t.createTitle=function(e){return void 0===(e=Object.create(e)).text&&(e.text=""),this.setDefaultFontOptions(e),t.createCaption(e)},t.createSubtitle=function(e){return void 0===(e=Object.create(e)).text&&(e.text=""),this.setDefaultFontOptions(e,12),t.createCaption(e)},t.createPieTitle=function(e){return e=Object.create(e),this.setDefaultFontOptions(e,12),t.createCaption(e)},t.createCaption=function(t){var e=new b;return this.setValueIfExists(e,"enabled",t.enabled),this.setValueIfExists(e,"text",t.text),this.setValueIfExists(e,"fontStyle",t.fontStyle),this.setValueIfExists(e,"fontWeight",t.fontWeight),this.setValueIfExists(e,"fontSize",t.fontSize),this.setValueIfExists(e,"fontFamily",t.fontFamily),this.setValueIfExists(e,"color",t.color),e},t.initAxis=function(e,i){this.setTransformedValueIfExists(e,"title",(function(e){return t.createTitle(e)}),i.title),this.setValueIfExists(e,"gridStyle",i.gridStyle);var n=i.line,r=i.tick,o=i.label;n&&(this.setValueIfExists(e.line,"width",n.width),this.setValueIfExists(e.line,"color",n.color)),r&&(this.setValueIfExists(e.tick,"width",r.width),this.setValueIfExists(e.tick,"size",r.size),this.setValueIfExists(e.tick,"color",r.color)),o&&(this.setValueIfExists(e.label,"fontStyle",o.fontStyle),this.setValueIfExists(e.label,"fontWeight",o.fontWeight),this.setValueIfExists(e.label,"fontSize",o.fontSize),this.setValueIfExists(e.label,"fontFamily",o.fontFamily),this.setValueIfExists(e.label,"color",o.color),this.setValueIfExists(e.label,"padding",o.padding),this.setValueIfExists(e.label,"rotation",o.rotation),this.setValueIfExists(e.label,"format",o.format),this.setValueIfExists(e.label,"formatter",o.formatter))},t.createNumberAxis=function(t){var e=new zi;return this.initAxis(e,t),e},t.createCategoryAxis=function(t){var e=new et;return this.initAxis(e,t),e},t.createGroupedCategoryAxis=function(t){var e=new vt;return this.initAxis(e,t),e},t.createTimeAxis=function(t){var e=new Mn;return this.initAxis(e,t),e},t.createAxis=function(t,e){var i=this.toAxisClass(t.type||e);if(!i)throw new Error("Unknown axis type");var n=new i;return this.initAxis(n,t),n},t.toAxisClass=function(t){return this.types.get(t)},t.setValueIfExists=function(t,e,i,n){void 0!==i&&(t[e]=n?n(i):i)},t.setTransformedValueIfExists=function(t,e,i,n){void 0!==n&&(t[e]=i(n))},t.markerShapes=function(t){var e=new Map;return t.forEach((function(t){var i=t[0],n=t[1];return e.set(i,n)})),e}([["circle",Et],["cross",Tt],["diamond",Ft],["plus",Bt],["square",St],["triangle",Rt]]),t.createDropShadow=function(t){void 0===t&&(t={});var e=new Li;return e.enabled=null==t.enabled||t.enabled,e.xOffset=t.xOffset||0,e.yOffset=t.yOffset||0,e.blur=t.blur||5,e.color=t.color||"rgba(0, 0, 0, 0.5)",e},t.types=((i=new Map).set("category",et),i.set("number",zi),i.set("time",Mn),i),t}();var En=new Wi((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(t.getTime()+6e4*e)}),(function(t,e){return(e.getTime()-t.getTime())/6e4}),(function(t){return t.getUTCMinutes()}));var An=new Wi((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(t.getTime()+36e5*e)}),(function(t,e){return(e.getTime()-t.getTime())/36e5}),(function(t){return t.getUTCHours()}));var Tn,jn,Fn,In,Nn=new Wi((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Ln=function(){return(Ln=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Bn={background:{meta:{defaults:{visible:!0,fill:"white"}}},padding:{meta:{constructor:e,defaults:{top:20,right:20,bottom:20,left:20}}},title:{meta:{constructor:b,defaults:{enabled:!0,padding:new e(10),text:"Title",fontStyle:void 0,fontWeight:"bold",fontSize:14,fontFamily:"Verdana, sans-serif",color:"rgba(70, 70, 70, 1)"}}},subtitle:{meta:{constructor:b,defaults:{enabled:!0,padding:new e(10),text:"Subtitle",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",color:"rgba(140, 140, 140, 1)"}}},legend:{meta:{constructor:Ut,defaults:{enabled:!0,position:Wt.Right,spacing:20,layoutHorizontalSpacing:16,layoutVerticalSpacing:8,itemSpacing:8,markerShape:void 0,markerSize:15,strokeWidth:1,color:"black",fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif"}}}},zn={container:void 0,data:[],padding:new e(20),title:void 0,subtitle:void 0},Rn={constructorParams:["document"],setAsIs:["container","data","tooltipOffset"]},Kn={defaults:{visibleRange:[0,1],gridStyle:[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}]}},Vn={visible:!0,showInLegend:!0},Wn={fills:ke.fills,strokes:ke.strokes,fillOpacity:1,strokeOpacity:1,xKey:"",xName:"",yKeys:[],yNames:[],grouped:!1,normalizedTo:void 0,strokeWidth:1,shadow:void 0,highlightStyle:{fill:"yellow"}},Hn={shadow:{meta:{constructor:Li,defaults:{enabled:!0,color:"rgba(0, 0, 0, 0.5)",xOffset:0,yOffset:0,blur:5}}}},Yn={enabled:!0,fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",color:"rgba(70, 70, 70, 1)"},Xn={label:{meta:{defaults:Ln({},Yn)}}},Un={line:{meta:{defaults:{width:1,color:"rgba(195, 195, 195, 1)"}}},title:{meta:{constructor:b,defaults:{enabled:!0,padding:new e(10),text:"Axis Title",fontStyle:void 0,fontWeight:"bold",fontSize:12,fontFamily:"Verdana, sans-serif",color:"rgba(70, 70, 70, 1)"}}},label:{meta:{constructor:q,defaults:{fontStyle:void 0,fontWeight:void 0,fontSize:12,fontFamily:"Verdana, sans-serif",padding:5,color:"rgba(87, 87, 87, 1)",formatter:void 0}}},tick:{meta:{constructor:G,defaults:{width:1,size:6,color:"rgba(195, 195, 195, 1)",count:10}}}},Gn=((Tn={})[xe.type]=Ln(Ln({meta:Ln(Ln({constructor:xe},Rn),{defaults:Ln(Ln({},zn),{axes:[{type:et.type,position:"bottom"},{type:zi.type,position:"left"}]})})},Bn),{axes:(jn={},jn[zi.type]=Ln({meta:Ln({constructor:zi,setAsIs:["gridStyle","visibleRange"]},Kn)},Un),jn[et.type]=Ln({meta:Ln({constructor:et,setAsIs:["gridStyle","visibleRange"]},Kn)},Un),jn[Mn.type]=Ln({meta:Ln({constructor:Mn,setAsIs:["gridStyle","visibleRange"]},Kn)},Un),jn),series:(Fn={},Fn[ni.type]={meta:{constructor:ni,defaults:{title:void 0,xKey:"",xName:"",yKey:"",yName:"",stroke:ke.fills[0],strokeWidth:2,fillOpacity:1,strokeOpacity:1,highlightStyle:{fill:"yellow"}}},highlightStyle:{},marker:{}},Fn.column=Ln(Ln({meta:{constructor:Xe,defaults:Ln(Ln({flipXY:!1},Vn),Wn)},highlightStyle:{}},Xn),Hn),Fn.bar=Ln(Ln({meta:{constructor:Xe,defaults:Ln(Ln({flipXY:!0},Vn),Wn)},highlightStyle:{}},Xn),Hn),Fn[bi.type]={meta:{constructor:bi,defaults:Ln(Ln({},Vn),{title:void 0,xKey:"",yKey:"",sizeKey:void 0,labelKey:void 0,xName:"",yName:"",sizeName:"Size",labelName:"Label",fill:ke.fills[0],stroke:ke.strokes[0],strokeWidth:2,fillOpacity:1,strokeOpacity:1,tooltipRenderer:void 0,highlightStyle:{fill:"yellow"}})},highlightStyle:{},marker:{}},Fn[Be.type]=Ln({meta:{constructor:Be,defaults:Ln(Ln({},Vn),{xKey:"",xName:"",yKeys:[],yNames:[],normalizedTo:void 0,fills:ke.fills,strokes:ke.strokes,fillOpacity:1,strokeOpacity:1,strokeWidth:2,shadow:void 0,highlightStyle:{fill:"yellow"}})},highlightStyle:{},marker:{}},Hn),Fn[Si.type]={meta:{constructor:Si,defaults:Ln(Ln({},Vn),{title:void 0,xKey:"",yKey:"",xName:"",yName:"",fill:ke.fills[0],stroke:ke.strokes[0],strokeWidth:1,fillOpacity:1,strokeOpacity:1,aggregation:"sum",tooltipRenderer:void 0,highlightStyle:{fill:"yellow"}})},highlightStyle:{}},Fn),navigator:{meta:{constructor:be,defaults:{enabled:!1,height:30,min:0,max:1}},mask:{meta:{constructor:ge,defaults:{fill:"#999999",stroke:"#999999",strokeWidth:1,fillOpacity:.2}}},minHandle:{meta:{constructor:me,defaults:{fill:"#f2f2f2",stroke:"#999999",strokeWidth:1,width:8,height:16,gripLineGap:2,gripLineLength:8}}},maxHandle:{meta:{constructor:me,defaults:{fill:"#f2f2f2",stroke:"#999999",strokeWidth:1,width:8,height:16,gripLineGap:2,gripLineLength:8}}}}}),Tn[je.type]=Ln(Ln({meta:Ln(Ln({constructor:je},Rn),{defaults:Ln(Ln({},zn),{padding:new e(40)})})},Bn),{series:(In={},In[Fi.type]=Ln({meta:{constructor:Fi,defaults:Ln(Ln({},Vn),{title:void 0,calloutColors:ke.strokes,calloutStrokeWidth:1,calloutLength:10,angleKey:"",angleName:"",radiusKey:void 0,radiusName:void 0,labelKey:void 0,labelName:void 0,fills:ke.fills,strokes:ke.strokes,fillOpacity:1,strokeOpacity:1,rotation:0,outerRadiusOffset:0,innerRadiusOffset:0,strokeWidth:1,shadow:void 0})},highlightStyle:{},title:{meta:{constructor:b,defaults:{enabled:!0,padding:new e(10),text:"Series Title",fontStyle:void 0,fontWeight:"bold",fontSize:14,fontFamily:"Verdana, sans-serif",color:"black"}}},label:{meta:{defaults:Ln(Ln({},Yn),{offset:3,minAngle:20})}},callout:{meta:{defaults:{colors:ke.strokes,length:10,strokeWidth:1}}}},Hn),In)}),Tn),qn={cartesian:["line","area","bar","column"],polar:["pie"]},Jn=function(t){qn[t].forEach((function(e){Gn[e]=Gn[t]}))};for(var Zn in qn)Jn(Zn);Gn.scatter=Gn.histogram=Ln(Ln({},Gn.cartesian),{meta:Ln(Ln({},Gn.cartesian.meta),{defaults:Ln(Ln({},zn),{axes:[{type:"number",position:"bottom"},{type:"number",position:"left"}]})})});var $n=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n},Qn=function(){function t(){}return t.create=function(t,e,i){t=Object.create(t),e&&(t.container=e),i&&(t.data=i);var n=t&&t.autoSize,r=nr(t);return r&&n&&(r.autoSize=!0),r},t.update=function(t,e){var i=e&&e.autoSize;!function t(e,i,n){if(!i||"object"!=typeof i)return;er(i,n),n?i.type&&(n=n+"."+i.type):n=i.type;var r=ir(n);if(r){rr(i,r);var o=r.meta||{},a=o&&o.constructorParams||[],s=["type"].concat(a);for(var h in i)if(s.indexOf(h)<0){var u=i[h],l=n+"."+h;if(o.setAsIs&&o.setAsIs.indexOf(h)>=0)e[h]=u;else{var c=e[h];if(Array.isArray(c)&&Array.isArray(u))if(n in Gn){if("series"===h){for(var f=e,p=u,d=c,y=void 0,g=0;g<p.length;g++){var m=p[g];if(v=d[g])if(er(m,l),v.type===m.type)t(v,m,l);else{var b=nr(m,l);f.removeSeries(v),f.addSeriesAfter(b,y),v=b}else{b=nr(m,l);f.addSeries(b)}y=v}for(;g<d.length;g++){var v;(v=d[g])&&f.removeSeries(v)}}else if("axes"===h){f=e;for(var x=c,_=[],w=[],k=function(e){var i=it(x,(function(t){return t.type===e.type&&t.position===e.position}));if(i)w.push(i),t(i,e,l);else{var n=nr(e,l);n&&_.push(n)}},O=0,P=p=u;O<P.length;O++){m=P[O];k(m)}f.axes=w.concat(_)}}else e[h]=u;else if("object"==typeof c)u?t(c,u,u.type?n:l):h in i&&(e[h]=u);else{var S=or(u)&&nr(u,u.type?n:l);e[h]=S||u}}}}n in Gn&&e.performLayout()}(t,Object.create(e)),t&&i&&(t.autoSize=!0)},t}(),tr={"cartesian.series":"line","line.series":"line","area.series":"area","bar.series":"bar","column.series":"column","scatter.series":"scatter","polar.series":"pie","pie.series":"pie"};function er(t,e){if(e||function(t){if(!t.type){var e=t.series&&t.series[0];if(e&&e.type)t:for(var i in Gn)for(var n in Gn[i].series)if(e.type===n){t.type=i;break t}t.type||(t.type="cartesian")}}(t),!t.type){var i=tr[e];i&&(t.type=i)}}function ir(t){var e=t.split("."),i=Gn;return e.forEach((function(t){i=i[t]})),i}function nr(t,e,i){var n;er(t,e),e?t.type&&(e=e+"."+t.type):e=t.type;var r=ir(e);if(r){rr(t,r);var o=r.meta||{},a=o.constructorParams||[],s=["type","listeners"].concat(a),h=a.map((function(e){return t[e]})).filter((function(t){return void 0!==t}));i=i||new((n=o.constructor).bind.apply(n,$n([void 0],h)));var u=function(n){if(s.indexOf(n)<0){var a=t[n];if(!a||!(n in r)||o.setAsIs&&o.setAsIs.indexOf(n)>=0)i[n]=a;else if(Array.isArray(a)){var h=a.map((function(t){return nr(t,e+"."+n)})).filter((function(t){return!!t}));i[n]=h}else if(r[n]&&i[n])nr(a,e+"."+n,i[n]);else{var u=nr(a,a.type?e:e+"."+n);u&&(i[n]=u)}}};for(var l in t)u(l);var c=t.listeners;if(i&&i.addEventListener&&c)for(var l in c)if(c.hasOwnProperty(l)){var f=c[l];"function"==typeof f&&i.addEventListener(l,f)}return i}}function rr(t,e){var i=e&&e.meta&&e.meta.defaults;if(i)for(var n in i)n in t||(t[n]=i[n])}function or(t){return"object"==typeof t&&!Array.isArray(t)}var ar={millisecond:Hi,second:Yi,minute:Xi,hour:Ui,day:Gi,sunday:Ji,monday:Zi,tuesday:$i,wednesday:Qi,thursday:tn,friday:en,saturday:nn,month:rn,year:on,utcMinute:En,utcHour:An,utcDay:sn,utcMonth:Nn,utcYear:hn};export{Qn as AgChart,Y as Arc,V as ArcType,Be as AreaSeries,v as BandScale,Xe as BarSeries,b as Caption,xe as CartesianChart,et as CategoryAxis,se as Chart,Q as ChartAxis,X as ChartAxisDirection,U as ChartAxisPosition,Dn as ChartBuilder,ue as ClipRect,Li as DropShadow,_ as Group,vt as GroupedCategoryAxis,we as GroupedCategoryChart,Pi as HistogramBin,Si as HistogramSeries,Wt as LegendPosition,P as Line,ni as LineSeries,pi as LinearScale,Ot as Marker,e as Padding,z as Path,Fi as PieSeries,je as PolarChart,wt as Rect,yt as RectSizing,bi as ScatterSeries,xt as Scene,Mi as Sector,u as Shape,ke as borneo,Se as bright,nt as extent,it as find,st as findLargestMinMax,at as findMinMax,rt as finiteExtent,Ce as flat,$ as flipChartAxisDirection,di as linearScale,Oe as material,D as normalizeAngle180,C as normalizeAngle360,M as normalizeAngle360Inclusive,ot as numericExtent,Me as palettes,Pe as pastel,ar as time,A as toDegrees,E as toRadians};