12345678910 |
- !function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,d=i(e[u],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="horizontal",n="../../util/number",r="textBaseline",a="selected",o="superApply",s="symbol",l="mapArray",u="radius",c="getItemVisual",h="getItemLayout",d="../../echarts",f="../../util/graphic",p="dataToPoint",v="dimensions",m="ordinal",g="category",y="toFixed",x="parsePercent",_="getItemModel",w="../core/util",b="undefined",M="createElement",S="parent",T="animation",C="inside",z="stroke",A="lineWidth",P="applyTransform",L="zrender/core/BoundingRect",k="getItemGraphicEl",D="normal",I="emphasis",R="getName",V="getBaseAxis",O="formatter",E="ecModel",B="getComponent",G="concat",N="mergeOption",F="option",Z="getExtent",H="contain",W="../util/number",q="opacity",j="setStyle",X="position",U="center",Y="middle",J="getBoundingRect",K="getTextColor",$="getFont",Q="textAlign",te="textStyle",ee="getItemStyle",ie="coordinateSystem",ne="removeAll",re="isString",ae="inherits",oe="number",se="itemStyle",le="extendComponentView",ue="register",ce="function",he="registerAction",de="indexOf",fe="isArray",pe="replace",ve="traverse",me="zlevel",ge="getDataParams",ye="seriesIndex",xe="dataIndex",_e="target",we="mouseout",be="mouseover",Me="getData",Se="splice",Te="dispose",Ce="series",ze="eachSeries",Ae="trigger",Pe="length",Le="defaults",ke="dispatchAction",De="extend",Ie="remove",Re="isObject",Ve="update",Oe="create",Ee="height",Be="bottom",Ge="ignore",Ne="eachComponent",Fe="backgroundColor",Ze="canvasSupported",He="getHeight",We="getWidth",qe="getModel",je="resize",Xe="string",Ue="prototype",Ye="toLowerCase",Je="filter",Ke="transform",$e="zrender/core/vector",Qe="zrender/core/util",ti="require";e("echarts/echarts",[ti,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",Qe,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/number","./util/format","zrender/core/matrix",$e],function(t){function e(t){return function(e,i,n){e=e&&e[Ye](),z[Ue][t].call(this,e,i,n)}}function i(){z.call(this)}function n(t,e,n){n=n||{},typeof e===Xe&&(e=F[e]),e&&A(G,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=M.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=S.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new v(this),this._coordSysMgr=new m,z.call(this),this._messageCenter=new i,this._initEvents(),this[je]=S.bind(this[je],this)}function r(t,e){var i=this._model;i&&i[Ne]({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;A(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e[ze](function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),d(r,a)},this)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[Pe];o++)n[o].__alive=!1;e[i?Ne:ze](function(t,o){if(i){if(t===Ce)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=y.parseClassType(o.type),c=i?_.getClass(u.main,u.sub):w.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[Pe];){var s=n[o];s.__alive?o++:(a[Ie](s.group),s[Te](e,this._api),n[Se](o,1),delete r[s.__id])}}function s(t,e){A(L,function(i){A(B[i]||[],function(i){i(t,e)})})}function l(t){var e={};t[ze](function(t){var i=t.get("stack"),n=t[Me]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function u(t,e){var i=this._api;A(E,function(n){n(t,i,e)})}function c(t,e){A(P,function(i){A(N[i]||[],function(i){i(t,e)})})}function h(t,e){var i=this._api;A(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),d(r,n)},this),A(this._chartsViews,function(t){t.__alive=!1},this),t[ze](function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),d(n,r)},this),A(this._chartsViews,function(e){e.__alive||e[Ie](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(me);e.group[ve](function(t){null!=i&&(t.z=i),null!=n&&(t[me]=n)})}function f(t){function e(t,e){for(var i=0;i<t[Pe];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";S.each(O,function(o,s){t._messageCenter.on(s,function(o){if(H[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var u in Z){var c=Z[u];c!==t&&c.group===t.group&&l.push(c)}e(l,i),A(l,function(t){t[a]!==n&&t[ke](s)}),e(l,r)}})})}var p=t("./model/Global"),v=t("./ExtensionAPI"),m=t("./CoordinateSystem"),g=t("./model/OptionManager"),y=t("./model/Component"),x=t("./model/Series"),_=t("./view/Component"),w=t("./view/Chart"),b=t("./util/graphic"),M=t("zrender"),S=t(Qe),T=t("zrender/tool/color"),C=t("zrender/core/env"),z=t("zrender/mixin/Eventful"),A=S.each,P=["echarts","chart","component"],L=[Ke,Je,"statistic"];i[Ue].on=e("on"),i[Ue].off=e("off"),i[Ue].one=e("one"),S.mixin(i,z);var k=n[Ue];k.getDom=function(){return this._dom},k.getZr=function(){return this._zr},k.setOption=function(t,e,i){(!this._model||e)&&(this._model=new p(null,null,this._theme,new g(this._api))),this._model.setOption(t,G),D.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},k.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},k[qe]=function(){return this._model},k.getOption=function(){return this._model.getOption()},k[We]=function(){return this._zr[We]()},k[He]=function(){return this._zr[He]()},k.getRenderedCanvas=function(t){if(C[Ze]){t=t||{},t.pixelRatio=t.pixelRatio||1,t[Fe]=t[Fe]||this._model.get(Fe);var e=this._zr,i=e.storage.getDisplayList();return S.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},k.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;A(e,function(t){i[Ne]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[Ge]||(n.push(e),e.group[Ge]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(n,function(t){t.group[Ge]=!1}),a},k.getConnectedDataURL=function(t){if(C[Ze]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(H[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;for(var h in Z){var d=Z[h];if(d.group===e){var f=d.getRenderedCanvas(S.clone(t)),p=d.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[Be],l),u.push({dom:f,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,l*=c;var v=s-a,m=l-o,g=S.createCanvas();g.width=v,g[Ee]=m;var y=M.init(g);return A(u,function(t){var e=new b.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var D={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr;if(e){e.restoreData(),n[Oe](this._model,this._api),s.call(this,e,i),l.call(this,e),n[Ve](e,i),u.call(this,e,t),c.call(this,e,t),h.call(this,e,t);var r=e.get(Fe)||"transparent",a=this._zr.painter;if(a.isSingleCanvas&&a.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!C[Ze]){var o=T.parse(r);r=T.stringify(o,"rgb"),0===o[3]&&(r="transparent")}r=r,this._dom.style[Fe]=r}}},updateView:function(t){var e=this._model;e&&(u.call(this,e,t),c.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),D[Ve].call(this,t)}};k[je]=function(){this._zr[je]();var t=this._model&&this._model.resetOption("media");D[t?"prepareAndUpdate":Ve].call(this),this._loadingFX&&this._loadingFX[je]()};var I=t("./loading/default");k.showLoading=function(t,e){S[Re](t)&&(e=t,t="default");var i=I(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},k.hideLoading=function(){this._loadingFX&&this._zr[Ie](this._loadingFX),this._loadingFX=null},k.makeActionFromEvent=function(t){var e=S[De]({},t);return e.type=O[t.type],e},k[ke]=function(t,e){var i=V[t.type];if(i){var n=i.actionInfo,r=n[Ve]||Ve,a=[t],o=!1;t.batch&&(o=!0,a=S.map(t.batch,function(e){return e=S[Le](S[De]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[Pe];c++){var h=a[c];s=i.action(h,this._model),s=s||S[De]({},h),s.type=n.event||s.type,l.push(s),u&&D[r].call(this,h)}"none"!==r&&!u&&D[r].call(this,t),e||(s=o?{type:l[0].type,batch:l}:l[0],this._messageCenter[Ae](s.type,s))}},k.on=e("on"),k.off=e("off"),k.one=e("one");var R=["click","dblclick",be,we,"globalout"];k._initEvents=function(){var t=this._zr;A(R,function(e){t.on(e,function(t){var i=this[qe](),n=t[_e];if(n&&null!=n[xe]){var r=n.hostModel||i.getSeriesByIndex(n[ye]),a=r&&r[ge](n[xe])||{};a.event=t,a.type=e,this[Ae](e,a)}},this)},this),A(O,function(t,e){this._messageCenter.on(e,function(t){this[Ae](e,t)},this)},this)},k.isDisposed=function(){return this._disposed},k.clear=function(){this.setOption({},!0)},k[Te]=function(){this._disposed=!0;var t=this._api,e=this._model;A(this._componentsViews,function(i){i[Te](e,t)}),A(this._chartsViews,function(i){i[Te](e,t)}),this._zr[Te](),Z[this.id]=null},S.mixin(n,z);var V=[],O={},E=[],B={},G=[],N={},F={},Z={},H={},W=new Date-0,q=new Date-0,j="_echarts_instance_",X={version:"3.1.2",dependencies:{zrender:"3.0.3"}};return X.init=function(t,e,i){if(M.version[pe](".","")-0<X.dependencies.zrender[pe](".","")-0)throw new Error("ZRender "+M.version+" is too old for ECharts "+X.version+". Current version need ZRender "+X.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id="ec_"+W++,Z[r.id]=r,t.setAttribute&&t.setAttribute(j,r.id),f(r),r},X.connect=function(t){if(S[fe](t)){var e=t;t=null,S.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+q++,S.each(e,function(e){e.group=t})}return H[t]=!0,t},X.disConnect=function(t){H[t]=!1},X[Te]=function(t){S.isDom(t)?t=X.getInstanceByDom(t):typeof t===Xe&&(t=Z[t]),t instanceof n&&!t.isDisposed()&&t[Te]()},X.getInstanceByDom=function(t){var e=t.getAttribute(j);return Z[e]},X.getInstanceById=function(t){return Z[t]},X.registerTheme=function(t,e){F[t]=e},X.registerPreprocessor=function(t){G.push(t)},X.registerProcessor=function(t,e){if(S[de](L,t)<0)throw new Error("stage should be one of "+L);var i=B[t]||(B[t]=[]);i.push(e)},X[he]=function(t,e,i){typeof e===ce&&(i=e,e="");var n=S[Re](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[Ye](),e=t.event,V[n]||(V[n]={action:i,actionInfo:t}),O[e]=n},X.registerCoordinateSystem=function(t,e){m[ue](t,e)},X.registerLayout=function(t){S[de](E,t)<0&&E.push(t)},X.registerVisualCoding=function(t,e){if(S[de](P,t)<0)throw new Error("stage should be one of "+P);var i=N[t]||(N[t]=[]);i.push(e)},X.extendChartView=function(t){return w[De](t)},X.extendComponentModel=function(t){return y[De](t)},X.extendSeriesModel=function(t){return x[De](t)},X[le]=function(t){return _[De](t)},X.setCanvasCreator=function(t){S.createCanvas=t},X.registerVisualCoding("echarts",S.curry(t("./visual/seriesColor"),"",se)),X.registerPreprocessor(t("./preprocessor/backwardCompat")),X[he]({type:"highlight",event:"highlight",update:"highlight"},S.noop),X[he]({type:"downplay",event:"downplay",update:"downplay"},S.noop),X.graphic=t("./util/graphic"),X[oe]=t("./util/number"),X.format=t("./util/format"),X.matrix=t("zrender/core/matrix"),X.vector=t($e),X.util={},A(["map","each",Je,de,ae,"reduce",Je,"bind","curry",fe,re,Re,"isFunction",De],function(t){X.util[t]=S[t]}),X}),e("echarts/chart/bar",[ti,Qe,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts"],function(t){var e=t(Qe);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t("../echarts");n.registerLayout(e.curry(i,"bar")),n.registerVisualCoding("chart",function(t){t.eachSeriesByType("bar",function(t){var e=t[Me]();e.setVisual("legendSymbol","roundRect")})})}),e("echarts/chart/line",[ti,Qe,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample"],function(t){var e=t(Qe),i=t("../echarts");t("./line/LineSeries"),t("./line/LineView"),i.registerVisualCoding("chart",e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor("statistic",e.curry(t("../processor/dataSample"),"line"))}),e("echarts/chart/pie",[ti,Qe,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(Qe),i=t("../echarts");t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisualCoding("chart",e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(Je,e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/chart/map",[ti,"../echarts","./map/MapSeries","./map/MapView","../action/geoRoam","../coord/geo/geoCreator","./map/mapSymbolLayout","./map/mapVisual","./map/mapDataStatistic","./map/backwardCompat","../action/createDataSelectAction"],function(t){var e=t("../echarts");t("./map/MapSeries"),t("./map/MapView"),t("../action/geoRoam"),t("../coord/geo/geoCreator"),e.registerLayout(t("./map/mapSymbolLayout")),e.registerVisualCoding("chart",t("./map/mapVisual")),e.registerProcessor("statistic",t("./map/mapDataStatistic")),e.registerPreprocessor(t("./map/backwardCompat")),t("../action/createDataSelectAction")("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}),e("echarts/component/grid",[ti,"../util/graphic",Qe,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(Qe);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts")[le]({type:"grid",render:function(t){this.group[ne](),t.get("show")&&this.group.add(new e.Rect({shape:t[ie].getRect(),style:i[Le]({fill:t.get(Fe)},t[ee]()),silent:!0}))}})}),e("echarts/component/geo",[ti,"../coord/geo/geoCreator","./geo/GeoView","../action/geoRoam"],function(t){t("../coord/geo/geoCreator"),t("./geo/GeoView"),t("../action/geoRoam")}),e("echarts/component/title",[ti,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=t("../util/layout");e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e[le]({type:"title",render:function(t,e,r){if(this.group[ne](),t.get("show")){var a=this.group,o=t[qe](te),s=t[qe]("subtextStyle"),l=t.get(Q),u=new i.Text({style:{text:t.get("text"),textFont:o[$](),fill:o[K](),textBaseline:"top"},z2:10}),c=u[J](),h=t.get("subtext"),d=new i.Text({style:{text:h,textFont:s[$](),fill:s[K](),y:c[Ee]+t.get("itemGap"),textBaseline:"top"},z2:10}),f=t.get("link"),p=t.get("sublink");u.silent=!f,d.silent=!p,f&&u.on("click",function(){window.open(f,t.get(_e))}),p&&d.on("click",function(){window.open(p,t.get("subtarget"))}),a.add(u),h&&a.add(d);var v=a[J](),m=t.getBoxLayoutParams();m.width=v.width,m[Ee]=v[Ee];var g=n.getLayoutRect(m,{width:r[We](),height:r[He]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===Y&&(l=U),"right"===l?g.x+=g.width:l===U&&(g.x+=g.width/2)),a[X]=[g.x,g.y],u[j](Q,l),d[j](Q,l),v=a[J]();var y=g.margin,x=t[ee](["color",q]);x.fill=t.get(Fe);var _=new i.Rect({shape:{x:v.x-y[3],y:v.y-y[0],width:v.width+y[1]+y[3],height:v[Ee]+y[0]+y[2]},style:x,silent:!0});i.subPixelOptimizeRect(_),a.add(_)}}})}),e("echarts/component/legend",[ti,"./legend/LegendModel","./legend/legendAction","./legend/LegendView","../echarts","./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t("../echarts");e.registerProcessor(Je,t("./legend/legendFilter"))}),e("echarts/component/tooltip",[ti,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts")[he]({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts")[he]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("zrender/vml/vml",[ti,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[ti,Qe,W,"../util/format","./Interval"],function(t){var e=t(Qe),i=t(W),n=t("../util/format"),r=t("./Interval"),a=r[Ue],o=Math.ceil,s=Math.floor,l=864e5,u=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},c=r[De]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=l,r[1]+=l),r[1]===-1/0&&1/0===r[0]){var a=new Date;r[1]=new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-l}this.niceTicks(t,e,n);var u=this._interval;e||(r[0]=i.round(s(r[0]/u)*u)),n||(r[1]=i.round(o(r[1]/u)*u))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=h[Pe],a=u(h,n,0,r),l=h[Math.min(a,r-1)],c=l[2];if("year"===l[0]){var d=i/c,f=Math.pow(10,Math.floor(Math.log(d/t)/Math.LN10)),p=t/d*f;.15>=p?f*=10:.3>=p?f*=5:.75>=p&&(f*=2),c*=f}var v=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=l,this._interval=c,this._niceExtent=v},parse:function(t){return+i.parseDate(t)}});e.each([H,"normalize"],function(t){c[Ue][t]=function(e){return a[t].call(this,this.parse(e))}});var h=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,l],["week",7,7*l],["month",1,31*l],["quarter",3,380*l/4],["half-year",6,380*l/2],["year",1,380*l]];return c[Oe]=function(){return new c},c}),e("echarts/scale/Log",[ti,Qe,"./Scale",W,"./Interval"],function(t){var e=t(Qe),i=t("./Scale"),n=t(W),r=t("./Interval"),a=i[Ue],o=r[Ue],s=Math.floor,l=Math.ceil,u=Math.pow,c=10,h=Math.log,d=i[De]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(u(c,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),u(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[Z].call(this);return t[0]=u(c,t[0]),t[1]=u(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=u(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([H,"normalize"],function(t){d[Ue][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),d[Oe]=function(){return new d},d}),e("echarts/model/Global",[ti,Qe,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)y.hasClass(i)||(t[i]="object"==typeof e[i]?t[i]?u.merge(t[i],e[i],!1):u.clone(e[i]):e[i])}function i(t){t=t,this[F]={},this[F][_]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[F]),u.merge(t,x,!1),this[N](t)}function n(t,e){u[fe](e)||(e=e?[e]:[]);var i={};return d(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};d(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),d(e,function(e){var n=e[F];if(u.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),g(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),d(e,function(t){var e=t.exist,n=t[F],r=t.keyInfo;if(g(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:y.determineSubType(t,e);return n}function o(t){return p(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?f(t,function(t){return t.subType===e.subType}):t}function l(t){if(!t._seriesIndices)throw new Error("Series is not initialized. Please depends sereis.")}var u=t(Qe),c=t("../util/model"),h=t("./Model"),d=u.each,f=u[Je],p=u.map,v=u[fe],m=u[de],g=u[Re],y=t("./Component"),x=t("./globalDefault"),_="\x00_ec_inner",w=h[De]({constructor:w,init:function(t,e,i,n){i=i||{},this[F]=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){u.assert(!(_ in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this[F]&&"recreate"!==t?(this.restoreData(),this[N](r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this[N](a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[Pe]&&d(o,function(t){this[N](t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=c.normalizeToArray(t[e]),h=c.mappingToExists(a[e],l);r(e,h);var f=n(a,s);i[e]=[],a[e]=[],d(h,function(t,n){var r=t.exist,o=t[F];if(u.assert(g(o)||r,"Empty component definition"),o){var s=y.getClass(e,t.keyInfo.subType,!0);r&&r instanceof s?r[N](o,this):r=new s(o,this,this,u[De]({dependentModels:f,componentIndex:n},t.keyInfo))}else r[N]({},this);a[e][n]=r,i[e][n]=r[F]},this),e===Ce&&(this._seriesIndices=o(a[Ce]))}var i=this[F],a=this._componentsMap,s=[];d(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?u.clone(t):u.merge(i[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this)},getOption:function(){var t=u.clone(this[F]);return d(t,function(e,i){if(y.hasClass(i)){for(var e=c.normalizeToArray(e),n=e[Pe]-1;n>=0;n--)c.isIdInner(e[n])&&e[Se](n,1);t[i]=e}}),delete t[_],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[Pe])return[];var o;if(null!=i)v(i)||(i=[i]),o=f(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=v(n);o=f(a,function(t){return l&&m(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=v(r);o=f(a,function(t){return u&&m(r,t.name)>=0||!u&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[Je]?f(e,t[Je]):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===ce)i=e,e=t,d(n,function(t,n){d(t,function(t,r){e.call(i,n,t,r)})});else if(u[re](t))d(n[t],e,i);else if(g(t)){var r=this.findComponents(t);d(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[Ce];return f(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[Ce][t]},getSeriesByType:function(t){var e=this._componentsMap[Ce];return f(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[Ce].slice()},eachSeries:function(t,e){l(this),d(this._seriesIndices,function(i){var n=this._componentsMap[Ce][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){d(this._componentsMap[Ce],t,e)},eachSeriesByType:function(t,e,i){l(this),d(this._seriesIndices,function(n){var r=this._componentsMap[Ce][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return d(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),u[de](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=f(this._componentsMap[Ce],t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t[Ce]);var e=[];d(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e){d(t[e],function(t){t.restoreData()})})}});return w}),e("echarts/ExtensionAPI",[ti,Qe],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(Qe),n=["getDom","getZr",We,He,ke,"on","off","getDataURL","getConnectedDataURL",qe,"getOption"];return e}),e("echarts/CoordinateSystem",[ti],function(){function t(){this._coordinateSystems=[]}var e={};return t[Ue]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][Oe](t,i);a&&(n=n[G](a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[Pe];n++)i[n][Ve]&&i[n][Ve](t,e)}},t[ue]=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/OptionManager",[ti,Qe,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newOptionBackup}function i(t,e){var i,n,r=[],a=[],o=t.timeline;if(t.baseOption&&(n=t.baseOption),(o||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var l=t.media;c(l,function(t){t&&t[F]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=o),c([n][G](r)[G](s.map(a,function(t){return t[F]})),function(t){c(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][Ye]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=d(r,function(t){return t[F]&&t.exist?f(t.exist,t[F],!0):t.exist||t[F]})}else t[i]=f(n,e,!0)}})}var s=t(Qe),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[Ue]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=this._newOptionBackup=i.call(this,t,e);n?(o(n.baseOption,r.baseOption),r.timelineOptions[Pe]&&(n.timelineOptions=r.timelineOptions),r.mediaList[Pe]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=t?this._optionBackup:this._newOptionBackup;return this._timelineOptions=d(e.timelineOptions,h),this._mediaList=d(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(e.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[Pe]){var n=t[B]("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[We](),e=this._api[He](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[Pe]&&!r)return s;for(var l=0,u=i[Pe];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[Pe]&&r&&(o=[-1]),o[Pe]&&!a(o,this._currentMediaIndices)&&(s=d(o,function(t){return h(-1===t?r[F]:i[t][F])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[ti,"./Model",Qe,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[Ue].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(Qe),r=Array[Ue].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[De]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this.mergeDefaultAndTheme(this[F],this[E])},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this[F],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[F],t,e)},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[Ue].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[Pe]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(l,function(t,e,i,r){n[De](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/Series",[ti,Qe,"../util/format","../util/model","./Component"],function(t){var e=t(Qe),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i.addCommas,s=r[De]({type:"series",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i){this[ye]=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,[X,"show",te,"distance",O])},mergeOption:function(t,i){t=e.merge(this[F],t,!0);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this[F].data},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this[ie];return t&&t[V]&&t[V]()},formatTooltip:function(t,i){var n=this._data,r=this.getRawValue(t),s=e[fe](r)?e.map(r,o).join(", "):o(r),l=n[R](t);return i?a(this.name)+" : "+s:a(this.name)+"<br />"+(l?a(l)+" : "+s:s)
- },restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(s,n.dataFormatMixin),s}),e("echarts/view/Component",[ti,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[Ue]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[Ue];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[ti,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[Ae](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){if(null!=e[xe]){var r=t[k](e[xe]);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t[k](a);i(r,n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[Ue]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[Me](),r,I)},downplay:function(t,e,i,r){n(t[Me](),r,D)},remove:function(){this.group[ne]()},dispose:function(){}};var s=e[Ue];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/graphic",[ti,Qe,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",$e,"zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient",L],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[z],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof y?i:v.lift(i,-.1)),n[z]=n[z]||(e instanceof y?e:v.lift(e,-.1));var r={};for(var a in n)n.hasOwnProperty(a)&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}t[j](t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t[j](e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t[ve](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[ve](function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t.hoverStyle||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function l(){this.__isEmphasis=!0,n(this)}function u(){this.__isEmphasis=!1,r(this)}function c(t,e,i,n,r){var a=t?"Update":"",o=n&&n.getShallow("animationDuration"+a),s=n&&n.getShallow("animationEasing"+a);n&&n.getShallow(T)?e.animateTo(i,o,s,r):(e.attr(i),r&&r())}var h=t(Qe),d=t("zrender/tool/path"),f=Math.round,p=t("zrender/graphic/Path"),v=t("zrender/tool/color"),m=t("zrender/core/matrix"),g=t($e),y=t("zrender/graphic/Gradient"),x={};return x.Group=t("zrender/container/Group"),x.Image=t("zrender/graphic/Image"),x.Text=t("zrender/graphic/Text"),x.Circle=t("zrender/graphic/shape/Circle"),x.Sector=t("zrender/graphic/shape/Sector"),x.Polygon=t("zrender/graphic/shape/Polygon"),x.Polyline=t("zrender/graphic/shape/Polyline"),x.Rect=t("zrender/graphic/shape/Rect"),x.Line=t("zrender/graphic/shape/Line"),x.BezierCurve=t("zrender/graphic/shape/BezierCurve"),x.Arc=t("zrender/graphic/shape/Arc"),x.LinearGradient=t("zrender/graphic/LinearGradient"),x.RadialGradient=t("zrender/graphic/RadialGradient"),x.BoundingRect=t(L),x.extendShape=function(t){return p[De](t)},x.extendPath=function(t,e){return d.extendFromString(t,e)},x.makePath=function(t,e,i,n){var r=d.createFromString(t,e),a=r[J]();if(i){var o=a.width/a[Ee];if(n===U){var s,l=i[Ee]*o;l<=i.width?s=i[Ee]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[Ee]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[Ee]=s}this.resizePath(r,i)}return r},x.mergePath=d.mergePath,x.resizePath=function(t,e){if(t[P]){var i=t[J](),n=i.calculateTransform(e);t[P](n)}},x.subPixelOptimizeLine=function(t){var e=x.subPixelOptimize,i=t.shape,n=t.style[A];return f(2*i.x1)===f(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),f(2*i.y1)===f(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},x.subPixelOptimizeRect=function(t){var e=x.subPixelOptimize,i=t.shape,n=t.style[A],r=i.x,a=i.y,o=i.width,s=i[Ee];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[Ee]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},x.subPixelOptimize=function(t,e,i){var n=f(2*t);return(n+f(e))%2===0?n/2:(n+(i?1:-1))/2},x.setHoverStyle=function(t,e){e=e||{},"group"===t.type?t[ve](function(t){"group"!==t.type&&a(t,e)}):a(t,e),t.on(be,o).on(we,s),t.on(I,l).on(D,u)},x.setText=function(t,e,i){var n=e.getShallow(X)||C,r=n[de](C)>=0?"white":i,a=e[qe](te);h[De](t,{textDistance:e.getShallow("distance")||5,textFont:a[$](),textPosition:n,textFill:a[K]()||r})},x.updateProps=h.curry(c,!0),x.initProps=h.curry(c,!1),x.getTransform=function(t,e){for(var i=m.identity([]);t&&t!==e;)m.mul(i,t.getLocalTransform(),i),t=t[S];return i},x[P]=function(t,e,i){return i&&(e=m.invert([],e)),g[P]([],t,e)},x.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===Be?r:0];return a=x[P](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?Be:"top"},x}),e("zrender/zrender",[ti,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete u[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n[Ze],l={canvas:t("./Painter")},u={},c={};c.version="3.0.3",c.init=function(t,e){var n=new h(i(),t,e);return u[n.id]=n,n},c[Te]=function(t){if(t)t[Te]();else{for(var e in u)u[e][Te]();u={}}return c},c.getInstance=function(t){return u[t]},c.registerPainter=function(t,e){l[t]=e};var h=function(t,e,i){i=i||{},this.dom=e,this.id=t;var u=this,c=new a,h=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&l[h]||(h="canvas");var d=new l[h](e,c,i);this.storage=c,this.painter=d,n.node||(this.handler=new r(d.getViewportRoot(),c,d)),this[T]=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately()}}}),this[T].start(),this._needsRefresh;var f=c.delFromMap,p=c.addToMap;c.delFromMap=function(t){var e=c.get(t);f.call(c,t),e&&e.removeSelfFromZr(u)},c.addToMap=function(t){p.call(c,t),t.addSelfToZr(u)}};return h[Ue]={constructor:h,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[je](),this.handler&&this.handler[je]()},clearAnimation:function(){this[T].clear()},getWidth:function(){return this.painter[We]()},getHeight:function(){return this.painter[He]()},toDataURL:function(t,e,i){return this.painter.toDataURL(t,e,i)},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler[Ae](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[T].stop(),this.clear(),this.storage[Te](),this.painter[Te](),this.handler&&this.handler[Te](),this[T]=this.storage=this.painter=this.handler=null,e(this.id)}},c}),e(Qe,[ti,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[Pe];r>n;n++)i[n]=e(t[n])}else if(!S(t)&&!T(t)){i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e(t[a]))}return i}return t}function i(t,n,r){if(!b(n)||!b(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!b(s)||!b(o)||x(s)||x(o)||T(s)||T(o)||S(s)||S(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function n(t,e){for(var n=t[0],r=1,a=t[Pe];a>r;r++)n=i(n,t[r],e);return n}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function o(){return document[M]("canvas")}function s(){return P||(P=N.createCanvas().getContext("2d")),P}function l(t,e){if(t){if(t[de])return t[de](e);for(var i=0,n=t[Pe];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[Ue];i[Ue]=e[Ue],t[Ue]=new i;for(var r in n)t[Ue][r]=n[r];t[Ue].constructor=t,t.superClass=e}function c(t,e,i){t=Ue in t?t[Ue]:t,e=Ue in e?e[Ue]:e,a(t,e,i)}function h(t){return t?typeof t==Xe?!1:typeof t[Pe]==oe:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[Pe]===+t[Pe])for(var n=0,r=t[Pe];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function f(t,e,i){if(t&&e){if(t.map&&t.map===E)return t.map(e,i);for(var n=[],r=0,a=t[Pe];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===B)return t.reduce(e,i,n);for(var r=0,a=t[Pe];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t[Je]&&t[Je]===V)return t[Je](e,i);for(var n=[],r=0,a=t[Pe];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function m(t,e,i){if(t&&e)for(var n=0,r=t[Pe];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function g(t,e){var i=O.call(arguments,2);return function(){return t.apply(e,i[G](O.call(arguments)))}}function y(t){var e=O.call(arguments,1);return function(){return t.apply(this,e[G](O.call(arguments)))}}function x(t){return"[object Array]"===D.call(t)}function _(t){return typeof t===ce}function w(t){return"[object String]"===D.call(t)}function b(t){var e=typeof t;return e===ce||!!t&&"object"==e}function S(t){return!!k[D.call(t)]||t instanceof L}function T(t){return t&&1===t.nodeType&&typeof t.nodeName==Xe}function C(){for(var t=0,e=arguments[Pe];e>t;t++)if(null!=arguments[t])return arguments[t]}function z(){return Function.call.apply(O,arguments)}function A(t,e){if(!t)throw new Error(e)}var P,L=t("../graphic/Gradient"),k={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},D=Object[Ue].toString,I=Array[Ue],R=I.forEach,V=I[Je],O=I.slice,E=I.map,B=I.reduce,N={inherits:u,mixin:c,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:z,find:m,isArrayLike:h,each:d,map:f,reduce:p,filter:v,bind:g,curry:y,isArray:x,isString:w,isObject:b,isFunction:_,isBuildInObject:S,isDom:T,retrieve:C,assert:A,noop:function(){}};return N}),e("zrender/tool/color",[ti],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function i(t){return 0>t?0:t>1?1:t}function n(e){return t(e[Pe]&&"%"===e.charAt(e[Pe]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[Pe]&&"%"===t.charAt(t[Pe]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[pe](/ /g,"")[Ye]();if(e in y)return y[e].slice();if("#"!==e.charAt(0)){var i=e[de]("("),a=e[de](")");if(-1!==i&&a+1===e[Pe]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[Pe])return;u=r(s.pop());case"rgb":if(3!==s[Pe])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[Pe])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[Pe])return;return l(s);default:return}}}else{if(4===e[Pe]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[Pe]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,u=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[Pe]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function c(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return g(i,4===i[Pe]?"rgba":"rgb")}}function h(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function d(e,i,n){if(i&&i[Pe]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[Pe]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],u=i[s],c=r-a;return n[0]=t(o(l[0],u[0],c)),n[1]=t(o(l[1],u[1],c)),n[2]=t(o(l[2],u[2],c)),n[3]=t(o(l[3],u[3],c)),n}}function f(e,n,r){if(n&&n[Pe]&&e>=0&&1>=e){var a=e*(n[Pe]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),d=a-l,f=g([t(o(c[0],h[0],d)),t(o(c[1],h[1],d)),t(o(c[2],h[2],d)),i(o(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:u,value:a}:f}}function p(t,e){if(!(2!==t[Pe]||t[1]<t[0])){for(var i=f(t[0],e,!0),n=f(t[1],e,!0),r=[{color:i.color,offset:0}],a=n.value-i.value,o=Math.max(i.value,i.rightIndex),s=Math.min(n.value,n.leftIndex),l=o;a>0&&s>=l;l++)r.push({color:e[l],offset:(l-i.value)/a});return r.push({color:n.color,offset:1}),r}}function v(t,i,n,a){return t=s(t),t?(t=u(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),g(l(t),"rgba")):void 0}function m(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),g(t,"rgba")):void 0}function g(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var y={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:c,toHex:h,fastMapToColor:d,mapToColor:f,mapIntervalToColor:p,modifyHSL:v,modifyAlpha:m,stringify:g}}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=l&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),y=n&&t.match(/Mobile\//)&&!m,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,_=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),w=t.match(/Edge\/([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2][pe](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][pe](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][pe](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),u&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),f&&(e.bb10=!0,e.version=f[2]),p&&(e.rimtabletos=!0,e.version=p[2]),v&&(i.playbook=!0),c&&(e.kindle=!0,e.version=c[1]),h&&(i.silk=!0,i.version=h[1]),!h&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),g&&(i.firefox=!0,i.version=g[1]),_&&(i.ie=!0,i.version=_[1]),y&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(i.webview=!0),_&&(i.ie=!0,i.version=_[1]),w&&(i.edge=!0,i.version=w[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||_&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||f||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||_&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document[M]("canvas").getContext?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===b?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/mixin/Eventful",[ti,w],function(t){var e=Array[Ue].slice,i=t(w),n=i[de],r=function(){this._$handlers={}};return r[Ue]={constructor:r,one:function(t,e,i){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),n(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][Pe]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][Pe];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][Pe]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[Pe];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[Pe],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[Se](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[Pe];n>4&&(i=e.call(i,1,i[Pe]-1));for(var r=i[i[Pe]-1],a=this._$handlers[t],o=a[Pe],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[Se](s,1),o--):s++}}return this}},r}),e("echarts/loading/default",[ti,"../util/graphic",Qe],function(t){var e=t("../util/graphic"),i=t(Qe),n=Math.PI;return function(t,r){r=r||{},i[Le](r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r[me],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[me],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[me],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l[je]=function(){var e=t[We]()/2,i=t[He]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[We](),height:t[He]()})},l[je](),l}}),e("echarts/visual/seriesColor",[ti,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,D,"color"],a=n.get("color"),o=t[Me](),s=t.get(r)||a[t[ye]%a[Pe]];o.setVisual("color",s),n.isSeriesFiltered(t)||(typeof s!==ce||s instanceof e||o.each(function(e){o.setItemVisual(e,"color",s(t[ge](e)))}),o.each(function(t){var e=o[_](t),i=e.get(r,!0);null!=i&&o.setItemVisual(t,"color",i)}))}t?n.eachSeriesByType(t,r):n[ze](r)}}),e("echarts/preprocessor/backwardCompat",[ti,Qe,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[Pe]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[Pe]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(Qe),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",Be]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=r.each;return function(t){u(t[Ce],function(t){if(r[Re](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var u=0;u<l[Pe];u++)if(l[u]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(r[fe](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/util/number",[ti],function(){function t(t){return t[pe](/^\s+/,"")[pe](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0];if(0===r)return(i[0]+i[1])/2;var a=(t-e[0])/r;return n&&(a=Math.min(Math.max(a,0),1)),a*(i[1]-i[0])+i[0]},e[x]=function(e,i){switch(e){case U:case Y:e="50%";break;case"left":case"top":e="0%";break;case"right":case Be:e="100%"}return typeof e===Xe?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t)[y](12)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},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>-i&&i>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===Xe?t[pe](/-/g,"/"):Math.round(t))},e}),e("echarts/util/format",[ti,Qe,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][pe](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[Pe]>1?"."+t[1]:""))}function i(t){return t[Ye]()[pe](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[Pe];return typeof t===oe?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[pe](/&/g,"&")[pe](/</g,"<")[pe](/>/g,">")[pe](/"/g,""")[pe](/'/g,"'")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){u[fe](e)||(e=[e]);var i=e[Pe];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[Pe];r++){var o=h[r];t=t[pe](a(o),a(o,0))}for(var s=0;i>s;s++)for(var l=0;l<n[Pe];l++)t=t[pe](a(h[l],s),e[s][n[l]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=c.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),u=i.getSeconds();return t=t[pe]("MM",l(r))[Ye]()[pe]("yyyy",n)[pe]("yy",n%100)[pe]("dd",l(a))[pe]("d",a)[pe]("hh",l(o))[pe]("h",o)[pe]("mm",l(s))[pe]("m",s)[pe]("ss",l(u))[pe]("s",u)}function l(t){return 10>t?"0"+t:t}var u=t(Qe),c=t("./number"),h=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s}}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===b?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e($e,[],function(){var t=typeof Float32Array===b?Array:Float32Array,e={create:function(e,i){var n=new t(2);return n[0]=e||0,n[1]=i||0,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[Pe]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/coord/cartesian/Grid",[ti,"exports","../../util/layout","../../coord/axisHelper",Qe,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i[B]("grid",t.get("gridIndex"))===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[Pe];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function r(t,e){var i=t[Z](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var a=t("../../util/layout"),o=t("../../coord/axisHelper"),s=t(Qe),l=t("./Cartesian2D"),u=t("./Axis2D"),c=s.each,h=o.ifAxisCrossZero,d=o.niceScaleExtent;t("./GridModel");var f=n[Ue];return f.type="grid",f.getRect=function(){return this._rect},f[Ve]=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&(r.type===g||!h(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),c(n.x,function(t){d(t,t.model)}),c(n.y,function(t){d(t,t.model)}),c(n.x,function(t){i("y")&&(t.onZero=!1)}),c(n.y,function(t){i("x")&&(t.onZero=!1)}),this[je](this._model,e)},f[je]=function(t,e){function n(){c(s,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o[Ee]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?o.x:o.y)})}var o=a.getLayoutRect(t.getBoxLayoutParams(),{width:e[We](),height:e[He]()});this._rect=o;var s=this._axesList;n(),t.get("containLabel")&&(c(s,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?Ee:"width",r=t.model.get("axisLabel.margin");o[n]-=e[n]+r,"top"===t[X]?o.y+=e[Ee]+r:"left"===t[X]&&(o.x+=e.width+r)}}}),n())},f.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},f.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},f._initCartesian=function(t,i){function n(n){return function(l,c){if(e(l,t,i)){var h=l.get(X);"x"===n?("top"!==h&&h!==Be&&(h=Be),r[h]&&(h="top"===h?Be:"top")):("left"!==h&&"right"!==h&&(h="left"),r[h]&&(h="left"===h?"right":"left")),r[h]=!0;var d=new u(n,o.createScaleByModel(l),[0,0],l.get("type"),h),f=d.type===g;d.onBand=f&&l.get("boundaryGap"),d.inverse=l.get("inverse"),d.onZero=l.get("axisLine.onZero"),l.axis=d,d.model=l,d.index=c,this._axesList.push(d),a[n][c]=d,s[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return i[Ne]("xAxis",n("x"),this),i[Ne]("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void c(a.x,function(t,e){c(a.y,function(i,n){var r="x"+e+"y"+n,a=new l(r);
- a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},f._updateScale=function(t,i){function n(t,e,i){c(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==m))})}s.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t[ze](function(r){if("cartesian2d"===r.get(ie)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[B]("xAxis",a),l=t[B]("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var u=this.getCartesian(a,o),c=r[Me](),h=u.getAxis("x"),d=u.getAxis("y");"list"===c.type&&(n(c,h,r),n(c,d,r))}},this)},n[Oe]=function(t,e){var i=[];return t[Ne]("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[je](r,e),r[ie]=o,i.push(o)}),t[ze](function(e){if("cartesian2d"===e.get(ie)){var n=e.get("xAxisIndex"),r=t[B]("xAxis",n),a=i[r.get("gridIndex")];e[ie]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},n[v]=l[Ue][v],t("../../CoordinateSystem")[ue]("cartesian2d",n),n}),e("echarts/chart/bar/BarSeries",[ti,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[De]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[ie];if(e){var i=e[p](t),n=this[Me](),r=n.getLayout("offset"),a=n.getLayout("size"),o=e[V]().isHorizontal()?0:1;return i[o]+=r+a/2,i}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})}),e("echarts/chart/bar/BarView",[ti,Qe,f,"../../model/Model","./barItemStyle",d],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[Ee]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[Ee])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[Ee]-=n*e}var i=t(Qe),n=t(f);return i[De](t("../../model/Model")[Ue],t("./barItemStyle")),t(d).extendChartView({type:"bar",render:function(t,e,i){var n=t.get(ie);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t){function r(r,a){var s=o[h](r),l=o[_](r).get(f)||0;e(s,l);var u=new n.Rect({shape:i[De]({},s)});if(d){var p=u.shape,v=c?Ee:"width",m={};p[v]=0,m[v]=s[v],n[a?"updateProps":"initProps"](u,{shape:m},t)}return u}var a=this.group,o=t[Me](),s=this._data,l=t[ie],u=l[V](),c=u.isHorizontal(),d=t.get(T),f=[se,D,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[Ve](function(i,l){var u=s[k](l);if(!o.hasValue(i))return void a[Ie](u);u||(u=r(i,!0));var c=o[h](i),d=o[_](i).get(f)||0;e(c,d),n.updateProps(u,{shape:c},t),o.setItemGraphicEl(i,u),a.add(u)})[Ie](function(e){var i=s[k](e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,function(){a[Ie](i)}))}).execute(),this._updateStyle(t,o,c),this._data=o},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(o,s){var l=e[_](s),u=e[c](s,"color"),d=e[h](s),f=l[qe]("itemStyle.normal"),p=l[qe]("itemStyle.emphasis")[ee]();o.setShape("r",f.get("barBorderRadius")||0),o[j](i[Le]({fill:u},f.getBarItemStyle()));var v=r?d[Ee]>0?Be:"top":d.width>0?"left":"right",m=l[qe]("label.normal"),g=l[qe]("label.emphasis"),y=o.style;m.get("show")?a(y,m,u,i.retrieve(t.getFormattedLabel(s,D),t.getRawValue(s)),v):y.text="",g.get("show")?a(p,g,u,i.retrieve(t.getFormattedLabel(s,I),t.getRawValue(s)),v):p.text="",n.setHoverStyle(o,p)})},remove:function(t){var e=this.group;t.get(T)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,function(){e[Ie](i)})}):e[ne]()}})}),e("echarts/layout/barGrid",[ti,Qe,W],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[ye]}function i(t){var i={};r.each(t,function(t){var n=t[ie],r=n[V](),a=i[r.index]||{remainedWidth:r.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:r,stacks:{}},o=a.stacks;i[r.index]=a;var s=e(t);o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.get("barWidth"),u=t.get("barMaxWidth"),c=t.get("barGap"),h=t.get("barCategoryGap");l&&!o[s].width&&(l=Math.min(a.remainedWidth,l),o[s].width=l,a.remainedWidth-=l),u&&(o[s].maxWidth=u),null!=c&&(a.gap=c),null!=h&&(a.categoryGap=h)});var n={};return r.each(i,function(t,e){n[e]={};var i=t.stacks,a=t.axis,s=a.getBandWidth(),l=o(t.categoryGap,s),u=o(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,d=(c-l)/(h+(h-1)*u);d=Math.max(d,0),r.each(i,function(t){var e=t.maxWidth;!t.width&&e&&d>e&&(e=Math.min(e,c),c-=e,t.width=e,h--)}),d=(c-l)/(h+(h-1)*u),d=Math.max(d,0);var f,p=0;r.each(i,function(t){t.width||(t.width=d),f=t,p+=t.width*(1+u)}),f&&(p-=f.width*u);var v=-p/2;r.each(i,function(t,i){n[e][i]=n[e][i]||{offset:v,width:t.width},v+=t.width*(1+u)})}),n}function n(t,n){var a=i(r[Je](n.getSeriesByType(t),function(t){return!n.isSeriesFiltered(t)&&t[ie]&&"cartesian2d"===t[ie].type})),o={};n.eachSeriesByType(t,function(t){var i=t[Me](),n=t[ie],r=n[V](),s=e(t),l=a[r.index][s],u=l.offset,c=l.width,h=n.getOtherAxis(r),d=t.get("barMinHeight")||0,f=r.onZero?h.toGlobalCoord(h.dataToCoord(0)):h.getGlobalExtent()[0],p=n.dataToPoints(i,!0);o[s]=o[s]||[],i.setLayout({offset:u,size:c}),i.each(h.dim,function(t,e){if(!isNaN(t)){o[s][e]||(o[s][e]={p:f,n:f});var n,r,a,l,v=t>=0?"p":"n",m=p[e],g=o[s][e][v];h.isHorizontal()?(n=g,r=m[1]+u,a=m[0]-g,l=c,Math.abs(a)<d&&(a=(0>a?-1:1)*d),o[s][e][v]+=a):(n=m[0]+u,r=g,a=c,l=m[1]-g,Math.abs(l)<d&&(l=(0>=l?-1:1)*d),o[s][e][v]+=l),i.setItemLayout(e,{x:n,y:r,width:a,height:l})}},!0)},this)}var r=t(Qe),a=t(W),o=a[x];return n}),e("echarts/chart/line/LineSeries",[ti,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[De]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"},emphasis:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})}),e("echarts/chart/line/LineView",[ti,Qe,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",f,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[Pe]===e[Pe]){for(var i=0;i<t[Pe];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return typeof t===oe?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t[V](),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[Z]()[0],o=n.dim,s="x"===o||o===u?1:0;return e[l]([o],function(n,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t[p](h)},!0)}function o(t,e){return null!=e[xe]?e[xe]:null!=e.name?t.indexOfName(e.name):void 0}function s(t,e,i){var r=n(t.getAxis("x")),a=n(t.getAxis("y")),o=t[V]().isHorizontal(),s=r[0],l=a[0],u=r[1]-s,c=a[1]-l;i.get("clipOverflow")||(o?(l-=c,c*=3):(s-=u,u*=3));var h=new _.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(h.shape[o?"width":Ee]=0,_.initProps(h,{shape:{width:u,height:c}},i)),h}function c(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[Z](),o=n[Z](),s=Math.PI/180,l=new _.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,_.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function d(t,e,i){return"polar"===t.type?c(t,e,i):s(t,e,i)}var v=t(Qe),g=t("../helper/SymbolDraw"),y=t("../helper/Symbol"),x=t("./lineAnimationDiff"),_=t(f),w=t("./poly"),b=t("../../view/Chart");return b[De]({type:"line",init:function(){var t=new _.Group,e=new g;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var o=t[ie],s=this.group,u=t[Me](),c=t[qe]("lineStyle.normal"),f=t[qe]("areaStyle.normal"),p=u[l](u[h],!0),m="polar"===o.type,g=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,w=this._lineGroup,b=t.get(T),M=!f.isEmpty(),S=a(o,u),C=t.get("showSymbol"),z=C&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(u,o),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(s[Ie](t),A.setItemGraphicEl(e,null))}),C||y[Ie](),s.add(w),x&&g.type===o.type?(M&&!_?_=this._newPolygon(p,S,o,b):_&&!M&&(w[Ie](_),_=this._polygon=null),w.setClipPath(d(o,!1,t)),C&&y.updateData(u,z),u.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,S)&&e(this._points,p)||(b?this._updateAnimation(u,S,o,r):(x.setShape({points:p}),_&&_.setShape({points:p,stackedOnPoints:S})))):(C&&y.updateData(u,z),x=this._newPolyline(p,o,b),M&&(_=this._newPolygon(p,S,o,b)),w.setClipPath(d(o,!0,t))),x[j](v[Le](c.getLineStyle(),{stroke:u.getVisual("color"),lineJoin:"bevel"}));var P=t.get("smooth");if(P=i(t.get("smooth")),x.setShape({smooth:P,smoothMonotone:t.get("smoothMonotone")}),_){var L=u.stackedOn,k=0;if(_.style[q]=.7,_[j](v[Le](f.getAreaStyle(),{fill:u.getVisual("color"),lineJoin:"bevel"})),L){var D=L.hostModel;k=i(D.get("smooth"))}_.setShape({smooth:P,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone")})}this._data=u,this._coordSys=o,this._stackedOnPoints=S,this._points=p},highlight:function(t,e,i,n){var r=t[Me](),a=o(r,n);if(null!=a&&a>=0){var s=r[k](a);if(!s){var l=r[h](a);s=new y(r,a,i),s[X]=l,s.setZ(t.get(me),t.get("z")),s[Ge]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else b[Ue].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[Me](),a=o(r,n);if(null!=a&&a>=0){var s=r[k](a);s&&(s.__temp?(r.setItemGraphicEl(a,null),this.group[Ie](s)):s.downplay())}else b[Ue].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[Ie](e),e=new w.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup[Ie](i),i=new w.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(m)[0];return i&&i.isLabelIgnored?v.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i){var n=this._polyline,r=this._polygon,a=t.hostModel,o=x(this._data,t,this._stackedOnPoints,e,this._coordSys,i);n.shape.points=o.current,_.updateProps(n,{shape:{points:o.next}},a),r&&(r.setShape({points:o.current,stackedOnPoints:o.stackedOnCurrent}),_.updateProps(r,{shape:{points:o.next,stackedOnPoints:o.stackedOnNext}},a));for(var s=[],l=o.status,u=0;u<l[Pe];u++){var c=l[u].cmd;if("="===c){var h=t[k](l[u].idx1);h&&s.push({el:h,ptIdx:u})}}n.animators&&n.animators[Pe]&&n.animators[0].during(function(){for(var t=0;t<s[Pe];t++){var e=s[t].el;e.attr(X,n.shape.points[s[t].ptIdx])}})},remove:function(){this._lineGroup[ne](),this._symbolDraw[Ie](!0),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/visual/symbol",[ti],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[Me](),a=t.get(s)||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===ce&&r.each(function(e){var i=t.getRawValue(e),n=t[ge](e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[_](t),i=e.get(s,!0),n=e.get("symbolSize",!0);null!=i&&r.setItemVisual(t,s,i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/layout/points",[ti],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[Me](),i=t[ie],n=i[v];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[0/0,0/0]:i[p]([t,n]),e.setItemLayout(r,a)},!0)})}}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[Pe];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[Pe];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[Pe];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[Pe];i++)t[i]<e&&(e=t[i]);return e}},e=function(t){return Math.round(t[Pe]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[Me](),r=i.get("sampling"),a=i[ie];if("cartesian2d"===a.type&&r){var o=a[V](),s=a.getOtherAxis(o),l=o[Z](),u=l[1]-l[0],c=Math.round(n.count()/u);if(c>1){var h;typeof r===Xe?h=t[r]:typeof r===ce&&(h=r),h&&(n=n.downSample(s.dim,1/c,h,e),i.setData(n))}}},this)}}),e("echarts/chart/pie/PieSeries",[ti,"../../data/List",Qe,"../../util/model","../../data/helper/completeDimensions","../helper/dataSelectableMixin",d],function(t){var e=t("../../data/List"),i=t(Qe),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../helper/dataSelectableMixin"),s=t(d).extendSeriesModel({type:"series.pie",init:function(t){s[o](this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){s.superCall(this,N,t),this.updateSelectedMap()},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=s.superCall(this,ge,t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100)[y](2):0,i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[D],i=t.labelLine[I];e.show=e.show&&t.label[D].show,i.show=i.show&&t.label[I].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:20,length2:5,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});return i.mixin(s,a),s}),e("echarts/chart/pie/PieView",[ti,f,Qe,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[Me](),o=this[xe],s=a[R](o),l=e.get("selectedOffset");r[ke]({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[k](t),a[h](t),e.isSelected(a[R](t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr(X,u)}function n(t,e){function i(){a[Ge]=a.hoverIgnore,o[Ge]=o.hoverIgnore}function n(){a[Ge]=a.normalIgnore,o[Ge]=o.normalIgnore}s.Group.call(this);var r=new s.Sector({z2:2}),a=new s.Polyline,o=new s.Text;this.add(r),this.add(a),this.add(o),this.updateData(t,e,!0),this.on(I,i).on(D,n).on(be,i).on(we,n)}function o(t,e,i,n){var r=n[qe](te),a=n.get(X),o=a===C||"inner"===a;return{fill:r[K]()||(o?"#fff":t[c](e,"color")),textFont:r[$](),text:l.retrieve(t.hostModel.getFormattedLabel(e,i),t[R](e))}}var s=t(f),l=t(Qe),u=n[Ue];u.updateData=function(t,e,n){function r(){u.stopAnimation(!0),u.animateTo({shape:{r:p.r+10}},300,"elasticOut")}function o(){u.stopAnimation(!0),u.animateTo({shape:{r:p.r}},300,"elasticOut")}var u=this.childAt(0),d=t.hostModel,f=t[_](e),p=t[h](e),v=l[De]({},p);v.label=null,n?(u.setShape(v),u.shape.endAngle=p.startAngle,s.updateProps(u,{shape:{endAngle:p.endAngle}},d)):s.updateProps(u,{shape:v},d);var m=f[qe](se),g=t[c](e,"color");u[j](l[Le]({fill:g},m[qe](D)[ee]())),u.hoverStyle=m[qe](I)[ee](),i(this,t[h](e),f.get(a),d.get("selectedOffset"),d.get(T)),u.off(be).off(we).off(I).off(D),f.get("hoverAnimation")&&u.on(be,r).on(we,o).on(I,r).on(D,o),this._updateLabel(t,e),s.setHoverStyle(this)},u._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,l=t[_](e),u=t[h](e),d=u.label,f=t[c](e,"color");s.updateProps(i,{shape:{points:d.linePoints||[[d.x,d.y],[d.x,d.y],[d.x,d.y]]}},a),s.updateProps(n,{style:{x:d.x,y:d.y}},a),n.attr({style:{textAlign:d[Q],textBaseline:d[r],textFont:d.font},rotation:d.rotation,origin:[d.x,d.y],z2:10});var p=l[qe]("label.normal"),v=l[qe]("label.emphasis"),m=l[qe]("labelLine.normal"),g=l[qe]("labelLine.emphasis");n[j](o(t,e,D,p)),n[Ge]=n.normalIgnore=!p.get("show"),n.hoverIgnore=!v.get("show"),i[Ge]=i.normalIgnore=!m.get("show"),i.hoverIgnore=!g.get("show"),i[j]({stroke:f}),i[j](m[qe]("lineStyle").getLineStyle()),n.hoverStyle=o(t,e,I,v),i.hoverStyle=g[qe]("lineStyle").getLineStyle();var y=m.get("smooth");y&&y===!0&&(y=.4),i.setShape({smooth:y})},l[ae](n,s.Group);var d=t("../../view/Chart")[De]({type:"pie",init:function(){var t=new s.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var o=t[Me](),s=this._data,u=this.group,c=i.get(T),d=!s,f=l.curry(e,this.uid,t,c,r),p=t.get("selectedMode");if(o.diff(s).add(function(t){var e=new n(o,t);d&&e.eachChild(function(t){t.stopAnimation(!0)}),p&&e.on("click",f),o.setItemGraphicEl(t,e),u.add(e)})[Ve](function(t,e){var i=s[k](e);i.updateData(o,t),i.off("click"),p&&i.on("click",f),u.add(i),o.setItemGraphicEl(t,i)})[Ie](function(t){var e=s[k](t);u[Ie](e)}).execute(),c&&d&&o.count()>0){var v=o[h](0),m=Math.max(r[We](),r[He]())/2,g=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(v.cx,v.cy,m,v.startAngle,v.clockwise,g,t))}this._data=o}},_createClipPath:function(t,e,i,n,r,a,o){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return s.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},o,a),l}});return d}),e("echarts/action/createDataSelectAction",[ti,"../echarts",Qe],function(t){var e=t("../echarts"),i=t(Qe);return function(t,n){i.each(n,function(i){i[Ve]="updateView",e[he](i,function(e,n){var r={};return n[Ne]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[Me]();n.each(function(e){var i=n[R](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[ti],function(){return function(t,e){var i=e.get("color"),n=0;e.eachRawSeriesByType(t,function(t){var r=t.get("color",!0),a=t.getRawData();if(!e.isSeriesFiltered(t)){var o=t[Me]();o.each(function(t){var e=o[_](t),s=o.getRawIndex(t),l=o[c](t,"color",!0);if(l)a.setItemVisual(s,"color",l);else{var u=r?r[s%r[Pe]]:i[(s+n)%i[Pe]],h=e.get("itemStyle.normal.color")||u;a.setItemVisual(s,"color",h),o.setItemVisual(t,"color",h)}})}n+=a.count()})}}),e("echarts/chart/pie/pieLayout",[ti,n,"./labelLayout",Qe],function(t){var e=t(n),i=e[x],r=t("./labelLayout"),a=t(Qe),o=2*Math.PI,s=Math.PI/180;return function(t,n,l){n.eachSeriesByType(t,function(t){var n=t.get(U),c=t.get(u);a[fe](c)||(c=[0,c]),a[fe](n)||(n=[n,n]);var d=l[We](),f=l[He](),p=Math.min(d,f),v=i(n[0],d),m=i(n[1],f),g=i(c[0],p/2),y=i(c[1],p/2),x=t[Me](),_=-t.get("startAngle")*s,w=t.get("minAngle")*s,b=x.getSum("value"),M=Math.PI/(b||x.count())*2,S=t.get("clockwise"),T=t.get("roseType"),C=x.getDataExtent("value");C[0]=0;var z=o,A=0,P=_,L=S?1:-1;if(x.each("value",function(t,i){var n;n="area"!==T?0===b?M:t*M:o/(x.count()||1),w>n?(n=w,z-=w):A+=t;var r=P+L*n;x.setItemLayout(i,{angle:n,startAngle:P,endAngle:r,clockwise:S,cx:v,cy:m,r0:g,r:T?e.linearMap(t,C,[g,y]):y}),P=r},!0),o>z)if(.001>=z){var k=o/x.count();x.each(function(t){var e=x[h](t);e.startAngle=_+L*t*k,e.endAngle=_+L*(t+1)*k})}else M=z/A,P=_,x.each("value",function(t,e){var i=x[h](e),n=i.angle===w?w:t*M;i.startAngle=P,i.endAngle=P+L*n,P+=n});r(t,y,d,f)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[Pe]&&e.eachSeriesByType(t,function(t){var e=t[Me]();e.filterSelf(function(t){for(var n=e[R](t),r=0;r<i[Pe];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/chart/map/MapSeries",[ti,"../../data/List",d,"../../model/Series",Qe,"../../data/helper/completeDimensions","../../util/format","../helper/dataSelectableMixin"],function(t){function e(t,e){for(var i={},n=e.features,r=0;r<t[Pe];r++)i[t[r].name]=t[r];for(var r=0;r<n[Pe];r++){var a=n[r].properties.name;i[a]||t.push({value:0/0,name:a})}return t}var i=t("../../data/List"),n=t(d),r=t("../../model/Series"),a=t(Qe),s=t("../../data/helper/completeDimensions"),l=t("../../util/format"),u=l.encodeHTML,c=l.addCommas,h=t("../helper/dataSelectableMixin"),f=r[De]({type:"series.map",needsDrawMap:!1,seriesGroup:[],init:function(t){t=this._fillOption(t),this[F]=t,f[o](this,"init",arguments),this.updateSelectedMap()},getInitialData:function(t){var e=s(["value"],t.data||[]),n=new i(e,this);return n.initData(t.data),n},mergeOption:function(t){t=this._fillOption(t),r[Ue][N].call(this,t),this.updateSelectedMap()},_fillOption:function(t){t=a[De]({},t);var i=n.getMap(t.mapType),r=i&&i.geoJson;return r&&t.data&&(t.data=e(t.data,r)),t},setRoamZoom:function(t){var e=this[F].roamDetail;e&&(e.zoom=t)},setRoamPan:function(t,e){var i=this[F].roamDetail;i&&(i.x=t,i.y=e)},getRawValue:function(t){return this._data.get("value",t)},formatTooltip:function(t){for(var e=this._data,i=c(this.getRawValue(t)),n=e[R](t),r=this.seriesGroup,a=[],o=0;o<r[Pe];o++)isNaN(r[o].getRawValue(t))||a.push(u(r[o].name));return a.join(", ")+"<br />"+n+" : "+i},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"china",left:"center",top:"center",showLegendSymbol:!0,dataRangeHoverLink:!0,roamDetail:{x:0,y:0,zoom:1},label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!1,textStyle:{color:"#000"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215, 0, 0.8)"}}}});return a.mixin(f,h),f}),e("echarts/chart/map/MapView",[ti,f,"../../component/helper/MapDraw",d],function(t){var e=t(f),i=t("../../component/helper/MapDraw");t(d).extendChartView({type:"map",render:function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var a=this.group;if(a[ne](),r&&"geoRoam"===r.type&&r.component===Ce&&r.name===t.name){var o=this._mapDraw;o&&a.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new i(n,!0);a.add(o.group),o.draw(t,e,n,this),this._mapDraw=o}else this._mapDraw&&this._mapDraw[Ie](),this._mapDraw=null;t.get("showLegendSymbol")&&e[B]("legend")&&this._renderSymbols(t,e,n)}},remove:function(){this._mapDraw&&this._mapDraw[Ie](),this._mapDraw=null,this.group[ne]()},_renderSymbols:function(t){var i=t[Me](),n=this.group;i.each("value",function(t,r){if(!isNaN(t)){var a=i[h](r);if(a&&a.point){var o=a.point,s=a.offset,l=new e.Circle({style:{fill:i.getVisual("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:10});if(!s){var u=i[R](r),c=i[_](r),d=c[qe]("label.normal"),f=c[qe]("label.emphasis"),p=d[qe](te),v=f[qe](te),m=i[k](r);l[j]({textPosition:"bottom"});var g=function(){l[j]({text:f.get("show")?u:"",textFill:v[K](),textFont:v[$]()})},y=function(){l[j]({text:d.get("show")?u:"",textFill:p[K](),textFont:p[$]()})};m.on(be,g).on(we,y).on(I,g).on(D,y),y()}n.add(l)}}})}})}),e("echarts/action/geoRoam",[ti,Qe,"./roamHelper","../echarts"],function(t){var e=t(Qe),i=t("./roamHelper"),n=t("../echarts"),r={type:"geoRoam",event:"geoRoam",update:"updateLayout"};n[he](r,function(t,n){var r=t.component||Ce;n[Ne](r,function(n){if(n.name===t.name){var a=n[ie];if("geo"!==a.type)return;var o=n[qe]("roamDetail"),s=i.calcPanAndZoom(o,t);n.setRoamPan&&n.setRoamPan(s.x,s.y),n.setRoamZoom&&n.setRoamZoom(s.zoom),a&&a.setPan(s.x,s.y),a&&a.setZoom(s.zoom),r===Ce&&e.each(n.seriesGroup,function(t){t.setRoamPan(s.x,s.y),t.setRoamZoom(s.zoom)})}})})}),e("echarts/coord/geo/geoCreator",[ti,"./GeoModel","./Geo","../../util/layout",Qe,d],function(t){function e(t,e){var i=this[J](),n=t.getBoxLayoutParams();n.aspect=i.width/i[Ee]*.75;var r=a.getLayoutRect(n,{width:e[We](),height:e[He]()});this.setViewRect(r.x,r.y,r.width,r[Ee]);var o=t[qe]("roamDetail"),s=o.get("x")||0,l=o.get("y")||0,u=o.get("zoom")||1;this.setPan(s,l),this.setZoom(u)}function i(t,e){o.each(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function n(t){console.error("Map "+t+" not exists")}t("./GeoModel");var r=t("./Geo"),a=t("../../util/layout"),o=t(Qe),s={},l={dimensions:r[Ue][v],create:function(t,a){var l=[];t[Ne]("geo",function(t,o){var u=t.get("map"),c=s[u];c||n(u);var h=new r(u+o,u,c&&c.geoJson,c&&c.specialAreas,t.get("nameMap"));l.push(h),i(h,t),t[ie]=h,h.model=t,h[je]=e,h[je](t,a)}),t[ze](function(t){var e=t.get(ie);if("geo"===e){var i=t.get("geoIndex")||0;t[ie]=l[i]}});var u={};return t.eachSeriesByType("map",function(t){var e=t.get("map");u[e]=u[e]||[],u[e].push(t)}),o.each(u,function(t,u){var c=s[u];c||n(name);var h=o.map(t,function(t){return t.get("nameMap")}),d=new r(u,u,c&&c.geoJson,c&&c.specialAreas,o.mergeAll(h));l.push(d),d[je]=e,d[je](t[0],a),o.each(t,function(t){t[ie]=d,i(d,t)})}),l},registerMap:function(t,e,i){e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),typeof e===Xe&&(e=typeof JSON!==b&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),s[t]={geoJson:e,specialAreas:i}},getMap:function(t){return s[t]}},u=t(d);u.registerMap=l.registerMap,u.getMap=l.getMap,u.loadMap=function(){},u.registerCoordinateSystem("geo",l)}),e("echarts/chart/map/mapSymbolLayout",[ti,Qe],function(t){var e=t(Qe);return function(t){var i={};t.eachSeriesByType("map",function(n){var r=n.get("mapType");if(!i[r]){var a={};e.each(n.seriesGroup,function(e){var i=e[ie],n=e[Me]();e.get("showLegendSymbol")&&t[B]("legend")&&n.each("value",function(t,e){var r=n[R](e),o=i.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,l=i[p](o[U]);a[r]=s+1,n.setItemLayout(e,{point:l,offset:s})}})});var o=n[Me]();o.each(function(t){var e=o[R](t),i=o[h](t)||{};i.showLabel=!a[e],o.setItemLayout(t,i)}),i[r]=!0}})}}),e("echarts/chart/map/mapVisual",[ti],function(){return function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),i=t[qe]("itemStyle.normal"),n=i.get("areaColor"),r=i.get("color")||e[t[ye]%e[Pe]];t[Me]().setVisual({areaColor:n,color:r})})}}),e("echarts/chart/map/mapDataStatistic",[ti,Qe],function(t){function e(t,e){for(var i={},n=["value"],r=0;r<t[Pe];r++)t[r].each(n,function(e,n){var a=t[r][R](n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)});return t[0].map(n,function(n,r){for(var a=t[0][R](r),o=0,s=1/0,l=-1/0,u=i[a][Pe],c=0;u>c;c++)s=Math.min(s,i[a][c]),l=Math.max(l,i[a][c]),o+=i[a][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?o/u:o,0===u?0/0:h})}var i=t(Qe);return function(t){var n={};t.eachSeriesByType("map",function(t){var e=t.get("map");n[e]=n[e]||[],n[e].push(t)}),i.each(n,function(t){var n=e(i.map(t,function(t){return t[Me]()}),t[0].get("mapValueCalculation"));t[0].seriesGroup=[],t[0].setData(n);for(var r=0;r<t[Pe];r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r})}}),e("echarts/chart/map/backwardCompat",[ti,Qe],function(t){function e(t){var e={};return i.each(n,function(i){null!=t[i]&&(e[i]=t[i])}),e}var i=t(Qe),n=["x","y","x2","y2","width",Ee,"map","roam","roamDetail","label",se],r={};return function(t){var n=[];i.each(t[Ce],function(t){"map"===t.type&&n.push(t),i[De](r,t.geoCoord)});var a={};i.each(n,function(n){if(n.map=n.map||n.mapType,i[Le](n,n.mapLocation),n.markPoint){var o=n.markPoint;if(o.data=i.map(o.data,function(t){if(!i[fe](t.value)){var e;t.geoCoord?e=t.geoCoord:t.name&&(e=r[t.name]);var n=e?[e[0],e[1]]:[0/0,0/0];null!=t.value&&n.push(t.value),t.value=n}return t}),!n.data||!n.data[Pe]){t.geo||(t.geo=[]);var s=a[n.map];s||(s=a[n.map]=e(n),t.geo.push(s));var l=n.markPoint;l.type=t.effect&&t.effect.show?"effectScatter":"scatter",l[ie]="geo",l.geoIndex=i[de](t.geo,s),l.name=n.name,t[Ce][Se](i[de](t[Ce],n),1,l)}}})}}),e("echarts/component/axis",[ti,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/geo/GeoView",[ti,"../helper/MapDraw",d],function(t){var e=t("../helper/MapDraw");return t(d)[le]({type:"geo",init:function(t,i){var n=new e(i,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,i){t.get("show")&&this._mapDraw.draw(t,e,i)}})}),e("echarts/util/layout",[ti,Qe,L,"./number","./format"],function(t){function e(t,e,n,r,a){var o=0,s=0;null==r&&(r=1/0),null==a&&(a=1/0);var l=0;e.eachChild(function(u,c){var h,d,f=u[X],p=u[J](),v=e.childAt(c+1),m=v&&v[J]();if(t===i){var g=p.width+(m?-m.x+p.x:0);h=o+g,h>r||u.newline?(o=0,h=g,s+=l+n,l=p[Ee]):l=Math.max(l,p[Ee])}else{var y=p[Ee]+(m?-m.y+p.y:0);d=s+y,d>a||u.newline?(o+=l+n,s=0,d=y,l=p.width):l=Math.max(l,p.width)}u.newline||(f[0]=o,f[1]=s,t===i?o=h+n:s=d+n)})}var n=t(Qe),r=t(L),a=t("./number"),o=t("./format"),s=a[x],l=n.each,u={},c=["left","right","top",Be,"width",Ee];return u.box=e,u.vbox=n.curry(e,"vertical"),u.hbox=n.curry(e,i),u.getAvailableSize=function(t,e,i){var n=e.width,r=e[Ee],a=s(t.x,n),l=s(t.y,r),u=s(t.x2,n),c=s(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=o.normalizeCssArray(i||0),{width:Math.max(u-a-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},u.getLayoutRect=function(t,e,i){i=o.normalizeCssArray(i||0);var n=e.width,a=e[Ee],l=s(t.left,n),u=s(t.top,a),c=s(t.right,n),h=s(t[Be],a),d=s(t.width,n),f=s(t[Ee],a),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=n-c-v-l),isNaN(f)&&(f=a-h-p-u),isNaN(d)&&isNaN(f)&&(m>n/a?d=.8*n:f=.8*a),null!=m&&(isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=n-c-d-v),isNaN(u)&&(u=a-h-f-p),t.left||t.right){case U:l=n/2-d/2-i[3];break;case"right":l=n-d-v}switch(t.top||t[Be]){case Y:case U:u=a/2-f/2-i[0];break;case Be:u=a-f-p}l=l||0,u=u||0,isNaN(d)&&(d=n-l-(c||0)),isNaN(f)&&(f=a-u-(h||0));var g=new r(l+i[3],u+i[0],d,f);return g.margin=i,g},u.positionGroup=function(t,e,i,r){var a=t[J]();e=n[De](n.clone(e),{width:a.width,height:a[Ee]}),e=u.getLayoutRect(e,i,r),t[X]=[e.x-a.x,e.y-a.y]},u.mergeLayoutParam=function(t,e,i){function r(n){var r={},s=0,u={},c=0,h=i.ignoreSize?1:2;if(l(n,function(e){u[e]=t[e]}),l(n,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&s++,o(u,t)&&c++}),c!==h&&s){if(s>=h)return r;for(var d=0;d<n[Pe];d++){var f=n[d];if(!a(r,f)&&a(t,f)){r[f]=t[f];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function s(t,e,i){l(t,function(t){e[t]=i[t]})}!n[Re](i)&&(i={});var u=["width","left","right"],c=[Ee,"top",Be],h=r(u),d=r(c);s(u,t,h),s(c,t,d)},u.getLayoutParams=function(t){return u.copyLayoutParams({},t)},u.copyLayoutParams=function(t,e){return e&&t&&l(c,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},u}),e("echarts/component/legend/LegendModel",[ti,Qe,"../../model/Model",d],function(t){var e=t(Qe),i=t("../../model/Model"),n=t(d).extendComponentModel({type:"legend",dependencies:[Ce],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t[a]=t[a]||{},this._updateData(i);var n=this._data,r=this[F][a];if(n[0]&&"single"===this.get("selectedMode")){var o=!1;for(var s in r)r[s]&&(this.select(s),o=!0);!o&&this.select(n[0].get("name"))}},mergeOption:function(t){n.superCall(this,N,t),this._updateData(this[E])},_updateData:function(t){var n=e.map(this.get("data")||[],function(t){return typeof t===Xe&&(t={name:t}),new i(t,this,this[E])},this);this._data=n;var r=e.map(t.getSeries(),function(t){return t.name});t[ze](function(t){if(t.legendDataProvider){var e=t.legendDataProvider();r=r[G](e[l](e[R]))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[F][a],n=this.get("selectedMode");if("single"===n){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[F][a][t]=!1)},toggleSelected:function(t){var e=this[F][a];t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[F][a];return!(t in i&&!i[t])&&e[de](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}});
- return n}),e("echarts/component/legend/legendAction",[ti,d,Qe],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[Ne]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[Me]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t(d),n=t(Qe);i[he]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[he]("legendSelect","legendselected",n.curry(e,"select")),i[he]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[ti,Qe,"../../util/symbol",f,"../helper/listComponent",d],function(t){function e(t,e){e[ke]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[ke]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[ke]({type:"downplay",seriesName:t.name,name:e})}var r=t(Qe),a=t("../../util/symbol"),o=t(f),l=t("../helper/listComponent"),u=r.curry,h="#ccc";return t(d)[le]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,d){var f=this.group;if(f[ne](),t.get("show")){var p=t.get("selectedMode"),v=t.get("itemWidth"),m=t.get("itemHeight"),g=t.get("align");"auto"===g&&(g="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var y={},x={};r.each(t[Me](),function(r){var l=r.get("name");(""===l||"\n"===l)&&f.add(new o.Group({newline:!0}));var c=a.getSeriesByName(l)[0];if(y[l]=r,c&&!x[l]){var _=c[Me](),w=_.getVisual("color");t.isSelected(l)||(w=h),typeof w===ce&&(w=w(c[ge](0)));var b=_.getVisual("legendSymbol")||"roundRect",M=_.getVisual(s),S=this._createItem(l,r,t,b,M,v,m,g,w,p);S.on("click",u(e,l,d)).on(be,u(i,c,"",d)).on(we,u(n,c,"",d)),x[l]=!0}},this),a.eachRawSeries(function(r){if(r.legendDataProvider){var a=r.legendDataProvider();a.each(function(o){var s=a[R](o);if(y[s]&&!x[s]){var l=a[c](o,"color");t.isSelected(s)||(l=h);var f="roundRect",_=this._createItem(s,y[s],t,f,null,v,m,g,l,p);_.on("click",u(e,s,d)).on(be,u(i,r,s,d)).on(we,u(n,r,s,d)),x[s]=!0}},!1,this)}},this),l.layout(f,t,d),l.addBackground(f,t)}},_createItem:function(t,e,i,n,r,s,l,u,c,h){var d=new o.Group,f=e[qe](te),p=e.get("icon");if(n=p||n,d.add(a.createSymbol(n,0,0,s,l,c)),!p&&r&&r!==n&&"none"!=r){var v=.8*l;d.add(a.createSymbol(r,(s-v)/2,(l-v)/2,v,v,c))}var m="left"===u?s+5:-5,g=u,y=i.get(O);typeof y===Xe&&y?t=y[pe]("{name}",t):typeof y===ce&&(t=y(t));var x=new o.Text({style:{text:t,x:m,y:l/2,fill:f[K](),textFont:f[$](),textAlign:g,textBaseline:"middle"}});return d.add(x),d.add(new o.Rect({shape:d[J](),invisible:!0})),d.eachChild(function(t){t.silent=!h}),this.group.add(d),d}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[Pe]&&t.filterSeries(function(t){for(var i=0;i<e[Pe];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/tooltip/TooltipModel",[ti,d],function(t){t(d).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipView",[ti,"./TooltipContent",f,Qe,"../../util/format",n,"zrender/core/env",d],function(t){function e(t,e){if(!t||!e)return!1;var i=S.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function r(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function a(t,e,i,n){return{x:t,y:e,width:i,height:n}}function o(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function s(t,e,i,n,r){var a=i.clientWidth,o=i.clientHeight,s=20;return t+a+s>n?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function l(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[Ee];switch(t){case C:o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case Be:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function c(t,e,i,n,r,a,o){var u=o[We](),c=o[He](),h=a&&a[J]().clone();if(a&&h[P](a[Ke]),typeof t===ce&&(t=t([e,i],r,h)),b[fe](t))e=T(t[0],u),i=T(t[1],c);else if(typeof t===Xe&&a){var d=l(t,h,n.el);e=d[0],i=d[1]}else{var d=s(e,i,n.el,u,c);e=d[0],i=d[1]}n.moveTo(e,i)}function h(t){var e=t[ie],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"single"!==e.type||"item"===i)}var m=t("./TooltipContent"),w=t(f),b=t(Qe),M=t("../../util/format"),S=t(n),T=S[x],A=t("zrender/core/env");t(d)[le]({type:"tooltip",_axisPointers:{},init:function(t,e){if(!A.node){var i=new m(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!A.node){this.group[ne](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[Ve](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;if(r&&this.group.add(r),null!=this._lastX&&null!=this._lastY){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){a._manuallyShowTip({x:a._lastX,y:a._lastY})})}var o=this._api.getZr(),s=this._tryShow;o.off("click",s),o.off("mousemove",s),o.off(we,this._hide),"click"===t.get("triggerOn")?o.on("click",s,this):(o.on("mousemove",s,this),o.on(we,this._hide,this))}},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[ye],n=t[xe],r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e[ze](function(t){h(t)&&!r&&(r=t)}),r){var o=r[Me]();null==n&&(n=o.indexOfName(t.name));var s,l,u=o[k](n),c=r[ie];if(c&&c[p]){var d=c[p](o.getValues(c[v],n,!0));s=d&&d[0],l=d&&d[1]}else if(u){var f=u[J]().clone();f[P](u[Ke]),s=f.x+f.width/2,l=f.y+f[Ee]/2}null!=s&&null!=l&&this._tryShow({offsetX:s,offsetY:l,target:u,event:{}})}}else{var u=a.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,target:u,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e[ze](function(t){if(h(t)){var e,n,r=t[ie];"cartesian2d"===r.type?(e=r[V](),n=e.dim+e.index):"single"===r.type?(e=r.getAxis(),n=e.dim+e.type):(e=r[V](),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][Ce].push(t)}},this),i},_tryShow:function(t){var e=t[_e],i=this._tooltipModel,n=i.get(Ae),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[xe]){var o=e.hostModel||r.getSeriesByIndex(e[ye]),s=e[xe],l=o[Me]()[_](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,t)),a[ke]({type:"showTip",from:this.uid,dataIndex:e[xe],seriesIndex:e[ye]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a[ke]({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){var r=t[qe]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[_e];if(o&&null!=o[xe]){var s=i.getSeriesByIndex(o[ye]),l=o[xe];this._showItemTooltipContent(s,l,n)}}this._showAxisPointer();var u=!0;b.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n.offsetX,n.offsetY];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var l=o[v],c=o.pointToData(s,!0);s=o[p](c);var h=o[V](),d=r.get("axis");"auto"===d&&(d=h.dim);var f=!1,m=this._lastHover;if("cross"===a)e(m.data,c)&&(f=!0),m.data=c;else{var g=b[de](l,d);m.data===c[g]&&(f=!0),m.data=c[g]}"cartesian2d"!==o.type||f?"polar"!==o.type||f?"single"!==o.type||f||this._showSinglePointer(r,o,d,s):this._showPolarPointer(r,o,d,s):this._showCartesianPointer(r,o,d,s),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(o,t[Ce],s,c,f)},this),u&&this._hide()},_showCartesianPointer:function(t,e,i,n){function o(i,n,a){var o="x"===i?r(n[0],a[0],n[0],a[1]):r(a[0],n[1],a[1],n[1]),s=l._getPointerElement(e,t,i,o);c?w.updateProps(s,{shape:o},t):s.attr({shape:o})}function s(i,n,r){var o=e.getAxis(i),s=o.getBandWidth(),u=r[1]-r[0],h="x"===i?a(n[0]-s/2,r[0],s,u):a(r[0],n[1]-s/2,u,s),d=l._getPointerElement(e,t,i,h);c?w.updateProps(d,{shape:h},t):d.attr({shape:h})}var l=this,u=t.get("type"),c="cross"!==u;if("cross"===u)o("x",n,e.getAxis("y").getGlobalExtent()),o("y",n,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,n,t);else{var h=e.getAxis("x"===i?"y":"x"),d=h.getGlobalExtent();"cartesian2d"===e.type&&("line"===u?o:s)(i,n,d)}},_showSinglePointer:function(t,e,n,a){function o(n,a,o){var l=e.getAxis(),c=l.orient,h=c===i?r(a[0],o[0],a[0],o[1]):r(o[0],a[1],o[1],a[1]),d=s._getPointerElement(e,t,n,h);u?w.updateProps(d,{shape:h},t):d.attr({shape:h})}var s=this,l=t.get("type"),u="cross"!==l,c=e.getRect(),h=[c.y,c.y+c[Ee]];o(n,a,h)},_showPolarPointer:function(t,e,i,n){function a(i,n,a){var o,s=e.pointToCoord(n);if("angle"===i){var u=e.coordToPoint([a[0],s[1]]),c=e.coordToPoint([a[1],s[1]]);o=r(u[0],u[1],c[0],c[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var h=l._getPointerElement(e,t,i,o);f?w.updateProps(h,{shape:o},t):h.attr({shape:o})}function s(i,n,r){var a,s=e.getAxis(i),u=s.getBandWidth(),c=e.pointToCoord(n),h=Math.PI/180;a="angle"===i?o(e.cx,e.cy,r[0],r[1],(-c[1]-u/2)*h,(-c[1]+u/2)*h):o(e.cx,e.cy,c[0]-u/2,c[0]+u/2,0,2*Math.PI);var d=l._getPointerElement(e,t,i,a);f?w.updateProps(d,{shape:a},t):d.attr({shape:a})}var l=this,c=t.get("type"),h=e.getAngleAxis(),d=e.getRadiusAxis(),f="cross"!==c;if("cross"===c)a("angle",n,d[Z]()),a(u,n,h[Z]()),this._updateCrossText(e,n,t);else{var p=e.getAxis(i===u?"angle":u),v=p[Z]();("line"===c?a:s)(i,n,v)}},_updateCrossText:function(t,e,i){var n=i[qe]("crossStyle"),r=n[qe](te),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new w.Text({style:{textAlign:"left",textBaseline:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[v];s=b.map(s,function(e,i){var n=t.getAxis(l[i]);return e=n.type===g||"time"===n.type?n.scale.getLabel(e):M.addCommas(e[y](n.getPixelPrecision()))}),o[j]({fill:r[K]()||n.get("color"),textFont:r[$](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[me]=a.get(me)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(me),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var c=e.get("type"),h=e[qe](c+"Style"),d="shadow"===c,f=h[d?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?d?"Sector":i===u?"Circle":"Line":d?"Rect":"Line";d?f[z]=null:f.fill=null;var v=s[l][i]=new w[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,s=t[V](),l=b.map(e,function(t){return{seriesIndex:t[ye],dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(s.dim),n,s):t[Me]().indexOfNearest(t.coordDimToDataDim(s.dim)[0],n["x"===s.dim||s.dim===u?0:1])}}),h=this._lastHover,d=this._api;if(h.payloadBatch&&!r&&d[ke]({type:"downplay",batch:h.payloadBatch}),r||(d[ke]({type:"highlight",batch:l}),h.payloadBatch=l),d[ke]({type:"showTip",dataIndex:l[0][xe],seriesIndex:l[0][ye],from:this.uid}),s&&a.get("showContent")){var f,p=a.get(O),v=a.get(X),m=b.map(e,function(t,e){return t[ge](l[e][xe])});o.show(a);var g=l[0][xe];if(!r){if(this._ticket="",p){if(typeof p===Xe)f=M.formatTpl(p,m);else if(typeof p===ce){var y=this,x="axis_"+t.name+"_"+g,_=function(t,e){t===y._ticket&&(o.setContent(e),c(v,i[0],i[1],o,m,null,d))};y._ticket=x,f=p(m,x,_)}}else{var w=e[0][Me]()[R](g);f=(w?w+"<br />":"")+b.map(e,function(t,e){return t.formatTooltip(l[e][xe],!0)}).join("<br />")}o.setContent(f)}c(v,i[0],i[1],o,m,null,d)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t[Me](),a=r[_](e),o=this._tooltipModel,s=this._tooltipContent,l=a[qe]("tooltip");if(l.parentModel?l.parentModel.parentModel=o:l.parentModel=this._tooltipModel,l.get("showContent")){var u,h=l.get(O),d=l.get(X),f=t[ge](e);if(h){if(typeof h===Xe)u=M.formatTpl(h,f);else if(typeof h===ce){var p=this,v="item_"+t.name+"_"+e,m=function(t,e){t===p._ticket&&(s.setContent(e),c(d,i.offsetX,i.offsetY,s,f,i[_e],n))};p._ticket=v,u=h(f,v,m)}}else u=t.formatTooltip(e);s.show(l),s.setContent(u),c(d,i.offsetX,i.offsetY,s,f,i[_e],n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&b.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api[ke]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&b.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api[ke]({type:"hideTip",from:this.uid})},dispose:function(t,e){if(!A.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._tryShow),i.off(we,this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("zrender/vml/graphic",[ti,"../core/env","../core/vector","../core/BoundingRect","../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){if(!t("../core/env")[Ze]){var e=t("../core/vector"),i=t("../core/BoundingRect"),n=t("../core/PathProxy").CMD,a=t("../tool/color"),o=t("../contain/text"),s=t("../graphic/mixin/RectText"),l=t("../graphic/Displayable"),u=t("../graphic/Image"),c=t("../graphic/Text"),h=t("../graphic/Path"),d=t("../graphic/Gradient"),f=t("./core"),p=Math.round,v=Math.sqrt,m=Math.abs,g=Math.cos,x=Math.sin,_=Math.max,w=e[P],b=",",S="progid:DXImageTransform.Microsoft",T=21600,C=T/2,L=1e5,k=1e3,I=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=T+","+T,t.coordorigin="0,0"},R=function(t){return String(t)[pe](/&/g,"&")[pe](/"/g,""")},V=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},O=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},E=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},B=function(t,e,i){return(parseFloat(t)||0)*L+(parseFloat(e)||0)*k+i},G=function(t,e){return typeof t===Xe?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},N=function(t,e,i){var n=a.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=V(n[0],n[1],n[2]),t[q]=i*n[3])},F=function(t){var e=a.parse(t);return[V(e[0],e[1],e[2]),e[3]]},Z=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof d){var r,a=0,o=[0,0],s=0,l=1,u=i[J](),c=u.width,h=u[Ee];if("linear"===n.type){r="gradient";var f=i[Ke],p=[n.x*c,n.y*h],v=[n.x2*c,n.y2*h];f&&(w(p,p,f),w(v,v,f));var m=v[0]-p[0],g=v[1]-p[1];a=180*Math.atan2(m,g)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var p=[n.x*c,n.y*h],f=i[Ke],y=i.scale,x=c,b=h;o=[(p[0]-u.x)/x,(p[1]-u.y)/b],f&&w(p,p,f),x/=y[0]*T,b/=y[1]*T;var M=_(x,b);s=0/M,l=2*n.r/M-s}var S=n.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[Pe],z=[],A=[],P=0;C>P;P++){var L=S[P],k=F(L.color);A.push(L.offset*l+s+" "+k[0]),(0===P||P===C-1)&&z.push(k)}if(C>=2){var D=z[0][0],I=z[1][0],R=z[0][1]*e[q],V=z[1][1]*e[q];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=D,t.color2=I,t.colors=A.join(","),t[q]=V,t.opacity2=R}"radial"===r&&(t.focusposition=o.join(","))}else N(t,n,e[q])},H=function(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*T),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[z]||e[z]instanceof d||N(t,e[z],e[q])},W=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[A])?(t[r?"filled":"stroked"]="true",i[e]instanceof d&&E(t,a),a||(a=f.createNode(e)),r?Z(a,i,n):H(a,i),O(t,a)):(t[r?"filled":"stroked"]="false",E(t,a))},j=[[],[],[]],X=function(t,e){var i,r,a,o,s,l,u=n.M,c=n.C,h=n.L,d=n.A,f=n.Q,m=[];for(o=0;o<t[Pe];){switch(a=t[o++],r="",i=0,a){case u:r=" m ",i=1,s=t[o++],l=t[o++],j[0][0]=s,j[0][1]=l;break;case h:r=" l ",i=1,s=t[o++],l=t[o++],j[0][0]=s,j[0][1]=l;break;case f:case c:r=" c ",i=3;var y,_,M=t[o++],S=t[o++],z=t[o++],A=t[o++];a===f?(y=z,_=A,z=(z+2*M)/3,A=(A+2*S)/3,M=(s+2*M)/3,S=(l+2*S)/3):(y=t[o++],_=t[o++]),j[0][0]=M,j[0][1]=S,j[1][0]=z,j[1][1]=A,j[2][0]=y,j[2][1]=_,s=y,l=_;break;case d:var P=0,L=0,k=1,D=1,I=0;e&&(P=e[4],L=e[5],k=v(e[0]*e[0]+e[1]*e[1]),D=v(e[2]*e[2]+e[3]*e[3]),I=Math.atan2(-e[1]/D,e[0]/k));var R=t[o++],V=t[o++],O=t[o++],E=t[o++],B=t[o++]+I,G=t[o++]+B+I;o++;var N=t[o++],F=R+g(B)*O,Z=V+x(B)*E,M=R+g(G)*O,S=V+x(G)*E,H=N?" wa ":" at ";m.push(H,p(((R-O)*k+P)*T-C),b,p(((V-E)*D+L)*T-C),b,p(((R+O)*k+P)*T-C),b,p(((V+E)*D+L)*T-C),b,p((F*k+P)*T-C),b,p((Z*D+L)*T-C),b,p((M*k+P)*T-C),b,p((S*D+L)*T-C)),s=M,l=S;break;case n.R:var W=j[0],q=j[1];W[0]=t[o++],W[1]=t[o++],q[0]=W[0]+t[o++],q[1]=W[1]+t[o++],e&&(w(W,W,e),w(q,q,e)),W[0]=p(W[0]*T-C),q[0]=p(q[0]*T-C),W[1]=p(W[1]*T-C),q[1]=p(q[1]*T-C),m.push(" m ",W[0],b,W[1]," l ",q[0],b,W[1]," l ",q[0],b,q[1]," l ",W[0],b,q[1]);break;case n.Z:m.push(" x ")}if(i>0){m.push(r);for(var X=0;i>X;X++){var U=j[X];e&&w(U,U,e),m.push(p(U[0]*T-C),b,p(U[1]*T-C),i-1>X?b:"")}}}return m.join("")};h[Ue].brush=function(t){var e=this.style,i=this._vmlEl;i||(i=f.createNode("shape"),I(i),this._vmlEl=i),W(i,"fill",e,this),W(i,z,e,this);var n=this[Ke],r=null!=n,a=i.getElementsByTagName(z)[0];if(a){var o=e[A];if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=v(m(s))}a.weight=o+"px"}var l=this.path;this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),this.__dirtyPath=!1),i.path=X(l.data,this[Ke]),i.style.zIndex=B(this[me],this.z,this.z2),O(t,i),e.text&&this.drawRectText(t,this[J]())},h[Ue].onRemoveFromStorage=function(t){E(t,this._vmlEl),this.removeRectText(t)},h[Ue].onAddToStorage=function(t){O(t,this._vmlEl),this.appendRectText(t)};var K=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};u[Ue].brush=function(t){var e,i,n=this.style,r=n.image;if(K(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var o=r.runtimeStyle,s=o.width,l=o[Ee];o.width="auto",o[Ee]="auto",e=r.width,i=r[Ee],o.width=s,o[Ee]=l,this._imageSrc=a,this._imageWidth=e,this._imageHeight=i}r=a}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var u=n.x||0,c=n.y||0,h=n.width,d=n[Ee],m=n.sWidth,g=n.sHeight,y=n.sx||0,x=n.sy||0,T=m&&g,C=this._vmlEl;C||(C=f.doc[M]("div"),I(C),this._vmlEl=C);var z,A=C.style,P=!1,L=1,k=1;if(this[Ke]&&(z=this[Ke],L=v(z[0]*z[0]+z[1]*z[1]),k=v(z[2]*z[2]+z[3]*z[3]),P=z[1]||z[2]),P){var D=[u,c],R=[u+h,c],V=[u,c+d],E=[u+h,c+d];w(D,D,z),w(R,R,z),w(V,V,z),w(E,E,z);var G=_(D[0],R[0],V[0],E[0]),N=_(D[1],R[1],V[1],E[1]),F=[];F.push("M11=",z[0]/L,b,"M12=",z[2]/k,b,"M21=",z[1]/L,b,"M22=",z[3]/k,b,"Dx=",p(u*L+z[4]),b,"Dy=",p(c*k+z[5])),A.padding="0 "+p(G)+"px "+p(N)+"px 0",A[Je]=S+".Matrix("+F.join("")+", SizingMethod=clip)"}else z&&(u=u*L+z[4],c=c*k+z[5]),A[Je]="",A.left=p(u)+"px",A.top=p(c)+"px";var Z=this._imageEl,H=this._cropEl;Z||(Z=f.doc[M]("div"),this._imageEl=Z);var W=Z.style;if(T){if(e&&i)W.width=p(L*e*h/m)+"px",W[Ee]=p(k*i*d/g)+"px";else{var j=new Image,X=this;j.onload=function(){j.onload=null,e=j.width,i=j[Ee],W.width=p(L*e*h/m)+"px",W[Ee]=p(k*i*d/g)+"px",X._imageWidth=e,X._imageHeight=i,X._imageSrc=r},j.src=r}H||(H=f.doc[M]("div"),H.style.overflow="hidden",this._cropEl=H);var U=H.style;U.width=p((h+y*h/m)*L),U[Ee]=p((d+x*d/g)*k),U[Je]=S+".Matrix(Dx="+-y*h/m*L+",Dy="+-x*d/g*k+")",H.parentNode||C.appendChild(H),Z.parentNode!=H&&H.appendChild(Z)}else W.width=p(L*h)+"px",W[Ee]=p(k*d)+"px",C.appendChild(Z),H&&H.parentNode&&(C.removeChild(H),this._cropEl=null);var Y="",$=n[q];1>$&&(Y+=".Alpha(opacity="+p(100*$)+") "),Y+=S+".AlphaImageLoader(src="+r+", SizingMethod=scale)",W[Je]=Y,C.style.zIndex=B(this[me],this.z,this.z2),O(t,C),n.text&&this.drawRectText(t,this[J]())}},u[Ue].onRemoveFromStorage=function(t){E(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},u[Ue].onAddToStorage=function(t){O(t,this._vmlEl),this.appendRectText(t)};var $,te=D,ee={},ie=0,ne=100,re=document[M]("div"),ae=function(t){var e=ee[t];if(!e){ie>ne&&(ie=0,ee={});var i,n=re.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||te,variant:n.fontVariant||te,weight:n.fontWeight||te,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},ee[t]=e,ie++}return e};o.measureText=function(t,e){var i=f.doc;$||($=i[M]("div"),$.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",f.doc.body.appendChild($));try{$.style.font=e}catch(n){}return $.innerHTML="",$.appendChild(i.createTextNode(t)),{width:$.offsetWidth}};for(var oe=new i,se=function(t,e,i,n){var a=this.style,s=a.text;if(s){var l,u,c=a[Q],h=ae(a.textFont),d=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',v=a[r];i=i||o[J](s,d,c,v);var m=this[Ke];if(m&&!n&&(oe.copy(e),oe[P](m),e=oe),n)l=e.x,u=e.y;else{var g=a.textPosition,x=a.textDistance;if(g instanceof Array)l=e.x+G(g[0],e.width),u=e.y+G(g[1],e[Ee]),c=c||"left",v=v||"top";else{var _=o.adjustTextPositionOnRect(g,e,i,x);l=_.x,u=_.y,c=c||_[Q],v=v||_[r]}}var M=h.size,S=(s+"").split("\n")[Pe];switch(v){case"hanging":case"top":u+=M/1.75*S;break;case Y:break;default:u-=M/2.25}switch(c){case"left":break;case U:l-=i.width/2;break;case"right":l-=i.width}var T,C,A,L=f.createNode,k=this._textVmlEl;k?(A=k.firstChild,T=A.nextSibling,C=T.nextSibling):(k=L("line"),T=L("path"),C=L("textpath"),A=L("skew"),C.style["v-text-align"]="left",I(k),T.textpathok=!0,C.on=!0,k.from="0 0",k.to="1000 0.05",O(k,A),O(k,T),O(k,C),this._textVmlEl=k);var D=[l,u],V=k.style;m&&n?(w(D,D,m),A.on=!0,A.matrix=m[0][y](3)+b+m[2][y](3)+b+m[1][y](3)+b+m[3][y](3)+",0,0",A.offset=(p(D[0])||0)+","+(p(D[1])||0),A.origin="0 0",V.left="0px",V.top="0px"):(A.on=!1,V.left=p(l)+"px",V.top=p(u)+"px"),C[Xe]=R(s);try{C.style.font=d}catch(E){}W(k,"fill",{fill:n?a.fill:a.textFill,opacity:a[q]},this),W(k,z,{stroke:n?a[z]:a.textStroke,opacity:a[q],lineDash:a.lineDash},this),k.style.zIndex=B(this[me],this.z,this.z2),O(t,k)}},le=function(t){E(t,this._textVmlEl),this._textVmlEl=null},ue=function(t){O(t,this._textVmlEl)},ce=[s,l,u,h,c],he=0;he<ce[Pe];he++){var de=ce[he][Ue];de.drawRectText=se,de.removeRectText=le,de.appendRectText=ue}c[Ue].brush=function(t){var e=this.style;e.text&&this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[J](),!0)},c[Ue].onRemoveFromStorage=function(t){this.removeRectText(t)},c[Ue].onAddToStorage=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[ti,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this.storage=e;var i=document[M]("div"),n=document[M]("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this[je]();var r=e.delFromMap,o=e.addToMap;e.delFromMap=function(t){var i=e.get(t);r.call(e,t),i&&i.onRemoveFromStorage&&i.onRemoveFromStorage(n)},e.addToMap=function(t){t.onAddToStorage&&t.onAddToStorage(n),o.call(e,t)},this._firstPaint=!0}function n(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=t("../core/log"),a=t("./core");i[Ue]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[Pe];i++){var n=t[i];n.__dirty&&!n.invisible&&(n.beforeBrush&&n.beforeBrush(),n.brush(e),n.afterBrush&&n.afterBrush()),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[Ee]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t.clientHeight||e(i[Ee]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[Pe];s++){var l=o[s];i[Ue][l]=n(l)}return i}),e("echarts/scale/Interval",[ti,W,"../util/format","./Scale"],function(t){var e=t(W),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[De]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[Ue].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[Pe]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[Pe];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||10;var i=this._extent,n=i[1]-i[0];if(!(1/0===n||0>=n)){var o=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),s=t/n*o;.15>=s?o*=10:.3>=s?o*=5:.45>=s?o*=3:.75>=s&&(o*=2);var l=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;o[1]===-1/0&&1/0===o[0]&&(o[0]=0,o[1]=1),this.niceTicks(t,i,n);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[Oe]=function(){return new o},o}),e("echarts/scale/Scale",[ti,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),n=e[Ue];return n.parse=function(t){return t},n[H]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[Z]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[Pe];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/model",[ti,"./format","./number",Qe,"../model/Model"],function(t){var e=t("./format"),i=t("./number"),n=t(Qe),r=t("../model/Model"),a=["x","y","z",u,"angle"],o={};return o.createNameEach=function(t,e){t=t.slice();var i=n.map(t,o.capitalFirst);e=(e||[]).slice();var r=n.map(e,o.capitalFirst);return function(a,o){n.each(t,function(t,n){for(var s={name:t,capital:i[n]},l=0;l<e[Pe];l++)s[e[l]]=t+r[l];a.call(o,s)})}},o.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},o.eachAxisDim=o.createNameEach(a,["axisIndex","axis","index"]),o.normalizeToArray=function(t){return n[fe](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){function r(t,e){return n[de](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(i){function n(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(n);while(l);return s}},o.defaultEmphasis=function(t,e){if(t){var i=t[I]=t[I]||{},r=t[D]=t[D]||{};n.each(e,function(t){var e=n.retrieve(i[t],r[t]);null!=e&&(i[t]=e)})}},o.createDataFormatModel=function(t,e,i){var a=new r;return n.mixin(a,o.dataFormatMixin),a[ye]=t[ye],a.name=t.name||"",a[Me]=function(){return e},a.getRawDataArray=function(){return i},a},o.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},o.converDataValue=function(t,e){var n=e&&e.type;return n===m?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},o.dataFormatMixin={getDataParams:function(t){var e=this[Me](),i=this[ye],n=this.name,r=this.getRawValue(t),a=e.getRawIndex(t),o=e[R](t,!0),s=this.getRawDataArray(),l=s&&s[a];return{seriesIndex:i,seriesName:n,name:o,dataIndex:a,data:l,value:r,$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n){i=i||D;var r=this[Me](),a=r[_](t),o=this[ge](t);return null==n&&(n=a.get(["label",i,O])),typeof n===ce?(o.status=i,n(o)):typeof n===Xe?e.formatTpl(n,o):void 0},getRawValue:function(t){var e=this[Me]()[_](t);if(e&&null!=e[F]){var i=e[F];return n[Re](i)&&!n[fe](i)?i.value:i}}},o.mappingToExists=function(t,e){e=(e||[]).slice();var i=n.map(t||[],function(t){return{exist:t}});return n.each(e,function(t,r){if(n[Re](t))for(var a=0;a<i[Pe];a++){var s=i[a].exist;if(!i[a][F]&&(null!=t.id&&s.id===t.id+""||null!=t.name&&!o.isIdInner(t)&&!o.isIdInner(s)&&s.name===t.name+"")){i[a][F]=t,e[r]=null;break}}}),n.each(e,function(t){if(n[Re](t)){for(var e=0;e<i[Pe];e++){var r=i[e].exist;if(!i[e][F]&&!o.isIdInner(r)&&null==t.id){i[e][F]=t;break}}e>=i[Pe]&&i.push({option:t})}}),i},o.isIdInner=function(t){return n[Re](t)&&t.id&&0===(t.id+"")[de]("\x00_ec_\x00")},o}),e("echarts/model/Model",[ti,Qe,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i,n){this.parentModel=e,this[E]=i,this[F]=t,this.init&&(arguments[Pe]<=4?this.init(t,e,i,n):this.init.apply(this,arguments))}var i=t(Qe),n=t("../util/clazz");e[Ue]={constructor:e,init:null,mergeOption:function(t){i.merge(this[F],t,!0)},get:function(t,e){if(!t)return this[F];typeof t===Xe&&(t=t.split("."));for(var i=this[F],n=this.parentModel,r=0;r<t[Pe]&&(i=i&&"object"==typeof i?i[t[r]]:null,null!=i);r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this[F],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r.getShallow(t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[qe](t),this[E]);return a},isEmpty:function(){return null==this[F]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[F]))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==b&&(t=navigator.platform||""),{color:["#c23531","#314656","#61a0a8","#dd8668","#91c7ae","#6e7074","#ca8622","#bda29a","#44525d","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}
- }),e("zrender/tool/path",[ti,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,m){var g=l*(d/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,x=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=u(_),s*=u(_));var w=(r===a?-1:1)*u((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,b=w*o*x/s,M=w*-s*y/o,S=(t+i)/2+h(g)*b-c(g)*M,T=(e+n)/2+c(g)*b+h(g)*M,C=v([1,0],[(y-b)/o,(x-M)/s]),z=[(y-b)/o,(x-M)/s],A=[(-1*y-b)/o,(-1*x-M)/s],P=v(z,A);p(z,A)<=-1&&(P=d),p(z,A)>=1&&(P=0),0===a&&P>0&&(P-=2*d),1===a&&0>P&&(P+=2*d),m.addData(f,S,T,o,s,C,P,g,a)}function i(t){if(!t)return[];var i,n=t[pe](/-/g," -")[pe](/ /g," ")[pe](/ /g,",")[pe](/,,/g,",");for(i=0;i<l[Pe];i++)n=n[pe](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,u=0,c=new a,h=a.CMD;for(i=1;i<o[Pe];i++){var d,f=o[i],p=f.charAt(0),v=0,m=f.slice(1)[pe](/e,-/g,"e-").split(",");m[Pe]>0&&""===m[0]&&m.shift();for(var g=0;g<m[Pe];g++)m[g]=parseFloat(m[g]);for(;v<m[Pe]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,x,_,w,b,M,S,T=s,C=u;switch(p){case"l":s+=m[v++],u+=m[v++],d=h.L,c.addData(d,s,u);break;case"L":s=m[v++],u=m[v++],d=h.L,c.addData(d,s,u);break;case"m":s+=m[v++],u+=m[v++],d=h.M,c.addData(d,s,u),p="l";break;case"M":s=m[v++],u=m[v++],d=h.M,c.addData(d,s,u),p="L";break;case"h":s+=m[v++],d=h.L,c.addData(d,s,u);break;case"H":s=m[v++],d=h.L,c.addData(d,s,u);break;case"v":u+=m[v++],d=h.L,c.addData(d,s,u);break;case"V":u=m[v++],d=h.L,c.addData(d,s,u);break;case"C":d=h.C,c.addData(d,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],u=m[v-1];break;case"c":d=h.C,c.addData(d,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u,m[v++]+s,m[v++]+u),s+=m[v-2],u+=m[v-1];break;case"S":y=s,x=u;var z=c.len(),A=c.data;r===h.C&&(y+=s-A[z-4],x+=u-A[z-3]),d=h.C,T=m[v++],C=m[v++],s=m[v++],u=m[v++],c.addData(d,y,x,T,C,s,u);break;case"s":y=s,x=u;var z=c.len(),A=c.data;r===h.C&&(y+=s-A[z-4],x+=u-A[z-3]),d=h.C,T=s+m[v++],C=u+m[v++],s+=m[v++],u+=m[v++],c.addData(d,y,x,T,C,s,u);break;case"Q":T=m[v++],C=m[v++],s=m[v++],u=m[v++],d=h.Q,c.addData(d,T,C,s,u);break;case"q":T=m[v++]+s,C=m[v++]+u,s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,T,C,s,u);break;case"T":y=s,x=u;var z=c.len(),A=c.data;r===h.Q&&(y+=s-A[z-4],x+=u-A[z-3]),s=m[v++],u=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"t":y=s,x=u;var z=c.len(),A=c.data;r===h.Q&&(y+=s-A[z-4],x+=u-A[z-3]),s+=m[v++],u+=m[v++],d=h.Q,c.addData(d,y,x,s,u);break;case"A":_=m[v++],w=m[v++],b=m[v++],M=m[v++],S=m[v++],T=s,C=u,s=m[v++],u=m[v++],d=h.A,e(T,C,s,u,M,S,_,w,b,d,c);break;case"a":_=m[v++],w=m[v++],b=m[v++],M=m[v++],S=m[v++],T=s,C=u,s+=m[v++],u+=m[v++],d=h.A,e(T,C,s,u,M,S,_,w,b,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e[P]=function(t){n||(n=s[Oe]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],u=Math.sqrt,c=Math.sin,h=Math.cos,d=Math.PI,f=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},p=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[De](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[Pe];for(n=0;o>n;n++)i=t[n],i.__dirty&&i.buildPath(i.path,i.shape),a.push(i.path);var s=new r(e);return s.buildPath=function(t){t.appendPath(a);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Path",[ti,"./Displayable",w,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[z];return null!=e&&"none"!==e&&t[A]>0}function n(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t(w),o=t("../core/PathProxy"),s=t("../contain/path"),l=t("./Gradient"),u=Math.abs;return n[Ue]={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var n=this.style,r=this.path,a=i(n),o=e(n);this.__dirtyPath&&(o&&n.fill instanceof l&&n.fill.updateCanvasGradient(this,t),a&&n[z]instanceof l&&n[z].updateCanvasGradient(this,t)),n.bind(t,this),this.setTransform(t);var s=n.lineDash,u=n.lineDashOffset,c=!!t.setLineDash;this.__dirtyPath||s&&!c&&a?(r=this.path.beginPath(t),s&&!c&&(r.setLineDash(s),r.setLineDashOffset(u)),this.buildPath(r,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),s&&c&&(t.setLineDash(s),t.lineDashOffset=u),a&&r[z](t),null!=n.text&&this.drawRectText(t,this[J]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,n=this.style;if(!t){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape)),t=r[J]()}if(i(n)&&(this.__dirty||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=n[A],s=n.strokeNoScale?this.getLineScale():1;return e(n)||(o=Math.max(o,this.strokeContainThreshold)),s>1e-10&&(a.width+=o/s,a[Ee]+=o/s,a.x-=o/s/2,a.y-=o/s/2),a}return this._rect=t,t},contain:function(t,n){var r=this.transformCoordToLocal(t,n),a=this[J](),o=this.style;if(t=r[0],n=r[1],a[H](t,n)){var l=this.path.data;if(i(o)){var u=o[A],c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(e(o)||(u=Math.max(u,this.strokeContainThreshold)),s.containStroke(l,u/c,t,n)))return!0}if(e(o))return s[H](l,t,n)}return!1},dirty:function(t){0===arguments[Pe]&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?this.setShape(e):r[Ue].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[Re](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[Ke];return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},n[De]=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,e)};a[ae](e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e[Ue][i]=t[i]);return e},a[ae](n,r),n}),e("zrender/graphic/Gradient",[ti],function(){var t=function(t){this.colorStops=t||[]};return t[Ue]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/container/Group",[ti,w,"../Element","../core/BoundingRect"],function(t){var e=t(w),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return r[Ue]={constructor:r,type:"group",children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[Pe];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[Pe]},add:function(t){return t&&t!==this&&t[S]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[S]!==this&&e&&e[S]===this){var i=this._children,n=i[de](e);n>=0&&(i[Se](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[S]&&t[S][Ie](t),t[S]=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof r&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,a=this._children,o=e[de](a,t);return 0>o?this:(a[Se](o,1),t[S]=null,n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[Pe];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[S]=null;return i[Pe]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[Pe];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[Pe];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[ve](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[Pe];e++){var i=this._children[e];t.addToMap(i),i instanceof r&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[Pe];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof r&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[Pe];o++){var s=r[o];if(!s[Ge]&&!s.invisible){var l=s[J](),u=s.getLocalTransform(a);u?(i.copy(l),i[P](u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[ae](r,i),r}),e("zrender/graphic/Image",[ti,"./Displayable","../core/BoundingRect",w,"./helper/roundRect","../core/LRU"],function(t){var e=t("./Displayable"),i=t("../core/BoundingRect"),n=t(w),r=t("./helper/roundRect"),a=t("../core/LRU"),o=new a(50),s=function(t){e.call(this,t)};return s[Ue]={constructor:s,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===Xe?this._image:n,!e&&n){var a=o.get(n);if(!a)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<a.pending[Pe];t++)a.pending[t].dirty()},a={image:e,pending:[this]},e.src=n,o.put(n,a),void(this._image=e);if(e=a.image,this._image=e,!e.width||!e[Ee])return void a.pending.push(this)}if(e){var s=i.width||e.width,l=i[Ee]||e[Ee],u=i.x||0,c=i.y||0;if(!e.width||!e[Ee])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t.beginPath(),r.buildPath(t,i),t.clip()),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;t.drawImage(e,h,d,i.sWidth,i.sHeight,u,c,s,l)}else if(i.sx&&i.sy){var h=i.sx,d=i.sy,f=s-h,p=l-d;t.drawImage(e,h,d,f,p,u,c,s,l)}else t.drawImage(e,u,c,s,l);null==i.width&&(i.width=s),null==i[Ee]&&(i[Ee]=l),null!=i.text&&this.drawRectText(t,this[J]()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new i(t.x||0,t.y||0,t.width||0,t[Ee]||0)),this._rect}},n[ae](s,e),s}),e("zrender/graphic/Text",[ti,"./Displayable",w,"../contain/text"],function(t){var e=t("./Displayable"),i=t(w),n=t("../contain/text"),a=function(t){e.call(this,t)};return a[Ue]={constructor:a,type:"text",brush:function(t){var e=this.style,i=e.x||0,a=e.y||0,o=e.text,s=e.fill,l=e[z];if(null!=o&&(o+=""),o){t.save(),this.style.bind(t),this.setTransform(t),s&&(t.fillStyle=s),l&&(t.strokeStyle=l),t.font=e.textFont||e.font,t[Q]=e[Q],t[r]=e[r];for(var u=n.measureText("国",t.font).width,c=o.split("\n"),h=0;h<c[Pe];h++)s&&t.fillText(c[h],i,a),l&&t.strokeText(c[h],i,a),a+=u;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=n[J](t.text+"",t.textFont,t[Q],t[r]);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},i[ae](a,e),a}),e("zrender/graphic/shape/Circle",[ti,"../Path"],function(t){return t("../Path")[De]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[ti,"../Path"],function(t){return t("../Path")[De]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),c=Math.sin(o);t.moveTo(u*r+i,c*r+n),t.lineTo(u*a+i,c*a+n),t.arc(i,n,a,o,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t.closePath()}})}),e("zrender/graphic/shape/Polygon",[ti,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[De]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[ti,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[De]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Rect",[ti,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[De]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[Ee];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[ti,"../Path"],function(t){return t("../Path")[De]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[ti,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,n=e.cubicSubdivide,r=e.quadraticAt,a=e.cubicAt,o=[];return t("../Path")[De]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,a=e.y1,s=e.x2,l=e.y2,u=e.cpx1,c=e.cpy1,h=e.cpx2,d=e.cpy2,f=e.percent;0!==f&&(t.moveTo(r,a),null==h||null==d?(1>f&&(i(r,u,s,f,o),u=o[1],s=o[2],i(a,c,l,f,o),c=o[1],l=o[2]),t.quadraticCurveTo(u,c,s,l)):(1>f&&(n(r,u,h,s,f,o),u=o[1],h=o[2],s=o[3],n(a,c,d,l,f,o),c=o[1],d=o[2],l=o[3]),t.bezierCurveTo(u,c,h,d,s,l)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[a(e.x1,e.cpx1,e.cpx1,e.x2,t),a(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})}),e("zrender/graphic/shape/Arc",[ti,"../Path"],function(t){return t("../Path")[De]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[ti,w,"./Gradient"],function(t){var e=t(w),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[Ue]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[J](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[Ee]+i.y,o=this.y2*i[Ee]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,u=0;u<l[Pe];u++)s.addColorStop(l[u].offset,l[u].color);this.canvasGradient=s}},e[ae](n,i),n}),e("zrender/graphic/RadialGradient",[ti,w,"./Gradient"],function(t){var e=t(w),i=t("./Gradient"),n=function(t,e,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return n[Ue]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[J](),n=i.width,r=i[Ee],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,l=this.r*a,u=e.createRadialGradient(o,s,0,o,s,l),c=this.colorStops,h=0;h<c[Pe];h++)u.addColorStop(c[h].offset,c[h].color);this.canvasGradient=u}},e[ae](n,i),n}),e(L,[ti,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[Ee]=n}var i=t("./vector"),n=t("./matrix"),r=i[P],a=Math.min,o=Math.abs,s=Math.max;return e[Ue]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[Ee]=s(t.y+t[Ee],this.y+this[Ee])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[Ee],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[Ee]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[Ee]/e[Ee],a=n[Oe]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[Ee],o=t.x,s=t.x+t.width,l=t.y,u=t.y+t[Ee];return!(o>n||i>s||l>a||r>u)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[Ee]},clone:function(){return new e(this.x,this.y,this.width,this[Ee])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[Ee]=t[Ee]}},e}),e("echarts/coord/geo/GeoModel",[ti,"../../util/model","../../model/Component"],function(t){var e=t("../../util/model"),i=t("../../model/Component");i[De]({type:"geo",coordinateSystem:null,init:function(t){i[Ue].init.apply(this,arguments),e.defaultEmphasis(t.label,[X,"show",te,"distance",O])},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",map:"",roamDetail:{x:0,y:0,zoom:1},label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}}},getFormattedLabel:function(t,e){var i=this.get("label."+e+".formatter"),n={name:t};return typeof i===ce?(n.status=e,i(n)):typeof i===Xe?i[pe]("{a}",n.seriesName):void 0},setRoamZoom:function(t){var e=this[F].roamDetail;e&&(e.zoom=t)},setRoamPan:function(t,e){var i=this[F].roamDetail;i&&(i.x=t,i.y=e)}})}),e("echarts/coord/geo/Geo",[ti,"./parseGeoJson",Qe,L,"../View","./fix/nanhai","./fix/textCoord","./fix/geoCoord"],function(t){function e(t,e,i,n,r){a.call(this,t),this.map=e,this._nameCoordMap={},this.loadGeoJson(i,n,r)}var i=t("./parseGeoJson"),n=t(Qe),r=t(L),a=t("../View"),o=[t("./fix/nanhai"),t("./fix/textCoord"),t("./fix/geoCoord")];return e[Ue]={constructor:e,type:"geo",dimensions:["lng","lat"],loadGeoJson:function(t,e,r){try{this.regions=t?i(t):[]}catch(a){throw"Invalid geoJson format\n"+a}e=e||{},r=r||{};for(var s=this.regions,l={},u=0;u<s[Pe];u++){var c=s[u].name;c=r[c]||c,s[u].name=c,l[c]=s[u],this.addGeoCoord(c,s[u][U]);var h=e[c];h&&s[u].transformTo(h.left,h.top,h.width,h[Ee])}this._regionsMap=l,this._rect=null,n.each(o,function(t){t(this)},this)},transformTo:function(t,e,i,n){var a=this[J]();a=a.clone(),a.y=-a.y-a[Ee];var o=this._viewTransform;o[Ke]=a.calculateTransform(new r(t,e,i,n)),o.decomposeTransform();var s=o.scale;s[1]=-s[1],o.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap[t]},addGeoCoord:function(t,e){this._nameCoordMap[t]=e},getGeoCoord:function(t){return this._nameCoordMap[t]},getBoundingRect:function(){if(this._rect)return this._rect;for(var t,e=this.regions,i=0;i<e[Pe];i++){var n=e[i][J]();t=t||n.clone(),t.union(n)}return this._rect=t||new r(0,0,0,0)},dataToPoints:function(t){var e=[];return t[l](["lng","lat"],function(t,i){return e[0]=t,e[1]=i,this[p](e)},this)},dataToPoint:function(t){return typeof t===Xe&&(t=this.getGeoCoord(t)),t?a[Ue][p].call(this,t):void 0}},n.mixin(e,a),e}),e("zrender/core/PathProxy",[ti,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),i=t("./vector"),n=t("./bbox"),r=t("./BoundingRect"),a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o=[],s=[],l=[],u=[],c=Math.min,h=Math.max,d=Math.cos,f=Math.sin,p=Math.sqrt,v=typeof Float32Array!=b,m=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return m[Ue]={constructor:m,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(a.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(a.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,i,n,r,o){return this.addData(a.C,t,e,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(a.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,o){return this.addData(a.A,t,e,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=d(r)*i+t,this._xi=f(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(a.R,t,e,i,n),this},closePath:function(){this.addData(a.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[z](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[Pe];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[Pe];this.data&&this.data[Pe]==e||!v||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[Pe],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();v&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[Pe];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[Pe]>e[Pe]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[Pe];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,d=t-l,f=e-u,v=p(d*d+f*f),m=l,g=u,y=o[Pe];for(d/=v,f/=v,0>a&&(a=r+a),a%=r,m-=a*d,g-=a*f;d>=0&&t>=m||0>d&&m>t;)n=this._dashIdx,i=o[n],m+=d*i,g+=f*i,this._dashIdx=(n+1)%y,d>0&&l>m||0>d&&m>l||s[n%2?"moveTo":"lineTo"](d>=0?c(m,t):h(m,t),f>=0?c(g,e):h(g,e));d=m-t,f=g-e,this._dashOffset=-p(d*d+f*f)},_dashedBezierTo:function(t,i,n,r,a,o){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,v=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,x=e.cubicAt,_=0,w=this._dashIdx,b=v[Pe],M=0;for(0>f&&(f=d+f),f%=d,s=0;1>s;s+=.1)l=x(g,t,n,a,s+.1)-x(g,t,n,a,s),u=x(y,i,r,o,s+.1)-x(y,i,r,o,s),_+=p(l*l+u*u);for(;b>w&&(M+=v[w],!(M>f));w++);for(s=(M-f)/_;1>=s;)c=x(g,t,n,a,s),h=x(y,i,r,o,s),w%2?m.moveTo(c,h):m.lineTo(c,h),s+=v[w]/_,w=(w+1)%b;w%2!==0&&m.lineTo(a,o),l=a-c,u=o-h,this._dashOffset=-p(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[Pe]=this._len,v&&(this.data=new Float32Array(t)))},getBoundingRect:function(){o[0]=o[1]=l[0]=l[1]=Number.MAX_VALUE,s[0]=s[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,c=0,h=0,p=0,v=0;v<t[Pe];){var m=t[v++];switch(1==v&&(e=t[v],c=t[v+1],h=e,p=c),m){case a.M:h=t[v++],p=t[v++],e=h,c=p,l[0]=h,l[1]=p,u[0]=h,u[1]=p;break;case a.L:n.fromLine(e,c,t[v],t[v+1],l,u),e=t[v++],c=t[v++];break;case a.C:n.fromCubic(e,c,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],l,u),e=t[v++],c=t[v++];break;case a.Q:n.fromQuadratic(e,c,t[v++],t[v++],t[v],t[v+1],l,u),e=t[v++],c=t[v++];break;case a.A:var g=t[v++],y=t[v++],x=t[v++],_=t[v++],w=t[v++],b=t[v++]+w,M=(t[v++],1-t[v++]);1==v&&(h=d(w)*x+g,p=f(w)*_+y),n.fromArc(g,y,x,_,w,b,M,l,u),e=d(b)*x+g,c=f(b)*_+y;break;case a.R:h=e=t[v++],p=c=t[v++];var S=t[v++],T=t[v++];n.fromLine(h,p,h+S,p+T,l,u);break;case a.Z:e=h,c=p}i.min(o,o,l),i.max(s,s,u)}return 0===v&&(o[0]=o[1]=s[0]=s[1]=0),new r(o[0],o[1],s[0]-o[0],s[1]-o[1])},rebuildPath:function(t){for(var e=this.data,i=0;i<this._len;){var n=e[i++];switch(n){case a.M:t.moveTo(e[i++],e[i++]);break;case a.L:t.lineTo(e[i++],e[i++]);break;case a.C:t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case a.Q:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case a.A:var r=e[i++],o=e[i++],s=e[i++],l=e[i++],u=e[i++],c=e[i++],h=e[i++],d=e[i++],f=s>l?s:l,p=s>l?1:s/l,v=s>l?l/s:1,m=Math.abs(s-l)>.001;m?(t.translate(r,o),t.rotate(h),t.scale(p,v),t.arc(0,0,f,u,u+c,1-d),t.scale(1/p,1/v),t.rotate(-h),t.translate(-r,-o)):t.arc(r,o,f,u,u+c,1-d);break;case a.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case a.Z:t.closePath()}}}},m.CMD=a,m}),e("zrender/contain/text",[ti,w,"../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[Pe];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return l>u&&(l=0,s={}),l++,s[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[Pe],o=e(t,i),s=e("国",i),l=a*s,u=new h(0,0,o,l);switch(u.lineHeight=s,r){case Be:case"alphabetic":u.y-=s;break;case Y:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case U:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[Ee],s=e.width,l=i[Ee],u=o/2-l/2,c="left";switch(t){case"left":r-=n,a+=u,c="right";break;case"right":r+=n+s,a+=u,c="left";break;case"top":r+=s/2,a-=n+l,c=U;break;case Be:r+=s/2,a+=o+n,c=U;break;case C:r+=s/2,a+=u,c=U;break;case"insideLeft":r+=n,a+=u,c="left";break;case"insideRight":r+=s-n,a+=u,c="right";break;case"insideTop":r+=s/2,a+=n,c=U;break;case"insideBottom":r+=s/2,a+=o-l-n,c=U;break;case"insideTopLeft":r+=n,a+=n,c="left";break;case"insideTopRight":r+=s-n,a+=n,c="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=c[Le]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var o=(t+"").split("\n"),s=0,l=o[Pe];l>s;s++)o[s]=a(o[s],i,n,r);return o.join("\n")}function a(t,i,n,r){for(var a=0;;a++){var s=e(t,i);if(n>s||a>=r.maxIterations){t+=r.ellipsis;break}var l=0===a?o(t,n,r):Math.floor(t[Pe]*n/s);if(l<r.minCharacters){t="";break}t=t.substr(0,l)}return t}function o(t,e,i){for(var n=0,r=0,a=t[Pe];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var s={},l=0,u=5e3,c=t(w),h=t("../core/BoundingRect"),d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=c.getContext();return i.font=e,i.measureText(t)}};return d}),e("zrender/graphic/mixin/RectText",[ti,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===Xe?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[Ke](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),a=t("../../core/BoundingRect"),o=new a,s=function(){};return s[Ue]={constructor:s,drawRectText:function(t,a,s){var l=this.style,u=l.text;if(null!=u&&(u+=""),u){var c,h,d=l.textPosition,f=l.textDistance,p=l[Q],v=l.textFont||l.font,m=l[r];s=s||n[J](u,v,p,m);var g=this[Ke],y=this.invTransform;if(g&&(o.copy(a),o[P](g),a=o,i(t,y)),d instanceof Array)c=a.x+e(d[0],a.width),h=a.y+e(d[1],a[Ee]),p=p||"left",m=m||"top";else{var x=n.adjustTextPositionOnRect(d,a,s,f);c=x.x,h=x.y,p=p||x[Q],m=m||x[r]}t[Q]=p,t[r]=m;var _=l.textFill,w=l.textStroke;_&&(t.fillStyle=_),w&&(t.strokeStyle=w),t.font=v,t.shadowColor=l.textShadowColor,t.shadowBlur=l.textShadowBlur,t.shadowOffsetX=l.textShadowOffsetX,t.shadowOffsetY=l.textShadowOffsetY;for(var b=u.split("\n"),M=0;M<b[Pe];M++)_&&t.fillText(b[M],c,h),w&&t.strokeText(b[M],c,h),h+=s.lineHeight;g&&i(t,g)}}},s}),e("zrender/graphic/Displayable",[ti,w,"./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style),this._rect=null,this.__clipPaths=[]}var i=t(w),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[Ue]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[J]();return n[H](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?r[Ue].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[ae](e,r),i.mixin(e,a),e}),e("zrender/vml/core",[ti,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[Ze]){var n,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),n=function(t){return o[M]("<zrvml:"+t+' class="zrvml">')}}catch(l){n=function(t){return o[M]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.styleSheets;t[Pe]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:u,createNode:n}}}),e("echarts/util/clazz",[ti,Qe],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[Ue][e].apply(t,i)}function i(t,e,i){return this.superClass[Ue][e].apply(t,i)}var n=t(Qe),r={},a=".",s="___EC__COMPONENT__CONTAINER___",l=r.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return r.enableClassExtend=function(t,r){t[De]=function(a){var s=function(){r&&r.apply(this,arguments),t.apply(this,arguments)};return n[De](s[Ue],a),s[De]=this[De],s.superCall=e,s[o]=i,n[ae](s,this),s.superClass=this,s}},r.enableClassManagement=function(t,e){function i(t){var e=r[t.main];return e&&e[s]||(e=r[t.main]={},e[s]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=l(e),e.sub){if(e.sub!==s){var n=i(e);n[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists");r[e.main]=t}return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[s]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists");return n},t.getClassesByMainType=function(t){t=l(t);var e=[],i=r[t.main];return i&&i[s]?n.each(i,function(t,i){i!==s&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=l(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=l(t);var e=r[t.main];return e&&e[s]},t.parseClassType=l,e.registerWhenExtend){var a=t[De];a&&(t[De]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/lineStyle",[ti,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[A,"width"],[z,"color"],[q],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[ti,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[q],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[ti,"zrender/contain/text"],function(t){function e(t,e){return t&&t.getShallow(e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[E];return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[E],i=t&&t[qe](te);return[this.getShallow("fontStyle")||e(i,"fontStyle"),this.getShallow("fontWeight")||e(i,"fontWeight"),(this.getShallow("fontSize")||e(i,"fontSize")||12)+"px",this.getShallow("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(te)||{};return i[J](t,this[$](),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this[$](),e,n)}}}),e("echarts/model/mixin/itemStyle",[ti,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[z,"borderColor"],[A,"borderWidth"],[q],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}
- }),e("echarts/coord/axisHelper",[ti,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale",W,Qe,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t(W),a=t(Qe),o=t("zrender/contain/text"),s={};return s.niceScaleExtent=function(t,e){var i=t.scale,n=i[Z](),o=n[1]-n[0];if(i.type===m)return void(isFinite(o)||i.setExtent(0,0));var s=e.get("min"),l=e.get("max"),u=!e.get("scale"),c=e.get("boundaryGap");a[fe](c)||(c=[c||0,c||0]),c[0]=r[x](c[0],1),c[1]=r[x](c[1],1);var h=!0,d=!0;null==s&&(s=n[0]-c[0]*o,h=!1),null==l&&(l=n[1]+c[1]*o,d=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),u&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!d&&(l=0)),i.setExtent(s,l),i.niceExtent(e.get("splitNumber"),h,d);var f=e.get("interval");null!=f&&i.setInterval&&i.setInterval(f)},s.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case g:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[Oe](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[Z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},s.getAxisLabelInterval=function(t,e,i,n){var r,a=0,s=0,l=1;e[Pe]>40&&(l=Math.round(e[Pe]/40));for(var u=0;u<t[Pe];u+=l){var c=t[u],h=o[J](e[u],i,U,"top");h[n?"x":"y"]+=c,h[n?"width":Ee]*=1.5,r?r.intersect(h)?(s++,a=Math.max(a,s)):(r.union(h),s=0):r=h.clone()}return 0===a&&l>1?l:a*l},s.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===Xe?(e=function(t){return function(e){return t[pe]("{value}",e)}}(e),a.map(n,e)):typeof e===ce?a.map(r,function(n,r){return e(t.type===g?i.getLabel(n):n,r)},this):n},s}),e("echarts/coord/cartesian/Cartesian2D",[ti,Qe,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(Qe),n=t("./Cartesian");return e[Ue]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(m)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[H](e.toLocalCoord(t[0]))&&i[H](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t[l](["x","y"],function(t,e){return this[p]([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[ae](e,n),e}),e("echarts/coord/cartesian/Axis2D",[ti,Qe,"../Axis","./axisLabelInterval"],function(t){var e=t(Qe),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[X]=a||Be};return r[Ue]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[X];return"top"===t||t===Be},getGlobalExtent:function(){var t=this[Z]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if(this.type===g){var e=this.getLabelInterval();return typeof e===ce&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[ae](r,i),r}),e("echarts/coord/cartesian/GridModel",[ti,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[De]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("zrender/tool/transformPath",[ti,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d,f=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,x=i.Q;for(u=0,c=0;u<f[Pe];){switch(n=f[u++],c=u,l=0,n){case p:l=1;break;case m:l=1;break;case v:l=3;break;case x:l=2;break;case y:var _=e[4],w=e[5],b=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),S=s(-e[1]/M,e[0]/b);f[u++]+=_,f[u++]+=w,f[u++]*=b,f[u++]*=M,f[u++]+=S,f[u++]+=S,u+=2,c=u;break;case g:d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1],d[0]+=f[u++],d[1]+=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}for(h=0;l>h;h++){var d=a[h];d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[P],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/contain/path",[ti,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=x[0];x[0]=x[1],x[1]=t}function n(t,e,n,r,a,o,s,l,u,c){if(c>e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,v=0,m=-1,g=0;h>g;g++){var _=y[g],w=f.cubicAt(t,n,a,s,_);u>w||(0>m&&(m=f.cubicExtrema(e,r,o,l,x),x[1]<x[0]&&m>1&&i(),d=f.cubicAt(e,r,o,l,x[0]),m>1&&(p=f.cubicAt(e,r,o,l,x[1]))),v+=2==m?_<x[0]?e>d?1:-1:_<x[1]?d>p?1:-1:p>l?1:-1:_<x[0]?e>d?1:-1:d>l?1:-1)}return v}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f.quadraticAt(e,n,a,u),d=0;l>d;d++){var p=f.quadraticAt(t,i,r,y[d]);p>o||(c+=y[d]<u?e>h?1:-1:h>a?1:-1)}return c}var p=f.quadraticAt(t,i,r,y[0]);return p>o?0:e>a?1:-1}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%m){n=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=m);for(var h=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var v=Math.atan2(s,p),c=a?1:-1;0>v&&(v=m+v),(v>=n&&r>=v||v+m>=n&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,m=0,g=0,y=0,x=0,_=0;_<t[Pe];){var w=t[_++];if(w===s.M&&_>1&&(o||(f+=p(m,g,y,x,l,d)),0!==f))return!0;switch(1==_&&(m=t[_],g=t[_+1],y=m,x=g),w){case s.M:y=t[_++],x=t[_++],m=y,g=x;break;case s.L:if(o){if(v(m,g,t[_],t[_+1],i,l,d))return!0}else f+=p(m,g,t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.C:if(o){if(u.containStroke(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.Q:if(o){if(c.containStroke(m,g,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(m,g,t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.A:var b=t[_++],M=t[_++],S=t[_++],T=t[_++],C=t[_++],z=t[_++],A=(t[_++],1-t[_++]),P=Math.cos(C)*S+b,L=Math.sin(C)*T+M;_>1?f+=p(m,g,P,L,l,d):(y=P,x=L);var k=(l-b)*T/S+b;if(o){if(h.containStroke(b,M,T,C,C+z,A,i,k,d))return!0}else f+=a(b,M,T,C,C+z,A,k,d);m=Math.cos(C+z)*S+b,g=Math.sin(C+z)*T+M;break;case s.R:y=m=t[_++],x=g=t[_++];var D=t[_++],I=t[_++],P=y+D,L=x+I;if(o){if(v(y,x,P,x,i,l,d)||v(P,x,P,L,i,l,d)||v(P,L,y,L,i,l,d)||v(y,L,P,L,i,l,d))return!0}else f+=p(P,x,P,L,l,d),f+=p(y,L,y,x,l,d);break;case s.Z:if(o){if(v(m,g,y,x,i,l,d))return!0}else if(f+=p(m,g,y,x,l,d),0!==f)return!0;m=y,g=x}}return o||e(g,x)||(f+=p(m,g,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/core/curve",[ti,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*h*f;if(e(m)){var g=d/h,v=-l/s+g,_=-g/2;v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_)}else if(m>0){var M=x(m),S=h*l+1.5*s*(-d+M),T=h*l+1.5*s*(-d-M);S=0>S?-y(-S,b):y(S,b),T=0>T?-y(-T,b):y(T,b);var v=(-l-(S+T))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),z=Math.acos(C)/3,A=x(h),P=Math.cos(z),v=(-l-2*A*P)/(3*s),_=(-l+A*(P+w*Math.sin(z)))/(3*s),L=(-l+A*(P-w*Math.sin(z)))/(3*s);v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_),L>=0&&1>=L&&(o[p++]=L)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var d=s*s-4*l*u;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=x(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var d,f,p,v,m,y=.005,w=1/0;M[0]=u,M[1]=c;for(var b=0;1>b;b+=.05)S[0]=n(t,i,a,s,b),S[1]=n(e,r,o,l,b),v=g(M,S),w>v&&(d=b,w=v);w=1/0;for(var C=0;32>C&&!(_>y);C++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,M),f>=0&&w>v?(d=f,w=v):(T[0]=n(t,i,a,s,p),T[1]=n(e,r,o,l,p),m=g(T,M),1>=p&&w>m?(d=p,w=m):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),x(w)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=x(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var c,h=.005,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){S[0]=u(t,i,r,f),S[1]=u(e,n,a,f);var p=g(M,S);d>p&&(c=f,d=p)}d=1/0;for(var v=0;32>v&&!(_>h);v++){var m=c-h,y=c+h;S[0]=u(t,i,r,m),S[1]=u(e,n,a,m);var p=g(S,M);if(m>=0&&d>p)c=m,d=p;else{T[0]=u(t,i,r,y),T[1]=u(e,n,a,y);var w=g(T,M);1>=y&&d>w?(c=y,d=w):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),x(d)}var v=t("./vector"),m=v[Oe],g=v.distSquare,y=Math.pow,x=Math.sqrt,_=1e-4,w=x(3),b=1/3,M=m(),S=m(),T=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[ti,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[Oe](),u=e[Oe](),c=e[Oe](),h=2*Math.PI;return n.fromPoints=function(t,e,i){if(0!==t[Pe]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[Pe];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)},n.fromCubic=function(t,e,n,o,s,l,u,c,h,d){var f,p,v,m,g,y=[],x=[],_=i.cubicExtrema,w=i.cubicAt,b=_(t,n,s,u,y);for(g=0;b>g;g++)y[g]=w(t,n,s,u,y[g]);for(b=_(e,o,l,c,x),g=0;b>g;g++)x[g]=w(e,o,l,c,x[g]);y.push(t,u),x.push(e,c),f=r.apply(null,y),p=a.apply(null,y),v=r.apply(null,x),m=a.apply(null,x),h[0]=f,h[1]=v,d[0]=p,d[1]=m},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,d=i.quadraticAt,f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=d(t,n,s,f),m=d(e,o,l,p);u[0]=r(t,s,v),u[1]=r(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,d,f,p,v){var m=e.min,g=e.max,y=Math.abs(a-d);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,m(p,l,u),g(v,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var x=d;d=a,a=x}for(var _=0;d>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*n+t,c[1]=o(_)*r+i,m(p,c,p),g(v,c,v))},n}),e("zrender/graphic/Style",[ti],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[Ue]={constructor:e,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(e,i){for(var n=this.fill,r=this[z],a=0;a<t[Pe];a++){var o=t[a];null!=this[o]&&(e[o]=this[o])}if(null!=r){var s=this[A];e[A]=s/(this.strokeNoScale&&i&&i.getLineScale?i.getLineScale():1)}null!=n&&(e.fillStyle=n.canvasGradient?n.canvasGradient:n),null!=r&&(e.strokeStyle=r.canvasGradient?r.canvasGradient:r),null!=this[q]&&(e.globalAlpha=this[q])},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===Xe?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};var i,n,r=e[Ue];for(n=0;n<t[Pe];n++)i=t[n],i in r||(r[i]=null);return e}),e("zrender/Element",[ti,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),n=t("./mixin/Eventful"),r=t("./mixin/Transformable"),a=t("./mixin/Animatable"),o=t("./core/util"),s=function(t){r.call(this,t),n.call(this,t),a.call(this,t),this.id=t.id||e()};return s[Ue]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case i:e=0;break;case"vertical":t=0}var n=this[Ke];n||(n=this[Ke]=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===X||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[Ge]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[Ge]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===Xe)this.attrKV(t,e);else if(o[Re](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[Pe];i++)t[T].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[Pe];i++)t[T].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},o.mixin(s,a),o.mixin(s,r),o.mixin(s,n),s}),e("echarts/component/visualMap",[ti,"./visualMapContinuous","./visualMapPiecewise"],function(t){t("./visualMapContinuous"),t("./visualMapPiecewise")}),e("echarts/component/toolbox",[ti,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("echarts/model/mixin/makeStyleMapper",[ti,Qe],function(t){var e=t(Qe);return function(t){for(var i=0;i<t[Pe];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[Pe];r++){var a=t[r][1];if(!(i&&e[de](i,a)>=0)){var o=this.getShallow(a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("echarts/scale/Ordinal",[ti,Qe,"./Scale"],function(t){var e=t(Qe),i=t("./Scale"),n=i[Ue],r=i[De]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[Pe]-1]},parse:function(t){return typeof t===Xe?e[de](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[H].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[Oe]=function(){return new r},r}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Transformable",[ti,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,o=function(t){t=t||{},t[X]||(this[X]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[Ue];s[Ke]=null,s.needLocalTransform=function(){return e(this.rotation)||e(this[X][0])||e(this[X][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this[S],e=t&&t[Ke],n=this.needLocalTransform(),a=this[Ke];return n||e?(a=a||i[Oe](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t[Ke],a):i.copy(a,t[Ke])),this[Ke]=a,this.invTransform=this.invTransform||i[Oe](),void i.invert(this.invTransform,a)):void(a&&r(a))},s.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,o=this[X];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},s.setTransform=function(t){var e=this[Ke];e&&t[Ke](e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return s.decomposeTransform=function(){if(this[Ke]){var t=this[S],n=this[Ke];t&&t[Ke]&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[X],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),o[0]=n[4],o[1]=n[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-n[1]/a,n[0]/r)}},s.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[P](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[Ke];return r&&n[P](i,i,r),i},o}),e("zrender/mixin/Animatable",[ti,"../animation/Animator",w,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(w),n=i[re],r=i.isFunction,a=i[Re],o=t("../core/log"),s=function(){this.animators=[]};return s[Ue]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var u=t.split("."),c=s;a="shape"===u[0];for(var h=0,d=u[Pe];d>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){f[Se](i[de](f,p),1)}),f.push(p),l&&l[T].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[Pe],n=0;i>n;n++)e[n].stop(t);return e[Pe]=0,this},animateTo:function(t,e,i,a,o){function s(){u--,u||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),u=l[Pe];u||o&&o();for(var c=0;c<l[Pe];c++)l[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var u in n)if(null!=e[u])a(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,o):(s[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/util/component",[ti,Qe,"./clazz"],function(t){var e=t(Qe),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),u=l.originalDeps=i(s),c=a(u,t);l.entryCount=c[Pe],0===l.entryCount&&o.push(s),e.each(c,function(t){e[de](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[de](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[de](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[Pe]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[Pe];){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(a,d,f.originalDeps.slice()),delete h[d]),e.each(f.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[ti],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(Be),width:this.get("width"),height:this.get(Ee)}}}}),e("echarts/coord/cartesian/Cartesian",[ti,Qe],function(t){function e(t){return this._axes[t]}var i=t(Qe),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[Ue]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[Ye](),i[Je](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[Pe];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/animation/Animator",[ti,"./Clip","../tool/color",w],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[Pe];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][Pe],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=n(t[s][u],e[s][u],i)}function o(t,e,i){var n=t[Pe],r=e[Pe];if(n!==r){var a=n>r;if(a)t[Pe]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}}function s(t,e,i){if(t===e)return!0;var n=t[Pe];if(n!==e[Pe])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][Pe],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var c=t[Pe];if(1==l)for(var h=0;c>h;h++)s[h]=u(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][Pe],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function c(t){if(m(t)){var e=t[Pe];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,c,d){var v=t._getter,g=t._setter,y="spline"===e,x=c[Pe];if(x){var _,w=c[0].value,b=m(w),M=!1,S=!1,T=b&&m(w[0])?2:1;c.sort(function(t,e){return t.time-e.time}),_=c[x-1].time;for(var C=[],z=[],A=c[0].value,P=!0,L=0;x>L;L++){C.push(c[L].time/_);var k=c[L].value;if(b&&s(k,A,T)||!b&&k===A||(P=!1),A=k,typeof k==Xe){var D=p.parse(k);D?(k=D,M=!0):S=!0}z.push(k)}if(!P){if(b){for(var I=z[x-1],L=0;x-1>L;L++)o(z[L],I,T);o(v(t._target,d),I,T)}var R,V,O,E,B,G,N=0,F=0;if(M)var Z=[0,0,0,0];var H=function(t,e){var i;if(F>e){for(R=Math.min(N+1,x-1),i=R;i>=0&&!(C[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=N;x>i&&!(C[i]>e);i++);i=Math.min(i-1,x-2)}N=i,F=e;var o=C[i+1]-C[i];if(0!==o)if(V=(e-C[i])/o,y)if(E=z[i],O=z[0===i?i:i-1],B=z[i>x-2?x-1:i+1],G=z[i>x-3?x-1:i+2],b)l(O,E,B,G,V,V*V,V*V*V,v(t,d),T);else{var s;if(M)s=l(O,E,B,G,V,V*V,V*V*V,Z,1),s=h(Z);else{if(S)return r(E,B,V);s=u(O,E,B,G,V,V*V,V*V*V)}g(t,d,s)}else if(b)a(z[i],z[i+1],V,v(t,d),T);else{var s;if(M)a(z[i],z[i+1],V,Z,1),s=h(Z);else{if(S)return r(z[i],z[i+1],V);s=n(z[i],z[i+1],V)}g(t,d,s)}},W=new f({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:H,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var f=t("./Clip"),p=t("../tool/color"),v=t(w),m=v.isArrayLike,g=Array[Ue].slice,y=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y[Ue]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:c(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[Pe]=0;for(var t=this._doneList,e=t[Pe],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[T]&&this[T].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;n<i._onframeList[Pe];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[T],n=0;n<e[Pe];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[Pe]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("zrender/core/log",[ti,"../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),e("echarts/coord/geo/parseGeoJson",[ti,Qe,"./Region"],function(t){function e(t){if(!t.UTF8Encoding)return t;for(var e=t.features,n=0;n<e[Pe];n++)for(var r=e[n],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,l=0;l<o[Pe];l++){var u=o[l];if("Polygon"===a.type)o[l]=i(u,s[l]);else if("MultiPolygon"===a.type)for(var c=0;c<u[Pe];c++){var h=u[c];u[c]=i(h,s[l][c])}}return t.UTF8Encoding=!1,t}function i(t,e){for(var i=[],n=e[0],r=e[1],a=0;a<t[Pe];a+=2){var o=t.charCodeAt(a)-64,s=t.charCodeAt(a+1)-64;o=o>>1^-(1&o),s=s>>1^-(1&s),o+=n,s+=r,n=o,r=s,i.push([o/1024,s/1024])}return i}function n(t){for(var e=[],i=0;i<t[Pe];i++)for(var n=0;n<t[i][Pe];n++)e.push(t[i][n]);return e}var r=t(Qe),a=t("./Region");return function(t){return e(t),r.map(r[Je](t.features,function(t){return t.geometry&&t.properties}),function(t){var e=t.properties,i=t.geometry,r=i.coordinates;return"MultiPolygon"===i.type&&(r=n(r)),new a(e.name,r,e.cp)})}}),e("echarts/coord/View",[ti,$e,"zrender/core/matrix","zrender/mixin/Transformable",Qe,L],function(t){function e(){a.call(this)}function i(t){this.name=t,a.call(this),this._roamTransform=new e,this._viewTransform=new e}var n=t($e),r=t("zrender/core/matrix"),a=t("zrender/mixin/Transformable"),o=t(Qe),s=t(L),l=n[P];return o.mixin(e,a),i[Ue]={constructor:i,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new s(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new s(t,e,i,n)},transformTo:function(t,e,i,n){var r=this[J](),a=this._viewTransform;a[Ke]=r.calculateTransform(new s(t,e,i,n)),a.decomposeTransform(),this._updateTransform()},setPan:function(t,e){this._roamTransform[X]=[t,e],this._updateTransform()},setZoom:function(t){this._roamTransform.scale=[t,t],this._updateTransform()},getRoamTransform:function(){return this._roamTransform[Ke]},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e[S]=t,t.updateTransform(),e.updateTransform(),e[Ke]&&r.copy(this[Ke]||(this[Ke]=[]),e[Ke]),this.decomposeTransform()},getViewRect:function(){return this._viewRect},dataToPoint:function(t){var e=this[Ke];return e?l([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this.invTransform;return e?l([],t,e):[t[0],t[1]]}},o.mixin(i,a),i}),e("echarts/coord/geo/fix/nanhai",[ti,"../Region"],function(t){for(var e=t("../Region"),i=[126,25],n=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],r=0;r<n[Pe];r++)for(var a=0;a<n[r][Pe];a++)n[r][a][0]/=10.5,n[r][a][1]/=-14,n[r][a][0]+=i[0],n[r][a][1]+=i[1];return function(t){"china"===t.map&&t.regions.push(new e("南海诸岛",n,i))}}),e("echarts/coord/geo/fix/textCoord",[ti,Qe],function(t){var e=t(Qe),i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};return function(t){e.each(t.regions,function(t){var e=i[t.name];if(e){var n=t[U];n[0]+=e[0]/10.5,n[1]+=-e[1]/14}})}}),e("echarts/coord/geo/fix/geoCoord",[ti,Qe],function(t){var e=t(Qe),i={Russia:[100,60],"United States of America":[-99,38]};return function(t){e.each(t.regions,function(t){var e=i[t.name];if(e){var n=t[U];n[0]=e[0],n[1]=e[1]}})}}),e("echarts/coord/Axis",[ti,W,Qe],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t(W),n=i.linearMap,r=t(Qe),a=[0,1],o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[Ue]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[H](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[Z](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type===m&&(r=r.slice(),e(r,o.count())),n(t,a,r,i)},coordToData:function(t,i){var r=this._extent,o=this.scale;this.onBand&&o.type===m&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t[Pe];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[Pe];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[Z](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[Z](),i=e[1]-e[0]+(this.onBand?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},o}),e("echarts/coord/cartesian/axisLabelInterval",[ti,Qe,"../axisHelper"],function(t){var e=t(Qe),i=t("../axisHelper");return function(t){var n=t.model,r=n[qe]("axisLabel"),a=r.get("interval");return t.type!==g||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[qe](te)[$](),t.isHorizontal())}}),e("zrender/animation/Clip",[ti,"./easing"],function(t){function e(t){this._target=t[_e],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart
- }var i=t("./easing");return e[Ue]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==Xe?i[n]:n,a=typeof r===ce?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/geo/Region",[ti,"zrender/contain/polygon",L,"zrender/core/bbox",$e],function(t){function e(t,e,i){if(this.name=t,this.contours=e,i)i=[i[0],i[1]];else{var n=this[J]();i=[n.x+n.width/2,n.y+n[Ee]/2]}this[U]=i}var i=t("zrender/contain/polygon"),n=t(L),r=t("zrender/core/bbox"),a=t($e);return e[Ue]={constructor:e,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],o=[-e,-e],s=[],l=[],u=this.contours,c=0;c<u[Pe];c++)r.fromPoints(u[c],s,l),a.min(i,i,s),a.max(o,o,l);return 0===c&&(i[0]=i[1]=o[0]=o[1]=0),this._rect=new n(i[0],i[1],o[0]-i[0],o[1]-i[1])},contain:function(t){var e=this[J](),n=this.contours;if(e[H](t[0],t[1]))for(var r=0,a=n[Pe];a>r;r++)if(i[H](n[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,i,r){var o=this[J](),s=o.width/o[Ee];i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),u=o.calculateTransform(l),c=this.contours,h=0;h<c[Pe];h++)for(var d=0;d<c[h][Pe];d++)a[P](c[h][d],c[h][d],u);o=this._rect,o.copy(l),this[U]=[o.x+o.width/2,o.y+o[Ee]/2]}},e}),e("echarts/coord/cartesian/AxisModel",[ti,"../../model/Component",Qe,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?g:"value")}var i=t("../../model/Component"),n=t(Qe),r=t("../axisModelCreator"),a=i[De]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[F].scale=!t},setMin:function(t){this[F].min=t},setMax:function(t){this[F].max=t}});n.merge(a[Ue],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/contain/polygon",[ti,"./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<r}function i(t,i,r){var a=0,o=t[0];if(!o)return!1;for(var s=1;s<t[Pe];s++){var l=t[s];a+=n(o[0],o[1],l[0],l[1],i,r),o=l}var u=t[0];return e(o[0],u[0])&&e(o[1],u[1])||(a+=n(o[0],o[1],u[0],u[1],i,r)),0!==a}var n=t("./windingLine"),r=1e-8;return{contain:i}}),e("echarts/coord/axisModelCreator",[ti,"./axisDefault",Qe,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(Qe),n=t("../model/Component"),r=t("../util/layout"),a=["value",g,"time","log"];return function(t,o,s,l){i.each(a,function(n){o[De]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},u=a.getTheme();i.merge(e,u.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[ti,Qe,"./axisHelper"],function(t){function e(t){return r[Re](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===g&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(Qe),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("zrender/config",[],function(){var t=1;typeof window!==b&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e),l=s*(i-t)+t;return l>r?o:0}}),e("echarts/coord/axisDefault",[ti,Qe],function(t){var e=t(Qe),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[Le]({boundaryGap:[0,0],splitNumber:5},i),a=e[Le]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[Le]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[ti,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>i+d&&h>r+d&&h>o+d&&h>l+d||i-d>h&&r-d>h&&o-d>h&&l-d>h||c>t+d&&c>n+d&&c>a+d&&c>s+d||t-d>c&&n-d>c&&a-d>c&&s-d>c)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return d/2>=f}}}),e("zrender/contain/quadratic",[ti,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/arc",[ti,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var d=Math.sqrt(u*u+c*c);if(d-h>r||r>d+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(c,u);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/util",[ti],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/graphic/helper/roundRect",[ti],function(){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,l=e.width,u=e[Ee],c=e.r;0>l&&(o+=l,l=-l),0>u&&(s+=u,u=-u),typeof c===oe?i=n=r=a=c:c instanceof Array?1===c[Pe]?i=n=r=a=c[0]:2===c[Pe]?(i=r=c[0],n=a=c[1]):3===c[Pe]?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0;var h;i+n>l&&(h=i+n,i*=l/h,n*=l/h),r+a>l&&(h=r+a,r*=l/h,a*=l/h),n+r>u&&(h=n+r,n*=u/h,r*=u/h),i+a>u&&(h=i+a,i*=u/h,a*=u/h),t.moveTo(o+i,s),t.lineTo(o+l-n,s),0!==n&&t.quadraticCurveTo(o+l,s,o+l,s+n),t.lineTo(o+l,s+u-r),0!==r&&t.quadraticCurveTo(o+l,s+u,o+l-r,s+u),t.lineTo(o+a,s+u),0!==a&&t.quadraticCurveTo(o,s+u,o,s+u-a),t.lineTo(o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/core/LRU",[ti],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[Ue];e.insert=function(t){var e=new i(t);return this.insertEntry(e),e},e.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},e[Ie]=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=n[Ue];return r.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i[Ie](a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i[Ie](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/chart/helper/createListFromArray",[ti,"../../data/List","../../data/helper/completeDimensions",Qe,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[Pe]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!c[fe](f(i))}function n(t,e,n){t=t||[];var r=e.get(ie),a=y[r],u=d.get(r),c=a&&a(t,e,n),h=c&&c[v];h||(h=u&&u[v]||["x","y"],h=l(h,t,h[G](["value"])));var g=c&&c.categoryAxisModel,x=h[0].type===m?0:h[1].type===m?1:-1,_=new s(h,e),w=o(c,t),b=g&&i(t)?function(t,e,i,n){return n===x?i:p(f(t),h[n])}:function(t,e,i,n){var r=f(t);return p(r&&r[n],h[n])};return _.initData(t,w,b),_}function r(t){return t!==g&&"time"!==t}function a(t){return t===g?m:"time"===t?"time":"float"}function o(t,e){var i=[];if(t&&t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[Pe];if(c[fe](e[0])&&e[0][Pe]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][0]]}else i=n.slice(0)}}return i}var s=t("../../data/List"),l=t("../../data/helper/completeDimensions"),c=t(Qe),h=t("../../util/model"),d=t("../../CoordinateSystem"),f=h.getDataItemValue,p=h.converDataValue,y={cartesian2d:function(t,e,i){var n=i[B]("xAxis",e.get("xAxisIndex")),o=i[B]("yAxis",e.get("yAxisIndex")),s=n.get("type"),u=o.get("type"),c=[{name:"x",type:a(s),stackable:r(s)},{name:"y",type:a(u),stackable:r(u)}];return l(c,t,["x","y","z"]),{dimensions:c,categoryAxisModel:s===g?n:u===g?o:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,o=function(t){return t.get("polarIndex")===n},s=i.findComponents({mainType:"angleAxis",filter:o})[0],c=i.findComponents({mainType:"radiusAxis",filter:o})[0],h=c.get("type"),d=s.get("type"),f=[{name:"radius",type:a(h),stackable:r(h)},{name:"angle",type:a(d),stackable:r(d)}];return l(f,t,[u,"angle","value"]),{dimensions:f,categoryAxisModel:d===g?s:h===g?c:null}},geo:function(t){return{dimensions:l([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("zrender/graphic/helper/poly",[ti,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n.points,o=n.smooth;if(a&&a[Pe]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a[Pe],u=0;(r?l:l-1)>u;u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=e(a,r)),t.moveTo(a[0][0],a[0][1]);for(var u=1,f=a[Pe];f>u;u++)t.lineTo(a[u][0],a[u][1])}r&&t.closePath()}}}}),e("zrender/Handler",[ti,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[_e],a,r.event)}}function n(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=m[G](g),n=0;n<i[Pe];n++){var r=i[n];t._handlers[r]=h.bind(b[r],t)}for(var n=0;n<v[Pe];n++){var r=v[n];t._handlers[r]=e(b[r],t)}}function r(t,e,i){if(t[t.rectHover?"rectContain":H](e,i)){for(var n=t[S];n;){if(n.clipPath&&!n.clipPath[H](e,i))return!1;n=n[S]}return!0}return!1}function a(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function o(){return!1}function s(){return u.touchEventsSupported}function l(t){return"mousewheel"===t&&u.firefox?"DOMMouseScroll":t}var u=t("./core/env"),c=t("./core/event"),h=t("./core/util"),d=t("./mixin/Draggable"),f=t("./core/GestureMgr"),p=t("./mixin/Eventful"),v=["click","dblclick","mousewheel",we];!o()&&v.push("mouseup","mousedown","mousemove");var m=["touchstart","touchend","touchmove"],g=["pointerdown","pointerup","pointermove"],y=300,x=c.addEventListener,_=c.removeEventListener,w=c.normalizeEvent,b={mousemove:function(t){t=w(this.root,t);var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,we,t),this._dispatchProxy(n,"mousemove",t),n&&n!==r&&this._dispatchProxy(n,be,t)},mouseout:function(t){t=w(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,we,t),this[Ae]("globalout",{event:t})},touchstart:function(t){t=w(this.root,t),this._lastTouchMoment=new Date,i(this,t,"start"),b.mousemove.call(this,t),b.mousedown.call(this,t),a(this)},touchmove:function(t){t=w(this.root,t),i(this,t,"change"),b.mousemove.call(this,t),a(this)},touchend:function(t){t=w(this.root,t),i(this,t,"end"),b.mouseup.call(this,t),+new Date-this._lastTouchMoment<y&&b.click.call(this,t),a(this)}};h.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){b[t]=function(e){e=w(this.root,e);var i=this.findHover(e.zrX,e.zrY,null);this._dispatchProxy(i,t,e)}});var M=function(t,e,i){function r(e,i){h.each(e,function(e){x(t,l(e),i._handlers[e])},i)}p.call(this),this.root=t,this.storage=e,this.painter=i,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new f,this._handlers=[],this._touching=!1,this._touchTimer,n(this),o()?r(g,this):s()&&r(m,this),r(v,this),d.call(this)};return M[Ue]={constructor:M,resize:function(){this._hovered=null},dispatch:function(t,e){var i=this._handlers[t];i&&i.call(this,e)},dispose:function(){for(var t=this.root,e=v[G](m),i=0;i<e[Pe];i++){var n=e[i];_(t,l(n),this._handlers[n])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[Ae](i,a),o=o[S],!a.cancelBubble););a.cancelBubble||(this[Ae](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==ce&&t[r].call(t,a),t[Ae]&&t[Ae](i,a)}))},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a=n[Pe]-1;a>=0;a--)if(!n[a].silent&&n[a]!==i&&r(n[a],t,e))return n[a]}},h.mixin(M,p),h.mixin(M,d),M}),e("zrender/Storage",[ti,"./core/util","./container/Group"],function(t){function e(t,e){return t[me]===e[me]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[me]-e[me]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[Ue]={constructor:r,getDisplayList:function(t){return t&&this.updateDisplayList(),this._displayList},updateDisplayList:function(){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t[Pe];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[Pe]=this._displayListLen;for(var n=0,r=i[Pe];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[Ge]){t.beforeUpdate(),t[Ve](),t.afterUpdate();var i=t.clipPath;if(i&&(i[S]=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;r<n[Pe];r++){var a=n[r];a.__dirty=t.__dirty||a.__dirty,this._updateAndAddDisplayable(a,e)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof n&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[Pe];e++){var r=this._roots[e];r instanceof n&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[Pe];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==Xe?this._elements[t]:t;var s=i[de](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[Se](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/animation/Animation",[ti,w,"../core/event","./Animator"],function(t){var e=t(w),i=t("../core/event").Dispatcher,n=typeof window!==b&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[Ue]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[T]=this;for(var e=t.getClips(),i=0;i<e[Pe];i++)this.addClip(e[i])},removeClip:function(t){var i=e[de](this._clips,t);i>=0&&this._clips[Se](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[Pe];i++)this.removeClip(e[i]);t[T]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[Pe],r=[],a=[],o=0;n>o;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[Pe];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[Ae]("frame",e),this.stage[Ve]&&this.stage[Ve]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Painter",[ti,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[je]!==ce||typeof t.refresh!==ce?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return f.copy(t[J]()),t[Ke]&&f[P](t[Ke]),p.width=e,p[Ee]=i,!f.intersect(p)}function o(t,e){if(!t||!e||t[Pe]!==e[Pe])return!0;for(var i=0;i<t[Pe];i++)if(t[i]!==e[i])return!0}function s(t,e){for(var i=0;i<t[Pe];i++){var n,r=t[i];r[Ke]&&(n=r[Ke],e[Ke](n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r[Ke]&&(n=r.invTransform,e[Ke](n[0],n[1],n[2],n[3],n[4],n[5]))}}var l=t("./config"),u=t("./core/util"),c=t("./core/log"),h=t("./core/BoundingRect"),d=t("./Layer"),f=new h(0,0,0,0),p=new h(0,0,0,0),v=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||l.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,n){var a=t.width,o=t[Ee];this._width=a,this._height=o;var s=new d(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var a=this._getWidth(),o=this._getHeight();this._width=a,this._height=o;var u=document[M]("div");this._domRoot=u;var c=u.style;c[X]="relative",c.overflow="hidden",c.width=this._width+"px",c[Ee]=this._height+"px",t.appendChild(u),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return v[Ue]={constructor:v,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[Pe];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,l,u,h=this._width,d=this._height;this.eachBuildinLayer(n);for(var f=null,p=0,v=t[Pe];v>p;p++){var m=t[p],g=this._singleCanvas?0:m[me];if(l!==g&&(l=g,i=this.getLayer(l),i.isBuildin||c("ZLevel "+l+" has been used by unkown layer "+i.id),u=i.ctx,i.__unusedCount=0,(i.__dirty||e)&&i.clear()),(i.__dirty||e)&&!m.invisible&&0!==m.style[q]&&m.scale[0]&&m.scale[1]&&(!m.culling||!a(m,h,d))){var y=m.__clipPaths;o(y,f)&&(f&&u.restore(),y&&(u.save(),s(y,u)),f=y),m.beforeBrush&&m.beforeBrush(u),m.brush(u,!1),m.afterBrush&&m.afterBrush(u)}m.__dirty=!1}f&&u.restore(),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new d("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&u.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[Pe],o=null,s=-1,l=this._domRoot;if(n[t])return void c("ZLevel "+t+" has been used already");if(!i(e))return void c("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=n[r[s]]}if(r[Se](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[Pe];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[Pe];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[Pe];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t[Pe];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[me],s=e[o];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=a.__dirty}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?u.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&u.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[Se](u[de](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[Ee]=e+"px";for(var n in this._layers)this._layers[n][je](t,e);this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new d("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t[Fe],e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n[Pe];r++){var a=n[r];a.invisible||(a.beforeBrush&&a.beforeBrush(i),a.brush(i,!1),a.afterBrush&&a.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[Ee])||e(t.style[Ee]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[M]("canvas"),s=o.getContext("2d");o.width=n*a,o[Ee]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[X],rotation:i.rotation,scale:i.scale};i[X]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[X]&&(c[X]=i[X]=l[X]),null!=l.rotation&&(c.rotation=i.rotation=l.rotation),null!=l.scale&&(c.scale=i.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},v}),e("echarts/component/visualMapPiecewise",[ti,"../echarts","./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/PiecewiseModel","./visualMap/PiecewiseView","./visualMap/visualMapAction"],function(t){t("../echarts").registerPreprocessor(t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/PiecewiseModel"),t("./visualMap/PiecewiseView"),t("./visualMap/visualMapAction")}),e("echarts/component/toolbox/ToolboxModel",[ti,"./featureManager",Qe,d],function(t){var e=t("./featureManager"),i=t(Qe),n=t(d).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(){n[o](this,"mergeDefaultAndTheme",arguments),i.each(this[F].feature,function(t,n){var r=e.get(n);r&&i.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});return n}),e("echarts/component/toolbox/ToolboxView",[ti,"./featureManager",Qe,f,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text",d],function(t){function e(t){return 0===t[de]("my")}var i=t("./featureManager"),n=t(Qe),r=t(f),a=t("../../model/Model"),o=t("../../data/DataDiffer"),s=t("../helper/listComponent"),l=t("zrender/contain/text");return t(d)[le]({type:"toolbox",render:function(t,u,c){function h(n,r){var o,s=g[n],l=g[r],h=v[s],f=new a(h,t,t[E]);if(s&&!l){if(e(s))o={model:f,onclick:f[F].onclick,featureName:s};else{var p=i.get(s);if(!p)return;o=new p(f)}m[s]=o}else{if(o=m[l],!o)return;o.model=f}return!s&&l?void(o[Te]&&o[Te](u,c)):!f.get("show")||o.unusable?void(o[Ie]&&o[Ie](u,c)):(d(f,o,s),f.setIconStatus=function(t,e){var i=this[F],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][Ae](e)},void(o.render&&o.render(f,u,c)))}function d(e,i,a){var o=e[qe]("iconStyle"),s=i.getIcons?i.getIcons():e.get("icon"),l=e.get("title")||{};if(typeof s===Xe){var h=s,d=l;s={},l={},s[a]=h,l[a]=d}var v=e.iconPaths={};n.each(s,function(a,s){var h=o[qe](D)[ee](),d=o[qe](I)[ee](),m={x:-p/2,y:-p/2,width:p,height:p},g=0===a[de]("image://")?(m.image=a.slice(8),new r.Image({style:m})):r.makePath(a[pe]("path://",""),{style:h,hoverStyle:d,rectHover:!0},m,U);r.setHoverStyle(g),t.get("showTitle")&&(g.__title=l[s],g.on(be,function(){g[j]({text:l[s],textPosition:d.textPosition||Be,textFill:d.fill||d[z]||"#000",textAlign:d[Q]||U})}).on(we,function(){g[j]({textFill:null})})),g[Ae](e.get("iconStatus."+s)||D),f.add(g),g.on("click",n.bind(i.onclick,i,u,c,s)),v[s]=g})}var f=this.group;if(f[ne](),t.get("show")){var p=+t.get("itemSize"),v=t.get("feature")||{},m=this._features||(this._features={}),g=[];n.each(v,function(t,e){g.push(e)}),new o(this._featureNames||[],g).add(h)[Ve](h)[Ie](n.curry(h,null)).execute(),this._featureNames=g,s.layout(f,t,c),s.addBackground(f,t),f.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=l[J](e,i.font),r=t[X][0]+f[X][0],a=t[X][1]+f[X][1]+p,o=!1;a+n[Ee]>c[He]()&&(i.textPosition="top",o=!0);var s=o?-5-n[Ee]:p+8;r+n.width/2>c[We]()?(i.textPosition=["100%",s],i[Q]="right"):r-n.width/2<0&&(i.textPosition=[0,s],i[Q]="left")}})}},remove:function(t,e){n.each(this._features,function(i){i[Ie]&&i[Ie](t,e)}),this.group[ne]()},dispose:function(t,e){n.each(this._features,function(i){i[Te]&&i[Te](t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[ti,"zrender/core/env","../featureManager"],function(t){function e(t){this.model=t}var i=t("zrender/core/env");e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},e[Ue].unusable=!i[Ze];var n=e[Ue];return n.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r=document[M]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[_e]="_blank";var o=e.getConnectedDataURL({type:a,backgroundColor:i.get(Fe,!0)||t.get(Fe)||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=o,typeof MouseEvent===ce){var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(s)}else{var l=i.get("lang"),u='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>',c=window.open();c.document.write(u)}},t("../featureManager")[ue]("saveAsImage",e),e}),e("echarts/data/List",[ti,"../model/Model","./DataDiffer",Qe,"../util/model"],function(t){function e(t){return f[fe](t)||(t=[t]),t}function i(t,e){var i=t[v],n=new w(f.map(i,t.getDimensionInfo,t),t.hostModel);x(n,t,t._wrappedMethods);for(var r=n._storage={},a=t._storage,o=0;o<i[Pe];o++){var s=i[o],l=a[s];r[s]=f[de](e,s)>=0?new l.constructor(a[s][Pe]):a[s]}return n}var n=b,r=typeof window===b?global:window,a=typeof r.Float64Array===n?Array:r.Float64Array,o=typeof r.Int32Array===n?Array:r.Int32Array,s={"float":a,"int":o,ordinal:Array,number:Array,time:Array},u=t("../model/Model"),d=t("./DataDiffer"),f=t(Qe),p=t("../util/model"),g=f[Re],y=["stackedOn","_nameList","_idList","_rawData"],x=function(t,e,i){f.each(y[G](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},w=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[Pe];r++){var a,o={};typeof t[r]===Xe?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||oe),n.push(a),i[a]=o}this[v]=n,this._dimensionInfos=i,this.hostModel=e,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent
- },M=w[Ue];M.type="list",M.getDimension=function(t){return isNaN(t)||(t=this[v][t]||t),t},M.getDimensionInfo=function(t){return f.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[v],o=t[Pe],l=this._dimensionInfos,u=[],c={};e=e||[];for(var h=0;h<a[Pe];h++){var d=l[a[h]],m=s[d.type];n[a[h]]=new m(o)}i=i||function(t,e,i,n){var r=p.getDataItemValue(t);return p.converDataValue(f[fe](r)?r[n]:r,l[e])};for(var g=0;g<t[Pe];g++){for(var y=t[g],x=0;x<a[Pe];x++){var _=a[x],w=n[_];w[g]=i(y,_,g,x)}r.push(g)}for(var h=0;h<t[Pe];h++){var b="";e[h]||(e[h]=t[h].name,b=t[h].id);var M=e[h]||"";!b&&M&&(c[M]=c[M]||0,b=M,c[M]>0&&(b+="__ec__"+c[M]),c[M]++),b&&(u[h]=b)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[Pe]},M.get=function(t,e,i){var n=this._storage,r=this.indices[e],a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var n=[];f[fe](t)||(i=e,e=t,t=this[v]);for(var r=0,a=t[Pe];a>r;r++)n.push(this.get(t[r],e,i));return n},M.hasValue=function(t){for(var e=this[v],i=this._dimensionInfos,n=0,r=e[Pe];r>n;n++)if(i[e[n]].type!==m&&isNaN(this.get(e[n],t)))return!1;return!0},M.getDataExtent=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},M[de]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[Pe];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[Pe];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},M.indexOfNearest=function(t,e,i){var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=this.count();l>s;s++){var u=Math.abs(this.get(t,s,i)-e);a>=u&&(a=u,o=s)}return o}return-1},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M[R]=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,n,r){typeof t===ce&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=t[Pe],s=this.indices;r=r||this;for(var l=0;l<s[Pe];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},M.filterSelf=function(t,i,n,r){typeof t===ce&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[Pe],l=this.indices;r=r||this;for(var u=0;u<l[Pe];u++){var c;if(1===s)c=i.call(r,this.get(t[0],u,n),u);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],u,n);o[h]=u,c=i.apply(r,o)}c&&a.push(l[u])}return this.indices=a,this._extent={},this},M[l]=function(t,e,i,n){typeof t===ce&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},M.map=function(t,n,r,a){t=f.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[Pe]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===oe&&(u[0]=i,i=u);for(var r=0;r<i[Pe];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=i[r])}}},r,a),o},M.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],d=Math.floor(1/e),f=s[t],p=this.count(),v=0;v<o[t][Pe];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=d){d>p-v&&(d=p-v,c[Pe]=d);for(var m=0;d>m;m++){var g=l[v+m];c[m]=f[g],h[m]=g}var y=n(c),g=h[r(c,y)||0];f[g]=y,u.push(g)}return a},M[_]=function(t){var e=this.hostModel;return t=this.indices[t],new u(this._rawData[t],e,e[E])},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new d(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},M.getVisual=function(t){var e=this._visual;return e&&e[t]},M.setVisual=function(t,e){if(g(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},M.setLayout=function(t,e){if(g(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},M.getLayout=function(t){return this._layout[t]},M[h]=function(t){return this._itemLayouts[t]},M.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[De](this._itemLayouts[t]||{},e):e},M[c]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},M.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,g(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var S=function(t){t[ye]=this[ye],t[xe]=this[xe]};return M.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[xe]=t,e[ye]=i&&i[ye],"group"===e.type&&e[ve](S,e)),this._graphicEls[t]=e},M[k]=function(t){return this._graphicEls[t]},M.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},M.cloneShallow=function(){var t=f.map(this[v],this.getDimensionInfo,this),e=new w(t,this.hostModel);return e._storage=this._storage,x(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},M.wrapMethod=function(t,e){var i=this[t];typeof i===ce&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},w}),e("echarts/data/helper/completeDimensions",[ti,Qe],function(t){function e(t,e,a){if(!e)return t;var o=n(e[0]),s=r[fe](o)&&o[Pe]||1;a=a||[];for(var l=0;s>l;l++)if(!t[l]){var u=a[l]||"extra"+(l-a[Pe]);t[l]=i(e,l)?{type:"ordinal",name:u}:u}return t}function i(t,e){for(var i=0,a=t[Pe];a>i;i++){var o=n(t[i]);if(!r[fe](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r[re](o)&&"-"!==o)return!0}return!1}function n(t){return r[fe](t)?t:r[Re](t)?t.value:t}var r=t(Qe);return e}),e("zrender/graphic/helper/smoothSpline",[ti,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[Pe],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(u[0],v[0],c[0],h[0],p,m,g),e(u[1],v[1],c[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[ti,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,d,f,p=[],v=[],m=[],g=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,x=t[Pe];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,u[0]),n(f,f,u[1])}for(var y=0,x=t[Pe];x>y;y++){var _=t[y];if(l)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(v,h,c),r(v,v,s);var w=a(_,c),b=a(_,h),M=w+b;0!==M&&(w/=M,b/=M),r(m,v,-w),r(g,v,b);var S=o([],_,m),T=o([],_,g);u&&(n(S,S,d),i(S,S,f),n(T,T,d),i(T,T,f)),p.push(S),p.push(T)}return l&&p.push(p.shift()),p}}),e("zrender/core/event",[ti,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[de]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=e(t);i.zrX=i.clientX-s.left,i.zrY=i.clientY-s.top,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){o?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){o?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),o=typeof window!==b&&!!window.addEventListener,s=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:r,stop:s,Dispatcher:a}}),e("zrender/mixin/Draggable",[ti],function(){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[Ue]={constructor:t,_dragStart:function(t){var e=t[_e];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("zrender/core/GestureMgr",[ti],function(){function t(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var i=function(){this._track=[]};i[Ue]={constructor:i,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[Pe]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[Pe];a>r;r++){var o=i[r];n.points.push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in n)if(n.hasOwnProperty(e)){var i=n[e](this._track,t);if(i)return i}}};var n={pinch:function(i,n){var r=i[Pe];if(r){var a=(i[r-1]||{}).points,o=(i[r-2]||{}).points||a;if(o&&o[Pe]>1&&a&&a[Pe]>1){var s=t(a)/t(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=e(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:i[0][_e],event:n}}}}};return i}),e("echarts/component/toolbox/feature/MagicType",[ti,Qe,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(Qe);e.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=e[Ue];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")):void 0},stack:function(t,e){return"line"===t||"bar"===t?{id:e,stack:"__ec_magicType_stack__"}:void 0},tiled:function(t,e){return"line"===t||"bar"===t?{id:e,stack:""}:void 0}},a=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var o=this.model,s=o.get("seriesIndex."+n);if(r[n]){var l={series:[]},u=function(t){var e=t.subType,a=t.id,s=r[n](e,a,t,o);s&&(i[Le](s,t[F]),l[Ce].push(s))};i.each(a,function(t){i[de](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,D)})}),o.setIconStatus(n,I),t[Ne]({mainType:"series",seriesIndex:s},u),e[ke]({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o[he]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[N](t.newOption)}),t("../featureManager")[ue]("magicType",e),e}),e("echarts/component/visualMapContinuous",[ti,"../echarts","./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/ContinuousModel","./visualMap/ContinuousView","./visualMap/visualMapAction"],function(t){t("../echarts").registerPreprocessor(t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/ContinuousModel"),t("./visualMap/ContinuousView"),t("./visualMap/visualMapAction")}),e("echarts/data/DataDiffer",[ti],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i){for(var n=0;n<t[Pe];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[Pe]||(e[r]=a=[a]),a.push(n))}}return e[Ue]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={};for(i(e,o,r),i(n,s,a),t=0;t<e[Pe];t++){var l=r(e[t]),u=s[l];if(null!=u){var c=u[Pe];c?(1===c&&(s[l]=null),u=u.unshift()):s[l]=null,this._update&&this._update(u,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if(null==u)continue;if(u[Pe])for(var t=0,c=u[Pe];c>t;t++)this._add&&this._add(u[t]);else this._add&&this._add(u)}}},e}),e("echarts/component/axis/AxisView",[ti,Qe,f,"./AxisBuilder",d],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t[ie],r=e.axis,a={},o=r[X],s=r.onZero?"onZero":o,l=r.dim,u=n.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u[Ee]],h={x:{top:c[2],bottom:c[3]},y:{left:c[0],right:c[1]}};h.x.onZero=Math.max(Math.min(i("y"),h.x[Be]),h.x.top),h.y.onZero=Math.max(Math.min(i("x"),h.y.right),h.y.left),a[X]=["y"===l?h.y[s]:c[0],"x"===l?h.x[s]:c[3]];var d={x:0,y:1};a.rotation=Math.PI/2*d[l];var f={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],r.onZero&&(a.labelOffset=h[l][o]-h[l].onZero),e[qe]("axisTick").get(C)&&(a.tickDirection=-a.tickDirection),e[qe]("axisLabel").get(C)&&(a.labelDirection=-a.labelDirection);var p=e[qe]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(Qe),n=t(f),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"],u=t(d)[le]({type:"axis",render:function(t,n){if(this.group[ne](),t.get("show")){var a=n[B]("grid",t.get("gridIndex")),o=e(a,t),u=new r(t,o);i.each(s,u.add,u),this.group.add(u.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,i){var r=t.axis,s=t[qe]("splitLine"),l=s[qe]("lineStyle"),u=l.get("width"),c=l.get("color"),h=o(s,i);c=c instanceof Array?c:[c];for(var d=e[ie].getRect(),f=r.isHorizontal(),p=[],v=0,m=r.getTicksCoords(),g=[],y=[],x=0;x<m[Pe];x++)if(!a(r,x,h)){var _=r.toGlobalCoord(m[x]);f?(g[0]=_,g[1]=d.y,y[0]=_,y[1]=d.y+d[Ee]):(g[0]=d.x,g[1]=_,y[0]=d.x+d.width,y[1]=_);var w=v++%c[Pe];p[w]=p[w]||[],p[w].push(new n.Line(n.subPixelOptimizeLine({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:{lineWidth:u},silent:!0})))}for(var x=0;x<p[Pe];x++)this.group.add(n.mergePath(p[x],{style:{stroke:c[x%c[Pe]],lineDash:l.getLineDash(),lineWidth:u},silent:!0}))},_splitArea:function(t,e,i){var r=t.axis,s=t[qe]("splitArea"),l=s.get("areaStyle.color"),u=e[ie].getRect(),c=r.getTicksCoords(),h=r.toGlobalCoord(c[0]),d=r.toGlobalCoord(c[0]),f=[],p=0,v=o(s,i);l=l instanceof Array?l:[l];for(var m=1;m<c[Pe];m++)if(!a(r,m,v)){var g,y,x,_,w=r.toGlobalCoord(c[m]);r.isHorizontal()?(g=h,y=u.y,x=w-g,_=u[Ee]):(g=u.x,y=d,x=u.width,_=w-y);var b=p++%l[Pe];f[b]=f[b]||[],f[b].push(new n.Rect({shape:{x:g,y:y,width:x,height:_},silent:!0})),h=g+x,d=y+_}for(var m=0;m<f[Pe];m++)this.group.add(n.mergePath(f[m],{style:{fill:l[m%l[Pe]]},silent:!0}))}});u[De]({type:"xAxis"}),u[De]({type:"yAxis"})}),e("zrender/Layer",[ti,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[M](e),a=i[We](),o=i[He](),s=r.style;return s[X]="absolute",s.left=0,s.top=0,s.width=a+"px",s[Ee]=o+"px",r.width=a*n,r[Ee]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===Xe?s=i(t,"canvas",a,o):n[Re](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return a[Ue]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[Ee]=e+"px",n.width=t*i,n[Ee]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[Ee]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[Ee],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i.restore()),o){var u=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(u,0,0,n/l,r/l),i.restore()}}},a}),e("echarts/chart/bar/barItemStyle",[ti,"../../model/mixin/makeStyleMapper"],function(t){return{getBarItemStyle:t("../../model/mixin/makeStyleMapper")([["fill","color"],[z,"barBorderColor"],[A,"barBorderWidth"],[q],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/component/axis/AxisBuilder",[ti,Qe,f,"../../model/Model",n],function(t){function e(t,e,i){var n,r,a=u(e-t.rotation);return c(a)?(r=i>0?"top":Be,n=U):c(a-h)?(r=i>0?Be:"top",n=U):(r=Y,n=a>0&&h>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}}function i(t,e,i){var n,r,a=u(-t.rotation),o=i[0]>i[1],s="start"===e&&!o||"start"!==e&&o;return c(a-h/2)?(r=s?Be:"top",n=U):c(a-1.5*h)?(r=s?"top":Be,n=U):(r=Y,n=1.5*h>a&&a>h/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var a=t(Qe),o=t(f),s=t("../../model/Model"),l=t(n),u=l.remRadian,c=l.isRadianAroundZero,h=Math.PI,d=function(t,e){this.opt=e,this.axisModel=t,a[Le](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new o.Group({position:e[X].slice(),rotation:e.rotation})};d[Ue]={constructor:d,hasBuilder:function(t){return!!p[t]},add:function(t){p[t].call(this)},getGroup:function(){return this.group}};var p={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[Z]();this.group.add(new o.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:a[De]({lineCap:"round"},e[qe]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.silent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[qe]("axisTick"),n=this.opt,r=i[qe]("lineStyle"),a=i.get(Pe),s=y(i,n.labelInterval),l=e.getTicksCoords(),u=[],c=0;c<l[Pe];c++)if(!v(e,c,s)){var h=l[c];u.push(new o.Line(o.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:n.tickDirection*a},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(o.mergePath(u,{style:r.getLineStyle(),silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[J]().clone(),n=e&&e[J]().clone();return i&&n?(i[P](t.getLocalTransform()),n[P](e.getLocalTransform()),i.intersect(n)):void 0}var i=this.axisModel;if(i.get("axisLabel.show")){var n=this.opt,a=i.axis,l=i[qe]("axisLabel"),u=l[qe](te),c=l.get("margin"),d=a.scale.getTicks(),f=i.getFormattedLabels(),p=n.labelRotation;null==p&&(p=l.get("rotate")||0),p=p*h/180;for(var m=e(n,p,n.labelDirection),y=i.get("data"),x=[],_=0;_<d[Pe];_++)if(!v(a,_,n.labelInterval)){var w=u;y&&y[_]&&y[_][te]&&(w=new s(y[_][te],u,i[E]));var b=a.dataToCoord(d[_]),M=[b,n.labelOffset+n.labelDirection*c],S=new o.Text({style:{text:f[_],textAlign:w.get("align",!0)||m[Q],textBaseline:w.get("baseline",!0)||m[r],textFont:w[$](),fill:w[K]()},position:M,rotation:m.rotation,silent:!0,z2:10});x.push(S),this.group.add(S)}if(a.type!==g){if(i.get("min")){var T=x[0],C=x[1];t(T,C)&&(T[Ge]=!0)}if(i.get("max")){var z=x[x[Pe]-1],A=x[x[Pe]-2];t(A,z)&&(z[Ge]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,a=this.opt.axisName;if(null==a&&(a=n.get("name")),a){var s,l=n.get("nameLocation"),u=t.nameDirection,c=n[qe]("nameTextStyle"),h=n.get("nameGap")||0,d=this.axisModel.axis[Z](),f=d[0]>d[1]?-1:1,p=["start"===l?d[0]-f*h:"end"===l?d[1]+f*h:(d[0]+d[1])/2,l===Y?t.labelOffset+u*h:0];s=l===Y?e(t,t.rotation,u):i(t,l,d),this.group.add(new o.Text({style:{text:a,textFont:c[$](),fill:c[K]()||n.get("axisLine.lineStyle.color"),textAlign:s[Q],textBaseline:s[r]},position:p,rotation:s.rotation,silent:!0,z2:1}))}}},v=d.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===m&&(typeof i===ce?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},y=d.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return d}),e("echarts/preprocessor/helper/compatStyle",[ti,Qe],function(t){function e(t){var e=t&&t[se];e&&i.each(n,function(n){var r=e[D],a=e[I];r&&r[n]&&(t[n]=t[n]||{},t[n][D]?i.merge(t[n][D],r[n]):t[n][D]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][I]?i.merge(t[n][I],a[n]):t[n][I]=a[n],a[n]=null)})}var i=t(Qe),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){e(t);var n=t.data;if(n){for(var r=0;r<n[Pe];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[Pe];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[Pe];r++)i[fe](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}),e("echarts/component/toolbox/feature/DataView",[ti,Qe,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[ie];if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r[V]();if(a.type===g){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][Ce].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return f.each(t,function(t){var i=t.categoryAxis,n=t.valueAxis,r=n.dim,a=[" "][G](f.map(t[Ce],function(t){return t.name})),o=[i.model.getCategories()];f.each(t[Ce],function(t){o.push(t.getRawData()[l](r,function(t){return t}))});for(var s=[a.join(y)],u=0;u<o[0][Pe];u++){for(var c=[],h=0;h<o[Pe];h++)c.push(o[h][u]);s.push(c.join(y))}e.push(s.join("\n"))}),e.join("\n\n"+m+"\n\n")}function n(t){return f.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e[v],function(){for(var t=arguments[Pe],r=arguments[t-1],a=e[R](r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+y:"")+n.join(y))}),i.join("\n")}).join("\n\n"+m+"\n\n")}function r(t){var r=e(t);return{value:f[Je]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[pe](/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:r.meta}}function a(t){return t[pe](/^\s\s*/,"")[pe](/\s\s*$/,"")}function o(t){var e=t.slice(0,t[de]("\n"));return e[de](y)>=0?!0:void 0}function s(t){for(var e=t.split(/\n+/g),i=a(e.shift()).split(x),n=[],r=f.map(i,function(t){return{name:t,data:[]}}),o=0;o<e[Pe];o++){var s=a(e[o]).split(x);n.push(s.shift());for(var l=0;l<s[Pe];l++)r[l]&&(r[l].data[o]=s[l])}return{series:r,categories:n}}function u(t){for(var e=t.split(/\n+/g),i=a(e.shift()),n=[],r=0;r<e[Pe];r++){var o,s=a(e[r]).split(x),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},o=n[r].value):o=n[r]=[];for(var c=0;c<s[Pe];c++)o.push(+s[c]);1===o[Pe]&&(u?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function c(t,e){var i=t.split(new RegExp("\n*"+m+"\n*","g")),n={series:[]};return f.each(i,function(t,i){if(o(t)){var r=s(t),a=e[i],l=a.axisDim+"Axis";a&&(n[l]=n[l]||[],n[l][a.axisIndex]={data:r.categories},n[Ce]=n[Ce][G](r[Ce]))}else{var r=u(t);n[Ce].push(r)}}),n}function h(t){this._dom=null,this.model=t}function d(t,e){return f.map(t,function(t,i){var n=e&&e[i];return f[Re](n)&&!f[fe](n)?(f[Re](t)&&!f[fe](t)&&(t=t.value),f[Le]({value:t},n)):t})}var f=t(Qe),p=t("zrender/core/event"),m=new Array(60).join("-"),y=" ",x=new RegExp("["+y+"]+","g");return h.defaultOption={show:!0,readOnly:!1,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h[Ue].onclick=function(t,e){function i(){n.removeChild(o),x._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document[M]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style[Fe]=a.get(Fe)||"#fff";var s=document[M]("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=a.get("textColor");var u=document[M]("textarea");u.style.cssText="display:block;width:100%;font-size:14px;line-height:1.6rem;font-family:Monaco,Consolas,Courier new,monospace",u.readOnly=a.get("readOnly"),u.style.color=a.get("textColor"),u.style.borderColor=a.get("textareaBorderColor"),u.style[Fe]=a.get("textareaColor");var h=r(t);u.value=h.value;var d=h.meta,f=document[M]("div");f.style.cssText="position:absolute;bottom:0;left:0;right:0;";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document[M]("div"),g=document[M]("div");v+=";background-color:"+a.get("buttonColor"),v+=";color:"+a.get("buttonTextColor");var x=this;p.addEventListener(m,"click",i),p.addEventListener(g,"click",function(){var t;try{t=c(u.value,d)}catch(n){throw i(),new Error("Data view format error "+n)}e[ke]({type:"changeDataView",newOption:t}),i()}),m.innerHTML=l[1],g.innerHTML=l[2],g.style.cssText=v,m.style.cssText=v,f.appendChild(g),f.appendChild(m),p.addEventListener(u,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+y+e.substring(n),this.selectionStart=this.selectionEnd=i+1,p.stop(t)}}),o.appendChild(s),o.appendChild(u),o.appendChild(f),u.style[Ee]=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},h[Ue][Ie]=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},h[Ue][Te]=function(t,e){this[Ie](t,e)},t("../featureManager")[ue]("dataView",h),t("../../../echarts")[he]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];f.each(t.newOption[Ce],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:d(t.data,r)})}else i.push(f[De]({type:"scatter"},t))}),e[N](f[Le]({series:i},t.newOption))}),h}),e("echarts/component/toolbox/feature/Restore",[ti,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=e[Ue];return n.onclick=function(t,e){i.clear(t),e[ke]({type:"restore",from:this.uid})},t("../featureManager")[ue]("restore",e),t("../../../echarts")[he]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/component/toolbox/feature/DataZoom",[ti,Qe,"../../../util/number","../../helper/SelectController",L,"zrender/container/Group","../../dataZoom/history","../../helper/interactionMutex","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t){this.model=t,this._controllerGroup,this._controller,this._isZoomActive}function i(t,e){var i=[{axisModel:t.getAxis("x").model,axisIndex:0},{axisModel:t.getAxis("y").model,axisIndex:0}];return i.grid=t,e[Ne]({mainType:"dataZoom",subType:"select"},function(t){n("xAxis",i[0].axisModel,t,e)&&(i[0].dataZoomModel=t),n("yAxis",i[1].axisModel,t,e)&&(i[1].dataZoomModel=t)}),i}function n(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n[B](t,r)===e}function r(t,e){var i=e.grid,n=new h(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n.intersect(i.getRect())){var r=i.getCartesian(e[0].axisIndex,e[1].axisIndex),a=r.pointToData([t[0][0],t[1][0]],!0),o=r.pointToData([t[0][1],t[1][1]],!0);return[m([a[0],o[0]]),m([a[1],o[1]])]}}function o(t,e,i){var n=e[i],r=n.dataZoomModel;return r?{dataZoomId:r.id,startValue:t[i][0],endValue:t[i][1]}:void 0}function s(t,e){t.setIconStatus("back",f.count(e)>1?I:D)}var l=t(Qe),u=t("../../../util/number"),c=t("../../helper/SelectController"),h=t(L),d=t("zrender/container/Group"),f=t("../../dataZoom/history"),p=t("../../helper/interactionMutex"),v=l.each,m=u.asc;t("../../dataZoomSelect");var g="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var y=e[Ue];y.render=function(t,e){s(t,e)},y.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new d,e.getZr().add(n)),x[i].call(this,n,this.model,t,e)},y[Ie]=function(t,e){this._disposeController(),p.release("globalPan",e.getZr())},y[Te]=function(t,e){var i=e.getZr();p.release("globalPan",i),this._disposeController(),this._controllerGroup&&i[Ie](this._controllerGroup)};var x={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,a=n.getZr();p[r?"take":"release"]("globalPan",a),e.setIconStatus("zoom",r?I:D),r?(a.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(a.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(f.pop(i),n)}};return y._createController=function(t,e,i,n){var r=this._controller=new c("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",l.bind(this._onSelected,this,r,e,i,n)),r.enable(t,!1)},y._disposeController=function(){var t=this._controller;t&&(t.off(a),t[Te]())},y._onSelected=function(t,e,n,a,s){if(s[Pe]){var l=s[0];t[Ve]();var u={};n[Ne]("grid",function(t){var e=t[ie],a=i(e,n),s=r(l,a);if(s){var c=o(s,a,0,"x"),h=o(s,a,1,"y");c&&(u[c.dataZoomId]=c),h&&(u[h.dataZoomId]=h)}},this),f.push(n,u),this._dispatchAction(u,a)}},y._dispatchAction=function(t,e){var i=[];v(t,function(t){i.push(t)}),i[Pe]&&e[ke]({type:"dataZoom",from:this.uid,batch:l.clone(i,!0)})},t("../featureManager")[ue]("dataZoom",e),t("../../../echarts").registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",a=e[r];null==a||l[fe](a)||(a=a===!1?[]:[a]),i(t,function(e,i){if(null==a||-1!==l[de](a,i)){var o={type:"select",$fromToolbox:!0,id:g+t+i};o[r]=i,n.push(o)}})}}function i(e,i){var n=t[e];l[fe](n)||(n=n?[n]:[]),v(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);l[fe](n)||(n=[n]);
- var r=t.toolbox;if(r&&(l[fe](r)&&(r=r[0]),r&&r.feature)){var a=r.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}}),e}),e("echarts/chart/helper/SymbolDraw",[ti,f,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[h](e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t[c](e,s))}var n=t(f),r=t("./Symbol"),a=e[Ue];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t[h](n);if(i(t,n,e)){var o=new s(t,n);o.attr(X,a),t.setItemGraphicEl(n,o),r.add(o)}})[Ve](function(l,u){var c=o[k](u),d=t[h](l);return i(t,l,e)?(c?(c.updateData(t,l),n.updateProps(c,{position:d},a)):(c=new s(t,l),c.attr(X,d)),r.add(c),void t.setItemGraphicEl(l,c)):void r[Ie](c)})[Ie](function(t){var e=o[k](t);e&&e.fadeOut(function(){r[Ie](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){e.attr(X,t[h](i))})},a[Ie]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[Ie](t)})}):e[ne]())},e}),e("echarts/chart/helper/Symbol",[ti,Qe,"../../util/symbol",f,n],function(t){function e(t){return a[fe](t)||(t=[+t,+t]),t}function i(t,e){l.Group.call(this),this.updateData(t,e)}function r(t,e){this[S].drift(t,e)}var a=t(Qe),o=t("../../util/symbol"),l=t(f),u=t(n),h=i[Ue];h._createSymbol=function(t,i,n){this[ne]();var a=i.hostModel,s=i[c](n,"color"),u=o.createSymbol(t,-.5,-.5,1,1,s);u.attr({style:{strokeNoScale:!0},z2:100,culling:!0,scale:[0,0]}),u.drift=r;var h=e(i[c](n,"symbolSize"));l.initProps(u,{scale:h},a),this._symbolType=t,this.add(u)},h.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0)[Ae](I)},h.downplay=function(){this.childAt(0)[Ae](D)},h.setZ=function(t,e){var i=this.childAt(0);i[me]=t,i.z=e},h.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},h.updateData=function(t,i){var n=t[c](i,s)||"circle",r=t.hostModel,a=e(t[c](i,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var o=this.childAt(0);l.updateProps(o,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var d=[se,D],p=[se,I],g=["label",D],y=["label",I];return h._updateCommon=function(t,i,n){var r=this.childAt(0),o=t.hostModel,s=t[_](i),h=s[qe](d),f=t[c](i,"color"),w=s[qe](p)[ee]();r.rotation=s.getShallow("symbolRotate")*Math.PI/180||0;var b=s.getShallow("symbolOffset");if(b){var M=r[X];M[0]=u[x](b[0],n[0]),M[1]=u[x](b[1],n[1])}r.setColor(f),a[De](r.style,h[ee](["color"]));for(var S,T=s[qe](g),C=s[qe](y),z=r.style,A=t[v].slice(),P=A.pop();(S=t.getDimensionInfo(P).type)===m||"time"===S;)P=A.pop();T.get("show")?(l.setText(z,T,f),z.text=a.retrieve(o.getFormattedLabel(i,D),t.get(P,i))):z.text="",C.getShallow("show")?(l.setText(w,C,f),w.text=a.retrieve(o.getFormattedLabel(i,I),t.get(P,i))):w.text="";var L=e(t[c](i,"symbolSize"));if(r.off(be).off(we).off(I).off(D),l.setHoverStyle(r,w),s.getShallow("hoverAnimation")){var k=function(){var t=L[1]/L[0];this.animateTo({scale:[Math.max(1.1*L[0],L[0]+3),Math.max(1.1*L[1],L[1]+3*t)]},400,"elasticOut")},R=function(){this.animateTo({scale:L},400,"elasticOut")};r.on(be,k).on(we,R).on(I,k).on(D,R)}},h.fadeOut=function(t){var e=this.childAt(0);e.style.text="",l.updateProps(e,{scale:[0,0]},this._seriesModel,t)},a[ae](i,l.Group),i}),e("echarts/chart/line/lineAnimationDiff",[ti],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e[V](),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[Z]()[0],l=o.dim,c="x"===l||l===u?1:0,h=i.stackedOn,d=i.get(l,n);h&&t(h.get(l,n))===t(d);){r=h;break}var f=[];return f[c]=i.get(a.dim,n),f[1-c]=r?r.get(l,n,!0):s,e[p](f)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[Ve](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[Ie](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var l=i(t,n),u=[],c=[],d=[],f=[],m=[],g=[],y=[],x=s[v],_=0;_<l[Pe];_++){var w=l[_],b=!0;switch(w.cmd){case"=":var M=t[h](w.idx),S=n[h](w.idx1);(isNaN(M[0])||isNaN(M[1]))&&(M=S.slice()),u.push(M),c.push(S),d.push(r[w.idx]),f.push(a[w.idx1]),y.push(n.getRawIndex(w.idx1));break;case"+":var T=w.idx;u.push(o[p]([n.get(x[0],T,!0),n.get(x[1],T,!0)])),c.push(n[h](T).slice()),d.push(e(o,n,T)),f.push(a[T]),y.push(n.getRawIndex(T));break;case"-":var T=w.idx,C=t.getRawIndex(T);C!==T?(u.push(t[h](T)),c.push(s[p]([t.get(x[0],T,!0),t.get(x[1],T,!0)])),d.push(r[T]),f.push(e(s,t,T)),y.push(C)):b=!1}b&&(m.push(w),g.push(g[Pe]))}g.sort(function(t,e){return y[t]-y[e]});for(var z=[],A=[],P=[],L=[],k=[],_=0;_<g[Pe];_++){var T=g[_];z[_]=u[T],A[_]=c[T],P[_]=d[T],L[_]=f[T],k[_]=m[T]}return{current:z,next:A,stackedOnCurrent:P,stackedOnNext:L,status:k}}}),e("echarts/chart/line/poly",[ti,"zrender/graphic/Path",$e],function(t){function e(t,e,i,n,d,f,p,v,m,g){for(var y=i,x=0;d>x;x++){var _=e[y];if(y>=n||0>y||isNaN(_[0])||isNaN(_[1]))break;if(y===i)t[f>0?"moveTo":"lineTo"](_[0],_[1]),l(c,_);else if(m>0){var w=y-f,b=y+f,M=.5,S=e[w],T=e[b];if(f>0&&(y===d-1||isNaN(T[0])||isNaN(T[1]))||0>=f&&(0===y||isNaN(T[0])||isNaN(T[1])))l(h,_);else{(isNaN(T[0])||isNaN(T[1]))&&(T=_),r.sub(u,T,S);var C,z;if("x"===g||"y"===g){var A="x"===g?0:1;C=Math.abs(_[A]-S[A]),z=Math.abs(_[A]-T[A])}else C=r.dist(_,S),z=r.dist(_,T);M=z/(z+C),s(h,_,u,-m*(1-M))}a(c,c,v),o(c,c,p),a(h,h,v),o(h,h,p),t.bezierCurveTo(c[0],c[1],h[0],h[1],_[0],_[1]),s(c,_,u,m*M)}else t.lineTo(_[0],_[1]);y+=f}return x}function i(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[Pe];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var n=t("zrender/graphic/Path"),r=t($e),a=r.min,o=r.max,s=r.scaleAndAdd,l=r.copy,u=[],c=[],h=[];return{Polyline:n[De]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null},style:{fill:null,stroke:"#000"},buildPath:function(t,n){for(var r=n.points,a=0,o=r[Pe],s=i(r,n.smoothConstraint);o>a;)a+=e(t,r,a,o,o,1,s.min,s.max,n.smooth,n.smoothMonotone)+1}}),Polygon:n[De]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null},buildPath:function(t,n){for(var r=n.points,a=n.stackedOnPoints,o=0,s=r[Pe],l=n.smoothMonotone,u=i(r,n.smoothConstraint),c=i(a,n.smoothConstraint);s>o;){var h=e(t,r,o,s,s,1,u.min,u.max,n.smooth,l);e(t,a,o+h-1,s,h,-1,c.min,c.max,n.stackedOnSmooth,l),o+=h+1,t.closePath()}}})}}),e("echarts/chart/helper/dataSelectableMixin",[ti,Qe],function(t){var e=t(Qe);return{updateSelectedMap:function(){var t=this[F];this._dataOptMap=e.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._dataOptMap,n=i[t],r=this.get("selectedMode");"single"===r&&e.each(i,function(t){t[a]=!1}),n&&(n[a]=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e[a]=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e[a]?"unSelect":"select"](t),e[a]):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e[a]}}}),e("echarts/component/helper/MapDraw",[ti,"./RoamController",f,Qe],function(t){function e(t){var e=t[ee](),i=t.get("areaColor");return i&&(e.fill=i),e}function i(t,e,i,r,a){i.off("click"),t.get("selectedMode")&&i.on("click",function(i){var o=i[_e][xe];if(null!=o){var s=e[R](o);r[ke]({type:"mapToggleSelect",seriesIndex:t[ye],name:s,from:a.uid}),n(t,e,r)}})}function n(t,e){e.eachItemGraphicEl(function(i,n){var r=e[R](n);i[Ae](t.isSelected(r)?I:D)})}function r(t,e){var i=new o.Group;this._controller=new a(t.getZr(),e?i:null,null),this.group=i,this._updateGroup=e}var a=t("./RoamController"),o=t(f),s=t(Qe);return r[Ue]={constructor:r,draw:function(t,r,a,l){var u=t[Me]&&t[Me](),d=t[ie],f=this.group;f[ne]();var p=d.scale;f[X]=d[X].slice(),f.scale=p.slice();var v,m,g,y,x,w,b=[se,D],M=[se,I],S=["label",D],T=["label",I];u||(v=t[qe](b),m=t[qe](M),g=e(v,p),y=e(m,p),x=t[qe](S),w=t[qe](T)),s.each(d.regions,function(i){var n,r=new o.Group;if(u){n=u.indexOfName(i.name);var a=u[_](n),l=u[c](n,"color",!0);v=a[qe](b),m=a[qe](M),g=e(v,p),y=e(m,p),x=a[qe](S),w=a[qe](T),l&&(g.fill=l)}var d=x[qe](te),C=w[qe](te);s.each(i.contours,function(t){var e=new o.Polygon({shape:{points:t},style:{strokeNoScale:!0},culling:!0});e[j](g),r.add(e)});var z=x.get("show"),A=w.get("show"),P=u&&isNaN(u.get("value",n)),L=u&&u[h](n);if(!u||P&&(z||A)||L&&L.showLabel){var k=u?n:i.name,R=t.getFormattedLabel(k,D),V=t.getFormattedLabel(k,I),O=new o.Text({style:{text:z?R||i.name:"",fill:d[K](),textFont:d[$](),textAlign:"center",textBaseline:"middle"},hoverStyle:{text:A?V||i.name:"",fill:C[K](),textFont:C[$]()},position:i[U].slice(),scale:[1/p[0],1/p[1]],z2:10,silent:!0});r.add(O)}u&&u.setItemGraphicEl(n,r),o.setHoverStyle(r,y),f.add(r)}),this._updateController(t,r,a),u&&i(t,u,f,a,l),u&&n(t,u)},remove:function(){this.group[ne](),this._controller[Te]()},_updateController:function(t,e,i){var n=t[ie],r=this._controller;r.enable(t.get("roam")||!1);var a=t.type.split(".")[0];r.off("pan").on("pan",function(e,n){i[ke]({type:"geoRoam",component:a,name:t.name,dx:e,dy:n})}),r.off("zoom").on("zoom",function(e,n,r){if(i[ke]({type:"geoRoam",component:a,name:t.name,zoom:e,originX:n,originY:r}),this._updateGroup){var o=this.group,s=o.scale;o[ve](function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.rect=n.getViewRect()}},r}),e("echarts/util/symbol",[ti,"./graphic",L],function(t){var e=t("./graphic"),i=t(L),n=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[Ee]/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),a=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[Ee]/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),o=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[Ee]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var f=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[Ee],n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),l={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:o,arrow:s,triangle:n},u={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Ee]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Ee]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[Ee]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Ee]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Ee]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Ee]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Ee]=n}},c={};for(var h in l)c[h]=new l[h];var d=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&t.textPosition===C&&(t.textPosition=["50%","40%"],t[Q]=U,t[r]=Y)},buildPath:function(t,e){var i=e.symbolType,n=c[i];"none"!==e.symbolType&&(n||(i="rect",n=c[i]),u[i](e.x,e.y,e.width,e[Ee],n.shape),n.buildPath(t,n.shape))}}),f=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[z]=t:this.__isEmptyBrush?(e[z]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[z]&&(e[z]=t)),this.dirty()}},p={createSymbol:function(t,n,r,a,o,s){var l=0===t[de]("empty");l&&(t=t.substr(5,1)[Ye]()+t.substr(6));var u;return u=0===t[de]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[de]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new d({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),u.__isEmptyBrush=l,u.setColor=f,u.setColor(s),u}};return p}),e("echarts/component/helper/listComponent",[ti,"../../util/layout","../../util/format",f],function(t){function e(t,e,n){i.positionGroup(t,e.getBoxLayoutParams(),{width:n[We](),height:n[He]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(f);return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[We](),height:r[He]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[Ee]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[J](),o=e[ee](["color",q]);o.fill=e.get(Fe);var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[Ee]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/component/tooltip/TooltipContent",[ti,Qe,"zrender/tool/color","zrender/core/event","../../util/format"],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return o.map(f,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[K]();return n&&e.push("color:"+n),e.push("font:"+t[$]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),a=t.get(Fe),o=t[qe](te),l=t.get("padding");return r&&n.push(e(r)),a&&(n.push("background-Color:"+s.toHex(a)),n.push("filter:alpha(opacity=70)"),n.push("background-Color:"+a)),h(["width","color",u],function(e){var i="border-"+e,r=d(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(o)),null!=l&&n.push("padding:"+c.normalizeCssArray(l).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[M]("div"),n=e.getZr();this.el=i,this._x=e[We]()/2,this._y=e[He]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;l.normalizeEvent(t,e),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},a(i,t)}function a(t,e){function i(t){n(t[_e])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}l.addEventListener(e,"touchstart",i),l.addEventListener(e,"touchmove",i),l.addEventListener(e,"touchend",i)}var o=t(Qe),s=t("zrender/tool/color"),l=t("zrender/core/event"),c=t("../../util/format"),h=o.each,d=c.toCamelCase,f=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;";return r[Ue]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[X]&&"absolute"!==e[X]&&(i[X]="relative")},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=p+n(t)+";left:"+this._x+"px;top:"+this._y+"px;",this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(o.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/chart/pie/labelLayout",[ti,"zrender/contain/text"],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n){for(var r=e;i>r;r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r][Ee])return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][Ee]));n--);}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=t[Pe],d=[],f=[],p=0;h>p;p++)u=t[p].y-c,0>u&&s(p,h,-u,r),c=t[p].y+t[p][Ee];0>o-c&&l(h-1,c-o);for(var p=0;h>p;p++)t[p].y>=i?f.push(t[p]):d.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],l=[],u=0;u<t[Pe];u++)t[u].x<i?s.push(t[u]):l.push(t[u]);e(s,i,n,r,-1,a,o),e(l,i,n,r,1,a,o);for(var u=0;u<t[Pe];u++){var c=t[u].linePoints;c&&(c[2][0]=t[u].x<i?t[u].x+3:t[u].x-3,c[1][1]=c[2][1]=t[u].y)}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[Me](),u=[],c=!1;l.each(function(i){var r,a,d,f,p=l[h](i),v=l[_](i),m=v[qe]("label.normal"),g=m.get(X),y=v[qe]("labelLine.normal"),x=y.get(Pe),w=y.get("length2"),b=(p.startAngle+p.endAngle)/2,M=Math.cos(b),S=Math.sin(b);if(o=p.cx,s=p.cy,g===U)r=p.cx,a=p.cy,f=U;else{var T=g===C||"inner"===g,z=(T?p.r/2*M:p.r*M)+o,A=(T?p.r/2*S:p.r*S)+s;if(x+=e-p.r,r=z+3*M,a=A+3*S,!T){var P=z+M*x,L=A+S*x,k=P+(0>M?-1:1)*w,I=L;r=k+(0>M?-5:5),a=I,d=[[z,A],[P,L],[k,I]]}f=T?U:M>0?"left":"right"}var V=Y,O=m[qe](te)[$](),E=m.get("rotate")?0>M?-b+Math.PI:-b:0,B=t.getFormattedLabel(i,D)||l[R](i),G=n[J](B,O,f,V);c=!!E,p.label={x:r,y:a,height:G[Ee],length:x,length2:w,linePoints:d,textAlign:f,textBaseline:V,font:O,rotation:E},u.push(p.label)}),!c&&t.get("avoidLabelOverlap")&&i(u,o,s,e,r,a)}}),e("echarts/component/helper/RoamController",[ti,"zrender/mixin/Eventful",Qe,"zrender/core/event","./interactionMutex"],function(t){function e(t){if(!t[_e]||!t[_e].draggable){var e=t.offsetX,i=t.offsetY,n=this.rect;n&&n[H](e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function i(t){if(this._dragging&&(c.stop(t.event),"pinch"!==t.gestureEvent)){if(h.isTaken("globalPan",this._zr))return;var e=t.offsetX,i=t.offsetY,n=e-this._x,r=i-this._y;this._x=e,this._y=i;var a=this[_e];if(a){var o=a[X];o[0]+=n,o[1]+=r,a.dirty()}c.stop(t.event),this[Ae]("pan",n,r)}}function n(){this._dragging=!1}function r(t){c.stop(t.event);var e=t.wheelDelta>0?1.1:1/1.1;o.call(this,t,e,t.offsetX,t.offsetY)}function a(t){if(!h.isTaken("globalPan",this._zr)){c.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,i,n){var r=this.rect;if(r&&r[H](i,n)){var a=this[_e];if(a){var o=a[X],s=a.scale,l=this._zoom=this._zoom||1;l*=e;var u=l/this._zoom;this._zoom=l,o[0]-=(i-o[0])*(u-1),o[1]-=(n-o[1])*(u-1),s[0]*=u,s[1]*=u,a.dirty()}this[Ae]("zoom",e,i,n)}}function s(t,o,s){this[_e]=o,this.rect=s,this._zr=t;var c=u.bind,h=c(e,this),d=c(i,this),f=c(n,this),p=c(r,this),v=c(a,this);l.call(this),this.enable=function(e){this.disable(),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",h),t.on("mousemove",d),t.on("mouseup",f)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",p),t.on("pinch",v))},this.disable=function(){t.off("mousedown",h),t.off("mousemove",d),t.off("mouseup",f),t.off("mousewheel",p),t.off("pinch",v)},this[Te]=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var l=t("zrender/mixin/Eventful"),u=t(Qe),c=t("zrender/core/event"),h=t("./interactionMutex");return u.mixin(s,l),s}),e("echarts/component/toolbox/featureManager",[ti],function(){var t={};return{register:function(e,i){t[e]=i},get:function(e){return t[e]}}}),e("echarts/component/helper/interactionMutex",[ti],function(){function t(t){return t[e]||(t[e]={})}var e="\x00_ec_interaction_mutex",i={take:function(e,i){t(i)[e]=!0},release:function(e,i){t(i)[e]=!1},isTaken:function(e,i){return!!t(i)[e]}};return i}),e("echarts/component/visualMap/preprocessor",[ti,Qe],function(t){function e(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var i=t(Qe),n=i.each;return function(t){var r=t&&t.visualMap;i[fe](r)||(r=r?[r]:[]),n(r,function(t){if(t){e(t,"splitList")&&!e(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&i[fe](r)&&n(r,function(t){i[Re](t)&&(e(t,"start")&&!e(t,"min")&&(t.min=t.start),e(t,"end")&&!e(t,"max")&&(t.max=t.end))})}})}}),e("echarts/component/visualMap/typeDefaulter",[ti,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces[Pe]>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})}),e("echarts/component/visualMap/visualCoding",[ti,d,"../../visual/VisualMapping",Qe],function(t){function e(t){var e=t.targetVisuals,i={};r.each(["inRange","outOfRange"],function(t){var r=n.prepareVisualTypes(e[t]);i[t]=r}),t.eachTargetSeries(function(n){function r(t){return s[c](o,t)}function a(t,e){s.setItemVisual(o,t,e)}var o,s=n[Me](),l=t.getDataDimension(s);s.each([l],function(n,s){o=s;for(var l=t.getValueState(n),u=e[l],c=i[l],h=0,d=c[Pe];d>h;h++){var f=c[h];u[f]&&u[f].applyVisual(n,r,a)}})})}var i=t(d),n=t("../../visual/VisualMapping"),r=t(Qe);i.registerVisualCoding("component",function(t){t[Ne]("visualMap",function(i){e(i,t)})})}),e("echarts/component/visualMap/ContinuousModel",[ti,"./VisualMapModel",Qe,n],function(t){var e=t("./VisualMapModel"),r=t(Qe),a=t(n),s=[20,140],l=e[De]({type:"visualMap.continuous",defaultOption:{handlePosition:"auto",calculable:!1,range:[-1/0,1/0],hoverLink:!0,realtime:!0,itemWidth:null,itemHeight:null},doMergeOption:function(t,e){l[o](this,"doMergeOption",arguments),this.resetTargetSeries(t,e),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear"}),this._resetRange()},resetItemSize:function(){e[Ue].resetItemSize.apply(this,arguments);var t=this.itemSize;this._orient===i&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=s[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s[1])},_resetRange:function(){var t=this[Z](),e=this[F].range;e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1])},completeVisualOption:function(){e[Ue].completeVisualOption.apply(this,arguments),r.each(this.stateList,function(t){var e=this[F].controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this[F].range=t.slice(),this._resetRange()},getSelected:function(){var t=this[Z](),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this[F].range,i=this[Z]();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"}});return l}),e("echarts/component/visualMap/ContinuousView",[ti,"./VisualMapView",f,Qe,n,"../helper/sliderMove","zrender/graphic/LinearGradient","./helper"],function(t){function e(t,e,i){return new o.Polygon({shape:{points:t},draggable:!!e,cursor:i,drift:e})}function r(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}var a=t("./VisualMapView"),o=t(f),s=t(Qe),l=t(n),u=t("../helper/sliderMove"),c=l.linearMap,h=t("zrender/graphic/LinearGradient"),d=t("./helper"),p=s.each,v=a[De]({type:"visualMap.continuous",init:function(){a[Ue].init.apply(this,arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid?this._updateView():this._buildView()},_buildView:function(){this.group[ne]();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.barGroup,c=this._applyTransform([l[0]/2,0===n?-s:l[1]+s],u),h=this._applyTransform(0===n?Be:"top",u),d=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new o.Text({style:{x:c[0],y:c[1],textBaseline:d===i?Y:h,textAlign:d===i?h:U,text:r,textFont:f[$](),fill:f[K]()}}))}},_renderBar:function(t){var i=this.visualMapModel,n=this._shapes,r=i.itemSize,a=this._orient,o=this._useHandle,l=d.getItemAlign(i,this.api,r),u=n.barGroup=this._createBarGroup(l);u.add(n.outOfRange=e()),u.add(n.inRange=e(null,s.bind(this._modifyHandle,this,"all"),o?"move":null));var c=i.textStyleModel.getTextRect("国"),h=Math.max(c.width,c[Ee]);o&&(n.handleGroups=[],n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(u,0,r,h,a,l),this._createHandle(u,1,r,h,a,l)),t.add(u)},_createHandle:function(t,n,a,l,u){var c=new o.Group({position:[a[0],0]}),h=e(r(n,l),s.bind(this._modifyHandle,this,n),"move");c.add(h);var d={x:u===i?l/2:1.5*l,y:u===i?0===n?-(1.5*l):1.5*l:0===n?-l/2:l/2},f=this.visualMapModel.textStyleModel,p=new o.Text({silent:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textFont:f[$](),fill:f[K]()}});this.group.add(p);var v=this._shapes;v.handleThumbs[n]=h,v.handleGroups[n]=c,v.handleLabelPoints[n]=d,v.handleLabels[n]=p,t.add(c)},_modifyHandle:function(t,e,i){if(this._useHandle){var n=this._applyTransform([e,i],this._shapes.barGroup,!0);this._updateInterval(t,n[1]),this.api[ke]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()})}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t[Z](),n=[0,t.itemSize[1]];this._handleEnds=[c(e[0],i,n,!0),c(e[1],i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds;u(e,n,[0,i.itemSize[1]],"all"===t?"rigid":"push",t);var r=i[Z](),a=[0,i.itemSize[1]];this._dataInterval=[c(n[0],a,r,!0),c(n[1],a,r,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e[Z](),r=this._shapes,a=this._dataInterval,o=[0,e.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(a,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");r.inRange[j]("fill",l.barColor).setShape("points",l.barPoints),r.outOfRange[j]("fill",u.barColor).setShape("points",u.barPoints),this._useHandle&&p([0,1],function(t){r.handleThumbs[t][j]("fill",l.handlesColor[t]),r.handleLabels[t][j]({text:e.formatValueText(a[t]),textAlign:this._applyTransform(this._orient===i?0===t?Be:"top":"left",r.barGroup)})},this),this._updateHandlePosition(s)},_createBarVisual:function(t,e,i,n){var r=this.getControllerVisual(t,n,"color").color,a=[this.getControllerVisual(t[0],n,"symbolSize").symbolSize,this.getControllerVisual(t[1],n,"symbolSize").symbolSize],o=this._createBarPoints(i,a);return{barColor:new h(0,0,1,1,r),barPoints:o,handlesColor:[r[0].color,r[r[Pe]-1].color]}},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new o.Group(e!==i||n?e===i&&n?{scale:t===Be?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:t===Be?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandlePosition:function(t){if(this._useHandle){var e=this._shapes;p([0,1],function(i){var n=e.handleGroups[i];n[X][1]=t[i];var r=e.handleLabelPoints[i],a=o[P]([r.x,r.y],o.getTransform(n,this.group));e.handleLabels[i][j]({x:a[0],y:a[1]})},this)}},_applyTransform:function(t,e,i){var n=o.getTransform(e,this.group);return o[s[fe](t)?P:"transformDirection"](t,n,i)}});return v}),e("echarts/action/roamHelper",[ti],function(){var t={};return t.calcPanAndZoom=function(t,e){var i=e.dx,n=e.dy,r=e.zoom,a=t.get("x")||0,o=t.get("y")||0,s=t.get("zoom")||1;if(null!=i&&null!=n&&(a+=i,o+=n),null!=r){var l=(e.originX-a)*(r-1),u=(e.originY-o)*(r-1);a-=l,o-=u}return{x:a,y:o,zoom:(r||1)*s}},t}),e("echarts/component/helper/SelectController",[ti,"zrender/mixin/Eventful",Qe,f],function(t){function e(t,e,i){g.call(this),this.type=t,this.zr=e,this.opt=y.clone(i),this.group=new x.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:_(o,this),mousemove:_(s,this),mouseup:_(l,this)},w(L,function(t){this.zr.on(t,this._handlers[t])},this)}function i(t){t[ve](function(t){t.z=C})}function n(t,e){var i=this.group.transformCoordToLocal(t,e);return!this._containerRect||this._containerRect[H](i[0],i[1])}function r(t){var e=t.event;e.preventDefault&&e.preventDefault()}function o(t){if(!(this._disabled||t[_e]&&t[_e].draggable)){r(t);var e=t.offsetX,i=t.offsetY;n.call(this,e,i)&&(this._dragging=!0,this._track=[[e,i]])}}function s(t){this._dragging&&!this._disabled&&(r(t),u.call(this,t))}function l(t){this._dragging&&!this._disabled&&(r(t),u.call(this,t,!0),this._dragging=!1,this._track=[])}function u(t,e){var i=t.offsetX,r=t.offsetY;if(n.call(this,i,r)){this._track.push([i,r]);var o=c.call(this)?k[this.type].getRanges.call(this):[];h.call(this,o),this[Ae](a,y.clone(o)),e&&this[Ae]("selectEnd",y.clone(o))}}function c(){var t=this._track;if(!t[Pe])return!1;var e=t[t[Pe]-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],a=T(n*n+r*r,.5);return a>P}function h(t){var e=k[this.type];t&&t[Pe]?(this._cover||(this._cover=e[Oe].call(this),this.group.add(this._cover)),e[Ve].call(this,t)):(this.group[Ie](this._cover),this._cover=null),i(this.group)}function d(){var t=this.group,e=t[S];e&&e[Ie](t)}function p(){var t=this.opt;return new x.Rect({style:{stroke:t[z],fill:t.fill,lineWidth:t[A],opacity:t[q]}})}function v(){return y.map(this._track,function(t){return this.group.transformCoordToLocal(t[0],t[1])},this)}function m(){var t=v.call(this),e=t[Pe]-1;return 0>e&&(e=0),[t[0],t[e]]}var g=t("zrender/mixin/Eventful"),y=t(Qe),x=t(f),_=y.bind,w=y.each,b=Math.min,M=Math.max,T=Math.pow,C=1e4,P=2,L=["mousedown","mousemove","mouseup"];e[Ue]={constructor:e,enable:function(t,e){this._disabled=!1,d.call(this),this._containerRect=e!==!1?e||t[J]():null,t.add(this.group)},update:function(t){h.call(this,t&&y.clone(t))},disable:function(){this._disabled=!0,d.call(this)},dispose:function(){this.disable(),w(L,function(t){this.zr.off(t,this._handlers[t])},this)}},y.mixin(e,g);var k={line:{create:p,getRanges:function(){var t=m.call(this),e=b(t[0][0],t[1][0]),i=M(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover.setShape({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:p,getRanges:function(){var t=m.call(this),e=[b(t[1][0],t[0][0]),b(t[1][1],t[0][1])],i=[M(t[1][0],t[0][0]),M(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover.setShape({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};return e}),e("echarts/component/dataZoom/history",[ti,Qe],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(Qe),n=i.each,r="\x00_ec_hist_store",a={push:function(t,i){var r=e(t);n(i,function(e,i){for(var n=r[Pe]-1;n>=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[Pe]-1];i[Pe]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[Pe]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[Pe]}};return a}),e("echarts/component/dataZoomSelect",[ti,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/visual/VisualMapping",[ti,Qe,"zrender/tool/color",W],function(t){function e(t,e,i,n){return c[fe](t)?c.map(t,function(t){return d(t,e,i,n)}):d(t,e,i,n)}function i(t){var e=t.pieceList;t.hasSpecialVisual=!1,c.each(e,function(e,i){e.originIndex=i,e.visual&&(t.hasSpecialVisual=!0)})}function n(t){var e=t.categories,i=t.visual,n=c[fe](i);if(!e){if(n)return;throw new Error}var r=t.categoryMap={};if(f(e,function(t,e){r[t]=e}),!n){var a=[];c[Re](i)?f(i,function(t,e){var i=r[e];a[null!=i?i:v]=t}):a[v]=i,i=t.visual=a
- }for(var o=e[Pe]-1;o>=0;o--)null==i[o]&&(delete r[e[o]],e.pop())}function r(t){return{applyVisual:function(e,i,n){var r=i("color"),a=c[fe](e);if(e=a?[this.mapValueToVisual(e[0]),this.mapValueToVisual(e[1])]:this.mapValueToVisual(e),c[fe](r))for(var o=0,s=r[Pe];s>o;o++)r[o].color=t(r[o].color,a?e[o]:e);else n("color",t(r,e))},mapValueToVisual:function(t){var i=this._normalizeData(t),n=this._getSpecifiedVisual(t),r=this[F].visual;return null==n&&(n=u(this)?l(this,r,i):e(i,[0,1],r,!0)),n}}}function a(t,i){return t[Math.round(e(i,[0,1],[0,t[Pe]-1],!0))]}function o(t,e,i){i("color",this.mapValueToVisual(t))}function l(t,e,i){return e[t[F].loop&&i!==v?i%e[Pe]:i]}function u(t){return t[F].mappingMethod===g}var c=t(Qe),h=t("zrender/tool/color"),d=t(W).linearMap,f=c.each,p=c[Re],v=-1,m=function(t){var e=t.mappingMethod,r=t.type;this.type=r,this.mappingMethod=e;var a=this[F]=c.clone(t);this._normalizeData=x[e],this._getSpecifiedVisual=c.bind(_[e],this,r),c[De](this,y[r]),"piecewise"===e&&i(a),e===g&&n(a)};m[Ue]={constructor:m,applyVisual:null,isValueActive:null,mapValueToVisual:null,getNormalizer:function(){return c.bind(this._normalizeData,this)}};var y=m.visualHandlers={color:{applyVisual:o,getColorMapper:function(){var t=u(this)?this[F].visual:c.map(this[F].visual,h.parse);return c.bind(u(this)?function(e,i){return!i&&(e=this._normalizeData(e)),l(this,t,e)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=h.fastMapToColor(e,t,n),r?n:c.stringify(n,"rgba")},this)},mapValueToVisual:function(t){var e=this[F].visual;if(c[fe](t))return t=[this._normalizeData(t[0]),this._normalizeData(t[1])],h.mapIntervalToColor(t,e);var i=this._normalizeData(t),n=this._getSpecifiedVisual(t);return null==n&&(n=u(this)?l(this,e,i):h.mapToColor(i,e)),n}},colorHue:r(function(t,e){return h.modifyHSL(t,e)}),colorSaturation:r(function(t,e){return h.modifyHSL(t,null,e)}),colorLightness:r(function(t,e){return h.modifyHSL(t,null,null,e)}),colorAlpha:r(function(t,e){return h.modifyAlpha(t,e)}),symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(c[re](n))i(s,n);else if(p(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[F].visual;return null==i&&(i=u(this)?l(this,n,e):a(n,e)||{}),i}},symbolSize:{applyVisual:function(t,e,i){i("symbolSize",this.mapValueToVisual(t))},mapValueToVisual:function(t){var i=this._normalizeData(t),n=this._getSpecifiedVisual(t),r=this[F].visual;return null==n&&(n=u(this)?l(this,r,i):e(i,[0,1],r,!0)),n}}},x={linear:function(t){return e(t,this[F].dataExtent,[0,1],!0)},piecewise:function(t){var i=this[F].pieceList,n=m.findPieceIndex(t,i);return null!=n?e(n,[0,i[Pe]-1],[0,1],!0):void 0},category:function(t){var e=this[F].categories?this[F].categoryMap[t]:t;return null==e?v:e}},_={linear:c.noop,piecewise:function(t,e){var i=this[F],n=i.pieceList;if(i.hasSpecialVisual){var r=m.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[t]}},category:c.noop};return m.addVisualHandler=function(t,e){y[t]=e},m.isValidType=function(t){return y.hasOwnProperty(t)},m.eachVisual=function(t,e,i){c[Re](t)?c.each(t,e,i):e.call(i,t)},m.mapVisual=function(t,e,i){var n,r=c[fe](t)?[]:c[Re](t)?{}:(n=!0,null);return m.eachVisual(t,function(t,a){var o=e.call(i,t,a);n?r=o:r[a]=o}),r},m.isInVisualCluster=function(t,e){return"color"===e?!(!t||0!==t[de](e)):t===e},m.retrieveVisuals=function(t){var e,i={};return t&&f(y,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},m.prepareVisualTypes=function(t){if(p(t)){var e=[];f(t,function(t,i){e.push(i)}),t=e}else{if(!c[fe](t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t[de]("color")?1:-1}),t},m.findPieceIndex=function(t,e){for(var i=0,n=e[Pe];n>i;i++){var r=e[i];if(null!=r.value&&r.value===t)return i}for(var i=0,n=e[Pe];n>i;i++){var r=e[i],a=r.interval;if(a)if(a[0]===-1/0){if(t<a[1])return i}else if(1/0===a[1]){if(a[0]<t)return i}else if(r.interval[0]<=t&&t<=r.interval[1])return i}},m}),e("echarts/component/dataZoom/typeDefaulter",[ti,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("dataZoom",function(){return"slider"})}),e("echarts/component/dataZoom/DataZoomModel",[ti,Qe,"zrender/core/env",d,"../../util/model","./AxisProxy","../../util/layout"],function(t){function e(t){var e={};return h(["start","end","startValue","endValue"],function(i){e[i]=t[i]}),e}function n(t,e,i,n){null!=i[e]&&null==i[t]&&(n[t]=null)}var r=t(Qe),a=t("zrender/core/env"),s=t(d),l=t("../../util/model"),u=t("./AxisProxy"),c=t("../../util/layout"),h=r.each,f=l.eachAxisDim,p=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",Ce],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,angleAxisIndex:null,radiusAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,i,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel;var r=e(t);this.mergeDefaultAndTheme(t,n),this.doInit(r)},mergeOption:function(t){var i=e(t);r.merge(this[F],t,!0),this.doInit(i)},doInit:function(t){var e=this[F];a[Ze]||(e.realtime=!1),n("start","startValue",t,e),n("end","endValue",t,e),this.textStyleModel=this[qe](te),this._resetTarget(),this._giveAxisProxies(),this._backup()},restoreData:function(){p[o](this,"restoreData",arguments),this.eachTargetAxis(function(t,e,i){i.getAxisProxy(t.name,e).restore(i)})},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var a=this.dependentModels[e.axis][i],o=a.__dzAxisProxy||(a.__dzAxisProxy=new u(e.name,i,this,r));t[e.name+"_"+i]=o},this)},_resetTarget:function(){var t=this[F],e=this._judgeAutoMode();f(function(e){var i=e.axisIndex;t[i]=l.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this[F],e=!1;f(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient=i),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this[F];if(t){var n="vertical"===e?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[n.axis][Pe]&&(i[n.axisIndex]=[0],t=!1)}t&&f(function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r[Pe]&&!n[Pe])for(var a=0,o=r[Pe];o>a;a++)r[a].get("type")===g&&n.push(a);i[e.axisIndex]=n,n[Pe]&&(t=!1)}},this),t&&this[E][ze](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&f(function(e){var n=i[e.axisIndex],a=t.get(e.axisIndex);r[de](n,a)<0&&n.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[F].orient="y"===t?"vertical":i},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return f(function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_backup:function(){this.eachTargetAxis(function(t,e,i){this.getAxisProxy(t.name,e).backup(i)},this)},getFirstTargetAxisModel:function(){var t;return f(function(e){if(null==t){var i=this.get(e.axisIndex);i[Pe]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[E];f(function(n){h(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){h(["start","end","startValue","endValue"],function(e){this[F][e]=t[e]},this)},setLayoutParams:function(t){c.copyLayoutParams(this[F],t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});return p}),e("echarts/component/dataZoom/DataZoomView",[ti,"../../view/Component"],function(t){var e=t("../../view/Component");return e[De]({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this[E]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[Pe];a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this[E],n=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=i[B](e.axis,o);if(s){a.push(s);var l=s.get("gridIndex"),u=s.get("polarIndex");if(null!=l){var c=i[B]("grid",l);t(c,s,n,l)}else if(null!=u){var c=i[B]("polar",u);t(c,s,r,u)}}},this),{cartesians:n,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/SelectZoomModel",[ti,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[De]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/SelectZoomView",[ti,"./DataZoomView"],function(t){return t("./DataZoomView")[De]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/dataZoomProcessor",[ti,d],function(t){function e(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function i(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var n=t(d);n.registerProcessor(Je,function(t){t[Ne]("dataZoom",function(t){t.eachTargetAxis(e),t.eachTargetAxis(i)}),t[Ne]("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})})}),e("echarts/component/dataZoom/dataZoomAction",[ti,Qe,"../../util/model",d],function(t){var e=t(Qe),i=t("../../util/model"),n=t(d);n[he]("dataZoom",function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[Ne],n,"dataZoom"),i.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),a=[];n[Ne]({mainType:"dataZoom",query:t},function(t){a.push.apply(a,r(t).nodes)}),e.each(a,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/visualMap/VisualMapModel",[ti,Qe,"zrender/core/env",d,"../../util/model","../../visual/visualDefault","../../visual/VisualMapping",n],function(t){var e=t(Qe),i=t("zrender/core/env"),r=t(d),a=t("../../util/model"),l=t("../../visual/visualDefault"),u=t("../../visual/VisualMapping"),c=u.mapVisual,h=u.eachVisual,f=t(n),p=e[fe],m=e.each,g=f.asc,x=f.linearMap,_=r.extendComponentModel({type:"visualMap",dependencies:[Ce],dataBound:[-1/0,1/0],stateList:["inRange","outOfRange"],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",seriesIndex:null,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:["#bf444c","#d88273","#f6efa6"],formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._autoSeriesIndex=!1,this._dataExtent,this.controllerVisuals={},this.targetVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i),this.doMergeOption({},!0)},mergeOption:function(t){_[o](this,N,arguments),this.doMergeOption(t,!1)},doMergeOption:function(){var t=this[F];i[Ze]||(t.realtime=!1),this.textStyleModel=this[qe](te),this.resetItemSize(),this.completeVisualOption()},formatValueText:function(t,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t)[y](s)}var r,a,o=this[F],s=o.precision,l=this.dataBound,u=o[O];return e[fe](t)&&(t=t.slice(),r=!0),a=i?t:r?[n(t[0]),n(t[1])]:n(t),e[re](u)?u[pe]("{value}",r?a[0]:a)[pe]("{value2}",r?a[1]:a):e.isFunction(u)?r?u(t[0],t[1]):u(t):r?t[0]===l[0]?"< "+a[1]:t[1]===l[1]?"> "+a[0]:a[0]+" - "+a[1]:a},resetTargetSeries:function(t,e){var i=this[F],n=this._autoSeriesIndex=null==(e?i:t)[ye];i[ye]=n?[]:a.normalizeToArray(i[ye]),n&&this[E][ze](function(t,e){var n=t[Me]();"list"===n.type&&i[ye].push(e)})},resetExtent:function(){var t=this[F],e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this[F].dimension;return null!=e?e:t[v][Pe]-1},getExtent:function(){return this._dataExtent.slice()},resetVisual:function(t){function e(e,n){m(this.stateList,function(r){var a=n[r]||(n[r]={}),o=this[F][e][r]||{};m(o,function(e,n){if(u.isValidType(n)){var o={type:n,dataExtent:i,visual:e};t&&t.call(this,o,r),a[n]=new u(o)}},this)},this)}var i=this[Z]();e.call(this,"controller",this.controllerVisuals),e.call(this,_e,this.targetVisuals)},completeVisualOption:function(){function t(t){p(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice().reverse()}),m(this.stateList,function(i){var n=t[i];if(e[re](n)){var r=l.get(n,"active",f);r?(t[i]={},t[i][n]=r):delete t[i]}},this)}function i(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},m(n,function(t,e){var i=l.get(e,"inactive",f);u.isValidType(e)&&i&&(r[e]=i)}))}function n(t){var i=(t.inRange||{})[s]||(t.outOfRange||{})[s],n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor");m(this.stateList,function(a){var o=this.itemSize,l=t[a];l||(l=t[a]={color:f?r:[r]}),l[s]||(l[s]=i&&e.clone(i)||(f?"roundRect":["roundRect"])),l.symbolSize||(l.symbolSize=n&&e.clone(n)||(f?o[0]:[o[0],o[0]])),l[s]=c(l[s],function(t){return"none"===t||"square"===t?"roundRect":t});var u=l.symbolSize;if(u){var d=-1/0;h(u,function(t){t>d&&(d=t)}),l.symbolSize=c(u,function(t){return x(t,[0,d],[0,o[0]],!0)})}},this)}var r=this[F],a={inRange:r.inRange,outOfRange:r.outOfRange},o=r[_e]||(r[_e]={}),d=r.controller||(r.controller={});e.merge(o,a),e.merge(d,a);var f=this.isCategory();t.call(this,o),t.call(this,d),i.call(this,o,"inRange","outOfRange"),i.call(this,o,"outOfRange","inRange"),n.call(this,d)},eachTargetSeries:function(t,i){e.each(this[F][ye],function(e){t.call(i,this[E].getSeriesByIndex(e))},this)},isCategory:function(){return!!this[F].categories},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},setSelected:e.noop,getValueState:e.noop});return _}),e("echarts/component/dataZoom/AxisProxy",[ti,Qe,n],function(t){function e(t,e){var i=[1/0,-1/0];return l(e,function(e){var n=e[Me]();n&&l(e.coordDimToDataDim(t),function(t){var e=n.getDataExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){var n=i.getAxisModel(),a=n.axis.scale,o=[0,100],u=[t.start,t.end],h=[],d=i._backup;return e=e.slice(),r(e,d,a),l(["startValue","endValue"],function(e){h.push(null!=t[e]?a.parse(t[e]):null)}),l([0,1],function(t){var i=h[t],n=u[t];null!=n||null==i?(null==n&&(n=o[t]),i=a.parse(s.linearMap(n,o,e,!0))):n=s.linearMap(i,e,o,!0),h[t]=i,u[t]=n}),{valueWindow:c(h),percentWindow:c(u)}}function r(t,e,i){return l(["min","max"],function(n,r){var a=e[n];null!=a&&(a+"")[Ye]()!=="data"+n&&(t[r]=i.parse(a))}),e.scale||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function a(t,e){var i=t.getAxisModel(),n=t._backup,r=t._percentWindow,a=t._valueWindow;if(n){var o=e||0===r[0]&&100===r[1],l=!e&&s.getPixelPrecision(a,[0,500]),u=!(e||20>l&&l>=0);i.setNeedsCrossZero&&i.setNeedsCrossZero(e||o?!n.scale:!1),i.setMin&&i.setMin(e||o||u?n.min:+a[0][y](l)),i.setMax&&i.setMax(e||o||u?n.max:+a[1][y](l))}}var o=t(Qe),s=t(n),l=o.each,c=s.asc,h=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._backup,this._valueWindow,this._percentWindow,this._dataExtent,this[E]=n,this._dataZoomModel=i};return h[Ue]={constructor:h,hostedBy:function(t){return this._dataZoomModel===t},backup:function(t){if(t===this._dataZoomModel){var e=this.getAxisModel();this._backup={scale:e.get("scale",!0),min:e.get("min",!0),max:e.get("max",!0)}}},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[];return this[E][ze](function(e){this._axisIndex===e.get(this._dimName+"AxisIndex")&&t.push(e)},this),t},getAxisModel:function(){return this[E][B](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[E],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?u:"angle");var o;return n[Ne](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},reset:function(t){if(t===this._dataZoomModel){var n=this._dataExtent=e(this._dimName,this.getTargetSeriesModels()),r=i(t[F],n,this);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,a(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,a(this,!0))},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,o=this.getOtherAxisModel();t.get("$fromToolbox")&&o&&o.get("type")===g&&(r="empty"),l(n,function(t){var n=t[Me]();n&&l(t.coordDimToDataDim(i),function(i){"empty"===r?t.setData(n.map(i,function(t){return e(t)?t:0/0})):n.filterSelf(i,e)})})}}},h}),e("echarts/component/visualMap/visualMapAction",[ti,d],function(t){var e=t(d),i={type:"selectDataRange",event:"dataRangeSelected",update:"update"};e[he](i,function(t,e){e[Ne]({mainType:"visualMap",query:t},function(e){e.setSelected(t[a])})})}),e("echarts/visual/visualDefault",[ti,Qe],function(t){var e=t(Qe),i={get:function(t,i,r){var a=e.clone((n[t]||{})[i]);return r&&e[fe](a)?a[a[Pe]-1]:a}},n={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};return i}),e("echarts/component/visualMap/VisualMapView",[ti,d,Qe,f,"../../util/format","../../util/layout","../../visual/VisualMapping"],function(t){var e=t(d),i=t(Qe),n=t(f),r=t("../../util/format"),a=t("../../util/layout"),o=t("../../visual/VisualMapping");return e[le]({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this[E]=t,this.api=e,this.visualMapModel,this._updatableShapes={}},render:function(t){return this.visualMapModel=t,t.get("show")===!1?void this.group[ne]():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,i=r.normalizeCssArray(e.get("padding")||0),a=t[J]();t.add(new n.Rect({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a[Ee]+i[0]+i[2]},style:{fill:e.get(Fe),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){function r(t){return h[t]}function a(t,e){h[t]=e}var s=this.visualMapModel,l=i[fe](t);if(l&&(!e||"color"!==n))throw new Error(t);var u=s.controllerVisuals[e||s.getValueState(t)],c=s.get("contentColor"),h={symbol:s.get("itemSymbol"),color:l?[{color:c,offset:0},{color:c,offset:1}]:c},d=o.prepareVisualTypes(u);return i.each(d,function(e){var i=u[e];(!n||o.isInVisualCluster(e,n))&&i&&i.applyVisual(t,r,a)}),h},positionGroup:function(t){var e=this.visualMapModel,i=this.api;a.positionGroup(t,e.getBoxLayoutParams(),{width:i[We](),height:i[He]()})},doRender:i.noop})}),e("echarts/component/helper/sliderMove",[ti],function(){return function(t,e,i,n,r){function a(t,e,i){var n=e[Pe]?e.slice():[e,e];return e[0]>e[1]&&n.reverse(),0>t&&n[0]+t<i[0]&&(t=i[0]-n[0]),t>0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=a(t,e,i),e[0]+=t,e[1]+=t):(t=a(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}}),e("echarts/component/visualMap/helper",[ti,"../../util/layout"],function(t){var e=t("../../util/layout"),n={getItemAlign:function(t,n,r){var a=t[F],o=a.align;if(null!=o&&"auto"!==o)return o;for(var s={width:n[We](),height:n[He]()},l=a.orient===i?1:0,u=[["left","right","width"],["top",Be,Ee]],c=u[l],h=[0,null,10],d={},f=0;3>f;f++)d[u[1-l][f]]=h[f],d[c[f]]=2===f?r[0]:a[c[f]];var p=[["x","width",3],["y",Ee,0]][l],v=e.getLayoutRect(d,s,a.padding);return c[(v.margin[p[2]]||0)+v[p[0]]+.5*v[p[1]]<.5*s[p[1]]?0:1]}};return n}),e("echarts/component/visualMap/PiecewiseModel",[ti,"./VisualMapModel",Qe,"../../visual/VisualMapping"],function(t){function e(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var i=t("./VisualMapModel"),n=t(Qe),r=t("../../visual/VisualMapping"),s=i[De]({type:"visualMap.piecewise",defaultOption:{selected:null,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10},doMergeOption:function(t,e){s[o](this,"doMergeOption",arguments),this._pieceList=[],this.resetTargetSeries(t,e),this.resetExtent();var i=this._mode=this._decideMode();l[this._mode].call(this),this._resetSelected(t,e);var r=this[F].categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod=g,t.categories=n.clone(r)):(t.mappingMethod="piecewise",t.pieceList=n.map(this._pieceList,function(t){var t=n.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},_resetSelected:function(t,e){var i=this[F],r=this._pieceList,o=(e?i:t)[a]||{};if(i[a]=o,n.each(r,function(t){var e=this.getSelectedMapKey(t);e in o||(o[e]=!0)},this),"single"===i.selectedMode){var s=!1;n.each(r,function(t){var e=this.getSelectedMapKey(t);o[e]&&(s?o[e]=!1:s=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_decideMode:function(){var t=this[F];return t.pieces&&t.pieces[Pe]>0?"pieces":this[F].categories?"categories":"splitNumber"},setSelected:function(t){this[F][a]=n.clone(t)},getValueState:function(t){var e=this._pieceList,i=r.findPieceIndex(t,e);return null!=i&&this[F][a][this.getSelectedMapKey(e[i])]?"inRange":"outOfRange"}}),l={splitNumber:function(){var t=this[F],e=t.precision,i=this[Z](),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var r=(i[1]-i[0])/n;+r[y](e)!==r&&5>e;)e++;t.precision=e,r=+r[y](e);for(var a=0,o=i[0];n>a;a++,o+=r){var s=a===n-1?i[1]:o+r;this._pieceList.push({text:this.formatValueText([o,s]),index:a,interval:[o,s]})}},categories:function(){var t=this[F];n.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),e(t,this._pieceList)},pieces:function(){var t=this[F];n.each(t.pieces,function(t,e){n[Re](t)||(t={value:t});var i,a={text:"",index:e};if(null!=t.label&&(a.text=t.label,i=!0),t.hasOwnProperty("value"))a.value=t.value,i||(a.text=this.formatValueText(a.value));else{var o=t.min,s=t.max;null==o&&(o=-1/0),null==s&&(s=1/0),o===s&&(a.value=o),a.interval=[o,s],i||(a.text=this.formatValueText([o,s]))}a.visual=r.retrieveVisuals(t),this._pieceList.push(a)},this),e(t,this._pieceList)}};return s}),e("echarts/component/visualMap/PiecewiseView",[ti,"./VisualMapView",Qe,f,"../../util/symbol","../../util/layout","./helper"],function(t){var e=t("./VisualMapView"),n=t(Qe),r=t(f),o=t("../../util/symbol"),l=t("../../util/layout"),u=t("./helper"),c=e[De]({type:"visualMap.piecewise",doRender:function(){function t(t){var i=new r.Group;i.onclick=n.bind(this._onItemClick,this,t.piece),this._createItemSymbol(i,t.piece,[0,0,h[0],h[1]]),f&&i.add(new r.Text({style:{x:"right"===c?-a:h[0]+a,y:h[1]/2,text:t.piece.text,textBaseline:"middle",textAlign:c,textFont:s,fill:u}})),e.add(i)}var e=this.group;e[ne]();var i=this.visualMapModel,a=i.get("textGap"),o=i.textStyleModel,s=o[$](),u=o[K](),c=this._getItemAlign(),h=i.itemSize,d=this._getViewData(),f=!d.endsText,p=!f;p&&this._renderEndsText(e,d.endsText[0],h),n.each(d.pieceList,t,this),p&&this._renderEndsText(e,d.endsText[1],h),l.box(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_getItemAlign:function(){var t=this.visualMapModel,e=t[F];if("vertical"===e.orient)return u.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i){if(e){var n=new r.Group,a=this.visualMapModel.textStyleModel;n.add(new r.Text({style:{x:i[0]/2,y:i[1]/2,textBaseline:"middle",textAlign:"center",text:e,textFont:a[$](),fill:a[K]()}})),t.add(n)}},_getViewData:function(){var t=this.visualMapModel,e=n.map(t.getPieceList(),function(t,e){return{piece:t,index:e}}),r=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a===i?o:!o)?e.reverse():r&&(r=r.slice().reverse()),{pieceList:e,endsText:r}},_createItemSymbol:function(t,e,i){var n;if(this.visualMapModel.isCategory())n=e.value;else if(null!=e.value)n=e.value;else{var r=e.interval||[];n=(r[0]+r[1])/2}var a=this.getControllerVisual(n);t.add(o.createSymbol(a[s],i[0],i[1],i[2],i[3],a.color))},_onItemClick:function(t){var e=this.visualMapModel,i=e[F],r=n.clone(i[a]),o=e.getSelectedMapKey(t);"single"===i.selectedMode?(r[o]=!0,n.each(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api[ke]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});return c}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var ei=t("echarts");return ei.graphic=t("echarts/util/graphic"),ei.number=t("echarts/util/number"),ei.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/chart/map"),t("echarts/component/grid"),t("echarts/component/geo"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/visualMap"),t("echarts/component/toolbox"),t("zrender/vml/vml"),ei});
|