UNPKG

echarts-webcomponent

Version:
1 lines 695 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.EChartsWebComponent=e():t.EChartsWebComponent=e()}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=165)}([function(t,e){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},o=Object.prototype.toString,a=Array.prototype,r=a.forEach,s=a.filter,l=a.slice,u=a.map,h=a.reduce,c={};function d(t){if(null==t||"object"!=typeof t)return t;var e=t,a=o.call(t);if("[object Array]"===a){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=d(t[r])}else if(i[a]){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=d(t[r])}}else if(!n[a]&&!M(t)&&!w(t))for(var u in e={},t)t.hasOwnProperty(u)&&(e[u]=d(t[u]));return e}function f(t,e,n){if(!_(e)||!_(t))return n?d(e):t;for(var i in e)if(e.hasOwnProperty(i)){var o=t[i],a=e[i];!_(a)||!_(o)||x(a)||x(o)||w(a)||w(o)||b(a)||b(o)||M(a)||M(o)?!n&&i in t||(t[i]=d(e[i])):f(o,a,n)}return t}function p(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}var g,m=function(){return c.createCanvas()};function v(t,e,n){if(t&&e)if(t.forEach&&t.forEach===r)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function y(t,e){var n=l.call(arguments,2);return function(){return t.apply(e,n.concat(l.call(arguments)))}}function x(t){return"[object Array]"===o.call(t)}function _(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function b(t){return!!n[o.call(t)]}function w(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}c.createCanvas=function(){return document.createElement("canvas")};var S="__ec_primitive__";function M(t){return t[S]}function I(t){t&&v(t,function(t,e){this.set(e,t)},this)}I.prototype={constructor:I,get:function(t){return this["_ec_"+t]},set:function(t,e){return this["_ec_"+t]=e,e},each:function(t,e){for(var n in void 0!==e&&(t=y(t,e)),this)this.hasOwnProperty(n)&&t(this[n],n.slice(4))},removeKey:function(t){delete this["_ec_"+t]}},e.$override=function(t,e){c[t]=e},e.clone=d,e.merge=f,e.mergeAll=function(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=f(n,t[i],e);return n},e.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e.defaults=p,e.createCanvas=m,e.getContext=function(){return g||(g=m().getContext("2d")),g},e.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},e.inherits=function(t,e){var n=t.prototype;function i(){}for(var o in i.prototype=e.prototype,t.prototype=new i,n)t.prototype[o]=n[o];t.prototype.constructor=t,t.superClass=e},e.mixin=function(t,e,n){p(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,n)},e.isArrayLike=function(t){if(t)return"string"!=typeof t&&"number"==typeof t.length},e.each=v,e.map=function(t,e,n){if(t&&e){if(t.map&&t.map===u)return t.map(e,n);for(var i=[],o=0,a=t.length;o<a;o++)i.push(e.call(n,t[o],o,t));return i}},e.reduce=function(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===h)return t.reduce(e,n,i);for(var o=0,a=t.length;o<a;o++)n=e.call(i,n,t[o],o,t);return n}},e.filter=function(t,e,n){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,n);for(var i=[],o=0,a=t.length;o<a;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}},e.find=function(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]},e.bind=y,e.curry=function(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}},e.isArray=x,e.isFunction=function(t){return"function"==typeof t},e.isString=function(t){return"[object String]"===o.call(t)},e.isObject=_,e.isBuiltInObject=b,e.isDom=w,e.eqNaN=function(t){return t!=t},e.retrieve=function(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},e.slice=function(){return Function.call.apply(l,arguments)},e.normalizeCssArray=function(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},e.assert=function(t,e){if(!t)throw new Error(e)},e.setAsPrimitive=function(t){t[S]=!0},e.isPrimitive=M,e.createHashMap=function(t){return new I(t)},e.noop=function(){}},function(t,e,n){n(4).__DEV__;var i=n(51),o=n(0),a=n(22),r=n(11),s=n(70),l=n(30),u=n(178),h=n(203),c=n(21),d=n(204),f=n(205),p=n(13),g=n(15),m=n(74),v=n(26),y=n(2),x=n(5),_=n(31).throttle,b=n(207),w=n(208),S=o.each,M=p.parseClassType,I=1e3,T=1e3,A=3e3,C={PROCESSOR:{FILTER:I,STATISTIC:5e3},VISUAL:{LAYOUT:T,GLOBAL:2e3,CHART:A,COMPONENT:4e3,BRUSH:5e3}},L="__flagInMainProcess",D="__optionUpdated",P=/^[a-zA-Z0-9_]+$/;function k(t){return function(e,n,i){e=e&&e.toLowerCase(),l.prototype[t].call(this,e,n,i)}}function O(){l.call(this)}function E(t,e,n){n=n||{},"string"==typeof e&&(e=et[e]),this.id,this.group,this._dom=t;var a=this._zr=i.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});function r(t,e){return t.prio-e.prio}this._throttledZrFlush=_(o.bind(a.flush,a),17),(e=o.clone(e))&&f(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new c,this._api=function(t){var e=t._coordSysMgr;return o.extend(new h(t),{getCoordinateSystems:o.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}(this),l.call(this),this._messageCenter=new O,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],s(tt,r),s(K,r),a.animation.on("frame",this._onframe,this),o.setAsPrimitive(this)}O.prototype.on=k("on"),O.prototype.off=k("off"),O.prototype.one=k("one"),o.mixin(O,l);var z=E.prototype;function R(t,e,n){var i,o=this._model,a=this._coordSysMgr.getCoordinateSystems();e=x.parseFinder(o,e);for(var r=0;r<a.length;r++){var s=a[r];if(s[t]&&null!=(i=s[t](o,e,n)))return i}}z._onframe=function(){if(this[D]){var t=this[D].silent;this[L]=!0,N.prepareAndUpdate.call(this),this[L]=!1,this[D]=!1,G.call(this,t),H.call(this,t)}},z.getDom=function(){return this._dom},z.getZr=function(){return this._zr},z.setOption=function(t,e,n){var i;if(o.isObject(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[L]=!0,!this._model||e){var a=new d(this._api),r=this._theme;(this._model=new u(null,null,r,a)).init(null,null,r,a)}this._model.setOption(t,J),n?(this[D]={silent:i},this[L]=!1):(N.prepareAndUpdate.call(this),this._zr.flush(),this[D]=!1,this[L]=!1,G.call(this,i),H.call(this,i))},z.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},z.getModel=function(){return this._model},z.getOption=function(){return this._model&&this._model.getOption()},z.getWidth=function(){return this._zr.getWidth()},z.getHeight=function(){return this._zr.getHeight()},z.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},z.getRenderedCanvas=function(t){if(r.canvasSupported){(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return o.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},z.getSvgDataUrl=function(){if(r.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return o.each(e,function(t){t.stopAnimation(!0)}),t.painter.pathToSvg()}},z.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],o=this;S(e,function(t){n.eachComponent({mainType:t},function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return S(i,function(t){t.group.ignore=!1}),a},z.getConnectedDataURL=function(t){if(r.canvasSupported){var e=this.group,n=Math.min,a=Math.max;if(ot[e]){var s=1/0,l=1/0,u=-1/0,h=-1/0,c=[],d=t&&t.pixelRatio||1;o.each(it,function(i,r){if(i.group===e){var d=i.getRenderedCanvas(o.clone(t)),f=i.getDom().getBoundingClientRect();s=n(f.left,s),l=n(f.top,l),u=a(f.right,u),h=a(f.bottom,h),c.push({dom:d,left:f.left,top:f.top})}});var f=(u*=d)-(s*=d),p=(h*=d)-(l*=d),g=o.createCanvas();g.width=f,g.height=p;var m=i.init(g);return S(c,function(t){var e=new y.Image({style:{x:t.left*d-s,y:t.top*d-l,image:t.dom}});m.add(e)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},z.convertToPixel=o.curry(R,"convertToPixel"),z.convertFromPixel=o.curry(R,"convertFromPixel"),z.containPixel=function(t,e){var n,i=this._model;return t=x.parseFinder(i,t),o.each(t,function(t,i){i.indexOf("Models")>=0&&o.each(t,function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n|=!!o.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}},this)},this),!!n},z.getVisual=function(t,e){var n=this._model,i=(t=x.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=o?i.getItemVisual(o,e):i.getVisual(e)},z.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},z.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var N={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,o=this._zr;if(e){e.restoreData(),i.create(this._model,this._api),function(t,e){S(K,function(n){n.func(t,e)})}.call(this,e,n),function(t){var e={};t.eachSeries(function(t){var n=t.get("stack"),i=t.getData();if(n&&"list"===i.type){var o=e[n];e.hasOwnProperty(n)&&o&&(i.stackedOn=o),e[n]=i}})}.call(this,e),i.update(e,n),Z.call(this,e,t),function(t,e){var n=this._api;S(this._componentsViews,function(i){var o=i.__model;i.render(o,t,n,e),X(o,i)},this),S(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(i,o){var a=this._chartsMap[i.__viewId];a.__alive=!0,a.render(i,t,n,e),a.group.silent=!!i.get("silent"),X(i,a),q(i,a)},this),U(this._zr,t),S(this._chartsViews,function(e){e.__alive||e.remove(t,n)},this)}.call(this,e,t);var s=e.get("backgroundColor")||"transparent",l=o.painter;if(l.isSingleCanvas&&l.isSingleCanvas())o.configLayer(0,{clearColor:s});else{if(!r.canvasSupported){var u=a.parse(s);s=a.stringify(u,"rgb"),0===u[3]&&(s="transparent")}s.colorStops||s.image?(o.configLayer(0,{clearColor:s}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&o.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=s)}S(Q,function(t){t(e,n)})}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),Z.call(this,e,t),W.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),Z.call(this,e,t,!0),W.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(function(t,e){var n=this._api;S(tt,function(i){i.isLayout&&i.func(t,n,e)})}.call(this,e,t),W.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;F.call(this,"component",e),F.call(this,"chart",e),N.update.call(this,t)}};function V(t,e,n,i,o){var a=t._model;if(i){var r={};r[i+"Id"]=n[i+"Id"],r[i+"Index"]=n[i+"Index"],r[i+"Name"]=n[i+"Name"];var s={mainType:i,query:r};o&&(s.subType=o),a&&a.eachComponent(s,function(e,n){l(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else S(t._componentsViews.concat(t._chartsViews),l);function l(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}}function B(t,e){var n=t.type,i=t.escapeConnect,a=Y[n],r=a.actionInfo,s=(r.update||"update").split(":"),l=s.pop();s=null!=s[0]&&M(s[0]),this[L]=!0;var u=[t],h=!1;t.batch&&(h=!0,u=o.map(t.batch,function(e){return(e=o.defaults(o.extend({},e),t)).batch=null,e}));var c,d=[],f="highlight"===n||"downplay"===n;S(u,function(t){(c=(c=a.action(t,this._model,this._api))||o.extend({},t)).type=r.event||c.type,d.push(c),f?V(this,l,t,"series"):s&&V(this,l,t,s.main,s.sub)},this),"none"===l||f||s||(this[D]?(N.prepareAndUpdate.call(this,t),this[D]=!1):N[l].call(this,t)),c=h?{type:r.event||n,escapeConnect:i,batch:d}:d[0],this[L]=!1,!e&&this._messageCenter.trigger(c.type,c)}function G(t){for(var e=this._pendingActions;e.length;){var n=e.shift();B.call(this,n,t)}}function H(t){!t&&this.trigger("updated")}function W(t,e,n){var i=this._api;S(this._componentsViews,function(o){var a=o.__model;o[t](a,e,i,n),X(a,o)},this),e.eachSeries(function(o,a){var r=this._chartsMap[o.__viewId];r[t](o,e,i,n),X(o,r),q(o,r)},this),U(this._zr,e),S(Q,function(t){t(e,i)})}function F(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,o=n?this._componentsMap:this._chartsMap,a=this._zr,r=0;r<i.length;r++)i[r].__alive=!1;e[n?"eachComponent":"eachSeries"](function(t,r){if(n){if("series"===t)return}else r=t;var s="_ec_"+r.id+"_"+r.type,l=o[s];if(!l){var u=M(r.type),h=n?m.getClass(u.main,u.sub):v.getClass(u.sub);if(!h)return;(l=new h).init(e,this._api),o[s]=l,i.push(l),a.add(l.group)}r.__viewId=l.__id=s,l.__alive=!0,l.__model=r,l.group.__ecComponentInfo={mainType:r.mainType,index:r.componentIndex}},this);for(r=0;r<i.length;){var s=i[r];s.__alive?r++:(a.remove(s.group),s.dispose(e,this._api),i.splice(r,1),delete o[s.__id],s.__id=s.group.__ecComponentInfo=null)}}function Z(t,e,n){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),S(tt,function(o){(!n||!o.isLayout)&&o.func(t,i,e)})}z.resize=function(t){this[L]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");N[e?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[L]=!1;var n=t&&t.silent;G.call(this,n),H.call(this,n)},z.showLoading=function(t,e){if(o.isObject(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),nt[t]){var n=nt[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},z.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},z.makeActionFromEvent=function(t){var e=o.extend({},t);return e.type=$[t.type],e},z.dispatchAction=function(t,e){o.isObject(e)||(e={silent:!!e}),Y[t.type]&&this._model&&(this[L]?this._pendingActions.push(t):(B.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&r.browser.weChat&&this._throttledZrFlush(),G.call(this,e.silent),H.call(this,e.silent)))},z.on=k("on"),z.off=k("off"),z.one=k("one");var j=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function U(t,e){var n=t.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!r.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function q(t,e){var n=0;e.group.traverse(function(t){"group"===t.type||t.ignore||n++});var i=+t.get("progressive"),o=n>t.get("progressiveThreshold")&&i&&!r.node;o&&e.group.traverse(function(t){t.isGroup||(t.progressive=o?Math.floor(n++/i):-1,o&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",a)})}function X(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}z._initEvents=function(){S(j,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),a=e.target;if("globalout"===t)n={};else if(a&&null!=a.dataIndex){var r=a.dataModel||i.getSeriesByIndex(a.seriesIndex);n=r&&r.getDataParams(a.dataIndex,a.dataType)||{}}else a&&a.eventData&&(n=o.extend({},a.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),S($,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},z.isDisposed=function(){return this._disposed},z.clear=function(){this.setOption({series:[]},!0)},z.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;S(this._componentsViews,function(n){n.dispose(e,t)}),S(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete it[this.id]}},o.mixin(E,l);var Y={},$={},K=[],J=[],Q=[],tt=[],et={},nt={},it={},ot={},at=new Date-0,rt=new Date-0,st="_echarts_instance_",lt={};function ut(t){ot[t]=!1}var ht=ut;function ct(t){var e;return e=t.getAttribute?t.getAttribute(st):t[st],it[e]}function dt(t){J.push(t)}function ft(t,e,n){"function"==typeof e&&(n=e,e="");var i=o.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,o.assert(P.test(i)&&P.test(e)),Y[i]||(Y[i]={action:n,actionInfo:t}),$[e]=i}function pt(t,e){"function"==typeof t&&(e=t,t=A),tt.push({prio:t,func:e})}function gt(t,e){nt[t]=e}pt(2e3,b),dt(f),gt("default",w),ft({type:"highlight",event:"highlight",update:"highlight"},o.noop),ft({type:"downplay",event:"downplay",update:"downplay"},o.noop);e.version="3.8.5",e.dependencies={zrender:"3.7.4"},e.PRIORITY=C,e.init=function(t,e,n){var i=ct(t);if(i)return i;var a=new E(t,e,n);return a.id="ec_"+at++,it[a.id]=a,t.setAttribute?t.setAttribute(st,a.id):t[st]=a.id,function(t){var e="__connectUpdateStatus";function n(t,n){for(var i=0;i<t.length;i++)t[i][e]=n}o.each($,function(i,a){t._messageCenter.on(a,function(i){if(ot[t.group]&&0!==t[e]){if(i&&i.escapeConnect)return;var a=t.makeActionFromEvent(i),r=[];o.each(it,function(e){e!==t&&e.group===t.group&&r.push(e)}),n(r,0),S(r,function(t){1!==t[e]&&t.dispatchAction(a)}),n(r,2)}})})}(a),a},e.connect=function(t){if(o.isArray(t)){var e=t;t=null,o.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+rt++,o.each(e,function(e){e.group=t})}return ot[t]=!0,t},e.disConnect=ut,e.disconnect=ht,e.dispose=function(t){"string"==typeof t?t=it[t]:t instanceof E||(t=ct(t)),t instanceof E&&!t.isDisposed()&&t.dispose()},e.getInstanceByDom=ct,e.getInstanceById=function(t){return it[t]},e.registerTheme=function(t,e){et[t]=e},e.registerPreprocessor=dt,e.registerProcessor=function(t,e){"function"==typeof t&&(e=t,t=I),K.push({prio:t,func:e})},e.registerPostUpdate=function(t){Q.push(t)},e.registerAction=ft,e.registerCoordinateSystem=function(t,e){c.register(t,e)},e.getCoordinateSystemDimensions=function(t){var e=c.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.registerLayout=function(t,e){"function"==typeof t&&(e=t,t=T),tt.push({prio:t,func:e,isLayout:!0})},e.registerVisual=pt,e.registerLoading=gt,e.extendComponentModel=function(t){return p.extend(t)},e.extendComponentView=function(t){return m.extend(t)},e.extendSeriesModel=function(t){return g.extend(t)},e.extendChartView=function(t){return v.extend(t)},e.setCanvasCreator=function(t){o.$override("createCanvas",t)},e.registerMap=function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),lt[t]={geoJson:e,specialAreas:n}},e.getMap=function(t){return lt[t]},e.dataTool={};var mt=n(110);!function(){for(var t in mt)mt.hasOwnProperty(t)&&(e[t]=mt[t])}()},function(t,e,n){var i=n(0),o=n(182),a=n(22),r=n(16),s=n(7),l=n(12),u=n(69),h=n(42);e.Image=h;var c=n(52);e.Group=c;var d=n(43);e.Text=d;var f=n(187);e.Circle=f;var p=n(188);e.Sector=p;var g=n(189);e.Ring=g;var m=n(190);e.Polygon=m;var v=n(193);e.Polyline=v;var y=n(194);e.Rect=y;var x=n(195);e.Line=x;var _=n(196);e.BezierCurve=_;var b=n(197);e.Arc=b;var w=n(198);e.CompoundPath=w;var S=n(108);e.LinearGradient=S;var M=n(199);e.RadialGradient=M;var I=n(9);e.BoundingRect=I;var T=Math.round,A=Math.max,C=Math.min,L={};function D(t,e,n,i){var a=o.createFromString(t,e),r=a.getBoundingRect();return n&&("center"===i&&(n=P(n,r)),O(a,n)),a}function P(t,e){var n,i=e.width/e.height,o=t.height*i;return n=o<=t.width?t.height:(o=t.width)/i,{x:t.x+t.width/2-o/2,y:t.y+t.height/2-n/2,width:o,height:n}}var k=o.mergePath;function O(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function E(t,e,n){var i=T(2*t);return(i+T(e))%2==0?i/2:(i+(n?1:-1))/2}function z(t){return null!=t&&"none"!=t}function R(t){return"string"==typeof t?a.lift(t,-.1):t}function N(t){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,i=t.__hoverStl;i.fill=i.fill||(z(n)?R(n):null),i.stroke=i.stroke||(z(e)?R(e):null);var o={};for(var a in i)null!=i[a]&&(o[a]=t.style[a]);t.__normalStl=o,t.__hoverStlDirty=!1}}function V(t){if(!t.__isHover){if(N(t),t.useHoverLayer)t.__zr&&t.__zr.addHover(t,t.__hoverStl);else{var e=t.style,n=e.insideRollbackOpt;n&&function(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth)}(e),e.extendFrom(t.__hoverStl),n&&(K(e,e.insideOriginalTextPosition,n),null==e.textFill&&(e.textFill=n.autoColor)),t.dirty(!1),t.z2+=1}t.__isHover=!0}}function B(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function G(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&V(t)}):V(t)}function H(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&B(t)}):B(t)}function W(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&N(t)}function F(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&G(this)}function Z(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&H(this)}function j(){this.__isEmphasis=!0,G(this)}function U(){this.__isEmphasis=!1,H(this)}function q(t,e,n,o,a){return X(t,e,o,a),n&&i.extend(t,n),t.host&&t.host.dirty&&t.host.dirty(!1),t}function X(t,e,n,o){if((n=n||L).isRectText){var a=e.getShallow("position")||(o?null:"inside");"outside"===a&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var r=e.getShallow("rotate");null!=r&&(r*=Math.PI/180),t.textRotation=r,t.textDistance=i.retrieve2(e.getShallow("distance"),o?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,h=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||L).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}(e);if(h)for(var c in s={},h)if(h.hasOwnProperty(c)){var d=e.getModel(["rich",c]);Y(s[c]={},d,u,n,o)}return t.rich=s,Y(t,e,u,n,o,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function Y(t,e,n,o,a,r){if(n=!a&&n||L,t.textFill=$(e.getShallow("color"),o)||n.color,t.textStroke=$(e.getShallow("textBorderColor"),o)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),!a){if(r){var s=t.textPosition;t.insideRollback=K(t,s,o),t.insideOriginalTextPosition=s,t.insideRollbackOpt=o}null==t.textFill&&(t.textFill=o.autoColor)}t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),r&&o.disableBox||(t.textBackgroundColor=$(e.getShallow("backgroundColor"),o),t.textPadding=e.getShallow("padding"),t.textBorderColor=$(e.getShallow("borderColor"),o),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function $(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function K(t,e,n){var i,o=n.useInsideStyle;return null==t.textFill&&!1!==o&&(!0===o||n.isRectText&&e&&"string"==typeof e&&e.indexOf("inside")>=0)&&(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=n.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),i}function J(t,e,n,i,o,a){if("function"==typeof o&&(a=o,o=null),i&&i.isAnimationEnabled()){var r=t?"Update":"",s=i.getShallow("animationDuration"+r),l=i.getShallow("animationEasing"+r),u=i.getShallow("animationDelay"+r);"function"==typeof u&&(u=u(o,i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null)),"function"==typeof s&&(s=s(o)),s>0?e.animateTo(n,s,u||0,l,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function Q(t,e,n,i,o){J(!0,t,e,n,i,o)}function tt(t,e,n){return e&&!i.isArrayLike(e)&&(e=u.getLocalTransform(e)),n&&(e=r.invert([],e)),s.applyTransform([],t,e)}e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return o.extendFromString(t,e)},e.makePath=D,e.makeImage=function(t,e,n){var i=new h({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var o={width:t.width,height:t.height};i.setStyle(P(e,o))}}});return i},e.mergePath=k,e.resizePath=O,e.subPixelOptimizeLine=function(t){var e=t.shape,n=t.style.lineWidth;return T(2*e.x1)===T(2*e.x2)&&(e.x1=e.x2=E(e.x1,n,!0)),T(2*e.y1)===T(2*e.y2)&&(e.y1=e.y2=E(e.y1,n,!0)),t},e.subPixelOptimizeRect=function(t){var e=t.shape,n=t.style.lineWidth,i=e.x,o=e.y,a=e.width,r=e.height;return e.x=E(e.x,n,!0),e.y=E(e.y,n,!0),e.width=Math.max(E(i+a,n,!1)-e.x,0===a?0:1),e.height=Math.max(E(o+r,n,!1)-e.y,0===r?0:1),t},e.subPixelOptimize=E,e.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&W(t,e)}):W(t,e),t.on("mouseover",F).on("mouseout",Z),t.on("emphasis",j).on("normal",U)},e.setLabelStyle=function(t,e,n,o,a,r,s){var l=(a=a||L).labelFetcher,u=a.labelDataIndex,h=a.labelDimIndex,c=n.getShallow("show"),d=o.getShallow("show"),f=c||d?i.retrieve2(l?l.getFormattedLabel(u,"normal",null,h):null,a.defaultText):null,p=c?f:null,g=d?i.retrieve2(l?l.getFormattedLabel(u,"emphasis",null,h):null,f):null;null==p&&null==g||(q(t,n,r,a),q(e,o,s,a,!0)),t.text=p,e.text=g},e.setTextStyle=q,e.setText=function(t,e,n){var i,o={isRectText:!0};!1===n?i=!0:o.autoColor=n,X(t,e,o,i),t.host&&t.host.dirty&&t.host.dirty(!1)},e.getFont=function(t,e){var n=e||e.getModel("textStyle");return[t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" ")},e.updateProps=Q,e.initProps=function(t,e,n,i,o){J(!1,t,e,n,i,o)},e.getTransform=function(t,e){for(var n=r.identity([]);t&&t!==e;)r.mul(n,t.getLocalTransform(),n),t=t.parent;return n},e.applyTransform=tt,e.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0];return a=tt(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},e.groupTransition=function(t,e,n,o){if(t&&e){var a=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=r(t);t.attr(r(e)),Q(t,i,n,t.dataIndex)}}})}function r(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return i.map(t,function(t){var n=t[0];n=A(n,e.x),n=C(n,e.x+e.width);var i=t[1];return i=A(i,e.y),[n,i=C(i,e.y+e.height)]})},e.clipRectByRect=function(t,e){var n=A(t.x,e.x),i=C(t.x+t.width,e.x+e.width),o=A(t.y,e.y),a=C(t.y+t.height,e.y+e.height);if(i>=n&&a>=o)return{x:n,y:o,width:i-n,height:a-o}},e.createIcon=function(t,e,n){var o=(e=i.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(o.image=t.slice(8),i.defaults(o,n),new h(e)):D(t.replace("path://",""),e,n,"center")}},function(t,e,n){var i=n(0),o=1e-4;var a=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function r(t){return Math.floor(Math.log(t)/Math.LN10)}e.linearMap=function(t,e,n,i){var o=e[1]-e[0],a=n[1]-n[0];if(0===o)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(o>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*a+n[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var o=e.indexOf(".");return o<0?0:e.length-1-o},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,o=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),r=Math.min(Math.max(-o+a,0),20);return isFinite(r)?r:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var o=i.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===o)return 0;for(var a=Math.pow(10,n),r=i.map(t,function(t){return(isNaN(t)?0:t)/o*a*100}),s=100*a,l=i.map(r,function(t){return Math.floor(t)}),u=i.reduce(l,function(t,e){return t+e},0),h=i.map(r,function(t,e){return t-l[e]});u<s;){for(var c=Number.NEGATIVE_INFINITY,d=null,f=0,p=h.length;f<p;++f)h[f]>c&&(c=h[f],d=f);++l[d],h[d]=0,++u}return l[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-o&&t<o},e.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=a.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,r(t))},e.nice=function(t,e){var n=r(t),i=Math.pow(10,n),o=t/i;return t=(e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t},e.reformIntervals=function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,a=t[i].close,r=0;r<2;r++)o[r]<=e&&(o[r]=e,a[r]=r?1:1-n),e=o[r],n=a[r];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(i,1):i++}return t},e.isNumeric=function(t){return t-parseFloat(t)>=0}},function(t,e,n){(function(t){var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==t&&(n=t.__DEV__),void 0===n&&(n=!0);var i=n;e.__DEV__=i}).call(this,n(92))},function(t,e,n){var i=n(0),o=n(8),a=n(3),r=n(10),s=i.each,l=i.isObject;function u(t){return t instanceof Array?t:null==t?[]:[t]}var h={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),r=n.getName(t,!0),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:r,dataIndex:a,data:s,dataType:e,value:i,color:l,marker:o.getTooltipMarker(l),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,a){e=e||"normal";var r=this.getData(n).getItemModel(t),s=this.getDataParams(t,n);null!=i&&s.value instanceof Array&&(s.value=s.value[i]);var l=r.get([a||"label",e,"formatter"]);return"function"==typeof l?(s.status=e,l(s)):"string"==typeof l?o.formatTpl(l,s):void 0},getRawValue:function(t,e){var n=this.getData(e).getRawDataItem(t);if(null!=n)return!l(n)||n instanceof Array?n:n.value},formatTooltip:i.noop};function c(t){return l(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var d=function(){var t=0;return function(){var e="\0__ec_prop_getter_"+t++;return function(t){return t[e]||(t[e]={})}}}();function f(t,e){return t&&t.hasOwnProperty(e)}e.normalizeToArray=u,e.defaultEmphasis=function(t,e){if(t)for(var n=t.emphasis=t.emphasis||{},i=t.normal=t.normal||{},o=0,a=e.length;o<a;o++){var r=e[o];!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(n[r]=i[r])}},e.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],e.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},e.isDataItemOption=function(t){return l(t)&&!(t instanceof Array)},e.converDataValue=function(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+a.parseDate(t)),null==t||""===t?NaN:+t)},e.createDataFormatModel=function(t,e){var n=new r;return i.mixin(n,h),n.seriesIndex=e.seriesIndex,n.name=e.name||"",n.mainType=e.mainType,n.subType=e.subType,n.getData=function(){return t},n},e.dataFormatMixin=h,e.mappingToExists=function(t,e){e=(e||[]).slice();var n=i.map(t||[],function(t,e){return{exist:t}});return s(e,function(t,i){if(l(t)){for(var o=0;o<n.length;o++)if(!n[o].option&&null!=t.id&&n[o].exist.id===t.id+"")return n[o].option=t,void(e[i]=null);for(o=0;o<n.length;o++){var a=n[o].exist;if(!(n[o].option||null!=a.id&&null!=t.id||null==t.name||c(t)||c(a)||a.name!==t.name+""))return n[o].option=t,void(e[i]=null)}}}),s(e,function(t,e){if(l(t)){for(var i=0;i<n.length;i++){var o=n[i].exist;if(!n[i].option&&!c(o)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}}),n},e.makeIdAndName=function(t){var e=i.createHashMap();s(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),s(t,function(t,n){var o=t.option;i.assert(!o||null==o.id||!e.get(o.id)||e.get(o.id)===t,"id duplicates: "+(o&&o.id)),o&&null!=o.id&&e.set(o.id,t),!t.keyInfo&&(t.keyInfo={})}),s(t,function(t,n){var i=t.exist,o=t.option,a=t.keyInfo;if(l(o)){if(a.name=null!=o.name?o.name+"":i?i.name:"\0-",i)a.id=i.id;else if(null!=o.id)a.id=o.id+"";else{var r=0;do{a.id="\0"+a.name+"\0"+r++}while(e.get(a.id))}e.set(a.id,t)}})},e.isIdInner=c,e.compressBatches=function(t,e){var n={},i={};return o(t||[],n),o(e||[],i,n),[a(n),a(i)];function o(t,e,n){for(var i=0,o=t.length;i<o;i++)for(var a=t[i].seriesId,r=u(t[i].dataIndex),s=n&&n[a],l=0,h=r.length;l<h;l++){var c=r[l];s&&s[c]?s[c]=null:(e[a]||(e[a]={}))[c]=1}}function a(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var o=a(t[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}},e.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.isArray(e.dataIndex)?i.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.isArray(e.name)?i.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},e.makeGetter=d,e.parseFinder=function(t,e,n){if(i.isString(e)){var o={};o[e+"Index"]=0,e=o}var a=n&&n.defaultMainType;!a||f(e,a+"Index")||f(e,a+"Id")||f(e,a+"Name")||(e[a+"Index"]=0);var r={};return s(e,function(o,a){if(o=e[a],"dataIndex"!==a&&"dataIndexInside"!==a){var s=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=s[1],u=(s[2]||"").toLowerCase();if(!(!l||!u||null==o||"index"===u&&"none"===o||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var h={mainType:l};"index"===u&&"all"===o||(h[u]=o);var c=t.queryComponents(h);r[l+"Models"]=c,r[l+"Model"]=c[0]}}else r[a]=o}),r},e.dataDimToCoordDim=function(t,e){var n=t.dimensions;e=t.getDimension(e);for(var i=0;i<n.length;i++){var o=t.getDimensionInfo(n[i]);if(o.name===e)return o.coordDim}},e.coordDimToDataDim=function(t,e){var n=[];return s(t.dimensions,function(i){var o=t.getDimensionInfo(i);o.coordDim===e&&(n[o.coordDimIndex]=o.name)}),n},e.otherDimToDataDim=function(t,e){var n=[];return s(t.dimensions,function(i){var o=t.getDimensionInfo(i),a=o.otherDims[e];null!=a&&!1!==a&&(n[a]=o.name)}),n}},function(t,e,n){var i=n(0),o=n(9),a=n(3).parsePercent,r=n(8),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(t,e,n,i,o){var a=0,r=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;e.eachChild(function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(h=a+m)>i||l.newline?(a=0,h=m,r+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=r+v)>o||l.newline?(a+=s+n,r=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=r,"horizontal"===t?a=h+n:r=c+n)})}var c=h,d=i.curry(h,"vertical"),f=i.curry(h,"horizontal");function p(t,e,n){n=r.normalizeCssArray(n||0);var i=e.width,s=e.height,l=a(t.left,i),u=a(t.top,s),h=a(t.right,i),c=a(t.bottom,s),d=a(t.width,i),f=a(t.height,s),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-h-g-l),isNaN(f)&&(f=s-c-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/s?d=.8*i:f=.8*s),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-h-d-g),isNaN(u)&&(u=s-c-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(h||0)),isNaN(f)&&(f=s-p-u-(c||0));var v=new o(l+n[3],u+n[0],d,f);return v.margin=n,v}function g(t,e){return e&&t&&s(l,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=c,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,n){var i=e.width,o=e.height,s=a(t.x,i),l=a(t.y,o),u=a(t.x2,i),h=a(t.y2,o);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=o),n=r.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(h-l-n[0]-n[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,n,a,r){var s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new o(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(h=h.clone()).applyTransform(c)}e=p(i.defaults({width:h.width,height:h.height},e),n,a);var d=t.position,f=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,n){!i.isObject(n)&&(n={});var o=n.ignoreSize;!i.isArray(o)&&(o=[o,o]);var a=l(u[0],0),r=l(u[1],1);function l(n,i){var a={},r=0,l={},u=0;if(s(n,function(e){l[e]=t[e]}),s(n,function(t){h(e,t)&&(a[t]=l[t]=e[t]),c(a,t)&&r++,c(l,t)&&u++}),o[i])return c(e,n[1])?l[n[2]]=null:c(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&r){if(r>=2)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!h(a,f)&&h(t,f)){a[f]=t[f];break}}return a}return l}function h(t,e){return t.hasOwnProperty(e)}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,function(t){e[t]=n[t]})}d(u[0],t,a),d(u[1],t,r)},e.getLayoutParams=function(t){return g({},t)},e.copyLayoutParams=g},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array;function i(t){return Math.sqrt(a(t))}var o=i;function a(t){return t[0]*t[0]+t[1]*t[1]}var r=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var h=u;e.create=function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},e.len=i,e.length=o,e.lenSquare=a,e.lengthSquare=r,e.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},e.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.normalize=function(t,e){var n=i(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},e.distance=s,e.dist=l,e.distanceSquare=u,e.distSquare=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},e.applyTransform=function(t,e,n){var i=e[0],o=e[1];return t[0]=n[0]*i+n[2]*o+n[4],t[1]=n[1]*i+n[3]*o+n[5],t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e,n){var i=n(0),o=n(20),a=n(3);var r=i.normalizeCssArray;function s(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};var h=function(t){return t<10?"0"+t:t};var c=o.truncateText,d=o.getBoundingRect;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=r,e.encodeHTML=s,e.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],r=0;r<a.length;r++){var h=l[r],c=u(h,0);t=t.replace(u(h),n?s(c):c)}for(var d=0;d<o;d++)for(var f=0;f<a.length;f++)c=e[d][a[f]],t=t.replace(u(l[f],d),n?s(c):c);return t},e.formatTplSimple=function(t,e,n){return i.each(e,function(e,i){t=t.replace("{"+i+"}",n?s(e):e)}),t},e.getTooltipMarker=function(t,e){return t?'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+s(t)+";"+(e||"")+'"></span>':""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=a.parseDate(e),o=n?"UTC":"",r=i["get"+o+"FullYear"](),s=i["get"+o+"Month"]()+1,l=i["get"+o+"Date"](),u=i["get"+o+"Hours"](),c=i["get"+o+"Minutes"](),d=i["get"+o+"Seconds"]();return t=t.replace("MM",h(s)).replace("M",s).replace("yyyy",r).replace("yy",r%100).replace("dd",h(l)).replace("d",l).replace("hh",h(u)).replace("h",u).replace("mm",h(c)).replace("m",c).replace("ss",h(d)).replace("s",d)},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=c,e.getTextRect=d},function(t,e,n){var i=n(7),o=n(16),a=i.applyTransform,r=Math.min,s=Math.max;function l(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}l.prototype={constructor:l,union:function(t){var e=r(t.x,this.x),n=r(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this.height=s(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(o){if(o){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,a(t,t,o),a(e,e,o),a(n,n,o),a(i,i,o),this.x=r(t[0],e[0],n[0],i[0]),this.y=r(t[1],e[1],n[1],i[1]);var l=s(t[0],e[0],n[0],i[0]),u=s(t[1],e[1],n[1],i[1]);this.width=l-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=o.create();return o.translate(a,a,[-e.x,-e.y]),o.scale(a,a,[n,i]),o.translate(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof l||(t=l.create(t));var e=this,n=e.x,i=e.x+e.width,o=e.y,a=e.y+e.height,r=t.x,s=t.x+t.width,u=t.y,h=t.y+t.height;return!(i<r||s<n||a<u||h<o)},contain:function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(t){return new l(t.x,t.y,t.width,t.height)};var u=l;t.exports=u},function(t,e,n){var i=n(0),o=n(11),a=n(24),r=n(179),s=n(180),l=n(181),u=n(200),h=i.mixin;function c(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function d(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"==typeof t?t[e[i]]:null));i++);return null==t&&n&&(t=n.get(e)),t}function f(t,e){var n=a.get(t,"getParent");return n?n.call(t,e):t.parentModel}c.prototype={constructor:c,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:d(this.option,this.parsePath(t),!e&&f(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],o=!e&&f(this,t);return null==i&&o&&(i=o.getShallow(t)),i},getModel:function(t,e){var n;return new c(null==t?this.option:d(this.option,t=this.parsePath(t)),e=e||(n=f(this,t))&&n.getModel(t),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(i.clone(this.option))},setReadOnly:function(t){a.setReadOnly(this,t)},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){a.set(this,"getParent",t)},isAnimationEnabled:function(){if(!o.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},a.enableClassExtend(c),h(c,r),h(c,s),h(c,l),h(c,u);var p=c;t.exports=p},function(t,e){var n="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:function(t){var e={},n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(e.firefox=!0,e.version=n[1]);i&&(e.ie=!0,e.version=i[1]);o&&(e.edge=!0,e.version=o[1]);a&&(e.weChat=!0);return{browser:e,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!e.ie&&!e.edge,pointerEventsSupported:"onpointerdown"in window&&(e.edge||e.ie&&e.version>=11)}}(navigator.userAgent);t.exports=n},function(t,e,n){var i=n(54),o=n(0),a=n(37),r=n(183),s=n(98).prototype.getCanvasPattern,l=Math.abs,u=new a(!0);function h(t){i.call(this,t),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n,i=this.style,o=this.path||u,a=i.hasStroke(),r=i.hasFill(),l=i.fill,h=i.stroke,c=r&&!!l.colorStops,d=a&&!!h.colorStops,f=r&&!!l.image,p=a&&!!h.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(c&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,l,n)),d&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,h,n)));c?t.fillStyle=this._fillGradient:f&&(t.fillStyle=s.call(l,t)),d?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=s.call(h,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();o.setScale(y[0],y[1]),this.__dirtyPath||g&&!v&&a?(o.beginPath(t),g&&!v&&(o.setLineDash(g),o.setLineDashOffset(m)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r&&o.fill(t),g&&v&&(t.setLineDash(g),t.lineDashOffset=m),a&&o.stroke(t),g&&v&&t.setLineDash([]),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n)