UNPKG

@bee-hole/server

Version:

www.bee-hole.com

1 lines 487 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4d0bfc2"],{"00d8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6d8b");function o(t,e){return e=e||[0,0],i["H"]([0,1],(function(n){var i=e[n],o=t[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])}),this)}function r(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:i["c"](o,t)}}}},"0156":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var i=n("6d8b"),o=n("e0d3");function r(t,e,n){n=n||{};var o=t.coordinateSystem,r=e.axis,a={},s=r.getAxesOnZeroOf()[0],l=r.position,c=s?"onZero":l,u=r.dim,d=o.getRect(),h=[d.x,d.x+d.width,d.y,d.y+d.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}a.position=["y"===u?g[p[c]]:h[0],"x"===u?g[p[c]]:h[3]],a.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[l],a.labelOffset=s?g[p[l]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===c?-y:y,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return i["k"](e,(function(n,i){var r=i.replace(/Model$/,""),a=t.getReferringComponents(r,o["b"]).models[0];e[i]=a})),e}},"01ef":function(t,e,n){"use strict";function i(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function o(t,e,n,i){var o=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/t.zoom;t.zoom=a,o.x-=(n-o.x)*(c-1),o.y-=(i-o.y)*(c-1),o.scaleX*=c,o.scaleY*=c,o.dirty()}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}))},"04f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return y}));var i=n("07fd"),o=n("e0d3"),r=n("6d8b"),a=n("2b17"),s=n("b7d9a"),l=n("edae"),c=n("ec6f"),u=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s["d"])(t,e)},t}();function d(t,e){var n=new u,o=t.data,s=n.sourceFormat=t.sourceFormat,c=t.startIndex,d="";t.seriesLayoutBy!==i["a"]&&Object(l["c"])(d);var m=[],v={},y=t.dimensionsDefine;if(y)Object(r["k"])(y,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(m.push(i),null!=n){var o="";Object(r["q"])(v,n)&&Object(l["c"])(o),v[n]=i}}));else for(var b=0;b<t.dimensionsDetectedCount;b++)m.push({index:b});var x=Object(a["c"])(s,i["a"]);e.__isBuiltIn&&(n.getRawDataItem=function(t){return x(o,c,m,t)},n.getRawData=Object(r["c"])(h,null,t)),n.cloneRawData=Object(r["c"])(p,null,t);var _=Object(a["b"])(s,i["a"]);n.count=Object(r["c"])(_,null,o,c,m);var O=Object(a["d"])(s);n.retrieveValue=function(t,e){var n=x(o,c,m,t);return w(n,e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=m[e];return n?O(t,e,n.name):void 0}};return n.getDimensionInfo=Object(r["c"])(f,null,m,v),n.cloneAllDimensionInfo=Object(r["c"])(g,null,m),n}function h(t){var e=t.sourceFormat;if(!x(e)){var n="";0,Object(l["c"])(n)}return t.data}function p(t){var e=t.sourceFormat,n=t.data;if(!x(e)){var o="";0,Object(l["c"])(o)}if(e===i["c"]){for(var a=[],s=0,c=n.length;s<c;s++)a.push(n[s].slice());return a}if(e===i["e"]){for(a=[],s=0,c=n.length;s<c;s++)a.push(Object(r["m"])({},n[s]));return a}}function f(t,e,n){if(null!=n)return Object(r["z"])(n)||!isNaN(n)&&!Object(r["q"])(e,n)?t[n]:Object(r["q"])(e,n)?e[n]:void 0}function g(t){return Object(r["d"])(t)}var m=Object(r["f"])();function v(t){t=Object(r["d"])(t);var e=t.type,n="";e||Object(l["c"])(n);var i=e.split(":");2!==i.length&&Object(l["c"])(n);var o=!1;"echarts"===i[0]&&(e=i[1],o=!0),t.__isBuiltIn=o,m.set(e,t)}function y(t,e,n){var i=Object(o["r"])(t),r=i.length,a="";r||Object(l["c"])(a);for(var s=0,c=r;s<c;s++){var u=i[s];e=b(u,e,n,1===r?null:s),s!==c-1&&(e.length=Math.max(e.length,1))}return e}function b(t,e,n,a){var s="";e.length||Object(l["c"])(s),Object(r["A"])(t)||Object(l["c"])(s);var u=t.type,h=m.get(u);h||Object(l["c"])(s);var p=Object(r["H"])(e,(function(t){return d(t,h)})),f=Object(o["r"])(h.transform({upstream:p[0],upstreamList:p,config:Object(r["d"])(t.config)}));return Object(r["H"])(f,(function(t,n){var o="";Object(r["A"])(t)||Object(l["c"])(o),t.data||Object(l["c"])(o);var a,s=Object(c["d"])(t.data);x(s)||Object(l["c"])(o);var u=e[0];if(u&&0===n&&!t.dimensions){var d=u.startIndex;d&&(t.data=u.data.slice(0,d).concat(t.data)),a={seriesLayoutBy:i["a"],sourceHeader:d,dimensions:u.metaRawOption.dimensions}}else a={seriesLayoutBy:i["a"],sourceHeader:0,dimensions:t.dimensions};return Object(c["b"])(t.data,a,null)}))}function x(t){return t===i["c"]||t===i["e"]}},"06c7":function(t,e,n){"use strict";var i=n("6d8b"),o=n("6a2f"),r=n("b682"),a=n("b1d4"),s=n("e0d3"),l=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){i["w"](t)&&(n=e,e=t,t=null),t=t||{},i["C"](t)&&(t={order:t});var o,r=t.order||"preorder",a=this[t.attr||"children"];"preorder"===r&&(o=e.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),c=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,c){var d=new t(n),h=[],p=1;function f(t,e){var n=t.value;p=Math.max(p,i["t"](n)?n.length:1),h.push(t);var o=new l(Object(s["e"])(t.name,""),d);e?u(o,e):d.root=o,d._nodes.push(o);var r=t.children;if(r)for(var a=0;a<r.length;a++)f(r[a],o)}f(e),d.root.updateDepthAndHeight(0);var g=Object(a["a"])(h,{coordDimensions:["value"],dimensionsCount:p}).dimensions,m=new r["a"](g,n);return m.initData(h),c&&c(m),Object(o["a"])({mainData:m,struct:d,structAttr:"tree"}),d.update(),d},t}();function u(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}e["a"]=c},"0c41":function(t,e,n){"use strict";var i=n("6d8b"),o=n("4a01"),r=n("01ef"),a=n("c526"),s=n("2dc5"),l=n("deca0"),c=n("87b1"),u=n("d498"),d=n("d4c6"),h=n("2306"),p=n("7d6c"),f=n("5b87"),g=n("8918"),m=n("7837"),v=n("861c"),y=n("b3c15"),b=n("19eb"),x=n("e0d3"),_=["rect","circle","line","ellipse","polygon","polyline","path"],O=i["f"](_),w=i["f"](_.concat(["g"])),M=i["f"](_.concat(["g"])),S=Object(x["o"])();function j(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function I(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var C=function(){function t(t){var e=new s["a"];this.uid=Object(g["c"])("ec_map_draw"),this._controller=new o["a"](t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new s["a"]),e.add(this._svgGroup=new s["a"])}return t.prototype.draw=function(t,e,n,i,o){var r="geo"===t.mainType,a=t.getData&&t.getData();r&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,c=this._regionsGroup,u=this.group,d=s.getTransformInfo(),h=d.raw,p=d.roam,f=!c.childAt(0)||o;f?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):l["h"](u,p,t);var g=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,m={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:g,isGeo:r,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(t,e,n),this._updateMapSelectHandler(t,c,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=i["f"](),n=i["f"](),o=this._regionsGroup,r=t.transformInfoRaw,a=t.mapOrGeoModel,l=t.data,h=t.geo.projection,p=h&&h.stream;function f(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function g(t){for(var e=[],n=!p&&h&&h.project,i=0;i<t.length;++i){var o=f(t[i],n);o&&e.push(o)}return e}function m(t){return{shape:{points:g(t)}}}o.removeAll(),i["k"](t.geo.regions,(function(r){var g=r.name,v=e.get(g),y=n.get(g)||{},b=y.dataIdx,x=y.regionModel;v||(v=e.set(g,new s["a"]),o.add(v),b=l?l.indexOfName(g):null,x=t.isGeo?a.getRegionModel(g):l?l.getItemModel(b):null,n.set(g,{dataIdx:b,regionModel:x}));var _=[],O=[];i["k"](r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);p&&(e=P(e,p)),i["k"](e,(function(t){_.push(new c["a"](m(t)))}))}else{var n=t.points;p&&(n=P(n,p,!0)),i["k"](n,(function(t){O.push(new u["a"](m(t)))}))}}));var w=f(r.getCenter(),h&&h.project);function M(e,n){if(e.length){var o=new d["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});v.add(o),T(t,o,b,x),k(t,o,g,x,a,b,w),n&&(I(o),i["k"](o.states,I))}}M(_),M(O,!0)})),e.each((function(e,i){var o=n.get(i),r=o.dataIdx,s=o.regionModel;A(t,e,i,s,a,r),D(t,e,i,s,a),L(t,e,i,s,a)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var o=this._svgDispatcherMap=i["f"](),r=!1;i["k"](this._svgGraphicRecord.named,(function(e){var n=e.name,i=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,c=a?a.indexOfName(n):null,u=i.getRegionModel(n);if(null!=O.get(s)&&l instanceof b["c"]&&T(t,l,c,u),l instanceof b["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=M.get(s)&&k(t,l,n,u,i,c,null),A(t,l,n,u,i,c),D(t,l,n,u,i),null!=w.get(s))){var d=L(t,l,n,u,i);"self"===d&&(r=!0);var h=o.get(n)||o.set(n,[]);h.push(l)}}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Object(p["G"])(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var o=i.get(t);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=f["a"].getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=f["a"].getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var o=t.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=t.get("scaleLimit"),l.zoom=o.getZoom(),s.enable(t.get("roam")||!1);var c=t.mainType;function u(){var e={type:"geoRoam",componentType:c};return e[c+"Id"]=t.id,e}s.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,r["a"](l,t.dx,t.dy),n.dispatchAction(i["m"](u(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),s.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,r["b"](l,t.scale,t.originX,t.originY),n.dispatchAction(i["m"](u(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),s.setPointerChecker((function(e,i,r){return o.containPoint([i,r])&&!Object(a["a"])(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=S(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){o._mouseDownFlag=!0})),e.on("click",(function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},t}();function T(t,e,n,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=j(o),c=j(r),u=j(s),d=j(a),h=t.data;if(h){var f=h.getItemVisual(n,"style"),g=h.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),g&&(l.decal=Object(y["a"])(g,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=c,e.ensureState("select").style=u,e.ensureState("blur").style=d,Object(p["G"])(e)}function k(t,e,n,i,o,r,a){var s=t.data,l=t.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);if(l||c||u&&u.showLabel){var d=l?n:r,h=void 0;(!s||r>=0)&&(h=o);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(m["g"])(e,Object(m["e"])(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=e.getTextContent();if(f&&(S(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function A(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):Object(v["a"])(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function D(t,e,n,i,o){t.data||h["setTooltipConfig"]({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function L(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return Object(p["J"])(e,a,r.get("blurScope"),r.get("disabled")),t.isGeo&&Object(p["n"])(e,o,n),a}function P(t,e,n){var o,r=[];function a(){o=[]}function s(){o.length&&(r.push(o),o=[])}var l=e({polygonStart:a,polygonEnd:s,lineStart:a,lineEnd:s,point:function(t,e){isFinite(t)&&isFinite(e)&&o.push([t,e])},sphere:function(){}});return!n&&l.polygonStart(),i["k"](t,(function(t){l.lineStart();for(var e=0;e<t.length;e++)l.point(t[e][0],t[e][1]);l.lineEnd()})),!n&&l.polygonEnd(),r}e["a"]=C},"0f99":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return p}));var i=n("e0d3"),o=n("6d8b"),r=n("07fd"),a={Must:1,Might:2,Not:3},s=Object(i["o"])();function l(t){s(t).datasetMap=Object(o["f"])()}function c(t,e,n){var i={},r=d(e);if(!r||!t)return i;var a,l,c=[],u=[],h=e.ecModel,p=s(h).datasetMap,f=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(o["k"])(t,(function(e,n){var r=Object(o["A"])(e)?e:t[n]={name:e};"ordinal"===r.type&&null==a&&(a=n,l=v(r)),i[r.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function m(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function v(t){var e=t.dimsDef;return e?e.length:1}return Object(o["k"])(t,(function(t,e){var n=t.name,o=v(t);if(null==a){var r=g.valueWayDim;m(i[n],r,o),m(u,r,o),g.valueWayDim+=o}else if(a===e)m(i[n],0,o),m(c,0,o);else{r=g.categoryWayDim;m(i[n],r,o),m(u,r,o),g.categoryWayDim+=o}})),c.length&&(i.itemName=c),u.length&&(i.seriesName=u),i}function u(t,e,n){var i={},s=d(t);if(!s)return i;var l,c=e.sourceFormat,u=e.dimensionsDefine;c!==r["e"]&&c!==r["d"]||Object(o["k"])(u,(function(t,e){"name"===(Object(o["A"])(t)?t.name:t)&&(l=e)}));var h=function(){for(var t={},i={},o=[],r=0,s=Math.min(5,n);r<s;r++){var d=f(e.data,c,e.seriesLayoutBy,u,e.startIndex,r);o.push(d);var h=d===a.Not;if(h&&null==t.v&&r!==l&&(t.v=r),(null==t.n||t.n===t.v||!h&&o[t.n]===a.Not)&&(t.n=r),p(t)&&o[t.n]!==a.Not)return t;h||(d===a.Might&&null==i.v&&r!==l&&(i.v=r),null!=i.n&&i.n!==i.v||(i.n=r))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(h){i.value=[h.v];var p=null!=l?l:h.n;i.itemName=[p],i.seriesName=[p]}return i}function d(t){var e=t.get("data",!0);if(!e)return Object(i["v"])(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i["b"]).models[0]}function h(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Object(i["v"])(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i["b"]).models:[]}function p(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,c){var u,d,h,p=5;if(Object(o["E"])(t))return a.Not;if(s){var f=s[c];Object(o["A"])(f)?(d=f.name,h=f.type):Object(o["C"])(f)&&(d=f)}if(null!=h)return"ordinal"===h?a.Must:a.Not;if(e===r["c"]){var g=t;if(n===r["b"]){for(var m=g[c],v=0;v<(m||[]).length&&v<p;v++)if(null!=(u=M(m[l+v])))return u}else for(v=0;v<g.length&&v<p;v++){var y=g[l+v];if(y&&null!=(u=M(y[c])))return u}}else if(e===r["e"]){var b=t;if(!d)return a.Not;for(v=0;v<b.length&&v<p;v++){var x=b[v];if(x&&null!=(u=M(x[d])))return u}}else if(e===r["d"]){var _=t;if(!d)return a.Not;m=_[d];if(!m||Object(o["E"])(m))return a.Not;for(v=0;v<m.length&&v<p;v++)if(null!=(u=M(m[v])))return u}else if(e===r["f"]){var O=t;for(v=0;v<O.length&&v<p;v++){x=O[v];var w=Object(i["h"])(x);if(!Object(o["t"])(w))return a.Not;if(null!=(u=M(w[c])))return u}}function M(t){var e=Object(o["C"])(t);return null!=t&&isFinite(t)&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},"104d":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("22b4"),o=n("e1ff"),r=n("ac12");function a(t){Object(i["a"])(o["a"]),Object(i["a"])(r["a"])}},"133d":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6d8b"),o=n("e0d3");function r(t,e){var n,r=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=o["u"](s,t);if(null==l||l<0||i["t"](l))return{point:[]};var c=s.getItemGraphicEl(l),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)if(t.isStacked){var d=u.getBaseAxis(),h=u.getOtherAxis(d),p=h.dim,f=d.dim,g="x"===p||"radius"===p?1:0,m=s.mapDimension(f),v=[];v[g]=s.get(m,l),v[1-g]=s.get(s.getCalculationInfo("stackResultDimension"),l),r=u.dataToPoint(v)||[]}else r=u.dataToPoint(s.getValues(i["H"](u.dimensions,(function(t){return s.mapDimension(t)})),l))||[];else if(c){var y=c.getBoundingRect().clone();y.applyTransform(c.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:c}}},1459:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("6d8b"),o=n("50e5"),r=n("3842"),a=n("ef6a"),s=n("697e"),l=n("538f"),c=n("e0d3"),u=i["k"],d=r["c"],h=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(Object(o["e"])(e)){var n=Object(o["d"])(this._dimName),i=e.getReferringComponents(n,c["b"]).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return i["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,s=this._dataZoomModel.getRangePropMode(),l=[0,100],c=[],h=[];u(["start","end"],(function(i,a){var u=t[i],d=t[i+"Value"];"percent"===s[a]?(null==u&&(u=l[a]),d=o.parse(r["k"](u,l,n))):(e=!0,d=null==d?n[a]:o.parse(d),u=r["k"](d,n,l)),h[a]=null==d||isNaN(d)?n[a]:d,c[a]=null==u||isNaN(u)?l[a]:u})),d(h),d(c);var p=this._minMaxSpan;function f(t,e,n,i,s){var l=s?"Span":"ValueSpan";Object(a["a"])(0,t,n,"all",p["min"+l],p["max"+l]);for(var c=0;c<2;c++)e[c]=r["k"](t[c],n,i,!0),s&&(e[c]=o.parse(e[c]))}return e?f(h,c,n,l,!1):f(c,h,l,n,!0),{valueWindow:h,percentWindow:c}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=p(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,o=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&u(o,(function(t){var e=t.getData(),o=e.mapDimensionsAll(n);if(o.length){if("weakFilter"===r){var l=e.getStore(),c=i["H"](o,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,r=0;r<o.length;r++){var s=l.get(c[r],t),u=!isNaN(s),d=s<a[0],h=s>a[1];if(u&&!d&&!h)return!0;u&&(i=!0),d&&(e=!0),h&&(n=!0)}return i&&e&&n}))}else u(o,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return s(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}}));u(o,(function(t){e.setApproximateExtent(a,t)}))}}))}function s(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;u(["min","max"],(function(i){var o=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?o=r["k"](n[0]+a,n,[0,100],!0):null!=o&&(a=r["k"](o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=r["f"](n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},t}();function p(t,e,n){var i=[1/0,-1/0];u(n,(function(t){Object(s["k"])(i,t.getData(),e)}));var o=t.getAxisModel(),r=Object(l["a"])(o.axis.scale,o,i).calculate();return[r.min,r.max]}var f=h,g={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var a=t.getComponent(Object(o["d"])(i),r);e(i,r,a,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new f(e,i,r,t),n.push(o.__dzAxisProxy))}));var r=Object(i["f"])();return Object(i["k"])(n,(function(t){Object(i["k"])(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},m=g;function v(t){t.registerAction("dataZoom",(function(t,e){var n=Object(o["c"])(e,t);Object(i["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var y=!1;function b(t){y||(y=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,m),v(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},"17d6":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return f}));var i=n("6d8b"),o=n("22d1"),r=n("e0d3"),a=Object(r["o"])(),s=i["k"];function l(t,e,n){if(!o["a"].node){var i=e.getZr();a(i).records||(a(i).records={}),c(i,e);var r=a(i).records[t]||(a(i).records[t]={});r.handler=n}}function c(t,e){function n(n,i){t.on(n,(function(n){var o=p(e);s(a(t).records,(function(t){t&&i(t,n,o.dispatchAction)})),u(o.pendings,e)}))}a(t).initialized||(a(t).initialized=!0,n("click",i["h"](h,"click")),n("mousemove",i["h"](h,"mousemove")),n("globalout",d))}function u(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function d(t,e,n){t.handler("leave",null,n)}function h(t,e,n,i){e.handler(t,n,i)}function p(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function f(t,e){if(!o["a"].node){var n=e.getZr(),i=(a(n).records||{})[t];i&&(a(n).records[t]=null)}}},"1be7":function(t,e,n){"use strict";n.d(e,"a",(function(){return jt})),n.d(e,"b",(function(){return be})),n.d(e,"j",(function(){return Oe})),n.d(e,"k",(function(){return we})),n.d(e,"h",(function(){return Me})),n.d(e,"i",(function(){return Se})),n.d(e,"m",(function(){return je})),n.d(e,"c",(function(){return Ie})),n.d(e,"d",(function(){return Ce})),n.d(e,"e",(function(){return Te})),n.d(e,"n",(function(){return ke})),n.d(e,"f",(function(){return Le})),n.d(e,"g",(function(){return Pe})),n.d(e,"l",(function(){return Re}));var i=n("7fae"),o=n("697e7"),r=n("6d8b"),a=n("22d1"),s=n("04f6"),l=n("6fd3"),c=n("7e63"),u=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],d=function(){function t(t){r["k"](u,(function(e){this[e]=r["c"](t[e],t)}),this)}return t}(),h=d,p=n("1f39"),f=n("ca98"),g=n("fb05"),m=n("d15d"),v=n("4f85"),y=n("b12f"),b=n("e887"),x=n("c7a2"),_=n("0da8"),O=n("deca0"),w=n("cbe5"),M=n("861c"),S=n("7d6c"),j=n("e0d3"),I=n("88b3"),C=n("15a5"),T=n("998c"),k=n("9fbc"),A=n("8918"),D=function(){function t(t,e,n,i){this._stageTaskMap=Object(r["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,o=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,r=o?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/r):null;return{step:r,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&o>=n.threshold,a=t.get("large")&&o>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?o:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(r["f"])();t.eachSeries((function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(r["k"])(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Object(r["b"])(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(r["k"])(t,(function(t,r){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,h=u.agentStubMap;h.each((function(t){s(i,t)&&(t.dirty(),d=!0)})),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,i.block);h.each((function(t){t.perform(p)})),u.perform(p)&&(o=!0)}else c&&c.each((function(r,l){s(i,r)&&r.dirty();var c=a.getPerformArgs(r,i.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(c)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Object(r["f"])(),l=t.seriesType,c=t.getTargetSeries;function u(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Object(k["a"])({plan:z,reset:B,count:G}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):l?n.eachRawSeriesByType(l,u):c&&c(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var o=this,a=e.overallTask=e.overallTask||Object(k["a"])({reset:L});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Object(r["f"])(),c=t.seriesType,u=t.getTargetSeries,d=!0,h=!1,p="";function f(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(h=!0,Object(k["a"])({reset:P,onDirty:E})));n.context={model:t,overallProgress:d},n.agent=a,n.__block=d,o._pipe(t,n)}Object(r["b"])(!t.createOnAllSeries,p),c?n.eachRawSeriesByType(c,f):u?u(n,i).each(f):(d=!1,Object(r["k"])(n.getSeries(),f)),h&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(r["w"])(t)&&(t={overallReset:t,seriesType:H(t)}),t.uid=Object(A["c"])("stageHandler"),e&&(t.visualType=e),t},t}();function L(t){t.overallReset(t.ecModel,t.api,t.payload)}function P(t){return t.overallProgress&&R}function R(){this.agent.dirty(),this.getDownstream().dirty()}function E(){this.agent&&this.agent.dirty()}function z(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function B(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(j["r"])(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(r["H"])(e,(function(t,e){return N(e)})):V}var V=N(0);function N(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function G(t){return t.data.count()}function H(t){W=null;try{t(F,Z)}catch(e){}return W}var W,F={},Z={};function U(t,e){for(var n in e.prototype)t[n]=r["L"]}U(F,c["a"]),U(Z,h),F.eachSeriesByType=F.eachRawSeriesByType=function(t){W=t},F.eachComponent=function(t){"series"===t.mainType&&t.subType&&(W=t.subType)};var Y=D,X=n("c533"),K=n("f219"),q=n("625e"),J=n("a1d9"),$=n("7f96"),Q=n("0924"),tt=n("edae"),et=n("f3bb"),nt=n("04f7"),it=n("ef59"),ot=n("fadd"),rt=n("a699"),at=new l["a"],st=at,lt=n("726e"),ct=n("58c9"),ut=1,dt=800,ht=900,pt=1e3,ft=2e3,gt=5e3,mt=1e3,vt=1100,yt=2e3,bt=3e3,xt=4e3,_t=4500,Ot=4600,wt=5e3,Mt=6e3,St=7e3,jt={PROCESSOR:{FILTER:pt,SERIES_FILTER:dt,STATISTIC:gt},VISUAL:{LAYOUT:mt,PROGRESSIVE_LAYOUT:vt,GLOBAL:yt,CHART:bt,POST_CHART_LAYOUT:Ot,COMPONENT:xt,BRUSH:wt,CHART_ITEM:_t,ARIA:Mt,DECAL:St}},It="__flagInMainProcess",Ct="__pendingUpdate",Tt="__needsUpdateStatus",kt=/^[a-zA-Z0-9_]+$/,At="__connectUpdateStatus",Dt=0,Lt=1,Pt=2;function Rt(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return zt(this,t,e);se(this.id)}}function Et(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return zt(this,t,e)}}function zt(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l["a"].prototype[e].apply(t,n)}var Bt,Vt,Nt,Gt,Ht,Wt,Ft,Zt,Ut,Yt,Xt,Kt,qt,Jt,$t,Qt,te,ee,ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(l["a"]),ie=ne.prototype;ie.on=Et("on"),ie.off=Et("off");var oe=function(t){function e(e,n,i){var a=t.call(this,new J["a"])||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Object(r["C"])(n)&&(n=pe[n]),a._dom=e;var l="canvas",c="auto",u=!1,d=a._zr=o["a"](e,{renderer:i.renderer||l,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(r["P"])(i.useDirtyRect,u),useCoarsePointer:Object(r["P"])(i.useCoarsePointer,c),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Object(I["c"])(Object(r["c"])(d.flush,d),17),n=Object(r["d"])(n),n&&Object(g["a"])(n,!0),a._theme=n,a._locale=Object(it["b"])(i.locale||it["a"]),a._coordSysMgr=new p["a"];var h=a._api=$t(a);function f(t,e){return t.__prio-e.__prio}return Object(s["a"])(he,f),Object(s["a"])(ue,f),a._scheduler=new Y(a,h,ue,he),a._messageCenter=new ne,a._initEvents(),a.resize=Object(r["c"])(a.resize,a),d.animation.on("frame",a._onframe,a),Yt(d,a),Xt(d,a),Object(r["R"])(a),a}return Object(i["a"])(e,t),e.prototype._onframe=function(){if(!this._disposed){ee(this);var t=this._scheduler;if(this[Ct]){var e=this[Ct].silent;this[It]=!0;try{Bt(this),Gt.update.call(this,null,this[Ct].updateParams)}catch(a){throw this[It]=!1,this[Ct]=null,a}this._zr.flush(),this[It]=!1,this[Ct]=null,Zt.call(this,e),Ut.call(this,e)}else if(t.unfinished){var n=ut,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Wt(this,i),t.performVisualTasks(i),Jt(this,this._model,o,"remain",{}),n-=+new Date-r}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[It])if(this._disposed)se(this.id);else{var i,o,a;if(Object(r["A"])(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,a=e.transition,e=e.notMerge),this[It]=!0,!this._model||e){var s=new f["a"](this._api),l=this._theme,u=this._model=new c["a"];u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:o},de);var d={seriesTransition:a,optionChanged:!0};if(n)this[Ct]={silent:i,updateParams:d},this[It]=!1,this.getZr().wakeUp();else{try{Bt(this),Gt.update.call(this,null,d)}catch(h){throw this[Ct]=null,this[It]=!1,h}this._ssr||this._zr.flush(),this[Ct]=null,this[It]=!1,Zt.call(this,i),Ut.call(this,i)}}},e.prototype.setTheme=function(){Object(tt["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(r["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],o=this;Object(r["k"])(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.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(r["k"])(i,(function(t){t.group.ignore=!1})),a}se(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(me[n]){var l=s,c=s,u=-s,d=-s,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();Object(r["k"])(ge,(function(o,s){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(r["d"])(t)),f=o.getDom().getBoundingClientRect();l=i(f.left,l),c=i(f.top,c),u=a(f.right,u),d=a(f.bottom,d),h.push({dom:p,left:f.left,top:f.top})}})),l*=p,c*=p,u*=p,d*=p;var f=u-l,g=d-c,m=lt["d"].createCanvas(),v=o["a"](m,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:g}),e){var y="";return Object(r["k"])(h,(function(t){var e=t.left-l,n=t.top-c;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new x["a"]({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),Object(r["k"])(h,(function(t){var e=new _["a"]({style:{x:t.left*p-l,y:t.top*p-c,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}se(this.id)},e.prototype.convertToPixel=function(t,e){return Ht(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Ht(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,o=j["s"](i,t);return Object(r["k"])(o,(function(t,i){i.indexOf("Models")>=0&&Object(r["k"])(t,(function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(e);else if("seriesModels"===i){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(n=n||r.containPoint(e,t))}else 0}),this)}),this),!!n}se(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=j["s"](n,t,{defaultMainType:"series"}),o=i.seriesModel;var r=o.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=a?Object(Q["a"])(r,a,e):Object(Q["b"])(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(r["k"])(ae,(function(e){var n=function(n){var i,o=t.getModel(),a=n.target,s="globalout"===e;if(s?i={}:a&&Object(ot["a"])(a,(function(t){var e=Object(M["a"])(t);if(e&&null!=e.dataIndex){var n=e.dataModel||o.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=Object(r["m"])({},e.eventData),!0}),!0),i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&o.getComponent(l,c),d=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:d},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(r["k"])(ce,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(r["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(et["b"])(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?se(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)se(this.id);else{this._disposed=!0;var t=this.getDom();t&&j["w"](this.getDom(),ye,"");var e=this,n=e._api,i=e._model;Object(r["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(r["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ge[e.id]}},e.prototype.resize=function(t){if(!this[It])if(this._disposed)se(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Ct]&&(null==i&&(i=this[Ct].silent),n=!0,this[Ct]=null),this[It]=!0;try{n&&Bt(this),Gt.update.call(this,{type:"resize",animation:Object(r["m"])({duration:0},t&&t.animation)})}catch(o){throw this[It]=!1,o}this[It]=!1,Zt.call(this,i),Ut.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)se(this.id);else if(Object(r["A"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),fe[t]){var n=fe[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?se(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(r["m"])({},t);return e.type=ce[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)se(this.id);else if(Object(r["A"])(e)||(e={silent:!!e}),le[t.type]&&this._model)if(this[It])this._pendingActions.push(t);else{var n=e.silent;Ft.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a["a"].browser.weChat&&this._throttledZrFlush(),Zt.call(this,n),Ut.call(this,n)}},e.prototype.updateLabelLayout=function(){st.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)se(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,o){var r=o.get("zlevel")||0,a=o.get("z")||0,s=o.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:r,z:a,idx:o.componentIndex,type:t,key:s})})),i){var o,a,l=e.concat(n);Object(s["a"])(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(r["k"])(l,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,r=e.key;null!=o&&(i=Math.max(o,i)),r?(i===o&&r!==a&&i++,a=r):a&&(i===o&&i++,a=""),o=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===S["e"]&&t.states.emphasis?e.push("emphasis"):t.hoverState===S["d"]&&t.states.blur&&e.push("blur"),t.useStates(e)}function o(t,e){var n=t._zr,i=n.storage,o=0;i.traverse((function(t){t.isGroup||o++})),o>e.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function l(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function c(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return u(t,n,i,-1/0),!0}))}}function u(t,e,n,i){var o=t.getTextContent(),r=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(u(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),r){var c=t.textGuideLineConfig;r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+(c&&c.showAbove?1:-1))}return i}function d(t,e){e.eachRendered((function(t){if(!O["d"](t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function p(t,e){var i=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),r=i.get("duration"),a=r>0?{duration:r,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(O["d"](t))return;if(t instanceof w["b"]&&Object(S["E"])(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(o){t.stateTransition=a;var i=t.getTextContent(),r=t.getTextGuideLine();i&&(i.stateTransition=a),r&&(r.stateTransition=a)}t.__dirty&&n(t)}}))}Bt=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Vt(t,!0),Vt(t,!1),e.plan()},Vt=function(t,e){for(var n=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<o.length;l++)o[l].__alive=!1;function c(t){var l=t.__requireNewView;t.__requireNewView=!1;var c="_ec_"+t.id+"_"+t.type,u=!l&&r[c];if(!u){var d=Object(q["f"])(t.type),h=e?y["a"].getClass(d.main,d.sub):b["a"].getClass(d.sub);0,u=new h,u.init(n,s),r[c]=u,o.push(u),a.add(u.group)}t.__viewId=u.__id=c,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(u,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&c(e)})):n.eachSeries(c);for(l=0;l<o.length;){var u=o[l];u.__alive?l++:(!e&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,s),o.splice(l,1),r[u.__id]===u&&delete r[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Nt=function(t,e,n,i,o){var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};o&&(l.subType=o);var c,u=n.excludeSeriesId;null!=u&&(c=Object(r["f"])(),Object(r["k"])(j["r"](u),(function(t){var e=j["e"](t,null);null!=e&&c.set(e,!0)}))),a&&a.eachComponent(l,(function(e){var i=c&&null!=c.get(e.id);if(!i)if(Object(S["z"])(n))if(e instanceof v["b"])n.type!==S["c"]||n.notBlur||e.get(["emphasis","disabled"])||Object(S["m"])(e,n,t._api);else{var o=Object(S["t"])(e.mainType,e.componentIndex,n.name,t._api),a=o.focusSelf,s=o.dispatchers;n.type===S["c"]&&a&&!n.notBlur&&Object(S["l"])(e.mainType,e.componentIndex,t._api),s&&Object(r["k"])(s,(function(t){n.type===S["c"]?Object(S["r"])(t):Object(S["C"])(t)}))}else Object(S["A"])(n)&&e instanceof v["b"]&&(Object(S["K"])(e,n,t._api),Object(S["L"])(e),te(t))}),t),a&&a.eachComponent(l,(function(e){var n=c&&null!=c.get(e.id);n||d(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(r["k"])([].concat(t._componentsViews).concat(t._chartsViews),d);function d(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},Gt={prepareAndUpdate:function(t){Bt(this),Gt.