text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.F2=e():t.F2=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=145)}([function(t,e,i){"use strict";var n=i(50),r={upperFirst:i(51),lowerFirst:i(52),isString:i(53),isNumber:i(54),isBoolean:i(55),isFunction:i(56),isDate:i(57),isArray:i(23),isNil:i(33),isObject:i(34),isPlainObject:i(35),deepMix:i(59),mix:i(60),each:i(36),uniq:i(61),isObjectValueEqual:function(t,e){t=Object.assign({},t),e=Object.assign({},e);var i=Object.getOwnPropertyNames(t),n=Object.getOwnPropertyNames(e);if(i.length!==n.length)return!1;for(var r=0,a=i.length;r<a;r++){var s=i[r];if(t[s]!==e[s])return!1}return!0},wrapBehavior:function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var i=function(i){t[e](i)};return t["_wrap_"+e]=i,i},getWrapBehavior:function(t,e){return t["_wrap_"+e]},parsePadding:function(t){var e,i,n,a;return r.isNumber(t)||r.isString(t)?e=n=a=i=t:r.isArray(t)&&(e=t[0],i=r.isNil(t[1])?t[0]:t[1],n=r.isNil(t[2])?t[0]:t[2],a=r.isNil(t[3])?i:t[3]),[e,i,n,a]},directionEnabled:function(t,e){return void 0===t||"string"==typeof t&&-1!==t.indexOf(e)}};r.Array={merge:function(t){for(var e=[],i=0,n=t.length;i<n;i++)e=e.concat(t[i]);return e},values:function(t,e){for(var i=[],n={},a=0,s=t.length;a<s;a++){var o=t[a][e];r.isNil(o)||(r.isArray(o)?r.each(o,function(t){n[t]||(i.push(t),n[t]=!0)}):n[o]||(i.push(o),n[o]=!0))}return i},firstValue:function(t,e){for(var i=null,n=0,a=t.length;n<a;n++){var s=t[n][e];if(!r.isNil(s)){i=r.isArray(s)?s[0]:s;break}}return i},group:function(t,e,i){if(void 0===i&&(i={}),!e)return[t];var n=r.Array.groupToMap(t,e),a=[];if(1===e.length&&i[e[0]]){var s=i[e[0]];r.each(s,function(t){t="_"+t,a.push(n[t])})}else for(var o in n)a.push(n[o]);return a},groupToMap:function(t,e){if(!e)return{0:t};for(var i={},n=0,r=t.length;n<r;n++){var a=t[n],s=function(t){for(var i="_",n=0,r=e.length;n<r;n++)i+=t[e[n]]&&t[e[n]].toString();return i}(a);i[s]?i[s].push(a):i[s]=[a]}return i},remove:function(t,e){if(t){var i=t.indexOf(e);-1!==i&&t.splice(i,1)}},getRange:function(t){if(!t.length)return{min:0,max:0};var e=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:e}}},r.mix(r,n),t.exports=r},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,i){"use strict";var n=i(49),r=i(0),a={version:"3.4.4",scales:{},widthRatio:{column:.5,rose:.999999,multiplePie:.75},lineDash:[4,4]};a.setTheme=function(t){r.deepMix(this,t)},a.setTheme(n),t.exports=a},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isShape:!0,attrs:{}}},i.getType=function(){return this._attrs.type},i.drawInner=function(t){var e=this,i=e.get("attrs");e.createPath(t);var n=t.globalAlpha;if(e.hasFill()){var a=i.fillOpacity;r.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=n)}if(e.hasStroke()&&i.lineWidth>0){var s=i.strokeOpacity;r.isNil(s)||1===s||(t.globalAlpha=s),t.stroke()}},i.getBBox=function(){var t=this._attrs.bbox;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._attrs.bbox=t),t},i.calculateBox=function(){return null},i.createPath=function(){},e}(i(30));t.exports=a},function(t,e,i){"use strict";t.exports={create:function(){return[0,0]},length:function(t){var e=t[0],i=t[1];return Math.sqrt(e*e+i*i)},normalize:function(t,e){var i=this.length(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},direction:function(t,e){return t[0]*e[1]-e[0]*t[1]},angle:function(t,e){var i=this.dot(t,e)/(this.length(t)*this.length(e));return Math.acos(i)},angleTo:function(t,e,i){var n=this.angle(t,e),r=this.direction(t,e)>=0;return i?r?2*Math.PI-n:n:r?n:2*Math.PI-n},zero:function(t){return 0===t[0]&&0===t[1]},distance:function(t,e){var i=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(i*i+n*n)},clone:function(t){return[t[0],t[1]]},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t},transformMat2d:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}}},function(t,e,i){var n=i(28),r=i(16);t.exports=function(t,e){if(t)if(r(t))for(var i=0,a=t.length;i<a&&!1!==e(t[i],i);i++);else if(n(t))for(var s in t)if(t.hasOwnProperty(s)&&!1===e(t[s],s))break}},function(t,e,i){"use strict";var n={Canvas:i(82),Group:i(39),Shape:i(4),Matrix:i(27),Vector2:i(5)};i(84),i(85),i(86),i(87),i(88),i(89),i(90),i(91),i(93),t.exports=n},function(t,e,i){"use strict";function n(t){return a.isArray(t)?t:a.isString(t)?t.split("*"):[t]}var r=i(1)(i(2)),a=i(0),s=i(37),o=["color","size","shape"],u=i(3),c=i(67),l=i(10),h=i(26),f=function(t){function e(){return t.apply(this,arguments)||this}(0,r.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){return{type:null,data:null,attrs:{},scales:{},container:null,styleOptions:null,chart:null,shapeType:"",generatePoints:!1,attrOptions:{},sortable:!1,startOnZero:!0,visible:!0,connectNulls:!1,ignoreEmptyGroup:!1}},i.init=function(){var t=this;t._initAttrs();var e=t._processData();t.get("adjust")&&t._adjustData(e),t.set("dataArray",e)},i._getGroupScales=function(){var t=this,e=[];return a.each(o,function(i){var n=t.getAttr(i);if(n){var r=n.scales;a.each(r,function(t){t&&t.isCategory&&-1===e.indexOf(t)&&e.push(t)})}}),e},i._groupData=function(t){var e=this,i=e.get("colDefs"),n=e._getGroupScales();if(n.length){var r={},s=[];return a.each(n,function(t){var e=t.field;s.push(e),i&&i[e]&&i[e].values&&(r[t.field]=i[e].values)}),a.Array.group(t,s,r)}return[t]},i._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},i._createAttrOption=function(t,e,i,n){var r={};r.field=e,i?a.isFunction(i)?r.callback=i:r.values=i:r.values=n,this._setAttrOptions(t,r)},i._initAttrs=function(){var t=this,e=t.get("attrs"),i=t.get("attrOptions"),r=t.get("coord");for(var s in i)if(i.hasOwnProperty(s)){var o=i[s],u=a.upperFirst(s),l=n(o.field);"position"===s&&(o.coord=r);for(var h=[],f=0,p=l.length;f<p;f++){var g=l[f],d=t._createScale(g);h.push(d)}if("position"===s){var v=h[1];"polar"===r.type&&r.transposed&&t.hasAdjust("stack")&&v.values.length&&v.change({nice:!1,min:0,max:Math.max.apply(null,v.values)})}o.scales=h;var x=new c[u](o);e[s]=x}},i._createScale=function(t){var e=this.get("scales"),i=e[t];return i||(i=this.get("chart").createScale(t),e[t]=i),i},i._processData=function(){var t=this,e=this.get("data"),i=[],n=this._groupData(e);if(this.get("ignoreEmptyGroup")){var r=this.getYScale();n=n.filter(function(t){return t.some(function(t){return void 0!==t[r.field]})})}for(var a=0,s=n.length;a<s;a++){var o=n[a],u=t._saveOrigin(o);this.hasAdjust("dodge")&&t._numberic(u),i.push(u)}return i},i._saveOrigin=function(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i],a={};for(var s in r)a[s]=r[s];a._origin=r,e.push(a)}return e},i._numberic=function(t){for(var e=this.getAttr("position").scales,i=0,n=t.length;i<n;i++)for(var r=t[i],a=Math.min(2,e.length),s=0;s<a;s++){var o=e[s];if(o.isCategory){var u=o.field;r[u]=o.translate(r[u])}}},i._adjustData=function(t){var e=this,i=e.get("adjust");if(i){var n=a.upperFirst(i.type);if(!h[n])throw new Error("not support such adjust : "+i);var r=e.getXScale(),s=e.getYScale(),o=a.mix({xField:r.field,yField:s.field},i);new h[n](o).processAdjust(t),"Stack"===n&&e._updateStackRange(s.field,s,t)}},i._updateStackRange=function(t,e,i){for(var n=a.Array.merge(i),r=e.min,s=e.max,o=0,u=n.length;o<u;o++){var c=n[o],l=Math.min.apply(null,c[t]),h=Math.max.apply(null,c[t]);l<r&&(r=l),h>s&&(s=h)}(r<e.min||s>e.max)&&e.change({min:r,max:s})},i._sort=function(t){var e=this,i=e.getXScale(),n=i.field,r=i.type;"identity"!==r&&i.values.length>1&&a.each(t,function(t){t.sort(function(t,e){return"timeCat"===r?i._toTimeStamp(t._origin[n])-i._toTimeStamp(e._origin[n]):i.translate(t._origin[n])-i.translate(e._origin[n])})}),e.set("hasSorted",!0),e.set("dataArray",t)},i.paint=function(){var t=this,e=t.get("dataArray"),i=[],n=t.getShapeFactory();n.setCoord(t.get("coord")),t._beforeMapping(e);for(var r=0,a=e.length;r<a;r++){var s=e[r];s.length&&(s=t._mapping(s),i.push(s),t.draw(s,n))}t.set("dataArray",i)},i.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=l.getShapeFactory(e),this.set("shapeFactory",t)}return t},i._mapping=function(t){for(var e=this,i=e.get("attrs"),n=e.getYScale().field,r=[],s=0,o=t.length;s<o;s++){var u=t[s],c={};c._origin=u._origin,c.points=u.points,c._originY=u[n];for(var l in i)if(i.hasOwnProperty(l)){var h=i[l],f=h.names,p=e._getAttrValues(h,u);if(f.length>1)for(var g=0,d=p.length;g<d;g++){var v=p[g];c[f[g]]=a.isArray(v)&&1===v.length?v[0]:v}else c[f[0]]=1===p.length?p[0]:p}r.push(c)}return r},i._getAttrValues=function(t,e){for(var i=t.scales,n=[],r=0,a=i.length;r<a;r++){var s=i[r],o=s.field;"identity"===s.type?n.push(s.value):n.push(e[o])}return t.mapping.apply(t,n)},i.getAttrValue=function(t,e){var i=this.getAttr(t),n=null;return i&&(n=this._getAttrValues(i,e)[0]),n},i._beforeMapping=function(t){var e=this;e.get("sortable")&&e._sort(t),e.get("generatePoints")&&a.each(t,function(t){e._generatePoints(t)})},i.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},i.getCallbackCfg=function(t,e,i){if(!t)return e;var n={},r=t.map(function(t){return i[t]});return a.each(e,function(t,e){a.isFunction(t)?n[e]=t.apply(null,r):n[e]=t}),n},i.getDrawCfg=function(t){var e=this,i=e.isInCircle(),n={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:i,opacity:t.opacity},r=e.get("styleOptions");return r&&r.style&&(n.style=e.getCallbackCfg(r.fields,r.style,t._origin)),e.get("generatePoints")&&(n.points=t.points),i&&(n.center=e.get("coord").center),n},i.draw=function(t,e){var i=this,n=i.get("container"),r=i.getYScale();a.each(t,function(t,s){if(!r||!a.isNil(t._origin[r.field])){t.index=s;var o=i.getDrawCfg(t),u=t.shape;i.drawShape(u,t,o,n,e)}})},i.drawShape=function(t,e,i,n,r){var s=r.drawShape(t,i,n);s&&a.each([].concat(s),function(t){t.set("origin",e)})},i._generatePoints=function(t){for(var e=this,i=e.getShapeFactory(),n=e.getAttr("shape"),r=0,a=t.length;r<a;r++){var s=t[r],o=e.createShapePointsCfg(s),u=n?e._getAttrValues(n,s):null,c=i.getShapePoints(u,o);s.points=c}},i.createShapePointsCfg=function(t){var e,i=this.getXScale(),n=this.getYScale(),r=this._normalizeValues(t[i.field],i);return e=n?this._normalizeValues(t[n.field],n):t.y?t.y:.1,{x:r,y:e,y0:n?n.scale(this.getYMinValue()):void 0}},i.getYMinValue=function(){var t=this.getYScale(),e=t.min,i=t.max;return this.get("startOnZero")?i<=0&&e<=0?i:e>=0?e:0:e},i._normalizeValues=function(t,e){var i=[];if(a.isArray(t))for(var n=0,r=t.length;n<r;n++){var s=t[n];i.push(e.scale(s))}else i=e.scale(t);return i},i.getAttr=function(t){return this.get("attrs")[t]},i.getXScale=function(){return this.getAttr("position").scales[0]},i.getYScale=function(){return this.getAttr("position").scales[1]},i.hasAdjust=function(t){return this.get("adjust")&&this.get("adjust").type===t},i._getSnap=function(t,e,i){var n,r=0,a=this.getYScale().field;if(this.hasAdjust("stack")&&t.field===a){n=[],i.forEach(function(t){n.push(t._originY)});for(var s=n.length;r<s&&!(n[0][0]>e);r++){if(n[n.length-1][1]<=e){r=n.length-1;break}if(n[r][0]<=e&&n[r][1]>e)break}}else{(n=t.values).sort(function(t,e){return t-e});for(var o=n.length;r<o&&!(o<=1)&&!((n[0]+n[1])/2>e)&&!((n[r-1]+n[r])/2<=e&&(n[r+1]+n[r])/2>e);r++)if((n[n.length-2]+n[n.length-1])/2<=e){r=n.length-1;break}}return n[r]},i.getSnapRecords=function(t){var e=this,i=e.get("coord"),n=e.getXScale(),r=e.getYScale(),s=n.field,o=e.get("dataArray");this.get("hasSorted")||this._sort(o);var u=[],c=i.invertPoint(t),l=c.x;e.isInCircle()&&!i.transposed&&l>(1+n.rangeMax())/2&&(l=n.rangeMin());var h=n.invert(l);n.isCategory||(h=e._getSnap(n,h));var f=[];if(o.forEach(function(t){t.forEach(function(t){var i=a.isNil(t._origin)?t[s]:t._origin[s];e._isEqual(i,h,n)&&f.push(t)})}),this.hasAdjust("stack")&&i.isPolar&&i.transposed){if(l>=0&&l<=1){var p=r.invert(c.y);p=e._getSnap(r,p,f),f.forEach(function(t){(a.isArray(p)?t._originY.toString()===p.toString():t._originY===p)&&u.push(t)})}}else u=f;return u},i._isEqual=function(t,e,i){return"timeCat"===i.type?i._toTimeStamp(t)===e:e===t},i.position=function(t){return this._setAttrOptions("position",{field:t}),this},i.color=function(t,e){return this._createAttrOption("color",t,e,u.colors),this},i.size=function(t,e){return this._createAttrOption("size",t,e,u.sizes),this},i.shape=function(t,e){var i=this.get("type"),n=u.shapes[i]||[];return this._createAttrOption("shape",t,e,n),this},i.style=function(t,e){var i=this.get("styleOptions");i||(i={},this.set("styleOptions",i)),a.isObject(t)&&(e=t,t=null);var r;return t&&(r=n(t)),i.fields=r,i.style=e,this},i.adjust=function(t){return a.isString(t)&&(t={type:t}),this.set("adjust",t),this},i.animate=function(t){return this.set("animateCfg",t),this},i.reset=function(){this.set("attrOptions",{}),this.set("adjust",null),this.clearInner()},i.clearInner=function(){var t=this.get("container");t&&(t.clear(),t.setMatrix([1,0,0,1,0,0])),t&&t.clear(),this.set("attrs",{}),this.set("groupScales",null),this.set("xDistance",null),this.set("_width",null)},i.clear=function(){this.clearInner(),this.set("scales",{})},i.destroy=function(){this.clear(),t.prototype.destroy.call(this)},i._display=function(t){this.set("visible",t);var e=this.get("container"),i=e.get("canvas");e.set("visible",t),i.draw()},i.show=function(){this._display(!0)},i.hide=function(){this._display(!1)},e}(s);t.exports=f},function(t,e){var i={}.toString;t.exports=function(t,e){return i.call(t)==="[object "+e+"]"}},function(t,e,i){"use strict";var n=i(0),r=i(3),a={},s={_coord:null,draw:function(t,e){this.drawShape&&this.drawShape(t,e)},setCoord:function(t){this._coord=t},parsePoint:function(t){var e=this._coord;return e.isPolar&&(1===t.x&&(t.x=.9999999),1===t.y&&(t.y=.9999999)),e.convertPoint(t)},parsePoints:function(t){if(!t)return!1;var e=this,i=[];return t.forEach(function(t){i.push(e.parsePoint(t))}),i}},o={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){var e=this;n.isArray(t)&&(t=t[0]);var i=e[t]||e[e.defaultShapeType];return i._coord=e._coord,i},getShapePoints:function(t,e){var i=this.getShape(t);return(i.getPoints||i.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},drawShape:function(t,e,i){var n=this.getShape(t);return e.color||(e.color=r.colors[0]),n.draw(e,i)}};a.registerFactory=function(t,e){var i=n.upperFirst(t),r=n.mix({},o,e);return a[i]=r,r.name=t,r},a.registerShape=function(t,e,i){var r=n.upperFirst(t),o=a[r],u=n.mix({},s,i);return o[e]=u,u},a.registShape=a.registerShape,a.getShapeFactory=function(t){var e=this;return t=t||"point",e[n.upperFirst(t)]},t.exports=a},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,i){"use strict";function n(t,e,i,n,a){return{x:r(a,t.x,e.x,i.x,n.x),y:r(a,t.y,e.y,i.y,n.y)}}function r(t,e,i,n,r){var a=t*t;return e+(3*-e+t*(3*e-e*t))*t+(3*i+t*(-6*i+3*i*t))*t+(3*n-3*n*t)*a+r*(a*t)}function a(t){for(var e=1/0,i=-1/0,r=1/0,a=-1/0,s={x:t[0],y:t[1]},o={x:t[2],y:t[3]},u={x:t[4],y:t[5]},c={x:t[6],y:t[7]},l=0;l<100;l++){var h=n(s,o,u,c,l/100);h.x<e&&(e=h.x),h.x>i&&(i=h.x),h.y<r&&(r=h.y),h.y>a&&(a=h.y)}return{minX:e,minY:r,maxX:i,maxY:a}}var s=i(5),o=s.create(),u=s.create(),c=s.create();t.exports={getBBoxFromPoints:function(t,e){if(0!==t.length){for(var i=t[0],n=i.x,r=i.x,a=i.y,s=i.y,o=t.length,u=1;u<o;u++)i=t[u],n=Math.min(n,i.x),r=Math.max(r,i.x),a=Math.min(a,i.y),s=Math.max(s,i.y);return e=e/2||0,{minX:n-e,minY:a-e,maxX:r+e,maxY:s+e}}},getBBoxFromLine:function(t,e,i,n,r){return r=r/2||0,{minX:Math.min(t,i)-r,minY:Math.min(e,n)-r,maxX:Math.max(t,i)+r,maxY:Math.max(e,n)+r}},getBBoxFromArc:function(t,e,i,n,r,a){var l=Math.abs(n-r);if(l%(2*Math.PI)<1e-4&&l>1e-4)return{minX:t-i,minY:e-i,maxX:t+i,maxY:e+i};o[0]=Math.cos(n)*i+t,o[1]=Math.sin(n)*i+e,u[0]=Math.cos(r)*i+t,u[1]=Math.sin(r)*i+e;var h=[0,0],f=[0,0];if(s.min(h,o,u),s.max(f,o,u),(n%=2*Math.PI)<0&&(n+=2*Math.PI),(r%=2*Math.PI)<0&&(r+=2*Math.PI),n>r&&!a?r+=2*Math.PI:n<r&&a&&(n+=2*Math.PI),a){var p=r;r=n,n=p}for(var g=0;g<r;g+=Math.PI/2)g>n&&(c[0]=Math.cos(g)*i+t,c[1]=Math.sin(g)*i+e,s.min(h,c,h),s.max(f,c,f));return{minX:h[0],minY:h[1],maxX:f[0],maxY:f[1]}},getBBoxFromBezierGroup:function(t,e){for(var i=1/0,n=-1/0,r=1/0,s=-1/0,o=0,u=t.length;o<u;o++){var c=a(t[o]);c.minX<i&&(i=c.minX),c.maxX>n&&(n=c.maxX),c.minY<r&&(r=c.minY),c.maxY>s&&(s=c.maxY)}return e=e/2||0,{minX:i-e,minY:r-e,maxX:n+e,maxY:s+e}}}},function(t,e,i){"use strict";var n=i(0),r={min:0,median:.5,max:1},a=function(){function t(t){this._initDefaultCfg(),n.deepMix(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){},e._getNormalizedValue=function(t,e){return n.isNil(r[t])?e.scale(t):r[t]},e.parsePercentPoint=function(t,e){var i=parseFloat(e[0])/100,n=parseFloat(e[1])/100,r=t.start,a=t.end,s=Math.abs(r.x-a.x),o=Math.abs(r.y-a.y);return{x:s*i+Math.min(r.x,a.x),y:o*n+Math.min(r.y,a.y)}},e.parsePoint=function(t,e){var i=this,r=i.xScale,a=i.yScales;if(n.isFunction(e)&&(e=e(r,a)),n.isString(e[0])&&-1!==e[0].indexOf("%")&&!isNaN(e[0].slice(0,-1)))return this.parsePercentPoint(t,e);var s=i._getNormalizedValue(e[0],r),o=i._getNormalizedValue(e[1],a[0]),u=t.convertPoint({x:s,y:o});return i.limitInPlot?s>=0&&s<=1&&o>=0&&o<=1?u:null:u},e.render=function(){},e.repaint=function(){this.remove();var t=this.coord,e=this.container,i=this.canvas;e&&!e.isDestroyed()&&(this.render(t,e),i.draw())},e.remove=function(){var t=this.element;t&&t.remove(!0)},e.changeVisible=function(t){var e=this;e.visible=t;var i=e.element;i&&(i.set?i.set("visible",t):i.style.display=t?"":"none")},t}();t.exports=a},function(t,e,i){var n=i(25),r=i(6),a=i(28),s=i(11),o=function(){function t(t){this._initDefaultCfg(),n(this,t),this.init()}var e=t.prototype;return e._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},e.init=function(){},e.getTicks=function(){var t=this,e=t.ticks,i=[];return r(e,function(e){var n;n=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},i.push(n)}),i},e.getText=function(t,e){var i=this.formatter;return t=i?i(t,e):t,!s(t)&&t.toString||(t=""),t.toString()},e.rangeMin=function(){return this.range[0]},e.rangeMax=function(){var t=this.range;return t[t.length-1]},e.invert=function(t){return t},e.translate=function(t){return t},e.scale=function(t){return t},e.clone=function(){var t=this,e=t.constructor,i={};return r(t,function(e,n){i[n]=t[n]}),new e(i)},e.change=function(t){return this.ticks=null,n(this,t),this.init(),this},t}();t.exports=o},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,i){var n=i(19),r=Array.isArray?Array.isArray:function(t){return n(t,"Array")};t.exports=r},function(t,e,i){function n(t,e){return r(e)?e:t.invert(t.scale(e))}var r=i(21),a=i(16),s=i(11),o=i(25),u=i(6),c=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var i=null,n=this.callback;if(t.callback){var r=t.callback;i=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var o=r.apply(void 0,i);return s(o)&&(o=n.apply(e,i)),o}}o(this,t),i&&o(this,{callback:i})}var e=t.prototype;return e._getAttrValue=function(t,e){var i=this.values;if(t.isCategory&&!this.linear)return i[t.translate(e)%i.length];var n=t.scale(e);return this.getLinearValue(n)},e.getLinearValue=function(t){var e=this.values,i=e.length-1,n=Math.floor(i*t),r=i*t-n,a=e[n];return a+((n===i?a:e[n+1])-a)*r},e.callback=function(t){var e=this,i=e.scales[0];return"identity"===i.type?i.value:e._getAttrValue(i,t)},e.getNames=function(){for(var t=this.scales,e=this.names,i=Math.min(t.length,e.length),n=[],r=0;r<i;r++)n.push(e[r]);return n},e.getFields=function(){var t=this.scales,e=[];return u(t,function(t){e.push(t.field)}),e},e.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.mapping=function(){for(var t=this.scales,e=this.callback,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var a=n;if(e){for(var s=0,o=n.length;s<o;s++)n[s]=this._toOriginParam(n[s],t[s]);a=e.apply(this,n)}return a=[].concat(a)},e._toOriginParam=function(t,e){var i=t;if(!e.isLinear)if(a(t)){i=[];for(var r=0,s=t.length;r<s;r++)i.push(n(e,t[r]))}else i=n(e,t);return i},t}();t.exports=c},function(t,e,i){"use strict";function n(t){var e=t.startAngle,i=t.endAngle;return!(!h.isNil(e)&&!h.isNil(i)&&i-e<2*Math.PI)}function r(t,e){return t-e}function a(t,e){var i=!1;return h.each(t,function(t){var n=[].concat(t.values),a=[].concat(e.values);t.type!==e.type||t.field!==e.field||n.sort(r).toString()!==a.sort(r).toString()||(i=!0)}),i}var s=i(1),o=s(i(15)),u=s(i(2)),c=i(37),l=i(64),h=i(0),f=i(65),p=i(8),g=i(73),d=i(79),v=i(3),x=i(7).Canvas,y=i(31),m=function(t){function e(e){var i;i=t.call(this,e)||this;var n=(0,o.default)(i);return h.each(p,function(t,e){var i=h.lowerFirst(e);n[i]=function(e){var i=new t(e);return n.addGeom(i),i}}),n._init(),i}(0,u.default)(e,t),e.initPlugins=function(){return{_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){var n,r,a,s,o,u=this.descriptors(t),c=u.length;for(n=0;n<c;++n)if(r=u[n],a=r.plugin,"function"==typeof(o=a[e])&&(s=[t].concat(i||[]),!1===o.apply(a,s)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],n=[];return this._plugins.concat(t&&t.get("plugins")||[]).forEach(function(t){-1===i.indexOf(t)&&(i.push(t),n.push({plugin:t}))}),e.descriptors=n,e.id=this._cacheId,n}}};var i=e.prototype;return i.getDefaultCfg=function(){return{id:null,padding:v.padding,data:null,scales:{},geoms:null,colDefs:null,pixelRatio:v.pixelRatio,filters:null,appendPadding:v.appendPadding}},i._syncYScales=function(){var t=this.get("geoms"),e=[],i=[],n=[];h.each(t,function(t){var r=t.getYScale();r.isLinear&&(e.push(r),i.push(r.min),n.push(r.max))}),i=Math.min.apply(null,i),n=Math.max.apply(null,n),h.each(e,function(t){t.change({min:i}),t.change({max:n})})},i._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return h.each(e,function(e){var i=e.get("attrOptions").color;if(i&&i.field&&h.isString(i.field)){var n=i.field.split("*");h.each(n,function(e){-1===t.indexOf(e)&&t.push(e)})}}),t},i._createScale=function(t,e){return this.get("scaleController").createScale(t,e)},i._adjustScale=function(){var t=this,e=t.get("coord"),i=t.getXScale(),r=t.getYScales(),a=[];i&&a.push(i),a=a.concat(r);var s=e.isPolar&&n(e),o=t.get("scaleController").defs;h.each(a,function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!o[t.field]||!o[t.field].range)){var i,n=t.values.length;if(1===n)i=[.5,1];else{var r=0;i=s?e.transposed?[(r=1/n*v.widthRatio.multiplePie)/2,1-r/2]:[0,1-1/n]:[r=1/n*1/2,1-r]}t.range=i}});for(var u=this.get("geoms"),c=0;c<u.length;c++){var l=u[c];if("interval"===l.get("type")){var f=l.getYScale(),p=f.field,g=f.min,d=f.max,x=f.type;o[p]&&o[p].min||"time"===x||(g>0?f.change({min:0}):d<=0&&f.change({max:0}))}}},i._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;)t.shift().destroy()},i._clearGeoms=function(){for(var t=this.get("geoms"),e=0,i=t.length;e<i;e++)t[e].clear()},i._clearInner=function(){this.set("scales",{}),this.set("legendItems",null),this._clearGeoms(),e.plugins.notify(this,"clearInner"),this.get("axisController")&&this.get("axisController").clear()},i._execFilter=function(t){var e=this.get("filters");return e&&(t=t.filter(function(t){var i=!0;return h.each(e,function(e,n){if(e&&!(i=e(t[n],t)))return!1}),i})),t},i._initGeoms=function(t){for(var e=this.get("coord"),i=this.get("filteredData"),n=this.get("colDefs"),r=0,a=t.length;r<a;r++){var s=t[r];s.set("data",i),s.set("coord",e),s.set("colDefs",n),s.init()}},i._initCoord=function(){var t=this.get("plotRange"),e=h.mix({type:"cartesian"},this.get("coordCfg"),{plot:t}),i=e.type,n=new(0,f[h.upperFirst(i)])(e);this.set("coord",n)},i._initLayout=function(){var t=this.get("_padding");t||(t=this.get("margin")||this.get("padding"),t=h.parsePadding(t));var e="auto"===t[0]?0:t[0],i="auto"===t[1]?0:t[1],n="auto"===t[2]?0:t[2],r="auto"===t[3]?0:t[3],a=this.get("width"),s=this.get("height"),o=new l({start:{x:r,y:e},end:{x:a-i,y:s-n}});this.set("plotRange",o),this.set("plot",o)},i._initCanvas=function(){var t=this;try{var i=new x({el:t.get("el")||t.get("id"),context:t.get("context"),pixelRatio:t.get("pixelRatio"),width:t.get("width"),height:t.get("height"),fontFamily:v.fontFamily});t.set("canvas",i),t.set("width",i.get("width")),t.set("height",i.get("height"))}catch(t){throw t}e.plugins.notify(t,"afterCanvasInit"),t._initLayout()},i._initLayers=function(){var t=this.get("canvas");this.set("backPlot",t.addGroup()),this.set("middlePlot",t.addGroup({zIndex:10})),this.set("frontPlot",t.addGroup({zIndex:20}))},i._init=function(){var t=this;t._initCanvas(),t._initLayers(),t.set("geoms",[]),t.set("scaleController",new g),t.set("axisController",new d({frontPlot:t.get("frontPlot").addGroup({className:"axisContainer"}),backPlot:t.get("backPlot").addGroup({className:"axisContainer"}),chart:t})),e.plugins.notify(t,"init")},i.source=function(t,e){return this.set("data",t),e&&this.scale(e),this},i.scale=function(t,e){var i=this.get("colDefs")||{};return h.isObject(t)?h.mix(i,t):i[t]=e,this.set("colDefs",i),this.get("scaleController").defs=i,this},i.axis=function(t,e){var i=this.get("axisController");return t?(i.axisCfg=i.axisCfg||{},i.axisCfg[t]=e):i.axisCfg=null,this},i.coord=function(t,e){var i;return h.isObject(t)?i=t:(i=e||{}).type=t||"cartesian",this.set("coordCfg",i),this},i.filter=function(t,e){var i=this.get("filters")||{};i[t]=e,this.set("filters",i)},i.render=function(){var t=this.get("canvas"),i=this.get("geoms"),n=this.get("data")||[],r=this._execFilter(n);this.set("filteredData",r),this._initCoord(),e.plugins.notify(this,"beforeGeomInit"),this._initGeoms(i),this.get("syncY")&&this._syncYScales(),this._adjustScale(),e.plugins.notify(this,"beforeGeomDraw"),this._renderAxis();var a=this.get("middlePlot");if(this.get("limitInPlot")&&!a.attr("clip")){var s=this.get("coord"),o=y.getClip(s);o.set("canvas",a.get("canvas")),a.attr("clip",o)}for(var u=0,c=i.length;u<c;u++)i[u].paint();return e.plugins.notify(this,"afterGeomDraw"),t.sort(),this.get("frontPlot").sort(),e.plugins.notify(this,"beforeCanvasDraw"),t.draw(),this},i.clear=function(){return e.plugins.notify(this,"clear"),this._removeGeoms(),this._clearInner(),this.set("filters",null),this.set("isUpdate",!1),this.set("_padding",null),this.get("canvas").draw(),this},i.repaint=function(){this.set("isUpdate",!0),e.plugins.notify(this,"repaint"),this._clearInner(),this.render()},i.changeData=function(t){this.set("data",t),e.plugins.notify(this,"changeData"),this.set("_padding",null),this.repaint()},i.changeSize=function(t,e){return t?this.set("width",t):t=this.get("width"),e?this.set("height",e):e=this.get("height"),this.get("canvas").changeSize(t,e),this._initLayout(),this.repaint(),this},i.destroy=function(){this.clear(),this.get("canvas").destroy(),e.plugins.notify(this,"afterCanvasDestroyed"),this._interactions&&h.each(this._interactions,function(t){t.destroy()}),t.prototype.destroy.call(this)},i.getPosition=function(t){var e=this,i=e.get("coord"),n=e.getXScale(),r=e.getYScales()[0],a=n.field,s=n.scale(t[a]),o=r.field,u=r.scale(t[o]);return i.convertPoint({x:s,y:u})},i.getRecord=function(t){var e=this,i=e.get("coord"),n=e.getXScale(),r=e.getYScales()[0],a=i.invertPoint(t),s={};return s[n.field]=n.invert(a.x),s[r.field]=r.invert(a.y),s},i.getSnapRecords=function(t){var e=this.get("geoms")[0],i=[];return e&&(i=e.getSnapRecords(t)),i},i.createScale=function(t){var e=this.get("data"),i=this.get("filteredData");i.length&&-1===this._getFieldsForLegend().indexOf(t)&&(e=i);var n=this.get("scales");return n[t]||(n[t]=this._createScale(t,e)),n[t]},i.addGeom=function(t){var e=this.get("geoms"),i=this.get("middlePlot");e.push(t),t.set("chart",this),t.set("container",i.addGroup())},i.getXScale=function(){return this.get("geoms")[0].getXScale()},i.getYScales=function(){var t=this.get("geoms"),e=[];return h.each(t,function(t){var i=t.getYScale();-1===e.indexOf(i)&&e.push(i)}),e},i.getLegendItems=function(){if(this.get("legendItems"))return this.get("legendItems");var t={},e=[],i=this.get("geoms");return h.each(i,function(i){var n=i.getAttr("color");if(n){var r=n.getScale("color");if(r.isCategory&&!a(e,r)){e.push(r);var s=r.field,o=r.getTicks(),u=[];h.each(o,function(t){var e=t.text,i=t.value,a=r.invert(i),s={fill:n.mapping(a).join("")||v.defaultColor,radius:3,symbol:"circle",stroke:"#fff"};u.push({name:e,dataValue:a,checked:!0,marker:s})}),t[s]=u}}}),this.set("legendItems",t),t},i.registerPlugins=function(t){var i=this,n=i.get("plugins")||[];h.isArray(n)||(n=[n]),[].concat(t).forEach(function(t){-1===n.indexOf(t)&&(t.init&&t.init(i),n.push(t))}),e.plugins._cacheId++,i.set("plugins",n)},i._renderAxis=function(){var t=this.get("axisController"),i=this.getXScale(),n=this.getYScales(),r=this.get("coord");e.plugins.notify(this,"beforeRenderAxis"),t.createAxis(r,i,n)},i._isAutoPadding=function(){if(this.get("_padding"))return!1;var t=this.get("padding");return h.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},i._updateLayout=function(t){var e=this.get("width"),i=this.get("height"),n={x:t[3],y:t[0]},r={x:e-t[1],y:i-t[2]},a=this.get("plot"),s=this.get("coord");a.reset(n,r),s.reset(a)},e}(c);m.plugins=m.initPlugins(),t.exports=m},function(t,e){var i={}.toString;t.exports=function(t,e){return i.call(t)==="[object "+e+"]"}},function(t,e,i){var n=i(19);t.exports=function(t){return n(t,"Number")}},function(t,e,i){var n=i(19);t.exports=function(t){return n(t,"String")}},function(t,e,i){"use strict";var n=i(0),r={splitPoints:function(t){var e=[],i=t.x,r=t.y;return(r=n.isArray(r)?r:[r]).forEach(function(t,r){var a={x:n.isArray(i)?i[r]:i,y:t};e.push(a)}),e},splitArray:function(t,e,i){if(!t.length)return[];var r,a=[],s=[];return n.each(t,function(t){r=t._origin?t._origin[e]:t[e],i?n.isNil(r)||s.push(t):n.isArray(r)&&n.isNil(r[0])||n.isNil(r)?s.length&&(a.push(s),s=[]):s.push(t)}),s.length&&a.push(s),a}};t.exports=r},function(t,e,i){var n=i(9),r=Array.isArray?Array.isArray:function(t){return n(t,"Array")};t.exports=r},function(t,e,i){"use strict";var n=i(0),r=function(){function t(t){this._initDefaultCfg(),n.mix(this,t);var e,i;this.plot?(e=this.plot.bl,i=this.plot.tr,this.start=e,this.end=i):(e=this.start,i=this.end),this.init(e,i)}var e=t.prototype;return e._initDefaultCfg=function(){},e.init=function(){},e.convertPoint=function(t){return t},e.invertPoint=function(t){return t},e.reset=function(t){this.plot=t;var e=t.bl,i=t.tr;this.start=e,this.end=i,this.init(e,i)},t}();t.exports=r},function(t,e){function i(t,e){for(var i in e)e.hasOwnProperty(i)&&"constructor"!==i&&void 0!==e[i]&&(t[i]=e[i])}t.exports=function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}},function(t,e,i){var n=i(25),r=function(){function t(t){this._initDefaultCfg(),n(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}();t.exports=r},function(t,e,i){"use strict";var n={multiply:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]},scale:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[0],t[2]=e[2]*i[1],t[3]=e[3]*i[1],t[4]=e[4],t[5]=e[5],t},rotate:function(t,e,i){var n=Math.cos(i),r=Math.sin(i),a=e[0]*n+e[2]*r,s=e[1]*n+e[3]*r,o=e[0]*-r+e[2]*n,u=e[1]*-r+e[3]*n;return t[0]=a,t[1]=s,t[2]=o,t[3]=u,t[4]=e[4],t[5]=e[5],t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+e[0]*i[0]+e[2]*i[1],t[5]=e[5]+e[1]*i[0]+e[3]*i[1],t},transform:function(t,e){for(var i=[].concat(t),r=0,a=e.length;r<a;r++){var s=e[r];switch(s[0]){case"t":n.translate(i,i,[s[1],s[2]]);break;case"s":n.scale(i,i,[s[1],s[2]]);break;case"r":n.rotate(i,i,s[1])}}return i}};t.exports=n},function(t,e){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};t.exports=function(t){var e=void 0===t?"undefined":i(t);return null!==t&&"object"===e||"function"===e}},function(t,e,i){"use strict";var n=i(0),r=i(3),a=i(5),s=function(){function t(t){this._initDefaultCfg(),n.mix(this,t),this.draw()}var e=t.prototype;return e._initDefaultCfg=function(){this.ticks=[],this.tickLine={},this.offsetFactor=1,this.frontContainer=null,this.backContainer=null,this.gridPoints=[]},e.draw=function(){var t=this.line,e=this.tickLine,i=this.label,n=this.grid;n&&this.drawGrid(n),e&&this.drawTicks(e),t&&this.drawLine(t),i&&this.drawLabels()},e.drawTicks=function(t){var e=this,i=e.ticks,r=t.length,a=e.getContainer(t.top);n.each(i,function(i){var s=e.getOffsetPoint(i.value),o=e.getSidePoint(s,r);a.addShape("line",{className:"axis-tick",attrs:n.mix({x1:s.x,y1:s.y,x2:o.x,y2:o.y},t)})._id=e._id+"-ticks"})},e.drawLabels=function(){var t=this,e=t.labelOffset,i=t.labels;n.each(i,function(i){var r=t.getContainer(i.get("top")),a=t.getOffsetPoint(i.get("value")),s=t.getSidePoint(a,e),o=s.x,u=s.y;i.attr(n.mix({x:o,y:u},t.getTextAlignInfo(a,e),i.get("textStyle"))),i._id=t._id+"-"+i.attr("text"),r.add(i)})},e.drawLine=function(){},e.drawGrid=function(t){var e=this,i=e.gridPoints,s=e.ticks,o=t,u=i.length;n.each(i,function(i,c){if(n.isFunction(t)){var l=s[c]||{},h=t(l.text,c,u);o=h?n.mix({},r._defaultAxis.grid,h):null}if(o){var f,p=o.type,g=i.points,d=e.getContainer(o.top);if("arc"===p){var v=e.center,x=e.startAngle,y=e.endAngle,m=a.length([g[0].x-v.x,g[0].y-v.y]);f=d.addShape("Arc",{className:"axis-grid",attrs:n.mix({x:v.x,y:v.y,startAngle:x,endAngle:y,r:m},o)})}else f=d.addShape("Polyline",{className:"axis-grid",attrs:n.mix({points:g},o)});f._id=i._id}})},e.getOffsetPoint=function(){},e.getAxisVector=function(){},e.getOffsetVector=function(t,e){var i=this,n=i.getAxisVector(t),r=a.normalize([],n),s=i.offsetFactor,o=[-1*r[1]*s,r[0]*s];return a.scale([],o,e)},e.getSidePoint=function(t,e){var i=this.getOffsetVector(t,e);return{x:t.x+i[0],y:t.y+i[1]}},e.getTextAlignInfo=function(t,e){var i,n,r=this.getOffsetVector(t,e);return i=r[0]>0?"left":r[0]<0?"right":"center",n=r[1]>0?"top":r[1]<0?"bottom":"middle",{textAlign:i,textBaseline:n}},e.getContainer=function(t){var e=this.frontContainer,i=this.backContainer;return t?e:i},t}();t.exports=s},function(t,e,i){"use strict";function n(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}var r=i(0),a=i(27),s=i(5),o=i(83),u={stroke:"strokeStyle",fill:"fillStyle",opacity:"globalAlpha"},c=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","shadow"],l=["circle","sector","polygon","rect","polyline"],h=function(){function t(t){this._initProperties(),r.mix(this._attrs,t);var e=this._attrs.attrs;e&&this.initAttrs(e),this.initTransform()}var e=t.prototype;return e._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.isGroup=function(){return this.get("isGroup")},e.isShape=function(){return this.get("isShape")},e.initAttrs=function(t){this.attr(r.mix(this.getDefaultAttrs(),t))},e.getDefaultAttrs=function(){return{}},e._setAttr=function(t,e){var i=this._attrs.attrs;if("clip"===t)e=this._setAttrClip(e);else{var n=u[t];n&&(i[n]=e)}i[t]=e},e._getAttr=function(t){return this._attrs.attrs[t]},e._setAttrClip=function(t){return t&&l.indexOf(t._attrs.type)>-1?(null===t.get("canvas")&&(t=Object.assign({},t)),t.set("parent",this.get("parent")),t.set("context",this.get("context")),t):null},e.attr=function(t,e){var i=this;if(i.get("destroyed"))return null;var n=arguments.length;if(0===n)return i._attrs.attrs;if(r.isObject(t)){this._attrs.bbox=null;for(var a in t)i._setAttr(a,t[a]);return i._afterAttrsSet&&i._afterAttrsSet(),i}return 2===n?(this._attrs.bbox=null,i._setAttr(t,e),i._afterAttrsSet&&i._afterAttrsSet(),i):i._getAttr(t)},e.getParent=function(){return this.get("parent")},e.draw=function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},e.setContext=function(t){var e=this._attrs.attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},e.restoreContext=function(t){t.restore()},e.resetContext=function(t){var e=this._attrs.attrs;if(!this._attrs.isGroup)for(var i in e)if(c.indexOf(i)>-1){var n=e[i];"fillStyle"!==i&&"strokeStyle"!==i||(n=o.parseStyle(n,this,t)),"lineDash"===i&&t.setLineDash&&r.isArray(n)?t.setLineDash(n):t[i]=n}},e.hasFill=function(){return this.get("canFill")&&this._attrs.attrs.fillStyle},e.hasStroke=function(){return this.get("canStroke")&&this._attrs.attrs.strokeStyle},e.drawInner=function(){},e.show=function(){return this.set("visible",!0),this},e.hide=function(){return this.set("visible",!1),this},e.isVisible=function(){return this.get("visible")},e._removeFromParent=function(){var t=this.get("parent");if(t){var e=t.get("children");r.Array.remove(e,this)}return this},e.remove=function(t){t?this.destroy():this._removeFromParent()},e.destroy=function(){if(this.get("destroyed"))return null;this._removeFromParent(),this._attrs={},this.set("destroyed",!0)},e.getBBox=function(){return{minX:0,maxX:0,minY:0,maxY:0,width:0,height:0}},e.initTransform=function(){var t=this._attrs.attrs||{};t.matrix||(t.matrix=[1,0,0,1,0,0]),this._attrs.attrs=t},e.getMatrix=function(){return this._attrs.attrs.matrix},e.setMatrix=function(t){this._attrs.attrs.matrix=[t[0],t[1],t[2],t[3],t[4],t[5]]},e.transform=function(t){var e=this._attrs.attrs.matrix;return this._attrs.attrs.matrix=a.transform(e,t),this},e.setTransform=function(t){return this._attrs.attrs.matrix=[1,0,0,1,0,0],this.transform(t)},e.translate=function(t,e){var i=this._attrs.attrs.matrix;a.translate(i,i,[t,e])},e.rotate=function(t){var e=this._attrs.attrs.matrix;a.rotate(e,e,t)},e.scale=function(t,e){var i=this._attrs.attrs.matrix;a.scale(i,i,[t,e])},e.moveTo=function(t,e){var i=this._attrs.x||0,n=this._attrs.y||0;this.translate(t-i,e-n),this.set("x",t),this.set("y",e)},e.apply=function(t){var e=this._attrs.attrs.matrix;return s.transformMat2d(t,t,e),this},e.resetTransform=function(t){var e=this._attrs.attrs.matrix;n(e)||t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},e.isDestroyed=function(){return this.get("destroyed")},t}();t.exports=h},function(t,e,i){"use strict";var n=i(7).Shape;t.exports={getClip:function(t){var e,i=t.start,r=t.end,a=r.x-i.x,s=Math.abs(r.y-i.y);if(t.isPolar){var o=t.circleRadius,u=t.center,c=t.startAngle,l=t.endAngle;e=new n.Sector({attrs:{x:u.x,y:u.y,r:o,r0:0,startAngle:c,endAngle:l}})}else e=new n.Rect({attrs:{x:i.x,y:r.y-10,width:a,height:s+20}});return e.isClip=!0,e},isPointInPlot:function(t,e){var i=t.x,n=t.y,r=e.tl,a=e.tr,s=e.br;return i>=r.x&&i<=a.x&&n>=r.y&&n<=s.y}}},function(t,e,i){var n=i(33);t.exports=function(t){return n(t)?"":t.toString()}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e){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};t.exports=function(t){var e=void 0===t?"undefined":i(t);return null!==t&&"object"===e||"function"===e}},function(t,e,i){var n=i(58),r=i(9);t.exports=function(t){if(!n(t)||!r(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,i){var n=i(34),r=i(23);t.exports=function(t,e){if(t)if(r(t))for(var i=0,a=t.length;i<a&&!1!==e(t[i],i);i++);else if(n(t))for(var s in t)if(t.hasOwnProperty(s)&&!1===e(t[s],s))break}},function(t,e,i){"use strict";var n=i(0),r=function(){function t(t){var e={},i=this.getDefaultCfg();this._attrs=e,n.mix(e,i,t)}var e=t.prototype;return e.getDefaultCfg=function(){return{}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.destroy=function(){this._attrs={},this.destroyed=!0},t}();t.exports=r},function(t,e,i){"use strict";function n(t){return function(e,i){var n=t(e,i);return 0===n?e[o]-i[o]:n}}var r=i(0),a=i(4),s={},o="_INDEX";t.exports={getGroupClass:function(){},getChildren:function(){return this.get("children")},addShape:function(t,e){void 0===e&&(e={});var i=this.get("canvas"),n=s[t];n||(n=r.upperFirst(t),s[t]=n),e.canvas=i,"Text"===n&&i&&i.get("fontFamily")&&(e.attrs.fontFamily=e.attrs.fontFamily||i.get("fontFamily"));var o=new a[n](e);return this.add(o),o},addGroup:function(t){var e=this.get("canvas"),i=this.getGroupClass();(t=r.mix({},t)).canvas=e,t.parent=this;var n=new i(t);return this.add(n),n},contain:function(t){return this.get("children").indexOf(t)>-1},sort:function(){for(var t=this.get("children"),e=0,i=t.length;e<i;e++)t[e][o]=e;return t.sort(n(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},clear:function(){for(var t=this.get("children");0!==t.length;)t[t.length-1].remove(!0);return this},add:function(t){var e=this,i=e.get("children");r.isArray(t)||(t=[t]);for(var n=0,a=t.length;n<a;n++){var s=t[n],o=s.get("parent");if(o){var u=o.get("children");r.Array.remove(u,s)}e._setEvn(s),i.push(s)}return e},_setEvn:function(t){var e=this;t._attrs.parent=e,t._attrs.context=e._attrs.context,t._attrs.canvas=e._attrs.canvas;var i=t._attrs.attrs.clip;if(i&&(i.set("parent",e),i.set("context",e.get("context"))),t._attrs.isGroup)for(var n=t._attrs.children,r=0,a=n.length;r<a;r++)t._setEvn(n[r])}}},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(30),s=i(38),o=i(5),u=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isGroup:!0,children:[]}},i.drawInner=function(t){for(var e=this.get("children"),i=0,n=e.length;i<n;i++)e[i].draw(t);return this},i.getBBox=function(){for(var t=1/0,e=-1/0,i=1/0,n=-1/0,r=this.get("children"),a=0,s=r.length;a<s;a++){var u=r[a];if(u.get("visible")){var c=u.getBBox();if(!c)continue;var l=[c.minX,c.minY],h=[c.minX,c.maxY],f=[c.maxX,c.minY],p=[c.maxX,c.maxY],g=u.attr("matrix");o.transformMat2d(l,l,g),o.transformMat2d(h,h,g),o.transformMat2d(f,f,g),o.transformMat2d(p,p,g),t=Math.min(l[0],h[0],f[0],p[0],t),e=Math.max(l[0],h[0],f[0],p[0],e),i=Math.min(l[1],h[1],f[1],p[1],i),n=Math.max(l[1],h[1],f[1],p[1],n)}}return{minX:t,minY:i,maxX:e,maxY:n,x:t,y:i,width:e-t,height:n-i}},i.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e}(a);r.mix(u.prototype,s,{getGroupClass:function(){return u}}),t.exports=u},function(t,e,i){"use strict";function n(t){var e={strokeStyle:t.color};return t.size>=0&&(e.lineWidth=t.size),a.mix(e,t.style),a.mix({},u.shape.line,e)}function r(t,e,i,n){var r=t.points;if(r.length&&a.isArray(r[0].y)){for(var s=[],u=[],c=0,l=r.length;c<l;c++){var h=r[c],f=o.splitPoints(h);u.push(f[0]),s.push(f[1])}return t.isInCircle&&(s.push(s[0]),u.push(u[0])),t.isStack?e.addShape("Polyline",{className:"line",attrs:a.mix({points:s,smooth:n},i)}):[e.addShape("Polyline",{className:"line",attrs:a.mix({points:s,smooth:n},i)}),e.addShape("Polyline",{className:"line",attrs:a.mix({points:u,smooth:n},i)})]}return t.isInCircle&&r.push(r[0]),e.addShape("Polyline",{className:"line",attrs:a.mix({points:r,smooth:n},i)})}var a=i(0),s=i(10),o=i(22),u=i(3),c=s.registerFactory("line",{defaultShapeType:"line"}),l=["line","smooth","dash"];a.each(l,function(t){s.registerShape("line",t,{draw:function(e,i){var a="smooth"===t,s=n(e);return"dash"===t&&(s.lineDash=u.lineDash),r(e,i,s,a)}})}),t.exports=c},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(14),a=i(42),s=i(6),o=i(20),u=i(21),c=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},i.init=function(){var t=this,e=t.values,i=t.tickCount;if(s(e,function(t,i){e[i]=t.toString()}),!t.ticks){var n=e;i&&(n=a({maxCount:i,data:e,isRounding:t.isRounding}).ticks),this.ticks=n}},i.getText=function(e){return-1===this.values.indexOf(e)&&o(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},i.translate=function(t){var e=this.values.indexOf(t);return-1===e&&o(t)?e=t:-1===e&&(e=NaN),e},i.scale=function(t){var e,i=this.rangeMin(),n=this.rangeMax();return(u(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,i+e*(n-i)},i.invert=function(t){if(u(t))return t;var e=this.rangeMin(),i=this.rangeMax();t<e&&(t=e),t>i&&(t=i);var n=(t-e)/(i-e),r=Math.round(n*(this.values.length-1))%this.values.length;return r=r||0,this.values[r]},e}(r);r.Cat=c,t.exports=c},function(t,e,i){function n(t){var e=[];return a(t,function(t){e=e.concat(t)}),e}function r(t,e){var i;for(i=e;i>0&&t%i!=0;i--);if(1===i)for(i=e;i>0&&(t-1)%i!=0;i--);return i}var a=i(6);t.exports=function(t){var e,i={},a=[],s=t.isRounding,o=n(t.data),u=o.length,c=t.maxCount||8;if(s?2===(e=r(u-1,c-1)+1)?e=c:e<c-4&&(e=c-4):e=c,!s&&u<=e+e/2)a=[].concat(o);else{for(var l=parseInt(u/(e-1),10),h=o.map(function(t,e){return e%l==0?o.slice(e,e+l):null}).filter(function(t){return t}),f=1,p=h.length;f<p&&(s?f*l<u-l:f<e-1);f++)a.push(h[f][0]);if(o.length){a.unshift(o[0]);var g=o[u-1];-1===a.indexOf(g)&&a.push(g)}}return i.categories=o,i.ticks=a,i}},function(t,e,i){"use strict";t.exports={requestAnimationFrame:"object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:function(t){return setTimeout(t,16)}}},function(t,e,i){"use strict";function n(t){return[t.x,t.y]}function r(t,e,i,r){var s,o,u,c,l,h,f,p,g=[],d=!!r;if(d){for(u=[1/0,1/0],c=[-1/0,-1/0],p=0,f=t.length;p<f;p++)l=n(t[p]),a.min(u,u,l),a.max(c,c,l);a.min(u,u,r[0]),a.max(c,c,r[1])}for(p=0,h=t.length;p<h;p++){if(l=n(t[p]),i)s=n(t[p?p-1:h-1]),o=n(t[(p+1)%h]);else{if(0===p||p===h-1){g.push([l[0],l[1]]);continue}s=n(t[p-1]),o=n(t[p+1])}var v=a.sub([],o,s);a.scale(v,v,e);var x=a.distance(l,s),y=a.distance(l,o),m=x+y;0!==m&&(x/=m,y/=m);var _=a.scale([],v,-x),S=a.scale([],v,y),P=a.add([],l,_),b=a.add([],l,S);d&&(a.max(P,P,u),a.min(P,P,c),a.max(b,b,u),a.min(b,b,c)),g.push([P[0],P[1]]),g.push([b[0],b[1]])}return i&&g.push(g.shift()),g}var a=i(5);t.exports={smooth:function(t,e,i){for(var n,a,s,o=!!e,u=r(t,.4,o,i),c=t.length,l=[],h=0;h<c-1;h++)n=u[2*h],a=u[2*h+1],s=t[h+1],l.push(["C",n[0],n[1],a[0],a[1],s.x,s.y]);return o&&(n=u[c],a=u[c+1],s=t[0],l.push(["C",n[0],n[1],a[0],a[1],s.x,s.y])),l}}},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(8),a=i(22),s=i(0);i(40);var o=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},i.getDrawCfg=function(e){var i=t.prototype.getDrawCfg.call(this,e);return i.isStack=this.hasAdjust("stack"),i},i.draw=function(t,e){var i=this,n=i.get("container"),r=i.getYScale(),o=i.get("connectNulls"),u=a.splitArray(t,r.field,o),c=this.getDrawCfg(t[0]);c.origin=t,s.each(u,function(r,a){c.splitedIndex=a,c.points=r,i.drawShape(c.shape,t[0],c,n,e)})},e}(r);r.Path=o,t.exports=o},function(t,e,i){"use strict";var n=i(3),r=i(0),a={getDefalutSize:function(){var t=this.get("defaultSize");if(!t){var e=this.get("coord"),i=this.getXScale(),a=this.get("dataArray"),s=r.uniq(i.values).length,o=i.range,u=1/s,c=1;e&&e.isPolar?c=e.transposed&&s>1?n.widthRatio.multiplePie:n.widthRatio.rose:(i.isLinear&&(u*=o[1]-o[0]),c=n.widthRatio.column),u*=c,this.hasAdjust("dodge")&&(u/=a.length),t=u,this.set("defaultSize",t)}return t},getDimWidth:function(t){var e=this.get("coord"),i=e.convertPoint({x:0,y:0}),n=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return i&&n&&(r=Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2))),r},_getWidth:function(){var t=this.get("_width");if(!t){var e=this.get("coord");t=e&&e.isPolar&&!e.transposed?(e.endAngle-e.startAngle)*e.circleRadius:this.getDimWidth("x"),this.set("_width",t)}return t},_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=r.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(r.isNil(e)){var i=this.getDefalutSize();e=this._toCoordSize(i)}return e}};t.exports=a},,function(t,e,i){"use strict";var n={},r=i(3);n.Global=r,n.version=r.version,n.Chart=i(18),n.Shape=i(10),n.G=i(7),n.Util=i(0),n.track=function(){return null},t.exports=n},function(t,e,i){"use strict";var n=i(0),r={label:{fill:"#808080",fontSize:10},line:{stroke:"#E8E8E8",lineWidth:1},grid:{type:"line",stroke:"#E8E8E8",lineWidth:1,lineDash:[2]},tickLine:null,labelOffset:7.5},a={fontFamily:'"Helvetica Neue", "San Francisco", Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif',defaultColor:"#1890FF",pixelRatio:1,padding:"auto",appendPadding:15,colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],shapes:{line:["line","dash"],point:["circle","hollowCircle"]},sizes:[4,10],axis:{common:r,bottom:n.mix({},r,{grid:null}),left:n.mix({},r,{line:null}),right:n.mix({},r,{line:null}),circle:n.mix({},r,{line:null}),radius:n.mix({},r,{labelOffset:4})},shape:{line:{lineWidth:2,lineJoin:"round",lineCap:"round"},point:{lineWidth:0,size:3},area:{fillOpacity:.1}},_defaultAxis:r};t.exports=a},function(t,e,i){"use strict";function n(t,e,i,n,r){return{type:t,chart:e,native:r||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}function r(t,e){var i=t.type,r={},s=t.targetTouches;s&&s.length>0?(r.x=s[0].clientX,r.y=s[0].clientY):(r.x=t.clientX,r.y=t.clientY);var o=e.get("canvas"),u=a.getRelativePosition(r,o);return n(i,e,u.x,u.y,t)}var a,s=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};a={isWx:"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync,isMy:"object"==typeof my&&"function"==typeof my.getSystemInfoSync,isNode:void 0!==t&&void 0!==t.exports,isBrowser:"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.sessionStorage,getPixelRatio:function(){return window&&window.devicePixelRatio||1},getStyle:function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},getWidth:function(t){var e=this.getStyle(t,"width");return"auto"===e&&(e=t.offsetWidth),parseFloat(e)},getHeight:function(t){var e=this.getStyle(t,"height");return"auto"===e&&(e=t.offsetHeight),parseFloat(e)},getDomById:function(t){return t?document.getElementById(t):null},getRelativePosition:function(t,e){var i=e.get("el"),n=i.getBoundingClientRect(),r=n.top,a=n.right,s=n.bottom,o=n.left,u=parseFloat(this.getStyle(i,"padding-left")),c=parseFloat(this.getStyle(i,"padding-top")),l=a-o-u-parseFloat(this.getStyle(i,"padding-right")),h=s-r-c-parseFloat(this.getStyle(i,"padding-bottom")),f=e.get("pixelRatio");return{x:(t.x-o-u)/l*i.width/f,y:(t.y-r-c)/h*i.height/f}},addEventListener:function(t,e,i){a.isBrowser&&t.addEventListener(e,i,s)},removeEventListener:function(t,e,i){a.isBrowser&&t.removeEventListener(e,i,s)},createEvent:function(t,e){return r(t,e)},measureText:function(t,e,i){return i||(i=document.createElement("canvas").getContext("2d")),i.font=e||"12px sans-serif",i.measureText(t)}},t.exports=a},function(t,e,i){var n=i(32);t.exports=function(t){var e=n(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,i){var n=i(32);t.exports=function(t){var e=n(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,i){var n=i(9);t.exports=function(t){return n(t,"String")}},function(t,e,i){var n=i(9);t.exports=function(t){return n(t,"Number")}},function(t,e,i){var n=i(9);t.exports=function(t){return n(t,"Boolean")}},function(t,e,i){var n=i(9);t.exports=function(t){return n(t,"Function")}},function(t,e,i){var n=i(9);t.exports=function(t){return n(t,"Date")}},function(t,e){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};t.exports=function(t){return"object"===(void 0===t?"undefined":i(t))&&null!==t}},function(t,e,i){function n(t,e,i,o){i=i||0,o=o||s;for(var u in e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&r(c)?(r(t[u])||(t[u]={}),i<o?n(t[u],c,i+1,o):t[u]=e[u]):a(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var r=i(35),a=i(23),s=5;t.exports=function(){for(var t=new Array(arguments.length),e=t.length,i=0;i<e;i++)t[i]=arguments[i];for(var r=t[0],a=1;a<e;a++)n(r,t[a]);return r}},function(t,e){function i(t,e){for(var i in e)e.hasOwnProperty(i)&&"constructor"!==i&&void 0!==e[i]&&(t[i]=e[i])}t.exports=function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}},function(t,e,i){var n=i(36),r=i(62);t.exports=function(t){var e=[];return n(t,function(t){r(e,t)||e.push(t)}),e}},function(t,e,i){var n=i(63),r=Array.prototype.indexOf;t.exports=function(t,e){return!!n(t)&&r.call(t,e)>-1}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,i){"use strict";var n=i(0),r=function(){function t(t){n.mix(this,t),this._init()}var e=t.prototype;return e._init=function(){var t=this,e=t.start,i=t.end,n=Math.min(e.x,i.x),r=Math.max(e.x,i.x),a=Math.min(e.y,i.y),s=Math.max(e.y,i.y);this.tl={x:n,y:a},this.tr={x:r,y:a},this.bl={x:n,y:s},this.br={x:r,y:s},this.width=r-n,this.height=s-a},e.reset=function(t,e){this.start=t,this.end=e,this._init()},e.isInRange=function(t,e){n.isObject(t)&&(e=t.y,t=t.x);var i=this.tl,r=this.br;return i.x<=t&&t<=r.x&&i.y<=e&&e<=r.y},t}();t.exports=r},function(t,e,i){"use strict";var n=i(24);i(66),t.exports=n},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(24),a=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="cartesian",this.transposed=!1,this.isRect=!0},i.init=function(t,e){this.x={start:t.x,end:e.x},this.y={start:t.y,end:e.y}},i.convertPoint=function(t){var e=this,i=e.transposed,n=i?"y":"x",r=i?"x":"y",a=e.x,s=e.y;return{x:a.start+(a.end-a.start)*t[n],y:s.start+(s.end-s.start)*t[r]}},i.invertPoint=function(t){var e=this,i=e.transposed,n=i?"y":"x",r=i?"x":"y",a=e.x,s=e.y,o={};return o[n]=(t.x-a.start)/(a.end-a.start),o[r]=(t.y-s.start)/(s.end-s.start),o},e}(r);r.Cartesian=a,r.Rect=a,t.exports=a},function(t,e,i){"use strict";t.exports={Position:i(68),Shape:i(69),Size:i(70),Color:i(71)}},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(11),a=i(16),s=i(6),o=function(t){function e(e){var i;return i=t.call(this,e)||this,i.names=["x","y"],i.type="position",i}return n(e,t),e.prototype.mapping=function(t,e){var i,n,o,u=this.scales,c=this.coord,l=u[0],h=u[1];if(r(t)||r(e))return[];if(a(e)&&a(t)){i=[],n=[];for(var f=0,p=0,g=t.length,d=e.length;f<g&&p<d;f++,p++)o=c.convertPoint({x:l.scale(t[f]),y:h.scale(e[p])}),i.push(o.x),n.push(o.y)}else if(a(e))t=l.scale(t),n=[],s(e,function(e){e=h.scale(e),o=c.convertPoint({x:t,y:e}),i&&i!==o.x?(a(i)||(i=[i]),i.push(o.x)):i=o.x,n.push(o.y)});else if(a(t))e=h.scale(e),i=[],s(t,function(t){t=l.scale(t),o=c.convertPoint({x:t,y:e}),n&&n!==o.y?(a(n)||(n=[n]),n.push(o.y)):n=o.y,i.push(o.x)});else{t=l.scale(t),e=h.scale(e);var v=c.convertPoint({x:t,y:e});i=v.x,n=v.y}return[i,n]},e}(i(17));t.exports=o},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=function(t){function e(e){var i;return i=t.call(this,e)||this,i.names=["shape"],i.type="shape",i.gradient=null,i}return n(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(i(17));t.exports=r},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=function(t){function e(e){var i;return i=t.call(this,e)||this,i.names=["size"],i.type="size",i.gradient=null,i}return n(e,t),e}(i(17));t.exports=r},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(72),s=function(t){function e(e){var i;return i=t.call(this,e)||this,i.names=["color"],i.type="color",i.gradient=null,r.isString(i.values)&&(i.linear=!0),i}return(0,n.default)(e,t),e.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var i=this.values;e=a.gradient(i),this.gradient=e}return e(t)},e}(i(17));t.exports=s},function(t,e,i){"use strict";function n(t,e,i,n){return t[n]+(e[n]-t[n])*i}function r(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 s(t,e){var i=t.length-1,a=Math.floor(i*e),s=i*e-a,o=t[a],u=a===i?o:t[a+1];return r([n(o,u,s,0),n(o,u,s,1),n(o,u,s,2)])}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 u=i(0),c={black:"#000000",blue:"#0000ff",grey:"#808080",green:"#008000",orange:"#ffa500",pink:"#ffc0cb",purple:"#800080",red:"#ff0000",white:"#ffffff",yellow:"#ffff00"},l={toHex:function(t){if(c[t])return c[t];if("#"===t[0]){if(7===t.length)return t;var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return"#"+e+e+i+i+n+n});return c[t]=e,e}var i=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return i.shift(),i=r(i),c[t]=i,i},hex2arr:o,gradient:function(t){var e=[];return u.isString(t)&&(t=t.split("-")),u.each(t,function(t){-1===t.indexOf("#")&&(t=l.toHex(t)),e.push(o(t))}),function(t){return s(e,t)}}};t.exports=l},function(t,e,i){"use strict";var n=i(0),r=i(3),a=i(74),s={linear:"Linear",cat:"Cat",timeCat:"TimeCat",identity:"Identity"},o=function(){function t(t){this.defs={},n.mix(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,i=null;return(r.scales[t]||e[t])&&(i=n.mix({},r.scales[t]),n.each(e[t],function(t,e){n.isNil(t)?delete i[e]:i[e]=t})),i},e._getDefaultType=function(t,e,i){if(i&&i.type)return i.type;var r="linear",a=n.Array.firstValue(e,t);return n.isArray(a)&&(a=a[0]),n.isString(a)&&(r="cat"),r},e._getScaleCfg=function(t,e,i,r){var a,s={field:e,values:a=r&&r.values?r.values:n.Array.values(i,e)};if("cat"!==t&&"timeCat"!==t){if(!r||!r.min||!r.max){var o=n.Array.getRange(a),u=o.min,c=o.max;s.min=u,s.max=c,s.nice=!0}}else s.isRounding=!1;return s},e.createScale=function(t,e){var i,r=this,o=r._getDef(t);if(!e||!e.length)return o&&o.type?(o.field=t,i=new a[s[o.type]](o)):i=new a.Identity({value:t,field:t.toString(),values:[t]}),i;var u=e[0][t];if(null===u&&(u=n.Array.firstValue(e,t)),n.isNumber(t)||n.isNil(u)&&!o)i=new a.Identity({value:t,field:t.toString(),values:[t]});else{var c=r._getDefaultType(t,e,o),l=r._getScaleCfg(c,t,e,o);o&&n.mix(l,o),i=new a[s[c]](l)}return i},t}();t.exports=o},function(t,e,i){"use strict";var n=i(14);i(75),i(78),i(41),t.exports=n},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(11),a=i(6),s=i(14),o=i(76),u=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);var e=this;e.type="linear",e.isLinear=!0,e.nice=!1,e.min=null,e.minLimit=null,e.max=null,e.maxLimit=null,e.tickCount=null,e.tickInterval=null,e.minTickInterval=null,e.snapArray=null},i.init=function(){var t=this;if(t.ticks){var e=t.ticks,i=t.translate(e[0]),n=t.translate(e[e.length-1]);(r(t.min)||t.min>i)&&(t.min=i),(r(t.max)||t.max<n)&&(t.max=n)}else t.min=t.translate(t.min),t.max=t.translate(t.max),t.initTicks()},i.calculateTicks=function(){var t=this.min,e=this.max,i=this.minLimit,n=this.maxLimit,r=this.tickCount,a=this.tickInterval,s=this.minTickInterval,u=this.snapArray;if(1===r)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 o({min:t,max:e,minLimit:i,maxLimit:n,minCount:r,maxCount:r,interval:a,minTickInterval:s,snapArray:u}).ticks},i.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 i=[];a(e,function(e){e>=t.min&&e<=t.max&&i.push(e)}),i.length||(i.push(t.min),i.push(t.max)),t.ticks=i}},i.scale=function(t){if(r(t))return NaN;var e=this.max,i=this.min;if(e===i)return 0;var n=(t-i)/(e-i),a=this.rangeMin();return a+n*(this.rangeMax()-a)},i.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(s);s.Linear=u,t.exports=u},function(t,e,i){var n=i(11),r=i(20),a=i(77),s=[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],o=[0,1,2,4,5,10];t.exports=function(t){var e=t.min,i=t.max,u=t.interval,c=t.minTickInterval,l=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,g=n(t.minLimit)?-1/0:t.minLimit,d=n(t.maxLimit)?1/0:t.maxLimit,v=(h+f)/2,x=v,y=t.snapArray?t.snapArray:p?s:o;if(e===g&&i===d&&p&&(u=(i-e)/(x-1)),n(e)&&(e=0),n(i)&&(i=0),Math.abs(i-e)<1e-12&&(0===e?i=1:e>0?e=0:i=0,i-e<5&&!u&&i-e>=1&&(u=1)),n(u)){var m=(i-e)/(v-1);u=a.snapFactorTo(m,y,"ceil"),f!==h&&((x=parseInt((i-e)/u,10))>f&&(x=f),x<h&&(x=h),u=a.snapFactorTo((i-e)/(x-1),y,"floor"))}if(r(c)&&u<c&&(u=c),t.interval||f!==h)i=Math.min(a.snapMultiple(i,u,"ceil"),d),e=Math.max(a.snapMultiple(e,u,"floor"),g),x=Math.round((i-e)/u),e=a.fixedBase(e,u),i=a.fixedBase(i,u);else{v=parseInt(v,10);var _,S=(i+e)/2,P=a.snapMultiple(S,u,"ceil"),b=Math.floor((v-2)/2),w=P+b*u;_=v%2==0?P-b*u:P-(b+1)*u;for(var C=null;w<i&&(null===C||w>C);)C=w,w=a.fixedBase(w+u,u);for(var M=null;_>e&&(null===M||_<M);)M=_,_=a.fixedBase(_-u,u);i=w,e=_}i=Math.min(i,d),e=Math.max(e,g),l.push(e);for(var A=1;A<x;A++){var k=a.fixedBase(u*A+e,u);k<i&&l.push(k)}return l[l.length-1]<i&&l.push(i),{min:e,max:i,interval:u,count:x,ticks:l}}},function(t,e){function i(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var i=0;t<1;)e/=10,t*=10,i++;e.toString().length>a&&(e=parseFloat(e.toFixed(i)))}else for(;t>10;)e*=10,t/=10;return e}function n(t,e){var i=t.length;if(0===i)return NaN;var n=t[0];if(e<t[0])return NaN;if(e>=t[i-1])return t[i-1];for(var r=1;r<t.length&&!(e<t[r]);r++)n=t[r];return n}function r(t,e){var i=t.length;if(0===i)return NaN;var n;if(e>t[i-1])return NaN;if(e<t[0])return t[0];for(var r=1;r<t.length;r++)if(e<=t[r]){n=t[r];break}return n}var a=12,s={snapFactorTo:function(t,e,n){if(isNaN(t))return NaN;var r=1;if(0!==t){t<0&&(r=-1);var o=i(t*=r);r*=o,t/=o}t="floor"===n?s.snapFloor(e,t):"ceil"===n?s.snapCeiling(e,t):s.snapTo(e,t);var u=parseFloat((t*r).toPrecision(a));return Math.abs(r)<1&&u.toString().length>a&&(u=t/parseInt(1/r)*(r>0?1:-1)),u},snapMultiple:function(t,e,i){return("ceil"===i?Math.ceil(t/e):"floor"===i?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 s=t[t.length-1];if(s<=e)return s}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 i=e.toString(),n=i.indexOf("."),r=i.indexOf("e-");if(n<0&&r<0)return Math.round(t);var a=r>=0?parseInt(i.substr(r+2),10):i.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))}};t.exports=s},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(14),a=i(20),s=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},i.getText=function(){return this.value.toString()},i.scale=function(t){return this.value!==t&&a(t)?t:this.range[0]},i.invert=function(){return this.value},e}(r);r.Identity=s,t.exports=s},function(t,e,i){"use strict";function n(t){var e=t.slice(0);if(e.length>0){var i=e[0],n=e[e.length-1];0!==i.value&&e.unshift({value:0}),1!==n.value&&e.push({value:1})}return e}var r=i(0),a=i(80),s=i(3),o=i(7).Shape,u=function(){function t(t){this.axisCfg={},this.frontPlot=null,this.backPlot=null,this.axes={},r.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.axisCfg;return!e||!1===e[t]},e._getLinePosition=function(t,e,i,n){var r="",a=t.field,s=this.axisCfg;return s[a]&&s[a].position?r=s[a].position:"x"===e?r=n?"left":"bottom":"y"===e&&(r=i?"right":"left",n&&(r="bottom")),r},e._getLineCfg=function(t,e,i){var n,r,a=1;return"x"===e?(n={x:0,y:0},r={x:1,y:0}):"right"===i?(n={x:1,y:0},r={x:1,y:1}):(n={x:0,y:0},r={x:0,y:1},a=-1),t.transposed&&(a*=-1),{offsetFactor:a,start:t.convertPoint(n),end:t.convertPoint(r)}},e._getCircleCfg=function(t){return{startAngle:t.startAngle,endAngle:t.endAngle,center:t.center,radius:t.circleRadius}},e._getRadiusCfg=function(t){var e,i;return t.transposed?(e={x:0,y:0},i={x:1,y:0}):(e={x:0,y:0},i={x:0,y:1}),{offsetFactor:-1,start:t.convertPoint(e),end:t.convertPoint(i)}},e._getAxisCfg=function(t,e,i,n,a){var u=this,c=this.axisCfg,l=e.getTicks(),h=r.deepMix({ticks:l,frontContainer:this.frontPlot,backContainer:this.backPlot},a,c[e.field]),f=[],p=h.label,g=l.length,d=0,v=0,x=p;return r.each(l,function(t,e){if(r.isFunction(p)){var i=p(t.text,e,g);x=i?r.mix({},s._defaultAxis.label,i):null}if(x){var n={};x.textAlign&&(n.textAlign=x.textAlign),x.textBaseline&&(n.textBaseline=x.textBaseline);var a=new o.Text({className:"axis-label",attrs:r.mix({x:0,y:0,text:t.text,fontFamily:u.chart.get("canvas").get("fontFamily")},x),value:t.value,textStyle:n,top:x.top,context:u.chart.get("canvas").get("context")});f.push(a);var c=a.getBBox(),l=c.width,h=c.height;d=Math.max(d,l),v=Math.max(v,h)}}),h.labels=f,h.maxWidth=d,h.maxHeight=v,h},e._createAxis=function(t,e,i,n,r){void 0===r&&(r="");var a,o,u,c=this,l=t.type,h=t.transposed;if("cartesian"===l||"rect"===l){var f=c._getLinePosition(e,n,r,h);(u=s.axis[f]).position=f,a="Line",o=f}else"x"===n&&!h||"y"===n&&h?(u=s.axis.circle,a="Circle",o="circle"):(u=s.axis.radius,a="Line",o="radius");var p=c._getAxisCfg(t,e,i,n,u);p.type=a,p.dimType=n,p.verticalScale=i,p.index=r,this.axes[o]=p},e.createAxis=function(t,e,i){var s=this;e&&!s._isHide(e.field)&&s._createAxis(t,e,i[0],"x"),r.each(i,function(i,n){s._isHide(i.field)||s._createAxis(t,i,e,"y",n)});var o=this.axes,u=s.chart;if(u._isAutoPadding()){var c=r.parsePadding(u.get("padding")),l=r.parsePadding(u.get("appendPadding")),h=u.get("legendRange")||{top:0,right:0,bottom:0,left:0},f=["auto"===c[0]?h.top+2*l[0]:c[0],"auto"===c[1]?h.right+l[1]:c[1],"auto"===c[2]?h.bottom+l[2]:c[2],"auto"===c[3]?h.left+l[3]:c[3]];if(t.isPolar){var p=o.circle;if(p){var g=p.maxHeight,d=p.maxWidth,v=p.labelOffset;f[0]+=g+v,f[1]+=d+v,f[2]+=g+v,f[3]+=d+v}}else{if(o.right&&"auto"===c[1]){var x=o.right,y=x.maxWidth,m=x.labelOffset;f[1]+=y+m}if(o.left&&"auto"===c[3]){var _=o.left,S=_.maxWidth,P=_.labelOffset;f[3]+=S+P}if(o.bottom&&"auto"===c[2]){var b=o.bottom,w=b.maxHeight,C=b.labelOffset;f[2]+=w+C}}u.set("_padding",f),u._updateLayout(f)}r.each(o,function(e){var i,o=e.type,u=e.grid,c=e.verticalScale,l=e.ticks,h=e.dimType,f=e.position,p=e.index;if(t.isPolar?"Line"===o?i=s._getRadiusCfg(t):"Circle"===o&&(i=s._getCircleCfg(t)):i=s._getLineCfg(t,h,f),u&&c){var g=[],d=n(c.getTicks());r.each(l,function(e){var i=[];r.each(d,function(n){var r="x"===h?e.value:n.value,a="x"===h?n.value:e.value;if(r>=0&&r<=1&&a>=0&&a<=1){var s=t.convertPoint({x:r,y:a});i.push(s)}}),g.push({points:i,_id:"axis-"+h+p+"-grid-"+e.tickValue})}),e.gridPoints=g,t.isPolar&&(e.center=t.center,e.startAngle=t.startAngle,e.endAngle=t.endAngle)}i._id="axis-"+h,r.isNil(p)||(i._id="axis-"+h+p),new a[o](r.mix(e,i))})},e.clear=function(){this.axes={},this.frontPlot.clear(),this.backPlot.clear()},t}();t.exports=u},function(t,e,i){"use strict";var n=i(29);i(81),t.exports=n},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(29),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.start=null,this.end=null},i.getOffsetPoint=function(t){var e=this.start,i=this.end;return{x:e.x+(i.x-e.x)*t,y:e.y+(i.y-e.y)*t}},i.getAxisVector=function(){var t=this.start,e=this.end;return[e.x-t.x,e.y-t.y]},i.drawLine=function(t){var e=this.getContainer(t.top),i=this.start,n=this.end;e.addShape("line",{className:"axis-line",attrs:r.mix({x1:i.x,y1:i.y,x2:n.x,y2:n.y},t)})},e}(a);a.Line=s,t.exports=s},function(t,e,i){"use strict";var n=i(0),r=i(38),a=i(39),s=i(43).requestAnimationFrame,o=function(){function t(t){this._attrs=n.mix({type:"canvas",children:[]},t),this._initPixelRatio(),this._initCanvas()}var e=t.prototype;return e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e._initPixelRatio=function(){this.get("pixelRatio")||this.set("pixelRatio",n.getPixelRatio())},e.beforeDraw=function(){var t=this._attrs.context,e=this._attrs.el;!n.isWx&&!n.isMy&&t&&t.clearRect(0,0,e.width,e.height)},e._initCanvas=function(){var t,e=this,i=e.get("el"),r=e.get("context");if(!(t=r?r.canvas:n.isString(i)?n.getDomById(i):i))throw new Error("Please specify the id or el of the chart!");r&&t&&!t.getContext&&(t.getContext=function(){return r});var a=e.get("width");a||(a=n.getWidth(t));var s=e.get("height");s||(s=n.getHeight(t)),e.set("canvas",this),e.set("el",t),e.set("context",r||t.getContext("2d")),e.changeSize(a,s)},e.changeSize=function(t,e){var i=this.get("pixelRatio"),r=this.get("el");n.isBrowser&&(r.style.width=t+"px",r.style.height=e+"px"),n.isWx||n.isMy||(r.width=t*i,r.height=e*i,1!==i&&this.get("context").scale(i,i)),this.set("width",t),this.set("height",e)},e.getWidth=function(){var t=this.get("pixelRatio");return this.get("width")*t},e.getHeight=function(){var t=this.get("pixelRatio");return this.get("height")*t},e.getPointByClient=function(t,e){var i=this.get("el"),n=i.getBoundingClientRect(),r=n.right-n.left,a=n.bottom-n.top;return{x:(t-n.left)*(i.width/r),y:(e-n.top)*(i.height/a)}},e._beginDraw=function(){this._attrs.toDraw=!0},e._endDraw=function(){this._attrs.toDraw=!1},e.draw=function(){function t(){e.set("animateHandler",s(function(){e.set("animateHandler",void 0),e.get("toDraw")&&t()})),e.beforeDraw();try{for(var i=e._attrs.context,r=e._attrs.children,a=0,o=r.length;a<o;a++)r[a].draw(i);(n.isWx||n.isMy)&&i.draw()}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e._endDraw()}e._endDraw()}var e=this;e.get("destroyed")||(e.get("animateHandler")?this._beginDraw():t())},e.destroy=function(){this.get("destroyed")||(this.clear(),this._attrs={},this.set("destroyed",!0))},e.isDestroyed=function(){return this.get("destroyed")},t}();n.mix(o.prototype,r,{getGroupClass:function(){return a}}),t.exports=o},function(t,e,i){"use strict";function n(t,e){return(t%e+e)%e}function r(t,e){o.each(t,function(t){t=t.split(":"),e.addColorStop(Number(t[0]),t[1])})}function a(t,e,i){var a=t.split(" "),s=a[0].slice(2,a[0].length-1);s=n(parseFloat(s)*Math.PI/180,2*Math.PI);var o,u,c=a.slice(1),l=e.getBBox(),h=l.minX,f=l.minY,p=l.maxX,g=l.maxY;s>=0&&s<.5*Math.PI?(o={x:h,y:f},u={x:p,y:g}):.5*Math.PI<=s&&s<Math.PI?(o={x:p,y:f},u={x:h,y:g}):Math.PI<=s&&s<1.5*Math.PI?(o={x:p,y:g},u={x:h,y:f}):(o={x:h,y:g},u={x:p,y:f});var d=Math.tan(s),v=d*d,x=(u.x-o.x+d*(u.y-o.y))/(v+1)+o.x,y=d*(u.x-o.x+d*(u.y-o.y))/(v+1)+o.y,m=i.createLinearGradient(o.x,o.y,x,y);return r(c,m),m}function s(t,e,i){var n=t.split(" "),a=n[0].slice(2,n[0].length-1);a=a.split(",");var s=parseFloat(a[0]),o=parseFloat(a[1]),u=parseFloat(a[2]),c=n.slice(1);if(0===u)return c[c.length-1].split(":")[1];var l=e.getBBox(),h=l.width,f=l.height,p=l.minX,g=l.minY,d=Math.sqrt(h*h+f*f)/2,v=i.createRadialGradient(p+h*s,g+f*o,u*d,p+h/2,g+f/2,d);return r(c,v),v}var o=i(0);t.exports={parseStyle:function(t,e,i){if("("===t[1])try{var n=t[0];if("l"===n)return a(t,e,i);if("r"===n)return s(t,e,i)}catch(t){console.error("error in parsing gradient string, please check if there are any extra whitespaces."),console.error(t)}return t}}},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(4),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="rect"},i.getDefaultAttrs=function(){return{x:0,y:0,width:0,height:0,radius:0,lineWidth:0}},i.createPath=function(t){var e=this.get("attrs"),i=e.x,n=e.y,a=e.width,s=e.height;t.beginPath();var o=e.radius;o&&a*s?(o=r.parsePadding(o),t.moveTo(i+o[0],n),t.lineTo(i+a-o[1],n),t.arc(i+a-o[1],n+o[1],o[1],-Math.PI/2,0,!1),t.lineTo(i+a,n+s-o[2]),t.arc(i+a-o[2],n+s-o[2],o[2],0,Math.PI/2,!1),t.lineTo(i+o[3],n+s),t.arc(i+o[3],n+s-o[3],o[3],Math.PI/2,Math.PI,!1),t.lineTo(i,n+o[0]),t.arc(i+o[0],n+o[0],o[0],Math.PI,3*Math.PI/2,!1),t.closePath()):t.rect(i,n,a,s)},i.calculateBox=function(){var t=this.get("attrs"),e=t.x,i=t.y;return{minX:e,minY:i,maxX:e+t.width,maxY:i+t.height}},e}(a);a.Rect=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(4),a=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="circle"},i.getDefaultAttrs=function(){return{x:0,y:0,r:0,lineWidth:0}},i.createPath=function(t){var e=this.get("attrs"),i=e.x,n=e.y,r=e.r;t.beginPath(),t.arc(i,n,r,0,2*Math.PI,!1),t.closePath()},i.calculateBox=function(){var t=this.get("attrs"),e=t.x,i=t.y,n=t.r;return{minX:e-n,maxX:e+n,minY:i-n,maxY:i+n}},e}(r);r.Circle=a,t.exports=a},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(4),a=i(12),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.type="line"},i.getDefaultAttrs=function(){return{x1:0,y1:0,x2:0,y2:0,lineWidth:1}},i.createPath=function(t){var e=this.get("attrs"),i=e.x1,n=e.y1,r=e.x2,a=e.y2;t.beginPath(),t.moveTo(i,n),t.lineTo(r,a)},i.calculateBox=function(){var t=this.get("attrs"),e=t.x1,i=t.y1,n=t.x2,r=t.y2,s=t.lineWidth;return a.getBBoxFromLine(e,i,n,r,s)},e}(r);r.Line=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(4),a=i(12),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polygon"},i.getDefaultAttrs=function(){return{points:null,lineWidth:0}},i.createPath=function(t){var e=this.get("attrs").points;t.beginPath();for(var i=0,n=e.length;i<n;i++){var r=e[i];0===i?t.moveTo(r.x,r.y):t.lineTo(r.x,r.y)}t.closePath()},i.calculateBox=function(){var t=this.get("attrs").points;return a.getBBoxFromPoints(t)},e}(r);r.Polygon=s,t.exports=s},function(t,e,i){"use strict";function n(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i];isNaN(r.x)||isNaN(r.y)||e.push(r)}return e}var r=i(1)(i(2)),a=i(4),s=i(44),o=i(12),u=function(t){function e(){return t.apply(this,arguments)||this}(0,r.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polyline"},i.getDefaultAttrs=function(){return{points:null,lineWidth:1,smooth:!1}},i.createPath=function(t){var e=this.get("attrs"),i=e.points,r=e.smooth,a=n(i);if(t.beginPath(),a.length)if(t.moveTo(a[0].x,a[0].y),r)for(var o=[[0,0],[1,1]],u=s.smooth(a,!1,o),c=0,l=u.length;c<l;c++){var h=u[c];t.bezierCurveTo(h[1],h[2],h[3],h[4],h[5],h[6])}else{var f,p;for(f=1,p=a.length-1;f<p;f++)t.lineTo(a[f].x,a[f].y);t.lineTo(a[p].x,a[p].y)}},i.calculateBox=function(){var t=this.get("attrs"),e=t.points,i=t.smooth,r=t.lineWidth,a=n(e);if(i){for(var u=[],c=[[0,0],[1,1]],l=s.smooth(a,!1,c),h=0,f=l.length;h<f;h++){var p=l[h];if(0===h)u.push([a[0].x,a[0].y,p[1],p[2],p[3],p[4],p[5],p[6]]);else{var g=l[h-1];u.push([g[5],g[6],p[1],p[2],p[3],p[4],p[5],p[6]])}}return o.getBBoxFromBezierGroup(u,r)}return o.getBBoxFromPoints(a,r)},e}(a);a.Polyline=u,t.exports=u},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(4),a=i(12),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.canFill=!0,this._attrs.type="arc"},i.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:2*Math.PI,anticlockwise:!1,lineWidth:1}},i.createPath=function(t){var e=this.get("attrs"),i=e.x,n=e.y,r=e.r,a=e.startAngle,s=e.endAngle,o=e.anticlockwise;t.beginPath(),a!==s&&t.arc(i,n,r,a,s,o)},i.calculateBox=function(){var t=this.get("attrs"),e=t.x,i=t.y,n=t.r,r=t.startAngle,s=t.endAngle,o=t.anticlockwise;return a.getBBoxFromArc(e,i,n,r,s,o)},e}(r);r.Arc=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(4),a=i(12),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="sector"},i.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0,r:0,r0:0,startAngle:0,endAngle:2*Math.PI,anticlockwise:!1}},i.createPath=function(t){var e=this.get("attrs"),i=e.x,n=e.y,r=e.startAngle,a=e.endAngle,s=e.r,o=e.r0,u=e.anticlockwise;t.beginPath();var c=Math.cos(r),l=Math.sin(r);t.moveTo(c*o+i,l*o+n),t.lineTo(c*s+i,l*s+n),(Math.abs(a-r)>1e-4||0===r&&a<0)&&(t.arc(i,n,s,r,a,u),t.lineTo(Math.cos(a)*o+i,Math.sin(a)*o+n),0!==o&&t.arc(i,n,o,a,r,!u)),t.closePath()},i.calculateBox=function(){var t=this.get("attrs"),e=t.x,i=t.y,n=t.r,r=t.r0,s=t.startAngle,o=t.endAngle,u=t.anticlockwise,c=a.getBBoxFromArc(e,i,n,s,o,u),l=a.getBBoxFromArc(e,i,r,s,o,u);return{minX:Math.min(c.minX,l.minX),minY:Math.min(c.minY,l.minY),maxX:Math.max(c.maxX,l.maxX),maxY:Math.max(c.maxY,l.maxY)}},e}(r);r.Sector=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(4),s=i(92),o=0,u={},c=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="text"},i.getDefaultAttrs=function(){return{lineWidth:0,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null}},i._getFontStyle=function(){var t=this._attrs.attrs,e=t.fontSize,i=t.fontFamily,n=t.fontWeight;return t.fontStyle+" "+t.fontVariant+" "+n+" "+e+"px "+i},i._afterAttrsSet=function(){var t=this._attrs.attrs;if(t.font=this._getFontStyle(),t.text){var e=t.text,i=null,n=1;r.isString(e)&&-1!==e.indexOf("\n")&&(n=(i=e.split("\n")).length),t.lineCount=n,t.textArr=i}this.set("attrs",t)},i._getTextHeight=function(){var t=this._attrs.attrs;if(t.height)return t.height;var e=t.lineCount,i=1*t.fontSize;return e>1?i*e+this._getSpaceingY()*(e-1):i},i._getSpaceingY=function(){var t=this._attrs.attrs,e=t.lineHeight,i=1*t.fontSize;return e?e-i:.14*i},i.drawInner=function(t){var e=this,i=e._attrs.attrs,n=i.text,a=i.x,s=i.y;if(!(r.isNil(n)||isNaN(a)||isNaN(s))){var o=i.textArr,u=1*i.fontSize,c=e._getSpaceingY();i.rotate&&(t.translate(a,s),t.rotate(i.rotate),a=0,s=0);var l,h=i.textBaseline;o&&(l=e._getTextHeight());var f;if(e.hasFill()){var p=i.fillOpacity;if(r.isNil(p)||1===p||(t.globalAlpha=p),o)for(var g=0,d=o.length;g<d;g++){var v=o[g];f=s+g*(c+u)-l+u,"middle"===h&&(f+=l-u-(l-u)/2),"top"===h&&(f+=l-u),t.fillText(v,a,f)}else t.fillText(n,a,s)}if(e.hasStroke())if(o)for(var x=0,y=o.length;x<y;x++){var m=o[x];f=s+x*(c+u)-l+u,"middle"===h&&(f+=l-u-(l-u)/2),"top"===h&&(f+=l-u),t.strokeText(m,a,f)}else t.strokeText(n,a,s)}},i.calculateBox=function(){var t=this,e=t._attrs.attrs,i=e.x,n=e.y,r=e.textAlign,a=e.textBaseline,o=t._getTextWidth();if(!o)return{minX:i,minY:n,maxX:i,maxY:n};var u=t._getTextHeight();if(e.rotate){var c=s.calcRotatedBox({width:o,height:u,rotate:e.rotate});o=c.width,u=c.height}var l={x:i,y:n-u};return r&&("end"===r||"right"===r?l.x-=o:"center"===r&&(l.x-=o/2)),a&&("top"===a?l.y+=u:"middle"===a&&(l.y+=u/2)),{minX:l.x,minY:l.y,maxX:l.x+o,maxY:l.y+u}},i._getTextWidth=function(){var t=this._attrs.attrs;if(t.width)return t.width;var e=t.text,i=this.get("context");if(!r.isNil(e)){var n=t.font,a=t.textArr,s=e+""+n;if(u[s])return u[s];var c=0;if(a)for(var l=0,h=a.length;l<h;l++){var f=a[l];c=Math.max(c,r.measureText(f,n,i).width)}else c=r.measureText(e,n,i).width;return o>5e3&&(o=0,u={}),o++,u[s]=c,c}},e}(a);a.Text=c,t.exports=c},function(t,e,i){"use strict";var n={calcRotatedBox:function(t){var e=t.width,i=t.height,n=t.rotate,r=Math.abs(n);return{width:Math.abs(e*Math.cos(r)+i*Math.sin(r)),height:Math.abs(i*Math.cos(r)+e*Math.sin(r))}}};t.exports=n},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(4),a=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.createPath=null,this._attrs.type="custom"},i.createPath=function(t){var e=this.get("createPath");e&&e.call(this,t)},i.calculateBox=function(){var t=this.get("calculateBox");return t&&t.call(this)},e}(r);r.Custom=a,t.exports=a},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(45),a=i(8);i(40);var s=function(t){function e(){return t.apply(this,arguments)||this}return(0,n.default)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(r);a.Line=s,t.exports=s},function(t,e,i){"use strict";var n=i(1),r=n(i(15)),a=n(i(2)),s=i(8),o=i(0),u=i(46);i(96);var c=function(t){function e(e){var i;return i=t.call(this,e)||this,o.mix((0,r.default)(i),u),i}(0,a.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},i.createShapePointsCfg=function(e){var i=t.prototype.createShapePointsCfg.call(this,e);return i.size=this.getNormalizedSize(e),i},i.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(s);s.Interval=c,t.exports=c},function(t,e,i){"use strict";function n(t){var e=t.x,i=t.y,n=t.y0,r=t.size,s=n,o=i;a.isArray(i)&&(o=i[1],s=i[0]);var u,c;return a.isArray(e)?(u=e[0],c=e[1]):(u=e-r/2,c=e+r/2),[{x:u,y:s},{x:u,y:o},{x:c,y:o},{x:c,y:s}]}function r(t){for(var e=[],i=[],n=0,r=t.length;n<r;n++){var a=t[n];e.push(a.x),i.push(a.y)}var s=Math.min.apply(null,e),o=Math.min.apply(null,i);return{x:s,y:o,width:Math.max.apply(null,e)-s,height:Math.max.apply(null,i)-o}}var a=i(0),s=i(10),o=i(5),u=i(3),c=s.registerFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return n(t)}});s.registerShape("interval","rect",{draw:function(t,e){var i=this.parsePoints(t.points),n=a.mix({fill:t.color},u.shape.interval,t.style);if(t.isInCircle){var s=i.slice(0);this._coord.transposed&&(s=[i[0],i[3],i[2],i[1]]);var c=t.center,l=c.x,h=c.y,f=[1,0],p=[s[0].x-l,s[0].y-h],g=[s[1].x-l,s[1].y-h],d=[s[2].x-l,s[2].y-h],v=o.angleTo(f,g),x=o.angleTo(f,d),y=o.length(p),m=o.length(g);return v>=1.5*Math.PI&&(v-=2*Math.PI),x>=1.5*Math.PI&&(x-=2*Math.PI),e.addShape("Sector",{className:"interval",attrs:a.mix({x:l,y:h,r:m,r0:y,startAngle:v,endAngle:x},n)})}var _=r(i);return e.addShape("rect",{className:"interval",attrs:a.mix(_,n)})}}),t.exports=c},function(t,e,i){"use strict";t.exports={Stack:i(98),Dodge:i(100)}},function(t,e,i){"use strict";var n=i(99);t.exports=n},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(16),a=i(11),s=i(26),o=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.xField=null,this.yField=null},i.processAdjust=function(t){this.processStack(t)},i.processStack=function(t){var e=this,i=e.xField,n=e.yField,s=t.length,o={positive:{},negative:{}};e.reverseOrder&&(t=t.slice(0).reverse());for(var u=0;u<s;u++)for(var c=t[u],l=0,h=c.length;l<h;l++){var f=c[l],p=f[i]||0,g=f[n],d=p.toString();if(g=r(g)?g[1]:g,!a(g)){var v=g>=0?"positive":"negative";o[v][d]||(o[v][d]=0),f[n]=[o[v][d],g+o[v][d]],o[v][d]+=g}}},e}(s);s.Stack=o,t.exports=o},function(t,e,i){"use strict";var n=i(101);t.exports=n},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(26),a=i(6),s=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},i.getDodgeOffset=function(t,e,i){var n=this,r=t.pre,a=t.next,s=a-r,o=s*n.dodgeRatio/i,u=n.marginRatio*o;return(r+a)/2+(.5*(s-i*o-(i-1)*u)+((e+1)*o+e*u)-.5*o-.5*s)},i.processAdjust=function(t){var e=this,i=t.length,n=e.xField;a(t,function(t,r){for(var a=0,s=t.length;a<s;a++){var o=t[a],u=o[n],c={pre:1===s?u-1:u-.5,next:1===s?u+1:u+.5},l=e.getDodgeOffset(c,r,i);o[n]=l}})},e}(r);r.Dodge=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(24),a=i(5),s=i(27),o=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="polar",this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.inner=0,this.innerRadius=0,this.isPolar=!0,this.transposed=!1,this.center=null,this.radius=null},i.init=function(t,e){var i,n,r=this,a=r.inner||r.innerRadius,s=Math.abs(e.x-t.x),o=Math.abs(e.y-t.y);r.startAngle===-Math.PI&&0===r.endAngle?(i=Math.min(s/2,o),n={x:(t.x+e.x)/2,y:t.y}):(i=Math.min(s,o)/2,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2});var u=r.radius;u>0&&u<=1&&(i*=u),this.x={start:r.startAngle,end:r.endAngle},this.y={start:i*a,end:i},this.center=n,this.circleRadius=i},i.convertPoint=function(t){var e=this,i=e.center,n=e.transposed,r=n?"y":"x",a=n?"x":"y",s=e.x,o=e.y,u=s.start+(s.end-s.start)*t[r],c=o.start+(o.end-o.start)*t[a];return{x:i.x+Math.cos(u)*c,y:i.y+Math.sin(u)*c}},i.invertPoint=function(t){var e=this,i=e.center,n=e.transposed,r=e.x,o=e.y,u=n?"y":"x",c=n?"x":"y",l=[1,0,0,1,0,0];s.rotate(l,l,r.start);var h=[1,0];a.transformMat2d(h,h,l),h=[h[0],h[1]];var f=[t.x-i.x,t.y-i.y];if(a.zero(f))return{x:0,y:0};var p=a.angleTo(h,f,r.end<r.start);Math.abs(p-2*Math.PI)<.001&&(p=0);var g=a.length(f),d=p/(r.end-r.start);d=r.end-r.start>0?d:-d;var v=(g-o.start)/(o.end-o.start),x={};return x[u]=d,x[c]=v,x},e}(r);r.Polar=o,t.exports=o},function(t,e,i){var n=i(21),r=i(122);t.exports={toTimeStamp:function(t){return n(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r(t)&&(t=t.getTime()),t}}},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a={circle:function(t,e,i,n){n.arc(t,e,i,0,2*Math.PI,!1)},square:function(t,e,i,n){n.moveTo(t-i,e-i),n.lineTo(t+i,e-i),n.lineTo(t+i,e+i),n.lineTo(t-i,e+i),n.closePath()}},s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="marker"},i.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0}},i.createPath=function(t){var e,i=this.get("attrs"),n=i.x,s=i.y,o=i.radius,u=i.symbol||"circle";e=r.isFunction(u)?u:a[u],t.beginPath(),e(n,s,o,t,this)},i.calculateBox=function(){var t=this.get("attrs"),e=t.x,i=t.y,n=t.radius;return{minX:e-n,minY:i-n,maxX:e+n,maxY:i+n}},e}(i(7).Shape);t.exports=s},function(t,e,i){"use strict";var n=i(0),r=i(7).Group,a=i(104),s=function(){function t(t){n.deepMix(this,this.getDefaultCfg(),t),this._init(),this._renderTitle(),this._renderItems()}var e=t.prototype;return e.getDefaultCfg=function(){return{showTitle:!1,title:null,items:null,titleGap:12,itemGap:10,itemMarginBottom:12,itemFormatter:null,itemWidth:null,wordSpace:6,x:0,y:0,layout:"horizontal",joinString:": "}},e._init=function(){var t=new r({zIndex:this.zIndex||0});this.container=t;var e=t.addGroup();this.wrapper=e;var i=e.addGroup({className:"itemsGroup"});this.itemsGroup=i,this.parent&&this.parent.add(t)},e._renderTitle=function(t){t=t||this.title;var e=this.titleShape,i=0;if(this.showTitle&&t){if(e&&!e.get("destroyed"))e.attr("text",t);else{var r=this.wrapper,a=this.titleStyle;e=r.addShape("text",{className:"title",attrs:n.mix({x:0,y:0,text:t},a)}),this.titleShape=e}i=e.getBBox().height+this.titleGap}this._titleHeight=i},e._renderItems=function(t){var e=this;(t=t||e.items)&&(e.reversed&&t.reverse(),n.each(t,function(t,i){e._addItem(t,i)}),t.length>1&&this._adjustItems(),this._renderBackground())},e._renderBackground=function(){var t=this.background;if(t){var e=this.container,i=this.wrapper.getBBox(),r=i.minX,a=i.minY,s=i.width,o=i.height,u=t.padding||[0,0,0,0];u=n.parsePadding(u);var c=n.mix({x:r-u[3],y:a-u[0],width:s+u[1]+u[3],height:o+u[0]+u[2]},t),l=this.backShape;l?l.attr(c):l=e.addShape("Rect",{zIndex:-1,attrs:c}),this.backShape=l,e.sort()}},e._addItem=function(t){var e=this.itemsGroup.addGroup({name:t.name,value:t.value,dataValue:t.dataValue,checked:t.checked}),i=this.unCheckStyle,r=this.unCheckColor,s=this.nameStyle,o=this.valueStyle,u=this.wordSpace,c=t.marker,l=t.value,h=0;if(r&&(i.fill=r),c){var f=c.radius||3,p=n.mix({x:f,y:this._titleHeight},c);!1===t.checked&&n.mix(p,i);var g=new a({className:"item-marker",attrs:p});e.add(g),h+=g.getBBox().width+u}var d,v=t.name;if(v){var x=this.joinString||"";v=l?v+x:v,d=e.addShape("text",{className:"name",attrs:n.mix({x:h,y:this._titleHeight,text:this._formatItemValue(v)},s,!1===t.checked?i:null)})}if(l){var y=h;d&&(y+=d.getBBox().width),e.addShape("text",{className:"value",attrs:n.mix({x:y,y:this._titleHeight,text:l},o,!1===t.checked?i:null)})}return e},e._formatItemValue=function(t){var e=this.itemFormatter;return e&&(t=e.call(this,t)),t},e._getMaxItemWidth=function(){var t=this.itemWidth;if(n.isNumber(t)||n.isNil(t))return t;if("auto"===t){for(var e=this.itemsGroup.get("children"),i=e.length,r=0,a=0;a<i;a++){var s=e[a].getBBox().width;r=Math.max(r,s)}var o=this.maxLength,u=this.itemGap,c=(o-u)/2,l=(o-2*u)/3;return 2===i?Math.max(r,c):r<=l?l:r<=c?c:r}},e._adjustHorizontal=function(){for(var t,e,i=this.maxLength,n=this.itemsGroup.get("children"),r=this.itemGap,a=this.itemMarginBottom,s=this._titleHeight,o=0,u=0,c=this._getMaxItemWidth(),l=[],h=0,f=n.length;h<f;h++){var p=n[h],g=p.getBBox(),d=g.height,v=g.width;e=d+a,(t=c||v)-(i-u)>1e-4&&(o++,u=0),p.moveTo(u,o*e),l.push({x:u,y:o*e+s-d/2,width:1.375*v,height:1.375*d}),u+=t+r}this.legendHitBoxes=l},e._adjustVertical=function(){for(var t,e,i=this.maxLength,r=this.itemsGroup,a=this.itemGap,s=this.itemMarginBottom,o=this.itemWidth,u=this._titleHeight,c=r.get("children"),l=0,h=0,f=0,p=[],g=0,d=c.length;g<d;g++){var v=c[g],x=v.getBBox();t=x.width,e=x.height,n.isNumber(o)?h=o+a:t>h&&(h=t+a),i-l<e?(l=0,f+=h,v.moveTo(f,0),p.push({x:f,y:u-e/2,width:1.375*t,height:1.375*e})):(v.moveTo(f,l),p.push({x:f,y:l-e/2+u,width:1.375*t,height:1.375*e})),l+=e+s}this.legendHitBoxes=p},e._adjustItems=function(){"horizontal"===this.layout?this._adjustHorizontal():this._adjustVertical()},e.moveTo=function(t,e){this.x=t,this.y=e;var i=this.container;return i&&i.moveTo(t,e),this},e.setItems=function(t){this.clearItems(),this._renderItems(t)},e.setTitle=function(t){this._renderTitle(t)},e.clearItems=function(){this.itemsGroup.clear()},e.getWidth=function(){return this.container.getBBox().width},e.getHeight=function(){return this.container.getBBox().height},e.show=function(){this.container.show()},e.hide=function(){this.container.hide()},e.clear=function(){var t=this.container;t.clear(),t.remove(!0)},t}();t.exports=s},function(t,e,i){"use strict";var n=i(0),r={appear:{duration:450,easing:"quadraticOut"},update:{duration:300,easing:"quadraticOut"},enter:{duration:300,easing:"quadraticOut"},leave:{duration:350,easing:"quadraticIn"}},a={defaultCfg:{},Action:{},getAnimation:function(t,e,i){var r=this.defaultCfg[t];if(r){var a=r[i];if(n.isFunction(a))return a(e)}return!1},getAnimateCfg:function(t,e){var i=r[e],a=this.defaultCfg[t];return a&&a.cfg&&a.cfg[e]?n.deepMix({},i,a.cfg[e]):i},registerAnimation:function(t,e){this.Action||(this.Action={}),this.Action[t]=e}};t.exports=a},function(t,e,i){"use strict";var n=i(7).Matrix,r=i(0),a={getCoordInfo:function(t){var e=t.start,i=t.end;return{start:e,end:i,width:i.x-e.x,height:Math.abs(i.y-e.y)}},getScaledMatrix:function(t,e,i){var r;t.apply(e);var a=e[0],s=e[1];if("x"===i){t.transform([["t",a,s],["s",.01,1],["t",-a,-s]]);var o=t.getMatrix();r=n.transform(o,[["t",a,s],["s",100,1],["t",-a,-s]])}else if("y"===i){t.transform([["t",a,s],["s",1,.01],["t",-a,-s]]);var u=t.getMatrix();r=n.transform(u,[["t",a,s],["s",1,100],["t",-a,-s]])}else if("xy"===i){t.transform([["t",a,s],["s",.01,.01],["t",-a,-s]]);var c=t.getMatrix();r=n.transform(c,[["t",a,s],["s",100,100],["t",-a,-s]])}return r},getAnimateParam:function(t,e,i){var n={};return t.delay&&(n.delay=r.isFunction(t.delay)?t.delay(e,i):t.delay),n.easing=t.easing,n.duration=t.duration,n.delay=t.delay,n},doAnimation:function(t,e,i,n){var r=t._id,s=t.get("index"),o=a.getAnimateParam(i,s,r),u=o.easing,c=o.delay,l=o.duration,h=t.animate().to({attrs:e,duration:l,delay:c,easing:u});n&&h.onEnd(function(){n()})}};t.exports=a},,function(t,e,i){"use strict";var n=i(8);i(110),i(45),i(94),i(112),i(95),i(114),i(116),t.exports=n},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(8);i(111);var s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},i.draw=function(t,e){var i=this,n=i.get("container");r.each(t,function(t){var a=t.shape,s=i.getDrawCfg(t);if(r.isArray(t.y)){var o=i.hasAdjust("stack");r.each(t.y,function(r,u){s.y=r,o&&0===u||i.drawShape(a,t,s,n,e)})}else r.isNil(t.y)||i.drawShape(a,t,s,n,e)})},e}(a);a.Point=s,t.exports=s},function(t,e,i){"use strict";function n(t){var e={lineWidth:0,stroke:t.color,fill:t.color};return t.size&&(e.size=t.size),a.mix(e,t.style),a.mix({},s.shape.point,e)}function r(t,e,i){if(0!==t.size){var r=n(t),s=r.r||r.size,o=t.x,u=a.isArray(t.y)?t.y:[t.y];"hollowCircle"===i&&(r.lineWidth=1,r.fill=null);for(var c=0,l=u.length;c<l;c++)return"rect"===i?e.addShape("Rect",{className:"point",attrs:a.mix({x:o-s,y:u[c]-s,width:2*s,height:2*s},r)}):e.addShape("Circle",{className:"point",attrs:a.mix({x:o,y:u[c],r:s},r)})}}var a=i(0),s=i(3),o=i(22),u=i(10),c=["circle","hollowCircle","rect"],l=u.registerFactory("point",{defaultShapeType:"circle",getDefaultPoints:function(t){return o.splitPoints(t)}});a.each(c,function(t){u.registerShape("point",t,{draw:function(e,i){return r(e,i,t)}})}),t.exports=l},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(8),a=i(22),s=i(0);i(113);var o=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},i.draw=function(t,e){var i=this,n=i.get("container"),r=this.getDrawCfg(t[0]),o=i.getYScale(),u=i.get("connectNulls"),c=a.splitArray(t,o.field,u);r.origin=t,s.each(c,function(a,s){r.splitedIndex=s;var o=a.map(function(t){return t.points});r.points=o,i.drawShape(r.shape,t[0],r,n,e)})},e}(r);r.Area=o,t.exports=o},function(t,e,i){"use strict";function n(t,e){return Math.abs(t-e)<1e-5}function r(t){return!isNaN(t)&&!c.isNil(t)}function a(t){for(var e=[],i=0,n=t.length;i<n;i++){var a=t[i];r(a.x)&&r(a.y)&&e.push(a)}return e}function s(t,e){var i=!0;return c.each(t,function(t){if(!n(t.x,e.x)||!n(t.y,e.y))return i=!1,!1}),i}function o(t,e,i,n,r){var s=t.concat(e);return r?i.addShape("Custom",{className:"area",attrs:c.mix({points:s},n),createPath:function(t){var e=[[0,0],[1,1]],i=a(this._attrs.attrs.points),n=i.length,r=i.slice(0,n/2),s=i.slice(n/2,n),o=h.smooth(r,!1,e);t.beginPath(),t.moveTo(r[0].x,r[0].y);for(var u=0,c=o.length;u<c;u++){var l=o[u];t.bezierCurveTo(l[1],l[2],l[3],l[4],l[5],l[6])}if(s.length){var f=h.smooth(s,!1,e);t.lineTo(s[0].x,s[0].y);for(var p=0,g=f.length;p<g;p++){var d=f[p];t.bezierCurveTo(d[1],d[2],d[3],d[4],d[5],d[6])}}t.closePath()},calculateBox:function(){var t=a(this._attrs.attrs.points);return f.getBBoxFromPoints(t)}}):i.addShape("Polyline",{className:"area",attrs:c.mix({points:s},n)})}function u(t,e,i){var n=this,r=t.points,a=[],u=[];c.each(r,function(t){u.push(t[0]),a.push(t[1])});var l=c.mix({fillStyle:t.color},p.shape.area,t.style);return u.reverse(),a=n.parsePoints(a),u=n.parsePoints(u),t.isInCircle&&(a.push(a[0]),u.unshift(u[u.length-1]),s(u,t.center)&&(u=[])),o(a,u,e,l,i)}var c=i(0),l=i(10),h=i(44),f=i(12),p=i(3),g=l.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,i=t.y,n=t.y0;i=c.isArray(i)?i:[n,i];var r=[];return r.push({x:e,y:i[0]},{x:e,y:i[1]}),r}}),d=["area","smooth"];c.each(d,function(t){l.registerShape("area",t,{draw:function(e,i){var n="smooth"===t;return u.call(this,e,i,n)}})}),t.exports=g},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(8),a=i(0);i(115);var s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},i.createShapePointsCfg=function(e){var i,n=t.prototype.createShapePointsCfg.call(this,e),r=this,s=n.x,o=n.y;if(!a.isArray(s)||!a.isArray(o)){var u=r.getXScale(),c=r.getYScale(),l=.5/(u.values?u.values.length:u.ticks.length),h=.5/(c.values?c.values.length:c.ticks.length);u.isCategory&&c.isCategory?(s=[s-l,s-l,s+l,s+l],o=[o-h,o+h,o+h,o-h]):a.isArray(s)?(s=[(i=s)[0],i[0],i[1],i[1]],o=[o-h/2,o+h/2,o+h/2,o-h/2]):a.isArray(o)&&(o=[(i=o)[0],i[1],i[1],i[0]],s=[s-l/2,s-l/2,s+l/2,s+l/2]),n.x=s,n.y=o}return n},e}(r);r.Polygon=s,t.exports=s},function(t,e,i){"use strict";var n=i(10),r=i(0),a=n.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){for(var e=[],i=t.x,n=t.y,r=0,a=i.length;r<a;r++)e.push({x:i[r],y:n[r]});return e}});n.registerShape("polygon","polygon",{draw:function(t,e){var i=this.parsePoints(t.points),n=r.mix({fill:t.color,points:i},t.style);return e.addShape("Polygon",{className:"polygon",attrs:n})}}),t.exports=a},function(t,e,i){"use strict";var n=i(1),r=n(i(15)),a=n(i(2)),s=i(8),o=i(0),u=i(46);i(117);var c=function(t){function e(e){var i;return i=t.call(this,e)||this,o.mix((0,r.default)(i),u),i}(0,a.default)(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},i.createShapePointsCfg=function(e){var i=t.prototype.createShapePointsCfg.call(this,e);return i.size=this.getNormalizedSize(e),i},i.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(s);s.Schema=c,t.exports=c},function(t,e,i){"use strict";function n(t){var e=t.sort(function(t,e){return t<e?1:-1}),i=e.length;if(i<4)for(var n=e[i-1],r=0;r<4-i;r++)e.push(n);return e}function r(t,e,i){var r=n(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-i/2,y:r[2]},{x:t-i/2,y:r[1]},{x:t+i/2,y:r[1]},{x:t+i/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}var a=i(10),s=i(0),o=a.registerFactory("schema",{});a.registerShape("schema","candle",{getPoints:function(t){return r(t.x,t.y,t.size)},draw:function(t,e){var i=this.parsePoints(t.points),n=s.mix({stroke:t.color,fill:t.color,lineWidth:1},t.style);return e.addShape("Custom",{className:"schema",attrs:n,createPath:function(t){t.beginPath(),t.moveTo(i[0].x,i[0].y),t.lineTo(i[1].x,i[1].y),t.moveTo(i[2].x,i[2].y);for(var e=3;e<6;e++)t.lineTo(i[e].x,i[e].y);t.closePath(),t.moveTo(i[6].x,i[6].y),t.lineTo(i[7].x,i[7].y)}})}}),t.exports=o},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(29),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.radius=null,this.center=null},i.getOffsetPoint=function(t){var e=this.startAngle,i=e+(this.endAngle-e)*t;return this._getCirclePoint(i)},i._getCirclePoint=function(t,e){var i=this,n=i.center;return e=e||i.radius,{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},i.getTextAlignInfo=function(t,e){var i,n=this.getOffsetVector(t,e),r="middle";return n[0]>0?i="left":n[0]<0?i="right":(i="center",n[1]>0?r="top":n[1]<0&&(r="bottom")),{textAlign:i,textBaseline:r}},i.getAxisVector=function(t){var e=this.center,i=this.offsetFactor;return[(t.y-e.y)*i,-1*(t.x-e.x)*i]},i.drawLine=function(t){var e=this.center,i=this.radius,n=this.startAngle,a=this.endAngle;this.getContainer(t.top).addShape("arc",{className:"axis-line",attrs:r.mix({x:e.x,y:e.y,r:i,startAngle:n,endAngle:a},t)})},e}(a);a.Circle=s,t.exports=s},function(t,e,i){"use strict";var n=i(120);t.exports=n},function(t,e,i){function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=i(14),a=i(41),s=i(121),o=i(42),u=i(103),c=i(6),l=i(20),h=i(28),f=i(21),p=function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},i.init=function(){var t=this,e=this.values;c(e,function(i,n){e[n]=t._toTimeStamp(i)}),this.sortable&&e.sort(function(t,e){return t-e}),t.ticks||(t.ticks=this.calculateTicks())},i.calculateTicks=function(){var t=this,e=t.tickCount;return e?o({maxCount:e,data:t.values,isRounding:t.isRounding}).ticks:t.values},i.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},i.scale=function(t){var e,i=this.rangeMin(),n=this.rangeMax(),r=this.translate(t);return e=1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0,i+e*(n-i)},i.getText=function(t){var e="",i=this.translate(t);e=i>-1?this.values[i]:t;var n=this.formatter;return e=parseInt(e,10),e=n?n(e):s.format(e,this.mask)},i.getTicks=function(){var t=this,e=this.ticks,i=[];return c(e,function(e){var n;n=h(e)?e:{text:f(e)?e:t.getText(e),value:t.scale(e),tickValue:e},i.push(n)}),i},i._toTimeStamp=function(t){return u.toTimeStamp(t)},e}(a);r.TimeCat=p,t.exports=p},function(t,e,i){var n;!function(r){"use strict";function a(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i.push(t[n].substr(0,e));return i}function s(t){return function(e,i,n){var r=n[t].indexOf(i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());~r&&(e.month=r)}}function o(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=/\d{3}/,f=/\d{4}/,p=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,g=/\[([^]*?)\]/gm,d=function(){},v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],x=["January","February","March","April","May","June","July","August","September","October","November","December"],y=a(x,3),m=a(v,3);u.i18n={dayNamesShort:m,dayNames:v,monthNamesShort:y,monthNames:x,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var _={D:function(t){return t.getDate()},DD:function(t){return o(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return o(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 o(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 o(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return o(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return o(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return o(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return o(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return o(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return o(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?"-":"+")+o(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},S={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var i=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?i-1:i)+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:[f,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:[h,function(t,e){t.millisecond=e}],d:[l,d],ddd:[p,d],MMM:[p,s("monthNamesShort")],MMMM:[p,s("monthNames")],a:[p,function(t,e,i){var n=e.toLowerCase();n===i.amPm[0]?t.isPm=!1:n===i.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var i,n=(e+"").match(/([\+\-]|\d\d)/gi);n&&(i=60*n[1]+parseInt(n[2],10),t.timezoneOffset="+"===n[0]?i:-i)}]};S.dd=S.d,S.dddd=S.ddd,S.DD=S.D,S.mm=S.m,S.hh=S.H=S.HH=S.h,S.MM=S.M,S.ss=S.s,S.A=S.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,i){var n=i||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 r=[];return e=(e=u.masks[e]||e||u.masks.default).replace(g,function(t,e){return r.push(e),"??"}),(e=e.replace(c,function(e){return e in _?_[e](t,n):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return r.shift()})},u.parse=function(t,e,i){var n=i||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 r=!0,a={};if(e.replace(c,function(e){if(S[e]){var i=S[e],s=t.search(i[0]);~s?t.replace(i[0],function(e){return i[1](a,e,n),t=t.substr(s+e.length),e}):r=!1}return S[e]?"":e.slice(1,e.length-1)}),!r)return!1;var s=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 o;return null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,o=new Date(Date.UTC(a.year||s.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):o=new Date(a.year||s.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),o},void 0!==t&&t.exports?t.exports=u:void 0!==(n=function(){return u}.call(e,i,e,t))&&(t.exports=n)}()},function(t,e,i){var n=i(19);t.exports=function(t){return n(t,"Date")}},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(13),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="arc",this.start=[],this.end=[],this.style={stroke:"#999",lineWidth:1}},i.render=function(t,e){var i=this,n=i.parsePoint(t,i.start),a=i.parsePoint(t,i.end);if(n&&a){var s=t.center,o=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),u=Math.atan2(n.y-s.y,n.x-s.x),c=Math.atan2(a.y-s.y,a.x-s.x),l=e.addShape("arc",{className:"guide-arc",attrs:r.mix({x:s.x,y:s.y,r:o,startAngle:u,endAngle:c},i.style)});return i.element=l,l}},e}(a);a.Arc=s,t.exports=s},function(t,e,i){"use strict";function n(t,e,i,n){var r=[];return"left"===t&&"top"===e?(r[0]=0,r[1]=0):"right"===t&&"top"===e?(r[0]=-i,r[1]=0):"left"===t&&"bottom"===e?(r[0]=0,r[1]=Math.floor(-n)):"right"===t&&"bottom"===e?(r[0]=Math.floor(-i),r[1]=Math.floor(-n)):"right"===t&&"middle"===e?(r[0]=Math.floor(-i),r[1]=Math.floor(-n/2)):"left"===t&&"middle"===e?(r[0]=0,r[1]=Math.floor(-n/2)):"center"===t&&"bottom"===e?(r[0]=Math.floor(-i/2),r[1]=Math.floor(-n)):"center"===t&&"top"===e?(r[0]=Math.floor(-i/2),r[1]=0):(r[0]=Math.floor(-i/2),r[1]=Math.floor(-n/2)),r}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i]);return t}function a(t){var e=document.createElement("div");return t=t.replace(/(^\s*)|(\s*$)/g,""),e.innerHTML=""+t,e.childNodes[0]}var s=i(1)(i(2)),o=i(0),u=i(13),c=function(t){function e(){return t.apply(this,arguments)||this}(0,s.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="html",this.position=null,this.alignX="center",this.alignY="middle",this.offsetX=null,this.offsetY=null,this.html=null},i.render=function(t,e){var i=this,s=i.parsePoint(t,i.position);if(s){var u=a(i.html);u=r(u,{position:"absolute",top:Math.floor(s.y)+"px",left:Math.floor(s.x)+"px",visibility:"hidden"});var c=e.get("canvas").get("el"),l=c.parentNode;l=r(l,{position:"relative"});var h=a('<div class="guideWapper" style="position: absolute;top: 0; left: 0;"></div>');l.appendChild(h),h.appendChild(u);var f=c.offsetTop,p=c.offsetLeft,g=i.alignX,d=i.alignY,v=i.offsetX,x=i.offsetY,y=n(g,d,o.getWidth(u),o.getHeight(u));s.x=s.x+y[0]+p,s.y=s.y+y[1]+f,v&&(s.x+=v),x&&(s.y+=x),r(u,{top:Math.floor(s.y)+"px",left:Math.floor(s.x)+"px",visibility:"visible"}),i.element=h}},i.remove=function(){var t=this.element;t&&t.parentNode&&t.parentNode.removeChild(t)},e}(u);u.Html=c,t.exports=c},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(13),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="line",this.start=[],this.end=[],this.style={stroke:"#000",lineWidth:1}},i.render=function(t,e){var i=[];if(i[0]=this.parsePoint(t,this.start),i[1]=this.parsePoint(t,this.end),i[0]&&i[1]){var n=e.addShape("Line",{className:"guide-line",attrs:r.mix({x1:i[0].x,y1:i[0].y,x2:i[1].x,y2:i[1].y},this.style)});return this.element=n,n}},e}(a);a.Line=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(13),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="rect",this.start=[],this.end=[],this.style={fill:"#CCD7EB",opacity:.4}},i.render=function(t,e){var i=this.parsePoint(t,this.start),n=this.parsePoint(t,this.end);if(i&&n){var a=e.addShape("rect",{className:"guide-rect",attrs:r.mix({x:Math.min(i.x,n.x),y:Math.min(i.y,n.y),width:Math.abs(n.x-i.x),height:Math.abs(i.y-n.y)},this.style)});return this.element=a,a}},e}(a);a.Rect=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(13),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="text",this.position=null,this.content=null,this.style={fill:"#000"},this.offsetX=0,this.offsetY=0},i.render=function(t,e){var i=this.position,n=this.parsePoint(t,i);if(n){var a=this.content,s=this.style,o=this.offsetX,u=this.offsetY;o&&(n.x+=o),u&&(n.y+=u);var c=e.addShape("text",{className:"guide-text",attrs:r.mix({x:n.x,y:n.y,text:a},s)});return this.element=c,c}},e}(a);a.Text=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(13),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="tag",this.position=null,this.content=null,this.direct="tl",this.autoAdjust=!0,this.offsetX=0,this.offsetY=0,this.side=4,this.background={padding:5,radius:2,fill:"#1890FF"},this.textStyle={fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},this.withPoint=!0,this.pointStyle={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},i._getDirect=function(t,e,i,n){var r=this.direct,a=this.side,s=t.get("canvas"),o=s.get("width"),u=s.get("height"),c=e.x,l=e.y,h=r[0],f=r[1];"t"===h&&l-a-n<0?h="b":"b"===h&&l+a+n>u&&(h="t");var p="c"===h?a:0;return"l"===f&&c-p-i<0?f="r":"r"===f&&c+p+i>o?f="l":"c"===f&&(i/2+c+p>o?f="l":c-i/2-p<0&&(f="r")),r=h+f},i.render=function(t,e){var i=this.parsePoint(t,this.position);if(i){var n=this.content,a=this.background,s=this.textStyle,o=[],u=e.addGroup({className:"guide-tag"});if(this.withPoint){var c=u.addShape("Circle",{className:"guide-tag-point",attrs:r.mix({x:i.x,y:i.y},this.pointStyle)});o.push(c)}var l=u.addGroup(),h=l.addShape("text",{className:"guide-tag-text",zIndex:1,attrs:r.mix({x:0,y:0,text:n},s)});o.push(h);var f=h.getBBox(),p=r.parsePadding(a.padding),g=f.width+p[1]+p[3],d=f.height+p[0]+p[2],v=f.minY-p[0],x=f.minX-p[3],y=l.addShape("rect",{className:"guide-tag-bg",zIndex:-1,attrs:r.mix({x:x,y:v,width:g,height:d},a)});o.push(y);var m,_=this.autoAdjust?this._getDirect(e,i,g,d):this.direct,S=this.side,P=i.x+this.offsetX,b=i.y+this.offsetY,w=r.parsePadding(a.radius);"tl"===_?(m=[{x:g+x-S-1,y:d+v-1},{x:g+x,y:d+v-1},{x:g+x,y:d+S+v}],w[2]=0,P-=g,b=b-S-d):"cl"===_?(m=[{x:g+x-1,y:(d-S)/2+v-1},{x:g+x-1,y:(d+S)/2+v+1},{x:g+S+x,y:d/2+v}],P=P-g-S,b-=d/2):"bl"===_?(m=[{x:g+x,y:-S+v},{x:g+x-S-1,y:v+1},{x:g+x,y:v+1}],w[1]=0,P-=g,b+=S):"bc"===_?(m=[{x:g/2+x,y:-S+v},{x:(g-S)/2+x-1,y:v+1},{x:(g+S)/2+x+1,y:v+1}],P-=g/2,b+=S):"br"===_?(m=[{x:x,y:v-S},{x:x,y:v+1},{x:x+S+1,y:v+1}],w[0]=0,b+=S):"cr"===_?(m=[{x:x-S,y:d/2+v},{x:x+1,y:(d-S)/2+v-1},{x:x+1,y:(d+S)/2+v+1}],P+=S,b-=d/2):"tr"===_?(m=[{x:x,y:d+S+v},{x:x,y:d+v-1},{x:S+x+1,y:d+v-1}],w[3]=0,b=b-d-S):"tc"===_&&(m=[{x:(g-S)/2+x-1,y:d+v-1},{x:(g+S)/2+x+1,y:d+v-1},{x:g/2+x,y:d+S+v}],P-=g/2,b=b-d-S);var C=l.addShape("Polygon",{className:"guide-tag-side",zIndex:0,attrs:{points:m,fill:a.fill}});return o.push(C),y.attr("radius",w),l.moveTo(P-x,b-v),l.sort(),this.element=u,o}},e}(a);a.Tag=s,t.exports=s},function(t,e,i){"use strict";var n=i(1)(i(2)),r=i(0),a=i(13),s=function(t){function e(){return t.apply(this,arguments)||this}(0,n.default)(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="point",this.position=null,this.offsetX=0,this.offsetY=0,this.style={fill:"#1890FF",r:3,lineWidth:1,stroke:"#fff"}},i.render=function(t,e){var i=this.parsePoint(t,this.position);if(!i)return null;var n=e.addShape("Circle",{className:"guide-point",attrs:r.mix({x:i.x+this.offsetX,y:i.y+this.offsetY},this.style)});return this.element=n,n},e}(a);a.Point=s,t.exports=s},function(t,e,i){"use strict";function n(t){var e=t.getAttr("color");if(e){var i=e.getScale(e.type);if(i.isLinear)return i}var n=t.getXScale(),r=t.getYScale();return r||n}function r(t,e){var i,r,a=t._getGroupScales();if(a.length&&l.each(a,function(t){return r=t,!1}),r){var s=r.field;i=r.getText(e[s])}else{var o=n(t);i=o.alias||o.field}return i}function a(t,e){var i=n(t);return i.getText(e[i.field])}function s(t,e){var i=t.getAttr("position").getFields()[0],n=t.get("scales")[i];return n.getText(e[n.field])}function o(t,e){var i=-1;return l.each(t,function(t,n){if(t.title===e.title&&t.name===e.name&&t.value===e.value&&t.color===e.color)return i=n,!1}),i}function u(t){var e=[];return l.each(t,function(t){var i=o(e,t);-1===i?e.push(t):e[i]=t}),e}function c(t,e){return JSON.stringify(t)===JSON.stringify(e)}var l=i(0),h=i(3),f=i(131),p=i(31);h.tooltip=l.deepMix({triggerOn:["touchstart","touchmove"],alwaysShow:!1,showTitle:!1,showCrosshairs:!1,crosshairsStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},showTooltipMarker:!0,background:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},titleStyle:{fontSize:12,fill:"#fff",textAlign:"start",textBaseline:"top"},nameStyle:{fontSize:12,fill:"rgba(255, 255, 255, 0.65)",textAlign:"start",textBaseline:"middle"},valueStyle:{fontSize:12,fill:"#fff",textAlign:"start",textBaseline:"middle"},showItemMarker:!0,itemMarkerStyle:{radius:3,symbol:"circle",lineWidth:1,stroke:"#fff"},layout:"horizontal",snap:!1},h.tooltip||{});var g=function(){function t(t){this.enable=!0,this.cfg={},this.tooltip=null,this.chart=null,this.timeStamp=0,l.mix(this,t);var e=this.chart;this.canvasDom=e.get("canvas").get("el")}var e=t.prototype;return e._setCrosshairsCfg=function(){var t=this.chart,e=l.mix({},h.tooltip),i=t.get("geoms"),n=[];l.each(i,function(t){var e=t.get("type");-1===n.indexOf(e)&&n.push(e)});var r=t.get("coord").type;return!i.length||"cartesian"!==r&&"rect"!==r||1===n.length&&-1!==["line","area","path","point"].indexOf(n[0])&&l.mix(e,{showCrosshairs:!0}),e},e._getMaxLength=function(t){void 0===t&&(t={});var e=t,i=e.layout,n=e.plotRange;return"horizontal"===i?n.br.x-n.bl.x:n.bl.y-n.tr.y},e.render=function(){var t=this;if(!t.tooltip){var e=t.chart,i=e.get("canvas"),n=e.get("frontPlot").addGroup({className:"tooltipContainer",zIndex:10}),r=e.get("backPlot").addGroup({className:"tooltipContainer"}),a=e.get("plotRange"),s=e.get("coord"),o=t._setCrosshairsCfg(),u=t.cfg,c=l.deepMix({plotRange:a,frontPlot:n,backPlot:r,canvas:i,fixed:s.transposed||s.isPolar},o,u);c.maxLength=t._getMaxLength(c),this._tooltipCfg=c;var h=new f(c);t.tooltip=h,t.bindEvents()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._lastActive=null,this.unBindEvents()},e._getTooltipMarkerStyle=function(t){void 0===t&&(t={});var e=t,i=e.type,n=e.items,r=this._tooltipCfg;if("rect"===i){var a,s,o,u,c=this.chart,h=c.get("plotRange"),f=h.tl,p=h.br,g=c.get("coord"),d=n[0],v=n[n.length-1],x=d.width;g.transposed?(a=f.x,s=v.y-.75*x,o=p.x-f.x,u=d.y-v.y+1.5*x):(a=d.x-.75*x,s=f.y,o=v.x-d.x+1.5*x,u=p.y-f.y),t.style=l.mix({x:a,y:s,width:o,height:u,fill:"#CCD6EC",opacity:.3},r.tooltipMarkerStyle)}else t.style=l.mix({radius:4,fill:"#fff",lineWidth:2},r.tooltipMarkerStyle);return t},e._setTooltip=function(t,e,i){void 0===i&&(i={});var n=this._lastActive,r=this.tooltip,a=this._tooltipCfg;e=u(e);var s=this.chart,o=s.get("coord"),h=s.getYScales()[0],f=a.snap;if(!1===f&&h.isLinear){var g,d,v=o.invertPoint(t),x=s.get("plotRange");p.isPointInPlot(t,x)&&(o.transposed?(g=h.invert(v.x),d=t.x,r.setXTipContent(g),r.setXTipPosition(d),r.setYCrosshairPosition(d)):(g=h.invert(v.y),d=t.y,r.setYTipContent(g),r.setYTipPosition(d),r.setXCrosshairPosition(d)))}if(a.onShow&&a.onShow({x:t.x,y:t.y,tooltip:r,items:e,tooltipMarkerCfg:i}),c(n,e))!1===f&&(l.directionEnabled(a.crosshairsType,"y")||a.showYTip)&&this.chart.get("canvas").draw();else{this._lastActive=e;var y=a.onChange;y&&y({x:t.x,y:t.y,tooltip:r,items:e,tooltipMarkerCfg:i});var m=e[0],_=m.title||m.name,S=m.x;if(e.length>1&&(S=(e[0].x+e[e.length-1].x)/2),r.setContent(_,e,o.transposed),r.setPosition(e,t),o.transposed){var P=m.y;e.length>1&&(P=(e[0].y+e[e.length-1].y)/2),r.setYTipContent(_),r.setYTipPosition(P),r.setXCrosshairPosition(P),f&&(r.setXTipContent(m.value),r.setXTipPosition(S),r.setYCrosshairPosition(S))}else r.setXTipContent(_),r.setXTipPosition(S),r.setYCrosshairPosition(S),f&&(r.setYTipContent(m.value),r.setYTipPosition(m.y),r.setXCrosshairPosition(m.y));var b=i.items;a.showTooltipMarker&&b.length?(i=this._getTooltipMarkerStyle(i),r.setMarkers(i)):r.clearMarkers(),r.show()}},e.showTooltip=function(t){var e,i,n=this,o=n.chart,u=[],c=[],f=n._tooltipCfg;f.showItemMarker&&(i=f.itemMarkerStyle);var p=o.get("geoms"),g=o.get("coord");if(l.each(p,function(n){if(n.get("visible")){var o=n.get("type"),f=n.getSnapRecords(t);l.each(f,function(t){if(t.x&&t.y){var f=t.x,p=t.y,d=t._origin,v=t.color,x={x:f,y:l.isArray(p)?p[1]:p,color:v||h.defaultColor,origin:d,name:r(n,d),value:a(n,d),title:s(n,d)};i&&(x.marker=l.mix({fill:v||h.defaultColor},i)),c.push(x),-1!==["line","area","path"].indexOf(o)?(e="circle",u.push(x)):"interval"!==o||"cartesian"!==g.type&&"rect"!==g.type||(e="rect",x.width=n.getSize(t._origin),u.push(x))}})}}),c.length){var d={items:u,type:e};n._setTooltip(t,c,d)}else n.hideTooltip()},e.hideTooltip=function(){var t=this._tooltipCfg;this._lastActive=null;var e=this.tooltip;e&&(e.hide(),t.onHide&&t.onHide({tooltip:e}),this.chart.get("canvas").draw())},e.handleShowEvent=function(t){var e=this.chart;if(this.enable&&!e.get("_closeTooltip")){var i=e.get("plotRange"),n=l.createEvent(t,e);if(p.isPointInPlot(n,i)||this._tooltipCfg.alwaysShow){var r=this.timeStamp,a=+new Date;a-r>16&&(this.showTooltip(n),this.timeStamp=a)}else this.hideTooltip()}},e.handleHideEvent=function(){var t=this.chart;this.enable&&!t.get("_closeTooltip")&&this.hideTooltip()},e.handleDocEvent=function(t){var e=this.chart;if(this.enable&&!e.get("_closeTooltip")){var i=this.canvasDom;t.target!==i&&this.hideTooltip()}},e._handleEvent=function(t,e,i){var n=this.canvasDom;l.each([].concat(t),function(t){"bind"===i?l.addEventListener(n,t,e):l.removeEventListener(n,t,e)})},e.bindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,i=t.triggerOff,n=t.alwaysShow,r=l.wrapBehavior(this,"handleShowEvent"),a=l.wrapBehavior(this,"handleHideEvent");if(e&&this._handleEvent(e,r,"bind"),i&&this._handleEvent(i,a,"bind"),!n){var s=l.wrapBehavior(this,"handleDocEvent");l.isBrowser&&l.addEventListener(document,"touchstart",s)}},e.unBindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,i=t.triggerOff,n=t.alwaysShow,r=l.getWrapBehavior(this,"handleShowEvent"),a=l.getWrapBehavior(this,"handleHideEvent");if(e&&this._handleEvent(e,r,"unBind"),i&&this._handleEvent(i,a,"unBind"),!n){var s=l.getWrapBehavior(this,"handleDocEvent");l.isBrowser&&l.removeEventListener(document,"touchstart",s)}},t}();t.exports={init:function(t){var e=new g({chart:t});t.set("tooltipController",e),t.tooltip=function(t,i){return l.isObject(t)&&(i=t,t=!0),e.enable=t,i&&(e.cfg=i),this}},afterGeomDraw:function(t){var e=t.get("tooltipController");e.render(),t.showTooltip=function(t){return e.showTooltip(t),this},t.hideTooltip=function(){return e.hideTooltip(),this}},clearInner:function(t){t.get("tooltipController").clear()}}},function(t,e,i){"use strict";var n=i(0),r=i(104),a=i(105),s=i(132),o=function(){function t(t){n.deepMix(this,this.getDefaultCfg(),t);var e=this.frontPlot;if(!this.custom){var i=new a(n.mix({parent:e,zIndex:3},t));this.container=i;var r=this.fixed,o=this.background;r||(this.tooltipArrow=e.addShape("Polygon",{className:"tooltip-arrow",visible:!1,zIndex:2,attrs:n.mix({points:[]},o)}))}if(this.showXTip){var u=this.xTipBackground,c=new s({className:"xTip",background:u,visible:!1});e.add(c.container),this.xTipBox=c}if(this.showYTip){var l=this.yTipBackground,h=new s({className:"yTip",background:l,visible:!1});e.add(h.container),this.yTipBox=h}this.showCrosshairs&&this._renderCrosshairs(),e.sort()}var e=t.prototype;return e.getDefaultCfg=function(){return{showCrosshairs:!1,crosshairsStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},crosshairsType:"y",showXTip:!1,showYTip:!1,xTip:null,xTipBackground:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},yTip:null,yTipBackground:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},background:null,layout:"horizontal",offsetX:0,offsetY:0}},e.setContent=function(t,e){if(this.title=t,this.items=e,!this.custom){var i=this.container;i.setTitle(t),i.setItems(e)}},e.setYTipContent=function(t){var e=this.yTip;t=n.isFunction(e)?e(t):n.mix({text:t},e),this.yTipBox&&this.yTipBox.updateContent(t)},e.setYTipPosition=function(t){var e=this.plotRange,i=this.crosshairsShapeX;if(this.showYTip){var n=this.yTipBox,r=n.getHeight(),a=n.getWidth(),s=e.tl.x-a,o=t-r/2;o<=e.tl.y&&(o=e.tl.y),o+r>=e.br.y&&(o=e.br.y-r),s<0&&(s=e.tl.x,i&&i.attr("x1",e.tl.x+a)),n.updatePosition(s,o)}},e.setXTipContent=function(t){var e=this.xTip;t=n.isFunction(e)?e(t):n.mix({text:t},e),this.xTipBox&&this.xTipBox.updateContent(t)},e.setXTipPosition=function(t){var e=this.showXTip,i=this.canvas,n=this.plotRange,r=this.xTipBox,a=this.crosshairsShapeY;if(e){var s=i.get("height"),o=r.getWidth(),u=r.getHeight(),c=t-o/2,l=n.br.y;c<=n.tl.x&&(c=n.tl.x),c+o>=n.tr.x&&(c=n.tr.x-o),s-l<u&&(l-=u),r.updatePosition(c,l),a&&a.attr("y1",l)}},e.setXCrosshairPosition=function(t){this.crosshairsShapeX&&this.crosshairsShapeX.moveTo(0,t)},e.setYCrosshairPosition=function(t){this.crosshairsShapeY&&this.crosshairsShapeY.moveTo(t,0)},e.setPosition=function(t){var e=this.container,i=this.plotRange,r=this.offsetX,a=this.offsetY,s=this.fixed,o=this.tooltipArrow;if(e){var u=e.container.getBBox(),c=u.minX,l=u.minY,h=u.width,f=u.height,p=i.tl,g=i.tr,d=0,v=p.y-f-4+a;if(s)d=(p.x+g.x)/2-h/2+r;else{var x;if(x=t.length>1?(t[0].x+t[t.length-1].x)/2:t[0].x,(d=x-h/2+r)<p.x&&(d=p.x),d+h>g.x&&(d=g.x-h),o){o.attr("points",[{x:x-3,y:p.y-4+a},{x:x+3,y:p.y-4+a},{x:x,y:p.y+a}]);var y=e.backShape,m=n.parsePadding(y.attr("radius"));x===p.x?(m[3]=0,o.attr("points",[{x:p.x,y:p.y+a},{x:p.x,y:p.y-4+a},{x:p.x+4,y:p.y-4+a}])):x===g.x&&(m[2]=0,o.attr("points",[{x:g.x,y:p.y+a},{x:g.x-4,y:p.y-4+a},{x:g.x,y:p.y-4+a}])),y.attr("radius",m)}}e.moveTo(d-c,v-l)}},e.setMarkers=function(t){void 0===t&&(t={});var e=this,i=t,a=i.items,s=i.style,o=i.type,u=e._getMarkerGroup(o);if("circle"===o)for(var c=0,l=a.length;c<l;c++){var h=a[c],f=new r({className:"tooltip-circle-marker",attrs:n.mix({x:h.x,y:h.y,stroke:h.color},s)});u.add(f)}else u.addShape("rect",{className:"tooltip-rect-marker",attrs:s})},e.clearMarkers=function(){var t=this.markerGroup;t&&t.clear()},e.show=function(){var t=this.crosshairsShapeX,e=this.crosshairsShapeY,i=this.markerGroup,n=this.container,r=this.tooltipArrow,a=this.xTipBox,s=this.yTipBox,o=this.canvas;t&&t.show(),e&&e.show(),i&&i.show(),n&&n.show(),r&&r.show(),a&&a.show(),s&&s.show(),o.draw()},e.hide=function(){var t=this.crosshairsShapeX,e=this.crosshairsShapeY,i=this.markerGroup,n=this.container,r=this.tooltipArrow,a=this.xTipBox,s=this.yTipBox;t&&t.hide(),e&&e.hide(),i&&i.hide(),n&&n.hide(),r&&r.hide(),a&&a.hide(),s&&s.hide()},e.destroy=function(){var t=this.crosshairsShapeX,e=this.crosshairsShapeY,i=this.markerGroup,n=this.container,r=this.tooltipArrow,a=this.xTipBox,s=this.yTipBox;t&&t.remove(!0),e&&e.remove(!0),i&&i.remove(!0),r&&r.remove(!0),n&&n.clear(),a&&a.clear(),s&&s.clear(),this.destroyed=!0},e._getMarkerGroup=function(t){var e=this.markerGroup;return e?e.clear():("circle"===t?(e=this.frontPlot.addGroup({zIndex:1}),this.frontPlot.sort()):e=this.backPlot.addGroup(),this.markerGroup=e),e},e._renderCrosshairs=function(){var t=this.crosshairsType,e=this.crosshairsStyle,i=this.frontPlot,r=this.plotRange,a=r.tl,s=r.br;n.directionEnabled(t,"x")&&(this.crosshairsShapeX=i.addShape("Line",{className:"tooltip-crosshairs-x",zIndex:0,visible:!1,attrs:n.mix({x1:a.x,y1:0,x2:s.x,y2:0},e)})),n.directionEnabled(t,"y")&&(this.crosshairsShapeY=i.addShape("Line",{className:"tooltip-crosshairs-y",zIndex:0,visible:!1,attrs:n.mix({x1:0,y1:s.y,x2:0,y2:a.y},e)}))},t}();t.exports=o},function(t,e,i){"use strict";var n=i(0),r=i(7).Group,a=function(){function t(t){n.deepMix(this,this.getDefaultCfg(),t),this._init();var e=this.content,i=this.x,r=this.y;n.isNil(e)||this.updateContent(e),this.updatePosition(i,r)}var e=t.prototype;return e.getDefaultCfg=function(){return{x:0,y:0,content:"",textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},background:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},width:0,height:0,className:""}},e._init=function(){var t=this.content,e=this.textStyle,i=this.background,a=this.className,s=this.visible,o=new r({className:a,zIndex:0,visible:s}),u=o.addShape("Text",{className:a+"-text",zIndex:1,attrs:n.mix({text:t,x:0,y:0},e)}),c=o.addShape("Rect",{className:a+"-bg",zIndex:-1,attrs:n.mix({x:0,y:0,width:0,height:0},i)});o.sort(),this.container=o,this.textShape=u,this.backgroundShape=c},e._getBBox=function(){var t=this.textShape,e=this.background,i=t.getBBox(),r=n.parsePadding(e.padding),a=i.width+r[1]+r[3],s=i.height+r[0]+r[2];return{x:i.minX-r[3],y:i.minY-r[0],width:a,height:s}},e.updateContent=function(t){var e=this.textShape,i=this.backgroundShape;if(!n.isNil(t)){n.isObject(t)||(t={text:t}),e.attr(t);var r=this._getBBox(),a=r.x,s=r.y,o=r.width,u=r.height,c=this.width||o,l=this.height||u;i.attr({x:a,y:s,width:c,height:l}),this._width=c,this._height=l,this.content=t.text}},e.updatePosition=function(t,e){var i=this.container,n=this._getBBox(),r=n.x,a=n.y;i.moveTo(t-r,e-a),this.x=t-r,this.y=e-a},e.getWidth=function(){return this._width},e.getHeight=function(){return this._height},e.show=function(){this.container.show()},e.hide=function(){this.container.hide()},e.clear=function(){var t=this.container;t.clear(),t.remove(!0),this.container=null,this.textShape=null,this.backgroundShape=null},t}();t.exports=a},function(t,e,i){"use strict";var n=i(0),r=i(13),a=i(3);a.guide=n.deepMix({line:{style:{stroke:"#a3a3a3",lineWidth:1},top:!0},text:{style:{fill:"#787878",textAlign:"center",textBaseline:"middle"},offsetX:0,offsetY:0,top:!0},rect:{style:{fill:"#fafafa"},top:!1},arc:{style:{stroke:"#a3a3a3"},top:!0},html:{offsetX:0,offsetY:0,alignX:"center",alignY:"middle"},tag:{top:!0,offsetX:0,offsetY:0,side:4,background:{padding:5,radius:2,fill:"#1890FF"},textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"}},point:{top:!0,offsetX:0,offsetY:0,style:{fill:"#fff",r:3,lineWidth:2,stroke:"#1890ff"}}},a.guide||{});var s=function(){function t(t){this.guides=[],this.xScale=null,this.yScales=null,this.guideShapes=[],n.mix(this,t)}var e=t.prototype;return e._toString=function(t){return n.isFunction(t)&&(t=t(this.xScale,this.yScales)),t=t.toString()},e._getId=function(t,e){var i=e.id;if(!i){var n=e.type;i="arc"===n||"line"===n||"rect"===n?this._toString(e.start)+"-"+this._toString(e.end):this._toString(e.position)}return i},e.paint=function(t){var e=this,i=e.chart,r=e.guides,a=e.xScale,s=e.yScales,o=[];n.each(r,function(n,r){n.xScale=a,n.yScales=s;var u;"regionFilter"===n.type?n.chart=i:u=n.top?e.frontPlot:e.backPlot,n.coord=t,n.container=u,n.canvas=i.get("canvas");var c=n.render(t,u);if(c){var l=e._getId(c,n);[].concat(c).forEach(function(t){t._id=t.get("className")+"-"+l,t.set("index",r),o.push(t)})}}),e.guideShapes=o},e.clear=function(){return this.reset(),this.guides=[],this},e.reset=function(){var t=this.guides;n.each(t,function(t){t.remove()})},e._createGuide=function(t,e){var i=n.upperFirst(t),s=new r[i](n.deepMix({},a.guide[t],e));return this.guides.push(s),s},e.line=function(t){return void 0===t&&(t={}),this._createGuide("line",t)},e.text=function(t){return void 0===t&&(t={}),this._createGuide("text",t)},e.arc=function(t){return void 0===t&&(t={}),this._createGuide("arc",t)},e.html=function(t){return void 0===t&&(t={}),this._createGuide("html",t)},e.rect=function(t){return void 0===t&&(t={}),this._createGuide("rect",t)},e.tag=function(t){return void 0===t&&(t={}),this._createGuide("tag",t)},e.point=function(t){return void 0===t&&(t={}),this._createGuide("point",t)},e.regionFilter=function(t){return void 0===t&&(t={}),this._createGuide("regionFilter",t)},t}();t.exports={init:function(t){var e=new s({frontPlot:t.get("frontPlot").addGroup({zIndex:20,className:"guideContainer"}),backPlot:t.get("backPlot").addGroup({className:"guideContainer"})});t.set("guideController",e),t.guide=function(){return e}},afterGeomDraw:function(t){var e=t.get("guideController");if(e.guides.length){var i=t.getXScale(),n=t.getYScales(),r=t.get("coord");e.xScale=i,e.yScales=n,e.chart=t,e.paint(r)}},clear:function(t){t.get("guideController").clear()},repaint:function(t){t.get("guideController").reset()}}},function(t,e,i){"use strict";function n(t,e){var i=0;switch(e=r.parsePadding(e),t){case"top":i=e[0];break;case"right":i=e[1];break;case"bottom":i=e[2];break;case"left":i=e[3]}return i}var r=i(0),a=i(105),s=i(3),o={itemMarginBottom:12,itemGap:10,showTitle:!1,titleStyle:{fontSize:12,fill:"#808080",textAlign:"start",textBaseline:"top"},nameStyle:{fill:"#808080",fontSize:12,textAlign:"start",textBaseline:"middle"},valueStyle:{fill:"#000000",fontSize:12,textAlign:"start",textBaseline:"middle"},unCheckStyle:{fill:"#bfbfbf"},itemWidth:"auto",wordSpace:6,selectedMode:"multiple"};s.legend=r.deepMix({common:o,right:r.mix({position:"right",layout:"vertical"},o),left:r.mix({position:"left",layout:"vertical"},o),top:r.mix({position:"top",layout:"horizontal"},o),bottom:r.mix({position:"bottom",layout:"horizontal"},o)},s.legend||{});var u=function(){function t(t){this.legendCfg={},this.enable=!0,this.position="top",r.mix(this,t);var e=this.chart;this.canvasDom=e.get("canvas").get("el"),this.clear()}var e=t.prototype;return e.addLegend=function(t,e,i){var n=this,r=n.legendCfg,a=t.field,s=r[a];if(!1===s)return null;if(s&&s.custom)n.addCustomLegend(a);else{var o=r.position||n.position;s&&s.position&&(o=s.position),t.isCategory&&n._addCategoryLegend(t,e,o,i)}},e.addCustomLegend=function(t){var e=this,i=e.legendCfg;t&&i[t]&&(i=i[t]);var n=i.position||e.position,o=e.legends;o[n]=o[n]||[];var u=i.items;if(!u)return null;var c=e.container;r.each(u,function(t){r.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||3:t.marker={symbol:t.marker||"circle",fill:t.fill,radius:3},t.checked=!!r.isNil(t.checked)||t.checked,t.name=t.name||t.value});var l=new a(r.deepMix({},s.legend[n],i,{maxLength:e._getMaxLength(n),items:u,parent:c}));o[n].push(l)},e.clear=function(){var t=this.legends;r.each(t,function(t){r.each(t,function(t){t.clear()})}),this.legends={},this.unBindEvents()},e._isFiltered=function(t,e,i){var n=!1;return r.each(e,function(e){if(n=n||t.getText(e)===t.getText(i))return!1}),n},e._getMaxLength=function(t){var e=this.chart,i=r.parsePadding(e.get("appendPadding"));return"right"===t||"left"===t?e.get("height")-(i[0]+i[2]):e.get("width")-(i[1]+i[3])},e._addCategoryLegend=function(t,e,i,n){var o=this,u=o.legendCfg,c=o.legends,l=o.container,h=o.chart,f=t.field;c[i]=c[i]||[];var p="circle";u[f]&&u[f].marker?p=u[f].marker:u.marker&&(p=u.marker),r.each(e,function(e){r.isPlainObject(p)?r.mix(e.marker,p):e.marker.symbol=p,n&&(e.checked=!o._isFiltered(t,n,e.dataValue))}),h.get("legendItems")[f]=e;var g=r.deepMix({},s.legend[i],u[f]||u,{maxLength:o._getMaxLength(i),items:e,field:f,filteredVals:n,parent:l});g.showTitle&&r.deepMix(g,{title:t.alias||t.field});var d=new a(g);return c[i].push(d),d},e._alignLegend=function(t,e,i){var n=this,a=n.plotRange,s=a.tl,o=a.bl,u=n.chart,c=t.offsetX||0,l=t.offsetY||0,h=u.get("width"),f=u.get("height"),p=r.parsePadding(u.get("appendPadding")),g=t.getHeight(),d=t.getWidth(),v=0,x=0;if("left"===i||"right"===i){var y=t.verticalAlign||"middle",m=Math.abs(s.y-o.y);v="left"===i?p[3]:h-d-p[1],x=(m-g)/2+s.y,"top"===y?x=s.y:"bottom"===y&&(x=o.y-g),e&&(x=e.get("y")-g-12)}else{var _=t.align||"left";if(v=p[3],"center"===_?v=h/2-d/2:"right"===_&&(v=h-(d+p[1])),x="top"===i?p[0]+Math.abs(t.container.getBBox().minY):f-g,e){var S=e.getWidth();v=e.x+S+12}}"bottom"===i&&l>0&&(l=0),"right"===i&&c>0&&(c=0),t.moveTo(v+c,x+l)},e.alignLegends=function(){var t=this,e=t.legends;return r.each(e,function(e,i){r.each(e,function(n,r){var a=e[r-1];t._alignLegend(n,a,i)})}),t},e.handleEvent=function(t){var e=this,i=e.chart,n=r.createEvent(t,i),a=function(t,i){var n=null,a=e.legends;return r.each(a,function(e){r.each(e,function(e){var a=e.itemsGroup,s=e.legendHitBoxes,o=a.get("children");if(o.length){var u=e.x,c=e.y;r.each(s,function(r,a){if(t>=r.x+u&&t<=r.x+r.width+u&&i>=r.y+c&&i<=r.height+r.y+c)return n={clickedItem:o[a],clickedLegend:e},!1})}})}),n}(n.x,n.y);if(a&&!1!==a.clickedLegend.clickable){var s=a.clickedItem,o=a.clickedLegend;if(o.onClick)t.clickedItem=s,o.onClick(t);else if(!o.custom){var u=s.get("checked"),c=s.get("dataValue"),l=o.filteredVals,h=o.field;"single"===o.selectedMode?i.filter(h,function(t){return t===c}):(u?l.push(c):r.Array.remove(l,c),i.filter(h,function(t){return-1===l.indexOf(t)})),i.repaint()}}},e.bindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart",e=r.wrapBehavior(this,"handleEvent");r.addEventListener(this.canvasDom,t,e)},e.unBindEvents=function(){var t=this.legendCfg.triggerOn||"touchstart",e=r.getWrapBehavior(this,"handleEvent");r.removeEventListener(this.canvasDom,t,e)},t}();t.exports={init:function(t){var e=new u({container:t.get("backPlot"),plotRange:t.get("plotRange"),chart:t});t.set("legendController",e),t.legend=function(t,i){var n=e.legendCfg;return e.enable=!0,r.isBoolean(t)?(e.enable=t,n=i||{}):r.isObject(t)?n=t:n[t]=i,e.legendCfg=n,this}},beforeGeomDraw:function(t){var e=t.get("legendController");if(!e.enable)return null;var i=e.legendCfg;if(i&&i.custom)e.addCustomLegend();else{var a=t.getLegendItems(),s=t.get("scales"),o=t.get("filters");r.each(a,function(t,i){var n,r=s[i],a=r.values;n=o&&o[i]?a.filter(function(t){return!o[i](t)}):[],e.addLegend(r,t,n)})}i&&!1!==i.clickable&&e.bindEvents();var u=e.legends,c={top:0,right:0,bottom:0,left:0};r.each(u,function(e,i){var a=0;r.each(e,function(t){var e=t.getWidth(),n=t.getHeight();"top"===i||"bottom"===i?(a=Math.max(a,n),t.offsetY>0&&(a+=t.offsetY)):(a=Math.max(a,e),t.offsetX>0&&(a+=t.offsetX))}),c[i]=a+n(i,t.get("appendPadding"))}),t.set("legendRange",c)},afterGeomDraw:function(t){t.get("legendController").alignLegends()},clearInner:function(t){t.get("legendController").clear(),t.set("legendRange",null)}}},function(t,e,i){"use strict";function n(t,e){var i={};for(var n in e)f.isNumber(t[n])&&t[n]!==e[n]?i[n]=e[n]:f.isArray(t[n])&&JSON.stringify(t[n])!==JSON.stringify(e[n])&&(i[n]=e[n]);return i}function r(t,e,i){var n,r=t.get("type"),a="geom"+i+"-"+r,s=t.getXScale(),o=t.getYScale(),u=s.field||"x",c=o.field||"y",l=e[c];n=s.isIdentity?s.value:e[u],a+="interval"===r||"schema"===r?"-"+n:"line"===r||"area"===r||"path"===r?"-"+r:s.isCategory?"-"+n:"-"+n+"-"+l;var h=t._getGroupScales();return f.each(h,function(t){var i=t.field;"identity"!==t.type&&(a+="-"+e[i])}),a}function a(t,e,i){var n=[];return f.each(t,function(t,a){var s=t.get("container").get("children"),o=t.get("type"),u=f.isNil(t.get("animateCfg"))?l(o,e):t.get("animateCfg");!1!==u&&f.each(s,function(e,s){e.get("className")===o&&(e._id=r(t,e.get("origin")._origin,a),e.set("coord",i),e.set("animateCfg",u),e.set("index",s),n.push(e))}),t.set("shapes",s)}),n}function s(t){for(var e={},i=0,n=t.length;i<n;i++){var r=t[i];if(r._id&&!r.isClip){var a=r._id;e[a]={_id:a,type:r.get("type"),attrs:f.mix({},r._attrs.attrs),className:r.get("className"),geomType:r.get("className"),index:r.get("index"),coord:r.get("coord"),animateCfg:r.get("animateCfg")}}}return e}function o(t,e,i,n){return f.isFunction(n)?n:f.isString(n)?v.Action[n]:v.getAnimation(t,e,i)}function u(t,e,i){if(!1===i||f.isObject(i)&&!1===i[e])return!1;var n=v.getAnimateCfg(t,e);return i&&i[e]?f.deepMix({},n,i[e]):n}function c(t,e,i){var r,a,s=[],c=[];f.each(e,function(e){var i=t[e._id];i?(e.set("cacheShape",i),s.push(e),delete t[e._id]):c.push(e)}),f.each(t,function(t){var e=t.className,n=t.coord,s=t._id,c=t.attrs,l=t.index,h=t.type;if(!1===(a=u(e,"leave",t.animateCfg)))return!0;if(r=o(e,n,"leave",a.animation),f.isFunction(r)){var p=i.addShape(h,{attrs:c,index:l,canvas:i,className:e});p._id=s,r(p,a,n)}}),f.each(s,function(t){var e=t.get("className");if(!1===(a=u(e,"update",t.get("animateCfg"))))return!0;var i=t.get("coord"),s=t.get("cacheShape").attrs,c=n(s,t._attrs.attrs);Object.keys(c).length&&(r=o(e,i,"update",a.animation),f.isFunction(r)?r(t,a,i):(t.attr(s),t.animate().to({attrs:c,duration:a.duration,easing:a.easing,delay:a.delay}).onEnd(function(){t.set("cacheShape",null)})))}),f.each(c,function(t){var e=t.get("className"),i=t.get("coord");if(!1===(a=u(e,"enter",t.get("animateCfg"))))return!0;if(r=o(e,i,"enter",a.animation),f.isFunction(r))if("interval"===e&&i.isPolar&&i.transposed){var n=t.get("index"),c=s[n-1];r(t,a,c)}else r(t,a,i)})}function l(t,e){if(!t)return null;var i=e.get("animate");return t.indexOf("guide-tag")>-1&&(t="guide-tag"),f.isObject(i)?i[t]:!1!==i&&null}var h,f=i(0),p=i(30),g=i(136),d=i(137),v=i(106),x=i(139),y=i(140),m=i(18);p.prototype.animate=function(){var t=f.mix({},this.get("attrs"));return new d(this,t,h)},m.prototype.animate=function(t){return this.set("animate",t),this},v.Action=x,v.defaultCfg={interval:{enter:function(t){return t.isPolar&&t.transposed?function(t){t.set("zIndex",-1),t.get("parent").sort()}:x.fadeIn}},area:{enter:function(t){return t.isPolar?null:x.fadeIn}},line:{enter:function(t){return t.isPolar?null:x.fadeIn}},path:{enter:function(t){return t.isPolar?null:x.fadeIn}}};var _={line:function(t){return t.isPolar?y.groupScaleInXY:y.groupWaveIn},area:function(t){return t.isPolar?y.groupScaleInXY:y.groupWaveIn},path:function(t){return t.isPolar?y.groupScaleInXY:y.groupWaveIn},point:function(){return y.shapesScaleInXY},interval:function(t){var e;return t.isPolar?(e=y.groupScaleInXY,t.transposed&&(e=y.groupWaveIn)):e=t.transposed?y.groupScaleInX:y.groupScaleInY,e},schema:function(){return y.groupWaveIn}};t.exports={afterCanvasInit:function(){(h=new g).play()},beforeCanvasDraw:function(t){if(!1!==t.get("animate")){var e=t.get("isUpdate"),i=t.get("canvas"),n=t.get("coord"),r=t.get("geoms"),h=i.get("caches")||[];0===h.length&&(e=!1);var p=a(r,t,n),g=t.get("axisController"),d=g.frontPlot,x=g.backPlot,m=d.get("children").concat(x.get("children")),S=[];t.get("guideController")&&(S=t.get("guideController").guideShapes);var P=[];if(m.concat(S).forEach(function(e){var i=l(e.get("className"),t);e.set("coord",n),e.set("animateCfg",i),P.push(e),p.push(e)}),i.set("caches",s(p)),e)c(h,p,i);else{var b,w;f.each(r,function(e){var i=e.get("type"),r=f.isNil(e.get("animateCfg"))?l(i,t):e.get("animateCfg");if(!1!==r)if(b=u(i,"appear",r),w=o(i,n,"appear",b.animation),f.isFunction(w)){var a=e.get("shapes");f.each(a,function(t){w(t,b,n)})}else if(_[i]){w=y[b.animation]||_[i](n);var s=e.getYScale(),c=n.convertPoint({x:0,y:s.scale(e.getYMinValue())}),h=e.get("container");w&&w(h,b,n,c)}}),f.each(P,function(t){var e=t.get("animateCfg"),i=t.get("className");if(e&&e.appear){var r=v.getAnimateCfg(i,"appear"),a=f.deepMix({},r,e.appear),s=o(i,n,"appear",a.animation);f.isFunction(s)&&s(t,a,n)}})}}},afterCanvasDestroyed:function(){h.stop()}}},function(t,e,i){"use strict";var n=i(43).requestAnimationFrame,r="object"==typeof performance&&performance.now?performance:Date,a=function(){function t(){this.anims=[],this.time=null,this.playing=!1,this.canvas=[]}var e=t.prototype;return e.play=function(){function t(){e.playing&&(n(t),e.update())}var e=this;e.time=r.now(),e.playing=!0,n(t)},e.stop=function(){this.playing=!1,this.time=null,this.canvas=[]},e.update=function(){var t=r.now();this.canvas=[];for(var e=0;e<this.anims.length;e++){var i=this.anims[e];if(!(t<i.startTime||i.hasEnded)){var n=i.shape;if(n.get("destroyed"))this.anims.splice(e,1),e--;else{var a=i.startState,s=i.endState,o=i.interpolate,u=i.duration;t>=i.startTime&&!i.hasStarted&&(i.hasStarted=!0,i.onStart&&i.onStart());var c=(t-i.startTime)/u;if(c=Math.max(0,Math.min(c,1)),c=i.easing(c),i.onFrame)i.onFrame(c);else for(var l in o){var h=(0,o[l])(c),f=void 0;if("points"===l){f=[];for(var p=Math.max(a.points.length,s.points.length),g=0;g<p;g+=2)f.push({x:h[g],y:h[g+1]})}else f=h;n._attrs.attrs[l]=f,n._attrs.bbox=null}var d=n.get("canvas");-1===this.canvas.indexOf(d)&&this.canvas.push(d),i.onUpdate&&i.onUpdate(c),t>=i.endTime&&!i.hasEnded&&(i.hasEnded=!0,i.onEnd&&i.onEnd()),1===c&&(this.anims.splice(e,1),e--)}}}this.canvas.map(function(t){return t.draw(),t}),this.time=r.now()},t}();t.exports=a},function(t,e,i){"use strict";function n(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&(e.push(t[i].x),e.push(t[i].y));return e}function r(t,e){return t=+t,e-=t,function(i){return t+e*i}}function a(t,e){var i,n=e?e.length:0,a=t?Math.min(n,t.length):0,s=new Array(a),o=new Array(n);for(i=0;i<a;++i)s[i]=r(t[i],e[i]);for(;i<n;++i)o[i]=e[i];return function(t){for(i=0;i<a;++i)o[i]=s[i](t);return o}}var s=i(138),o=function(){function t(t,e,i){this.hasStarted=!1,this.hasEnded=!1,this.shape=t,this.source=e,this.timeline=i,this.animate=null}var e=t.prototype;return e.to=function(t){void 0===t&&(t={});var e,i=t.delay||0,o=t.attrs||{},u=t.duration||1e3;e="function"==typeof t.easing?t.easing:s[t.easing]||s.linear;var c={shape:this.shape,startTime:this.timeline.time+i,duration:u,easing:e},l={};for(var h in o){var f=this.source[h],p=o[h];"points"===h?(f=n(f),p=n(p),l.points=a(f,p),this.source.points=f,o.points=p):"matrix"===h?l.matrix=a(f,p):l[h]=r(f,p)}return c.interpolate=l,c.startState=this.source,c.endState=o,c.endTime=c.startTime+u,this.timeline.anims.push(c),this.animate=c,this},e.onFrame=function(t){return this.animate&&(this.animate.onFrame=function(e){t(e)}),this},e.onStart=function(t){return this.animate&&(this.animate.onStart=function(){t()}),this},e.onUpdate=function(t){return this.animate&&(this.animate.onUpdate=function(e){t(e)}),this},e.onEnd=function(t){return this.animate&&(this.animate.onEnd=function(){t()}),this},t}();t.exports=o},function(t,e,i){"use strict";var n={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(n||(n=.3),!i||i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(n||(n=.3),!i||i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(n||(n=.3),!i||i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return(t/=1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}};t.exports=n},function(t,e,i){"use strict";var n=i(0),r=i(107);t.exports={fadeIn:function(t,e){var i=n.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),a=n.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:i,strokeOpacity:a};r.doAnimation(t,s,e)}}},function(t,e,i){"use strict";function n(t,e,i,n,r){var s,u,c=a.getCoordInfo(i),l=c.start,h=c.end,f=c.width,p=c.height,g=new o.Rect({attrs:{x:l.x,y:h.y,width:f,height:p}});"y"===r?(s=l.x+f/2,u=n.y<l.y?n.y:l.y):"x"===r?(s=n.x>l.x?n.x:l.x,u=l.y+p/2):"xy"===r&&(i.isPolar?(s=i.center.x,u=i.center.y):(s=(l.x+h.x)/2,u=(l.y+h.y)/2));var d=a.getScaledMatrix(g,[s,u],r);g.isClip=!0,g.endState={matrix:d},g.set("canvas",t.get("canvas")),t.attr("clip",g);a.doAnimation(g,g.endState,e,function(){t.attr("clip",null),g.remove(!0)})}function r(t,e,i){for(var n,r,s,o=t.get("children"),u=0,c=o.length;u<c;u++){var l=o[u],h=l.getBBox();n=(h.minX+h.maxX)/2,r=(h.minY+h.maxY)/2,s=a.getScaledMatrix(l,[n,r],i),a.doAnimation(l,{matrix:s},e)}}var a=i(107),s=i(31),o=i(7).Shape;t.exports={groupWaveIn:function(t,e,i){var n=s.getClip(i);n.set("canvas",t.get("canvas")),t.attr("clip",n);var r={};if(i.isPolar){var o=i.startAngle,u=i.endAngle;r.endAngle=u,n.attr("endAngle",o)}else{var c=i.start,l=i.end,h=Math.abs(c.x-l.x),f=Math.abs(c.y-l.y);i.isTransposed?(n.attr("height",0),r.height=f):(n.attr("width",0),r.width=h)}a.doAnimation(n,r,e,function(){t.attr("clip",null),n.remove(!0)})},groupScaleInX:function(t,e,i,r){n(t,e,i,r,"x")},groupScaleInY:function(t,e,i,r){n(t,e,i,r,"y")},groupScaleInXY:function(t,e,i,r){n(t,e,i,r,"xy")},shapesScaleInX:function(t,e){r(t,e,"x")},shapesScaleInY:function(t,e){r(t,e,"y")},shapesScaleInXY:function(t,e){r(t,e,"xy")}}},,,,,function(t,e,i){"use strict";var n=i(48);i(109),i(97),i(102),i(118),i(119),i(123),i(124),i(125),i(126),i(127),i(128),i(129);var r=i(130),a=i(133),s=i(134),o=i(135);n.Animate=i(106),n.Chart.plugins.register([r,s,a,o]),t.exports=n}])});