1234567 |
- !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 n(t,e){if(!e)return t;if(0===t.indexOf(".")){var n=e.split("/"),i=t.split("/"),r=n.length-1,a=i.length,o=0,s=0;t:for(var c=0;a>c;c++)switch(i[c]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return n.length=r-o,i=i.slice(s),n.concat(i).join("/")}return t}function i(t){function e(e,o){if("string"==typeof e){var s=i[e];return s||(s=a(n(e,t)),i[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var i={};return e}function r(e,i,r){for(var s=[],c=o[r],u=0,l=Math.min(e.length,i.length);l>u;u++){var h,f=n(e[u],r);switch(f){case"require":h=c&&c.require||t;break;case"exports":h=c.exports;break;case"module":h=c;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var n=e.factory,i=n.apply(this,r(e.deps||[],n,t));"undefined"!=typeof i&&(e.exports=i),e.defined=1}return e.exports}var o={};e=function(t,e,n){o[t]={id:t,deps:e,factory:n,defined:0,exports:{},require:i(t)}},t=i("")}();var n="getContext",i="ordinal",r="applyTransform",a="normal",o="undefined",s="option",c="inherits",u="function",l="indexOf",h="isArray",f="replace",d="getData",p="splice",m="isObject",v="bottom",g="resize",y="string",_="toLowerCase",x="filter",b="create",w="contain",M="length",C="extend",S="prototype",T="zrender/core/util",z="position",L="center",k="middle",A="getHeight",P="getWidth",D="target",I="height",R="getBoundingRect",O="getFont",E="textStyle",B="getModel",F="require";e("echarts/chart/map",[F,"../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/title",[F,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),n=t("../util/graphic"),i=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.extendComponentView({type:"title",render:function(t,e,r){if(this.group.removeAll(),t.get("show")){var a=this.group,o=t[B](E),s=t[B]("subtextStyle"),c=t.get("textAlign"),u=new n.Text({style:{text:t.get("text"),textFont:o[O](),fill:o.getTextColor(),textBaseline:"top"},z2:10}),l=u[R](),h=t.get("subtext"),f=new n.Text({style:{text:h,textFont:s[O](),fill:s.getTextColor(),y:l[I]+t.get("itemGap"),textBaseline:"top"},z2:10}),d=t.get("link"),p=t.get("sublink");u.silent=!d,f.silent=!p,d&&u.on("click",function(){window.open(d,t.get(D))}),p&&f.on("click",function(){window.open(p,t.get("subtarget"))}),a.add(u),h&&a.add(f);var m=a[R](),v=t.getBoxLayoutParams();v.width=m.width,v[I]=m[I];var g=i.getLayoutRect(v,{width:r[P](),height:r[A]()},t.get("padding"));c||(c=t.get("left")||t.get("right"),c===k&&(c=L),"right"===c?g.x+=g.width:c===L&&(g.x+=g.width/2)),a[z]=[g.x,g.y],u.setStyle("textAlign",c),f.setStyle("textAlign",c),m=a[R]();var y=g.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new n.Rect({shape:{x:m.x-y[3],y:m.y-y[0],width:m.width+y[1]+y[3],height:m[I]+y[0]+y[2]},style:_,silent:!0});n.subPixelOptimizeRect(x),a.add(x)}}})}),e("echarts/component/grid",[F,"../util/graphic",T,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),n=t(T);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new e.Rect({shape:t.coordinateSystem.getRect(),style:n.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/scale/Time",[F,T,"../util/number","../util/format","./Interval"],function(t){var e=t(T),n=t("../util/number"),i=t("../util/format"),r=t("./Interval"),a=r[S],o=Math.ceil,s=Math.floor,c=864e5,u=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][2]<e?n=r+1:i=r}return n},l=r[C]({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return i.formatTime(e[0],n)},niceExtent:function(t,e,i){var r=this._extent;if(r[0]===r[1]&&(r[0]-=c,r[1]+=c),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]-c}this.niceTicks(t,e,i);var u=this._interval;e||(r[0]=n.round(s(r[0]/u)*u)),i||(r[1]=n.round(o(r[1]/u)*u))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],r=i/t,a=h[M],c=u(h,r,0,a),l=h[Math.min(c,a-1)],f=l[2];if("year"===l[0]){var d=i/f,p=n.nice(d/t,!0);f*=p}var m=[o(e[0]/f)*f,s(e[1]/f)*f];this._stepLvl=l,this._interval=f,this._niceExtent=m},parse:function(t){return+n.parseDate(t)}});e.each([w,"normalize"],function(t){l[S][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,c],["week",7,7*c],["month",1,31*c],["quarter",3,380*c/4],["half-year",6,380*c/2],["year",1,380*c]];return l[b]=function(){return new l},l}),e("echarts/scale/Log",[F,T,"./Scale","../util/number","./Interval"],function(t){var e=t(T),n=t("./Scale"),i=t("../util/number"),r=t("./Interval"),a=n[S],o=r[S],s=Math.floor,c=Math.ceil,u=Math.pow,l=10,h=Math.log,f=n[C]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return i.round(u(l,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),u(l,t)},setExtent:function(t,e){t=h(t)/h(l),e=h(e)/h(l),o.setExtent.call(this,t,e)},getExtent:function(){var t=a.getExtent.call(this);return t[0]=u(l,t[0]),t[1]=u(l,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(l),t[1]=h(t[1])/h(l),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var r=u(10,s(h(n/t)/Math.LN10)),a=t/n*r;.5>=a&&(r*=10);var o=[i.round(c(e[0]/r)*r),i.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([w,"normalize"],function(t){f[S][t]=function(e){return e=h(e)/h(l),a[t].call(this,e)}}),f[b]=function(){return new f},f}),e("echarts/echarts",[F,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",T,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/number","./util/format","zrender/core/matrix","zrender/core/vector"],function(t){function e(t){return function(e,n,i){e=e&&e[_](),Q[S][t].call(this,e,n,i)}}function n(){Q.call(this)}function i(t,e,i){i=i||{},typeof e===y&&(e=le[e]),e&&J(ce,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=U.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio}),this._theme=X.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new F(this),this._coordSysMgr=new N,Q.call(this),this._messageCenter=new n,this._initEvents(),this[g]=X.bind(this[g],this)}function r(t,e){var n=this._model;n&&n.eachComponent({mainType:"series",query:e},function(i){var r=this._chartsMap[i.__viewId];r&&r.__alive&&r[t](i,n,this._api,e)},this)}function a(t,e,n){var i=this._api;J(this._componentsViews,function(r){var a=r.__model;r[t](a,e,i,n),R(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,i,n),R(r,a)},this)}function o(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,r=n?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<i[M];o++)i[o].__alive=!1;e[n?"eachComponent":"eachSeries"](function(t,o){if(n){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,c=r[s];if(!c){var u=V.parseClassType(o.type),l=n?H.getClass(u.main,u.sub):Z.getClass(u.sub);if(!l)return;c=new l,c.init(e,this._api),r[s]=c,i.push(c),a.add(c.group)}o.__viewId=s,c.__alive=!0,c.__id=s,c.__model=o},this);for(var o=0;o<i[M];){var s=i[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),i[p](o,1),delete r[s.__id])}}function s(t,e){J(K,function(n){J(se[n]||[],function(n){n(t,e)})})}function w(t){var e={};t.eachSeries(function(t){var n=t.get("stack"),i=t[d]();if(n&&"list"===i.type){var r=e[n];r&&(i.stackedOn=r),e[n]=i}})}function z(t,e){var n=this._api;J(oe,function(i){i(t,n,e)})}function L(t,e){J($,function(n){J(ue[n]||[],function(n){n(t,e)})})}function k(t,e){var n=this._api;J(this._componentsViews,function(i){var r=i.__model;i.render(r,t,n,e),R(r,i)},this),J(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(i){var r=this._chartsMap[i.__viewId];r.__alive=!0,r.render(i,t,n,e),R(i,r)},this),J(this._chartsViews,function(e){e.__alive||e.remove(t,n)},this)}function R(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){null!=n&&(t.z=n),null!=i&&(t.zlevel=i)})}function O(t){function e(t,e){for(var n=0;n<t[M];n++){var i=t[n];i[a]=e}}var n=0,i=1,r=2,a="__connectUpdateStatus";X.each(ae,function(o,s){t._messageCenter.on(s,function(o){if(fe[t.group]&&t[a]!==n){var s=t.makeActionFromEvent(o),c=[];for(var u in he){var l=he[u];l!==t&&l.group===t.group&&c.push(l)}e(c,n),J(c,function(t){t[a]!==i&&t.dispatchAction(s)}),e(c,r)}})})}var E=t("./model/Global"),F=t("./ExtensionAPI"),N=t("./CoordinateSystem"),G=t("./model/OptionManager"),V=t("./model/Component"),q=t("./model/Series"),H=t("./view/Component"),Z=t("./view/Chart"),W=t("./util/graphic"),U=t("zrender"),X=t(T),Y=t("zrender/tool/color"),j=t("zrender/core/env"),Q=t("zrender/mixin/Eventful"),J=X.each,$=["echarts","chart","component"],K=["transform",x,"statistic"];n[S].on=e("on"),n[S].off=e("off"),n[S].one=e("one"),X.mixin(n,Q);var te=i[S];te.getDom=function(){return this._dom},te.getZr=function(){return this._zr},te.setOption=function(t,e,n){(!this._model||e)&&(this._model=new E(null,null,this._theme,new G(this._api))),this._model.setOption(t,ce),ee.prepareAndUpdate.call(this),!n&&this._zr.refreshImmediately()},te.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},te[B]=function(){return this._model},te.getOption=function(){return this._model.getOption()},te[P]=function(){return this._zr[P]()},te[A]=function(){return this._zr[A]()},te.getRenderedCanvas=function(t){if(j.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return X.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},te.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;J(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return J(i,function(t){t.group.ignore=!1}),a},te.getConnectedDataURL=function(t){if(j.canvasSupported){var e=this.group,n=Math.min,i=Math.max,r=1/0;if(fe[e]){var a=r,o=r,s=-r,c=-r,u=[],l=t&&t.pixelRatio||1;for(var h in he){var f=he[h];if(f.group===e){var d=f.getRenderedCanvas(X.clone(t)),p=f.getDom().getBoundingClientRect();a=n(p.left,a),o=n(p.top,o),s=i(p.right,s),c=i(p[v],c),u.push({dom:d,left:p.left,top:p.top})}}a*=l,o*=l,s*=l,c*=l;var m=s-a,g=c-o,y=X.createCanvas();y.width=m,y[I]=g;var _=U.init(y);return J(u,function(t){var e=new W.Image({style:{x:t.left*l-a,y:t.top*l-o,image:t.dom}});_.add(e)}),_.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var ee={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr;if(e){e.restoreData(),i[b](this._model,this._api),s.call(this,e,n),w.call(this,e),i.update(e,n),z.call(this,e,t),L.call(this,e,t),k.call(this,e,t);var r=e.get("backgroundColor")||"transparent",a=this._zr.painter;if(a.isSingleCanvas&&a.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!j.canvasSupported){var o=Y.parse(r);r=Y.stringify(o,"rgb"),0===o[3]&&(r="transparent")}r=r,this._dom.style.backgroundColor=r}}},updateView:function(t){var e=this._model;e&&(z.call(this,e,t),L.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(L.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(z.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),ee.update.call(this,t)}};te[g]=function(){this._zr[g]();var t=this._model&&this._model.resetOption("media");ee[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX[g]()};var ne=t("./loading/default");te.showLoading=function(t,e){X[m](t)&&(e=t,t="default"),this.hideLoading();var n=ne(this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},te.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},te.makeActionFromEvent=function(t){var e=X[C]({},t);return e.type=ae[t.type],e},te.dispatchAction=function(t,e){var n=re[t.type];if(n){var i=n.actionInfo,r=i.update||"update",a=[t],o=!1;t.batch&&(o=!0,a=X.map(t.batch,function(e){return e=X.defaults(X[C]({},e),t),e.batch=null,e}));for(var s,c=[],u="highlight"===t.type||"downplay"===t.type,l=0;l<a[M];l++){var h=a[l];s=n.action(h,this._model),s=s||X[C]({},h),s.type=i.event||s.type,c.push(s),u&&ee[r].call(this,h)}"none"!==r&&!u&&ee[r].call(this,t),e||(s=o?{type:i.event||t.type,batch:c}:c[0],this._messageCenter.trigger(s.type,s))}},te.on=e("on"),te.off=e("off"),te.one=e("one");var ie=["click","dblclick","mouseover","mouseout","globalout"];te._initEvents=function(){var t=this._zr;J(ie,function(e){t.on(e,function(t){var n=this[B](),i=t[D];if(i&&null!=i.dataIndex){var r=i.hostModel||n.getSeriesByIndex(i.seriesIndex),a=r&&r.getDataParams(i.dataIndex)||{};a.event=t,a.type=e,this.trigger(e,a)}},this)},this),J(ae,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},te.isDisposed=function(){return this._disposed},te.clear=function(){this.setOption({},!0)},te.dispose=function(){this._disposed=!0;var t=this._api,e=this._model;J(this._componentsViews,function(n){n.dispose(e,t)}),J(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),he[this.id]=null},X.mixin(i,Q);var re=[],ae={},oe=[],se={},ce=[],ue={},le={},he={},fe={},de=new Date-0,pe=new Date-0,me="_echarts_instance_",ve={version:"3.1.4",dependencies:{zrender:"3.0.5"}};return ve.init=function(t,e,n){if(U.version[f](".","")-0<ve.dependencies.zrender[f](".","")-0)throw new Error("ZRender "+U.version+" is too old for ECharts "+ve.version+". Current version need ZRender "+ve.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new i(t,e,n);return r.id="ec_"+de++,he[r.id]=r,t.setAttribute&&t.setAttribute(me,r.id),O(r),r},ve.connect=function(t){if(X[h](t)){var e=t;t=null,X.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+pe++,X.each(e,function(e){e.group=t})}return fe[t]=!0,t},ve.disConnect=function(t){fe[t]=!1},ve.dispose=function(t){X.isDom(t)?t=ve.getInstanceByDom(t):typeof t===y&&(t=he[t]),t instanceof i&&!t.isDisposed()&&t.dispose()},ve.getInstanceByDom=function(t){var e=t.getAttribute(me);return he[e]},ve.getInstanceById=function(t){return he[t]},ve.registerTheme=function(t,e){le[t]=e},ve.registerPreprocessor=function(t){ce.push(t)},ve.registerProcessor=function(t,e){if(X[l](K,t)<0)throw new Error("stage should be one of "+K);var n=se[t]||(se[t]=[]);n.push(e)},ve.registerAction=function(t,e,n){typeof e===u&&(n=e,e="");var i=X[m](t)?t.type:[t,t={event:e}][0];t.event=(t.event||i)[_](),e=t.event,re[i]||(re[i]={action:n,actionInfo:t}),ae[e]=i},ve.registerCoordinateSystem=function(t,e){N.register(t,e)},ve.registerLayout=function(t){X[l](oe,t)<0&&oe.push(t)},ve.registerVisualCoding=function(t,e){if(X[l]($,t)<0)throw new Error("stage should be one of "+$);var n=ue[t]||(ue[t]=[]);n.push(e)},ve.extendChartView=function(t){return Z[C](t)},ve.extendComponentModel=function(t){return V[C](t)},ve.extendSeriesModel=function(t){return q[C](t)},ve.extendComponentView=function(t){return H[C](t)},ve.setCanvasCreator=function(t){X.createCanvas=t},ve.registerVisualCoding("echarts",X.curry(t("./visual/seriesColor"),"","itemStyle")),ve.registerPreprocessor(t("./preprocessor/backwardCompat")),ve.registerAction({type:"highlight",event:"highlight",update:"highlight"},X.noop),ve.registerAction({type:"downplay",event:"downplay",update:"downplay"},X.noop),ve.graphic=t("./util/graphic"),ve.number=t("./util/number"),ve.format=t("./util/format"),ve.matrix=t("zrender/core/matrix"),ve.vector=t("zrender/core/vector"),ve.util={},J(["map","each",x,l,c,"reduce",x,"bind","curry",h,"isString",m,"isFunction",C],function(t){ve.util[t]=X[t]}),ve}),e("echarts/chart/map/MapSeries",[F,"../../data/List","../../echarts","../../model/Series",T,"../../data/helper/completeDimensions","../../util/format","../helper/dataSelectableMixin"],function(t){function e(t,e){for(var n={},i=e.features,r=0;r<t[M];r++)n[t[r].name]=t[r];for(var r=0;r<i[M];r++){var a=i[r].properties.name;n[a]||t.push({value:0/0,name:a})}return t}var n=t("../../data/List"),i=t("../../echarts"),r=t("../../model/Series"),a=t(T),o=t("../../data/helper/completeDimensions"),c=t("../../util/format"),u=c.encodeHTML,l=c.addCommas,h=t("../helper/dataSelectableMixin"),f=r[C]({type:"series.map",needsDrawMap:!1,seriesGroup:[],init:function(t){t=this._fillOption(t),this[s]=t,f.superApply(this,"init",arguments),this.updateSelectedMap()},getInitialData:function(t){var e=o(["value"],t.data||[]),i=new n(e,this);return i.initData(t.data),i},mergeOption:function(t){t=this._fillOption(t),f.superCall(this,"mergeOption",t),this.updateSelectedMap()},_fillOption:function(t){t=a[C]({},t);var n=i.getMap(t.mapType),r=n&&n.geoJson;return r&&t.data&&(t.data=e(t.data,r)),t},setRoamZoom:function(t){var e=this[s].roamDetail;e&&(e.zoom=t)},setRoamPan:function(t,e){var n=this[s].roamDetail;n&&(n.x=t,n.y=e)},getRawValue:function(t){return this._data.get("value",t)},formatTooltip:function(t){for(var e=this._data,n=l(this.getRawValue(t)),i=e.getName(t),r=this.seriesGroup,a=[],o=0;o<r[M];o++)isNaN(r[o].getRawValue(t))||a.push(u(r[o].name));return a.join(", ")+"<br />"+i+" : "+n},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/coord/geo/geoCreator",[F,"./GeoModel","./Geo","../../util/layout",T,"../../echarts"],function(t){function e(t,e){var n=this[R](),i=t.getBoxLayoutParams();i.aspect=n.width/n[I]*.75;var r=a.getLayoutRect(i,{width:e[P](),height:e[A]()});this.setViewRect(r.x,r.y,r.width,r[I]);var o=t[B]("roamDetail"),s=o.get("x")||0,c=o.get("y")||0,u=o.get("zoom")||1;this.setPan(s,c),this.setZoom(u)}function n(t,e){s.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}function i(t){console.error("Map "+t+" not exists")}t("./GeoModel");var r=t("./Geo"),a=t("../../util/layout"),s=t(T),c={},u={dimensions:r[S].dimensions,create:function(t,a){var o=[];t.eachComponent("geo",function(t,s){var u=t.get("map"),l=c[u];l||i(u);var h=new r(u+s,u,l&&l.geoJson,l&&l.specialAreas,t.get("nameMap"));o.push(h),n(h,t),t.coordinateSystem=h,h.model=t,h[g]=e,h[g](t,a)}),t.eachSeries(function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=o[n]}});var u={};return t.eachSeriesByType("map",function(t){var e=t.get("map");u[e]=u[e]||[],u[e].push(t)}),s.each(u,function(t,u){var l=c[u];l||i(name);var h=s.map(t,function(t){return t.get("nameMap")}),f=new r(u,u,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));o.push(f),f[g]=e,f[g](t[0],a),s.each(t,function(t){t.coordinateSystem=f,n(f,t)})}),o},registerMap:function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),typeof e===y&&(e=typeof JSON!==o&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),c[t]={geoJson:e,specialAreas:n}},getMap:function(t){return c[t]}},l=t("../../echarts");l.registerMap=u.registerMap,l.getMap=u.getMap,l.loadMap=function(){},l.registerCoordinateSystem("geo",u)}),e("echarts/action/geoRoam",[F,T,"./roamHelper","../echarts"],function(t){var e=t(T),n=t("./roamHelper"),i=t("../echarts"),r={type:"geoRoam",event:"geoRoam",update:"updateLayout"};i.registerAction(r,function(t,i){var r=t.component||"series";i.eachComponent(r,function(i){if(i.name===t.name){var a=i.coordinateSystem;if("geo"!==a.type)return;var o=i[B]("roamDetail"),s=n.calcPanAndZoom(o,t);i.setRoamPan&&i.setRoamPan(s.x,s.y),i.setRoamZoom&&i.setRoamZoom(s.zoom),a&&a.setPan(s.x,s.y),a&&a.setZoom(s.zoom),"series"===r&&e.each(i.seriesGroup,function(t){t.setRoamPan(s.x,s.y),t.setRoamZoom(s.zoom)})}})})}),e("echarts/chart/map/mapVisual",[F],function(){return function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t[B]("itemStyle.normal"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e[M]];t[d]().setVisual({areaColor:i,color:r})})}}),e("echarts/chart/map/mapSymbolLayout",[F,T],function(t){var e=t(T);return function(t){var n={};t.eachSeriesByType("map",function(i){var r=i.get("mapType");if(!n[r]){var a={};e.each(i.seriesGroup,function(e){var n=e.coordinateSystem,i=e[d]();e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each("value",function(t,e){var r=i.getName(e),o=n.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,c=n.dataToPoint(o[L]);a[r]=s+1,i.setItemLayout(e,{point:c,offset:s})}})});var o=i[d]();o.each(function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!a[e],o.setItemLayout(t,n)}),n[r]=!0}})}}),e("echarts/chart/map/mapDataStatistic",[F,T],function(t){function e(t,e){for(var n={},i=["value"],r=0;r<t[M];r++)t[r].each(i,function(e,i){var a=t[r].getName(i);n[a]=n[a]||[],isNaN(e)||n[a].push(e)});return t[0].map(i,function(i,r){for(var a=t[0].getName(r),o=0,s=1/0,c=-1/0,u=n[a][M],l=0;u>l;l++)s=Math.min(s,n[a][l]),c=Math.max(c,n[a][l]),o+=n[a][l];var h;return h="min"===e?s:"max"===e?c:"average"===e?o/u:o,0===u?0/0:h})}var n=t(T);return function(t){var i={};t.eachSeriesByType("map",function(t){var e=t.get("map");i[e]=i[e]||[],i[e].push(t)}),n.each(i,function(t){var i=e(n.map(t,function(t){return t[d]()}),t[0].get("mapValueCalculation"));t[0].seriesGroup=[],t[0].setData(i);for(var r=0;r<t[M];r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r})}}),e("echarts/chart/map/MapView",[F,"../../util/graphic","../../component/helper/MapDraw","../../echarts"],function(t){var e=t("../../util/graphic"),n=t("../../component/helper/MapDraw");t("../../echarts").extendChartView({type:"map",render:function(t,e,i,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var a=this.group;if(a.removeAll(),r&&"geoRoam"===r.type&&"series"===r.component&&r.name===t.name){var o=this._mapDraw;o&&a.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new n(i,!0);a.add(o.group),o.draw(t,e,i,this),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},_renderSymbols:function(t){var n=t[d](),i=this.group;n.each("value",function(t,r){if(!isNaN(t)){var o=n.getItemLayout(r);if(o&&o.point){var s=o.point,c=o.offset,u=new e.Circle({style:{fill:n.getVisual("color")},shape:{cx:s[0]+9*c,cy:s[1],r:3},silent:!0,z2:10});if(!c){var l=n.getName(r),h=n.getItemModel(r),f=h[B]("label.normal"),d=h[B]("label.emphasis"),p=f[B](E),m=d[B](E),v=n.getItemGraphicEl(r);u.setStyle({textPosition:"bottom"});var g=function(){u.setStyle({text:d.get("show")?l:"",textFill:m.getTextColor(),textFont:m[O]()})},y=function(){u.setStyle({text:f.get("show")?l:"",textFill:p.getTextColor(),textFont:p[O]()})};v.on("mouseover",g).on("mouseout",y).on("emphasis",g).on(a,y),y()}i.add(u)}}})}})}),e("echarts/util/graphic",[F,T,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix","zrender/core/vector","zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","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","zrender/core/BoundingRect"],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,i=t.__hoverStl,r=_.lift;i.fill=i.fill||n&&(n instanceof w?n:r(n,-.1)),i.stroke=i.stroke||e&&(e instanceof w?e:r(e,-.1));var a={};for(var o in i)i.hasOwnProperty(o)&&(a[o]=t.style[o]);t.__normalStl=a,t.__hoverStlDirty=!1}t.setStyle(t.__hoverStl),t.z2+=1,t.__isHover=!0}}function n(t){if(t.__isHover){var e=t.__normalStl;e&&t.setStyle(e),t.z2-=1,t.__isHover=!1}}function i(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&e(t)}):e(t)}function o(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&n(t)}):n(t)}function s(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0}function c(){!this.__isEmphasis&&i(this)}function u(){!this.__isEmphasis&&o(this)}function h(){this.__isEmphasis=!0,i(this)}function f(){this.__isEmphasis=!1,o(this)}function d(t,e,n,i,r){var a=t?"Update":"",o=i&&i.getShallow("animationDuration"+a),s=i&&i.getShallow("animationEasing"+a);i&&i.getShallow("animation")?e.animateTo(n,o,s,r):(e.attr(n),r&&r())}var p=t(T),m=t("zrender/tool/path"),g=Math.round,y=t("zrender/graphic/Path"),_=t("zrender/tool/color"),x=t("zrender/core/matrix"),b=t("zrender/core/vector"),w=t("zrender/graphic/Gradient"),M={};return M.Group=t("zrender/container/Group"),M.Image=t("zrender/graphic/Image"),M.Text=t("zrender/graphic/Text"),M.Circle=t("zrender/graphic/shape/Circle"),M.Sector=t("zrender/graphic/shape/Sector"),M.Ring=t("zrender/graphic/shape/Ring"),M.Polygon=t("zrender/graphic/shape/Polygon"),M.Polyline=t("zrender/graphic/shape/Polyline"),M.Rect=t("zrender/graphic/shape/Rect"),M.Line=t("zrender/graphic/shape/Line"),M.BezierCurve=t("zrender/graphic/shape/BezierCurve"),M.Arc=t("zrender/graphic/shape/Arc"),M.LinearGradient=t("zrender/graphic/LinearGradient"),M.RadialGradient=t("zrender/graphic/RadialGradient"),M.BoundingRect=t("zrender/core/BoundingRect"),M.extendShape=function(t){return y[C](t)},M.extendPath=function(t,e){return m.extendFromString(t,e)},M.makePath=function(t,e,n,i){var r=m.createFromString(t,e),a=r[R]();if(n){var o=a.width/a[I];if(i===L){var s,c=n[I]*o;c<=n.width?s=n[I]:(c=n.width,s=c/o);var u=n.x+n.width/2,l=n.y+n[I]/2;n.x=u-c/2,n.y=l-s/2,n.width=c,n[I]=s}this.resizePath(r,n)}return r},M.mergePath=m.mergePath,M.resizePath=function(t,e){if(t[r]){var n=t[R](),i=n.calculateTransform(e);t[r](i)}},M.subPixelOptimizeLine=function(t){var e=M.subPixelOptimize,n=t.shape,i=t.style.lineWidth;return g(2*n.x1)===g(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),g(2*n.y1)===g(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},M.subPixelOptimizeRect=function(t){var e=M.subPixelOptimize,n=t.shape,i=t.style.lineWidth,r=n.x,a=n.y,o=n.width,s=n[I];return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(r+o,i,!1)-n.x,0===o?0:1),n[I]=Math.max(e(a+s,i,!1)-n.y,0===s?0:1),t},M.subPixelOptimize=function(t,e,n){var i=g(2*t);return(i+g(e))%2===0?i/2:(i+(n?1:-1))/2},M.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t,e)}):s(t,e),t.on("mouseover",c).on("mouseout",u),t.on("emphasis",h).on(a,f)},M.setText=function(t,e,n){var i=e.getShallow(z)||"inside",r=i[l]("inside")>=0?"white":n,a=e[B](E);p[C](t,{textDistance:e.getShallow("distance")||5,textFont:a[O](),textPosition:i,textFill:a.getTextColor()||r})},M.updateProps=p.curry(d,!0),M.initProps=p.curry(d,!1),M.getTransform=function(t,e){for(var n=x.identity([]);t&&t!==e;)x.mul(n,t.getLocalTransform(),n),t=t.parent;return n},M[r]=function(t,e,n){return n&&(e=x.invert([],e)),b[r]([],t,e)},M.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-a:t===v?a:0];return o=M[r](o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?v:"top"},M}),e("echarts/chart/map/backwardCompat",[F,T],function(t){function e(t){var e={};return n.each(i,function(n){null!=t[n]&&(e[n]=t[n])}),e}var n=t(T),i=["x","y","x2","y2","width",I,"map","roam","roamDetail","label","itemStyle"],r={};return function(t){var i=[];n.each(t.series,function(t){"map"===t.type&&i.push(t),n[C](r,t.geoCoord)});var a={};n.each(i,function(i){if(i.map=i.map||i.mapType,n.defaults(i,i.mapLocation),i.markPoint){var o=i.markPoint;if(o.data=n.map(o.data,function(t){if(!n[h](t.value)){var e;t.geoCoord?e=t.geoCoord:t.name&&(e=r[t.name]);var i=e?[e[0],e[1]]:[0/0,0/0];null!=t.value&&i.push(t.value),t.value=i}return t}),!i.data||!i.data[M]){t.geo||(t.geo=[]);var s=a[i.map];s||(s=a[i.map]=e(i),t.geo.push(s));var c=i.markPoint;c.type=t.effect&&t.effect.show?"effectScatter":"scatter",c.coordinateSystem="geo",c.geoIndex=n[l](t.geo,s),c.name=i.name,t.series[p](n[l](t.series,i),1,c)}}})}}),e("echarts/action/createDataSelectAction",[F,"../echarts",T],function(t){var e=t("../echarts"),n=t(T);return function(t,i){n.each(i,function(n){n.update="updateView",e.registerAction(n,function(e,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:e},function(t){t[n.method]&&t[n.method](e.name);var i=t[d]();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/util/layout",[F,T,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(c,u){var l,h,f=c[z],d=c[R](),p=e.childAt(u+1),m=p&&p[R]();if("horizontal"===t){var v=d.width+(m?-m.x+d.x:0);l=a+v,l>i||c.newline?(a=0,l=v,o+=s+n,s=d[I]):s=Math.max(s,d[I])}else{var g=d[I]+(m?-m.y+d.y:0);h=o+g,h>r||c.newline?(a+=s+n,o=0,h=g,s=d.width):s=Math.max(s,d.width)}c.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=l+n:o=h+n)})}var n=t(T),i=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=n.each,c={},u=["left","right","top",v,"width",I];return c.box=e,c.vbox=n.curry(e,"vertical"),c.hbox=n.curry(e,"horizontal"),c.getAvailableSize=function(t,e,n){var i=e.width,r=e[I],s=o(t.x,i),c=o(t.y,r),u=o(t.x2,i),l=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(c)||isNaN(parseFloat(t.y)))&&(c=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),n=a.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(l-c-n[0]-n[2],0)}
- },c.getLayoutRect=function(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e[I],c=o(t.left,r),u=o(t.top,s),l=o(t.right,r),h=o(t[v],s),f=o(t.width,r),d=o(t[I],s),p=n[2]+n[0],m=n[1]+n[3],g=t.aspect;switch(isNaN(f)&&(f=r-l-m-c),isNaN(d)&&(d=s-h-p-u),isNaN(f)&&isNaN(d)&&(g>r/s?f=.8*r:d=.8*s),null!=g&&(isNaN(f)&&(f=g*d),isNaN(d)&&(d=f/g)),isNaN(c)&&(c=r-l-f-m),isNaN(u)&&(u=s-h-d-p),t.left||t.right){case L:c=r/2-f/2-n[3];break;case"right":c=r-f-m}switch(t.top||t[v]){case k:case L:u=s/2-d/2-n[0];break;case v:u=s-d-p}c=c||0,u=u||0,isNaN(f)&&(f=r-c-(l||0)),isNaN(d)&&(d=s-u-(h||0));var y=new i(c+n[3],u+n[0],f,d);return y.margin=n,y},c.positionGroup=function(t,e,i,r){var a=t[R]();e=n[C](n.clone(e),{width:a.width,height:a[I]}),e=c.getLayoutRect(e,i,r),t[z]=[e.x-a.x,e.y-a.y]},c.mergeLayoutParam=function(t,e,i){function r(n){var r={},c=0,u={},l=0,h=i.ignoreSize?1:2;if(s(n,function(e){u[e]=t[e]}),s(n,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&c++,o(u,t)&&l++}),l!==h&&c){if(c>=h)return r;for(var f=0;f<n[M];f++){var d=n[f];if(!a(r,d)&&a(t,d)){r[d]=t[d];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 c(t,e,n){s(t,function(t){e[t]=n[t]})}!n[m](i)&&(i={});var u=["width","left","right"],l=[I,"top",v],h=r(u),f=r(l);c(u,t,h),c(l,t,f)},c.getLayoutParams=function(t){return c.copyLayoutParams({},t)},c.copyLayoutParams=function(t,e){return e&&t&&s(u,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t},c}),e("echarts/coord/cartesian/Grid",[F,"exports","../../util/layout","../../coord/axisHelper",T,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,n){return n.getComponent("grid",t.get("gridIndex"))===e}function n(t){var e,n=t.model,i=n.getFormattedLabels(),r=1,a=i[M];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=n.getTextRect(i[o]);e?e.union(s):e=s}return e}function r(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this._model=t}function a(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var o=t("../../util/layout"),s=t("../../coord/axisHelper"),c=t(T),u=t("./Cartesian2D"),l=t("./Axis2D"),h=c.each,f=s.ifAxisCrossZero,p=s.niceScaleExtent;t("./GridModel");var m=r[S];return m.type="grid",m.getRect=function(){return this._rect},m.update=function(t,e){function n(t){var e=i[t];for(var n in e){var r=e[n];if(r&&("category"===r.type||!f(r)))return!0}return!1}var i=this._axesMap;this._updateScale(t,this._model),h(i.x,function(t){p(t,t.model)}),h(i.y,function(t){p(t,t.model)}),h(i.x,function(t){n("y")&&(t.onZero=!1)}),h(i.y,function(t){n("x")&&(t.onZero=!1)}),this[g](this._model,e)},m[g]=function(t,e){function i(){h(s,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r[I]],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),a(t,e?r.x:r.y)})}var r=o.getLayoutRect(t.getBoxLayoutParams(),{width:e[P](),height:e[A]()});this._rect=r;var s=this._axesList;i(),t.get("containLabel")&&(h(s,function(t){if(!t.model.get("axisLabel.inside")){var e=n(t);if(e){var i=t.isHorizontal()?I:"width",a=t.model.get("axisLabel.margin");r[i]-=e[i]+a,"top"===t[z]?r.y+=e[I]+a:"left"===t[z]&&(r.x+=e.width+a)}}}),i())},m.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)return n[i];return n[e]}},m.getCartesian=function(t,e){var n="x"+t+"y"+e;return this._coordsMap[n]},m._initCartesian=function(t,n){function i(i){return function(c,u){if(e(c,t,n)){var h=c.get(z);"x"===i?("top"!==h&&h!==v&&(h=v),r[h]&&(h="top"===h?v:"top")):("left"!==h&&"right"!==h&&(h="left"),r[h]&&(h="left"===h?"right":"left")),r[h]=!0;var f=new l(i,s.createScaleByModel(c),[0,0],c.get("type"),h),d="category"===f.type;f.onBand=d&&c.get("boundaryGap"),f.inverse=c.get("inverse"),f.onZero=c.get("axisLine.onZero"),c.axis=f,f.model=c,f.index=u,this._axesList.push(f),a[i][u]=f,o[i]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},o={x:0,y:0};return n.eachComponent("xAxis",i("x"),this),n.eachComponent("yAxis",i("y"),this),o.x&&o.y?(this._axesMap=a,void h(a.x,function(t,e){h(a.y,function(n,i){var r="x"+e+"y"+i,a=new u(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(n)},this)},this)):(this._axesMap={},void(this._axesList=[]))},m._updateScale=function(t,n){function r(t,e,n){h(n.coordDimToDataDim(e.dim),function(n){e.scale.unionExtent(t.getDataExtent(n,e.scale.type!==i))})}c.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(i){if("cartesian2d"===i.get("coordinateSystem")){var a=i.get("xAxisIndex"),o=i.get("yAxisIndex"),s=t.getComponent("xAxis",a),c=t.getComponent("yAxis",o);if(!e(s,n,t)||!e(c,n,t))return;var u=this.getCartesian(a,o),l=i[d](),h=u.getAxis("x"),f=u.getAxis("y");"list"===l.type&&(r(l,h,i),r(l,f,i))}},this)},r[b]=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o[g](i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get("coordinateSystem")){var i=e.get("xAxisIndex"),r=t.getComponent("xAxis",i),a=n[r.get("gridIndex")];e.coordinateSystem=a.getCartesian(i,e.get("yAxisIndex"))}}),n},r.dimensions=u[S].dimensions,t("../../CoordinateSystem").register("cartesian2d",r),r}),e(T,[F,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var n=t;if(t instanceof Array){n=[];for(var i=0,r=t[M];r>i;i++)n[i]=e(t[i])}else if(!A(t)&&!P(t)){n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=e(t[a]))}return n}return t}function i(t,n,r){if(!k(n)||!k(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!k(s)||!k(o)||T(s)||T(o)||P(s)||P(o)||A(s)||A(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function r(t,e){for(var n=t[0],r=1,a=t[M];a>r;r++)n=i(n,t[r],e);return n}function a(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function o(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function s(){return document.createElement("canvas")}function c(){return O||(O=W.createCanvas()[n]("2d")),O}function h(t,e){if(t){if(t[l])return t[l](e);for(var n=0,i=t[M];i>n;n++)if(t[n]===e)return n}return-1}function f(t,e){function n(){}var i=t[S];n[S]=e[S],t[S]=new n;for(var r in i)t[S][r]=i[r];t[S].constructor=t,t.superClass=e}function d(t,e,n){t=S in t?t[S]:t,e=S in e?e[S]:e,o(t,e,n)}function p(t){return t?typeof t==y?!1:"number"==typeof t[M]:void 0}function m(t,e,n){if(t&&e)if(t.forEach&&t.forEach===G)t.forEach(e,n);else if(t[M]===+t[M])for(var i=0,r=t[M];r>i;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function v(t,e,n){if(t&&e){if(t.map&&t.map===H)return t.map(e,n);for(var i=[],r=0,a=t[M];a>r;r++)i.push(e.call(n,t[r],r,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===Z)return t.reduce(e,n,i);for(var r=0,a=t[M];a>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(t&&e){if(t[x]&&t[x]===V)return t[x](e,n);for(var i=[],r=0,a=t[M];a>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function b(t,e,n){if(t&&e)for(var i=0,r=t[M];r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function w(t,e){var n=q.call(arguments,2);return function(){return t.apply(e,n.concat(q.call(arguments)))}}function C(t){var e=q.call(arguments,1);return function(){return t.apply(this,e.concat(q.call(arguments)))}}function T(t){return"[object Array]"===F.call(t)}function z(t){return typeof t===u}function L(t){return"[object String]"===F.call(t)}function k(t){var e=typeof t;return e===u||!!t&&"object"==e}function A(t){return!!B[F.call(t)]||t instanceof E}function P(t){return t&&1===t.nodeType&&typeof t.nodeName==y}function D(){for(var t=0,e=arguments[M];e>t;t++)if(null!=arguments[t])return arguments[t]}function I(){return Function.call.apply(q,arguments)}function R(t,e){if(!t)throw new Error(e)}var O,E=t("../graphic/Gradient"),B={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},F=Object[S].toString,N=Array[S],G=N.forEach,V=N[x],q=N.slice,H=N.map,Z=N.reduce,W={inherits:f,mixin:d,clone:e,merge:i,mergeAll:r,extend:a,defaults:o,getContext:c,createCanvas:s,indexOf:h,slice:I,find:b,isArrayLike:p,each:m,map:v,reduce:g,filter:_,bind:w,curry:C,isArray:T,isString:L,isObject:k,isFunction:z,isBuildInObject:A,isDom:P,retrieve:D,assert:R,noop:function(){}};return W}),e("echarts/component/axis",[F,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/util/format",[F,T,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][f](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[M]>1?"."+t[1]:""))}function n(t){return t[_]()[f](/-(.)/g,function(t,e){return e.toUpperCase()})}function i(t){var e=t[M];return"number"==typeof t?[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)[f](/&/g,"&")[f](/</g,"<")[f](/>/g,">")[f](/"/g,""")[f](/'/g,"'")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){u[h](e)||(e=[e]);var n=e[M];if(!n)return"";for(var i=e[0].$vars,r=0;r<i[M];r++){var o=d[r];t=t[f](a(o),a(o,0))}for(var s=0;n>s;s++)for(var c=0;c<i[M];c++)t=t[f](a(d[c],s),e[s][i[c]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=l.parseDate(e),i=n.getFullYear(),r=n.getMonth()+1,a=n.getDate(),o=n.getHours(),s=n.getMinutes(),u=n.getSeconds();return t=t[f]("MM",c(r))[_]()[f]("yyyy",i)[f]("yy",i%100)[f]("dd",c(a))[f]("d",a)[f]("hh",c(o))[f]("h",o)[f]("mm",c(s))[f]("m",s)[f]("ss",c(u))[f]("s",u)}function c(t){return 10>t?"0"+t:t}var u=t(T),l=t("./number"),d=["a","b","c","d","e","f","g"];return{normalizeCssArray:i,addCommas:e,toCamelCase:n,encodeHTML:r,formatTpl:o,formatTime:s}}),e("echarts/util/number",[F],function(){function t(t){return t[f](/^\s+/,"")[f](/\s+$/,"")}var e={},n=1e-4;return e.linearMap=function(t,e,n,i){var r=e[1]-e[0];if(0===r)return(n[0]+n[1])/2;var a=(t-e[0])/r;return i&&(a=Math.min(Math.max(a,0),1)),a*(n[1]-n[0])+n[0]},e.parsePercent=function(e,n){switch(e){case L:case k:e="50%";break;case"left":case"top":e="0%";break;case"right":case v:e="100%"}return typeof e===y?t(e).match(/%$/)?parseFloat(e)/100*n:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(12)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i);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>-n&&n>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===y?t[f](/-/g,"/"):Math.round(t))},e.nice=function(t,e){var n,i=Math.floor(Math.log(t)/Math.LN10),r=Math.pow(10,i),a=t/r;return n=e?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,n*r},e}),e("echarts/scale/Scale",[F,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var n=t("../util/clazz"),i=e[S];return i.parse=function(t){return t},i[w]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},i.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},i.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},i.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},i.getExtent=function(){return this._extent.slice()},i.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},i.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n<e[M];n++)t.push(this.getLabel(e[n]));return t},n.enableClassExtend(e),n.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/scale/Interval",[F,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),n=t("../util/format"),i=t("./Scale"),r=Math.floor,a=Math.ceil,o=i[C]({type:"interval",_interval:0,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[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[S].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,n=this._extent,i=[],r=1e4;if(t){var a=this._niceExtent;n[0]<a[0]&&i.push(n[0]);for(var o=a[0];o<=a[1];)if(i.push(o),o=e.round(o+t),i[M]>r)return[];n[1]>a[1]&&i.push(n[1])}return i},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n<e[M];n++)t.push(this.getLabel(e[n]));return t},getLabel:function(t){return n.addCommas(t)},niceTicks:function(t){t=t||5;var n=this._extent,i=n[1]-n[0];if(isFinite(i)){0>i&&(i=-i,n.reverse());var o=e.nice(i/t,!0),s=[e.round(a(n[0]/o)*o),e.round(r(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,n,i){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;var c=o[1]-o[0];isFinite(c)||(o[0]=0,o[1]=1),this.niceTicks(t);var u=this._interval;n||(o[0]=e.round(r(o[0]/u)*u)),i||(o[1]=e.round(a(o[1]/u)*u))}});return o[b]=function(){return new o},o}),e("echarts/model/Global",[F,T,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var n in e)L.hasClass(n)||("object"==typeof e[n]?t[n]=t[n]?d.merge(t[n],e[n],!1):d.clone(e[n]):null==t[n]&&(t[n]=e[n]))}function n(t){t=t,this[s]={},this[s][A]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[s]),d.merge(t,k,!1),this.mergeOption(t)}function i(t,e){d[h](e)||(e=e?[e]:[]);var n={};return y(e,function(e){n[e]=(t[e]||[]).slice()}),n}function r(t,e){var n={};y(e,function(t){var e=t.exist;e&&(n[e.id]=t)}),y(e,function(e){var i=e[s];if(d.assert(!i||null==i.id||!n[i.id]||n[i.id]===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(n[i.id]=e),z(i)){var r=a(t,i,e.exist);e.keyInfo={mainType:t,subType:r}}}),y(e,function(t){var e=t.exist,i=t[s],r=t.keyInfo;if(z(i)){if(r.name=null!=i.name?i.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=i.id)r.id=i.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(n[r.id])}n[r.id]=t}})}function a(t,e,n){var i=e.type?e.type:n?n.subType:L.determineSubType(t,e);return i}function o(t){return b(t,function(t){return t.componentIndex})||[]}function c(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t.subType===e.subType}):t}function f(t){if(!t._seriesIndices)throw new Error("Series has not been initialized yet.")}var d=t(T),v=t("../util/model"),g=t("./Model"),y=d.each,_=d[x],b=d.map,w=d[h],S=d[l],z=d[m],L=t("./Component"),k=t("./globalDefault"),A="\x00_ec_inner",P=g[C]({constructor:P,init:function(t,e,n,i){n=n||{},this[s]=null,this._theme=new g(n),this._optionManager=i},setOption:function(t,e){d.assert(!(A in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this[s]&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):n.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o[M]&&y(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,c){var u=v.normalizeToArray(t[e]),l=v.mappingToExists(a[e],u);r(e,l);var h=i(a,c);n[e]=[],a[e]=[],y(l,function(t,i){var r=t.exist,o=t[s];if(d.assert(z(o)||r,"Empty component definition"),o){var c=L.getClass(e,t.keyInfo.subType,!0);r&&r instanceof c?(r.mergeOption(o,this),r.optionUpdated(this)):(r=new c(o,this,this,d[C]({dependentModels:h,componentIndex:i},t.keyInfo)),r.optionUpdated(this))}else r.mergeOption({},this),r.optionUpdated(this);a[e][i]=r,n[e][i]=r[s]},this),"series"===e&&(this._seriesIndices=o(a.series))}var n=this[s],a=this._componentsMap,c=[];y(t,function(t,e){null!=t&&(L.hasClass(e)?c.push(e):n[e]=null==n[e]?d.clone(t):d.merge(n[e],t,!0))}),L.topologicalTravel(c,L.getAllClassMainTypes(),e,this)},getOption:function(){var t=d.clone(this[s]);return y(t,function(e,n){if(L.hasClass(n)){for(var e=v.normalizeToArray(e),i=e[M]-1;i>=0;i--)v.isIdInner(e[i])&&e[p](i,1);t[n]=e}}),delete t[A],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap[t];return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[M])return[];var o;if(null!=n)w(n)||(n=[n]),o=_(b(n,function(t){return a[t]}),function(t){return!!t});else if(null!=i){var s=w(i);o=_(a,function(t){return s&&S(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var u=w(r);o=_(a,function(t){return u&&S(r,t.name)>=0||!u&&t.name===r})}return c(o,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(n)||t.hasOwnProperty(i))?{mainType:r,index:t[e],id:t[n],name:t[i]}:null}function n(e){return t[x]?_(e,t[x]):e}var i=t.query,r=t.mainType,a=e(i),o=a?this.queryComponents(a):this._componentsMap[r];return n(c(o,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if(typeof t===u)n=e,e=t,y(i,function(t,i){y(t,function(t,r){e.call(n,i,t,r)})});else if(d.isString(t))y(i[t],e,n);else if(z(t)){var r=this.findComponents(t);y(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.series;return _(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return _(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){f(this),y(this._seriesIndices,function(n){var i=this._componentsMap.series[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){y(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,n){f(this),y(this._seriesIndices,function(i){var r=this._componentsMap.series[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return y(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return f(this),d[l](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){f(this);var n=_(this._componentsMap.series,t,e);this._seriesIndices=o(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];y(t,function(t,n){e.push(n)}),L.topologicalTravel(e,L.getAllClassMainTypes(),function(e){y(t[e],function(t){t.restoreData()})})}});return P}),e("echarts/CoordinateSystem",[F],function(){function t(){this._coordinateSystems=[]}var e={};return t[S]={constructor:t,create:function(t,n){var i=[];for(var r in e){var a=e[r][b](t,n);a&&(i=i.concat(a))}this._coordinateSystems=i},update:function(t,e){for(var n=this._coordinateSystems,i=0;i<n[M];i++)n[i].update&&n[i].update(t,e)}},t.register=function(t,n){e[t]=n},t.get=function(t){return e[t]},t}),e("echarts/ExtensionAPI",[F,T],function(t){function e(t){n.each(i,function(e){this[e]=n.bind(t[e],t)},this)}var n=t(T),i=["getDom","getZr",P,A,"dispatchAction","on","off","getDataURL","getConnectedDataURL",B,"getOption"];return e}),e("echarts/model/Component",[F,"./Model",T,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return i.each(u.getClassesByMainType(t),function(t){r.apply(e,t[S].dependencies||[])}),i.map(e,function(t){return o.parseClassType(t).main})}var n=t("./Model"),i=t(T),r=Array[S].push,a=t("../util/component"),o=t("../util/clazz"),c=t("../util/layout"),u=n[C]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this.mergeDefaultAndTheme(this[s],this.ecModel)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?c.getLayoutParams(t):{},a=e.getTheme();i.merge(t,a.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&c.mergeLayoutParam(t,r,n)},mergeOption:function(t){i.merge(this[s],t,!0);var e=this.layoutMode;e&&c.mergeLayoutParam(this[s],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var n=e[S].defaultOption;n&&t.push(n),e=e.superClass}for(var r={},a=t[M]-1;a>=0;a--)r=i.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(u,function(t,e,n,r){i[C](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),i.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/view/Component",[F,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),n=t("../util/component"),i=t("../util/clazz"),r=function(){this.group=new e,this.uid=n.getUID("viewComponent")};r[S]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[S];return a.updateView=a.updateLayout=a.updateVisual=function(){},i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/model/OptionManager",[F,T,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newOptionBackup}function n(t,e){var n,i,r=[],a=[],o=t.timeline;if(t.baseOption&&(i=t.baseOption),(o||t.options)&&(i=i||{},r=(t.options||[]).slice()),t.media){i=i||{};var u=t.media;h(u,function(t){t&&t[s]&&(t.query?a.push(t):n||(n=t))})}return i||(i=t),i.timeline||(i.timeline=o),h([i].concat(r).concat(c.map(a,function(t){return t[s]})),function(t){h(e,function(e){e(t)})}),{baseOption:i,timelineOptions:r,mediaDefault:n,mediaList:a}}function i(t,e,n){var i={width:e,height:n,aspectratio:e/n},a=!0;return c.each(t,function(t,e){var n=e.match(m);if(n&&n[1]&&n[2]){var o=n[1],s=n[2][_]();r(i[s],t,o)||(a=!1)}}),a}function r(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},h(e,function(e,n){if(null!=e){var i=t[n];if(l.hasClass(n)){e=u.normalizeToArray(e),i=u.normalizeToArray(i);var r=u.mappingToExists(i,e);t[n]=d(r,function(t){return t[s]&&t.exist?p(t.exist,t[s],!0):t.exist||t[s]})}else t[n]=p(i,e,!0)}})}var c=t(T),u=t("../util/model"),l=t("./Component"),h=c.each,f=c.clone,d=c.map,p=c.merge,m=/^(min|max)?(.+)$/;return e[S]={constructor:e,setOption:function(t,e){t=f(t,!0);var i=this._optionBackup,r=this._newOptionBackup=n.call(this,t,e);i?(o(i.baseOption,r.baseOption),r.timelineOptions[M]&&(i.timelineOptions=r.timelineOptions),r.mediaList[M]&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=t?this._optionBackup:this._newOptionBackup;return this._timelineOptions=d(e.timelineOptions,f),this._mediaList=d(e.mediaList,f),this._mediaDefault=f(e.mediaDefault),this._currentMediaIndices=[],f(e.baseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n[M]){var i=t.getComponent("timeline");i&&(e=f(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[P](),e=this._api[A](),n=this._mediaList,r=this._mediaDefault,o=[],c=[];if(!n[M]&&!r)return c;for(var u=0,l=n[M];l>u;u++)i(n[u].query,t,e)&&o.push(u);return!o[M]&&r&&(o=[-1]),o[M]&&!a(o,this._currentMediaIndices)&&(c=d(o,function(t){return f(-1===t?r[s]:n[t][s])})),this._currentMediaIndices=o,c}},e}),e("echarts/model/Series",[F,T,"../util/format","../util/model","./Component"],function(t){var e=t(T),n=t("../util/format"),i=t("../util/model"),r=t("./Component"),a=n.encodeHTML,o=n.addCommas,c=r[C]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,n){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,n),this._dataBeforeProcessed=this.getInitialData(t,n),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,n){e.merge(t,n.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),i.defaultEmphasis(t.label,[z,"show",E,"distance","formatter"]);for(var r=t.data||[],a=0;a<r[M];a++)r[a]&&r[a].label&&i.defaultEmphasis(r[a].label,[z,"show",E,"distance","formatter"])},mergeOption:function(t,n){t=e.merge(this[s],t,!0);var i=this.getInitialData(t,n);i&&(this._data=i,this._dataBeforeProcessed=i.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this[s].data},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,n){var i=this._data,r=this.getRawValue(t),s=e[h](r)?e.map(r,o).join(", "):o(r),c=i.getName(t),u=i.getItemVisual(t,"color"),l='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+u+'"></span>';return n?l+a(this.name)+" : "+s:a(this.name)+"<br />"+l+(c?a(c)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(c,i.dataFormatMixin),c}),e("zrender/zrender",[F,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete u[t]}var n=t("./core/guid"),i=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!i.canvasSupported,c={canvas:t("./Painter")},u={},l={};l.version="3.0.5",l.init=function(t,e){var i=new h(n(),t,e);return u[i.id]=i,i},l.dispose=function(t){if(t)t.dispose();else{for(var e in u)u[e].dispose();u={}}return l},l.getInstance=function(t){return u[t]},l.registerPainter=function(t,e){c[t]=e};var h=function(t,e,n){n=n||{},this.dom=e,this.id=t;var u=this,l=new a,h=n.renderer;if(s){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&c[h]||(h="canvas");var f=new c[h](e,l,n);this.storage=l,this.painter=f,i.node||(this.handler=new r(f.getViewportRoot(),l,f)),this.animation=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately()}}}),this.animation.start(),this._needsRefresh;var d=l.delFromMap,p=l.addToMap;l.delFromMap=function(t){var e=l.get(t);d.call(l,t),e&&e.removeSelfFromZr(u)},l.addToMap=function(t){p.call(l,t),t.addSelfToZr(u)}};return h[S]={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[g](),this.handler&&this.handler[g]()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter[P]()},getHeight:function(){return this.painter[A]()},toDataURL:function(t,e,n){return this.painter.toDataURL(t,e,n)},pathToImage:function(t,e,i){var r=n();return this.painter.pathToImage(r,t,e,i)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,n){this.handler&&this.handler.on(t,e,n)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e(this.id)}},l}),e("echarts/view/Chart",[F,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=o.getUID("viewChart")}function n(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i<t.childCount();i++)n(t.childAt(i),e)}function i(t,e,i){if(null!=e.dataIndex){var r=t.getItemGraphicEl(e.dataIndex);n(r,i)}else if(e.name){var a=t.indexOfName(e.name),r=t.getItemGraphicEl(a);n(r,i)}else t.eachItemGraphicEl(function(t){n(t,i)})}var r=t("zrender/container/Group"),o=t("../util/component"),s=t("../util/clazz");e[S]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,n,r){i(t[d](),r,"emphasis")},downplay:function(t,e,n,r){i(t[d](),r,a)},remove:function(){this.group.removeAll()},dispose:function(){}};var c=e[S];return c.updateView=c.updateLayout=c.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},s.enableClassExtend(e),s.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("zrender/core/env",[],function(){function t(t){var e={},i={},r=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),c=!o&&t.match(/(iPhone\sOS)\s([\d_]+)/),u=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),l=u&&t.match(/TouchPad/),h=t.match(/Kindle\/([\d.]+)/),d=t.match(/Silk\/([\d._]+)/),p=t.match(/(BlackBerry).*Version\/([\d.]+)/),m=t.match(/(BB10).*Version\/([\d.]+)/),v=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),g=t.match(/PlayBook/),y=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),_=t.match(/Firefox\/([\d.]+)/),x=r&&t.match(/Mobile\//)&&!y,b=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!y,w=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),M=t.match(/Edge\/([\d.]+)/);return(i.webkit=!!r)&&(i.version=r[1]),a&&(e.android=!0,e.version=a[2]),c&&!s&&(e.ios=e.iphone=!0,e.version=c[2][f](/_/g,".")),o&&(e.ios=e.ipad=!0,e.version=o[2][f](/_/g,".")),s&&(e.ios=e.ipod=!0,e.version=s[3]?s[3][f](/_/g,"."):null),u&&(e.webos=!0,e.version=u[2]),l&&(e.touchpad=!0),p&&(e.blackberry=!0,e.version=p[2]),m&&(e.bb10=!0,e.version=m[2]),v&&(e.rimtabletos=!0,e.version=v[2]),g&&(i.playbook=!0),h&&(e.kindle=!0,e.version=h[1]),d&&(i.silk=!0,i.version=d[1]),!d&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),y&&(i.chrome=!0,i.version=y[1]),_&&(i.firefox=!0,i.version=_[1]),w&&(i.ie=!0,i.version=w[1]),x&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),b&&(i.webview=!0),w&&(i.ie=!0,i.version=w[1]),M&&(i.edge=!0,i.version=M[1]),e.tablet=!!(o||g||a&&!t.match(/Mobile/)||_&&t.match(/Tablet/)||w&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(a||c||u||p||m||y&&t.match(/Android/)||y&&t.match(/CriOS\/([\d.]+)/)||_&&t.match(/Mobile/)||w&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document.createElement("canvas")[n]?!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===o?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/tool/color",[F],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 n(t){return 0>t?0:t>1?1:t}function i(e){return t(e[M]&&"%"===e.charAt(e[M]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return n(t[M]&&"%"===t.charAt(t[M]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function o(t,e,n){return t+(e-t)*n}function s(t){if(t){t+="";var e=t[f](/ /g,"")[_]();if(e in b)return b[e].slice();if("#"!==e.charAt(0)){var n=e[l]("("),a=e[l](")");if(-1!==n&&a+1===e[M]){var o=e.substr(0,n),s=e.substr(n+1,a-(n+1)).split(","),u=1;
- switch(o){case"rgba":if(4!==s[M])return;u=r(s.pop());case"rgb":if(3!==s[M])return;return[i(s[0]),i(s[1]),i(s[2]),u];case"hsla":if(4!==s[M])return;return s[3]=r(s[3]),c(s);case"hsl":if(3!==s[M])return;return c(s);default:return}}}else{if(4===e[M]){var h=parseInt(e.substr(1),16);if(!(h>=0&&4095>=h))return;return[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]}if(7===e[M]){var h=parseInt(e.substr(1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,1]}}}}function c(e){var n=(parseFloat(e[0])%360+360)%360/360,i=r(e[1]),o=r(e[2]),s=.5>=o?o*(i+1):o+i-o*i,c=2*o-s,u=[t(255*a(c,s,n+1/3)),t(255*a(c,s,n)),t(255*a(c,s,n-1/3))];return 4===e[M]&&(u[3]=e[3]),u}function u(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),c=s-o,u=(s+o)/2;if(0===c)e=0,n=0;else{n=.5>u?c/(s+o):c/(2-s-o);var l=((s-i)/6+c/2)/c,h=((s-r)/6+c/2)/c,f=((s-a)/6+c/2)/c;i===s?e=f-h:r===s?e=1/3+l-f:a===s&&(e=2/3+h-l),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function h(t,e){var n=s(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return x(n,4===n[M]?"rgba":"rgb")}}function d(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function p(e,n,i){if(n&&n[M]&&e>=0&&1>=e){i=i||[0,0,0,0];var r=e*(n[M]-1),a=Math.floor(r),s=Math.ceil(r),c=n[a],u=n[s],l=r-a;return i[0]=t(o(c[0],u[0],l)),i[1]=t(o(c[1],u[1],l)),i[2]=t(o(c[2],u[2],l)),i[3]=t(o(c[3],u[3],l)),i}}function m(e,i,r){if(i&&i[M]&&e>=0&&1>=e){var a=e*(i[M]-1),c=Math.floor(a),u=Math.ceil(a),l=s(i[c]),h=s(i[u]),f=a-c,d=x([t(o(l[0],h[0],f)),t(o(l[1],h[1],f)),t(o(l[2],h[2],f)),n(o(l[3],h[3],f))],"rgba");return r?{color:d,leftIndex:c,rightIndex:u,value:a}:d}}function v(t,e){if(!(2!==t[M]||t[1]<t[0])){for(var n=m(t[0],e,!0),i=m(t[1],e,!0),r=[{color:n.color,offset:0}],a=i.value-n.value,o=Math.max(n.value,n.rightIndex),s=Math.min(i.value,i.leftIndex),c=o;a>0&&s>=c;c++)r.push({color:e[c],offset:(c-n.value)/a});return r.push({color:i.color,offset:1}),r}}function g(t,n,i,a){return t=s(t),t?(t=u(t),null!=n&&(t[0]=e(n)),null!=i&&(t[1]=r(i)),null!=a&&(t[2]=r(a)),x(c(t),"rgba")):void 0}function y(t,e){return t=s(t),t&&null!=e?(t[3]=n(e),x(t,"rgba")):void 0}function x(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var b={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:h,toHex:d,fastMapToColor:p,mapToColor:m,mapIntervalToColor:v,modifyHSL:g,modifyAlpha:y,stringify:x}}),e("zrender/mixin/Eventful",[F,"../core/util"],function(t){var e=Array[S].slice,n=t("../core/util"),i=n[l],r=function(){this._$handlers={}};return r[S]={constructor:r,one:function(t,e,n){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),i(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:n||this}),this)):this},on:function(t,e,n){var i=this._$handlers;return e&&t?(i[t]||(i[t]=[]),i[t].push({h:e,one:!1,ctx:n||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][M]},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t][M];a>r;r++)n[t][r].h!=e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t][M]&&delete n[t]}else delete n[t];return this},trigger:function(t){if(this._$handlers[t]){var n=arguments,i=n[M];i>3&&(n=e.call(n,1));for(var r=this._$handlers[t],a=r[M],o=0;a>o;){switch(i){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,n[1]);break;case 3:r[o].h.call(r[o].ctx,n[1],n[2]);break;default:r[o].h.apply(r[o].ctx,n)}r[o].one?(r[p](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var n=arguments,i=n[M];i>4&&(n=e.call(n,1,n[M]-1));for(var r=n[n[M]-1],a=this._$handlers[t],o=a[M],s=0;o>s;){switch(i){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,n[1]);break;case 3:a[s].h.call(r,n[1],n[2]);break;default:a[s].h.apply(r,n)}a[s].one?(a[p](s,1),o--):s++}}return this}},r}),e("echarts/loading/default",[F,"../util/graphic",T],function(t){var e=t("../util/graphic"),n=t(T),i=Math.PI;return function(t,r){r=r||{},n.defaults(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.zlevel,z:1e4}),o=new e.Arc({shape:{startAngle:-i/2,endAngle:-i/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r.zlevel,z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*i/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*i/2}).delay(300).start("circularInOut");var c=new e.Group;return c.add(o),c.add(s),c.add(a),c[g]=function(){var e=t[P]()/2,n=t[A]()/2;o.setShape({cx:e,cy:n});var i=o.shape.r;s.setShape({x:e-i,y:n-i,width:2*i,height:2*i}),a.setShape({x:0,y:0,width:t[P](),height:t[A]()})},c[g](),c}}),e("echarts/preprocessor/backwardCompat",[F,T,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var n=t,i=0;i<e[M]&&(n=n&&n[e[i]],null!=n);i++);return n}function n(t,e,n,i){e=e.split(",");for(var r,a=t,o=0;o<e[M]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[e[o]])&&(a[e[o]]=n)}function i(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(T),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",v]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c=["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.series,function(t){if(r[m](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&&n(t,"itemStyle.normal.color",s)}for(var u=0;u<c[M];u++)if(c[u]===t.type){i(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var n=t[e];n&&(r[h](n)||(n=[n]),u(n,function(t){i(t)}))})}}),e("echarts/visual/seriesColor",[F,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,n,i){function r(t){var r=[n,a,"color"],o=i.get("color"),s=t[d](),c=t.get(r)||o[t.seriesIndex%o[M]];s.setVisual("color",c),i.isSeriesFiltered(t)||(typeof c!==u||c instanceof e||s.each(function(e){s.setItemVisual(e,"color",c(t.getDataParams(e)))}),s.each(function(t){var e=s.getItemModel(t),n=e.get(r,!0);null!=n&&s.setItemVisual(t,"color",n)}))}t?i.eachSeriesByType(t,r):i.eachSeries(r)}}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===o?Array:Float32Array,e={create:function(){var n=new t(6);return e.identity(n),n},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,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],c=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t},translate:function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},rotate:function(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],c=e[5],u=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*u,t[1]=-i*u+o*l,t[2]=r*l+s*u,t[3]=-r*u+l*s,t[4]=l*a+u*c,t[5]=l*c-u*a,t},scale:function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},invert:function(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],c=n*o-a*i;return c?(c=1/c,t[0]=o*c,t[1]=-a*c,t[2]=-i*c,t[3]=n*c,t[4]=(i*s-o*r)*c,t[5]=(a*r-n*s)*c,t):null}};return e}),e("zrender/core/vector",[],function(){var t=typeof Float32Array===o?Array:Float32Array,e={create:function(e,n){var i=new t(2);return i[0]=e||0,i[1]=n||0,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var n=new t(2);return n[0]=e[0],n[1]=e[1],n},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[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,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,n){var i=e.len(n);return 0===i?(t[0]=0,t[1]=0):(t[0]=n[0]/i,t[1]=n[1]/i),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,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};return e[M]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/graphic/Path",[F,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function n(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function i(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t("../core/util"),o=t("../core/PathProxy"),s=t("../contain/path"),u=t("./Gradient"),l=Math.abs;return i[S]={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var i=this.style,r=this.path,a=n(i),o=e(i);this.__dirtyPath&&(o&&i.fill instanceof u&&i.fill.updateCanvasGradient(this,t),a&&i.stroke instanceof u&&i.stroke.updateCanvasGradient(this,t)),i.bind(t,this),this.setTransform(t);var s=i.lineDash,c=i.lineDashOffset,l=!!t.setLineDash;this.__dirtyPath||s&&!l&&a?(r=this.path.beginPath(t),s&&!l&&(r.setLineDash(s),r.setLineDashOffset(c)),this.buildPath(r,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),s&&l&&(t.setLineDash(s),t.lineDashOffset=c),a&&r.stroke(t),null!=i.text&&this.drawRectText(t,this[R]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,i=this.style;if(!t){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape)),t=r[R]()}if(n(i)&&(this.__dirty||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;return e(i)||(o=Math.max(o,this.strokeContainThreshold)),s>1e-10&&(a.width+=o/s,a[I]+=o/s,a.x-=o/s/2,a.y-=o/s/2),a}return this._rect=t,t},contain:function(t,i){var r=this.transformCoordToLocal(t,i),a=this[R](),o=this.style;if(t=r[0],i=r[1],a[w](t,i)){var c=this.path.data;if(n(o)){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(e(o)||(u=Math.max(u,this.strokeContainThreshold)),s.containStroke(c,u/l,t,i)))return!0}if(e(o))return s[w](c,t,i)}return!1},dirty:function(t){0===arguments[M]&&(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[S].attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(a[m](t))for(var i in t)n[i]=t[i];else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},i[C]=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,e)};a[c](e,i);for(var n in t)"style"!==n&&"shape"!==n&&(e[S][n]=t[n]);return e},a[c](i,r),i}),e("zrender/tool/path",[F,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,n,i,r,a,o,s,c,u,l){var f=c*(m/180),v=p(f)*(t-n)/2+d(f)*(e-i)/2,_=-1*d(f)*(t-n)/2+p(f)*(e-i)/2,x=v*v/(o*o)+_*_/(s*s);x>1&&(o*=h(x),s*=h(x));var b=(r===a?-1:1)*h((o*o*s*s-o*o*_*_-s*s*v*v)/(o*o*_*_+s*s*v*v))||0,w=b*o*_/s,M=b*-s*v/o,C=(t+n)/2+p(f)*w-d(f)*M,S=(e+i)/2+d(f)*w+p(f)*M,T=y([1,0],[(v-w)/o,(_-M)/s]),z=[(v-w)/o,(_-M)/s],L=[(-1*v-w)/o,(-1*_-M)/s],k=y(z,L);g(z,L)<=-1&&(k=m),g(z,L)>=1&&(k=0),0===a&&k>0&&(k-=2*m),1===a&&0>k&&(k+=2*m),l.addData(u,C,S,o,s,T,k,f,a)}function i(t){if(!t)return[];var n,i=t[f](/-/g," -")[f](/ /g," ")[f](/ /g,",")[f](/,,/g,",");for(n=0;n<l[M];n++)i=i[f](new RegExp(l[n],"g"),"|"+l[n]);var r,a=i.split("|"),o=0,c=0,u=new s,h=s.CMD;for(n=1;n<a[M];n++){var d,p=a[n],m=p.charAt(0),v=0,g=p.slice(1)[f](/e,-/g,"e-").split(",");g[M]>0&&""===g[0]&&g.shift();for(var y=0;y<g[M];y++)g[y]=parseFloat(g[y]);for(;v<g[M]&&!isNaN(g[v])&&!isNaN(g[0]);){var _,x,b,w,C,S,T,z=o,L=c;switch(m){case"l":o+=g[v++],c+=g[v++],d=h.L,u.addData(d,o,c);break;case"L":o=g[v++],c=g[v++],d=h.L,u.addData(d,o,c);break;case"m":o+=g[v++],c+=g[v++],d=h.M,u.addData(d,o,c),m="l";break;case"M":o=g[v++],c=g[v++],d=h.M,u.addData(d,o,c),m="L";break;case"h":o+=g[v++],d=h.L,u.addData(d,o,c);break;case"H":o=g[v++],d=h.L,u.addData(d,o,c);break;case"v":c+=g[v++],d=h.L,u.addData(d,o,c);break;case"V":c=g[v++],d=h.L,u.addData(d,o,c);break;case"C":d=h.C,u.addData(d,g[v++],g[v++],g[v++],g[v++],g[v++],g[v++]),o=g[v-2],c=g[v-1];break;case"c":d=h.C,u.addData(d,g[v++]+o,g[v++]+c,g[v++]+o,g[v++]+c,g[v++]+o,g[v++]+c),o+=g[v-2],c+=g[v-1];break;case"S":_=o,x=c;var k=u.len(),A=u.data;r===h.C&&(_+=o-A[k-4],x+=c-A[k-3]),d=h.C,z=g[v++],L=g[v++],o=g[v++],c=g[v++],u.addData(d,_,x,z,L,o,c);break;case"s":_=o,x=c;var k=u.len(),A=u.data;r===h.C&&(_+=o-A[k-4],x+=c-A[k-3]),d=h.C,z=o+g[v++],L=c+g[v++],o+=g[v++],c+=g[v++],u.addData(d,_,x,z,L,o,c);break;case"Q":z=g[v++],L=g[v++],o=g[v++],c=g[v++],d=h.Q,u.addData(d,z,L,o,c);break;case"q":z=g[v++]+o,L=g[v++]+c,o+=g[v++],c+=g[v++],d=h.Q,u.addData(d,z,L,o,c);break;case"T":_=o,x=c;var k=u.len(),A=u.data;r===h.Q&&(_+=o-A[k-4],x+=c-A[k-3]),o=g[v++],c=g[v++],d=h.Q,u.addData(d,_,x,o,c);break;case"t":_=o,x=c;var k=u.len(),A=u.data;r===h.Q&&(_+=o-A[k-4],x+=c-A[k-3]),o+=g[v++],c+=g[v++],d=h.Q,u.addData(d,_,x,o,c);break;case"A":b=g[v++],w=g[v++],C=g[v++],S=g[v++],T=g[v++],z=o,L=c,o=g[v++],c=g[v++],d=h.A,e(z,L,o,c,S,T,b,w,C,d,u);break;case"a":b=g[v++],w=g[v++],C=g[v++],S=g[v++],T=g[v++],z=o,L=c,o+=g[v++],c+=g[v++],d=h.A,e(z,L,o,c,S,T,b,w,C,d,u)}}("z"===m||"Z"===m)&&(d=h.Z,u.addData(d)),r=d}return u.toStatic(),u}function a(t,e){var a,o=i(t);return e=e||{},e.buildPath=function(t){t.setData(o.data),a&&c(t,a);var e=t[n]();e&&t.rebuildPath(e)},e[r]=function(t){a||(a=u[b]()),u.mul(a,t,a)},e}var o=t("../graphic/Path"),s=t("../core/PathProxy"),c=t("./transformPath"),u=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],h=Math.sqrt,d=Math.sin,p=Math.cos,m=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},g=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},y=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))};return{createFromString:function(t,e){return new o(a(t,e))},extendFromString:function(t,e){return o[C](a(t,e))},mergePath:function(t,e){var i,r,a=[],s=t[M];for(r=0;s>r;r++)i=t[r],i.__dirty&&i.buildPath(i.path,i.shape),a.push(i.path);var c=new o(e);return c.buildPath=function(t){t.appendPath(a);var e=t[n]();e&&t.rebuildPath(e)},c}}}),e("zrender/container/Group",[F,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),n=t("../Element"),i=t("../core/BoundingRect"),a=function(t){t=t||{},n.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return a[S]={constructor:a,type:"group",children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e[M];n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children[M]},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n[l](e);i>=0&&(n[p](i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var n=this.__zr,i=this.__storage,r=this._children,o=e[l](r,t);return 0>o?this:(r[p](o,1),t.parent=null,i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),n&&n.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n[M];e++)t=n[e],i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),t.parent=null;return n[M]=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n[M];i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children[M];n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[M];e++){var n=this._children[e];t.addToMap(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[M];e++){var n=this._children[e];t.delFromMap(n.id),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new i(0,0,0,0),a=t||this._children,o=[],s=0;s<a[M];s++){var c=a[s];if(!c.ignore&&!c.invisible){var u=c[R](),l=c.getLocalTransform(o);l?(n.copy(u),n[r](l),e=e||n.clone(),e.union(n)):(e=e||u.clone(),e.union(u))}}return e||n}},e[c](a,n),a}),e("zrender/graphic/Gradient",[F],function(){var t=function(t){this.colorStops=t||[]};return t[S]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/graphic/Image",[F,"./Displayable","../core/BoundingRect","../core/util","./helper/roundRect","../core/LRU"],function(t){function e(t){n.call(this,t)}var n=t("./Displayable"),i=t("../core/BoundingRect"),r=t("../core/util"),a=t("./helper/roundRect"),o=t("../core/LRU"),s=new o(50);return e[S]={constructor:e,type:"image",brush:function(t){var e,n=this.style,i=n.image;if(e=typeof i===y?this._image:i,!e&&i){var r=s.get(i);if(!r)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<r.pending[M];t++)r.pending[t].dirty()},r={image:e,pending:[this]},e.src=i,s.put(i,r),void(this._image=e);if(e=r.image,this._image=e,!e.width||!e[I])return void r.pending.push(this)}if(e){var o=n.width||e.width,c=n[I]||e[I],u=n.x||0,l=n.y||0;if(!e.width||!e[I])return;if(t.save(),n.bind(t),this.setTransform(t),n.r&&(t.beginPath(),a.buildPath(t,n),t.clip()),n.sWidth&&n.sHeight){var h=n.sx||0,f=n.sy||0;t.drawImage(e,h,f,n.sWidth,n.sHeight,u,l,o,c)}else if(n.sx&&n.sy){var h=n.sx,f=n.sy,d=o-h,p=c-f;t.drawImage(e,h,f,d,p,u,l,o,c)}else t.drawImage(e,u,l,o,c);null==n.width&&(n.width=o),null==n[I]&&(n[I]=c),null!=n.text&&this.drawRectText(t,this[R]()),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[I]||0)),this._rect}},r[c](e,n),e}),e("zrender/graphic/shape/Circle",[F,"../Path"],function(t){return t("../Path")[C]({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/Ring",[F,"../Path"],function(t){return t("../Path")[C]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}})}),e("zrender/graphic/shape/Polygon",[F,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[C]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,n){e.buildPath(t,n,!0)}})}),e("zrender/graphic/Text",[F,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),n=t("../core/util"),i=t("../contain/text"),r=function(t){e.call(this,t)};return r[S]={constructor:r,type:"text",brush:function(t){var e=this.style,n=e.x||0,r=e.y||0,a=e.text,o=e.fill,s=e.stroke;if(null!=a&&(a+=""),a){if(t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),s&&(t.strokeStyle=s),t.font=e.textFont||e.font,t.textAlign=e.textAlign,e.textVerticalAlign){var c=i[R](a,t.font,e.textAlign,"top");switch(t.textBaseline="top",e.textVerticalAlign){case k:r-=c[I]/2;break;case v:r-=c[I]}}else t.textBaseline=e.textBaseline;for(var u=i.measureText("国",t.font).width,l=a.split("\n"),h=0;h<l[M];h++)o&&t.fillText(l[h],n,r),s&&t.strokeText(l[h],n,r),r+=u;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=i[R](t.text+"",t.textFont||t.font,t.textAlign,t.textBaseline);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},n[c](r,e),r}),e("zrender/graphic/shape/Sector",[F,"../Path"],function(t){return t("../Path")[C]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,c=e.clockwise,u=Math.cos(o),l=Math.sin(o);t.moveTo(u*r+n,l*r+i),t.lineTo(u*a+n,l*a+i),t.arc(n,i,a,o,s,!c),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,o,c),t.closePath()}})}),e("zrender/graphic/shape/Polyline",[F,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[C]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,n){e.buildPath(t,n,!1)}})}),e("zrender/graphic/LinearGradient",[F,"../core/util","./Gradient"],function(t){var e=t("../core/util"),n=t("./Gradient"),i=function(t,e,i,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==r?0:r,n.call(this,a)};return i[S]={constructor:i,type:"linear",updateCanvasGradient:function(t,e){for(var n=t[R](),i=this.x*n.width+n.x,r=this.x2*n.width+n.x,a=this.y*n[I]+n.y,o=this.y2*n[I]+n.y,s=e.createLinearGradient(i,a,r,o),c=this.colorStops,u=0;u<c[M];u++)s.addColorStop(c[u].offset,c[u].color);this.canvasGradient=s}},e[c](i,n),i}),e("zrender/graphic/shape/Arc",[F,"../Path"],function(t){return t("../Path")[C]({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 n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,c=Math.cos(a),u=Math.sin(a);t.moveTo(c*r+n,u*r+i),t.arc(n,i,r,a,o,!s)}})}),e("zrender/graphic/shape/BezierCurve",[F,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),n=e.quadraticSubdivide,i=e.cubicSubdivide,r=e.quadraticAt,a=e.cubicAt,o=[];return t("../Path")[C]({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,c=e.y2,u=e.cpx1,l=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t.moveTo(r,a),null==h||null==f?(1>d&&(n(r,u,s,d,o),u=o[1],s=o[2],n(a,l,c,d,o),l=o[1],c=o[2]),t.quadraticCurveTo(u,l,s,c)):(1>d&&(i(r,u,h,s,d,o),u=o[1],h=o[2],s=o[3],i(a,l,f,c,d,o),l=o[1],f=o[2],c=o[3]),t.bezierCurveTo(u,l,h,f,s,c)))},pointAt:function(t){var e=this.shape,n=e.cpx2,i=e.cpy2;return null===n||null===i?[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/RadialGradient",[F,"../core/util","./Gradient"],function(t){var e=t("../core/util"),n=t("./Gradient"),i=function(t,e,i,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,n.call(this,r)};return i[S]={constructor:i,type:"radial",updateCanvasGradient:function(t,e){for(var n=t[R](),i=n.width,r=n[I],a=Math.min(i,r),o=this.x*i+n.x,s=this.y*r+n.y,c=this.r*a,u=e.createRadialGradient(o,s,0,o,s,c),l=this.colorStops,h=0;h<l[M];h++)u.addColorStop(l[h].offset,l[h].color);this.canvasGradient=u}},e[c](i,n),i}),e("zrender/graphic/shape/Rect",[F,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[C]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,n){var i=n.x,r=n.y,a=n.width,o=n[I];n.r?e.buildPath(t,n):t.rect(i,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[F,"../Path"],function(t){return t("../Path")[C]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(n,i),1>o&&(r=n*(1-o)+r*o,a=i*(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/core/BoundingRect",[F,"./vector","./matrix"],function(t){function e(t,e,n,i){this.x=t,this.y=e,this.width=n,this[I]=i}var n=t("./vector"),i=t("./matrix"),a=n[r],o=Math.min,s=Math.abs,c=Math.max;return e[S]={constructor:e,union:function(t){var e=o(t.x,this.x),n=o(t.y,this.y);this.width=c(t.x+t.width,this.x+this.width)-e,this[I]=c(t.y+t[I],this.y+this[I])-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[];return function(n){n&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[I],a(t,t,n),a(e,e,n),this.x=o(t[0],e[0]),this.y=o(t[1],e[1]),this.width=s(e[0]-t[0]),this[I]=s(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,r=t[I]/e[I],a=i[b]();return i.translate(a,a,[-e.x,-e.y]),i.scale(a,a,[n,r]),i.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e[I],o=t.x,s=t.x+t.width,c=t.y,u=t.y+t[I];return!(o>i||n>s||c>a||r>u)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n[I]},clone:function(){return new e(this.x,this.y,this.width,this[I])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[I]=t[I]}},e}),e("echarts/util/model",[F,"./format","./number",T,"../model/Model"],function(t){var e=t("./format"),n=t("./number"),r=t(T),o=t("../model/Model"),c=["x","y","z","radius","angle"],f={};return f.createNameEach=function(t,e){t=t.slice();var n=r.map(t,f.capitalFirst);e=(e||[]).slice();var i=r.map(e,f.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:n[r]},c=0;c<e[M];c++)s[e[c]]=t+i[c];a.call(o,s)})}},f.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},f.eachAxisDim=f.createNameEach(c,["axisIndex","axis","index"]),f.normalizeToArray=function(t){return r[h](t)?t:null==t?[]:[t]},f.createLinkedNodesFinder=function(t,e,n){function i(t,e){return r[l](e.nodes,t)>=0}function a(t,i){var a=!1;return e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]&&(a=!0)})}),a}function o(t,i){i.nodes.push(t),e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function r(t){!i(t,s)&&a(t,s)&&(o(t,s),c=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;o(n,s);var c;do c=!1,t(r);while(c);return s}},f.defaultEmphasis=function(t,e){if(t){var n=t.emphasis=t.emphasis||{},i=t[a]=t[a]||{};r.each(e,function(t){var e=r.retrieve(n[t],i[t]);null!=e&&(n[t]=e)})}},f.createDataFormatModel=function(t,e,n){var i=new o;return r.mixin(i,f.dataFormatMixin),i.seriesIndex=t.seriesIndex,i.name=t.name||"",i[d]=function(){return e},i.getRawDataArray=function(){return n},i},f.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},f.converDataValue=function(t,e){var r=e&&e.type;return r===i?t:("time"!==r||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?0/0:+t)},f.dataFormatMixin={getDataParams:function(t){var e=this[d](),n=this.seriesIndex,i=this.name,r=this.getRawValue(t),a=e.getRawIndex(t),o=e.getName(t,!0),s=this.getRawDataArray(),c=s&&s[a];return{seriesIndex:n,seriesName:i,name:o,dataIndex:a,data:c,value:r,color:e.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,n,i){n=n||a;var r=this[d](),o=r.getItemModel(t),s=this.getDataParams(t);return null==i&&(i=o.get(["label",n,"formatter"])),typeof i===u?(s.status=n,i(s)):typeof i===y?e.formatTpl(i,s):void 0
- },getRawValue:function(t){var e=this[d]().getItemModel(t);if(e&&null!=e[s]){var n=e[s];return r[m](n)&&!r[h](n)?n.value:n}}},f.mappingToExists=function(t,e){e=(e||[]).slice();var n=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,i){if(r[m](t))for(var a=0;a<n[M];a++){var o=n[a].exist;if(!n[a][s]&&(null!=t.id&&o.id===t.id+""||null!=t.name&&!f.isIdInner(t)&&!f.isIdInner(o)&&o.name===t.name+"")){n[a][s]=t,e[i]=null;break}}}),r.each(e,function(t){if(r[m](t)){for(var e=0;e<n[M];e++){var i=n[e].exist;if(!n[e][s]&&!f.isIdInner(i)&&null==t.id){n[e][s]=t;break}}e>=n[M]&&n.push({option:t})}}),n},f.isIdInner=function(t){return r[m](t)&&t.id&&0===(t.id+"")[l]("\x00_ec_\x00")},f}),e("echarts/model/Model",[F,T,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,n,i){this.parentModel=e,this.ecModel=n,this[s]=t,this.init&&(arguments[M]<=4?this.init(t,e,n,i):this.init.apply(this,arguments))}var n=t(T),i=t("../util/clazz");e[S]={constructor:e,init:null,mergeOption:function(t){n.merge(this[s],t,!0)},get:function(t,e){if(!t)return this[s];typeof t===y&&(t=t.split("."));for(var n=this[s],i=this.parentModel,r=0;r<t[M]&&(n=n&&"object"==typeof n?n[t[r]]:null,null!=n);r++);return null==n&&i&&!e&&(n=i.get(t)),n},getShallow:function(t,e){var n=this[s],i=n&&n[t],r=this.parentModel;return null==i&&r&&!e&&(i=r.getShallow(t)),i},getModel:function(t,n){var i=this.get(t,!0),r=this.parentModel,a=new e(i,n||r&&r[B](t),this.ecModel);return a},isEmpty:function(){return null==this[s]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(n.clone(this[s]))},setReadOnly:function(t){i.setReadOnly(this,t)}},i.enableClassExtend(e);var r=n.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!==o&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#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/transformPath",[F,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var i,r,u,l,h,f,d=t.data,p=n.M,m=n.C,v=n.L,g=n.R,y=n.A,_=n.Q;for(u=0,l=0;u<d[M];){switch(i=d[u++],l=u,r=0,i){case p:r=1;break;case v:r=1;break;case m:r=3;break;case _:r=2;break;case y:var x=e[4],b=e[5],w=s(e[0]*e[0]+e[1]*e[1]),C=s(e[2]*e[2]+e[3]*e[3]),S=c(-e[1]/C,e[0]/w);d[u++]+=x,d[u++]+=b,d[u++]*=w,d[u++]*=C,d[u++]+=S,d[u++]+=S,u+=2,l=u;break;case g:f[0]=d[u++],f[1]=d[u++],a(f,f,e),d[l++]=f[0],d[l++]=f[1],f[0]+=d[u++],f[1]+=d[u++],a(f,f,e),d[l++]=f[0],d[l++]=f[1]}for(h=0;r>h;h++){var f=o[h];f[0]=d[u++],f[1]=d[u++],a(f,f,e),d[l++]=f[0],d[l++]=f[1]}}}var n=t("../core/PathProxy").CMD,i=t("../core/vector"),a=i[r],o=[[],[],[]],s=Math.sqrt,c=Math.atan2;return e}),e("zrender/core/PathProxy",[F,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),n=t("./vector"),i=t("./bbox"),r=t("./BoundingRect"),a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},s=[],c=[],u=[],l=[],h=Math.min,f=Math.max,d=Math.cos,p=Math.sin,m=Math.sqrt,v=typeof Float32Array!=o,g=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return g[S]={constructor:g,_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,n,i,r,o){return this.addData(a.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(a.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(a.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=d(r)*n+t,this._xi=p(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(a.R,t,e,n,i),this},closePath:function(){this.addData(a.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t[M];n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[M];this.data&&this.data[M]==e||!v||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[M],n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();v&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[M];o++)this.data[i++]=a[o];this._len=i},addData:function(t){var e=this.data;this._len+arguments[M]>e[M]&&(this._expandData(),e=this.data);for(var n=0;n<arguments[M];n++)e[this._len++]=arguments[n];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 n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,c=this._xi,u=this._yi,l=t-c,d=e-u,p=m(l*l+d*d),v=c,g=u,y=o[M];for(l/=p,d/=p,0>a&&(a=r+a),a%=r,v-=a*l,g-=a*d;l>=0&&t>=v||0>l&&v>t;)i=this._dashIdx,n=o[i],v+=l*n,g+=d*n,this._dashIdx=(i+1)%y,l>0&&c>v||0>l&&v>c||s[i%2?"moveTo":"lineTo"](l>=0?h(v,t):f(v,t),d>=0?h(g,e):f(g,e));l=v-t,d=g-e,this._dashOffset=-m(l*l+d*d)},_dashedBezierTo:function(t,n,i,r,a,o){var s,c,u,l,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,v=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[M],C=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)c=_(g,t,i,a,s+.1)-_(g,t,i,a,s),u=_(y,n,r,o,s+.1)-_(y,n,r,o,s),x+=m(c*c+u*u);for(;w>b&&(C+=p[b],!(C>d));b++);for(s=(C-d)/x;1>=s;)l=_(g,t,i,a,s),h=_(y,n,r,o,s),b%2?v.moveTo(l,h):v.lineTo(l,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&v.lineTo(a,o),c=a-l,u=o-h,this._dashOffset=-m(c*c+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[M]=this._len,v&&(this.data=new Float32Array(t)))},getBoundingRect:function(){s[0]=s[1]=u[0]=u[1]=Number.MAX_VALUE,c[0]=c[1]=l[0]=l[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,o=0,h=0,f=0,m=0;m<t[M];){var v=t[m++];switch(1==m&&(e=t[m],o=t[m+1],h=e,f=o),v){case a.M:h=t[m++],f=t[m++],e=h,o=f,u[0]=h,u[1]=f,l[0]=h,l[1]=f;break;case a.L:i.fromLine(e,o,t[m],t[m+1],u,l),e=t[m++],o=t[m++];break;case a.C:i.fromCubic(e,o,t[m++],t[m++],t[m++],t[m++],t[m],t[m+1],u,l),e=t[m++],o=t[m++];break;case a.Q:i.fromQuadratic(e,o,t[m++],t[m++],t[m],t[m+1],u,l),e=t[m++],o=t[m++];break;case a.A:var g=t[m++],y=t[m++],_=t[m++],x=t[m++],b=t[m++],w=t[m++]+b,C=(t[m++],1-t[m++]);1==m&&(h=d(b)*_+g,f=p(b)*x+y),i.fromArc(g,y,_,x,b,w,C,u,l),e=d(w)*_+g,o=p(w)*x+y;break;case a.R:h=e=t[m++],f=o=t[m++];var S=t[m++],T=t[m++];i.fromLine(h,f,h+S,f+T,u,l);break;case a.Z:e=h,o=f}n.min(s,s,u),n.max(c,c,l)}return 0===m&&(s[0]=s[1]=c[0]=c[1]=0),new r(s[0],s[1],c[0]-s[0],c[1]-s[1])},rebuildPath:function(t){for(var e=this.data,n=0;n<this._len;){var i=e[n++];switch(i){case a.M:t.moveTo(e[n++],e[n++]);break;case a.L:t.lineTo(e[n++],e[n++]);break;case a.C:t.bezierCurveTo(e[n++],e[n++],e[n++],e[n++],e[n++],e[n++]);break;case a.Q:t.quadraticCurveTo(e[n++],e[n++],e[n++],e[n++]);break;case a.A:var r=e[n++],o=e[n++],s=e[n++],c=e[n++],u=e[n++],l=e[n++],h=e[n++],f=e[n++],d=s>c?s:c,p=s>c?1:s/c,m=s>c?c/s:1,v=Math.abs(s-c)>.001;v?(t.translate(r,o),t.rotate(h),t.scale(p,m),t.arc(0,0,d,u,u+l,1-f),t.scale(1/p,1/m),t.rotate(-h),t.translate(-r,-o)):t.arc(r,o,d,u,u+l,1-f);break;case a.R:t.rect(e[n++],e[n++],e[n++],e[n++]);break;case a.Z:t.closePath()}}}},g.CMD=a,g}),e("zrender/graphic/Displayable",[F,"../core/util","./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 i(t.style),this._rect=null,this.__clipPaths=[]}var n=t("../core/util"),i=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[S]={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 n=this.transformCoordToLocal(t,e),i=this[R]();return i[w](n[0],n[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[S].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},n[c](e,r),n.mixin(e,a),e}),e("zrender/contain/path",[F,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function n(){var t=_[0];_[0]=_[1],_[1]=t}function i(t,e,i,r,a,o,s,c,u,l){if(l>e&&l>r&&l>o&&l>c||e>l&&r>l&&o>l&&c>l)return 0;var h=d.cubicRootAt(e,r,o,c,l,y);if(0===h)return 0;for(var f,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=d.cubicAt(t,i,a,s,x);u>b||(0>v&&(v=d.cubicExtrema(e,r,o,c,_),_[1]<_[0]&&v>1&&n(),f=d.cubicAt(e,r,o,c,_[0]),v>1&&(p=d.cubicAt(e,r,o,c,_[1]))),m+=2==v?x<_[0]?e>f?1:-1:x<_[1]?f>p?1:-1:p>c?1:-1:x<_[0]?e>f?1:-1:f>c?1:-1)}return m}function r(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||e>s&&i>s&&a>s)return 0;var c=d.quadraticRootAt(e,i,a,s,y);if(0===c)return 0;var u=d.quadraticExtremum(e,i,a);if(u>=0&&1>=u){for(var l=0,h=d.quadraticAt(e,i,a,u),f=0;c>f;f++){var p=d.quadraticAt(t,n,r,y[f]);o>p||(l+=y[f]<u?e>h?1:-1:h>a?1:-1)}return l}var p=d.quadraticAt(t,n,r,y[0]);return o>p?0:e>a?1:-1}function a(t,e,n,i,r,a,o,s){if(s-=e,s>n||-n>s)return 0;var c=Math.sqrt(n*n-s*s);y[0]=-c,y[1]=c;var u=Math.abs(i-r);if(1e-4>u)return 0;if(1e-4>u%v){i=0,r=v;var l=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?l:0}if(a){var c=i;i=f(r),r=f(c)}else i=f(i),r=f(r);i>r&&(r+=v);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var m=Math.atan2(s,p),l=a?1:-1;0>m&&(m=v+m),(m>=i&&r>=m||m+v>=i&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(l=-l),h+=l)}}return h}function o(t,n,o,c,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x<t[M];){var b=t[x++];if(b===s.M&&x>1&&(o||(d+=p(v,g,y,_,c,f)),0!==d))return!0;switch(1==x&&(v=t[x],g=t[x+1],y=v,_=g),b){case s.M:y=t[x++],_=t[x++],v=y,g=_;break;case s.L:if(o){if(m(v,g,t[x],t[x+1],n,c,f))return!0}else d+=p(v,g,t[x],t[x+1],c,f)||0;v=t[x++],g=t[x++];break;case s.C:if(o){if(u.containStroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],n,c,f))return!0}else d+=i(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],c,f)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(l.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],n,c,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],c,f)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],C=t[x++],S=t[x++],T=t[x++],z=t[x++],L=t[x++],k=(t[x++],1-t[x++]),A=Math.cos(z)*S+w,P=Math.sin(z)*T+C;x>1?d+=p(v,g,A,P,c,f):(y=A,_=P);var D=(c-w)*T/S+w;if(o){if(h.containStroke(w,C,T,z,z+L,k,n,D,f))return!0}else d+=a(w,C,T,z,z+L,k,D,f);v=Math.cos(z+L)*S+w,g=Math.sin(z+L)*T+C;break;case s.R:y=v=t[x++],_=g=t[x++];var I=t[x++],R=t[x++],A=y+I,P=_+R;if(o){if(m(y,_,A,_,n,c,f)||m(A,_,A,P,n,c,f)||m(A,P,y,P,n,c,f)||m(y,P,A,P,n,c,f))return!0}else d+=p(A,_,A,P,c,f),d+=p(y,P,y,_,c,f);break;case s.Z:if(o){if(m(v,g,y,_,n,c,f))return!0}else if(d+=p(v,g,y,_,c,f),0!==d)return!0;v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,c,f)||0),0!==d}var s=t("../core/PathProxy").CMD,c=t("./line"),u=t("./cubic"),l=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),m=c.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,n){return o(t,0,!1,e,n)},containStroke:function(t,e,n,i){return o(t,e,!0,n,i)}}}),e("echarts/util/clazz",[F,T],function(t){function e(t,e){var n=i.slice(arguments,2);return this.superClass[S][e].apply(t,n)}function n(t,e,n){return this.superClass[S][e].apply(t,n)}var i=t(T),r={},a=".",o="___EC__COMPONENT__CONTAINER___",s=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[C]=function(a){var o=function(){r&&r.apply(this,arguments),t.apply(this,arguments)};return i[C](o[S],a),o[C]=this[C],o.superCall=e,o.superApply=n,i[c](o,this),o.superClass=this,o}},r.enableClassManagement=function(t,e){function n(t){var e=r[t.main];return e&&e[o]||(e=r[t.main]={},e[o]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var i=n(e);i[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,n){var i=r[t];if(i&&i[o]&&(i=e?i[e]:null),n&&!i)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return i},t.getClassesByMainType=function(t){t=s(t);var e=[],n=r[t.main];return n&&n[o]?i.each(n,function(t,n){n!==o&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(r,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[C];a&&(t[C]=function(e){var n=a.call(this,e);return t.registerClass(n,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/lineStyle",[F,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var n=e.call(this,t),i=this.getLineDash();return i&&(n.lineDash=i),n},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/textStyle",[F,"zrender/contain/text"],function(t){function e(t,e){return t&&t.getShallow(e)}var n=t("zrender/contain/text");return{getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,n=t&&t[B](E);return[this.getShallow("fontStyle")||e(n,"fontStyle"),this.getShallow("fontWeight")||e(n,"fontWeight"),(this.getShallow("fontSize")||e(n,"fontSize")||12)+"px",this.getShallow("fontFamily")||e(n,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(E)||{};return n[R](t,this[O](),e.align,e.baseline)},ellipsis:function(t,e,i){return n.ellipsis(t,this[O](),e,i)}}}),e("echarts/model/mixin/areaStyle",[F,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("zrender/graphic/Style",[F],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[S]={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,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(e,n){for(var i=this.fill,r=this.stroke,a=0;a<t[M];a++){var o=t[a];null!=this[o]&&(e[o]=this[o])}if(null!=r){var s=this.lineWidth;e.lineWidth=s/(this.strokeNoScale&&n&&n.getLineScale?n.getLineScale():1)}null!=i&&(e.fillStyle=i.canvasGradient?i.canvasGradient:i),null!=r&&(e.strokeStyle=r.canvasGradient?r.canvasGradient:r),null!=this.opacity&&(e.globalAlpha=this.opacity)},extendFrom:function(t,e){if(t){var n=this;for(var i in t)!t.hasOwnProperty(i)||!e&&n.hasOwnProperty(i)||(n[i]=t[i])}},set:function(t,e){typeof t===y?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};var n,i,r=e[S];for(i=0;i<t[M];i++)n=t[i],n in r||(r[n]=null);return e}),e("echarts/model/mixin/itemStyle",[F,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("zrender/graphic/mixin/RectText",[F,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===y?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function n(t,e){t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}var i=t("../../contain/text"),a=t("../../core/BoundingRect"),o=new a,s=function(){};return s[S]={constructor:s,drawRectText:function(t,a,s){var c=this.style,u=c.text;if(null!=u&&(u+=""),u){var l,h,f=c.textPosition,d=c.textDistance,p=c.textAlign,m=c.textFont||c.font,g=c.textBaseline,y=c.textVerticalAlign;s=s||i[R](u,m,p,g);var _=this.transform,x=this.invTransform;if(_&&(o.copy(a),o[r](_),a=o,n(t,x)),f instanceof Array)l=a.x+e(f[0],a.width),h=a.y+e(f[1],a[I]),p=p||"left",g=g||"top";else{var b=i.adjustTextPositionOnRect(f,a,s,d);l=b.x,h=b.y,p=p||b.textAlign,g=g||b.textBaseline}if(t.textAlign=p,y){switch(y){case k:h-=s[I]/2;break;case v:h-=s[I]}t.textBaseline="top"}else t.textBaseline=g;var w=c.textFill,C=c.textStroke;w&&(t.fillStyle=w),C&&(t.strokeStyle=C),t.font=m,t.shadowColor=c.textShadowColor,t.shadowBlur=c.textShadowBlur,t.shadowOffsetX=c.textShadowOffsetX,t.shadowOffsetY=c.textShadowOffsetY;for(var S=u.split("\n"),T=0;T<S[M];T++)w&&t.fillText(S[T],l,h),C&&t.strokeText(S[T],l,h),h+=s.lineHeight;_&&n(t,_)}}},s}),e("zrender/Element",[F,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),n=t("./mixin/Eventful"),i=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),o=function(t){i.call(this,t),n.call(this,t),r.call(this,t),this.id=t.id||e()};return o[S]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[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===z||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===y)this.attrKV(t,e);else if(a[m](t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);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 n=0;n<e[M];n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e[M];n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(o,r),a.mixin(o,i),a.mixin(o,n),o}),e("echarts/model/mixin/makeStyleMapper",[F,T],function(t){var e=t(T);return function(t){for(var n=0;n<t[M];n++)t[n][1]||(t[n][1]=t[n][0]);return function(n){for(var i={},r=0;r<t[M];r++){var a=t[r][1];if(!(n&&e[l](n,a)>=0)){var o=this.getShallow(a);null!=o&&(i[t[r][0]]=o)}}return i}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Transformable",[F,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var n=t("../core/matrix"),i=t("../core/vector"),a=n.identity,o=5e-5,s=function(t){t=t||{},t[z]||(this[z]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=s[S];c.transform=null,c.needLocalTransform=function(){return e(this.rotation)||e(this[z][0])||e(this[z][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},c.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),r=this.transform;return i||e?(r=r||n[b](),i?this.getLocalTransform(r):a(r),e&&(i?n.mul(r,t.transform,r):n.copy(r,t.transform)),this.transform=r,this.invTransform=this.invTransform||n[b](),void n.invert(this.invTransform,r)):void(r&&a(r))},c.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,i=this.scale,r=this.rotation,o=this[z];return e&&(t[4]-=e[0],t[5]-=e[1]),n.scale(t,t,i),r&&n.rotate(t,t,r),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},c.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var u=[];return c.decomposeTransform=function(){if(this.transform){var t=this.parent,i=this.transform;t&&t.transform&&(n.mul(u,t.invTransform,i),i=u);var r=i[0]*i[0]+i[1]*i[1],a=i[2]*i[2]+i[3]*i[3],o=this[z],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),i[0]<0&&(r=-r),i[3]<0&&(a=-a),o[0]=i[4],o[1]=i[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-i[1]/a,i[0]/r)}},c.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&i[r](n,n,a),n},c.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&i[r](n,n,a),n},s}),e("zrender/mixin/Animatable",[F,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),n=t("../core/util"),i=n.isString,r=n.isFunction,a=n[m],o=t("../core/log"),s=function(){this.animators=[]};return s[S]={constructor:s,animate:function(t,i){var r,a=!1,s=this,c=this.__zr;if(t){var u=t.split("."),h=s;a="shape"===u[0];for(var f=0,d=u[M];d>f;f++)h&&(h=h[u[f]]);h&&(r=h)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var m=s.animators,v=new e(r,i);return v.during(function(){s.dirty(a)}).done(function(){m[p](n[l](m,v),1)}),m.push(v),c&&c.animation.addAnimator(v),v},stopAnimation:function(t){for(var e=this.animators,n=e[M],i=0;n>i;i++)e[i].stop(t);return e[M]=0,this},animateTo:function(t,e,n,a,o){function s(){u--,u||o&&o()}i(n)?(o=a,a=n,n=0):r(a)?(o=a,a="linear",n=0):r(n)?(o=n,n=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,n,a,o);var c=this.animators.slice(),u=c[M];u||o&&o();for(var l=0;l<c[M];l++)c[l].done(s).start(a)},_animateToShallow:function(t,e,i,r,o){var s={},c=0;for(var u in i)if(null!=e[u])a(i[u])&&!n.isArrayLike(i[u])?this._animateToShallow(t?t+"."+u:u,e[u],i[u],r,o):(s[u]=i[u],c++);else if(null!=i[u])if(t){var l={};l[t]={},l[t][u]=i[u],this.attr(l)}else this.attr(u,i[u]);return c>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("zrender/contain/text",[F,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var n=t+":"+e;if(c[n])return c[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i[M];o>a;a++)r=Math.max(d.measureText(i[a],e).width,r);return u>l&&(u=0,c={}),u++,c[n]=r,r}function i(t,n,i,r){var a=((t||"")+"").split("\n")[M],o=e(t,n),s=e("国",n),c=a*s,u=new f(0,0,o,c);switch(u.lineHeight=s,r){case v:case"alphabetic":u.y-=s;break;case k:u.y-=s/2}switch(i){case"end":case"right":u.x-=u.width;break;case L:u.x-=u.width/2}return u}function r(t,e,n,i){var r=e.x,a=e.y,o=e[I],s=e.width,c=n[I],u=o/2-c/2,l="left";switch(t){case"left":r-=i,a+=u,l="right";break;case"right":r+=i+s,a+=u,l="left";break;case"top":r+=s/2,a-=i+c,l=L;break;case v:r+=s/2,a+=o+i,l=L;break;case"inside":r+=s/2,a+=u,l=L;break;case"insideLeft":r+=i,a+=u,l="left";break;case"insideRight":r+=s-i,a+=u,l="right";break;case"insideTop":r+=s/2,a+=i,l=L;break;case"insideBottom":r+=s/2,a+=o-c-i,l=L;break;case"insideTopLeft":r+=i,a+=i,l="left";break;case"insideTopRight":r+=s-i,a+=i,l="right";break;case"insideBottomLeft":r+=i,a+=o-c-i;break;case"insideBottomRight":r+=s-i,a+=o-c-i,l="right"}return{x:r,y:a,textAlign:l,textBaseline:"top"}}function a(t,n,i,r){if(!i)return"";r=h.defaults({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",n),ascCharWidth:e("a",n)},r,!0),i-=e(r.ellipsis);for(var a=(t+"").split("\n"),s=0,c=a[M];c>s;s++)a[s]=o(a[s],n,i,r);return a.join("\n")}function o(t,n,i,r){for(var a=0;;a++){var o=e(t,n);if(i>o||a>=r.maxIterations){t+=r.ellipsis;break}var c=0===a?s(t,i,r):Math.floor(t[M]*i/o);if(c<r.minCharacters){t="";break}t=t.substr(0,c)}return t}function s(t,e,n){for(var i=0,r=0,a=t[M];a>r&&e>i;r++){var o=t.charCodeAt(r);i+=o>=0&&127>=o?n.ascCharWidth:n.cnCharWidth}return r}var c={},u=0,l=5e3,h=t("../core/util"),f=t("../core/BoundingRect"),d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:r,ellipsis:a,measureText:function(t,e){var i=h[n]();return i.font=e,i.measureText(t)}};return d}),e("zrender/animation/Animator",[F,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function n(t,e,n){t[e]=n}function i(t,e,n){return(e-t)*n+t}function r(t,e,n){return n>.5?e:t}function a(t,e,n,r,a){var o=t[M];if(1==a)for(var s=0;o>s;s++)r[s]=i(t[s],e[s],n);else for(var c=t[0][M],s=0;o>s;s++)for(var u=0;c>u;u++)r[s][u]=i(t[s][u],e[s][u],n)}function o(t,e,n){var i=t[M],r=e[M];if(i!==r){var a=i>r;if(a)t[M]=r;else for(var o=i;r>o;o++)t.push(1===n?e[o]:g.call(e[o]))}}function s(t,e,n){if(t===e)return!0;var i=t[M];if(i!==e[M])return!1;if(1===n){for(var r=0;i>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][M],r=0;i>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function c(t,e,n,i,r,a,o,s,c){var l=t[M];if(1==c)for(var h=0;l>h;h++)s[h]=u(t[h],e[h],n[h],i[h],r,a,o);else for(var f=t[0][M],h=0;l>h;h++)for(var d=0;f>d;d++)s[h][d]=u(t[h][d],e[h][d],n[h][d],i[h][d],r,a,o)}function u(t,e,n,i,r,a,o){var s=.5*(n-t),c=.5*(i-e);return(2*(e-n)+s+c)*o+(-3*(e-n)-2*s-c)*a+s*r+e}function l(t){if(v(t)){var e=t[M];if(v(t[0])){for(var n=[],i=0;e>i;i++)n.push(g.call(t[i]));return n}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 f(t,e,n,l,f){var m=t._getter,g=t._setter,_="spline"===e,x=l[M];if(x){var b,w=l[0].value,C=v(w),S=!1,T=!1,z=C&&v(w[0])?2:1;l.sort(function(t,e){return t.time-e.time}),b=l[x-1].time;for(var L=[],k=[],A=l[0].value,P=!0,D=0;x>D;D++){L.push(l[D].time/b);var I=l[D].value;if(C&&s(I,A,z)||!C&&I===A||(P=!1),A=I,typeof I==y){var R=p.parse(I);R?(I=R,S=!0):T=!0}k.push(I)}if(!P){if(C){for(var O=k[x-1],D=0;x-1>D;D++)o(k[D],O,z);o(m(t._target,f),O,z)}var E,B,F,N,G,V,q=0,H=0;if(S)var Z=[0,0,0,0];var W=function(t,e){var n;if(H>e){for(E=Math.min(q+1,x-1),n=E;n>=0&&!(L[n]<=e);n--);n=Math.min(n,x-2)}else{for(n=q;x>n&&!(L[n]>e);n++);n=Math.min(n-1,x-2)}q=n,H=e;var o=L[n+1]-L[n];if(0!==o)if(B=(e-L[n])/o,_)if(N=k[n],F=k[0===n?n:n-1],G=k[n>x-2?x-1:n+1],V=k[n>x-3?x-1:n+2],C)c(F,N,G,V,B,B*B,B*B*B,m(t,f),z);else{var s;if(S)s=c(F,N,G,V,B,B*B,B*B*B,Z,1),s=h(Z);else{if(T)return r(N,G,B);s=u(F,N,G,V,B,B*B,B*B*B)}g(t,f,s)}else if(C)a(k[n],k[n+1],B,m(t,f),z);else{var s;if(S)a(k[n],k[n+1],B,Z,1),s=h(Z);else{if(T)return r(k[n],k[n+1],B);s=i(k[n],k[n+1],B)}g(t,f,s)}},U=new d({target:t._target,life:b,loop:t._loop,delay:t._delay,onframe:W,ondestroy:n});return e&&"spline"!==e&&(U.easing=e),U}}}var d=t("./Clip"),p=t("../tool/color"),m=t("../core/util"),v=m.isArrayLike,g=Array[S].slice,_=function(t,i,r,a){this._tracks={},this._target=t,this._loop=i||!1,this._getter=r||e,this._setter=a||n,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[S]={when:function(t,e){var n=this._tracks;for(var i in e){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:l(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[M]=0;for(var t=this._doneList,e=t[M],n=0;e>n;n++)t[n].call(this)},start:function(t){var e,n=this,i=0,r=function(){i--,i||n._doneCallback()};for(var a in this._tracks){var o=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),i++,this.animation&&this.animation.addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var i=0;i<n._onframeList[M];i++)n._onframeList[i](t,e)}}return i||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e[M];i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e[M]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},_}),e("zrender/core/log",[F,"../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/util/component",[F,T,"./clazz"],function(t){var e=t(T),n=t("./clazz"),i=n.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,n){t=i(t),e[t.main]=n},t.determineSubType=function(n,r){var a=r.type;if(!a){var o=i(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,n){function i(t){var i={},o=[];return e.each(t,function(s){var c=r(i,s),u=c.originalDeps=n(s),h=a(u,t);c.entryCount=h[M],0===c.entryCount&&o.push(s),e.each(h,function(t){e[l](c.predecessor,t)<0&&c.predecessor.push(t);var n=r(i,t);e[l](n.successor,t)<0&&n.successor.push(s)})}),{graph:i,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,n){var i=[];return e.each(t,function(t){e[l](n,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,n,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&l.push(t)}function s(t){h[t]=!0,o(t)}if(t[M]){var c=i(n),u=c.graph,l=c.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});l[M];){var f=l.pop(),d=u[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[F],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(v),width:this.get("width"),height:this.get(I)}}}}),e("zrender/animation/Clip",[F,"./easing"],function(t){function e(t){this._target=t[D],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 n=t("./easing");return e[S]={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 i=this.easing,r=typeof i==y?n[i]:i,a=typeof r===u?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("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,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.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/config",[],function(){var t=1;typeof window!==o&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/bbox",[F,"./vector","./curve"],function(t){var e=t("./vector"),n=t("./curve"),i={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,c=e[b](),u=e[b](),l=e[b](),h=2*Math.PI;return i.fromPoints=function(t,e,n){if(0!==t[M]){var i,o=t[0],s=o[0],c=o[0],u=o[1],l=o[1];for(i=1;i<t[M];i++)o=t[i],s=r(s,o[0]),c=a(c,o[0]),u=r(u,o[1]),l=a(l,o[1]);e[0]=s,e[1]=u,n[0]=c,n[1]=l}},i.fromLine=function(t,e,n,i,o,s){o[0]=r(t,n),o[1]=r(e,i),s[0]=a(t,n),s[1]=a(e,i)},i.fromCubic=function(t,e,i,o,s,c,u,l,h,f){var d,p,m,v,g,y=[],_=[],x=n.cubicExtrema,b=n.cubicAt,w=x(t,i,s,u,y);for(g=0;w>g;g++)y[g]=b(t,i,s,u,y[g]);for(w=x(e,o,c,l,_),g=0;w>g;g++)_[g]=b(e,o,c,l,_[g]);y.push(t,u),_.push(e,l),d=r.apply(null,y),p=a.apply(null,y),m=r.apply(null,_),v=a.apply(null,_),h[0]=d,h[1]=m,f[0]=p,f[1]=v},i.fromQuadratic=function(t,e,i,o,s,c,u,l){var h=n.quadraticExtremum,f=n.quadraticAt,d=a(r(h(t,i,s),1),0),p=a(r(h(e,o,c),1),0),m=f(t,i,s,d),v=f(e,o,c,p);u[0]=r(t,s,m),u[1]=r(e,c,v),l[0]=a(t,s,m),l[1]=a(e,c,v)},i.fromArc=function(t,n,i,r,a,f,d,p,m){var v=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-i,p[1]=n-r,m[0]=t+i,void(m[1]=n+r);if(c[0]=s(a)*i+t,c[1]=o(a)*r+n,u[0]=s(f)*i+t,u[1]=o(f)*r+n,v(p,c,u),g(m,c,u),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var _=f;f=a,a=_}for(var x=0;f>x;x+=Math.PI/2)x>a&&(l[0]=s(x)*i+t,l[1]=o(x)*r+n,v(p,l,p),g(m,l,m))},i}),e("zrender/core/curve",[F,"./vector"],function(t){function e(t){return t>-x&&x>t}function n(t){return t>x||-x>t}function i(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function r(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function a(t,n,i,r,a,o){var s=r+3*(n-i)-t,c=3*(i-2*n+t),u=3*(n-t),l=t-a,h=c*c-3*s*u,f=c*u-9*s*l,d=u*u-3*c*l,p=0;if(e(h)&&e(f))if(e(c))o[0]=0;else{var m=-u/c;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-c/s+g,x=-g/2;m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x)}else if(v>0){var b=_(v),C=h*c+1.5*s*(-f+b),S=h*c+1.5*s*(-f-b);C=0>C?-y(-C,M):y(C,M),S=0>S?-y(-S,M):y(S,M);var m=(-c-(C+S))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var T=(2*h*c-3*s*f)/(2*_(h*h*h)),z=Math.acos(T)/3,L=_(h),k=Math.cos(z),m=(-c-2*L*k)/(3*s),x=(-c+L*(k+w*Math.sin(z)))/(3*s),A=(-c+L*(k-w*Math.sin(z)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),A>=0&&1>=A&&(o[p++]=A)}}return p}function o(t,i,r,a,o){var s=6*r-12*i+6*t,c=9*i+3*a-3*t-9*r,u=3*i-3*t,l=0;if(e(c)){if(n(s)){var h=-u/s;h>=0&&1>=h&&(o[l++]=h)}}else{var f=s*s-4*c*u;if(e(f))o[0]=-s/(2*c);else if(f>0){var d=_(f),h=(-s+d)/(2*c),p=(-s-d)/(2*c);h>=0&&1>=h&&(o[l++]=h),p>=0&&1>=p&&(o[l++]=p)}}return l}function s(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,c=(i-n)*r+n,u=(s-o)*r+o,l=(c-s)*r+s,h=(l-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=l,a[6]=c,a[7]=i}function c(t,e,n,r,a,o,s,c,u,l,h){var f,d,p,m,v,y=.005,b=1/0;C[0]=u,C[1]=l;for(var w=0;1>w;w+=.05)S[0]=i(t,n,a,s,w),S[1]=i(e,r,o,c,w),m=g(C,S),b>m&&(f=w,b=m);b=1/0;for(var M=0;32>M&&!(x>y);M++)d=f-y,p=f+y,S[0]=i(t,n,a,s,d),S[1]=i(e,r,o,c,d),m=g(S,C),d>=0&&b>m?(f=d,b=m):(T[0]=i(t,n,a,s,p),T[1]=i(e,r,o,c,p),v=g(T,C),1>=p&&b>v?(f=p,b=v):y*=.5);return h&&(h[0]=i(t,n,a,s,f),h[1]=i(e,r,o,c,f)),_(b)}function u(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function l(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function h(t,i,r,a,o){var s=t-2*i+r,c=2*(i-t),u=t-a,l=0;if(e(s)){if(n(c)){var h=-u/c;h>=0&&1>=h&&(o[l++]=h)}}else{var f=c*c-4*s*u;if(e(f)){var h=-c/(2*s);h>=0&&1>=h&&(o[l++]=h)}else if(f>0){var d=_(f),h=(-c+d)/(2*s),p=(-c-d)/(2*s);h>=0&&1>=h&&(o[l++]=h),p>=0&&1>=p&&(o[l++]=p)}}return l}function f(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function d(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function p(t,e,n,i,r,a,o,s,c){var l,h=.005,f=1/0;C[0]=o,C[1]=s;for(var d=0;1>d;d+=.05){S[0]=u(t,n,r,d),S[1]=u(e,i,a,d);var p=g(C,S);f>p&&(l=d,f=p)}f=1/0;for(var m=0;32>m&&!(x>h);m++){var v=l-h,y=l+h;S[0]=u(t,n,r,v),S[1]=u(e,i,a,v);var p=g(S,C);if(v>=0&&f>p)l=v,f=p;else{T[0]=u(t,n,r,y),T[1]=u(e,i,a,y);var b=g(T,C);1>=y&&f>b?(l=y,f=b):h*=.5}}return c&&(c[0]=u(t,n,r,l),c[1]=u(e,i,a,l)),_(f)}var m=t("./vector"),v=m[b],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-4,w=_(3),M=1/3,C=v(),S=v(),T=v();return{cubicAt:i,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:c,quadraticAt:u,quadraticDerivativeAt:l,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,c=0,u=t;if(o>e+s&&o>i+s||e-s>o&&i-s>o||a>t+s&&a>n+s||t-s>a&&n-s>a)return!1;if(t===n)return Math.abs(a-t)<=s/2;c=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var l=c*a-o+u,h=l*l/(c*c+1);return s/2*s/2>=h}}}),e("zrender/contain/quadratic",[F,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,n,i,r,a,o,s,c,u){if(0===s)return!1;var l=s;if(u>n+l&&u>r+l&&u>o+l||n-l>u&&r-l>u&&o-l>u||c>t+l&&c>i+l&&c>a+l||t-l>c&&i-l>c&&a-l>c)return!1;var h=e.quadraticProjectPoint(t,n,i,r,a,o,c,u,null);return l/2>=h}}}),e("zrender/contain/cubic",[F,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,n,i,r,a,o,s,c,u,l,h){if(0===u)return!1;var f=u;if(h>n+f&&h>r+f&&h>o+f&&h>c+f||n-f>h&&r-f>h&&o-f>h&&c-f>h||l>t+f&&l>i+f&&l>a+f&&l>s+f||t-f>l&&i-f>l&&a-f>l&&s-f>l)return!1;var d=e.cubicProjectPoint(t,n,i,r,a,o,s,c,l,h,null);return f/2>=d}}}),e("zrender/contain/arc",[F,"./util"],function(t){var e=t("./util").normalizeRadian,n=2*Math.PI;return{containStroke:function(t,i,r,a,o,s,c,u,l){if(0===c)return!1;var h=c;u-=t,l-=i;var f=Math.sqrt(u*u+l*l);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%n<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=n);var p=Math.atan2(l,u);return 0>p&&(p+=n),p>=a&&o>=p||p+n>=a&&o>=p+n}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,n,i,r,a){if(a>e&&a>i||e>a&&i>a)return 0;if(i===e)return 0;var o=e>i?1:-1,s=(a-e)/(i-e),c=s*(n-t)+t;return c>r?o:0}}),e("zrender/contain/util",[F],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/graphic/helper/roundRect",[F],function(){return{buildPath:function(t,e){var n,i,r,a,o=e.x,s=e.y,c=e.width,u=e[I],l=e.r;0>c&&(o+=c,c=-c),0>u&&(s+=u,u=-u),"number"==typeof l?n=i=r=a=l:l instanceof Array?1===l[M]?n=i=r=a=l[0]:2===l[M]?(n=r=l[0],i=a=l[1]):3===l[M]?(n=l[0],i=a=l[1],r=l[2]):(n=l[0],i=l[1],r=l[2],a=l[3]):n=i=r=a=0;var h;n+i>c&&(h=n+i,n*=c/h,i*=c/h),r+a>c&&(h=r+a,r*=c/h,a*=c/h),i+r>u&&(h=i+r,i*=u/h,r*=u/h),n+a>u&&(h=n+a,n*=u/h,a*=u/h),t.moveTo(o+n,s),t.lineTo(o+c-i,s),0!==i&&t.quadraticCurveTo(o+c,s,o+c,s+i),t.lineTo(o+c,s+u-r),0!==r&&t.quadraticCurveTo(o+c,s+u,o+c-r,s+u),t.lineTo(o+a,s+u),0!==a&&t.quadraticCurveTo(o,s+u,o,s+u-a),t.lineTo(o,s+n),0!==n&&t.quadraticCurveTo(o,s,o+n,s)}}}),e("zrender/core/LRU",[F],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[S];e.insert=function(t){var e=new n(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.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var n=function(t){this.value=t,this.next,this.prev},i=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=i[S];return r.put=function(t,e){var n=this._list,i=this._map;if(null==i[t]){var r=n.len();if(r>=this._maxSize&&r>0){var a=n.head;n.remove(a),delete i[a.key]}var o=n.insert(e);o.key=t,i[t]=o}},r.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},i}),e("zrender/graphic/helper/poly",[F,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),n=t("./smoothBezier");return{buildPath:function(t,i,r){var a=i.points,o=i.smooth;if(a&&a[M]>=2){if(o&&"spline"!==o){var s=n(a,o,r,i.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var c=a[M],u=0;(r?c:c-1)>u;u++){var l=s[2*u],h=s[2*u+1],f=a[(u+1)%c];t.bezierCurveTo(l[0],l[1],h[0],h[1],f[0],f[1])}}else{"spline"===o&&(a=e(a,r)),t.moveTo(a[0][0],a[0][1]);for(var u=1,d=a[M];d>u;u++)t.lineTo(a[u][0],a[u][1])}r&&t.closePath()}}}}),e("zrender/graphic/helper/smoothSpline",[F,"../../core/vector"],function(t){function e(t,e,n,i,r,a,o){var s=.5*(n-t),c=.5*(i-e);return(2*(e-n)+s+c)*o+(-3*(e-n)-2*s-c)*a+s*r+e}var n=t("../../core/vector");return function(t,i){for(var r=t[M],a=[],o=0,s=1;r>s;s++)o+=n.distance(t[s-1],t[s]);var c=o/2;c=r>c?r:c;for(var s=0;c>s;s++){var u,l,h,f=s/(c-1)*(i?r:r-1),d=Math.floor(f),p=f-d,m=t[d%r];i?(u=t[(d-1+r)%r],l=t[(d+1)%r],h=t[(d+2)%r]):(u=t[0===d?d:d-1],l=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var v=p*p,g=p*v;a.push([e(u[0],m[0],l[0],h[0],p,v,g),e(u[1],m[1],l[1],h[1],p,v,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[F,"../../core/vector"],function(t){var e=t("../../core/vector"),n=e.min,i=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,c,u){var l,h,f,d,p=[],m=[],v=[],g=[];if(u){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[M];_>y;y++)n(f,f,t[y]),i(d,d,t[y]);n(f,f,u[0]),i(d,d,u[1])}for(var y=0,_=t[M];_>y;y++){var x=t[y];if(c)l=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}l=t[y-1],h=t[y+1]}e.sub(m,h,l),r(m,m,s);var b=a(x,l),w=a(x,h),C=b+w;0!==C&&(b/=C,w/=C),r(v,m,-b),r(g,m,w);var S=o([],x,v),T=o([],x,g);u&&(i(S,S,f),n(S,S,d),i(T,T,f),n(T,T,d)),p.push(S),p.push(T)}return c&&p.push(p.shift()),p}}),e("zrender/Handler",[F,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t,e,n){return{type:t,event:n,target:e,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta}}function n(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===n&&i.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[D],a,r.event)}}function i(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var n=g.concat(y),i=0;i<n[M];i++){var r=n[i];t._handlers[r]=f.bind(T[r],t)}for(var i=0;i<v[M];i++){var r=v[i];t._handlers[r]=e(T[r],t)}}function r(t,e,n){if(t[t.rectHover?"rectContain":w](e,n)){for(var i=t.parent;i;){if(i.clipPath&&!i.clipPath[w](e,n))return!1;i=i.parent}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 l.touchEventsSupported}function c(t){return"mousewheel"===t&&l.browser.firefox?"DOMMouseScroll":t}var l=t("./core/env"),h=t("./core/event"),f=t("./core/util"),d=t("./mixin/Draggable"),p=t("./core/GestureMgr"),m=t("./mixin/Eventful"),v=["click","dblclick","mousewheel","mouseout"];!o()&&v.push("mouseup","mousedown","mousemove");var g=["touchstart","touchend","touchmove"],y=["pointerdown","pointerup","pointermove"],_=300,x=h.addEventListener,b=h.removeEventListener,C=h.normalizeEvent,T={mousemove:function(t){t=C(this.root,t);var e=t.zrX,n=t.zrY,i=this.findHover(e,n,null),r=this._hovered;this._hovered=i,this.root.style.cursor=i?i.cursor:this._defaultCursorStyle,r&&i!==r&&r.__zr&&this._dispatchProxy(r,"mouseout",t),this._dispatchProxy(i,"mousemove",t),i&&i!==r&&this._dispatchProxy(i,"mouseover",t)},mouseout:function(t){t=C(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,"mouseout",t),this.trigger("globalout",{event:t})},touchstart:function(t){t=C(this.root,t),this._lastTouchMoment=new Date,n(this,t,"start"),T.mousemove.call(this,t),T.mousedown.call(this,t),a(this)},touchmove:function(t){t=C(this.root,t),n(this,t,"change"),T.mousemove.call(this,t),a(this)},touchend:function(t){t=C(this.root,t),n(this,t,"end"),T.mouseup.call(this,t),+new Date-this._lastTouchMoment<_&&T.click.call(this,t),a(this)}};f.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){T[t]=function(e){e=C(this.root,e);var n=this.findHover(e.zrX,e.zrY,null);this._dispatchProxy(n,t,e)}});var z=function(t,e,n){function r(e,n){f.each(e,function(e){x(t,c(e),n._handlers[e])},n)}m.call(this),this.root=t,this.storage=e,this.painter=n,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new p,this._handlers=[],this._touching=!1,this._touchTimer,i(this),o()?r(y,this):s()&&r(g,this),r(v,this),d.call(this)};return z[S]={constructor:z,resize:function(){this._hovered=null},dispatch:function(t,e){var n=this._handlers[t];n&&n.call(this,e)},dispose:function(){for(var t=this.root,e=v.concat(g),n=0;n<e[M];n++){var i=e[n];b(t,c(i),this._handlers[i])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,n,i){for(var r="on"+n,a=e(n,t,i),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o.trigger(n,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(n,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==u&&t[r].call(t,a),t.trigger&&t.trigger(n,a)}))},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),a=i[M]-1;a>=0;a--)if(!i[a].silent&&i[a]!==n&&!i[a].ignore&&r(i[a],t,e))return i[a]}},f.mixin(z,m),f.mixin(z,d),z}),e("echarts/coord/cartesian/Cartesian2D",[F,T,"./Cartesian"],function(t){function e(t){r.call(this,t)}var n=t(T),r=t("./Cartesian");return e[S]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(i)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e[w](e.toLocalCoord(t[0]))&&n[w](n.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.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.toGlobalCoord(n.dataToCoord(t[0],e)),i.toGlobalCoord(i.dataToCoord(t[1],e))]},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.coordToData(n.toLocalCoord(t[0]),e),i.coordToData(i.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},n[c](e,r),e}),e("zrender/Storage",[F,"./core/util","./container/Group"],function(t){function e(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var n=t("./core/util"),i=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[S]={constructor:r,getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var n=this._roots,i=this._displayList,r=0,a=n[M];a>r;r++)this._updateAndAddDisplayable(n[r],null,t);i[M]=this._displayListLen;for(var r=0,a=i[M];a>r;r++)i[r].__renderidx=r;i.sort(e)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.clipPath;if(i&&(i.parent=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var r=t._children,a=0;a<r[M];a++){var o=r[a];o.__dirty=t.__dirty||o.__dirty,this._updateAndAddDisplayable(o,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof i&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[M];e++){var r=this._roots[e];r instanceof i&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[M];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==y?this._elements[t]:t;var s=n[l](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[p](s,1),o instanceof i&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof i&&(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,n=e[t];return n&&(delete e[t],n instanceof i&&(n.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/Painter",[F,"./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[g]!==u||typeof t.refresh!==u?!1:!0:!1}function a(t){t.__unusedCount++}function o(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function s(t,e,n){return _.copy(t[R]()),t.transform&&_[r](t.transform),x.width=e,x[I]=n,!_.intersect(x)}function c(t,e){if(!t||!e||t[M]!==e[M])return!0;for(var n=0;n<t[M];n++)if(t[n]!==e[n])return!0}function h(t,e){for(var n=0;n<t[M];n++){var i,r=t[n];r.transform&&(i=r.transform,e.transform(i[0],i[1],i[2],i[3],i[4],i[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r.transform&&(i=r.invTransform,e.transform(i[0],i[1],i[2],i[3],i[4],i[5]))}}var f=t("./config"),d=t("./core/util"),m=t("./core/log"),v=t("./core/BoundingRect"),y=t("./Layer"),_=new v(0,0,0,0),x=new v(0,0,0,0),b=function(t,e,n){var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();n=n||{},this.dpr=n.devicePixelRatio||f.devicePixelRatio,this._singleCanvas=i,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,i){var a=t.width,o=t[I];this._width=a,this._height=o;var s=new y(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 c=document.createElement("div");this._domRoot=c;var u=c.style;u[z]="relative",u.overflow="hidden",u.width=this._width+"px",u[I]=this._height+"px",t.appendChild(c),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return b[S]={constructor:b,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),n=this._zlevelList;this._paintList(e,t);for(var i=0;i<n[M];i++){var r=n[i],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var n,i,r,u=this._width,l=this._height;this.eachBuildinLayer(a);for(var f=null,d=0,p=t[M];p>d;d++){var v=t[d],g=this._singleCanvas?0:v.zlevel;if(i!==g&&(i=g,n=this.getLayer(i),n.isBuildin||m("ZLevel "+i+" has been used by unkown layer "+n.id),r=n.ctx,n.__unusedCount=0,(n.__dirty||e)&&n.clear()),(n.__dirty||e)&&!v.invisible&&0!==v.style.opacity&&v.scale[0]&&v.scale[1]&&(!v.culling||!s(v,u,l))){var y=v.__clipPaths;c(y,f)&&(f&&r.restore(),y&&(r.save(),h(y,r)),f=y),v.beforeBrush&&v.beforeBrush(r),v.brush(r,!1),v.afterBrush&&v.afterBrush(r)}v.__dirty=!1}f&&r.restore(),this.eachBuildinLayer(o)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new y("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&d.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[M],o=null,s=-1,c=this._domRoot;if(n[t])return void m("ZLevel "+t+" has been used already");if(!i(e))return void m("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[p](s+1,0,t),o){var u=o.dom;u.nextSibling?c.insertBefore(e.dom,u.nextSibling):c.appendChild(e.dom)}else c.firstChild?c.insertBefore(e.dom,c.firstChild):c.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r[M];i++)n=r[i],t.call(e,this._layers[n],n)},eachBuildinLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a[M];r++)i=a[r],n=this._layers[i],n.isBuildin&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a[M];r++)i=a[r],n=this._layers[i],n.isBuildin||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,n={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0});for(var i=0,r=t[M];r>i;i++){var a=t[i],o=this._singleCanvas?0:a.zlevel,s=e[o];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=a.__dirty}}this.eachBuildinLayer(function(t,e){n[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 n=this._layerConfig;n[t]?d.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&d.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n[p](d[l](n,t),1))},resize:function(t,e){var n=this._domRoot;if(n.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style[I]=e+"px";for(var i in this._layers)this._layers[i][g](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 y("image",this,t.pixelRatio||this.dpr);e.initContext();var n=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),r=0;r<i[M];r++){var a=i[r];a.invisible||(a.beforeBrush&&a.beforeBrush(n),a.brush(n,!1),a.afterBrush&&a.afterBrush(n))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,n=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(n.width)||e(t.style.width))-(e(n.paddingLeft)||0)-(e(n.paddingRight)||0)|0},_getHeight:function(){var t=this.root,n=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(n[I])||e(t.style[I]))-(e(n.paddingTop)||0)-(e(n.paddingBottom)||0)|0},_pathToImage:function(e,i,r,a,o){var s=document.createElement("canvas"),c=s[n]("2d");s.width=r*o,s[I]=a*o,c.clearRect(0,0,r*o,a*o);var u={position:i[z],rotation:i.rotation,scale:i.scale};i[z]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(c);var l=t("./graphic/Image"),h=new l({id:e,style:{x:0,y:0,image:s}});return null!=u[z]&&(h[z]=i[z]=u[z]),null!=u.rotation&&(h.rotation=i.rotation=u.rotation),null!=u.scale&&(h.scale=i.scale=u.scale),h},_createPathToImage:function(){var t=this;return function(e,n,i,r){return t._pathToImage(e,n,i,r,t.dpr)}}},b}),e("zrender/animation/Animation",[F,"../core/util","../core/event","./Animator"],function(t){var e=t("../core/util"),n=t("../core/event").Dispatcher,i=typeof window!==o&&(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,n.call(this)};return a[S]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e[M];n++)this.addClip(e[n])},removeClip:function(t){var n=e[l](this._clips,t);n>=0&&this._clips[p](n,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e[M];n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,n=this._clips,i=n[M],r=[],a=[],o=0;i>o;o++){var s=n[o],c=s.step(t);c&&(r.push(c),a.push(s))}for(var o=0;i>o;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r[M];for(var o=0;i>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},start:function(){function t(){e._running&&(i(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),i(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var n=new r(t,e.loop,e.getter,e.setter);return n}},e.mixin(a,n),a}),e("echarts/coord/axisHelper",[F,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",T,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),n=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var r=t("../scale/Scale"),a=t("../util/number"),o=t(T),s=t("zrender/contain/text"),c={};return c.getScaleExtent=function(t,e){var n=t.scale,r=n.getExtent(),s=r[1]-r[0];if(n.type===i)return isFinite(s)?r:[0,0];var c=e.getMin?e.getMin():e.get("min"),u=e.getMax?e.getMax():e.get("max"),l=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),f=e.get("boundaryGap");o[h](f)||(f=[f||0,f||0]),f[0]=a.parsePercent(f[0],1),f[1]=a.parsePercent(f[1],1);var d=!0,p=!0;return null==c&&(c=r[0]-f[0]*s,d=!1),null==u&&(u=r[1]+f[1]*s,p=!1),"dataMin"===c&&(c=r[0]),"dataMax"===u&&(u=r[1]),l&&(c>0&&u>0&&!d&&(c=0),0>c&&0>u&&!p&&(u=0)),[c,u]},c.niceScaleExtent=function(t,e){var n=t.scale,i=c.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max"));n.setExtent(i[0],i[1]),n.niceExtent(e.get("splitNumber"),r,a);var o=e.get("interval");null!=o&&n.setInterval&&n.setInterval(o)},c.createScaleByModel=function(t,i){if(i=i||t.get("type"))switch(i){case"category":return new e(t.getCategories(),[1/0,-1/0]);case"value":return new n;default:return(r.getClass(i)||n)[b](t)}},c.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)},c.getAxisLabelInterval=function(t,e,n,i){var r,a=0,o=0,c=1;e[M]>40&&(c=Math.round(e[M]/40));for(var u=0;u<t[M];u+=c){var l=t[u],h=s[R](e[u],n,L,"top");h[i?"x":"y"]+=l,h[i?"width":I]*=1.5,r?r.intersect(h)?(o++,a=Math.max(a,o)):(r.union(h),o=0):r=h.clone()}return 0===a&&c>1?c:a*c},c.getFormattedLabels=function(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return typeof e===y?(e=function(t){return function(e){return t[f]("{value}",e)}}(e),o.map(i,e)):typeof e===u?o.map(r,function(i,r){return e("category"===t.type?n.getLabel(i):i,r)},this):i},c}),e("echarts/coord/cartesian/GridModel",[F,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[C]({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/mixin/Draggable",[F],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[S]={constructor:t,_dragStart:function(t){var e=t[D];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 n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this.findHover(n,i,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",[F],function(){function t(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=function(){this._track=[]};n[S]={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[M]=0,this},_doTrack:function(t,e){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},r=0,a=n[M];a>r;r++){var o=n[r];i.points.push([o.clientX,o.clientY]),i.touches.push(o)}this._track.push(i)}},_recognize:function(t){for(var e in i)if(i.hasOwnProperty(e)){var n=i[e](this._track,t);if(n)return n}}};var i={pinch:function(n,i){var r=n[M];if(r){var a=(n[r-1]||{}).points,o=(n[r-2]||{}).points||a;if(o&&o[M]>1&&a&&a[M]>1){var s=t(a)/t(o);!isFinite(s)&&(s=1),i.pinchScale=s;var c=e(a);return i.pinchX=c[0],i.pinchY=c[1],{type:"pinch",target:n[0][D],event:i}}}}};return n}),e("echarts/coord/cartesian/Axis2D",[F,T,"../Axis","./axisLabelInterval"],function(t){var e=t(T),n=t("../Axis"),i=t("./axisLabelInterval"),r=function(t,e,i,r,a){n.call(this,t,e,i),this.type=r||"value",this[z]=a||v};return r[S]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[z];
- return"top"===t||t===v},getGlobalExtent:function(){var t=this.getExtent();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=i(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return typeof e===u&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[c](r,n),r}),e("zrender/core/event",[F,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,n){if(n=n||window.event,null!=n.zrX)return n;var i=n.type,r=i&&i[l]("touch")>=0;if(r){var a="touchend"!=i?n.targetTouches[0]:n.changedTouches[0];if(a){var o=e(t);n.zrX=a.clientX-o.left,n.zrY=a.clientY-o.top}}else{var s=e(t);n.zrX=n.clientX-s.left,n.zrY=n.clientY-s.top,n.zrDelta=n.wheelDelta?n.wheelDelta/120:-(n.detail||0)/3}return n}function i(t,e,n){s?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function r(t,e,n){s?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var a=t("../mixin/Eventful"),s=typeof window!==o&&!!window.addEventListener,c=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:n,addEventListener:i,removeEventListener:r,stop:c,Dispatcher:a}}),e("echarts/scale/Ordinal",[F,T,"./Scale"],function(t){var e=t(T),n=t("./Scale"),i=n[S],r=n[C]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[M]-1]},parse:function(t){return typeof t===y?e[l](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),i[w].call(this,t)&&null!=this._data[t]},normalize:function(t){return i.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(i.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;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[b]=function(){return new r},r}),e("zrender/Layer",[F,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,n,i){var r=document.createElement(e),a=n[P](),o=n[A](),s=r.style;return s[z]="absolute",s.left=0,s.top=0,s.width=a+"px",s[I]=o+"px",r.width=a*i,r[I]=o*i,r.setAttribute("data-zr-dom-id",t),r}var r=t("./core/util"),a=t("./config"),o=function(t,n,o){var s;o=o||a.devicePixelRatio,typeof t===y?s=i(t,"canvas",n,o):r[m](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var c=s.style;c&&(s.onselectstart=e,c["-webkit-user-select"]="none",c["user-select"]="none",c["-webkit-touch-callout"]="none",c["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return o[S]={constructor:o,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[n]("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[n]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r.width=t+"px",r[I]=e+"px",i.width=t*n,i[I]=e*n,1!=n&&this.ctx.scale(n,n),a&&(a.width=t*n,a[I]=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e[I],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,c=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/c,r/c)),n.clearRect(0,0,i/c,r/c),a&&(n.save(),n.fillStyle=this.clearColor,n.fillRect(0,0,i/c,r/c),n.restore()),o){var u=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(u,0,0,i/c,r/c),n.restore()}}},o}),e("echarts/coord/cartesian/Cartesian",[F,T],function(t){function e(t){return this._axes[t]}var n=t(T),i=function(t){this._axes={},this._dimList=[],this.name=t||""};return i[S]={constructor:i,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[_](),n[x](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 n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n[M];r++){var a=n[r],o=this._axes[a];i[a]=o[e](t[a])}return i}},i}),e("echarts/preprocessor/helper/compatStyle",[F,T],function(t){function e(t){var e=t&&t.itemStyle;e&&n.each(i,function(i){var r=e[a],o=e.emphasis;r&&r[i]&&(t[i]=t[i]||{},t[i][a]?n.merge(t[i][a],r[i]):t[i][a]=r[i],r[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?n.merge(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)})}var n=t(T),i=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var i=t.data;if(i){for(var r=0;r<i[M];r++)e(i[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[M];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var c=s.data,r=0;r<c[M];r++)n[h](c[r])?(e(c[r][0]),e(c[r][1])):e(c[r])}}}}),e("echarts/coord/cartesian/axisLabelInterval",[F,T,"../axisHelper"],function(t){var e=t(T),n=t("../axisHelper");return function(t){var i=t.model,r=i[B]("axisLabel"),a=r.get("interval");return"category"!==t.type||"auto"!==a?"auto"===a?0:a:n.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),i.getFormattedLabels(),r[B](E)[O](),t.isHorizontal())}}),e("echarts/coord/Axis",[F,"../util/number",T],function(t){function e(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}var n=t("../util/number"),r=n.linearMap,a=t(T),o=[0,1],s=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};return s[S]={constructor:s,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},containData:function(t){return this[w](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return n.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,n){var a=this._extent,s=this.scale;return t=s.normalize(t),this.onBand&&s.type===i&&(a=a.slice(),e(a,s.count())),r(t,o,a,n)},coordToData:function(t,n){var a=this._extent,s=this.scale;this.onBand&&s.type===i&&(a=a.slice(),e(a,s.count()));var c=r(t,a,o,n);return this.scale.scale(c)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],n=0;n<t[M];n++)e.push(t[n][0]);return t[n-1]&&e.push(t[n-1][1]),e}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),n=[],i=0;i<e[M];i++)t=e[i],n.push((t[0]+t[1])/2);return n}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this.getExtent(),e=[],n=this.scale.count(),i=t[0],r=t[1],a=r-i,o=0;n>o;o++)e.push([a*o/n+i,a*(o+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n}},s}),e("echarts/data/List",[F,"../model/Model","./DataDiffer",T,"../util/model"],function(t){function e(t){return v[h](t)||(t=[t]),t}function n(t,e){var n=t.dimensions,i=new w(v.map(n,t.getDimensionInfo,t),t.hostModel);b(i,t,t._wrappedMethods);for(var r=i._storage={},a=t._storage,o=0;o<n[M];o++){var s=n[o],c=a[s];r[s]=v[l](e,s)>=0?new c.constructor(a[s][M]):a[s]}return i}var r=o,a=typeof window===o?global:window,s=typeof a.Float64Array===r?Array:a.Float64Array,c=typeof a.Int32Array===r?Array:a.Int32Array,f={"float":s,"int":c,ordinal:Array,number:Array,time:Array},d=t("../model/Model"),p=t("./DataDiffer"),v=t(T),g=t("../util/model"),_=v[m],x=["stackedOn","_nameList","_idList","_rawData"],b=function(t,e,n){v.each(x.concat(n||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})},w=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r<t[M];r++){var a,o={};typeof t[r]===y?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||"number"),i.push(a),n[a]=o}this.dimensions=i,this._dimensionInfos=n,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},z=w[S];z.type="list",z.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},z.getDimensionInfo=function(t){return v.clone(this._dimensionInfos[this.getDimension(t)])},z.initData=function(t,e,n){t=t||[],this._rawData=t;var i=this._storage={},r=this.indices=[],a=this.dimensions,o=t[M],s=this._dimensionInfos,c=[],u={};e=e||[];for(var l=0;l<a[M];l++){var d=s[a[l]],p=f[d.type];i[a[l]]=new p(o)}n=n||function(t,e,n,i){var r=g.getDataItemValue(t);return g.converDataValue(v[h](r)?r[i]:r,s[e])};for(var m=0;m<t[M];m++){for(var y=t[m],_=0;_<a[M];_++){var x=a[_],b=i[x];b[m]=n(y,x,m,_)}r.push(m)}for(var l=0;l<t[M];l++){var w="";e[l]||(e[l]=t[l].name,w=t[l].id);var C=e[l]||"";!w&&C&&(u[C]=u[C]||0,w=C,u[C]>0&&(w+="__ec__"+u[C]),u[C]++),w&&(c[l]=w)}this._nameList=e,this._idList=c},z.count=function(){return this.indices[M]},z.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=i[t]&&i[t][r];if(n){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var c=s.get(t,e);(a>=0&&c>0||0>=a&&0>c)&&(a+=c),s=s.stackedOn}}return a},z.getValues=function(t,e,n){var i=[];v[h](t)||(n=e,e=t,t=this.dimensions);for(var r=0,a=t[M];a>r;r++)i.push(this.get(t[r],e,n));return i},z.hasValue=function(t){for(var e=this.dimensions,n=this._dimensionInfos,r=0,a=e[M];a>r;r++)if(n[e[r]].type!==i&&isNaN(this.get(e[r],t)))return!1;return!0},z.getDataExtent=function(t,e){var n=this._storage[t],i=this.getDimensionInfo(t);e=i&&i.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(n){for(var o=1/0,s=-1/0,c=0,u=this.count();u>c;c++)r=this.get(t,c,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-1/0]},z.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(i+=o)}return i},z[l]=function(t,e){var n=this._storage,i=n[t],r=this.indices;if(i)for(var a=0,o=r[M];o>a;a++){var s=r[a];if(i[s]===e)return a}return-1},z.indexOfName=function(t){for(var e=this.indices,n=this._nameList,i=0,r=e[M];r>i;i++){var a=e[i];if(n[a]===t)return i}return-1},z.indexOfNearest=function(t,e,n){var i=this._storage,r=i[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,c=this.count();c>s;s++){var u=Math.abs(this.get(t,s,n)-e);a>=u&&(a=u,o=s)}return o}return-1},z.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},z.getName=function(t){return this._nameList[this.indices[t]]||""},z.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},z.each=function(t,n,i,r){typeof t===u&&(r=i,i=n,n=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=t[M],s=this.indices;r=r||this;for(var c=0;c<s[M];c++)if(0===o)n.call(r,c);else if(1===o)n.call(r,this.get(t[0],c,i),c);else{for(var l=0;o>l;l++)a[l]=this.get(t[l],c,i);a[l]=c,n.apply(r,a)}},z.filterSelf=function(t,n,i,r){typeof t===u&&(r=i,i=n,n=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=[],s=t[M],c=this.indices;r=r||this;for(var l=0;l<c[M];l++){var h;if(1===s)h=n.call(r,this.get(t[0],l,i),l);else{for(var f=0;s>f;f++)o[f]=this.get(t[f],l,i);o[f]=l,h=n.apply(r,o)}h&&a.push(c[l])}return this.indices=a,this._extent={},this},z.mapArray=function(t,e,n,i){typeof t===u&&(i=n,n=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n,i),r},z.map=function(t,i,r,a){t=v.map(e(t),this.getDimension,this);var o=n(this,t),s=o.indices=this.indices,c=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[M]-1],n=i&&i.apply(this,arguments);if(null!=n){"number"==typeof n&&(u[0]=n,n=u);for(var r=0;r<n[M];r++){var a=t[r],o=c[a],l=s[e];o&&(o[l]=n[r])}}},r,a),o},z.downSample=function(t,e,i,r){for(var a=n(this,[t]),o=this._storage,s=a._storage,c=this.indices,u=a.indices=[],l=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),m=0;m<o[t][M];m++)s[t][m]=o[t][m];for(var m=0;p>m;m+=f){f>p-m&&(f=p-m,l[M]=f);for(var v=0;f>v;v++){var g=c[m+v];l[v]=d[g],h[v]=g}var y=i(l),g=h[r(l,y)||0];d[g]=y,u.push(g)}return a},z.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new d(this._rawData[t],e,e.ecModel)},z.diff=function(t){var e=this._idList,n=t&&t._idList;return new p(t?t.indices:[],this.indices,function(t){return n[t]||t+""},function(t){return e[t]||t+""})},z.getVisual=function(t){var e=this._visual;return e&&e[t]},z.setVisual=function(t,e){if(_(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},z.setLayout=function(t,e){if(_(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},z.getLayout=function(t){return this._layout[t]},z.getItemLayout=function(t){return this._itemLayouts[t]},z.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?v[C](this._itemLayouts[t]||{},e):e},z.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},z.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};if(this._itemVisuals[t]=i,_(e))for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);else i[e]=n};var L=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex};return z.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(L,e)),this._graphicEls[t]=e},z.getItemGraphicEl=function(t){return this._graphicEls[t]},z.eachItemGraphicEl=function(t,e){v.each(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},z.cloneShallow=function(){var t=v.map(this.dimensions,this.getDimensionInfo,this),e=new w(t,this.hostModel);return e._storage=this._storage,b(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},z.wrapMethod=function(t,e){var n=this[t];typeof n===u&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.call(this,t)})},w}),e("echarts/data/helper/completeDimensions",[F,T],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),c=r[h](s)&&s[M]||1;a=a||[],o=o||"extra";for(var u=0;c>u;u++)if(!t[u]){var l=a[u]||o+(u-a[M]);t[u]=n(e,u)?{type:"ordinal",name:l}:l}return t}function n(t,e){for(var n=0,a=t[M];a>n;n++){var o=i(t[n]);if(!r[h](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r.isString(o)&&"-"!==o)return!0}return!1}function i(t){return r[h](t)?t:r[m](t)?t.value:t}var r=t(T);return e}),e("echarts/chart/helper/dataSelectableMixin",[F,T],function(t){var e=t(T);return{updateSelectedMap:function(){var t=this[s];this._dataOptMap=e.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var n=this._dataOptMap,i=n[t],r=this.get("selectedMode");"single"===r&&e.each(n,function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}}),e("echarts/coord/cartesian/AxisModel",[F,"../../model/Component",T,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?"category":"value")}var n=t("../../model/Component"),i=t(T),r=t("../axisModelCreator"),a=n[C]({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this[s].rangeStart=t,this[s].rangeEnd=e},getMin:function(){var t=this[s];return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this[s];return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this[s];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this[s].rangeStart=this[s].rangeEnd=null}});i.merge(a[S],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("echarts/data/DataDiffer",[F],function(){function t(t){return t}function e(e,n,i,r){this._old=e,this._new=n,this._oldKeyGetter=i||t,this._newKeyGetter=r||t}function n(t,e,n){for(var i=0;i<t[M];i++){var r=n(t[i]),a=e[r];null==a?e[r]=i:(a[M]||(e[r]=a=[a]),a.push(i))}}return e[S]={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,i=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={};for(n(e,o,r),n(i,s,a),t=0;t<e[M];t++){var c=r(e[t]),u=s[c];if(null!=u){var l=u[M];l?(1===l&&(s[c]=null),u=u.unshift()):s[c]=null,this._update&&this._update(u,t)}else this._remove&&this._remove(t)}for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if(null==u)continue;if(u[M])for(var t=0,l=u[M];l>t;t++)this._add&&this._add(u[t]);else this._add&&this._add(u)}}},e}),e("echarts/coord/axisModelCreator",[F,"./axisDefault",T,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),n=t(T),i=t("../model/Component"),r=t("../util/layout"),a=["value","category","time","log"];return function(t,o,s,c){n.each(a,function(i){o[C]({type:t+"Axis."+i,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,c=o?r.getLayoutParams(e):{},u=a.getTheme();n.merge(e,u.get(i+"Axis")),n.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,c,o)},defaultOption:n.mergeAll([{},e[i+"Axis"],c],!0)})}),i.registerSubTypeDefaulter(t+"Axis",n.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[F,T,"./axisHelper"],function(t){function e(t){return r[m](t)&&null!=t.value?t.value:t}function n(){return"category"===this.get("type")&&r.map(this.get("data"),e)}function i(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(T),a=t("./axisHelper");return{getFormattedLabels:i,getCategories:n}}),e("echarts/component/helper/MapDraw",[F,"./RoamController","../../util/graphic",T],function(t){function e(t){var e=t.getItemStyle(),n=t.get("areaColor");return n&&(e.fill=n),e}function n(t,e,n,r,a){n.off("click"),t.get("selectedMode")&&n.on("click",function(n){var o=n[D].dataIndex;if(null!=o){var s=e.getName(o);r.dispatchAction({type:"mapToggleSelect",seriesIndex:t.seriesIndex,name:s,from:a.uid}),i(t,e,r)}})}function i(t,e){e.eachItemGraphicEl(function(n,i){var r=e.getName(i);n.trigger(t.isSelected(r)?"emphasis":a)})}function r(t,e){var n=new s.Group;this._controller=new o(t.getZr(),e?n:null,null),this.group=n,this._updateGroup=e}var o=t("./RoamController"),s=t("../../util/graphic"),c=t(T);return r[S]={constructor:r,draw:function(t,r,o,u){var l=t[d]&&t[d](),h=t.coordinateSystem,f=this.group;f.removeAll();var p=h.scale;f[z]=h[z].slice(),f.scale=p.slice();var m,v,g,y,_,x,b=["itemStyle",a],w=["itemStyle","emphasis"],M=["label",a],C=["label","emphasis"];l||(m=t[B](b),v=t[B](w),g=e(m,p),y=e(v,p),_=t[B](M),x=t[B](C)),c.each(h.regions,function(n){var i,r=new s.Group;if(l){i=l.indexOfName(n.name);var o=l.getItemModel(i),u=l.getItemVisual(i,"color",!0);m=o[B](b),v=o[B](w),g=e(m,p),y=e(v,p),_=o[B](M),x=o[B](C),u&&(g.fill=u)}var h=_[B](E),d=x[B](E);c.each(n.contours,function(t){var e=new s.Polygon({shape:{points:t},style:{strokeNoScale:!0},culling:!0});e.setStyle(g),r.add(e)});var S=_.get("show"),T=x.get("show"),z=l&&isNaN(l.get("value",i)),k=l&&l.getItemLayout(i);if(!l||z&&(S||T)||k&&k.showLabel){var A=l?i:n.name,P=t.getFormattedLabel(A,a),D=t.getFormattedLabel(A,"emphasis"),I=new s.Text({style:{text:S?P||n.name:"",fill:h.getTextColor(),textFont:h[O](),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:T?D||n.name:"",fill:d.getTextColor(),textFont:d[O]()},position:n[L].slice(),scale:[1/p[0],1/p[1]],z2:10,silent:!0});r.add(I)}l&&l.setItemGraphicEl(i,r),s.setHoverStyle(r,y),f.add(r)}),this._updateController(t,r,o),l&&n(t,l,f,o,u),l&&i(t,l)},remove:function(){this.group.removeAll(),this._controller.dispose()},_updateController:function(t,e,n){var i=t.coordinateSystem,r=this._controller;r.enable(t.get("roam")||!1);var a=t.type.split(".")[0];r.off("pan").on("pan",function(e,i){n.dispatchAction({type:"geoRoam",component:a,name:t.name,dx:e,dy:i})}),r.off("zoom").on("zoom",function(e,i,r){if(n.dispatchAction({type:"geoRoam",component:a,name:t.name,zoom:e,originX:i,originY:r}),this._updateGroup){var o=this.group,s=o.scale;o.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.rect=i.getViewRect()}},r}),e("echarts/coord/axisDefault",[F,T],function(t){var e=t(T),n={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)"]}}},i=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},n),r=e.defaults({boundaryGap:[0,0],splitNumber:5},n),a=e.defaults({scale:!0,min:"dataMin",max:"dataMax"},r),o=e.defaults({},r);return o.scale=!0,{categoryAxis:i,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/helper/RoamController",[F,"zrender/mixin/Eventful",T,"zrender/core/event","./interactionMutex"],function(t){function e(t){if(!t[D]||!t[D].draggable){var e=t.offsetX,n=t.offsetY,i=this.rect;i&&i[w](e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function n(t){if(this._dragging&&(l.stop(t.event),"pinch"!==t.gestureEvent)){if(h.isTaken("globalPan",this._zr))return;var e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y;this._x=e,this._y=n;var a=this[D];if(a){var o=a[z];o[0]+=i,o[1]+=r,a.dirty()}l.stop(t.event),this.trigger("pan",i,r)}}function i(){this._dragging=!1}function r(t){l.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)){l.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,n,i){var r=this.rect;if(r&&r[w](n,i)){var a=this[D];if(a){var o=a[z],s=a.scale,c=this._zoom=this._zoom||1;c*=e;var u=c/this._zoom;this._zoom=c,o[0]-=(n-o[0])*(u-1),o[1]-=(i-o[1])*(u-1),s[0]*=u,s[1]*=u,a.dirty()}this.trigger("zoom",e,n,i)}}function s(t,o,s){this[D]=o,this.rect=s,this._zr=t;var l=u.bind,h=l(e,this),f=l(n,this),d=l(i,this),p=l(r,this),m=l(a,this);c.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",f),t.on("mouseup",d)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",p),t.on("pinch",m))},this.disable=function(){t.off("mousedown",h),t.off("mousemove",f),t.off("mouseup",d),t.off("mousewheel",p),t.off("pinch",m)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var c=t("zrender/mixin/Eventful"),u=t(T),l=t("zrender/core/event"),h=t("./interactionMutex");return u.mixin(s,c),s}),e("echarts/component/axis/AxisView",[F,T,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function n(t){var e=i.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var i=t.coordinateSystem,r=e.axis,a={},o=r[z],s=r.onZero?"onZero":o,c=r.dim,u=i.getRect(),l=[u.x,u.x+u.width,u.y,u.y+u[I]],h={x:{top:l[2],bottom:l[3]},y:{left:l[0],right:l[1]}};h.x.onZero=Math.max(Math.min(n("y"),h.x[v]),h.x.top),h.y.onZero=Math.max(Math.min(n("x"),h.y.right),h.y.left),a[z]=["y"===c?h.y[s]:l[0],"x"===c?h.x[s]:l[3]];var f={x:0,y:1};a.rotation=Math.PI/2*f[c];var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],r.onZero&&(a.labelOffset=h[c][o]-h[c].onZero),e[B]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[B]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var p=e[B]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var n=t(T),i=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],c=["splitLine","splitArea"],u=t("../../echarts").extendComponentView({type:"axis",render:function(t,i){if(this.group.removeAll(),t.get("show")){var a=i.getComponent("grid",t.get("gridIndex")),o=e(a,t),u=new r(t,o);n.each(s,u.add,u),this.group.add(u.getGroup()),n.each(c,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,r){var s=t.axis,c=t[B]("splitLine"),u=c[B]("lineStyle"),l=u.get("width"),f=u.get("color"),d=o(c,r);f=n[h](f)?f:[f];for(var p=e.coordinateSystem.getRect(),m=s.isHorizontal(),v=[],g=0,y=s.getTicksCoords(),_=[],x=[],b=0;b<y[M];b++)if(!a(s,b,d)){var w=s.toGlobalCoord(y[b]);m?(_[0]=w,_[1]=p.y,x[0]=w,x[1]=p.y+p[I]):(_[0]=p.x,_[1]=w,x[0]=p.x+p.width,x[1]=w);var C=g++%f[M];v[C]=v[C]||[],v[C].push(new i.Line(i.subPixelOptimizeLine({shape:{x1:_[0],y1:_[1],x2:x[0],y2:x[1]},style:{lineWidth:l},silent:!0})))}for(var S=u.getLineStyle(),b=0;b<v[M];b++)this.group.add(i.mergePath(v[b],{style:n.defaults({stroke:f[b%f[M]]},S),silent:!0}))},_splitArea:function(t,e,r){var s=t.axis,c=t[B]("splitArea"),u=c[B]("areaStyle"),l=u.get("color"),f=e.coordinateSystem.getRect(),d=s.getTicksCoords(),p=s.toGlobalCoord(d[0]),m=s.toGlobalCoord(d[0]),v=[],g=0,y=o(c,r);l=n[h](l)?l:[l];for(var _=1;_<d[M];_++)if(!a(s,_,y)){var x,b,w,C,S=s.toGlobalCoord(d[_]);s.isHorizontal()?(x=p,b=f.y,w=S-x,C=f[I]):(x=f.x,b=m,w=f.width,C=S-b);var T=g++%l[M];v[T]=v[T]||[],v[T].push(new i.Rect({shape:{x:x,y:b,width:w,height:C},silent:!0})),p=x+w,m=b+C}for(var z=u.getAreaStyle(),_=0;_<v[M];_++)this.group.add(i.mergePath(v[_],{style:n.defaults({fill:l[_%l[M]]},z),silent:!0}))}});u[C]({type:"xAxis"}),u[C]({type:"yAxis"})}),e("echarts/component/helper/interactionMutex",[F],function(){function t(t){return t[e]||(t[e]={})}var e="\x00_ec_interaction_mutex",n={take:function(e,n){t(n)[e]=!0},release:function(e,n){t(n)[e]=!1},isTaken:function(e,n){return!!t(n)[e]}};return n}),e("echarts/component/axis/AxisBuilder",[F,T,"../../util/graphic","../../model/Model","../../util/number"],function(t){function e(t,e,n){var i,r,a=l(e-t.rotation);return h(a)?(r=n>0?"top":v,i=L):h(a-f)?(r=n>0?v:"top",i=L):(r=k,i=a>0&&f>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,verticalAlign:r}}function n(t,e,n){var i,r,a=l(-t.rotation),o=n[0]>n[1],s="start"===e&&!o||"start"!==e&&o;return h(a-f/2)?(r=s?v:"top",i=L):h(a-1.5*f)?(r=s?"top":v,i=L):(r=k,i=1.5*f>a&&a>f/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:i,verticalAlign:r}}var a=t(T),o=t("../../util/graphic"),s=t("../../model/Model"),c=t("../../util/number"),l=c.remRadian,h=c.isRadianAroundZero,f=Math.PI,d=function(t,e){this.opt=e,this.axisModel=t,a.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new o.Group({position:e[z].slice(),rotation:e.rotation})};d[S]={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 n=this.axisModel.axis.getExtent();this.group.add(new o.Line({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:a[C]({lineCap:"round"},e[B]("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,n=t[B]("axisTick"),i=this.opt,r=n[B]("lineStyle"),a=n.get(M),s=g(n,i.labelInterval),c=e.getTicksCoords(),u=[],l=0;l<c[M];l++)if(!m(e,l,s)){var h=c[l];u.push(new o.Line(o.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:i.tickDirection*a},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(o.mergePath(u,{style:r.getLineStyle(),z2:2,silent:!0}))}},axisLabel:function(){function t(t,e){var n=t&&t[R]().clone(),i=e&&e[R]().clone();return n&&i?(n[r](t.getLocalTransform()),i[r](e.getLocalTransform()),n.intersect(i)):void 0}var n=this.axisModel;if(n.get("axisLabel.show")){var i=this.opt,a=n.axis,c=n[B]("axisLabel"),u=c[B](E),l=c.get("margin"),h=a.scale.getTicks(),d=n.getFormattedLabels(),p=i.labelRotation;null==p&&(p=c.get("rotate")||0),p=p*f/180;for(var v=e(i,p,i.labelDirection),g=n.get("data"),y=[],_=0;_<h[M];_++)if(!m(a,_,i.labelInterval)){var x=u;g&&g[_]&&g[_][E]&&(x=new s(g[_][E],u,n.ecModel));var b=a.dataToCoord(h[_]),w=[b,i.labelOffset+i.labelDirection*l],C=new o.Text({style:{text:d[_],textAlign:x.get("align",!0)||v.textAlign,textVerticalAlign:x.get("baseline",!0)||v.verticalAlign,textFont:x[O](),fill:x.getTextColor()},position:w,rotation:v.rotation,silent:!0,z2:10});y.push(C),this.group.add(C)}if("category"!==a.type){if(n.getMin?n.getMin():n.get("min")){var S=y[0],T=y[1];t(S,T)&&(S.ignore=!0)}if(n.getMax?n.getMax():n.get("max")){var z=y[y[M]-1],L=y[y[M]-2];t(L,z)&&(z.ignore=!0)}}}},axisName:function(){var t=this.opt,i=this.axisModel,r=this.opt.axisName;if(null==r&&(r=i.get("name")),r){var a,s=i.get("nameLocation"),c=t.nameDirection,u=i[B]("nameTextStyle"),l=i.get("nameGap")||0,h=this.axisModel.axis.getExtent(),f=h[0]>h[1]?-1:1,d=["start"===s?h[0]-f*l:"end"===s?h[1]+f*l:(h[0]+h[1])/2,s===k?t.labelOffset+c*l:0];a=s===k?e(t,t.rotation,c):n(t,s,h),this.group.add(new o.Text({style:{text:r,textFont:u[O](),fill:u.getTextColor()||i.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.verticalAlign},position:d,rotation:a.rotation,silent:!0,z2:1}))}}},m=d.ifIgnoreOnTick=function(t,e,n){var r,a=t.scale;return a.type===i&&(typeof n===u?(r=a.getTicks()[e],!n(r,a.getLabel(r))):e%(n+1))},g=d.getInterval=function(t,e){var n=t.get("interval");return(null==n||"auto"==n)&&(n=e),n};return d}),e("echarts/action/roamHelper",[F],function(){var t={};return t.calcPanAndZoom=function(t,e){var n=e.dx,i=e.dy,r=e.zoom,a=t.get("x")||0,o=t.get("y")||0,s=t.get("zoom")||1;if(null!=n&&null!=i&&(a+=n,o+=i),null!=r){var c=(e.originX-a)*(r-1),u=(e.originY-o)*(r-1);a-=c,o-=u}return{x:a,y:o,zoom:(r||1)*s}},t}),e("echarts/coord/geo/Geo",[F,"./parseGeoJson",T,"zrender/core/BoundingRect","../View","./fix/nanhai","./fix/textCoord","./fix/geoCoord"],function(t){function e(t,e,n,i,r){a.call(this,t),this.map=e,this._nameCoordMap={},this.loadGeoJson(n,i,r)}var n=t("./parseGeoJson"),i=t(T),r=t("zrender/core/BoundingRect"),a=t("../View"),o=[t("./fix/nanhai"),t("./fix/textCoord"),t("./fix/geoCoord")];return e[S]={constructor:e,type:"geo",dimensions:["lng","lat"],loadGeoJson:function(t,e,r){try{this.regions=t?n(t):[]}catch(a){throw"Invalid geoJson format\n"+a}e=e||{},r=r||{};for(var s=this.regions,c={},u=0;u<s[M];u++){var l=s[u].name;l=r[l]||l,s[u].name=l,c[l]=s[u],this.addGeoCoord(l,s[u][L]);var h=e[l];h&&s[u].transformTo(h.left,h.top,h.width,h[I])}this._regionsMap=c,this._rect=null,i.each(o,function(t){t(this)},this)},transformTo:function(t,e,n,i){var a=this[R]();a=a.clone(),a.y=-a.y-a[I];var o=this._viewTransform;o.transform=a.calculateTransform(new r(t,e,n,i)),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,n=0;n<e[M];n++){var i=e[n][R]();t=t||i.clone(),t.union(i)}return this._rect=t||new r(0,0,0,0)
- },dataToPoints:function(t){var e=[];return t.mapArray(["lng","lat"],function(t,n){return e[0]=t,e[1]=n,this.dataToPoint(e)},this)},dataToPoint:function(t){return typeof t===y&&(t=this.getGeoCoord(t)),t?a[S].dataToPoint.call(this,t):void 0}},i.mixin(e,a),e}),e("echarts/coord/geo/GeoModel",[F,"../../util/model","../../model/Component"],function(t){var e=t("../../util/model"),n=t("../../model/Component");n[C]({type:"geo",coordinateSystem:null,init:function(t){n[S].init.apply(this,arguments),e.defaultEmphasis(t.label,[z,"show",E,"distance","formatter"])},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 n=this.get("label."+e+".formatter"),i={name:t};return typeof n===u?(i.status=e,n(i)):typeof n===y?n[f]("{a}",i.seriesName):void 0},setRoamZoom:function(t){var e=this[s].roamDetail;e&&(e.zoom=t)},setRoamPan:function(t,e){var n=this[s].roamDetail;n&&(n.x=t,n.y=e)}})}),e("echarts/coord/geo/fix/nanhai",[F,"../Region"],function(t){for(var e=t("../Region"),n=[126,25],i=[[[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<i[M];r++)for(var a=0;a<i[r][M];a++)i[r][a][0]/=10.5,i[r][a][1]/=-14,i[r][a][0]+=n[0],i[r][a][1]+=n[1];return function(t){"china"===t.map&&t.regions.push(new e("南海诸岛",i,n))}}),e("echarts/coord/geo/fix/geoCoord",[F,T],function(t){var e=t(T),n={Russia:[100,60],"United States of America":[-99,38]};return function(t){e.each(t.regions,function(t){var e=n[t.name];if(e){var i=t[L];i[0]=e[0],i[1]=e[1]}})}}),e("echarts/coord/View",[F,"zrender/core/vector","zrender/core/matrix","zrender/mixin/Transformable",T,"zrender/core/BoundingRect"],function(t){function e(){o.call(this)}function n(t){this.name=t,o.call(this),this._roamTransform=new e,this._viewTransform=new e}var i=t("zrender/core/vector"),a=t("zrender/core/matrix"),o=t("zrender/mixin/Transformable"),s=t(T),c=t("zrender/core/BoundingRect"),u=i[r];return s.mixin(e,o),n[S]={constructor:n,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new c(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new c(t,e,n,i)},transformTo:function(t,e,n,i){var r=this[R](),a=this._viewTransform;a.transform=r.calculateTransform(new c(t,e,n,i)),a.decomposeTransform(),this._updateTransform()},setPan:function(t,e){this._roamTransform[z]=[t,e],this._updateTransform()},setZoom:function(t){this._roamTransform.scale=[t,t],this._updateTransform()},getRoamTransform:function(){return this._roamTransform.transform},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e.parent=t,t.updateTransform(),e.updateTransform(),e.transform&&a.copy(this.transform||(this.transform=[]),e.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},dataToPoint:function(t){var e=this.transform;return e?u([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this.invTransform;return e?u([],t,e):[t[0],t[1]]}},s.mixin(n,o),n}),e("echarts/coord/geo/fix/textCoord",[F,T],function(t){var e=t(T),n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};return function(t){e.each(t.regions,function(t){var e=n[t.name];if(e){var i=t[L];i[0]+=e[0]/10.5,i[1]+=-e[1]/14}})}}),e("echarts/coord/geo/parseGeoJson",[F,T,"./Region"],function(t){function e(t){if(!t.UTF8Encoding)return t;for(var e=t.features,i=0;i<e[M];i++)for(var r=e[i],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,c=0;c<o[M];c++){var u=o[c];if("Polygon"===a.type)o[c]=n(u,s[c]);else if("MultiPolygon"===a.type)for(var l=0;l<u[M];l++){var h=u[l];u[l]=n(h,s[c][l])}}return t.UTF8Encoding=!1,t}function n(t,e){for(var n=[],i=e[0],r=e[1],a=0;a<t[M];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+=i,s+=r,i=o,r=s,n.push([o/1024,s/1024])}return n}function i(t){for(var e=[],n=0;n<t[M];n++)for(var i=0;i<t[n][M];i++)e.push(t[n][i]);return e}var r=t(T),a=t("./Region");return function(t){return e(t),r.map(r[x](t.features,function(t){return t.geometry&&t.properties}),function(t){var e=t.properties,n=t.geometry,r=n.coordinates;return"MultiPolygon"===n.type&&(r=i(r)),new a(e.name,r,e.cp)})}}),e("echarts/coord/geo/Region",[F,"zrender/contain/polygon","zrender/core/BoundingRect","zrender/core/bbox","zrender/core/vector"],function(t){function e(t,e,n){if(this.name=t,this.contours=e,n)n=[n[0],n[1]];else{var i=this[R]();n=[i.x+i.width/2,i.y+i[I]/2]}this[L]=n}var n=t("zrender/contain/polygon"),i=t("zrender/core/BoundingRect"),a=t("zrender/core/bbox"),o=t("zrender/core/vector");return e[S]={constructor:e,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],r=[-e,-e],s=[],c=[],u=this.contours,l=0;l<u[M];l++)a.fromPoints(u[l],s,c),o.min(n,n,s),o.max(r,r,c);return 0===l&&(n[0]=n[1]=r[0]=r[1]=0),this._rect=new i(n[0],n[1],r[0]-n[0],r[1]-n[1])},contain:function(t){var e=this[R](),i=this.contours;if(e[w](t[0],t[1]))for(var r=0,a=i[M];a>r;r++)if(n[w](i[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,n,a){var s=this[R](),c=s.width/s[I];n?a||(a=n/c):n=c*a;for(var u=new i(t,e,n,a),l=s.calculateTransform(u),h=this.contours,f=0;f<h[M];f++)for(var d=0;d<h[f][M];d++)o[r](h[f][d],h[f][d],l);s=this._rect,s.copy(u),this[L]=[s.x+s.width/2,s.y+s[I]/2]}},e}),e("zrender/contain/polygon",[F,"./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<r}function n(t,n,r){var a=0,o=t[0];if(!o)return!1;for(var s=1;s<t[M];s++){var c=t[s];a+=i(o[0],o[1],c[0],c[1],n,r),o=c}var u=t[0];return e(o[0],u[0])&&e(o[1],u[1])||(a+=i(o[0],o[1],u[0],u[1],n,r)),0!==a}var i=t("./windingLine"),r=1e-8;return{contain:n}}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var N=t("echarts");return N.graphic=t("echarts/util/graphic"),N.number=t("echarts/util/number"),N.format=t("echarts/util/format"),t("echarts/chart/map"),t("echarts/component/grid"),t("echarts/component/title"),N});
|