You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
613 KiB
1 lines
613 KiB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2_3=e():t.G2_3=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=369)}([function(t,e,n){var r=n(76),i=r.CommonUtil,a=n(65),o=i.assign({DomUtil:r.DomUtil,MatrixUtil:r.MatrixUtil,PathUtil:r.PathUtil,cloneDeep:a.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:function(t,e){return Math.abs(t-e)<.001},inArray:a.contains,toAllPadding:function(t){var e=0,n=0,r=0,i=0;return o.isNumber(t)||o.isString(t)?e=n=r=i=t:o.isArray(t)?(e=t[0],r=o.isNil(t[1])?t[0]:t[1],i=o.isNil(t[2])?t[0]:t[2],n=o.isNil(t[3])?r:t[3]):o.isObject(t)&&(e=t.top||0,r=t.right||0,i=t.bottom||0,n=t.left||0),[e,r,i,n]}},a,i);o.Array={groupToMap:a.groupToMap,group:a.group,merge:a.merge,values:a.values,getRange:a.getRange,firstValue:a.firstValue,remove:i.remove},t.exports=o},function(t,e,n){var r=n(23),i=n(88),a={};r.merge(a,r,i,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};a.each(e,function(e){a.augment(t,e);var i=e[n];i&&a.merge(r,i)}),t[n]=a.merge(r,t[n])}}}),t.exports=a},function(t,e,n){var r=n(0),i=n(121),a={version:"3.2.8-beta.5",renderer:"canvas",trackable:!0,trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){i[t]=e},setTheme:function(t){var e={};e=r.isObject(t)?t:-1!==r.indexOf(Object.keys(i),t)?i[t]:i.default,r.deepMix(a,e)}};a.setTheme("default"),t.exports=a},function(t,e,n){var r=n(31),i=n(7);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var r=n(1),i=n(205),a=n(91),o=n(46),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},r.extend(s,a),r.augment(s,i,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var i=e.fillOpacity;r.isNil(i)||1===i?t.fill():(t.globalAlpha=i,t.fill(),t.globalAlpha=n)}if(this.hasStroke()){if(this._attrs.lineWidth>0){var a=e.strokeOpacity;r.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!o.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this._attrs.clip;return i?(i.invert(n,this.get("canvas")),!!i.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t}}),t.exports=s},function(t,e,n){var r=n(76);t.exports=r},function(t,e,n){var r=n(23),i=n(137),a=n(138),o=n(139);o.angle=function(t,e){var n=o.dot(t,e)/(o.length(t)*o.length(e));return Math.acos(r.clamp(n,-1,1))},o.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},o.angleTo=function(t,e,n){var r=o.angle(t,e),i=o.direction(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r},o.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},t.exports={mat3:i,vec2:o,vec3:a,transform:function(t,e){return t=r.clone(t),r.each(e,function(e){switch(e[0]){case"t":i.translate(t,t,[e[1],e[2]]);break;case"s":i.scale(t,t,[e[1],e[2]]);break;case"r":i.rotate(t,t,e[1]);break;case"m":i.multiply(t,t,e[1]);break;default:return!1}}),t}}},function(t,e,n){var r=n(12),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){var r=n(309),i=n(351),a={};r.merge(a,r,i,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};a.each(e,function(e){a.augment(t,e);var i=e[n];i&&a.merge(r,i)}),t[n]=a.merge(r,t[n])}}}),t.exports=a},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Number")}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var r=n(30),i=n(3),a=n(31),o=n(10),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._initDefaultCfg(),r(this,e),this.init()}return t.prototype._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},t.prototype.init=function(){},t.prototype.getTicks=function(){var t=this,e=t.ticks,n=[];return i(e,function(e){var r=void 0;r=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(r)}),n},t.prototype.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),t.toString()},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){var t=this.range;return t[t.length-1]},t.prototype.invert=function(t){return t},t.prototype.translate=function(t){return t},t.prototype.scale=function(t){return t},t.prototype.clone=function(){var t=this,e=t.constructor,n={};return i(t,function(e,r){n[r]=t[r]}),new e(n)},t.prototype.change=function(t){return this.ticks=null,r(this,t),this.init(),this},t}();t.exports=s},function(t,e,n){var r=n(256),i=n(16);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Function")}},function(t,e,n){var r=n(117),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){function r(t){var e=void 0;return i.each(t,function(t){if(t)return e=t,!1}),e}var i=n(0),a=["min","max","median","start","end"],o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();e=i.deepMix({},n,e),i.mix(this,e)}return t.prototype.getDefaultCfg=function(){return{zIndex:1,xScales:null,yScales:null,el:null}},t.prototype._getNormalizedValue=function(t,e){var n=void 0;if(-1!==i.indexOf(a,t)){var r=void 0;"start"===t?n=0:"end"===t?n=1:"median"===t?(r=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(r)):(r=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(r))}else n=e.scale(t);return n},t.prototype.parsePoint=function(t,e){var n=this.xScales,a=this.yScales;i.isFunction(e)&&(e=e(n,a));var o=void 0,s=void 0;if(i.isArray(e)&&i.isString(e[0])&&-1!==e[0].indexOf("%"))return this.parsePercentPoint(t,e);if(i.isArray(e))o=this._getNormalizedValue(e[0],r(n)),s=this._getNormalizedValue(e[1],r(a));else for(var u in e){var c=e[u];n[u]&&(o=this._getNormalizedValue(c,n[u])),a[u]&&(s=this._getNormalizedValue(c,a[u]))}return i.isNil(o)||i.isNil(s)?void 0:t.convert({x:o,y:s})},t.prototype.parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,r=parseFloat(e[1])/100,i=t.start,a=t.end,o={x:Math.min(i.x,a.x),y:Math.min(i.y,a.y)};return{x:t.width*n+o.x,y:t.height*r+o.y}},t.prototype.setVisible=function(t){var e=this.el;e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},t.prototype.render=function(){},t.prototype.remove=function(){var t=this.el;t&&t.remove()},t}();t.exports=o},function(t,e,n){var r=n(0),i=n(28),a=r.PathUtil,o={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=a.parsePathString(t),t=n.isPolar&&!1!==e?i.convertPolarPath(n,t):i.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return r.each(t,function(t){n.push(e.convertPoint(t))}),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){r.isArray(t)&&(t=t[0]);var e=this[t]||this[this.defaultShapeType];return e._coord=this._coord,e},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var r=this.defaultShapeType;n=this.getShape(r)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t).draw(e,n);return r&&(r.setSilent("origin",e.origin),r._id=e.yIndex?e._id+e.yIndex:e._id,r.name=this.name),r}};o.registerFactory=function(t,e){var n=r.upperFirst(t),i=r.assign({},u,e);return o[n]=i,i.name=t,i},o.registerShape=function(t,e,n){var i=r.upperFirst(t),a=o[i],u=r.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){t=t||"point";return this[r.upperFirst(t)]},t.exports=o},function(t,e,n){"use strict";var r=n(52);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var i=n(219);n.d(e,"e",function(){return i.a}),n.d(e,"c",function(){return i.b});var a=n(220);n.d(e,"b",function(){return a.a})},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"String")}},function(t,e,n){function r(t){return u.isArray(t)?t:u.isString(t)?t.split("*"):[t]}function i(t){return(u.isString(t)||u.isPlainObject(t))&&(t=[t]),u.each(t,function(e,n){u.isObject(e)||(t[n]={type:e})}),t}var a=n(66),o=n(254),s=n(55),u=n(0),c=n(2),l=n(267),h=n(18),f=n(271),p=n(272),d=n(273),g=["color","shape","size"],y=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r.viewTheme=r.get("viewTheme"),u.assign(r,f,p,d),r.get("container")&&r._initContainer(),r._initOptions(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},e.prototype._initOptions=function(){var t=this.get("adjusts");t&&(t=i(t),this.set("adjusts",t))},e.prototype._createScale=function(t,e){var n=this.get("scales"),r=n[t];return r||(r=this.get("view").createScale(t,e),n[t]=r),r},e.prototype._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},e.prototype._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?u.isFunction(n)?i.callback=n:i.values=n:"color"!==t&&(i.values=r),this._setAttrOptions(t,i)},e.prototype.position=function(t){return this._setAttrOptions("position",{field:t}),this},e.prototype.color=function(t,e){var n=this.viewTheme||c;return this._createAttrOption("color",t,e,n.colors),this},e.prototype.size=function(t,e){var n=this.viewTheme||c;return this._createAttrOption("size",t,e,n.sizes),this},e.prototype.shape=function(t,e){var n=this.viewTheme||c,r=this.get("type"),i=n.shapes[r]||[];return this._createAttrOption("shape",t,e,i),this},e.prototype.opacity=function(t,e){var n=this.viewTheme||c;return this._createAttrOption("opacity",t,e,n.opacities),this},e.prototype.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),u.isObject(t)&&(e=t,t=null);var i=void 0;return t&&(i=r(t)),n.fields=i,n.style=e,this},e.prototype.label=function(t,e,n){var i=this.get("labelCfg");i||(i={},this.set("labelCfg",i));var a=void 0;return t&&(a=r(t)),i.fields=a,u.isFunction(e)?(n||(n={}),n.content=e):u.isObject(e)&&(n=e),i.cfg=n,this},e.prototype.tooltip=function(t,e){var n=this.get("tooltipCfg");if(n||(n={}),!1===t)this.set("tooltipCfg",!1);else{var i=void 0;t&&(i=r(t)),n.fields=i,n.cfg=e}return this.set("tooltipCfg",n),this},e.prototype.animate=function(t){return this.set("animateCfg",t),this},e.prototype.active=function(t,e){return!1===t?this.set("allowActive",!1):u.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},e.prototype.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=i(t)),this.set("adjusts",t)),this},e.prototype.select=function(t,e){return!1===t?this.set("allowSelect",!1):u.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},e.prototype.hasAdjust=function(t){var e=this.get("adjusts");if(!t)return!1;var n=!1;return u.each(e,function(e){if(e.type===t)return n=!0,!1}),n},e.prototype.hasStack=function(){var t=this.get("isStacked");return u.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},e.prototype.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},e.prototype._initContainer=function(){var t=this.get("shapeContainer");if(!t){var e=this.get("container"),n=this.get("view"),r=n&&n.get("_id");t=e.addGroup({viewId:r,visible:this.get("visible")}),this.set("shapeContainer",t)}},e.prototype.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;u.each(e,function(e){t._createScale(e)})}var n=t._processData();t.get("adjusts")&&t._adjust(n),t.set("dataArray",n)},e.prototype._initAttrs=function(){var t=this.get("attrs"),e=this.get("attrOptions"),n=this.get("coord"),i=this.viewTheme||c,o=!1;for(var s in e)if(e.hasOwnProperty(s)){var l=e[s],h=u.upperFirst(s),f=r(l.field);"position"===s&&(l.coord=n,1===f.length&&"theta"===n.type&&(f.unshift("1"),o=!0));for(var p=[],d=0;d<f.length;d++){var g=f[d],y=this._createScale(g);"color"===s&&u.isNil(l.values)&&(y.values.length<=8?l.values=o?i.colors_pie:i.colors:y.values.length<=16?l.values=o?i.colors_pie_16:i.colors_16:l.values=i.colors_24,u.isNil(l.values)&&(l.values=i.colors)),p.push(y)}if("theta"===n.type&&"position"===s&&p.length>1){var v=p[1];v.change({nice:!1,min:0,max:Math.max.apply(null,v.values)})}l.scales=p;var m=new a[h](l);t[s]=m}},e.prototype._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),r=0;r<n.length;r++){var i=n[r],a=this._saveOrigin(i);this._numberic(a),e.push(a)}return e},e.prototype._groupData=function(t){var e=this._getGroupScales().map(function(t){return t.field});return u.Array.group(t,e)},e.prototype._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i={};for(var a in r)i[a]=r[a];i._origin=r,e.push(i)}return e},e.prototype._numberic=function(t){for(var e=this.getAttr("position").scales,n=0;n<t.length;n++)for(var r=t[n],i=0;i<Math.min(2,e.length);i++){var a=e[i];if(a.isCategory){var o=a.field;r[o]=a.translate(r[o])}}},e.prototype._getGroupScales=function(){var t=this.get("groupScales");if(!t){t=[];var e=this.get("attrs");u.each(e,function(e){if(-1!==g.indexOf(e.type)){var n=e.scales;u.each(n,function(e){e.isCategory&&-1===u.indexOf(t,e)&&t.push(e)})}}),this.set("groupScales",t)}return t},e.prototype._updateStackRange=function(t,e,n){for(var r=u.Array.merge(n),i=e.min,a=e.max,o=0;o<r.length;o++){var s=r[o],c=Math.min.apply(null,s[t]),l=Math.max.apply(null,s[t]);c<i&&(i=c),l>a&&(a=l)}(i<e.min||a>e.max)&&e.change({min:i,max:a})},e.prototype._adjust=function(t){var e=this,n=e.get("adjusts"),r=this.viewTheme||c,i=e.getYScale(),a=e.getXScale(),s=a.field,l=i?i.field:null;u.each(n,function(n){var c=u.mix({xField:s,yField:l},n),h=u.upperFirst(n.type);if("Dodge"===h){var f=[];if(a.isCategory||a.isIdentity)f.push("x");else{if(i)throw new Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}c.adjustNames=f,c.dodgeRatio=r.widthRatio.column}else if("Stack"===h){var p=e.get("coord");if(!i){c.height=p.getHeight();var d=e.getDefaultValue("size")||3;c.size=d}!p.isTransposed&&u.isNil(c.reverseOrder)&&(c.reverseOrder=!0)}new o[h](c).processAdjust(t),"Stack"===h&&i&&e._updateStackRange(l,i,t)})},e.prototype.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},e.prototype.paint=function(){var t=this.get("dataArray"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord"));var r=this.get("shapeContainer");this._beforeMapping(t);for(var i=0;i<t.length;i++){var a=t[i],o=i;a=this._mapping(a),e.push(a),this.draw(a,r,n,o)}this.get("labelCfg")&&this._addLabels(u.union.apply(null,e)),this.get("sortable")?this.set("dataArray",e):this._sort(e)},e.prototype._sort=function(t){var e=this.getXScale(),n=e.field;u.each(t,function(t){t.sort(function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])})}),this.set("dataArray",t)},e.prototype._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),r=n.field;u.each(t,function(t){t.sort(function(t,e){return n.translate(t[r])-n.translate(e[r])})})}e.get("generatePoints")&&(u.each(t,function(t){e._generatePoints(t)}),u.each(t,function(e,n){var r=t[n+1];r&&(e[0].nextPoints=r[0].points)}))},e.prototype._addLabels=function(t){var e=this,n=e.get("type"),r=e.get("viewTheme")||c,i=e.get("coord"),a=l.getLabelsClass(i.type,n),o=e.get("container"),s=u.map(e.get("labelCfg").fields,function(t){return e._createScale(t)}),h=o.addGroup(a,{_id:this.get("_id"),labelCfg:u.mix({scales:s},e.get("labelCfg")),coord:i,geom:e,geomType:n,viewTheme:r,visible:e.get("visible")});h.showLabels(t),e.set("labelContainer",h)},e.prototype.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=h.getShapeFactory(e),this.set("shapeFactory",t)}return t},e.prototype._generatePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttr("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this._getAttrValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale(),r=this._normalizeValues(t[e.field],e),i=void 0;return i=n?this._normalizeValues(t[n.field],n):t.y?t.y:.1,{x:r,y:i,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype._normalizeValues=function(t,e){var n=[];if(u.isArray(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype._mapping=function(t){for(var e=this.get("attrs"),n=[],r=0;r<t.length;r++){var i=t[r],a={};a._origin=i._origin,a.points=i.points,a.nextPoints=i.nextPoints;for(var o in e)if(e.hasOwnProperty(o)){var s=e[o],c=s.names,l=this._getAttrValues(s,i);if(c.length>1)for(var h=0;h<l.length;h++){var f=l[h];a[c[h]]=u.isArray(f)&&1===f.length?f[0]:f}else a[c[0]]=1===l.length?l[0]:l}n.push(a)}return n},e.prototype._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0;i<n.length;i++){var a=n[i],o=a.field;"identity"===a.type?r.push(a.value):r.push(e[o])}return t.mapping.apply(t,r)},e.prototype.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;if(n){r=this._getAttrValues(n,e)[0]}return r},e.prototype.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var r=n.getScale(t);"identity"===r.type&&(e=r.value)}return e},e.prototype.draw=function(t,e,n,r){for(var i=0;i<t.length;i++){var a=t[i];this.drawPoint(a,e,n,r+i)}},e.prototype.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map(function(t){return n[t]});return u.each(e,function(t,e){u.isFunction(t)?r[e]=t.apply(null,i):r[e]=t}),r},e.prototype._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)u.each(n,function(n){e+="-"+t[n]});else{var r=this.get("type"),i=this.getXScale(),a=this.getYScale(),o=i.field||"x",s=a.field||"y",c=t[s],l=void 0;l=i.isIdentity?i.value:t[o],e+="interval"===r||"schema"===r?"-"+l:"line"===r||"area"===r||"path"===r?"-"+r:"-"+l+"-"+c;var h=this._getGroupScales();u.isEmpty(h)||u.each(h,function(n){var r=n.field;"identity"!==n.type&&(e+="-"+t[r])})}return e},e.prototype.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t._origin)),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t._origin)),e},e.prototype.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},e.prototype.drawPoint=function(t,e,n,r){var i=t.shape,a=this.getDrawCfg(t),o=n.drawShape(i,a,e);this.appendShapeInfo(o,r)},e.prototype.getAttr=function(t){return this.get("attrs")[t]},e.prototype.getXScale=function(){return this.getAttr("position").scales[0]},e.prototype.getYScale=function(){return this.getAttr("position").scales[1]},e.prototype.getShapes=function(){var t=[],e=this.get("shapeContainer").get("children");return u.each(e,function(e){e.get("origin")&&t.push(e)}),t},e.prototype.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return u.each(t,function(t){-1!==g.indexOf(t.type)&&e.push(t)}),e},e.prototype.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return u.each(g,function(n){var r=e[n];r&&r.field&&u.isString(r.field)&&(t=t.concat(r.field.split("*")))}),u.uniq(t)},e.prototype.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var r=this.get("labelContainer");if(r&&r.set("visible",t),!e&&n){n.get("canvas").draw()}},e.prototype.reset=function(){this.set("attrOptions",{}),this.clearInner()},e.prototype.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},e.prototype.clear=function(){this.clearInner(),this.set("scales",{})},e.prototype.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},e.prototype.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},e.prototype.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},e}(s);t.exports=y},function(t,e,n){var r=n(10);t.exports=function(t){return r(t)?"":t.toString()}},function(t,e,n){var r=n(65);t.exports={isFunction:r.isFunction,isObject:r.isObject,isBoolean:r.isBoolean,isNil:r.isNil,isString:r.isString,isArray:r.isArray,isNumber:r.isNumber,isEmpty:r.isEmpty,uniqueId:r.uniqueId,clone:r.clone,deepMix:r.deepMix,assign:r.mix,merge:r.deepMix,upperFirst:r.upperFirst,each:r.each,isEqual:r.isEqual,toArray:r.toArray,extend:r.extend,augment:r.augment,remove:r.arrayUtil.pull,isNumberEqual:r.isNumberEqual,toRadian:r.toRadian,toDegree:r.toDegree,mod:r.mod,clamp:r.clamp}},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function i(t,e){var n=e-t;return n?r(t,n):Object(a.a)(isNaN(t)?e:t)}e.c=function(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?i:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(a.a)(isNaN(e)?n:e)}},e.a=i;var a=n(110)},function(t,e,n){function r(t,e){return i(e)?e:t.invert(t.scale(e))}var i=n(59),a=n(56),o=n(248),s=n(58),u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null,o(this,e)}return t.prototype._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear){return n[t.translate(e)%n.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=n*t-r,a=e[r];return a+((r===n?a:e[r+1])-a)*i},t.prototype.callback=function(t){var e=this.scales[0];return"identity"===e.type?e.value:this._getAttrValue(e,t)},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i++)r.push(e[i]);return r},t.prototype.getFields=function(){var t=this.scales,e=[];return s(t,function(t){e.push(t.field)}),e},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.mapping=function(){for(var t=this.scales,e=this.callback,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r;if(e){for(var o=0,s=r.length;o<s;o++)r[o]=this._toOriginParam(r[o],t[o]);a=e.apply(this,r)}return a=[].concat(a)},t.prototype._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var i=0,o=t.length;i<o;i++)n.push(r(e,t[i]))}else n=r(e,t);return n},t}();t.exports=u},function(t,e,n){var r=n(60),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._initDefaultCfg(),r(this,e)}return t.prototype._initDefaultCfg=function(){this.adjustNames=["x","y"]},t.prototype.processAdjust=function(){},t}();t.exports=i},function(t,e,n){function r(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function i(t,e){for(var n=t.length,r=[t[0]],i=1;i<n;i+=2){var a=e.convertPoint({x:t[i],y:t[i+1]});r.push(a.x,a.y)}return r}var a=n(0),o=n(269),s={getLinePath:function(t,e){return function(t,e){if(!t.length)return[];for(var n=[],r=0,i=t.length;r<i;r++){var a=t[r];0===r?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}return e&&n.push(["Z"]),n}(t,e)},getSplinePath:function(t,e,n){var r=[],i=t[0],u=null;if(t.length<=2)return s.getLinePath(t,e);a.each(t,function(t){u&&u.x===t.x&&u.y===t.y||(r.push(t.x),r.push(t.y),u=t)}),n=n||[[0,0],[1,1]];var c=o.catmullRom2bezier(r,e,n);return c.unshift(["M",i.x,i.y]),c},getPointRadius:function(t,e){return r(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(t,e){var n=[];return a.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(i(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(t,e){var n=[],o=void 0,s=void 0,u=void 0,c=void 0;return a.each(e,function(a,l){switch(a[0].toLowerCase()){case"m":case"c":case"q":n.push(i(a,t));break;case"l":o=e[l-1],s=a,u=t.isTransposed,(c=u?o[o.length-2]===s[1]:o[o.length-1]===s[2])?n=n.concat(function(t,e,n){var i=n.isTransposed,a=n.startAngle,o=n.endAngle,s={x:t[1],y:t[2]},u={x:e[1],y:e[2]},c=[],l=i?"y":"x",h=Math.abs(u[l]-s[l])*(o-a),f=u[l]>=s[l]?1:0,p=h>Math.PI?1:0,d=n.convertPoint(u),g=r(n,d);if(g>=.5)if(h===2*Math.PI){var y={x:(u.x+s.x)/2,y:(u.y+s.y)/2},v=n.convertPoint(y);c.push(["A",g,g,0,p,f,v.x,v.y]),c.push(["A",g,g,0,p,f,d.x,d.y])}else c.push(["A",g,g,0,p,f,d.x,d.y]);return c}(o,s,t)):n.push(i(a,t));break;case"z":default:n.push(a)}}),function(t){a.each(t,function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}})}(n),n}};t.exports=s},function(t,e,n){var r=n(8),i=n(450),a=n(354),o=n(334),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},r.extend(s,a),r.augment(s,i,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var i=e.fillOpacity;r.isNil(i)||1===i?t.fill():(t.globalAlpha=i,t.fill(),t.globalAlpha=n)}if(this.hasStroke()){if(this._attrs.lineWidth>0){var a=e.strokeOpacity;r.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!o.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this._attrs.clip;return i?(i.invert(n,this.get("canvas")),!!i.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t}}),t.exports=s},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)};t.exports=function(t){var e=void 0===t?"undefined":r(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(10),a=n(3),o=n(13),s=n(143),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);this.type="linear",this.isLinear=!0,this.nice=!1,this.min=null,this.minLimit=null,this.max=null,this.maxLimit=null,this.tickCount=null,this.tickInterval=null,this.minTickInterval=null,this.snapArray=null},e.prototype.init=function(){if(this.ticks){var t=this.ticks,e=this.translate(t[0]),n=this.translate(t[t.length-1]);(i(this.min)||this.min>e)&&(this.min=e),(i(this.max)||this.max<n)&&(this.max=n)}else this.min=this.translate(this.min),this.max=this.translate(this.max),this.initTicks()},e.prototype.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,a=this.tickInterval,o=this.minTickInterval,u=this.snapArray;if(1===i)throw new Error("linear scale'tickCount should not be 1");if(e<t)throw new Error("max: "+e+" should not be less than min: "+t);return s({min:t,max:e,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:a,minTickInterval:o,snapArray:u}).ticks},e.prototype.initTicks=function(){var t=this,e=t.calculateTicks();if(t.nice)t.ticks=e,t.min=e[0],t.max=e[e.length-1];else{var n=[];a(e,function(e){e>=t.min&&e<=t.max&&n.push(e)}),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},e.prototype.scale=function(t){if(i(t))return NaN;var e=this.max,n=this.min;if(e===n)return 0;var r=(t-n)/(e-n),a=this.rangeMin();return a+r*(this.rangeMax()-a)},e.prototype.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(o);o.Linear=u,t.exports=u},function(t,e,n){var r=n(43),i=n(12);t.exports=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=n(6).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.dot(c,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,r)-a,maxX:s+a,maxY:Math.max(e,r)+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function i(t,e,n,r){var i=void 0,a=void 0;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function a(t,e,n,r){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=s.mod(e,2*Math.PI),n=s.mod(n,2*Math.PI)+a,t=s.mod(t,2*Math.PI),r?e>=n?t>n&&t<e?t:i(t,n,e,!0):t<e||t>n?t:i(t,e,n):e<=n?e<t&&t<n?t:i(t,e,n,!0):t>e||t<n?t:i(t,n,e)}function o(t,e,n,r,i,o,s,c,l){var h=[s,c],f=[t,e],p=u.subtract([],h,f),d=u.angleTo([1,0],p);d=a(d,r,i,o);var g=[n*Math.cos(d)+t,n*Math.sin(d)+e];l&&(l.x=g[0],l.y=g[1]);return u.distance(g,h)}var s=n(1),u=n(6).vec2;t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,box:function(t,e,n,i,o,u){var c=Math.PI/2,l=Math.PI,h=3*Math.PI/2,f=[],p=a(0,i,o,u);0===p&&f.push(r(t,e,n,0)),(p=a(c,i,o,u))===c&&f.push(r(t,e,n,c)),(p=a(l,i,o,u))===l&&f.push(r(t,e,n,l)),(p=a(h,i,o,u))===h&&f.push(r(t,e,n,h)),f.push(r(t,e,n,i)),f.push(r(t,e,n,o));var d=1/0,g=-1/0,y=1/0,v=-1/0;return s.each(f,function(t){d>t.x&&(d=t.x),g<t.x&&(g=t.x),y>t.y&&(y=t.y),v<t.y&&(v=t.y)}),{minX:d,minY:y,maxX:g,maxY:v}}}},function(t,e,n){function r(t,e,n,r,i,a,o){var s=void 0,u=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0;if(!e.fill){var b=e.arrowLength||p,w=e.arrowAngle?e.arrowAngle*c/180:d;x=f(r-a,n-i),v=Math.abs(e.lineWidth*h(x))/2,m=Math.abs(e.lineWidth*l(x))/2,o&&(v=-v,m=-m),s=i+b*h(x+w/2),u=a+b*l(x+w/2),g=i+b*h(x-w/2),y=a+b*l(x-w/2),t.beginPath(),t.moveTo(s-v,u-m),t.lineTo(i-v,a-m),t.lineTo(g-v,y-m),t.moveTo(i-v,a-m),t.lineTo(i+v,a+m),t.moveTo(i,a),t.stroke()}}function i(t,e,n,r,i,a,o){var c=o?e.startArrow:e.endArrow,l=c.d,h=0,f=i-n,p=a-r,d=Math.atan(f/p);0===p&&f<0?h=Math.PI:f>0&&p>0?h=Math.PI/2-d:f<0&&p<0?h=-Math.PI/2-d:f>=0&&p<0?h=-d-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-d);var g=function(t){var e=[],n=s.parsePath(t.path),r=void 0;if(!Array.isArray(n)||0===n.length||"M"!==n[0][0]&&"m"!==n[0][0])return!1;for(var i=n.length,a=0;a<n.length;a++){var o=n[a];r=new u(o,r,a===i-1),e.push(r)}return e}(c);if(g){l&&(o?(i+=Math.sin(Math.abs(d))*l,a=a+Math.cos(Math.abs(d))*l-.5*t.lineWidth):(i-=Math.sin(Math.abs(d))*l,a=a-Math.cos(Math.abs(d))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(i,a),t.rotate(h);for(var y=0;y<g.length;y++)g[y].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":a(t)},s=n(24),u=n(37),c=Math.PI,l=Math.sin,h=Math.cos,f=Math.atan2,p=10,d=c/3;t.exports={addStartArrow:function(t,e,n,a,s,u){"object"===o(e.startArrow)?i(t,e,n,a,s,u,!0):e.startArrow&&r(t,e,n,a,s,u,!0)},addEndArrow:function(t,e,n,a,s,u){"object"===o(e.endArrow)?i(t,e,n,a,s,u,!1):e.endArrow&&r(t,e,n,a,s,u,!1)}}},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function i(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(function(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))}(t,e))}var s=n(1),u=n(46),c=n(47),l=n(92),h=n(93),f=n(6).vec3,p=n(6).mat3,d=["m","l","c","a","q","h","v","t","s","z"],g=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};s.augment(g,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a=d.indexOf(n)>=0,u=a?n.toUpperCase():n,c=t,l=void 0,h=void 0,f=void 0,p=void 0,g=e.endPoint,y=c[1],v=c[2];switch(u){default:break;case"M":p=a?r(y,v,g):{x:y,y:v},this.command="M",this.params=[g,p],this.subStart=p,this.endPoint=p;break;case"L":p=a?r(y,v,g):{x:y,y:v},this.command="L",this.params=[g,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-g.x,p.y-g.y]},this.startTangent=function(){return[g.x-p.x,g.y-p.y]};break;case"H":p=a?r(y,0,g):{x:y,y:g.y},this.command="L",this.params=[g,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-g.x,p.y-g.y]},this.startTangent=function(){return[g.x-p.x,g.y-p.y]};break;case"V":p=a?r(0,y,g):{x:g.x,y:y},this.command="L",this.params=[g,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-g.x,p.y-g.y]},this.startTangent=function(){return[g.x-p.x,g.y-p.y]};break;case"Q":a?(l=r(y,v,g),h=r(c[3],c[4],g)):(l={x:y,y:v},h={x:c[3],y:c[4]}),this.command="Q",this.params=[g,l,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-l.x,h.y-l.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]};break;case"T":h=a?r(y,v,g):{x:y,y:v},"Q"===e.command?(l=i(e.params[1],g),this.command="Q",this.params=[g,l,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-l.x,h.y-l.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]}):(this.command="TL",this.params=[g,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-g.x,h.y-g.y]},this.startTangent=function(){return[g.x-h.x,g.y-h.y]});break;case"C":a?(l=r(y,v,g),h=r(c[3],c[4],g),f=r(c[5],c[6],g)):(l={x:y,y:v},h={x:c[3],y:c[4]},f={x:c[5],y:c[6]}),this.command="C",this.params=[g,l,h,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-h.x,f.y-h.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]};break;case"S":a?(h=r(y,v,g),f=r(c[3],c[4],g)):(h={x:y,y:v},f={x:c[3],y:c[4]}),"C"===e.command?(l=i(e.params[2],g),this.command="C",this.params=[g,l,h,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-h.x,f.y-h.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]}):(this.command="SQ",this.params=[g,h,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-h.x,f.y-h.y]},this.startTangent=function(){return[g.x-h.x,g.y-h.y]});break;case"A":var m=y,x=v,b=c[3],w=c[4],_=c[5];p=a?r(c[6],c[7],g):{x:c[6],y:c[7]},this.command="A";var S=function(t,e,n,r,i,a,u){var c=s.mod(s.toRadian(u),2*Math.PI),l=t.x,h=t.y,f=e.x,p=e.y,d=Math.cos(c)*(l-f)/2+Math.sin(c)*(h-p)/2,g=-1*Math.sin(c)*(l-f)/2+Math.cos(c)*(h-p)/2,y=d*d/(i*i)+g*g/(a*a);y>1&&(i*=Math.sqrt(y),a*=Math.sqrt(y));var v=i*i*(g*g)+a*a*(d*d),m=Math.sqrt((i*i*(a*a)-v)/v);n===r&&(m*=-1),isNaN(m)&&(m=0);var x=m*i*g/a,b=m*-a*d/i,w=(l+f)/2+Math.cos(c)*x-Math.sin(c)*b,_=(h+p)/2+Math.sin(c)*x+Math.cos(c)*b,S=o([1,0],[(d-x)/i,(g-b)/a]),M=o([(d-x)/i,(g-b)/a],[(-1*d-x)/i,(-1*g-b)/a]);return 0===r&&M>0&&(M-=2*Math.PI),1===r&&M<0&&(M+=2*Math.PI),[t,w,_,i,a,S,M,c,r]}(g,p,w,_,m,x,b);this.params=S;var M=e.subStart;this.subStart=M,this.endPoint=p;var A=S[5]%(2*Math.PI);s.isNumberEqual(A,2*Math.PI)&&(A=0);var C=S[6]%(2*Math.PI);s.isNumberEqual(C,2*Math.PI)&&(C=0);var P=.001;this.startTangent=function(){0===_&&(P*=-1);var t=S[3]*Math.cos(A-P)+S[1],e=S[4]*Math.sin(A-P)+S[2];return[t-M.x,e-M.y]},this.endTangent=function(){var t=S[6];t-2*Math.PI<1e-4&&(t=0);var e=S[3]*Math.cos(A+t+P)+S[1],n=S[4]*Math.sin(A+t-P)+S[2];return[g.x-e,g.y-n]};break;case"Z":this.command="Z",this.params=[g,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this.command,i=this.params,a=this.box;if(a&&!u.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return u.line(i[0].x,i[0].y,i[1].x,i[1].y,n,t,e);case"SQ":case"Q":return u.quadraticline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,n,t,e);case"C":return u.cubicline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y,n,t,e);case"A":var o=i,s=o[1],c=o[2],l=o[3],h=o[4],d=o[5],g=o[6],y=o[7],v=o[8],m=l>h?l:h,x=l>h?1:l/h,b=l>h?h/l:1;o=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return p.translate(w,w,[-s,-c]),p.rotate(w,w,-y),p.scale(w,w,[1/x,1/b]),f.transformMat3(o,o,w),u.arcline(0,0,m,d,d+g,1-v,n,o[0],o[1])}return!1},draw:function(t){var e=this.command,n=this.params,r=void 0,i=void 0,a=void 0;switch(e){default:break;case"M":t.moveTo(n[1].x,n[1].y);break;case"TL":case"L":t.lineTo(n[1].x,n[1].y);break;case"SQ":case"Q":r=n[1],i=n[2],t.quadraticCurveTo(r.x,r.y,i.x,i.y);break;case"C":r=n[1],i=n[2],a=n[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x,a.y);break;case"A":var o=n,s=o[1],u=o[2],c=o[3],l=o[4],h=o[5],f=o[6],p=o[7],d=o[8],g=c>l?c:l,y=c>l?1:c/l,v=c>l?l/c:1;t.translate(s,u),t.rotate(p),t.scale(y,v),t.arc(0,0,g,h,h+f,1-d),t.scale(1/y,1/v),t.rotate(-p),t.translate(-s,-u);break;case"Z":t.closePath()}},getBBox:function(t){var e=t/2,n=this.params,r=void 0,i=void 0,a=void 0,o=void 0;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(n[0].x,n[1].x)-e,maxX:Math.max(n[0].x,n[1].x)+e,minY:Math.min(n[0].y,n[1].y)-e,maxY:Math.max(n[0].y,n[1].y)+e};break;case"SQ":case"Q":for(a=0,o=(i=l.extrema(n[0].x,n[1].x,n[2].x)).length;a<o;a++)i[a]=l.at(n[0].x,n[1].x,n[2].x,i[a]);for(i.push(n[0].x,n[2].x),a=0,o=(r=l.extrema(n[0].y,n[1].y,n[2].y)).length;a<o;a++)r[a]=l.at(n[0].y,n[1].y,n[2].y,r);r.push(n[0].y,n[2].y),this.box={minX:Math.min.apply(Math,i)-e,maxX:Math.max.apply(Math,i)+e,minY:Math.min.apply(Math,r)-e,maxY:Math.max.apply(Math,r)+e};break;case"C":for(a=0,o=(i=c.extrema(n[0].x,n[1].x,n[2].x,n[3].x)).length;a<o;a++)i[a]=c.at(n[0].x,n[1].x,n[2].x,n[3].x,i[a]);for(a=0,o=(r=c.extrema(n[0].y,n[1].y,n[2].y,n[3].y)).length;a<o;a++)r[a]=c.at(n[0].y,n[1].y,n[2].y,n[3].y,r[a]);i.push(n[0].x,n[3].x),r.push(n[0].y,n[3].y),this.box={minX:Math.min.apply(Math,i)-e,maxX:Math.max.apply(Math,i)+e,minY:Math.min.apply(Math,r)-e,maxY:Math.max.apply(Math,r)+e};break;case"A":var s=n,u=s[1],f=s[2],p=s[3],d=s[4],g=s[5],y=s[6],v=s[7],m=s[8],x=g,b=g+y,w=h.xExtrema(v,p,d),_=1/0,S=-1/0,M=[x,b];for(a=2*-Math.PI;a<=2*Math.PI;a+=Math.PI){var A=w+a;1===m?x<A&&A<b&&M.push(A):b<A&&A<x&&M.push(A)}for(a=0,o=M.length;a<o;a++){var C=h.xAt(v,p,d,u,M[a]);C<_&&(_=C),C>S&&(S=C)}var P=h.yExtrema(v,p,d),k=1/0,T=-1/0,O=[x,b];for(a=2*-Math.PI;a<=2*Math.PI;a+=Math.PI){var I=P+a;1===m?x<I&&I<b&&O.push(I):b<I&&I<x&&O.push(I)}for(a=0,o=O.length;a<o;a++){var E=h.yAt(v,p,d,f,O[a]);E<k&&(k=E),E>T&&(T=E)}this.box={minX:_-e,maxX:S+e,minY:k-e,maxY:T+e}}}}),t.exports=g},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){var r=n(14),i=n(118),a=n(16);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];i(u)||(a(u)||(u=[u]),r(u,function(t){o[t]||(n.push(t),o[t]=!0)}))}return n}},function(t,e,n){var r=n(0),i=r.MatrixUtil,a=i.mat3,o=i.vec3,s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();r.mix(this,n,e),this.init()}return t.prototype.getDefaultCfg=function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}},t.prototype.init=function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)},t.prototype._swapDim=function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.convertDim=function(t,e){var n=this[e],r=n.start;return r+t*(n.end-r)},t.prototype.invertDim=function(t,e){var n=this[e],r=n.start;return(t-r)/(n.end-r)},t.prototype.convertPoint=function(t){return t},t.prototype.invertPoint=function(t){return t},t.prototype.applyMatrix=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=[t,e,n];return o.transformMat3(i,i,r),i},t.prototype.invertMatrix=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=a.invert([],r),s=[t,e,n];return o.transformMat3(s,s,i),s},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return a.translate(e,e,[-n.x,-n.y]),a.rotate(e,e,t),a.translate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return a.translate(n,n,[-r.x,-r.y]),a.scale(n,n,[t,e]),a.translate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return a.translate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t}();t.exports=s},function(t,e,n){var r=n(0),i=n(124).LabelsRenderer,a=n(5).Group,o=n(283),s=n(2),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{textStyle:{},autoRotate:!0,formatter:null},title:{autoRotate:!0,textStyle:{}},autoPaint:!0}},e.prototype._beforeRenderUI=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid"),i=this.get("viewTheme")||s;t&&this.setSilent("title",r.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:i.fontFamily,textAlign:"center"},offset:48},t)),e&&this.setSilent("label",r.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:i.fontFamily},offset:10},e)),n&&this.setSilent("grid",r.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},e.prototype._renderUI=function(){this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),r.isNil(this.get("title"))||this.renderTitle(),this.sort()},e.prototype._parseTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var i=t[n];r.isObject(i)||(t[n]=this.parseTick(i,n,e))}return this.set("ticks",t),t},e.prototype._parseCatTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var i=t[n];r.isObject(i)||(t[n]=this.parseTick(i,n,e))}return this.set("ticks",t),t},e.prototype._addTickItem=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=this.get("tickItems"),a=this.get("subTickItems"),o=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:o.x,y2:o.y};i||(i=[]),a||(a=[]),"sub"===r?a.push(s):i.push(s),this.set("tickItems",i),this.set("subTickItems",a)},e.prototype._renderLine=function(){var t=this.get("line"),e=void 0;if(t){e=this.getLinePath(),t=r.mix({path:e},t);var n=this.addShape("path",{attrs:t});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},e.prototype._processCatTicks=function(){var t=this.get("label"),e=this.get("tickLine"),n=this.get("ticks");n=this._parseTicks(n);for(var r=this._getNormalizedTicks(n),i=0;i<r.length;i+=3){var a=this.getTickPoint(r[i]),o=this.getTickPoint(r[i+1]),s=this.getTickPoint(r[i+2]),u=Math.floor(i/3),c=n[u];e&&(0===u&&this._addTickItem(u,o,e.length),this._addTickItem(u,s,e.length)),t&&this.addLabel(c,a,u)}},e.prototype._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],i=0;i<t.length;i++){var a=t[i],o=a.value,s=a.value-e,u=a.value+e;n.push(o,s,u)}var c=r.Array.getRange(n);return n.map(function(t){return(t-c.min)/(c.max-c.min)})},e.prototype._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),i=t.get("tickLine"),a=t.get("ticks");if(a=t._parseTicks(a),r.each(a,function(n,r){var a=t.getTickPoint(n.value,r);i&&t._addTickItem(r,a,i.length),e&&t.addLabel(n,a,r)}),n){var o=t.get("subTickLine");r.each(a,function(e,r){if(r>0){var s=e.value-a[r-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var c={text:"",value:r?a[r-1].value+u*s:u*s},l=t.getTickPoint(c.value),h=void 0;h=o&&o.length?o.length:parseInt(.6*i.length,10),t._addTickItem(u-1,l,h,"sub")}}})}},e.prototype._addTickLine=function(t,e){var n=r.mix({},e),i=[];r.each(t,function(t){i.push(["M",t.x1,t.y1]),i.push(["L",t.x2,t.y2])}),delete n.length,n.path=i;var a=this.addShape("path",{attrs:n});a.name="axis-ticks",a._id=this.get("_id")+"-ticks",a.set("coord",this.get("coord")),this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},e.prototype._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!r.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!r.isEmpty(e)){var i=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,i)}},e.prototype._renderGrid=function(){var t=this.get("grid");t&&(t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo"),this.set("gridGroup",this.addGroup(o,t)))},e.prototype.paint=function(){var t=this.get("tickLine"),e=!0;t&&t.hasOwnProperty("alignWithLabel")&&(e=t.alignWithLabel),this._renderLine();var n=this.get("type");("cat"===n||"timeCat"===n)&&!1===e?this._processCatTicks():this._processTicks(),this._renderTicks(),this._renderGrid();var r=this.get("label");r&&r.autoRotate&&this.autoRotateLabels()},e.prototype.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},e.prototype.getTextAnchor=function(t){return Math.abs(t[1]/t[0])>=1?"center":t[0]>0?"start":"end"},e.prototype.getMaxLabelWidth=function(t){var e=t.get("children"),n=0;return r.each(e,function(t){var e=t.getBBox().width;n<e&&(n=e)}),n},e.prototype.remove=function(){t.prototype.remove.call(this);var e=this.get("gridGroup");e&&e.remove(),this.removeLabels()},e.prototype.autoRotateLabels=function(){},e.prototype.renderTitle=function(){},e.prototype.getLinePath=function(){},e.prototype.getTickPoint=function(){},e.prototype.getTickEnd=function(){},e.prototype.getSideVector=function(){},e}(a);r.assign(u.prototype,i,{addLabel:function(t,e,n){var i=this.get("labelsGroup"),a={},o=void 0;if(i){var s=this.get("_labelOffset");r.isNil(this.get("label").offset)||(s=this.get("label").offset);var u=this.getSideVector(s,e,n);e={x:e.x+u[0],y:e.y+u[1]},a.text=t.text,a.x=e.x,a.y=e.y,a.textAlign=this.getTextAnchor(u),(o=i.addLabel(a))&&(o.name="axis-label",o._id=this.get("_id")+"-"+t.tickValue,o.set("coord",this.get("coord")),this.get("appendInfo")&&o.setSilent("appendInfo",this.get("appendInfo")))}return o}}),t.exports=u},function(t,e,n){var r=n(309),i=n(137),a=n(138),o=n(139);o.angle=function(t,e){var n=o.dot(t,e)/(o.length(t)*o.length(e));return Math.acos(r.clamp(n,-1,1))},o.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},o.angleTo=function(t,e,n){var r=o.angle(t,e),i=o.direction(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r},o.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},t.exports={mat3:i,vec2:o,vec3:a,transform:function(t,e){return t=r.clone(t),r.each(e,function(e){switch(e[0]){case"t":i.translate(t,t,[e[1],e[2]]);break;case"s":i.scale(t,t,[e[1],e[2]]);break;case"r":i.rotate(t,t,e[1]);break;case"m":i.multiply(t,t,e[1]);break;default:return!1}}),t}}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)};t.exports=function(t){return"object"===(void 0===t?"undefined":r(t))&&null!==t}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)?Array.prototype.slice.call(t):[]}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=r=t},e.toRadian=function(t){return t*i},e.equals=function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))};var n=e.EPSILON=1e-6,r=e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,i=(e.RANDOM=Math.random,Math.PI/180)},function(t,e,n){var r=n(34),i=n(92),a=n(47),o=n(35);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=r.pointDistance(t,e,n,i,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],c=t[a+1][1];if(this.line(o,s,u,c,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,c,l,h){return a.pointDistance(t,e,n,r,i,o,s,u,l,h)<=c/2},quadraticline:function(t,e,n,r,a,o,s,u,c){return i.pointDistance(t,e,n,r,a,o,u,c)<=s/2},arcline:function(t,e,n,r,i,a,s,u,c){return o.pointDistance(t,e,n,r,i,a,u,c)<=s/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},function(t,e,n){function r(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function i(t,e,n,i,a,o,u,c,l,h,f){var p=void 0,d=.005,g=1/0,y=void 0,v=void 0,m=void 0,x=void 0,b=void 0,w=void 0,_=void 0,S=[l,h];for(y=0;y<1;y+=.05)v=[r(t,n,a,u,y),r(e,i,o,c,y)],(m=s.squaredDistance(S,v))<g&&(p=y,g=m);g=1/0;for(var M=0;M<32&&!(d<1e-4);M++)_=p+d,v=[r(t,n,a,u,w=p-d),r(e,i,o,c,w)],m=s.squaredDistance(S,v),w>=0&&m<g?(p=w,g=m):(b=[r(t,n,a,u,_),r(e,i,o,c,_)],x=s.squaredDistance(S,b),_<=1&&x<g?(p=_,g=x):d*=.5);return f&&(f.x=r(t,n,a,u,p),f.y=r(e,i,o,c,p)),Math.sqrt(g)}function a(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}var o=n(1),s=n(6).vec2;t.exports={at:r,derivativeAt:function(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)},projectPoint:function(t,e,n,r,a,o,s,u,c,l){var h={};return i(t,e,n,r,a,o,s,u,c,l,h),h},pointDistance:i,extrema:function(t,e,n,r){var i=3*t-9*e+9*n-3*r,a=6*e-12*n+6*r,s=3*n-3*r,u=[],c=void 0,l=void 0,h=void 0;if(o.isNumberEqual(i,0))o.isNumberEqual(a,0)||(c=-s/a)>=0&&c<=1&&u.push(c);else{var f=a*a-4*i*s;o.isNumberEqual(f,0)?u.push(-a/(2*i)):f>0&&(l=(-a-(h=Math.sqrt(f)))/(2*i),(c=(-a+h)/(2*i))>=0&&c<=1&&u.push(c),l>=0&&l<=1&&u.push(l))}return u},len:function(t,e,n,r,i,s,u,c,l){o.isNil(l)&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,g=0;g<12;g++){var y=h*f[g]+h,v=a(y,t,n,i,u),m=a(y,e,r,s,c),x=v*v+m*m;d+=p[g]*Math.sqrt(x)}return h*d}}},function(t,e,n){var r=n(1),i=n(4),a=n(24),o=n(37),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},_getPath:function(){var t=this._attrs,e=t.x,n=t.y,i=t.radius||t.r,a=t.symbol||"circle";return(r.isFunction(a)?a:s.Symbols[a])(e,n,i)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n=a.parsePath(this._getPath());t.beginPath();var r=void 0;e=[];for(var i=0;i<n.length;i++){var s=n[i];r=new o(s,r,i===n.length-1),e.push(r),r.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){function r(t,e){function n(t,e){if(1===t.length)r.push(t[0]),i.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&r.push(t[0]),o===t.length-2&&i.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];n(a,e)}}var r=[],i=[];return t.length&&n(t,e),{left:r,right:i.reverse()}}function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function a(t,e,n){for(var r=[].concat(t),i=void 0,a=1/(n+1),s=o(e)[0],u=1;u<=n;u++)a*=u,0===(i=Math.floor(t.length*a))?r.unshift([s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]);return r}function o(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":s(t)},c=n(23),l="\t\n\v\f\r \u2028\u2029",h=new RegExp("([a-z])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),f=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+l+"]*,?["+l+"]*","ig"),p=function(t){if(!t)return null;if((void 0===t?"undefined":u(t))===u([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(h,function(t,r,i){var a=[],o=r.toLowerCase();if(i.replace(f,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o="l",r="m"===r?"l":"L"),"o"===o&&1===a.length&&n.push([r,a[0]]),"r"===o)n.push([r].concat(a));else for(;a.length>=e[o]&&(n.push([r].concat(a.splice(0,e[o]))),e[o]););}),n},d=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},g=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},y=function(t){if(!(t=p(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,i=0,a=0,o=0,s=void 0,u=void 0;"M"===t[0][0]&&(i=n=+t[0][1],a=r=+t[0][2],o++,e[0]=["M",n,r]);for(var c,l,h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=o,y=t.length;f<y;f++){if(e.push(c=[]),l=t[f],(s=l[0])!==s.toUpperCase())switch(c[0]=s.toUpperCase(),c[0]){case"A":c[1]=l[1],c[2]=l[2],c[3]=l[3],c[4]=l[4],c[5]=l[5],c[6]=+l[6]+n,c[7]=+l[7]+r;break;case"V":c[1]=+l[1]+r;break;case"H":c[1]=+l[1]+n;break;case"R":for(var v=2,m=(u=[n,r].concat(l.slice(1))).length;v<m;v++)u[v]=+u[v]+n,u[++v]=+u[v]+r;e.pop(),e=e.concat(d(u,h));break;case"O":e.pop(),(u=g(n,r,l[1],l[2])).push(u[0]),e=e.concat(u);break;case"U":e.pop(),e=e.concat(g(n,r,l[1],l[2],l[3])),c=["U"].concat(e[e.length-1].slice(-2));break;case"M":i=+l[1]+n,a=+l[2]+r;break;default:for(var x=1,b=l.length;x<b;x++)c[x]=+l[x]+(x%2?n:r)}else if("R"===s)u=[n,r].concat(l.slice(1)),e.pop(),e=e.concat(d(u,h)),c=["R"].concat(l.slice(-2));else if("O"===s)e.pop(),(u=g(n,r,l[1],l[2])).push(u[0]),e=e.concat(u);else if("U"===s)e.pop(),e=e.concat(g(n,r,l[1],l[2],l[3])),c=["U"].concat(e[e.length-1].slice(-2));else for(var w=0,_=l.length;w<_;w++)c[w]=l[w];if("O"!==(s=s.toUpperCase()))switch(c[0]){case"Z":n=+i,r=+a;break;case"H":n=c[1];break;case"V":r=c[1];break;case"M":i=c[c.length-2],a=c[c.length-1];break;default:n=c[c.length-2],r=c[c.length-1]}}return e},v=function(t,e,n,r){return[t,e,n,r,n,r]},m=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},x=function(t,e){var n=y(t),r=e&&y(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=[],s=[],u="",c="",l=void 0,h=function(t,e,n){var r=void 0,i=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,r,i,a,o,s,u,c,l){r===i&&(r+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],d=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)g=l[0],y=l[1],v=l[2],m=l[3];else{e=(d=x(e,n,-f)).x,n=d.y,u=(d=x(u,c,-f)).x,c=d.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,w=(n-c)/2,_=b*b/(r*r)+w*w/(i*i);_>1&&(r*=_=Math.sqrt(_),i*=_);var S=r*r,M=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((S*M-S*w*w-M*b*b)/(S*w*w+M*b*b)));v=A*r*w/i+(e+u)/2,m=A*-i*b/r+(n+c)/2,g=Math.asin(((n-m)/i).toFixed(9)),y=Math.asin(((c-m)/i).toFixed(9)),g=e<v?Math.PI-g:g,y=u<v?Math.PI-y:y,g<0&&(g=2*Math.PI+g),y<0&&(y=2*Math.PI+y),s&&g>y&&(g-=2*Math.PI),!s&&y>g&&(y-=2*Math.PI)}var C=y-g;if(Math.abs(C)>h){var P=y,k=u,T=c;y=g+h*(s&&y>g?1:-1),p=t(u=v+r*Math.cos(y),c=m+i*Math.sin(y),r,i,a,0,s,k,T,[y,P,v,m])}C=y-g;var O=Math.cos(g),I=Math.sin(g),E=Math.cos(y),L=Math.sin(y),D=Math.tan(C/4),j=4/3*r*D,F=4/3*i*D,R=[e,n],B=[e+j*I,n-F*O],N=[u+j*L,c-F*E],Y=[u,c];if(B[0]=2*R[0]-B[0],B[1]=2*R[1]-B[1],l)return[B,N,Y].concat(p);for(var z=[],X=0,V=(p=[B,N,Y].concat(p).join().split(",")).length;X<V;X++)z[X]=X%2?x(p[X-1],p[X],f).y:x(p[X],p[X+1],f).x;return z}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(m(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(m(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(v(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(v(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(v(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(v(e.x,e.y,e.X,e.Y))}return t},f=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)o[e]="A",r&&(s[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),l=Math.max(n.length,r&&r.length||0)}},p=function(t,e,i,a,o){t&&e&&"M"===t[o][0]&&"M"!==e[o][0]&&(e.splice(o,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=t[o][1],i.y=t[o][2],l=Math.max(n.length,r&&r.length||0))};l=Math.max(n.length,r&&r.length||0);for(var d=0;d<l;d++){n[d]&&(u=n[d][0]),"C"!==u&&(o[d]=u,d&&(c=o[d-1])),n[d]=h(n[d],i,c),"A"!==o[d]&&"C"===u&&(o[d]="C"),f(n,d),r&&(r[d]&&(u=r[d][0]),"C"!==u&&(s[d]=u,d&&(c=s[d-1])),r[d]=h(r[d],a,c),"A"!==s[d]&&"C"===u&&(s[d]="C"),f(r,d)),p(n,r,i,a,d),p(r,n,a,i,d);var g=n[d],x=r&&r[d],b=g.length,w=r&&x.length;i.x=g[b-2],i.y=g[b-1],i.bx=parseFloat(g[b-4])||i.x,i.by=parseFloat(g[b-3])||i.y,a.bx=r&&(parseFloat(x[w-4])||a.x),a.by=r&&(parseFloat(x[w-3])||a.y),a.x=r&&x[w-2],a.y=r&&x[w-1]}return r?[n,r]:n},b=/,?([a-z]),?/gi,w=function(t){return t.join(",").replace(b,"$1")},_=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},S=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=c*l[p]+c,g=_(d,t,n,i,o),y=_(d,e,r,a,s),v=g*g+y*y;f+=h[p]*Math.sqrt(v)}return c*f},M=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var c=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},A=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},C=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=w,a},P=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:C(t,e,n,r),vb:[t,e,n,r].join(" ")}},k=function(t,e,n,r,i,a,o,s){c.isArray(t)||(t=[t,e,n,r,i,a,o,s]);var u=function(t,e,n,r,i,a,o,s){for(var u=[],c=[[],[]],l=void 0,h=void 0,f=void 0,p=void 0,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,f=3*n-3*t):(h=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,f=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&u.push(p)}else{var g=h*h-4*f*l,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*l);v>0&&v<1&&u.push(v);var m=(-h-y)/(2*l);m>0&&m<1&&u.push(m)}}for(var x=u.length,b=x,w=void 0;x--;)w=1-(p=u[x]),c[0][x]=w*w*w*t+3*w*w*p*n+3*w*p*p*i+p*p*p*o,c[1][x]=w*w*w*e+3*w*w*p*r+3*w*p*p*a+p*p*p*s;return c[0][b]=t,c[1][b]=e,c[0][b+1]=o,c[1][b+1]=s,c[0].length=c[1].length=b+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}}.apply(null,t);return P(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},T=function(t,e,n,r,i,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:l*t+3*h*u*n+3*c*u*u*i+p*o,y:l*e+3*h*u*r+3*c*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=P(t),e=P(e),A(e,t.x,t.y)||A(e,t.x2,t.y)||A(e,t.x,t.y2)||A(e,t.x2,t.y2)||A(t,e.x,e.y)||A(t,e.x2,e.y)||A(t,e.x,e.y2)||A(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(k(t),k(e)))return n?0:[];for(var r=~~(S.apply(0,t)/8),i=~~(S.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],c=0;c<r+1;c++){var l=T.apply(0,t.concat(c/r));a.push({x:l.x,y:l.y,t:c/r})}for(var h=0;h<i+1;h++){var f=T.apply(0,e.concat(h/i));o.push({x:f.x,y:f.y,t:h/i})}for(var p=0;p<r;p++)for(var d=0;d<i;d++){var g=a[p],y=a[p+1],v=o[d],m=o[d+1],x=Math.abs(y.x-g.x)<.001?"y":"x",b=Math.abs(m.x-v.x)<.001?"y":"x",w=M(g.x,g.y,y.x,y.y,v.x,v.y,m.x,m.y);if(w){if(s[w.x.toFixed(4)]===w.y.toFixed(4))continue;s[w.x.toFixed(4)]=w.y.toFixed(4);var _=g.t+Math.abs((w[x]-g[x])/(y[x]-g[x]))*(y.t-g.t),C=v.t+Math.abs((w[b]-v[b])/(m[b]-v[b]))*(m.t-v.t);_>=0&&_<=1&&C>=0&&C<=1&&(n?u++:u.push({x:w.x,y:w.y,t1:_,t2:C}))}}return u},I=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,u=0;u<n-1;u++){var c=r(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i},E=function(t,e){if(t.length!==e.length)return!1;var n=!0;return c.each(t,function(t,r){if(t!==e[r])return n=!1,!1}),n};t.exports={parsePathString:p,parsePathArray:w,pathTocurve:x,pathToAbsolute:y,catmullRomToBezier:d,rectPath:C,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(var s=0;s<r;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var c=a.reduce(function(e,r,i){return i===n?e.concat(t[n]):e.concat(I(t[i],t[i+1],r))},[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c},fillPathByDiff:function(t,e){var n=function(t,e){var n=t.length,r=e.length,a=void 0,o=void 0,s=0;if(0===n||0===r)return null;for(var u=[],c=0;c<=n;c++)u[c]=[],u[c][0]={min:c};for(var l=0;l<=r;l++)u[0][l]={min:l};for(var h=1;h<=n;h++){a=t[h-1];for(var f=1;f<=r;f++){o=e[f-1],s=E(a,o)?0:1;var p=u[h-1][f].min+1,d=u[h][f-1].min+1,g=u[h-1][f-1].min+s;u[h][f]=i(p,d,g)}}return u}(t,e),r=t.length,a=e.length,o=[],s=1,u=1;if(n[r][a]!==r){for(var c=1;c<=r;c++){var l=n[c][c].min;u=c;for(var h=s;h<=a;h++)n[c][h].min<l&&(l=n[c][h].min,u=h);s=u,n[c][s].type&&o.push({index:c-1,type:n[c][s].type})}for(var f=o.length-1;f>=0;f--)s=o[f].index,"add"===o[f].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}if((r=t.length)<a)for(var p=0;p<a-r;p++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t},formatPath:function(t,e){if(t.length<=1)return t;for(var n=void 0,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=o(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=a(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=a(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=a(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t},intersection:function(t,e){return function(t,e,n){t=x(t),e=x(e);for(var r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,p=n?0:[],d=0,g=t.length;d<g;d++){var y=t[d];if("M"===y[0])r=s=y[1],i=u=y[2];else{"C"===y[0]?(r=(h=[r,i].concat(y.slice(1)))[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var v=0,m=e.length;v<m;v++){var b=e[v];if("M"===b[0])a=c=b[1],o=l=b[2];else{"C"===b[0]?(a=(f=[a,o].concat(b.slice(1)))[6],o=f[7]):(f=[a,o,a,o,c,l,c,l],a=c,o=l);var w=O(h,f,n);if(n)p+=w;else{for(var _=0,S=w.length;_<S;_++)w[_].segment1=d,w[_].segment2=v,w[_].bez1=h,w[_].bez2=f;p=p.concat(w)}}}}}return p}(t,e)}}},function(t,e,n){"use strict";function r(){return x||(_(i),x=w.now()+b)}function i(){x=0}function a(){this._call=this._time=this._next=null}function o(t,e,n){var r=new a;return r.restart(t,e,n),r}function s(){r(),++d;for(var t,e=h;e;)(t=x-e._time)>=0&&e._call.call(null,t),e=e._next;--d}function u(){x=(m=w.now())+b,d=g=0;try{s()}finally{d=0,function(){var t,e,n=h,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);f=t,l(r)}(),x=0}}function c(){var t=w.now(),e=t-m;e>v&&(b-=e,m=t)}function l(t){if(!d){g&&(g=clearTimeout(g));t-x>24?(t<1/0&&(g=setTimeout(u,t-w.now()-b)),y&&(y=clearInterval(y))):(y||(m=w.now(),y=setInterval(c,v)),d=1,_(u))}}e.b=r,e.a=a,e.c=o,e.d=s;var h,f,p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=0,g=0,y=0,v=1e3,m=0,x=0,b=0,w="object"===("undefined"==typeof performance?"undefined":p(performance))&&performance.now?performance:Date,_="object"===("undefined"==typeof window?"undefined":p(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=o.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||f===this||(f?f._next=this:h=this,f=this),this._call=t,this._time=n,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}}},function(t,e,n){"use strict";var r=n(19),i=n(108),a=n(111),o=n(112),s=n(38),u=n(113),c=n(114),l=n(110),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(t,e){var n,f=void 0===e?"undefined":h(e);return null==e||"boolean"===f?Object(l.a)(e):("number"===f?s.a:"string"===f?(n=Object(r.a)(e))?(e=n,i.a):c.a:e instanceof r.a?i.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(){}function i(t){var e;return t=(t+"").trim().toLowerCase(),(e=b.exec(t))?(e=parseInt(e[1],16),new c(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=w.exec(t))?a(parseInt(e[1],16)):(e=_.exec(t))?new c(e[1],e[2],e[3],1):(e=S.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=M.exec(t))?o(e[1],e[2],e[3],e[4]):(e=A.exec(t))?o(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=C.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=P.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):k.hasOwnProperty(t)?a(k[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function a(t){return new c(t>>16&255,t>>8&255,255&t,1)}function o(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function s(t){return t instanceof r||(t=i(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function u(t,e,n,r){return 1===arguments.length?s(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new f(t,e,n,r)}function h(t,e,n,a){return 1===arguments.length?function(t){if(t instanceof f)return new f(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=i(t)),!t)return new f;if(t instanceof f)return t;var e=(t=t.rgb()).r/255,n=t.g/255,a=t.b/255,o=Math.min(e,n,a),s=Math.max(e,n,a),u=NaN,c=s-o,l=(s+o)/2;return c?(u=e===s?(n-a)/c+6*(n<a):n===s?(a-e)/c+2:(e-n)/c+4,c/=l<.5?s+o:2-s-o,u*=60):c=l>0&&l<1?0:u,new f(u,c,l,t.opacity)}(t):new f(t,e,n,null==a?1:a)}function f(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function p(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return g}),n.d(e,"c",function(){return y}),e.e=i,e.h=s,e.g=u,e.b=c,e.f=h;var d=n(53),g=.7,y=1/g,v="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",b=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,_=new RegExp("^rgb\\("+[v,v,v]+"\\)$"),S=new RegExp("^rgb\\("+[x,x,x]+"\\)$"),M=new RegExp("^rgba\\("+[v,v,v,m]+"\\)$"),A=new RegExp("^rgba\\("+[x,x,x,m]+"\\)$"),C=new RegExp("^hsl\\("+[m,x,x]+"\\)$"),P=new RegExp("^hsla\\("+[m,x,x,m]+"\\)$"),k={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(d.a)(r,i,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(d.a)(c,u,Object(d.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?g:Math.pow(g,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(d.a)(f,h,Object(d.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new f(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?g:Math.pow(g,t),new f(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new c(p(t>=240?t-240:t+120,i,r),p(t,i,r),p(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,u=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,u)}}},function(t,e,n){var r=n(67),i=n(0),a=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this)),a={visible:!0},o=r.getDefaultCfg();return r._attrs=a,i.assign(a,o,n),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this._attrs[t]},e.prototype.set=function(t,e){this._attrs[t]=e},e.prototype.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},e.prototype.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},e.prototype.changeVisible=function(){},e.prototype.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(r);t.exports=a},function(t,e,n){var r=n(57),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var r=n(247),i=n(56);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var r=n(57);t.exports=function(t){return r(t,"String")}},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(381);n.d(e,"create",function(){return r.a});var i=n(313);n.d(e,"creator",function(){return i.a});var a=n(410);n.d(e,"local",function(){return a.a});var o=n(341);n.d(e,"matcher",function(){return o.a});var s=n(411);n.d(e,"mouse",function(){return s.a});var u=n(328);n.d(e,"namespace",function(){return u.a});var c=n(329);n.d(e,"namespaces",function(){return c.a});var l=n(314);n.d(e,"clientPoint",function(){return l.a});var h=n(339);n.d(e,"select",function(){return h.a});var f=n(412);n.d(e,"selectAll",function(){return f.a});var p=n(63);n.d(e,"selection",function(){return p.b});var d=n(330);n.d(e,"selector",function(){return d.a});var g=n(340);n.d(e,"selectorAll",function(){return g.a});var y=n(344);n.d(e,"style",function(){return y.b});var v=n(413);n.d(e,"touch",function(){return v.a});var m=n(414);n.d(e,"touches",function(){return m.a});var x=n(331);n.d(e,"window",function(){return x.a});var b=n(332);n.d(e,"event",function(){return b.c}),n.d(e,"customEvent",function(){return b.a})},function(t,e,n){"use strict";function r(t,e){this._groups=t,this._parents=e}function i(){return new r([[document.documentElement]],j)}n.d(e,"c",function(){return j}),e.a=r;var a=n(382),o=n(383),s=n(384),u=n(385),c=n(342),l=n(387),h=n(388),f=n(389),p=n(390),d=n(391),g=n(392),y=n(393),v=n(394),m=n(395),x=n(396),b=n(397),w=n(344),_=n(398),S=n(399),M=n(400),A=n(401),C=n(402),P=n(403),k=n(404),T=n(405),O=n(406),I=n(407),E=n(408),L=n(332),D=n(409),j=[null];r.prototype=i.prototype={constructor:r,select:a.a,selectAll:o.a,filter:s.a,data:u.a,enter:c.b,exit:l.a,merge:h.a,order:f.a,sort:p.a,call:d.a,nodes:g.a,node:y.a,size:v.a,empty:m.a,each:x.a,attr:b.a,style:w.a,property:_.a,classed:S.a,text:M.a,html:A.a,raise:C.a,lower:P.a,append:k.a,insert:T.a,remove:O.a,clone:I.a,datum:E.a,on:L.b,dispatch:D.a},e.b=i},function(t,e,n){"use strict";function r(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}n.d(e,"c",function(){return c}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return p}),n.d(e,"a",function(){return d}),e.g=function(t,e){var n=r(t,e);if(n.state>u)throw new Error("too late; already scheduled");return n},e.h=function(t,e){var n=r(t,e);if(n.state>l)throw new Error("too late; already started");return n},e.f=r;var i=n(417),a=n(106),o=Object(i.a)("start","end","interrupt"),s=[],u=0,c=1,l=2,h=3,f=4,p=5,d=6;e.e=function(t,e,n,r,i,g){var y=t.__transition;if(y){if(n in y)return}else t.__transition={};!function(t,e,n){function r(p){var g,y,v,m;if(n.state!==c)return o();for(g in u)if((m=u[g]).name===n.name){if(m.state===h)return Object(a.timeout)(r);m.state===f?(m.state=d,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete u[g]):+g<e&&(m.state=d,m.timer.stop(),delete u[g])}if(Object(a.timeout)(function(){n.state===h&&(n.state=f,n.timer.restart(i,n.delay,n.time),i(p))}),n.state=l,n.on.call("start",t,t.__data__,n.index,n.group),n.state===l){for(n.state=h,s=new Array(v=n.tween.length),g=0,y=-1;g<v;++g)(m=n.tween[g].value.call(t,t.__data__,n.index,n.group))&&(s[++y]=m);s.length=y+1}}function i(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(o),n.state=p,1),i=-1,a=s.length;++i<a;)s[i].call(null,r);n.state===p&&(n.on.call("end",t,t.__data__,n.index,n.group),o())}function o(){n.state=d,n.timer.stop(),delete u[e];for(var r in u)return;delete t.__transition}var s,u=t.__transition;u[e]=n,n.timer=Object(a.timer)(function(t){n.state=c,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:o,tween:s,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:u})}},function(t,e,n){var r=n(152),i=n(136),a=n(165),o=n(180),s=n(185),u=n(3),c=n(30),l={arrayUtil:r,eventUtil:i,mathUtil:a,stringUtil:o,typeUtil:s,augment:n(190),clone:n(191),deepMix:n(192),each:u,extend:n(193),filter:n(78),group:n(194),groupBy:n(86),groupToMap:n(85),indexOf:n(195),isEmpty:n(196),isEqual:n(87),isEqualWith:n(197),map:n(198),mix:c,pick:n(199),toArray:n(44),toString:n(22),uniqueId:n(200)};u([r,i,a,o,s],function(t){c(l,t)}),t.exports=l},function(t,e,n){t.exports={Position:n(245),Color:n(249),Shape:n(251),Size:n(252),Opacity:n(253),ColorUtil:n(116)}},function(t,e,n){var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(e){"use strict";function a(){}function o(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function s(t){return function(){return this[t].apply(this,arguments)}}function u(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!==(void 0===t?"undefined":i(t)))&&u(t.listener)}var c=a.prototype,l=e.EventEmitter;c.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp){e={};for(n in r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n])}else e=r[t]||(r[t]=[]);return e},c.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},c.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},c.addListener=function(t,e){if(!u(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),a="object"===(void 0===e?"undefined":i(e));for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],e)&&r[n].push(a?e:{listener:e,once:!1});return this},c.on=s("addListener"),c.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},c.once=s("addOnceListener"),c.defineEvent=function(t){return this.getListeners(t),this},c.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},c.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=o(i[r],e))&&i[r].splice(n,1);return this},c.off=s("removeListener"),c.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},c.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},c.manipulateListeners=function(t,e,n){var r,a,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!==(void 0===e?"undefined":i(e))||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(a=e[r])&&("function"==typeof a?o.call(this,r,a):s.call(this,r,a));return this},c.removeEvent=function(t){var e,n=void 0===t?"undefined":i(t),r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},c.removeAllListeners=s("removeEvent"),c.emitEvent=function(t,e){var n,r,i,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},c.trigger=s("emitEvent"),c.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},c.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},c._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},c._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=l,a},void 0!==(r=function(){return a}.call(e,n,e,t))&&(t.exports=r)}(this||{})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);n.d(e,"interpolate",function(){return r.a});var i=n(111);n.d(e,"interpolateArray",function(){return i.a});var a=n(54);n.d(e,"interpolateBasis",function(){return a.b});var o=n(109);n.d(e,"interpolateBasisClosed",function(){return o.a});var s=n(112);n.d(e,"interpolateDate",function(){return s.a});var u=n(38);n.d(e,"interpolateNumber",function(){return u.a});var c=n(113);n.d(e,"interpolateObject",function(){return c.a});var l=n(221);n.d(e,"interpolateRound",function(){return l.a});var h=n(114);n.d(e,"interpolateString",function(){return h.a});var f=n(222);n.d(e,"interpolateTransformCss",function(){return f.a}),n.d(e,"interpolateTransformSvg",function(){return f.b});var p=n(225);n.d(e,"interpolateZoom",function(){return p.a});var d=n(108);n.d(e,"interpolateRgb",function(){return d.a}),n.d(e,"interpolateRgbBasis",function(){return d.b}),n.d(e,"interpolateRgbBasisClosed",function(){return d.c});var g=n(226);n.d(e,"interpolateHsl",function(){return g.a}),n.d(e,"interpolateHslLong",function(){return g.b});var y=n(227);n.d(e,"interpolateLab",function(){return y.a});var v=n(228);n.d(e,"interpolateHcl",function(){return v.a}),n.d(e,"interpolateHclLong",function(){return v.b});var m=n(229);n.d(e,"interpolateCubehelix",function(){return m.b}),n.d(e,"interpolateCubehelixLong",function(){return m.a});var x=n(230);n.d(e,"quantize",function(){return x.a})},function(t,e,n){var r=n(70),i=n(13);i.Linear=n(32),i.Identity=n(144),i.Cat=n(72),i.Time=n(145),i.TimeCat=n(148),i.Log=n(149),i.Pow=n(150);var a=function(t){if(i.hasOwnProperty(t)){var e=r(t);i[e]=function(e){return new i[t](e)}}};for(var o in i)a(o);var s=["cat","timeCat"];i.isCategory=function(t){return s.indexOf(t)>=0},t.exports=i},function(t,e,n){var r=n(22);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){function n(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length&&!(e<t[i]);i++)r=t[i];return r}function r(t,e){var n=t.length;if(0===n)return NaN;var r=void 0;if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var i=1;i<t.length;i++)if(e<=t[i]){r=t[i];break}return r}var i=12,a={snapFactorTo:function(t,e,n){if(isNaN(t))return NaN;var r=1;if(0!==t){t<0&&(r=-1);var o=function(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;e.toString().length>i&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}(t*=r);r*=o,t/=o}var s=(t="floor"===n?a.snapFloor(e,t):"ceil"===n?a.snapCeiling(e,t):a.snapTo(e,t))*r;if(Math.abs(r)<1&&s.toString().length>i){s=t/parseInt(1/r)*(r>0?1:-1)}return s},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var i=n(t,e),a=r(t,e);if(isNaN(i)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-i)<Math.abs(a-e)?i:a},snapFloor:function(t,e){return n(t,e)},snapCeiling:function(t,e){return r(t,e)},fixedBase:function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}};t.exports=a},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(13),a=n(73),o=n(3),s=n(9),u=n(20),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},e.prototype.init=function(){var t=this.values,e=this.tickCount;if(o(t,function(e,n){t[n]=e.toString()}),!this.ticks){var n=t;if(e){n=a({maxCount:e,data:t,isRounding:this.isRounding}).ticks}this.ticks=n}},e.prototype.getText=function(e){return-1===this.values.indexOf(e)&&s(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},e.prototype.translate=function(t){var e=this.values.indexOf(t);return-1===e&&s(t)?e=t:-1===e&&(e=NaN),e},e.prototype.scale=function(t){var e=this.rangeMin(),n=this.rangeMax(),r=void 0;return(u(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),r=this.values.length>1?t/(this.values.length-1):t,e+r*(n-e)},e.prototype.invert=function(t){if(u(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var r=(t-e)/(n-e),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},e}(i);i.Cat=c,t.exports=c},function(t,e,n){var r=n(3);t.exports=function(t){var e={},n=[],i=t.isRounding,a=function(t){var e=[];return r(t,function(t){e=e.concat(t)}),e}(t.data),o=a.length,s=t.maxCount||8,u=void 0;if(i?2===(u=function(t,e){var n=void 0;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}(o-1,s-1)+1)?u=s:u<s-4&&(u=s-4):u=s,!i&&o<=u+u/2)n=[].concat(a);else{for(var c=parseInt(o/(u-1),10),l=a.map(function(t,e){return e%c==0?a.slice(e,e+c):null}).filter(function(t){return t}),h=1,f=l.length;h<f&&(i?h*c<o-c:h<u-1);h++)n.push(l[h][0]);if(a.length){n.unshift(a[0]);var p=a[o-1];-1===n.indexOf(p)&&n.push(p)}}return e.categories=a,e.ticks=n,e}},function(t,e,n){var r;!function(i){"use strict";function a(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function o(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function s(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var u={},c=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,h=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/\[([^]*?)\]/gm,p=function(){},d=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"],y=a(g,3),v=a(d,3);u.i18n={dayNamesShort:v,dayNames:d,monthNamesShort:y,monthNames:g,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return s(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return s(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+h.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[l,p],ddd:[h,p],MMM:[h,o("monthNamesShort")],MMMM:[h,o("monthNames")],a:[h,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,u.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(t,e,n){var r=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");var i=[];return e=(e=u.masks[e]||e||u.masks.default).replace(f,function(t,e){return i.push(e),"??"}),(e=e.replace(c,function(e){return e in m?m[e](t,r):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return i.shift()})},u.parse=function(t,e,n){var r=n||u.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var i=!0,a={};if(e.replace(c,function(e){if(x[e]){var n=x[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,r),t=t.substr(o+e.length),e}):i=!1}return x[e]?"":e.slice(1,e.length-1)}),!i)return!1;var o=new Date;!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0);var s;return null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,s=new Date(Date.UTC(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):s=new Date(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),s},void 0!==t&&t.exports?t.exports=u:void 0!==(r=function(){return u}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){var r=n(20),i=n(147);t.exports={toTimeStamp:function(t){return r(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),i(t)&&(t=t.getTime()),t}}},function(t,e,n){t.exports={Canvas:n(151),Group:n(90),Shape:n(4),Arc:n(94),Circle:n(95),Dom:n(96),Ellipse:n(97),Fan:n(98),Image:n(99),Line:n(100),Marker:n(48),Path:n(101),Polygon:n(102),Polyline:n(103),Rect:n(104),Text:n(105),PathSegment:n(37),CommonUtil:n(23),DomUtil:n(88),MatrixUtil:n(6),PathUtil:n(49),Event:n(89),version:"3.1.1"}},function(t,e,n){var r=n(11),i=Array.prototype.indexOf;t.exports=function(t,e){return!!r(t)&&i.call(t,e)>-1}},function(t,e,n){var r=n(3),i=n(11);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,function(t,r){e(t,r)&&n.push(t)}),n}},function(t,e,n){var r=n(11),i=Array.prototype.splice;t.exports=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e){t.exports=parseInt},function(t,e,n){var r=n(22);t.exports=function(t){return r(t).toLowerCase()}},function(t,e,n){var r=n(22);t.exports=function(t){return r(t).toUpperCase()}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(15),i=n(7),a=n(86);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return a(t,e)}},function(t,e,n){var r=n(3),i=n(7),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]}),n}},function(t,e,n){var r=n(43),i=n(11),a=n(20);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length&&(o=t(e[s],n[s]));s++);return o}if(r(e)||r(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var l=!0,h=0;h<u.length&&(l=t(e[u[h]],n[u[h]]));h++);return l}return!1}},function(t,e,n){var r=n(23),i=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:a,th:a,"*":document.createElement("div")};t.exports={getBoundingClientRect:function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null},getStyle:function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r.isNil(n)?null:n}},modifyCSS:function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t},createDom:function(t){var e=o.test(t)&&RegExp.$1;e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r},getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},getWidth:function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)},getHeight:function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)},getOuterHeight:function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+a},getOuterWidth:function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+a},addEventListener:function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}},requestAnimationFrame:function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}}},function(t,e,n){var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){function r(t,e,n){for(var r=void 0,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function i(t){if(!t._cfg&&t!==l){var e=t.superclass.constructor;e&&!e._cfg&&i(e),t._cfg={},a.merge(t._cfg,e._cfg),a.merge(t._cfg,t.CFG)}}var a=n(1),o=n(91),s=n(204),u={},c="_INDEX",l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(l,o),a.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return i(this.constructor),a.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=u[t];if(r||(r=a.upperFirst(t),u[t]=r),e.attrs&&n){var i=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(i.fontFamily=i.fontFamily?i.fontFamily:o)}}e.canvas=n,e.type=t;var c=new s[r](e);return this.add(c),c},addGroup:function(t,e){var n=this.get("canvas"),r=void 0;if(e=a.merge({},e),a.isFunction(t))e?(e.canvas=n,e.parent=this,r=new t(e)):r=new t({canvas:n,parent:this}),this.add(r);else if(a.isObject(t))t.canvas=n,r=new l(t),this.add(r);else{if(void 0!==t)return!1;r=new l,this.add(r)}return r},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return a.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)}),e._cfg.children=n.concat(t);else{var r=t,i=r.get("parent");i&&i.removeChild(r,!1),e._setCfgProperty(r),n.push(r)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.get("children");i.length>0?a.each(i,function(i){if(i.get("visible")){var a=i.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],c=[a.maxX,a.maxY,1];i.apply(o),i.apply(s),i.apply(u),i.apply(c);var l=Math.min(o[0],s[0],u[0],c[0]),h=Math.max(o[0],s[0],u[0],c[0]),f=Math.min(o[1],s[1],u[1],c[1]),p=Math.max(o[1],s[1],u[1],c[1]);l<t&&(t=l),h>e&&(e=h),f<n&&(n=f),p>r&&(r=p)}}):(t=0,e=0,n=0,r=0);var o={minX:t,minY:n,maxX:e,maxY:r};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return a.each(t,function(t,e){return t[c]=e,t}),t.sort(function(t){return function(e,n){var r=t(e,n);return 0===r?e[c]-n[c]:r}}(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},findById:function(t){return this.find(function(e){return e.get("id")===t})},find:function(t){if(a.isString(t))return this.findById(t);var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1}),n},findAll:function(t){var e=this.get("children"),n=[],r=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},findBy:function(t){var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],r=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},getShape:function(t,e){var n=this._attrs.clip,i=this._cfg.children,a=void 0;if(n){var o=[t,e,1];n.invert(o,this.get("canvas")),n.isPointInPath(o[0],o[1])&&(a=r(i,t,e))}else a=r(i,t,e);return a},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++){t[e].clearTotalMatrix()}}},clear:function(){for(var t=this._cfg.children,e=t.length-1;e>=0;e--)t[e].remove();return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))}}),t.exports=l},function(t,e,n){var r=n(1),i=n(201),a=n(202),o=n(203),s=n(67),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t){var e=this._cfg,n=e.parent,i=e.el;return n&&(i&&n._cfg.tobeRemoved.push(i),r.remove(n.get("children"),this)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);n.splice(i,1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el,i=n.indexOf(this);if(n.splice(i,1),n.unshift(this),r){var a=r.parentNode;a.removeChild(r),a.insertBefore(r,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function r(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function i(t,e,n,i,a,s,u,c,l){var h=void 0,f=.005,p=1/0,d=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,b=[u,c];for(v=0;v<1;v+=.05)g=[r(t,n,a,v),r(e,i,s,v)],(d=o.squaredDistance(b,g))<p&&(h=v,p=d);for(p=1/0,x=0;x<32&&!(f<1e-4);x++){var w=h-f,_=h+f;g=[r(t,n,a,w),r(e,i,s,w)],d=o.squaredDistance(b,g),w>=0&&d<p?(h=w,p=d):(y=[r(t,n,a,_),r(e,i,s,_)],m=o.squaredDistance(b,y),_<=1&&m<p?(h=_,p=m):f*=.5)}return l&&(l.x=r(t,n,a,h),l.y=r(e,i,s,h)),Math.sqrt(p)}var a=n(1),o=n(6).vec2;t.exports={at:r,projectPoint:function(t,e,n,r,a,o,s,u){var c={};return i(t,e,n,r,a,o,s,u,c),c},pointDistance:i,extrema:function(t,e,n){var r=t+n-2*e;if(a.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function r(t,e,n){return t+e*Math.cos(n)}function i(t,e,n){return t+e*Math.sin(n)}var a=n(1),o=n(4),s=n(35),u=n(36),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(c,o),a.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth()/2,c=s.box(e,n,r,i,a,o);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.startAngle,o=t.r,s=t.clockwise,u=Math.PI/180;s&&(u*=-1);var c=[],l=r(e,o,a+u),h=i(n,o,a+u),f=r(e,o,a),p=i(n,o,a);return c.push([l,h]),c.push([f,p]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.endAngle,o=t.r,s=t.clockwise,u=Math.PI/180,c=[];s&&(u*=-1);var l=r(e,o,a+u),h=i(n,o,a+u),f=r(e,o,a),p=i(n,o,a);return c.push([f,p]),c.push([l,h]),c},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();u.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();u.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(4),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(4),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(4),a=n(6).mat3,o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rx,o=e.ry;t=t||self.get("context");var s=i>o?i:o,u=i>o?1:i/o,c=i>o?o/i:1,l=[1,0,0,0,1,0,0,0,1];a.scale(l,l,[u,c]),a.translate(l,l,[n,r]),t.beginPath(),t.save(),t.transform(l[0],l[1],l[3],l[4],l[6],l[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(1),i=n(4),a=n(35),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rs,i=t.re,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=this.getHitLineWidth(),l=a.box(e,n,r,o,s,u),h=a.box(e,n,i,o,s,u),f=c/2;return{minX:Math.min(l.minX,h.minX)-f,minY:Math.min(l.minY,h.minY)-f,maxX:Math.max(l.maxX,h.maxX)+f,maxY:Math.max(l.maxY,h.maxY)+f}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(t=t||self.get("context")).beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,r,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(1),i=n(4),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,l=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(c)||r.isNil(l)||r.isNil(h))return void t.drawImage(f,n,i,o,s);if(!(r.isNil(u)||r.isNil(c)||r.isNil(l)||r.isNil(h)))return void t.drawImage(f,u,c,l,h,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(4),a=n(36),o=n(34),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,r),t.lineTo(i,a)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(4),a=n(37),o=n(24),s=n(36),u=n(49),c=n(47),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={path:null,lineWidth:1,curve:null,tCache:null,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(r.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e=o.parsePath(t),n=void 0,i=[];if(r.isArray(e)&&0!==e.length&&("M"===e[0][0]||"m"===e[0][0])){for(var s=e.length,u=0;u<e.length;u++){var c=e[u];n=new a(c,n,u===s-1),i.push(n)}this.setSilent("segments",i),this.set("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,i=-1/0,a=1/0,o=-1/0;return r.each(t,function(t){t.getBBox(e);var r=t.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<a&&(a=r.minY),r.maxY>o&&(o=r.maxY))}),{minX:n,minY:a,maxX:i,maxY:o}},_setTcache:function(){var t=0,e=0,n=[],i=void 0,a=void 0,o=void 0,s=void 0,u=this.curve;u&&(r.each(u,function(e,n){o=u[n+1],s=e.length,o&&(t+=c.len(e[s-2],e[s-1],o[1],o[2],o[3],o[4],o[5],o[6]))}),r.each(u,function(r,l){o=u[l+1],s=r.length,o&&((i=[])[0]=e/t,a=c.len(r[s-2],r[s-1],o[1],o[2],o[3],o[4],o[5],o[6]),e+=a,i[1]=e/t,n.push(i))}),this.tCache=n)},_calculateCurve:function(){var t=this._attrs.path;this.curve=u.pathTocurve(t)},getStartTangent:function(){var t=this.get("segments"),e=void 0,n=void 0,i=void 0,a=void 0;if(t.length>1)if(e=t[0].endPoint,n=t[1].endPoint,i=t[1].startTangent,a=[],r.isFunction(i)){var o=i();a.push([e.x-o[0],e.y-o[1]]),a.push([e.x,e.y])}else a.push([n.x,n.y]),a.push([e.x,e.y]);return a},getEndTangent:function(){var t=this.get("segments"),e=t.length,n=void 0,i=void 0,a=void 0,o=void 0;if(e>1)if(n=t[e-2].endPoint,i=t[e-1].endPoint,a=t[e-1].endTangent,o=[],r.isFunction(a)){var s=a();o.push([i.x-s[0],i.y-s[1]]),o.push([i.x,i.y])}else o.push([n.x,n.y]),o.push([i.x,i.y]);return o},getPoint:function(t){var e=this.tCache,n=void 0,i=void 0;e||(this._calculateCurve(),this._setTcache(),e=this.tCache);var a=this.curve;if(!e)return a?{x:a[0][1],y:a[0][2]}:null;r.each(e,function(e,r){t>=e[0]&&t<=e[1]&&(n=(t-e[0])/(e[1]-e[0]),i=r)});var o=a[i];if(r.isNil(o)||r.isNil(i))return null;var s=o.length,u=a[i+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-n),y:c.at(o[s-1],u[2],u[4],u[6],1-n)}},createPath:function(t){var e=this.get("segments");if(r.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,i=0;i<n;i++)e[i].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),i=e.path;if(t=t||this.get("context"),r.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==i[i.length-1]&&"Z"!==i[i.length-1]&&!e.fill){var a=this.getStartTangent();s.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();s.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(4),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,i=1/0,a=-1/0,o=-1/0;r.each(t,function(t){var e=t[0],r=t[1];e<n&&(n=e),e>a&&(a=e),r<i&&(i=r),r>o&&(o=r)});var s=e/2;return{minX:n-s,minY:i-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),r.each(e,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(1),i=n(4),a=n(36),o=n(34),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var i=1/0,a=1/0,o=-1/0,s=-1/0;r.each(n,function(t){var e=t[0],n=t[1];e<i&&(i=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)});var u=e/2;return{minX:i-u,minY:a-u,maxX:o+u,maxY:s+u}},_setTcache:function(){var t=this._attrs.points,e=0,n=0,i=[],a=void 0,s=void 0;t&&0!==t.length&&(r.each(t,function(n,r){t[r+1]&&(e+=o.len(n[0],n[1],t[r+1][0],t[r+1][1]))}),e<=0||(r.each(t,function(r,u){t[u+1]&&((a=[])[0]=n/e,s=o.len(r[0],r[1],t[u+1][0],t[u+1][1]),n+=s,a[1]=n/e,i.push(a))}),this.tCache=i))},createPath:function(t){var e=this._attrs.points,n=void 0,r=void 0;if(!(e.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(e[0][0],e[0][1]),r=1,n=e.length-1;r<n;r++)t.lineTo(e[r][0],e[r][1]);t.lineTo(e[n][0],e[n][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this._attrs,n=e.points,r=n.length-1;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&a.addEndArrow(t,e,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(t){var e=this._attrs.points,n=this.tCache,i=void 0,a=void 0;return n||(this._setTcache(),n=this.tCache),r.each(n,function(e,n){t>=e[0]&&t<=e[1]&&(i=(t-e[0])/(e[1]-e[0]),a=n)}),{x:o.at(e[a][0],e[a+1][0],i),y:o.at(e[a][1],e[a+1][1],i)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(24).parseRadius,a=n(4),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,a),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,r,a,o);else{var u=i(s);t.moveTo(n+u.r1,r),t.lineTo(n+a-u.r2,r),0!==u.r2&&t.arc(n+a-u.r2,r+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+a,r+o-u.r3),0!==u.r3&&t.arc(n+a-u.r3,r+o-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,r+o),0!==u.r4&&t.arc(n+u.r4,r+o-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,r+u.r1),0!==u.r1&&t.arc(n+u.r1,r+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=o},function(t,e,n){var r=n(1),i=n(4),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=void 0;if(r.isString(e)&&-1!==e.indexOf("\n")){var i=(n=e.split("\n")).length;t.lineCount=i,t.textArr=n}},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){return n*e+this._getSpaceingY()*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText());var n=t.x,r=t.y,i=this.measureText();if(!i)return{minX:n,minY:r,maxX:n,maxY:r};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,u=this.getHitLineWidth(),c={x:n,y:r-a};o&&("end"===o||"right"===o?c.x-=i:"center"===o&&(c.x-=i/2)),s&&("top"===s?c.y+=a:"middle"===s&&(c.y+=a/2)),this.set("startPoint",c);var l=u/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+i+l,maxY:c.y+a+l}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var i=e.text;if(i){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;r.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!1):t.strokeText(i,o,s),t.globalAlpha=1}if(this.hasFill()){var c=e.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),a?this._drawTextArr(t,!0):t.fillText(i,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n=this._attrs.textArr,i=this._attrs.textBaseline,a=1*this._attrs.fontSize,o=this._getSpaceingY(),s=this._attrs.x,u=this._attrs.y,c=this.getBBox(),l=c.maxY-c.minY,h=void 0;r.each(n,function(n,r){h=u+r*(o+a)-l+a,"middle"===i&&(h+=l-a-(l-a)/2),"top"===i&&(h+=l-a),e?t.fillText(n,s,h):t.strokeText(n,s,h)})},measureText:function(){var t=this._attrs,e=t.text,n=t.font,i=t.textArr,a=void 0,o=0;if(!r.isNil(e)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=n,i?r.each(i,function(t){a=s.measureText(t).width,o<a&&(o=a),s.restore()}):(o=s.measureText(e).width,s.restore()),o}}}),t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);n.d(e,"now",function(){return r.b}),n.d(e,"timer",function(){return r.c}),n.d(e,"timerFlush",function(){return r.d});var i=n(207);n.d(e,"timeout",function(){return i.a});var a=n(208);n.d(e,"interval",function(){return a.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)r=Object(i.f)(e[n]),o[n]=r.r||0,s[n]=r.g||0,u[n]=r.b||0;return o=t(o),s=t(s),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=u(t),r+""}}}n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c});var i=n(19),a=n(54),o=n(109),s=n(25);e.a=function t(e){function n(t,e){var n=r((t=Object(i.f)(t)).r,(e=Object(i.f)(e)).r),a=r(t.g,e.g),o=r(t.b,e.b),u=Object(s.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}var r=Object(s.b)(e);return n.gamma=t,n}(1);var u=r(a.b),c=r(o.a)},function(t,e,n){"use strict";var r=n(54);e.a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],u=t[(i+2)%e];return Object(r.a)((n-i/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(51);e.a=function(t,e){var n,i=e?e.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i);for(n=0;n<a;++n)o[n]=Object(r.a)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(51),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(t,e){var n,a={},o={};null!==t&&"object"===(void 0===t?"undefined":i(t))||(t={}),null!==e&&"object"===(void 0===e?"undefined":i(e))||(e={});for(n in e)n in t?a[n]=Object(r.a)(t[n],e[n]):o[n]=e[n];return function(t){for(n in a)o[n]=a[n](t);return o}}},function(t,e,n){"use strict";var r=n(38),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.a=function(t,e){var n,o,s,u=i.lastIndex=a.lastIndex=0,c=-1,l=[],h=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(o=o[0])?l[c]?l[c]+=o:l[++c]=o:(l[++c]=null,h.push({i:c,x:Object(r.a)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),l[c]?l[c]+=s:l[++c]=s),l.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,r=0;r<e;++r)l[(n=h[r]).i]=n.x(t);return l.join("")})}},function(t,e,n){var r=n(0),i=n(244),a={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},o={line:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},path:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},area:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},edge:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}},interval:{appear:function(t){var e=void 0;return t.isPolar?(e=i.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=i.appear.fanIn)):e=t.isRect?t.isTransposed?i.appear.scaleInX:i.appear.scaleInY:i.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?i.enter.fadeIn:i.enter.zoomIn},leave:function(){return i.leave.fadeOut},update:function(t){if("theta"===t.type)return i.update.fanIn}},point:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},schema:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return i.appear.fadeIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-ticks":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid-rect":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(){return i.leave.fadeIn}},labelLine:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}}};o.Action=i,o.defaultCfg=a,o.getAnimation=function(t,e,n){var i=this[t];if(i){var a=i[n];if(r.isFunction(a))return a(e)}return!1},o.getAnimateCfg=function(t,e){var n=a[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?r.deepMix({},n,this[t].cfg[e]):n},o.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},t.exports=o},function(t,e,n){function r(t,e,n,r){return t[r]+(e[r]-t[r])*n}function i(t){return"#"+a(t[0])+a(t[1])+a(t[2])}function a(t){return t=Math.round(t),1===(t=t.toString(16)).length&&(t="0"+t),t}function o(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var s=n(250),u=n(59),c=n(58),l=/rgba?\(([\s.,0-9]+)\)/,h={},f=null,p={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;f||(f=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}());var e=void 0;if(h[t])e=h[t];else{f.style.color=t,e=document.defaultView.getComputedStyle(f,"").getPropertyValue("color");e=i(l.exec(e)[1].split(/\s*,\s*/)),h[t]=e}return e},rgb2arr:o,gradient:function(t){var e=[];return u(t)&&(t=t.split("-")),c(t,function(t){-1===t.indexOf("#")&&(t=p.toRGB(t)),e.push(o(t))}),function(t){return function(t,e){!isNaN(e)&&s(e)||(e=0);var n=t.length-1,a=Math.floor(n*e),o=n*e-a,u=t[a],c=a===n?u:t[a+1];return i([r(u,c,o,0),r(u,c,o,1),r(u,c,o,2)])}(e,t)}}};t.exports=p},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){var r=n(14),i={values:n(39)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e={},n=[];if(this.xField&&this.isAdjust("x")&&n.push(this.xField),this.yField&&this.isAdjust("y")&&n.push(this.yField),r(n,function(n){var r=i.values(t,n);r.sort(function(t,e){return t-e}),e[n]=r}),!this.yField&&this.isAdjust("y")){var a=[0,1];e.y=a}return e},adjustData:function(t,e){var n=this,i=n._getDimValues(e);r(t,function(e,a){r(i,function(r,i){n.adjustDim(i,r,e,t.length,a)})})},getAdjustRange:function(t,e,n){var r=n.indexOf(e),i=n.length,a=void 0,o=void 0;return!this.yField&&this.isAdjust("y")?(a=0,o=1):i>1?(a=0===r?n[0]:n[r-1],o=r===i-1?n[i-1]:n[r+1],0!==r?a+=(e-a)/2:a-=(o-e)/2,r!==i-1?o-=(o-e)/2:o+=(e-n[i-2])/2):(a=0===e?0:e-.5,o=0===e?1:e+.5),{pre:a,next:o}},groupData:function(t,e){var n={};return r(t,function(t){var r=t[e];void 0===r&&(r=t[e]=0),n[r]||(n[r]=[]),n[r].push(t)}),n}}},function(t,e,n){var r=n(117);t.exports=function(t){return r(t,"Function")}},function(t,e,n){var r={default:n(122),dark:n(266)};t.exports=r},function(t,e){var n,r,i='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:i,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:14,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:i},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:22,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:12,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:i}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:12,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:i}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:20,fontFamily:i}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:i}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:i}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:i}},thetaLabels:{labelLine:{lineWidth:1},labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},top:{position:"top",offset:6,layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:6,layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:i},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:i,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:i},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,20,24,5],legendMargin:24},tooltip:(r={crosshairs:!1,offset:15},r["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:i,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r),tooltipMarker:{symbol:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:8,shadowOffsetX:0,shadowOffSetY:0,radius:4},tooltipCrosshairsRect:{type:"rect",style:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{style:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:"#1890FF",radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:"#1890FF",radius:3},interval:{lineWidth:0,fill:"#1890FF",fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:"#1890FF",fillOpacity:.3},polygon:{lineWidth:0,fill:"#1890FF",fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},line:{stroke:"#1890FF",lineWidth:2,fill:null},edge:{stroke:"#1890FF",lineWidth:1,fill:null},schema:{stroke:"#1890FF",lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"#1890FF",lineDash:[0,2,2],lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#545454",fontSize:12,textAlign:"center",fontFamily:i}}},text:{style:{fill:"#545454",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:i}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"}},pixelRatio:null};t.exports=a},function(t,e,n){var r=n(5).Group,i=n(124),a=n(2),o=n(0),s=["line","point","path"],u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{label:a.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this.initLabelsCfg(),this.renderLabels()},e.prototype._getLabelValue=function(t){var e=t._origin,n=this.get("labelCfg"),r=n.scales,i=n.cfg&&n.cfg.content,a=void 0;if(i){var s=[];o.each(r,function(t){s.push(e[t.field])}),a=i.apply(null,s)}else{var u=r[0];if(a=e[u.field],o.isArray(a)){var c=[];o.each(a,function(t){c.push(u.getText(t))}),a=c}else a=u.getText(a)}return a},e.prototype.initLabelsCfg=function(){var t=this.getDefaultLabelCfg(),e=this.get("labelCfg");o.deepMix(t,e.cfg),this.set("label",t)},e.prototype.getDefaultLabelCfg=function(){var t=this.get("labelCfg").cfg,e=this.get("geomType"),n=this.get("viewTheme")||a;return"polygon"===e||t&&t.offset<0&&-1===o.indexOf(s,e)?o.deepMix({},this.get("label"),n.innerLabels):o.deepMix({},n.label,this.get("label"))},e.prototype.getLabelsItems=function(t){var e=this,n=[],r=e.get("label"),i=e.get("geom"),a=void 0;return o.each(t,function(t){a=t._origin;var s=e._getLabelValue(t);o.isArray(s)||(s=[s]);var u=s.length;o.each(s,function(c,l){var h=e.getLabelPoint(s,t,l);if(h&&!o.isNil(h.text)&&""!==h.text){h=o.mix({},a,h);var f=void 0;f=r&&r.label&&r.label.textAlign?r.label.textAlign:e.getLabelAlign(h,l,u),h.textAlign=f,i&&(h._id=i._getShapeId(a)+"-glabel-"+l+"-"+h.text),h.coord=e.get("coord"),n.push(h)}})}),n},e.prototype.adjustItems=function(t){return t},e.prototype.drawLines=function(t,e){var n=this;n.getDefaultOffset()>0&&o.each(t,function(t){n.lineToLabel(t,e)})},e.prototype.lineToLabel=function(t,e){var n=this.get("coord"),r={x:t.x-t._offset.x,y:t.y-t._offset.y},i={x:(r.x+t.x)/2,y:(r.y+t.y)/2},a=this.get("lineGroup");a||(a=this.addGroup({elCls:"x-line-group"}),this.set("lineGroup",a));var s=a.addShape("path",{attrs:o.mix({path:["M"+r.x,r.y+" Q"+i.x,i.y+" "+t.x,t.y].join(","),fill:null,stroke:t.color},e)});s.name="labelLine",s._id=t._id&&t._id.replace("glabel","glabelline"),s.set("coord",n)},e.prototype.getLabelPoint=function(t,e,n){function r(e,n){return o.isArray(e)&&(e=1===t.length?e.length<=2?e[e.length-1]:function(t){var e=0;return o.each(t,function(t){e+=t}),e/t.length}(e):e[n]),e}var i=this.get("coord"),a={x:r(e.x,n),y:r(e.y,n),text:t[n]};if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var s=-1/0;e.nextPoints.forEach(function(t){(t=i.convert(t)).x>s&&(s=t.x)}),a.x=(a.x+s)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=i.convert(t),(o.isArray(t.x)&&-1===e.x.indexOf(t.x)||o.isNumber(t.x)&&e.x!==t.x)&&(a.x=(a.x+t.x)/2)});var u=this.getLabelOffset(a,n,t.length);return this.transLabelPoint(a),a.x+=u.x,a.y+=u.y,a.color=e.color,a._offset=u,a},e.prototype.transLabelPoint=function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},e.prototype.getOffsetVector=function(){var t=this.get("label").offset||0,e=this.get("coord");return e.isTransposed?e.applyMatrix(t,0):e.applyMatrix(0,t)},e.prototype.getDefaultOffset=function(){var t=this.get("coord"),e=this.getOffsetVector();return t.isTransposed?e[0]:e[1]},e.prototype.getLabelOffset=function(t,e,n){var r=this.getDefaultOffset(),i=this.get("coord").isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},e.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.get("coord").isTransposed){var i=this.getDefaultOffset();r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},e.prototype.showLabels=function(t){var e=this.getLabelsItems(t),n=this.get("label");e=this.adjustItems(e),this.resetLabels(e),n.labelLine&&this.drawLines(e,n.labelLine)},e.prototype.destroy=function(){this.removeLabels(),t.prototype.destroy.call(this)},e}(r);o.assign(u.prototype,i.LabelsRenderer),t.exports=u},function(t,e,n){var r=n(125);r.LabelsRenderer=n(268),t.exports=r},function(t,e,n){var r=n(0),i=n(5).Group,a=r.DomUtil,o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{zIndex:6,items:null,textStyle:null,formatter:null,htmlTemplate:null,_containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',_itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>'}},e.prototype._renderUI=function(){this._drawLabels()},e.prototype._drawLabels=function(){var t=this,e=t.get("items");r.each(e,function(e,n){t._addLabel(e,n)})},e.prototype._addLabel=function(t,e){var n=this._getLabelCfg(t,e);return this._createText(n)},e.prototype._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},i=this.get("formatter"),a=this.get("htmlTemplate");if(!r.isObject(t)){var o=t;(t={}).text=o}r.isFunction(n)&&(n=n(t.text,t,e)),i&&(t.text=i(t.text,t,e)),r.isFunction(a)&&(t.text=a(t.text,t,e)),r.isNil(t.text)&&(t.text=""),t.text=t.text+"";return r.mix({},t,n,{x:t.x||0,y:t.y||0})},e.prototype._createText=function(t){var e=this.get("htmlTemplate"),n=this.get("customDiv"),r=void 0;if(!e){var i=t.point;return r=this.addShape("text"),this._setLabelAttrs(r,t),r.setSilent("origin",i),r.name="label",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),r}if(!n){var o=this.get("_containerTpl"),s=this.get("canvas").get("el").parentNode;n=a.createDom(o),s.style.position="relative",s.appendChild(n),this.set("customDiv",n)}var u=this._createDom(t);n.appendChild(u),this._setCustomPosition(t,u)},e.prototype._setLabelAttrs=function(t,e){var n=e.rotate;delete e.rotate,delete e.point,t.attr(e),n&&t.transform([["t",-e.x,-e.y],["r",n],["t",e.x,e.y]])},e.prototype._setCustomPosition=function(t,e){var n=t.textAlign||"left",r=t.y,i=t.x,o=a.getOuterWidth(e);r-=a.getOuterHeight(e)/2,"center"===n?i-=o/2:"right"===n&&(i-=o),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(i,10)+"px"},e.prototype._createDom=function(t){var e=this.get("_itemTpl"),n=this.get("htmlTemplate");r.isString(n)&&(t.text=r.substitute(n,{text:t.text}));var i=r.substitute(e,{text:t.text});return a.createDom(i)},e.prototype.getLabels=function(){var t=this.get("customDiv");return t?r.toArray(t.childNodes):this.get("children")},e.prototype.addLabel=function(t){var e=this.get("items"),n=e.length;return e.push(t),this._addLabel(t,n)},e.prototype.changeLabel=function(t,e){if(t){var n=this.get("htmlTemplate"),i=r.indexOf(this.getLabels(),t),a=this._getLabelCfg(e,i);if(n){var o=this._createDom(a);t.innerHTML=o.innerHTML,this._setCustomPosition(a,t)}else t._id=e._id,t.resetMatrix(),this._setLabelAttrs(t,a)}},e.prototype.clear=function(){var e=this.get("customDiv");e&&(e.innerHTML=""),t.prototype.clear.call(this)},e.prototype.setItems=function(t){this.clear(),this.set("items",t),this._drawLabels()},e.prototype.remove=function(){var e=this.get("customDiv");e&&e.parentNode.removeChild(e),t.prototype.remove.call(this)},e}(i);t.exports=o},function(t,e,n){var r=n(123),i=n(28),a=n(0),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getPointRauis=function(t,e){return i.getPointRadius(t,e)},e.prototype.getCirclePoint=function(t,e,n){var r=this.get("coord"),i=r.getCenter(),a=this._isEmitLabels(),o=this.getPointRauis(r,n);if(r.isTransposed&&o>e&&!a){t+=2*Math.asin(e/(2*o))}else o+=e;return{x:i.x+o*Math.cos(t),y:i.y+o*Math.sin(t),angle:t,r:o}},e.prototype.getArcPoint=function(t,e){var n=void 0;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},e.prototype.getPointAngle=function(t){var e=this.get("coord");return i.getPointAngle(e,t)},e.prototype.getMiddlePoint=function(t){var e=this.get("coord"),n=t.length,r={x:0,y:0};return a.each(t,function(t){r.x+=t.x,r.y+=t.y}),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype._isToMiddle=function(t){return t.x.length>2},e.prototype.getLabelPoint=function(t,e,n){var r=t[n],i=1,a=void 0;this._isToMiddle(e)?a=this.getMiddlePoint(e.points):(1===t.length&&0===n?n=1:0===n&&(i=-1),a=this.getArcPoint(e,n));var o=this.getDefaultOffset();o*=i;var s=this.getPointAngle(a),u=this.getCirclePoint(s,o,a);return u.text=r,u.angle=s,u.color=e.color,u.rotate=this.getLabelRotate(s,o,e),u},e.prototype._isEmitLabels=function(){return this.get("label").labelEmit},e.prototype.getLabelRotate=function(t){var e=void 0;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},e.prototype.getLabelAlign=function(t){var e=this.get("coord"),n=void 0;if(this._isEmitLabels())n=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(e.isTransposed){var r=e.getCenter(),i=this.getDefaultOffset();n=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else n="center";return n},e}(r);t.exports=o},function(t,e,n){t.exports={Scale:n(274),Coord:n(275),Axis:n(280),Guide:n(287),Legend:n(296),Tooltip:n(302),Event:n(304)}},function(t,e,n){var r=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},e.prototype.render=function(t,e){var n=this.position,i=this.parsePoint(t,n),a=r.mix({},this.style);this.offsetX&&(i.x+=this.offsetX),this.offsetY&&(i.y+=this.offsetY),a.rotate&&(a.rotate=a.rotate*Math.PI/180);var o=e.addShape("Text",{zIndex:this.zIndex,attrs:r.mix({text:this.content},a,i)});o.name="guide-text",this.appendInfo&&o.setSilent("appendInfo",this.appendInfo),this.el=o},e}(n(17));t.exports=i},function(t,e,n){var r=n(128),i=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:4,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#000000",lineWidth:1,opacity:.25},text:{fill:"#000000",opacity:.65,fontSize:14,fontWeight:500,textAlign:"center"}},display:{point:!0,line:!0,text:!0},lineLength:30,direction:"upward"})},e.prototype.render=function(t,e){var n=this.position,r=this.parsePoint(t,n),i=e.addGroup();i.name="marker-group",i.translate(r.x,r.y);var a=this._getElementPosition();if(this.display.line){var o=a.line;this._drawLine(o,i)}if(this.display.text&&this.content){var s=a.text;this._drawText(s,i)}if(this.display.point){var u=a.point;this._drawPoint(u,i)}this.appendInfo&&i.setSilent("marker-group",this.appendInfo),this.el=i},e.prototype.set=function(t,e){this[t]=e},e.prototype._getElementPosition=function(){var t=this.display.line?this.lineLength:5;this.style.text.textBaseline="upward"===this.direction?"bottom":"top";var e="upward"===this.direction?-1:1;return{point:{x:0,y:0},line:[{x:0,y:0},{x:0,y:t*e}],text:{x:0,y:t*e}}},e.prototype._drawLine=function(t,e){var n=this.style.line,r=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]];e.addShape("path",{attrs:i.mix({path:r},n)})},e.prototype._drawText=function(t,e){var n=this.style.text;e.addShape("text",{attrs:i.mix({text:this.content},n,t)})},e.prototype._drawPoint=function(t,e){var n=this.style.point;e.addShape("circle",{attrs:i.mix({},n,t)})},e}(r);t.exports=a},function(t,e,n){function r(t,e){return t.getElementsByClassName(e)[0]}function i(t,e){var n=t.className;return s.isNil(n)?t:(n=n.split(" ")).indexOf(e)>-1?t:t.parentNode?t.parentNode.className===d?t.parentNode:i(t.parentNode,e):null}function a(t,e){var n=null,r=e instanceof f?e.get("value"):e;return s.each(t,function(t){if(t.value===r)return n=t,!1}),n}function o(t,e){return t.findBy(function(t){return t.name===e})}var s=n(0),u=n(131),c=s.DomUtil,l=n(5),h=l.Event,f=l.Group,p=n(2),d="g2-legend",g="g2-legend-list",y="g2-legend-list-item",v="g2-legend-marker",m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.mix({},e,{type:"category-legend",items:null,itemGap:5,titleGap:15,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],checkable:!0,unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:p.fontFamily},_wordSpaceing:8,useHtml:!1,container:null,containerTpl:'<div class="'+d+'"><h4 class="g2-legend-title"></h4><ul class="'+g+'"></ul></div>',_defaultItemTpl:'<li class="'+y+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+v+'" style="background-color:{color};"></i><span class="g2-legend-text">{value}</span></li>',itemTpl:null,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0})},e.prototype._beforeRenderUI=function(){t.prototype._beforeRenderUI.call(this)},e.prototype._renderUI=function(){this.get("useHtml")?this._renderHTML():(t.prototype._renderUI.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems())},e.prototype._bindUI=function(){this.get("hoverable")&&(this.on("mousemove",s.wrapBehavior(this,"_onMousemove")),this.on("mouseleave",s.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.on("click",s.wrapBehavior(this,"_onClick"))},e.prototype._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},e.prototype._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),r=new h("itemhover",t,!0,!0);r.item=a(n,e),r.checked=e.get("checked"),this.emit("itemhover",r)}else e||this.emit("itemunhover",t)},e.prototype._onMouseleave=function(t){this.emit("itemunhover",t)},e.prototype._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var r=e.get("checked");if(!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return;var i=this.get("selectedMode"),u=a(n,e),c=new h("itemclick",t,!0,!0);c.item=u,c.currentTarget=e,c.appendInfo=t.currentTarget.get("appendInfo"),c.checked="single"===i||!r;var l=this.get("unCheckColor"),f=this.get("textStyle").fill,p=void 0,d=void 0,g=void 0;if("single"===i){var y=this.get("itemsGroup").get("children");s.each(y,function(t){p=o(t,"legend-marker"),d=o(t,"legend-text"),g=o(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",l),p.attr("stroke")&&p.attr("stroke",l),d.attr("fill",l),p.setSilent("checked",!1),d.setSilent("checked",!1),g.setSilent("checked",!1),t.setSilent("checked",!1)):(p.attr("fill")&&p.attr("fill",u.marker.fill),p.attr("stroke")&&p.attr("stroke",u.marker.stroke),d.attr("fill",f),p.setSilent("checked",!0),d.setSilent("checked",!0),g.setSilent("checked",!0),t.setSilent("checked",!0))})}else p=o(e,"legend-marker"),d=o(e,"legend-text"),g=o(e,"legend-item"),p.attr("fill")&&p.attr("fill",r?l:u.marker.fill),p.attr("stroke")&&p.attr("stroke",r?l:u.marker.stroke),d.attr("fill",r?l:f),e.setSilent("checked",!r),p.setSilent("checked",!r),d.setSilent("checked",!r),g.setSilent("checked",!r);this.emit("itemclick",c)}},e.prototype._renderHTML=function(){var t=this,e=this,n=e.get("canvas"),o=e.get("viewTheme")||p,u=n.get("el").parentNode,l=this.get("title"),h=e.get("containerTpl"),f=c.createDom(h),m=r(f,"g2-legend-title"),x=r(f,g),b=e.get("unCheckColor"),w=e.get("selectedMode"),_=o.legend.html,S=e.get("container");if(/^\#/.test(S)){var M=S.replace("#","");(S=document.getElementById(M)).appendChild(f)}else{var A=e.get("position"),C=e.get("canvas"),P={};P="left"===A||"right"===A?{maxHeight:(e.get("maxLength")||C.get("height"))+"px"}:{maxWidth:(e.get("maxLength")||C.get("width"))+"px"},c.modifyCSS(f,s.mix({},_[d],P,e.get(d))),u.appendChild(f)}c.modifyCSS(x,s.mix({},_[g],e.get(g))),m&&(l&&l.text?(m.innerHTML=l.text,c.modifyCSS(m,s.mix({},_["g2-legend-title"],e.get("g2-legend-title")))):f.removeChild(m));var k=e.get("items"),T=e.get("_defaultItemTpl"),O=e.get("itemTpl");O&&O!==T&&(T=O),e.get("reversed")&&k.reverse();var I=e.get("position"),E=s.mix({},_[y],{display:"right"===I||"left"===I?"block":"inline-block"},e.get(y)),L=s.mix({},_[v],e.get(v));if(s.each(k,function(t,n){var i=t.checked,a=e._formatItemValue(t.value),o=t.marker.fill||t.marker.stroke,u=i?o:b,l=void 0;l=s.isFunction(T)?T(a,u,i,n):T;var h=s.substitute(l,{index:n,checked:i?"checked":"unChecked",value:a,color:u,originColor:o,originValue:t.value.replace(/\"/g,""")}),f=c.createDom(h),p=r(f,v);c.modifyCSS(f,E),p&&c.modifyCSS(p,L),i||(f.style.color=b,p&&(p.style.backgroundColor=b)),x.appendChild(f)}),e.get("clickable")){var D=x.childNodes;x.onclick=function(n){var o=n.target,u=o.className;if(!((u=u.split(" ")).indexOf(d)>-1||u.indexOf(g)>-1)){var c=i(o,y),l=r(c,"g2-legend-text"),h=r(c,v),f=a(k,c.getAttribute("data-value"));if(f){var p=c.className,m=c.getAttribute("data-color");if("single"===w)f.checked=!0,s.each(D,function(t){if(t!==c){r(t,v).style.backgroundColor=b,t.className=t.className.replace("checked","unChecked"),t.style.color=b;a(k,t.getAttribute("data-value")).checked=!1}else l&&(l.style.color=e.get("textStyle").fill),h&&(h.style.backgroundColor=m),c.className=p.replace("unChecked","checked")});else{var x=p.includes("checked"),_=0;if(s.each(D,function(t){t.className.includes("checked")&&_++}),!t.get("allowAllCanceled")&&x&&1===_)return;f.checked=!f.checked,x?(h&&(h.style.backgroundColor=b),c.className=p.replace("checked","unChecked"),c.style.color=b):(h&&(h.style.backgroundColor=m),c.className=p.replace("unChecked","checked"),c.style.color=e.get("textStyle").fill)}e.emit("itemclick",{item:f,currentTarget:c,checked:"single"===w||f.checked})}}}}e.get("hoverable")&&(x.onmousemove=function(t){var n=t.target,r=n.className;if(!((r=r.split(" ")).indexOf(d)>-1||r.indexOf(g)>-1)){var o=i(n,y),s=o.className,u=a(k,o.getAttribute("data-value"));u&&s.includes("checked")?e.emit("itemhover",{item:u,currentTarget:o,checked:u.checked}):u||e.emit("itemunhover",t)}},x.onmouseout=function(t){e.emit("itemunhover",t)}),e.set("legendWrapper",f)},e.prototype._renderItems=function(){var t=this,e=t.get("items");t.get("reversed")&&e.reverse(),s.each(e,function(e,n){t._addItem(e,n)})},e.prototype._renderBack=function(){var t=this.get("backPadding"),e=this.get("background");this.renderBack(t,e)},e.prototype._formatItemValue=function(t){var e=this.get("itemFormatter");return e&&(t=e.call(this,t)),t},e.prototype._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),r=this.get("itemWidth"),i=n.get("children"),a=0;return"horizontal"===t&&s.each(i,function(t){a+=(r||t.getBBox().width)+e}),a},e.prototype._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),r=this.get("itemsGroup"),i=this.get("titleShape"),a=r.get("children"),o=e;return i&&(o+=i.getBBox().height),"vertical"===n&&s.each(a,function(e){o+=e.getBBox().height+t}),o},e.prototype._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),i=this.get("unCheckColor"),a=e.addGroup({x:n,y:r,value:t.value,checked:t.checked});a.set("viewId",e.get("viewId"));var o=this.get("textStyle"),u=this.get("_wordSpaceing"),c=0;if(t.marker){var l=s.mix({},t.marker,{x:t.marker.radius+n,y:r});t.checked||(l.fill&&(l.fill=i),l.stroke&&(l.stroke=i));var h=a.addShape("marker",{type:"marker",attrs:l});h.attr("cursor","pointer"),h.name="legend-marker",c+=h.getBBox().width+u}var f=s.mix({},o,{x:c+n,y:r,text:this._formatItemValue(t.value)});t.checked||s.mix(f,{fill:i});var p=a.addShape("text",{attrs:f});p.attr("cursor","pointer"),p.name="legend-text",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo"));var d=a.getBBox(),g=this.get("itemWidth"),y=a.addShape("rect",{attrs:{x:n,y:r-d.height/2,fill:"#fff",fillOpacity:0,width:g||d.width,height:d.height}});return y.attr("cursor","pointer"),y.setSilent("origin",t),y.name="legend-item",this.get("appendInfo")&&y.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},e.prototype._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),i=this.get("itemMarginBottom"),a=this.get("titleShape")?this.get("titleGap"):0,o=0,u=0,c=void 0,l=void 0,h=void 0,f=this.get("itemWidth");t.getBBox().width>n&&s.each(e,function(t){h=t.getBBox(),c=f||h.width,l=h.height+i,n-u<c&&(o++,u=0),t.move(u,o*l+a),u+=c+r})},e.prototype._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),r=this.get("maxLength"),i=this.get("itemGap"),a=this.get("itemMarginBottom"),o=this.get("titleGap"),u=e?e.getBBox().height+o:0,c=this.get("itemWidth"),l=u,h=void 0,f=void 0,p=void 0,d=0,g=0;t.getBBox().height>r&&s.each(n,function(t){p=t.getBBox(),h=p.width,f=p.height,c?d=c+i:h>d&&(d=h+i),r-l<f?(l=u,g+=d,t.move(g,u)):t.move(g,l),l+=f+a})},e.prototype._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},e.prototype.getWidth=function(){return this.get("useHtml")?c.getOuterWidth(this.get("legendWrapper")):t.prototype.getWidth.call(this)},e.prototype.getHeight=function(){return this.get("useHtml")?c.getOuterHeight(this.get("legendWrapper")):t.prototype.getHeight.call(this)},e.prototype.move=function(e,n){this.get("useHtml")&&!/^\#/.test(this.get("container"))?(c.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n)):t.prototype.move.call(this,e,n)},e.prototype.remove=function(){if(this.get("useHtml")){var e=this.get("legendWrapper");e&&e.parentNode&&e.parentNode.removeChild(e)}t.prototype.remove.call(this)},e}(u);t.exports=m},function(t,e,n){var r=n(0),i=n(5).Group,a=n(2),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{title:{fill:"#333",textBaseline:"middle"},itemFormatter:null,useHtml:!1,autoPosition:!0,inPlot:!1,hoverable:!0}},e.prototype._beforeRenderUI=function(){var t=this.addGroup();t.set("viewId",this.get("viewId")),this.set("itemsGroup",t)},e.prototype._renderUI=function(){this._renderTitle()},e.prototype._renderTitle=function(){var t=this.get("title"),e=this.get("viewTheme")||a;if(t&&t.text){var n=this.addShape("text",{attrs:r.mix({x:0,y:0,fill:"#333",textBaseline:"middle",fontFamily:e.fontFamily},t)});n.name="legend-title",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",n)}},e.prototype.getCheckedCount=function(){var t=this.get("itemsGroup").get("children");return r.filter(t,function(t){return t.get("checked")}).length},e.prototype.setItems=function(t){this.set("items",t),this.clearItems(),this._renderUI()},e.prototype.addItem=function(t){this.get("items").push(t),this.clearItems(),this._renderUI()},e.prototype.clearItems=function(){this.get("itemsGroup").clear()},e.prototype.getWidth=function(){return this.getBBox().width},e.prototype.getHeight=function(){return this.getBBox().height},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=n(2),a=n(131),o=n(5),s=o.Event,u=o.Group,c=n(300),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:156,height:20,titleGap:22,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",fontFamily:i.fontFamily},slidable:!0,inRange:{fill:"#4E7CCC"},_range:[0,100],middleAttr:{fill:"#fff",fillOpacity:0},outRangeStyle:{fill:"#D9D9D9"},numberFormatter:null,labelOffset:10})},e.prototype._calStartPoint=function(){var t={x:0,y:this.get("titleGap")-12},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},e.prototype._beforeRenderUI=function(){var e=this.get("items");r.isArray(e)&&!r.isEmpty(e)&&(t.prototype._beforeRenderUI.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},e.prototype._formatItemValue=function(t){var e=this.get("numberFormatter");e&&(t=e(t));var n=this.get("itemFormatter");return n&&(t=n.call(this,t)),t},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this.get("slidable")?this._renderSlider():this._renderBackground()},e.prototype._renderSlider=function(){var t=new u,e=new u,n=new u,r=this._calStartPoint(),i=this.addGroup(c,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,middleAttr:this.get("middleAttr"),layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});i.translate(r.x,r.y),this.set("slider",i);this._renderSliderShape().attr("clip",i.get("middleHandleElement")),this._renderTrigger()},e.prototype._addBackground=function(t,e,n){return t.addShape(e,{attrs:r.mix({},n,this.get("outRangeStyle"))}),t.addShape(e,{attrs:n})},e.prototype._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),a=this.get("inRange"),o=void 0,s=void 0;"color-legend"===this.get("type")?(o={fill:t.attrValue},s={fill:e.attrValue}):(o=r.mix({},a),s=r.mix({},a));var u=r.mix({text:this._formatItemValue(t.value)+""},i),c=r.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",s,c)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",s,c))},e.prototype._addVerticalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),a=this.get("width"),o=i.addShape("polygon",{attrs:r.mix({points:[[a/2+12,0],[a/2+1,0],[a/2+12,"min"===t?12:-12]]},e)}),s=i.addShape("text",{attrs:r.mix(n,{x:a+8,y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},e.prototype._addHorizontalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),a=i.addShape("polygon",{attrs:r.mix({points:[[0,0],[0,12],["min"===t?-12:12,12]]},e)}),o=i.addShape("text",{attrs:r.mix(n,{x:"min"===t?-16:16,y:6,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";a.attr("cursor",s),o.attr("cursor",s),this.set(t+"ButtonElement",a),this.set(t+"TextElement",o)},e.prototype._bindUI=function(){var t=this;if(t.get("slidable")){t.get("slider").on("sliderchange",function(e){var n=e.range,r=1*t.get("firstItem").value,i=1*t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);t._updateElement(a,o);var u=new s("itemfilter",e,!0,!0);u.range=[a,o],t.emit("itemfilter",u)})}},e.prototype._updateElement=function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");if(e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.attr("text",this._formatItemValue(e)+""),"color-legend"===this.get("type")&&this.get("attr")){var i=this.get("attr"),a=this.get("minButtonElement"),o=this.get("maxButtonElement");a.attr("fill",i.mapping(t).join("")),o.attr("fill",i.mapping(e).join(""))}},e}(a);t.exports=l},function(t,e,n){"use strict";function r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function i(t){return Object(a.selection)().transition(t)}e.a=r,e.b=i,e.c=function(){return++S};var a=n(62),o=n(420),s=n(421),u=n(422),c=n(423),l=n(424),h=n(425),f=n(426),p=n(427),d=n(428),g=n(429),y=n(430),v=n(431),m=n(432),x=n(433),b=n(434),w=n(435),_=n(315),S=0,M=a.selection.prototype;r.prototype=i.prototype={constructor:r,select:g.a,selectAll:y.a,filter:h.a,merge:f.a,selection:v.a,transition:w.a,call:M.call,nodes:M.nodes,node:M.node,size:M.size,empty:M.empty,each:M.each,on:p.a,attr:o.a,attrTween:s.a,style:m.a,styleTween:x.a,text:b.a,remove:d.a,tween:_.a,delay:u.a,duration:c.a,ease:l.a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(209);n.d(e,"easeLinear",function(){return r.a});var i=n(210);n.d(e,"easeQuad",function(){return i.b}),n.d(e,"easeQuadIn",function(){return i.a}),n.d(e,"easeQuadOut",function(){return i.c}),n.d(e,"easeQuadInOut",function(){return i.b});var a=n(211);n.d(e,"easeCubic",function(){return a.b}),n.d(e,"easeCubicIn",function(){return a.a}),n.d(e,"easeCubicOut",function(){return a.c}),n.d(e,"easeCubicInOut",function(){return a.b});var o=n(212);n.d(e,"easePoly",function(){return o.b}),n.d(e,"easePolyIn",function(){return o.a}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.b});var s=n(213);n.d(e,"easeSin",function(){return s.b}),n.d(e,"easeSinIn",function(){return s.a}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.b});var u=n(214);n.d(e,"easeExp",function(){return u.b}),n.d(e,"easeExpIn",function(){return u.a}),n.d(e,"easeExpOut",function(){return u.c}),n.d(e,"easeExpInOut",function(){return u.b});var c=n(215);n.d(e,"easeCircle",function(){return c.b}),n.d(e,"easeCircleIn",function(){return c.a}),n.d(e,"easeCircleOut",function(){return c.c}),n.d(e,"easeCircleInOut",function(){return c.b});var l=n(216);n.d(e,"easeBounce",function(){return l.c}),n.d(e,"easeBounceIn",function(){return l.a}),n.d(e,"easeBounceOut",function(){return l.c}),n.d(e,"easeBounceInOut",function(){return l.b});var h=n(217);n.d(e,"easeBack",function(){return h.b}),n.d(e,"easeBackIn",function(){return h.a}),n.d(e,"easeBackOut",function(){return h.c}),n.d(e,"easeBackInOut",function(){return h.b});var f=n(218);n.d(e,"easeElastic",function(){return f.c}),n.d(e,"easeElasticIn",function(){return f.a}),n.d(e,"easeElasticOut",function(){return f.c}),n.d(e,"easeElasticInOut",function(){return f.b})},function(t,e,n){var r=n(69),i=n(5),a=n(115),o=n(140),s=n(2),u=n(18),c=n(0),l={version:s.version,Animate:a,Chart:o,Global:s,Scale:r,Shape:u,Util:c,G:i,DomUtil:i.DomUtil,MatrixUtil:i.MatrixUtil,PathUtil:i.PathUtil};l.track=function(t){s.trackable=t},n(307),"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+l.version+"'s reference is 'window.G2_3'"):window.G2=l),t.exports=l},function(t,e,n){t.exports={getWrapBehavior:n(163),wrapBehavior:n(164)}},function(t,e,n){function r(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],x=n[7],b=n[8];return t[0]=f*r+p*o+d*c,t[1]=f*i+p*s+d*l,t[2]=f*a+p*u+d*h,t[3]=g*r+y*o+v*c,t[4]=g*i+y*s+v*l,t[5]=g*a+y*u+v*h,t[6]=m*r+x*o+b*c,t[7]=m*i+x*s+b*l,t[8]=m*a+x*u+b*h,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new a.ARRAY_TYPE(9);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new a.ARRAY_TYPE(9);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],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,r,i,o,s,u,c){var l=new a.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=o,l[6]=s,l[7]=u,l[8]=c,l},e.set=function(t,e,n,r,i,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=l*o-s*c,f=-l*a+s*u,p=c*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-l*r+i*c)*d,t[2]=(s*r-i*o)*d,t[3]=f*d,t[4]=(l*n-i*u)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-c*n+r*u)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=o*l-s*c,t[1]=i*c-r*l,t[2]=r*s-i*o,t[3]=s*u-a*l,t[4]=n*l-i*u,t[5]=i*a-n*s,t[6]=a*c-o*u,t[7]=r*u-n*c,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*i+o*s)+r*(u*i-a*s)},e.multiply=r,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*r+p*o+c,t[7]=f*i+p*s+l,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*i+f*s,t[2]=p*a+f*u,t[3]=p*o-f*r,t[4]=p*s-f*i,t[5]=p*u-f*a,t[6]=c,t[7]=l,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,c=n*o,l=r*o,h=r*s,f=i*o,p=i*s,d=i*u,g=a*o,y=a*s,v=a*u;return t[0]=1-h-d,t[3]=l-v,t[6]=f+y,t[1]=l+v,t[4]=1-c-d,t[7]=p-g,t[2]=f-y,t[5]=p+g,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,x=n*u-i*o,b=n*c-a*o,w=r*u-i*s,_=r*c-a*s,S=i*c-a*u,M=l*g-h*d,A=l*y-f*d,C=l*v-p*d,P=h*y-f*g,k=h*v-p*g,T=f*v-p*y,O=m*T-x*k+b*P+w*C-_*A+S*M;return O?(O=1/O,t[0]=(s*T-u*k+c*P)*O,t[1]=(u*C-o*T-c*A)*O,t[2]=(o*k-s*C+c*M)*O,t[3]=(i*k-r*T-a*P)*O,t[4]=(n*T-i*C+a*A)*O,t[5]=(r*C-n*k-a*M)*O,t[6]=(g*S-y*_+v*w)*O,t[7]=(y*b-d*S-v*x)*O,t[8]=(d*_-g*b+v*m)*O,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=i,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-f)<=a.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-p)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(i-d)<=a.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-g)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-y)<=a.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-v)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-m)<=a.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(l-x)<=a.EPSILON*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(h-b)<=a.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))};var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(45));e.mul=r,e.sub=i},function(t,e,n){function r(){var t=new d.ARRAY_TYPE(3);return d.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e,n){var r=new d.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function f(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=r,e.clone=function(t){var e=new d.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=i,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=l,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=f,e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),l=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*l,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,l=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*c+n[0]*l+r[0]*h+i[0]*f,t[1]=e[1]*c+n[1]*l+r[1]*h+i[1]*f,t[2]=e[2]*c+n[2]*l+r[2]*h+i[2]*f,t},e.random=function(t,e){e=e||1;var n=2*d.RANDOM()*Math.PI,r=2*d.RANDOM()-1,i=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],l=i*c-a*u,h=a*s-r*c,f=r*u-i*s,p=i*f-a*h,d=a*l-r*f,g=r*h-i*l,y=2*o;return l*=y,h*=y,f*=y,p*=2,d*=2,g*=2,t[0]=s+l+p,t[1]=u+h+d,t[2]=c+f+g,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),r=a(e[0],e[1],e[2]);f(n,n),f(r,r);var i=p(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=d.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=d.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=d.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))};var d=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(45));e.sub=o,e.mul=s,e.div=u,e.dist=c,e.sqrDist=l,e.len=i,e.sqrLen=h,e.forEach=function(){var t=r();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},function(t,e,n){function r(){var t=new h.ARRAY_TYPE(2);return h.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function o(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function s(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function l(t){var e=t[0],n=t[1];return e*e+n*n}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=r,e.clone=function(t){var e=new h.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new h.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=i,e.multiply=a,e.divide=o,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=s,e.squaredDistance=u,e.length=c,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*h.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1];return Math.abs(n-i)<=h.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=h.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))};var h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(45));e.len=c,e.sub=i,e.mul=a,e.div=o,e.dist=s,e.sqrDist=u,e.sqrLen=l,e.forEach=function(){var t=r();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}()},function(t,e,n){function r(t,e){return i.isEqualWith(t,e,function(t,e){return t===e})}var i=n(0),a=n(141),o=n(5).Canvas,s=i.DomUtil,u=n(2),c=n(306),l=n(127),h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:u.plotCfg.padding,background:null,autoPaddingAppend:5,renderer:u.renderer,views:[]})},e.prototype.init=function(){var e=this.get("viewTheme");this._initCanvas(),this._initPlot(),this._initEvents(),t.prototype.init.call(this);var n=new l.Tooltip({chart:this,viewTheme:e,options:{}});this.set("tooltipController",n);var r=new l.Legend({chart:this,viewTheme:e});this.set("legendController",r),this.set("_id","chart"),this.emit("afterinit")},e.prototype._isAutoPadding=function(){var t=this.get("padding");return i.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},e.prototype._getAutoPadding=function(){for(var t=this.get("padding"),e=function(t,e){return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}}(this.get("frontPlot").getBBox(),this.get("backPlot").getBBox()),n=[0-e.minY,e.maxX-this.get("width"),e.maxY-this.get("height"),0-e.minX],r=i.toAllPadding(t),a=0;a<r.length;a++)if("auto"===r[a]){var o=Math.max(0,n[a]);r[a]=o+this.get("autoPaddingAppend")}return r},e.prototype._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),r=this.get("height");if(i.isString(t)){if(!(t=document.getElementById(t)))throw new Error("Please specify the container for the chart!");this.set("container",t)}var a=s.createDom('<div style="position:relative;"></div>');t.appendChild(a),this.set("wrapperEl",a),this.get("forceFit")&&(n=s.getWidth(t,n),this.set("width",n));var u=new o({containerDOM:a,width:n,height:r,pixelRatio:this.get("pixelRatio"),renderer:this.get("renderer")});this.set("canvas",u)},e.prototype._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:2}),r=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",r)},e.prototype._initPlotBack=function(){var t=this.get("canvas"),e=this.get("viewTheme"),n=t.addGroup(c,{padding:this.get("padding"),plotBackground:i.mix({},e.plotBackground,this.get("plotBackground")),background:i.mix({},e.background,this.get("background"))});this.set("plot",n),this.set("plotRange",n.get("plotRange"))},e.prototype._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",i.wrapBehavior(this,"_initForceFitEvent"))},e.prototype._initForceFitEvent=function(){var t=setTimeout(i.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},e.prototype._renderLegends=function(){var t=this.get("options").legends;if(i.isNil(t)||!1!==t){var e=this.get("legendController");if(e.options=t||{},e.plotRange=this.get("plotRange"),t&&t.custom)e.addCustomLegend();else{var n=this.getAllGeoms(),r=[];i.each(n,function(t){var n=t.get("view"),a=t.getAttrsForLegend();i.each(a,function(a){var o=a.type,s=a.getScale(o);if(s.field&&"identity"!==s.type&&!function(t,e){var n=!1;return i.each(t,function(t){var r=[].concat(t.values),i=[].concat(e.values);t.type!==e.type||t.field!==e.field||r.sort().toString()!==i.sort().toString()||(n=!0)}),n}(r,s)){r.push(s);var u=n.getFilteredOutValues(s.field);e.addLegend(s,a,t,u)}})});var a=this.getYScales();0===r.length&&a.length>1&&e.addMixedLegend(a,n)}e.alignLegends()}},e.prototype._renderTooltips=function(){var t=this.get("options");if(i.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},e.prototype.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return i.each(e,function(e){t=t.concat(e.get("geoms"))}),t},e.prototype.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=s.getWidth(t,e);if(0!==n&&n!==e){var r=this.get("height");this.changeSize(n,r)}return this}},e.prototype.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");r(e,t.get("padding"))||(t.set("padding",e),t.repaint())},e.prototype.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},e.prototype.changeWidth=function(t){return this.changeSize(t,this.get("height"))},e.prototype.changeHeight=function(t){return this.changeSize(this.get("width"),t)},e.prototype.view=function(t){(t=t||{}).theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),i.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=i.mix({},this._getSharedOptions(),t.options);var e=new a(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},e.prototype.removeView=function(t){var e=this.get("views");i.Array.remove(e,t),t.destroy()},e.prototype._getSharedOptions=function(){var t=this.get("options"),e={};return i.each(["scales","coord","axes"],function(n){e[n]=i.cloneDeep(t[n])}),e},e.prototype.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},e.prototype.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var r={};return!1===t?n.legends=!1:i.isObject(t)?r=t:i.isString(t)?r[t]=e:r=e,i.mix(n.legends,r),this},e.prototype.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:i.isObject(t)?i.mix(n.tooltip,t):i.mix(n.tooltip,e),this},e.prototype.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;){e.shift().destroy()}t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},e.prototype.clearInner=function(){var e=this.get("views");i.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var r=this.get("legendController");r&&r.clear()}t.prototype.clearInner.call(this)},e.prototype.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},e.prototype.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");r(n.get("padding"),e)||(n.set("padding",e),n.repaint())}t.prototype.render.call(this),this._renderTooltips()},e.prototype.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},e.prototype.changeVisible=function(t){var e=this.get("wrapperEl"),n=t?"":"none";e.style.display=n},e.prototype.toDataURL=function(){var t=this.get("canvas"),e=this.get("renderer"),n=t.get("el"),r="";if("svg"===e){var i=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(i,o.documentElement);var s=(new XMLSerializer).serializeToString(o);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===e&&(r=n.toDataURL("image/png"));return r},e.prototype.downloadImage=function(t){var e=this,n=document.createElement("a"),r=e.get("renderer"),i=(t||"chart")+("svg"===r?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout(function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,c=new Uint8Array(u);u--;)c[u]=s.charCodeAt(u);var l=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(l,i):n.addEventListener("click",function(){n.download=i,n.href=window.URL.createObjectURL(l)})}else n.addEventListener("click",function(){n.download=i,n.href=t});var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),n.dispatchEvent(h)},16)},e.prototype.showTooltip=function(t){var e=this.getViewsByPoint(t);if(e.length){this.get("tooltipController").showTooltip(t,e)}return this},e.prototype.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},e.prototype.getTooltipItems=function(t){var e=this.getViewsByPoint(t),n=[];return i.each(e,function(e){var r=e.get("geoms");i.each(r,function(e){var r=e.get("dataArray"),a=[];i.each(r,function(n){var r=e.findPoint(t,n);if(r){var i=e.getTipItems(r);a=a.concat(i)}}),n=n.concat(a)})}),n},e.prototype.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",i.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(a);t.exports=h},function(t,e,n){function r(t,e,n){var r=(t-e)/(n-e);return r>=0&&r<=1}function i(t,e){var n=!1;if(t){if("theta"===t.type){var i=t.start,a=t.end;n=r(e.x,i.x,a.x)&&r(e.y,i.y,a.y)}else{var o=t.invert(e);n=o.x>=0&&o.y>=0&&o.x<=1&&o.y<=1}}return n}var a=n(55),o=n(21),s=n(0),u=n(127),c=n(2),l=n(121),h=n(305),f={};s.each(o,function(t,e){var n=s.lowerFirst(e);f[n]=function(e){var n=new t(e);return this.addGeom(n),n}});var p=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n)),i=r;return i._setTheme(),s.each(o,function(t,e){var n=s.lowerFirst(e);i[n]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.viewTheme=i.get("viewTheme");var n=new t(e);return i.addGeom(n),n}}),i.init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:c.animate,visible:!0}},e.prototype._setTheme=function(){var t=this.get("theme"),e={},n={};s.isObject(t)?n=t:-1!==s.indexOf(Object.keys(l),t)&&(n=l[t]),s.deepMix(e,c,n),this.set("viewTheme",e)},e.prototype.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},e.prototype._initOptions=function(){var t=this,e=s.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||s.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&s.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var r=t.get("coordController");r&&r.reset(e.coord),this.set("options",e)},e.prototype._createGeom=function(t){var e=t.type,n=void 0;this[e]&&(n=this[e](),s.each(t,function(t,e){if(n[e])if(s.isObject(t)&&t.field)if("label"===t)n[e](t.field,t.callback,t.cfg);else{var r=void 0;s.each(t,function(t,e){"field"!==e&&(r=t)}),n[e](t.field,r)}else n[e](t)}))},e.prototype._initControllers=function(){var t=this.get("options"),e=this.get("viewTheme"),n=new u.Scale({viewTheme:e,defs:t.scales}),r=new u.Coord(t.coord);this.set("scaleController",n),this.set("coordController",r);var i=new u.Axis({viewTheme:e});this.set("axisController",i);var a=new u.Guide({viewTheme:e,options:t.guides||[]});this.set("guideController",a)},e.prototype._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},e.prototype._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),i=0;i<t.length;i++){var a=t[i];a.set("data",e),a.set("coord",n),a.set("_id",r+"-geom"+i),a.set("keyFields",this.get("keyFields")),a.init()}},e.prototype._clearGeoms=function(){for(var t=this.get("geoms"),e=0;e<t.length;e++){t[e].clear()}},e.prototype._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;){t.shift().destroy()}},e.prototype._drawGeoms=function(){for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var r=t[n];r.setCoord(e),r.paint()}},e.prototype.isShapeInView=function(t){var e=this.get("_id"),n=t._id;return n?n.split("-")[0]===e:t.get("parent").get("viewId")===e},e.prototype.getViewRegion=function(){var t=this.get("parent"),e=void 0,n=void 0;if(t){var r=t.getViewRegion(),i=this._getViewRegion(r.start,r.end);e=i.start,n=i.end}else e=this.get("start"),n=this.get("end");return{start:e,end:n}},e.prototype._getViewRegion=function(t,e){var n=this.get("start"),r=this.get("end"),i=n.x,a=1-r.y,o=r.x,u=1-n.y,c=this.get("padding"),l=s.toAllPadding(c),h=l[0],f=l[1],p=l[2],d=l[3];return{start:{x:i*(e.x-t.x)+t.x+d,y:a*(e.y-t.y)+t.y-p},end:{x:o*(e.x-t.x)+t.x-f,y:u*(e.y-t.y)+t.y+h}}},e.prototype._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},e.prototype._renderAxes=function(){var t=this.get("options").axes;if(!1!==t){var e=this.get("axisController");e.container=this.get("backPlot"),e.coord=this.get("coord"),e.options=t||{};var n=this.getXScale(),r=this.getYScales(),i=this.get("_id");e.createAxis(n,r,i)}},e.prototype._renderGuides=function(){var t=this.get("guideController");if(!s.isEmpty(t.options)){var e=this.get("coord");t.view=this,t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},e.prototype._bindEvents=function(){var t=new u.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},e.prototype._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},e.prototype._getScales=function(t){for(var e=this.get("geoms"),n={},r=0;r<e.length;r++){var i=e[r],a="x"===t?i.getXScale():i.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController").defs,n=0;n<t.length;n++){var r=t[n];if("interval"===r.get("type")){var i=r.getYScale(),a=i.field,o=i.min,s=i.max,u=i.type;e[a]&&e[a].min||"time"===u||(o>0?i.change({min:0}):s<=0&&i.change({max:0}))}}},e.prototype._setCatScalesRange=function(){var t=this.get("coord"),e=this.get("viewTheme"),n=this.getXScale(),r=this.getYScales(),i=[];n&&i.push(n),i=i.concat(r);var a=t.isPolar&&function(t){var e=t.startAngle,n=t.endAngle;return!(!s.isNil(e)&&!s.isNil(n)&&n-e<2*Math.PI)}(t),o=this.get("scaleController").defs;s.each(i,function(n){if((n.isCategory||n.isIdentity)&&n.values&&(!o[n.field]||!o[n.field].range)){var r=n.values.length,i=void 0;if(1===r)i=[.5,1];else{var s=0;i=a?t.isTransposed?[(s=1/r*e.widthRatio.multiplePie)/2,1-s/2]:[0,1-1/r]:[s=1/r*1/2,1-s]}n.range=i}})},e.prototype.getXScale=function(){var t=this.get("geoms"),e=null;return s.isEmpty(t)||(e=t[0].getXScale()),e},e.prototype.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n<t.length;n++){var r=t[n].getYScale();r&&-1===s.indexOf(e,r)&&e.push(r)}return e},e.prototype.getXY=function(t){var e=this.get("coord"),n=this._getScales("x"),r=this._getScales("y"),i=void 0,a=void 0;for(var o in t)n[o]&&(i=n[o].scale(t[o])),r[o]&&(a=r[o].scale(t[o]));return s.isNil(i)||s.isNil(a)?null:e.convert({x:i,y:a})},e.prototype.getSnapRecords=function(t){var e=this.get("geoms"),n=[];return s.each(e,function(e){var r=e.get("dataArray"),i=void 0;s.each(r,function(r){(i=e.findPoint(t,r))&&n.push(i)})}),n},e.prototype.addGeom=function(t){this.get("geoms").push(t),t.set("view",this);var e=this.get("viewContainer");t.set("container",e),t.set("animate",this.get("animate")),t.bindEvents()},e.prototype.removeGeom=function(t){var e=this.get("geoms");s.Array.remove(e,t),t.destroy()},e.prototype.createScale=function(t,e){var n=this.get("scales"),r=this.get("parent"),i=n[t];if(!e){var a=this.get("filteredData"),o=this._getFieldsForLegend();e=a.length&&-1===o.indexOf(t)?a:this.get("data")}var s=this.get("scaleController");if(i){if(i.sync){var u=s.createScale(t,e);this._syncScale(i,u)}}else{if((i=s.createScale(t,e)).sync&&r){var c=r.createScale(t,e);i=this._getSyncScale(c,i)}n[t]=i}return i},e.prototype._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return s.each(e,function(e){var n=e.getFieldsForLegend();t=t.concat(n)}),s.uniq(t)},e.prototype._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},e.prototype._syncScale=function(t,e){var n=s.union(t.values,e.values);if(e.isLinear){var r=Math.max(t.max,e.max),i=Math.min(t.min,e.min);t.max===r&&t.min===i||t.change({min:i,max:r,values:n})}n.length!==t.values.length&&t.change({values:n})},e.prototype.getFilteredValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(n[t]):e.slice(0)},e.prototype.getFilteredOutValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(function(e){return!n[t](e)}):[]},e.prototype.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e},e.prototype._getFilters=function(){return this.get("options").filters},e.prototype.execFilter=function(t){var e=this._getFilters();return e&&(t=t.filter(function(t){var n=!0;return s.each(e,function(e,r){if(e&&!(n=e(t[r],t)))return!1}),n})),t},e.prototype.axis=function(t,e){var n=this.get("options");if(!1===t)n.axes=!1;else{n.axes||(n.axes={});n.axes[t]=e}return this},e.prototype.guide=function(){return this.get("guideController")},e.prototype._getKeyFields=function(t){var e=[];s.each(t,function(t,n){t.key&&e.push(n)}),this.set("keyFields",e)},e.prototype.scale=function(t,e){var n=this.get("options").scales;return s.isObject(t)?s.mix(n,t):n[t]=e,this._getKeyFields(n),this},e.prototype.tooltip=function(t){return this.set("tooltipEnable",t),this},e.prototype.animate=function(t){return this.get("options").animate=t,this.set("animate",t),this},e.prototype.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},e.prototype.getViewsByPoint=function(t){var e=[],n=this.get("views");return i(this.get("coord"),t)&&e.push(this),s.each(n,function(n){n.get("visible")&&i(n.get("coord"),t)&&e.push(n)}),e},e.prototype.eachShape=function(t){var e=this,n=e.get("views"),r=e.get("canvas");s.each(n,function(e){e.eachShape(t)});var i=this.get("geoms");return s.each(i,function(n){var r=n.getShapes();s.each(r,function(r){var i=r.get("origin");if(s.isArray(i)){var a=i.map(function(t){return t._origin});t(a,r,n,e)}else{var o=i._origin;t(o,r,n,e)}})}),r.draw(),this},e.prototype.filterShape=function(t){return this.eachShape(function(e,n,r,i){t(e,n,r,i)?n.show():n.hide()}),this},e.prototype.clearInner=function(){this.set("scales",{});this.get("options").geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear()},e.prototype.clear=function(){return this.get("options").filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},e.prototype.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},e.prototype.resetCoord=function(){this._createCoord()},e.prototype.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},e.prototype.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},e.prototype._initData=function(t){var e=this.get("dataView");e&&(e.off("change",s.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",s.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},e.prototype._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView").rows;this.set("data",t),this.emit("afterchangedata"),this.repaint()},e.prototype.beforeRender=function(){var t=this.get("views");s.each(t,function(t){t.beforeRender()}),this.initView()},e.prototype.drawComponents=function(){var t=this.get("views");s.each(t,function(t){t.drawComponents()}),this._renderAxes(),this._renderGuides()},e.prototype.drawCanvas=function(t){if(!t){var e=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var r=this.get("isUpdate");s.each(e,function(t){h.execAnimation(t,r)}),h.execAnimation(this,r)}else n.draw()}},e.prototype.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},e.prototype.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this._initGeoms(),this._adjustScale()},e.prototype.paint=function(){var t=this.get("views");s.each(t,function(t){t.paint()});var e=this.get("data");s.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},e.prototype.changeVisible=function(t,e){var n=this.get("geoms");if(s.each(n,function(e){e.changeVisible(t,!0)}),this.get("axisController")&&this.get("axisController").changeVisible(t),this.get("guideController")&&this.get("guideController").changeVisible(t),!e){this.get("canvas").draw()}},e.prototype.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},e.prototype.destroy=function(){this._clearEvents();var e=this.get("dataView");e&&e.off("change",s.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},e}(a);t.exports=p},function(t,e,n){var r=n(0),i={splitPoints:function(t){var e=[],n=t.x,i=t.y;return i=r.isArray(i)?i:[i],r.each(i,function(t,i){var a={x:r.isArray(n)?n[i]:n,y:t};e.push(a)}),e}};t.exports=i},function(t,e,n){var r=n(10),i=n(9),a=n(71),o=[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[0,1,2,4,5,10];t.exports=function(t){var e=t.min,n=t.max,u=t.interval,c=t.minTickInterval,l=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,d=r(t.minLimit)?-1/0:t.minLimit,g=r(t.maxLimit)?1/0:t.maxLimit,y=(h+f)/2,v=y,m=t.snapArray?t.snapArray:p?o:s;if(e===d&&n===g&&p&&(u=(n-e)/(v-1)),r(e)&&(e=0),r(n)&&(n=0),n===e&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),r(u)){var x=(n-e)/(y-1);u=a.snapFactorTo(x,m,"ceil"),f!==h&&((v=parseInt((n-e)/u,10))>f&&(v=f),v<h&&(v=h),u=a.snapFactorTo((n-e)/(v-1),m,"floor"))}if(i(c)&&u<c&&(u=c),t.interval||f!==h)n=Math.min(a.snapMultiple(n,u,"ceil"),g),e=Math.max(a.snapMultiple(e,u,"floor"),d),v=Math.round((n-e)/u),e=a.fixedBase(e,u),n=a.fixedBase(n,u);else{y=parseInt(y,10);var b=(n+e)/2,w=a.snapMultiple(b,u,"ceil"),_=Math.floor((y-2)/2),S=w+_*u,M=void 0;M=y%2==0?w-_*u:w-(_+1)*u,S<n&&(S+=u),M>e&&(M-=u),n=a.fixedBase(S,u),e=a.fixedBase(M,u)}n=Math.min(n,g),e=Math.max(e,d),l.push(e);for(var A=1;A<v;A++){var C=a.fixedBase(u*A+e,u);C<n&&l.push(C)}return l[l.length-1]<n&&l.push(n),{min:e,max:n,interval:u,count:v,ticks:l}}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(13),a=n(9),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},e.prototype.getText=function(){return this.value.toString()},e.prototype.scale=function(t){return this.value!==t&&a(t)?t:this.range[0]},e.prototype.invert=function(){return this.value},e}(i);i.Identity=o,t.exports=o},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(74),a=n(3),o=n(10),s=n(20),u=n(13),c=n(32),l=n(146),h=n(75),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},e.prototype.init=function(){var e=this,n=e.values;if(n&&n.length){var r=[],i=1/0,s=i,u=0;a(n,function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);i>n?(s=i,i=n):s>n&&(s=n),u<n&&(u=n),r.push(n)}),n.length>1&&(e.minTickInterval=s-i),(o(e.min)||e._toTimeStamp(e.min)>i)&&(e.min=i),(o(e.max)||e._toTimeStamp(e.max)<u)&&(e.max=u)}t.prototype.init.call(this)},e.prototype.calculateTicks=function(){var t=this.min,e=this.max,n=this.tickCount,r=this.tickInterval;return l({min:t,max:e,minCount:n,maxCount:n,interval:r,minInterval:this.minTickInterval}).ticks},e.prototype.getText=function(t){var e=this.formatter;return t=this.translate(t),t=e?e(t):i.format(t,this.mask)},e.prototype.scale=function(e){return s(e)&&(e=this.translate(e)),t.prototype.scale.call(this,e)},e.prototype.translate=function(t){return this._toTimeStamp(t)},e.prototype._toTimeStamp=function(t){return h.toTimeStamp(t)},e}(c);u.Time=f,t.exports=f},function(t,e,n){function r(t){return new Date(t).getFullYear()}function i(t){return new Date(t,0,1).getTime()}function a(t){return new Date(t).getMonth()}function o(t,e){return new Date(t,e,1).getTime()}var s=n(71),u=n(10),c=[1,2,4,6,8,12],l=36e5,h=864e5;t.exports=function(t){var e=t.minInterval,n=[],f=t.min,p=t.max,d=t.interval,g=void 0;if(p===f&&(p=f+h),u(d)){var y=p-f,v=h,m=365*v;d=parseInt(y/(t.maxCount||6),10),e&&e>d&&(d=e);var x=d/m,b=r(f);if(x>.51){for(var w=Math.ceil(x),_=r(p),S=b;S<=_+w;S+=w)n.push(i(S));d=null}else if(x>.0834){for(var M=Math.ceil(x/.0834),A=a(f),C=function(t,e){var n=r(t),i=r(e),o=a(t);return 12*(i-n)+(a(e)-o)%12}(f,p),P=0;P<=C+M;P+=M)n.push(o(b,P+A));d=null}else if(d>.5*v){var k=new Date(f),T=k.getFullYear(),O=k.getMonth(f),I=k.getDate(),E=Math.ceil(d/v),L=function(t,e){return Math.ceil((e-t)/h)}(f,p);d=E*v;for(var D=0;D<L+E;D+=E)n.push(new Date(T,O,I+D).getTime())}else if(d>l){var j=new Date(f),F=j.getFullYear(),R=j.getMonth(f),B=j.getDate(),N=j.getHours(),Y=s.snapTo(c,Math.ceil(d/l)),z=function(t,e){return Math.ceil((e-t)/l)}(f,p);d=Y*l;for(var X=0;X<=z+Y;X+=Y)n.push(new Date(F,R,B,N+X).getTime())}else if(d>6e4){var V=function(t,e){return Math.ceil((e-t)/6e4)}(f,p),W=Math.ceil(d/6e4);d=6e4*W;for(var H=0;H<=V+W;H+=W)n.push(f+6e4*H)}else{d<1e3&&(d=1e3),f=1e3*Math.floor(f/1e3);var q=Math.ceil((p-f)/1e3),G=Math.ceil(d/1e3);d=1e3*G;for(var U=0;U<q+G;U+=G)n.push(f+1e3*U)}}if(!n.length){f=1e3*Math.floor(f/1e3),g=((p=1e3*Math.ceil(p/1e3))-f)/d;for(var Z=0;Z<=g;Z++)n.push(s.fixedBase(d*Z+f,d))}return{max:p,min:f,interval:d,ticks:n,count:n.length}}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Date")}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(13),a=n(72),o=n(74),s=n(73),u=n(75),c=n(3),l=n(9),h=n(31),f=n(20),p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},e.prototype.init=function(){var t=this,e=this.values;c(e,function(n,r){e[r]=t._toTimeStamp(n)}),this.sortable&&e.sort(function(t,e){return t-e}),t.ticks||(t.ticks=this.calculateTicks())},e.prototype.calculateTicks=function(){var t=this.tickCount,e=void 0;if(t){e=s({maxCount:t,data:this.values,isRounding:this.isRounding}).ticks}else e=this.values;return e},e.prototype.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=l(t)&&t<this.values.length?t:NaN),e},e.prototype.scale=function(t){var e=this.rangeMin(),n=this.rangeMax(),r=this.translate(t),i=void 0;return i=1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0,e+i*(n-e)},e.prototype.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),e=r?r(e):o.format(e,this.mask)},e.prototype.getTicks=function(){var t=this,e=this.ticks,n=[];return c(e,function(e){var r=void 0;r=h(e)?e:{text:f(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(r)}),n},e.prototype._toTimeStamp=function(t){return u.toTimeStamp(t)},e}(a);i.TimeCat=p,t.exports=p},function(t,e,n){function r(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(3),o=n(13),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":i(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":i(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},e.prototype.calculateTicks=function(){var t=this.base,e=void 0;if(this.min<0)throw new Error("The minimum value must be greater than zero!");var n=r(t,this.max);if(this.min>0)e=Math.floor(r(t,this.min));else{var i=this.values,o=this.max;a(i,function(t){t>0&&t<o&&(o=t)}),o===this.max&&(o=this.max/t),o>1&&(o=1),e=Math.floor(r(t,o)),this._minTick=e,this.positiveMin=o}for(var s=n-e,u=this.tickCount,c=Math.ceil(s/u),l=[],h=e;h<n+c;h+=c)l.push(Math.pow(t,h));return 0===this.min&&l.unshift(0),l},e.prototype._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i=this.base,a=this.positiveMin;a&&(n=1*a/i);return t<a?t/a/(r(i,e)-r(i,n)):(r(i,t)-r(i,n))/(r(i,e)-r(i,n))},e.prototype.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},e.prototype.invert=function(t){var e=this.base,n=r(e,this.max),i=this.rangeMin(),a=this.rangeMax()-i,o=void 0,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(n-(o=r(e,s/e)))*a;if(t<u)return t/u*s}else o=r(e,this.min);var c=(t-i)/a*(n-o)+o;return Math.pow(e,c)},e}(n(32));o.Log=s,t.exports=s},function(t,e,n){function r(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=n(13),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":i(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":i(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="pow",this.tickCount=10,this.exponent=2},e.prototype.calculateTicks=function(){var t=this.exponent,e=void 0,n=Math.ceil(r(t,this.max));if((e=this.min>=0?Math.floor(r(t,this.min)):0)>n){var i=n;n=e,e=i}for(var a=n-e,o=this.tickCount,s=Math.ceil(a/o),u=[],c=e;c<n+s;c+=s)u.push(Math.pow(c,t));return u},e.prototype._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent;return(r(i,t)-r(i,n))/(r(i,e)-r(i,n))},e.prototype.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},e.prototype.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,i=r(n,this.max),a=r(n,this.min),o=e*(i-a)+a;return Math.pow(o,n)},e}(n(32));a.Pow=o,t.exports=o},function(t,e,n){var r=n(1),i=n(89),a=n(90),o=n(206),s=n(231),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},r.extend(u,a),r.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n=this.getPointByClient(e.clientX,e.clientY),r=this.getShape(n.x,n.y,e),i=void 0;if("mousemove"===t){var a=this.get("preShape");if(a&&a!==r){var o=this._getEventObj("mouseleave",e,n,a);(i=this.getEmitter(a,e))&&i.emit("mouseleave",o)}if(r){var s=this._getEventObj("mousemove",e,n,r);if((i=this.getEmitter(r,e))&&i.emit("mousemove",s),a!==r){var u=this._getEventObj("mouseenter",e,n,r);i&&i.emit("mouseenter",u,e)}}else{var c=this._getEventObj("mousemove",e,n,this);this.emit("mousemove",c)}this.set("preShape",r)}else{var l=this._getEventObj(t,e,n,r||this);(i=this.getEmitter(r,e))&&i!==this&&i.emit(t,l),this.emit(t,l)}var h=this.get("el");r&&!r.get("destroyed")&&(h.style.cursor=r.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");r.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseover","mouseup","click","dblclick"],function(n){e.addEventListener(n,function(e){t._triggerEvent(n,e)},!1)}),e.addEventListener("touchstart",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio());var t=s[this.get("renderer")||"canvas"];this._cfg.renderer=t,this._cfg.canvas=this;var e=new o(this);this._cfg.timeline=e},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el").getBoundingClientRect(),r=this.get("pixelRatio")||1;return{clientX:t/r+n.left,clientY:e/r+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){t.exports={contains:n(77),firstValue:n(153),flatten:n(154),getRange:n(155),merge:n(156),pull:n(157),pullAt:n(79),reduce:n(158),remove:n(159),union:n(160),uniq:n(161),values:n(162)}},function(t,e,n){var r=n(10),i=n(7);t.exports=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a][e];if(!r(o)){n=i(o)?o[0]:o;break}}return n}},function(t,e,n){var r=n(7),i=n(3);t.exports=function(t){if(!r(t))return t;var e=[];return i(t,function(t){r(t)?i(t,function(t){e.push(t)}):e.push(t)}),e}},function(t,e,n){var r=n(78),i=n(7);t.exports=function(t){if(!(t=r(t,function(t){return!isNaN(t)})).length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:a}}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=i.call(t,o))>-1;)r.call(t,s,1);return t}},function(t,e,n){var r=n(7),i=n(33),a=n(3);t.exports=function(t,e,n){if(!r(t)&&!i(t))return t;var o=n;return a(t,function(t,n){o=e(o,t,n)}),o}},function(t,e,n){var r=n(11),i=n(79);t.exports=function(t,e){var n=[];if(!r(t))return n;for(var a=-1,o=[],s=t.length;++a<s;){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return i(t,o),n}},function(t,e,n){var r=n(3),i=n(44);t.exports=function(){var t=new Set,e=[];return r(arguments,function(n){e=i(n),r(e,function(e){t.add(e)})}),Array.from(t)}},function(t,e,n){var r=n(77);t.exports=function(t){var e=[];return t.forEach(function(t){r(e,t)||e.push(t)}),e}},function(t,e,n){var r=n(3),i=n(10),a=n(7);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];i(u)||(a(u)||(u=[u]),r(u,function(t){o[t]||(n.push(t),o[t]=!0)}))}return n}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){t.exports={clamp:n(166),fixedBase:n(167),isDecimal:n(168),isEven:n(169),isInteger:n(170),isNegative:n(171),isNumberEqual:n(172),isOdd:n(173),isPositive:n(174),maxBy:n(175),minBy:n(176),mod:n(177),toDegree:n(178),toInt:n(80),toInteger:n(80),toRadian:n(179)}},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e){t.exports=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%1!=0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%2==0}},function(t,e,n){var r=n(9),i=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1==0};t.exports=i},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t<0}},function(t,e){t.exports=function(t,e){return Math.abs(t-e)<1e-5}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t%2!=0}},function(t,e,n){var r=n(9);t.exports=function(t){return r(t)&&t>0}},function(t,e,n){var r=n(7),i=n(15),a=n(3);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=i(e)?e(t):t[e])>o&&(n=t,o=s)}),n}}},function(t,e,n){var r=n(7),i=n(15),a=n(3);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=i(e)?e(t):t[e])<o&&(n=t,o=s)}),n}}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e,n){var r={lc:n(181),lowerCase:n(81),lowerFirst:n(70),substitute:n(182),uc:n(183),upperCase:n(82),upperFirst:n(184)};t.exports=r},function(t,e,n){t.exports=n(81)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}},function(t,e,n){t.exports=n(82)},function(t,e,n){var r=n(22);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(12),i={getType:n(83),isArray:n(7),isArrayLike:n(11),isBoolean:n(186),isFunction:n(15),isNil:n(10),isNull:n(187),isNumber:n(9),isObject:n(31),isObjectLike:n(43),isPlainObject:n(33),isPrototype:n(84),isType:r,isUndefined:n(188),isString:n(20),isRegExp:n(189)};["Arguments","Date","Error"].forEach(function(t){i["is"+t]=function(e){return r(e,t)}}),t.exports=i},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"Boolean")}},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(12);t.exports=function(t){return r(t,"RegExp")}},function(t,e,n){var r=n(15),i=n(44),a=n(30);t.exports=function(t){for(var e=i(arguments),n=1;n<e.length;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return void 0===t?"undefined":r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":r(t)},a=n(7);t.exports=function t(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)return e;var n=void 0;if(a(e)){n=[];for(var r=0,o=e.length;r<o;r++)"object"===i(e[r])&&null!=e[r]?n[r]=t(e[r]):n[r]=e[r]}else{n={};for(var s in e)"object"===i(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s]}return n}},function(t,e,n){function r(t,e,n,s){n=n||0,s=s||o;for(var u in e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&i(c)?(i(t[u])||(t[u]={}),n<s?r(t[u],c,n+1,s):t[u]=e[u]):a(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var i=n(33),a=n(7),o=5;t.exports=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var i=t[0],a=1;a<e;a++)r(i,t[a]);return i}},function(t,e,n){var r=n(15),i=n(30);t.exports=function(t,e,n,a){r(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t}},function(t,e,n){var r=n(85);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){var r=n(10),i=n(11),a=n(83),o=n(84),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(r(t))return!0;if(i(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e,n){var r=n(15),i=n(87);t.exports=function(t,e,n){return r(n)?!!n(t,e):i(t,e)}},function(t,e,n){var r=n(3),i=n(11);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,function(t,r){n.push(e(t,r))}),n}},function(t,e,n){var r=n(3),i=n(33),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,function(e){a.call(t,e)&&(n[e]=t[e])}),n}},function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var r=n(1);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){if(0===arguments.length)return this._attrs;if(r.isObject(t)){for(var n in t)this._setAttr(n,t[n]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return 2===arguments.length?(this._setAttr(t,e),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function i(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){r(e)||(i(e)?(t[0]*=e[0],t[4]*=e[4]):s.multiply(t,t,e))}var o=n(1),s=n(6).mat3,u=n(6).vec3;t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return s.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return s.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return s.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",s.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n=void 0;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),u.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var r=[1,0,0,0,1,0,0,0,1];return o.each(n,function(t){s.multiply(r,t.attr("matrix"),r)}),r},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){a(t,e.getTotalMatrix())}a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(i(e))t[0]/=e[0],t[1]/=e[4];else{var n=s.invert([],e);n&&u.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");r(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var r=n(1),i=n(6),a={delay:"delay",rotate:"rotate"};t.exports={animate:function(t,e,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.setSilent("timeline",u));var c=this.get("animators")||[];u._timer||u.initTimer(),r.isNumber(o)&&(s=o,o=null),r.isFunction(n)?(o=n,n="easeLinear"):n=n||"easeLinear";var l=function(t,e){var n={matrix:null,attrs:{}},r=e._attrs;for(var o in t)"transform"===o?n.matrix=i.transform(e.getMatrix(),t[o]):"rotate"===o?n.matrix=i.transform(e.getMatrix(),[["r",t[o]]]):"matrix"===o?n.matrix=t[o]:a[o]||r[o]===t[o]||(n.attrs[o]=t[o]);return n}(t,this),h={fromAttrs:function(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}(l,this),toAttrs:l.attrs,fromMatrix:r.clone(this.getMatrix()),toMatrix:l.matrix,duration:e,easing:n,callback:o,delay:s,startTime:u.getTime(),id:r.uniqueId()};c.length>0?c=function(t,e){var n=Object.prototype.hasOwnProperty;return r.each(e.toAttrs,function(e,i){r.each(t,function(t){n.call(t.toAttrs,i)&&(delete t.toAttrs[i],delete t.fromAttrs[i])})}),t}(c,h):u.addAnimator(this),c.push(h),this.setSilent("animators",c),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");r.each(e,function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return r.each(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null}),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var r=n(4);r.Arc=n(94),r.Circle=n(95),r.Dom=n(96),r.Ellipse=n(97),r.Fan=n(98),r.Image=n(99),r.Line=n(100),r.Marker=n(48),r.Path=n(101),r.Polygon=n(102),r.Polyline=n(103),r.Rect=n(104),r.Text=n(105),t.exports=r},function(t,e,n){function r(t,e,n){return n.createPath(l),l.isPointInPath(t,e)}var i=n(1),a=n(46),o=n(6).mat3,s=n(6).vec2,u=n(6).vec3,c={arc:n(35),ellipse:n(93),line:n(34)},l=i.createDom('<canvas width="500" height="500"></canvas>').getContext("2d"),h={arc:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(r,i,o,s,u,c,l,t,e)},circle:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?a.circle(r,i,o,t,e)||a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e):u?a.circle(r,i,o,t,e):!!c&&a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e)},dom:function(t,e){var n=this._cfg.el.getBBox();return a.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,r=this.hasFill(),i=this.hasStroke(),s=n.x,c=n.y,l=n.rx,h=n.ry,f=this.getHitLineWidth(),p=l>h?l:h,d=l>h?1:l/h,g=l>h?h/l:1,y=[t,e,1],v=[1,0,0,0,1,0,0,0,1];o.scale(v,v,[d,g]),o.translate(v,v,[s,c]);var m=o.invert([],v);return u.transformMat3(y,y,m),r&&i?a.circle(0,0,p,y[0],y[1])||a.arcline(0,0,p,0,2*Math.PI,!1,f,y[0],y[1]):r?a.circle(0,0,p,y[0],y[1]):!!i&&a.arcline(0,0,p,0,2*Math.PI,!1,f,y[0],y[1])},fan:function(t,e){function n(){var t=c.arc.nearAngle(b,y,v,m);if(i.isNumberEqual(b,t)){var e=s.squaredLength(x);if(d*d<=e&&e<=g*g)return!0}return!1}function r(){var n=o.getHitLineWidth(),r={x:Math.cos(y)*d+f,y:Math.sin(y)*d+p},i={x:Math.cos(y)*g+f,y:Math.sin(y)*g+p},s={x:Math.cos(v)*d+f,y:Math.sin(v)*d+p},u={x:Math.cos(v)*g+f,y:Math.sin(v)*g+p};return!!(a.line(r.x,r.y,i.x,i.y,n,t,e)||a.line(s.x,s.y,u.x,u.y,n,t,e)||a.arcline(f,p,d,y,v,m,n,t,e)||a.arcline(f,p,g,y,v,m,n,t,e))}var o=this,u=o.hasFill(),l=o.hasStroke(),h=o._attrs,f=h.x,p=h.y,d=h.rs,g=h.re,y=h.startAngle,v=h.endAngle,m=h.clockwise,x=[t-f,e-p],b=s.angleTo([1,0],x);return u&&l?n()||r():u?n():!!l&&r()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,i=n.y,o=n.width,s=n.height;return a.rect(r,i,o,s,t,e)},line:function(t,e){var n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(r,i,o,s,u,t,e)},path:function(t,e){function n(){if(!i.isEmpty(o)){for(var n=a.getHitLineWidth(),r=0,s=o.length;r<s;r++)if(o[r].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?r(t,e,a)||n():s?r(t,e,a):!!u&&n()},marker:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(r,i,o+s/2,t,e)},polygon:function(t,e){function n(){var n=i._attrs.points;if(n.length<2)return!1;var r=i.getHitLineWidth(),o=n.slice(0);return n.length>=3&&o.push(n[0]),a.polyline(o,r,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var i=n.lineWidth;return a.polyline(r,i,t,e)}return!1},rect:function(t,e){function n(){var n=i._attrs,r=n.x,o=n.y,s=n.width,u=n.height,c=n.radius,l=i.getHitLineWidth();if(0===c){var h=l/2;return a.line(r-h,o,r+s+h,o,l,t,e)||a.line(r+s,o-h,r+s,o+u+h,l,t,e)||a.line(r+s+h,o+u,r-h,o+u,l,t,e)||a.line(r,o+u+h,r,o-h,l,t,e)}return a.line(r+c,o,r+s-c,o,l,t,e)||a.line(r+s,o+c,r+s,o+u-c,l,t,e)||a.line(r+s-c,o+u,r+c,o+u,l,t,e)||a.line(r,o+u-c,r,o+c,l,t,e)||a.arcline(r+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||a.arcline(r+s-c,o+u-c,c,0,.5*Math.PI,!1,l,t,e)||a.arcline(r+c,o+u-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||a.arcline(r+c,o+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return a.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=h[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function r(t,e,n){var r=e.startTime;if(n<r+e.delay||e.isPaused)return!1;var o=void 0,u=e.duration,h=e.easing;if(n=n-r-e.delay,e.toAttrs.repeat)o=n%u/u,o=s[h](o);else{if(!((o=n/u)<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;o=s[h](o)}return function(t,e,n){var r={},o=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var h=void 0;for(var f in o)if(!i.isEqual(s[f],o[f]))if("path"===f){var p=o[f],d=s[f];p.length>d.length?(p=a.parsePathString(o[f]),d=a.parsePathString(s[f]),d=a.fillPathByDiff(d,p),d=a.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=a.parsePathString(o[f]),d=a.parsePathString(s[f]),d=a.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],x=0;x<y.length;x++)i.isNumber(y[x])&&v&&i.isNumber(v[x])?(h=c(v[x],y[x]),m.push(h(n))):m.push(y[x]);r[f].push(m)}}else h=c(s[f],o[f]),r[f]=h(n);if(u){var b=l(e.fromMatrix,u)(n);t.setMatrix(b)}t.attr(r)}}(t,e,o),!1}var i=n(1),a=n(49),o=n(106),s=n(134),u=n(68),c=u.interpolate,l=u.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};i.augment(h,{initTimer:function(){var t=this,e=this,n=!1,i=void 0,a=void 0,s=void 0;e._timer=o.timer(function(o){if(e._current=o,t._animators.length>0){for(var u=t._animators.length-1;u>=0;u--)if((i=t._animators[u]).get("destroyed"))e.removeAnimator(u);else{if(!i.get("pause").isPaused)for(var c=(a=i.get("animators")).length-1;c>=0;c--)s=a[c],(n=r(i,s,o))&&(a.splice(c,1),n=!1,s.callback&&s.callback());0===a.length&&e.removeAnimator(u)}t.canvas.draw()}})},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(t){t.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){"use strict";var r=n(50);e.a=function(t,e,n){var i=new r.a;return e=null==e?0:+e,i.restart(function(n){i.stop(),t(n+e)},e,n),i}},function(t,e,n){"use strict";var r=n(50);e.a=function(t,e,n){var i=new r.a,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Object(r.b)():+n,i.restart(function r(o){o+=a,i.restart(r,a+=e,n),t(o)},e,n),i)}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return a});var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*i)},e.c=function(t){return Math.sin(t*i)},e.b=function(t){return(1-Math.cos(r*t))/2};var r=Math.PI,i=r/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";function r(t){return(t=+t)<i?p*t*t:t<o?p*(t-=a)*t+s:t<c?p*(t-=u)*t+l:p*(t-=h)*t+f}e.a=function(t){return 1-r(1-t)},e.c=r,e.b=function(t){return((t*=2)<=1?1-r(1-t):r(t-1)+1)/2};var i=4/11,a=6/11,o=8/11,s=.75,u=9/11,c=10/11,l=.9375,h=21/22,f=63/64,p=1/i/i},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return a});var r=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),a=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return o});var r=2*Math.PI,i=function t(e,n){function i(t){return e*Math.pow(2,10*--t)*Math.sin((a-t)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3),a=function t(e,n){function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3),o=function t(e,n){function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((a-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((a+t)/n))/2}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return i.amplitude=function(e){return t(e,n*r)},i.period=function(n){return t(e,n)},i}(1,.3)},function(t,e,n){"use strict";function r(t){if(t instanceof a)return new a(t.l,t.a,t.b,t.opacity);if(t instanceof h){var e=t.h*d.a;return new a(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof p.b||(t=Object(p.h)(t));var n=c(t.r),r=c(t.g),i=c(t.b),s=o((.4124564*n+.3575761*r+.1804375*i)/g),u=o((.2126729*n+.7151522*r+.072175*i)/y);return new a(116*u-16,500*(s-u),200*(u-o((.0193339*n+.119192*r+.9503041*i)/v)),t.opacity)}function i(t,e,n,i){return 1===arguments.length?r(t):new a(t,e,n,null==i?1:i)}function a(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function o(t){return t>w?Math.pow(t,1/3):t/b+m}function s(t){return t>x?t*t*t:b*(t-m)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof a||(t=r(t));var e=Math.atan2(t.b,t.a)*d.b;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new h(t,e,n,null==i?1:i)}function h(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=i,e.b=l;var f=n(53),p=n(52),d=n(107),g=.95047,y=1,v=1.08883,m=4/29,x=6/29,b=3*x*x,w=x*x*x;Object(f.a)(a,i,Object(f.b)(p.a,{brighter:function(t){return new a(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new a(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=y*s(t),e=g*s(e),n=v*s(n),new p.b(u(3.2404542*e-1.5371385*t-.4985314*n),u(-.969266*e+1.8760108*t+.041556*n),u(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(f.a)(h,l,Object(f.b)(p.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof i)return new i(t.h,t.s,t.l,t.opacity);t instanceof o.b||(t=Object(o.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(g*r+p*e-d*n)/(g+p-d),u=r-a,c=(f*(n-a)-l*u)/h,y=Math.sqrt(c*c+u*u)/(f*a*(1-a)),v=y?Math.atan2(c,u)*s.b-120:NaN;return new i(v<0?v+360:v,y,a,t.opacity)}(t):new i(t,e,n,null==r?1:r)}function i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=r;var a=n(53),o=n(52),s=n(107),u=-.14861,c=1.78277,l=-.29227,h=-.90649,f=1.97294,p=f*h,d=f*c,g=c*l-h*u;Object(a.a)(i,r,Object(a.b)(o.a,{brighter:function(t){return t=null==t?o.c:Math.pow(o.c,t),new i(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o.d:Math.pow(o.d,t),new i(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new o.b(255*(e+n*(u*r+c*i)),255*(e+n*(l*r+h*i)),255*(e+n*(f*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],c=[];return o=t(o),s=t(s),function(t,r,a,o,s,u){if(t!==a||r!==o){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(i.a)(t,a)},{i:c-2,x:Object(i.a)(r,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,r)-2,x:Object(i.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+r)}(o.rotate,s.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,r)-2,x:Object(i.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+r)}(o.skewX,s.skewX,u,c),function(t,e,n,r,o,s){if(t!==n||e!==r){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(i.a)(t,n)},{i:u-2,x:Object(i.a)(e,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,c),o=s=null,function(t){for(var e,n=-1,r=c.length;++n<r;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var i=n(38),a=n(223),o=r(a.a,"px, ","px)","deg)"),s=r(a.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){return"none"===t?s.b:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.b=function(t){return null==t?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)};var r,i,a,o,s=n(224)},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var r=180/Math.PI,i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,i,a,o){var s,u,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(u=Math.sqrt(n*n+i*i))&&(n/=u,i/=u,c/=u),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(c)*r,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";function r(t){return((t=Math.exp(t))+1/t)/2}var i=Math.SQRT2;e.a=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],c=e[0],l=e[1],h=e[2],f=c-o,p=l-s,d=f*f+p*p;if(d<1e-12)a=Math.log(h/u)/i,n=function(t){return[o+t*f,s+t*p,u*Math.exp(i*t*a)]};else{var g=Math.sqrt(d),y=(h*h-u*u+4*d)/(2*u*2*g),v=(h*h-u*u-4*d)/(2*h*2*g),m=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-m)/i,n=function(t){var e=t*a,n=r(m),c=u/(2*g)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(i*e+m)-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*f,s+c*p,u*n/r(i*e+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.d)(e)).h,(n=Object(i.d)(n)).h),o=Object(a.a)(e.s,n.s),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var i=n(19),a=n(25);e.a=r(a.c);var o=r(a.a)},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(i.a)((t=Object(r.e)(t)).l,(e=Object(r.e)(e)).l),a=Object(i.a)(t.a,e.a),o=Object(i.a)(t.b,e.b),s=Object(i.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=a(e),t.b=o(e),t.opacity=s(e),t+""}};var r=n(19),i=n(25)},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(i.c)(e)).h,(n=Object(i.c)(n)).h),o=Object(a.a)(e.c,n.c),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var i=n(19),a=n(25);e.a=r(a.c);var o=r(a.a)},function(t,e,n){"use strict";function r(t){return function e(n){function r(e,r){var o=t((e=Object(i.b)(e)).h,(r=Object(i.b)(r)).h),s=Object(a.a)(e.s,r.s),u=Object(a.a)(e.l,r.l),c=Object(a.a)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,r.gamma=e,r}(1)}n.d(e,"a",function(){return o});var i=n(19),a=n(25);e.b=r(a.c);var o=r(a.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){t.exports={canvas:n(232),svg:n(235)}},function(t,e,n){t.exports={painter:n(233)}},function(t,e,n){var r=n(1),i=n(234),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return null;var n=r.uniqueId("canvas_"),i=r.createDom('<canvas id="'+n+'"></canvas>');return e.appendChild(i),this.type="canvas",this.canvas=i,this.context=i.getContext("2d"),this.toDraw=!1,this}return t.prototype.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},t.prototype.draw=function(t){function e(){n.animateHandler=r.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()}),n.beforeDraw();try{n._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},t.prototype.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},t.prototype._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var r=0;r<e.length;r++)n=e[r],e[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},t.prototype._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},t.prototype.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},t.prototype.restoreContext=function(){this.context.restore()},t.prototype.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){function r(t,e){var n=t.match(l);i.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}var i=n(1),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,s=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,u=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,h={};t.exports={parsePath:function(t){return t=t||[],i.isArray(t)?t:i.isString(t)?(t=t.match(a),i.each(t,function(e,n){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(i.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var a=s.exec(t),o=i.mod(i.toRadian(parseFloat(a[1])),2*Math.PI),u=a[2],c=e.getBBox(),l=void 0,h=void 0;o>=0&&o<.5*Math.PI?(l={x:c.minX,y:c.minY},h={x:c.maxX,y:c.maxY}):.5*Math.PI<=o&&o<Math.PI?(l={x:c.maxX,y:c.minY},h={x:c.minX,y:c.maxY}):Math.PI<=o&&o<1.5*Math.PI?(l={x:c.maxX,y:c.maxY},h={x:c.minX,y:c.minY}):(l={x:c.minX,y:c.maxY},h={x:c.maxX,y:c.minY});var f=Math.tan(o),p=f*f,d=(h.x-l.x+f*(h.y-l.y))/(p+1)+l.x,g=f*(h.x-l.x+f*(h.y-l.y))/(p+1)+l.y,y=n.createLinearGradient(l.x,l.y,d,g);return r(u,y),y}(t,e,n);if("r"===t[0])return function(t,e,n){var i=u.exec(t),a=parseFloat(i[1]),o=parseFloat(i[2]),s=parseFloat(i[3]),c=i[4];if(0===s){var h=c.match(l);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,y=n.createRadialGradient(f.minX+p*a,f.minY+d*o,s*g,f.minX+p/2,f.minY+d/2,g);return r(c,y),y}(t,e,n);if("p"===t[0])return function(t,e,n){function r(){i=n.createPattern(a,s),e.setSilent("pattern",i),e.setSilent("patternSource",t)}if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var i=void 0,a=void 0,o=c.exec(t),s=o[1],u=o[2];switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return a=new Image,u.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=u,a.complete?r():(a.onload=r,a.src=a.src),i}(t,e,n)}return t}},numberToColor:function(t){var e=h[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,h[t]=e}return e}}},function(t,e,n){t.exports={painter:n(236),getShape:n(243)}},function(t,e,n){var r=n(1),i=n(24).parseRadius,a=n(48),o=n(237),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return null;var n=r.uniqueId("canvas_"),i=r.createDom('<svg id="'+n+'"></svg>');return e.appendChild(i),this.type="svg",this.canvas=i,this.context=new o(i),this.toDraw=!1,this}return t.prototype.draw=function(t){function e(){n.animateHandler=r.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()});try{n._drawChildren(t._cfg.children,!1)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},t.prototype.drawSync=function(t){this._drawChildren(t._cfg.children,!1)},t.prototype._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(!n.el&&n.attrs&&(e=!0),n.tobeRemoved&&(r.each(n.tobeRemoved,function(t){t.parentNode&&t.parentNode.removeChild(t)}),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(n.children,e))},t.prototype._drawChildren=function(t,e){var n=void 0;if(t)for(var r=0;r<t.length;r++)(n=t[r]).isGroup?this._drawGroup(n,e):this._drawShape(n,e)},t.prototype._drawShape=function(t,e){var n=t._attrs,r=t._cfg,i=r.el;r.removed||r.destroyed?i&&i.parentNode.removeChild(r.el):(e&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null),!i&&r.parent&&(this._createDom(t),this._updateShape(t)),i=r.el,!1!==r.visible?(r.visible&&i.hasAttribute("visibility")&&i.removeAttribute("visibility"),r.hasUpdate&&this._updateShape(t),n.clip&&n.clip._cfg.hasUpdate&&this._updateShape(n.clip)):i.setAttribute("visibility","hidden"))},t.prototype._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e)),"rect"===t.type&&t._cfg.el.setAttribute("d",this._assembleRect(e));for(var i in e)e[i]!==n[i]&&this._setAttribute(t,i,e[i]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},t.prototype._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map(function(t){return t[0]+","+t[1]})).join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var c=null;c="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+c+")"),t._cfg[e]=c}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),u[e]&&o.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},t.prototype._createDom=function(t){var e=s[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var r=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=r,t._cfg.parent&&t._cfg.parent.get("el").appendChild(r),t._cfg.attrs={},"text"===t.type?(r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||(n.strokeStyle="none"),n.fill||n.fillStyle||(n.fillStyle="none")),r},t.prototype._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):a.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},t.prototype._assembleRect=function(t){var e=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var u=i(s);r.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;return[["M "+(e+u.r1)+","+n],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},t.prototype._formatPath=function(t){return~(t=t.map(function(t){return t.join(" ")}).join("")).indexOf("NaN")?"":t},t.prototype._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);n.setAttribute("transform","matrix("+r.join(",")+")")},t.prototype._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},t.prototype._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),l=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,d=n.re,g=e(s,n.rs,a),y=e(u,n.rs,a);n.rs>0?(o.push("M "+l.x+","+l.y),o.push("L "+y.x+","+y.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+d+","+d+",0,"+f+","+h+","+l.x+","+l.y),n.rs>0?o.push("L "+y.x+","+y.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},t.prototype._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,r=t._cfg.el;this._setFont(t);for(var i in e)if(e[i]!==n[i]){if("text"===i){this._setText(t,""+e[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(t,i,e[i]);continue}if("matrix"===i){this._setTransform(t);continue}u[i]&&r.setAttribute(u[i],e[i])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},t.prototype._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},t.prototype._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,function(t,e){0===e?"alphabetic"===i?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===i?u+='<tspan x="'+a+'" dy="'+s+'em">'+t+"</tspan>":"middle"===i?u+='<tspan x="'+a+'" dy="0">'+t+"</tspan>":"bottom"===i?u+='<tspan x="'+a+'" dy="-'+(s+.2)+'em">'+t+"</tspan>":"hanging"===i&&(u+='<tspan x="'+a+'" dy="-0.2em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"}),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},t.prototype._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},t.prototype._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(u[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(u[e],"url(#"+o+")")}else r.setAttribute(u[e],n);else r.setAttribute(u[e],"none")},t.prototype._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor},i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")},t}();t.exports=h},function(t,e,n){var r=n(1),i=n(238),a=n(239),o=n(240),s=n(241),u=n(242),c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=document.createElementNS("http://www.w3.org/2000/svg","defs"),i=r.uniqueId("defs_");n.id=i,e.appendChild(n),this.children=[],this.defaultArrow={},this.el=n,this.canvas=e}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},t.prototype.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},t.prototype.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},function(t,e,n){function r(t){var e=t.match(s);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),i.each(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var i=n(1),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=null,s=i.uniqueId("gradient_");return"l"===e.toLowerCase()[0]?function(t,e){var n=a.exec(t),o=i.mod(i.toRadian(parseFloat(n[1])),2*Math.PI),s=n[2],u=void 0,c=void 0;o>=0&&o<.5*Math.PI?(u={x:0,y:0},c={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(u={x:1,y:0},c={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(u={x:1,y:1},c={x:0,y:0}):(u={x:0,y:1},c={x:1,y:0});var l=Math.tan(o),h=l*l,f=(c.x-u.x+l*(c.y-u.y))/(h+1)+u.x,p=l*(c.x-u.x+l*(c.y-u.y))/(h+1)+u.y;e.setAttribute("x1",u.x),e.setAttribute("y1",u.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=r(s)}(e,n=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=o.exec(t),i=parseFloat(n[1]),a=parseFloat(n[2]),s=parseFloat(n[3]),u=n[4];e.setAttribute("cx",i),e.setAttribute("cy",a),e.setAttribute("r",s),e.innerHTML=r(u)}(e,n=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),n.setAttribute("id",s),this.el=n,this.id=s,this.cfg=e,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var r=n(1),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="shadow";var n=document.createElementNS("http://www.w3.org/2000/svg","filter");return this.el=n,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,n),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),function(t){if(i[t]!==e[t])return n=!1,!1}),n},t.prototype.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=a},function(t,e,n){var r=n(1),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=document.createElementNS("http://www.w3.org/2000/svg","marker"),a=r.uniqueId("marker_");i.setAttribute("id",a);var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("stroke","none"),o.setAttribute("fill",e.stroke||"#000"),i.appendChild(o),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=o,this.id=a,this.cfg=e["marker-start"===n?"startArrow":"endArrow"],this.stroke=e.stroke||"#000",!0===this.cfg?this._setDefaultPath(n,o):this._setMarker(e.lineWidth,o),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="clip";var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath");return this.el=n,this.id=r.uniqueId("clip_"),n.id=this.id,n.appendChild(e._cfg.el),this.cfg=e,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(1),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(e){function n(){console.log(c.width,c.height),a.setAttribute("width",c.width),a.setAttribute("height",c.height)}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var a=document.createElementNS("http://www.w3.org/2000/svg","pattern");a.setAttribute("patternUnits","userSpaceOnUse");var o=document.createElementNS("http://www.w3.org/2000/svg","image");a.appendChild(o);var s=r.uniqueId("pattern_");a.id=s,this.el=a,this.id=s,this.cfg=e;var u=i.exec(e)[2];o.setAttribute("href",u);var c=new Image;return u.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=u,c.complete?n():(c.onload=n,c.src=c.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find(function(t){return t._cfg&&t._cfg.el===i})}},function(t,e,n){function r(t,e){var n=function(t){if(f.isEmpty(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return f.each(t,function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i}),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points||t.get("origin").points),r=void 0,i=void 0,a=e.startAngle,o=e.endAngle-a;return e.isTransposed?(r=n.maxY*o,i=n.minY*o):(r=n.maxX*o,i=n.minX*o),r+=a,i+=a,{startAngle:i,endAngle:r}}function i(t,e,n){var r={};return t.delay&&(r.delay=f.isFunction(t.delay)?t.delay(e,n):t.delay),r.easing=f.isFunction(t.easing)?t.easing(e,n):t.easing,r.duration=f.isFunction(t.duration)?t.duration(e,n):t.duration,r.callback=t.callback,r}function a(t,e){var n=t._id,r=t.get("index"),a=t.getBBox(),o=t.get("origin").points,s=(a.minX+a.maxX)/2,u=void 0,c=[s,u=o[0].y-o[1].y<=0?a.maxY:a.minY,1];t.apply(c),t.attr("transform",[["t",-s,-u],["s",1,.01],["t",s,u]]);var l={transform:[["t",-s,-u],["s",1,100],["t",s,u]]},h=i(e,r,n);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function o(t,e){var n=t._id,r=t.get("index"),a=t.getBBox(),o=t.get("origin").points,s=void 0,u=(a.minY+a.maxY)/2,c=[s=o[0].y-o[1].y>0?a.maxX:a.minX,u,1];t.apply(c),t.attr({transform:[["t",-s,-u],["s",.01,1],["t",s,u]]});var l={transform:[["t",-s,-u],["s",100,1],["t",s,u]]},h=i(e,r,n);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function s(t,e,n){var r=t._id,a=t.get("index"),o=void 0,s=void 0;if(n.isPolar&&"point"!==t.name)o=n.getCenter().x,s=n.getCenter().y;else{var u=t.getBBox();o=(u.minX+u.maxX)/2,s=(u.minY+u.maxY)/2}var c=[o,s,1];t.apply(c),t.attr({transform:[["t",-o,-s],["s",.01,.01],["t",o,s]]});var l={transform:[["t",-o,-s],["s",100,100],["t",o,s]]},h=i(e,a,r);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function u(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),a=d.pathToAbsolute(t.attr("path"));t.attr("path",[a[0]]);var o={path:a},s=i(e,r,n);t.animate(o,s.duration,s.easing,s.callback,s.delay)}}function c(t,e,n,r,a){var o=function(t){var e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a=void 0,o=void 0,s=void 0,u=void 0,c=void 0;return t.isPolar?(u=t.getRadius(),s=t.getCenter(),a=t.startAngle,o=t.endAngle,(c=new p.Fan({attrs:{x:s.x,y:s.y,rs:0,re:u+200,startAngle:a,endAngle:a}})).endState={endAngle:o}):(c=new p.Rect({attrs:{x:e.x-200,y:n.y-200,width:t.isTransposed?r+400:0,height:t.isTransposed?0:i+400}}),t.isTransposed?c.endState={height:i+400}:c.endState={width:r+400}),c.isClip=!0,c}(n),s=t.get("canvas"),u=t._id,c=t.get("index"),l=void 0;r?(o.attr("startAngle",r),o.attr("endAngle",r),l={endAngle:a}):l=o.endState,o.set("canvas",s),t.attr("clip",o),t.setSilent("animating",!0);var h=i(e,c,u);o.animate(l,h.duration,h.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),o.remove())},h.delay)}function l(t,e){var n=t._id,r=t.get("index"),a=f.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=f.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:a,strokeOpacity:o},u=i(e,r,n);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function h(t,e,n){var i=r(t,n),a=i.endAngle;c(t,e,n,i.startAngle,a)}var f=n(0),p=n(5),d=f.PathUtil;t.exports={enter:{clipIn:c,zoomIn:s,pathIn:u,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:l},leave:{lineWidthOut:function(t,e){var n={lineWidth:0,opacity:0},r=t._id,a=i(e,t.get("index"),r);t.animate(n,a.duration,a.easing,function(){t.remove()},a.delay)},zoomOut:function(t,e,n){var r=t._id,a=t.get("index"),o=void 0,s=void 0;if(n.isPolar&&"point"!==t.name)o=n.getCenter().x,s=n.getCenter().y;else{var u=t.getBBox();o=(u.minX+u.maxX)/2,s=(u.minY+u.maxY)/2}var c=[o,s,1];t.apply(c);var l={transform:[["t",-o,-s],["s",.01,.01],["t",o,s]]},h=i(e,a,r);t.animate(l,h.duration,h.easing,function(){t.remove()},h.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),a={path:[d.pathToAbsolute(t.attr("path"))[0]]},o=i(e,r,n);t.animate(a,o.duration,o.easing,function(){t.remove()},o.delay)}},fadeOut:function(t,e){var n=t._id,r={fillOpacity:0,strokeOpacity:0},a=i(e,t.get("index"),n);t.animate(r,a.duration,a.easing,function(){t.remove()},a.delay)}},appear:{clipIn:c,zoomIn:s,pathIn:u,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:l},update:{fadeIn:l,fanIn:h}}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(246),a=n(56),o=n(58),s=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.names=["x","y"],i.type="position",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=this.coord,s=n[0],u=n[1],c=void 0,l=void 0,h=void 0;if(i(t)||i(e))return[];if(a(e)&&a(t)){c=[],l=[];for(var f=0,p=0,d=t.length,g=e.length;f<d&&p<g;f++,p++)h=r.convertPoint({x:s.scale(t[f]),y:u.scale(e[p])}),c.push(h.x),l.push(h.y)}else if(a(e))t=s.scale(t),l=[],o(e,function(e){e=u.scale(e),h=r.convertPoint({x:t,y:e}),c&&c!==h.x?(a(c)||(c=[c]),c.push(h.x)):c=h.x,l.push(h.y)});else if(a(t))e=u.scale(e),c=[],o(t,function(t){t=s.scale(t),h=r.convertPoint({x:t,y:e}),l&&l!==h.y?(a(l)||(l=[l]),l.push(h.y)):l=h.y,c.push(h.x)});else{t=s.scale(t),e=u.scale(e);var y=r.convertPoint({x:t,y:e});c=y.x,l=y.y}return[c,l]},e}(n(26));t.exports=s},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)};t.exports=function(t){var e=void 0===t?"undefined":r(t);return null!==t&&"object"===e||"function"===e}},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(116),a=n(26),o=n(59),s=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.names=["color"],i.type="color",i.gradient=null,o(i.values)&&(i.linear=!0),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=i.gradient(n),this.gradient=e}return e(t)},e}(a);t.exports=s},function(t,e,n){var r=n(57);t.exports=function(t){return r(t,"Number")}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.names=["shape"],i.type="shape",i.gradient=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(n(26));t.exports=i},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.names=["size"],i.type="size",i.gradient=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n(26));t.exports=i},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.call(this,n));return i.names=["opacity"],i.type="opacity",i.gradient=null,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n(26));t.exports=i},function(t,e,n){var r=n(60),i=n(27),a=n(255),o=n(257),s=n(119),u=n(258),c=n(262);r(i.prototype,s),r(a.prototype,s,u),r(o.prototype,c),i.Jitter=n(263),i.Symmetric=n(264),i.Dodge=a,i.Stack=o,t.exports=i},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(27),a=n(14),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},e.prototype.getDodgeOffset=function(t,e,n){var r=t.pre,i=t.next,a=i-r,o=a*this.dodgeRatio/n,s=this.marginRatio*o;return(r+i)/2+(.5*(a-n*o-(n-1)*s)+((e+1)*o+e*s)-.5*o-.5*a)},e.prototype.processAdjust=function(t){var e=this,n=t.length,r=e.xField;a(t,function(t,i){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[r],c={pre:u-.5,next:u+.5},l=e.getDodgeOffset(c,i,n);s[r]=l}})},e}(i);i.Dodge=o,t.exports=o},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)};t.exports=function(t){var e=void 0===t?"undefined":r(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(16),a=n(118),o=n(27),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){this.xField=null,this.yField=null},e.prototype.processAdjust=function(t){this.processStack(t)},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=t.length,o={positive:{},negative:{}};this.reverseOrder&&(t=t.slice(0).reverse());for(var s=0;s<r;s++)for(var u=t[s],c=0,l=u.length;c<l;c++){var h=u[c],f=h[e]||0,p=h[n],d=f.toString();if(p=i(p)?p[1]:p,!a(p)){var g=p>=0?"positive":"negative";o[g][d]||(o[g][d]=0),h[n]=[o[g][d],p+o[g][d]],o[g][d]+=p}}},e}(o);o.Stack=s,t.exports=s},function(t,e,n){var r={merge:n(61),values:n(39)},i=n(259),a=n(14);t.exports={processAdjust:function(t){var e=r.merge(t),n=this.dodgeBy,a=t;n&&(a=i(e,n)),this.cacheMap={},this.adjDataArray=a,this.mergeData=e,this.adjustData(a,e),this.adjDataArray=null,this.mergeData=null},getDistribution:function(t){var e=this.adjDataArray,n=this.cacheMap,i=n[t];return i||(i={},a(e,function(e,n){var o=r.values(e,t);o.length||o.push(0),a(o,function(t){i[t]||(i[t]=[]),i[t].push(n)})}),n[t]=i),i},adjustDim:function(t,e,n,r,i){var o=this,s=o.getDistribution(t),u=o.groupData(n,t);a(u,function(n,r){r=parseFloat(r);var u=void 0;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,r,e),a(n,function(e){var n=e[t],r=s[n],a=r.indexOf(i);e[t]=o.getDodgeOffset(u,a,r.length)})})}}},function(t,e,n){var r=n(260);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){var r=n(120),i=n(16),a=n(261);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return a(t,e)}},function(t,e,n){var r=n(14),i=n(16),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]}),n}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this.xField,n=this.yField||"y",r=this.height,i={};this.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,o=t.length;a<o;a++)for(var s=t[a],u=0,c=s.length;u<c;u++){var l=s[u],h=2*(l.size||this.size)/r,f=l[e];i[f]||(i[f]=h/2),l[n]=i[f],i[f]+=h}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(t)}}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(14),a=n(60),o={merge:n(61),values:n(39)},s=n(27),u=n(119),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){this.xField=null,this.yField=null,this.adjustNames=["x","y"],this.groupFields=null},e.prototype.processAdjust=function(t){var e=o.merge(t);this.adjDataArray=t,this.mergeData=e,this.adjustData(t,e),this.adjFrames=null,this.mergeData=null},e.prototype.getAdjustOffset=function(t,e){var n=e-t;return t+.05*n+.9*n*Math.random()},e.prototype._adjustGroup=function(t,e,n,r){var a=this,o=a.getAdjustRange(e,n,r);i(t,function(t){t[e]=a.getAdjustOffset(o.pre,o.next)})},e.prototype.adjustDim=function(t,e,n){var r=this,a=r.groupData(n,t);i(a,function(n,i){i=parseFloat(i),r._adjustGroup(n,t,i,e)})},e}(s);a(c.prototype,u),s.Jitter=c,t.exports=c},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(14),a=n(265),o=n(16),s={merge:n(61),values:n(39)},u=n(27),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},e.prototype._getMax=function(t){var e=this.mergeData,n=a(e,function(e){var n=e[t];return o(n)?Math.max.apply(null,n):n})[t];return o(n)?Math.max.apply(null,n):n},e.prototype._getXValuesMax=function(){var t=this.yField,e=this.xField,n={},r=this.mergeData;return i(r,function(r){var i=r[e],a=r[t],s=o(a)?Math.max.apply(null,a):a;n[i]=n[i]||0,n[i]<s&&(n[i]=s)}),n},e.prototype.processAdjust=function(t){var e=s.merge(t);this.mergeData=e,this._processSymmetric(t),this.mergeData=null},e.prototype._processSymmetric=function(t){var e=this.xField,n=this.yField,r=this._getMax(n),a=t[0][0],s=void 0;a&&o(a[n])&&(s=this._getXValuesMax()),i(t,function(t){i(t,function(t){var a=t[n],u=void 0;if(o(a)){var c=t[e],l=s[c];u=(r-l)/2;var h=[];i(a,function(t){h.push(u+t)}),t[n]=h}else u=(r-a)/2,t[n]=[u,a+u]})})},e}(u);u.Symmetric=c,t.exports=c},function(t,e,n){var r=n(16),i=n(120),a=n(14);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=i(e)?e(t):t[e])>o&&(n=t,o=s)}),n}}},function(t,e,n){var r,i,a=n(0),o=n(122),s=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(r={},r["g2-legend"]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i["g2-tooltip"]={color:"#D9D9D9"},i),tooltipCrosshairsRect:{type:"rect",style:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{style:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=s},function(t,e,n){var r=n(123),i=n(126),a=n(270),o={getLabelsClass:function(t){var e=r;return"polar"===t?e=i:"theta"===t&&(e=a),e}};t.exports=o},function(t,e,n){var r=n(0),i=n(125);t.exports={renderLabels:function(){var t=this.get("label");if(!r.isNil(t)){r.isNil(t.items)&&(t.items=[]);var e=this.addGroup(i,t);this.set("labelsGroup",e)}},resetLabels:function(t){var e=this,n=e.get("label");if(n){var i=e.get("labelsGroup"),a=i.getLabels(),o=a.length;t=t||n.items,r.each(t,function(t,n){if(n<o){var r=a[n];i.changeLabel(r,t)}else{var s=e.addLabel(t.text,t);s&&(s._id=t._id,s.set("coord",t.coord))}});for(var s=o-1;s>=t.length;s--)a[s].remove()}},addLabel:function(t,e){var n=this.get("labelsGroup"),r={},i=void 0;return n&&(r.text=t,r.x=e.x,r.y=e.y,r.point=e,r.textAlign=e.textAlign,e.rotate&&(r.rotate=e.rotate),i=n.addLabel(r)),i},removeLabels:function(){var t=this.get("labelsGroup");t&&t.remove(),this.set("labelsGroup",null)}}},function(t,e,n){var r=n(0).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var i=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);for(var u=function(t,e,n,i){var a=[],o=void 0,s=void 0,u=!!i,c=void 0,l=void 0;if(u){c=[1/0,1/0],l=[-1/0,-1/0];for(var h=0,f=t.length;h<f;h++){var p=t[h];c=r.min([],c,p),l=r.max([],l,p)}c=r.min([],c,i[0]),l=r.max([],l,i[1])}for(var d=0,g=t.length;d<g;d++){var y=t[d];if(n)o=t[d?d-1:g-1],s=t[(d+1)%g];else{if(0===d||d===g-1){a.push(y);continue}o=t[d-1],s=t[d+1]}var v=[];v=r.sub(v,s,o),v=r.scale(v,v,e);var m=r.distance(y,o),x=r.distance(y,s),b=m+x;0!==b&&(m/=b,x/=b);var w=r.scale([],v,-m),_=r.scale([],v,x),S=r.add([],y,w),M=r.add([],y,_);u&&(S=r.max([],S,c),S=r.min([],S,l),M=r.max([],M,c),M=r.min([],M,l)),a.push(S),a.push(M)}return n&&a.push(a.shift()),a}(a,.4,i,n),c=a.length,l=[],h=void 0,f=void 0,p=void 0,d=0;d<c-1;d++)h=u[2*d],f=u[2*d+1],p=a[d+1],l.push(["C",h[0],h[1],f[0],f[1],p[0],p[1]]);return i&&(h=u[c],f=u[c+1],p=a[0],l.push(["C",h[0],h[1],f[0],f[1],p[0],p[1]])),l}}},function(t,e,n){function r(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}var i=n(0),a=n(126),o=n(28),s=n(2),u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{label:s.thetaLabels}},e.prototype.getDefaultOffset=function(){return this.get("label").offset||0},e.prototype.adjustItems=function(t){var e=this.getDefaultOffset();return e>0&&(t=this._distribute(t,e)),t},e.prototype._distribute=function(t,e){var n=this.get("coord"),r=n.getRadius(),i=this.get("label").labelHeight,a=n.getCenter(),o=2*(r+e)+2*i,s={start:n.start,end:n.end},u=this.get("geom");if(u){var c=u.get("view");s=c.getViewRegion()}var l=[[],[]];return t.forEach(function(t){"right"===t.textAlign?l[0].push(t):l[1].push(t)}),l.forEach(function(t,e){var n=parseInt(o/i,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,r,i){var a=!0,o=n.start,s=n.end,u=Math.min(o.y,s.y),c=Math.abs(o.y-s.y),l=void 0,h=0,f=Number.MIN_VALUE,p=t.map(function(t){return t.y>h&&(h=t.y),t.y<f&&(f=t.y),{size:e,targets:[t.y-u]}});for(f-=u,h-u>c&&(c=h-u);a;)for(p.forEach(function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),c-t.size)}),a=!1,l=p.length;l--;)if(l>0){var d=p[l-1],g=p[l];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),d.pos+d.size>c&&(d.pos=c-d.size),p.splice(l,1),a=!0)}l=0,p.forEach(function(n){var r=u+e/2;n.targets.forEach(function(){t[l].y=n.pos+r,r+=e,l++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var a=Math.sqrt(e-n);t.x=i?r.x+a:r.x-a}})}(t,i,s,a,e)}),l[0].concat(l[1])},e.prototype.lineToLabel=function(t,e){var n=this.get("coord"),a=n.getRadius(),o=this.getDefaultOffset(),s=t.orignAngle||t.angle,u=n.getCenter(),c=r(u,s,a+2.5),l=r(u,s,a+o/2),h=this.get("lineGroup");h||(h=this.addGroup({elCls:"x-line-group"}),this.set("lineGroup",h));var f=h.addShape("path",{attrs:i.mix({path:["M"+c.x,c.y+" Q"+l.x,l.y+" "+t.x,t.y].join(","),fill:null,stroke:t.color},e)});f.name="labelLine",f._id=t._id&&t._id.replace("glabel","glabelline"),f.set("coord",n)},e.prototype.getLabelRotate=function(t,e){var n=void 0;return e<0&&((n=180*t/Math.PI)>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},e.prototype.getLabelAlign=function(t){var e=this.get("coord").getCenter(),n=void 0;n=t.angle<=Math.PI/2&&t.x>=e.x?"left":"right";return this.getDefaultOffset()<=0&&(n="right"===n?"left":"right"),n},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e=this.get("coord"),n={x:i.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var r={x:i.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(r);var a=void 0,s=o.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)a=s;else{var u=o.getPointAngle(e,r);s>=u&&(u+=2*Math.PI),a=s+(u-s)/2}return a},e.prototype.getCirclePoint=function(t,e){var n=this.get("coord"),i=n.getCenter(),a=n.getRadius()+e,o=r(i,t,a);return o.angle=t,o.r=a,o},e}(a);t.exports=u},function(t,e,n){function r(t){return t.alias||t.field}var i=n(0),a=n(2).defaultColor,o={_getIntervalSize:function(t){var e=null,n=this.get("type"),r=this.get("coord");if(r.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=r.isTransposed?"y":"x";if(i.isArray(t[a])){e=e<Math.abs(t[a][1]-t[a][0])?null:e}}return e},_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:i.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(t).x;return this.isInCircle()&&i>(1+r.rangeMax())/2&&(i=r.rangeMin()),e=r.invert(i),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,a=this.get("coord").invert(t),o=e.invert(a.x),s=n.invert(a.y),u={};return u[r]=o,u[i]=s,u},_getScale:function(t){var e=this.get("scales"),n=null;return i.each(e,function(e){if(e.field===t)return n=e,!1}),n},_getTipValueScale:function(){var t=this.getAttrsForLegend(),e=void 0;i.each(t,function(t){var n=t.getScale(t.type);if(n.isLinear)return e=n,!1});var n=this.getXScale(),r=this.getYScale();return!e&&r&&"..y"===r.field?n:e||r||n},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e=this.getAttr("position").getFields(),n=void 0;return i.each(e,function(t){if(-1===t.indexOf(".."))return n=t,!1}),this._getScale(n)},_filterValue:function(t,e){var n=this.get("coord"),r=this.getYScale(),a=r.field,o=n.invert(e).y;o=r.invert(o);var s=t[t.length-1];return i.each(t,function(t){var e=t._origin;if(e[a][0]<=o&&e[a][1]>=o)return s=t,!1}),s},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,r=e.translate(n[0]),a=r;i.each(n,function(t){(t=e.translate(t))<r&&(r=t),t>a&&(a=t)});var o=n.length;t=(a-r)/(o-1)}this.set("xDistance",t)}return t},findPoint:function(t,e){var n=this,r=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,u=o.field,c=null;if(i.indexOf(["heatmap"],r)>-1){var l=n.get("coord").invert(t),h=a.invert(l.x),f=o.invert(l.y),p=1/0;return i.each(e,function(t){var e=Math.pow(t._origin[s]-h,2)+Math.pow(t._origin[u]-f,2);e<p&&(p=e,c=t)}),c}var d=e[0],g=e[e.length-1];if(!d)return c;var y=n._getScaleValueByPoint(t),v=d._origin[s],m=d._origin[u],x=g._origin[s],b=o.isLinear&&i.isArray(m);if(i.isArray(v))i.each(e,function(t){var e=t._origin;if(a.translate(e[s][0])<=y&&a.translate(e[s][1])>=y){if(!b)return c=t,!1;i.isArray(c)||(c=[]),c.push(t)}}),i.isArray(c)&&(c=this._filterValue(c,t));else{var w=void 0;if(a.isLinear||"timeCat"===a.type){if((y>a.translate(x)||y<a.translate(v))&&(y>a.max||y<a.min))return null;for(var _=0,S=e.length-1,M=void 0;_<=S;){M=Math.floor((_+S)/2);var A=e[M]._origin[s];if(n._snapEqual(A,y,a))return e[M];a.translate(A)<=a.translate(y)?(_=M+1,g=e[M],w=e[M+1]):(0===S&&(g=e[0]),S=M-1)}}else i.each(e,function(t,r){var o=t._origin;if(n._snapEqual(o[s],y,a)){if(!b)return c=t,!1;i.isArray(c)||(c=[]),c.push(t)}else a.translate(o[s])<=y&&(g=t,w=e[r+1])}),i.isArray(c)&&(c=this._filterValue(c,t));g&&w&&Math.abs(a.translate(g._origin[s])-y)>Math.abs(a.translate(w._origin[s])-y)&&(g=w)}var C=n.getXDistance();return!c&&Math.abs(a.translate(g._origin[s])-y)<=C/2&&(c=g),c},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r){var i=t[r.field];n=r.getText(i)}else if("heatmap"===this.get("type")){var a=this.getXScale(),o=this.getYScale();n="( "+a.getText(t[a.field])+", "+o.getText(t[o.field])+" )"}return n},getTipValue:function(t,e){var n=void 0,r=e.field,a=t.key;if(n=t[r],i.isArray(n)){var o=[];i.each(n,function(t){o.push(e.getText(t))}),n=o.join("-")}else n=e.getText(n,a);return n},getTipName:function(t){var e=void 0,n=void 0,a=this._getGroupScales();if(a.length&&i.each(a,function(t){return n=t,!1}),n){var o=n.field;e=n.getText(t[o])}else{e=r(this._getTipValueScale())}return e},getTipItems:function(t,e){function n(e,n,r){if(!i.isNil(n)&&""!==n){var s={title:u,point:t,name:e||u,value:n,color:t.color||a,marker:!0};s.size=o._getIntervalSize(t),l.push(i.mix({},s,r))}}var o=this,s=t._origin,u=o.getTipTitle(s,e),c=o.get("tooltipCfg"),l=[],h=void 0,f=void 0;if(c){var p=c.fields,d=c.cfg,g=[];if(i.each(p,function(t){g.push(s[t])}),d){i.isFunction(d)&&(d=d.apply(null,g));var y=i.mix({},{point:t,title:u,color:t.color||a,marker:!0},d);y.size=o._getIntervalSize(t),l.push(y)}else i.each(p,function(t){if(!i.isNil(s[t])){var e=o._getScale(t);h=r(e),f=e.getText(s[t]),n(h,f)}})}else{var v=o._getTipValueScale();i.isNil(s[v.field])||(f=o.getTipValue(s,v),n(h=o.getTipName(s),f))}return l},isShareTooltip:function(){var t=this.get("shareTooltip"),e=this.get("type"),n=this.get("view"),r=void 0;if(r=n.get("parent")?n.get("parent").get("options"):n.get("options"),"interval"===e){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(t=!1)}else this.getYScale()&&!i.inArray(["contour","point","polygon","edge"],e)||(t=!1);return r.tooltip&&i.isBoolean(r.tooltip.shared)&&(t=r.tooltip.shared),t}};t.exports=o},function(t,e,n){function r(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return a.each(e,function(e,r){if(!function(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isEqual(n,r)}(e,t[r]))return n=!0,!1}),n}function i(t,e){var n={};return a.each(t,function(t,r){var i=e.attr(r);a.isArray(i)&&(i=a.cloneDeep(i)),n[r]=i}),n}var a=n(0),o={_isAllowActive:function(){var t=this.get("allowActive");if(!a.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",a.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",a.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",a.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",a.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),r=n.shape||this.getDefaultValue("shape");a.isArray(r)&&(r=r[0]);var o=this.get("shapeFactory"),s=a.mix({},t.attr(),{origin:n}),u=o.getActiveCfg(r,s);e.style&&a.mix(u,e.style);var c=i(u,t);t.setSilent("_originAttrs",c),e.animate?t.animate(u,300):t.attr(u),t.set("zIndex",1)},setShapesActived:function(t){var e=this;a.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(r(n,t)){var i=e.get("view").get("canvas"),o=e.get("shapeContainer"),s=e.get("activedOptions");s&&s.highlight?(a.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),a.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&!t.get("selected")&&e._setActiveShape(t)})),e.set("activeShapes",t),o.sort(),i.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var r=this.get("activeShapes");a.each(r,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null)}});if(this.get("preHighlightShapes")){var i=t.get("children");a.each(i,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null))}})}t.get("children").sort(function(t,e){return t._INDEX-e._INDEX}),this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=[];if(this.get("shapeContainer")){var n=this.getXScale().field,r=this.getShapes(),i=this._getOriginByPoint(t);a.each(r,function(t){var r=t.get("origin");if(t.get("visible")&&r){r._origin[n]===i[n]&&e.push(t)}})}return e},getSingleShapeByPoint:function(t){var e=this.get("shapeContainer"),n=e.get("canvas").get("pixelRatio"),r=void 0;if(e&&(r=e.getShape(t.x*n,t.y*n)),r&&r.get("origin"))return r},highlightShapes:function(t,e){a.isArray(t)||(t=[t]);var n=this.get("activeShapes");if(r(n,t)){n&&this.clearActivedShapes();var o=this.getShapes(),s=this.get("activedOptions"),u=s&&s.animate,c=s&&s.style;a.each(o,function(n){var r={};n.stopAnimate(),-1!==a.indexOf(t,n)?(a.mix(r,c,e),n.setZIndex(1)):(a.mix(r,{fillOpacity:.3,opacity:.3}),n.setZIndex(0));var o=i(r,n);n.setSilent("_originAttrs",o),u?n.animate(r,300):n.attr(r)}),this.set("preHighlightShapes",t),this.set("activeShapes",t)}}};t.exports=o},function(t,e,n){function r(t,e){if(i.isNil(t)||i.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return i.isEqual(n,r)}var i=n(0),a={_isAllowSelect:function(){var t=this.get("allowSelect");if(!i.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),r=n&&n.type;return"interval"===e&&"theta"===r},_onClick:function(t){if(this._isAllowSelect()){this.clearActivedShapes();var e=t.shape,n=this.get("shapeContainer");e&&!e.get("animating")&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",i.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",i.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),r=this.get("selectedOptions")||{},a=!1!==r.animate,o=n.get("canvas");t.set("selected",e);var s=t.get("origin");if(e){var u=s.shape||this.getDefaultValue("shape");i.isArray(u)&&(u=u[0]);var c=this.get("shapeFactory"),l=i.mix({geom:this,point:s},r),h=c.getSelectedCfg(u,l);i.mix(h,l.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",function(t,e){var n={};return i.each(t,function(t,r){"transform"===r&&(r="matrix");var a=e.attr(r);i.isArray(a)&&(a=i.cloneDeep(a)),n[r]=a}),n}(h,t))),a?t.animate(h,300):(t.attr(h),o.draw())}else{var f=t.get("_originAttrs");t.set("_originAttrs",null),a?t.animate(f,300):(t.attr(f),o.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},a=!1!==n.cancelable;if("multiple"===n.mode)-1===i.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):a&&(i.Array.remove(e,t),this._setShapeStatus(t,!1));else{var o=e[0];a&&(t=r(o,t)?null:t),r(o,t)||(o&&this._setShapeStatus(o,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();i.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return i.each(n,function(n){var r=n.get("origin");r&&r._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return i.each(t,function(t){t.get("selected")&&e.push(t)}),this.set("selectedShapes",e),e}};t.exports=a},function(t,e,n){var r=n(69),i=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o={LINEAR:"linear",CAT:"cat",TIME:"time"},s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.defs={},this.viewTheme={scales:{}},i.assign(this,e)}return t.prototype._getDef=function(t){var e=this.defs,n=this.viewTheme,r=null;return(n.scales[t]||e[t])&&(r=i.mix({},n.scales[t]),i.each(e[t],function(t,e){i.isNil(t)?delete r[e]:r[e]=t})),r},t.prototype._getDefaultType=function(t,e){var n=o.LINEAR,r=i.Array.firstValue(e,t);return i.isArray(r)&&(r=r[0]),a.test(r)?n=o.TIME:i.isString(r)&&(n=o.CAT),n},t.prototype._getScaleCfg=function(t,e,n){var a={field:e},o=i.Array.values(n,e);if(a.values=o,!r.isCategory(t)&&"time"!==t){var s=i.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},t.prototype.createScale=function(t,e){var n=this._getDef(t),a=void 0;if(!e||!e.length)return a=n&&n.type?r[n.type](n):r.identity({value:t,field:t.toString(),values:[t]});var o=i.Array.firstValue(e,t);if(i.isNumber(t)||i.isNil(o)&&!n)a=r.identity({value:t,field:t.toString(),values:[t]});else{var s=void 0;n&&(s=n.type),s=s||this._getDefaultType(t,e);var u=this._getScaleCfg(s,t,e);n&&i.mix(u,n),a=r[s](u)}return a},t}();t.exports=s},function(t,e,n){var r=n(0),i=n(276),a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="rect",this.actions=[],this.cfg={},r.mix(this,e),this.option=e||{}}return t.prototype.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},t.prototype._execActions=function(t){var e=this.actions;r.each(e,function(e){var n=e[0];t[n](e[1],e[2])})},t.prototype.hasAction=function(t){var e=this.actions,n=!1;return r.each(e,function(e){if(t===e[0])return n=!0,!1}),n},t.prototype.createCoord=function(t,e){var n=this.type,a=this.cfg,o=void 0,s=void 0,u=r.mix({start:t,end:e},a);return"theta"===n?(o=i.Polar,this.hasAction("transpose")||this.transpose(),(s=new o(u)).type=n):s=new(o=i[r.upperFirst(n||"")]||i.Rect)(u),this._execActions(s),s},t.prototype.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){var r=n(40);r.Cartesian=n(277),r.Rect=r.Cartesian,r.Polar=n(278),r.Helix=n(279),t.exports=r},function(t,e,n){var r=n(0),i=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})},e.prototype._init=function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},r={start:t.y,end:e.y};this.x=n,this.y=r},e.prototype.convertPoint=function(t){var e=void 0,n=void 0;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}},e.prototype.invertPoint=function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}},e}(n(40));t.exports=i},function(t,e,n){var r=n(0),i=n(40),a=r.MatrixUtil,o=a.mat3,s=a.vec2,u=a.vec3,c=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})},e.prototype._init=function(){for(var t=this.radius,e=this.innerRadius,n=this.center,r=this.startAngle,i=this.endAngle;i<r;)i+=2*Math.PI;this.endAngle=i;var a=this.getOneBox(),o=a.maxX-a.minX,s=a.maxY-a.minY,u=Math.abs(a.minX)/o,c=Math.abs(a.minY)/s,l=this.width,h=this.height,f=void 0,p=void 0;h/s>l/o?(f=l/o,p={x:n.x-(.5-u)*l,y:n.y-(.5-c)*f*s}):(f=h/s,p={x:n.x-(.5-u)*f*o,y:n.y-(.5-c)*h}),t?t>0&&t<=1?t*=f:(t<=0||t>f)&&(t=f):t=f;var d={start:r,end:i},g={start:e*t,end:t};this.x=d,this.y=g,this.radius=t,this.circleCentre=p,this.center=p},e.prototype.getCenter=function(){return this.circleCentre},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e.prototype.getRadius=function(){return this.radius},e.prototype.convertPoint=function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,r=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:e.x+Math.cos(n)*r,y:e.y+Math.sin(n)*r}},e.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=this.x,a=[1,0,0,0,1,0,0,0,1];o.rotate(a,a,i.start);var c=[1,0,0];u.transformMat3(c,c,a),c=[c[0],c[1]];var l=s.angleTo(c,n,i.end<i.start);r.snapEqual(l,2*Math.PI)&&(l=0);var h=s.length(n),f=l/(i.end-i.start);f=i.end-i.start>0?f:-f;var p=this.invertDim(h,"y"),d={};return d.x=this.isTransposed?p:f,d.y=this.isTransposed?f:p,d},e}(i);t.exports=c},function(t,e,n){var r=n(0),i=n(40),a=r.MatrixUtil.vec2,o=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._init(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})},e.prototype._init=function(){var t=this.width,e=this.height,n=this.radius,r=this.innerRadius,i=this.startAngle,a=this.endAngle,o=(a-i)/(2*Math.PI)+1,s=Math.min(t,e)/2;n&&n>=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-r)/o),c=u/(2*Math.PI),l={start:i,end:a},h={start:r*s,end:r*s+.99*u};this.a=c,this.d=u,this.x=l,this.y=h},e.prototype.getCenter=function(){return this.center},e.prototype.convertPoint=function(t){var e=this.a,n=this.center,r=void 0,i=void 0;this.isTransposed?(r=t.y,i=t.x):(r=t.x,i=t.y);var a=this.convertDim(r,"x"),o=e*a,s=this.convertDim(i,"y");return{x:n.x+Math.cos(a)*(o+s),y:n.y+Math.sin(a)*(o+s)}},e.prototype.invertPoint=function(t){var e=this.center,n=this.a,i=this.d+this.y.start,o=a.subtract([],[t.x,t.y],[e.x,e.y]),s=a.angleTo(o,[1,0],!0),u=s*n;a.length(o)<u&&(u=a.length(o));var c=n*(s=2*Math.floor((a.length(o)-u)/i)*Math.PI+s),l=a.length(o)-c;l=r.snapEqual(l,0)?0:l;var h=this.invertDim(s,"x"),f=this.invertDim(l,"y");h=r.snapEqual(h,0)?0:h,f=r.snapEqual(f,0)?0:f;var p={};return p.x=this.isTransposed?f:h,p.y=this.isTransposed?h:f,p},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=n(281),a=r.MatrixUtil.vec2,o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.visible=!0,this.container=null,this.coord=null,this.options=null,this.axes=[],r.mix(this,e)}return t.prototype._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},t.prototype._getMiddleValue=function(t,e,n,r){if(0===t&&!r)return 0;if(1===t)return 1;var i=e[n+1].value;return r||1!==i?(t+i)/2:1},t.prototype._getLineRange=function(t,e,n,r){var i=void 0,a=void 0,o=void 0,s=e.field,u=this.options,c="";return u[s]&&u[s].position&&(c=u[s].position),"x"===n?(i={x:0,y:"top"===c?1:0},a={x:1,y:"top"===c?1:0},o=!1):(r?(i={x:"left"===c?0:1,y:0},a={x:"left"===c?0:1,y:1}):(i={x:"right"===c?1:0,y:0},a={x:"right"===c?1:0,y:1}),o=!0),i=t.convert(i),a=t.convert(a),{start:i,end:a,isVertical:o}},t.prototype._getLineCfg=function(t,e,n,r){var i=void 0,a=this._getLineRange(t,e,n,r),o=a.isVertical,s=a.start,u=a.end,c=t.center;return t.isTransposed&&(o=!o),i=o&&s.x>c.x||!o&&s.y>c.y?1:-1,{isVertical:o,factor:i,start:s,end:u}},t.prototype._getCircleCfg=function(t){var e={},n=t.x,r=t.y,i=r.start>r.end,o=void 0;o=t.isTransposed?{x:i?0:1,y:0}:{x:0,y:i?0:1},o=t.convert(o);var s=t.circleCentre,u=[o.x-s.x,o.y-s.y],c=[1,0],l=void 0,h=(l=o.y>s.y?a.angle(u,c):-1*a.angle(u,c))+(n.end-n.start);return e.startAngle=l,e.endAngle=h,e.center=s,e.radius=Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2)),e.inner=t.innerRadius||0,e},t.prototype._getRadiusCfg=function(t){var e=t.x.start<0?-1:1,n=void 0,r=void 0;return t.isTransposed?(n={x:0,y:0},r={x:1,y:0}):(n={x:0,y:0},r={x:0,y:1}),{factor:e,start:t.convert(n),end:t.convert(r)}},t.prototype._getAxisPosition=function(t,e,n,r){var i="",a=this.options;if(a[r]&&a[r].position)i=a[r].position;else{var o=t.type;t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return i},t.prototype._getAxisDefaultCfg=function(t,e,n,i){var a=this.viewTheme,o={},s=this.options,u=e.field;return(o=r.deepMix({},a.axis[i],o,s[u])).title&&r.deepMix(o,{title:{text:e.alias||u}}),o.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=t,o.label&&r.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&r.deepMix(o,s.xField),o},t.prototype._getAxisCfg=function(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments[5],s=this,u=s._getAxisPosition(t,i,a,e.field),c=s._getAxisDefaultCfg(t,e,i,u);if(!r.isEmpty(c.grid)&&n){var l=[],h=[],f=function(t){var e=[];if(t.length>0){var n=(e=t.slice(0))[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}(n.getTicks());if(f.length){var p=function(t,e,n){var r=[];return t.length<1?r:(t.length>=2&&e&&n&&r.push({text:"",tickValue:"",value:0}),0!==t[0].value&&r.push({text:"",tickValue:"",value:0}),1!==(r=r.concat(t))[r.length-1].value&&r.push({text:"",tickValue:"",value:1}),r)}(c.ticks,e.isLinear,"center"===c.grid.align);r.each(p,function(n,u){h.push(n.tickValue);var d=[],g=n.value;if("center"===c.grid.align&&(g=s._getMiddleValue(g,p,u,e.isLinear)),!r.isNil(g)){var y=t.x,v=t.y;r.each(f,function(e){var n="x"===i?g:e.value,r="x"===i?e.value:g,a=t.convert({x:n,y:r});if(t.isPolar){var o=t.circleCentre;v.start>v.end&&(r=1-r),a.flag=y.start>y.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}d.push(a)}),l.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:d})}})}c.grid.items=l,c.grid.tickValues=h}return c.type=e.type,c},t.prototype._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,i=t.endAngle,a=[],o=0;o<=100;o++){var s=t.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var u=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=i,e.crp=a,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},t.prototype._drawAxis=function(t,e,n,a,o,s,u){var c=this.container,l=void 0,h=void 0;"cartesian"===t.type?(l=i.Line,h=this._getLineCfg(t,e,a,u)):"helix"===t.type&&"x"===a?(l=i.Helix,h=this._getHelixCfg(t)):"x"===a?(l=i.Circle,h=this._getCircleCfg(t)):(l=i.Line,h=this._getRadiusCfg(t));var f=this._getAxisCfg(t,e,n,a,u,o);f=r.mix({},f,h),"y"===a&&s&&"circle"===s.get("type")&&(f.circle=s),f._id=o+"-"+a,r.isNil(u)||(f._id=o+"-"+a+u);var p=c.addGroup(l,f);return this.axes.push(p),p},t.prototype.createAxis=function(t,e,n){var i=this,a=this.coord,o=a.type;if("theta"!==o&&("polar"!==o||!a.isTransposed)){var s=void 0;t&&!i._isHide(t.field)&&(s=i._drawAxis(a,t,e[0],"x",n)),r.isEmpty(e)||"helix"===o||r.each(e,function(e,r){i._isHide(e.field)||i._drawAxis(a,e,t,"y",n,s,r)})}},t.prototype.changeVisible=function(t){var e=this.axes;r.each(e,function(e){e.set("visible",t)})},t.prototype.clear=function(){var t=this.axes;r.each(t,function(t){t.remove()}),this.axes=[]},t}();t.exports=o},function(t,e,n){t.exports={Line:n(282),Circle:n(284),Helix:n(285),PolyLine:n(286)}},function(t,e,n){var r=n(41),i=n(0),a=i.MatrixUtil.vec2,o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},e.prototype._getAvgLabelLength=function(t){var e=t.get("children");return e[1].attr("x")-e[0].attr("x")},e.prototype.getSideVector=function(t){var e=this.get("factor"),n=this.get("isVertical"),r=this.get("start"),i=this.get("end"),o=this.getAxisVector(),s=a.normalize([],o),u=!1;(n&&r.y<i.y||!n&&r.x>i.x)&&(u=!0);var c=a.vertical([],s,u);return a.scale([],c,t*e)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.renderTitle=function(){var t=this.get("title"),e=this.getTickPoint(.5),n=t.offset;if(i.isNil(n)){n=20;var r=this.get("labelsGroup");if(r){n+=this.getMaxLabelWidth(r)+(this.get("label").offset||this.get("_labelOffset"))}}var o=t.textStyle,s=i.mix({},o);if(t.text){var u=this.getAxisVector();if(t.autoRotate&&i.isNil(o.rotate)){var c=0;if(!i.snapEqual(u[1],0)){var l=[u[0],u[1]];c=a.angleTo(l,[1,0],!0)}s.rotate=c*(180/Math.PI)}else i.isNil(o.rotate)||(s.rotate=o.rotate/180*Math.PI);var h=this.getSideVector(n),f=void 0,p=t.position;f="start"===p?{x:this.get("start").x+h[0],y:this.get("start").y+h[1]}:"end"===p?{x:this.get("end").x+h[0],y:this.get("end").y+h[1]}:{x:e.x+h[0],y:e.y+h[1]},s.x=f.x,s.y=f.y,s.text=t.text;var d=this.addShape("Text",{zIndex:2,attrs:s});d.name="axis-title",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo"))}},e.prototype.autoRotateLabels=function(){var t=this.get("labelsGroup"),e=this.get("title");if(t){var n=this.get("label").offset,r=e?e.offset:48;if(r<0)return;var a=this.getAxisVector(),o=void 0,s=void 0;if(i.snapEqual(a[0],0)&&e&&e.text)(s=this.getMaxLabelWidth(t))>r-n-12&&(o=-1*Math.acos((r-n-12)/s));else if(i.snapEqual(a[1],0)&&t.getCount()>1){var u=Math.abs(this._getAvgLabelLength(t));(s=this.getMaxLabelWidth(t))>u&&(o=Math.asin(1.25*(r-n-12)/s))}if(o){var c=this.get("factor");i.each(t.get("children"),function(t){t.rotateAtStart(o),i.snapEqual(a[1],0)&&(c>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},e}(r);t.exports=o},function(t,e,n){var r=n(5).Group,i=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!0,zeroLineStyle:{stroke:"#000",lineDash:[0,0]}}},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this._drawLines()},e.prototype._drawLines=function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},e.prototype._precessItems=function(t){var e=this,n=void 0;i.each(t,function(t,r){n&&e.get("alternateColor")&&e._drawAlternativeBg(t,n,r),n=t})},e.prototype._drawGridLines=function(t,e){var n=this,r=this.get("type"),a=void 0,o=void 0,s=void 0,u=void 0,c=t.length;"line"===r||"polygon"===r?i.each(t,function(t,l){n.get("hideFirstLine")&&0===l||n.get("hideLastLine")&&l===c-1||(u=t.points,o=[],"line"===r?(o.push(["M",u[0].x,u[0].y]),o.push(["L",u[u.length-1].x,u[u.length-1].y])):i.each(u,function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])}),s=n._drawZeroLine(r,l)?i.mix({},n.get("zeroLineStyle"),{path:o}):i.mix({},e,{path:o}),(a=n.addShape("path",{attrs:s})).name="axis-grid",a._id=t._id,a.set("coord",n.get("coord")),n.get("appendInfo")&&a.setSilent("appendInfo",n.get("appendInfo")))}):i.each(t,function(t,r){n.get("hideFirstLine")&&0===r||n.get("hideLastLine")&&r===c-1||(u=t.points,o=[],i.each(u,function(t,e){var n=t.radius;0===e?o.push(["M",t.x,t.y]):o.push(["A",n,n,0,0,t.flag,t.x,t.y])}),s=i.mix({},e,{path:o}),(a=n.addShape("path",{attrs:s})).name="axis-grid",a._id=t._id,a.set("coord",n.get("coord")),n.get("appendInfo")&&a.setSilent("appendInfo",n.get("appendInfo")))})},e.prototype._drawZeroLine=function(t,e){var n=this.get("tickValues");return!("line"!==t||!n||0!==n[e]||!this.get("hightLightZero"))},e.prototype._drawAlternativeBg=function(t,e,n){var r=this.get("alternateColor"),a=void 0,o=void 0,s=void 0;i.isString(r)?o=r:i.isArray(r)&&(o=r[0],s=r[1]),n%2==0?s&&(a=this._getBackItem(e.points,t.points,s)):o&&(a=this._getBackItem(e.points,t.points,o));var u=this.addShape("Path",{attrs:a});u.name="axis-grid-rect",u._id=t._id&&t._id.replace("grid","grid-rect"),u.set("coord",this.get("coord")),this.get("appendInfo")&&u.setSilent("appendInfo",this.get("appendInfo"))},e.prototype._getBackItem=function(t,e,n){var r=[],a=this.get("type");if("line"===a)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===a){i.each(t,function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--)r.push(["L",e[o].x,e[o].y]);r.push(["Z"])}else{var s=t[0].flag;i.each(t,function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var u=e.length-1;u>=0;u--){var c=e[u],l=c.radius;u===e.length-1?r.push(["M",c.x,c.y]):r.push(["A",l,l,0,0,1===s?0:1,c.x,c.y])}}return{fill:n,path:r}},e}(r);t.exports=a},function(t,e,n){var r=n(0),i=n(41),a=r.MatrixUtil.vec2,o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},e.prototype.parseTick=function(t,e,n){return{text:t,value:e/n}},e.prototype._getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(!r.isNil(t)){var o=a.length(i);a.scale(i,i,t/o)}return i},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},e.prototype.getTextAnchor=function(t){var e=void 0;return r.snapEqual(t[0],0)?e="center":t[0]>0?e="left":t[0]<0&&(e="right"),e},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=this.get("inner"),u=[];if(Math.abs(o-a)===2*Math.PI)u=[["M",e,n],["m",0,-i],["a",r,i,0,1,1,0,2*i],["a",r,i,0,1,1,0,-2*i],["z"]];else{var c=this._getCirclePoint(a),l=this._getCirclePoint(o),h=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;if(s){var p=this.getSideVector(s*r,c),d=this.getSideVector(s*r,l),g={x:p[0]+e,y:p[1]+n},y={x:d[0]+e,y:d[1]+n};u=[["M",g.x,g.y],["L",c.x,c.y],["A",r,i,0,h,f,l.x,l.y],["L",y.x,y.y],["A",r*s,i*s,0,h,Math.abs(f-1),g.x,g.y]]}else u=[["M",e,n],["L",c.x,c.y],["A",r,i,0,h,f,l.x,l.y],["L",e,n]]}return u},e.prototype.addLabel=function(e,n,r){var i=this.get("label").offset||this.get("_labelOffset")||.001;n=this.getSidePoint(n,i),t.prototype.addLabel.call(this,e,n,r)},e.prototype.autoRotateLabels=function(){var t=this.get("ticks"),e=this.get("labelsGroup");if(e&&t.length>12){var n=this.get("radius"),i=this.get("startAngle"),a=this.get("endAngle")-i,o=a/(t.length-1),s=Math.sin(o/2)*n*2,u=this.getMaxLabelWidth(e);r.each(e.get("children"),function(e,n){var r=t[n].value*a+i,o=r%(2*Math.PI);u<s?(o<=0&&(r+=Math.PI),o>Math.PI&&(r-=Math.PI),r-=Math.PI/2,e.attr("textAlign","center")):o>Math.PI/2?r-=Math.PI:o<Math.PI/2*-1&&(r+=Math.PI),e.rotateAtStart(r)})}},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=n(41),a=r.MatrixUtil,o=r.PathUtil,s=a.vec2,u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},e.prototype.getLinePath=function(){var t=this.get("crp"),e=this.get("axisStart"),n=o.catmullRomToBezier(t);return n.unshift(["M",e.x,e.y]),n},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getHelixPoint(n)},e.prototype._getHelixPoint=function(t){var e=this.get("center"),n=this.get("a")*t+this.get("inner");return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y];if(t){var i=s.length(r);s.scale(r,r,t/i)}return r},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},e}(i);t.exports=u},function(t,e,n){var r=n(0),i=n(41),a=r.MatrixUtil,o=r.PathUtil,s=a.vec2,u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"polyline"})},e.prototype.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),i=[];i.push(e.x),i.push(e.y),r.each(t,function(t){i.push(t.x),i.push(t.y)}),i.push(n.x),i.push(n.y);var a=o.catmullRomToBezier(i);return a.unshift(["M",e.x,e.y]),a},e.prototype.getTickPoint=function(t,e){return this.get("tickPoints")[e]},e.prototype.getTickEnd=function(t,e,n){var r=this.get("tickLine"),i=e||r.length,a=this.getSideVector(i,t,n);return{x:t.x+a[0],y:t.y+a[1]}},e.prototype.getSideVector=function(t,e,n){var r=void 0;if(0===n){if((r=this.get("start")).x===e.x&&r.y===e.y)return[0,0]}else{r=this.get("tickPoints")[n-1]}var i=[e.x-r.x,e.y-r.y],a=s.normalize([],i),o=s.vertical([],a,!1);return s.scale([],o,t)},e}(i);t.exports=u},function(t,e,n){var r=n(0),i=n(288),a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,r.mix(this,e)}return t.prototype._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach(function(e){var u=e.type,c=r.deepMix({xScales:n,yScales:a,view:o,viewTheme:s},s?s.guide[u]:{},e);u=r.upperFirst(u);var l=new i[u](c);t.guides.push(l)}),t.guides},t.prototype.line=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"line"},t)),this},t.prototype.arc=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"arc"},t)),this},t.prototype.text=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"text"},t)),this},t.prototype.image=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"image"},t)),this},t.prototype.region=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"region"},t)),this},t.prototype.regionFilter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"regionFilter"},t)),this},t.prototype.dataMarker=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"dataMarker"},t)),this},t.prototype.dataRegion=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"dataRegion"},t)),this},t.prototype.html=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(r.mix({type:"html"},t)),this},t.prototype.render=function(t){var e=this,n=this,i=n._creatGuides(),a=n.backGroup||this.backContainer;r.each(i,function(r){r.top&&(a=n.frontGroup||e.frontContainer),r.render(t,a)})},t.prototype.clear=function(){this.options=[],this.reset()},t.prototype.changeVisible=function(t){var e=this.guides;r.each(e,function(e){e.setVisible(t)})},t.prototype.reset=function(){var t=this.guides;r.each(t,function(t){t.remove()}),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){t.exports={Line:n(289),Text:n(128),Image:n(290),Region:n(291),RegionFilter:n(292),Html:n(293),Arc:n(294),DataMarker:n(129),DataRegion:n(295)}},function(t,e,n){var r=n(0),i=n(17),a=r.MatrixUtil.vec2,o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:"sans-serif"},content:null}})},e.prototype.render=function(t,e){var n=this.parsePoint(t,this.start),r=this.parsePoint(t,this.end),i=e.addGroup({viewId:e.get("viewId")});this._drawLines(n,r,i),this.text&&this.text.content&&this._drawText(n,r,i),this.el=i},e.prototype._drawLines=function(t,e,n){var i=[["M",t.x,t.y],["L",e.x,e.y]],a=n.addShape("Path",{attrs:r.mix({path:i},this.lineStyle)});a.name="guide-line",this.appendInfo&&a.setSilent("appendInfo",this.appendInfo)},e.prototype._drawText=function(t,e,n){var i=this.text,o=i.position,s=i.style,u=void 0;((u="start"===o?0:"center"===o?.5:r.isString(o)&&-1!==o.indexOf("%")?parseInt(o,10)/100:r.isNumber(o)?o:1)>1||u<0)&&(u=1);var c={x:t.x+(e.x-t.x)*u,y:t.y+(e.y-t.y)*u};if(i.offsetX&&(c.x+=i.offsetX),i.offsetY&&(c.y+=i.offsetY),c.text=i.content,c=r.mix({},c,s),i.autoRotate&&r.isNil(s.rotate)){var l=a.angleTo([e.x-t.x,e.y-t.y],[1,0],1);c.rotate=l}else r.isNil(s.rotate)||(c.rotate=s.rotate*Math.PI/180);var h=n.addShape("Text",{attrs:c});h.name="guide-line-text",this.appendInfo&&h.setSilent("appendInfo",this.appendInfo)},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"image",zIndex:1,start:null,end:null,src:null,offsetX:null,offsetY:null})},e.prototype.render=function(t,e){var n=this.parsePoint(t,this.start),r={x:n.x,y:n.y};if(r.img=this.src,this.end){var i=this.parsePoint(t,this.end);r.width=i.x-n.x,r.height=i.y-n.y}else this.width&&(r.width=this.width),this.height&&(r.height=this.height);this.offsetX&&(r.x+=this.offsetX),this.offsetY&&(r.y+=this.offsetY);var a=e.addShape("Image",{zIndex:1,attrs:r});a.name="guide-image",this.appendInfo&&a.setSilent("appendInfo",this.appendInfo),this.el=a},e}(n(17));t.exports=i},function(t,e,n){var r=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},e.prototype.render=function(t,e){var n=this.style,i=this._getPath(t),a=e.addShape("path",{zIndex:this.zIndex,attrs:r.mix({path:i},n)});a.name="guide-region",this.appendInfo&&a.setSilent("appendInfo",this.appendInfo),this.el=a},e.prototype._getPath=function(t){var e=this.parsePoint(t,this.start),n=this.parsePoint(t,this.end),r=[];return r.push(["M",e.x,e.y]),r.push(["L",n.x,e.y]),r.push(["L",n.x,n.y]),r.push(["L",e.x,n.y]),r.push(["z"]),r},e}(n(17));t.exports=i},function(t,e,n){var r=n(0),i=n(17),a=n(5),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},e.prototype.render=function(t,e){var n=this,r=n.view,i=e.addGroup();r.once("afterpaint",function(){if(!i.get("destroyed")){n._drawShapes(r,i);var a=n._drawClip(t,e);i.attr({clip:a})}}),n.appendInfo&&i.setSilent("appendInfo",n.appendInfo),n.el=i},e.prototype._drawShapes=function(t,e){var n=this,i=[];return t.getAllGeoms().map(function(t){var a=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&a.map(function(t){var a=t.type,o=r.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(a,{attrs:o});return i.push(s),t}),t}),i},e.prototype._drawClip=function(t){var e=this.parsePoint(t,this.start),n=this.parsePoint(t,this.end);return new a.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y,opacity:1}})},e.prototype._adjustDisplay=function(t){var e=this.color;t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e.prototype._geomFilter=function(t){return!this.apply||r.inArray(this.apply,t)},e}(i);t.exports=o},function(t,e,n){var r=n(0),i=r.DomUtil,a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},e.prototype.render=function(t,e){var n=this.parsePoint(t,this.position),a=e.get("canvas").get("el").parentNode,o=i.createDom('<div class="g-guide"></div>');a.appendChild(o);var s=this.html;r.isFunction(s)&&(s=s(this.xScales,this.yScales));var u=i.createDom(s);o.appendChild(u),this._setDomPosition(o,u,n),this.el=o},e.prototype._setDomPosition=function(t,e,n){var r=this.alignX,a=this.alignY,o=i.getOuterWidth(e),s=i.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===r&&"top"===a?u.x-=Math.round(o/2):"middle"===r&&"bottom"===a?(u.x-=Math.round(o/2),u.y-=Math.round(s)):"left"===r&&"bottom"===a?u.y-=Math.round(s):"left"===r&&"middle"===a?u.y-=Math.round(s/2):"left"===r&&"top"===a?(u.x=n.x,u.y=n.y):"right"===r&&"bottom"===a?(u.x-=Math.round(o),u.y-=Math.round(s)):"right"===r&&"middle"===a?(u.x-=Math.round(o),u.y-=Math.round(s/2)):"right"===r&&"top"===a?u.x-=Math.round(o):(u.x-=Math.round(o/2),u.y-=Math.round(s/2)),this.offsetX&&(u.x+=this.offsetX),this.offsetY&&(u.y+=this.offsetY),i.modifyCSS(t,{position:"absolute",top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:this.zIndex})},e.prototype.remove=function(){var t=this.el;t&&t.parentNode.removeChild(t)},e}(n(17));t.exports=a},function(t,e,n){function r(t,e){var n=t.x-e.x,r=t.y-e.y,i=void 0;return 0===r?i=n<0?o/2:270*o/180:n>=0&&r>0?i=2*o-s(n/r):n<=0&&r<0?i=o-s(n/r):n>0&&r<0?i=o+s(-n/r):n<0&&r>0&&(i=s(n/-r)),i}var i=n(0),a=n(17),o=Math.PI,s=Math.atan,u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},e.prototype.render=function(t,e){var n=this.parsePoint(t,this.start),a=this.parsePoint(t,this.end),s=t.getCenter(),u=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),c=void 0;if(i.isNumberEqual(n.x,a.x)&&i.isNumberEqual(n.y,a.y))c=[["M",n.x,n.y],["A",u,u,0,1,1,2*s.x-n.x,2*s.y-n.y],["A",u,u,0,1,1,n.x,n.y]];else{var l=r(n,s),h=r(a,s);h<l&&(h+=2*o);var f=(h-l)%(2*o)>o?1:0;c=[["M",n.x,n.y],["A",u,u,0,f,1,a.x,a.y]]}var p=e.addShape("path",{zIndex:this.zIndex,attrs:i.mix({path:c},this.style)});p.name="guide-arc",this.appendInfo&&p.setSilent("appendInfo",this.appendInfo),this.el=p},e}(a);t.exports=u},function(t,e,n){function r(t){var e=void 0;return i.each(t,function(t){if(t)return e=t,!1}),e}var i=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"dataRegion",start:null,end:null,bbox:null,regionStyle:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},e.prototype.render=function(e,n){var r=this.lineLength,a=this._getRegionData(e);this.bbox=this._dataBbox(a),this._drawRegion(a,n);var o="upward"===this.direction?1:-1,s=this.style.text;s.textBaseline=o>0?"bottom":"top";var u={x:this.bbox.xMin+(this.bbox.xMax-this.bbox.xMin)/2,y:this.bbox.yMin-this.lineLength*o};n.addShape("text",{attrs:i.mix({text:this.content},s,u)});var c=Math.abs(a[0].y-this.bbox.yMin);c+=r,t.prototype.set.call(this,"lineLength",c),t.prototype.set.call(this,"content",null),t.prototype.set.call(this,"position",this.start),t.prototype.render.call(this,e,n);var l=0;o>0?(l=Math.abs(a[a.length-1].y-this.bbox.yMin),l+=r):l=r,t.prototype.set.call(this,"lineLength",l),t.prototype.set.call(this,"position",this.end),t.prototype.render.call(this,e,n)},e.prototype._getRegionData=function(t){for(var e=[],n=this.view.get("data"),i=r(this.xScales).field,a=r(this.yScales).field,o=this._getDataIndex(this.start,n),s=this._getDataIndex(this.end,n),u=o;u<=s;u++){var c=n[u],l=c[i],h=c[a],f=this.parsePoint(t,[l,h]);e.push(f)}return e},e.prototype._getDataIndex=function(t,e){for(var n=r(this.xScales).field,i=t[0],a=0;a<e.length;a++){if(e[a][n]===i)return a}},e.prototype._dataBbox=function(t){for(var e=[],n=[],r=0;r<t.length;r++)e.push(t[r].x),n.push(t[r].y);var a=i.Array.getRange(e),o=i.Array.getRange(n),s={xMin:a.min,xMax:a.max,yMin:o.min,yMax:o.max};return"downward"===this.direction?{xMin:s.xMax,xMax:s.xMin,yMin:s.yMax,yMax:s.yMin}:s},e.prototype._drawRegion=function(t,e){var n="upward"===this.direction?1:-1,r=this.bbox,a=[];a.push(["M",t[0].x,r.yMin-this.lineLength*n]);for(var o=0;o<t.length;o++){var s=["L",t[o].x,t[o].y];a.push(s)}a.push(["L",t[t.length-1].x,r.yMin-this.lineLength*n]),e.addShape("path",{attrs:i.mix({path:a},this.regionStyle)})},e.prototype._adjustLineLength=function(t,e){return Math.abs(t.yMin-e.y)},e}(n(129));t.exports=a},function(t,e,n){var r=n(0),i=n(297),a=n(18),o=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);this.options={},r.mix(this,e),this.clear();var n=this.chart;this.container=n.get("frontPlot"),this.plotRange=n.get("plotRange")}return t.prototype.clear=function(){var t=this.legends;this.backRange=null,r.each(t,function(t){r.each(t,function(t){t.remove()})}),this.legends={}},t.prototype.getBackRange=function(){var t=this.backRange;if(!t){t=this.chart.get("backPlot").getBBox();var e=this.plotRange;t.maxX-t.minX<e.br.x-e.tl.x&&t.maxY-t.minY<e.br.y-e.tl.y&&(t={minX:e.tl.x,minY:e.tl.y,maxX:e.br.x,maxY:e.br.y}),this.backRange=t}return t},t.prototype._isFieldInView=function(t,e,n){var i=!1,a=n.get("scales")[t];return a&&a.values&&(i=r.inArray(a.values,e)),i},t.prototype._bindClickEvent=function(t,e,n){var i=this,a=i.chart,o=a.get("views"),s=e.field,u=i.options;t.on("itemclick",function(e){if(u.onClick)u.onClick(e);else{var c=e.item,l=e.checked,h="single"===t.get("selectedMode"),f=c.dataValue;l?(r.Array.remove(n,f),i._isFieldInView(s,f,a)&&a.filter(s,function(t){return h?t===f:!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,f,t)&&t.filter(s,function(t){return h?t===f:!r.inArray(n,t)})})):h||(n.push(f),i._isFieldInView(s,f,a)&&a.filter(s,function(t){return!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,f,t)&&t.filter(s,function(t){return!r.inArray(n,t)})})),a.set("keepLegend",!0),a.set("keepPadding",!0),a.repaint(),a.set("keepPadding",!1),a.set("keepLegend",!1)}})},t.prototype._bindClickEventForMix=function(t){var e=this.chart.getAllGeoms();t.on("itemclick",function(t){var n=t.item.value;t.checked?r.each(e,function(t){t.getYScale().field===n&&t.show()}):r.each(e,function(t){t.getYScale().field===n&&t.hide()})})},t.prototype._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var i=e.get("labelCfg");if(i&&i.fields&&i.fields.length>0){var a=e.getXScale(),o=e.getYScale(),s=a.field,u=o.field,c=t.get("origin")._origin,l=e.get("labelContainer").get("labelsGroup").get("children");r.each(l,function(e){var r=e.get("origin")||[];r[s]===c[s]&&r[u]===c[u]&&(e.set("visible",n),t.set("gLabel",e))})}}},t.prototype._bindFilterEvent=function(t,e){var n=this,r=this.chart,i=e.field;t.on("itemfilter",function(t){var e=t.range;r.filterShape(function(t,r,a){if(t[i]){var o=t[i]>=e[0]&&t[i]<=e[1];return n._filterLabels(r,a,o),o}return!0});for(var a=r.getAllGeoms()||[],s=function(t){var n=a[t];"heatmap"===n.get("type")&&o(function(){n.drawWithRange(e)})},u=0;u<a.length;u++)s(u)})},t.prototype._getShapeData=function(t){var e=t.get("origin");return r.isArray(e)&&(e=e[0]),e._origin},t.prototype._bindHoverEvent=function(t,e){var n=this,i=n.chart,a=i.getAllGeoms(),o=n.options,s=i.get("canvas");t.on("itemhover",function(t){var i=t.item.value,u=n.pre;if(u){if(u===i)return}else r.each(a,function(a){var u=a.get("shapeContainer"),c=a.getShapes(),l=[];if(e){var h=a.get("scales")[e];r.each(c,function(t){var a=n._getShapeData(t);a&&function(t,e,n){return!r.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:Math.abs(t-e)<=1)}(a[e],i,h)&&l.push(t)})}else a.getYScale().field===i&&(l=c);r.isEmpty(l)||(t.shapes=l,t.geom=a,o.onHover?(o.onHover(t),u.sort(),s.draw()):a.setShapesActived(l))}),n.pre=i}),t.on("itemunhover",function(){n.pre=null,r.each(a,function(t){t.get("activeShapes")&&(t.clearActivedShapes(),s.draw())})})},t.prototype._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var i=!0;return n=t.invert(n),r.each(e,function(e){if(t.getText(e)===t.getText(n))return i=!1,!1}),i},t.prototype._alignLegend=function(t,e,n,r){var i=this.viewTheme,a=this.container.get("canvas"),o=a.get("width"),s=a.get("height"),u=this.totalRegion,c=this.plotRange,l=this.getBackRange(),h=t.get("offsetX")||0,f=t.get("offsetY")||0,p=t.getHeight(),d=t.getWidth(),g=i.legend.margin,y=i.legend.legendMargin,v=this.legends[r].length,m=r.split("-"),x=0,b=0,w=v>1?u:n;if("left"===m[0]||"right"===m[0])s=c.br.y,x=this._getXAlign(m[0],o,n,l,d,g),b=e?e.get("y")+e.getHeight()+y:this._getYAlignVertical(m[1],s,w,l,0,g,a.get("height"));else if("top"===m[0]||"bottom"===m[0])if(b=this._getYAlignHorizontal(m[0],s,n,l,p,g),e){var _=e.getWidth();x=e.get("x")+_+y}else x=this._getXAlign(m[1],o,w,l,0,g),"right"===m[1]&&(x=c.br.x-w.totalWidth);t.move(x+h,b+f)},t.prototype._getXAlign=function(t,e,n,r,i,a){var o="left"===t?r.minX-i-a[3]:r.maxX+a[1];return"center"===t&&(o=(e-n.totalWidth)/2),o},t.prototype._getYAlignHorizontal=function(t,e,n,r,i,a){return"top"===t?r.minY-i-a[0]:r.maxY+a[2]},t.prototype._getYAlignVertical=function(t,e,n,r,i,a,o){var s="top"===t?r.minY-i-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},t.prototype._getSubRegion=function(t){var e=0,n=0,i=0,a=0;return r.each(t,function(t){var r=t.getWidth(),o=t.getHeight();e<r&&(e=r),i+=r,n<o&&(n=o),a+=o}),{maxWidth:e,totalWidth:i,maxHeight:n,totalHeight:a}},t.prototype._getRegion=function(){var t=this,e=t.viewTheme,n=t.legends,i=e.legend.legendMargin,a=[],o=0,s=0;return r.each(n,function(e){var n=t._getSubRegion(e);a.push(n),o+=n.totalWidth+i,s+=n.totalHeight+i}),{totalWidth:o,totalHeight:s,subs:a}},t.prototype._addCategroyLegend=function(t,e,n,o,s){var u=this,c=t.field,l=u.options,h=l[c];h&&(l=h);var f=u.legends;f[s]=f[s]||[];var p=u.container,d=[],g=t.getTicks(),y=!0,v=n.get("shapeType")||"point",m=n.getDefaultValue("shape")||"circle";l[c]&&l[c].marker?(m=l[c].marker,v="point",y=!1):l.marker&&(m=l.marker,v="point",y=!1);var x=u.chart,b=u.viewTheme,w=x.get("canvas"),_=u.plotRange,S=s.split("-"),M="right"===S[0]||"left"===S[0]?_.bl.y-_.tr.y:w.get("width");r.each(g,function(e){var i=e.text,s=e.value,c=t.invert(s),l={isInCircle:n.isInCircle()},h=!o||u._isFiltered(t,o,s),f=n.getAttr("color"),p=n.getAttr("shape");if(f)if(f.callback&&f.callback.length>1){var g=Array(f.callback.length-1).fill("");l.color=f.mapping.apply(f,[c].concat(g)).join("")||b.defaultColor}else l.color=f.mapping(c).join("")||b.defaultColor;if(y&&p)if(p.callback&&p.callback.length>1){var x=Array(p.callback.length-1).fill("");m=p.mapping.apply(p,[c].concat(x)).join("")}else m=p.mapping(c).join("");var w=a.getShapeFactory(v).getMarkerCfg(m,l);r.isFunction(m)&&(w.symbol=m),d.push({value:i,dataValue:c,checked:h,marker:w})});var A=r.deepMix({},b.legend[S[0]],l[c]||l,{viewId:x.get("_id"),maxLength:M,viewTheme:b,items:d});A.title&&r.deepMix(A,{title:{text:t.alias||t.field}});var C=void 0;return u._isTailLegend(l,n)?(A.chart=u.chart,A.geom=n,C=p.addGroup(i.Tail,A)):C=p.addGroup(i.Category,A),u._bindClickEvent(C,t,o),f[s].push(C),C},t.prototype._addContinuousLegend=function(t,e,n){var a=this.legends;a[n]=a[n]||[];var o=this.container,s=t.field,u=t.getTicks(),c=[],l=void 0,h=void 0,f=void 0,p=this.viewTheme;r.each(u,function(n){var r=n.value,i=t.invert(r),a=e.mapping(i).join("");c.push({value:n.tickValue,attrValue:a,scaleValue:r}),0===r&&(h=!0),1===r&&(f=!0)}),h||c.push({value:t.min,attrValue:e.mapping(0).join(""),scaleValue:0}),f||c.push({value:t.max,attrValue:e.mapping(1).join(""),scaleValue:1});var d=this.options,g=n.split("-"),y=p.legend[g[0]];(d&&!1===d.slidable||d[s]&&!1===d[s].slidable)&&(y=r.mix({},y,p.legend.gradient));var v=r.deepMix({},y,d[s]||d,{items:c,attr:e,viewTheme:p,numberFormatter:t.formatter});return v.title&&r.deepMix(v,{title:{text:t.alias||t.field}}),"color"===e.type?l=o.addGroup(i.Color,v):"size"===e.type&&(l=o.addGroup(i.Size,v)),this._bindFilterEvent(l,t),a[n].push(l),l},t.prototype._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},t.prototype._adjustPosition=function(t,e){var n=void 0;if(e)n="right-top";else if(r.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var i=t.split("-");1===i.length?("left"===i[0]&&(n="left-bottom"),"right"===i[0]&&(n="right-bottom"),"top"===i[0]&&(n="top-center"),"bottom"===i[0]&&(n="bottom-center")):n=t}return n},t.prototype.addLegend=function(t,e,n,r){var i=this.options,a=t.field,o=i[a],s=this.viewTheme;if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(a);else{var u=i.position||s.defaultLegendPosition;u=this._adjustPosition(u,this._isTailLegend(i,n)),o&&o.position&&(u=this._adjustPosition(o.position,this._isTailLegend(o,n)));var c=void 0;c=t.isLinear?this._addContinuousLegend(t,e,u):this._addCategroyLegend(t,e,n,r,u),this._bindHoverEvent(c,a)}},t.prototype.addCustomLegend=function(t){var e=this.chart,n=this.viewTheme,a=this.container,o=this.options;t&&(o=o[t]);var s=o.position||n.defaultLegendPosition;s=this._adjustPosition(s);var u=this.legends;u[s]=u[s]||[];var c=o.items;if(c){var l=e.getAllGeoms();r.each(c,function(t){var e=function(t,e){var n=void 0;return r.each(t,function(t){t.get("visible")&&t.getYScale().field===e&&(n=t)}),n}(l,t.value);r.isObject(t.marker)?t.marker.radius=t.marker.radius||4.5:t.marker={symbol:t.marker?t.marker:"circle",fill:t.fill,radius:4.5},t.checked=!!r.isNil(t.checked)||t.checked,t.geom=e});var h=e.get("canvas"),f=this.plotRange,p=s.split("-"),d="right"===p[0]||"left"===p[0]?f.bl.y-f.tr.y:h.get("width"),g=r.deepMix({},n.legend[p[0]],o,{maxLength:d,viewTheme:n,items:c}),y=a.addGroup(i.Category,g);return u[s].push(y),y.on("itemclick",function(t){o.onClick&&o.onClick(t)}),this._bindHoverEvent(y),y}},t.prototype.addMixedLegend=function(t,e){var n=[];r.each(t,function(t){var i=t.field;r.each(e,function(e){if(e.getYScale()===t&&t.values&&t.values.length>0){var r=e.get("shapeType")||"point",o=e.getDefaultValue("shape")||"circle",s=a.getShapeFactory(r),u={color:e.getDefaultValue("color")},c=s.getMarkerCfg(o,u),l={value:i,marker:c};n.push(l)}})});var i={custom:!0,items:n};this.options=r.deepMix({},i,this.options);var o=this.addCustomLegend();this._bindClickEventForMix(o)},t.prototype.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var i=0;return r.each(e,function(e,a){var o=n.subs[i];r.each(e,function(n,r){var i=e[r-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,i,o,a)}),i++}),this},t}();t.exports=s},function(t,e,n){t.exports={Category:n(130),Tail:n(298),Color:n(299),Size:n(301)}},function(t,e,n){var r=n(0),i=n(130),a=n(2),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"tail-legend",layout:"vertical",autoLayout:!0})},e.prototype._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this.get("unCheckColor"),a=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});a.translate(n,0),a.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var c=r.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(c.fill&&(c.fill=i),c.stroke&&(c.stroke=i));var l=a.addShape("marker",{type:"marker",attrs:c});l.attr("cursor","pointer"),l.name="legend-marker",u+=l.getBBox().width+s}var h=r.mix({},o,{x:u,y:0,text:this._formatItemValue(t.value)});t.checked||r.mix(h,{fill:i});var f=a.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));var p=a.getBBox(),d=this.get("itemWidth"),g=a.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:d||p.width,height:p.height}});return g.attr("cursor","pointer"),g.setSilent("origin",t),g.name="legend-item",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},e.prototype._adjust=function(){if(this.get("geom")){var t=this.get("geom").get("dataArray"),e=this.get("itemsGroup").get("children"),n=0;r.each(e,function(e){var i=t[n],a=i[i.length-1].y;r.isArray(a)&&(a=a[1]);var o=e.getBBox().height,s=e.get("x"),u=a-o/2;e.translate(s,u),n++}),this.get("autoLayout")&&this._antiCollision(e)}},e.prototype._renderUI=function(){var t=this;t.get("useHtml")?t._renderHTML():(t._renderItems(),t.get("autoWrap")&&t._adjustItems(),t._renderBack());t.get("chart").once("afterpaint",function(){t._adjust()})},e.prototype._getPreviousY=function(t){return t.attr("matrix")[7]+t.getBBox().height},e.prototype._adjustDenote=function(t,e,n){var r=2*-a.legend.legendMargin;t.addShape("path",{attrs:{path:"M-2,"+e+"L"+r+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},e.prototype._antiCollision=function(t){var e=this;t.sort(function(t,e){return t.attr("matrix")[7]-e.attr("matrix")[7]});var n=!0,r=e.get("chart").get("plotRange"),i=r.tl.y,a=Math.abs(i-r.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,c=t.map(function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),e<s&&(s=e),{size:t.getBBox().height,targets:[e-i]}});s-=i;for(var l=0;n;){for(var h=0;h<c.length;h++){var f=c[h],p=(Math.min.apply(s,f.targets)+Math.max.apply(s,f.targets))/2;f.pos=Math.min(Math.max(s,p-f.size/2),a-f.size)}for(n=!1,l=c.length;l--;)if(l>0){var d=c[l-1],g=c[l];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),c.splice(l,1),n=!0)}}l=0;var y=this.get("itemsGroup").addGroup();c.forEach(function(n){var r=i+o;n.targets.forEach(function(){var i=t[l].attr("matrix")[7],a=n.pos+r-o/2;Math.abs(i-a)>o/2&&e._adjustDenote(y,a,i-e.attr("matrix")[7]/2),t[l].translate(0,-i),t[l].translate(0,a),r+=o,l++})})},e}(i);t.exports=o},function(t,e,n){var r=n(66).ColorUtil,i=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"color-legend",layout:"vertical",labelOffset:15,lineStyle:{lineWidth:1,stroke:"#fff"}})},e.prototype._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("width"),n=this.get("height"),a=this.get("layout"),o=this.get("items"),s="",u=void 0;return"vertical"===a?(s+="l (90) ",i.each(o,function(t){u=r.toRGB(t.attrValue),s+=1-t.scaleValue+":"+u+" "})):(s+="l (0) ",i.each(o,function(t){u=r.toRGB(t.attrValue),s+=t.scaleValue+":"+u+" "})),this._addBackground(t,"Rect",{x:0,y:0,width:e,height:n,fill:s,strokeOpacity:0})},e.prototype._renderBackground=function(){var t=this,e=this.get("titleShape"),n=this.get("titleGap");n=e?e.getBBox().height+n:n;var a=this.get("width"),o=this.get("height"),s=this.get("layout"),u=this.get("items"),c="",l=void 0,h=[],f=this.addGroup();"vertical"===s?(c+="l (90) ",i.each(u,function(e,n){0!==n&&n!==u.length-1&&(h.push(["M",0,o-e.scaleValue*o]),h.push(["L",a,o-e.scaleValue*o])),l=r.toRGB(e.attrValue),c+=1-e.scaleValue+":"+l+" ",f.addShape("text",{attrs:i.mix({},{x:a+t.get("labelOffset")/2,y:o-e.scaleValue*o,text:t._formatItemValue(e.value)+""},t.get("textStyle"),{textAlign:"start"})})})):(c+="l (0) ",i.each(u,function(e,n){0!==n&&n!==u.length-1&&(h.push(["M",e.scaleValue*a,0]),h.push(["L",e.scaleValue*a,o])),l=r.toRGB(e.attrValue),c+=e.scaleValue+":"+l+" ",f.addShape("text",{attrs:i.mix({},{x:e.scaleValue*a,y:o+t.get("labelOffset"),text:t._formatItemValue(e.value)+""},t.get("textStyle"))})})),f.addShape("rect",{attrs:{x:0,y:0,width:a,height:o,fill:c,strokeOpacity:0}}),f.addShape("path",{attrs:i.mix({path:h},this.get("lineStyle"))}),f.move(0,n)},e}(n(132));t.exports=a},function(t,e,n){var r=n(0),i=r.DomUtil,a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},e.prototype._beforeRenderUI=function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor",a),n.attr("cursor",a),r.attr("cursor",a),this.sort()},e.prototype._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},e.prototype._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,a),s.translate(r*i,a)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(i/2,(1-n)*a),s.translate(i/2,(1-r)*a))},e.prototype._renderHorizontal=function(){this._transform("horizontal")},e.prototype._renderVertical=function(){this._transform("vertical")},e.prototype._bindUI=function(){this.on("mousedown",r.wrapBehavior(this,"_onMouseDown"))},e.prototype._isElement=function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){return n.get("children").indexOf(t)>-1}return!1},e.prototype._getRange=function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},e.prototype._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=r.upperFirst(t);var i=this.get("range"),a=this.get("page"+t),o=this.get("currentTarget"),s=this.get("rangeStash"),u="vertical"===this.get("layout")?-1:1,c=e["page"+t],l=(c-a)/n*100*u,h=void 0;i[1]<=i[0]?(this._isElement(o,"minHandleElement")||this._isElement(o,"maxHandleElement"))&&(i[0]=this._getRange(l,i[0]),i[1]=this._getRange(l,i[0])):(this._isElement(o,"minHandleElement")&&(i[0]=this._getRange(l,i[0])),this._isElement(o,"maxHandleElement")&&(i[1]=this._getRange(l,i[1]))),this._isElement(o,"middleHandleElement")&&(h=s[1]-s[0],i[0]=this._getRange(l,i[0]),i[1]=i[0]+h,i[1]>100&&(i[1]=100,i[0]=i[1]-h)),this.emit("sliderchange",{range:i}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},e.prototype._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},e.prototype._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=i.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},e.prototype._onCanvasMouseMove=function(t){if(!this._mouseOutArea(t)){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)}},e.prototype._onCanvasMouseUp=function(){this._removeDocumentEvents()},e.prototype._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},e.prototype._mouseOutArea=function(t){var e=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),r=n.getBBox(),i=n.attr("matrix")[6],a=n.attr("matrix")[7],o=i+r.width,s=a+r.height,u=t.clientX-e.x,c=t.clientY-e.y;return u<i||u>o||c<a||c>s},e}(n(5).Group);t.exports=a},function(t,e,n){var r=n(0),i=n(2),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"size-legend",width:100,height:200,_circleStyle:{stroke:"#4E7CCC",fill:"#fff",fillOpacity:0},textStyle:{fill:"#333",textAlign:"start",textBaseline:"middle",fontFamily:i.fontFamily},inRange:{fill:"white",stroke:"#5d7ca3",lineWidth:2},inRangeSlider:{fill:"#5d7ca3"},backgroundCircle:{stroke:"#ccc",fill:"white",lineWidth:2}})},e.prototype._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n="vertical"===e?2:this.get("width"),i="vertical"===e?this.get("height"):2,a=this.get("height")/2,o=this.get("inRangeSlider"),s="vertical"===e?[[0,15],[n,15],[n,i-5],[0,i-5]]:[[5,a+i],[5,a],[5+n-15-4,a],[5+n-15-4,a+i]],u=this.get("backgroundCircle");return t.addShape("circle",{attrs:r.mix({x:"vertical"===e?n/2:0,y:"vertical"===e?0:a,r:"vertical"===e?15:5},u)}),t.addShape("circle",{attrs:r.mix({x:n,y:"vertical"===e?i:a,r:"vertical"===e?5:15},u)}),this._addBackground(t,"Polygon",r.mix({points:s},o))},e.prototype._addHorizontalTrigger=function(t,e,n,i){var a=this.get("slider").get(t+"HandleElement"),o=-this.get("height")/2,s=a.addShape("circle",{attrs:r.mix({x:0,y:o,r:i},e)}),u=a.addShape("text",{attrs:r.mix(n,{x:0,y:o+i+10,textAlign:"center",textBaseline:"middle"})}),c="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",c),u.attr("cursor",c),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},e.prototype._addVerticalTrigger=function(t,e,n,i){var a=this.get("slider").get(t+"HandleElement"),o=a.addShape("circle",{attrs:r.mix({x:-6,y:0,r:i},e)}),s=a.addShape("text",{attrs:r.mix(n,{x:i+10,y:0,textAlign:"start",textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},e.prototype._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),a=this.get("inRange"),o=r.mix({},a),s=r.mix({},a),u=r.mix({text:this._formatItemValue(t.value)+""},i),c=r.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u,5),this._addVerticalTrigger("max",s,c,15)):(this._addHorizontalTrigger("min",o,u,5),this._addHorizontalTrigger("max",s,c,15))},e.prototype._bindUI=function(){var t=this;if(t.get("slidable")){t.get("slider").on("sliderchange",function(e){var n=e.range,r=1*t.get("firstItem").value,i=1*t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r),s=5+n[0]/100*10,u=5+n[1]/100*10;t._updateElement(a,o,s,u);var c=new Event("itemfilter",e,!0,!0);c.range=[a,o],t.emit("itemfilter",c)})}},e.prototype._updateElement=function(t,e,n,r){var i=this.get("minTextElement"),a=this.get("maxTextElement"),o=this.get("minButtonElement"),s=this.get("maxButtonElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),i.attr("text",this._formatItemValue(t)+""),a.attr("text",this._formatItemValue(e)+""),o.attr("r",n),s.attr("r",r);if("vertical"===this.get("layout"))i.attr("x",n+10),a.attr("x",r+10);else{var u=-this.get("height")/2;i.attr("y",u+n+10),a.attr("y",u+r+10)}},e.prototype._addCircle=function(t,e,n,i,a){var o=this.addGroup(),s=this.get("_circleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),l=this.get("titleGap");c&&(l+=c.getBBox().height),o.addShape("circle",{attrs:r.mix({x:t,y:e+l,r:0===n?1:n},s)}),o.addShape("text",{attrs:r.mix({x:a+5,y:e+l,text:0===i?"0":i},u)})},e.prototype._renderBackground=function(){var t=1*this.get("firstItem").attrValue,e=1*this.get("lastItem").attrValue,n=(t+e)/2;this._addCircle(e,e,e,n,2*e),this._addCircle(e,2*e+8+n,n,(t+n)/2,2*e),this._addCircle(e,2*(e+8+n)+t,t,t,2*e)},e}(n(132));t.exports=a},function(t,e,n){function r(t,e){if(!t)return!1;return!!t.className&&-1!==(a.isNil(t.className.baseVal)?t.className:t.className.baseVal).indexOf(e)}function i(t){var e=[];return a.each(t,function(t){var n=function(t,e){var n=-1;return a.each(t,function(t,r){var i=!0;for(var o in e)if(e.hasOwnProperty(o)&&-1===l.indexOf(o)&&!a.isObject(e[o])&&e[o]!==t[o]){i=!1;break}if(i)return n=r,!1}),n}(e,t);-1===n?e.push(t):e[n]=t}),e}var a=n(0),o=n(303),s=a.MatrixUtil.vec2,u=["line","area","path","areaStack"],c=["line","area"],l=["marker","showMarker"],h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a.assign(this,e),this.timeStamp=0}return t.prototype._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),r=n.getPointByClient(t.clientX,t.clientY),i=n.get("pixelRatio");r.x=r.x/i,r.y=r.y/i;var a=e.getViewsByPoint(r);return r.views=a,r},t.prototype._getCanvas=function(){return this.chart.get("canvas")},t.prototype._getTriggerEvent=function(){var t=this.options.triggerOn,e=void 0;return t&&"mousemove"!==t?"click"===t?e="plotclick":"none"===t&&(e=null):e="plotmove",e},t.prototype._getDefaultTooltipCfg=function(){var t=this.chart,e=this.viewTheme,n=this.options,r=a.mix({},e.tooltip),i=t.getAllGeoms().filter(function(t){return t.get("visible")}),o=[];a.each(i,function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&a.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return r=!0,!1}),-1!==a.indexOf(o,e)||r||o.push(e)});var s=void 0;return i.length&&i[0].get("coord")&&"cartesian"===i[0].get("coord").type&&1===o.length&&("interval"===o[0]&&!1!==n.shared?s={zIndex:0,crosshairs:e.tooltipCrosshairsRect}:a.indexOf(c,o[0])>-1&&(s={crosshairs:e.tooltipCrosshairsLine})),a.mix(r,s,{isTransposed:!(!i.length||!i[0].get("coord"))&&i[0].get("coord").isTransposed})},t.prototype._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,a.wrapBehavior(this,"onMouseMove")),t.on("plotleave",a.wrapBehavior(this,"onMouseOut")))},t.prototype._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,a.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",a.getWrapBehavior(this,"onMouseOut")))},t.prototype._setTooltip=function(t,e,n,r){var o=this.tooltip,s=this.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=i(e),this.prePoint=t;var u=this.chart,c=this.viewTheme,l=a.isArray(t.x)?t.x[t.x.length-1]:t.x,h=a.isArray(t.y)?t.y[t.y.length-1]:t.y;o.get("visible")||u.emit("tooltip:show",{x:l,y:h,tooltip:o});var f=e[0],p=f.title||f.name;o.isContentChange(p,e)&&(u.emit("tooltip:change",{tooltip:o,x:l,y:h,items:e}),p=e[0].title||e[0].name,o.setContent(p,e),a.isEmpty(n)?o.clearMarkers():!0===this.options.hideMarkers?o.set("markerItems",n):o.setMarkers(n,c.tooltipMarker)),o.setPosition(l,h,r),o.show()}},t.prototype.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},t.prototype.onMouseMove=function(t){if(!a.isEmpty(t.views)){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(r,t.views,t.shape),this.timeStamp=n)}},t.prototype.onMouseOut=function(t){this.tooltip.get("visible")&&(t&&t.toElement&&(r(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,i=!1;n&&n!==document.body;){if(r(n,e)){i=!0;break}n=n.parentNode}return i}(t.toElement,"g2-tooltip"))||this.hideTooltip())},t.prototype.renderTooltip=function(){var t=this;if(!t.tooltip){var e=t.chart,n=t.viewTheme,r=t._getCanvas(),i=t._getDefaultTooltipCfg(),s=t.options;(s=a.deepMix({plotRange:e.get("plotRange"),capture:!1,canvas:r,frontPlot:e.get("frontPlot"),viewTheme:n,backPlot:e.get("backPlot")},i,s)).crosshairs&&"rect"===s.crosshairs.type&&(s.zIndex=0),s.visible=!1,!1===s.shared&&a.isNil(s.position)&&(s.position="top");var u=new o(s);t.tooltip=u;var c=t._getTriggerEvent();if(!u.get("enterable")&&"plotmove"===c){var l=u.get("container");l&&(l.onmousemove=function(n){var r=t._normalizeEvent(n);e.emit(c,r)})}t._bindEvent()}},t.prototype.showTooltip=function(t,e,n){if(!a.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var r=this.options,i=[],o=[];if(a.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var s=e.get("geoms"),c=e.get("coord");a.each(s,function(e){var s=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var l=e.get("dataArray");if(e.isShareTooltip()||!1===r.shared&&a.inArray(["area","line","path"],s))a.each(l,function(n){var l=e.findPoint(t,n);if(l){var h=e.getTipItems(l,r.title);-1!==a.indexOf(u,s)&&a.each(h,function(t){var e=t.point;if(e&&e.x&&e.y){var n=a.isArray(e.x)?e.x[e.x.length-1]:e.x,r=a.isArray(e.y)?e.y[e.y.length-1]:e.y;e=c.applyMatrix(n,r,1),t.x=e[0],t.y=e[1],t.showMarker=!0,i.push(t)}}),o=o.concat(h)}});else{var h=e.get("shapeContainer");n&&n.get("visible")&&n.get("origin")&&n.get("parent")===h&&(o=e.getTipItems(n.get("origin"),r.title))}}}),a.each(o,function(t){var e=t.point,n=a.isArray(e.x)?e.x[e.x.length-1]:e.x,r=a.isArray(e.y)?e.y[e.y.length-1]:e.y;e=c.applyMatrix(n,r,1),t.x=e[0],t.y=e[1]})}),o.length){var c=o[0];if(!o.every(function(t){return t.title===c.title})){var l=c,h=1/0;o.forEach(function(e){var n=s.distance([t.x,t.y],[e.x,e.y]);n<h&&(h=n,l=e)}),o=o.filter(function(t){return t.title===l.title}),i=i.filter(function(t){return t.title===l.title})}if(!1===r.shared&&o.length>1){var f=o[0],p=Math.abs(t.y-f.y);a.each(o,function(e){Math.abs(t.y-e.y)<=p&&(f=e,p=Math.abs(t.y-e.y))}),f&&f.x&&f.y&&(i=[f]),o=[f]}this._setTooltip(t,o,i,n)}else this.hideTooltip()}},t.prototype.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},t}();t.exports=h},function(t,e,n){function r(t,e){return t.getElementsByClassName(e)[0]}var i=n(0),a=n(55),o=n(2),s=i.DomUtil,u=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._init(),r.get("items")&&r._renderTooltip(),r._renderCrosshairs(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{x:0,y:0,items:null,showTitle:!0,crosshairs:null,plotRange:null,offset:10,timeStamp:0,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-title"></div><ul class="g2-tooltip-list"></ul></div>',itemTpl:'<li data-index={index}><span style="background-color:{color};" class=g2-tooltip-marker></span>{name}<span class=g2-tooltip-value>{value}</span></li>',inPlot:!0,follow:!0,enterable:!1}},e.prototype._initTooltipWrapper=function(){var t=this.get("containerTpl"),e=this.get("canvas").get("el").parentNode,n=void 0;if(/^\#/.test(t)){var r=t.replace("#","");n=document.getElementById(r)}else n=s.createDom(t),s.modifyCSS(n,this.get("g2-tooltip")),e.appendChild(n),e.style.position="relative";this.set("container",n)},e.prototype._init=function(){var t=this.get("crosshairs"),e=this.get("frontPlot"),n=this.get("backPlot"),r=this.get("viewTheme")||o,a=void 0;t&&("rect"===t.type?(this.set("crosshairs",i.deepMix({},r.tooltipCrosshairsRect,t)),a=n.addGroup({zIndex:0})):(this.set("crosshairs",i.deepMix({},r.tooltipCrosshairsLine,t)),a=e.addGroup())),this.set("crosshairsGroup",a),this._initTooltipWrapper()},e.prototype._clearDom=function(){var t=this.get("container"),e=r(t,"g2-tooltip-title"),n=r(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")},e.prototype._addItem=function(t,e){var n=this.get("itemTpl"),a=i.substitute(n,i.mix({index:e},t)),o=s.createDom(a);s.modifyCSS(o,this.get("g2-tooltip-list-item"));var u=r(o,"g2-tooltip-marker");u&&s.modifyCSS(u,this.get("g2-tooltip-marker"));var c=r(o,"g2-tooltip-value");return c&&s.modifyCSS(c,this.get("g2-tooltip-value")),o},e.prototype._renderTooltip=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),a=t.get("container"),o=r(a,"g2-tooltip-title"),u=r(a,"g2-tooltip-list"),c=t.get("items");t._clearDom(),o&&e&&(s.modifyCSS(o,t.get("g2-tooltip-title")),o.innerHTML=n),u&&(s.modifyCSS(u,t.get("g2-tooltip-list")),i.each(c,function(e,n){u.appendChild(t._addItem(e,n))}))},e.prototype._clearCrosshairsGroup=function(){var t=this.get("crosshairsGroup");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.clear()},e.prototype._renderCrosshairs=function(){var t=this.get("crosshairs"),e=this.get("canvas"),n=this.get("plotRange"),r=this.get("isTransposed");if(t)switch(this._clearCrosshairsGroup(),t.type){case"x":this._renderHorizontalLine(e,n);break;case"y":this._renderVerticalLine(e,n);break;case"cross":this._renderHorizontalLine(e,n),this._renderVerticalLine(e,n);break;case"rect":this._renderBackground(e,n);break;default:r?this._renderHorizontalLine(e,n):this._renderVerticalLine(e,n)}},e.prototype._addCrossLineShape=function(t,e){var n=this.get("crosshairsGroup").addShape("line",{capture:!1,attrs:t});return n.hide(),this.set("crossLineShape"+e,n),n},e.prototype._renderVerticalLine=function(t,e){var n=this.get("crosshairs").style,r=i.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addCrossLineShape(r,"Y")},e.prototype._renderHorizontalLine=function(t,e){var n=this.get("crosshairs").style,r=i.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addCrossLineShape(r,"X")},e.prototype._renderBackground=function(t,e){var n=this.get("crosshairs").style,r=this.get("crosshairsGroup"),a=i.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),o=r.addShape("rect",{attrs:a});return o.hide(),this.set("crosshairsRectShape",o),o},e.prototype.isContentChange=function(t,e){var n=this.get("titleContent"),r=this.get("items"),a=!(t===n&&r.length===e.length);return a||i.each(e,function(t,e){var n=r[e];for(var o in t)if(t.hasOwnProperty(o)&&!i.isObject(t[o])&&t[o]!==n[o]){a=!0;break}if(a)return!1}),a},e.prototype.setContent=function(t,e){var n=+new Date;return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this._renderTooltip(),this},e.prototype.setMarkers=function(t,e){var n=this.get("markerGroup"),r=this.get("frontPlot");n?n.clear():(n=r.addGroup({zIndex:1,capture:!1}),this.set("markerGroup",n)),i.each(t,function(t){n.addShape("marker",{color:t.color,attrs:i.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y})})}),this.set("markerItems",t)},e.prototype.clearMarkers=function(){var t=this.get("markerGroup");t&&t.clear()},e.prototype.setPosition=function(t,e,n){var r=this.get("container"),a=this.get("crossLineShapeX"),o=this.get("crossLineShapeY"),u=this.get("crosshairsRectShape"),c=t,l=e,h=this.get("canvas").get("el"),f=s.getWidth(h),p=s.getHeight(h),d=this.get("offset"),g=void 0,y=this.get("prePosition")||{x:0,y:0};if(this.get("position")?(g=function(t,e,n,r,i){var a=r.clientWidth,o=r.clientHeight,s=0,u=0,c=20;if(i){var l=i.getBBox();s=l.width,u=l.height,t=l.x,e=l.y,c=5}switch(n){case"inside":t=t+s/2-a/2,e=e+u/2-o/2;break;case"top":t=t+s/2-a/2,e=e-o-c;break;case"left":t=t-a-c,e=e+u/2-o/2;break;case"right":t=t+s+c,e=e+u/2-o/2;break;case"bottom":default:t=t+s/2-a/2,e=e+u+c}return[t,e]}(t,e,this.get("position"),r,n),t=g[0],e=g[1]):this.get("enterable")?(g={x:t,y:e-=r.clientHeight/2},y&&t-y.x>0?t-=r.clientWidth+1:t+=1):(g=function(t,e,n,r,i){var a=n.clientWidth,o=n.clientHeight;return t+a+20>r?t=(t-=a+20)<0?0:t:t+=20,e+o+20>i?(e-=o+20,e=t<0?0:e):e+=20,[t,e]}(t,e,r,f,p),t=g[0],e=g[1]),this.set("prePosition",g),this.get("inPlot")){g=function(t,e,n,r,i){var a=n.clientWidth,o=n.clientHeight;return t+a>r.tr.x&&(t-=a+40),t<r.tl.x&&(t=r.tl.x),i||(e+o>r.bl.y&&(e-=o+40),e<r.tl.y&&(e=r.tl.y)),[t,e]}(t,e,r,this.get("plotRange"),this.get("enterable")),t=g[0],e=g[1]}if(y.x!==t||y.y!==e){var v=this.get("markerItems");if(i.isEmpty(v)||(c=v[0].x,l=v[0].y),o&&o.move(c,0),a&&a.move(0,l),u){var m=this.get("isTransposed"),x=this.get("items"),b=x[0],w=x[x.length-1],_=m?"y":"x",S=m?"height":"width",M=b[_];if(x.length>1&&b[_]>w[_]&&(M=w[_]),this.get("crosshairs").width)u.attr(_,M-this.get("crosshairs").width/2),u.attr(S,this.get("crosshairs").width);else if(i.isArray(b.point[_])&&!b.size){var A=b.point[_][1]-b.point[_][0];u.attr(_,b.point[_][0]),u.attr(S,A)}else d=3*b.size/4,u.attr(_,M-d),1===x.length?u.attr(S,3*b.size/2):u.attr(S,Math.abs(w[_]-b[_])+2*d)}var C=this.get("follow");r.style.left=C?t+"px":0,r.style.top=C?e+"px":0}},e.prototype.show=function(){var e=this.get("crossLineShapeX"),n=this.get("crossLineShapeY"),r=this.get("crosshairsRectShape"),i=this.get("markerGroup"),a=this.get("container"),o=this.get("canvas");e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show(),t.prototype.show.call(this),a.style.visibility="visible",o.draw()},e.prototype.hide=function(){var e=this.get("container"),n=this.get("crossLineShapeX"),r=this.get("crossLineShapeY"),i=this.get("crosshairsRectShape"),a=this.get("markerGroup"),o=this.get("canvas");e.style.visibility="hidden",n&&n.hide(),r&&r.hide(),i&&i.hide(),a&&a.hide(),t.prototype.hide.call(this),o.draw()},e.prototype.destroy=function(){var e=this.get("crossLineShapeX"),n=this.get("crossLineShapeY"),r=this.get("markerGroup"),i=this.get("crosshairsRectShape"),a=this.get("container"),o=this.get("containerTpl");a&&!/^\#/.test(o)&&a.parentNode.removeChild(a),e&&e.remove(),n&&n.remove(),r&&r.remove(),i&&i.remove(),t.prototype.destroy.call(this)},e}(a);t.exports=u},function(t,e,n){function r(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isNil(n)&&a.isNil(r)?a.isEqual(t,e):a.isEqual(n,r)}function i(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.view=null,this.canvas=null,a.assign(this,e),this._init()}return t.prototype._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},t.prototype._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},t.prototype._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},t.prototype._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},r=e.getViewsByPoint(n);return n.views=r,n},t.prototype._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},t.prototype.bindEvents=function(){var t=this.canvas;t.on("mousedown",a.wrapBehavior(this,"onDown")),t.on("mousemove",a.wrapBehavior(this,"onMove")),t.on("mouseleave",a.wrapBehavior(this,"onOut")),t.on("mouseup",a.wrapBehavior(this,"onUp")),t.on("click",a.wrapBehavior(this,"onClick")),t.on("dblclick",a.wrapBehavior(this,"onClick")),t.on("touchstart",a.wrapBehavior(this,"onTouchstart")),t.on("touchmove",a.wrapBehavior(this,"onTouchmove")),t.on("touchend",a.wrapBehavior(this,"onTouchend"))},t.prototype._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var r=this.view;if(r.isShapeInView(t)){var i=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(i,n);var a=r.get("parent");a&&a.emit(i,n)}}},t.prototype.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},t.prototype.onMove=function(t){var e=this.view,n=this.currentShape;n&&n.get("destroyed")&&(n=null,this.currentShape=null);var a=this._getShape(t.x,t.y)||t.currentTarget,o=this._getShapeEventObj(t);if(o.shape=a,i(o),e.emit("mousemove",o),this._triggerShapeEvent(a,"mousemove",o),n&&!r(n,a)){var s=this._getShapeEventObj(t);s.shape=n,s.toShape=a,i(s),this._triggerShapeEvent(n,"mouseleave",s)}if(a&&!r(n,a)){var u=this._getShapeEventObj(t);u.shape=a,u.fromShape=n,i(u),this._triggerShapeEvent(a,"mouseenter",u)}this.currentShape=a;var c=this._getPointInfo(t),l=this.curViews||[];0===l.length&&c.views.length&&e.emit("plotenter",this._getEventObj(t,c,c.views)),l.length&&0===c.views.length&&e.emit("plotleave",this._getEventObj(t,c,l)),c.views.length&&((o=this._getEventObj(t,c,c.views)).shape=a,i(o),e.emit("plotmove",o)),this.curViews=c.views},t.prototype.onOut=function(t){var e=this.view,n=this._getPointInfo(t),r=this.curViews||[],i=this._getEventObj(t,n,r);!this.curViews||0===this.curViews.length||i.toElement&&"CANVAS"===i.toElement.tagName||(e.emit("plotleave",i),this.curViews=[])},t.prototype.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},t.prototype.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("click",r),this._triggerShapeEvent(n,t.type,r),this.currentShape=n;var o=this._getPointInfo(t),s=o.views;if(!a.isEmpty(s)){var u=this._getEventObj(t,o,s);if(this.currentShape){var c=this.currentShape;u.shape=c,i(u)}e.emit("plotclick",u),"dblclick"===t.type&&(e.emit("plotdblclick",u),e.emit("dblclick",r))}},t.prototype.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},t.prototype.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},t.prototype.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},t.prototype.clearEvents=function(){var t=this.canvas;t.off("mousemove",a.getWrapBehavior(this,"onMove")),t.off("mouseleave",a.getWrapBehavior(this,"onOut")),t.off("mousedown",a.getWrapBehavior(this,"onDown")),t.off("mouseup",a.getWrapBehavior(this,"onUp")),t.off("click",a.getWrapBehavior(this,"onClick")),t.off("dblclick",a.getWrapBehavior(this,"onClick")),t.off("touchstart",a.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",a.getWrapBehavior(this,"onTouchmove")),t.off("touchend",a.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){function r(t,e){var n=[];if(!1===t.get("animate"))return[];var i=t.get("children");return s.each(i,function(t){if(t.isGroup)n=n.concat(r(t,e));else if(t.isShape&&t._id){var i=t._id;(i=i.split("-")[0])===e&&n.push(t)}}),n}function i(t,e,n,r){return r?u.Action[n][r]:u.getAnimation(t,e,n)}function a(t,e,n){var r=u.getAnimateCfg(t,e);return n&&n[e]?s.deepMix({},r,n[e]):r}function o(t,e,n,r){var o=void 0,u=void 0,l=!1;if(r){var h=[],f=[];s.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),h.push(e),delete t[e._id]):f.push(e)}),s.each(t,function(t){var e=t.name,r=t.coord,h=t._id,f=t.attrs,p=t.index,d=t.type;if(u=a(e,"leave",t.animateCfg),o=i(e,r,"leave",u.animation),s.isFunction(o)){var g=n.addShape(d,{attrs:f,index:p});if(g._id=h,g.name=e,r&&"label"!==e){var y=g.getMatrix(),v=c.multiply([],y,r.matrix);g.setMatrix(v)}l=!0,o(g,u,r)}}),s.each(h,function(t){var e=t.name,n=t.get("coord"),r=t.get("cacheShape").attrs;if(!s.isEqual(r,t.attr())){if(u=a(e,"update",t.get("animateCfg")),o=i(e,n,"update",u.animation),s.isFunction(o))o(t,u,n);else{var c=s.cloneDeep(t.attr());t.attr(r),t.animate(c,u.duration,u.easing,function(){t.setSilent("cacheShape",null)})}l=!0}}),s.each(f,function(t){var e=t.name,n=t.get("coord");u=a(e,"enter",t.get("animateCfg")),o=i(e,n,"enter",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)})}else s.each(e,function(t){var e=t.name,n=t.get("coord");u=a(e,"appear",t.get("animateCfg")),o=i(e,n,"appear",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)});return l}var s=n(0),u=n(115),c=s.MatrixUtil.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),i=t.get("backPlot"),a=t.get("_id"),u=t.get("canvas"),c=u.get(a+"caches")||[];0===c.length&&(e=!1);var l=r(n,a),h=r(i,a),f=l.concat(h);u.setSilent(a+"caches",function(t){var e={};return s.each(t,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:s.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}(f));(e?o(c,f,u,e):o(c,l,u,e))||u.draw()}}},function(t,e,n){var r=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},e.prototype._beforeRenderUI=function(){this._calculateRange()},e.prototype._renderUI=function(){this._renderBackground(),this._renderPlotBackground()},e.prototype._renderBackground=function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},i=this.get("backgroundShape");i?i.attr(n):(i=this.addShape("rect",{attrs:r.mix(n,t)}),this.set("backgroundShape",i))}},e.prototype._renderPlotBackground=function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.br.x-e.bl.x,i=e.br.y-e.tr.y,a=e.tl,o={x:a.x,y:a.y,width:n,height:i},s=this.get("plotBackShape");s?s.attr(o):(t.image?(o.img=t.image,s=this.addShape("image",{attrs:o})):(r.mix(o,t),s=this.addShape("rect",{attrs:o})),this.set("plotBackShape",s))}},e.prototype._convert=function(t,e){if(r.isString(t))if("auto"===t)t=0;else if(-1!==t.indexOf("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*i:t*a}return t},e.prototype._calculateRange=function(){var t=this.get("plotRange");r.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height"),o=r.toAllPadding(e),s=this._convert(o[0],!1),u=this._convert(o[1],!0),c=this._convert(o[2],!1),l=this._convert(o[3],!0),h=Math.min(l,i-u),f=Math.max(l,i-u),p=Math.min(a-c,s),d=Math.max(a-c,s);t.tl={x:h,y:p},t.tr={x:f,y:p},t.bl={x:h,y:d},t.br={x:f,y:d},t.cc={x:(f+h)/2,y:(d+p)/2},this.set("plotRange",t)},e.prototype.repaint=function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this},e}(n(5).Group);t.exports=i},function(t,e,n){var r=n(0),i=n(2);setTimeout(function(){if(i.trackable){var t=new Image,e=r.mix({},i.trackingInfo,{pg:document.URL,r:(new Date).getTime(),g2:!0,version:i.version,page_type:"syslog"}),n=encodeURIComponent(JSON.stringify([e]));t.src="https://kcart.alipay.com/web/bi.do?BIProfile=merge&d="+n}},3e3)},function(t,e,n){var r=n(350),i=n(136),a=r.DomUtil,o=r.CommonUtil,s=o.assign,u=["start","process","end","reset"],c=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=this,i=r.getDefaultCfg();s(r,i,e),r.view=r.chart=n,r.canvas=n.get("canvas"),r._bindEvents()}return t.prototype.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},t.prototype._start=function(t){var e=this;e.preStart&&e.preStart(t),e.start(t),e.onStart&&e.onStart(t)},t.prototype._process=function(t){var e=this;e.preProcess&&e.preProcess(t),e.process(t),e.onProcess&&e.onProcess(t)},t.prototype._end=function(t){var e=this;e.preEnd&&e.preEnd(t),e.end(t),e.onEnd&&e.onEnd(t)},t.prototype._reset=function(t){var e=this;e.preReset&&e.preReset(t),e.reset(t),e.onReset&&e.onReset(t)},t.prototype.start=function(){},t.prototype.process=function(){},t.prototype.end=function(){},t.prototype.reset=function(){},t.prototype._bindEvents=function(){var t=this,e=t.canvas.get("canvasDOM");t._clearEvents(),o.each(u,function(n){var r=o.upperFirst(n);t["_on"+r+"Listener"]=a.addEventListener(e,t[n+"Event"],i.wrapBehavior(t,"_"+n))})},t.prototype._clearEvents=function(){var t=this;o.each(u,function(e){var n="_on"+o.upperFirst(e)+"Listener";t[n]&&t[n].remove()})},t.prototype.destroy=function(){this._clearEvents()},t}();t.exports=c},function(t,e,n){var r=n(65);t.exports={isFunction:r.isFunction,isObject:r.isObject,isBoolean:r.isBoolean,isNil:r.isNil,isString:r.isString,isArray:r.isArray,isNumber:r.isNumber,isEmpty:r.isEmpty,uniqueId:r.uniqueId,clone:r.clone,deepMix:r.deepMix,assign:r.mix,merge:r.deepMix,upperFirst:r.upperFirst,each:r.each,isEqual:r.isEqual,toArray:r.toArray,extend:r.extend,augment:r.augment,remove:r.arrayUtil.pull,isNumberEqual:r.isNumberEqual,toRadian:r.toRadian,toDegree:r.toDegree,mod:r.mod,clamp:r.clamp}},function(t,e,n){var r=n(0),i=n(2);t.exports={splitData:function(t){var e=this.get("viewTheme")||i;if(!t.length)return[];var n=[],a=[],o=this.getYScale().field,s=void 0;return r.each(t,function(t){s=t._origin?t._origin[o]:t[o],e.connectNulls?r.isNil(s)||a.push(t):r.isArray(s)&&r.isNil(s[0])||r.isNil(s)?a.length&&(n.push(a),a=[]):a.push(t)}),a.length&&n.push(a),n}}},function(t,e,n){var r=n(2),i=n(0),a={getDefalutSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||r;if(!t){var n=this.get("coord"),a=this.getXScale(),o=a.values,s=this.get("dataArray"),u=void 0;if(a.isLinear&&o.length>1){o.sort();var c=function(t,e){var n=t.length;i.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var r=t[1]-t[0],a=2;a<n;a++){var o=t[a]-t[a-1];r>o&&(r=o)}return r}(o,a);u=(a.max-a.min)/c,o.length>u&&(u=o.length)}else u=o.length;var l=a.range,h=1/u,f=1;if(this.isInCircle()?f=n.isTransposed&&u>1?e.widthRatio.multiplePie:e.widthRatio.rose:(a.isLinear&&(h*=l[1]-l[0]),f=e.widthRatio.column),h*=f,this.hasAdjust("dodge")){h/=this._getDodgeCount(s)}t=h,this.set("defaultSize",t)}return t},_getDodgeCount:function(t){var e=this.get("adjusts"),n=void 0,r=t.length;if(i.each(e,function(t){"dodge"===t.type&&(n=t.dodgeBy)}),n){var a=i.Array.merge(t);r=i.Array.values(a,n).length}return r},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=i.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(i.isNil(e)){var n=this.getDefalutSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){var r=n(21),i=n(310),a=n(0),o=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return a.assign(r,i),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasStack(),n},e.prototype.draw=function(t,e,n,r){var i=this,o=this.splitData(t),s=this.getDrawCfg(t[0]);s.origin=t,a.each(o,function(t,o){if(!a.isEmpty(t)){s.splitedIndex=o,s.points=t;var u=n.drawShape(s.shape,s,e);i.appendShapeInfo(u,r+o)}})},e}(r);r.Path=o,t.exports=o},function(t,e,n){"use strict";var r=n(328),i=n(329);e.a=function(t){var e=Object(r.a)(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}})(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";e.b=function(t,e,n){var i=t._id;return t.each(function(){var t=Object(r.h)(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Object(r.f)(t,i).value[e]}};var r=n(64);e.a=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,a=Object(r.f)(this.node(),n).tween,o=0,s=a.length;o<s;++o)if((i=a[o]).name===t)return i.value;return null}return this.each((null==e?function(t,e){var n,i;return function(){var a=Object(r.h)(this,t),o=a.tween;if(o!==n)for(var s=0,u=(i=n=o).length;s<u;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}a.tween=i}}:function(t,e,n){var i,a;if("function"!=typeof n)throw new Error;return function(){var o=Object(r.h)(this,t),s=o.tween;if(s!==i){a=(i=s).slice();for(var u={name:e,value:n},c=0,l=a.length;c<l;++c)if(a[c].name===e){a[c]=u;break}c===l&&a.push(u)}o.tween=a}})(n,t,e))}},function(t,e,n){var r=n(2),i=n(0),a=i.assign,o=i.isNil,s=i.isArray,u=i.cloneDeep,c=i.wrapBehavior,l=i.getWrapBehavior,h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();a(this,n,e),this.init()}return t.prototype.getDefaultCfg=function(){return{chart:null,group:null,showTitle:!0,autoSetAxis:!0,padding:10,eachView:null,fields:[],colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},t.prototype.init=function(){if(!this.chart)throw new Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},t.prototype.initContainer=function(){var t=this.chart.get("frontPlot").addGroup();this.group=t},t.prototype.initViews=function(){for(var t=this.chart,e=t.get("data"),n=this.eachView,r=this.generateFacets(e),i=0;i<r.length;i++){var a=r[i],o=a.region,s=t.view({start:o.start,end:o.end,padding:this.padding});s.source(a.data),this.beforeProcessView(s,a),n&&n(s,a),this.afterProcessView(s,a),a.view=s}this.facets=r},t.prototype.beforeProcessView=function(){},t.prototype.afterProcessView=function(t,e){this.autoSetAxis&&this.processAxis(t,e)},t.prototype.processAxis=function(t,e){var n=t.get("options"),r=t.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,a=s(i)?i:i.split("*").map(function(t){return t.trim()}),u=a[0],c=a[1];o(n.axes)&&(n.axes={});var l=n.axes;!1!==l&&(u&&!1!==l[u]&&(l[u]=l[u]||{},this.setXAxis(u,l,e)),c&&!1!==l[c]&&(l[c]=l[c]||{},this.setYAxis(c,l,e)))}},t.prototype.setXAxis=function(){},t.prototype.setYAxis=function(){},t.prototype.renderTitle=function(t,e){this.drawColTitle(t,e)},t.prototype.getScaleText=function(t,e,n){var r=void 0;if(t){var i=n.get("scales")[t];i||(i=n.createScale(t)),r=i.getText(e)}else r=e;return r},t.prototype.drawColTitle=function(t,e){var n=this.getScaleText(e.colField,e.colValue,t),r=a({position:["50%","0%"],content:n},this.colTitle);t.guide().text(r)},t.prototype.drawRowTitle=function(t,e){var n=this.getScaleText(e.rowField,e.rowValue,t),r=a({position:["100%","50%"],content:n},u(this.rowTitle));t.guide().text(r)},t.prototype.getFilter=function(t){return function(e){var n=!0;return t.forEach(function(t){var r=t.field,i=t.value,a=!0;!o(i)&&r&&(a=e[r]===i),n=n&&a}),n}},t.prototype.getFieldValues=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i][t];o(a)||r[a]||(n.push(a),r[a]=!0)}return n},t.prototype.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+a}}},t.prototype.generateFacets=function(){return[]},t.prototype._bindEvent=function(){var t=this.chart;t.on("afterchangedata",c(this,"onDataChange")),t.on("beforeclear",c(this,"onClear")),t.on("beforedestroy",c(this,"destroy")),t.on("beforepaint",c(this,"onPaint")),t.on("setdata",c(this,"onDataChange"))},t.prototype._clearEvent=function(){var t=this.chart;t&&(t.off("afterchangedata",l(this,"onDataChange")),t.off("beforeclear",l(this,"onClear")),t.off("beforedestroy",l(this,"destroy")),t.off("beforepaint",l(this,"onPaint")),t.off("setdata",l(this,"onDataChange")))},t.prototype._clearFacets=function(){var t=this.facets,e=this.chart;if(t)for(var n=0;n<t.length;n++){var r=t[n];e.removeView(r.view)}this.facets=null},t.prototype.onClear=function(){this.onRemove()},t.prototype.onPaint=function(){if(this.showTitle)for(var t=this.facets,e=0;e<t.length;e++){var n=t[e],r=n.view;this.renderTitle(r,n)}},t.prototype.onDataChange=function(){this._clearFacets(),this.initViews()},t.prototype.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},t.prototype.destroy=function(){this.onRemove(),this.destroyed=!0},t}();t.exports=h},function(t,e,n){var r=n(42).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var c=[a-t,o-e];return Math.abs(r.dot(c,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,r)-a,maxX:s+a,maxY:Math.max(e,r)+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function i(t,e,n,r){var i=void 0,a=void 0;return r?t<e?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function a(t,e,n,r){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=s.mod(e,2*Math.PI),n=s.mod(n,2*Math.PI)+a,t=s.mod(t,2*Math.PI),r?e>=n?t>n&&t<e?t:i(t,n,e,!0):t<e||t>n?t:i(t,e,n):e<=n?e<t&&t<n?t:i(t,e,n,!0):t>e||t<n?t:i(t,n,e)}function o(t,e,n,r,i,o,s,c,l){var h=[s,c],f=[t,e],p=u.subtract([],h,f),d=u.angleTo([1,0],p);d=a(d,r,i,o);var g=[n*Math.cos(d)+t,n*Math.sin(d)+e];l&&(l.x=g[0],l.y=g[1]);return u.distance(g,h)}var s=n(8),u=n(42).vec2;t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,box:function(t,e,n,i,o,u){var c=Math.PI/2,l=Math.PI,h=3*Math.PI/2,f=[],p=a(0,i,o,u);0===p&&f.push(r(t,e,n,0)),(p=a(c,i,o,u))===c&&f.push(r(t,e,n,c)),(p=a(l,i,o,u))===l&&f.push(r(t,e,n,l)),(p=a(h,i,o,u))===h&&f.push(r(t,e,n,h)),f.push(r(t,e,n,i)),f.push(r(t,e,n,o));var d=1/0,g=-1/0,y=1/0,v=-1/0;return s.each(f,function(t){d>t.x&&(d=t.x),g<t.x&&(g=t.x),y>t.y&&(y=t.y),v<t.y&&(v=t.y)}),{minX:d,minY:y,maxX:g,maxY:v}}}},function(t,e,n){function r(t,e,n,r,i,a,o){var s=void 0,u=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0;if(!e.fill){var b=e.arrowLength||p,w=e.arrowAngle?e.arrowAngle*c/180:d;x=f(r-a,n-i),v=Math.abs(e.lineWidth*h(x))/2,m=Math.abs(e.lineWidth*l(x))/2,o&&(v=-v,m=-m),s=i+b*h(x+w/2),u=a+b*l(x+w/2),g=i+b*h(x-w/2),y=a+b*l(x-w/2),t.beginPath(),t.moveTo(s-v,u-m),t.lineTo(i-v,a-m),t.lineTo(g-v,y-m),t.moveTo(i-v,a-m),t.lineTo(i+v,a+m),t.moveTo(i,a),t.stroke()}}function i(t,e,n,r,i,a,o){var c=o?e.startArrow:e.endArrow,l=c.d,h=0,f=i-n,p=a-r,d=Math.atan(f/p);0===p&&f<0?h=Math.PI:f>0&&p>0?h=Math.PI/2-d:f<0&&p<0?h=-Math.PI/2-d:f>=0&&p<0?h=-d-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-d);var g=function(t){var e=[],n=s.parsePath(t.path),r=void 0;if(!Array.isArray(n)||0===n.length||"M"!==n[0][0]&&"m"!==n[0][0])return!1;for(var i=n.length,a=0;a<n.length;a++){var o=n[a];r=new u(o,r,a===i-1),e.push(r)}return e}(c);if(g){l&&(o?(i+=Math.sin(Math.abs(d))*l,a=a+Math.cos(Math.abs(d))*l-.5*t.lineWidth):(i-=Math.sin(Math.abs(d))*l,a=a-Math.cos(Math.abs(d))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(i,a),t.rotate(h);for(var y=0;y<g.length;y++)g[y].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":a(t)},s=n(336),u=n(320),c=Math.PI,l=Math.sin,h=Math.cos,f=Math.atan2,p=10,d=c/3;t.exports={addStartArrow:function(t,e,n,a,s,u){"object"===o(e.startArrow)?i(t,e,n,a,s,u,!0):e.startArrow&&r(t,e,n,a,s,u,!0)},addEndArrow:function(t,e,n,a,s,u){"object"===o(e.endArrow)?i(t,e,n,a,s,u,!1):e.endArrow&&r(t,e,n,a,s,u,!1)}}},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function i(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(function(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))}(t,e))}var s=n(8),u=n(334),c=n(335),l=n(355),h=n(356),f=n(42).vec3,p=n(42).mat3,d=["m","l","c","a","q","h","v","t","s","z"],g=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};s.augment(g,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a=d.indexOf(n)>=0,u=a?n.toUpperCase():n,c=t,l=void 0,h=void 0,f=void 0,p=void 0,g=e.endPoint,y=c[1],v=c[2];switch(u){default:break;case"M":p=a?r(y,v,g):{x:y,y:v},this.command="M",this.params=[g,p],this.subStart=p,this.endPoint=p;break;case"L":p=a?r(y,v,g):{x:y,y:v},this.command="L",this.params=[g,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-g.x,p.y-g.y]},this.startTangent=function(){return[g.x-p.x,g.y-p.y]};break;case"H":p=a?r(y,0,g):{x:y,y:g.y},this.command="L",this.params=[g,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-g.x,p.y-g.y]},this.startTangent=function(){return[g.x-p.x,g.y-p.y]};break;case"V":p=a?r(0,y,g):{x:g.x,y:y},this.command="L",this.params=[g,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-g.x,p.y-g.y]},this.startTangent=function(){return[g.x-p.x,g.y-p.y]};break;case"Q":a?(l=r(y,v,g),h=r(c[3],c[4],g)):(l={x:y,y:v},h={x:c[3],y:c[4]}),this.command="Q",this.params=[g,l,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-l.x,h.y-l.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]};break;case"T":h=a?r(y,v,g):{x:y,y:v},"Q"===e.command?(l=i(e.params[1],g),this.command="Q",this.params=[g,l,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-l.x,h.y-l.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]}):(this.command="TL",this.params=[g,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-g.x,h.y-g.y]},this.startTangent=function(){return[g.x-h.x,g.y-h.y]});break;case"C":a?(l=r(y,v,g),h=r(c[3],c[4],g),f=r(c[5],c[6],g)):(l={x:y,y:v},h={x:c[3],y:c[4]},f={x:c[5],y:c[6]}),this.command="C",this.params=[g,l,h,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-h.x,f.y-h.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]};break;case"S":a?(h=r(y,v,g),f=r(c[3],c[4],g)):(h={x:y,y:v},f={x:c[3],y:c[4]}),"C"===e.command?(l=i(e.params[2],g),this.command="C",this.params=[g,l,h,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-h.x,f.y-h.y]},this.startTangent=function(){return[g.x-l.x,g.y-l.y]}):(this.command="SQ",this.params=[g,h,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-h.x,f.y-h.y]},this.startTangent=function(){return[g.x-h.x,g.y-h.y]});break;case"A":var m=y,x=v,b=c[3],w=c[4],_=c[5];p=a?r(c[6],c[7],g):{x:c[6],y:c[7]},this.command="A";var S=function(t,e,n,r,i,a,u){var c=s.mod(s.toRadian(u),2*Math.PI),l=t.x,h=t.y,f=e.x,p=e.y,d=Math.cos(c)*(l-f)/2+Math.sin(c)*(h-p)/2,g=-1*Math.sin(c)*(l-f)/2+Math.cos(c)*(h-p)/2,y=d*d/(i*i)+g*g/(a*a);y>1&&(i*=Math.sqrt(y),a*=Math.sqrt(y));var v=i*i*(g*g)+a*a*(d*d),m=Math.sqrt((i*i*(a*a)-v)/v);n===r&&(m*=-1),isNaN(m)&&(m=0);var x=m*i*g/a,b=m*-a*d/i,w=(l+f)/2+Math.cos(c)*x-Math.sin(c)*b,_=(h+p)/2+Math.sin(c)*x+Math.cos(c)*b,S=o([1,0],[(d-x)/i,(g-b)/a]),M=o([(d-x)/i,(g-b)/a],[(-1*d-x)/i,(-1*g-b)/a]);return 0===r&&M>0&&(M-=2*Math.PI),1===r&&M<0&&(M+=2*Math.PI),[t,w,_,i,a,S,M,c,r]}(g,p,w,_,m,x,b);this.params=S;var M=e.subStart;this.subStart=M,this.endPoint=p;var A=S[5]%(2*Math.PI);s.isNumberEqual(A,2*Math.PI)&&(A=0);var C=S[6]%(2*Math.PI);s.isNumberEqual(C,2*Math.PI)&&(C=0);var P=.001;this.startTangent=function(){0===_&&(P*=-1);var t=S[3]*Math.cos(A-P)+S[1],e=S[4]*Math.sin(A-P)+S[2];return[t-M.x,e-M.y]},this.endTangent=function(){var t=S[6];t-2*Math.PI<1e-4&&(t=0);var e=S[3]*Math.cos(A+t+P)+S[1],n=S[4]*Math.sin(A+t-P)+S[2];return[g.x-e,g.y-n]};break;case"Z":this.command="Z",this.params=[g,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this.command,i=this.params,a=this.box;if(a&&!u.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return u.line(i[0].x,i[0].y,i[1].x,i[1].y,n,t,e);case"SQ":case"Q":return u.quadraticline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,n,t,e);case"C":return u.cubicline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y,n,t,e);case"A":var o=i,s=o[1],c=o[2],l=o[3],h=o[4],d=o[5],g=o[6],y=o[7],v=o[8],m=l>h?l:h,x=l>h?1:l/h,b=l>h?h/l:1;o=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return p.translate(w,w,[-s,-c]),p.rotate(w,w,-y),p.scale(w,w,[1/x,1/b]),f.transformMat3(o,o,w),u.arcline(0,0,m,d,d+g,1-v,n,o[0],o[1])}return!1},draw:function(t){var e=this.command,n=this.params,r=void 0,i=void 0,a=void 0;switch(e){default:break;case"M":t.moveTo(n[1].x,n[1].y);break;case"TL":case"L":t.lineTo(n[1].x,n[1].y);break;case"SQ":case"Q":r=n[1],i=n[2],t.quadraticCurveTo(r.x,r.y,i.x,i.y);break;case"C":r=n[1],i=n[2],a=n[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x,a.y);break;case"A":var o=n,s=o[1],u=o[2],c=o[3],l=o[4],h=o[5],f=o[6],p=o[7],d=o[8],g=c>l?c:l,y=c>l?1:c/l,v=c>l?l/c:1;t.translate(s,u),t.rotate(p),t.scale(y,v),t.arc(0,0,g,h,h+f,1-d),t.scale(1/y,1/v),t.rotate(-p),t.translate(-s,-u);break;case"Z":t.closePath()}},getBBox:function(t){var e=t/2,n=this.params,r=void 0,i=void 0,a=void 0,o=void 0;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(n[0].x,n[1].x)-e,maxX:Math.max(n[0].x,n[1].x)+e,minY:Math.min(n[0].y,n[1].y)-e,maxY:Math.max(n[0].y,n[1].y)+e};break;case"SQ":case"Q":for(a=0,o=(i=l.extrema(n[0].x,n[1].x,n[2].x)).length;a<o;a++)i[a]=l.at(n[0].x,n[1].x,n[2].x,i[a]);for(i.push(n[0].x,n[2].x),a=0,o=(r=l.extrema(n[0].y,n[1].y,n[2].y)).length;a<o;a++)r[a]=l.at(n[0].y,n[1].y,n[2].y,r);r.push(n[0].y,n[2].y),this.box={minX:Math.min.apply(Math,i)-e,maxX:Math.max.apply(Math,i)+e,minY:Math.min.apply(Math,r)-e,maxY:Math.max.apply(Math,r)+e};break;case"C":for(a=0,o=(i=c.extrema(n[0].x,n[1].x,n[2].x,n[3].x)).length;a<o;a++)i[a]=c.at(n[0].x,n[1].x,n[2].x,n[3].x,i[a]);for(a=0,o=(r=c.extrema(n[0].y,n[1].y,n[2].y,n[3].y)).length;a<o;a++)r[a]=c.at(n[0].y,n[1].y,n[2].y,n[3].y,r[a]);i.push(n[0].x,n[3].x),r.push(n[0].y,n[3].y),this.box={minX:Math.min.apply(Math,i)-e,maxX:Math.max.apply(Math,i)+e,minY:Math.min.apply(Math,r)-e,maxY:Math.max.apply(Math,r)+e};break;case"A":var s=n,u=s[1],f=s[2],p=s[3],d=s[4],g=s[5],y=s[6],v=s[7],m=s[8],x=g,b=g+y,w=h.xExtrema(v,p,d),_=1/0,S=-1/0,M=[x,b];for(a=2*-Math.PI;a<=2*Math.PI;a+=Math.PI){var A=w+a;1===m?x<A&&A<b&&M.push(A):b<A&&A<x&&M.push(A)}for(a=0,o=M.length;a<o;a++){var C=h.xAt(v,p,d,u,M[a]);C<_&&(_=C),C>S&&(S=C)}var P=h.yExtrema(v,p,d),k=1/0,T=-1/0,O=[x,b];for(a=2*-Math.PI;a<=2*Math.PI;a+=Math.PI){var I=P+a;1===m?x<I&&I<b&&O.push(I):b<I&&I<x&&O.push(I)}for(a=0,o=O.length;a<o;a++){var E=h.yAt(v,p,d,f,O[a]);E<k&&(k=E),E>T&&(T=E)}this.box={minX:_-e,maxX:S+e,minY:k-e,maxY:T+e}}}}),t.exports=g},function(t,e,n){var r=n(65),i={};r.mix(i,r),t.exports=i},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(21),s=n(0),u=n(311);n(323);var c=function(t){function e(n){r(this,e);var a=i(this,t.call(this,n));return s.assign(a,u),a}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e.prototype.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(o),l=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(c),h=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(c),f=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(c);c.Stack=l,c.Dodge=h,c.Symmetric=f,o.Interval=c,o.IntervalStack=l,o.IntervalDodge=h,o.IntervalSymmetric=f,t.exports=c},function(t,e,n){function r(t,e){var n=t.x,r=t.y,i=t.y0,a=t.size,o=i,s=r;f.isArray(r)&&(s=r[1],o=r[0]);var u=void 0,c=void 0;f.isArray(n)?(u=n[0],c=n[1]):(u=n-a/2,c=n+a/2);var l=[];return l.push({x:u,y:o},{x:u,y:s}),e?l.push({x:c,y:(s+o)/2}):l.push({x:c,y:s},{x:c,y:o}),l}function i(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return e.push(["L",a.x,a.y]),e.push(["z"]),e}function a(t){var e=y.shape.interval;return f.mix({},e,{fill:t.color,stroke:t.color,fillOpacity:t.opacity},t.style)}function o(t){var e=y.shape.hollowInterval;return f.mix({},e,{stroke:t.color,strokeOpacity:t.opacity},t.style)}function s(t,e){var n=[],r=t.points,i=t.nextPoints;return f.isNil(i)?e?n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[3].x,r[3].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[2].x,r[2].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",i[1].x,i[1].y],["L",i[0].x,i[0].y],["Z"]),n}function u(t,e){var n=e.geom.get("coord"),r=e.point,i=void 0;if(n&&"theta"===n.type){var a=function(t,e){var n=e.getRadius(),r=void 0,i=void 0,a=n*e.innerRadius,o=void 0,s=void 0;return!f.isArray(t.x)&&f.isArray(t.y)&&(t.x=[t.x,t.x]),f.isArray(t.x)?(o={x:t.x[0],y:t.y[0]},s={x:t.x[1],y:t.y[1]},r=d.getPointAngle(e,o),(i=d.getPointAngle(e,s))<=r&&(i+=2*Math.PI)):(s=t,r=e.startAngle,i=d.getPointAngle(e,s)),{r:n,ir:a,startAngle:r,endAngle:i}}(r,n),o=(a.endAngle-a.startAngle)/2+a.startAngle;i={transform:[["t",7.5*Math.cos(o),7.5*Math.sin(o)]]}}return f.mix({},i)}function c(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function l(t,e,n,r,i,a,o){for(var s=2*Math.ceil(2*t/n*4),u=[];r<2*-Math.PI;)r+=2*Math.PI;for(;r>0;)r-=2*Math.PI;var l=a-t+(r=r/Math.PI/2*n)-2*t;u.push(["M",l,e]);for(var h=0,f=0;f<s;++f){var p=c(f*n/4,f%4,n,i);u.push(["C",p[0][0]+l,-p[0][1]+e,p[1][0]+l,-p[1][1]+e,p[2][0]+l,-p[2][1]+e]),f===s-1&&(h=p[2][0])}return u.push(["L",h+l,o+t]),u.push(["L",l,o+t]),u.push(["L",l,e]),u}function h(t,e,n,r,i,a,o,s){for(var u=o.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,f=0;f<r;f++){var p=a.addShape("path",{attrs:{path:l(s,u.minY+h*n,c/4,0,c/64,t,e),fill:i[f],clip:o}});"canvas"===y.renderer&&p.animate({transform:[["t",c/2,0]],repeat:!0},5e3-300*f)}}var f=n(0),p=n(18),d=n(28),g=f.PathUtil,y=n(2),v=n(5),m=p.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){if(!t||f.inArray(["rect","funnel","pyramid"],t)){return{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}}return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return r(t)},getSelectedCfg:function(t,e){return u(0,e)}});p.registerShape("interval","rect",{draw:function(t,e){var n=a(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),p.registerShape("interval","hollowRect",{draw:function(t,e){var n=o(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=o(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),p.registerShape("interval","line",{getPoints:function(t){return function(t){var e=t.x,n=t.y,r=t.y0,i=[];return f.isArray(n)?f.each(n,function(t,n){i.push({x:f.isArray(e)?e[n]:e,y:t})}):i.push({x:e,y:n},{x:e,y:r}),i}(t)},draw:function(t,e){var n=o(t);n.lineWidth=t.size||1;var r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"line",radius:5},e)}}),p.registerShape("interval","tick",{getPoints:function(t){return function(t){var e=t.x,n=f.isArray(t.y)?t.y[1]:t.y,r=f.isArray(t.y)?t.y[0]:t.y0,i=t.size,a=[];return a.push({x:e-i/2,y:n},{x:e+i/2,y:n},{x:e,y:n},{x:e,y:r},{x:e-i/2,y:r},{x:e+i/2,y:r}),a}(t)},draw:function(t,e){var n=o(t),r=function(t){var e=[];return e.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]),e}(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"tick",radius:5},e)}}),p.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,r(t)},draw:function(t,e){var n=a(t),r=s(t,!0);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),p.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,r(t,!0)},draw:function(t,e){var n=a(t),r=s(t,!1);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),p.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=0,r=1/0;f.each(t.points,function(t){t.x<r&&(r=t.x),n+=t.x});var i=n/t.points.length,s=this.parsePoint({x:i,y:.5}),u=this.parsePoint({x:r,y:.5}),c=s.x-u.x,l=Math.min(c,u.y),p=a(t),d=new v.Circle({attrs:{x:s.x,y:s.y,r:l}});return h(s.x,s.y,t.y/(2*s.y),1,[p.fill],e,d,4*l),e.addShape("circle",{attrs:f.mix(o(t),{x:s.x,y:s.y,r:l+l/8})})}});var x={};p.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=f.mix({},a(t)),r=t.shape[1],i=0,s=1/0;f.each(t.points,function(t){t.x<s&&(s=t.x),i+=t.x});var u=i/t.points.length,c=this.parsePoint({x:u,y:.5}),l=this.parsePoint({x:s,y:.5}),p=c.x-l.x,d=Math.min(p,l.y),y=void 0;if(x[r])y=x[r];else{var v=g.parsePathString(r);x[r]=y={segments:v}}var m=[];n.rotate&&(m.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var b=e.addShape("path",{attrs:f.mix(n,{fillOpacity:0,path:y.segments})}),w=f.cloneDeep(b.getBBox()),_=w.maxX-w.minX,S=w.maxY-w.minY,M=2*d/Math.max(_,S);b.transform(m.concat([["s",M,M]]));var A=M*_/2,C=M*S/2;b.transform([["t",c.x-A,c.y-C]]),h(c.x,c.y,t.y/(2*c.y),1,[n.fill],e,b,4*l.y);var P=e.addShape("path",{attrs:f.mix(o(t),{path:y.segments})});return P.transform(m.concat([["s",M,M],["t",c.x-A,c.y-C]])),P}}),p.registerShape("interval","top-line",{draw:function(t,e){var n=a(t),r=t.style||{},o=[["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]],s={stroke:r.stroke||"white",lineWidth:r.lineWidth||1,path:this.parsePath(o)},u=i(t.points);u=this.parsePath(u),delete n.stroke;var c=e.addShape("path",{attrs:f.mix(n,{zIndex:0,path:u})});return e.addShape("path",{zIndex:1,attrs:s}),c},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=m},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(21),s=n(312);n(325);var u=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(s),c=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u);u.Stack=c,o.Line=u,o.LineStack=c,t.exports=u},function(t,e,n){function r(t){var e=d.shape.line;return l.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity,opacity:t.opacity},t.style)}function i(t){var e=d.shape.line;return l.mix({},e,{stroke:t.color,lineWidth:2,strokeOpacity:t.opacity,opacity:t.opacity,radius:6},t.style)}function a(t,e,n,r){var i=void 0;if(e){var a=r.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),i=h.getSplinePath(t,!1,a)}else i=h.getLinePath(t,!1),n&&i.push(["Z"]);return i}function o(t,e){var n=t.points,r=t.isInCircle,i=n[0];return l.isArray(i.y)?function(t,e,n,r){for(var i=[],o=r.isStack,s=[],u=0;u<t.length;u++){var c=t[u],l=f.splitPoints(c);s.push(l[0]),i.push(l[1])}var h=a(i,e,n,r),p=a(s,e,n,r);return o?h:h.concat(p)}(n,e,r,t):a(n,e,r,t)}function s(t,e){return function(t){var e=[];return l.each(t,function(t,n){var r=0===n?["M",t.x,t.y]:["L",t.x,t.y];e.push(r)}),e}(function(t,e){var n=[];return l.each(t,function(r,i){var a=t[i+1];n.push(r),a&&(n=n.concat(e(r,a)))}),n}(t.points,e))}function u(t,e){return l.mix({symbol:e?function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}},i(t))}function c(t,e){return l.mix({symbol:e},i(t))}var l=n(0),h=n(28),f=n(142),p=n(18),d=n(2),g=[1,1],y=[5.5,1],v=p.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return f.splitPoints(t)},drawShape:function(t,e,n){var r=this.getShape(t),i=void 0;return(i=1===e.points.length&&d.showSinglePoint?function(t,e,n){var r=e.points[0];return n.addShape("circle",{attrs:l.mix({x:r.x,y:r.y,r:2,fill:e.color},e.style)})}(0,e,n):r.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i}});p.registerShape("line","line",{draw:function(t,e){var n=r(t),i=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return u(t)}}),p.registerShape("line","dot",{draw:function(t,e){var n=r(t),i=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:i,lineDash:g})})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=g,e}}),p.registerShape("line","dash",{draw:function(t,e){var n=r(t),i=o(t,!1);return e.addShape("path",{attrs:l.mix({path:i,lineDash:y},n)})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=e.lineDash||y,e}}),p.registerShape("line","smooth",{draw:function(t,e){var n=r(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=o(t,!0);return e.addShape("path",{attrs:l.mix(n,{path:a})})},getMarkerCfg:function(t){return u(t,!0)}}),p.registerShape("line","hv",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vh",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]})}}),p.registerShape("line","hvh",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[],r=(e.x-t.x)/2+t.x;return n.push({x:r,y:t.y}),n.push({x:r,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vhv",{draw:function(t,e){var n=r(t),i=s(t,function(t,e){var n=[],r=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:r}),n.push({x:e.x,y:r}),n});return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return c(t,function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]})}}),v.spline=v.smooth,t.exports=v},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(21),s=n(0);n(327);var u=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},e.prototype.drawPoint=function(t,e,n,r){var i=this,a=t.shape,o=i.getDrawCfg(t),u=void 0;if(s.isArray(t.y)){var c=i.hasStack();s.each(t.y,function(t,s){o.y=t,o.yIndex=s,c&&0===s||(u=n.drawShape(a,o,e),i.appendShapeInfo(u,r+s))})}else s.isNil(t.y)||(u=n.drawShape(a,o,e),i.appendShapeInfo(u,r))},e}(o),c=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(u),l=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u);u.Jitter=c,u.Stack=l,o.Point=u,o.PointJitter=c,o.PointStack=l,t.exports=u},function(t,e,n){function r(t){var e=u.shape.point;return a.mix({},e,{fill:t.color,fillOpacity:t.opacity,radius:t.size},t.style)}function i(t){var e=u.shape.hollowPoint;return a.mix({},e,{stroke:t.color,strokeOpacity:t.opacity,radius:t.size},t.style)}var a=n(0),o=a.PathUtil,s=n(142),u=n(2),c=n(18),l=n(5).Marker,h=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],f=Math.sqrt(3);a.mix(l.Symbols,{hexagon:function(t,e,n){var r=n/2*f;return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}});var p=c.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n=e.radius,r=void 0;return r=t&&(0===t.indexOf("hollow")||-1!==a.indexOf(h,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,{radius:n+1,shadowBlur:n,shadowColor:r,stroke:r,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return s.splitPoints(t)}});c.registerShape("point","rect",{draw:function(t,e){var n=r(t),i=function(t){var e=t.points[0].x,n=t.points[0].y,r=t.size[0],i=t.size[1];return[["M",e-.5*r,n-.5*i],["L",e+.5*r,n-.5*i],["L",e+.5*r,n+.5*i],["L",e-.5*r,n+.5*i],["z"]]}(t);i=this.parsePath(i);return e.addShape("path",{attrs:a.mix(n,{path:i})})},getMarkerCfg:function(t){var e=r(t);return e.symbol="rect",e.radius=4.5,e}}),a.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],function(t){c.registerShape("point",t,{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:a.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=r(e);return n.symbol=t,n.radius=4.5,n}}),c.registerShape("point","hollow"+a.upperFirst(t),{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:a.mix(r,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=i(e);return n.symbol=t,n.radius=4.5,n}})}),a.each(h,function(t){c.registerShape("point",t,{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:a.mix(r,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=i(e);return n.symbol=t,n.radius=4.5,n}})}),c.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var d={};c.registerShape("point","path",{draw:function(t,e){var n=a.mix({},i(t),r(t)),s=t.shape[1],u=t.size||10,c=void 0;if(d[s])c=d[s];else{var l=o.parsePathString(s),h=a.flatten(l).filter(function(t){return a.isNumber(t)});d[s]=c={range:Math.max.apply(null,h)-Math.min.apply(null,h),segments:l}}var f=u/c.range,p=[];n.rotate&&(p.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var g=e.addShape("path",{attrs:a.mix(n,{path:c.segments})});return p.push(["s",f,f],["t",t.x,t.y]),g.transform(p),g}}),t.exports=p},function(t,e,n){"use strict";var r=n(329);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";e.a=function(t){return null==t?function(){}:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(t,e,n){return function(r){var i=o;o=r;try{t.call(this,this.__data__,e,n)}finally{o=i}}}function i(t,e,n){var i=a.hasOwnProperty(t.type)?function(t,e,n){return t=r(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}:r;return function(r,a,o){var s,u=this.__on,c=i(e,a,o);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}n.d(e,"c",function(){return o}),e.a=function(t,e,n,r){var i=o;t.sourceEvent=o,o=t;try{return e.apply(n,r)}finally{o=i}};var a={},o=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(a={mouseenter:"mouseover",mouseleave:"mouseout"})}e.b=function(t,e,n){var r,a,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;{if(!(arguments.length<2)){for(u=e?i:function(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}},null==n&&(n=!1),r=0;r<s;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,l=0,h=u.length;l<h;++l)for(r=0,c=u[l];r<s;++r)if((a=o[r]).type===c.type&&a.name===c.name)return c.value}}},function(t,e,n){"use strict";var r=n(332);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){var r=n(317),i=n(355),a=n(335),o=n(318);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=r.pointDistance(t,e,n,i,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var a=0;a<i;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],c=t[a+1][1];if(this.line(o,s,u,c,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,c,l,h){return a.pointDistance(t,e,n,r,i,o,s,u,l,h)<=c/2},quadraticline:function(t,e,n,r,a,o,s,u,c){return i.pointDistance(t,e,n,r,a,o,u,c)<=s/2},arcline:function(t,e,n,r,i,a,s,u,c){return o.pointDistance(t,e,n,r,i,a,u,c)<=s/2},rect:function(t,e,n,r,i,a){return t<=i&&i<=t+n&&e<=a&&a<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return t<=i&&i<=e&&n<=a&&a<=r}}},function(t,e,n){function r(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function i(t,e,n,i,a,o,u,c,l,h,f){var p=void 0,d=.005,g=1/0,y=void 0,v=void 0,m=void 0,x=void 0,b=void 0,w=void 0,_=void 0,S=[l,h];for(y=0;y<1;y+=.05)v=[r(t,n,a,u,y),r(e,i,o,c,y)],(m=s.squaredDistance(S,v))<g&&(p=y,g=m);g=1/0;for(var M=0;M<32&&!(d<1e-4);M++)_=p+d,v=[r(t,n,a,u,w=p-d),r(e,i,o,c,w)],m=s.squaredDistance(S,v),w>=0&&m<g?(p=w,g=m):(b=[r(t,n,a,u,_),r(e,i,o,c,_)],x=s.squaredDistance(S,b),_<=1&&x<g?(p=_,g=x):d*=.5);return f&&(f.x=r(t,n,a,u,p),f.y=r(e,i,o,c,p)),Math.sqrt(g)}function a(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}var o=n(8),s=n(42).vec2;t.exports={at:r,derivativeAt:function(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)},projectPoint:function(t,e,n,r,a,o,s,u,c,l){var h={};return i(t,e,n,r,a,o,s,u,c,l,h),h},pointDistance:i,extrema:function(t,e,n,r){var i=3*t-9*e+9*n-3*r,a=6*e-12*n+6*r,s=3*n-3*r,u=[],c=void 0,l=void 0,h=void 0;if(o.isNumberEqual(i,0))o.isNumberEqual(a,0)||(c=-s/a)>=0&&c<=1&&u.push(c);else{var f=a*a-4*i*s;o.isNumberEqual(f,0)?u.push(-a/(2*i)):f>0&&(l=(-a-(h=Math.sqrt(f)))/(2*i),(c=(-a+h)/(2*i))>=0&&c<=1&&u.push(c),l>=0&&l<=1&&u.push(l))}return u},len:function(t,e,n,r,i,s,u,c,l){o.isNil(l)&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,g=0;g<12;g++){var y=h*f[g]+h,v=a(y,t,n,i,u),m=a(y,e,r,s,c),x=v*v+m*m;d+=p[g]*Math.sqrt(x)}return h*d}}},function(t,e,n){var r=n(8),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){var r=n(8),i=n(29),a=n(336),o=n(320),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},_getPath:function(){var t=this._attrs,e=t.x,n=t.y,i=t.radius||t.r,a=t.symbol||"circle";return(r.isFunction(a)?a:s.Symbols[a])(e,n,i)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n=a.parsePath(this._getPath());t.beginPath();var r=void 0;e=[];for(var i=0;i<n.length;i++){var s=n[i];r=new o(s,r,i===n.length-1),e.push(r),r.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return void 0===t?"undefined":r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":r(t)},a=n(309),o="\t\n\v\f\r \u2028\u2029",s=new RegExp("([a-z])["+o+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+o+"]*,?["+o+"]*)+)","ig"),u=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+o+"]*,?["+o+"]*","ig"),c=function(t){if(!t)return null;if((void 0===t?"undefined":i(t))===i([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(s,function(t,r,i){var a=[],o=r.toLowerCase();if(i.replace(u,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o="l",r="m"===r?"l":"L"),"o"===o&&1===a.length&&n.push([r,a[0]]),"r"===o)n.push([r].concat(a));else for(;a.length>=e[o]&&(n.push([r].concat(a.splice(0,e[o]))),e[o]););}),n},l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},h=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},f=function(t){if(!(t=c(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,i=0,a=0,o=0,s=void 0,u=void 0;"M"===t[0][0]&&(i=n=+t[0][1],a=r=+t[0][2],o++,e[0]=["M",n,r]);for(var f,p,d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=o,y=t.length;g<y;g++){if(e.push(f=[]),p=t[g],(s=p[0])!==s.toUpperCase())switch(f[0]=s.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+n,f[7]=+p[7]+r;break;case"V":f[1]=+p[1]+r;break;case"H":f[1]=+p[1]+n;break;case"R":for(var v=2,m=(u=[n,r].concat(p.slice(1))).length;v<m;v++)u[v]=+u[v]+n,u[++v]=+u[v]+r;e.pop(),e=e.concat(l(u,d));break;case"O":e.pop(),(u=h(n,r,p[1],p[2])).push(u[0]),e=e.concat(u);break;case"U":e.pop(),e=e.concat(h(n,r,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));break;case"M":i=+p[1]+n,a=+p[2]+r;break;default:for(var x=1,b=p.length;x<b;x++)f[x]=+p[x]+(x%2?n:r)}else if("R"===s)u=[n,r].concat(p.slice(1)),e.pop(),e=e.concat(l(u,d)),f=["R"].concat(p.slice(-2));else if("O"===s)e.pop(),(u=h(n,r,p[1],p[2])).push(u[0]),e=e.concat(u);else if("U"===s)e.pop(),e=e.concat(h(n,r,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));else for(var w=0,_=p.length;w<_;w++)f[w]=p[w];if("O"!==(s=s.toUpperCase()))switch(f[0]){case"Z":n=+i,r=+a;break;case"H":n=f[1];break;case"V":r=f[1];break;case"M":i=f[f.length-2],a=f[f.length-1];break;default:n=f[f.length-2],r=f[f.length-1]}}return e},p=function(t,e,n,r){return[t,e,n,r,n,r]},d=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},g=function(t,e){var n=f(t),r=e&&f(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=[],s=[],u="",c="",l=void 0,h=function(t,e,n){var r=void 0,i=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,r,i,a,o,s,u,c,l){r===i&&(r+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],d=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)g=l[0],y=l[1],v=l[2],m=l[3];else{e=(d=x(e,n,-f)).x,n=d.y,u=(d=x(u,c,-f)).x,c=d.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,w=(n-c)/2,_=b*b/(r*r)+w*w/(i*i);_>1&&(r*=_=Math.sqrt(_),i*=_);var S=r*r,M=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((S*M-S*w*w-M*b*b)/(S*w*w+M*b*b)));v=A*r*w/i+(e+u)/2,m=A*-i*b/r+(n+c)/2,g=Math.asin(((n-m)/i).toFixed(9)),y=Math.asin(((c-m)/i).toFixed(9)),g=e<v?Math.PI-g:g,y=u<v?Math.PI-y:y,g<0&&(g=2*Math.PI+g),y<0&&(y=2*Math.PI+y),s&&g>y&&(g-=2*Math.PI),!s&&y>g&&(y-=2*Math.PI)}var C=y-g;if(Math.abs(C)>h){var P=y,k=u,T=c;y=g+h*(s&&y>g?1:-1),p=t(u=v+r*Math.cos(y),c=m+i*Math.sin(y),r,i,a,0,s,k,T,[y,P,v,m])}C=y-g;var O=Math.cos(g),I=Math.sin(g),E=Math.cos(y),L=Math.sin(y),D=Math.tan(C/4),j=4/3*r*D,F=4/3*i*D,R=[e,n],B=[e+j*I,n-F*O],N=[u+j*L,c-F*E],Y=[u,c];if(B[0]=2*R[0]-B[0],B[1]=2*R[1]-B[1],l)return[B,N,Y].concat(p);for(var z=[],X=0,V=(p=[B,N,Y].concat(p).join().split(",")).length;X<V;X++)z[X]=X%2?x(p[X-1],p[X],f).y:x(p[X],p[X+1],f).x;return z}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(d(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(d(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(p(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(p(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(p(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(p(e.x,e.y,e.X,e.Y))}return t},g=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)o[e]="A",r&&(s[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),l=Math.max(n.length,r&&r.length||0)}},y=function(t,e,i,a,o){t&&e&&"M"===t[o][0]&&"M"!==e[o][0]&&(e.splice(o,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=t[o][1],i.y=t[o][2],l=Math.max(n.length,r&&r.length||0))};l=Math.max(n.length,r&&r.length||0);for(var v=0;v<l;v++){n[v]&&(u=n[v][0]),"C"!==u&&(o[v]=u,v&&(c=o[v-1])),n[v]=h(n[v],i,c),"A"!==o[v]&&"C"===u&&(o[v]="C"),g(n,v),r&&(r[v]&&(u=r[v][0]),"C"!==u&&(s[v]=u,v&&(c=s[v-1])),r[v]=h(r[v],a,c),"A"!==s[v]&&"C"===u&&(s[v]="C"),g(r,v)),y(n,r,i,a,v),y(r,n,a,i,v);var m=n[v],x=r&&r[v],b=m.length,w=r&&x.length;i.x=m[b-2],i.y=m[b-1],i.bx=parseFloat(m[b-4])||i.x,i.by=parseFloat(m[b-3])||i.y,a.bx=r&&(parseFloat(x[w-4])||a.x),a.by=r&&(parseFloat(x[w-3])||a.y),a.x=r&&x[w-2],a.y=r&&x[w-1]}return r?[n,r]:n},y=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(y,"$1")},m=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},x=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=c*l[p]+c,g=m(d,t,n,i,o),y=m(d,e,r,a,s),v=g*g+y*y;f+=h[p]*Math.sqrt(v)}return c*f},b=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-r)*(i-o);if(u){var c=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/u,l=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,o).toFixed(2)||h>+Math.max(i,o).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},_=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a},S=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:_(t,e,n,r),vb:[t,e,n,r].join(" ")}},M=function(t,e,n,r,i,o,s,u){a.isArray(t)||(t=[t,e,n,r,i,o,s,u]);var c=function(t,e,n,r,i,a,o,s){for(var u=[],c=[[],[]],l=void 0,h=void 0,f=void 0,p=void 0,d=0;d<2;++d)if(0===d?(h=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,f=3*n-3*t):(h=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,f=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&u.push(p)}else{var g=h*h-4*f*l,y=Math.sqrt(g);if(!(g<0)){var v=(-h+y)/(2*l);v>0&&v<1&&u.push(v);var m=(-h-y)/(2*l);m>0&&m<1&&u.push(m)}}for(var x=u.length,b=x,w=void 0;x--;)w=1-(p=u[x]),c[0][x]=w*w*w*t+3*w*w*p*n+3*w*p*p*i+p*p*p*o,c[1][x]=w*w*w*e+3*w*w*p*r+3*w*p*p*a+p*p*p*s;return c[0][b]=t,c[1][b]=e,c[0][b+1]=o,c[1][b+1]=s,c[0].length=c[1].length=b+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}}.apply(null,t);return S(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,r,i,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,d=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(a-2*r+e),y=n+2*u*(i-n)+f*(o-2*i+n),v=r+2*u*(a-r)+f*(s-2*a+r);return{x:l*t+3*h*u*n+3*c*u*u*i+p*o,y:l*e+3*h*u*r+3*c*u*u*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},C=function(t,e,n){if(!function(t,e){return t=S(t),e=S(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(M(t),M(e)))return n?0:[];for(var r=~~(x.apply(0,t)/8),i=~~(x.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],c=0;c<r+1;c++){var l=A.apply(0,t.concat(c/r));a.push({x:l.x,y:l.y,t:c/r})}for(var h=0;h<i+1;h++){var f=A.apply(0,e.concat(h/i));o.push({x:f.x,y:f.y,t:h/i})}for(var p=0;p<r;p++)for(var d=0;d<i;d++){var g=a[p],y=a[p+1],v=o[d],m=o[d+1],_=Math.abs(y.x-g.x)<.001?"y":"x",C=Math.abs(m.x-v.x)<.001?"y":"x",P=b(g.x,g.y,y.x,y.y,v.x,v.y,m.x,m.y);if(P){if(s[P.x.toFixed(4)]===P.y.toFixed(4))continue;s[P.x.toFixed(4)]=P.y.toFixed(4);var k=g.t+Math.abs((P[_]-g[_])/(y[_]-g[_]))*(y.t-g.t),T=v.t+Math.abs((P[C]-v[C])/(m[C]-v[C]))*(m.t-v.t);k>=0&&k<=1&&T>=0&&T<=1&&(n?u++:u.push({x:P.x,y:P.y,t1:k,t2:T}))}}return u};t.exports={parsePathString:c,parsePathArray:v,pathTocurve:g,pathToAbsolute:f,catmullRomToBezier:l,rectPath:_,intersection:function(t,e){return function(t,e,n){t=g(t),e=g(e);for(var r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,p=n?0:[],d=0,y=t.length;d<y;d++){var v=t[d];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(r=(h=[r,i].concat(v.slice(1)))[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,x=e.length;m<x;m++){var b=e[m];if("M"===b[0])a=c=b[1],o=l=b[2];else{"C"===b[0]?(a=(f=[a,o].concat(b.slice(1)))[6],o=f[7]):(f=[a,o,a,o,c,l,c,l],a=c,o=l);var w=C(h,f,n);if(n)p+=w;else{for(var _=0,S=w.length;_<S;_++)w[_].segment1=d,w[_].segment2=m,w[_].bez1=h,w[_].bez2=f;p=p.concat(w)}}}}}return p}(t,e)}}},function(t,e,n){"use strict";var r=n(63);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";e.a=function(t){return null==t?function(){return[]}:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var i=document.documentElement;if(!i.matches){var a=i.webkitMatchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector;r=function(t){return function(){return a.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=r;var i=n(343),a=n(63);e.b=function(){return new a.a(this._enter||this._groups.map(i.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function r(t,e){return t.style.getPropertyValue(e)||Object(i.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.b=r;var i=n(331);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):r(this.node(),t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(415);var r=n(133);n.d(e,"transition",function(){return r.b});var i=n(436);n.d(e,"active",function(){return i.a});var a=n(346);n.d(e,"interrupt",function(){return a.a})},function(t,e,n){"use strict";var r=n(64);e.a=function(t,e){var n,i,a,o=t.__transition,s=!0;if(o){e=null==e?null:e+"";for(a in o)(n=o[a]).name===e?(i=n.state>r.d&&n.state<r.b,n.state=r.a,n.timer.stop(),i&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[a]):s=!1;s&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(19),i=n(68);e.a=function(t,e){var n;return("number"==typeof e?i.interpolateNumber:e instanceof r.a?i.interpolateRgb:(n=Object(r.a)(e))?(e=n,i.interpolateRgb):i.interpolateString)(t,e)}},function(t,e,n){var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="rect",e},e.prototype.generateFacets=function(t){var e=this,n=e.fields,r=[],i=1,a=1,o=n[0],s=n[1],u=[""],c=[""];return o&&(u=e.getFieldValues(o,t),a=u.length),s&&(c=e.getFieldValues(s,t),i=c.length),u.forEach(function(n,l){c.forEach(function(h,f){var p=[{field:o,value:n,values:u},{field:s,value:h,values:c}],d=e.getFilter(p),g=t.filter(d),y={type:e.type,colValue:n,rowValue:h,colField:o,rowField:s,colIndex:l,rowIndex:f,cols:a,rows:i,data:g,region:e.getRegion(i,a,l,f)};r.push(y)})}),r},e.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},e.prototype.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},e.prototype.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},e}(n(316));t.exports=r},function(t,e,n){var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="list",e.cols=null,e},e.prototype.generateFacets=function(t){var e=this,n=e.fields[0];if(!n)throw"Please specify for the field for facet!";var r=e.getFieldValues(n,t),i=r.length,a=e.cols||i,o=parseInt((i+a-1)/a),s=[];return r.forEach(function(u, c){var l=parseInt(c/a),h=c%a,f=[{field:n,value:u,values:r}],p=e.getFilter(f),d=t.filter(p),g={type:e.type,count:i,colValue:u,colField:n,rowField:null,rowValue:u,colIndex:h,rowIndex:l,cols:a,rows:o,data:d,region:e.getRegion(o,a,h,l)};s.push(g)}),s},e.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(e[t].label=null,e[t].title=null)},e.prototype.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(n(316));t.exports=r},function(t,e,n){t.exports={Canvas:n(445),Group:n(353),Shape:n(29),Arc:n(357),Circle:n(358),Dom:n(359),Ellipse:n(360),Fan:n(361),Image:n(362),Line:n(363),Marker:n(337),Path:n(364),Polygon:n(365),Polyline:n(366),Rect:n(367),Text:n(368),PathSegment:n(320),CommonUtil:n(309),DomUtil:n(351),MatrixUtil:n(42),PathUtil:n(338),Event:n(352),version:"3.1.0-beta.6"}},function(t,e,n){var r=n(309),i=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:a,th:a,"*":document.createElement("div")};t.exports={getBoundingClientRect:function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null},getStyle:function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r.isNil(n)?null:n}},modifyCSS:function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t},createDom:function(t){var e=o.test(t)&&RegExp.$1;e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r},getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},getWidth:function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)},getHeight:function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)},getOuterHeight:function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+a},getOuterWidth:function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+a},addEventListener:function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}},requestAnimationFrame:function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}}},function(t,e,n){var r=n(8),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){function r(t,e,n){for(var r=void 0,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function i(t){if(!t._cfg&&t!==l){var e=t.superclass.constructor;e&&!e._cfg&&i(e),t._cfg={},a.merge(t._cfg,e._cfg),a.merge(t._cfg,t.CFG)}}var a=n(8),o=n(354),s=n(449),u={},c="_INDEX",l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(l,o),a.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return i(this.constructor),a.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=u[t];if(r||(r=a.upperFirst(t),u[t]=r),e.attrs&&n){var i=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(i.fontFamily=i.fontFamily?i.fontFamily:o)}}e.canvas=n,e.type=t;var c=new s[r](e);return this.add(c),c},addGroup:function(t,e){var n=this.get("canvas"),r=void 0;if(e=a.merge({},e),a.isFunction(t))e?(e.canvas=n,e.parent=this,r=new t(e)):r=new t({canvas:n,parent:this}),this.add(r);else if(a.isObject(t))t.canvas=n,r=new l(t),this.add(r);else{if(void 0!==t)return!1;r=new l,this.add(r)}return r},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return a.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)}),e._cfg.children=n.concat(t);else{var r=t,i=r.get("parent");i&&i.removeChild(r,!1),e._setCfgProperty(r),n.push(r)}return e},_setCfgProperty:function(t){t.set("parent",this);var e=this._cfg;e.timeline&&(t.set("timeline",e.timeline),t.set("canvas",e.canvas),t.set("renderer",e.renderer))},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.get("children");i.length>0?a.each(i,function(i){if(i.get("visible")){var a=i.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],c=[a.maxX,a.maxY,1];i.apply(o),i.apply(s),i.apply(u),i.apply(c);var l=Math.min(o[0],s[0],u[0],c[0]),h=Math.max(o[0],s[0],u[0],c[0]),f=Math.min(o[1],s[1],u[1],c[1]),p=Math.max(o[1],s[1],u[1],c[1]);l<t&&(t=l),h>e&&(e=h),f<n&&(n=f),p>r&&(r=p)}}):(t=0,e=0,n=0,r=0);var o={minX:t,minY:n,maxX:e,maxY:r};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return a.each(t,function(t,e){return t[c]=e,t}),t.sort(function(t){return function(e,n){var r=t(e,n);return 0===r?e[c]-n[c]:r}}(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},findById:function(t){return this.find(function(e){return e.get("id")===t})},find:function(t){if(a.isString(t))return this.findById(t);var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1}),n},findAll:function(t){var e=this.get("children"),n=[],r=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},findBy:function(t){var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],r=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},getShape:function(t,e){var n=this._attrs.clip,i=this._cfg.children,a=void 0;if(n){var o=[t,e,1];n.invert(o,this.get("canvas")),n.isPointInPath(o[0],o[1])&&(a=r(i,t,e))}else a=r(i,t,e);return a},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++){t[e].clearTotalMatrix()}}},clear:function(){for(var t=this._cfg.children,e=t.length-1;e>=0;e--)t[e].remove();return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))}}),t.exports=l},function(t,e,n){var r=n(8),i=n(446),a=n(447),o=n(448),s=n(67),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},r.augment(u,i,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t){var e=this._cfg,n=e.parent,i=e.el;return n&&r.remove(n.get("children"),this),i&&i.parentNode.removeChild(i),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},_beforeSetZIndex:function(t){return this._cfg.zIndex=t,r.isNil(this.get("parent"))||this.get("parent").sort(),t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function r(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function i(t,e,n,i,a,s,u,c,l){var h=void 0,f=.005,p=1/0,d=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,b=[u,c];for(v=0;v<1;v+=.05)g=[r(t,n,a,v),r(e,i,s,v)],(d=o.squaredDistance(b,g))<p&&(h=v,p=d);for(p=1/0,x=0;x<32&&!(f<1e-4);x++){var w=h-f,_=h+f;g=[r(t,n,a,w),r(e,i,s,w)],d=o.squaredDistance(b,g),w>=0&&d<p?(h=w,p=d):(y=[r(t,n,a,_),r(e,i,s,_)],m=o.squaredDistance(b,y),_<=1&&m<p?(h=_,p=m):f*=.5)}return l&&(l.x=r(t,n,a,h),l.y=r(e,i,s,h)),Math.sqrt(p)}var a=n(8),o=n(42).vec2;t.exports={at:r,projectPoint:function(t,e,n,r,a,o,s,u){var c={};return i(t,e,n,r,a,o,s,u,c),c},pointDistance:i,extrema:function(t,e,n){var r=t+n-2*e;if(a.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function r(t,e,n){return t+e*Math.cos(n)}function i(t,e,n){return t+e*Math.sin(n)}var a=n(8),o=n(29),s=n(318),u=n(319),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(c,o),a.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth()/2,c=s.box(e,n,r,i,a,o);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.startAngle,o=t.r,s=t.clockwise,u=Math.PI/180;s&&(u*=-1);var c=[],l=r(e,o,a+u),h=i(n,o,a+u),f=r(e,o,a),p=i(n,o,a);return c.push([l,h]),c.push([f,p]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.endAngle,o=t.r,s=t.clockwise,u=Math.PI/180,c=[];s&&(u*=-1);var l=r(e,o,a+u),h=i(n,o,a+u),f=r(e,o,a),p=i(n,o,a);return c.push([f,p]),c.push([l,h]),c},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,r,i,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();u.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var r=this.getEndTangent();u.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=c},function(t,e,n){var r=n(8),i=n(29),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(8),i=n(29),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}}}),t.exports=a},function(t,e,n){var r=n(8),i=n(29),a=n(42).mat3,o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rx,o=e.ry;t=t||self.get("context");var s=i>o?i:o,u=i>o?1:i/o,c=i>o?o/i:1,l=[1,0,0,0,1,0,0,0,1];a.scale(l,l,[u,c]),a.translate(l,l,[n,r]),t.beginPath(),t.save(),t.transform(l[0],l[1],l[3],l[4],l[6],l[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(8),i=n(29),a=n(318),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.rs,i=t.re,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=this.getHitLineWidth(),l=a.box(e,n,r,o,s,u),h=a.box(e,n,i,o,s,u),f=c/2;return{minX:Math.min(l.minX,h.minX)-f,minY:Math.min(l.minY,h.minY)-f,maxX:Math.max(l.maxX,h.maxX)+f,maxY:Math.max(l.maxY,h.maxY)+f}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};(t=t||self.get("context")).beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,r,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(8),i=n(29),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},r.extend(a,i),r.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,l=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(c)||r.isNil(l)||r.isNil(h))return void t.drawImage(f,n,i,o,s);if(!(r.isNil(u)||r.isNil(c)||r.isNil(l)||r.isNil(h)))return void t.drawImage(f,u,c,l,h,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(8),i=n(29),a=n(319),o=n(317),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(s,i),r.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,r),t.lineTo(i,a)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var r=n(8),i=n(29),a=n(320),o=n(336),s=n(319),u=n(338),c=n(335),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={path:null,lineWidth:1,curve:null,tCache:null,startArrow:!1,endArrow:!1},r.extend(l,i),r.augment(l,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(r.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e=o.parsePath(t),n=void 0,i=[];if(r.isArray(e)&&0!==e.length&&("M"===e[0][0]||"m"===e[0][0])){for(var s=e.length,u=0;u<e.length;u++){var c=e[u];n=new a(c,n,u===s-1),i.push(n)}this.setSilent("segments",i),this.set("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,i=-1/0,a=1/0,o=-1/0;return r.each(t,function(t){t.getBBox(e);var r=t.box;r&&(r.minX<n&&(n=r.minX),r.maxX>i&&(i=r.maxX),r.minY<a&&(a=r.minY),r.maxY>o&&(o=r.maxY))}),{minX:n,minY:a,maxX:i,maxY:o}},_setTcache:function(){var t=0,e=0,n=[],i=void 0,a=void 0,o=void 0,s=void 0,u=this.curve;u&&(r.each(u,function(e,n){o=u[n+1],s=e.length,o&&(t+=c.len(e[s-2],e[s-1],o[1],o[2],o[3],o[4],o[5],o[6]))}),r.each(u,function(r,l){o=u[l+1],s=r.length,o&&((i=[])[0]=e/t,a=c.len(r[s-2],r[s-1],o[1],o[2],o[3],o[4],o[5],o[6]),e+=a,i[1]=e/t,n.push(i))}),this.tCache=n)},_calculateCurve:function(){var t=this._attrs.path;this.curve=u.pathTocurve(t)},getStartTangent:function(){var t=this.get("segments"),e=void 0,n=void 0,i=void 0,a=void 0;if(t.length>1)if(e=t[0].endPoint,n=t[1].endPoint,i=t[1].startTangent,a=[],r.isFunction(i)){var o=i();a.push([e.x-o[0],e.y-o[1]]),a.push([e.x,e.y])}else a.push([n.x,n.y]),a.push([e.x,e.y]);return a},getEndTangent:function(){var t=this.get("segments"),e=t.length,n=void 0,i=void 0,a=void 0,o=void 0;if(e>1)if(n=t[e-2].endPoint,i=t[e-1].endPoint,a=t[e-1].endTangent,o=[],r.isFunction(a)){var s=a();o.push([i.x-s[0],i.y-s[1]]),o.push([i.x,i.y])}else o.push([n.x,n.y]),o.push([i.x,i.y]);return o},getPoint:function(t){var e=this.tCache,n=void 0,i=void 0;e||(this._calculateCurve(),this._setTcache(),e=this.tCache);var a=this.curve;if(!e)return a?{x:a[0][1],y:a[0][2]}:null;r.each(e,function(e,r){t>=e[0]&&t<=e[1]&&(n=(t-e[0])/(e[1]-e[0]),i=r)});var o=a[i];if(r.isNil(o)||r.isNil(i))return null;var s=o.length,u=a[i+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-n),y:c.at(o[s-1],u[2],u[4],u[6],1-n)}},createPath:function(t){var e=this.get("segments");if(r.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,i=0;i<n;i++)e[i].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),i=e.path;if(t=t||this.get("context"),r.isArray(n)&&(e.startArrow||e.endArrow)&&"z"!==i[i.length-1]&&"Z"!==i[i.length-1]&&!e.fill){var a=this.getStartTangent();s.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();s.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}}}),t.exports=l},function(t,e,n){var r=n(8),i=n(29),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,i=1/0,a=-1/0,o=-1/0;r.each(t,function(t){var e=t[0],r=t[1];e<n&&(n=e),e>a&&(a=e),r<i&&(i=r),r>o&&(o=r)});var s=e/2;return{minX:n-s,minY:i-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),r.each(e,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(8),i=n(29),a=n(319),o=n(317),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var i=1/0,a=1/0,o=-1/0,s=-1/0;r.each(n,function(t){var e=t[0],n=t[1];e<i&&(i=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)});var u=e/2;return{minX:i-u,minY:a-u,maxX:o+u,maxY:s+u}},_setTcache:function(){var t=this._attrs.points,e=0,n=0,i=[],a=void 0,s=void 0;t&&0!==t.length&&(r.each(t,function(n,r){t[r+1]&&(e+=o.len(n[0],n[1],t[r+1][0],t[r+1][1]))}),e<=0||(r.each(t,function(r,u){t[u+1]&&((a=[])[0]=n/e,s=o.len(r[0],r[1],t[u+1][0],t[u+1][1]),n+=s,a[1]=n/e,i.push(a))}),this.tCache=i))},createPath:function(t){var e=this._attrs.points,n=void 0,r=void 0;if(!(e.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(e[0][0],e[0][1]),r=1,n=e.length-1;r<n;r++)t.lineTo(e[r][0],e[r][1]);t.lineTo(e[n][0],e[n][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this._attrs,n=e.points,r=n.length-1;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&a.addEndArrow(t,e,n[r-1][0],n[r-1][1],n[r][0],n[r][1])},getPoint:function(t){var e=this._attrs.points,n=this.tCache,i=void 0,a=void 0;return n||(this._setTcache(),n=this.tCache),r.each(n,function(e,n){t>=e[0]&&t<=e[1]&&(i=(t-e[0])/(e[1]-e[0]),a=n)}),{x:o.at(e[a][0],e[a+1][0],i),y:o.at(e[a][1],e[a+1][1],i)}}}),t.exports=s},function(t,e,n){var r=n(8),i=n(29),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,r=t.width,i=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+r+a,maxY:n+i+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=e.radius;(t=t||this.get("context")).beginPath(),0===o?t.rect(n,r,i,a):(t.moveTo(n+o,r),t.lineTo(n+i-o,r),t.arc(n+i-o,r+o,o,-Math.PI/2,0,!1),t.lineTo(n+i,r+a-o),t.arc(n+i-o,r+a-o,o,0,Math.PI/2,!1),t.lineTo(n+o,r+a),t.arc(n+o,r+a-o,o,Math.PI/2,Math.PI,!1),t.lineTo(n,r+o),t.arc(n+o,r+o,o,Math.PI,3*Math.PI/2,!1),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(8),i=n(29),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,a=t.fontVariant;t.font=[i,a,r,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=void 0;if(r.isString(e)&&-1!==e.indexOf("\n")){var i=(n=e.split("\n")).length;t.lineCount=i,t.textArr=n}},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){return n*e+this._getSpaceingY()*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText());var n=t.x,r=t.y,i=this.measureText();if(!i)return{minX:n,minY:r,maxX:n,maxY:r};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,u=this.getHitLineWidth(),c={x:n,y:r-a};o&&("end"===o||"right"===o?c.x-=i:"center"===o&&(c.x-=i/2)),s&&("top"===s?c.y+=a:"middle"===s&&(c.y+=a/2)),this.set("startPoint",c);var l=u/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+i+l,maxY:c.y+a+l}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var i=e.text;if(i){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;r.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!1):t.strokeText(i,o,s),t.globalAlpha=1}if(this.hasFill()){var c=e.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),a?this._drawTextArr(t,!0):t.fillText(i,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n=this._attrs.textArr,i=this._attrs.textBaseline,a=1*this._attrs.fontSize,o=this._getSpaceingY(),s=this._attrs.x,u=this._attrs.y,c=this.getBBox(),l=c.maxY-c.minY,h=void 0;r.each(n,function(n,r){h=u+r*(o+a)-l+a,"middle"===i&&(h+=l-a-(l-a)/2),"top"===i&&(h+=l-a),e?t.fillText(n,s,h):t.strokeText(n,s,h)})},measureText:function(){var t=this._attrs,e=t.text,n=t.font,i=t.textArr,a=void 0,o=0;if(!r.isNil(e)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=n,i?r.each(i,function(t){a=s.measureText(t).width,o<a&&(o=a),s.restore()}):(o=s.measureText(e).width,s.restore()),o}}}),t.exports=a},function(t,e,n){var r=n(135);n(370),n(372),n(374),n(322),n(324),n(312),n(326),n(375),n(377),n(379),n(438),n(443),t.exports=r},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(21),s=n(310),u=n(0);n(371);var c=function(t){function e(n){r(this,e);var a=i(this,t.call(this,n));return u.assign(a,s),a}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},e.prototype.draw=function(t,e,n,r){var i=this,a=this.getDrawCfg(t[0]),o=this.splitData(t);a.origin=t,u.each(o,function(t,o){a.splitedIndex=o;var s=t.map(function(t){return t.points});a.points=s;var u=n.drawShape(a.shape,a,e);i.appendShapeInfo(u,r+o)})},e}(o),l=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(c);c.Stack=l,o.Area=c,o.AreaStack=l,t.exports=c},function(t,e,n){function r(t){var e=l.shape.hollowArea;return s.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity},t.style)}function i(t){var e=l.shape.area;return s.mix({},e,{fill:t.color,stroke:t.color,lineWidth:t.size,fillOpacity:t.opacity},t.style)}function a(t,e,n){var r=[],i=[],a=[],o=[],u=t.isInCircle;return s.each(t.points,function(t){a.push(t[1]),o.push(t[0])}),o=o.reverse(),i.push(a,o),s.each(i,function(i,a){var o=[],s=(i=n.parsePoints(i))[0];u&&i.push({x:s.x,y:s.y}),o=e?c.getSplinePath(i,!1,t.constraint):c.getLinePath(i,!1),a>0&&(o[0][0]="L"),r=r.concat(o)}),r.push(["Z"]),r}function o(t){return{symbol:function(t,e){return[["M",t-5.5,e-4],["L",t+5.5,e-4],["L",t+5.5,e+4],["L",t-5.5,e+4]]},radius:5,fill:t.color,fillOpacity:.3}}var s=n(0),u=n(18),c=n(28),l=n(2),h=u.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,r=t.y,i=t.y0;return r=s.isArray(r)?r:[i,r],s.each(r,function(t){e.push({x:n,y:t})}),e},getActiveCfg:function(t,e){return function(t,e){if("line"===t||"smoothLine"===t)return{lineWidth:(e.lineWidth||0)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}(t,e)},drawShape:function(t,e,n){var r=this.getShape(t),i=void 0;return(i=1===e.points.length&&l.showSinglePoint?function(t,e,n){var r=t._coord.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:s.mix({x:r.x,y:r.y,r:2,fill:e.color},e.style)})}(this,e,n):r.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});u.registerShape("area","area",{draw:function(t,e){var n=i(t),r=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return o(t)}}),u.registerShape("area","smooth",{draw:function(t,e){var n=i(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var o=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:o})})},getMarkerCfg:function(t){return o(t)}}),u.registerShape("area","line",{draw:function(t,e){var n=r(t),i=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),u.registerShape("area","smoothLine",{draw:function(t,e){var n=r(t),i=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),h.spline=h.smooth,t.exports=h},function(t,e,n){var r=n(21);n(373);var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e},e}(r);r.Edge=i,t.exports=i},function(t,e,n){function r(t){var e=c.shape.edge;return o.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity,opacity:t.opacity},t.style)}function i(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var r=["C"];return o.each(n,function(t){r.push(t.x,t.y)}),r}function a(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return o.each(n,function(t){r.push(t.x,t.y)}),r}var o=n(0),s=n(18),u=n(142),c=n(2),l=n(28),h=1/3,f=s.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return u.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});s.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),i=r(t),a=l.getLinePath(n);return e.addShape("path",{attrs:o.mix(i,{path:a})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),s.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,i=r(t),a=function(t,e){var n=[];n.push({y:t.y*(1-h)+e.y*h,x:t.x}),n.push({y:t.y*(1-h)+e.y*h,x:e.x}),n.push(e);var r=[["M",t.x,t.y]];return o.each(n,function(t){r.push(["L",t.x,t.y])}),r}(n[0],n[1]);a=this.parsePath(a);return e.addShape("path",{attrs:o.mix(i,{path:a})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),s.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,a=r(t),s=function(t,e){var n=i(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(n[0],n[1]);s=this.parsePath(s);return e.addShape("path",{attrs:o.mix(a,{path:s})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),s.registerShape("edge","arc",{draw:function(t,e){var n=t.points,s=n.length>2?"weight":"normal",u=r(t),c=void 0,l=void 0;if(t.isInCircle){var h={x:0,y:1};"normal"===s?l=function(t,e,n){var r=a(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(n[0],n[1],h):(u.fill=u.stroke,l=function(t,e){var n=a(t[1],e),r=a(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(n,h)),l=this.parsePath(l),c=e.addShape("path",{attrs:o.mix(u,{path:l})})}else if("normal"===s)n=this.parsePoints(n),c=e.addShape("arc",{attrs:o.mix(u,{x:(n[1].x+n[0].x)/2,y:n[0].y,r:Math.abs(n[1].x-n[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{l=[["M",n[0].x,n[0].y],["L",n[1].x,n[1].y]];var f=i(n[1],n[3]),p=i(n[2],n[0]);l.push(f),l.push(["L",n[3].x,n[3].y]),l.push(["L",n[2].x,n[2].y]),l.push(p),l.push(["Z"]),l=this.parsePath(l),u.fill=u.stroke,c=e.addShape("path",{attrs:o.mix(u,{path:l})})}return c},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},r(t))}}),t.exports=f},function(t,e,n){var r=n(66).ColorUtil,i=n(21),a=n(0),o={},s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="heatmap",e},e.prototype._prepareRange=function(){var t=this.get("mappedData"),e=this.getAttr("color").field,n=1/0,r=-1/0;t.forEach(function(t){var i=t._origin[e];i>r&&(r=i),i<n&&(n=i)}),n===r&&(n=r-1);var i=[n,r];this.set("valueRange",i)},e.prototype._prepareSize=function(){var t=this.getDefaultValue("size");a.isNumber(t)||(t=this._getDefaultSize());var e=this.get("styleOptions"),n=e&&a.isObject(e.style)?e.style.blur:null;a.isFinite(n)&&null!==n||(n=t/2),this.set("heatmapSize",{blur:n,radius:t})},e.prototype._getDefaultSize=function(){var t=this.getAttr("position"),e=this.get("coord");return Math.min(e.width/(4*t.scales[0].ticks.length),e.height/(4*t.scales[1].ticks.length))},e.prototype._colorize=function(t){for(var e=this.getAttr("color"),n=t.data,i=3;i<n.length;i+=4){var a=n[i];if(a){var s=void 0;o[a]?s=o[a]:(s=r.rgb2arr(e.gradient(a/256)),o[a]=s),n[i-3]=s[0],n[i-2]=s[1],n[i-1]=s[2],n[i]=a}}},e.prototype._prepareGreyScaleBlurredCircle=function(t,e){var n=this.get("grayScaleBlurredCanvas");n||(n=document.createElement("canvas"),this.set("grayScaleBlurredCanvas",n));var r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype._drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.get("grayScaleBlurredCanvas");i.globalAlpha=r,i.drawImage(a,t-n,e-n)},e.prototype._getShadowCanvasCtx=function(){var t=this.get("shadowCanvas");t||(t=document.createElement("canvas"),this.set("shadowCanvas",t));var e=this.get("coord"),n=e.width,r=e.height;return t.width=n,t.height=r,t.getContext("2d")},e.prototype._clearShadowCanvasCtx=function(){var t=this._getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype._getImageShape=function(){var t=this.get("imageShape");if(t)return t;return t=this.get("container").addShape("Image",{}),this.set("imageShape",t),t},e.prototype.drawWithRange=function(t){var e=this.get("coord"),n=e.start,r=e.end,i=e.width,a=e.height,o=this.getAttr("color").field,s=this.get("heatmapSize");this._clearShadowCanvasCtx();var u=this._getShadowCanvasCtx(),c=this.get("mappedData");t&&(c=c.filter(function(e){return e._origin[o]<=t[1]&&e._origin[o]>=t[0]}));for(var l=this._getScale(o),h=0;h<c.length;h++){var f=c[h],p=this.getDrawCfg(f),d=l.scale(f._origin[o]);this._drawGrayScaleBlurredCircle(p.x-n.x,p.y-r.y,s.radius+s.blur,d,u)}var g=u.getImageData(0,0,i,a);this._clearShadowCanvasCtx(),this._colorize(g),u.putImageData(g,0,0);var y=this._getImageShape();y.attr("x",n.x),y.attr("y",r.y),y.attr("width",i),y.attr("height",a),y.attr("img",u.canvas)},e.prototype.draw=function(t){this.set("mappedData",t),this._prepareRange(),this._prepareSize();var e=this.get("heatmapSize");this._prepareGreyScaleBlurredCircle(e.radius,e.blur);var n=this.get("valueRange");this.drawWithRange(n)},e}(i);i.Heatmap=s,t.exports=s},function(t,e,n){var r=n(21),i=n(0);n(376);var a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r=n.x,a=n.y,o=void 0;if(!i.isArray(r)||!i.isArray(a)){var s=this.getXScale(),u=this.getYScale(),c=.5/(s.values?s.values.length:s.ticks.length),l=.5/(u.values?u.values.length:u.ticks.length);s.isCategory&&u.isCategory?(r=[r-c,r-c,r+c,r+c],a=[a-l,a+l,a+l,a-l]):i.isArray(r)?(r=[(o=r)[0],o[0],o[1],o[1]],a=[a-l/2,a+l/2,a+l/2,a-l/2]):i.isArray(a)&&(a=[(o=a)[0],o[1],o[1],o[0]],r=[r-c/2,r-c/2,r+c/2,r+c/2]),n.x=r,n.y=a}return n},e}(r);r.Polygon=a,t.exports=a},function(t,e,n){function r(t){var e=s.shape.polygon;return a.mix({},e,{stroke:t.color,fill:t.color,fillOpacity:t.opacity},t.style)}function i(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return a.isEqual(r[r.length-1],e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}var a=n(0),o=n(18),s=n(2),u=o.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return a.each(t.x,function(n,r){var i=t.y[r];e.push({x:n,y:i})}),e},getActiveCfg:function(t,e){var n=e.lineWidth||1;if("hollow"===t)return{lineWidth:n+1};return{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});o.registerShape("polygon","polygon",{draw:function(t,e){if(!a.isEmpty(t.points)){var n=r(t),o=i(t.points);return o=this.parsePath(o),e.addShape("path",{attrs:a.mix(n,{path:o})})}},getMarkerCfg:function(t){return a.mix({symbol:"square",radius:4},r(t))}}),o.registerShape("polygon","hollow",{draw:function(t,e){if(!a.isEmpty(t.points)){var n=function(t){var e=s.shape.hollowPolygon;return a.mix({},e,{stroke:t.color,strokeOpacity:t.opacity},t.style)}(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:a.mix(n,{path:r})})}},getMarkerCfg:function(t){return a.mix({symbol:"square",radius:4},r(t))}}),t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(21),s=n(0),u=n(311);n(378);var c=function(t){function e(n){r(this,e);var a=i(this,t.call(this,n));return s.assign(a,u),a}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e}(o),l=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(c);c.Dodge=l,o.Schema=c,o.SchemaDodge=l,t.exports=c},function(t,e,n){function r(t){o.isArray(t)||(t=[t]);var e=t[0],n=t[t.length-1],r=t.length>1?t[1]:e;return{min:e,max:n,min1:r,max1:t.length>3?t[3]:n,median:t.length>2?t[2]:r}}function i(t,e,n){var i=[],a=void 0,s=void 0;return o.isArray(e)?a=[[t-n/2,(s=r(e)).max],[t+n/2,s.max],[t,s.max],[t,s.max1],[t-n/2,s.min1],[t-n/2,s.max1],[t+n/2,s.max1],[t+n/2,s.min1],[t,s.min1],[t,s.min],[t-n/2,s.min],[t+n/2,s.min],[t-n/2,s.median],[t+n/2,s.median]]:(e=e||.5,a=[[(s=r(t)).min,e-n/2],[s.min,e+n/2],[s.min,e],[s.min1,e],[s.min1,e-n/2],[s.min1,e+n/2],[s.max1,e+n/2],[s.max1,e-n/2],[s.max1,e],[s.max,e],[s.max,e-n/2],[s.max,e+n/2],[s.median,e-n/2],[s.median,e+n/2]]),function(t,e){o.each(t,function(t){e.push({x:t[0],y:t[1]})})}(a,i),i}function a(t,e,n){var r=function(t){o.isArray(t)||(t=[t]);var e=t.sort(function(t,e){return t<e?1:-1}),n=e.length;if(n<4)for(var r=e[n-1],i=0;i<4-n;i++)e.push(r);return e}(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}var o=n(0),s=n(18),u=n(2),c=s.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(t,e){if("box"===t){return{lineWidth:(e.lineWidth||1)+1}}var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});s.registerShape("schema","box",{getPoints:function(t){return i(t.x,t.y,t.size)},draw:function(t,e){var n=function(t){var e=u.shape.schema;return o.mix({},e,{stroke:t.color,strokeOpacity:t.opacity},t.style)}(t),r=function(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:o.mix(n,{path:r})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=i(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},radius:6,lineWidth:1,stroke:t.color}}}),s.registerShape("schema","candle",{getPoints:function(t){return a(t.x,t.y,t.size)},draw:function(t,e){var n=function(t){var e=u.shape.schema;return o.mix({},e,{fill:t.color,stroke:t.color,fillOpacity:t.opacity},t.style)}(t),r=function(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:o.mix(n,{path:r})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=a(t,e=[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},lineWidth:1,stroke:t.color,fill:t.color,radius:6}}}),t.exports=c},function(t,e,n){function r(t){return s.isArray(t)?t:s.isString(t)?t.split("*"):[t]}var i=n(66),a=n(21),o=n(2),s=n(0),u=n(380),c=u.venn,l=u.scaleSolution,h=u.circlePath,f=u.intersectionAreaPath,p=u.computeTextCentres;n(437);var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="venn",e.shapeType="venn",e.generatePoints=!0,e},e.prototype._initAttrs=function(){var t=this.get("view"),e=this.viewTheme||o,n=this.get("attrs"),a=this.get("attrOptions"),u=this.get("labelCfg"),d=this.get("data"),g=a.size?a.size.field:"size",y=u?u.fields[0]:"sets";this.set("labelCfg",null),d.forEach(function(t){t.sets=t[y],t.size=t[g]});var v=c(d),m=this.get("coord"),x=[Math.min(m.x.end,m.x.start),Math.max(m.x.end,m.x.start)],b=[Math.min(m.y.end,m.y.start),Math.max(m.y.end,m.y.start)],w=x[1]-x[0],_=b[1]-b[0],S=this.get("styleOptions"),M=S&&s.isObject(S.style)?S.style.padding:0;s.isFinite(M)||(M=0);var A=l(v,w,_,M),C=p(A,d);d.forEach(function(t){var e=t.sets,n=e.join(",");if(t.id=n,1===e.length){var r=A[n];t.path=h(r.x,r.y,r.radius),s.assign(t,r)}else{var i=e.map(function(t){return A[t]}),a=f(i);/[zZ]$/.test(a)||(a+="Z"),t.path=a;var o=C[n]||{x:0,y:0};s.assign(t,o)}}),t.set("data",d),this.set("data",d),this.set("dataArray",d),this.position("x*y");for(var P in a)if(a.hasOwnProperty(P)){var k=a[P],T=s.upperFirst(P),O=r(k.field);"position"===P&&(k.coord=m);for(var I=[],E=0;E<O.length;E++){var L=O[E],D=this._createScale(L,d);"color"===P&&s.isNil(k.values)&&(D.values.length<=8?k.values=e.colors:D.values.length<=16?k.values=e.colors_16:k.values=e.colors_24,s.isNil(k.values)&&(k.values=e.colors)),I.push(D)}"position"===P&&(I[0].change({nice:!1,min:x[0],max:x[1]}),I[1].change({nice:!1,min:b[0],max:b[1]})),k.scales=I;var j=new i[T](k);n[P]=j}},e.prototype.paint=function(){t.prototype.paint.call(this);var e=this,n=e.get("dataArray"),r=e.get("shapeContainer");n.forEach(function(t){var n=e.getDrawCfg(t[0]),i=n.origin._origin;r.addShape("text",{attrs:s.mix({},{x:i.x,y:i.y,text:i.label||"",fontSize:18,fill:"hollow"===n.shape?n.color:"#666",textAlign:"center",textBaseline:"middle"},n.style?n.style.textStyle:{})})})},e}(a);a.Venn=d,t.exports=d},function(t,e,n){var r,i,a,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,u){"object"===o(e)&&void 0!==t?u(e,n(62),n(345)):(i=[e,n(62),n(345)],r=u,void 0!==(a="function"==typeof r?r.apply(e,i):r)&&(t.exports=a))}(0,function(t,e,n){"use strict";function r(t,e){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=s(t[n],t[r]),a=0;a<i.length;++a){var o=i[a];o.parentIndex=[n,r],e.push(o)}return e}(t),o=r.filter(function(e){return function(t,e){for(var n=0;n<e.length;++n)if(a(t,e[n])>e[n].radius+F)return!1;return!0}(e,t)}),c=0,l=0,h=[];if(o.length>1){var f=u(o);for(n=0;n<o.length;++n){var p=o[n];p.angle=Math.atan2(p.x-f.x,p.y-f.y)}o.sort(function(t,e){return e.angle-t.angle});var d=o[o.length-1];for(n=0;n<o.length;++n){var g=o[n];l+=(d.x+g.x)*(g.y-d.y);for(var y={x:(g.x+d.x)/2,y:(g.y+d.y)/2},v=null,m=0;m<g.parentIndex.length;++m)if(d.parentIndex.indexOf(g.parentIndex[m])>-1){var x=t[g.parentIndex[m]],b=Math.atan2(g.x-x.x,g.y-x.y),w=Math.atan2(d.x-x.x,d.y-x.y),_=w-b;_<0&&(_+=2*Math.PI);var S=w-_/2,M=a(y,{x:x.x+x.radius*Math.sin(S),y:x.y+x.radius*Math.cos(S)});M>2*x.radius&&(M=2*x.radius),(null===v||v.width>M)&&(v={circle:x,width:M,p1:g,p2:d})}null!==v&&(h.push(v),c+=i(v.circle.radius,v.width),d=g)}}else{var A=t[0];for(n=1;n<t.length;++n)t[n].radius<A.radius&&(A=t[n]);var C=!1;for(n=0;n<t.length;++n)if(a(t[n],A)>Math.abs(A.radius-t[n].radius)){C=!0;break}C?c=l=0:(c=A.radius*A.radius*Math.PI,h.push({circle:A,p1:{x:A.x,y:A.y+A.radius},p2:{x:A.x-F,y:A.y+A.radius},width:2*A.radius}))}return l/=2,e&&(e.area=c+l,e.arcArea=c,e.polygonArea=l,e.arcs=h,e.innerPoints=o,e.intersectionPoints=r),c+l}function i(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function o(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return i(t,t-(n*n-e*e+t*t)/(2*n))+i(e,r)}function s(t,e){var n=a(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-o*o),u=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:u+l,y:c-h},{x:u-l,y:c+h}]}function u(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function c(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function l(t,e){return c(t).map(function(){return c(e)})}function h(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function f(t){return Math.sqrt(h(t,t))}function p(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function d(t,e,n,r,i){for(var a=0;a<t.length;++a)t[a]=e*n[a]+r*i[a]}function g(t,e,n){function r(t){for(var e=0;e<t.length;e++)y[g][e]=t[e];y[g].fx=t.fx}var i,a=(n=n||{}).maxIterations||200*e.length,o=n.nonZeroDelta||1.05,s=n.zeroDelta||.001,u=n.minErrorDelta||1e-6,c=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,h=void 0!==n.chi?n.chi:2,f=void 0!==n.psi?n.psi:-.5,p=void 0!==n.sigma?n.sigma:.5,g=e.length,y=new Array(g+1);y[0]=e,y[0].fx=t(e),y[0].id=0;for(var v=0;v<g;++v){var m=e.slice();m[v]=m[v]?m[v]*o:s,y[v+1]=m,y[v+1].fx=t(m),y[v+1].id=v+1}for(var x=function(t,e){return t.fx-e.fx},b=e.slice(),w=e.slice(),_=e.slice(),S=e.slice(),M=0;M<a;++M){if(y.sort(x),n.history){var A=y.map(function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e});A.sort(function(t,e){return t.id-e.id}),n.history.push({x:y[0].slice(),fx:y[0].fx,simplex:A})}for(i=0,v=0;v<g;++v)i=Math.max(i,Math.abs(y[0][v]-y[1][v]));if(Math.abs(y[0].fx-y[g].fx)<u&&i<c)break;for(v=0;v<g;++v){b[v]=0;for(var C=0;C<g;++C)b[v]+=y[C][v];b[v]/=g}var P=y[g];if(d(w,1+l,b,-l,P),w.fx=t(w),w.fx<y[0].fx)d(S,1+h,b,-h,P),S.fx=t(S),r(S.fx<w.fx?S:w);else if(w.fx>=y[g-1].fx){var k=!1;if(w.fx>P.fx?(d(_,1+f,b,-f,P),_.fx=t(_),_.fx<P.fx?r(_):k=!0):(d(_,1-f*l,b,f*l,P),_.fx=t(_),_.fx<w.fx?r(_):k=!0),k){if(p>=1)break;for(v=1;v<y.length;++v)d(y[v],1-p,y[0],p,y[v]),y[v].fx=t(y[v])}}else r(w)}return y.sort(x),{fx:y[0].fx,x:y[0]}}function y(t,e,n,r,i,a,o){function s(s,f,g){for(var y=0;y<16;++y)if(i=(s+f)/2,d(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),p=h(r.fxprime,e),l>u+a*i*c||l>=g)f=i;else{if(Math.abs(p)<=-o*c)return i;p*(f-s)>=0&&(f=s),s=i,g=l}return 0}var u=n.fx,c=h(n.fxprime,e),l=u,f=u,p=c,g=0;i=i||1,a=a||1e-6,o=o||.1;for(var y=0;y<10;++y){if(d(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),p=h(r.fxprime,e),l>u+a*i*c||y&&l>=f)return s(g,i,f);if(Math.abs(p)<=-o*c)return i;if(p>=0)return s(i,g,l);f=l,g=i,i*=2}return i}function v(t,e,n){var r,i,a,o={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),c=1;a=(n=n||{}).maxIterations||20*e.length,o.fx=t(o.x,o.fxprime),p(r=o.fxprime.slice(),o.fxprime,-1);for(var l=0;l<a;++l){if(c=y(t,r,o,s,c),n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:c}),c){d(u,1,s.fxprime,-1,o.fxprime);var g=h(o.fxprime,o.fxprime);d(r,Math.max(0,h(u,s.fxprime)/g),r,-1,s.fxprime),i=o,o=s,s=i}else p(r,o.fxprime,-1);if(f(o.fxprime)<=1e-5)break}return n.history&&n.history.push({x:o.x.slice(),fx:o.fx,fxprime:o.fxprime.slice(),alpha:c}),o}function m(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,r=e.initialLayout||b,i=e.lossFunction||_,a=r(t=function(t){t=t.slice();var e,n,r,i,a=[],o={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?a.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],o[[r,i]]=!0,o[[i,r]]=!0)}for(a.sort(function(t,e){return t>e}),e=0;e<a.length;++e)for(r=a[e],n=e+1;n<a.length;++n)i=a[n],[r,i]in o||t.push({sets:[r,i],size:0});return t}(t),e),o=[],s=[];for(n in a)a.hasOwnProperty(n)&&(o.push(a[n].x),o.push(a[n].y),s.push(n));for(var u=g(function(e){for(var n={},r=0;r<s.length;++r){var o=s[r];n[o]={x:e[2*r],y:e[2*r+1],radius:a[o].radius}}return i(n,t)},o,e).x,c=0;c<s.length;++c)n=s[c],a[n].x=u[2*c],a[n].y=u[2*c+1];return a}function x(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+R?Math.abs(t-e):function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),s=t(n),u=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var c=0;c<i;++c){var l=e+(u/=2),h=t(l);if(h*o>=0&&(e=l),Math.abs(u)<a||0===h)return l}return e+u}(function(r){return o(t,e,r)-n},0,t+e)}function b(t,e){var n=w(t,e),r=e.lossFunction||_;if(t.length>=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],a={};for(n=0;n<t.length;++n){var o=t[n];1==o.sets.length&&(a[o.sets[0]]=i.length,i.push(o))}var s=function(t,e,n){var r=l(e.length,e.length),i=l(e.length,e.length);return t.filter(function(t){return 2==t.sets.length}).map(function(t){var a=n[t.sets[0]],o=n[t.sets[1]],s=x(Math.sqrt(e[a].size/Math.PI),Math.sqrt(e[o].size/Math.PI),t.size);r[a][o]=r[o][a]=s;var u=0;t.size+1e-10>=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),i[a][o]=i[o][a]=u}),{distances:r,constraints:i}}(t,i,a),u=s.distances,h=s.constraints,d=f(u.map(f))/u.length;u=u.map(function(t){return t.map(function(t){return t/d})});var g,y,m=function(t,e){return function(t,e,n,r){var i,a=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var o=t[2*i],s=t[2*i+1],u=i+1;u<n.length;++u){var c=t[2*u],l=t[2*u+1],h=n[i][u],f=r[i][u],p=(c-o)*(c-o)+(l-s)*(l-s),d=Math.sqrt(p),g=p-h*h;f>0&&d<=h||f<0&&d>=h||(a+=2*g*g,e[2*i]+=4*g*(o-c),e[2*i+1]+=4*g*(s-l),e[2*u]+=4*g*(c-o),e[2*u+1]+=4*g*(l-s))}return a}(t,e,u,h)};for(n=0;n<r;++n){var b=c(2*u.length).map(Math.random);y=v(m,b,e),(!g||y.fx<g.fx)&&(g=y)}var w=g.x,_={};for(n=0;n<i.length;++n){var S=i[n];_[S.sets[0]]={x:w[2*n]*d,y:w[2*n+1]*d,radius:Math.sqrt(S.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)p(e.history[n].x,d);return _}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function w(t,e){function n(t,e){return e.size-t.size}function r(t){return t.set in m}function i(t,e){u[e].x=t.x,u[e].y=t.y,m[e]=!0}for(var a,o=e&&e.lossFunction?e.lossFunction:_,u={},c={},l=0;l<t.length;++l){var h=t[l];1==h.sets.length&&(a=h.sets[0],u[a]={x:1e10,y:1e10,rowid:u.length,size:h.size,radius:Math.sqrt(h.size/Math.PI)},c[a]=[])}for(t=t.filter(function(t){return 2==t.sets.length}),l=0;l<t.length;++l){var f=t[l],p=f.hasOwnProperty("weight")?f.weight:1,d=f.sets[0],g=f.sets[1];f.size+R>=Math.min(u[d].size,u[g].size)&&(p=0),c[d].push({set:g,size:f.size,weight:p}),c[g].push({set:d,size:f.size,weight:p})}var y=[];for(a in c)if(c.hasOwnProperty(a)){var v=0;for(l=0;l<c[a].length;++l)v+=c[a][l].size*c[a][l].weight;y.push({set:a,size:v})}y.sort(n);var m={};for(i({x:0,y:0},y[0].set),l=1;l<y.length;++l){var b=y[l].set,w=c[b].filter(r);if(a=u[b],w.sort(n),0===w.length)throw"ERROR: missing pairwise overlap information";for(var S=[],M=0;M<w.length;++M){var A=u[w[M].set],C=x(a.radius,A.radius,w[M].size);S.push({x:A.x+C,y:A.y}),S.push({x:A.x-C,y:A.y}),S.push({y:A.y+C,x:A.x}),S.push({y:A.y-C,x:A.x});for(var P=M+1;P<w.length;++P)for(var k=u[w[P].set],T=x(a.radius,k.radius,w[P].size),O=s({x:A.x,y:A.y,radius:C},{x:k.x,y:k.y,radius:T}),I=0;I<O.length;++I)S.push(O[I])}var E=1e50,L=S[0];for(M=0;M<S.length;++M){u[b].x=S[M].x,u[b].y=S[M].y;var D=o(u,t);D<E&&(E=D,L=S[M])}i(L,b)}return u}function _(t,e){function n(e){return e.map(function(e){return t[e]})}for(var i=0,s=0;s<e.length;++s){var u,c=e[s];if(1!=c.sets.length){if(2==c.sets.length){var l=t[c.sets[0]],h=t[c.sets[1]];u=o(l.radius,h.radius,a(l,h))}else u=r(n(c.sets));i+=(c.hasOwnProperty("weight")?c.weight:1)*(u-c.size)*(u-c.size)}}return i}function S(t,e,n){null===n?t.sort(function(t,e){return e.radius-t.radius}):t.sort(n);var r;if(t.length>0){var i=t[0].x,o=t[0].y;for(r=0;r<t.length;++r)t[r].x-=i,t[r].y-=o}if(2==t.length){a(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y)}if(t.length>1){var s,u,c=Math.atan2(t[1].x,t[1].y)-e,l=Math.cos(c),h=Math.sin(c);for(r=0;r<t.length;++r)s=t[r].x,u=t[r].y,t[r].x=l*s-h*u,t[r].y=h*s+l*u}if(t.length>2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var d=(t[r].x+p*t[r].y)/(1+p*p);t[r].x=2*d-t[r].x,t[r].y=2*d*p-t[r].y}}}}function M(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}function n(t,n){var r=e(t),i=e(n);r.parent=i}t.map(function(t){t.parent=t});for(var r=0;r<t.length;++r)for(var i=r+1;i<t.length;++i){var o=t[r].radius+t[i].radius;a(t[r],t[i])+1e-10<o&&n(t[i],t[r])}var s,u={};for(r=0;r<t.length;++r)(s=e(t[r]).parent.setid)in u||(u[s]=[]),u[s].push(t[r]);t.map(function(t){delete t.parent});var c=[];for(s in u)u.hasOwnProperty(s)&&c.push(u[s]);return c}function A(t){var e=function(e){return{max:Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),min:Math.min.apply(null,t.map(function(t){return t[e]-t.radius}))}};return{xRange:e("x"),yRange:e("y")}}function C(t,e,n){function r(t,e,n){if(t){var r,i,a,s=t.bounds;e?r=l.xRange.max-s.xRange.min+h:(r=l.xRange.max-s.xRange.max,(a=(s.xRange.max-s.xRange.min)/2-(l.xRange.max-l.xRange.min)/2)<0&&(r+=a)),n?i=l.yRange.max-s.yRange.min+h:(i=l.yRange.max-s.yRange.max,(a=(s.yRange.max-s.yRange.min)/2-(l.yRange.max-l.yRange.min)/2)<0&&(i+=a));for(var u=0;u<t.length;++u)t[u].x+=r,t[u].y+=i,o.push(t[u])}}null===e&&(e=Math.PI/2);var i,a,o=[];for(a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push({x:s.x,y:s.y,radius:s.radius,setid:a})}var u=M(o);for(i=0;i<u.length;++i){S(u[i],e,n);var c=A(u[i]);u[i].size=(c.xRange.max-c.xRange.min)*(c.yRange.max-c.yRange.min),u[i].bounds=c}u.sort(function(t,e){return e.size-t.size});for(var l=(o=u[0]).bounds,h=(l.xRange.max-l.xRange.min)/50,f=1;f<u.length;)r(u[f],!0,!1),r(u[f+1],!1,!0),r(u[f+2],!0,!0),f+=3,l=A(o);var p={};for(i=0;i<o.length;++i)p[o[i].setid]=o[i];return p}function P(t,e,n,r){var i=[],a=[];for(var o in t)t.hasOwnProperty(o)&&(a.push(o),i.push(t[o]));e-=2*r,n-=2*r;var s=A(i),u=s.xRange,c=s.yRange;if(u.max==u.min||c.max==c.min)return console.log("not scaling solution: zero size detected"),t;for(var l=e/(u.max-u.min),h=n/(c.max-c.min),f=Math.min(h,l),p=(e-(u.max-u.min)*f)/2,d=(n-(c.max-c.min)*f)/2,g={},y=0;y<i.length;++y){var v=i[y];g[a[y]]={radius:f*v.radius,x:r+p+(v.x-u.min)*f,y:r+d+(v.y-c.min)*f}}return g}function k(t,n){return function(){for(var r,i=e.select(this),a=i.datum(),o=t[a.sets[0]].radius||50,s=n(a)||"",u=s.split(/\s+/).reverse(),c=(s.length+u.length)/3,l=u.pop(),h=[l],f=0,p=i.text(null).append("tspan").text(l);;){if(!(l=u.pop()))break;h.push(l),r=h.join(" "),p.text(r),r.length>c&&p.node().getComputedTextLength()>o&&(h.pop(),p.text(h.join(" ")),h=[l],p=i.append("tspan").text(l),f++)}var d=.35-1.1*f/2,g=i.attr("x"),y=i.attr("y");i.selectAll("tspan").attr("x",g).attr("y",y).attr("dy",function(t,e){return d+1.1*e+"em"})}}function T(t,e,n){var r,i,o=e[0].radius-a(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-a(e[r],t))<=o&&(o=i);for(r=0;r<n.length;++r)(i=a(n[r],t)-n[r].radius)<=o&&(o=i);return o}function O(t,e){var n,i=[];for(n=0;n<t.length;++n){var o=t[n];i.push({x:o.x,y:o.y}),i.push({x:o.x+o.radius/2,y:o.y}),i.push({x:o.x-o.radius/2,y:o.y}),i.push({x:o.x,y:o.y+o.radius/2}),i.push({x:o.x,y:o.y-o.radius/2})}var s=i[0],c=T(i[0],t,e);for(n=1;n<i.length;++n){var l=T(i[n],t,e);l>=c&&(s=i[n],c=l)}var h=g(function(n){return-1*T({x:n[0],y:n[1]},t,e)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,f={x:h[0],y:h[1]},p=!0;for(n=0;n<t.length;++n)if(a(f,t[n])>t[n].radius){p=!1;break}for(n=0;n<e.length;++n)if(a(f,e[n])<e[n].radius){p=!1;break}if(!p)if(1==t.length)f={x:t[0].x,y:t[0].y};else{var d={};r(t,d),f=0===d.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==d.arcs.length?{x:d.arcs[0].circle.x,y:d.arcs[0].circle.y}:e.length?O(t,[]):u(d.arcs.map(function(t){return t.p1}))}return f}function I(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],s=i+1;s<n.length;++s){var u=t[n[s]],c=a(o,u);c+u.radius<=o.radius+1e-10?e[n[s]].push(n[i]):c+o.radius<=u.radius+1e-10&&e[n[i]].push(n[s])}return e}function E(t,e){for(var n={},r=I(t),i=0;i<e.length;++i){for(var a=e[i].sets,o={},s={},u=0;u<a.length;++u){o[a[u]]=!0;for(var c=r[a[u]],l=0;l<c.length;++l)s[c[l]]=!0}var h=[],f=[];for(var p in t)p in o?h.push(t[p]):p in s||f.push(t[p]);var d=O(h,f);n[a]=d,d.disjoint&&e[i].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return n}function L(t,e,n){var r=[];return r.push("\nM",t,e),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}function D(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function j(t){var e={};r(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return L(i.x,i.y,i.radius)}for(var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var s=n[o],u=s.circle.radius,c=s.width>u;a.push("\nA",u,u,0,c?1:0,1,s.p1.x,s.p1.y)}return a.join(" ")}var F=1e-10,R=1e-10;t.intersectionArea=r,t.circleCircleIntersection=s,t.circleOverlap=o,t.circleArea=i,t.distance=a,t.venn=m,t.greedyLayout=w,t.scaleSolution=P,t.normalizeSolution=C,t.bestInitialLayout=b,t.lossFunction=_,t.disjointCluster=M,t.distanceFromIntersectArea=x,t.VennDiagram=function(){function t(t){function f(t){return t.sets in w?w[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}var p=t.datum(),d={};p.forEach(function(t){0==t.size&&1==t.sets.length&&(d[t.sets[0]]=1)});var m={},x={};if((p=p.filter(function(t){return!t.sets.some(function(t){return t in d})})).length>0){var b=y(p,{lossFunction:v});s&&(b=C(b,o,h)),m=P(b,n,r,i),x=E(m,p)}var w={};p.forEach(function(t){t.label&&(w[t.sets]=t.label)}),t.selectAll("svg").data([m]).enter().append("svg");var _=t.select("svg").attr("width",n).attr("height",r),S={},M=!1;_.selectAll(".venn-area path").each(function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(M=!0,S[t.sets[0]]=D(n))});var A=function(t){return function(e){return j(t.sets.map(function(t){var i=S[t],a=m[t];return i||(i={x:n/2,y:r/2,radius:1}),a||(a={x:n/2,y:r/2,radius:1}),{x:i.x*(1-e)+a.x*e,y:i.y*(1-e)+a.y*e,radius:i.radius*(1-e)+a.radius*e}}))}},T=_.selectAll(".venn-area").data(p,function(t){return t.sets}),O=T.enter().append("g").attr("class",function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")}).attr("data-venn-sets",function(t){return t.sets.join("_")}),I=O.append("path"),L=O.append("text").attr("class","label").text(function(t){return f(t)}).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",r/2);c&&(I.style("fill-opacity","0").filter(function(t){return 1==t.sets.length}).style("fill",function(t){return g(t.sets)}).style("fill-opacity",".25"),L.style("fill",function(t){return 1==t.sets.length?g(t.sets):"#444"}));var F=t;M?(F=t.transition("venn").duration(a)).selectAll("path").attrTween("d",A):F.selectAll("path").attr("d",function(t){return j(t.sets.map(function(t){return m[t]}))});var R=F.selectAll("text").filter(function(t){return t.sets in x}).text(function(t){return f(t)}).attr("x",function(t){return Math.floor(x[t.sets].x)}).attr("y",function(t){return Math.floor(x[t.sets].y)});u&&(M?"on"in R?R.on("end",k(m,f)):R.each("end",k(m,f)):R.each(k(m,f)));var B=T.exit().transition("venn").duration(a).remove();B.selectAll("path").attrTween("d",A);var N=B.selectAll("text").attr("x",n/2).attr("y",r/2);return null!==l&&(L.style("font-size","0px"),R.style("font-size",l),N.style("font-size","0px")),{circles:m,textCentres:x,nodes:T,enter:O,update:F,exit:B}}var n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,u=!0,c=!0,l=null,h=null,f={},p=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],d=0,g=function(t){if(t in f)return f[t];var e=f[t]=p[d];return(d+=1)>=p.length&&(d=0),e},y=m,v=_;return t.wrap=function(e){return arguments.length?(u=e,t):u},t.width=function(e){return arguments.length?(n=e,t):n},t.height=function(e){return arguments.length?(r=e,t):r},t.padding=function(e){return arguments.length?(i=e,t):i},t.colours=function(e){return arguments.length?(g=e,t):g},t.fontSize=function(e){return arguments.length?(l=e,t):l},t.duration=function(e){return arguments.length?(a=e,t):a},t.layoutFunction=function(e){return arguments.length?(y=e,t):y},t.normalize=function(e){return arguments.length?(s=e,t):s},t.styled=function(e){return arguments.length?(c=e,t):c},t.orientation=function(e){return arguments.length?(o=e,t):o},t.orientationOrder=function(e){return arguments.length?(h=e,t):h},t.lossFunction=function(e){return arguments.length?(v=e,t):v},t},t.wrapText=k,t.computeTextCentres=E,t.computeTextCentre=O,t.sortAreas=function(t,e){function n(t){for(var e=0;e<t.length;++e)if(!(t[e]in i))return!1;return!0}for(var r=I(t.selectAll("svg").datum()),i={},a=0;a<e.sets.length;++a){var o=e.sets[a];for(var s in r)for(var u=r[s],c=0;c<u.length;++c)if(u[c]==o){i[s]=!0;break}}t.selectAll("g").sort(function(t,r){return t.sets.length!=r.sets.length?t.sets.length-r.sets.length:t==e?n(r.sets)?-1:1:r==e?n(t.sets)?1:-1:r.size-t.size})},t.circlePath=L,t.circleFromPath=D,t.intersectionAreaPath=j,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";var r=n(313),i=n(339);e.a=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))}},function(t,e,n){"use strict";var r=n(63),i=n(330);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u,c=e[o],l=c.length,h=a[o]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u);return new r.a(a,this._parents)}},function(t,e,n){"use strict";var r=n(63),i=n(340);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=[],o=[],s=0;s<n;++s)for(var u,c=e[s],l=c.length,h=0;h<l;++h)(u=c[h])&&(a.push(t.call(u,u.__data__,h,c)),o.push(u));return new r.a(a,o)}},function(t,e,n){"use strict";var r=n(63),i=n(341);e.a=function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u=e[o],c=u.length,l=a[o]=[],h=0;h<c;++h)(s=u[h])&&t.call(s,s.__data__,h,u)&&l.push(s);return new r.a(a,this._parents)}},function(t,e,n){"use strict";var r=n(63),i=n(342),a=n(386),o="$";e.a=function(t,e){if(!t)return v=new Array(this.size()),p=-1,this.each(function(t){v[++p]=t}),v;var n=e?function(t,e,n,r,a,s,u){var c,l,h,f={},p=e.length,d=s.length,g=new Array(p);for(c=0;c<p;++c)(l=e[c])&&(g[c]=h=o+u.call(l,l.__data__,c,e),h in f?a[c]=l:f[h]=l);for(c=0;c<d;++c)(l=f[h=o+u.call(t,s[c],c,s)])?(r[c]=l,l.__data__=s[c],f[h]=null):n[c]=new i.a(t,s[c]);for(c=0;c<p;++c)(l=e[c])&&f[g[c]]===l&&(a[c]=l)}:function(t,e,n,r,a,o){for(var s,u=0,c=e.length,l=o.length;u<l;++u)(s=e[u])?(s.__data__=o[u],r[u]=s):n[u]=new i.a(t,o[u]);for(;u<c;++u)(s=e[u])&&(a[u]=s)},s=this._parents,u=this._groups;"function"!=typeof t&&(t=Object(a.a)(t));for(var c=u.length,l=new Array(c),h=new Array(c),f=new Array(c),p=0;p<c;++p){var d=s[p],g=u[p],y=g.length,v=t.call(d,d&&d.__data__,p,s),m=v.length,x=h[p]=new Array(m),b=l[p]=new Array(m);n(d,g,x,b,f[p]=new Array(y),v,e);for(var w,_,S=0,M=0;S<m;++S)if(w=x[S]){for(S>=M&&(M=S+1);!(_=b[M])&&++M<m;);w._next=_||null}}return l=new r.a(l,s),l._enter=h,l._exit=f,l}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(343),i=n(63);e.a=function(){return new i.a(this._exit||this._groups.map(r.a),this._parents)}},function(t,e,n){"use strict";var r=n(63);e.a=function(t){for(var e=this._groups,n=t._groups,i=e.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c,l=e[u],h=n[u],f=l.length,p=s[u]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;u<i;++u)s[u]=e[u];return new r.a(s,this._parents)}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this}},function(t,e,n){"use strict";function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var i=n(63);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=r);for(var n=this._groups,a=n.length,o=new Array(a),s=0;s<a;++s){for(var u,c=n[s],l=c.length,h=o[s]=new Array(l),f=0;f<l;++f)(u=c[f])&&(h[f]=u);h.sort(e)}return new i.a(o,this._parents).order()}},function(t,e,n){"use strict";e.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";e.a=function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.each(function(){++t}),t}},function(t,e,n){"use strict";e.a=function(){return!this.node()}},function(t,e,n){"use strict";e.a=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this}},function(t,e,n){"use strict";var r=n(328);e.a=function(t,e){var n=Object(r.a)(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))}},function(t,e,n){"use strict";e.a=function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new a(t)}function a(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function o(t,e){for(var n=i(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function s(t,e){for(var n=i(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}a.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var a=i(this.node()),u=-1,c=n.length;++u<c;)if(!a.contains(n[u]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?o:s)(this,t)}}:e?function(t){return function(){o(this,t)}}:function(t){return function(){s(this,t)}})(n,e))}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.each(null==t?function(){this.textContent=""}:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.each(null==t?function(){this.innerHTML=""}:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(313);e.a=function(t){var e="function"==typeof t?t:Object(r.a)(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}},function(t,e,n){"use strict";var r=n(313),i=n(330);e.a=function(t,e){var n="function"==typeof t?t:Object(r.a)(t),a=null==e?function(){return null}:"function"==typeof e?e:Object(i.a)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),a.apply(this,arguments)||null)})}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";e.a=function(t){return this.select(t?function(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}:function(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)})}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";function r(t,e,n){var r=Object(i.a)(t),a=r.CustomEvent;"function"==typeof a?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}var i=n(331);e.a=function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return r(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return r(this,t,e)}})(t,e))}},function(t,e,n){"use strict";function r(){return new i}function i(){this._="@"+(++a).toString(36)}e.a=r;var a=0;i.prototype=r.prototype={constructor:i,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(333),i=n(314);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(63);e.a=function(t){return"string"==typeof t?new r.a([document.querySelectorAll(t)],[document.documentElement]):new r.a([null==t?[]:t],r.c)}},function(t,e,n){"use strict";var r=n(333),i=n(314);e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.a)().changedTouches);for(var a,o=0,s=e?e.length:0;o<s;++o)if((a=e[o]).identifier===n)return Object(i.a)(t,a);return null}},function(t,e,n){"use strict";var r=n(333),i=n(314);e.a=function(t,e){null==e&&(e=Object(r.a)().touches);for(var n=0,a=e?e.length:0,o=new Array(a);n<a;++n)o[n]=Object(i.a)(t,e[n]);return o}},function(t,e,n){"use strict";var r=n(62),i=n(416),a=n(419);r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=a.a},function(t,e,n){"use strict";var r=n(346);e.a=function(t){return this.each(function(){Object(r.a)(this,t)})}},function(t,e,n){"use strict";var r=n(418);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function a(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=o,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var o={value:function(){}};i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r=this._,i=function(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}(t+"",r),o=-1,s=i.length;{if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=a(r[n],t.name,e);else if(null==e)for(n in r)r[n]=a(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n}},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}},e.a=r},function(t,e,n){"use strict";function r(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return u.time=Object(s.now)(),u;return n}var i=n(133),a=n(64),o=n(134),s=n(106),u={time:null,delay:0,duration:250,ease:o.easeCubicInOut};e.a=function(t){var e,n;t instanceof i.a?(e=t._id,t=t._name):(e=Object(i.c)(),(n=u).time=Object(s.now)(),t=null==t?null:t+"");for(var o=this._groups,c=o.length,l=0;l<c;++l)for(var h,f=o[l],p=f.length,d=0;d<p;++d)(h=f[d])&&Object(a.e)(h,t,e,d,f,n||r(h,e));return new i.a(o,this._parents,t,e)}},function(t,e,n){"use strict";var r=n(68),i=n(62),a=n(315),o=n(347);e.a=function(t,e){var n=Object(i.namespace)(t),s="transform"===n?r.interpolateTransformSvg:o.a;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,a;return function(){var o,s=n(this);if(null!=s)return(o=this.getAttributeNS(t.space,t.local))===s?null:o===r&&s===i?a:a=e(r=o,i=s);this.removeAttributeNS(t.space,t.local)}}:function(t,e,n){var r,i,a;return function(){var o,s=n(this);if(null!=s)return(o=this.getAttribute(t))===s?null:o===r&&s===i?a:a=e(r=o,i=s);this.removeAttribute(t)}})(n,s,Object(a.b)(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n?null:a===r?i:i=e(r=a,n)}}:function(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n?null:a===r?i:i=e(r=a,n)}})(n,s,e+""))}},function(t,e,n){"use strict";var r=n(62);e.a=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Object(r.namespace)(t);return this.tween(n,(i.local?function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttributeNS(t.space,t.local,r(e))}}return n._value=e,n}:function(t,e){function n(){var n=this,r=e.apply(n,arguments);return r&&function(e){n.setAttribute(t,r(e))}}return n._value=e,n})(i,e))}},function(t,e,n){"use strict";var r=n(64);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Object(r.g)(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Object(r.g)(this,t).delay=e}})(e,t)):Object(r.f)(this.node(),e).delay}},function(t,e,n){"use strict";var r=n(64);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Object(r.h)(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Object(r.h)(this,t).duration=e}})(e,t)):Object(r.f)(this.node(),e).duration}},function(t,e,n){"use strict";var r=n(64);e.a=function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Object(r.h)(this,t).ease=e}}(e,t)):Object(r.f)(this.node(),e).ease}},function(t,e,n){"use strict";var r=n(62),i=n(133);e.a=function(t){"function"!=typeof t&&(t=Object(r.matcher)(t));for(var e=this._groups,n=e.length,a=new Array(n),o=0;o<n;++o)for(var s,u=e[o],c=u.length,l=a[o]=[],h=0;h<c;++h)(s=u[h])&&t.call(s,s.__data__,h,u)&&l.push(s);return new i.a(a,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(133);e.a=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c,l=e[u],h=n[u],f=l.length,p=s[u]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;u<i;++u)s[u]=e[u];return new r.a(s,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var r=n(64);e.a=function(t,e){var n=this._id;return arguments.length<2?Object(r.f)(this.node(),n).on.on(t):this.each(function(t,e,n){var i,a,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?r.g:r.h;return function(){var r=o(this,t),s=r.on;s!==i&&(a=(i=s).copy()).on(e,n),r.on=a}}(n,t,e))}},function(t,e,n){"use strict";e.a=function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))}},function(t,e,n){"use strict";var r=n(62),i=n(133),a=n(64);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selector)(t));for(var o=this._groups,s=o.length,u=new Array(s),c=0;c<s;++c)for(var l,h,f=o[c],p=f.length,d=u[c]=new Array(p),g=0;g<p;++g)(l=f[g])&&(h=t.call(l,l.__data__,g,f))&&("__data__"in l&&(h.__data__=l.__data__),d[g]=h,Object(a.e)(d[g],e,n,g,d,Object(a.f)(l,n)));return new i.a(u,this._parents,e,n)}},function(t,e,n){"use strict";var r=n(62),i=n(133),a=n(64);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selectorAll)(t));for(var o=this._groups,s=o.length,u=[],c=[],l=0;l<s;++l)for(var h,f=o[l],p=f.length,d=0;d<p;++d)if(h=f[d]){for(var g,y=t.call(h,h.__data__,d,f),v=Object(a.f)(h,n),m=0,x=y.length;m<x;++m)(g=y[m])&&Object(a.e)(g,e,n,m,y,v);u.push(y),c.push(h)}return new i.a(u,c,e,n)}},function(t,e,n){"use strict";var r=n(62).selection.prototype.constructor;e.a=function(){return new r(this._groups,this._parents)}},function(t,e,n){"use strict";var r=n(68),i=n(62),a=n(315),o=n(347);e.a=function(t,e,n){var s="transform"==(t+="")?r.interpolateTransformCss:o.a;return null==e?this.styleTween(t,function(t,e){var n,r,a;return function(){var o=Object(i.style)(this,t),s=(this.style.removeProperty(t),Object(i.style)(this,t));return o===s?null:o===n&&s===r?a:a=e(n=o,r=s)}}(t,s)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,a,o;return function(){var s=Object(i.style)(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Object(i.style)(this,t)),s===u?null:s===r&&u===a?o:o=e(r=s,a=u)}}(t,s,Object(a.b)(this,"style."+t,e)):function(t,e,n){var r,a;return function(){var o=Object(i.style)(this,t);return o===n?null:o===r?a:a=e(r=o,n)}}(t,s,e+""),n)}},function(t,e,n){"use strict";e.a=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))}},function(t,e,n){"use strict";var r=n(315);e.a=function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Object(r.b)(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))}},function(t,e,n){"use strict";var r=n(133),i=n(64);e.a=function(){for(var t=this._name,e=this._id,n=Object(r.c)(),a=this._groups,o=a.length,s=0;s<o;++s)for(var u,c=a[s],l=c.length,h=0;h<l;++h)if(u=c[h]){var f=Object(i.f)(u,e);Object(i.e)(u,t,n,h,c,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new r.a(a,this._parents,t,n)}},function(t,e,n){"use strict";var r=n(133),i=n(64),a=[null];e.a=function(t,e){var n,o,s=t.__transition;if(s){e=null==e?null:e+"";for(o in s)if((n=s[o]).state>i.c&&n.name===e)return new r.a([[t]],a,e,+o)}return null}},function(t,e,n){function r(t){var e=o.shape.venn;return i.mix({},e,{stroke:t.color,fill:t.color,fillOpacity:t.opacity},t.style)}var i=n(0),a=n(18),o=n(2),s=i.PathUtil,u=a.registerFactory("venn",{defaultShapeType:"venn",getDefaultPoints:function(t){var e=[];return i.each(t.x,function(n,r){var i=t.y[r];e.push({x:n,y:i})}),e},getActiveCfg:function(t,e){var n=e.lineWidth||1;if("hollow"===t)return{lineWidth:n+1};return{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});a.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin.path,a=r(t),o=s.parsePathString(n);return e.addShape("path",{attrs:i.mix(a,{path:o})})},getMarkerCfg:function(t){return i.mix({symbol:"circle",radius:4},r(t))}}),a.registerShape("venn","hollow",{draw:function(t,e){var n=t.origin._origin.path,r=function(t){var e=o.shape.hollowVenn;return i.mix({},e,{stroke:t.color,strokeOpacity:t.opacity},t.style)}(t),a=s.parsePathString(n);return e.addShape("path",{attrs:i.mix(r,{path:a})})},getMarkerCfg:function(t){return i.mix({symbol:"circle",radius:4},r(t))}}),t.exports=u},function(t,e,n){var r=n(0),i=n(140),a={};a.Rect=n(348),a.List=n(349),a.Circle=n(439),a.Tree=n(440),a.Mirror=n(441),a.Matrix=n(442),i.prototype.facet=function(t,e){var n=a[r.upperFirst(t)];if(!n)throw new Error("Not support such type of facets as: "+t);var i=this.get("facets");i&&i.destroy(),e.chart=this;var o=new n(e);this.set("facets",o)},t.exports=a},function(t,e,n){function r(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="circle",e},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,i=-1*Math.PI/2+n*e,a=.5/(1+1/Math.sin(n/2)),o=r({x:.5,y:.5},.5-a,i),s=5*Math.PI/4,u=1*Math.PI/4;return{start:r(o,a,s),end:r(o,a,u)}},e.prototype.generateFacets=function(t){var e=this,n=e.fields[0];if(!n)throw"Please specify for the field for facet!";var r=e.getFieldValues(n,t),i=r.length,a=[];return r.forEach(function(o,s){var u=[{field:n,value:o,values:r}],c=e.getFilter(u),l=t.filter(c),h={type:e.type,colValue:o,colField:n,colIndex:s,cols:i,rows:1,rowIndex:0,data:l,region:e.getRegion(i,s)};a.push(h)}),a},e}(n(316));t.exports=i},function(t,e,n){var r=n(316),i=n(0).assign,a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="tree",e.line={lineWidth:1,stroke:"#ddd"},e.lineSmooth=!1,e},e.prototype.generateFacets=function(t){if(!this.fields.length)throw"Please specify for the fields for facet!";var e=[],n=this.getRootFacet(t);return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.getRootFacet=function(t){return{type:this.type,rows:this.getRows(),rowIndex:0,colIndex:0,colValue:this.rootTitle,data:t}},e.prototype.getRows=function(){return this.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=r.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=r.getFieldValues(o,t);return s.forEach(function(i,u){var c=[{field:o,value:i,values:s}],l=r.getFilter(c),h=t.filter(l);if(h.length){var f={type:r.type,colValue:i,colField:o,colIndex:u,rows:r.getRows(),rowIndex:e,data:h,children:r.getChildFacets(h,e+1,n)};a.push(f),n.push(f)}}),a}},e.prototype.setRegion=function(t){var e=this;e.forceColIndex(t),t.forEach(function(t){t.region=e.getRegion(t.rows,t.cols,t.colIndex,t.rowIndex)})},e.prototype.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach(function(t){e.isLeaf(t)&&(n.push(t),t.colIndex=r,r++)}),n.forEach(function(t){t.cols=n.length});for(var i=e.fields.length-1;i>=0;i--)for(var a=e.getFacetsByLevel(t,i),o=0;o<a.length;o++){var s=a[o];e.isLeaf(s)||(s.originColIndex=s.colIndex,s.colIndex=e.getRegionIndex(s.children),s.cols=n.length)}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach(function(t){t.rowIndex===e&&n.push(t)}),n},e.prototype.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].colIndex-e.colIndex)/2+e.colIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].label=null,e[t].title=null)},e.prototype.setYAxis=function(t,e,n){0!==n.originColIndex&&0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e.prototype.onPaint=function(){t.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},e.prototype.drawLines=function(t,e){var n=this,r=e.addGroup();t.forEach(function(t){if(!n.isLeaf(t)){var e=t.children;n._addFacetLines(t,e,r)}})},e.prototype._addFacetLines=function(t,e,n){var r=this,i=t.view.getViewRegion(),a={x:i.start.x+(i.end.x-i.start.x)/2,y:i.start.y};e.forEach(function(t){var e=t.view.getViewRegion(),i={x:e.start.x+(e.end.x-e.start.x)/2,y:e.end.y},o={x:a.x,y:a.y+(i.y-a.y)/2},s={x:i.x,y:o.y};r._drawLine([a,o,s,i],n)})},e.prototype._getPath=function(t){var e=[];return this.lineSmooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e},e.prototype._drawLine=function(t,e){var n=this._getPath(t),r=this.line;e.addShape("path",{attrs:i({path:n},r)})},e}(r);t.exports=a},function(t,e,n){var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="mirror",this.transpose=!1,e},e.prototype.init=function(){this.transpose?(this.cols=2,this.rows=1):(this.cols=1,this.rows=2),t.prototype.init.call(this)},e.prototype.beforeProcessView=function(t,e){this.transpose?e.colIndex%2==0?t.coord().transpose().scale(-1,1):t.coord().transpose():e.rowIndex%2!=0&&t.coord().scale(1,-1)},e.prototype.renderTitle=function(t,e){this.transpose?this.drawColTitle(t,e):this.drawRowTitle(t,e)},e.prototype.setXAxis=function(t,e,n){1!==n.colIndex&&1!==n.rowIndex||(e[t].label=null,e[t].title=null)},e.prototype.setYAxis=function(){},e}(n(349));t.exports=r},function(t,e,n){var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="matrix",e.showTitle=!1,e},e.prototype.generateFacets=function(t){for(var e=this.fields,n=e.length,r=n,i=[],a=0;a<r;a++)for(var o=e[a],s=0;s<n;s++){var u=e[s],c={type:this.type,colValue:o,rowValue:u,colField:o,rowField:u,colIndex:a,rowIndex:s,cols:r,rows:n,data:t,region:this.getRegion(n,r,a,s)};i.push(c)}return i},e.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].title=null,e[t].label=null)},e.prototype.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(n(348));t.exports=r},function(t,e,n){var r=n(444),i=n(135),a=n(141);r.helper.bindInteraction(i,a),i.registerInteraction("brush",r.Brush),i.registerInteraction("Brush",r.Brush),i.registerInteraction("drag",r.Drag),i.registerInteraction("Drag",r.Drag),i.registerInteraction("zoom",r.Zoom),i.registerInteraction("Zoom",r.Zoom),i.registerInteraction("shape-select",r.ShapeSelect),i.registerInteraction("ShapeSelect",r.ShapeSelect),t.exports=r},function(t,e,n){var r={Base:n(308),Brush:n(465),Drag:n(466),ShapeSelect:n(467),Zoom:n(468),helper:{bindInteraction:n(469)}};t.exports=r},function(t,e,n){var r=n(8),i=n(352),a=n(353),o=n(451),s=n(452),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},r.extend(u,a),r.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n=this.getPointByClient(e.clientX,e.clientY),r=this.getShape(n.x,n.y,e),i=void 0;if("mousemove"===t){var a=this.get("preShape");if(a&&a!==r){var o=this._getEventObj("mouseleave",e,n,a);(i=this.getEmitter(a,e))&&i.emit("mouseleave",o)}if(r){var s=this._getEventObj("mousemove",e,n,r);if((i=this.getEmitter(r,e))&&i.emit("mousemove",s),a!==r){var u=this._getEventObj("mouseenter",e,n,r);i&&i.emit("mouseenter",u,e)}}else{var c=this._getEventObj("mousemove",e,n,this);this.emit("mousemove",c)}this.set("preShape",r)}else{var l=this._getEventObj(t,e,n,r||this);(i=this.getEmitter(r,e))&&i!==this&&i.emit(t,l),this.emit(t,l)}var h=this.get("el");r&&!r.get("destroyed")&&(h.style.cursor=r.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");r.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseover","mouseup","click","dblclick"],function(n){e.addEventListener(n,function(e){t._triggerEvent(n,e)},!1)}),e.addEventListener("touchstart",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio());var t=s[this.get("renderer")||"canvas"];this._cfg.renderer=t,this._cfg.canvas=this;var e=new o(this);this._cfg.timeline=e},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=r.right-r.left,a=r.bottom-r.top;return{clientX:t/(n.width/i)+r.left,clientY:e/(n.height/a)+r.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){var r=n(8);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(r.assign(this.getDefaultAttrs(),t)),this._attrs.id||(this._attrs.id=r.uniqueId("g_")),this},getDefaultAttrs:function(){return{}},attr:function(t,e){if(0===arguments.length)return this._attrs;if(r.isObject(t)){for(var n in t)this._setAttr(n,t[n]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return 2===arguments.length?(this._setAttr(t,e),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function i(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){r(e)||(i(e)?(t[0]*=e[0],t[4]*=e[4]):s.multiply(t,t,e))}var o=n(8),s=n(42).mat3,u=n(42).vec3;t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return s.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return s.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return s.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;return this.translate(t-n,e-r),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",s.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n=void 0;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),u.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var r=[1,0,0,0,1,0,0,0,1];return o.each(n,function(t){s.multiply(r,t.attr("matrix"),r)}),r},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){a(t,e.getTotalMatrix())}a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(i(e))t[0]/=e[0],t[1]/=e[4];else{var n=s.invert([],e);n&&u.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");r(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var r=n(8),i=n(42),a={delay:"delay",rotate:"rotate",id:"id"};t.exports={animate:function(t,e,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.setSilent("timeline",u));var c=this.get("animators")||[];u._timer||u.initTimer(),r.isNumber(o)&&(s=o,o=null),r.isFunction(n)?(o=n,n="easeLinear"):n=n||"easeLinear";var l=function(t,e){var n={matrix:null,attrs:{}},r=e._attrs;for(var o in t)"transform"===o?n.matrix=i.transform(e.getMatrix(),t[o]):"rotate"===o?n.matrix=i.transform(e.getMatrix(),[["r",t[o]]]):"matrix"===o?n.matrix=t[o]:a[o]||r[o]===t[o]||(n.attrs[o]=t[o]);return n}(t,this),h={fromAttrs:function(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}(l,this),toAttrs:l.attrs,fromMatrix:r.clone(this.getMatrix()),toMatrix:l.matrix,duration:e,easing:n,callback:o,delay:s,startTime:u.getTime(),id:r.uniqueId()};c.length>0?c=function(t,e){var n=Object.prototype.hasOwnProperty;return r.each(e.toAttrs,function(e,i){r.each(t,function(t){n.call(t.toAttrs,i)&&(delete t.toAttrs[i],delete t.fromAttrs[i])})}),t}(c,h):u.addAnimator(this),c.push(h),this.setSilent("animators",c),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");r.each(e,function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return r.each(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null}),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var r=n(29);r.Arc=n(357),r.Circle=n(358),r.Dom=n(359),r.Ellipse=n(360),r.Fan=n(361),r.Image=n(362),r.Line=n(363),r.Marker=n(337),r.Path=n(364),r.Polygon=n(365),r.Polyline=n(366),r.Rect=n(367),r.Text=n(368),t.exports=r},function(t,e,n){function r(t,e,n){return n.createPath(l),l.isPointInPath(t,e)}var i=n(8),a=n(334),o=n(42).mat3,s=n(42).vec2,u=n(42).vec3,c={arc:n(318),ellipse:n(356),line:n(317)},l=i.createDom('<canvas width="500" height="500"></canvas>').getContext("2d"),h=function(t,e){function n(){var n=i._attrs,r=n.x,o=n.y,s=n.width,u=n.height,c=n.radius,l=i.getHitLineWidth();if(0===c){var h=l/2;return a.line(r-h,o,r+s+h,o,l,t,e)||a.line(r+s,o-h,r+s,o+u+h,l,t,e)||a.line(r+s+h,o+u,r-h,o+u,l,t,e)||a.line(r,o+u+h,r,o-h,l,t,e)}return a.line(r+c,o,r+s-c,o,l,t,e)||a.line(r+s,o+c,r+s,o+u-c,l,t,e)||a.line(r+s-c,o+u,r+c,o+u,l,t,e)||a.line(r,o+u-c,r,o+c,l,t,e)||a.arcline(r+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||a.arcline(r+s-c,o+u-c,c,0,.5*Math.PI,!1,l,t,e)||a.arcline(r+c,o+u-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||a.arcline(r+c,o+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},f={arc:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(r,i,o,s,u,c,l,t,e)},circle:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?a.circle(r,i,o,t,e)||a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e):u?a.circle(r,i,o,t,e):!!c&&a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e)},dom:h,ellipse:function(t,e){var n=this._attrs,r=this.hasFill(),i=this.hasStroke(),s=n.x,c=n.y,l=n.rx,h=n.ry,f=this.getHitLineWidth(),p=l>h?l:h,d=l>h?1:l/h,g=l>h?h/l:1,y=[t,e,1],v=[1,0,0,0,1,0,0,0,1];o.scale(v,v,[d,g]),o.translate(v,v,[s,c]);var m=o.invert([],v);return u.transformMat3(y,y,m),r&&i?a.circle(0,0,p,y[0],y[1])||a.arcline(0,0,p,0,2*Math.PI,!1,f,y[0],y[1]):r?a.circle(0,0,p,y[0],y[1]):!!i&&a.arcline(0,0,p,0,2*Math.PI,!1,f,y[0],y[1])},fan:function(t,e){function n(){var t=c.arc.nearAngle(b,y,v,m);if(i.isNumberEqual(b,t)){var e=s.squaredLength(x);if(d*d<=e&&e<=g*g)return!0}return!1}function r(){var n=o.getHitLineWidth(),r={x:Math.cos(y)*d+f,y:Math.sin(y)*d+p},i={x:Math.cos(y)*g+f,y:Math.sin(y)*g+p},s={x:Math.cos(v)*d+f,y:Math.sin(v)*d+p},u={x:Math.cos(v)*g+f,y:Math.sin(v)*g+p};return!!(a.line(r.x,r.y,i.x,i.y,n,t,e)||a.line(s.x,s.y,u.x,u.y,n,t,e)||a.arcline(f,p,d,y,v,m,n,t,e)||a.arcline(f,p,g,y,v,m,n,t,e))}var o=this,u=o.hasFill(),l=o.hasStroke(),h=o._attrs,f=h.x,p=h.y,d=h.rs,g=h.re,y=h.startAngle,v=h.endAngle,m=h.clockwise,x=[t-f,e-p],b=s.angleTo([1,0],x);return u&&l?n()||r():u?n():!!l&&r()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var r=n.x,i=n.y,o=n.width,s=n.height;return a.rect(r,i,o,s,t,e)},line:function(t,e){var n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(r,i,o,s,u,t,e)},path:function(t,e){function n(){if(!i.isEmpty(o)){for(var n=a.getHitLineWidth(),r=0,s=o.length;r<s;r++)if(o[r].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?r(t,e,a)||n():s?r(t,e,a):!!u&&n()},marker:function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(r,i,o+s/2,t,e)},polygon:function(t,e){function n(){var n=i._attrs.points;if(n.length<2)return!1;var r=i.getHitLineWidth(),o=n.slice(0);return n.length>=3&&o.push(n[0]),a.polyline(o,r,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var i=n.lineWidth;return a.polyline(r,i,t,e)}return!1},rect:h,text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return a.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=f[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function r(t,e,n){var r=e.startTime;if(n<r+e.delay||e.isPaused)return!1;var o=void 0,u=!1,h=e.duration,f=e.easing;return n=n-r-e.delay,e.toAttrs.repeat?(o=n%h/h,o=s[f](o)):(o=n/h)<1?o=s[f](o):(o=1,e.callback&&e.callback(),u=!0),function(t,e,n){var r={},o=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var h=void 0;for(var f in o)if(!i.isEqual(s[f],o[f]))if("path"===f){var p=a.parsePathString(o[f]),d=a.parsePathString(s[f]);r[f]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],x=0;x<y.length;x++)i.isNumber(y[x])&&v?(h=c(v[x],y[x]),m.push(h(n))):m.push(y[x]);r[f].push(m)}}else h=c(s[f],o[f]),r[f]=h(n);if(u){var b=l(e.fromMatrix,u)(n);t.setMatrix(b)}t.attr(r)}}(t,e,o),u}var i=n(8),a=n(338),o=n(106),s=n(134),u=n(68),c=u.interpolate,l=u.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};i.augment(h,{initTimer:function(){var t=this,e=this,n=!1,i=void 0,a=void 0,s=void 0;e._timer=o.timer(function(o){if(e._current=o,t._animators.length>0){for(var u=t._animators.length-1;u>=0;u--)if((i=t._animators[u]).get("destroyed"))e.removeAnimator(u);else{if(!i.get("pause").isPaused)for(var c=(a=i.get("animators")).length-1;c>=0;c--)s=a[c],(n=r(i,s,o))&&(a.splice(c,1),n=!1);0===a.length&&e.removeAnimator(u)}t.canvas.draw()}})},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(t){t.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){t.exports={canvas:n(453),svg:n(456)}},function(t,e,n){t.exports={painter:n(454)}},function(t,e,n){var r=n(8),i=n(455),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return null;var n=r.uniqueId("canvas_"),i=r.createDom('<canvas id="'+n+'"></canvas>');return e.appendChild(i),this.type="canvas",this.canvas=i,this.context=i.getContext("2d"),this.toDraw=!1,this}return t.prototype.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},t.prototype.draw=function(t){function e(){n.animateHandler=r.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()}),n.beforeDraw();try{n._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},t.prototype._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var r=0;r<e.length;r++)n=e[r],e[r].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},t.prototype._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},t.prototype.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},t.prototype.restoreContext=function(){this.context.restore()},t.prototype.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){function r(t,e){var n=t.match(l);i.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}var i=n(8),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,s=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,u=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,h={};t.exports={parsePath:function(t){return t=t||[],i.isArray(t)?t:i.isString(t)?(t=t.match(a),i.each(t,function(e,n){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(i.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var a=s.exec(t),o=i.mod(i.toRadian(parseFloat(a[1])),2*Math.PI),u=a[2],c=e.getBBox(),l=void 0,h=void 0;o>=0&&o<.5*Math.PI?(l={x:c.minX,y:c.minY},h={x:c.maxX,y:c.maxY}):.5*Math.PI<=o&&o<Math.PI?(l={x:c.maxX,y:c.minY},h={x:c.minX,y:c.maxY}):Math.PI<=o&&o<1.5*Math.PI?(l={x:c.maxX,y:c.maxY},h={x:c.minX,y:c.minY}):(l={x:c.minX,y:c.maxY},h={x:c.maxX,y:c.minY});var f=Math.tan(o),p=f*f,d=(h.x-l.x+f*(h.y-l.y))/(p+1)+l.x,g=f*(h.x-l.x+f*(h.y-l.y))/(p+1)+l.y,y=n.createLinearGradient(l.x,l.y,d,g);return r(u,y),y}(t,e,n);if("r"===t[0])return function(t,e,n){var i=u.exec(t),a=parseFloat(i[1]),o=parseFloat(i[2]),s=parseFloat(i[3]),c=i[4];if(0===s){var h=c.match(l);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,y=n.createRadialGradient(f.minX+p*a,f.minY+d*o,s*g,f.minX+p/2,f.minY+d/2,g);return r(c,y),y}(t,e,n);if("p"===t[0])return function(t,e,n){function r(){i=n.createPattern(a,s),e.setSilent("pattern",i),e.setSilent("patternSource",t)}if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var i=void 0,a=void 0,o=c.exec(t),s=o[1],u=o[2];switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return a=new Image,u.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=u,a.complete?r():(a.onload=r,a.src=a.src),i}(t,e,n)}return t}},numberToColor:function(t){var e=h[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,h[t]=e}return e}}},function(t,e,n){t.exports={painter:n(457),getShape:n(464)}},function(t,e,n){var r=n(8),i=n(337),a=n(458),o={rect:"rect",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},s={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},u={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},c={left:"left",start:"left",center:"middle",right:"end",end:"end"},l=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return null;var n=r.uniqueId("canvas_"),i=r.createDom('<svg id="'+n+'"></svg>');return e.appendChild(i),this.type="svg",this.canvas=i,this.context=new a(i),this.toDraw=!1,this}return t.prototype.draw=function(t){function e(){n.animateHandler=r.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()});try{n._drawChildren(t._cfg.children)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},t.prototype._drawGroup=function(t){this._drawShape(t),this._drawChildren(t._cfg.children)},t.prototype._drawChildren=function(t){for(var e=void 0,n=0;n<t.length;n++)(e=t[n]).isGroup?this._drawGroup(e):this._drawShape(e)},t.prototype._drawShape=function(t){var e=t._attrs,n=t._cfg;n.removed||n.destroyed?n.el&&n.el.parentNode.removeChild(n.el):(!n.el&&n.parent&&(this._createDom(t),this._updateShape(t)),!1!==n.visible?(n.el.setAttribute("visibility","visible"),n.hasUpdate&&this._updateShape(t),e.clip&&e.clip._cfg.hasUpdate&&this._updateShape(e.clip)):n.el.setAttribute("visibility","hidden"))},t.prototype._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e));for(var i in e)e[i]!==n[i]&&this._setAttribute(t,i,e[i]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},t.prototype._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,u=this.context;if("marker"!==i||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("rect"===i&&"radius"===e)return o.setAttribute("rx",n),void o.setAttribute("ry",n);if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=(n=n.map(function(t){return t[0]+","+t[1]})).join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=s[e],n){var c=null;c="boolean"==typeof n?u.getDefaultArrow(a,e):u.addArrow(a,e),o.setAttribute(e,"url(#"+c+")"),t._cfg[e]=c}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),s[e]&&o.setAttribute(s[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},t.prototype._createDom=function(t){var e=o[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var i=document.createElementNS("http://www.w3.org/2000/svg",e),a=t._attrs.id||r.uniqueId(this.type+"_");return i.id=a,t._cfg.el=i,t._cfg.parent&&t._cfg.parent.get("el").appendChild(i),"text"===t.type?(i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||(n.strokeStyle="none"),n.fill||n.fillStyle||(n.fillStyle="none")),i},t.prototype._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):i.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},t.prototype._formatPath=function(t){return~(t=t.map(function(t){return t.join(" ")}).join("")).indexOf("NaN")?"":t},t.prototype._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);n.setAttribute("transform","matrix("+r.join(",")+")")},t.prototype._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",a.toDataURL())}},t.prototype._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),l=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,d=n.re,g=e(s,n.rs,a),y=e(u,n.rs,a);n.rs>0?(o.push("M "+l.x+","+l.y),o.push("L "+y.x+","+y.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+g.x+","+g.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+d+","+d+",0,"+f+","+h+","+l.x+","+l.y),n.rs>0?o.push("L "+y.x+","+y.y):o.push("Z"),i.el.setAttribute("d",o.join(" "))},t.prototype._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,r=t._cfg.el;this._setFont(t);for(var i in e)if(e[i]!==n[i]){if("text"===i){this._setText(t,e[i]);continue}if("fillStyle"===i||"strokeStyle"===i){this._setColor(t,i,e[i]);continue}if("matrix"===i){this._setTransform(t);continue}s[i]&&r.setAttribute(s[i],e[i])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},t.prototype._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",u[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",c[n.textAlign]||"left"),r&&+r<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},t.prototype._setText=function(t,e){var n=t._cfg.el;if(e)if(~e.indexOf("\n")){var i=t._attrs.x,a=e.split("\n"),o="";r.each(a,function(t){o+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"}),n.innerHTML=o}else n.innerHTML=e;else n.innerHTML=""},t.prototype._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var r=this.context.addClip(e);n.setAttribute("clip-path","url(#"+r+")")}else n.removeAttribute("clip-path")},t.prototype._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(s[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(s[e],"url(#"+o+")")}else r.setAttribute(s[e],n);else r.setAttribute(s[e],"none")},t.prototype._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor},i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")},t}();t.exports=l},function(t,e,n){var r=n(8),i=n(459),a=n(460),o=n(461),s=n(462),u=n(463),c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=document.createElementNS("http://www.w3.org/2000/svg","defs"),i=r.uniqueId("defs_");n.id=i,e.appendChild(n),this.children=[],this.defaultArrow={},this.el=n,this.canvas=e}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},t.prototype.addGradient=function(t){var e=new i(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},t.prototype.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},function(t,e,n){function r(t){var e=t.match(s);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),i.each(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var i=n(8),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=null,s=i.uniqueId("gradient_");return"l"===e.toLowerCase()[0]?function(t,e){var n=a.exec(t),o=i.mod(i.toRadian(parseFloat(n[1])),2*Math.PI),s=n[2],u=void 0,c=void 0;o>=0&&o<.5*Math.PI?(u={x:0,y:0},c={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(u={x:1,y:0},c={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(u={x:1,y:1},c={x:0,y:0}):(u={x:0,y:1},c={x:1,y:0});var l=Math.tan(o),h=l*l,f=(c.x-u.x+l*(c.y-u.y))/(h+1)+u.x,p=l*(c.x-u.x+l*(c.y-u.y))/(h+1)+u.y;e.setAttribute("x1",u.x),e.setAttribute("y1",u.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=r(s)}(e,n=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=o.exec(t),i=parseFloat(n[1]),a=parseFloat(n[2]),s=parseFloat(n[3]),u=n[4];e.setAttribute("cx",i),e.setAttribute("cy",a),e.setAttribute("r",s),e.innerHTML=r(u)}(e,n=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),n.setAttribute("id",s),this.el=n,this.id=s,this.cfg=e,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var r=n(8),i={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="shadow";var n=document.createElementNS("http://www.w3.org/2000/svg","filter");return this.el=n,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=e,this._parseShadow(e,n),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),function(t){if(i[t]!==e[t])return n=!1,!1}),n},t.prototype.update=function(t,e){var n=this.cfg;return n[i[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=a},function(t,e,n){var r=n(8),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=document.createElementNS("http://www.w3.org/2000/svg","marker"),a=r.uniqueId("marker_");i.setAttribute("id",a);var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("stroke","none"),o.setAttribute("fill",e.stroke||"#000"),i.appendChild(o),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=o,this.id=a,this.cfg=e["marker-start"===n?"startArrow":"endArrow"],this.stroke=e.stroke||"#000",!0===this.cfg?this._setDefaultPath(n,o):this._setMarker(e.lineWidth,o),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=i},function(t,e,n){var r=n(8),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="clip";var n=document.createElementNS("http://www.w3.org/2000/svg","clipPath");return this.el=n,this.id=r.uniqueId("clip_"),n.id=this.id,n.appendChild(e._cfg.el),this.cfg=e,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=i},function(t,e,n){var r=n(8),i=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(e){function n(){console.log(c.width,c.height),a.setAttribute("width",c.width),a.setAttribute("height",c.height)}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var a=document.createElementNS("http://www.w3.org/2000/svg","pattern");a.setAttribute("patternUnits","userSpaceOnUse");var o=document.createElementNS("http://www.w3.org/2000/svg","image");a.appendChild(o);var s=r.uniqueId("pattern_");a.id=s,this.el=a,this.id=s,this.cfg=e;var u=i.exec(e)[2];o.setAttribute("href",u);var c=new Image;return u.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=u,c.complete?n():(c.onload=n,c.src=c.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,r){var i=r.target||r.srcElement,a=i.id;if(!a||!n[i.tagName]){for(var o=i.parentNode;o&&!n[o.tagName];)o=o.parentNode;a=o.id}return this._attrs.id===a?this:this.find(function(t){return t._attrs&&t._attrs.id===a})}},function(t,e,n){var r=n(321),i=["X","Y","XY","POLYGON"],a="XY",o=function(t){function e(n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,r)),s=o;s.filter=!s.draggable,s.type=s.type.toUpperCase(),s.chart=r,-1===i.indexOf(s.type)&&(s.type=a);var u=s.canvas;if(u){var c=void 0;u.get("children").map(function(t){return"plotBack"===t.get("type")?(c=t.get("plotRange"),!1):t}),s.plot={start:c.bl,end:c.tr}}if(r){var l=r.get("coord");s.plot={start:l.start,end:l.end};var h=r._getScales("x"),f=r._getScales("y");s.xScale=s.xField?h[s.xField]:r.getXScale(),s.yScale=s.yField?f[s.yField]:r.getYScales()[0]}return o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:a,startPoint:null,brushing:!1,dragging:!1,brushShape:null,container:null,polygonPath:null,style:{fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},draggable:!1,dragOffX:0,dragOffY:0,inPlot:!0,xField:null,yField:null})},e.prototype.start=function(t){var e=this,n=e.canvas,r=e.type,i=e.brushShape;if(r){var a={x:t.offsetX,y:t.offsetY};if(a.x){var o=e.plot&&e.inPlot,s=n.get("canvasDOM"),u=n.get("pixelRatio");if(e.selection&&(e.selection=null),e.draggable&&i&&!i.get("destroyed")){if(i.isHit(a.x*u,a.y*u)){if(s.style.cursor="move",e.selection=i,e.dragging=!0,"X"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=0;else if("Y"===r)e.dragoffX=0,e.dragoffY=a.y-i.attr("y");else if("XY"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var c=i.getBBox();e.dragoffX=a.x-c.minX,e.dragoffY=a.y-c.minY}o&&e.selection.attr("clip",n.addShape("rect",{attrs:{x:this.plot.start.x,y:this.plot.end.y,width:this.plot.end.x-this.plot.start.x,height:this.plot.start.y-this.plot.end.y,fill:"#fff",fillOpacity:0}})),e.onDragstart&&e.onDragstart(t)}e.prePoint=a}if(!e.dragging){e.onBrushstart&&e.onBrushstart(a);var l=e.container;if(o){var h=e.plot,f=h.start,p=h.end;if(a.x<f.x||a.x>p.x||a.y<p.y||a.y>f.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,l?l.clear():(l=n.addGroup({zIndex:5})).initTransform(),e.container=l,"POLYGON"===r&&(e.polygonPath="M "+a.x+" "+a.y)}}}},e.prototype.process=function(t){var e=this,n=e.brushing,i=e.dragging,a=e.type,o=e.plot,s=e.startPoint,u=e.xScale,c=e.yScale,l=e.canvas;if(n||i){var h={x:t.offsetX,y:t.offsetY},f=l.get("canvasDOM");if(n){f.style.cursor="crosshair";var p=o.start,d=o.end,g=e.polygonPath,y=e.brushShape,v=e.container;e.plot&&e.inPlot&&(h=e._limitCoordScope(h));var m=void 0,x=void 0,b=void 0,w=void 0;"Y"===a?(m=p.x,x=h.y>=s.y?s.y:h.y,b=Math.abs(p.x-d.x),w=Math.abs(s.y-h.y)):"X"===a?(m=h.x>=s.x?s.x:h.x,x=d.y,b=Math.abs(s.x-h.x),w=Math.abs(d.y-p.y)):"XY"===a?(h.x>=s.x?(m=s.x,x=h.y>=s.y?s.y:h.y):(m=h.x,x=h.y>=s.y?s.y:h.y),b=Math.abs(s.x-h.x),w=Math.abs(s.y-h.y)):"POLYGON"===a&&(g+="L "+h.x+" "+h.y,e.polygonPath=g,y?!y.get("destroyed")&&y.attr(r.mix({},y._attrs,{path:g})):y=v.addShape("path",{attrs:r.mix(e.style,{path:g})})),"POLYGON"!==a&&(y?!y.get("destroyed")&&y.attr(r.mix({},y._attrs,{x:m,y:x,width:b,height:w})):y=v.addShape("rect",{attrs:r.mix(e.style,{x:m,y:x,width:b,height:w})})),e.brushShape=y}else if(i){f.style.cursor="move";var _=e.selection;if(_&&!_.get("destroyed"))if("POLYGON"===a){var S=e.prePoint;e.selection.translate(h.x-S.x,h.y-S.y)}else e.dragoffX&&_.attr("x",h.x-e.dragoffX),e.dragoffY&&_.attr("y",h.y-e.dragoffY)}e.prePoint=h,l.draw();var M=e._getSelected(),A=M.data,C=M.shapes,P=M.xValues,k=M.yValues,T={data:A,shapes:C,x:h.x,y:h.y};u&&(T[u.field]=P),c&&(T[c.field]=k),e.onDragmove&&e.onDragmove(T),e.onBrushmove&&e.onBrushmove(T)}},e.prototype.end=function(t){var e=this,n=e.data,i=e.shapes,a=e.xValues,o=e.yValues,s=e.canvas,u=e.type,c=e.startPoint,l=e.chart,h=e.container,f=e.xScale,p=e.yScale,d=t.offsetX,g=t.offsetY;if(s.get("canvasDOM").style.cursor="default",Math.abs(c.x-d)<=1&&Math.abs(c.y-g)<=1)return e.brushing=!1,void(e.dragging=!1);var y={data:n,shapes:i,x:d,y:g};if(f&&(y[f.field]=a),p&&(y[p.field]=o),e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(y);else if(e.brushing){e.brushing=!1;var v=e.brushShape,m=e.polygonPath;"POLYGON"===u&&(m+="z",v&&!v.get("destroyed")&&v.attr(r.mix({},v._attrs,{path:m})),e.polygonPath=m,s.draw()),e.onBrushend?e.onBrushend(y):l&&e.filter&&(h.clear(),"X"===u?f&&l.filter(f.field,function(t){return a.indexOf(t)>-1}):"Y"===u?p&&l.filter(p.field,function(t){return o.indexOf(t)>-1}):(f&&l.filter(f.field,function(t){return a.indexOf(t)>-1}),p&&l.filter(p.field,function(t){return o.indexOf(t)>-1})),l.repaint())}},e.prototype.reset=function(){var t=this.chart,e=this.filter;t&&e&&(t.get("options").filters={},t.repaint())},e.prototype._limitCoordScope=function(t){var e=this.plot,n=e.start,r=e.end;return t.x<n.x&&(t.x=n.x),t.x>r.x&&(t.x=r.x),t.y<r.y&&(t.y=r.y),t.y>n.y&&(t.y=n.y),t},e.prototype._getSelected=function(){var t=this,e=t.chart,n=t.xScale,r=t.yScale,i=t.brushShape,a=t.canvas.get("pixelRatio"),o=[],s=[],u=[],c=[];if(e){e.get("geoms").map(function(t){return t.getShapes().map(function(t){var e=t.get("origin");return Array.isArray(e)||(e=[e]),e.map(function(e){if(i.isHit(e.x*a,e.y*a)){o.push(t);var l=e._origin;c.push(l),n&&s.push(l[n.field]),r&&u.push(l[r.field])}return e}),t}),t})}return t.shapes=o,t.xValues=s,t.yValues=u,t.data=c,{data:c,xValues:s,yValues:u,shapes:o}},e}(n(308));t.exports=o},function(t,e,n){var r=n(321),i=["X","Y","XY"],a="X",o=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),u=s;u.type=u.type.toUpperCase(),u.chart=o;var c=o.getYScales(),l=o.getXScale();c.push(l);var h=o.get("scaleController");return c.forEach(function(t){var e=t.field,n=h.defs[e];u.originScaleDefsByField[e]=r.mix(n,{nice:!!n.nice}),t.isLinear&&(u.stepByField[e]=(t.max-t.min)*u.stepRatio)}),-1===i.indexOf(u.type)&&(u.type=a),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:a,stepRatio:.05,stepByField:{},originScaleDefsByField:{},previousPoint:null,isDragging:!1})},e.prototype._applyTranslate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.chart,r=t.min,i=t.max,a=t.field,o=i-r;n.scale(a,{nice:!1,min:r-e*o,max:i-e*o})},e.prototype.start=function(t){var e=this.chart;this.canvas.get("canvasDOM").style.cursor="pointer";var n=e.get("coord");this.isDragging=!0,this.previousPoint=n.invertPoint(t)},e.prototype.process=function(t){var e=this;if(e.isDragging){var n=e.chart,r=e.type;e.canvas.get("canvasDOM").style.cursor="move";var i=n.get("coord"),a=e.previousPoint,o=i.invertPoint(t);if(r.indexOf("X")>-1&&e._applyTranslate(n.getXScale(),o.x-a.x),r.indexOf("Y")>-1){n.getYScales().forEach(function(t){e._applyTranslate(t,o.y-a.y)})}e.previousPoint=o,n.repaint()}},e.prototype.end=function(){this.isDragging=!1;this.canvas.get("canvasDOM").style.cursor="default"},e.prototype.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),r=t.getXScale();n.push(r),n.forEach(function(n){if(n.isLinear){var r=n.field;t.scale(r,e[r])}}),t.repaint()},e}(n(308));t.exports=o},function(t,e,n){function r(t,e){var n={};for(var r in e)n[r]=t[r];return n}var i=n(321),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},e.prototype.start=function(t){var e=void 0,n=[];if(this.view.eachShape(function(r,i){i.isPointInPath(t.x,t.y)?e=i:n.push(i)}),e)if(e.get("_selected")){if(!this.cancelable)return;this.reset()}else{var a=this.selectStyle,o=this.unSelectStyle,s=r(e.attr(),e);e.set("_originAttrs",s),e.attr(a),i.each(n,function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),o&&(e=r(t.attr(),o),t.set("_originAttrs",e),t.attr(o))}),e.set("_selected",!0),this.selectedShape=e,this.canvas.draw()}else this.reset()},e.prototype.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&e.get("origin")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!e.get("_selected"))},e.prototype.reset=function(){if(this.selectedShape){var t=this.view.get("geoms")[0].get("container").get("children")[0].get("children");i.each(t,function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)}),this.canvas.draw()}},e}(n(308));t.exports=a},function(t,e,n){var r=n(321),i=["X","Y","XY"],a="X",o=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var s=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,o)),u=s;u.chart=o,u.type=u.type.toUpperCase();var c=o.getYScales(),l=o.getXScale();c.push(l);var h=o.get("scaleController");return c.forEach(function(t){var e=t.field,n=h.defs[e]||{};u.originScaleDefsByField[e]=r.mix(n,{nice:!!n.nice}),t.isLinear&&(u.stepByField[e]=(t.max-t.min)*u.stepRatio)}),-1===i.indexOf(u.type)&&(u.type=a),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{processEvent:"mousewheel",type:a,stepRatio:.05,stepByField:{},originScaleDefsByField:{}})},e.prototype._applyScale=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.chart,i=this.stepByField;if(t.isLinear){var a=t.min,o=t.max,s=t.field,u=1-n,c=i[s]*e,l=a+c*n,h=o-c*u;h>l&&r.scale(s,{nice:!1,min:l,max:h})}},e.prototype.process=function(t){var e=this,n=e.chart,r=e.type,i=n.get("coord"),a=t.deltaY,o=i.invertPoint(t);if(a){e.onZoom&&e.onZoom(a,o,e),a>0?e.onZoomin&&e.onZoomin(a,o,e):e.onZoomout&&e.onZoomout(a,o,e);var s=a/Math.abs(a);if(r.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,o.x),r.indexOf("Y")>-1){n.getYScales().forEach(function(t){e._applyScale(t,s,o.y)})}}n.repaint()},e.prototype.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),r=t.getXScale();n.push(r),n.forEach(function(n){if(n.isLinear){var r=n.field;t.scale(r,e[r])}}),t.repaint()},e}(n(308));t.exports=o},function(t,e,n){var r=n(350).CommonUtil;t.exports=function(t,e){t._Interactions={},t.registerInteraction=function(e,n){t._Interactions[e]=n},t.getInteraction=function(t){return G2._Interactions[t]},e.prototype.getInteractions=function(){return this._interactions||(this._interactions={}),this._interactions},e.prototype._setInteraction=function(t,e){var n=this.getInteractions();n[t]&&n[t]!==e&&n[t].destroy(),n[t]=e},e.prototype.clearInteraction=function(t){var e=this.getInteractions();t?(e[t]&&e[t].destroy(),delete e[t]):r.each(e,function(t,n){t.destroy(),delete e[n]})},e.prototype.interact=e.prototype.interaction=function(t,e){var n=new(G2.getInteraction(t))(e,this);return this._setInteraction(t,n),this}}}])});
|