<NME> echarts.min.js <BEF> !function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var u=0;a>u;u++)switch(n[u]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],u=o[r],l=0,c=Math.min(e.length,n.length);c>l;l++){var h,f=i(e[l],r);switch(f){case"require":h=u&&u.require||t;break;case"exports":h=u.exports;break;case"module":h=u;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 i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="undefined",n="getBoundingRect",r="center",a="ordinal",o="position",s="animation",u="getShallow",l="inherits",c="indexOf",h="function",f="isArray",d="replace",p="zlevel",m="dataIndex",v="splice",g="isObject",y="getData",_="height",x="bottom",b="ignore",w="getHeight",M="getWidth",T="getModel",S="string",C="toLowerCase",A="zrender/core/vector",L="length",P="create",k="contain",z="getExtent",I="extend",D="prototype",O="zrender/core/util",E="require";e("echarts/chart/line",[E,O,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(O),i=t("../echarts"),n=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(n.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/component/grid",[E,"../util/graphic",O,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(O);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:i.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/scale/Log",[E,O,"./Scale","../util/number","./Interval"],function(t){var e=t(O),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[D],o=r[D],s=Math.floor,u=Math.ceil,l=Math.pow,c=10,h=Math.log,f=i[I]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(l(c,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),l(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[z].call(this);return t[0]=l(c,t[0]),t[1]=l(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=l(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(u(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([k,"normalize"],function(t){f[D][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),f[P]=function(){return new f},f}),e("echarts/scale/Time",[E,O,"../util/number","../util/format","./Interval"],function(t){var e=t(O),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[D],o=Math.ceil,s=Math.floor,u=1e3,l=60*u,c=60*l,h=24*c,f=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},d=r[I]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=h,r[1]+=h),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]-h}this.niceTicks(t);var u=this._interval;e||(r[0]=i.round(s(r[0]/u)*u)),n||(r[1]=i.round(o(r[1]/u)*u))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0],r=n/t,a=p[L],u=f(p,r,0,a),l=p[Math.min(u,a-1)],c=l[2];if("year"===l[0]){var h=n/c,d=i.nice(h/t,!0);c*=d}var m=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=l,this._interval=c,this._niceExtent=m},parse:function(t){return+i.parseDate(t)}});e.each([k,"normalize"],function(t){d[D][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,u],["hh:mm:ss",5,5*u],["hh:mm:ss",10,10*u],["hh:mm:ss",15,15*u],["hh:mm:ss",30,30*u],["hh:mm\nMM-dd",1,l],["hh:mm\nMM-dd",5,5*l],["hh:mm\nMM-dd",10,10*l],["hh:mm\nMM-dd",15,15*l],["hh:mm\nMM-dd",30,30*l],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[P]=function(){return new d},d}),e("echarts/echarts",[E,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",O,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",A],function(t){function e(t){return function(e,i,n){e=e&&e[C](),J[D][t].call(this,e,i,n)}}function i(){J.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===S&&(e=xe[e]),this.id,this.group,this._dom=t,this._zr=$.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=Q.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new q(this),this._coordSysMgr=new H,J.call(this),this._messageCenter=new i,this._initEvents(),this.resize=Q.bind(this.resize,this),this._pendingActions=[],te(_e,r),te(ge,r)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;ee(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),N(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),N(r,a),B(r,a)},this),R(this._zr,e)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[L];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,u=r[s];if(!u){var l=Z.parseClassType(o.type),c=i?j.getClass(l.main,l.sub):X.getClass(l.sub);if(!c)return;u=new c,u.init(e,this._api),r[s]=u,n.push(u),a.add(u.group)}o.__viewId=s,u.__alive=!0,u.__id=s,u.__model=o},this);for(var o=0;o<n[L];){var s=n[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),n[v](o,1),delete r[s.__id])}}function s(t,e){ee(ge,function(i){i.func(t,e)})}function u(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[y]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function k(t,e){var i=this._api;ee(_e,function(n){n.isLayout&&n.func(t,i,e)})}function z(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),ee(_e,function(n){n.func(t,i,e)})}function E(t,e){var i=this._api;ee(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),N(r,n)},this),ee(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),r.group.silent=!!n.get("silent"),N(n,r),B(n,r)},this),R(this._zr,t),ee(this._chartsViews,function(e){e.__alive||e.remove(t,i)},this)}function R(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!G.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function B(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[b]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!G.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",a)})}function N(t,e){var i=t.get("z"),n=t.get(p);e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[p]=n))})}function F(t){function e(t,e){for(var i=0;i<t[L];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";Q.each(ve,function(o,s){t._messageCenter.on(s,function(o){if(we[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),u=[];for(var l in be){var c=be[l];c!==t&&c.group===t.group&&u.push(c)}e(u,i),ee(u,function(t){t[a]!==n&&t.dispatchAction(s)}),e(u,r)}})})}var G=t("zrender/core/env"),V=t("./model/Global"),q=t("./ExtensionAPI"),H=t("./CoordinateSystem"),W=t("./model/OptionManager"),Z=t("./model/Component"),U=t("./model/Series"),j=t("./view/Component"),X=t("./view/Chart"),Y=t("./util/graphic"),$=t("zrender"),Q=t(O),K=t("zrender/tool/color"),J=t("zrender/mixin/Eventful"),te=t("zrender/core/timsort"),ee=Q.each,ie=1e3,ne=5e3,re=1e3,ae=2e3,oe=3e3,se=4e3,ue=5e3,le="__flag_in_main_process",ce="_hasGradientOrPatternBg";i[D].on=e("on"),i[D].off=e("off"),i[D].one=e("one"),Q.mixin(i,J);var he=n[D];he.getDom=function(){return this._dom},he.getZr=function(){return this._zr},he.setOption=function(t,e,i){if(this[le]=!0,!this._model||e){var n=new W(this._api),r=this._theme,a=this._model=new V(null,null,r,n);a.init(null,null,r,n)}this._model.setOption(t,ye),fe.prepareAndUpdate.call(this),this[le]=!1,this._flushPendingActions(),!i&&this._zr.refreshImmediately()},he.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},he[T]=function(){return this._model},he.getOption=function(){return this._model.getOption()},he[M]=function(){return this._zr[M]()},he[w]=function(){return this._zr[w]()},he.getRenderedCanvas=function(t){if(G.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return Q.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},he.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;ee(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[b]||(n.push(e),e.group[b]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ee(n,function(t){t.group[b]=!1}),a},he.getConnectedDataURL=function(t){if(G.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(we[e]){var a=r,o=r,s=-r,u=-r,l=[],c=t&&t.pixelRatio||1;for(var h in be){var f=be[h];if(f.group===e){var d=f.getRenderedCanvas(Q.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),u=n(p[x],u),l.push({dom:d,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,u*=c;var m=s-a,v=u-o,g=Q.createCanvas();g.width=m,g[_]=v;var y=$.init(g);return ee(l,function(t){var e=new Y.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var fe={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[P](this._model,this._api),s.call(this,e,i),u.call(this,e),n.update(e,i),z.call(this,e,t),E.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!G.canvasSupported){var l=K.parse(a);a=K.stringify(l,"rgb"),0===l[3]&&(a="transparent")}a.colorStops||a.image?(r.configLayer(0,{clearColor:a}),this[ce]=!0,this._dom.style.background="transparent"):(this[ce]&&r.configLayer(0,{clearColor:null}),this[ce]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[y]().clearAllVisual()}),z.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[y]().clearAllVisual()}),z.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(k.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),fe.update.call(this,t)}};he.resize=function(){this[le]=!0,this._zr.resize();var t=this._model&&this._model.resetOption("media");fe[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[le]=!1,this._flushPendingActions()};var de=t("./loading/default");he.showLoading=function(t,e){Q[g](t)&&(e=t,t="default"),this.hideLoading();var i=de(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},he.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},he.makeActionFromEvent=function(t){var e=Q[I]({},t);return e.type=ve[t.type],e},he.dispatchAction=function(t,e){var i=me[t.type];if(i){var n=i.actionInfo,r=n.update||"update";if(this[le])return void this._pendingActions.push(t);this[le]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=Q.map(t.batch,function(e){return e=Q.defaults(Q[I]({},e),t),e.batch=null,e}));for(var s,u=[],l="highlight"===t.type||"downplay"===t.type,c=0;c<a[L];c++){var h=a[c];s=i.action(h,this._model),s=s||Q[I]({},h),s.type=n.event||s.type,u.push(s),l&&fe[r].call(this,h)}"none"!==r&&!l&&fe[r].call(this,t),s=o?{type:n.event||t.type,batch:u}:u[0],this[le]=!1,!e&&this._messageCenter.trigger(s.type,s),this._flushPendingActions()}},he._flushPendingActions=function(){for(var t=this._pendingActions;t[L];){var e=t.shift();this.dispatchAction(e)}},he.on=e("on"),he.off=e("off"),he.one=e("one");var pe=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];he._initEvents=function(){ee(pe,function(t){this._zr.on(t,function(e){var i=this[T](),n=e.target;if(n&&null!=n[m]){var r=n.dataModel||i.getSeriesByIndex(n.seriesIndex),a=r&&r.getDataParams(n[m],n.dataType)||{};a.event=e,a.type=t,this.trigger(t,a)}else n&&n.eventData&&this.trigger(t,n.eventData)},this)},this),ee(ve,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},he.isDisposed=function(){return this._disposed},he.clear=function(){this.setOption({},!0)},he.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;ee(this._componentsViews,function(i){i.dispose(e,t)}),ee(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete be[this.id]}},Q.mixin(n,J);var me=[],ve={},ge=[],ye=[],_e=[],xe={},be={},we={},Me=new Date-0,Te=new Date-0,Se="_echarts_instance_",Ce={version:"3.2.2",dependencies:{zrender:"3.1.2"}};Ce.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Me++,be[r.id]=r,t.setAttribute&&t.setAttribute(Se,r.id),F(r),r},Ce.connect=function(t){if(Q[f](t)){var e=t;t=null,Q.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Te++,Q.each(e,function(e){e.group=t})}return we[t]=!0,t},Ce.disConnect=function(t){we[t]=!1},Ce.dispose=function(t){Q.isDom(t)?t=Ce.getInstanceByDom(t):typeof t===S&&(t=be[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Ce.getInstanceByDom=function(t){var e=t.getAttribute(Se);return be[e]},Ce.getInstanceById=function(t){return be[t]},Ce.registerTheme=function(t,e){xe[t]=e},Ce.registerPreprocessor=function(t){ye.push(t)},Ce.registerProcessor=function(t,e){typeof t===h&&(e=t,t=ie),ge.push({prio:t,func:e})},Ce.registerAction=function(t,e,i){typeof e===h&&(i=e,e="");var n=Q[g](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[C](),e=t.event,me[n]||(me[n]={action:i,actionInfo:t}),ve[e]=n},Ce.registerCoordinateSystem=function(t,e){H.register(t,e)},Ce.registerLayout=function(t,e){typeof t===h&&(e=t,t=re),_e.push({prio:t,func:e,isLayout:!0})},Ce.registerVisual=function(t,e){typeof t===h&&(e=t,t=oe),_e.push({prio:t,func:e})};var Ae=Z.parseClassType;return Ce.extendComponentModel=function(t,e){var i=Z;if(e){var n=Ae(e);i=Z.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendComponentView=function(t,e){var i=j;if(e){var n=Ae(e);i=j.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendSeriesModel=function(t,e){var i=U;if(e){e="series."+e[d]("series.","");var n=Ae(e);i=U.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendChartView=function(t,e){var i=X;if(e){e[d]("series.","");var n=Ae(e);i=X.getClass(n.main,!0)}return X[I](t)},Ce.setCanvasCreator=function(t){Q.createCanvas=t},Ce.registerVisual(ae,t("./visual/seriesColor")),Ce.registerPreprocessor(t("./preprocessor/backwardCompat")),Ce.registerAction({type:"highlight",event:"highlight",update:"highlight"},Q.noop),Ce.registerAction({type:"downplay",event:"downplay",update:"downplay"},Q.noop),Ce.List=t("./data/List"),Ce.Model=t("./model/Model"),Ce.graphic=t("./util/graphic"),Ce.number=t("./util/number"),Ce.format=t("./util/format"),Ce.matrix=t("zrender/core/matrix"),Ce.vector=t(A),Ce.color=t("zrender/tool/color"),Ce.util={},ee(["map","each","filter",c,l,"reduce","filter","bind","curry",f,"isString",g,"isFunction",I,"defaults"],function(t){Ce.util[t]=Q[t]}),Ce.PRIORITY={PROCESSOR:{FILTER:ie,STATISTIC:ne},VISUAL:{LAYOUT:re,GLOBAL:ae,CHART:oe,COMPONENT:se,BRUSH:ue}},Ce}),e("echarts/visual/symbol",[E],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[y](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===h&&r.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r.getItemModel(t),i=e[u]("symbol",!0),n=e[u]("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/chart/line/LineSeries",[E,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[I]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e(O,[E],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var n=0,r=e[L];r>n;n++)i[n]=t(e[n])}else if(!T(e)&&!C(e)){i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=t(e[a]))}return i}return e}function e(i,n,r){if(!M(n)||!M(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!M(s)||!M(o)||x(s)||x(o)||C(s)||C(o)||T(s)||T(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[L];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document.createElement("canvas")}function o(){return z||(z=V.createCanvas().getContext("2d")),z}function s(t,e){if(t){if(t[c])return t[c](e);for(var i=0,n=t[L];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[D];i[D]=e[D],t[D]=new i;for(var r in n)t[D][r]=n[r];t[D].constructor=t,t.superClass=e}function l(t,e,i){t=D in t?t[D]:t,e=D in e?e[D]:e,r(t,e,i)}function f(t){return t?typeof t==S?!1:"number"==typeof t[L]:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[L]===+t[L])for(var n=0,r=t[L];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===F)return t.map(e,i);for(var n=[],r=0,a=t[L];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function m(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===G)return t.reduce(e,i,n);for(var r=0,a=t[L];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t.filter&&t.filter===B)return t.filter(e,i);for(var n=[],r=0,a=t[L];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function g(t,e,i){if(t&&e)for(var n=0,r=t[L];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=N.call(arguments,2);return function(){return t.apply(e,i.concat(N.call(arguments)))}}function _(t){var e=N.call(arguments,1);return function(){return t.apply(this,e.concat(N.call(arguments)))}}function x(t){return"[object Array]"===O.call(t)}function b(t){return typeof t===h}function w(t){return"[object String]"===O.call(t)}function M(t){var e=typeof t;return e===h||!!t&&"object"==e}function T(t){return!!I[O.call(t)]}function C(t){return t&&1===t.nodeType&&typeof t.nodeName==S}function A(){for(var t=0,e=arguments[L];e>t;t++)if(null!=arguments[t])return arguments[t]}function P(){return Function.call.apply(N,arguments)}function k(t,e){if(!t)throw new Error(e)}var z,I={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},O=Object[D].toString,E=Array[D],R=E.forEach,B=E.filter,N=E.slice,F=E.map,G=E.reduce,V={inherits:u,mixin:l,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:P,find:g,isArrayLike:f,each:d,map:p,reduce:m,filter:v,bind:y,curry:_,isArray:x,isString:w,isObject:M,isFunction:b,isBuildInObject:T,isDom:C,retrieve:A,assert:k,noop:function(){}};return V}),e("echarts/layout/points",[E],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[y](),i=t.coordinateSystem;if(i){var n=i.dimensions;"singleAxis"===i.type?e.each(n[0],function(t,n){e.setItemLayout(n,isNaN(t)?[0/0,0/0]:i.dataToPoint(t))}):e.each(n,function(t,n,r){e.setItemLayout(r,isNaN(t)||isNaN(n)?[0/0,0/0]:i.dataToPoint([t,n]))},!0)}})}}),e("echarts/chart/line/LineView",[E,O,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff","../../util/graphic","./poly","../../view/Chart"],function(t){function e(t,e){if(t[L]===e[L]){for(var i=0;i<t[L];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function u(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[z]()[0],o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(n,u){for(var l,c=e.stackedOn;c&&r(c.get(o,u))===r(n);){l=c;break}var h=[];return h[s]=e.get(i.dim,u),h[1-s]=l?l.get(o,u,!0):a,t.dataToPoint(h)},!0)}function l(t,e){return null!=e[m]?e[m]:null!=e.name?t.indexOfName(e.name):void 0}function c(t,e,i){var r=n(t.getAxis("x")),a=n(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),u=Math.min(a[0],a[1]),l=Math.max(r[0],r[1])-s,c=Math.max(a[0],a[1])-u,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(l,c);o?(u-=f,c+=2*f):(s-=f,l+=2*f);var d=new C.Rect({shape:{x:s,y:u,width:l,height:c}});return e&&(d.shape[o?"width":_]=0,C.initProps(d,{shape:{width:l,height:c}},i)),d}function h(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[z](),o=n[z](),s=Math.PI/180,u=new C.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(u.shape.endAngle=-o[0]*s,C.initProps(u,{shape:{endAngle:-o[1]*s}},i)),u}function f(t,e,i){return"polar"===t.type?h(t,e,i):c(t,e,i)}function d(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t[L]-1;o++){var s=t[o+1],u=t[o];a.push(u);var l=[];switch(i){case"end":l[r]=s[r],l[1-r]=u[1-r],a.push(l);break;case"middle":var c=(u[r]+s[r])/2,h=[];l[r]=h[r]=c,l[1-r]=u[1-r],h[1-r]=s[1-r],a.push(l),a.push(h);break;default:l[r]=u[r],l[1-r]=s[1-r],a.push(l)}}return t[o]&&a.push(t[o]),a}function v(t,e){return Math.max(Math.min(t,e[1]),e[0])}function g(t,e){var i=t.getVisual("visualMeta");if(i&&i[L]){for(var n,r=i[L]-1;r>=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,o=t.dimensions[a],s=t.getDataExtent(o),u=n.stops,l=[];u[0].interval&&u.sort(function(t,e){return t.interval[0]-e.interval[0]});var c=u[0],h=u[u[L]-1],f=c.interval?v(c.interval[0],s):c.value,d=h.interval?v(h.interval[1],s):h.value,p=d-f;if(0===p)return t.getItemVisual(0,"color");for(var r=0;r<u[L];r++)if(u[r].interval){if(u[r].interval[1]===u[r].interval[0])continue;l.push({offset:(v(u[r].interval[0],s)-f)/p,color:u[r].color},{offset:(v(u[r].interval[1],s)-f)/p,color:u[r].color})}else l.push({offset:(u[r].value-f)/p,color:u[r].color});var m=new C.LinearGradient(0,0,0,0,l,!0),g=e.getAxis(o),y=Math.round(g.toGlobalCoord(g.dataToCoord(f))),_=Math.round(g.toGlobalCoord(g.dataToCoord(d)));return m[o]=y,m[o+"2"]=_,m}}}var x=t(O),w=t("../helper/SymbolDraw"),M=t("../helper/Symbol"),S=t("./lineAnimationDiff"),C=t("../../util/graphic"),A=t("./poly"),P=t("../../view/Chart");return P[I]({type:"line",init:function(){var t=new C.Group,e=new w;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t.coordinateSystem,o=this.group,l=t[y](),c=t[T]("lineStyle.normal"),h=t[T]("areaStyle.normal"),p=l.mapArray(l.getItemLayout,!0),m="polar"===a.type,v=this._coordSys,_=this._symbolDraw,b=this._polyline,w=this._polygon,M=this._lineGroup,S=t.get(s),C=!h.isEmpty(),A=u(a,l),L=t.get("showSymbol"),P=L&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,a),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),L||_.remove(),o.add(M);var z=!m&&t.get("step");b&&v.type===a.type&&z===this._step?(C&&!w?w=this._newPolygon(p,A,a,S):w&&!C&&(M.remove(w),w=this._polygon=null),M.setClipPath(f(a,!1,t)),L&&_.updateData(l,P),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,A)&&e(this._points,p)||(S?this._updateAnimation(l,A,a,r,z):(b.setShape({points:p}),w&&w.setShape({points:p,stackedOnPoints:A})))):(L&&_.updateData(l,P),z&&(p=d(p,a,z),A=d(A,a,z)),b=this._newPolyline(p,a,S),C&&(w=this._newPolygon(p,A,a,S)),M.setClipPath(f(a,!0,t)));var I=g(l,a)||l.getVisual("color");b.useStyle(x.defaults(c.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var D=t.get("smooth");if(D=i(t.get("smooth")),b.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),w){var O=l.stackedOn,E=0;if(w.useStyle(x.defaults(h.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),O){var R=O.hostModel;E=i(R.get("smooth"))}w.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=p,this._step=z},highlight:function(t,e,i,n){var r=t[y](),a=l(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var u=r.getItemLayout(a);s=new M(r,a),s[o]=u,s.setZ(t.get(p),t.get("z")),s[b]=isNaN(u[0])||isNaN(u[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else P[D].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[y](),a=l(r,n);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else P[D].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new A.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new A.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(a)[0];return i&&i.isLabelIgnored?x.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,s=this._polygon,u=t.hostModel,l=S(this._data,t,this._stackedOnPoints,e,this._coordSys,i),c=l.current,h=l.stackedOnCurrent,f=l.next,p=l.stackedOnNext;r&&(c=d(l.current,i,r),h=d(l.stackedOnCurrent,i,r),f=d(l.next,i,r),p=d(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=c,C.updateProps(a,{shape:{points:f}},u),s&&(s.setShape({points:c,stackedOnPoints:h}),C.updateProps(s,{shape:{points:f,stackedOnPoints:p,__points:l.next}},u));for(var m=[],v=l.status,g=0;g<v[L];g++){var y=v[g].cmd;if("="===y){var _=t.getItemGraphicEl(v[g].idx1);_&&m.push({el:_,ptIdx:g})}}a.animators&&a.animators[L]&&a.animators[0].during(function(){for(var t=0;t<m[L];t++){var e=m[t].el;e.attr(o,a.shape.__points[m[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[L];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[L];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[L];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[L];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[L]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[y](),r=i.get("sampling"),a=i.coordinateSystem;if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),u=o[z](),l=u[1]-u[0],c=Math.round(n.count()/l);if(c>1){var f;typeof r===S?f=t[r]:typeof r===h&&(f=r),f&&(n=n.downSample(s.dim,1/c,f,e),i.setData(n))}}},this)}}),e("echarts/component/axis",[E,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/scale/Scale",[E,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),n=e[D];return n.parse=function(t){return t},n[k]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[z]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[L];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/coord/cartesian/Grid",[E,"exports","../../util/layout","../../coord/axisHelper",O,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i.getComponent("grid",t.get("gridIndex"))===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[L];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function r(t,e){var i=t[z](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var s=t("../../util/layout"),u=t("../../coord/axisHelper"),l=t(O),c=t("./Cartesian2D"),h=t("./Axis2D"),f=l.each,d=u.ifAxisCrossZero,p=u.niceScaleExtent; t("./GridModel");var m=n[D];return m.type="grid",m.getRect=function(){return this._rect},m.update=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&("category"===r.type||!d(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),f(n.x,function(t){p(t,t.model)}),f(n.y,function(t){p(t,t.model)}),f(n.x,function(t){i("y")&&(t.onZero=!1)}),f(n.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},m.resize=function(t,e){function n(){f(u,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a[_]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?a.x:a.y)})}var a=s.getLayoutRect(t.getBoxLayoutParams(),{width:e[M](),height:e[w]()});this._rect=a;var u=this._axesList;n(),t.get("containLabel")&&(f(u,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?_:"width",r=t.model.get("axisLabel.margin");a[n]-=e[n]+r,"top"===t[o]?a.y+=e[_]+r:"left"===t[o]&&(a.x+=e.width+r)}}}),n())},m.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},m.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[L];n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},m._initCartesian=function(t,i){function n(n){return function(l,c){if(e(l,t,i)){var f=l.get(o);"x"===n?"top"!==f&&f!==x&&(f=x,r[f]&&(f="top"===f?x:"top")):"left"!==f&&"right"!==f&&(f="left",r[f]&&(f="left"===f?"right":"left")),r[f]=!0;var d=new h(n,u.createScaleByModel(l),[0,0],l.get("type"),f),p="category"===d.type;d.onBand=p&&l.get("boundaryGap"),d.inverse=l.get("inverse"),d.onZero=l.get("axisLine.onZero"),l.axis=d,d.model=l,d.grid=this,d.index=c,this._axesList.push(d),a[n][c]=d,s[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return i.eachComponent("xAxis",n("x"),this),i.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void f(a.x,function(t,e){f(a.y,function(i,n){var r="x"+e+"y"+n,a=new c(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},m._updateScale=function(t,i){function n(t,e,i){f(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==a))})}l.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if("cartesian2d"===r.get("coordinateSystem")){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t.getComponent("xAxis",a),u=t.getComponent("yAxis",o);if(!e(s,i,t)||!e(u,i,t))return;var l=this.getCartesian(a,o),c=r[y](),h=l.getAxis("x"),f=l.getAxis("y");"list"===c.type&&(n(c,h,r),n(c,f,r))}},this)},n[P]=function(t,e){var i=[];return t.eachComponent("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o.resize(r,e),r.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get("coordinateSystem")){var n=e.get("xAxisIndex"),r=e.get("yAxisIndex"),a=t.getComponent("xAxis",n),o=i[a.get("gridIndex")];e.coordinateSystem=o.getCartesian(n,r)}}),i},n.dimensions=c[D].dimensions,t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/util/number",[E],function(){function t(t){return t[d](/^\s+/,"")[d](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case r:case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case x:e="100%"}return typeof e===S?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(10)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===S?new Date(t[d](/-/g,"/"))-new Date("1970/01/01"):Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?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/Interval",[E,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[I]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[D].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[L]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[L];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this._extent,n=i[1]-i[0];if(isFinite(n)){0>n&&(n=-n,i.reverse());var o=e.nice(n/t,!0),s=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0];n?o[0]-=s/2:(o[1]+=s/2,o[0]-=s/2)}else o[1]=1;var u=o[1]-o[0];isFinite(u)||(o[0]=0,o[1]=1),this.niceTicks(t);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[P]=function(){return new o},o}),e("echarts/util/graphic",[E,O,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",A,"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/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===S?z.lift(t,-.1):t}function a(t){if(t.__hoverStlDirty){var n=t.style.stroke,r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a.stroke=a.stroke||(e(n)?i(n):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function l(t){t.__isHover||(a(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function f(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function d(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&l(t)}):l(t)}function p(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&f(t)}):f(t)}function v(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&a(t)}function g(){!this.__isEmphasis&&d(this)}function y(){!this.__isEmphasis&&p(this)}function b(){this.__isEmphasis=!0,d(this)}function w(){this.__isEmphasis=!1,p(this)}function M(t,e,i,n,r,a){typeof r===h&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[u](s));if(o){var l=t?"Update":"",c=n&&n[u]("animationDuration"+l),f=n&&n[u]("animationEasing"+l),d=n&&n[u]("animationDelay"+l);typeof d===h&&(d=d(r)),c>0?e.animateTo(i,c,d||0,f,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var C=t(O),L=t("zrender/tool/path"),P=Math.round,k=t("zrender/graphic/Path"),z=t("zrender/tool/color"),D=t("zrender/core/matrix"),E=t(A),R=(t("zrender/graphic/Gradient"),{});return R.Group=t("zrender/container/Group"),R.Image=t("zrender/graphic/Image"),R.Text=t("zrender/graphic/Text"),R.Circle=t("zrender/graphic/shape/Circle"),R.Sector=t("zrender/graphic/shape/Sector"),R.Ring=t("zrender/graphic/shape/Ring"),R.Polygon=t("zrender/graphic/shape/Polygon"),R.Polyline=t("zrender/graphic/shape/Polyline"),R.Rect=t("zrender/graphic/shape/Rect"),R.Line=t("zrender/graphic/shape/Line"),R.BezierCurve=t("zrender/graphic/shape/BezierCurve"),R.Arc=t("zrender/graphic/shape/Arc"),R.CompoundPath=t("zrender/graphic/CompoundPath"),R.LinearGradient=t("zrender/graphic/LinearGradient"),R.RadialGradient=t("zrender/graphic/RadialGradient"),R.BoundingRect=t("zrender/core/BoundingRect"),R.extendShape=function(t){return k[I](t)},R.extendPath=function(t,e){return L.extendFromString(t,e)},R.makePath=function(t,e,i,a){var o=L.createFromString(t,e),s=o[n]();if(i){var u=s.width/s[_];if(a===r){var l,c=i[_]*u;c<=i.width?l=i[_]:(c=i.width,l=c/u);var h=i.x+i.width/2,f=i.y+i[_]/2;i.x=h-c/2,i.y=f-l/2,i.width=c,i[_]=l}this.resizePath(o,i)}return o},R.mergePath=L.mergePath,R.resizePath=function(t,e){if(t.applyTransform){var i=t[n](),r=i.calculateTransform(e);t.applyTransform(r)}},R.subPixelOptimizeLine=function(t){var e=R.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return P(2*i.x1)===P(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),P(2*i.y1)===P(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},R.subPixelOptimizeRect=function(t){var e=R.subPixelOptimize,i=t.shape,n=t.style.lineWidth,r=i.x,a=i.y,o=i.width,s=i[_];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[_]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},R.subPixelOptimize=function(t,e,i){var n=P(2*t);return(n+P(e))%2===0?n/2:(n+(i?1:-1))/2},R.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&v(t,e)}):v(t,e),t.on("mouseover",g).on("mouseout",y),t.on("emphasis",b).on("normal",w)},R.setText=function(t,e,i){var n=e[u](o)||"inside",r=n[c]("inside")>=0?"white":i,a=e[T]("textStyle");C[I](t,{textDistance:e[u]("distance")||5,textFont:a.getFont(),textPosition:n,textFill:a.getTextColor()||r})},R.updateProps=function(t,e,i,n,r){M(!0,t,e,i,n,r)},R.initProps=function(t,e,i,n,r){M(!1,t,e,i,n,r)},R.getTransform=function(t,e){for(var i=D.identity([]);t&&t!==e;)D.mul(i,t.getLocalTransform(),i),t=t.parent;return i},R.applyTransform=function(t,e,i){return i&&(e=D.invert([],e)),E.applyTransform([],t,e)},R.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===x?r:0];return a=R.applyTransform(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?x:"top"},R.groupTransition=function(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:E.clone(t[o]),rotation:t.rotation};return t.shape&&(e.shape=C[I]({},t.shape)),e}if(t&&e){var a=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),R.updateProps(t,n,i,t[m])}}})}},R}),e("echarts/ExtensionAPI",[E,O],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(O),n=["getDom","getZr",M,w,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",T,"getOption"];return e}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),{browser:i,os:e,node:!1,canvasSupported:document.createElement("canvas").getContext?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===i?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/util/format",[E,O,"./number","zrender/contain/text"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][d](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[L]>1?"."+t[1]:""))}function i(t){return t[C]()[d](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[L];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)[d](/&/g,"&amp;")[d](/</g,"&lt;")[d](/>/g,"&gt;")[d](/"/g,"&quot;")[d](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){l[f](e)||(e=[e]);var i=e[L];if(!i)return"";for(var n=e[0].$vars||[],r=0;r<n[L];r++){var o=p[r];t=t[d](a(o),a(o,0))}for(var s=0;i>s;s++)for(var u=0;u<n[L];u++)t=t[d](a(p[u],s),e[s][n[u]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=c.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),l=i.getSeconds();return t=t[d]("MM",u(r))[C]()[d]("yyyy",n)[d]("yy",n%100)[d]("dd",u(a))[d]("d",a)[d]("hh",u(o))[d]("h",o)[d]("mm",u(s))[d]("m",s)[d]("ss",u(l))[d]("s",l)}function u(t){return 10>t?"0"+t:t}var l=t(O),c=t("./number"),h=t("zrender/contain/text"),p=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s,truncateText:h.truncateText}}),e("echarts/CoordinateSystem",[E],function(){function t(){this._coordinateSystems=[]}var e={};return t[D]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][P](t,i);a&&(n=n.concat(a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[L];n++)i[n].update&&i[n].update(t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/Global",[E,O,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){for(var i in e)M.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?l.merge(t[i],e[i],!1):l.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this.option={},this.option[S]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme.option),l.merge(t,T,!1),this.mergeOption(t)}function n(t,e){l[f](e)||(e=e?[e]:[]);var i={};return m(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};m(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),m(e,function(e){var n=e.option;if(l.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),w(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),m(e,function(t){var e=t.exist,n=t.option,r=t.keyInfo;if(w(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:M.determineSubType(t,e);return n}function o(t){return _(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t.subType===e.subType}):t}function u(t){}var l=t(O),d=t("../util/model"),p=t("./Model"),m=l.each,y=l.filter,_=l.map,x=l[f],b=l[c],w=l[g],M=t("./Component"),T=t("./globalDefault"),S="\x00_ec_inner",C=p[I]({constructor:C,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new p(i),this._optionManager=n},setOption:function(t,e){l.assert(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[L]&&m(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var u=d.normalizeToArray(t[e]),c=d.mappingToExists(a[e],u);r(e,c);var h=n(a,s);i[e]=[],a[e]=[],m(c,function(t,n){var r=t.exist,o=t.option;if(l.assert(w(o)||r,"Empty component definition"),o){var s=M.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.mergeOption(o,this),r.optionUpdated(o,!1);else{var u=l[I]({dependentModels:h,componentIndex:n},t.keyInfo);r=new s(o,this,this,u),r.init(o,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a[e][n]=r,i[e][n]=r.option},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this.option,a=this._componentsMap,s=[];m(t,function(t,e){null!=t&&(M.hasClass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),M.topologicalTravel(s,M.getAllClassMainTypes(),e,this)},getOption:function(){var t=l.clone(this.option);return m(t,function(e,i){if(M.hasClass(i)){for(var e=d.normalizeToArray(e),n=e[L]-1;n>=0;n--)d.isIdInner(e[n])&&e[v](n,1);t[i]=e}}),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[L])return[];var o;if(null!=i)x(i)||(i=[i]),o=y(_(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var u=x(n);o=y(a,function(t){return u&&b(n,t.id)>=0||!u&&t.id===n})}else if(null!=r){var l=x(r);o=y(a,function(t){return l&&b(r,t.name)>=0||!l&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t.filter?y(e,t.filter):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===h)i=e,e=t,m(n,function(t,n){m(t,function(t,r){e.call(i,n,t,r)})});else if(l.isString(t))m(n[t],e,i);else if(w(t)){var r=this.findComponents(t);m(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return y(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return y(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){u(this),m(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){m(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){u(this),m(this._seriesIndices,function(n){var r=this._componentsMap.series[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return m(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),l[c](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=y(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];m(t,function(t,i){e.push(i)}),M.topologicalTravel(e,M.getAllClassMainTypes(),function(e){m(t[e],function(t){t.restoreData()})})}});return l.mixin(C,t("./mixin/colorPalette")),C}),e("echarts/model/OptionManager",[E,O,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var n,r,a=[],o=[],u=t.timeline;if(t.baseOption&&(r=t.baseOption),(u||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;c(l,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=u),c([r].concat(a).concat(s.map(o,function(t){return t.option})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][C]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(l.hasClass(i)){e=u.normalizeToArray(e),n=u.normalizeToArray(n);var r=u.mappingToExists(n,e);t[i]=f(r,function(t){return t.option&&t.exist?d(t.exist,t.option,!0):t.exist||t.option})}else t[i]=d(n,e,!0)}})}var s=t(O),u=t("../util/model"),l=t("./Component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[D]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[L]&&(n.timelineOptions=r.timelineOptions),r.mediaList[L]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[L]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[M](),e=this._api[w](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[L]&&!r)return s;for(var u=0,l=i[L];l>u;u++)n(i[u].query,t,e)&&o.push(u);return!o[L]&&r&&(o=[-1]),o[L]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r.option:i[t].option)})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[E,"./Model",O,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(u.getClassesByMainType(t),function(t){r.apply(e,t[D].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(O),r=Array[D].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),u=i[I]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,r,o){i.call(this,t,e,r,o),n[I](this,o),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this.option,t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[D].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[L]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),n.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/model/Series",[E,O,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env"],function(t){var e=t(O),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),o=t("./mixin/colorPalette"),l=t("zrender/core/env"),c=i.encodeHTML,h=i.addCommas,d=r[I]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[L];e++)t[e]&&t[e].label&&n.defaultEmphasis(t[e].label,n.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){return null==t?this._data:this._data.getLinkedData(t)},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},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){function r(t){return e.map(t,function(t,e){var r=o.getDimensionInfo(e),s=r&&r.type;return s===a?t:"time"===s?n?"":i.formatTime("yyyy/mm/dd hh:mm:ss",t):h(t)}).filter(function(t){return!!t}).join(", ")}var o=this._data,s=this.getRawValue(t),u=e[f](s)?r(s):h(s),l=o.getName(t),d=o.getItemVisual(t,"color"),p='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+d+'"></span>',m=this.name;return"\x00-"===m&&(m=""),n?p+c(this.name)+" : "+u:(m&&c(m)+"<br />")+p+(l?c(l)+" : "+u:u)},ifEnableAnimation:function(){if(l.node)return!1;var t=this[u](s);return t&&this[y]().count()>this[u]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this.ecModel,n=o.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null});return e.mixin(d,n.dataFormatMixin),e.mixin(d,o),d}),e("echarts/view/Chart",[E,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=e&&e[m],a=e&&e.name;if(null!=r)for(var o=r instanceof Array?r:[r],s=0,u=o[L];u>s;s++)i(t.getItemGraphicEl(o[s]),n);else if(a)for(var l=a instanceof Array?a:[a],s=0,u=l[L];u>s;s++){var r=t.indexOfName(l[s]);i(t.getItemGraphicEl(r),n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[D]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[y](),r,"emphasis")},downplay:function(t,e,i,r){n(t[y](),r,"normal")},remove:function(){this.group.removeAll()},dispose:function(){}};var s=e[D];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/view/Component",[E,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[D]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[D];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("zrender/zrender",[E,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),u=t("./dom/HandlerProxy"),l=!n.canvasSupported,c={canvas:t("./Painter")},h={},f={};f.version="3.1.2",f.init=function(t,e){var n=new d(i(),t,e);return h[n.id]=n,n},f.dispose=function(t){if(t)t.dispose();else{for(var e in h)h[e].dispose();h={}}return f},f.getInstance=function(t){return h[t]},f.registerPainter=function(t,e){c[t]=e};var d=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,f=new a,d=i.renderer;if(l){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&c[d]||(d="canvas");var p=new c[d](e,f,i);this.storage=f,this.painter=p;var m=n.node?null:new u(p.getViewportRoot());this.handler=new r(f,p,m),this[s]=new o({stage:{update:function(){h._needsRefresh&&h.refreshImmediately(),h._needsRefreshHover&&h.refreshHoverImmediately()}}}),this[s].start(),this._needsRefresh;var v=f.delFromMap,g=f.addToMap;f.delFromMap=function(t){var e=f.get(t);v.call(f,t),e&&e.removeSelfFromZr(h)},f.addToMap=function(t){g.call(f,t),t.addSelfToZr(h)}};return d[D]={constructor:d,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},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(){this.painter.resize(),this.handler.resize()},clearAnimation:function(){this[s].clear()},getWidth:function(){return this.painter[M]()},getHeight:function(){return this.painter[w]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[s].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this[s]=this.storage=this.painter=this.handler=null,e(this.id)}},f}),e("zrender/tool/color",[E],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function i(t){return 0>t?0:t>1?1:t}function n(e){return t(e[L]&&"%"===e.charAt(e[L]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[L]&&"%"===t.charAt(t[L]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[d](/ /g,"")[C]();if(e in _)return _[e].slice();if("#"!==e.charAt(0)){var i=e[c]("("),a=e[c](")");if(-1!==i&&a+1===e[L]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),l=1;switch(o){case"rgba":if(4!==s[L])return;l=r(s.pop());case"rgb":if(3!==s[L])return;return[n(s[0]),n(s[1]),n(s[2]),l];case"hsla":if(4!==s[L])return;return s[3]=r(s[3]),u(s);case"hsl":if(3!==s[L])return;return u(s);default:return}}}else{if(4===e[L]){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[L]){var h=parseInt(e.substr(1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,1]}}}}function u(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,u=2*o-s,l=[t(255*a(u,s,i+1/3)),t(255*a(u,s,i)),t(255*a(u,s,i-1/3))];return 4===e[L]&&(l[3]=e[3]),l}function l(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),u=s-o,l=(s+o)/2;if(0===u)e=0,i=0;else{i=.5>l?u/(s+o):u/(2-s-o);var c=((s-n)/6+u/2)/u,h=((s-r)/6+u/2)/u,f=((s-a)/6+u/2)/u; n===s?e=f-h:r===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,l];return null!=t[3]&&d.push(t[3]),d}}function h(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return y(i,4===i[L]?"rgba":"rgb")}}function f(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,i,n){if(i&&i[L]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[L]-1),a=Math.floor(r),s=Math.ceil(r),u=i[a],l=i[s],c=r-a;return n[0]=t(o(u[0],l[0],c)),n[1]=t(o(u[1],l[1],c)),n[2]=t(o(u[2],l[2],c)),n[3]=t(o(u[3],l[3],c)),n}}function m(e,n,r){if(n&&n[L]&&e>=0&&1>=e){var a=e*(n[L]-1),u=Math.floor(a),l=Math.ceil(a),c=s(n[u]),h=s(n[l]),f=a-u,d=y([t(o(c[0],h[0],f)),t(o(c[1],h[1],f)),t(o(c[2],h[2],f)),i(o(c[3],h[3],f))],"rgba");return r?{color:d,leftIndex:u,rightIndex:l,value:a}:d}}function v(t,i,n,a){return t=s(t),t?(t=l(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),y(u(t),"rgba")):void 0}function g(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),y(t,"rgba")):void 0}function y(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var _={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:f,fastMapToColor:p,mapToColor:m,modifyHSL:v,modifyAlpha:g,stringify:y}}),e("echarts/visual/seriesColor",[E,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[y](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==h||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r.getItemModel(t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/loading/default",[E,"../util/graphic",O],function(t){var e=t("../util/graphic"),i=t(O),n=Math.PI;return function(t,r){r=r||{},i.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[p],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[p],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[p],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var u=new e.Group;return u.add(o),u.add(s),u.add(a),u.resize=function(){var e=t[M]()/2,i=t[w]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[M](),height:t[w]()})},u.resize(),u}}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=u;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,u=n;u>s;)a=s+u>>>1,r(o,t[a])<0?u=a:s=a+1;var l=n-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,u=1;if(a(t,e[i+r])>0){for(s=n-r;s>u&&a(t,e[i+r+u])>0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s),o+=r,u+=r}else{for(s=r+1;s>u&&a(t,e[i+r-u])<=0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s);var l=o;o=r-u,u=r-l}for(o++;u>o;){var c=o+(u-o>>>1);a(t,e[i+c])>0?o=c+1:u=c}return u}function a(t,e,i,n,r,a){var o=0,s=0,u=1;if(a(t,e[i+r])<0){for(s=r+1;s>u&&a(t,e[i+r-u])<0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s);var l=o;o=r-u,u=r-l}else{for(s=n-r;s>u&&a(t,e[i+r+u])>=0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s),o+=r,u+=r}for(o++;u>o;){var c=o+(u-o>>>1);a(t,e[i+c])<0?u=c:o=c+1}return u}function o(t,e){function i(t,e){f[y]=t,d[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]<d[t+1]&&t--,s(t)}}function s(i){var n=f[i],o=d[i],s=f[i+1],l=d[i+1];d[i]=o+l,i===y-3&&(f[i+1]=f[i+2],d[i+1]=d[i+2]),y--;var c=a(t[s],t,n,o,0,e);n+=c,o-=c,0!==o&&(l=r(t[n+o-1],t,s,l,l-1,e),0!==l&&(l>=o?u(n,o,s,l):h(n,o,s,l)))}function u(i,n,o,s){var u=0;for(u=0;n>u;u++)_[u]=t[i+u];var c=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===n){for(u=0;s>u;u++)t[f+u]=t[h+u];return void(t[f+s]=_[c])}for(var d,m,v,g=p;;){d=0,m=0,v=!1;do if(e(t[h],_[c])<0){if(t[f++]=t[h++],m++,d=0,0===--s){v=!0;break}}else if(t[f++]=_[c++],d++,m=0,1===--n){v=!0;break}while(g>(d|m));if(v)break;do{if(d=a(t[h],_,c,n,0,e),0!==d){for(u=0;d>u;u++)t[f+u]=_[c+u];if(f+=d,c+=d,n-=d,1>=n){v=!0;break}}if(t[f++]=t[h++],0===--s){v=!0;break}if(m=r(_[c],t,h,s,0,e),0!==m){for(u=0;m>u;u++)t[f+u]=t[h+u];if(f+=m,h+=m,s-=m,0===s){v=!0;break}}if(t[f++]=_[c++],1===--n){v=!0;break}g--}while(d>=l||m>=l);if(v)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(u=0;s>u;u++)t[f+u]=t[h+u];t[f+s]=_[c]}else{if(0===n)throw new Error;for(u=0;n>u;u++)t[f+u]=_[c+u]}}else for(u=0;n>u;u++)t[f+u]=_[c+u]}function h(i,n,o,s){var u=0;for(u=0;s>u;u++)_[u]=t[o+u];var c=i+n-1,h=s-1,f=o+s-1,d=0,m=0;if(t[f--]=t[c--],0!==--n){if(1===s){for(f-=n,c-=n,m=f+1,d=c+1,u=n-1;u>=0;u--)t[m+u]=t[d+u];return void(t[f]=_[h])}for(var v=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[c])<0){if(t[f--]=t[c--],g++,y=0,0===--n){x=!0;break}}else if(t[f--]=_[h--],y++,g=0,1===--s){x=!0;break}while(v>(g|y));if(x)break;do{if(g=n-a(_[h],t,i,n,n-1,e),0!==g){for(f-=g,c-=g,n-=g,m=f+1,d=c+1,u=g-1;u>=0;u--)t[m+u]=t[d+u];if(0===n){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[c],_,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,m=f+1,d=h+1,u=0;y>u;u++)t[m+u]=_[d+u];if(1>=s){x=!0;break}}if(t[f--]=t[c--],0===--n){x=!0;break}v--}while(g>=l||y>=l);if(x)break;0>v&&(v=0),v+=2}if(p=v,1>p&&(p=1),1===s){for(f-=n,c-=n,m=f+1,d=c+1,u=n-1;u>=0;u--)t[m+u]=t[d+u];t[f]=_[h]}else{if(0===s)throw new Error;for(d=f-(s-1),u=0;s>u;u++)t[d+u]=_[u]}}else for(d=f-(s-1),u=0;s>u;u++)t[d+u]=_[u]}var f,d,p=l,m=0,v=c,g=0,y=0;m=t[L],2*c>m&&(v=m>>>1);var _=[];g=120>m?5:1542>m?10:119151>m?19:40,f=[],d=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[L]);var l=s-a;if(!(2>l)){var c=0;if(u>l)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),f=t(l);do{if(c=e(i,a,s,r),f>c){var d=l;d>f&&(d=f),n(i,a,a+d,a+c,r),c=d}h.pushRun(a,c),h.mergeRuns(),l-=c,a+=c}while(0!==l);h.forceMergeRuns()}}var u=32,l=7,c=256;return s}),e("zrender/mixin/Eventful",[E],function(){var t=Array[D].slice,e=function(){this._$handlers={}};return e[D]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][L];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][L];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][L]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][L];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][L]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[L];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[L],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[v](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[L];n>4&&(i=t.call(i,1,i[L]-1));for(var r=i[i[L]-1],a=this._$handlers[e],o=a[L],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[v](s,1),o--):s++}}return this}},e}),e("echarts/preprocessor/backwardCompat",[E,O,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[L]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[L]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){l(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(O),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",x]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],u=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],l=r.each;return function(t){l(t.series,function(t){if(r[g](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var l=0;l<u[L];l++)if(u[l]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),l(s,function(e){var i=t[e];i&&(r[f](i)||(i=[i]),l(i,function(t){n(t)}))})}}),e("echarts/data/List",[E,"../model/Model","./DataDiffer",O,"../util/model"],function(t){function e(t){return v[f](t)||(t=[t]),t}function n(t,e){var i=t.dimensions,n=new w(v.map(i,t.getDimensionInfo,t),t.hostModel);b(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[L];o++){var s=i[o],u=a[s];r[s]=v[c](e,s)>=0?new u.constructor(a[s][L]):a[s]}return n}var r=i,o=typeof window===i?global:window,s=typeof o.Float64Array===r?Array:o.Float64Array,u=typeof o.Int32Array===r?Array:o.Int32Array,l={"float":s,"int":u,ordinal:Array,number:Array,time:Array},d=t("../model/Model"),p=t("./DataDiffer"),v=t(O),y=t("../util/model"),_=v[g],x=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],b=function(t,e){v.each(x.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},w=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[L];r++){var a,o={};typeof t[r]===S?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||"number"),n.push(a),i[a]=o}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},M=w[D];M.type="list",M.hasItemOption=!0,M.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},M.getDimensionInfo=function(t){return v.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this.dimensions,o=t[L],s=this._dimensionInfos,u=[],c={};e=e||[];for(var h=0;h<a[L];h++){var f=s[a[h]],d=l[f.type];n[a[h]]=new d(o)}var p=this;i||(p.hasItemOption=!1),i=i||function(t,e,i,n){var r=y.getDataItemValue(t);return y.isDataItemOption(t)&&(p.hasItemOption=!0),y.converDataValue(r instanceof Array?r[n]:r,s[e])};for(var m=0;m<t[L];m++){for(var v=t[m],g=0;g<a[L];g++){var _=a[g],x=n[_];x[m]=i(v,_,m,g)}r.push(m)}for(var h=0;h<t[L];h++){e[h]||t[h]&&null!=t[h].name&&(e[h]=t[h].name);var b=e[h]||"",w=t[h]&&t[h].id;!w&&b&&(c[b]=c[b]||0,w=b,c[b]>0&&(w+="__ec__"+c[b]),c[b]++),w&&(u[h]=w)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[L]},M.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var u=s.get(t,e);(a>=0&&u>0||0>=a&&0>u)&&(a+=u),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var n=[];v[f](t)||(i=e,e=t,t=this.dimensions);for(var r=0,a=t[L];a>r;r++)n.push(this.get(t[r],e,i));return n},M.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,n=0,r=e[L];r>n;n++)if(i[e[n]].type!==a&&isNaN(this.get(e[n],t)))return!1;return!0},M.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,u=0,l=this.count();l>u;u++)r=this.get(t,u,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},M[c]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[L];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[L];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},M.indexOfRawIndex=function(t){for(var e=this.indices,i=0,n=e[L]-1;n>=i;){var r=(i+n)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;n=r-1}}return-1},M.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,u=0,l=this.count();l>u;u++){var c=e-this.get(t,u,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=u)}return o},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},M.getName=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,n,r){typeof t===h&&(r=n,n=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=t[L],s=this.indices;r=r||this;for(var u=0;u<s[L];u++)switch(o){case 0:i.call(r,u);break;case 1:i.call(r,this.get(t[0],u,n),u);break;case 2:i.call(r,this.get(t[0],u,n),this.get(t[1],u,n),u);break;default:for(var l=0;o>l;l++)a[l]=this.get(t[l],u,n);a[l]=u,i.apply(r,a)}},M.filterSelf=function(t,i,n,r){typeof t===h&&(r=n,n=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=[],s=t[L],u=this.indices;r=r||this;for(var l=0;l<u[L];l++){var c;if(1===s)c=i.call(r,this.get(t[0],l,n),l);else{for(var f=0;s>f;f++)o[f]=this.get(t[f],l,n);o[f]=l,c=i.apply(r,o)}c&&a.push(u[l])}return this.indices=a,this._extent={},this},M.mapArray=function(t,e,i,n){typeof t===h&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},M.map=function(t,i,r,a){t=v.map(e(t),this.getDimension,this);var o=n(this,t),s=o.indices=this.indices,u=o._storage,l=[];return this.each(t,function(){var e=arguments[arguments[L]-1],n=i&&i.apply(this,arguments);if(null!=n){"number"==typeof n&&(l[0]=n,n=l);for(var r=0;r<n[L];r++){var a=t[r],o=u[a],c=s[e];o&&(o[c]=n[r])}}},r,a),o},M.downSample=function(t,e,i,r){for(var a=n(this,[t]),o=this._storage,s=a._storage,u=this.indices,l=a.indices=[],c=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),m=0;m<o[t][L];m++)s[t][m]=o[t][m];for(var m=0;p>m;m+=f){f>p-m&&(f=p-m,c[L]=f);for(var v=0;f>v;v++){var g=u[m+v];c[v]=d[g],h[v]=g}var y=i(c),g=h[r(c,y)||0];d[g]=y,l.push(g)}return a},M.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new d(this._rawData[t],e,e&&e.ecModel)},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new p(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},M.getVisual=function(t){var e=this._visual;return e&&e[t]},M.setVisual=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},M.setLayout=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},M.getLayout=function(t){return this._layout[t]},M.getItemLayout=function(t){return this._itemLayouts[t]},M.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?v[I](this._itemLayouts[t]||{},e):e},M.clearItemLayouts=function(){this._itemLayouts[L]=0},M.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},M.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,_(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i},M.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var T=function(t){t.seriesIndex=this.seriesIndex,t[m]=this[m],t.dataType=this.dataType};return M.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[m]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},M.getItemGraphicEl=function(t){return this._graphicEls[t]},M.eachItemGraphicEl=function(t,e){v.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},M.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),e.indices=this.indices.slice(),this._extent&&(e._extent=v[I]({},this._extent)),e},M.wrapMethod=function(t,e){var i=this[t];typeof i===h&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(v.slice(arguments)))})},M.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],M.CHANGABLE_METHODS=["filterSelf"],w}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],u=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],u=e[5],l=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*l,t[1]=-n*l+o*c,t[2]=r*c+s*l,t[3]=-r*l+c*s,t[4]=c*a+l*u,t[5]=c*u-l*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],u=i*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=i*u,t[4]=(n*s-o*r)*u,t[5]=(a*r-i*s)*u,t):null}};return e}),e("echarts/model/Model",[E,O,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}var i=t(O),n=t("../util/clazz");e[D]={constructor:e,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;typeof t===S&&(t=t.split("."));for(var i=this.option,n=this.parentModel,r=0;r<t[L]&&(!t[r]||(i=i&&"object"==typeof i?i[t[r]]:null,null!=i));r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this.option,n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[u](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[T](t),this.ecModel);return a},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e(A,[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[L]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/util/clazz",[E,O],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[D][e].apply(t,i)}function i(t,e,i){return this.superClass[D][e].apply(t,i)}var n=t(O),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){t.$constructor=t,t[I]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[I](a[D],t),a[I]=this[I],a.superCall=e,a.superApply=i,n[l](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function i(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 n=i(e);n[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[I];a&&(t[I]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("zrender/graphic/Path",[E,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new a}var i=t("./Displayable"),r=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),s=t("./Pattern"),u=s[D].getCanvasPattern,c=Math.abs;return e[D]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,r=this.path,a=i.hasStroke(),o=i.hasFill(),s=i.fill,l=i.stroke,c=o&&!!s.colorStops,h=a&&!!l.colorStops,f=o&&!!s.image,d=a&&!!l.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var p=this[n]();c&&(this._fillGradient=i.getGradient(t,s,p)),h&&(this._strokeGradient=i.getGradient(t,l,p))}c?t.fillStyle=this._fillGradient:f&&(t.fillStyle=u.call(s,t)),h?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=u.call(l,t));var m=i.lineDash,v=i.lineDashOffset,g=!!t.setLineDash,y=this.getGlobalScale();r.setScale(y[0],y[1]),this.__dirtyPath||m&&!g&&a?(r=this.path.beginPath(t),m&&!g&&(r.setLineDash(m),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),m&&g&&(t.setLineDash(m),t.lineDashOffset=v),a&&r.stroke(t),m&&g&&t.setLineDash([]),this.restoreTransform(t),(i.text||0===i.text)&&this.drawRectText(t,this[n]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[n]()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a[_]+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[n](),a=this.style;if(t=i[0],e=i[1],r[k](t,e)){var s=this.path.data;if(a.hasStroke()){var u=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),o.containStroke(s,u/l,t,e)))return!0}if(a.hasFill())return o[k](s,t,e)}return!1},dirty:function(t){null==t&&(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),this.__dirtyPath=!0,this._rect=null):i[D].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r[g](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},e[I]=function(t){var i=function(i){e.call(this,i),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,i)};r[l](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[D][n]=t[n]);return i},r[l](e,i),e}),e("zrender/graphic/Gradient",[E],function(){var t=function(t){this.colorStops=t||[]};return t[D]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/tool/path",[E,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,u,d,p){var g=u*(f/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,_=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=l(x),s*=l(x));var b=(r===a?-1:1)*l((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,T=(t+i)/2+h(g)*w-c(g)*M,S=(e+n)/2+c(g)*w+h(g)*M,C=v([1,0],[(y-w)/o,(_-M)/s]),A=[(y-w)/o,(_-M)/s],L=[(-1*y-w)/o,(-1*_-M)/s],P=v(A,L);m(A,L)<=-1&&(P=f),m(A,L)>=1&&(P=0),0===a&&P>0&&(P-=2*f),1===a&&0>P&&(P+=2*f),p.addData(d,T,S,o,s,C,P,g,a)}function i(t){if(!t)return[];var i,n=t[d](/-/g," -")[d](/ /g," ")[d](/ /g,",")[d](/,,/g,",");for(i=0;i<u[L];i++)n=n[d](new RegExp(u[i],"g"),"|"+u[i]);var r,o=n.split("|"),s=0,l=0,c=new a,h=a.CMD;for(i=1;i<o[L];i++){var f,p=o[i],m=p.charAt(0),v=0,g=p.slice(1)[d](/e,-/g,"e-").split(",");g[L]>0&&""===g[0]&&g.shift();for(var y=0;y<g[L];y++)g[y]=parseFloat(g[y]);for(;v<g[L]&&!isNaN(g[v])&&!isNaN(g[0]);){var _,x,b,w,M,T,S,C=s,A=l;switch(m){case"l":s+=g[v++],l+=g[v++],f=h.L,c.addData(f,s,l);break;case"L":s=g[v++],l=g[v++],f=h.L,c.addData(f,s,l);break;case"m":s+=g[v++],l+=g[v++],f=h.M,c.addData(f,s,l),m="l";break;case"M":s=g[v++],l=g[v++],f=h.M,c.addData(f,s,l),m="L";break;case"h":s+=g[v++],f=h.L,c.addData(f,s,l);break;case"H":s=g[v++],f=h.L,c.addData(f,s,l);break;case"v":l+=g[v++],f=h.L,c.addData(f,s,l);break;case"V":l=g[v++],f=h.L,c.addData(f,s,l);break;case"C":f=h.C,c.addData(f,g[v++],g[v++],g[v++],g[v++],g[v++],g[v++]),s=g[v-2],l=g[v-1];break;case"c":f=h.C,c.addData(f,g[v++]+s,g[v++]+l,g[v++]+s,g[v++]+l,g[v++]+s,g[v++]+l),s+=g[v-2],l+=g[v-1];break;case"S":_=s,x=l;var P=c.len(),k=c.data;r===h.C&&(_+=s-k[P-4],x+=l-k[P-3]),f=h.C,C=g[v++],A=g[v++],s=g[v++],l=g[v++],c.addData(f,_,x,C,A,s,l);break;case"s":_=s,x=l;var P=c.len(),k=c.data;r===h.C&&(_+=s-k[P-4],x+=l-k[P-3]),f=h.C,C=s+g[v++],A=l+g[v++],s+=g[v++],l+=g[v++],c.addData(f,_,x,C,A,s,l);break;case"Q":C=g[v++],A=g[v++],s=g[v++],l=g[v++],f=h.Q,c.addData(f,C,A,s,l);break;case"q":C=g[v++]+s,A=g[v++]+l,s+=g[v++],l+=g[v++],f=h.Q,c.addData(f,C,A,s,l);break;case"T":_=s,x=l;var P=c.len(),k=c.data;r===h.Q&&(_+=s-k[P-4],x+=l-k[P-3]),s=g[v++],l=g[v++],f=h.Q,c.addData(f,_,x,s,l);break;case"t":_=s,x=l;var P=c.len(),k=c.data;r===h.Q&&(_+=s-k[P-4],x+=l-k[P-3]),s+=g[v++],l+=g[v++],f=h.Q,c.addData(f,_,x,s,l);break;case"A":b=g[v++],w=g[v++],M=g[v++],T=g[v++],S=g[v++],C=s,A=l,s=g[v++],l=g[v++],f=h.A,e(C,A,s,l,T,S,b,w,M,f,c); break;case"a":b=g[v++],w=g[v++],M=g[v++],T=g[v++],S=g[v++],C=s,A=l,s+=g[v++],l+=g[v++],f=h.A,e(C,A,s,l,T,S,b,w,M,f,c)}}("z"===m||"Z"===m)&&(f=h.Z,c.addData(f)),r=f}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e.applyTransform=function(t){n||(n=s[P]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],l=Math.sqrt,c=Math.sin,h=Math.cos,f=Math.PI,p=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[I](n(t,e))},mergePath:function(t,e){for(var i=[],n=t[L],a=0;n>a;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/container/Group",[E,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),r=t("../core/BoundingRect"),a=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return a[D]={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[L];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[L]},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 i=this._children,n=i[c](e);n>=0&&(i[v](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,r=this._children,o=e[c](r,t);return 0>o?this:(r[v](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[L];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t.parent=null;return i[L]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[L];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[L];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[L];e++){var i=this._children[e];t.addToMap(i),i instanceof a&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[L];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new r(0,0,0,0),a=t||this._children,o=[],s=0;s<a[L];s++){var u=a[s];if(!u[b]&&!u.invisible){var l=u[n](),c=u.getLocalTransform(o);c?(i.copy(l),i.applyTransform(c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[l](a,i),a}),e("zrender/graphic/Image",[E,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),r=t("../core/BoundingRect"),a=t("../core/util"),o=t("../core/LRU"),s=new o(50);return e[D]={constructor:e,type:"image",brush:function(t,e){var i,r=this.style,a=r.image;if(r.bind(t,this,e),i=typeof a===S?this._image:a,!i&&a){var o=s.get(a);if(!o)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<o.pending[L];t++)o.pending[t].dirty()},o={image:i,pending:[this]},i.src=a,s.put(a,o),void(this._image=i);if(i=o.image,this._image=i,!i.width||!i[_])return void o.pending.push(this)}if(i){var u=r.width||i.width,l=r[_]||i[_],c=r.x||0,h=r.y||0;if(!i.width||!i[_])return;if(this.setTransform(t),r.sWidth&&r.sHeight){var f=r.sx||0,d=r.sy||0;t.drawImage(i,f,d,r.sWidth,r.sHeight,c,h,u,l)}else if(r.sx&&r.sy){var f=r.sx,d=r.sy,p=u-f,m=l-d;t.drawImage(i,f,d,p,m,c,h,u,l)}else t.drawImage(i,c,h,u,l);null==r.width&&(r.width=u),null==r[_]&&(r[_]=l),this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this[n]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t[_]||0)),this._rect}},a[l](e,i),e}),e("zrender/graphic/shape/Sector",[E,"../Path"],function(t){return t("../Path")[I]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,u=e.clockwise,l=Math.cos(o),c=Math.sin(o);t.moveTo(l*r+i,c*r+n),t.lineTo(l*a+i,c*a+n),t.arc(i,n,a,o,s,!u),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,u),t.closePath()}})}),e("zrender/graphic/Text",[E,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),r=t("../contain/text"),a=function(t){e.call(this,t)};return a[D]={constructor:a,type:"text",brush:function(t,e){var i=this.style,a=i.x||0,o=i.y||0,s=i.text;if(null!=s&&(s+=""),i.bind(t,this,e),s){this.setTransform(t);var u,l=i.textAlign,c=i.textFont||i.font;if(i.textVerticalAlign){var h=r[n](s,c,i.textAlign,"top");switch(u="middle",i.textVerticalAlign){case"middle":o-=h[_]/2-h.lineHeight/2;break;case x:o-=h[_]-h.lineHeight/2;break;default:o+=h.lineHeight/2}}else u=i.textBaseline;t.font=c,t.textAlign=l||"left",t.textAlign!==l&&(t.textAlign="left"),t.textBaseline=u||"alphabetic",t.textBaseline!==u&&(t.textBaseline="alphabetic");for(var f=r.measureText("国",t.font).width,d=s.split("\n"),p=0;p<d[L];p++)i.hasFill()&&t.fillText(d[p],a,o),i.hasStroke()&&t.strokeText(d[p],a,o),o+=f;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=r[n](t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":i.y-=i[_]/2;break;case x:i.y-=i[_]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[l](a,e),a}),e("zrender/graphic/shape/Ring",[E,"../Path"],function(t){return t("../Path")[I]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}})}),e("zrender/graphic/shape/Polygon",[E,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[I]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Circle",[E,"../Path"],function(t){return t("../Path")[I]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&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/Polyline",[E,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[I]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Line",[E,"../Path"],function(t){return t("../Path")[I]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/Rect",[E,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[I]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[_];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/BezierCurve",[E,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?l:s)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?l:s)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:o)(t.x1,t.cpx1,t.x2,e),(i?u:o)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),n=t("../../core/vector"),r=i.quadraticSubdivide,a=i.cubicSubdivide,o=i.quadraticAt,s=i.cubicAt,u=i.quadraticDerivativeAt,l=i.cubicDerivativeAt,c=[];return t("../Path")[I]({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 i=e.x1,n=e.y1,o=e.x2,s=e.y2,u=e.cpx1,l=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,n),null==h||null==f?(1>d&&(r(i,u,o,d,c),u=c[1],o=c[2],r(n,l,s,d,c),l=c[1],s=c[2]),t.quadraticCurveTo(u,l,o,s)):(1>d&&(a(i,u,h,o,d,c),u=c[1],h=c[2],o=c[3],a(n,l,f,s,d,c),l=c[1],f=c[2],s=c[3]),t.bezierCurveTo(u,l,h,f,o,s)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return n.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[E,"../Path"],function(t){return t("../Path")[I]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,u=Math.cos(a),l=Math.sin(a);t.moveTo(u*r+i,l*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[E,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,i.call(this,a)};return n[D]={constructor:n},e[l](n,i),n}),e("zrender/graphic/CompoundPath",[E,"./Path"],function(t){var e=t("./Path");return e[I]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[L];i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[L];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[L];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[L];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[D][n].call(this)}})}),e("zrender/core/BoundingRect",[E,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[_]=n}var i=t("./vector"),n=t("./matrix"),r=i.applyTransform,a=Math.min,o=Math.abs,s=Math.max;return e[D]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[_]=s(t.y+t[_],this.y+this[_])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[_],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[_]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[_]/e[_],a=n[P]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[_],o=t.x,s=t.x+t.width,u=t.y,l=t.y+t[_];return!(o>n||i>s||u>a||r>l)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[_]},clone:function(){return new e(this.x,this.y,this.width,this[_])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[_]=t[_]}},e}),e("zrender/graphic/RadialGradient",[E,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[D]={constructor:n},e[l](n,i),n}),e("zrender/contain/text",[E,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[L];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return u>l&&(u=0,s={}),u++,s[i]=r,r}function i(t,i,n,a){var o=((t||"")+"").split("\n")[L],s=e(t,i),u=e("国",i),l=o*u,c=new h(0,0,s,l);switch(c.lineHeight=u,a){case x:case"alphabetic":c.y-=u;break;case"middle":c.y-=u/2}switch(n){case"end":case"right":c.x-=c.width;break;case r:c.x-=c.width/2}return c}function n(t,e,i,n){var a=e.x,o=e.y,s=e[_],u=e.width,l=i[_],c=s/2-l/2,h="left";switch(t){case"left":a-=n,o+=c,h="right";break;case"right":a+=n+u,o+=c,h="left";break;case"top":a+=u/2,o-=n+l,h=r;break;case x:a+=u/2,o+=s+n,h=r;break;case"inside":a+=u/2,o+=c,h=r;break;case"insideLeft":a+=n,o+=c,h="left";break;case"insideRight":a+=u-n,o+=c,h="right";break;case"insideTop":a+=u/2,o+=n,h=r;break;case"insideBottom":a+=u/2,o+=s-l-n,h=r;break;case"insideTopLeft":a+=n,o+=n,h="left";break;case"insideTopRight":a+=u-n,o+=n,h="right";break;case"insideBottomLeft":a+=n,o+=s-l-n;break;case"insideBottomRight":a+=u-n,o+=s-l-n,h="right"}return{x:a,y:o,textAlign:h,textBaseline:"top"}}function a(t,i,n,r,a){if(!i)return"";a=a||{},r=f(r,"...");for(var s=f(a.maxIterations,2),u=f(a.minChar,0),l=e("国",n),c=e("a",n),h=f(a.placeholder,""),d=i=Math.max(0,i-1),p=0;u>p&&d>=c;p++)d-=c;var m=e(r);m>d&&(r="",m=0),d=i-m;for(var v=(t+"").split("\n"),p=0,g=v[L];g>p;p++){var y=v[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=s){y+=r;break}var b=0===x?o(y,d,c,l):_>0?Math.floor(y[L]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function o(t,e,i,n){for(var r=0,a=0,o=t[L];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var s={},u=0,l=5e3,c=t("../core/util"),h=t("../core/BoundingRect"),f=c.retrieve,d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:a,measureText:function(t,e){var i=c.getContext();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/util/model",[E,"./format","./number","../model/Model",O],function(t){var e=t("./format"),i=t("./number"),n=t("../model/Model"),r=t(O),s=["x","y","z","radius","angle"],u={};return u.createNameEach=function(t,e){t=t.slice();var i=r.map(t,u.capitalFirst);e=(e||[]).slice();var n=r.map(e,u.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:i[r]},u=0;u<e[L];u++)s[e[u]]=t+n[u];a.call(o,s)})}},u.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},u.eachAxisDim=u.createNameEach(s,["axisIndex","axis","index"]),u.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},u.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[c](e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&a(t,s)&&(o(t,s),u=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var u;do u=!1,t(r);while(u);return s}},u.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},u.LABEL_OPTIONS=[o,"show","textStyle","distance","formatter"],u.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},u.isDataItemOption=function(t){return r[g](t)&&!(t instanceof Array)},u.converDataValue=function(t,e){var n=e&&e.type;return n===a?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},u.createDataFormatModel=function(t,e){var i=new n;return r.mixin(i,u.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[y]=function(){return t},i},u.dataFormatMixin={getDataParams:function(t,e){var i=this[y](e),n=this.seriesIndex,r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),u=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:u,dataType:e,value:a,color:i.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n,r){i=i||"normal";var a=this[y](n),o=a.getItemModel(t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var u=o.get(["label",i,"formatter"]);return typeof u===h?(s.status=i,u(s)):typeof u===S?e.formatTpl(u,s):void 0},getRawValue:function(t,e){var i=this[y](e),n=i.getRawDataItem(t);return null!=n?!r[g](n)||n instanceof Array?n:n.value:void 0},formatTooltip:r.noop},u.mappingToExists=function(t,e){e=(e||[]).slice();var i=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,n){if(r[g](t))for(var a=0;a<i[L];a++){var o=i[a].exist;if(!i[a].option&&(null!=t.id&&o.id===t.id+""||null!=t.name&&!u.isIdInner(t)&&!u.isIdInner(o)&&o.name===t.name+"")){i[a].option=t,e[n]=null;break}}}),r.each(e,function(t){if(r[g](t)){for(var e=0;e<i[L];e++){var n=i[e].exist;if(!i[e].option&&!u.isIdInner(n)&&null==t.id){i[e].option=t;break}}e>=i[L]&&i.push({option:t})}}),i},u.isIdInner=function(t){return r[g](t)&&t.id&&0===(t.id+"")[c]("\x00_ec_\x00")},u.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[L];r>n;n++)for(var a=t[n].seriesId,o=u.normalizeToArray(t[n][m]),s=i&&i[a],l=0,c=o[L];c>l;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[L]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},u}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==i&&(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"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,n=e._colorNameMap||(e._colorNameMap={});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r[L]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[L],a}}}}),e("zrender/graphic/Displayable",[E,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),r=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[D]={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,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[n]();return r[k](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[D].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t),this.dirty(!1),this}},i[l](e,a),i.mixin(e,o),e}),e("zrender/core/PathProxy",[E,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),n=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),o=t("../config").devicePixelRatio,s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],l=[],c=[],h=[],f=Math.min,d=Math.max,p=Math.cos,m=Math.sin,v=Math.sqrt,g=Math.abs,y=typeof Float32Array!=i,_=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return _[D]={constructor:_,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=g(1/o/t)||0,this._uy=g(1/o/e)||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(s.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){var i=g(t-this._xi)>this._ux||g(e-this._yi)>this._uy||this._len<5;return this.addData(s.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(s.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(s.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(s.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=p(r)*i+t,this._xi=m(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(s.R,t,e,i,n),this},closePath:function(){this.addData(s.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[L];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[L];this.data&&this.data[L]==e||!y||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[L],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();y&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[L];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[L]>e[L]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[L];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,u=this._xi,l=this._yi,c=t-u,h=e-l,p=v(c*c+h*h),m=u,g=l,y=o[L];for(c/=p,h/=p,0>a&&(a=r+a),a%=r,m-=a*c,g-=a*h;c>0&&t>=m||0>c&&m>=t||0==c&&(h>0&&e>=g||0>h&&g>=e);)n=this._dashIdx,i=o[n],m+=c*i,g+=h*i,this._dashIdx=(n+1)%y,c>0&&u>m||0>c&&m>u||h>0&&l>g||0>h&&g>l||s[n%2?"moveTo":"lineTo"](c>=0?f(m,t):d(m,t),h>=0?f(g,e):d(g,e));c=m-t,h=g-e,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(t,i,n,r,a,o){var s,u,l,c,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[L],M=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)u=_(g,t,n,a,s+.1)-_(g,t,n,a,s),l=_(y,i,r,o,s+.1)-_(y,i,r,o,s),x+=v(u*u+l*l);for(;w>b&&(M+=p[b],!(M>d));b++);for(s=(M-d)/x;1>=s;)c=_(g,t,n,a,s),h=_(y,i,r,o,s),b%2?m.moveTo(c,h):m.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&m.lineTo(a,o),u=a-c,l=o-h,this._dashOffset=-v(u*u+l*l)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[L]=this._len,y&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=c[0]=c[1]=Number.MAX_VALUE,l[0]=l[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,o=0,f=0,d=0;d<t[L];){var v=t[d++];switch(1==d&&(e=t[d],i=t[d+1],o=e,f=i),v){case s.M:o=t[d++],f=t[d++],e=o,i=f,c[0]=o,c[1]=f,h[0]=o,h[1]=f;break;case s.L:r.fromLine(e,i,t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.C:r.fromCubic(e,i,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.Q:r.fromQuadratic(e,i,t[d++],t[d++],t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.A:var g=t[d++],y=t[d++],_=t[d++],x=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(o=p(b)*_+g,f=m(b)*x+y),r.fromArc(g,y,_,x,b,w,M,c,h),e=p(w)*_+g,i=m(w)*x+y;break;case s.R:o=e=t[d++],f=i=t[d++];var T=t[d++],S=t[d++];r.fromLine(o,f,o+T,f+S,c,h);break;case s.Z:e=o,i=f}n.min(u,u,c),n.max(l,l,h)}return 0===d&&(u[0]=u[1]=l[0]=l[1]=0),new a(u[0],u[1],l[0]-u[0],l[1]-u[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,u=this.data,l=this._ux,c=this._uy,h=this._len,f=0;h>f;){var d=u[f++];switch(1==f&&(n=u[f],r=u[f+1],e=n,i=r),d){case s.M:e=n=u[f++],i=r=u[f++],t.moveTo(n,r);break;case s.L:a=u[f++],o=u[f++],(g(a-n)>l||g(o-r)>c||f===h-1)&&(t.lineTo(a,o),n=a,r=o);break;case s.C:t.bezierCurveTo(u[f++],u[f++],u[f++],u[f++],u[f++],u[f++]),n=u[f-2],r=u[f-1];break;case s.Q:t.quadraticCurveTo(u[f++],u[f++],u[f++],u[f++]),n=u[f-2],r=u[f-1];break;case s.A:var v=u[f++],y=u[f++],_=u[f++],x=u[f++],b=u[f++],w=u[f++],M=u[f++],T=u[f++],S=_>x?_:x,C=_>x?1:_/x,A=_>x?x/_:1,L=Math.abs(_-x)>.001,P=b+w;L?(t.translate(v,y),t.rotate(M),t.scale(C,A),t.arc(0,0,S,b,P,1-T),t.scale(1/C,1/A),t.rotate(-M),t.translate(-v,-y)):t.arc(v,y,S,b,P,1-T),1==f&&(e=p(b)*_+v,i=m(b)*x+y),n=p(P)*_+v,r=m(P)*x+y;break;case s.R:e=n=u[f],i=r=u[f+1],t.rect(u[f++],u[f++],u[f++],u[f++]);break;case s.Z:t.closePath(),n=e,r=i}}}},_.CMD=s,_}),e("zrender/graphic/Pattern",[E],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[D].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/model/mixin/lineStyle",[E,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/contain/path",[E,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,u,l,c){if(c>e&&c>r&&c>o&&c>u||e>c&&r>c&&o>c&&u>c)return 0;var h=d.cubicRootAt(e,r,o,u,c,y);if(0===h)return 0;for(var f,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=d.cubicAt(t,n,a,s,x);l>w||(0>v&&(v=d.cubicExtrema(e,r,o,u,_),_[1]<_[0]&&v>1&&i(),f=d.cubicAt(e,r,o,u,_[0]),v>1&&(p=d.cubicAt(e,r,o,u,_[1]))),m+=2==v?x<_[0]?e>f?b:-b:x<_[1]?f>p?b:-b:p>u?b:-b:x<_[0]?e>f?b:-b:f>u?b:-b)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var u=d.quadraticRootAt(e,n,a,s,y);if(0===u)return 0;var l=d.quadraticExtremum(e,n,a);if(l>=0&&1>=l){for(var c=0,h=d.quadraticAt(e,n,a,l),f=0;u>f;f++){var p=0===y[f]||1===y[f]?.5:1,m=d.quadraticAt(t,i,r,y[f]);o>m||(c+=y[f]<l?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,m=d.quadraticAt(t,i,r,y[0]);return o>m?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var u=Math.sqrt(i*i-s*s);y[0]=-u,y[1]=u;var l=Math.abs(n-r);if(1e-4>l)return 0;if(1e-4>l%v){n=0,r=v;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var u=n;n=f(r),r=f(u)}else n=f(n),r=f(r);n>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),c=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,u,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x<t[L];){var b=t[x++];switch(b===s.M&&x>1&&(o||(d+=p(v,g,y,_,u,f))),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],i,u,f))return!0}else d+=p(v,g,t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.C:if(o){if(l.containStroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=n(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],T=t[x++],S=t[x++],C=t[x++],A=t[x++],P=(t[x++],1-t[x++]),k=Math.cos(C)*T+w,z=Math.sin(C)*S+M;x>1?d+=p(v,g,k,z,u,f):(y=k,_=z);var I=(u-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+A,P,i,I,f))return!0}else d+=a(w,M,S,C,C+A,P,I,f);v=Math.cos(C+A)*T+w,g=Math.sin(C+A)*S+M;break;case s.R:y=v=t[x++],_=g=t[x++];var D=t[x++],O=t[x++],k=y+D,z=_+O;if(o){if(m(y,_,k,_,i,u,f)||m(k,_,k,z,i,u,f)||m(k,z,y,z,i,u,f)||m(y,z,y,_,i,u,f))return!0}else d+=p(k,_,k,z,u,f),d+=p(y,z,y,_,u,f);break;case s.Z:if(o){if(m(v,g,y,_,i,u,f))return!0}else d+=p(v,g,y,_,u,f);v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,u,f)||0),0!==d}var s=t("../core/PathProxy").CMD,u=t("./line"),l=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),m=u.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/tool/transformPath",[E,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,u,l,c,h,f,d=t.data,p=i.M,m=i.C,v=i.L,g=i.R,y=i.A,_=i.Q;for(l=0,c=0;l<d[L];){switch(n=d[l++],c=l,u=0,n){case p:u=1;break;case v:u=1;break;case m:u=3;break;case _:u=2;break;case y:var x=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),T=s(-e[1]/M,e[0]/w);d[l++]+=x,d[l++]+=b,d[l++]*=w,d[l++]*=M,d[l++]+=T,d[l++]+=T,l+=2,c=l;break;case g:f[0]=d[l++],f[1]=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[l++],f[1]+=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;u>h;h++){var f=a[h];f[0]=d[l++],f[1]=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n.applyTransform,a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("echarts/model/mixin/areaStyle",[E,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[E,"zrender/contain/text"],function(t){function e(t,e){return t&&t[u](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this.ecModel;return this[u]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,i=t&&t[T]("textStyle");return[this[u]("fontStyle")||e(i,"fontStyle"),this[u]("fontWeight")||e(i,"fontWeight"),(this[u]("fontSize")||e(i,"fontSize")||12)+"px",this[u]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get("textStyle")||{};return i[n](t,this.getFont(),e.align,e.baseline)},truncateText:function(t,e,n,r){return i.truncateText(t,e,this.getFont(),n,r)}}}),e("zrender/Element",[E,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),u=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return u[D]={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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===o||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[b]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[b]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===S)this.attrKV(t,e);else if(a[g](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),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(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[L];i++)t[s].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[L];i++)t[s].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(u,r),a.mixin(u,n),a.mixin(u,i),u}),e("zrender/graphic/Style",[E],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[_]+i.y,o=o*i[_]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[_],a=Math.min(n,r),o=e.x,s=e.y,u=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,u*=a);var l=t.createRadialGradient(o,s,0,o,s,u);return l}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[D]={constructor:n,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,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s<i[L];s++){var u=i[s],l=u[0];(o||r[l]!==a[l])&&(t[l]=r[l]||u[1])}if((o||r.fill!==a.fill)&&(t.fillStyle=r.fill),(o||r.stroke!==a.stroke)&&(t.strokeStyle=r.stroke),(o||r.opacity!==a.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var c=r.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===S?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n.colorStops,u=0;u<s[L];u++)o.addColorStop(s[u].offset,s[u].color);return o}};for(var r=n[D],a=0;a<i[L];a++){var o=i[a];o[0]in r||(r[o[0]]=o[1])}return n.getGradient=r.getGradient,n}),e("echarts/model/mixin/itemStyle",[E,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/graphic/mixin/RectText",[E,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===S?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[D]={constructor:o,drawRectText:function(t,r,o){var s=this.style,u=s.text;if(null!=u&&(u+=""),u){t.save();var l,c,h=s.textPosition,f=s.textDistance,d=s.textAlign,p=s.textFont||s.font,m=s.textBaseline,v=s.textVerticalAlign;o=o||i[n](u,p,d,m);var g=this.transform;if(g&&(a.copy(r),a.applyTransform(g),r=a),h instanceof Array){if(l=r.x+e(h[0],r.width),c=r.y+e(h[1],r[_]),d=d||"left",m=m||"top",v){switch(v){case"middle":c-=o[_]/2-o.lineHeight/2;break;case x:c-=o[_]-o.lineHeight/2;break;default:c+=o.lineHeight/2}m="middle"}}else{var y=i.adjustTextPositionOnRect(h,r,o,f);l=y.x,c=y.y,d=d||y.textAlign,m=m||y.textBaseline}t.textAlign=d||"left",t.textBaseline=m||"alphabetic";var b=s.textFill,w=s.textStroke;b&&(t.fillStyle=b),w&&(t.strokeStyle=w),t.font=p,t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var M=u.split("\n"),T=0;T<M[L];T++)b&&t.fillText(M[T],l,c),w&&t.strokeText(M[T],l,c),c+=o.lineHeight;t.restore()}}},o}),e("echarts/model/mixin/makeStyleMapper",[E,O],function(t){var e=t(O);return function(t){for(var i=0;i<t[L];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[L];r++){var a=t[r][1];if(!(i&&e[c](i,a)>=0)){var o=this[u](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/mixin/Transformable",[E,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,s=function(t){t=t||{},t[o]||(this[o]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=s[D];u.transform=null,u.needLocalTransform=function(){return e(this.rotation)||e(this[o][0])||e(this[o][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),a=this.transform;return n||e?(a=a||i[P](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t.transform,a):i.copy(a,t.transform)),this.transform=a,this.invTransform=this.invTransform||i[P](),void i.invert(this.invTransform,a)):void(a&&r(a))},u.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,s=this[o];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=s[0],t[5]+=s[1],t},u.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},u.restoreTransform=function(t){var e=this.invTransform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return u.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],s=this[o],u=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),s[0]=n[4],s[1]=n[5],u[0]=r,u[1]=a,this.rotation=Math.atan2(-n[1]/a,n[0]/r)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},u.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n.applyTransform(i,i,r),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&n.applyTransform(i,i,r),i},s}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Animatable",[E,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[g],o=t("../core/log"),u=function(){this.animators=[]};return u[D]={constructor:u,animate:function(t,n){var r,a=!1,u=this,l=this.__zr;if(t){var h=t.split("."),f=u;a="shape"===h[0];for(var d=0,p=h[L];p>d;d++)f&&(f=f[h[d]]);f&&(r=f)}else r=u;if(!r)return void o('Property "'+t+'" is not existed in element '+u.id);var m=u.animators,g=new e(r,n);return g.during(function(){u.dirty(a)}).done(function(){m[v](i[c](m,g),1)}),m.push(g),l&&l[s].addAnimator(g),g},stopAnimation:function(t){for(var e=this.animators,i=e[L],n=0;i>n;n++)e[n].stop(t);return e[L]=0,this},animateTo:function(t,e,i,a,o){function s(){l--,l||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var u=this.animators.slice(),l=u[L];l||o&&o();for(var c=0;c<u[L];c++)u[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},u=0;for(var l in n)if(null!=e[l])a(n[l])&&!i.isArrayLike(n[l])?this._animateToShallow(t?t+"."+l:l,e[l],n[l],r,o):(s[l]=n[l],u++);else if(null!=n[l])if(t){var c={};c[t]={},c[t][l]=n[l],this.attr(c)}else this.attr(l,n[l]);return u>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},u}),e("echarts/util/component",[E,O,"./clazz"],function(t){var e=t(O),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var u=r(n,s),l=u.originalDeps=i(s),h=a(l,t);u.entryCount=h[L],0===u.entryCount&&o.push(s),e.each(h,function(t){e[c](u.predecessor,t)<0&&u.predecessor.push(t);var i=r(n,t);e[c](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[c](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){l[t].entryCount--,0===l[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[L]){var u=n(i),l=u.graph,c=u.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[L];){var f=c.pop(),d=l[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/util/layout",[E,O,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,r,a){var s=0,u=0;null==r&&(r=1/0),null==a&&(a=1/0);var l=0;e.eachChild(function(c,h){var f,d,p=c[o],m=c[n](),v=e.childAt(h+1),g=v&&v[n]();if("horizontal"===t){var y=m.width+(g?-g.x+m.x:0);f=s+y,f>r||c.newline?(s=0,f=y,u+=l+i,l=m[_]):l=Math.max(l,m[_])}else{var x=m[_]+(g?-g.y+m.y:0);d=u+x,d>a||c.newline?(s+=l+i,u=0,d=x,l=m.width):l=Math.max(l,m.width)}c.newline||(p[0]=s,p[1]=u,"horizontal"===t?s=f+i:u=d+i)})}var i=t(O),a=t("zrender/core/BoundingRect"),s=t("./number"),u=t("./format"),l=s.parsePercent,c=i.each,h={},f=["left","right","top",x,"width",_];return h.box=e,h.vbox=i.curry(e,"vertical"),h.hbox=i.curry(e,"horizontal"),h.getAvailableSize=function(t,e,i){var n=e.width,r=e[_],a=l(t.x,n),o=l(t.y,r),s=l(t.x2,n),c=l(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=u.normalizeCssArray(i||0),{width:Math.max(s-a-i[1]-i[3],0),height:Math.max(c-o-i[0]-i[2],0)}},h.getLayoutRect=function(t,e,i){i=u.normalizeCssArray(i||0);var n=e.width,o=e[_],s=l(t.left,n),c=l(t.top,o),h=l(t.right,n),f=l(t[x],o),d=l(t.width,n),p=l(t[_],o),m=i[2]+i[0],v=i[1]+i[3],g=t.aspect;switch(isNaN(d)&&(d=n-h-v-s),isNaN(p)&&(p=o-f-m-c),isNaN(d)&&isNaN(p)&&(g>n/o?d=.8*n:p=.8*o),null!=g&&(isNaN(d)&&(d=g*p),isNaN(p)&&(p=d/g)),isNaN(s)&&(s=n-h-d-v),isNaN(c)&&(c=o-f-p-m),t.left||t.right){case r:s=n/2-d/2-i[3];break;case"right":s=n-d-v}switch(t.top||t[x]){case"middle":case r:c=o/2-p/2-i[0];break;case x:c=o-p-m}s=s||0,c=c||0,isNaN(d)&&(d=n-s-(h||0)),isNaN(p)&&(p=o-c-(f||0));var y=new a(s+i[3],c+i[0],d,p);return y.margin=i,y},h.positionGroup=function(t,e,r,a){var s=t[n]();e=i[I](i.clone(e),{width:s.width,height:s[_]}),e=h.getLayoutRect(e,r,a),t.attr(o,[e.x-s.x,e.y-s.y])},h.mergeLayoutParam=function(t,e,n){function r(i){var r={},s=0,u={},l=0,h=n.ignoreSize?1:2;if(c(i,function(e){u[e]=t[e]}),c(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&s++,o(u,t)&&l++}),l!==h&&s){if(s>=h)return r;for(var f=0;f<i[L];f++){var d=i[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 s(t,e,i){c(t,function(t){e[t]=i[t]})}!i[g](n)&&(n={});var u=["width","left","right"],l=[_,"top",x],h=r(u),f=r(l);s(u,t,h),s(l,t,f)},h.getLayoutParams=function(t){return h.copyLayoutParams({},t)},h.copyLayoutParams=function(t,e){return e&&t&&c(f,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},h}),e("zrender/animation/Animator",[E,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[L];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var u=t[0][L],s=0;o>s;s++)for(var l=0;u>l;l++)r[s][l]=n(t[s][l],e[s][l],i)}function o(t,e,i){var n=t[L],r=e[L];if(n!==r){var a=n>r;if(a)t[L]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o]))}for(var s=t[0]&&t[0][L],o=0;o<t[L];o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var u=0;s>u;u++)isNaN(t[o][u])&&(t[o][u]=e[o][u])}function u(t,e,i){if(t===e)return!0;var n=t[L];if(n!==e[L])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][L],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,u){var l=t[L];if(1==u)for(var h=0;l>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][L],h=0;l>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}function h(t){if(g(t)){var e=t[L];if(g(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,s,h){var d=t._getter,v=t._setter,y="spline"===e,_=s[L];if(_){var x,b=s[0].value,w=g(b),M=!1,T=!1,C=w&&g(b[0])?2:1;s.sort(function(t,e){return t.time-e.time}),x=s[_-1].time;for(var A=[],P=[],k=s[0].value,z=!0,I=0;_>I;I++){A.push(s[I].time/x);var D=s[I].value;if(w&&u(D,k,C)||!w&&D===k||(z=!1),k=D,typeof D==S){var O=m.parse(D);O?(D=O,M=!0):T=!0}P.push(D)}if(!z){for(var E=P[_-1],I=0;_-1>I;I++)w?o(P[I],E,C):!isNaN(P[I])||isNaN(E)||T||M||(P[I]=E);w&&o(d(t._target,h),E,C);var R,B,N,F,G,V,q=0,H=0;if(M)var W=[0,0,0,0];var Z=function(t,e){var i;if(H>e){for(R=Math.min(q+1,_-1),i=R;i>=0&&!(A[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=q;_>i&&!(A[i]>e);i++);i=Math.min(i-1,_-2)}q=i,H=e;var o=A[i+1]-A[i];if(0!==o)if(B=(e-A[i])/o,y)if(F=P[i],N=P[0===i?i:i-1],G=P[i>_-2?_-1:i+1],V=P[i>_-3?_-1:i+2],w)l(N,F,G,V,B,B*B,B*B*B,d(t,h),C);else{var s;if(M)s=l(N,F,G,V,B,B*B,B*B*B,W,1),s=f(W);else{if(T)return r(F,G,B);s=c(N,F,G,V,B,B*B,B*B*B)}v(t,h,s)}else if(w)a(P[i],P[i+1],B,d(t,h),C);else{var s;if(M)a(P[i],P[i+1],B,W,1),s=f(W);else{if(T)return r(P[i],P[i+1],B);s=n(P[i],P[i+1],B)}v(t,h,s)}},U=new p({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(U.easing=e),U}}}var p=t("./Clip"),m=t("../tool/color"),v=t("../core/util"),g=v.isArrayLike,y=Array[D].slice,_=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[D]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:h(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[L]=0;for(var t=this._doneList,e=t[L],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[s]&&this[s].addClip(o),e=o)}if(e){var u=e.onframe;e.onframe=function(t,e){u(t,e);for(var n=0;n<i._onframeList[L];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[s],n=0;n<e[L];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[L]=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",[E,"../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/model/mixin/boxLayout",[E],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(x),width:this.get("width"),height:this.get(_)}}}}),e("zrender/animation/Clip",[E,"./easing"],function(t){function e(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e[D]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==S?i[n]:n,a=typeof r===h?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,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/config",[],function(){var t=1;typeof window!==i&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/curve",[E,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,u=3*(n-2*i+t),l=3*(i-t),c=t-a,h=u*u-3*s*l,f=u*l-9*s*c,d=l*l-3*u*c,p=0;if(e(h)&&e(f))if(e(u))o[0]=0;else{var m=-l/u;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-u/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),T=h*u+1.5*s*(-f+b),S=h*u+1.5*s*(-f-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var m=(-u-(T+S))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var C=(2*h*u-3*s*f)/(2*_(h*h*h)),A=Math.acos(C)/3,L=_(h),P=Math.cos(A),m=(-u-2*L*P)/(3*s),x=(-u+L*(P+w*Math.sin(A)))/(3*s),k=(-u+L*(P-w*Math.sin(A)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),k>=0&&1>=k&&(o[p++]=k)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,u=9*n+3*a-3*t-9*r,l=3*n-3*t,c=0;if(e(u)){if(i(s)){var h=-l/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*u*l;if(e(f))o[0]=-s/(2*u);else if(f>0){var d=_(f),h=(-s+d)/(2*u),p=(-s-d)/(2*u);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,u=(n-i)*r+i,l=(s-o)*r+o,c=(u-s)*r+s,h=(c-l)*r+l;a[0]=t,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=c,a[6]=u,a[7]=n}function u(t,e,i,r,a,o,s,u,l,c,h){var f,d,p,m,v,y=.005,x=1/0;T[0]=l,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,u,w),m=g(T,S),x>m&&(f=w,x=m);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,S[0]=n(t,i,a,s,d),S[1]=n(e,r,o,u,d),m=g(S,T),d>=0&&x>m?(f=d,x=m):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,u,p),v=g(C,T),1>=p&&x>v?(f=p,x=v):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,u,f)),_(x)}function l(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,u=2*(n-t),l=t-a,c=0;if(e(s)){if(i(u)){var h=-l/u;h>=0&&1>=h&&(o[c++]=h)}}else{var f=u*u-4*s*l;if(e(f)){var h=-u/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=_(f),h=(-u+d)/(2*s),p=(-u-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,u){var c,h=.005,f=1/0;T[0]=o,T[1]=s;for(var d=0;1>d;d+=.05){S[0]=l(t,i,r,d),S[1]=l(e,n,a,d);var p=g(T,S);f>p&&(c=d,f=p)}f=1/0;for(var m=0;32>m&&!(b>h);m++){var v=c-h,y=c+h;S[0]=l(t,i,r,v),S[1]=l(e,n,a,v);var p=g(S,T);if(v>=0&&f>p)c=v,f=p;else{C[0]=l(t,i,r,y),C[1]=l(e,n,a,y);var x=g(C,T);1>=y&&f>x?(c=y,f=x):h*=.5}}return u&&(u[0]=l(t,i,r,c),u[1]=l(e,n,a,c)),_(f)}var m=t("./vector"),v=m[P],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),M=1/3,T=v(),S=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:u,quadraticAt:l,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/core/bbox",[E,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,u=e[P](),l=e[P](),c=e[P](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[L]){var n,o=t[0],s=o[0],u=o[0],l=o[1],c=o[1];for(n=1;n<t[L];n++)o=t[n],s=r(s,o[0]),u=a(u,o[0]),l=r(l,o[1]),c=a(c,o[1]);e[0]=s,e[1]=l,i[0]=u,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var f=[],d=[];return n.fromCubic=function(t,e,n,o,s,u,l,c,h,p){var m,v=i.cubicExtrema,g=i.cubicAt,y=v(t,n,s,l,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,m=0;y>m;m++){var _=g(t,n,s,l,f[m]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=v(e,o,u,c,d),m=0;y>m;m++){var x=g(e,o,u,c,d[m]);h[1]=r(x,h[1]),p[1]=a(x,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(l,h[0]),p[0]=a(l,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromQuadratic=function(t,e,n,o,s,u,l,c){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,u),1),0),m=f(t,n,s,d),v=f(e,o,u,p);l[0]=r(t,s,m),l[1]=r(e,u,v),c[0]=a(t,s,m),c[1]=a(e,u,v)},n.fromArc=function(t,i,n,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-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(u[0]=s(a)*n+t,u[1]=o(a)*r+i,l[0]=s(f)*n+t,l[1]=o(f)*r+i,v(p,u,l),g(m,u,l),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&&(c[0]=s(x)*n+t,c[1]=o(x)*r+i,v(p,c,p),g(m,c,m))},n}),e("zrender/contain/util",[E],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/arc",[E,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,u,l,c){if(0===u)return!1;var h=u;l-=t,c-=n;var f=Math.sqrt(l*l+c*c);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%i<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+=i);var p=Math.atan2(c,l);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,u=0,l=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;u=(e-n)/(t-i),l=(t*n-i*e)/(t-i);var c=u*a-o+l,h=c*c/(u*u+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[E,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,l,c,h){if(0===l)return!1;var f=l;if(h>i+f&&h>r+f&&h>o+f&&h>u+f||i-f>h&&r-f>h&&o-f>h&&u-f>h||c>t+f&&c>n+f&&c>a+f&&c>s+f||t-f>c&&n-f>c&&a-f>c&&s-f>c)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,u,c,h,null);return f/2>=d}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var u=s*(i-t)+t;return u>r?o:0}}),e("zrender/contain/quadratic",[E,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,l){if(0===s)return!1;var c=s;if(l>i+c&&l>r+c&&l>o+c||i-c>l&&r-c>l&&o-c>l||u>t+c&&u>n+c&&u>a+c||t-c>u&&n-c>u&&a-c>u)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,u,l,null);return c/2>=h}}}),e("zrender/core/LRU",[E],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[D];e.insert=function(t){var e=new i(t);return this.insertEntry(e),e},e.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},e.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=n[D];return r.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i.remove(a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/poly",[E,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n.points,o=n.smooth;if(a&&a[L]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var u=a[L],l=0;(r?u:u-1)>l;l++){var c=s[2*l],h=s[2*l+1],f=a[(l+1)%u];t.bezierCurveTo(c[0],c[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 l=1,d=a[L];d>l;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}}}),e("zrender/graphic/helper/smoothBezier",[E,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,u,l){var c,h,f,d,p=[],m=[],v=[],g=[];if(l){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[L];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,l[0]),n(d,d,l[1])}for(var y=0,_=t[L];_>y;y++){var x=t[y];if(u)c=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(m,h,c),r(m,m,s);var b=a(x,c),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var T=o([],x,v),S=o([],x,g);l&&(n(T,T,f),i(T,T,d),n(S,S,f),i(S,S,d)),p.push(T),p.push(S)}return u&&p.push(p.shift()),p}}),e("zrender/graphic/helper/smoothSpline",[E,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[L],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var u=o/2;u=r>u?r:u;for(var s=0;u>s;s++){var l,c,h,f=s/(u-1)*(n?r:r-1),d=Math.floor(f),p=f-d,m=t[d%r];n?(l=t[(d-1+r)%r],c=t[(d+1)%r],h=t[(d+2)%r]):(l=t[0===d?d:d-1],c=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(l[0],m[0],c[0],h[0],p,v,g),e(l[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/graphic/helper/roundRect",[E],function(){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,u=e.width,l=e[_],c=e.r;0>u&&(o+=u,u=-u),0>l&&(s+=l,l=-l),"number"==typeof c?i=n=r=a=c:c instanceof Array?1===c[L]?i=n=r=a=c[0]:2===c[L]?(i=r=c[0],n=a=c[1]):3===c[L]?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0;var h;i+n>u&&(h=i+n,i*=u/h,n*=u/h),r+a>u&&(h=r+a,r*=u/h,a*=u/h),n+r>l&&(h=n+r,n*=l/h,r*=l/h),i+a>l&&(h=i+a,i*=l/h,a*=l/h),t.moveTo(o+i,s),t.lineTo(o+u-n,s),0!==n&&t.quadraticCurveTo(o+u,s,o+u,s+n),t.lineTo(o+u,s+l-r),0!==r&&t.quadraticCurveTo(o+u,s+l,o+u-r,s+l),t.lineTo(o+a,s+l),0!==a&&t.quadraticCurveTo(o,s+l,o,s+l-a),t.lineTo(o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/Storage",[E,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[p]===e[p]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[p]-e[p]}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[D]={constructor:o,traverse:function(t,e){for(var i=0;i<this._roots[L];i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var i=this._roots,r=this._displayList,o=0,s=i[L];s>o;o++)this._updateAndAddDisplayable(i[o],null,t);r[L]=this._displayListLen,n.canvasSupported&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[b]||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;a<r[L];a++){var o=r[a];t.__dirty&&(o.__dirty=!0),this._updateAndAddDisplayable(o,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof r&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[L];e++){var n=this._roots[e];n instanceof r&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[L];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==S?this._elements[t]:t; var s=i[c](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[v](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("zrender/animation/Animation",[E,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[D]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[s]=this;for(var e=t.getClips(),i=0;i<e[L];i++)this.addClip(e[i])},removeClip:function(t){var i=e[c](this._clips,t);i>=0&&this._clips[v](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[L];i++)this.removeClip(e[i]);t[s]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[L],r=[],a=[],o=0;n>o;o++){var s=i[o],u=s.step(t);u&&(r.push(u),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[L];for(var o=0;n>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&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("echarts/coord/axisHelper",[E,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",O,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var o=t("../scale/Scale"),s=t("../util/number"),u=t(O),l=t("zrender/contain/text"),c={};return c.getScaleExtent=function(t,e){var i=t.scale,n=i[z](),r=n[1]-n[0];if(i.type===a)return isFinite(r)?n:[0,0];var o=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),c=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),h=e.get("boundaryGap");u[f](h)||(h=[h||0,h||0]),h[0]=s.parsePercent(h[0],1),h[1]=s.parsePercent(h[1],1);var d=!0,p=!0;return null==o&&(o=n[0]-h[0]*r,d=!1),null==l&&(l=n[1]+h[1]*r,p=!1),"dataMin"===o&&(o=n[0]),"dataMax"===l&&(l=n[1]),c&&(o>0&&l>0&&!d&&(o=0),0>o&&0>l&&!p&&(l=0)),[o,l]},c.niceScaleExtent=function(t,e){var i=t.scale,n=c.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var s=e.get("minInterval");if(isFinite(s)&&!r&&!a&&"interval"===i.type){var u=i.getInterval(),l=Math.max(Math.abs(u),s)/u;n=i[z](),i.setExtent(l*n[0],n[1]*l),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},c.createScaleByModel=function(t,n){if(n=n||t.get("type"))switch(n){case"category":return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(o.getClass(n)||i)[P](t)}},c.ifAxisCrossZero=function(t){var e=t.scale[z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},c.getAxisLabelInterval=function(t,e,i,a){var o,s=0,u=0,c=1;e[L]>40&&(c=Math.floor(e[L]/40));for(var h=0;h<t[L];h+=c){var f=t[h],d=l[n](e[h],i,r,"top");d[a?"x":"y"]+=f,d[a?"width":_]*=1.3,o?o.intersect(d)?(u++,s=Math.max(s,u)):(o.union(d),u=0):o=d.clone()}return 0===s&&c>1?c:(s+1)*c-1},c.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===S?(e=function(t){return function(e){return t[d]("{value}",e)}}(e),u.map(n,e)):typeof e===h?u.map(r,function(n,r){return e("category"===t.type?i.getLabel(n):n,r)},this):n},c}),e("zrender/Handler",[E,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":k](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[k](e,i))return!1;n=n.parent}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[D].dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],u=function(t,e,n){o.call(this),this.storage=t,this.painter=e,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return u[D]={constructor:u,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t),this.trigger("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o.trigger(i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==h&&t[r].call(t,a),t.trigger&&t.trigger(i,a)}))},findHover:function(t,e,i){for(var r=this.storage.getDisplayList(),a=r[L]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][b]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){u[D][t]=function(e){var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(i,t,e)}}),r.mixin(u,o),r.mixin(u,a),u}),e("zrender/dom/HandlerProxy",[E,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r.target,a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i<g[L];i++){var n=g[i];t._handlers[n]=u.bind(y[n],t)}for(var i=0;i<v[L];i++){var n=v[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){u.each(i,function(i){f(t,e(i),n._handlers[i])},n)}l.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new h,this._handlers={},a(this),r()&&i(g,this),i(v,this)}var s=t("../core/event"),u=t("../core/util"),l=t("../mixin/Eventful"),c=t("../core/env"),h=t("../core/GestureMgr"),f=s.addEventListener,d=s.removeEventListener,p=s.normalizeEvent,m=300,v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=p(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=p(this.dom,t),this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<m&&y.click.call(this,t),n(this)}};u.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){y[t]=function(e){e=p(this.dom,e),this.trigger(t,e)}});var _=o[D];return _.dispose=function(){for(var t=v.concat(g),i=0;i<t[L];i++){var n=t[i];d(this.dom,e(n),this._handlers[n])}},_.setCursor=function(t){this.dom.style.cursor=t||"default"},u.mixin(o,l),o}),e("zrender/Painter",[E,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t.resize!==h||typeof t.refresh!==h?!1:!0:!1}function r(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function s(t,e,i){return T.copy(t[n]()),t.transform&&T.applyTransform(t.transform),S.width=e,S[_]=i,!T.intersect(S)}function u(t,e){if(t==e)return!1;if(!t||!e||t[L]!==e[L])return!0;for(var i=0;i<t[L];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var i=0;i<t[L];i++){var n,r=t[i];r.transform&&(n=r.transform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r.transform&&(n=r.invTransform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]))}}function f(t,e){var i=document.createElement("div"),n=i.style;return n[o]="relative",n.overflow="hidden",n.width=t+"px",n[_]=e+"px",i}var d=t("./config"),m=t("./core/util"),g=t("./core/log"),y=t("./core/BoundingRect"),x=t("./core/timsort"),b=t("./Layer"),w=t("./animation/requestAnimationFrame"),M=5,T=new y(0,0,0,0),S=new y(0,0,0,0),C=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||d.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},n){var s=t.width,u=t[_];this._width=s,this._height=u;var l=new b(t,this,1);l.initContext(),o[0]=l,a.push(0)}else{this._width=this._getWidth(),this._height=this._getHeight();var c=this._domRoot=f(this._width,this._height);t.appendChild(c)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return C[D]={constructor:C,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[L];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[L]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i.setStyle(e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=m[c](i,e);n>=0&&i[v](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[L];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[L]=0},refreshHover:function(){var t=this._hoverElements,e=t[L],i=this._hoverlayer;if(i&&i.clear(),e){x(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t[v](r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,w(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,w(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,m.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(r),this._doPaintList(t,e),this.eachBuildinLayer(a)},_doPaintList:function(t,e){function i(t){a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.drawImage(t.dom,0,0,c,h),a.restore(),n.ctx.restore()}for(var n,r,a,o,s,u,l=0,c=this._width,h=this._height,f=this._progress,d=0,v=t[L];v>d;d++){var y=t[d],_=this._singleCanvas?0:y[p],x=y.__frame;if(0>x&&s&&(i(s),s=null),r!==_&&(a&&a.restore(),o={},r=_,n=this.getLayer(r),n.isBuildin||g("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(l++,M-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){d=s.__nextIdxNotProg-1;continue}u=s.__progress,s.__dirty||(f=u),s.__progress=f+1}x===f&&this._doPaintEl(y,s,!0,s.renderScope)}else this._doPaintEl(y,n,e,o);y.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,m.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,n){var r=e.ctx;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&t.scale[0]&&t.scale[1]&&(!t.culling||!s(t,this._width,this._height))){var a=t.__clipPaths;(n.prevClipLayer!==e||u(a,n.prevElClipPaths))&&(n.prevElClipPaths&&(n.prevClipLayer.ctx.restore(),n.prevClipLayer=n.prevElClipPaths=null,n.prevEl=null),a&&(r.save(),l(a,r),n.prevClipLayer=e,n.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new b("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&m.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[L],o=null,s=-1,u=this._domRoot;if(n[t])return void g("ZLevel "+t+" has been used already");if(!i(e))return void g("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[v](s+1,0,t),o){var l=o.dom;l.nextSibling?u.insertBefore(e.dom,l.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[L];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[L];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[L];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i=this._progressiveLayers,n={},r={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0,t.__dirty=!1}),m.each(i,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var a,o,s=0,u=0,l=0,c=t[L];c>l;l++){var h=t[l],f=this._singleCanvas?0:h[p],d=e[f],v=h.progressive;if(d&&(d.elCount++,d.__dirty=d.__dirty||h.__dirty),v>=0){o!==v&&(o=v,u++);var g=h.__frame=u-1;if(!a){var y=Math.min(s,M-1);a=i[y],a||(a=i[y]=new b("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||h.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,g),a.__maxProgress>=a.__progress&&(d.__dirty=!0)}else h.__frame=-1,a&&(a.__nextIdxNotProg=l,s++,a=null)}a&&(s++,a.__nextIdxNotProg=l),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[L]=Math.min(s,M),m.each(i,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?m.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&m.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[v](m[c](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[_]=e+"px";for(var n in this._layers)this._layers[n].resize(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 b("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),n={},r=0;r<i[L];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[_])||e(t.style[_]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var s=document.createElement("canvas"),u=s.getContext("2d");s.width=n*a,s[_]=r*a,u.clearRect(0,0,n*a,r*a);var l={position:i[o],rotation:i.rotation,scale:i.scale};i[o]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(u);var c=t("./graphic/Image"),h=new c({id:e,style:{x:0,y:0,image:s}});return null!=l[o]&&(h[o]=i[o]=l[o]),null!=l.rotation&&(h.rotation=i.rotation=l.rotation),null!=l.scale&&(h.scale=i.scale=l.scale),h},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},C}),e("echarts/coord/cartesian/Cartesian2D",[E,O,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(O),n=t("./Cartesian");return e[D]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(a)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[k](e.toLocalCoord(t[0]))&&i[k](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[l](e,n),e}),e("echarts/coord/cartesian/GridModel",[E,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[I]({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("echarts/scale/Ordinal",[E,O,"./Scale"],function(t){var e=t(O),i=t("./Scale"),n=i[D],r=i[I]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[L]-1]},parse:function(t){return typeof t===S?e[c](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[k].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[P]=function(){return new r},r}),e("zrender/mixin/Draggable",[E],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[D]={constructor:t,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("echarts/coord/cartesian/Axis2D",[E,O,"../Axis","./axisLabelInterval"],function(t){var e=t(O),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[o]=a||x};return r[D]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[o];return"top"===t||t===x},getGlobalExtent:function(){var t=this[z]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return typeof e===h&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[l](r,i),r}),e("echarts/coord/cartesian/Cartesian",[E,O],function(t){function e(t){return this._axes[t]}var i=t(O),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[D]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[C](),i.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[L];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/animation/requestAnimationFrame",[E],function(){return typeof window!==i&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/event",[E,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,i,n){var r=e(t);return n=n||{},n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top,n}function r(t,e){if(e=e||window.event,null!=e.zrX)return e;var i=e.type,r=i&&i[c]("touch")>=0;if(r){var a="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];a&&n(t,a,e)}else n(t,e,e),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function a(t,e,i){u?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){u?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var s=t("../mixin/Eventful"),u=typeof window!==i&&!!window.addEventListener,l=u?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:n,normalizeEvent:r,addEventListener:a,removeEventListener:o,stop:l,Dispatcher:s}}),e("echarts/coord/cartesian/axisLabelInterval",[E,O,"../axisHelper"],function(t){var e=t(O),i=t("../axisHelper");return function(t){var n=t.model,r=n[T]("axisLabel"),a=r.get("interval");return"category"!==t.type||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[T]("textStyle").getFont(),t.isHorizontal())}}),e("echarts/coord/Axis",[E,"../util/number",O],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(O),o=[0,1],s=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return s[D]={constructor:s,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[k](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[z](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,s=this.scale;return t=s.normalize(t),this.onBand&&s.type===a&&(r=r.slice(),e(r,s.count())),n(t,o,r,i)},coordToData:function(t,i){var r=this._extent,s=this.scale;this.onBand&&s.type===a&&(r=r.slice(),e(r,s.count()));var u=n(t,r,o,i);return this.scale.scale(u)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[L];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[z](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[z](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},s}),e("zrender/core/GestureMgr",[E,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[D]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[L]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[L];s>o;o++){var u=r[o],l=n.clientToLocal(i,u);a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[L];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[L]>1&&a&&a[L]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var u=i(a);return n.pinchX=u[0],n.pinchY=u[1],{type:"pinch",target:t[0].target,event:n}}}}};return r}),e("echarts/coord/cartesian/AxisModel",[E,"../../model/Component",O,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?"category":"value")}var i=t("../../model/Component"),n=t(O),r=t("../axisModelCreator"),a=i[I]({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.option.rangeStart=t,this.option.rangeEnd=e},getMin:function(){var t=this.option;return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this.option;return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});n.merge(a[D],t("../axisModelCommonMixin"));var o={gridIndex:0,offset:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/Layer",[E,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document.createElement(e),a=i[M](),s=i[w](),u=r.style;return u[o]="absolute",u.left=0,u.top=0,u.width=a+"px",u[_]=s+"px",r.width=a*n,r[_]=s*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),s=t("./graphic/Pattern"),u=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===S?s=i(t,"canvas",a,o):n[g](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var u=s.style;u&&(s.onselectstart=e,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return u[D]={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[_]=e+"px",n.width=t*i,n[_]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[_]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[_],o=this.clearColor,u=this.motionBlur&&!t,l=this.lastFrameAlpha,c=this.dpr;if(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,r/c)),i.clearRect(0,0,n/c,r/c),o){var h;o.colorStops?(h=o.__canvasGradient||a.getGradient(i,o,{x:0,y:0,width:n/c,height:r/c}),o.__canvasGradient=h):o.image&&(h=s[D].getCanvasPattern.call(o,i)),i.save(),i.fillStyle=h||o,i.fillRect(0,0,n/c,r/c),i.restore()}if(u){var f=this.domBack;i.save(),i.globalAlpha=l,i.drawImage(f,0,0,n/c,r/c),i.restore()}}},u}),e("echarts/coord/axisModelCreator",[E,"./axisDefault",O,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(O),n=t("../model/Component"),r=t("../util/layout"),a=["value","category","time","log"];return function(t,o,s,u){i.each(a,function(n){o[I]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,u=o?r.getLayoutParams(e):{},l=a.getTheme();i.merge(e,l.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,u,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],u],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[E,O,"./axisHelper"],function(t){function e(t){return r[g](t)&&null!=t.value?t.value:t}function i(){return"category"===this.get("type")&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(O),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/preprocessor/helper/compatStyle",[E,O],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e.normal,a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n].normal?i.merge(t[n].normal,r[n]):t[n].normal=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?i.merge(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)})}var i=t(O),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var n=t.data;if(n){for(var r=0;r<n[L];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[L];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var u=s.data,r=0;r<u[L];r++)i[f](u[r])?(e(u[r][0]),e(u[r][1])):e(u[r])}}}}),e("echarts/coord/axisDefault",[E,O],function(t){var e=t(O),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e.defaults({scale:!0,min:"dataMin",max:"dataMax"},r),o=e.defaults({},r); return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/axis/AxisView",[E,O,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t.coordinateSystem,r=e.axis,a={},s=r[o],u=r.onZero?"onZero":s,l=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[_]],f=e.get("offset")||0,d={x:{top:h[2]-f,bottom:h[3]+f},y:{left:h[0]-f,right:h[1]+f}};d.x.onZero=Math.max(Math.min(i("y"),d.x[x]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[o]=["y"===l?d.y[u]:h[0],"x"===l?d.x[u]:h[3]],a.rotation=Math.PI/2*("x"===l?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],r.onZero&&(a.labelOffset=d[l][s]-d[l].onZero),e[T]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[T]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var m=e[T]("axisLabel").get("rotate");return a.labelRotation="top"===u?-m:m,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(O),n=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,s=r.getInterval,u=["axisLine","axisLabel","axisTick","axisName"],l=["splitArea","splitLine"],c=t("../../echarts").extendComponentView({type:"axis",render:function(t,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var s=a.getComponent("grid",t.get("gridIndex")),c=e(s,t),h=new r(t,c);i.each(u,h.add,h),this._axisGroup.add(h.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,s,c.labelInterval)},this),n.groupTransition(o,this._axisGroup,t)}},_splitLine:function(t,e,r){var o=t.axis,u=t[T]("splitLine"),l=u[T]("lineStyle"),c=l.get("color"),h=s(u,r);c=i[f](c)?c:[c];for(var d=e.coordinateSystem.getRect(),p=o.isHorizontal(),m=0,v=o.getTicksCoords(),g=o.scale.getTicks(),y=[],x=[],b=l.getLineStyle(),w=0;w<v[L];w++)if(!a(o,w,h)){var M=o.toGlobalCoord(v[w]);p?(y[0]=M,y[1]=d.y,x[0]=M,x[1]=d.y+d[_]):(y[0]=d.x,y[1]=M,x[0]=d.x+d.width,x[1]=M);var S=m++%c[L];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+g[w],shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:i.defaults({stroke:c[S]},b),silent:!0})))}},_splitArea:function(t,e,r){var o=t.axis,u=t[T]("splitArea"),l=u[T]("areaStyle"),c=l.get("color"),h=e.coordinateSystem.getRect(),d=o.getTicksCoords(),p=o.scale.getTicks(),m=o.toGlobalCoord(d[0]),v=o.toGlobalCoord(d[0]),g=0,y=s(u,r),x=l.getAreaStyle();c=i[f](c)?c:[c];for(var b=1;b<d[L];b++)if(!a(o,b,y)){var w,M,S,C,A=o.toGlobalCoord(d[b]);o.isHorizontal()?(w=m,M=h.y,S=A-w,C=h[_]):(w=h.x,M=v,S=h.width,C=A-M);var P=g++%c[L];this._axisGroup.add(new n.Rect({anid:"area_"+p[b],shape:{x:w,y:M,width:S,height:C},style:i.defaults({fill:c[P]},x),silent:!0})),m=w+S,v=M+C}}});c[I]({type:"xAxis"}),c[I]({type:"yAxis"})}),e("echarts/component/axis/AxisBuilder",[E,O,"../../util/format","../../util/graphic","../../model/Model","../../util/number",A],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function i(t,e,i){var n,a,o=m(e-t.rotation);return v(o)?(a=i>0?"top":x,n=r):v(o-w)?(a=i>0?x:"top",n=r):(a="middle",n=o>0&&w>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,verticalAlign:a}}function s(t,e,i,n){var a,o,s=m(i-t.rotation),u=n[0]>n[1],l="start"===e&&!u||"start"!==e&&u;return v(s-w/2)?(o=l?x:"top",a=r):v(s-1.5*w)?(o=l?"top":x,a=r):(o="middle",a=1.5*w>s&&s>w/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:a,verticalAlign:o}}function u(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(O),c=t("../../util/format"),f=t("../../util/graphic"),d=t("../../model/Model"),p=t("../../util/number"),m=p.remRadian,v=p.isRadianAroundZero,g=t(A),y=g.applyTransform,_=l.retrieve,w=Math.PI,M=function(t,e){this.opt=e,this.axisModel=t,l.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var i=new f.Group({position:e[o].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};M[D]={constructor:M,hasBuilder:function(t){return!!S[t]},add:function(t){S[t].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[z](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(y(r,r,n),y(a,a,n)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[I]({lineCap:"round"},e[T]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[T]("axisTick"),n=this.opt,r=i[T]("lineStyle"),a=i.get(L),o=P(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale.getTicks(),c=[],h=[],d=this._transform,p=0;p<s[L];p++)if(!C(e,p,o)){var m=s[p];c[0]=m,c[1]=0,h[0]=m,h[1]=n.tickDirection*a,d&&(y(c,c,d),y(h,h,d)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:l.defaults(r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[n]().clone(),r=e&&e[n]().clone();return i&&r?(i.applyTransform(t.getLocalTransform()),r.applyTransform(e.getLocalTransform()),i.intersect(r)):void 0}var r=this.opt,a=this.axisModel,o=_(r.axisLabelShow,a.get("axisLabel.show"));if(o){var s=a.axis,l=a[T]("axisLabel"),c=l[T]("textStyle"),p=l.get("margin"),m=s.scale.getTicks(),v=a.getFormattedLabels(),g=_(r.labelRotation,l.get("rotate"))||0;g=g*w/180;for(var y=i(r,g,r.labelDirection),x=a.get("data"),M=[],S=u(a),A=a.get("triggerEvent"),P=0;P<m[L];P++)if(!C(s,P,r.labelInterval)){var k=c;x&&x[P]&&x[P].textStyle&&(k=new d(x[P].textStyle,c,a.ecModel));var z=k.getTextColor()||a.get("axisLine.lineStyle.color"),I=s.dataToCoord(m[P]),D=[I,r.labelOffset+r.labelDirection*p],O=s.scale.getLabel(m[P]),E=new f.Text({anid:"label_"+m[P],style:{text:v[P],textAlign:k.get("align",!0)||y.textAlign,textVerticalAlign:k.get("baseline",!0)||y.verticalAlign,textFont:k.getFont(),fill:typeof z===h?z(O):z},position:D,rotation:y.rotation,silent:S,z2:10});A&&(E.eventData=e(a),E.eventData.targetType="axisLabel",E.eventData.value=O),this._dumbGroup.add(E),E.updateTransform(),M.push(E),this.group.add(E),E.decomposeTransform()}if("category"!==s.type){if(a.getMin?a.getMin():a.get("min")){var R=M[0],B=M[1];t(R,B)&&(R[b]=!0)}if(a.getMax?a.getMax():a.get("max")){var N=M[M[L]-1],F=M[M[L]-2];t(F,N)&&(N[b]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,r=_(t.axisName,n.get("name"));if(r){var a,o=n.get("nameLocation"),h=t.nameDirection,d=n[T]("nameTextStyle"),p=n.get("nameGap")||0,m=this.axisModel.axis[z](),v=m[0]>m[1]?-1:1,g=["start"===o?m[0]-v*p:"end"===o?m[1]+v*p:(m[0]+m[1])/2,"middle"===o?t.labelOffset+h*p:0],y=n.get("nameRotate");null!=y&&(y=y*w/180);var x;"middle"===o?a=i(t,null!=y?y:t.rotation,h):(a=s(t,o,y||0,m),x=t.axisNameAvailableWidth,null!=x&&(x=Math.abs(x/Math.sin(a.rotation)),!isFinite(x)&&(x=null)));var b=d.getFont(),M=n.get("nameTruncate",!0)||{},S=M.ellipsis,C=_(M.maxWidth,x),A=null!=S&&null!=C?c.truncateText(r,C,b,S,{minChar:2,placeholder:M.placeholder}):r,L=n.get("tooltip",!0),P=n.mainType,k={componentType:P,name:r,$vars:["name"]};k[P+"Index"]=n.componentIndex;var D=new f.Text({anid:"name",__fullText:r,__truncatedText:A,style:{text:A,textFont:b,fill:d.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.verticalAlign},position:g,rotation:a.rotation,silent:u(n),z2:1,tooltip:L&&L.show?l[I]({content:r,formatter:function(){return r},formatterParams:k},L):null});n.get("triggerEvent")&&(D.eventData=e(n),D.eventData.targetType="axisName",D.eventData.name=r),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},C=M.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===a&&(typeof i===h?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},P=M.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return M}),e("echarts/data/DataDiffer",[E],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i,n){for(var r=0;r<t[L];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[L]||(e[a]=o=[o]),o.push(r))}}return e[D]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={},u=[],l=[];for(i(e,o,u,r),i(n,s,l,a),t=0;t<e[L];t++){var c=u[t],h=s[c];if(null!=h){var f=h[L];f?(1===f&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<l[L];t++){var c=l[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[L])for(var d=0,f=h[L];f>d;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("echarts/chart/helper/createListFromArray",[E,"../../data/List","../../data/helper/completeDimensions",O,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[L]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!h[f](m(i))}function n(t,e,n){t=t||[];var r=e.get("coordinateSystem"),a=g[r],o=p.get(r),f=a&&a(t,e,n),y=f&&f.dimensions;y||(y=o&&o.dimensions||["x","y"],y=l(y,t,y.concat(["value"])));var _=f?f.categoryIndex:-1,x=new u(y,e),b=s(f,t),w={},M=_>=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===_?i:v(m(t),y[n])}:function(t,e,i,n){var r=m(t),a=v(r&&r[n],y[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var o=f&&f.categoryAxesModels;return o&&o[e]&&typeof a===S&&(w[e]=w[e]||o[e].getCategories(),a=h[c](w[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x.hasItemOption=!1,x.initData(t,b,M),x}function r(t){return"category"!==t&&"time"!==t}function o(t){return"category"===t?a:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[L];if(h[f](e[0])&&e[0][L]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var u=t("../../data/List"),l=t("../../data/helper/completeDimensions"),h=t(O),d=t("../../util/model"),p=t("../../CoordinateSystem"),m=d.getDataItemValue,v=d.converDataValue,g={cartesian2d:function(t,e,i){var n=i.getComponent("xAxis",e.get("xAxisIndex")),a=i.getComponent("yAxis",e.get("yAxisIndex")),s=n.get("type"),u=a.get("type"),c=[{name:"x",type:o(s),stackable:r(s)},{name:"y",type:o(u),stackable:r(u)}],h="category"===s,f="category"===u;l(c,t,["x","y","z"]);var d={};return h&&(d.x=n),f&&(d.y=a),{dimensions:c,categoryIndex:h?0:f?1:-1,categoryAxesModels:d}},polar:function(t,e,i){var n=e.get("polarIndex")||0,a=function(t){return t.get("polarIndex")===n},s=i.findComponents({mainType:"angleAxis",filter:a})[0],u=i.findComponents({mainType:"radiusAxis",filter:a})[0],c=u.get("type"),h=s.get("type"),f=[{name:"radius",type:o(c),stackable:r(c)},{name:"angle",type:o(h),stackable:r(h)}],d="category"===h,p="category"===c;l(f,t,["radius","angle","value"]);var m={};return p&&(m.radius=u),d&&(m.angle=s),{dimensions:f,categoryIndex:d?1:p?0:-1,categoryAxesModels:m}},geo:function(t){return{dimensions:l([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/data/helper/completeDimensions",[E,O],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),u=n[f](s)&&s[L]||1;a=a||[],o=o||"extra";for(var l=0;u>l;l++)if(!t[l]){var c=a[l]||o+(l-a[L]);t[l]=r(e,l)?{type:"ordinal",name:c}:c}return t}function i(t){return n[f](t)?t:n[g](t)?t.value:t}var n=t(O),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[L];a>r;r++){var o=i(t[r]);if(!n[f](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("echarts/chart/helper/Symbol",[E,O,"../../util/symbol","../../util/graphic","../../util/number"],function(t){function e(t){return t instanceof Array||(t=[+t,+t]),t}function i(t,e,i){c.Group.call(this),this.updateData(t,e,i)}function n(t,e){this.parent.drift(t,e)}var r=t(O),s=t("../../util/symbol"),c=t("../../util/graphic"),h=t("../../util/number"),f=i[D];f._createSymbol=function(t,i,r){this.removeAll();var a=i.hostModel,o=i.getItemVisual(r,"color"),u=s.createSymbol(t,-.5,-.5,1,1,o);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=n;var l=e(i.getItemVisual(r,"symbolSize"));c.initProps(u,{scale:l},a,r),this._symbolType=t,this.add(u)},f.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(t,e){var i=this.childAt(0);i[p]=t,i.z=e},f.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},f.updateData=function(t,i,n){this.silent=!1;var r=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,o=e(t.getItemVisual(i,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,i);else{var s=this.childAt(0);c.updateProps(s,{scale:o},a,i)}this._updateCommon(t,i,o,n),this._seriesModel=a};var d=["itemStyle","normal"],v=["itemStyle","emphasis"],g=["label","normal"],y=["label","emphasis"];return f._updateCommon=function(t,i,n,s){var l=this.childAt(0),f=t.hostModel,p=t.getItemVisual(i,"color");"image"!==l.type&&l.useStyle({strokeNoScale:!0}),s=s||null;var m=s&&s.itemStyle,_=s&&s.hoverItemStyle,x=s&&s.symbolRotate,b=s&&s.symbolOffset,w=s&&s.labelModel,M=s&&s.hoverLabelModel,S=s&&s.hoverAnimation;if(!s||t.hasItemOption){var C=t.getItemModel(i);m=C[T](d).getItemStyle(["color"]),_=C[T](v).getItemStyle(),x=C[u]("symbolRotate"),b=C[u]("symbolOffset"),w=C[T](g),M=C[T](y),S=C[u]("hoverAnimation")}else _=r[I]({},_);var A=l.style;l.rotation=(x||0)*Math.PI/180||0,b&&l.attr(o,[h.parsePercent(b[0],n[0]),h.parsePercent(b[1],n[1])]),l.setColor(p),l.setStyle(m);var P=t.getItemVisual(i,"opacity");null!=P&&(A.opacity=P);for(var k,z,D=t.dimensions.slice();D[L]&&(k=D.pop(),z=t.getDimensionInfo(k).type,z===a||"time"===z););null!=k&&w[u]("show")?(c.setText(A,w,p),A.text=r.retrieve(f.getFormattedLabel(i,"normal"),t.get(k,i))):A.text="",null!=k&&M[u]("show")?(c.setText(_,M,p),_.text=r.retrieve(f.getFormattedLabel(i,"emphasis"),t.get(k,i))):_.text="";var O=e(t.getItemVisual(i,"symbolSize"));if(l.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.setHoverStyle(l,_),S&&f.ifEnableAnimation()){var E=function(){var t=O[1]/O[0];this.animateTo({scale:[Math.max(1.1*O[0],O[0]+3),Math.max(1.1*O[1],O[1]+3*t)]},400,"elasticOut")},R=function(){this.animateTo({scale:O},400,"elasticOut")};l.on("mouseover",E).on("mouseout",R).on("emphasis",E).on("normal",R)}},f.fadeOut=function(t){var e=this.childAt(0);this.silent=!0,e.style.text="",c.updateProps(e,{scale:[0,0]},this._seriesModel,this[m],t)},r[l](i,c.Group),i}),e("echarts/chart/helper/SymbolDraw",[E,"../../util/graphic","./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t.getItemLayout(e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t.getItemVisual(e,"symbol"))}var n=t("../../util/graphic"),r=t("./Symbol"),a=e[D];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,s=this._data,u=this._symbolCtor,l={itemStyle:a[T]("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:a[T]("itemStyle.emphasis").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[T]("label.normal"),hoverLabelModel:a[T]("label.emphasis")};t.diff(s).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var s=new u(t,n,l);s.attr(o,a),t.setItemGraphicEl(n,s),r.add(s)}}).update(function(c,h){var f=s.getItemGraphicEl(h),d=t.getItemLayout(c);return i(t,c,e)?(f?(f.updateData(t,c,l),n.updateProps(f,{position:d},a)):(f=new u(t,c),f.attr(o,d)),r.add(f),void t.setItemGraphicEl(c,f)):void r.remove(f)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&e.fadeOut(function(){r.remove(e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr(o,n)})},a.remove=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},e}),e("echarts/chart/line/lineAnimationDiff",[E],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[z]()[0],u=o.dim,l="x"===u||"radius"===u?1:0,c=i.stackedOn,h=i.get(u,n);c&&t(c.get(u,n))===t(h);){r=c;break}var f=[];return f[l]=i.get(a.dim,n),f[1-l]=r?r.get(u,n,!0):s,e.dataToPoint(f)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var u=i(t,n),l=[],c=[],h=[],f=[],d=[],p=[],m=[],v=s.dimensions,g=0;g<u[L];g++){var y=u[g],_=!0;switch(y.cmd){case"=":var x=t.getItemLayout(y.idx),b=n.getItemLayout(y.idx1);(isNaN(x[0])||isNaN(x[1]))&&(x=b.slice()),l.push(x),c.push(b),h.push(r[y.idx]),f.push(a[y.idx1]),m.push(n.getRawIndex(y.idx1));break;case"+":var w=y.idx;l.push(o.dataToPoint([n.get(v[0],w,!0),n.get(v[1],w,!0)])),c.push(n.getItemLayout(w).slice()),h.push(e(o,n,w)),f.push(a[w]),m.push(n.getRawIndex(w));break;case"-":var w=y.idx,M=t.getRawIndex(w);M!==w?(l.push(t.getItemLayout(w)),c.push(s.dataToPoint([t.get(v[0],w,!0),t.get(v[1],w,!0)])),h.push(r[w]),f.push(e(s,t,w)),m.push(M)):_=!1}_&&(d.push(y),p.push(p[L]))}p.sort(function(t,e){return m[t]-m[e]});for(var T=[],S=[],C=[],A=[],P=[],g=0;g<p[L];g++){var w=p[g];T[g]=l[w],S[g]=c[w],C[g]=h[w],A[g]=f[w],P[g]=d[w]}return{current:T,next:S,stackedOnCurrent:C,stackedOnNext:A,status:P}}}),e("echarts/chart/line/poly",[E,"zrender/graphic/Path",A],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function i(t,i,n,r,d,p,m,v,g,y,_){for(var x=0,b=n,w=0;r>w;w++){var M=i[b];if(b>=d||0>b)break;if(e(M)){if(_){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](M[0],M[1]),l(h,M);else if(g>0){var T=b+p,S=i[T];if(_)for(;S&&e(i[T]);)T+=p,S=i[T];var C=.5,A=i[x],S=i[T];if(!S||e(S))l(f,M);else{e(S)&&!_&&(S=M),a.sub(c,S,A);var L,P;if("x"===y||"y"===y){var k="x"===y?0:1;L=Math.abs(M[k]-A[k]),P=Math.abs(M[k]-S[k])}else L=a.dist(M,A),P=a.dist(M,S);C=P/(P+L),u(f,M,c,-g*(1-C))}o(h,h,v),s(h,h,m),o(f,f,v),s(f,f,m),t.bezierCurveTo(h[0],h[1],f[0],f[1],M[0],M[1]),u(h,M,c,g*C)}else t.lineTo(M[0],M[1]);x=b,b+=p}return w}function n(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[L];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var r=t("zrender/graphic/Path"),a=t(A),o=a.min,s=a.max,u=a.scaleAndAdd,l=a.copy,c=[],h=[],f=[];return{Polyline:r[I]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,r){var a=r.points,o=0,s=a[L],u=n(a,r.smoothConstraint);if(r.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=i(t,a,o,s,s,1,u.min,u.max,r.smooth,r.smoothMonotone,r.connectNulls)+1}}),Polygon:r[I]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,r){var a=r.points,o=r.stackedOnPoints,s=0,u=a[L],l=r.smoothMonotone,c=n(a,r.smoothConstraint),h=n(o,r.smoothConstraint);if(r.connectNulls){for(;u>0&&e(a[u-1]);u--);for(;u>s&&e(a[s]);s++);}for(;u>s;){var f=i(t,a,s,u,u,1,c.min,c.max,r.smooth,l,r.connectNulls);i(t,o,s+f-1,f,u,-1,h.min,h.max,r.stackedOnSmooth,l,r.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/util/symbol",[E,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),i=t("zrender/core/BoundingRect"),n=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[_]/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),a=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[_]/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),o=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[_]),o=r/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),c=Math.cos(l)*o,h=Math.sin(l),f=Math.cos(l);t.arc(i,u,o,Math.PI-l,2*Math.PI+l);var d=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*d,u+s+f*d,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*d,u+s+f*d,i-c,u+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[_],n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),u={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:o,arrow:s,triangle:n},l={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[_]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[_]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[_]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[_]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[_]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[_]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[_]=n}},h={};for(var f in u)h[f]=new u[f];var d=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign=r,t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,r=h[n];"none"!==e.symbolType&&(r||(n="rect",r=h[n]),l[n](e.x,e.y,e.width,e[_],r.shape),r.buildPath(t,r.shape,i))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},m={createSymbol:function(t,n,r,a,o,s){var u=0===t[c]("empty");u&&(t=t.substr(5,1)[C]()+t.substr(6));var l;return l=0===t[c]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[c]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new d({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),l.__isEmptyBrush=u,l.setColor=p,l.setColor(s),l}};return m}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var R=t("echarts");return R.graphic=t("echarts/util/graphic"),R.number=t("echarts/util/number"),R.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/component/grid"),R}); }function r(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var a=t(ie),h=t("../../util/format"),p=t("../../util/graphic"),v=t("../../model/Model"),m=t("../../util/number"),_=m.remRadian,b=m.isRadianAroundZero,w=t("zrender/core/vector"),T=w[u],S=a[l],P=Math.PI,A=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 p.Group;var i=new p.Group({position:e[y].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i[o],this._dumbGroup=i};A[K]={constructor:A,hasBuilder:function(t){return!!L[t]},add:function(t){L[t].call(this)},getGroup:function(){return this.group}};var L={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[M](),n=this._transform,r=[i[0],0],o=[i[1],0];n&&(T(r,r,n),T(o,o,n)),this.group.add(new p.Line(p.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:a[I]({lineCap:"round"},e[U]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[U]("axisTick"),n=this.opt,r=i[U]("lineStyle"),o=i.get(G),s=k(i,n.labelInterval),l=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale.getTicks(),c=[],h=[],f=this._transform,d=0;d<l[G];d++)if(!z(e,d,s)){var v=l[d];c[0]=v,c[1]=0,h[0]=v,h[1]=n.tickDirection*o,f&&(T(c,c,f),T(h,h,f)),this.group.add(new p.Line(p.subPixelOptimizeLine({anid:"tick_"+u[d],shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:a.defaults(r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[c]().clone(),n=e&&e[c]().clone();return i&&n?(i[u](t.getLocalTransform()),n[u](e.getLocalTransform()),i.intersect(n)):void 0}var n=this.opt,a=this.axisModel,o=S(n.axisLabelShow,a.get("axisLabel.show"));if(o){var l=a.axis,h=a[U]("axisLabel"),d=h[U](f),m=h.get("margin"),g=l.scale.getTicks(),y=a.getFormattedLabels(),_=S(n.labelRotation,h.get("rotate"))||0;_=_*P/180;for(var x=i(n,_,n.labelDirection),b=a.get("data"),w=[],M=r(a),T=a.get("triggerEvent"),A=0;A<g[G];A++)if(!z(l,A,n.labelInterval)){var L=d;b&&b[A]&&b[A][f]&&(L=new v(b[A][f],d,a[s]));var k=L.getTextColor()||a.get("axisLine.lineStyle.color"),I=l.dataToCoord(g[A]),D=[I,n.labelOffset+n.labelDirection*m],O=l.scale.getLabel(g[A]),E=new p.Text({anid:"label_"+g[A],style:{text:y[A],textAlign:L.get("align",!0)||x.textAlign,textVerticalAlign:L.get("baseline",!0)||x.verticalAlign,textFont:L.getFont(),fill:typeof k===C?k(O):k},position:D,rotation:x.rotation,silent:M,z2:10});T&&(E.eventData=e(a),E.eventData.targetType="axisLabel",E.eventData.value=O),this._dumbGroup.add(E),E.updateTransform(),w.push(E),this.group.add(E),E.decomposeTransform()}if("category"!==l.type){if(a.getMin?a.getMin():a.get("min")){var R=w[0],B=w[1];t(R,B)&&(R[H]=!0)}if(a.getMax?a.getMax():a.get("max")){var N=w[w[G]-1],F=w[w[G]-2];t(F,N)&&(N[H]=!0)}}}},axisName:function(){var t=this.opt,o=this.axisModel,s=S(t.axisName,o.get("name"));if(s){var l,u=o.get("nameLocation"),c=t.nameDirection,f=o[U]("nameTextStyle"),d=o.get("nameGap")||0,v=this.axisModel.axis[M](),m=v[0]>v[1]?-1:1,g=["start"===u?v[0]-m*d:"end"===u?v[1]+m*d:(v[0]+v[1])/2,u===x?t.labelOffset+c*d:0],y=o.get("nameRotate");null!=y&&(y=y*P/180);var _;u===x?l=i(t,null!=y?y:t.rotation,c):(l=n(t,u,y||0,v),_=t.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(l.rotation)),!isFinite(_)&&(_=null)));var b=f.getFont(),w=o.get("nameTruncate",!0)||{},T=w.ellipsis,C=S(w.maxWidth,_),A=null!=T&&null!=C?h.truncateText(s,C,b,T,{minChar:2,placeholder:w.placeholder}):s,L=o.get("tooltip",!0),z=o.mainType,k={componentType:z,name:s,$vars:["name"]};k[z+"Index"]=o.componentIndex;var D=new p.Text({anid:"name",__fullText:s,__truncatedText:A,style:{text:A,textFont:b,fill:f.getTextColor()||o.get("axisLine.lineStyle.color"),textAlign:l.textAlign,textVerticalAlign:l.verticalAlign},position:g,rotation:l.rotation,silent:r(o),z2:1,tooltip:L&&L.show?a[I]({content:s,formatter:function(){return s},formatterParams:k},L):null});o.get("triggerEvent")&&(D.eventData=e(o),D.eventData.targetType="axisName",D.eventData.name=s),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},z=A.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===g&&(typeof i===C?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},k=A.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return A}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var re=t("echarts");return re.graphic=t("echarts/util/graphic"),re.number=t("echarts/util/number"),re.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/chart/gauge"),t("echarts/component/grid"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("zrender/vml/vml"),re}); <MSG> Upgrade dependency library. <DFF> @@ -1,7 +1,8 @@ -!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var u=0;a>u;u++)switch(n[u]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],u=o[r],l=0,c=Math.min(e.length,n.length);c>l;l++){var h,f=i(e[l],r);switch(f){case"require":h=u&&u.require||t;break;case"exports":h=u.exports;break;case"module":h=u;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 i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="undefined",n="getBoundingRect",r="center",a="ordinal",o="position",s="animation",u="getShallow",l="inherits",c="indexOf",h="function",f="isArray",d="replace",p="zlevel",m="dataIndex",v="splice",g="isObject",y="getData",_="height",x="bottom",b="ignore",w="getHeight",M="getWidth",T="getModel",S="string",C="toLowerCase",A="zrender/core/vector",L="length",P="create",k="contain",z="getExtent",I="extend",D="prototype",O="zrender/core/util",E="require";e("echarts/chart/line",[E,O,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(O),i=t("../echarts"),n=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(n.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/component/grid",[E,"../util/graphic",O,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(O);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:i.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/scale/Log",[E,O,"./Scale","../util/number","./Interval"],function(t){var e=t(O),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[D],o=r[D],s=Math.floor,u=Math.ceil,l=Math.pow,c=10,h=Math.log,f=i[I]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(l(c,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),l(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[z].call(this);return t[0]=l(c,t[0]),t[1]=l(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=l(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(u(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([k,"normalize"],function(t){f[D][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),f[P]=function(){return new f},f}),e("echarts/scale/Time",[E,O,"../util/number","../util/format","./Interval"],function(t){var e=t(O),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[D],o=Math.ceil,s=Math.floor,u=1e3,l=60*u,c=60*l,h=24*c,f=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},d=r[I]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=h,r[1]+=h),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]-h}this.niceTicks(t);var u=this._interval;e||(r[0]=i.round(s(r[0]/u)*u)),n||(r[1]=i.round(o(r[1]/u)*u))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0],r=n/t,a=p[L],u=f(p,r,0,a),l=p[Math.min(u,a-1)],c=l[2];if("year"===l[0]){var h=n/c,d=i.nice(h/t,!0);c*=d}var m=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=l,this._interval=c,this._niceExtent=m},parse:function(t){return+i.parseDate(t)}});e.each([k,"normalize"],function(t){d[D][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,u],["hh:mm:ss",5,5*u],["hh:mm:ss",10,10*u],["hh:mm:ss",15,15*u],["hh:mm:ss",30,30*u],["hh:mm\nMM-dd",1,l],["hh:mm\nMM-dd",5,5*l],["hh:mm\nMM-dd",10,10*l],["hh:mm\nMM-dd",15,15*l],["hh:mm\nMM-dd",30,30*l],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[P]=function(){return new d},d}),e("echarts/echarts",[E,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",O,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",A],function(t){function e(t){return function(e,i,n){e=e&&e[C](),J[D][t].call(this,e,i,n)}}function i(){J.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===S&&(e=xe[e]),this.id,this.group,this._dom=t,this._zr=$.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=Q.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new q(this),this._coordSysMgr=new H,J.call(this),this._messageCenter=new i,this._initEvents(),this.resize=Q.bind(this.resize,this),this._pendingActions=[],te(_e,r),te(ge,r)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;ee(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),N(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),N(r,a),B(r,a)},this),R(this._zr,e)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[L];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,u=r[s];if(!u){var l=Z.parseClassType(o.type),c=i?j.getClass(l.main,l.sub):X.getClass(l.sub);if(!c)return;u=new c,u.init(e,this._api),r[s]=u,n.push(u),a.add(u.group)}o.__viewId=s,u.__alive=!0,u.__id=s,u.__model=o},this);for(var o=0;o<n[L];){var s=n[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),n[v](o,1),delete r[s.__id])}}function s(t,e){ee(ge,function(i){i.func(t,e)})}function u(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[y]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function k(t,e){var i=this._api;ee(_e,function(n){n.isLayout&&n.func(t,i,e)})}function z(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),ee(_e,function(n){n.func(t,i,e)})}function E(t,e){var i=this._api;ee(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),N(r,n)},this),ee(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),r.group.silent=!!n.get("silent"),N(n,r),B(n,r)},this),R(this._zr,t),ee(this._chartsViews,function(e){e.__alive||e.remove(t,i)},this)}function R(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!G.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function B(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[b]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!G.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",a)})}function N(t,e){var i=t.get("z"),n=t.get(p);e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[p]=n))})}function F(t){function e(t,e){for(var i=0;i<t[L];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";Q.each(ve,function(o,s){t._messageCenter.on(s,function(o){if(we[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),u=[];for(var l in be){var c=be[l];c!==t&&c.group===t.group&&u.push(c)}e(u,i),ee(u,function(t){t[a]!==n&&t.dispatchAction(s)}),e(u,r)}})})}var G=t("zrender/core/env"),V=t("./model/Global"),q=t("./ExtensionAPI"),H=t("./CoordinateSystem"),W=t("./model/OptionManager"),Z=t("./model/Component"),U=t("./model/Series"),j=t("./view/Component"),X=t("./view/Chart"),Y=t("./util/graphic"),$=t("zrender"),Q=t(O),K=t("zrender/tool/color"),J=t("zrender/mixin/Eventful"),te=t("zrender/core/timsort"),ee=Q.each,ie=1e3,ne=5e3,re=1e3,ae=2e3,oe=3e3,se=4e3,ue=5e3,le="__flag_in_main_process",ce="_hasGradientOrPatternBg";i[D].on=e("on"),i[D].off=e("off"),i[D].one=e("one"),Q.mixin(i,J);var he=n[D];he.getDom=function(){return this._dom},he.getZr=function(){return this._zr},he.setOption=function(t,e,i){if(this[le]=!0,!this._model||e){var n=new W(this._api),r=this._theme,a=this._model=new V(null,null,r,n);a.init(null,null,r,n)}this._model.setOption(t,ye),fe.prepareAndUpdate.call(this),this[le]=!1,this._flushPendingActions(),!i&&this._zr.refreshImmediately()},he.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},he[T]=function(){return this._model},he.getOption=function(){return this._model.getOption()},he[M]=function(){return this._zr[M]()},he[w]=function(){return this._zr[w]()},he.getRenderedCanvas=function(t){if(G.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return Q.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},he.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;ee(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[b]||(n.push(e),e.group[b]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ee(n,function(t){t.group[b]=!1}),a},he.getConnectedDataURL=function(t){if(G.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(we[e]){var a=r,o=r,s=-r,u=-r,l=[],c=t&&t.pixelRatio||1;for(var h in be){var f=be[h];if(f.group===e){var d=f.getRenderedCanvas(Q.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),u=n(p[x],u),l.push({dom:d,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,u*=c;var m=s-a,v=u-o,g=Q.createCanvas();g.width=m,g[_]=v;var y=$.init(g);return ee(l,function(t){var e=new Y.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var fe={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[P](this._model,this._api),s.call(this,e,i),u.call(this,e),n.update(e,i),z.call(this,e,t),E.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!G.canvasSupported){var l=K.parse(a);a=K.stringify(l,"rgb"),0===l[3]&&(a="transparent")}a.colorStops||a.image?(r.configLayer(0,{clearColor:a}),this[ce]=!0,this._dom.style.background="transparent"):(this[ce]&&r.configLayer(0,{clearColor:null}),this[ce]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[y]().clearAllVisual()}),z.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[y]().clearAllVisual()}),z.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(k.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),fe.update.call(this,t)}};he.resize=function(){this[le]=!0,this._zr.resize();var t=this._model&&this._model.resetOption("media");fe[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[le]=!1,this._flushPendingActions()};var de=t("./loading/default");he.showLoading=function(t,e){Q[g](t)&&(e=t,t="default"),this.hideLoading();var i=de(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},he.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},he.makeActionFromEvent=function(t){var e=Q[I]({},t);return e.type=ve[t.type],e},he.dispatchAction=function(t,e){var i=me[t.type];if(i){var n=i.actionInfo,r=n.update||"update";if(this[le])return void this._pendingActions.push(t);this[le]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=Q.map(t.batch,function(e){return e=Q.defaults(Q[I]({},e),t),e.batch=null,e}));for(var s,u=[],l="highlight"===t.type||"downplay"===t.type,c=0;c<a[L];c++){var h=a[c];s=i.action(h,this._model),s=s||Q[I]({},h),s.type=n.event||s.type,u.push(s),l&&fe[r].call(this,h)}"none"!==r&&!l&&fe[r].call(this,t),s=o?{type:n.event||t.type,batch:u}:u[0],this[le]=!1,!e&&this._messageCenter.trigger(s.type,s),this._flushPendingActions()}},he._flushPendingActions=function(){for(var t=this._pendingActions;t[L];){var e=t.shift();this.dispatchAction(e)}},he.on=e("on"),he.off=e("off"),he.one=e("one");var pe=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];he._initEvents=function(){ee(pe,function(t){this._zr.on(t,function(e){var i=this[T](),n=e.target;if(n&&null!=n[m]){var r=n.dataModel||i.getSeriesByIndex(n.seriesIndex),a=r&&r.getDataParams(n[m],n.dataType)||{};a.event=e,a.type=t,this.trigger(t,a)}else n&&n.eventData&&this.trigger(t,n.eventData)},this)},this),ee(ve,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},he.isDisposed=function(){return this._disposed},he.clear=function(){this.setOption({},!0)},he.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;ee(this._componentsViews,function(i){i.dispose(e,t)}),ee(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete be[this.id]}},Q.mixin(n,J);var me=[],ve={},ge=[],ye=[],_e=[],xe={},be={},we={},Me=new Date-0,Te=new Date-0,Se="_echarts_instance_",Ce={version:"3.2.2",dependencies:{zrender:"3.1.2"}};Ce.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Me++,be[r.id]=r,t.setAttribute&&t.setAttribute(Se,r.id),F(r),r},Ce.connect=function(t){if(Q[f](t)){var e=t;t=null,Q.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Te++,Q.each(e,function(e){e.group=t})}return we[t]=!0,t},Ce.disConnect=function(t){we[t]=!1},Ce.dispose=function(t){Q.isDom(t)?t=Ce.getInstanceByDom(t):typeof t===S&&(t=be[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Ce.getInstanceByDom=function(t){var e=t.getAttribute(Se);return be[e]},Ce.getInstanceById=function(t){return be[t]},Ce.registerTheme=function(t,e){xe[t]=e},Ce.registerPreprocessor=function(t){ye.push(t)},Ce.registerProcessor=function(t,e){typeof t===h&&(e=t,t=ie),ge.push({prio:t,func:e})},Ce.registerAction=function(t,e,i){typeof e===h&&(i=e,e="");var n=Q[g](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[C](),e=t.event,me[n]||(me[n]={action:i,actionInfo:t}),ve[e]=n},Ce.registerCoordinateSystem=function(t,e){H.register(t,e)},Ce.registerLayout=function(t,e){typeof t===h&&(e=t,t=re),_e.push({prio:t,func:e,isLayout:!0})},Ce.registerVisual=function(t,e){typeof t===h&&(e=t,t=oe),_e.push({prio:t,func:e})};var Ae=Z.parseClassType;return Ce.extendComponentModel=function(t,e){var i=Z;if(e){var n=Ae(e);i=Z.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendComponentView=function(t,e){var i=j;if(e){var n=Ae(e);i=j.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendSeriesModel=function(t,e){var i=U;if(e){e="series."+e[d]("series.","");var n=Ae(e);i=U.getClass(n.main,n.sub,!0)}return i[I](t)},Ce.extendChartView=function(t,e){var i=X;if(e){e[d]("series.","");var n=Ae(e);i=X.getClass(n.main,!0)}return X[I](t)},Ce.setCanvasCreator=function(t){Q.createCanvas=t},Ce.registerVisual(ae,t("./visual/seriesColor")),Ce.registerPreprocessor(t("./preprocessor/backwardCompat")),Ce.registerAction({type:"highlight",event:"highlight",update:"highlight"},Q.noop),Ce.registerAction({type:"downplay",event:"downplay",update:"downplay"},Q.noop),Ce.List=t("./data/List"),Ce.Model=t("./model/Model"),Ce.graphic=t("./util/graphic"),Ce.number=t("./util/number"),Ce.format=t("./util/format"),Ce.matrix=t("zrender/core/matrix"),Ce.vector=t(A),Ce.color=t("zrender/tool/color"),Ce.util={},ee(["map","each","filter",c,l,"reduce","filter","bind","curry",f,"isString",g,"isFunction",I,"defaults"],function(t){Ce.util[t]=Q[t]}),Ce.PRIORITY={PROCESSOR:{FILTER:ie,STATISTIC:ne},VISUAL:{LAYOUT:re,GLOBAL:ae,CHART:oe,COMPONENT:se,BRUSH:ue}},Ce}),e("echarts/visual/symbol",[E],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[y](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===h&&r.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r.getItemModel(t),i=e[u]("symbol",!0),n=e[u]("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/chart/line/LineSeries",[E,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[I]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e(O,[E],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var n=0,r=e[L];r>n;n++)i[n]=t(e[n])}else if(!T(e)&&!C(e)){i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=t(e[a]))}return i}return e}function e(i,n,r){if(!M(n)||!M(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!M(s)||!M(o)||x(s)||x(o)||C(s)||C(o)||T(s)||T(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[L];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document.createElement("canvas")}function o(){return z||(z=V.createCanvas().getContext("2d")),z}function s(t,e){if(t){if(t[c])return t[c](e);for(var i=0,n=t[L];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[D];i[D]=e[D],t[D]=new i;for(var r in n)t[D][r]=n[r];t[D].constructor=t,t.superClass=e}function l(t,e,i){t=D in t?t[D]:t,e=D in e?e[D]:e,r(t,e,i)}function f(t){return t?typeof t==S?!1:"number"==typeof t[L]:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[L]===+t[L])for(var n=0,r=t[L];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===F)return t.map(e,i);for(var n=[],r=0,a=t[L];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function m(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===G)return t.reduce(e,i,n);for(var r=0,a=t[L];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t.filter&&t.filter===B)return t.filter(e,i);for(var n=[],r=0,a=t[L];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function g(t,e,i){if(t&&e)for(var n=0,r=t[L];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=N.call(arguments,2);return function(){return t.apply(e,i.concat(N.call(arguments)))}}function _(t){var e=N.call(arguments,1);return function(){return t.apply(this,e.concat(N.call(arguments)))}}function x(t){return"[object Array]"===O.call(t)}function b(t){return typeof t===h}function w(t){return"[object String]"===O.call(t)}function M(t){var e=typeof t;return e===h||!!t&&"object"==e}function T(t){return!!I[O.call(t)]}function C(t){return t&&1===t.nodeType&&typeof t.nodeName==S}function A(){for(var t=0,e=arguments[L];e>t;t++)if(null!=arguments[t])return arguments[t]}function P(){return Function.call.apply(N,arguments)}function k(t,e){if(!t)throw new Error(e)}var z,I={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},O=Object[D].toString,E=Array[D],R=E.forEach,B=E.filter,N=E.slice,F=E.map,G=E.reduce,V={inherits:u,mixin:l,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:P,find:g,isArrayLike:f,each:d,map:p,reduce:m,filter:v,bind:y,curry:_,isArray:x,isString:w,isObject:M,isFunction:b,isBuildInObject:T,isDom:C,retrieve:A,assert:k,noop:function(){}};return V}),e("echarts/layout/points",[E],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[y](),i=t.coordinateSystem;if(i){var n=i.dimensions;"singleAxis"===i.type?e.each(n[0],function(t,n){e.setItemLayout(n,isNaN(t)?[0/0,0/0]:i.dataToPoint(t))}):e.each(n,function(t,n,r){e.setItemLayout(r,isNaN(t)||isNaN(n)?[0/0,0/0]:i.dataToPoint([t,n]))},!0)}})}}),e("echarts/chart/line/LineView",[E,O,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff","../../util/graphic","./poly","../../view/Chart"],function(t){function e(t,e){if(t[L]===e[L]){for(var i=0;i<t[L];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function u(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[z]()[0],o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(n,u){for(var l,c=e.stackedOn;c&&r(c.get(o,u))===r(n);){l=c;break}var h=[];return h[s]=e.get(i.dim,u),h[1-s]=l?l.get(o,u,!0):a,t.dataToPoint(h)},!0)}function l(t,e){return null!=e[m]?e[m]:null!=e.name?t.indexOfName(e.name):void 0}function c(t,e,i){var r=n(t.getAxis("x")),a=n(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),u=Math.min(a[0],a[1]),l=Math.max(r[0],r[1])-s,c=Math.max(a[0],a[1])-u,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(l,c);o?(u-=f,c+=2*f):(s-=f,l+=2*f);var d=new C.Rect({shape:{x:s,y:u,width:l,height:c}});return e&&(d.shape[o?"width":_]=0,C.initProps(d,{shape:{width:l,height:c}},i)),d}function h(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[z](),o=n[z](),s=Math.PI/180,u=new C.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(u.shape.endAngle=-o[0]*s,C.initProps(u,{shape:{endAngle:-o[1]*s}},i)),u}function f(t,e,i){return"polar"===t.type?h(t,e,i):c(t,e,i)}function d(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,a=[],o=0;o<t[L]-1;o++){var s=t[o+1],u=t[o];a.push(u);var l=[];switch(i){case"end":l[r]=s[r],l[1-r]=u[1-r],a.push(l);break;case"middle":var c=(u[r]+s[r])/2,h=[];l[r]=h[r]=c,l[1-r]=u[1-r],h[1-r]=s[1-r],a.push(l),a.push(h);break;default:l[r]=u[r],l[1-r]=s[1-r],a.push(l)}}return t[o]&&a.push(t[o]),a}function v(t,e){return Math.max(Math.min(t,e[1]),e[0])}function g(t,e){var i=t.getVisual("visualMeta");if(i&&i[L]){for(var n,r=i[L]-1;r>=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,o=t.dimensions[a],s=t.getDataExtent(o),u=n.stops,l=[];u[0].interval&&u.sort(function(t,e){return t.interval[0]-e.interval[0]});var c=u[0],h=u[u[L]-1],f=c.interval?v(c.interval[0],s):c.value,d=h.interval?v(h.interval[1],s):h.value,p=d-f;if(0===p)return t.getItemVisual(0,"color");for(var r=0;r<u[L];r++)if(u[r].interval){if(u[r].interval[1]===u[r].interval[0])continue;l.push({offset:(v(u[r].interval[0],s)-f)/p,color:u[r].color},{offset:(v(u[r].interval[1],s)-f)/p,color:u[r].color})}else l.push({offset:(u[r].value-f)/p,color:u[r].color});var m=new C.LinearGradient(0,0,0,0,l,!0),g=e.getAxis(o),y=Math.round(g.toGlobalCoord(g.dataToCoord(f))),_=Math.round(g.toGlobalCoord(g.dataToCoord(d)));return m[o]=y,m[o+"2"]=_,m}}}var x=t(O),w=t("../helper/SymbolDraw"),M=t("../helper/Symbol"),S=t("./lineAnimationDiff"),C=t("../../util/graphic"),A=t("./poly"),P=t("../../view/Chart");return P[I]({type:"line",init:function(){var t=new C.Group,e=new w;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t.coordinateSystem,o=this.group,l=t[y](),c=t[T]("lineStyle.normal"),h=t[T]("areaStyle.normal"),p=l.mapArray(l.getItemLayout,!0),m="polar"===a.type,v=this._coordSys,_=this._symbolDraw,b=this._polyline,w=this._polygon,M=this._lineGroup,S=t.get(s),C=!h.isEmpty(),A=u(a,l),L=t.get("showSymbol"),P=L&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,a),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),L||_.remove(),o.add(M);var z=!m&&t.get("step");b&&v.type===a.type&&z===this._step?(C&&!w?w=this._newPolygon(p,A,a,S):w&&!C&&(M.remove(w),w=this._polygon=null),M.setClipPath(f(a,!1,t)),L&&_.updateData(l,P),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,A)&&e(this._points,p)||(S?this._updateAnimation(l,A,a,r,z):(b.setShape({points:p}),w&&w.setShape({points:p,stackedOnPoints:A})))):(L&&_.updateData(l,P),z&&(p=d(p,a,z),A=d(A,a,z)),b=this._newPolyline(p,a,S),C&&(w=this._newPolygon(p,A,a,S)),M.setClipPath(f(a,!0,t)));var I=g(l,a)||l.getVisual("color");b.useStyle(x.defaults(c.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var D=t.get("smooth");if(D=i(t.get("smooth")),b.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),w){var O=l.stackedOn,E=0;if(w.useStyle(x.defaults(h.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),O){var R=O.hostModel;E=i(R.get("smooth"))}w.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=p,this._step=z},highlight:function(t,e,i,n){var r=t[y](),a=l(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var u=r.getItemLayout(a);s=new M(r,a),s[o]=u,s.setZ(t.get(p),t.get("z")),s[b]=isNaN(u[0])||isNaN(u[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else P[D].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[y](),a=l(r,n);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else P[D].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new A.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new A.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(a)[0];return i&&i.isLabelIgnored?x.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,s=this._polygon,u=t.hostModel,l=S(this._data,t,this._stackedOnPoints,e,this._coordSys,i),c=l.current,h=l.stackedOnCurrent,f=l.next,p=l.stackedOnNext;r&&(c=d(l.current,i,r),h=d(l.stackedOnCurrent,i,r),f=d(l.next,i,r),p=d(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=c,C.updateProps(a,{shape:{points:f}},u),s&&(s.setShape({points:c,stackedOnPoints:h}),C.updateProps(s,{shape:{points:f,stackedOnPoints:p,__points:l.next}},u));for(var m=[],v=l.status,g=0;g<v[L];g++){var y=v[g].cmd;if("="===y){var _=t.getItemGraphicEl(v[g].idx1);_&&m.push({el:_,ptIdx:g})}}a.animators&&a.animators[L]&&a.animators[0].during(function(){for(var t=0;t<m[L];t++){var e=m[t].el;e.attr(o,a.shape.__points[m[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[L];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[L];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[L];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[L];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[L]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[y](),r=i.get("sampling"),a=i.coordinateSystem;if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),u=o[z](),l=u[1]-u[0],c=Math.round(n.count()/l);if(c>1){var f;typeof r===S?f=t[r]:typeof r===h&&(f=r),f&&(n=n.downSample(s.dim,1/c,f,e),i.setData(n))}}},this)}}),e("echarts/component/axis",[E,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/scale/Scale",[E,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),n=e[D];return n.parse=function(t){return t},n[k]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[z]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[L];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/coord/cartesian/Grid",[E,"exports","../../util/layout","../../coord/axisHelper",O,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i.getComponent("grid",t.get("gridIndex"))===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[L];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function r(t,e){var i=t[z](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var s=t("../../util/layout"),u=t("../../coord/axisHelper"),l=t(O),c=t("./Cartesian2D"),h=t("./Axis2D"),f=l.each,d=u.ifAxisCrossZero,p=u.niceScaleExtent; -t("./GridModel");var m=n[D];return m.type="grid",m.getRect=function(){return this._rect},m.update=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&("category"===r.type||!d(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),f(n.x,function(t){p(t,t.model)}),f(n.y,function(t){p(t,t.model)}),f(n.x,function(t){i("y")&&(t.onZero=!1)}),f(n.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},m.resize=function(t,e){function n(){f(u,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a[_]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?a.x:a.y)})}var a=s.getLayoutRect(t.getBoxLayoutParams(),{width:e[M](),height:e[w]()});this._rect=a;var u=this._axesList;n(),t.get("containLabel")&&(f(u,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?_:"width",r=t.model.get("axisLabel.margin");a[n]-=e[n]+r,"top"===t[o]?a.y+=e[_]+r:"left"===t[o]&&(a.x+=e.width+r)}}}),n())},m.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},m.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[L];n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},m._initCartesian=function(t,i){function n(n){return function(l,c){if(e(l,t,i)){var f=l.get(o);"x"===n?"top"!==f&&f!==x&&(f=x,r[f]&&(f="top"===f?x:"top")):"left"!==f&&"right"!==f&&(f="left",r[f]&&(f="left"===f?"right":"left")),r[f]=!0;var d=new h(n,u.createScaleByModel(l),[0,0],l.get("type"),f),p="category"===d.type;d.onBand=p&&l.get("boundaryGap"),d.inverse=l.get("inverse"),d.onZero=l.get("axisLine.onZero"),l.axis=d,d.model=l,d.grid=this,d.index=c,this._axesList.push(d),a[n][c]=d,s[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return i.eachComponent("xAxis",n("x"),this),i.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void f(a.x,function(t,e){f(a.y,function(i,n){var r="x"+e+"y"+n,a=new c(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},m._updateScale=function(t,i){function n(t,e,i){f(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==a))})}l.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if("cartesian2d"===r.get("coordinateSystem")){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t.getComponent("xAxis",a),u=t.getComponent("yAxis",o);if(!e(s,i,t)||!e(u,i,t))return;var l=this.getCartesian(a,o),c=r[y](),h=l.getAxis("x"),f=l.getAxis("y");"list"===c.type&&(n(c,h,r),n(c,f,r))}},this)},n[P]=function(t,e){var i=[];return t.eachComponent("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o.resize(r,e),r.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get("coordinateSystem")){var n=e.get("xAxisIndex"),r=e.get("yAxisIndex"),a=t.getComponent("xAxis",n),o=i[a.get("gridIndex")];e.coordinateSystem=o.getCartesian(n,r)}}),i},n.dimensions=c[D].dimensions,t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/util/number",[E],function(){function t(t){return t[d](/^\s+/,"")[d](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case r:case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case x:e="100%"}return typeof e===S?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(10)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===S?new Date(t[d](/-/g,"/"))-new Date("1970/01/01"):Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?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/Interval",[E,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[I]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[D].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[L]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[L];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this._extent,n=i[1]-i[0];if(isFinite(n)){0>n&&(n=-n,i.reverse());var o=e.nice(n/t,!0),s=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0];n?o[0]-=s/2:(o[1]+=s/2,o[0]-=s/2)}else o[1]=1;var u=o[1]-o[0];isFinite(u)||(o[0]=0,o[1]=1),this.niceTicks(t);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[P]=function(){return new o},o}),e("echarts/util/graphic",[E,O,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",A,"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/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===S?z.lift(t,-.1):t}function a(t){if(t.__hoverStlDirty){var n=t.style.stroke,r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a.stroke=a.stroke||(e(n)?i(n):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function l(t){t.__isHover||(a(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function f(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function d(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&l(t)}):l(t)}function p(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&f(t)}):f(t)}function v(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&a(t)}function g(){!this.__isEmphasis&&d(this)}function y(){!this.__isEmphasis&&p(this)}function b(){this.__isEmphasis=!0,d(this)}function w(){this.__isEmphasis=!1,p(this)}function M(t,e,i,n,r,a){typeof r===h&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[u](s));if(o){var l=t?"Update":"",c=n&&n[u]("animationDuration"+l),f=n&&n[u]("animationEasing"+l),d=n&&n[u]("animationDelay"+l);typeof d===h&&(d=d(r)),c>0?e.animateTo(i,c,d||0,f,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var C=t(O),L=t("zrender/tool/path"),P=Math.round,k=t("zrender/graphic/Path"),z=t("zrender/tool/color"),D=t("zrender/core/matrix"),E=t(A),R=(t("zrender/graphic/Gradient"),{});return R.Group=t("zrender/container/Group"),R.Image=t("zrender/graphic/Image"),R.Text=t("zrender/graphic/Text"),R.Circle=t("zrender/graphic/shape/Circle"),R.Sector=t("zrender/graphic/shape/Sector"),R.Ring=t("zrender/graphic/shape/Ring"),R.Polygon=t("zrender/graphic/shape/Polygon"),R.Polyline=t("zrender/graphic/shape/Polyline"),R.Rect=t("zrender/graphic/shape/Rect"),R.Line=t("zrender/graphic/shape/Line"),R.BezierCurve=t("zrender/graphic/shape/BezierCurve"),R.Arc=t("zrender/graphic/shape/Arc"),R.CompoundPath=t("zrender/graphic/CompoundPath"),R.LinearGradient=t("zrender/graphic/LinearGradient"),R.RadialGradient=t("zrender/graphic/RadialGradient"),R.BoundingRect=t("zrender/core/BoundingRect"),R.extendShape=function(t){return k[I](t)},R.extendPath=function(t,e){return L.extendFromString(t,e)},R.makePath=function(t,e,i,a){var o=L.createFromString(t,e),s=o[n]();if(i){var u=s.width/s[_];if(a===r){var l,c=i[_]*u;c<=i.width?l=i[_]:(c=i.width,l=c/u);var h=i.x+i.width/2,f=i.y+i[_]/2;i.x=h-c/2,i.y=f-l/2,i.width=c,i[_]=l}this.resizePath(o,i)}return o},R.mergePath=L.mergePath,R.resizePath=function(t,e){if(t.applyTransform){var i=t[n](),r=i.calculateTransform(e);t.applyTransform(r)}},R.subPixelOptimizeLine=function(t){var e=R.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return P(2*i.x1)===P(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),P(2*i.y1)===P(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},R.subPixelOptimizeRect=function(t){var e=R.subPixelOptimize,i=t.shape,n=t.style.lineWidth,r=i.x,a=i.y,o=i.width,s=i[_];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[_]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},R.subPixelOptimize=function(t,e,i){var n=P(2*t);return(n+P(e))%2===0?n/2:(n+(i?1:-1))/2},R.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&v(t,e)}):v(t,e),t.on("mouseover",g).on("mouseout",y),t.on("emphasis",b).on("normal",w)},R.setText=function(t,e,i){var n=e[u](o)||"inside",r=n[c]("inside")>=0?"white":i,a=e[T]("textStyle");C[I](t,{textDistance:e[u]("distance")||5,textFont:a.getFont(),textPosition:n,textFill:a.getTextColor()||r})},R.updateProps=function(t,e,i,n,r){M(!0,t,e,i,n,r)},R.initProps=function(t,e,i,n,r){M(!1,t,e,i,n,r)},R.getTransform=function(t,e){for(var i=D.identity([]);t&&t!==e;)D.mul(i,t.getLocalTransform(),i),t=t.parent;return i},R.applyTransform=function(t,e,i){return i&&(e=D.invert([],e)),E.applyTransform([],t,e)},R.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===x?r:0];return a=R.applyTransform(a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?x:"top"},R.groupTransition=function(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:E.clone(t[o]),rotation:t.rotation};return t.shape&&(e.shape=C[I]({},t.shape)),e}if(t&&e){var a=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),R.updateProps(t,n,i,t[m])}}})}},R}),e("echarts/ExtensionAPI",[E,O],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(O),n=["getDom","getZr",M,w,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",T,"getOption"];return e}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),{browser:i,os:e,node:!1,canvasSupported:document.createElement("canvas").getContext?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===i?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/util/format",[E,O,"./number","zrender/contain/text"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][d](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[L]>1?"."+t[1]:""))}function i(t){return t[C]()[d](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[L];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)[d](/&/g,"&amp;")[d](/</g,"&lt;")[d](/>/g,"&gt;")[d](/"/g,"&quot;")[d](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){l[f](e)||(e=[e]);var i=e[L];if(!i)return"";for(var n=e[0].$vars||[],r=0;r<n[L];r++){var o=p[r];t=t[d](a(o),a(o,0))}for(var s=0;i>s;s++)for(var u=0;u<n[L];u++)t=t[d](a(p[u],s),e[s][n[u]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=c.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),l=i.getSeconds();return t=t[d]("MM",u(r))[C]()[d]("yyyy",n)[d]("yy",n%100)[d]("dd",u(a))[d]("d",a)[d]("hh",u(o))[d]("h",o)[d]("mm",u(s))[d]("m",s)[d]("ss",u(l))[d]("s",l)}function u(t){return 10>t?"0"+t:t}var l=t(O),c=t("./number"),h=t("zrender/contain/text"),p=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s,truncateText:h.truncateText}}),e("echarts/CoordinateSystem",[E],function(){function t(){this._coordinateSystems=[]}var e={};return t[D]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][P](t,i);a&&(n=n.concat(a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[L];n++)i[n].update&&i[n].update(t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/Global",[E,O,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){for(var i in e)M.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?l.merge(t[i],e[i],!1):l.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this.option={},this.option[S]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme.option),l.merge(t,T,!1),this.mergeOption(t)}function n(t,e){l[f](e)||(e=e?[e]:[]);var i={};return m(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};m(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),m(e,function(e){var n=e.option;if(l.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),w(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),m(e,function(t){var e=t.exist,n=t.option,r=t.keyInfo;if(w(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:M.determineSubType(t,e);return n}function o(t){return _(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t.subType===e.subType}):t}function u(t){}var l=t(O),d=t("../util/model"),p=t("./Model"),m=l.each,y=l.filter,_=l.map,x=l[f],b=l[c],w=l[g],M=t("./Component"),T=t("./globalDefault"),S="\x00_ec_inner",C=p[I]({constructor:C,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new p(i),this._optionManager=n},setOption:function(t,e){l.assert(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[L]&&m(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var u=d.normalizeToArray(t[e]),c=d.mappingToExists(a[e],u);r(e,c);var h=n(a,s);i[e]=[],a[e]=[],m(c,function(t,n){var r=t.exist,o=t.option;if(l.assert(w(o)||r,"Empty component definition"),o){var s=M.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.mergeOption(o,this),r.optionUpdated(o,!1);else{var u=l[I]({dependentModels:h,componentIndex:n},t.keyInfo);r=new s(o,this,this,u),r.init(o,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a[e][n]=r,i[e][n]=r.option},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this.option,a=this._componentsMap,s=[];m(t,function(t,e){null!=t&&(M.hasClass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),M.topologicalTravel(s,M.getAllClassMainTypes(),e,this)},getOption:function(){var t=l.clone(this.option);return m(t,function(e,i){if(M.hasClass(i)){for(var e=d.normalizeToArray(e),n=e[L]-1;n>=0;n--)d.isIdInner(e[n])&&e[v](n,1);t[i]=e}}),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[L])return[];var o;if(null!=i)x(i)||(i=[i]),o=y(_(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var u=x(n);o=y(a,function(t){return u&&b(n,t.id)>=0||!u&&t.id===n})}else if(null!=r){var l=x(r);o=y(a,function(t){return l&&b(r,t.name)>=0||!l&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t.filter?y(e,t.filter):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===h)i=e,e=t,m(n,function(t,n){m(t,function(t,r){e.call(i,n,t,r)})});else if(l.isString(t))m(n[t],e,i);else if(w(t)){var r=this.findComponents(t);m(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return y(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return y(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){u(this),m(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){m(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){u(this),m(this._seriesIndices,function(n){var r=this._componentsMap.series[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return m(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),l[c](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=y(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];m(t,function(t,i){e.push(i)}),M.topologicalTravel(e,M.getAllClassMainTypes(),function(e){m(t[e],function(t){t.restoreData()})})}});return l.mixin(C,t("./mixin/colorPalette")),C}),e("echarts/model/OptionManager",[E,O,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var n,r,a=[],o=[],u=t.timeline;if(t.baseOption&&(r=t.baseOption),(u||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;c(l,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=u),c([r].concat(a).concat(s.map(o,function(t){return t.option})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][C]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(l.hasClass(i)){e=u.normalizeToArray(e),n=u.normalizeToArray(n);var r=u.mappingToExists(n,e);t[i]=f(r,function(t){return t.option&&t.exist?d(t.exist,t.option,!0):t.exist||t.option})}else t[i]=d(n,e,!0)}})}var s=t(O),u=t("../util/model"),l=t("./Component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[D]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[L]&&(n.timelineOptions=r.timelineOptions),r.mediaList[L]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[L]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[M](),e=this._api[w](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[L]&&!r)return s;for(var u=0,l=i[L];l>u;u++)n(i[u].query,t,e)&&o.push(u);return!o[L]&&r&&(o=[-1]),o[L]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r.option:i[t].option)})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[E,"./Model",O,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(u.getClassesByMainType(t),function(t){r.apply(e,t[D].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(O),r=Array[D].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),u=i[I]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,r,o){i.call(this,t,e,r,o),n[I](this,o),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this.option,t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[D].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[L]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),n.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/model/Series",[E,O,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env"],function(t){var e=t(O),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),o=t("./mixin/colorPalette"),l=t("zrender/core/env"),c=i.encodeHTML,h=i.addCommas,d=r[I]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[L];e++)t[e]&&t[e].label&&n.defaultEmphasis(t[e].label,n.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){return null==t?this._data:this._data.getLinkedData(t)},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},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){function r(t){return e.map(t,function(t,e){var r=o.getDimensionInfo(e),s=r&&r.type;return s===a?t:"time"===s?n?"":i.formatTime("yyyy/mm/dd hh:mm:ss",t):h(t)}).filter(function(t){return!!t}).join(", ")}var o=this._data,s=this.getRawValue(t),u=e[f](s)?r(s):h(s),l=o.getName(t),d=o.getItemVisual(t,"color"),p='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+d+'"></span>',m=this.name;return"\x00-"===m&&(m=""),n?p+c(this.name)+" : "+u:(m&&c(m)+"<br />")+p+(l?c(l)+" : "+u:u)},ifEnableAnimation:function(){if(l.node)return!1;var t=this[u](s);return t&&this[y]().count()>this[u]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this.ecModel,n=o.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null});return e.mixin(d,n.dataFormatMixin),e.mixin(d,o),d}),e("echarts/view/Chart",[E,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=e&&e[m],a=e&&e.name;if(null!=r)for(var o=r instanceof Array?r:[r],s=0,u=o[L];u>s;s++)i(t.getItemGraphicEl(o[s]),n);else if(a)for(var l=a instanceof Array?a:[a],s=0,u=l[L];u>s;s++){var r=t.indexOfName(l[s]);i(t.getItemGraphicEl(r),n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[D]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[y](),r,"emphasis")},downplay:function(t,e,i,r){n(t[y](),r,"normal")},remove:function(){this.group.removeAll()},dispose:function(){}};var s=e[D];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/view/Component",[E,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[D]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[D];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("zrender/zrender",[E,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),u=t("./dom/HandlerProxy"),l=!n.canvasSupported,c={canvas:t("./Painter")},h={},f={};f.version="3.1.2",f.init=function(t,e){var n=new d(i(),t,e);return h[n.id]=n,n},f.dispose=function(t){if(t)t.dispose();else{for(var e in h)h[e].dispose();h={}}return f},f.getInstance=function(t){return h[t]},f.registerPainter=function(t,e){c[t]=e};var d=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,f=new a,d=i.renderer;if(l){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&c[d]||(d="canvas");var p=new c[d](e,f,i);this.storage=f,this.painter=p;var m=n.node?null:new u(p.getViewportRoot());this.handler=new r(f,p,m),this[s]=new o({stage:{update:function(){h._needsRefresh&&h.refreshImmediately(),h._needsRefreshHover&&h.refreshHoverImmediately()}}}),this[s].start(),this._needsRefresh;var v=f.delFromMap,g=f.addToMap;f.delFromMap=function(t){var e=f.get(t);v.call(f,t),e&&e.removeSelfFromZr(h)},f.addToMap=function(t){g.call(f,t),t.addSelfToZr(h)}};return d[D]={constructor:d,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},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(){this.painter.resize(),this.handler.resize()},clearAnimation:function(){this[s].clear()},getWidth:function(){return this.painter[M]()},getHeight:function(){return this.painter[w]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[s].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this[s]=this.storage=this.painter=this.handler=null,e(this.id)}},f}),e("zrender/tool/color",[E],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function i(t){return 0>t?0:t>1?1:t}function n(e){return t(e[L]&&"%"===e.charAt(e[L]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[L]&&"%"===t.charAt(t[L]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t[d](/ /g,"")[C]();if(e in _)return _[e].slice();if("#"!==e.charAt(0)){var i=e[c]("("),a=e[c](")");if(-1!==i&&a+1===e[L]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),l=1;switch(o){case"rgba":if(4!==s[L])return;l=r(s.pop());case"rgb":if(3!==s[L])return;return[n(s[0]),n(s[1]),n(s[2]),l];case"hsla":if(4!==s[L])return;return s[3]=r(s[3]),u(s);case"hsl":if(3!==s[L])return;return u(s);default:return}}}else{if(4===e[L]){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[L]){var h=parseInt(e.substr(1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,1]}}}}function u(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,u=2*o-s,l=[t(255*a(u,s,i+1/3)),t(255*a(u,s,i)),t(255*a(u,s,i-1/3))];return 4===e[L]&&(l[3]=e[3]),l}function l(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),u=s-o,l=(s+o)/2;if(0===u)e=0,i=0;else{i=.5>l?u/(s+o):u/(2-s-o);var c=((s-n)/6+u/2)/u,h=((s-r)/6+u/2)/u,f=((s-a)/6+u/2)/u; -n===s?e=f-h:r===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,l];return null!=t[3]&&d.push(t[3]),d}}function h(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return y(i,4===i[L]?"rgba":"rgb")}}function f(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,i,n){if(i&&i[L]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[L]-1),a=Math.floor(r),s=Math.ceil(r),u=i[a],l=i[s],c=r-a;return n[0]=t(o(u[0],l[0],c)),n[1]=t(o(u[1],l[1],c)),n[2]=t(o(u[2],l[2],c)),n[3]=t(o(u[3],l[3],c)),n}}function m(e,n,r){if(n&&n[L]&&e>=0&&1>=e){var a=e*(n[L]-1),u=Math.floor(a),l=Math.ceil(a),c=s(n[u]),h=s(n[l]),f=a-u,d=y([t(o(c[0],h[0],f)),t(o(c[1],h[1],f)),t(o(c[2],h[2],f)),i(o(c[3],h[3],f))],"rgba");return r?{color:d,leftIndex:u,rightIndex:l,value:a}:d}}function v(t,i,n,a){return t=s(t),t?(t=l(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),y(u(t),"rgba")):void 0}function g(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),y(t,"rgba")):void 0}function y(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var _={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:f,fastMapToColor:p,mapToColor:m,modifyHSL:v,modifyAlpha:g,stringify:y}}),e("echarts/visual/seriesColor",[E,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[y](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==h||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r.getItemModel(t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/loading/default",[E,"../util/graphic",O],function(t){var e=t("../util/graphic"),i=t(O),n=Math.PI;return function(t,r){r=r||{},i.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[p],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[p],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[p],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var u=new e.Group;return u.add(o),u.add(s),u.add(a),u.resize=function(){var e=t[M]()/2,i=t[w]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[M](),height:t[w]()})},u.resize(),u}}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=u;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,u=n;u>s;)a=s+u>>>1,r(o,t[a])<0?u=a:s=a+1;var l=n-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,u=1;if(a(t,e[i+r])>0){for(s=n-r;s>u&&a(t,e[i+r+u])>0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s),o+=r,u+=r}else{for(s=r+1;s>u&&a(t,e[i+r-u])<=0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s);var l=o;o=r-u,u=r-l}for(o++;u>o;){var c=o+(u-o>>>1);a(t,e[i+c])>0?o=c+1:u=c}return u}function a(t,e,i,n,r,a){var o=0,s=0,u=1;if(a(t,e[i+r])<0){for(s=r+1;s>u&&a(t,e[i+r-u])<0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s);var l=o;o=r-u,u=r-l}else{for(s=n-r;s>u&&a(t,e[i+r+u])>=0;)o=u,u=(u<<1)+1,0>=u&&(u=s);u>s&&(u=s),o+=r,u+=r}for(o++;u>o;){var c=o+(u-o>>>1);a(t,e[i+c])<0?u=c:o=c+1}return u}function o(t,e){function i(t,e){f[y]=t,d[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]<d[t+1]&&t--,s(t)}}function s(i){var n=f[i],o=d[i],s=f[i+1],l=d[i+1];d[i]=o+l,i===y-3&&(f[i+1]=f[i+2],d[i+1]=d[i+2]),y--;var c=a(t[s],t,n,o,0,e);n+=c,o-=c,0!==o&&(l=r(t[n+o-1],t,s,l,l-1,e),0!==l&&(l>=o?u(n,o,s,l):h(n,o,s,l)))}function u(i,n,o,s){var u=0;for(u=0;n>u;u++)_[u]=t[i+u];var c=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===n){for(u=0;s>u;u++)t[f+u]=t[h+u];return void(t[f+s]=_[c])}for(var d,m,v,g=p;;){d=0,m=0,v=!1;do if(e(t[h],_[c])<0){if(t[f++]=t[h++],m++,d=0,0===--s){v=!0;break}}else if(t[f++]=_[c++],d++,m=0,1===--n){v=!0;break}while(g>(d|m));if(v)break;do{if(d=a(t[h],_,c,n,0,e),0!==d){for(u=0;d>u;u++)t[f+u]=_[c+u];if(f+=d,c+=d,n-=d,1>=n){v=!0;break}}if(t[f++]=t[h++],0===--s){v=!0;break}if(m=r(_[c],t,h,s,0,e),0!==m){for(u=0;m>u;u++)t[f+u]=t[h+u];if(f+=m,h+=m,s-=m,0===s){v=!0;break}}if(t[f++]=_[c++],1===--n){v=!0;break}g--}while(d>=l||m>=l);if(v)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(u=0;s>u;u++)t[f+u]=t[h+u];t[f+s]=_[c]}else{if(0===n)throw new Error;for(u=0;n>u;u++)t[f+u]=_[c+u]}}else for(u=0;n>u;u++)t[f+u]=_[c+u]}function h(i,n,o,s){var u=0;for(u=0;s>u;u++)_[u]=t[o+u];var c=i+n-1,h=s-1,f=o+s-1,d=0,m=0;if(t[f--]=t[c--],0!==--n){if(1===s){for(f-=n,c-=n,m=f+1,d=c+1,u=n-1;u>=0;u--)t[m+u]=t[d+u];return void(t[f]=_[h])}for(var v=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[c])<0){if(t[f--]=t[c--],g++,y=0,0===--n){x=!0;break}}else if(t[f--]=_[h--],y++,g=0,1===--s){x=!0;break}while(v>(g|y));if(x)break;do{if(g=n-a(_[h],t,i,n,n-1,e),0!==g){for(f-=g,c-=g,n-=g,m=f+1,d=c+1,u=g-1;u>=0;u--)t[m+u]=t[d+u];if(0===n){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[c],_,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,m=f+1,d=h+1,u=0;y>u;u++)t[m+u]=_[d+u];if(1>=s){x=!0;break}}if(t[f--]=t[c--],0===--n){x=!0;break}v--}while(g>=l||y>=l);if(x)break;0>v&&(v=0),v+=2}if(p=v,1>p&&(p=1),1===s){for(f-=n,c-=n,m=f+1,d=c+1,u=n-1;u>=0;u--)t[m+u]=t[d+u];t[f]=_[h]}else{if(0===s)throw new Error;for(d=f-(s-1),u=0;s>u;u++)t[d+u]=_[u]}}else for(d=f-(s-1),u=0;s>u;u++)t[d+u]=_[u]}var f,d,p=l,m=0,v=c,g=0,y=0;m=t[L],2*c>m&&(v=m>>>1);var _=[];g=120>m?5:1542>m?10:119151>m?19:40,f=[],d=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[L]);var l=s-a;if(!(2>l)){var c=0;if(u>l)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),f=t(l);do{if(c=e(i,a,s,r),f>c){var d=l;d>f&&(d=f),n(i,a,a+d,a+c,r),c=d}h.pushRun(a,c),h.mergeRuns(),l-=c,a+=c}while(0!==l);h.forceMergeRuns()}}var u=32,l=7,c=256;return s}),e("zrender/mixin/Eventful",[E],function(){var t=Array[D].slice,e=function(){this._$handlers={}};return e[D]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][L];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][L];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][L]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][L];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][L]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[L];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[L],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[v](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[L];n>4&&(i=t.call(i,1,i[L]-1));for(var r=i[i[L]-1],a=this._$handlers[e],o=a[L],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[v](s,1),o--):s++}}return this}},e}),e("echarts/preprocessor/backwardCompat",[E,O,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[L]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[L]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){l(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(O),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",x]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],u=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],l=r.each;return function(t){l(t.series,function(t){if(r[g](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var l=0;l<u[L];l++)if(u[l]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),l(s,function(e){var i=t[e];i&&(r[f](i)||(i=[i]),l(i,function(t){n(t)}))})}}),e("echarts/data/List",[E,"../model/Model","./DataDiffer",O,"../util/model"],function(t){function e(t){return v[f](t)||(t=[t]),t}function n(t,e){var i=t.dimensions,n=new w(v.map(i,t.getDimensionInfo,t),t.hostModel);b(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[L];o++){var s=i[o],u=a[s];r[s]=v[c](e,s)>=0?new u.constructor(a[s][L]):a[s]}return n}var r=i,o=typeof window===i?global:window,s=typeof o.Float64Array===r?Array:o.Float64Array,u=typeof o.Int32Array===r?Array:o.Int32Array,l={"float":s,"int":u,ordinal:Array,number:Array,time:Array},d=t("../model/Model"),p=t("./DataDiffer"),v=t(O),y=t("../util/model"),_=v[g],x=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],b=function(t,e){v.each(x.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},w=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[L];r++){var a,o={};typeof t[r]===S?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||"number"),n.push(a),i[a]=o}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},M=w[D];M.type="list",M.hasItemOption=!0,M.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},M.getDimensionInfo=function(t){return v.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this.dimensions,o=t[L],s=this._dimensionInfos,u=[],c={};e=e||[];for(var h=0;h<a[L];h++){var f=s[a[h]],d=l[f.type];n[a[h]]=new d(o)}var p=this;i||(p.hasItemOption=!1),i=i||function(t,e,i,n){var r=y.getDataItemValue(t);return y.isDataItemOption(t)&&(p.hasItemOption=!0),y.converDataValue(r instanceof Array?r[n]:r,s[e])};for(var m=0;m<t[L];m++){for(var v=t[m],g=0;g<a[L];g++){var _=a[g],x=n[_];x[m]=i(v,_,m,g)}r.push(m)}for(var h=0;h<t[L];h++){e[h]||t[h]&&null!=t[h].name&&(e[h]=t[h].name);var b=e[h]||"",w=t[h]&&t[h].id;!w&&b&&(c[b]=c[b]||0,w=b,c[b]>0&&(w+="__ec__"+c[b]),c[b]++),w&&(u[h]=w)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[L]},M.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var u=s.get(t,e);(a>=0&&u>0||0>=a&&0>u)&&(a+=u),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var n=[];v[f](t)||(i=e,e=t,t=this.dimensions);for(var r=0,a=t[L];a>r;r++)n.push(this.get(t[r],e,i));return n},M.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,n=0,r=e[L];r>n;n++)if(i[e[n]].type!==a&&isNaN(this.get(e[n],t)))return!1;return!0},M.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,u=0,l=this.count();l>u;u++)r=this.get(t,u,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},M[c]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[L];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[L];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},M.indexOfRawIndex=function(t){for(var e=this.indices,i=0,n=e[L]-1;n>=i;){var r=(i+n)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;n=r-1}}return-1},M.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,u=0,l=this.count();l>u;u++){var c=e-this.get(t,u,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=u)}return o},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},M.getName=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,n,r){typeof t===h&&(r=n,n=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=t[L],s=this.indices;r=r||this;for(var u=0;u<s[L];u++)switch(o){case 0:i.call(r,u);break;case 1:i.call(r,this.get(t[0],u,n),u);break;case 2:i.call(r,this.get(t[0],u,n),this.get(t[1],u,n),u);break;default:for(var l=0;o>l;l++)a[l]=this.get(t[l],u,n);a[l]=u,i.apply(r,a)}},M.filterSelf=function(t,i,n,r){typeof t===h&&(r=n,n=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=[],s=t[L],u=this.indices;r=r||this;for(var l=0;l<u[L];l++){var c;if(1===s)c=i.call(r,this.get(t[0],l,n),l);else{for(var f=0;s>f;f++)o[f]=this.get(t[f],l,n);o[f]=l,c=i.apply(r,o)}c&&a.push(u[l])}return this.indices=a,this._extent={},this},M.mapArray=function(t,e,i,n){typeof t===h&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},M.map=function(t,i,r,a){t=v.map(e(t),this.getDimension,this);var o=n(this,t),s=o.indices=this.indices,u=o._storage,l=[];return this.each(t,function(){var e=arguments[arguments[L]-1],n=i&&i.apply(this,arguments);if(null!=n){"number"==typeof n&&(l[0]=n,n=l);for(var r=0;r<n[L];r++){var a=t[r],o=u[a],c=s[e];o&&(o[c]=n[r])}}},r,a),o},M.downSample=function(t,e,i,r){for(var a=n(this,[t]),o=this._storage,s=a._storage,u=this.indices,l=a.indices=[],c=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),m=0;m<o[t][L];m++)s[t][m]=o[t][m];for(var m=0;p>m;m+=f){f>p-m&&(f=p-m,c[L]=f);for(var v=0;f>v;v++){var g=u[m+v];c[v]=d[g],h[v]=g}var y=i(c),g=h[r(c,y)||0];d[g]=y,l.push(g)}return a},M.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new d(this._rawData[t],e,e&&e.ecModel)},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new p(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},M.getVisual=function(t){var e=this._visual;return e&&e[t]},M.setVisual=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},M.setLayout=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},M.getLayout=function(t){return this._layout[t]},M.getItemLayout=function(t){return this._itemLayouts[t]},M.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?v[I](this._itemLayouts[t]||{},e):e},M.clearItemLayouts=function(){this._itemLayouts[L]=0},M.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},M.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,_(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i},M.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var T=function(t){t.seriesIndex=this.seriesIndex,t[m]=this[m],t.dataType=this.dataType};return M.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[m]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},M.getItemGraphicEl=function(t){return this._graphicEls[t]},M.eachItemGraphicEl=function(t,e){v.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},M.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),e.indices=this.indices.slice(),this._extent&&(e._extent=v[I]({},this._extent)),e},M.wrapMethod=function(t,e){var i=this[t];typeof i===h&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(v.slice(arguments)))})},M.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],M.CHANGABLE_METHODS=["filterSelf"],w}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],u=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],u=e[5],l=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*l,t[1]=-n*l+o*c,t[2]=r*c+s*l,t[3]=-r*l+c*s,t[4]=c*a+l*u,t[5]=c*u-l*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],u=i*o-a*n;return u?(u=1/u,t[0]=o*u,t[1]=-a*u,t[2]=-n*u,t[3]=i*u,t[4]=(n*s-o*r)*u,t[5]=(a*r-i*s)*u,t):null}};return e}),e("echarts/model/Model",[E,O,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}var i=t(O),n=t("../util/clazz");e[D]={constructor:e,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;typeof t===S&&(t=t.split("."));for(var i=this.option,n=this.parentModel,r=0;r<t[L]&&(!t[r]||(i=i&&"object"==typeof i?i[t[r]]:null,null!=i));r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this.option,n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[u](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[T](t),this.ecModel);return a},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e(A,[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[L]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/util/clazz",[E,O],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[D][e].apply(t,i)}function i(t,e,i){return this.superClass[D][e].apply(t,i)}var n=t(O),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){t.$constructor=t,t[I]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[I](a[D],t),a[I]=this[I],a.superCall=e,a.superApply=i,n[l](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function i(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 n=i(e);n[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[I];a&&(t[I]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("zrender/graphic/Path",[E,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new a}var i=t("./Displayable"),r=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),s=t("./Pattern"),u=s[D].getCanvasPattern,c=Math.abs;return e[D]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,r=this.path,a=i.hasStroke(),o=i.hasFill(),s=i.fill,l=i.stroke,c=o&&!!s.colorStops,h=a&&!!l.colorStops,f=o&&!!s.image,d=a&&!!l.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var p=this[n]();c&&(this._fillGradient=i.getGradient(t,s,p)),h&&(this._strokeGradient=i.getGradient(t,l,p))}c?t.fillStyle=this._fillGradient:f&&(t.fillStyle=u.call(s,t)),h?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=u.call(l,t));var m=i.lineDash,v=i.lineDashOffset,g=!!t.setLineDash,y=this.getGlobalScale();r.setScale(y[0],y[1]),this.__dirtyPath||m&&!g&&a?(r=this.path.beginPath(t),m&&!g&&(r.setLineDash(m),r.setLineDashOffset(v)),this.buildPath(r,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),m&&g&&(t.setLineDash(m),t.lineDashOffset=v),a&&r.stroke(t),m&&g&&t.setLineDash([]),this.restoreTransform(t),(i.text||0===i.text)&&this.drawRectText(t,this[n]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[n]()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a[_]+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[n](),a=this.style;if(t=i[0],e=i[1],r[k](t,e)){var s=this.path.data;if(a.hasStroke()){var u=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),o.containStroke(s,u/l,t,e)))return!0}if(a.hasFill())return o[k](s,t,e)}return!1},dirty:function(t){null==t&&(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),this.__dirtyPath=!0,this._rect=null):i[D].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r[g](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},e[I]=function(t){var i=function(i){e.call(this,i),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,i)};r[l](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[D][n]=t[n]);return i},r[l](e,i),e}),e("zrender/graphic/Gradient",[E],function(){var t=function(t){this.colorStops=t||[]};return t[D]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/tool/path",[E,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,u,d,p){var g=u*(f/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,_=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=l(x),s*=l(x));var b=(r===a?-1:1)*l((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,T=(t+i)/2+h(g)*w-c(g)*M,S=(e+n)/2+c(g)*w+h(g)*M,C=v([1,0],[(y-w)/o,(_-M)/s]),A=[(y-w)/o,(_-M)/s],L=[(-1*y-w)/o,(-1*_-M)/s],P=v(A,L);m(A,L)<=-1&&(P=f),m(A,L)>=1&&(P=0),0===a&&P>0&&(P-=2*f),1===a&&0>P&&(P+=2*f),p.addData(d,T,S,o,s,C,P,g,a)}function i(t){if(!t)return[];var i,n=t[d](/-/g," -")[d](/ /g," ")[d](/ /g,",")[d](/,,/g,",");for(i=0;i<u[L];i++)n=n[d](new RegExp(u[i],"g"),"|"+u[i]);var r,o=n.split("|"),s=0,l=0,c=new a,h=a.CMD;for(i=1;i<o[L];i++){var f,p=o[i],m=p.charAt(0),v=0,g=p.slice(1)[d](/e,-/g,"e-").split(",");g[L]>0&&""===g[0]&&g.shift();for(var y=0;y<g[L];y++)g[y]=parseFloat(g[y]);for(;v<g[L]&&!isNaN(g[v])&&!isNaN(g[0]);){var _,x,b,w,M,T,S,C=s,A=l;switch(m){case"l":s+=g[v++],l+=g[v++],f=h.L,c.addData(f,s,l);break;case"L":s=g[v++],l=g[v++],f=h.L,c.addData(f,s,l);break;case"m":s+=g[v++],l+=g[v++],f=h.M,c.addData(f,s,l),m="l";break;case"M":s=g[v++],l=g[v++],f=h.M,c.addData(f,s,l),m="L";break;case"h":s+=g[v++],f=h.L,c.addData(f,s,l);break;case"H":s=g[v++],f=h.L,c.addData(f,s,l);break;case"v":l+=g[v++],f=h.L,c.addData(f,s,l);break;case"V":l=g[v++],f=h.L,c.addData(f,s,l);break;case"C":f=h.C,c.addData(f,g[v++],g[v++],g[v++],g[v++],g[v++],g[v++]),s=g[v-2],l=g[v-1];break;case"c":f=h.C,c.addData(f,g[v++]+s,g[v++]+l,g[v++]+s,g[v++]+l,g[v++]+s,g[v++]+l),s+=g[v-2],l+=g[v-1];break;case"S":_=s,x=l;var P=c.len(),k=c.data;r===h.C&&(_+=s-k[P-4],x+=l-k[P-3]),f=h.C,C=g[v++],A=g[v++],s=g[v++],l=g[v++],c.addData(f,_,x,C,A,s,l);break;case"s":_=s,x=l;var P=c.len(),k=c.data;r===h.C&&(_+=s-k[P-4],x+=l-k[P-3]),f=h.C,C=s+g[v++],A=l+g[v++],s+=g[v++],l+=g[v++],c.addData(f,_,x,C,A,s,l);break;case"Q":C=g[v++],A=g[v++],s=g[v++],l=g[v++],f=h.Q,c.addData(f,C,A,s,l);break;case"q":C=g[v++]+s,A=g[v++]+l,s+=g[v++],l+=g[v++],f=h.Q,c.addData(f,C,A,s,l);break;case"T":_=s,x=l;var P=c.len(),k=c.data;r===h.Q&&(_+=s-k[P-4],x+=l-k[P-3]),s=g[v++],l=g[v++],f=h.Q,c.addData(f,_,x,s,l);break;case"t":_=s,x=l;var P=c.len(),k=c.data;r===h.Q&&(_+=s-k[P-4],x+=l-k[P-3]),s+=g[v++],l+=g[v++],f=h.Q,c.addData(f,_,x,s,l);break;case"A":b=g[v++],w=g[v++],M=g[v++],T=g[v++],S=g[v++],C=s,A=l,s=g[v++],l=g[v++],f=h.A,e(C,A,s,l,T,S,b,w,M,f,c); -break;case"a":b=g[v++],w=g[v++],M=g[v++],T=g[v++],S=g[v++],C=s,A=l,s+=g[v++],l+=g[v++],f=h.A,e(C,A,s,l,T,S,b,w,M,f,c)}}("z"===m||"Z"===m)&&(f=h.Z,c.addData(f)),r=f}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e.applyTransform=function(t){n||(n=s[P]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],l=Math.sqrt,c=Math.sin,h=Math.cos,f=Math.PI,p=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[I](n(t,e))},mergePath:function(t,e){for(var i=[],n=t[L],a=0;n>a;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/container/Group",[E,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),r=t("../core/BoundingRect"),a=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return a[D]={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[L];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[L]},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 i=this._children,n=i[c](e);n>=0&&(i[v](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,r=this._children,o=e[c](r,t);return 0>o?this:(r[v](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[L];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t.parent=null;return i[L]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[L];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[L];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[L];e++){var i=this._children[e];t.addToMap(i),i instanceof a&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[L];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new r(0,0,0,0),a=t||this._children,o=[],s=0;s<a[L];s++){var u=a[s];if(!u[b]&&!u.invisible){var l=u[n](),c=u.getLocalTransform(o);c?(i.copy(l),i.applyTransform(c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[l](a,i),a}),e("zrender/graphic/Image",[E,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),r=t("../core/BoundingRect"),a=t("../core/util"),o=t("../core/LRU"),s=new o(50);return e[D]={constructor:e,type:"image",brush:function(t,e){var i,r=this.style,a=r.image;if(r.bind(t,this,e),i=typeof a===S?this._image:a,!i&&a){var o=s.get(a);if(!o)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<o.pending[L];t++)o.pending[t].dirty()},o={image:i,pending:[this]},i.src=a,s.put(a,o),void(this._image=i);if(i=o.image,this._image=i,!i.width||!i[_])return void o.pending.push(this)}if(i){var u=r.width||i.width,l=r[_]||i[_],c=r.x||0,h=r.y||0;if(!i.width||!i[_])return;if(this.setTransform(t),r.sWidth&&r.sHeight){var f=r.sx||0,d=r.sy||0;t.drawImage(i,f,d,r.sWidth,r.sHeight,c,h,u,l)}else if(r.sx&&r.sy){var f=r.sx,d=r.sy,p=u-f,m=l-d;t.drawImage(i,f,d,p,m,c,h,u,l)}else t.drawImage(i,c,h,u,l);null==r.width&&(r.width=u),null==r[_]&&(r[_]=l),this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this[n]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t[_]||0)),this._rect}},a[l](e,i),e}),e("zrender/graphic/shape/Sector",[E,"../Path"],function(t){return t("../Path")[I]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,u=e.clockwise,l=Math.cos(o),c=Math.sin(o);t.moveTo(l*r+i,c*r+n),t.lineTo(l*a+i,c*a+n),t.arc(i,n,a,o,s,!u),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,u),t.closePath()}})}),e("zrender/graphic/Text",[E,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),r=t("../contain/text"),a=function(t){e.call(this,t)};return a[D]={constructor:a,type:"text",brush:function(t,e){var i=this.style,a=i.x||0,o=i.y||0,s=i.text;if(null!=s&&(s+=""),i.bind(t,this,e),s){this.setTransform(t);var u,l=i.textAlign,c=i.textFont||i.font;if(i.textVerticalAlign){var h=r[n](s,c,i.textAlign,"top");switch(u="middle",i.textVerticalAlign){case"middle":o-=h[_]/2-h.lineHeight/2;break;case x:o-=h[_]-h.lineHeight/2;break;default:o+=h.lineHeight/2}}else u=i.textBaseline;t.font=c,t.textAlign=l||"left",t.textAlign!==l&&(t.textAlign="left"),t.textBaseline=u||"alphabetic",t.textBaseline!==u&&(t.textBaseline="alphabetic");for(var f=r.measureText("国",t.font).width,d=s.split("\n"),p=0;p<d[L];p++)i.hasFill()&&t.fillText(d[p],a,o),i.hasStroke()&&t.strokeText(d[p],a,o),o+=f;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=r[n](t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":i.y-=i[_]/2;break;case x:i.y-=i[_]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[l](a,e),a}),e("zrender/graphic/shape/Ring",[E,"../Path"],function(t){return t("../Path")[I]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}})}),e("zrender/graphic/shape/Polygon",[E,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[I]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Circle",[E,"../Path"],function(t){return t("../Path")[I]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&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/Polyline",[E,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[I]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Line",[E,"../Path"],function(t){return t("../Path")[I]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/Rect",[E,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[I]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[_];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/BezierCurve",[E,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?l:s)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?l:s)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:o)(t.x1,t.cpx1,t.x2,e),(i?u:o)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),n=t("../../core/vector"),r=i.quadraticSubdivide,a=i.cubicSubdivide,o=i.quadraticAt,s=i.cubicAt,u=i.quadraticDerivativeAt,l=i.cubicDerivativeAt,c=[];return t("../Path")[I]({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 i=e.x1,n=e.y1,o=e.x2,s=e.y2,u=e.cpx1,l=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,n),null==h||null==f?(1>d&&(r(i,u,o,d,c),u=c[1],o=c[2],r(n,l,s,d,c),l=c[1],s=c[2]),t.quadraticCurveTo(u,l,o,s)):(1>d&&(a(i,u,h,o,d,c),u=c[1],h=c[2],o=c[3],a(n,l,f,s,d,c),l=c[1],f=c[2],s=c[3]),t.bezierCurveTo(u,l,h,f,o,s)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return n.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[E,"../Path"],function(t){return t("../Path")[I]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,u=Math.cos(a),l=Math.sin(a);t.moveTo(u*r+i,l*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[E,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,i.call(this,a)};return n[D]={constructor:n},e[l](n,i),n}),e("zrender/graphic/CompoundPath",[E,"./Path"],function(t){var e=t("./Path");return e[I]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[L];i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[L];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[L];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[L];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[D][n].call(this)}})}),e("zrender/core/BoundingRect",[E,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[_]=n}var i=t("./vector"),n=t("./matrix"),r=i.applyTransform,a=Math.min,o=Math.abs,s=Math.max;return e[D]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[_]=s(t.y+t[_],this.y+this[_])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[_],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[_]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[_]/e[_],a=n[P]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[_],o=t.x,s=t.x+t.width,u=t.y,l=t.y+t[_];return!(o>n||i>s||u>a||r>l)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[_]},clone:function(){return new e(this.x,this.y,this.width,this[_])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[_]=t[_]}},e}),e("zrender/graphic/RadialGradient",[E,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[D]={constructor:n},e[l](n,i),n}),e("zrender/contain/text",[E,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[L];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return u>l&&(u=0,s={}),u++,s[i]=r,r}function i(t,i,n,a){var o=((t||"")+"").split("\n")[L],s=e(t,i),u=e("国",i),l=o*u,c=new h(0,0,s,l);switch(c.lineHeight=u,a){case x:case"alphabetic":c.y-=u;break;case"middle":c.y-=u/2}switch(n){case"end":case"right":c.x-=c.width;break;case r:c.x-=c.width/2}return c}function n(t,e,i,n){var a=e.x,o=e.y,s=e[_],u=e.width,l=i[_],c=s/2-l/2,h="left";switch(t){case"left":a-=n,o+=c,h="right";break;case"right":a+=n+u,o+=c,h="left";break;case"top":a+=u/2,o-=n+l,h=r;break;case x:a+=u/2,o+=s+n,h=r;break;case"inside":a+=u/2,o+=c,h=r;break;case"insideLeft":a+=n,o+=c,h="left";break;case"insideRight":a+=u-n,o+=c,h="right";break;case"insideTop":a+=u/2,o+=n,h=r;break;case"insideBottom":a+=u/2,o+=s-l-n,h=r;break;case"insideTopLeft":a+=n,o+=n,h="left";break;case"insideTopRight":a+=u-n,o+=n,h="right";break;case"insideBottomLeft":a+=n,o+=s-l-n;break;case"insideBottomRight":a+=u-n,o+=s-l-n,h="right"}return{x:a,y:o,textAlign:h,textBaseline:"top"}}function a(t,i,n,r,a){if(!i)return"";a=a||{},r=f(r,"...");for(var s=f(a.maxIterations,2),u=f(a.minChar,0),l=e("国",n),c=e("a",n),h=f(a.placeholder,""),d=i=Math.max(0,i-1),p=0;u>p&&d>=c;p++)d-=c;var m=e(r);m>d&&(r="",m=0),d=i-m;for(var v=(t+"").split("\n"),p=0,g=v[L];g>p;p++){var y=v[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=s){y+=r;break}var b=0===x?o(y,d,c,l):_>0?Math.floor(y[L]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function o(t,e,i,n){for(var r=0,a=0,o=t[L];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var s={},u=0,l=5e3,c=t("../core/util"),h=t("../core/BoundingRect"),f=c.retrieve,d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:a,measureText:function(t,e){var i=c.getContext();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/util/model",[E,"./format","./number","../model/Model",O],function(t){var e=t("./format"),i=t("./number"),n=t("../model/Model"),r=t(O),s=["x","y","z","radius","angle"],u={};return u.createNameEach=function(t,e){t=t.slice();var i=r.map(t,u.capitalFirst);e=(e||[]).slice();var n=r.map(e,u.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:i[r]},u=0;u<e[L];u++)s[e[u]]=t+n[u];a.call(o,s)})}},u.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},u.eachAxisDim=u.createNameEach(s,["axisIndex","axis","index"]),u.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},u.createLinkedNodesFinder=function(t,e,i){function n(t,e){return r[c](e.nodes,t)>=0}function a(t,n){var a=!1;return e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]&&(a=!0)})}),a}function o(t,n){n.nodes.push(t),e(function(e){r.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function r(t){!n(t,s)&&a(t,s)&&(o(t,s),u=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var u;do u=!1,t(r);while(u);return s}},u.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},u.LABEL_OPTIONS=[o,"show","textStyle","distance","formatter"],u.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},u.isDataItemOption=function(t){return r[g](t)&&!(t instanceof Array)},u.converDataValue=function(t,e){var n=e&&e.type;return n===a?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},u.createDataFormatModel=function(t,e){var i=new n;return r.mixin(i,u.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[y]=function(){return t},i},u.dataFormatMixin={getDataParams:function(t,e){var i=this[y](e),n=this.seriesIndex,r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),u=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:u,dataType:e,value:a,color:i.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n,r){i=i||"normal";var a=this[y](n),o=a.getItemModel(t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var u=o.get(["label",i,"formatter"]);return typeof u===h?(s.status=i,u(s)):typeof u===S?e.formatTpl(u,s):void 0},getRawValue:function(t,e){var i=this[y](e),n=i.getRawDataItem(t);return null!=n?!r[g](n)||n instanceof Array?n:n.value:void 0},formatTooltip:r.noop},u.mappingToExists=function(t,e){e=(e||[]).slice();var i=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,n){if(r[g](t))for(var a=0;a<i[L];a++){var o=i[a].exist;if(!i[a].option&&(null!=t.id&&o.id===t.id+""||null!=t.name&&!u.isIdInner(t)&&!u.isIdInner(o)&&o.name===t.name+"")){i[a].option=t,e[n]=null;break}}}),r.each(e,function(t){if(r[g](t)){for(var e=0;e<i[L];e++){var n=i[e].exist;if(!i[e].option&&!u.isIdInner(n)&&null==t.id){i[e].option=t;break}}e>=i[L]&&i.push({option:t})}}),i},u.isIdInner=function(t){return r[g](t)&&t.id&&0===(t.id+"")[c]("\x00_ec_\x00")},u.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[L];r>n;n++)for(var a=t[n].seriesId,o=u.normalizeToArray(t[n][m]),s=i&&i[a],l=0,c=o[L];c>l;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[L]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},u}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==i&&(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"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,n=e._colorNameMap||(e._colorNameMap={});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r[L]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[L],a}}}}),e("zrender/graphic/Displayable",[E,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),r=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[D]={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,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[n]();return r[k](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[D].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t),this.dirty(!1),this}},i[l](e,a),i.mixin(e,o),e}),e("zrender/core/PathProxy",[E,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),n=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),o=t("../config").devicePixelRatio,s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],l=[],c=[],h=[],f=Math.min,d=Math.max,p=Math.cos,m=Math.sin,v=Math.sqrt,g=Math.abs,y=typeof Float32Array!=i,_=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return _[D]={constructor:_,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=g(1/o/t)||0,this._uy=g(1/o/e)||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(s.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){var i=g(t-this._xi)>this._ux||g(e-this._yi)>this._uy||this._len<5;return this.addData(s.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(s.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(s.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(s.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=p(r)*i+t,this._xi=m(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(s.R,t,e,i,n),this},closePath:function(){this.addData(s.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[L];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[L];this.data&&this.data[L]==e||!y||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[L],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();y&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[L];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[L]>e[L]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[L];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,u=this._xi,l=this._yi,c=t-u,h=e-l,p=v(c*c+h*h),m=u,g=l,y=o[L];for(c/=p,h/=p,0>a&&(a=r+a),a%=r,m-=a*c,g-=a*h;c>0&&t>=m||0>c&&m>=t||0==c&&(h>0&&e>=g||0>h&&g>=e);)n=this._dashIdx,i=o[n],m+=c*i,g+=h*i,this._dashIdx=(n+1)%y,c>0&&u>m||0>c&&m>u||h>0&&l>g||0>h&&g>l||s[n%2?"moveTo":"lineTo"](c>=0?f(m,t):d(m,t),h>=0?f(g,e):d(g,e));c=m-t,h=g-e,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(t,i,n,r,a,o){var s,u,l,c,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[L],M=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)u=_(g,t,n,a,s+.1)-_(g,t,n,a,s),l=_(y,i,r,o,s+.1)-_(y,i,r,o,s),x+=v(u*u+l*l);for(;w>b&&(M+=p[b],!(M>d));b++);for(s=(M-d)/x;1>=s;)c=_(g,t,n,a,s),h=_(y,i,r,o,s),b%2?m.moveTo(c,h):m.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&m.lineTo(a,o),u=a-c,l=o-h,this._dashOffset=-v(u*u+l*l)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[L]=this._len,y&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=c[0]=c[1]=Number.MAX_VALUE,l[0]=l[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,o=0,f=0,d=0;d<t[L];){var v=t[d++];switch(1==d&&(e=t[d],i=t[d+1],o=e,f=i),v){case s.M:o=t[d++],f=t[d++],e=o,i=f,c[0]=o,c[1]=f,h[0]=o,h[1]=f;break;case s.L:r.fromLine(e,i,t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.C:r.fromCubic(e,i,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.Q:r.fromQuadratic(e,i,t[d++],t[d++],t[d],t[d+1],c,h),e=t[d++],i=t[d++];break;case s.A:var g=t[d++],y=t[d++],_=t[d++],x=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(o=p(b)*_+g,f=m(b)*x+y),r.fromArc(g,y,_,x,b,w,M,c,h),e=p(w)*_+g,i=m(w)*x+y;break;case s.R:o=e=t[d++],f=i=t[d++];var T=t[d++],S=t[d++];r.fromLine(o,f,o+T,f+S,c,h);break;case s.Z:e=o,i=f}n.min(u,u,c),n.max(l,l,h)}return 0===d&&(u[0]=u[1]=l[0]=l[1]=0),new a(u[0],u[1],l[0]-u[0],l[1]-u[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,u=this.data,l=this._ux,c=this._uy,h=this._len,f=0;h>f;){var d=u[f++];switch(1==f&&(n=u[f],r=u[f+1],e=n,i=r),d){case s.M:e=n=u[f++],i=r=u[f++],t.moveTo(n,r);break;case s.L:a=u[f++],o=u[f++],(g(a-n)>l||g(o-r)>c||f===h-1)&&(t.lineTo(a,o),n=a,r=o);break;case s.C:t.bezierCurveTo(u[f++],u[f++],u[f++],u[f++],u[f++],u[f++]),n=u[f-2],r=u[f-1];break;case s.Q:t.quadraticCurveTo(u[f++],u[f++],u[f++],u[f++]),n=u[f-2],r=u[f-1];break;case s.A:var v=u[f++],y=u[f++],_=u[f++],x=u[f++],b=u[f++],w=u[f++],M=u[f++],T=u[f++],S=_>x?_:x,C=_>x?1:_/x,A=_>x?x/_:1,L=Math.abs(_-x)>.001,P=b+w;L?(t.translate(v,y),t.rotate(M),t.scale(C,A),t.arc(0,0,S,b,P,1-T),t.scale(1/C,1/A),t.rotate(-M),t.translate(-v,-y)):t.arc(v,y,S,b,P,1-T),1==f&&(e=p(b)*_+v,i=m(b)*x+y),n=p(P)*_+v,r=m(P)*x+y;break;case s.R:e=n=u[f],i=r=u[f+1],t.rect(u[f++],u[f++],u[f++],u[f++]);break;case s.Z:t.closePath(),n=e,r=i}}}},_.CMD=s,_}),e("zrender/graphic/Pattern",[E],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[D].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/model/mixin/lineStyle",[E,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/contain/path",[E,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,u,l,c){if(c>e&&c>r&&c>o&&c>u||e>c&&r>c&&o>c&&u>c)return 0;var h=d.cubicRootAt(e,r,o,u,c,y);if(0===h)return 0;for(var f,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=d.cubicAt(t,n,a,s,x);l>w||(0>v&&(v=d.cubicExtrema(e,r,o,u,_),_[1]<_[0]&&v>1&&i(),f=d.cubicAt(e,r,o,u,_[0]),v>1&&(p=d.cubicAt(e,r,o,u,_[1]))),m+=2==v?x<_[0]?e>f?b:-b:x<_[1]?f>p?b:-b:p>u?b:-b:x<_[0]?e>f?b:-b:f>u?b:-b)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var u=d.quadraticRootAt(e,n,a,s,y);if(0===u)return 0;var l=d.quadraticExtremum(e,n,a);if(l>=0&&1>=l){for(var c=0,h=d.quadraticAt(e,n,a,l),f=0;u>f;f++){var p=0===y[f]||1===y[f]?.5:1,m=d.quadraticAt(t,i,r,y[f]);o>m||(c+=y[f]<l?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,m=d.quadraticAt(t,i,r,y[0]);return o>m?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var u=Math.sqrt(i*i-s*s);y[0]=-u,y[1]=u;var l=Math.abs(n-r);if(1e-4>l)return 0;if(1e-4>l%v){n=0,r=v;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var u=n;n=f(r),r=f(u)}else n=f(n),r=f(r);n>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),c=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,u,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x<t[L];){var b=t[x++];switch(b===s.M&&x>1&&(o||(d+=p(v,g,y,_,u,f))),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],i,u,f))return!0}else d+=p(v,g,t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.C:if(o){if(l.containStroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=n(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],i,u,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],u,f)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],T=t[x++],S=t[x++],C=t[x++],A=t[x++],P=(t[x++],1-t[x++]),k=Math.cos(C)*T+w,z=Math.sin(C)*S+M;x>1?d+=p(v,g,k,z,u,f):(y=k,_=z);var I=(u-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+A,P,i,I,f))return!0}else d+=a(w,M,S,C,C+A,P,I,f);v=Math.cos(C+A)*T+w,g=Math.sin(C+A)*S+M;break;case s.R:y=v=t[x++],_=g=t[x++];var D=t[x++],O=t[x++],k=y+D,z=_+O;if(o){if(m(y,_,k,_,i,u,f)||m(k,_,k,z,i,u,f)||m(k,z,y,z,i,u,f)||m(y,z,y,_,i,u,f))return!0}else d+=p(k,_,k,z,u,f),d+=p(y,z,y,_,u,f);break;case s.Z:if(o){if(m(v,g,y,_,i,u,f))return!0}else d+=p(v,g,y,_,u,f);v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,u,f)||0),0!==d}var s=t("../core/PathProxy").CMD,u=t("./line"),l=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),m=u.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/tool/transformPath",[E,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,u,l,c,h,f,d=t.data,p=i.M,m=i.C,v=i.L,g=i.R,y=i.A,_=i.Q;for(l=0,c=0;l<d[L];){switch(n=d[l++],c=l,u=0,n){case p:u=1;break;case v:u=1;break;case m:u=3;break;case _:u=2;break;case y:var x=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),T=s(-e[1]/M,e[0]/w);d[l++]+=x,d[l++]+=b,d[l++]*=w,d[l++]*=M,d[l++]+=T,d[l++]+=T,l+=2,c=l;break;case g:f[0]=d[l++],f[1]=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[l++],f[1]+=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;u>h;h++){var f=a[h];f[0]=d[l++],f[1]=d[l++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n.applyTransform,a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("echarts/model/mixin/areaStyle",[E,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[E,"zrender/contain/text"],function(t){function e(t,e){return t&&t[u](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this.ecModel;return this[u]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,i=t&&t[T]("textStyle");return[this[u]("fontStyle")||e(i,"fontStyle"),this[u]("fontWeight")||e(i,"fontWeight"),(this[u]("fontSize")||e(i,"fontSize")||12)+"px",this[u]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get("textStyle")||{};return i[n](t,this.getFont(),e.align,e.baseline)},truncateText:function(t,e,n,r){return i.truncateText(t,e,this.getFont(),n,r)}}}),e("zrender/Element",[E,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),u=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return u[D]={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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===o||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[b]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[b]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===S)this.attrKV(t,e);else if(a[g](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),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(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[L];i++)t[s].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[L];i++)t[s].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(u,r),a.mixin(u,n),a.mixin(u,i),u}),e("zrender/graphic/Style",[E],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[_]+i.y,o=o*i[_]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[_],a=Math.min(n,r),o=e.x,s=e.y,u=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,u*=a);var l=t.createRadialGradient(o,s,0,o,s,u);return l}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[D]={constructor:n,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,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s<i[L];s++){var u=i[s],l=u[0];(o||r[l]!==a[l])&&(t[l]=r[l]||u[1])}if((o||r.fill!==a.fill)&&(t.fillStyle=r.fill),(o||r.stroke!==a.stroke)&&(t.strokeStyle=r.stroke),(o||r.opacity!==a.opacity)&&(t.globalAlpha=null==r.opacity?1:r.opacity),(o||r.blend!==a.blend)&&(t.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var c=r.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===S?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n.colorStops,u=0;u<s[L];u++)o.addColorStop(s[u].offset,s[u].color);return o}};for(var r=n[D],a=0;a<i[L];a++){var o=i[a];o[0]in r||(r[o[0]]=o[1])}return n.getGradient=r.getGradient,n}),e("echarts/model/mixin/itemStyle",[E,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/graphic/mixin/RectText",[E,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===S?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[D]={constructor:o,drawRectText:function(t,r,o){var s=this.style,u=s.text;if(null!=u&&(u+=""),u){t.save();var l,c,h=s.textPosition,f=s.textDistance,d=s.textAlign,p=s.textFont||s.font,m=s.textBaseline,v=s.textVerticalAlign;o=o||i[n](u,p,d,m);var g=this.transform;if(g&&(a.copy(r),a.applyTransform(g),r=a),h instanceof Array){if(l=r.x+e(h[0],r.width),c=r.y+e(h[1],r[_]),d=d||"left",m=m||"top",v){switch(v){case"middle":c-=o[_]/2-o.lineHeight/2;break;case x:c-=o[_]-o.lineHeight/2;break;default:c+=o.lineHeight/2}m="middle"}}else{var y=i.adjustTextPositionOnRect(h,r,o,f);l=y.x,c=y.y,d=d||y.textAlign,m=m||y.textBaseline}t.textAlign=d||"left",t.textBaseline=m||"alphabetic";var b=s.textFill,w=s.textStroke;b&&(t.fillStyle=b),w&&(t.strokeStyle=w),t.font=p,t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var M=u.split("\n"),T=0;T<M[L];T++)b&&t.fillText(M[T],l,c),w&&t.strokeText(M[T],l,c),c+=o.lineHeight;t.restore()}}},o}),e("echarts/model/mixin/makeStyleMapper",[E,O],function(t){var e=t(O);return function(t){for(var i=0;i<t[L];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[L];r++){var a=t[r][1];if(!(i&&e[c](i,a)>=0)){var o=this[u](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/mixin/Transformable",[E,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,s=function(t){t=t||{},t[o]||(this[o]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=s[D];u.transform=null,u.needLocalTransform=function(){return e(this.rotation)||e(this[o][0])||e(this[o][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),a=this.transform;return n||e?(a=a||i[P](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t.transform,a):i.copy(a,t.transform)),this.transform=a,this.invTransform=this.invTransform||i[P](),void i.invert(this.invTransform,a)):void(a&&r(a))},u.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,s=this[o];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=s[0],t[5]+=s[1],t},u.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},u.restoreTransform=function(t){var e=this.invTransform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return u.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],s=this[o],u=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),s[0]=n[4],s[1]=n[5],u[0]=r,u[1]=a,this.rotation=Math.atan2(-n[1]/a,n[0]/r)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},u.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n.applyTransform(i,i,r),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&n.applyTransform(i,i,r),i},s}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Animatable",[E,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[g],o=t("../core/log"),u=function(){this.animators=[]};return u[D]={constructor:u,animate:function(t,n){var r,a=!1,u=this,l=this.__zr;if(t){var h=t.split("."),f=u;a="shape"===h[0];for(var d=0,p=h[L];p>d;d++)f&&(f=f[h[d]]);f&&(r=f)}else r=u;if(!r)return void o('Property "'+t+'" is not existed in element '+u.id);var m=u.animators,g=new e(r,n);return g.during(function(){u.dirty(a)}).done(function(){m[v](i[c](m,g),1)}),m.push(g),l&&l[s].addAnimator(g),g},stopAnimation:function(t){for(var e=this.animators,i=e[L],n=0;i>n;n++)e[n].stop(t);return e[L]=0,this},animateTo:function(t,e,i,a,o){function s(){l--,l||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var u=this.animators.slice(),l=u[L];l||o&&o();for(var c=0;c<u[L];c++)u[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},u=0;for(var l in n)if(null!=e[l])a(n[l])&&!i.isArrayLike(n[l])?this._animateToShallow(t?t+"."+l:l,e[l],n[l],r,o):(s[l]=n[l],u++);else if(null!=n[l])if(t){var c={};c[t]={},c[t][l]=n[l],this.attr(c)}else this.attr(l,n[l]);return u>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},u}),e("echarts/util/component",[E,O,"./clazz"],function(t){var e=t(O),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var u=r(n,s),l=u.originalDeps=i(s),h=a(l,t);u.entryCount=h[L],0===u.entryCount&&o.push(s),e.each(h,function(t){e[c](u.predecessor,t)<0&&u.predecessor.push(t);var i=r(n,t);e[c](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[c](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){l[t].entryCount--,0===l[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[L]){var u=n(i),l=u.graph,c=u.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[L];){var f=c.pop(),d=l[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/util/layout",[E,O,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,r,a){var s=0,u=0;null==r&&(r=1/0),null==a&&(a=1/0);var l=0;e.eachChild(function(c,h){var f,d,p=c[o],m=c[n](),v=e.childAt(h+1),g=v&&v[n]();if("horizontal"===t){var y=m.width+(g?-g.x+m.x:0);f=s+y,f>r||c.newline?(s=0,f=y,u+=l+i,l=m[_]):l=Math.max(l,m[_])}else{var x=m[_]+(g?-g.y+m.y:0);d=u+x,d>a||c.newline?(s+=l+i,u=0,d=x,l=m.width):l=Math.max(l,m.width)}c.newline||(p[0]=s,p[1]=u,"horizontal"===t?s=f+i:u=d+i)})}var i=t(O),a=t("zrender/core/BoundingRect"),s=t("./number"),u=t("./format"),l=s.parsePercent,c=i.each,h={},f=["left","right","top",x,"width",_];return h.box=e,h.vbox=i.curry(e,"vertical"),h.hbox=i.curry(e,"horizontal"),h.getAvailableSize=function(t,e,i){var n=e.width,r=e[_],a=l(t.x,n),o=l(t.y,r),s=l(t.x2,n),c=l(t.y2,r);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=u.normalizeCssArray(i||0),{width:Math.max(s-a-i[1]-i[3],0),height:Math.max(c-o-i[0]-i[2],0)}},h.getLayoutRect=function(t,e,i){i=u.normalizeCssArray(i||0);var n=e.width,o=e[_],s=l(t.left,n),c=l(t.top,o),h=l(t.right,n),f=l(t[x],o),d=l(t.width,n),p=l(t[_],o),m=i[2]+i[0],v=i[1]+i[3],g=t.aspect;switch(isNaN(d)&&(d=n-h-v-s),isNaN(p)&&(p=o-f-m-c),isNaN(d)&&isNaN(p)&&(g>n/o?d=.8*n:p=.8*o),null!=g&&(isNaN(d)&&(d=g*p),isNaN(p)&&(p=d/g)),isNaN(s)&&(s=n-h-d-v),isNaN(c)&&(c=o-f-p-m),t.left||t.right){case r:s=n/2-d/2-i[3];break;case"right":s=n-d-v}switch(t.top||t[x]){case"middle":case r:c=o/2-p/2-i[0];break;case x:c=o-p-m}s=s||0,c=c||0,isNaN(d)&&(d=n-s-(h||0)),isNaN(p)&&(p=o-c-(f||0));var y=new a(s+i[3],c+i[0],d,p);return y.margin=i,y},h.positionGroup=function(t,e,r,a){var s=t[n]();e=i[I](i.clone(e),{width:s.width,height:s[_]}),e=h.getLayoutRect(e,r,a),t.attr(o,[e.x-s.x,e.y-s.y])},h.mergeLayoutParam=function(t,e,n){function r(i){var r={},s=0,u={},l=0,h=n.ignoreSize?1:2;if(c(i,function(e){u[e]=t[e]}),c(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&s++,o(u,t)&&l++}),l!==h&&s){if(s>=h)return r;for(var f=0;f<i[L];f++){var d=i[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 s(t,e,i){c(t,function(t){e[t]=i[t]})}!i[g](n)&&(n={});var u=["width","left","right"],l=[_,"top",x],h=r(u),f=r(l);s(u,t,h),s(l,t,f)},h.getLayoutParams=function(t){return h.copyLayoutParams({},t)},h.copyLayoutParams=function(t,e){return e&&t&&c(f,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},h}),e("zrender/animation/Animator",[E,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[L];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var u=t[0][L],s=0;o>s;s++)for(var l=0;u>l;l++)r[s][l]=n(t[s][l],e[s][l],i)}function o(t,e,i){var n=t[L],r=e[L];if(n!==r){var a=n>r;if(a)t[L]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o]))}for(var s=t[0]&&t[0][L],o=0;o<t[L];o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var u=0;s>u;u++)isNaN(t[o][u])&&(t[o][u]=e[o][u])}function u(t,e,i){if(t===e)return!0;var n=t[L];if(n!==e[L])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][L],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,u){var l=t[L];if(1==u)for(var h=0;l>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][L],h=0;l>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}function h(t){if(g(t)){var e=t[L];if(g(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,s,h){var d=t._getter,v=t._setter,y="spline"===e,_=s[L];if(_){var x,b=s[0].value,w=g(b),M=!1,T=!1,C=w&&g(b[0])?2:1;s.sort(function(t,e){return t.time-e.time}),x=s[_-1].time;for(var A=[],P=[],k=s[0].value,z=!0,I=0;_>I;I++){A.push(s[I].time/x);var D=s[I].value;if(w&&u(D,k,C)||!w&&D===k||(z=!1),k=D,typeof D==S){var O=m.parse(D);O?(D=O,M=!0):T=!0}P.push(D)}if(!z){for(var E=P[_-1],I=0;_-1>I;I++)w?o(P[I],E,C):!isNaN(P[I])||isNaN(E)||T||M||(P[I]=E);w&&o(d(t._target,h),E,C);var R,B,N,F,G,V,q=0,H=0;if(M)var W=[0,0,0,0];var Z=function(t,e){var i;if(H>e){for(R=Math.min(q+1,_-1),i=R;i>=0&&!(A[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=q;_>i&&!(A[i]>e);i++);i=Math.min(i-1,_-2)}q=i,H=e;var o=A[i+1]-A[i];if(0!==o)if(B=(e-A[i])/o,y)if(F=P[i],N=P[0===i?i:i-1],G=P[i>_-2?_-1:i+1],V=P[i>_-3?_-1:i+2],w)l(N,F,G,V,B,B*B,B*B*B,d(t,h),C);else{var s;if(M)s=l(N,F,G,V,B,B*B,B*B*B,W,1),s=f(W);else{if(T)return r(F,G,B);s=c(N,F,G,V,B,B*B,B*B*B)}v(t,h,s)}else if(w)a(P[i],P[i+1],B,d(t,h),C);else{var s;if(M)a(P[i],P[i+1],B,W,1),s=f(W);else{if(T)return r(P[i],P[i+1],B);s=n(P[i],P[i+1],B)}v(t,h,s)}},U=new p({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(U.easing=e),U}}}var p=t("./Clip"),m=t("../tool/color"),v=t("../core/util"),g=v.isArrayLike,y=Array[D].slice,_=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[D]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:h(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[L]=0;for(var t=this._doneList,e=t[L],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[s]&&this[s].addClip(o),e=o)}if(e){var u=e.onframe;e.onframe=function(t,e){u(t,e);for(var n=0;n<i._onframeList[L];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[s],n=0;n<e[L];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[L]=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",[E,"../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/model/mixin/boxLayout",[E],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(x),width:this.get("width"),height:this.get(_)}}}}),e("zrender/animation/Clip",[E,"./easing"],function(t){function e(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e[D]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==S?i[n]:n,a=typeof r===h?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,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/config",[],function(){var t=1;typeof window!==i&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/curve",[E,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,u=3*(n-2*i+t),l=3*(i-t),c=t-a,h=u*u-3*s*l,f=u*l-9*s*c,d=l*l-3*u*c,p=0;if(e(h)&&e(f))if(e(u))o[0]=0;else{var m=-l/u;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-u/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),T=h*u+1.5*s*(-f+b),S=h*u+1.5*s*(-f-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var m=(-u-(T+S))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var C=(2*h*u-3*s*f)/(2*_(h*h*h)),A=Math.acos(C)/3,L=_(h),P=Math.cos(A),m=(-u-2*L*P)/(3*s),x=(-u+L*(P+w*Math.sin(A)))/(3*s),k=(-u+L*(P-w*Math.sin(A)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),k>=0&&1>=k&&(o[p++]=k)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,u=9*n+3*a-3*t-9*r,l=3*n-3*t,c=0;if(e(u)){if(i(s)){var h=-l/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*u*l;if(e(f))o[0]=-s/(2*u);else if(f>0){var d=_(f),h=(-s+d)/(2*u),p=(-s-d)/(2*u);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,u=(n-i)*r+i,l=(s-o)*r+o,c=(u-s)*r+s,h=(c-l)*r+l;a[0]=t,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=c,a[6]=u,a[7]=n}function u(t,e,i,r,a,o,s,u,l,c,h){var f,d,p,m,v,y=.005,x=1/0;T[0]=l,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,u,w),m=g(T,S),x>m&&(f=w,x=m);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,S[0]=n(t,i,a,s,d),S[1]=n(e,r,o,u,d),m=g(S,T),d>=0&&x>m?(f=d,x=m):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,u,p),v=g(C,T),1>=p&&x>v?(f=p,x=v):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,u,f)),_(x)}function l(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,u=2*(n-t),l=t-a,c=0;if(e(s)){if(i(u)){var h=-l/u;h>=0&&1>=h&&(o[c++]=h)}}else{var f=u*u-4*s*l;if(e(f)){var h=-u/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=_(f),h=(-u+d)/(2*s),p=(-u-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,u){var c,h=.005,f=1/0;T[0]=o,T[1]=s;for(var d=0;1>d;d+=.05){S[0]=l(t,i,r,d),S[1]=l(e,n,a,d);var p=g(T,S);f>p&&(c=d,f=p)}f=1/0;for(var m=0;32>m&&!(b>h);m++){var v=c-h,y=c+h;S[0]=l(t,i,r,v),S[1]=l(e,n,a,v);var p=g(S,T);if(v>=0&&f>p)c=v,f=p;else{C[0]=l(t,i,r,y),C[1]=l(e,n,a,y);var x=g(C,T);1>=y&&f>x?(c=y,f=x):h*=.5}}return u&&(u[0]=l(t,i,r,c),u[1]=l(e,n,a,c)),_(f)}var m=t("./vector"),v=m[P],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),M=1/3,T=v(),S=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:u,quadraticAt:l,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/core/bbox",[E,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,u=e[P](),l=e[P](),c=e[P](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[L]){var n,o=t[0],s=o[0],u=o[0],l=o[1],c=o[1];for(n=1;n<t[L];n++)o=t[n],s=r(s,o[0]),u=a(u,o[0]),l=r(l,o[1]),c=a(c,o[1]);e[0]=s,e[1]=l,i[0]=u,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var f=[],d=[];return n.fromCubic=function(t,e,n,o,s,u,l,c,h,p){var m,v=i.cubicExtrema,g=i.cubicAt,y=v(t,n,s,l,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,m=0;y>m;m++){var _=g(t,n,s,l,f[m]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=v(e,o,u,c,d),m=0;y>m;m++){var x=g(e,o,u,c,d[m]);h[1]=r(x,h[1]),p[1]=a(x,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(l,h[0]),p[0]=a(l,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromQuadratic=function(t,e,n,o,s,u,l,c){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,u),1),0),m=f(t,n,s,d),v=f(e,o,u,p);l[0]=r(t,s,m),l[1]=r(e,u,v),c[0]=a(t,s,m),c[1]=a(e,u,v)},n.fromArc=function(t,i,n,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-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(u[0]=s(a)*n+t,u[1]=o(a)*r+i,l[0]=s(f)*n+t,l[1]=o(f)*r+i,v(p,u,l),g(m,u,l),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&&(c[0]=s(x)*n+t,c[1]=o(x)*r+i,v(p,c,p),g(m,c,m))},n}),e("zrender/contain/util",[E],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/arc",[E,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,u,l,c){if(0===u)return!1;var h=u;l-=t,c-=n;var f=Math.sqrt(l*l+c*c);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%i<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+=i);var p=Math.atan2(c,l);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,u=0,l=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;u=(e-n)/(t-i),l=(t*n-i*e)/(t-i);var c=u*a-o+l,h=c*c/(u*u+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[E,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,l,c,h){if(0===l)return!1;var f=l;if(h>i+f&&h>r+f&&h>o+f&&h>u+f||i-f>h&&r-f>h&&o-f>h&&u-f>h||c>t+f&&c>n+f&&c>a+f&&c>s+f||t-f>c&&n-f>c&&a-f>c&&s-f>c)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,u,c,h,null);return f/2>=d}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var u=s*(i-t)+t;return u>r?o:0}}),e("zrender/contain/quadratic",[E,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,u,l){if(0===s)return!1;var c=s;if(l>i+c&&l>r+c&&l>o+c||i-c>l&&r-c>l&&o-c>l||u>t+c&&u>n+c&&u>a+c||t-c>u&&n-c>u&&a-c>u)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,u,l,null);return c/2>=h}}}),e("zrender/core/LRU",[E],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[D];e.insert=function(t){var e=new i(t);return this.insertEntry(e),e},e.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},e.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=n[D];return r.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i.remove(a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/poly",[E,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n.points,o=n.smooth;if(a&&a[L]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var u=a[L],l=0;(r?u:u-1)>l;l++){var c=s[2*l],h=s[2*l+1],f=a[(l+1)%u];t.bezierCurveTo(c[0],c[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 l=1,d=a[L];d>l;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}}}),e("zrender/graphic/helper/smoothBezier",[E,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,u,l){var c,h,f,d,p=[],m=[],v=[],g=[];if(l){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[L];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,l[0]),n(d,d,l[1])}for(var y=0,_=t[L];_>y;y++){var x=t[y];if(u)c=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(m,h,c),r(m,m,s);var b=a(x,c),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var T=o([],x,v),S=o([],x,g);l&&(n(T,T,f),i(T,T,d),n(S,S,f),i(S,S,d)),p.push(T),p.push(S)}return u&&p.push(p.shift()),p}}),e("zrender/graphic/helper/smoothSpline",[E,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),u=.5*(n-e);return(2*(e-i)+s+u)*o+(-3*(e-i)-2*s-u)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[L],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var u=o/2;u=r>u?r:u;for(var s=0;u>s;s++){var l,c,h,f=s/(u-1)*(n?r:r-1),d=Math.floor(f),p=f-d,m=t[d%r];n?(l=t[(d-1+r)%r],c=t[(d+1)%r],h=t[(d+2)%r]):(l=t[0===d?d:d-1],c=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(l[0],m[0],c[0],h[0],p,v,g),e(l[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/graphic/helper/roundRect",[E],function(){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,u=e.width,l=e[_],c=e.r;0>u&&(o+=u,u=-u),0>l&&(s+=l,l=-l),"number"==typeof c?i=n=r=a=c:c instanceof Array?1===c[L]?i=n=r=a=c[0]:2===c[L]?(i=r=c[0],n=a=c[1]):3===c[L]?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0;var h;i+n>u&&(h=i+n,i*=u/h,n*=u/h),r+a>u&&(h=r+a,r*=u/h,a*=u/h),n+r>l&&(h=n+r,n*=l/h,r*=l/h),i+a>l&&(h=i+a,i*=l/h,a*=l/h),t.moveTo(o+i,s),t.lineTo(o+u-n,s),0!==n&&t.quadraticCurveTo(o+u,s,o+u,s+n),t.lineTo(o+u,s+l-r),0!==r&&t.quadraticCurveTo(o+u,s+l,o+u-r,s+l),t.lineTo(o+a,s+l),0!==a&&t.quadraticCurveTo(o,s+l,o,s+l-a),t.lineTo(o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/Storage",[E,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[p]===e[p]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[p]-e[p]}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[D]={constructor:o,traverse:function(t,e){for(var i=0;i<this._roots[L];i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var i=this._roots,r=this._displayList,o=0,s=i[L];s>o;o++)this._updateAndAddDisplayable(i[o],null,t);r[L]=this._displayListLen,n.canvasSupported&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[b]||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;a<r[L];a++){var o=r[a];t.__dirty&&(o.__dirty=!0),this._updateAndAddDisplayable(o,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof r&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[L];e++){var n=this._roots[e];n instanceof r&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[L];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==S?this._elements[t]:t; -var s=i[c](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[v](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("zrender/animation/Animation",[E,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[D]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[s]=this;for(var e=t.getClips(),i=0;i<e[L];i++)this.addClip(e[i])},removeClip:function(t){var i=e[c](this._clips,t);i>=0&&this._clips[v](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[L];i++)this.removeClip(e[i]);t[s]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[L],r=[],a=[],o=0;n>o;o++){var s=i[o],u=s.step(t);u&&(r.push(u),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[L];for(var o=0;n>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&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("echarts/coord/axisHelper",[E,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",O,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var o=t("../scale/Scale"),s=t("../util/number"),u=t(O),l=t("zrender/contain/text"),c={};return c.getScaleExtent=function(t,e){var i=t.scale,n=i[z](),r=n[1]-n[0];if(i.type===a)return isFinite(r)?n:[0,0];var o=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),c=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),h=e.get("boundaryGap");u[f](h)||(h=[h||0,h||0]),h[0]=s.parsePercent(h[0],1),h[1]=s.parsePercent(h[1],1);var d=!0,p=!0;return null==o&&(o=n[0]-h[0]*r,d=!1),null==l&&(l=n[1]+h[1]*r,p=!1),"dataMin"===o&&(o=n[0]),"dataMax"===l&&(l=n[1]),c&&(o>0&&l>0&&!d&&(o=0),0>o&&0>l&&!p&&(l=0)),[o,l]},c.niceScaleExtent=function(t,e){var i=t.scale,n=c.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var s=e.get("minInterval");if(isFinite(s)&&!r&&!a&&"interval"===i.type){var u=i.getInterval(),l=Math.max(Math.abs(u),s)/u;n=i[z](),i.setExtent(l*n[0],n[1]*l),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},c.createScaleByModel=function(t,n){if(n=n||t.get("type"))switch(n){case"category":return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(o.getClass(n)||i)[P](t)}},c.ifAxisCrossZero=function(t){var e=t.scale[z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},c.getAxisLabelInterval=function(t,e,i,a){var o,s=0,u=0,c=1;e[L]>40&&(c=Math.floor(e[L]/40));for(var h=0;h<t[L];h+=c){var f=t[h],d=l[n](e[h],i,r,"top");d[a?"x":"y"]+=f,d[a?"width":_]*=1.3,o?o.intersect(d)?(u++,s=Math.max(s,u)):(o.union(d),u=0):o=d.clone()}return 0===s&&c>1?c:(s+1)*c-1},c.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===S?(e=function(t){return function(e){return t[d]("{value}",e)}}(e),u.map(n,e)):typeof e===h?u.map(r,function(n,r){return e("category"===t.type?i.getLabel(n):n,r)},this):n},c}),e("zrender/Handler",[E,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":k](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[k](e,i))return!1;n=n.parent}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[D].dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],u=function(t,e,n){o.call(this),this.storage=t,this.painter=e,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return u[D]={constructor:u,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t),this.trigger("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o.trigger(i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==h&&t[r].call(t,a),t.trigger&&t.trigger(i,a)}))},findHover:function(t,e,i){for(var r=this.storage.getDisplayList(),a=r[L]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][b]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){u[D][t]=function(e){var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(i,t,e)}}),r.mixin(u,o),r.mixin(u,a),u}),e("zrender/dom/HandlerProxy",[E,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r.target,a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i<g[L];i++){var n=g[i];t._handlers[n]=u.bind(y[n],t)}for(var i=0;i<v[L];i++){var n=v[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){u.each(i,function(i){f(t,e(i),n._handlers[i])},n)}l.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new h,this._handlers={},a(this),r()&&i(g,this),i(v,this)}var s=t("../core/event"),u=t("../core/util"),l=t("../mixin/Eventful"),c=t("../core/env"),h=t("../core/GestureMgr"),f=s.addEventListener,d=s.removeEventListener,p=s.normalizeEvent,m=300,v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=p(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=p(this.dom,t),this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<m&&y.click.call(this,t),n(this)}};u.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){y[t]=function(e){e=p(this.dom,e),this.trigger(t,e)}});var _=o[D];return _.dispose=function(){for(var t=v.concat(g),i=0;i<t[L];i++){var n=t[i];d(this.dom,e(n),this._handlers[n])}},_.setCursor=function(t){this.dom.style.cursor=t||"default"},u.mixin(o,l),o}),e("zrender/Painter",[E,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t.resize!==h||typeof t.refresh!==h?!1:!0:!1}function r(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function s(t,e,i){return T.copy(t[n]()),t.transform&&T.applyTransform(t.transform),S.width=e,S[_]=i,!T.intersect(S)}function u(t,e){if(t==e)return!1;if(!t||!e||t[L]!==e[L])return!0;for(var i=0;i<t[L];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var i=0;i<t[L];i++){var n,r=t[i];r.transform&&(n=r.transform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r.transform&&(n=r.invTransform,e.transform(n[0],n[1],n[2],n[3],n[4],n[5]))}}function f(t,e){var i=document.createElement("div"),n=i.style;return n[o]="relative",n.overflow="hidden",n.width=t+"px",n[_]=e+"px",i}var d=t("./config"),m=t("./core/util"),g=t("./core/log"),y=t("./core/BoundingRect"),x=t("./core/timsort"),b=t("./Layer"),w=t("./animation/requestAnimationFrame"),M=5,T=new y(0,0,0,0),S=new y(0,0,0,0),C=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||d.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},n){var s=t.width,u=t[_];this._width=s,this._height=u;var l=new b(t,this,1);l.initContext(),o[0]=l,a.push(0)}else{this._width=this._getWidth(),this._height=this._getHeight();var c=this._domRoot=f(this._width,this._height);t.appendChild(c)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return C[D]={constructor:C,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[L];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[L]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i.setStyle(e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=m[c](i,e);n>=0&&i[v](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[L];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[L]=0},refreshHover:function(){var t=this._hoverElements,e=t[L],i=this._hoverlayer;if(i&&i.clear(),e){x(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t[v](r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,w(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,w(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,m.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(r),this._doPaintList(t,e),this.eachBuildinLayer(a)},_doPaintList:function(t,e){function i(t){a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.drawImage(t.dom,0,0,c,h),a.restore(),n.ctx.restore()}for(var n,r,a,o,s,u,l=0,c=this._width,h=this._height,f=this._progress,d=0,v=t[L];v>d;d++){var y=t[d],_=this._singleCanvas?0:y[p],x=y.__frame;if(0>x&&s&&(i(s),s=null),r!==_&&(a&&a.restore(),o={},r=_,n=this.getLayer(r),n.isBuildin||g("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(l++,M-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){d=s.__nextIdxNotProg-1;continue}u=s.__progress,s.__dirty||(f=u),s.__progress=f+1}x===f&&this._doPaintEl(y,s,!0,s.renderScope)}else this._doPaintEl(y,n,e,o);y.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,m.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,n){var r=e.ctx;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&t.scale[0]&&t.scale[1]&&(!t.culling||!s(t,this._width,this._height))){var a=t.__clipPaths;(n.prevClipLayer!==e||u(a,n.prevElClipPaths))&&(n.prevElClipPaths&&(n.prevClipLayer.ctx.restore(),n.prevClipLayer=n.prevElClipPaths=null,n.prevEl=null),a&&(r.save(),l(a,r),n.prevClipLayer=e,n.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new b("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&m.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[L],o=null,s=-1,u=this._domRoot;if(n[t])return void g("ZLevel "+t+" has been used already");if(!i(e))return void g("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[v](s+1,0,t),o){var l=o.dom;l.nextSibling?u.insertBefore(e.dom,l.nextSibling):u.appendChild(e.dom)}else u.firstChild?u.insertBefore(e.dom,u.firstChild):u.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[L];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[L];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[L];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i=this._progressiveLayers,n={},r={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0,t.__dirty=!1}),m.each(i,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var a,o,s=0,u=0,l=0,c=t[L];c>l;l++){var h=t[l],f=this._singleCanvas?0:h[p],d=e[f],v=h.progressive;if(d&&(d.elCount++,d.__dirty=d.__dirty||h.__dirty),v>=0){o!==v&&(o=v,u++);var g=h.__frame=u-1;if(!a){var y=Math.min(s,M-1);a=i[y],a||(a=i[y]=new b("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||h.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,g),a.__maxProgress>=a.__progress&&(d.__dirty=!0)}else h.__frame=-1,a&&(a.__nextIdxNotProg=l,s++,a=null)}a&&(s++,a.__nextIdxNotProg=l),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[L]=Math.min(s,M),m.each(i,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?m.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&m.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[v](m[c](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[_]=e+"px";for(var n in this._layers)this._layers[n].resize(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 b("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),n={},r=0;r<i[L];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[_])||e(t.style[_]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var s=document.createElement("canvas"),u=s.getContext("2d");s.width=n*a,s[_]=r*a,u.clearRect(0,0,n*a,r*a);var l={position:i[o],rotation:i.rotation,scale:i.scale};i[o]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(u);var c=t("./graphic/Image"),h=new c({id:e,style:{x:0,y:0,image:s}});return null!=l[o]&&(h[o]=i[o]=l[o]),null!=l.rotation&&(h.rotation=i.rotation=l.rotation),null!=l.scale&&(h.scale=i.scale=l.scale),h},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},C}),e("echarts/coord/cartesian/Cartesian2D",[E,O,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(O),n=t("./Cartesian");return e[D]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(a)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[k](e.toLocalCoord(t[0]))&&i[k](i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[l](e,n),e}),e("echarts/coord/cartesian/GridModel",[E,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[I]({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("echarts/scale/Ordinal",[E,O,"./Scale"],function(t){var e=t(O),i=t("./Scale"),n=i[D],r=i[I]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[L]-1]},parse:function(t){return typeof t===S?e[c](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[k].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[P]=function(){return new r},r}),e("zrender/mixin/Draggable",[E],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[D]={constructor:t,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("echarts/coord/cartesian/Axis2D",[E,O,"../Axis","./axisLabelInterval"],function(t){var e=t(O),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[o]=a||x};return r[D]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[o];return"top"===t||t===x},getGlobalExtent:function(){var t=this[z]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return typeof e===h&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[l](r,i),r}),e("echarts/coord/cartesian/Cartesian",[E,O],function(t){function e(t){return this._axes[t]}var i=t(O),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[D]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[C](),i.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[L];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/animation/requestAnimationFrame",[E],function(){return typeof window!==i&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/event",[E,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,i,n){var r=e(t);return n=n||{},n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top,n}function r(t,e){if(e=e||window.event,null!=e.zrX)return e;var i=e.type,r=i&&i[c]("touch")>=0;if(r){var a="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];a&&n(t,a,e)}else n(t,e,e),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function a(t,e,i){u?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){u?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var s=t("../mixin/Eventful"),u=typeof window!==i&&!!window.addEventListener,l=u?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:n,normalizeEvent:r,addEventListener:a,removeEventListener:o,stop:l,Dispatcher:s}}),e("echarts/coord/cartesian/axisLabelInterval",[E,O,"../axisHelper"],function(t){var e=t(O),i=t("../axisHelper");return function(t){var n=t.model,r=n[T]("axisLabel"),a=r.get("interval");return"category"!==t.type||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[T]("textStyle").getFont(),t.isHorizontal())}}),e("echarts/coord/Axis",[E,"../util/number",O],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(O),o=[0,1],s=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return s[D]={constructor:s,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[k](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[z](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,s=this.scale;return t=s.normalize(t),this.onBand&&s.type===a&&(r=r.slice(),e(r,s.count())),n(t,o,r,i)},coordToData:function(t,i){var r=this._extent,s=this.scale;this.onBand&&s.type===a&&(r=r.slice(),e(r,s.count()));var u=n(t,r,o,i);return this.scale.scale(u)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[L];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[z](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[z](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},s}),e("zrender/core/GestureMgr",[E,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[D]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[L]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[L];s>o;o++){var u=r[o],l=n.clientToLocal(i,u);a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[L];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[L]>1&&a&&a[L]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var u=i(a);return n.pinchX=u[0],n.pinchY=u[1],{type:"pinch",target:t[0].target,event:n}}}}};return r}),e("echarts/coord/cartesian/AxisModel",[E,"../../model/Component",O,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?"category":"value")}var i=t("../../model/Component"),n=t(O),r=t("../axisModelCreator"),a=i[I]({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.option.rangeStart=t,this.option.rangeEnd=e},getMin:function(){var t=this.option;return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this.option;return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});n.merge(a[D],t("../axisModelCommonMixin"));var o={gridIndex:0,offset:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/Layer",[E,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document.createElement(e),a=i[M](),s=i[w](),u=r.style;return u[o]="absolute",u.left=0,u.top=0,u.width=a+"px",u[_]=s+"px",r.width=a*n,r[_]=s*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),s=t("./graphic/Pattern"),u=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===S?s=i(t,"canvas",a,o):n[g](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var u=s.style;u&&(s.onselectstart=e,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return u[D]={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[_]=e+"px",n.width=t*i,n[_]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[_]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[_],o=this.clearColor,u=this.motionBlur&&!t,l=this.lastFrameAlpha,c=this.dpr;if(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,r/c)),i.clearRect(0,0,n/c,r/c),o){var h;o.colorStops?(h=o.__canvasGradient||a.getGradient(i,o,{x:0,y:0,width:n/c,height:r/c}),o.__canvasGradient=h):o.image&&(h=s[D].getCanvasPattern.call(o,i)),i.save(),i.fillStyle=h||o,i.fillRect(0,0,n/c,r/c),i.restore()}if(u){var f=this.domBack;i.save(),i.globalAlpha=l,i.drawImage(f,0,0,n/c,r/c),i.restore()}}},u}),e("echarts/coord/axisModelCreator",[E,"./axisDefault",O,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(O),n=t("../model/Component"),r=t("../util/layout"),a=["value","category","time","log"];return function(t,o,s,u){i.each(a,function(n){o[I]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,u=o?r.getLayoutParams(e):{},l=a.getTheme();i.merge(e,l.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,u,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],u],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[E,O,"./axisHelper"],function(t){function e(t){return r[g](t)&&null!=t.value?t.value:t}function i(){return"category"===this.get("type")&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(O),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/preprocessor/helper/compatStyle",[E,O],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e.normal,a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n].normal?i.merge(t[n].normal,r[n]):t[n].normal=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?i.merge(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)})}var i=t(O),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var n=t.data;if(n){for(var r=0;r<n[L];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[L];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var u=s.data,r=0;r<u[L];r++)i[f](u[r])?(e(u[r][0]),e(u[r][1])):e(u[r])}}}}),e("echarts/coord/axisDefault",[E,O],function(t){var e=t(O),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e.defaults({scale:!0,min:"dataMin",max:"dataMax"},r),o=e.defaults({},r); -return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/axis/AxisView",[E,O,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t.coordinateSystem,r=e.axis,a={},s=r[o],u=r.onZero?"onZero":s,l=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[_]],f=e.get("offset")||0,d={x:{top:h[2]-f,bottom:h[3]+f},y:{left:h[0]-f,right:h[1]+f}};d.x.onZero=Math.max(Math.min(i("y"),d.x[x]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[o]=["y"===l?d.y[u]:h[0],"x"===l?d.x[u]:h[3]],a.rotation=Math.PI/2*("x"===l?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],r.onZero&&(a.labelOffset=d[l][s]-d[l].onZero),e[T]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[T]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var m=e[T]("axisLabel").get("rotate");return a.labelRotation="top"===u?-m:m,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(O),n=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,s=r.getInterval,u=["axisLine","axisLabel","axisTick","axisName"],l=["splitArea","splitLine"],c=t("../../echarts").extendComponentView({type:"axis",render:function(t,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var s=a.getComponent("grid",t.get("gridIndex")),c=e(s,t),h=new r(t,c);i.each(u,h.add,h),this._axisGroup.add(h.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,s,c.labelInterval)},this),n.groupTransition(o,this._axisGroup,t)}},_splitLine:function(t,e,r){var o=t.axis,u=t[T]("splitLine"),l=u[T]("lineStyle"),c=l.get("color"),h=s(u,r);c=i[f](c)?c:[c];for(var d=e.coordinateSystem.getRect(),p=o.isHorizontal(),m=0,v=o.getTicksCoords(),g=o.scale.getTicks(),y=[],x=[],b=l.getLineStyle(),w=0;w<v[L];w++)if(!a(o,w,h)){var M=o.toGlobalCoord(v[w]);p?(y[0]=M,y[1]=d.y,x[0]=M,x[1]=d.y+d[_]):(y[0]=d.x,y[1]=M,x[0]=d.x+d.width,x[1]=M);var S=m++%c[L];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+g[w],shape:{x1:y[0],y1:y[1],x2:x[0],y2:x[1]},style:i.defaults({stroke:c[S]},b),silent:!0})))}},_splitArea:function(t,e,r){var o=t.axis,u=t[T]("splitArea"),l=u[T]("areaStyle"),c=l.get("color"),h=e.coordinateSystem.getRect(),d=o.getTicksCoords(),p=o.scale.getTicks(),m=o.toGlobalCoord(d[0]),v=o.toGlobalCoord(d[0]),g=0,y=s(u,r),x=l.getAreaStyle();c=i[f](c)?c:[c];for(var b=1;b<d[L];b++)if(!a(o,b,y)){var w,M,S,C,A=o.toGlobalCoord(d[b]);o.isHorizontal()?(w=m,M=h.y,S=A-w,C=h[_]):(w=h.x,M=v,S=h.width,C=A-M);var P=g++%c[L];this._axisGroup.add(new n.Rect({anid:"area_"+p[b],shape:{x:w,y:M,width:S,height:C},style:i.defaults({fill:c[P]},x),silent:!0})),m=w+S,v=M+C}}});c[I]({type:"xAxis"}),c[I]({type:"yAxis"})}),e("echarts/component/axis/AxisBuilder",[E,O,"../../util/format","../../util/graphic","../../model/Model","../../util/number",A],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function i(t,e,i){var n,a,o=m(e-t.rotation);return v(o)?(a=i>0?"top":x,n=r):v(o-w)?(a=i>0?x:"top",n=r):(a="middle",n=o>0&&w>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,verticalAlign:a}}function s(t,e,i,n){var a,o,s=m(i-t.rotation),u=n[0]>n[1],l="start"===e&&!u||"start"!==e&&u;return v(s-w/2)?(o=l?x:"top",a=r):v(s-1.5*w)?(o=l?"top":x,a=r):(o="middle",a=1.5*w>s&&s>w/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:a,verticalAlign:o}}function u(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(O),c=t("../../util/format"),f=t("../../util/graphic"),d=t("../../model/Model"),p=t("../../util/number"),m=p.remRadian,v=p.isRadianAroundZero,g=t(A),y=g.applyTransform,_=l.retrieve,w=Math.PI,M=function(t,e){this.opt=e,this.axisModel=t,l.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var i=new f.Group({position:e[o].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};M[D]={constructor:M,hasBuilder:function(t){return!!S[t]},add:function(t){S[t].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[z](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(y(r,r,n),y(a,a,n)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[I]({lineCap:"round"},e[T]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[T]("axisTick"),n=this.opt,r=i[T]("lineStyle"),a=i.get(L),o=P(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale.getTicks(),c=[],h=[],d=this._transform,p=0;p<s[L];p++)if(!C(e,p,o)){var m=s[p];c[0]=m,c[1]=0,h[0]=m,h[1]=n.tickDirection*a,d&&(y(c,c,d),y(h,h,d)),this.group.add(new f.Line(f.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:l.defaults(r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[n]().clone(),r=e&&e[n]().clone();return i&&r?(i.applyTransform(t.getLocalTransform()),r.applyTransform(e.getLocalTransform()),i.intersect(r)):void 0}var r=this.opt,a=this.axisModel,o=_(r.axisLabelShow,a.get("axisLabel.show"));if(o){var s=a.axis,l=a[T]("axisLabel"),c=l[T]("textStyle"),p=l.get("margin"),m=s.scale.getTicks(),v=a.getFormattedLabels(),g=_(r.labelRotation,l.get("rotate"))||0;g=g*w/180;for(var y=i(r,g,r.labelDirection),x=a.get("data"),M=[],S=u(a),A=a.get("triggerEvent"),P=0;P<m[L];P++)if(!C(s,P,r.labelInterval)){var k=c;x&&x[P]&&x[P].textStyle&&(k=new d(x[P].textStyle,c,a.ecModel));var z=k.getTextColor()||a.get("axisLine.lineStyle.color"),I=s.dataToCoord(m[P]),D=[I,r.labelOffset+r.labelDirection*p],O=s.scale.getLabel(m[P]),E=new f.Text({anid:"label_"+m[P],style:{text:v[P],textAlign:k.get("align",!0)||y.textAlign,textVerticalAlign:k.get("baseline",!0)||y.verticalAlign,textFont:k.getFont(),fill:typeof z===h?z(O):z},position:D,rotation:y.rotation,silent:S,z2:10});A&&(E.eventData=e(a),E.eventData.targetType="axisLabel",E.eventData.value=O),this._dumbGroup.add(E),E.updateTransform(),M.push(E),this.group.add(E),E.decomposeTransform()}if("category"!==s.type){if(a.getMin?a.getMin():a.get("min")){var R=M[0],B=M[1];t(R,B)&&(R[b]=!0)}if(a.getMax?a.getMax():a.get("max")){var N=M[M[L]-1],F=M[M[L]-2];t(F,N)&&(N[b]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,r=_(t.axisName,n.get("name"));if(r){var a,o=n.get("nameLocation"),h=t.nameDirection,d=n[T]("nameTextStyle"),p=n.get("nameGap")||0,m=this.axisModel.axis[z](),v=m[0]>m[1]?-1:1,g=["start"===o?m[0]-v*p:"end"===o?m[1]+v*p:(m[0]+m[1])/2,"middle"===o?t.labelOffset+h*p:0],y=n.get("nameRotate");null!=y&&(y=y*w/180);var x;"middle"===o?a=i(t,null!=y?y:t.rotation,h):(a=s(t,o,y||0,m),x=t.axisNameAvailableWidth,null!=x&&(x=Math.abs(x/Math.sin(a.rotation)),!isFinite(x)&&(x=null)));var b=d.getFont(),M=n.get("nameTruncate",!0)||{},S=M.ellipsis,C=_(M.maxWidth,x),A=null!=S&&null!=C?c.truncateText(r,C,b,S,{minChar:2,placeholder:M.placeholder}):r,L=n.get("tooltip",!0),P=n.mainType,k={componentType:P,name:r,$vars:["name"]};k[P+"Index"]=n.componentIndex;var D=new f.Text({anid:"name",__fullText:r,__truncatedText:A,style:{text:A,textFont:b,fill:d.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.verticalAlign},position:g,rotation:a.rotation,silent:u(n),z2:1,tooltip:L&&L.show?l[I]({content:r,formatter:function(){return r},formatterParams:k},L):null});n.get("triggerEvent")&&(D.eventData=e(n),D.eventData.targetType="axisName",D.eventData.name=r),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},C=M.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===a&&(typeof i===h?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},P=M.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return M}),e("echarts/data/DataDiffer",[E],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i,n){for(var r=0;r<t[L];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[L]||(e[a]=o=[o]),o.push(r))}}return e[D]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={},u=[],l=[];for(i(e,o,u,r),i(n,s,l,a),t=0;t<e[L];t++){var c=u[t],h=s[c];if(null!=h){var f=h[L];f?(1===f&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<l[L];t++){var c=l[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[L])for(var d=0,f=h[L];f>d;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("echarts/chart/helper/createListFromArray",[E,"../../data/List","../../data/helper/completeDimensions",O,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[L]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!h[f](m(i))}function n(t,e,n){t=t||[];var r=e.get("coordinateSystem"),a=g[r],o=p.get(r),f=a&&a(t,e,n),y=f&&f.dimensions;y||(y=o&&o.dimensions||["x","y"],y=l(y,t,y.concat(["value"])));var _=f?f.categoryIndex:-1,x=new u(y,e),b=s(f,t),w={},M=_>=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===_?i:v(m(t),y[n])}:function(t,e,i,n){var r=m(t),a=v(r&&r[n],y[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var o=f&&f.categoryAxesModels;return o&&o[e]&&typeof a===S&&(w[e]=w[e]||o[e].getCategories(),a=h[c](w[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x.hasItemOption=!1,x.initData(t,b,M),x}function r(t){return"category"!==t&&"time"!==t}function o(t){return"category"===t?a:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[L];if(h[f](e[0])&&e[0][L]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var u=t("../../data/List"),l=t("../../data/helper/completeDimensions"),h=t(O),d=t("../../util/model"),p=t("../../CoordinateSystem"),m=d.getDataItemValue,v=d.converDataValue,g={cartesian2d:function(t,e,i){var n=i.getComponent("xAxis",e.get("xAxisIndex")),a=i.getComponent("yAxis",e.get("yAxisIndex")),s=n.get("type"),u=a.get("type"),c=[{name:"x",type:o(s),stackable:r(s)},{name:"y",type:o(u),stackable:r(u)}],h="category"===s,f="category"===u;l(c,t,["x","y","z"]);var d={};return h&&(d.x=n),f&&(d.y=a),{dimensions:c,categoryIndex:h?0:f?1:-1,categoryAxesModels:d}},polar:function(t,e,i){var n=e.get("polarIndex")||0,a=function(t){return t.get("polarIndex")===n},s=i.findComponents({mainType:"angleAxis",filter:a})[0],u=i.findComponents({mainType:"radiusAxis",filter:a})[0],c=u.get("type"),h=s.get("type"),f=[{name:"radius",type:o(c),stackable:r(c)},{name:"angle",type:o(h),stackable:r(h)}],d="category"===h,p="category"===c;l(f,t,["radius","angle","value"]);var m={};return p&&(m.radius=u),d&&(m.angle=s),{dimensions:f,categoryIndex:d?1:p?0:-1,categoryAxesModels:m}},geo:function(t){return{dimensions:l([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/data/helper/completeDimensions",[E,O],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),u=n[f](s)&&s[L]||1;a=a||[],o=o||"extra";for(var l=0;u>l;l++)if(!t[l]){var c=a[l]||o+(l-a[L]);t[l]=r(e,l)?{type:"ordinal",name:c}:c}return t}function i(t){return n[f](t)?t:n[g](t)?t.value:t}var n=t(O),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[L];a>r;r++){var o=i(t[r]);if(!n[f](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("echarts/chart/helper/Symbol",[E,O,"../../util/symbol","../../util/graphic","../../util/number"],function(t){function e(t){return t instanceof Array||(t=[+t,+t]),t}function i(t,e,i){c.Group.call(this),this.updateData(t,e,i)}function n(t,e){this.parent.drift(t,e)}var r=t(O),s=t("../../util/symbol"),c=t("../../util/graphic"),h=t("../../util/number"),f=i[D];f._createSymbol=function(t,i,r){this.removeAll();var a=i.hostModel,o=i.getItemVisual(r,"color"),u=s.createSymbol(t,-.5,-.5,1,1,o);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=n;var l=e(i.getItemVisual(r,"symbolSize"));c.initProps(u,{scale:l},a,r),this._symbolType=t,this.add(u)},f.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(t,e){var i=this.childAt(0);i[p]=t,i.z=e},f.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},f.updateData=function(t,i,n){this.silent=!1;var r=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,o=e(t.getItemVisual(i,"symbolSize"));if(r!==this._symbolType)this._createSymbol(r,t,i);else{var s=this.childAt(0);c.updateProps(s,{scale:o},a,i)}this._updateCommon(t,i,o,n),this._seriesModel=a};var d=["itemStyle","normal"],v=["itemStyle","emphasis"],g=["label","normal"],y=["label","emphasis"];return f._updateCommon=function(t,i,n,s){var l=this.childAt(0),f=t.hostModel,p=t.getItemVisual(i,"color");"image"!==l.type&&l.useStyle({strokeNoScale:!0}),s=s||null;var m=s&&s.itemStyle,_=s&&s.hoverItemStyle,x=s&&s.symbolRotate,b=s&&s.symbolOffset,w=s&&s.labelModel,M=s&&s.hoverLabelModel,S=s&&s.hoverAnimation;if(!s||t.hasItemOption){var C=t.getItemModel(i);m=C[T](d).getItemStyle(["color"]),_=C[T](v).getItemStyle(),x=C[u]("symbolRotate"),b=C[u]("symbolOffset"),w=C[T](g),M=C[T](y),S=C[u]("hoverAnimation")}else _=r[I]({},_);var A=l.style;l.rotation=(x||0)*Math.PI/180||0,b&&l.attr(o,[h.parsePercent(b[0],n[0]),h.parsePercent(b[1],n[1])]),l.setColor(p),l.setStyle(m);var P=t.getItemVisual(i,"opacity");null!=P&&(A.opacity=P);for(var k,z,D=t.dimensions.slice();D[L]&&(k=D.pop(),z=t.getDimensionInfo(k).type,z===a||"time"===z););null!=k&&w[u]("show")?(c.setText(A,w,p),A.text=r.retrieve(f.getFormattedLabel(i,"normal"),t.get(k,i))):A.text="",null!=k&&M[u]("show")?(c.setText(_,M,p),_.text=r.retrieve(f.getFormattedLabel(i,"emphasis"),t.get(k,i))):_.text="";var O=e(t.getItemVisual(i,"symbolSize"));if(l.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.setHoverStyle(l,_),S&&f.ifEnableAnimation()){var E=function(){var t=O[1]/O[0];this.animateTo({scale:[Math.max(1.1*O[0],O[0]+3),Math.max(1.1*O[1],O[1]+3*t)]},400,"elasticOut")},R=function(){this.animateTo({scale:O},400,"elasticOut")};l.on("mouseover",E).on("mouseout",R).on("emphasis",E).on("normal",R)}},f.fadeOut=function(t){var e=this.childAt(0);this.silent=!0,e.style.text="",c.updateProps(e,{scale:[0,0]},this._seriesModel,this[m],t)},r[l](i,c.Group),i}),e("echarts/chart/helper/SymbolDraw",[E,"../../util/graphic","./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t.getItemLayout(e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t.getItemVisual(e,"symbol"))}var n=t("../../util/graphic"),r=t("./Symbol"),a=e[D];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,s=this._data,u=this._symbolCtor,l={itemStyle:a[T]("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:a[T]("itemStyle.emphasis").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a[T]("label.normal"),hoverLabelModel:a[T]("label.emphasis")};t.diff(s).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var s=new u(t,n,l);s.attr(o,a),t.setItemGraphicEl(n,s),r.add(s)}}).update(function(c,h){var f=s.getItemGraphicEl(h),d=t.getItemLayout(c);return i(t,c,e)?(f?(f.updateData(t,c,l),n.updateProps(f,{position:d},a)):(f=new u(t,c),f.attr(o,d)),r.add(f),void t.setItemGraphicEl(c,f)):void r.remove(f)}).remove(function(t){var e=s.getItemGraphicEl(t);e&&e.fadeOut(function(){r.remove(e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr(o,n)})},a.remove=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},e}),e("echarts/chart/line/lineAnimationDiff",[E],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[z]()[0],u=o.dim,l="x"===u||"radius"===u?1:0,c=i.stackedOn,h=i.get(u,n);c&&t(c.get(u,n))===t(h);){r=c;break}var f=[];return f[l]=i.get(a.dim,n),f[1-l]=r?r.get(u,n,!0):s,e.dataToPoint(f)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var u=i(t,n),l=[],c=[],h=[],f=[],d=[],p=[],m=[],v=s.dimensions,g=0;g<u[L];g++){var y=u[g],_=!0;switch(y.cmd){case"=":var x=t.getItemLayout(y.idx),b=n.getItemLayout(y.idx1);(isNaN(x[0])||isNaN(x[1]))&&(x=b.slice()),l.push(x),c.push(b),h.push(r[y.idx]),f.push(a[y.idx1]),m.push(n.getRawIndex(y.idx1));break;case"+":var w=y.idx;l.push(o.dataToPoint([n.get(v[0],w,!0),n.get(v[1],w,!0)])),c.push(n.getItemLayout(w).slice()),h.push(e(o,n,w)),f.push(a[w]),m.push(n.getRawIndex(w));break;case"-":var w=y.idx,M=t.getRawIndex(w);M!==w?(l.push(t.getItemLayout(w)),c.push(s.dataToPoint([t.get(v[0],w,!0),t.get(v[1],w,!0)])),h.push(r[w]),f.push(e(s,t,w)),m.push(M)):_=!1}_&&(d.push(y),p.push(p[L]))}p.sort(function(t,e){return m[t]-m[e]});for(var T=[],S=[],C=[],A=[],P=[],g=0;g<p[L];g++){var w=p[g];T[g]=l[w],S[g]=c[w],C[g]=h[w],A[g]=f[w],P[g]=d[w]}return{current:T,next:S,stackedOnCurrent:C,stackedOnNext:A,status:P}}}),e("echarts/chart/line/poly",[E,"zrender/graphic/Path",A],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function i(t,i,n,r,d,p,m,v,g,y,_){for(var x=0,b=n,w=0;r>w;w++){var M=i[b];if(b>=d||0>b)break;if(e(M)){if(_){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](M[0],M[1]),l(h,M);else if(g>0){var T=b+p,S=i[T];if(_)for(;S&&e(i[T]);)T+=p,S=i[T];var C=.5,A=i[x],S=i[T];if(!S||e(S))l(f,M);else{e(S)&&!_&&(S=M),a.sub(c,S,A);var L,P;if("x"===y||"y"===y){var k="x"===y?0:1;L=Math.abs(M[k]-A[k]),P=Math.abs(M[k]-S[k])}else L=a.dist(M,A),P=a.dist(M,S);C=P/(P+L),u(f,M,c,-g*(1-C))}o(h,h,v),s(h,h,m),o(f,f,v),s(f,f,m),t.bezierCurveTo(h[0],h[1],f[0],f[1],M[0],M[1]),u(h,M,c,g*C)}else t.lineTo(M[0],M[1]);x=b,b+=p}return w}function n(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[L];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var r=t("zrender/graphic/Path"),a=t(A),o=a.min,s=a.max,u=a.scaleAndAdd,l=a.copy,c=[],h=[],f=[];return{Polyline:r[I]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,r){var a=r.points,o=0,s=a[L],u=n(a,r.smoothConstraint);if(r.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=i(t,a,o,s,s,1,u.min,u.max,r.smooth,r.smoothMonotone,r.connectNulls)+1}}),Polygon:r[I]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,r){var a=r.points,o=r.stackedOnPoints,s=0,u=a[L],l=r.smoothMonotone,c=n(a,r.smoothConstraint),h=n(o,r.smoothConstraint);if(r.connectNulls){for(;u>0&&e(a[u-1]);u--);for(;u>s&&e(a[s]);s++);}for(;u>s;){var f=i(t,a,s,u,u,1,c.min,c.max,r.smooth,l,r.connectNulls);i(t,o,s+f-1,f,u,-1,h.min,h.max,r.stackedOnSmooth,l,r.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/util/symbol",[E,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),i=t("zrender/core/BoundingRect"),n=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[_]/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),a=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[_]/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),o=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[_]),o=r/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),c=Math.cos(l)*o,h=Math.sin(l),f=Math.cos(l);t.arc(i,u,o,Math.PI-l,2*Math.PI+l);var d=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*d,u+s+f*d,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*d,u+s+f*d,i-c,u+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[_],n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),u={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:a,pin:o,arrow:s,triangle:n},l={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[_]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[_]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[_]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[_]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[_]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[_]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[_]=n}},h={};for(var f in u)h[f]=new u[f];var d=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign=r,t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,r=h[n];"none"!==e.symbolType&&(r||(n="rect",r=h[n]),l[n](e.x,e.y,e.width,e[_],r.shape),r.buildPath(t,r.shape,i))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},m={createSymbol:function(t,n,r,a,o,s){var u=0===t[c]("empty");u&&(t=t.substr(5,1)[C]()+t.substr(6));var l;return l=0===t[c]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[c]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new d({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),l.__isEmptyBrush=u,l.setColor=p,l.setColor(s),l}};return m}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var R=t("echarts");return R.graphic=t("echarts/util/graphic"),R.number=t("echarts/util/number"),R.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/component/grid"),R}); \ No newline at end of file +!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),r=t.split("/"),n=i.length-1,a=r.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(r[l]){case"..":if(!(n>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=n-o,r=r.slice(s),i.concat(r).join("/")}return t}function r(t){function e(e,o){if("string"==typeof e){var s=r[e];return s||(s=a(i(e,t)),r[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,n(e,o,t)))}var r={};return e}function n(e,r,n){for(var s=[],l=o[n],u=0,c=Math.min(e.length,r.length);c>u;u++){var h,f=i(e[u],n);switch(f){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;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 i=e.factory,r=i.apply(this,n(e.deps||[],i,t));"undefined"!=typeof r&&(e.exports=r),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:r(t)}},t=r("")}();var i="undefined",r="transform",n="normal",a="stroke",o="applyTransform",s="center",l="getBoundingRect",u="ordinal",c="position",h="middle",f="indexOf",d="function",p="isArray",v="zlevel",m="dataIndex",g="splice",y="isObject",_="getData",x="height",b="bottom",w="ignore",M="getModel",T="animation",S="string",C="toLowerCase",L="zrender/core/vector",A="create",P="normalize",z="contain",k="length",I="_extent",D="extend",E="prototype",O="coordinateSystem",R="zrender/core/util",B="require";e("echarts/chart/line",[B,R,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(R),i=t("../echarts"),r=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(r.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/component/grid",[B,"../util/graphic",R,"../echarts","../coord/cartesian/Grid","./axis"],function(t){var e=t("../util/graphic"),i=t(R),r=t("../echarts");t("../coord/cartesian/Grid"),t("./axis"),r.extendComponentView({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new e.Rect({shape:t[O].getRect(),style:i.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}}),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e("echarts/scale/Time",[B,R,"../util/number","../util/format","./Interval"],function(t){var e=t(R),i=t("../util/number"),r=t("../util/format"),n=t("./Interval"),a=n[E],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,f=function(t,e,i,r){for(;r>i;){var n=i+r>>>1;t[n][2]<e?i=n+1:r=n}return i},d=n[D]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return r.formatTime(e[0],i)},niceExtent:function(t,e,r){var n=this[I];if(n[0]===n[1]&&(n[0]-=h,n[1]+=h),n[1]===-1/0&&1/0===n[0]){var a=new Date;n[1]=new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-h}this.niceTicks(t);var l=this._interval;e||(n[0]=i.round(s(n[0]/l)*l)),r||(n[1]=i.round(o(n[1]/l)*l))},niceTicks:function(t){t=t||10;var e=this[I],r=e[1]-e[0],n=r/t,a=p[k],l=f(p,n,0,a),u=p[Math.min(l,a-1)],c=u[2];if("year"===u[0]){var h=r/c,d=i.nice(h/t,!0);c*=d}var v=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=v},parse:function(t){return+i.parseDate(t)}});e.each([z,P],function(t){d[E][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,l],["hh:mm:ss",5,5*l],["hh:mm:ss",10,10*l],["hh:mm:ss",15,15*l],["hh:mm:ss",30,30*l],["hh:mm\nMM-dd",1,u],["hh:mm\nMM-dd",5,5*u],["hh:mm\nMM-dd",10,10*u],["hh:mm\nMM-dd",15,15*u],["hh:mm\nMM-dd",30,30*u],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[A]=function(){return new d},d}),e("zrender/vml/vml",[B,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/echarts",[B,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",R,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./visual/seriesColor","./preprocessor/backwardCompat","./loading/default","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",L],function(t){function e(t){return function(e,i,r){e=e&&e[C](),$[E][t].call(this,e,i,r)}}function i(){$.call(this)}function r(t,e,r){function n(t,e){return t.prio-e.prio}r=r||{},typeof e===S&&(e=ge[e]),this.id,this.group,this._dom=t,this._zr=j.init(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio}),this._theme=X.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new F(this),this._coordSysMgr=new G,$.call(this),this._messageCenter=new i,this._initEvents(),this.resize=X.bind(this.resize,this),this._pendingActions=[],Q(me,n),Q(pe,n),this._zr[T].on("frame",this._onframe,this)}function n(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(r){var n=this._chartsMap[r.__viewId];n&&n.__alive&&n[t](r,i,this._api,e)},this)}function a(t,e,i){var r=this._api;K(this._componentsViews,function(n){var a=n.__model;n[t](a,e,r,i),I(a,n)},this),e.eachSeries(function(n){var a=this._chartsMap[n.__viewId];a[t](n,e,r,i),I(n,a),z(n,a)},this),P(this._zr,e)}function o(t,e){for(var i="component"===t,r=i?this._componentsViews:this._chartsViews,n=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<r[k];o++)r[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,l=n[s];if(!l){var u=H.parseClassType(o.type),c=i?W.getClass(u.main,u.sub):Z.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),n[s]=l,r.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<r[k];){var s=r[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),r[g](o,1),delete n[s.__id])}}function s(t,e){K(pe,function(i){i.func(t,e)})}function l(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),r=t[_]();if(i&&"list"===r.type){var n=e[i];n&&(r.stackedOn=n),e[i]=r}})}function u(t,e){var i=this._api;K(me,function(r){r.isLayout&&r.func(t,i,e)})}function c(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),K(me,function(r){r.func(t,i,e)})}function h(t,e){var i=this._api;K(this._componentsViews,function(r){var n=r.__model;r.render(n,t,i,e),I(n,r)},this),K(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(r){var n=this._chartsMap[r.__viewId];n.__alive=!0,n.render(r,t,i,e),n.group.silent=!!r.get("silent"),I(r,n),z(r,n)},this),P(this._zr,t),K(this._chartsViews,function(e){e.__alive||e.remove(t,i)},this)}function P(t,e){var i=t.storage,r=0;i.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!B.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function z(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[w]||i++});var r=+t.get("progressive"),n=i>t.get("progressiveThreshold")&&r&&!B.node;n&&e.group.traverse(function(t){t.isGroup||(t.progressive=n?Math.floor(i++/r):-1,n&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",a)})}function I(t,e){var i=t.get("z"),r=t.get(v);e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t[v]=r))})}function O(t){function e(t,e){for(var i=0;i<t[k];i++){var r=t[i];r[a]=e}}var i=0,r=1,n=2,a="__connectUpdateStatus";X.each(de,function(o,s){t._messageCenter.on(s,function(o){if(xe[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var u in _e){var c=_e[u];c!==t&&c.group===t.group&&l.push(c)}e(l,i),K(l,function(t){t[a]!==r&&t.dispatchAction(s)}),e(l,n)}})})}var B=t("zrender/core/env"),N=t("./model/Global"),F=t("./ExtensionAPI"),G=t("./CoordinateSystem"),V=t("./model/OptionManager"),H=t("./model/Component"),q=t("./model/Series"),W=t("./view/Component"),Z=t("./view/Chart"),U=t("./util/graphic"),j=t("zrender"),X=t(R),Y=t("zrender/tool/color"),$=t("zrender/mixin/Eventful"),Q=t("zrender/core/timsort"),K=X.each,J=1e3,te=5e3,ee=1e3,ie=2e3,re=3e3,ne=4e3,ae=5e3,oe="__flag_in_main_process",se="_hasGradientOrPatternBg",le="_optionUpdated";i[E].on=e("on"),i[E].off=e("off"),i[E].one=e("one"),X.mixin(i,$);var ue=r[E];ue._onframe=function(){this[le]&&(this[oe]=!0,ce.prepareAndUpdate.call(this),this[oe]=!1,this[le]=!1)},ue.getDom=function(){return this._dom},ue.getZr=function(){return this._zr},ue.setOption=function(t,e,i){if(this[oe]=!0,!this._model||e){var r=new V(this._api),n=this._theme,a=this._model=new N(null,null,n,r);a.init(null,null,n,r)}this._model.setOption(t,ve),i?this[le]=!0:(ce.prepareAndUpdate.call(this),this._zr.refreshImmediately(),this[le]=!1),this[oe]=!1,this._flushPendingActions()},ue.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ue[M]=function(){return this._model},ue.getOption=function(){return this._model&&this._model.getOption()},ue.getWidth=function(){return this._zr.getWidth()},ue.getHeight=function(){return this._zr.getHeight()},ue.getRenderedCanvas=function(t){if(B.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return X.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},ue.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,r=[],n=this;K(e,function(t){i.eachComponent({mainType:t},function(t){var e=n._componentsMap[t.__viewId];e.group[w]||(r.push(e),e.group[w]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return K(r,function(t){t.group[w]=!1}),a},ue.getConnectedDataURL=function(t){if(B.canvasSupported){var e=this.group,i=Math.min,r=Math.max,n=1/0;if(xe[e]){var a=n,o=n,s=-n,l=-n,u=[],c=t&&t.pixelRatio||1;for(var h in _e){var f=_e[h];if(f.group===e){var d=f.getRenderedCanvas(X.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=r(p.right,s),l=r(p[b],l),u.push({dom:d,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,l*=c;var v=s-a,m=l-o,g=X.createCanvas();g.width=v,g[x]=m;var y=j.init(g);return K(u,function(t){var e=new U.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var ce={update:function(t){var e=this._model,i=this._api,r=this._coordSysMgr,n=this._zr;if(e){e.restoreData(),r[A](this._model,this._api),s.call(this,e,i),l.call(this,e),r.update(e,i),c.call(this,e,t),h.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=n.painter;if(o.isSingleCanvas&&o.isSingleCanvas())n.configLayer(0,{clearColor:a});else{if(!B.canvasSupported){var u=Y.parse(a);a=Y.stringify(u,"rgb"),0===u[3]&&(a="transparent")}a.colorStops||a.image?(n.configLayer(0,{clearColor:a}),this[se]=!0,this._dom.style.background="transparent"):(this[se]&&n.configLayer(0,{clearColor:null}),this[se]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[_]().clearAllVisual()}),c.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[_]().clearAllVisual()}),c.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){n.call(this,"highlight",t)},downplay:function(t){n.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),ce.update.call(this,t)}};ue.resize=function(){this[oe]=!0,this._zr.resize();var t=this._model&&this._model.resetOption("media");ce[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[oe]=!1,this._flushPendingActions()},ue.showLoading=function(t,e){if(X[y](t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ye[t]){var i=ye[t](this._api,e),r=this._zr;this._loadingFX=i,r.add(i)}},ue.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},ue.makeActionFromEvent=function(t){var e=X[D]({},t);return e.type=de[t.type],e},ue.dispatchAction=function(t,e){var i=fe[t.type];if(i){var r=i.actionInfo,n=r.update||"update";if(this[oe])return void this._pendingActions.push(t);this[oe]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=X.map(t.batch,function(e){return e=X.defaults(X[D]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[k];c++){var h=a[c];s=i.action(h,this._model),s=s||X[D]({},h),s.type=r.event||s.type,l.push(s),u&&ce[n].call(this,h)}"none"===n||u||(this[le]?(ce.prepareAndUpdate.call(this,t),this[le]=!1):ce[n].call(this,t)),s=o?{type:r.event||t.type,batch:l}:l[0],this[oe]=!1,!e&&this._messageCenter.trigger(s.type,s),this._flushPendingActions()}},ue._flushPendingActions=function(){for(var t=this._pendingActions;t[k];){var e=t.shift();this.dispatchAction(e)}},ue.on=e("on"),ue.off=e("off"),ue.one=e("one");var he=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout"];ue._initEvents=function(){K(he,function(t){this._zr.on(t,function(e){var i=this[M](),r=e.target;if(r&&null!=r[m]){var n=r.dataModel||i.getSeriesByIndex(r.seriesIndex),a=n&&n.getDataParams(r[m],r.dataType)||{};a.event=e,a.type=t,this.trigger(t,a)}else r&&r.eventData&&this.trigger(t,r.eventData)},this)},this),K(de,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},ue.isDisposed=function(){return this._disposed},ue.clear=function(){this.setOption({series:[]},!0)},ue.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;K(this._componentsViews,function(i){i.dispose(e,t)}),K(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete _e[this.id]}},X.mixin(r,$);var fe=[],de={},pe=[],ve=[],me=[],ge={},ye={},_e={},xe={},be=new Date-0,we=new Date-0,Me="_echarts_instance_",Te={version:"3.2.3",dependencies:{zrender:"3.1.3"}};Te.init=function(t,e,i){var n=new r(t,e,i);return n.id="ec_"+be++,_e[n.id]=n,t.setAttribute&&t.setAttribute(Me,n.id),O(n),n},Te.connect=function(t){if(X[p](t)){var e=t;t=null,X.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+we++,X.each(e,function(e){e.group=t})}return xe[t]=!0,t},Te.disConnect=function(t){xe[t]=!1},Te.dispose=function(t){X.isDom(t)?t=Te.getInstanceByDom(t):typeof t===S&&(t=_e[t]),t instanceof r&&!t.isDisposed()&&t.dispose()},Te.getInstanceByDom=function(t){var e=t.getAttribute(Me);return _e[e]},Te.getInstanceById=function(t){return _e[t]},Te.registerTheme=function(t,e){ge[t]=e},Te.registerPreprocessor=function(t){ve.push(t)},Te.registerProcessor=function(t,e){typeof t===d&&(e=t,t=J),pe.push({prio:t,func:e})},Te.registerAction=function(t,e,i){typeof e===d&&(i=e,e="");var r=X[y](t)?t.type:[t,t={event:e}][0];t.event=(t.event||r)[C](),e=t.event,fe[r]||(fe[r]={action:i,actionInfo:t}),de[e]=r},Te.registerCoordinateSystem=function(t,e){G.register(t,e)},Te.registerLayout=function(t,e){typeof t===d&&(e=t,t=ee),me.push({prio:t,func:e,isLayout:!0})},Te.registerVisual=function(t,e){typeof t===d&&(e=t,t=re),me.push({prio:t,func:e})},Te.registerLoading=function(t,e){ye[t]=e};var Se=H.parseClassType;return Te.extendComponentModel=function(t,e){var i=H;if(e){var r=Se(e);i=H.getClass(r.main,r.sub,!0)}return i[D](t)},Te.extendComponentView=function(t,e){var i=W;if(e){var r=Se(e);i=W.getClass(r.main,r.sub,!0)}return i[D](t)},Te.extendSeriesModel=function(t,e){var i=q;if(e){e="series."+e.replace("series.","");var r=Se(e);i=q.getClass(r.main,r.sub,!0)}return i[D](t)},Te.extendChartView=function(t,e){var i=Z;if(e){e.replace("series.","");var r=Se(e);i=Z.getClass(r.main,!0)}return i[D](t)},Te.setCanvasCreator=function(t){X.createCanvas=t},Te.registerVisual(ie,t("./visual/seriesColor")),Te.registerPreprocessor(t("./preprocessor/backwardCompat")),Te.registerLoading("default",t("./loading/default")),Te.registerAction({type:"highlight",event:"highlight",update:"highlight"},X.noop),Te.registerAction({type:"downplay",event:"downplay",update:"downplay"},X.noop),Te.List=t("./data/List"),Te.Model=t("./model/Model"),Te.graphic=t("./util/graphic"),Te.number=t("./util/number"),Te.format=t("./util/format"),Te.matrix=t("zrender/core/matrix"),Te.vector=t(L),Te.color=t("zrender/tool/color"),Te.util={},K(["map","each","filter",f,"inherits","reduce","filter","bind","curry",p,"isString",y,"isFunction",D,"defaults"],function(t){Te.util[t]=X[t]}),Te.PRIORITY={PROCESSOR:{FILTER:J,STATISTIC:te},VISUAL:{LAYOUT:ee,GLOBAL:ie,CHART:re,COMPONENT:ne,BRUSH:ae}},Te}),e("echarts/scale/Log",[B,R,"./Scale","../util/number","./Interval"],function(t){var e=t(R),i=t("./Scale"),r=t("../util/number"),n=t("./Interval"),a=i[E],o=n[E],s=Math.floor,l=Math.ceil,u=Math.pow,c=Math.log,h=i[D]({type:"log",base:10,getTicks:function(){return e.map(o.getTicks.call(this),function(t){return r.round(u(this.base,t))},this)},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),u(this.base,t)},setExtent:function(t,e){var i=this.base;t=c(t)/c(i),e=c(e)/c(i),o.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=a.getExtent.call(this);return e[0]=u(t,e[0]),e[1]=u(t,e[1]),e},unionExtent:function(t){var e=this.base;t[0]=c(t[0])/c(e),t[1]=c(t[1])/c(e),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this[I],i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[r.round(l(e[0]/n)*n),r.round(s(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([z,P],function(t){h[E][t]=function(e){return e=c(e)/c(this.base),a[t].call(this,e)}}),h[A]=function(){return new h},h}),e(R,[B],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var r=0,n=e[k];n>r;r++)i[r]=t(e[r])}else if(!T(e)&&!C(e)){i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=t(e[a]))}return i}return e}function e(i,r,n){if(!M(r)||!M(i))return n?t(r):i;for(var a in r)if(r.hasOwnProperty(a)){var o=i[a],s=r[a];!M(s)||!M(o)||x(s)||x(o)||C(s)||C(o)||T(s)||T(o)?!n&&a in i||(i[a]=t(r[a],!0)):e(o,s,n)}return i}function i(t,i){for(var r=t[0],n=1,a=t[k];a>n;n++)r=e(r,t[n],i);return r}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function n(t,e,i){for(var r in e)e.hasOwnProperty(r)&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r]);return t}function a(){return document.createElement("canvas")}function o(){return z||(z=V.createCanvas().getContext("2d")),z}function s(t,e){if(t){if(t[f])return t[f](e);for(var i=0,r=t[k];r>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var r=t[E];i[E]=e[E],t[E]=new i;for(var n in r)t[E][n]=r[n];t[E].constructor=t,t.superClass=e}function u(t,e,i){t=E in t?t[E]:t,e=E in e?e[E]:e,n(t,e,i)}function c(t){return t?typeof t==S?!1:"number"==typeof t[k]:void 0}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[k]===+t[k])for(var r=0,n=t[k];n>r;r++)e.call(i,t[r],r,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===F)return t.map(e,i);for(var r=[],n=0,a=t[k];a>n;n++)r.push(e.call(i,t[n],n,t));return r}}function v(t,e,i,r){if(t&&e){if(t.reduce&&t.reduce===G)return t.reduce(e,i,r);for(var n=0,a=t[k];a>n;n++)i=e.call(r,i,t[n],n,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===B)return t.filter(e,i);for(var r=[],n=0,a=t[k];a>n;n++)e.call(i,t[n],n,t)&&r.push(t[n]);return r}}function g(t,e,i){if(t&&e)for(var r=0,n=t[k];n>r;r++)if(e.call(i,t[r],r,t))return t[r]}function y(t,e){var i=N.call(arguments,2);return function(){return t.apply(e,i.concat(N.call(arguments)))}}function _(t){var e=N.call(arguments,1);return function(){return t.apply(this,e.concat(N.call(arguments)))}}function x(t){return"[object Array]"===D.call(t)}function b(t){return typeof t===d}function w(t){return"[object String]"===D.call(t)}function M(t){var e=typeof t;return e===d||!!t&&"object"==e}function T(t){return!!I[D.call(t)]}function C(t){return t&&1===t.nodeType&&typeof t.nodeName==S}function L(){for(var t=0,e=arguments[k];e>t;t++)if(null!=arguments[t])return arguments[t]}function A(){return Function.call.apply(N,arguments)}function P(t,e){if(!t)throw new Error(e)}var z,I={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},D=Object[E].toString,O=Array[E],R=O.forEach,B=O.filter,N=O.slice,F=O.map,G=O.reduce,V={inherits:l,mixin:u,clone:t,merge:e,mergeAll:i,extend:r,defaults:n,getContext:o,createCanvas:a,indexOf:s,slice:A,find:g,isArrayLike:c,each:h,map:p,reduce:v,filter:m,bind:y,curry:_,isArray:x,isString:w,isObject:M,isFunction:b,isBuildInObject:T,isDom:C,retrieve:L,assert:P,noop:function(){}};return V}),e("echarts/chart/line/LineView",[B,R,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff","../../util/graphic","./poly","../../view/Chart"],function(t){function e(t,e){if(t[k]===e[k]){for(var i=0;i<t[k];i++){var r=t[i],n=e[i];if(r[0]!==n[0]||r[1]!==n[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function r(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,r=e[1]>e[0]?1:-1;e[0]+=r*i,e[1]-=r*i}return e}function n(t){return t>=0?1:-1}function a(t,e){var i=t.getBaseAxis(),r=t.getOtherAxis(i),a=i.onZero?0:r.scale.getExtent()[0],o=r.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(r,l){for(var u,c=e.stackedOn;c&&n(c.get(o,l))===n(r);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t.dataToPoint(h)},!0)}function o(t,e){return null!=e[m]?e[m]:null!=e.name?t.indexOfName(e.name):void 0}function s(t,e,i){var n=r(t.getAxis("x")),a=r(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(n[0],n[1]),l=Math.min(a[0],a[1]),u=Math.max(n[0],n[1])-s,c=Math.max(a[0],a[1])-l,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(u,c);o?(l-=f,c+=2*f):(s-=f,u+=2*f);var d=new L.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(d.shape[o?"width":x]=0,L.initProps(d,{shape:{width:u,height:c}},i)),d}function l(t,e,i){var r=t.getAngleAxis(),n=t.getRadiusAxis(),a=n.getExtent(),o=r.getExtent(),s=Math.PI/180,l=new L.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:r.inverse}});return e&&(l.shape.endAngle=-o[0]*s,L.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function f(t,e,i){return"polar"===t.type?l(t,e,i):s(t,e,i)}function d(t,e,i){for(var r=e.getBaseAxis(),n="x"===r.dim||"radius"===r.dim?0:1,a=[],o=0;o<t[k]-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(i){case"end":u[n]=s[n],u[1-n]=l[1-n],a.push(u);break;case h:var c=(l[n]+s[n])/2,f=[];u[n]=f[n]=c,u[1-n]=l[1-n],f[1-n]=s[1-n],a.push(u),a.push(f);break;default:u[n]=l[n],u[1-n]=s[1-n],a.push(u)}}return t[o]&&a.push(t[o]),a}function p(t,e){return Math.max(Math.min(t,e[1]),e[0])}function g(t,e){var i=t.getVisual("visualMeta");if(i&&i[k]){for(var r,n=i[k]-1;n>=0;n--)if(i[n].dimension<2){r=i[n];break}if(r&&"cartesian2d"===e.type){var a=r.dimension,o=t.dimensions[a],s=t.getDataExtent(o),l=r.stops,u=[];l[0].interval&&l.sort(function(t,e){return t.interval[0]-e.interval[0]});var c=l[0],h=l[l[k]-1],f=c.interval?p(c.interval[0],s):c.value,d=h.interval?p(h.interval[1],s):h.value,v=d-f;if(0===v)return t.getItemVisual(0,"color");for(var n=0;n<l[k];n++)if(l[n].interval){if(l[n].interval[1]===l[n].interval[0])continue;u.push({offset:(p(l[n].interval[0],s)-f)/v,color:l[n].color},{offset:(p(l[n].interval[1],s)-f)/v,color:l[n].color})}else u.push({offset:(l[n].value-f)/v,color:l[n].color});var m=new L.LinearGradient(0,0,0,0,u,!0),g=e.getAxis(o),y=Math.round(g.toGlobalCoord(g.dataToCoord(f))),_=Math.round(g.toGlobalCoord(g.dataToCoord(d)));return m[o]=y,m[o+"2"]=_,m}}}var y=t(R),b=t("../helper/SymbolDraw"),S=t("../helper/Symbol"),C=t("./lineAnimationDiff"),L=t("../../util/graphic"),A=t("./poly"),P=t("../../view/Chart");return P[D]({type:"line",init:function(){var t=new L.Group,e=new b;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,r,n){var o=t[O],s=this.group,l=t[_](),u=t[M]("lineStyle.normal"),c=t[M]("areaStyle.normal"),h=l.mapArray(l.getItemLayout,!0),p="polar"===o.type,v=this._coordSys,m=this._symbolDraw,x=this._polyline,b=this._polygon,w=this._lineGroup,S=t.get(T),C=!c.isEmpty(),L=a(o,l),A=t.get("showSymbol"),P=A&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),z=this._data;z&&z.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),z.setItemGraphicEl(e,null))}),A||m.remove(),s.add(w);var k=!p&&t.get("step");x&&v.type===o.type&&k===this._step?(C&&!b?b=this._newPolygon(h,L,o,S):b&&!C&&(w.remove(b),b=this._polygon=null),w.setClipPath(f(o,!1,t)),A&&m.updateData(l,P),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,L)&&e(this._points,h)||(S?this._updateAnimation(l,L,o,n,k):(k&&(h=d(h,o,k),L=d(L,o,k)),x.setShape({points:h}),b&&b.setShape({points:h,stackedOnPoints:L})))):(A&&m.updateData(l,P),k&&(h=d(h,o,k),L=d(L,o,k)),x=this._newPolyline(h,o,S),C&&(b=this._newPolygon(h,L,o,S)),w.setClipPath(f(o,!0,t)));var I=g(l,o)||l.getVisual("color");x.useStyle(y.defaults(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"}));var D=t.get("smooth");if(D=i(t.get("smooth")),x.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),b){var E=l.stackedOn,R=0;if(b.useStyle(y.defaults(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel"})),E){var B=E.hostModel;R=i(B.get("smooth"))}b.setShape({smooth:D,stackedOnSmooth:R,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=o,this._stackedOnPoints=L,this._points=h,this._step=k},highlight:function(t,e,i,r){var n=t[_](),a=o(n,r);if(!(a instanceof Array)&&null!=a&&a>=0){var s=n.getItemGraphicEl(a);if(!s){var l=n.getItemLayout(a);s=new S(n,a),s[c]=l,s.setZ(t.get(v),t.get("z")),s[w]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,n.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else P[E].highlight.call(this,t,e,i,r)},downplay:function(t,e,i,r){var n=t[_](),a=o(n,r);if(null!=a&&a>=0){var s=n.getItemGraphicEl(a);s&&(s.__temp?(n.setItemGraphicEl(a,null),this.group.remove(s)):s.downplay())}else P[E].downplay.call(this,t,e,i,r)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new A.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new A.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(u)[0];return i&&i.isLabelIgnored?y.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,r,n){var a=this._polyline,o=this._polygon,s=t.hostModel,l=C(this._data,t,this._stackedOnPoints,e,this._coordSys,i),u=l.current,h=l.stackedOnCurrent,f=l.next,p=l.stackedOnNext;n&&(u=d(l.current,i,n),h=d(l.stackedOnCurrent,i,n),f=d(l.next,i,n),p=d(l.stackedOnNext,i,n)),a.shape.__points=l.current,a.shape.points=u,L.updateProps(a,{shape:{points:f}},s),o&&(o.setShape({points:u,stackedOnPoints:h}),L.updateProps(o,{shape:{points:f,stackedOnPoints:p,__points:l.next}},s));for(var v=[],m=l.status,g=0;g<m[k];g++){var y=m[g].cmd;if("="===y){var _=t.getItemGraphicEl(m[g].idx1);_&&v.push({el:_,ptIdx:g})}}a.animators&&a.animators[k]&&a.animators[0].during(function(){for(var t=0;t<v[k];t++){var e=v[t].el;e.attr(c,a.shape.__points[v[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,r){i.__temp&&(t.remove(i),e.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/layout/points",[B],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[_](),i=t[O];if(i){var r=i.dimensions;"singleAxis"===i.type?e.each(r[0],function(t,r){e.setItemLayout(r,isNaN(t)?[0/0,0/0]:i.dataToPoint(t))}):e.each(r,function(t,r,n){e.setItemLayout(n,isNaN(t)||isNaN(r)?[0/0,0/0]:i.dataToPoint([t,r]))},!0)}})}}),e("echarts/chart/line/LineSeries",[B,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[D]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,r=0;r<t[k];r++)isNaN(t[r])||(e+=t[r],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[k];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[k];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[k];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[k]/2)};return function(i,r){r.eachSeriesByType(i,function(i){var r=i[_](),n=i.get("sampling"),a=i[O];if("cartesian2d"===a.type&&n){var o=a.getBaseAxis(),s=a.getOtherAxis(o),l=o.getExtent(),u=l[1]-l[0],c=Math.round(r.count()/u);if(c>1){var h;typeof n===S?h=t[n]:typeof n===d&&(h=n),h&&(r=r.downSample(s.dim,1/c,h,e),i.setData(r))}}},this)}}),e("echarts/visual/symbol",[B],function(){return function(t,e,i,r){r.eachRawSeriesByType(t,function(t){var n=t[_](),a=t.get("symbol")||e,o=t.get("symbolSize");n.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),r.isSeriesFiltered(t)||(typeof o===d&&n.each(function(e){var i=t.getRawValue(e),r=t.getDataParams(e);n.setItemVisual(e,"symbolSize",o(i,r))}),n.each(function(t){var e=n.getItemModel(t),i=e.getShallow("symbol",!0),r=e.getShallow("symbolSize",!0);null!=i&&n.setItemVisual(t,"symbol",i),null!=r&&n.setItemVisual(t,"symbolSize",r)}))})}}),e("echarts/util/graphic",[B,R,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",L,"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/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===S?E.lift(t,-.1):t}function r(t){if(t.__hoverStlDirty){var r=t.style[a],n=t.style.fill,o=t.__hoverStl;o.fill=o.fill||(e(n)?i(n):null),o[a]=o[a]||(e(r)?i(r):null);var s={};for(var l in o)o.hasOwnProperty(l)&&(s[l]=t.style[l]);t.__normalStl=s,t.__hoverStlDirty=!1}}function u(t){t.__isHover||(r(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function h(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1 +}}function p(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&u(t)}):u(t)}function v(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&h(t)}):h(t)}function g(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&r(t)}function y(){!this.__isEmphasis&&p(this)}function _(){!this.__isEmphasis&&v(this)}function w(){this.__isEmphasis=!0,p(this)}function C(){this.__isEmphasis=!1,v(this)}function A(t,e,i,r,n,a){typeof n===d&&(a=n,n=null);var o=r&&(r.ifEnableAnimation?r.ifEnableAnimation():r.getShallow(T));if(o){var s=t?"Update":"",l=r&&r.getShallow("animationDuration"+s),u=r&&r.getShallow("animationEasing"+s),c=r&&r.getShallow("animationDelay"+s);typeof c===d&&(c=c(n)),l>0?e.animateTo(i,l,c||0,u,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var P=t(R),z=t("zrender/tool/path"),k=Math.round,I=t("zrender/graphic/Path"),E=t("zrender/tool/color"),O=t("zrender/core/matrix"),B=t(L),N=(t("zrender/graphic/Gradient"),{});return N.Group=t("zrender/container/Group"),N.Image=t("zrender/graphic/Image"),N.Text=t("zrender/graphic/Text"),N.Circle=t("zrender/graphic/shape/Circle"),N.Sector=t("zrender/graphic/shape/Sector"),N.Ring=t("zrender/graphic/shape/Ring"),N.Polygon=t("zrender/graphic/shape/Polygon"),N.Polyline=t("zrender/graphic/shape/Polyline"),N.Rect=t("zrender/graphic/shape/Rect"),N.Line=t("zrender/graphic/shape/Line"),N.BezierCurve=t("zrender/graphic/shape/BezierCurve"),N.Arc=t("zrender/graphic/shape/Arc"),N.CompoundPath=t("zrender/graphic/CompoundPath"),N.LinearGradient=t("zrender/graphic/LinearGradient"),N.RadialGradient=t("zrender/graphic/RadialGradient"),N.BoundingRect=t("zrender/core/BoundingRect"),N.extendShape=function(t){return I[D](t)},N.extendPath=function(t,e){return z.extendFromString(t,e)},N.makePath=function(t,e,i,r){var n=z.createFromString(t,e),a=n[l]();if(i){var o=a.width/a[x];if(r===s){var u,c=i[x]*o;c<=i.width?u=i[x]:(c=i.width,u=c/o);var h=i.x+i.width/2,f=i.y+i[x]/2;i.x=h-c/2,i.y=f-u/2,i.width=c,i[x]=u}this.resizePath(n,i)}return n},N.mergePath=z.mergePath,N.resizePath=function(t,e){if(t[o]){var i=t[l](),r=i.calculateTransform(e);t[o](r)}},N.subPixelOptimizeLine=function(t){var e=N.subPixelOptimize,i=t.shape,r=t.style.lineWidth;return k(2*i.x1)===k(2*i.x2)&&(i.x1=i.x2=e(i.x1,r,!0)),k(2*i.y1)===k(2*i.y2)&&(i.y1=i.y2=e(i.y1,r,!0)),t},N.subPixelOptimizeRect=function(t){var e=N.subPixelOptimize,i=t.shape,r=t.style.lineWidth,n=i.x,a=i.y,o=i.width,s=i[x];return i.x=e(i.x,r,!0),i.y=e(i.y,r,!0),i.width=Math.max(e(n+o,r,!1)-i.x,0===o?0:1),i[x]=Math.max(e(a+s,r,!1)-i.y,0===s?0:1),t},N.subPixelOptimize=function(t,e,i){var r=k(2*t);return(r+k(e))%2===0?r/2:(r+(i?1:-1))/2},N.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&g(t,e)}):g(t,e),t.on("mouseover",y).on("mouseout",_),t.on("emphasis",w).on(n,C)},N.setText=function(t,e,i){var r=e.getShallow(c)||"inside",n=r[f]("inside")>=0?"white":i,a=e[M]("textStyle");P[D](t,{textDistance:e.getShallow("distance")||5,textFont:a.getFont(),textPosition:r,textFill:a.getTextColor()||n})},N.updateProps=function(t,e,i,r,n){A(!0,t,e,i,r,n)},N.initProps=function(t,e,i,r,n){A(!1,t,e,i,r,n)},N.getTransform=function(t,e){for(var i=O.identity([]);t&&t!==e;)O.mul(i,t.getLocalTransform(),i),t=t.parent;return i},N[o]=function(t,e,i){return i&&(e=O.invert([],e)),B[o]([],t,e)},N.transformDirection=function(t,e,i){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),n=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-r:"right"===t?r:0,"top"===t?-n:t===b?n:0];return a=N[o](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?b:"top"},N.groupTransition=function(t,e,i){function r(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function n(t){var e={position:B.clone(t[c]),rotation:t.rotation};return t.shape&&(e.shape=P[D]({},t.shape)),e}if(t&&e){var a=r(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var r=n(t);t.attr(n(e)),N.updateProps(t,r,i,t[m])}}})}},N}),e("echarts/coord/cartesian/Grid",[B,"exports","../../util/layout","../../coord/axisHelper",R,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e){return t.findGridModel()===e}function i(t){var e,i=t.model,r=i.getFormattedLabels(),n=1,a=r[k];a>40&&(n=Math.ceil(a/40));for(var o=0;a>o;o+=n)if(!t.isLabelIgnored(o)){var s=i.getTextRect(r[o]);e?e.union(s):e=s}return e}function r(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function n(t,e){var i=t.getExtent(),r=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function a(t,e){return h.map(y,function(i){var r=e.queryComponents({mainType:i,index:t.get(i+"Index"),id:t.get(i+"Id")})[0];return r})}function o(t){return"cartesian2d"===t.get(O)}var s=t("../../util/layout"),l=t("../../coord/axisHelper"),h=t(R),f=t("./Cartesian2D"),d=t("./Axis2D"),p=h.each,v=l.ifAxisCrossZero,m=l.niceScaleExtent;t("./GridModel");var g=r[E];g.type="grid",g.getRect=function(){return this._rect},g.update=function(t,e){function i(t){var e=r[t];for(var i in e){var n=e[i];if(n&&("category"===n.type||!v(n)))return!0}return!1}var r=this._axesMap;this._updateScale(t,this._model),p(r.x,function(t){m(t,t.model)}),p(r.y,function(t){m(t,t.model)}),p(r.x,function(t){i("y")&&(t.onZero=!1)}),p(r.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},g.resize=function(t,e){function r(){p(o,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a[x]],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),n(t,e?a.x:a.y)})}var a=s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=a;var o=this._axesList;r(),t.get("containLabel")&&(p(o,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var r=t.isHorizontal()?x:"width",n=t.model.get("axisLabel.margin");a[r]-=e[r]+n,"top"===t[c]?a.y+=e[x]+n:"left"===t[c]&&(a.x+=e.width+n)}}}),r())},g.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var r in i)return i[r];return i[e]}},g.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var r=0,n=this._coordsList;r<n[k];r++)if(n[r].getAxis("x").index===t||n[r].getAxis("y").index===e)return n[r]},g._initCartesian=function(t,i){function r(r){return function(s,u){if(e(s,t,i)){var h=s.get(c);"x"===r?"top"!==h&&h!==b&&(h=b,n[h]&&(h="top"===h?b:"top")):"left"!==h&&"right"!==h&&(h="left",n[h]&&(h="left"===h?"right":"left")),n[h]=!0;var f=new d(r,l.createScaleByModel(s),[0,0],s.get("type"),h),p="category"===f.type;f.onBand=p&&s.get("boundaryGap"),f.inverse=s.get("inverse"),f.onZero=s.get("axisLine.onZero"),s.axis=f,f.model=s,f.grid=this,f.index=u,this._axesList.push(f),a[r][u]=f,o[r]++}}}var n={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},o={x:0,y:0};return i.eachComponent("xAxis",r("x"),this),i.eachComponent("yAxis",r("y"),this),o.x&&o.y?(this._axesMap=a,void p(a.x,function(t,e){p(a.y,function(i,r){var n="x"+e+"y"+r,a=new f(n);a.grid=this,this._coordsMap[n]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},g._updateScale=function(t,i){function r(t,e,i){p(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==u))})}h.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(n){if(o(n)){var s=a(n,t),l=s[0],u=s[1];if(!e(l,i,t)||!e(u,i,t))return;var c=this.getCartesian(l.componentIndex,u.componentIndex),h=n[_](),f=c.getAxis("x"),d=c.getAxis("y");"list"===h.type&&(r(h,f,n),r(h,d,n))}},this)};var y=["xAxis","yAxis"];return r[A]=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e),n[O]=o,i.push(o)}),t.eachSeries(function(e){if(o(e)){var i=a(e,t),r=i[0],n=i[1],s=r.findGridModel(),l=s[O];e[O]=l.getCartesian(r.componentIndex,n.componentIndex)}}),i},r.dimensions=f[E].dimensions,t("../../CoordinateSystem").register("cartesian2d",r),r}),e("echarts/component/axis",[B,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/scale/Interval",[B,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),r=t("./Scale"),n=Math.floor,a=Math.ceil,o=e.getPrecisionSafe,s=e.round,l=r[D]({type:"interval",_interval:0,setExtent:function(t,e){var i=this[I];isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this[I];t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l[E].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[I].slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this[I],i=[],r=1e4;if(t){var n=this._niceExtent,a=o(t)+2;e[0]<n[0]&&i.push(e[0]);for(var l=n[0];l<=n[1];)if(i.push(l),l=s(l+t,a),i[k]>r)return[];e[1]>n[1]&&i.push(e[1])}return i},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[k];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this[I],r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var l=s(e.nice(r/t,!0),Math.max(o(i[0]),o(i[1]))+2),u=o(l)+2,c=[s(a(i[0]/l)*l,u),s(n(i[1]/l)*l,u)];this._interval=l,this._niceExtent=c}},niceExtent:function(t,e,i){var r=this[I];if(r[0]===r[1])if(0!==r[0]){var o=r[0];i?r[0]-=o/2:(r[1]+=o/2,r[0]-=o/2)}else r[1]=1;var l=r[1]-r[0];isFinite(l)||(r[0]=0,r[1]=1),this.niceTicks(t);var u=this._interval;e||(r[0]=s(n(r[0]/u)*u)),i||(r[1]=s(a(r[1]/u)*u))}});return l[A]=function(){return new l},l}),e("echarts/util/number",[B],function(){function t(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,r){var n=e[1]-e[0],a=i[1]-i[0];if(0===n)return 0===a?i[0]:(i[0]+i[1])/2;if(r)if(n>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/n*a+i[0]},e.parsePercent=function(e,i){switch(e){case s:case h:e="50%";break;case"left":case"top":e="0%";break;case"right":case b:e="100%"}return typeof e===S?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t,e){return null==e&&(e=10),+(+t).toFixed(e)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e[f](".");return 0>i?0:e[k]-1-i},e.getPixelPrecision=function(t,e){var i=Math.log,r=Math.LN10,n=Math.floor(i(t[1]-t[0])/r),a=Math.round(i(Math.abs(e[1]-e[0]))/r);return Math.max(-n+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){if(t instanceof Date)return t;if(typeof t===S){var e=new Date(t);return isNaN(+e)&&(e=new Date(new Date(t.replace(/-/g,"/"))-new Date("1970/01/01"))),e}return new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var r,n=e.quantity(t),a=t/n;return r=i?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,r*n},e}),e("echarts/util/format",[B,R,"./number","zrender/contain/text"],function(t){var e=t(R),i=t("./number"),r=t("zrender/contain/text"),n={};n.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[k]>1?"."+t[1]:""))},n.toCamelCase=function(t){return t[C]().replace(/-(.)/g,function(t,e){return e.toUpperCase()})},n.normalizeCssArray=function(t){var e=t[k];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},n.encodeHTML=function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")};var a=["a","b","c","d","e","f","g"],o=function(t,e){return"{"+t+(null==e?"":e)+"}"};n.formatTpl=function(t,i){e[p](i)||(i=[i]);var r=i[k];if(!r)return"";for(var n=i[0].$vars||[],s=0;s<n[k];s++){var l=a[s];t=t.replace(o(l),o(l,0))}for(var u=0;r>u;u++)for(var c=0;c<n[k];c++)t=t.replace(o(a[c],u),i[u][n[c]]);return t};var s=function(t){return 10>t?"0"+t:t};return n.formatTime=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var r=i.parseDate(e),n=r.getFullYear(),a=r.getMonth()+1,o=r.getDate(),l=r.getHours(),u=r.getMinutes(),c=r.getSeconds();return t=t.replace("MM",s(a))[C]().replace("yyyy",n).replace("yy",n%100).replace("dd",s(o)).replace("d",o).replace("hh",s(l)).replace("h",l).replace("mm",s(u)).replace("m",u).replace("ss",s(c)).replace("s",c)},n.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},n.truncateText=r.truncateText,n}),e("zrender/vml/graphic",[B,"../core/env","../core/vector","../core/BoundingRect","../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){if(!t("../core/env").canvasSupported){var e=t("../core/vector"),i=t("../core/BoundingRect"),u=t("../core/PathProxy").CMD,c=t("../tool/color"),f=t("../contain/text"),d=t("../graphic/mixin/RectText"),p=t("../graphic/Displayable"),m=t("../graphic/Image"),g=t("../graphic/Text"),y=t("../graphic/Path"),_=t("../graphic/Gradient"),w=t("./core"),M=Math.round,T=Math.sqrt,C=Math.abs,L=Math.cos,A=Math.sin,P=Math.max,z=e[o],I=",",D="progid:DXImageTransform.Microsoft",O=21600,R=O/2,B=1e5,N=1e3,F=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=O+","+O,t.coordorigin="0,0"},G=function(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},V=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},H=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},q=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},W=function(t,e,i){return(parseFloat(t)||0)*B+(parseFloat(e)||0)*N+i},Z=function(t,e){return typeof t===S?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},U=function(t,e,i){var r=c.parse(e);i=+i,isNaN(i)&&(i=1),r&&(t.color=V(r[0],r[1],r[2]),t.opacity=i*r[3])},j=function(t){var e=c.parse(t);return[V(e[0],e[1],e[2]),e[3]]},X=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof _){var a,o=0,s=[0,0],u=0,c=1,h=i[l](),f=h.width,d=h[x];if("linear"===n.type){a="gradient";var p=i[r],v=[n.x*f,n.y*d],m=[n.x2*f,n.y2*d];p&&(z(v,v,p),z(m,m,p));var g=m[0]-v[0],y=m[1]-v[1];o=180*Math.atan2(g,y)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{a="gradientradial";var v=[n.x*f,n.y*d],p=i[r],b=i.scale,w=f,M=d;s=[(v[0]-h.x)/w,(v[1]-h.y)/M],p&&z(v,v,p),w/=b[0]*O,M/=b[1]*O;var T=P(w,M);u=0/T,c=2*n.r/T-u}var S=n.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[k],L=[],A=[],I=0;C>I;I++){var D=S[I],E=j(D.color);A.push(D.offset*c+u+" "+E[0]),(0===I||I===C-1)&&L.push(E)}if(C>=2){var R=L[0][0],B=L[1][0],N=L[0][1]*e.opacity,F=L[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=R,t.color2=B,t.colors=A.join(","),t.opacity=F,t.opacity2=N}"radial"===a&&(t.focusposition=s.join(","))}else U(t,n,e.opacity)},Y=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[a]||e[a]instanceof _||U(t,e[a],e.opacity)},$=function(t,e,i,r){var n="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(n||!n&&i.lineWidth)?(t[n?"filled":"stroked"]="true",i[e]instanceof _&&q(t,a),a||(a=w.createNode(e)),n?X(a,i,r):Y(a,i),H(t,a)):(t[n?"filled":"stroked"]="false",q(t,a))},Q=[[],[],[]],K=function(t,e){var i,r,n,a,o,s,l=u.M,c=u.C,h=u.L,f=u.A,d=u.Q,p=[];for(a=0;a<t[k];){switch(n=t[a++],r="",i=0,n){case l:r=" m ",i=1,o=t[a++],s=t[a++],Q[0][0]=o,Q[0][1]=s;break;case h:r=" l ",i=1,o=t[a++],s=t[a++],Q[0][0]=o,Q[0][1]=s;break;case d:case c:r=" c ",i=3;var v,m,g=t[a++],y=t[a++],_=t[a++],x=t[a++];n===d?(v=_,m=x,_=(_+2*g)/3,x=(x+2*y)/3,g=(o+2*g)/3,y=(s+2*y)/3):(v=t[a++],m=t[a++]),Q[0][0]=g,Q[0][1]=y,Q[1][0]=_,Q[1][1]=x,Q[2][0]=v,Q[2][1]=m,o=v,s=m;break;case f:var b=0,w=0,S=1,C=1,P=0;e&&(b=e[4],w=e[5],S=T(e[0]*e[0]+e[1]*e[1]),C=T(e[2]*e[2]+e[3]*e[3]),P=Math.atan2(-e[1]/C,e[0]/S));var D=t[a++],E=t[a++],B=t[a++],N=t[a++],F=t[a++]+P,G=t[a++]+F+P;a++;var V=t[a++],H=D+L(F)*B,q=E+A(F)*N,g=D+L(G)*B,y=E+A(G)*N,W=V?" wa ":" at ";Math.abs(H-g)<1e-10&&(Math.abs(G-F)>.01?V&&(H+=270/O):Math.abs(q-E)<1e-10?V&&D>H||!V&&H>D?y-=270/O:y+=270/O:V&&E>q||!V&&q>E?g+=270/O:g-=270/O),p.push(W,M(((D-B)*S+b)*O-R),I,M(((E-N)*C+w)*O-R),I,M(((D+B)*S+b)*O-R),I,M(((E+N)*C+w)*O-R),I,M((H*S+b)*O-R),I,M((q*C+w)*O-R),I,M((g*S+b)*O-R),I,M((y*C+w)*O-R)),o=g,s=y;break;case u.R:var Z=Q[0],U=Q[1];Z[0]=t[a++],Z[1]=t[a++],U[0]=Z[0]+t[a++],U[1]=Z[1]+t[a++],e&&(z(Z,Z,e),z(U,U,e)),Z[0]=M(Z[0]*O-R),U[0]=M(U[0]*O-R),Z[1]=M(Z[1]*O-R),U[1]=M(U[1]*O-R),p.push(" m ",Z[0],I,Z[1]," l ",U[0],I,Z[1]," l ",U[0],I,U[1]," l ",Z[0],I,U[1]);break;case u.Z:p.push(" x ")}if(i>0){p.push(r);for(var j=0;i>j;j++){var X=Q[j];e&&z(X,X,e),p.push(M(X[0]*O-R),I,M(X[1]*O-R),i-1>j?I:"")}}}return p.join("")};y[E].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=w.createNode("shape"),F(i),this._vmlEl=i),$(i,"fill",e,this),$(i,a,e,this);var n=this[r],o=null!=n,s=i.getElementsByTagName(a)[0];if(s){var u=e.lineWidth;if(o&&!e.strokeNoScale){var c=n[0]*n[3]-n[1]*n[2];u*=T(C(c))}s.weight=u+"px"}var h=this.path;this.__dirtyPath&&(h.beginPath(),this.buildPath(h,this.shape),h.toStatic(),this.__dirtyPath=!1),i.path=K(h.data,this[r]),i.style.zIndex=W(this[v],this.z,this.z2),H(t,i),e.text?this.drawRectText(t,this[l]()):this.removeRectText(t)},y[E].onRemove=function(t){q(t,this._vmlEl),this.removeRectText(t)},y[E].onAdd=function(t){H(t,this._vmlEl),this.appendRectText(t)};var J=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};m[E].brushVML=function(t){var e,i,n=this.style,a=n.image;if(J(a)){var o=a.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=a.runtimeStyle,u=s.width,c=s[x];s.width="auto",s[x]="auto",e=a.width,i=a[x],s.width=u,s[x]=c,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}a=o}else a===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(a){var h=n.x||0,f=n.y||0,d=n.width,p=n[x],m=n.sWidth,g=n.sHeight,y=n.sx||0,_=n.sy||0,b=m&&g,S=this._vmlEl;S||(S=w.doc.createElement("div"),F(S),this._vmlEl=S);var C,L=S.style,A=!1,k=1,E=1;if(this[r]&&(C=this[r],k=T(C[0]*C[0]+C[1]*C[1]),E=T(C[2]*C[2]+C[3]*C[3]),A=C[1]||C[2]),A){var O=[h,f],R=[h+d,f],B=[h,f+p],N=[h+d,f+p];z(O,O,C),z(R,R,C),z(B,B,C),z(N,N,C);var G=P(O[0],R[0],B[0],N[0]),V=P(O[1],R[1],B[1],N[1]),q=[];q.push("M11=",C[0]/k,I,"M12=",C[2]/E,I,"M21=",C[1]/k,I,"M22=",C[3]/E,I,"Dx=",M(h*k+C[4]),I,"Dy=",M(f*E+C[5])),L.padding="0 "+M(G)+"px "+M(V)+"px 0",L.filter=D+".Matrix("+q.join("")+", SizingMethod=clip)"}else C&&(h=h*k+C[4],f=f*E+C[5]),L.filter="",L.left=M(h)+"px",L.top=M(f)+"px";var Z=this._imageEl,U=this._cropEl;Z||(Z=w.doc.createElement("div"),this._imageEl=Z);var j=Z.style;if(b){if(e&&i)j.width=M(k*e*d/m)+"px",j[x]=M(E*i*p/g)+"px";else{var X=new Image,Y=this;X.onload=function(){X.onload=null,e=X.width,i=X[x],j.width=M(k*e*d/m)+"px",j[x]=M(E*i*p/g)+"px",Y._imageWidth=e,Y._imageHeight=i,Y._imageSrc=a},X.src=a}U||(U=w.doc.createElement("div"),U.style.overflow="hidden",this._cropEl=U);var $=U.style;$.width=M((d+y*d/m)*k),$[x]=M((p+_*p/g)*E),$.filter=D+".Matrix(Dx="+-y*d/m*k+",Dy="+-_*p/g*E+")",U.parentNode||S.appendChild(U),Z.parentNode!=U&&U.appendChild(Z)}else j.width=M(k*d)+"px",j[x]=M(E*p)+"px",S.appendChild(Z),U&&U.parentNode&&(S.removeChild(U),this._cropEl=null);var Q="",K=n.opacity;1>K&&(Q+=".Alpha(opacity="+M(100*K)+") "),Q+=D+".AlphaImageLoader(src="+a+", SizingMethod=scale)",j.filter=Q,S.style.zIndex=W(this[v],this.z,this.z2),H(t,S),n.text&&this.drawRectText(t,this[l]())}},m[E].onRemove=function(t){q(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},m[E].onAdd=function(t){H(t,this._vmlEl),this.appendRectText(t)};var te,ee=n,ie={},re=0,ne=100,ae=document.createElement("div"),oe=function(t){var e=ie[t];if(!e){re>ne&&(re=0,ie={});var i,r=ae.style;try{r.font=t,i=r.fontFamily.split(",")[0]}catch(n){}e={style:r.fontStyle||ee,variant:r.fontVariant||ee,weight:r.fontWeight||ee,size:0|parseFloat(r.fontSize||12),family:i||"Microsoft YaHei"},ie[t]=e,re++}return e};f.measureText=function(t,e){var i=w.doc;te||(te=i.createElement("div"),te.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",w.doc.body.appendChild(te));try{te.style.font=e}catch(r){}return te.innerHTML="",te.appendChild(i.createTextNode(t)),{width:te.offsetWidth}};for(var se=new i,le=function(t,e,i,n){var u=this.style,c=u.text;if(c){var d,p,m=u.textAlign,g=oe(u.textFont),y=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"',_=u.textBaseline,T=u.textVerticalAlign;i=i||f[l](c,y,m,_);var C=this[r];if(C&&!n&&(se.copy(e),se[o](C),e=se),n)d=e.x,p=e.y;else{var L=u.textPosition,A=u.textDistance;if(L instanceof Array)d=e.x+Z(L[0],e.width),p=e.y+Z(L[1],e[x]),m=m||"left",_=_||"top";else{var P=f.adjustTextPositionOnRect(L,e,i,A);d=P.x,p=P.y,m=m||P.textAlign,_=_||P.textBaseline}}if(T){switch(T){case h:p-=i[x]/2;break;case b:p-=i[x]}_="top"}var k=g.size;switch(_){case"hanging":case"top":p+=k/1.75;break;case h:break;default:p-=k/2.25}switch(m){case"left":break;case s:d-=i.width/2;break;case"right":d-=i.width}var D,E,O,R=w.createNode,B=this._textVmlEl;B?(O=B.firstChild,D=O.nextSibling,E=D.nextSibling):(B=R("line"),D=R("path"),E=R("textpath"),O=R("skew"),E.style["v-text-align"]="left",F(B),D.textpathok=!0,E.on=!0,B.from="0 0",B.to="1000 0.05",H(B,O),H(B,D),H(B,E),this._textVmlEl=B);var N=[d,p],V=B.style;C&&n?(z(N,N,C),O.on=!0,O.matrix=C[0].toFixed(3)+I+C[2].toFixed(3)+I+C[1].toFixed(3)+I+C[3].toFixed(3)+",0,0",O.offset=(M(N[0])||0)+","+(M(N[1])||0),O.origin="0 0",V.left="0px",V.top="0px"):(O.on=!1,V.left=M(d)+"px",V.top=M(p)+"px"),E[S]=G(c);try{E.style.font=y}catch(q){}$(B,"fill",{fill:n?u.fill:u.textFill,opacity:u.opacity},this),$(B,a,{stroke:n?u[a]:u.textStroke,opacity:u.opacity,lineDash:u.lineDash},this),B.style.zIndex=W(this[v],this.z,this.z2),H(t,B)}},ue=function(t){q(t,this._textVmlEl),this._textVmlEl=null},ce=function(t){H(t,this._textVmlEl)},he=[d,p,m,y,g],fe=0;fe<he[k];fe++){var de=he[fe][E];de.drawRectText=le,de.removeRectText=ue,de.appendRectText=ce}g[E].brushVML=function(t){var e=this.style;e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[l](),!0):this.removeRectText(t)},g[E].onRemove=function(t){this.removeRectText(t)},g[E].onAdd=function(t){this.appendRectText(t)}}}),e("zrender/zrender",[B,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete c[t]}var i=t("./core/guid"),r=t("./core/env"),n=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=t("./dom/HandlerProxy"),l=!r.canvasSupported,u={canvas:t("./Painter")},c={},h={};h.version="3.1.3",h.init=function(t,e){var r=new f(i(),t,e);return c[r.id]=r,r},h.dispose=function(t){if(t)t.dispose();else{for(var e in c)c[e].dispose();c={}}return h},h.getInstance=function(t){return c[t]},h.registerPainter=function(t,e){u[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var c=this,h=new a,f=i.renderer;if(l){if(!u.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&u[f]||(f="canvas");var d=new u[f](e,h,i);this.storage=h,this.painter=d;var p=r.node?null:new s(d.getViewportRoot());this.handler=new n(h,d,p),this[T]=new o({stage:{update:function(){c._needsRefresh&&c.refreshImmediately(),c._needsRefreshHover&&c.refreshHoverImmediately()}}}),this[T].start(),this._needsRefresh;var v=h.delFromMap,m=h.addToMap;h.delFromMap=function(t){var e=h.get(t);v.call(h,t),e&&e.removeSelfFromZr(c)},h.addToMap=function(t){m.call(h,t),t.addSelfToZr(c)}};return f[E]={constructor:f,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},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(){this.painter.resize(),this.handler.resize()},clearAnimation:function(){this[T].clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e,r){var n=i();return this.painter.pathToImage(n,t,e,r)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[T].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this[T]=this.storage=this.painter=this.handler=null,e(this.id)}},h}),e("zrender/vml/Painter",[B,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this.storage=e;var i=document.createElement("div"),r=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",r.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=r,this._vmlViewport=i,this.resize();var n=e.delFromMap,o=e.addToMap;e.delFromMap=function(t){var i=e.get(t);n.call(e,t),i&&i.onRemove&&i.onRemove(r)},e.addToMap=function(t){t.onAdd&&t.onAdd(r),o.call(e,t)},this._firstPaint=!0}function r(t){return function(){n('In IE8.0 VML mode painter not support method "'+t+'"')}}var n=t("../core/log"),a=t("./core");i[E]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[k];i++){var r=t[i];r.invisible||r[w]?(r.__alreadyNotVisible||r.onRemove(e),r.__alreadyNotVisible=!0):(r.__alreadyNotVisible&&r.onAdd(e),r.__alreadyNotVisible=!1,r.__dirty&&(r.beforeBrush&&r.beforeBrush(),(r.brushVML||r.brush).call(r,e),r.afterBrush&&r.afterBrush())),r.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[x]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this.root.removeChild(this.vmlViewport)},_getWidth:function(){var t=this.root,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t.clientHeight||e(i[x]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[k];s++){var l=o[s];i[E][l]=r(l)}return i}),e("zrender/core/env",[],function(){function t(t){var e={},i={},r=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/);return r&&(i.firefox=!0,i.version=r[1]),n&&(i.ie=!0,i.version=n[1]),n&&(i.ie=!0,i.version=n[1]),a&&(i.edge=!0,i.version=a[1]),{browser:i,os:e,node:!1,canvasSupported:document.createElement("canvas").getContext?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===i?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/ExtensionAPI",[B,R],function(t){function e(t){i.each(r,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(R),r=["getDom","getZr","getWidth","getHeight","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",M,"getOption"];return e}),e("echarts/model/Global",[B,R,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){for(var i in e)M.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?u.merge(t[i],e[i],!1):u.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this.option={},this.option[S]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme.option),u.merge(t,T,!1),this.mergeOption(t)}function r(t,e){u[p](e)||(e=e?[e]:[]);var i={};return v(e,function(e){i[e]=(t[e]||[]).slice()}),i}function n(t,e){var i={};v(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),v(e,function(e){var r=e.option;if(u.assert(!r||null==r.id||!i[r.id]||i[r.id]===e,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&(i[r.id]=e),w(r)){var n=a(t,r,e.exist);e.keyInfo={mainType:t,subType:n}}}),v(e,function(t){var e=t.exist,r=t.option,n=t.keyInfo;if(w(r)){if(n.name=null!=r.name?r.name+"":e?e.name:"\x00-",e)n.id=e.id;else if(null!=r.id)n.id=r.id+"";else{var a=0;do n.id="\x00"+n.name+"\x00"+a++;while(i[n.id])}i[n.id]=t}})}function a(t,e,i){var r=e.type?e.type:i?i.subType:M.determineSubType(t,e);return r}function o(t){return _(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t.subType===e.subType}):t}function l(t){}var u=t(R),c=t("../util/model"),h=t("./Model"),v=u.each,m=u.filter,_=u.map,x=u[p],b=u[f],w=u[y],M=t("./Component"),T=t("./globalDefault"),S="\x00_ec_inner",C=h[D]({constructor:C,init:function(t,e,i,r){i=i||{},this.option=null,this._theme=new h(i),this._optionManager=r},setOption:function(t,e){u.assert(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,r=this._optionManager;if(!t||"recreate"===t){var n=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):i.call(this,n),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=r.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=r.getMediaOption(this,this._api);o[k]&&v(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=c.normalizeToArray(t[e]),h=c.mappingToExists(a[e],l);n(e,h);var f=r(a,s);i[e]=[],a[e]=[],v(h,function(t,r){var n=t.exist,o=t.option;if(u.assert(w(o)||n,"Empty component definition"),o){var s=M.getClass(e,t.keyInfo.subType,!0);if(n&&n instanceof s)n.mergeOption(o,this),n.optionUpdated(o,!1);else{var l=u[D]({dependentModels:f,componentIndex:r},t.keyInfo);n=new s(o,this,this,l),n.init(o,this,this,l),n.optionUpdated(null,!0)}}else n.mergeOption({},this),n.optionUpdated({},!1);a[e][r]=n,i[e][r]=n.option},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this.option,a=this._componentsMap,s=[];v(t,function(t,e){null!=t&&(M.hasClass(e)?s.push(e):i[e]=null==i[e]?u.clone(t):u.merge(i[e],t,!0))}),M.topologicalTravel(s,M.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=u.clone(this.option);return v(t,function(e,i){if(M.hasClass(i)){for(var e=c.normalizeToArray(e),r=e[k]-1;r>=0;r--)c.isIdInner(e[r])&&e[g](r,1); +t[i]=e}}),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,r=t.id,n=t.name,a=this._componentsMap[e];if(!a||!a[k])return[];var o;if(null!=i)x(i)||(i=[i]),o=m(_(i,function(t){return a[t]}),function(t){return!!t});else if(null!=r){var l=x(r);o=m(a,function(t){return l&&b(r,t.id)>=0||!l&&t.id===r})}else if(null!=n){var u=x(n);o=m(a,function(t){return u&&b(n,t.name)>=0||!u&&t.name===n})}else o=a;return s(o,t)},findComponents:function(t){function e(t){var e=n+"Index",i=n+"Id",r=n+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(r))?{mainType:n,index:t[e],id:t[i],name:t[r]}:null}function i(e){return t.filter?m(e,t.filter):e}var r=t.query,n=t.mainType,a=e(r),o=a?this.queryComponents(a):this._componentsMap[n];return i(s(o,t))},eachComponent:function(t,e,i){var r=this._componentsMap;if(typeof t===d)i=e,e=t,v(r,function(t,r){v(t,function(t,n){e.call(i,r,t,n)})});else if(u.isString(t))v(r[t],e,i);else if(w(t)){var n=this.findComponents(t);v(n,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return m(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return m(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){l(this),v(this._seriesIndices,function(i){var r=this._componentsMap.series[i];t.call(e,r,i)},this)},eachRawSeries:function(t,e){v(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){l(this),v(this._seriesIndices,function(r){var n=this._componentsMap.series[r];n.subType===t&&e.call(i,n,r)},this)},eachRawSeriesByType:function(t,e,i){return v(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),u[f](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=m(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];v(t,function(t,i){e.push(i)}),M.topologicalTravel(e,M.getAllClassMainTypes(),function(e){v(t[e],function(t){t.restoreData()})})}});return u.mixin(C,t("./mixin/colorPalette")),C}),e("echarts/CoordinateSystem",[B],function(){function t(){this._coordinateSystems=[]}var e={};return t[E]={constructor:t,create:function(t,i){var r=[];for(var n in e){var a=e[n][A](t,i);a&&(r=r.concat(a))}this._coordinateSystems=r},update:function(t,e){for(var i=this._coordinateSystems,r=0;r<i[k];r++)i[r].update&&i[r].update(t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/OptionManager",[B,R,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var r,n,a=[],o=[],l=t.timeline;if(t.baseOption&&(n=t.baseOption),(l||t.options)&&(n=n||{},a=(t.options||[]).slice()),t.media){n=n||{};var u=t.media;c(u,function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))})}return n||(n=t),n.timeline||(n.timeline=l),c([n].concat(a).concat(s.map(o,function(t){return t.option})),function(t){c(e,function(e){e(t,i)})}),{baseOption:n,timelineOptions:a,mediaDefault:r,mediaList:o}}function r(t,e,i){var r={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][C]();n(r[s],t,o)||(a=!1)}}),a}function n(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var r=t[i];if(u.hasClass(i)){e=l.normalizeToArray(e),r=l.normalizeToArray(r);var n=l.mappingToExists(r,e);t[i]=f(n,function(t){return t.option&&t.exist?d(t.exist,t.option,!0):t.exist||t.option})}else t[i]=d(r,e,!0)}})}var s=t(R),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[E]={constructor:e,setOption:function(t,e){t=h(t,!0);var r=this._optionBackup,n=i.call(this,t,e,!r);this._newBaseOption=n.baseOption,r?(o(r.baseOption,n.baseOption),n.timelineOptions[k]&&(r.timelineOptions=n.timelineOptions),n.mediaList[k]&&(r.mediaList=n.mediaList),n.mediaDefault&&(r.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[k]){var r=t.getComponent("timeline");r&&(e=h(i[r.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!i[k]&&!n)return s;for(var l=0,u=i[k];u>l;l++)r(i[l].query,t,e)&&o.push(l);return!o[k]&&n&&(o=[-1]),o[k]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?n.option:i[t].option)})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[B,"./Model",R,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return r.each(l.getClassesByMainType(t),function(t){n.apply(e,t[E].dependencies||[])}),r.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),r=t(R),n=Array[E].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[D]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,o){i.call(this,t,e,n,o),r[D](this,o),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?s.getLayoutParams(t):{},a=e.getTheme();r.merge(t,a.get(this.mainType)),r.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,n,i)},mergeOption:function(t){r.merge(this.option,t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[E].defaultOption;i&&t.push(i),e=e.superClass}for(var n={},a=t[k]-1;a>=0;a--)n=r.merge(n,t[a],!0);this.__defaultOption=n}return this.__defaultOption}});return o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),r.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/Series",[B,R,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env"],function(t){var e=t(R),i=t("../util/format"),r=t("../util/model"),n=t("./Component"),a=t("./mixin/colorPalette"),o=t("zrender/core/env"),s=i.encodeHTML,l=i.addCommas,c=n[D]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),r.defaultEmphasis(t.label,r.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var r=this.getInitialData(t,i);r&&(this._data=r,this._dataBeforeProcessed=r.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[k];e++)t[e]&&t[e].label&&r.defaultEmphasis(t[e].label,r.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){return null==t?this._data:this._data.getLinkedData(t)},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this[O];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,r){function n(t){return e.map(t,function(t,e){var n=a.getDimensionInfo(e),o=n&&n.type;return o===u?t:"time"===o?r?"":i.formatTime("yyyy/mm/dd hh:mm:ss",t):l(t)}).filter(function(t){return!!t}).join(", ")}var a=this._data,o=this.getRawValue(t),c=e[p](o)?n(o):l(o),h=a.getName(t),f=a.getItemVisual(t,"color"),d='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+f+'"></span>',v=this.name;return"\x00-"===v&&(v=""),r?d+s(this.name)+" : "+c:(v&&s(v)+"<br />")+d+(h?s(h)+" : "+c:c)},ifEnableAnimation:function(){if(o.node)return!1;var t=this.getShallow(T);return t&&this[_]().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this.ecModel,r=a.getColorFromPalette.call(this,t,e);return r||(r=i.getColorFromPalette(t,e)),r},getAxisTooltipDataIndex:null});return e.mixin(c,r.dataFormatMixin),e.mixin(c,a),c}),e("echarts/view/Chart",[B,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new a,this.uid=o.getUID("viewChart")}function i(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var r=0;r<t.childCount();r++)i(t.childAt(r),e)}function r(t,e,r){var n=e&&e[m],a=e&&e.name;if(null!=n)for(var o=n instanceof Array?n:[n],s=0,l=o[k];l>s;s++)i(t.getItemGraphicEl(o[s]),r);else if(a)for(var u=a instanceof Array?a:[a],s=0,l=u[k];l>s;s++){var n=t.indexOfName(u[s]);i(t.getItemGraphicEl(n),r)}else t.eachItemGraphicEl(function(t){i(t,r)})}var a=t("zrender/container/Group"),o=t("../util/component"),s=t("../util/clazz");e[E]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,n){r(t[_](),n,"emphasis")},downplay:function(t,e,i,a){r(t[_](),a,n)},remove:function(){this.group.removeAll()},dispose:function(){}};var l=e[E];return l.updateView=l.updateLayout=l.updateVisual=function(t,e,i,r){this.render(t,e,i,r)},s.enableClassExtend(e),s.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/view/Component",[B,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),r=t("../util/clazz"),n=function(){this.group=new e,this.uid=i.getUID("viewComponent")};n[E]={constructor:n,init:function(){},render:function(){},dispose:function(){}};var a=n[E];return a.updateView=a.updateLayout=a.updateVisual=function(){},r.enableClassExtend(n),r.enableClassManagement(n,{registerWhenExtend:!0}),n}),e("zrender/tool/color",[B],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function i(t){return 0>t?0:t>1?1:t}function r(e){return t(e[k]&&"%"===e.charAt(e[k]-1)?parseFloat(e)/100*255:parseInt(e,10))}function n(t){return i(t[k]&&"%"===t.charAt(t[k]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t.replace(/ /g,"")[C]();if(e in y)return y[e].slice();if("#"!==e.charAt(0)){var i=e[f]("("),a=e[f](")");if(-1!==i&&a+1===e[k]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[k])return;u=n(s.pop());case"rgb":if(3!==s[k])return;return[r(s[0]),r(s[1]),r(s[2]),u];case"hsla":if(4!==s[k])return;return s[3]=n(s[3]),l(s);case"hsl":if(3!==s[k])return;return l(s);default:return}}}else{if(4===e[k]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[k]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,r=n(e[1]),o=n(e[2]),s=.5>=o?o*(r+1):o+r-o*r,l=2*o-s,u=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[k]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,r=t[0]/255,n=t[1]/255,a=t[2]/255,o=Math.min(r,n,a),s=Math.max(r,n,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,h=((s-n)/6+l/2)/l,f=((s-a)/6+l/2)/l;r===s?e=f-h:n===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,u];return null!=t[3]&&d.push(t[3]),d}}function c(t,e){var i=s(t);if(i){for(var r=0;3>r;r++)i[r]=0>e?i[r]*(1-e)|0:(255-i[r])*e+i[r]|0;return g(i,4===i[k]?"rgba":"rgb")}}function h(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function d(e,i,r){if(i&&i[k]&&e>=0&&1>=e){r=r||[0,0,0,0];var n=e*(i[k]-1),a=Math.floor(n),s=Math.ceil(n),l=i[a],u=i[s],c=n-a;return r[0]=t(o(l[0],u[0],c)),r[1]=t(o(l[1],u[1],c)),r[2]=t(o(l[2],u[2],c)),r[3]=t(o(l[3],u[3],c)),r}}function p(e,r,n){if(r&&r[k]&&e>=0&&1>=e){var a=e*(r[k]-1),l=Math.floor(a),u=Math.ceil(a),c=s(r[l]),h=s(r[u]),f=a-l,d=g([t(o(c[0],h[0],f)),t(o(c[1],h[1],f)),t(o(c[2],h[2],f)),i(o(c[3],h[3],f))],"rgba");return n?{color:d,leftIndex:l,rightIndex:u,value:a}:d}}function v(t,i,r,a){return t=s(t),t?(t=u(t),null!=i&&(t[0]=e(i)),null!=r&&(t[1]=n(r)),null!=a&&(t[2]=n(a)),g(l(t),"rgba")):void 0}function m(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),g(t,"rgba")):void 0}function g(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var y={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:c,toHex:h,fastMapToColor:d,mapToColor:p,modifyHSL:v,modifyAlpha:m,stringify:g}}),e("zrender/mixin/Eventful",[B],function(){var t=Array[E].slice,e=function(){this._$handlers={}};return e[E]={constructor:e,one:function(t,e,i){var r=this._$handlers;if(!e||!t)return this;r[t]||(r[t]=[]);for(var n=0;n<r[t][k];n++)if(r[t][n].h===e)return this;return r[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var r=this._$handlers;if(!e||!t)return this;r[t]||(r[t]=[]);for(var n=0;n<r[t][k];n++)if(r[t][n].h===e)return this;return r[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][k]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var r=[],n=0,a=i[t][k];a>n;n++)i[t][n].h!=e&&r.push(i[t][n]);i[t]=r}i[t]&&0===i[t][k]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,r=i[k];r>3&&(i=t.call(i,1));for(var n=this._$handlers[e],a=n[k],o=0;a>o;){switch(r){case 1:n[o].h.call(n[o].ctx);break;case 2:n[o].h.call(n[o].ctx,i[1]);break;case 3:n[o].h.call(n[o].ctx,i[1],i[2]);break;default:n[o].h.apply(n[o].ctx,i)}n[o].one?(n[g](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,r=i[k];r>4&&(i=t.call(i,1,i[k]-1));for(var n=i[i[k]-1],a=this._$handlers[e],o=a[k],s=0;o>s;){switch(r){case 1:a[s].h.call(n);break;case 2:a[s].h.call(n,i[1]);break;case 3:a[s].h.call(n,i[1],i[2]);break;default:a[s].h.apply(n,i)}a[s].one?(a[g](s,1),o--):s++}}return this}},e}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=l;)e|=1&t,t>>=1;return t+e}function e(t,e,r,n){var a=e+1;if(a===r)return 1;if(n(t[a++],t[e])<0){for(;r>a&&n(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;r>a&&n(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var r=t[e];t[e++]=t[i],t[i--]=r}}function r(t,e,i,r,n){for(r===e&&r++;i>r;r++){for(var a,o=t[r],s=e,l=r;l>s;)a=s+l>>>1,n(o,t[a])<0?l=a:s=a+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function n(t,e,i,r,n,a){var o=0,s=0,l=1;if(a(t,e[i+n])>0){for(s=r-n;s>l&&a(t,e[i+n+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;s>l&&a(t,e[i+n-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,r,n,a){var o=0,s=0,l=1;if(a(t,e[i+n])<0){for(s=n+1;s>l&&a(t,e[i+n-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=r-n;s>l&&a(t,e[i+n+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])<0?l=c:o=c+1}return l}function o(t,e){function i(t,e){f[y]=t,d[y]=e,y+=1}function r(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]<d[t+1]&&t--,s(t)}}function s(i){var r=f[i],o=d[i],s=f[i+1],u=d[i+1];d[i]=o+u,i===y-3&&(f[i+1]=f[i+2],d[i+1]=d[i+2]),y--;var c=a(t[s],t,r,o,0,e);r+=c,o-=c,0!==o&&(u=n(t[r+o-1],t,s,u,u-1,e),0!==u&&(u>=o?l(r,o,s,u):h(r,o,s,u)))}function l(i,r,o,s){var l=0;for(l=0;r>l;l++)_[l]=t[i+l];var c=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===r){for(l=0;s>l;l++)t[f+l]=t[h+l];return void(t[f+s]=_[c])}for(var d,v,m,g=p;;){d=0,v=0,m=!1;do if(e(t[h],_[c])<0){if(t[f++]=t[h++],v++,d=0,0===--s){m=!0;break}}else if(t[f++]=_[c++],d++,v=0,1===--r){m=!0;break}while(g>(d|v));if(m)break;do{if(d=a(t[h],_,c,r,0,e),0!==d){for(l=0;d>l;l++)t[f+l]=_[c+l];if(f+=d,c+=d,r-=d,1>=r){m=!0;break}}if(t[f++]=t[h++],0===--s){m=!0;break}if(v=n(_[c],t,h,s,0,e),0!==v){for(l=0;v>l;l++)t[f+l]=t[h+l];if(f+=v,h+=v,s-=v,0===s){m=!0;break}}if(t[f++]=_[c++],1===--r){m=!0;break}g--}while(d>=u||v>=u);if(m)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===r){for(l=0;s>l;l++)t[f+l]=t[h+l];t[f+s]=_[c]}else{if(0===r)throw new Error;for(l=0;r>l;l++)t[f+l]=_[c+l]}}else for(l=0;r>l;l++)t[f+l]=_[c+l]}function h(i,r,o,s){var l=0;for(l=0;s>l;l++)_[l]=t[o+l];var c=i+r-1,h=s-1,f=o+s-1,d=0,v=0;if(t[f--]=t[c--],0!==--r){if(1===s){for(f-=r,c-=r,v=f+1,d=c+1,l=r-1;l>=0;l--)t[v+l]=t[d+l];return void(t[f]=_[h])}for(var m=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[c])<0){if(t[f--]=t[c--],g++,y=0,0===--r){x=!0;break}}else if(t[f--]=_[h--],y++,g=0,1===--s){x=!0;break}while(m>(g|y));if(x)break;do{if(g=r-a(_[h],t,i,r,r-1,e),0!==g){for(f-=g,c-=g,r-=g,v=f+1,d=c+1,l=g-1;l>=0;l--)t[v+l]=t[d+l];if(0===r){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-n(t[c],_,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,v=f+1,d=h+1,l=0;y>l;l++)t[v+l]=_[d+l];if(1>=s){x=!0;break}}if(t[f--]=t[c--],0===--r){x=!0;break}m--}while(g>=u||y>=u);if(x)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(f-=r,c-=r,v=f+1,d=c+1,l=r-1;l>=0;l--)t[v+l]=t[d+l];t[f]=_[h]}else{if(0===s)throw new Error;for(d=f-(s-1),l=0;s>l;l++)t[d+l]=_[l]}}else for(d=f-(s-1),l=0;s>l;l++)t[d+l]=_[l]}var f,d,p=u,v=0,m=c,g=0,y=0;v=t[k],2*c>v&&(m=v>>>1);var _=[];g=120>v?5:1542>v?10:119151>v?19:40,f=[],d=[],this.mergeRuns=r,this.forceMergeRuns=o,this.pushRun=i}function s(i,n,a,s){a||(a=0),s||(s=i[k]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(i,a,s,n),void r(i,a,s,a+c,n);var h=new o(i,n),f=t(u);do{if(c=e(i,a,s,n),f>c){var d=u;d>f&&(d=f),r(i,a,a+d,a+c,n),c=d}h.pushRun(a,c),h.mergeRuns(),u-=c,a+=c}while(0!==u);h.forceMergeRuns()}}var l=32,u=7,c=256;return s}),e("echarts/visual/seriesColor",[B,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var r=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),n=i[_](),a=i.get(r)||i.getColorFromPalette(i.get("name"));n.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==d||a instanceof e||n.each(function(t){n.setItemVisual(t,"color",a(i.getDataParams(t)))}),n.each(function(t){var e=n.getItemModel(t),i=e.get(r,!0);null!=i&&n.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/loading/default",[B,"../util/graphic",R],function(t){var e=t("../util/graphic"),i=t(R),r=Math.PI;return function(t,n){n=n||{},i.defaults(n,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:n.maskColor},zlevel:n[v],z:1e4}),o=new e.Arc({shape:{startAngle:-r/2,endAngle:-r/2+.1,r:10},style:{stroke:n.color,lineCap:"round",lineWidth:5},zlevel:n[v],z:10001}),s=new e.Rect({style:{fill:"none",text:n.text,textPosition:"right",textDistance:10,textFill:n.textColor},zlevel:n[v],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*r/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*r/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l.resize=function(){var e=t.getWidth()/2,i=t.getHeight()/2;o.setShape({cx:e,cy:i});var r=o.shape.r;s.setShape({x:e-r,y:i-r,width:2*r,height:2*r}),a.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},l.resize(),l}}),e("echarts/preprocessor/backwardCompat",[B,R,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,r=0;r<e[k]&&(i=i&&i[e[r]],null!=i);r++);return i}function i(t,e,i,r){e=e.split(",");for(var n,a=t,o=0;o<e[k]-1;o++)n=e[o],null==a[n]&&(a[n]={}),a=a[n];(r||null==a[e[o]])&&(a[e[o]]=i)}function r(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var n=t(R),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",b]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=n.each;return function(t){u(t.series,function(t){if(n[y](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var u=0;u<l[k];u++)if(l[u]===t.type){r(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(n[p](i)||(i=[i]),u(i,function(t){r(t)}))})}}),e("echarts/data/List",[B,"../model/Model","./DataDiffer",R,"../util/model"],function(t){function e(t){return v[p](t)||(t=[t]),t}function r(t,e){var i=t.dimensions,r=new w(v.map(i,t.getDimensionInfo,t),t.hostModel);b(r,t);for(var n=r._storage={},a=t._storage,o=0;o<i[k];o++){var s=i[o],l=a[s];n[s]=v[f](e,s)>=0?new l.constructor(a[s][k]):a[s]}return r}var n=i,a=typeof window===i?global:window,o=typeof a.Float64Array===n?Array:a.Float64Array,s=typeof a.Int32Array===n?Array:a.Int32Array,l={"float":o,"int":s,ordinal:Array,number:Array,time:Array},c=t("../model/Model"),h=t("./DataDiffer"),v=t(R),g=t("../util/model"),_=v[y],x=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],b=function(t,e){v.each(x.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},w=function(t,e){t=t||["x","y"];for(var i={},r=[],n=0;n<t[k];n++){var a,o={};typeof t[n]===S?(a=t[n],o={name:a,stackable:!1,type:"number"}):(o=t[n],a=o.name,o.type=o.type||"number"),r.push(a),i[a]=o}this.dimensions=r,this._dimensionInfos=i,this.hostModel=e,this.dataType,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[I]},M=w[E];M.type="list",M.hasItemOption=!0,M.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},M.getDimensionInfo=function(t){return v.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){t=t||[],this._rawData=t;var r=this._storage={},n=this.indices=[],a=this.dimensions,o=t[k],s=this._dimensionInfos,u=[],c={};e=e||[];for(var h=0;h<a[k];h++){var f=s[a[h]],d=l[f.type];r[a[h]]=new d(o)}var p=this;i||(p.hasItemOption=!1),i=i||function(t,e,i,r){var n=g.getDataItemValue(t);return g.isDataItemOption(t)&&(p.hasItemOption=!0),g.converDataValue(n instanceof Array?n[r]:n,s[e])};for(var v=0;v<t[k];v++){for(var m=t[v],y=0;y<a[k];y++){var _=a[y],x=r[_];x[v]=i(m,_,v,y)}n.push(v)}for(var h=0;h<t[k];h++){e[h]||t[h]&&null!=t[h].name&&(e[h]=t[h].name);var b=e[h]||"",w=t[h]&&t[h].id;!w&&b&&(c[b]=c[b]||0,w=b,c[b]>0&&(w+="__ec__"+c[b]),c[b]++),w&&(u[h]=w)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[k]},M.get=function(t,e,i){var r=this._storage,n=this.indices[e];if(null==n)return 0/0;var a=r[t]&&r[t][n];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var r=[];v[p](t)||(i=e,e=t,t=this.dimensions);for(var n=0,a=t[k];a>n;n++)r.push(this.get(t[n],e,i));return r},M.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,r=0,n=e[k];n>r;r++)if(i[e[r]].type!==u&&isNaN(this.get(e[r],t)))return!1;return!0},M.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],r=this.getDimensionInfo(t);e=r&&r.stackable&&e;var n,a=(this[I]||(this[I]={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)n=this.get(t,l,e),o>n&&(o=n),n>s&&(s=n);return this[I][t+!!e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],r=0;if(i)for(var n=0,a=this.count();a>n;n++){var o=this.get(t,n,e);isNaN(o)||(r+=o)}return r},M[f]=function(t,e){var i=this._storage,r=i[t],n=this.indices;if(r)for(var a=0,o=n[k];o>a;a++){var s=n[a];if(r[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,r=0,n=e[k];n>r;r++){var a=e[r];if(i[a]===t)return r}return-1},M.indexOfRawIndex=function(t){for(var e=this.indices,i=0,r=e[k]-1;r>=i;){var n=(i+r)/2|0;if(e[n]<t)i=n+1;else{if(!(e[n]>t))return n;r=n-1}}return-1},M.indexOfNearest=function(t,e,i,r){var n=this._storage,a=n[t];null==r&&(r=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,l=0,u=this.count();u>l;l++){var c=e-this.get(t,l,i),h=Math.abs(c);r>=c&&(s>h||h===s&&c>0)&&(s=h,o=l)}return o},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},M.getName=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,r,n){typeof t===d&&(n=r,r=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=t[k],s=this.indices;n=n||this;for(var l=0;l<s[k];l++)switch(o){case 0:i.call(n,l);break;case 1:i.call(n,this.get(t[0],l,r),l);break;case 2:i.call(n,this.get(t[0],l,r),this.get(t[1],l,r),l);break;default:for(var u=0;o>u;u++)a[u]=this.get(t[u],l,r);a[u]=l,i.apply(n,a)}},M.filterSelf=function(t,i,r,n){typeof t===d&&(n=r,r=i,i=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=[],s=t[k],l=this.indices;n=n||this;for(var u=0;u<l[k];u++){var c;if(1===s)c=i.call(n,this.get(t[0],u,r),u);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],u,r);o[h]=u,c=i.apply(n,o)}c&&a.push(l[u])}return this.indices=a,this[I]={},this},M.mapArray=function(t,e,i,r){typeof t===d&&(r=i,i=e,e=t,t=[]);var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i,r),n},M.map=function(t,i,n,a){t=v.map(e(t),this.getDimension,this);var o=r(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[k]-1],r=i&&i.apply(this,arguments);if(null!=r){"number"==typeof r&&(u[0]=r,r=u);for(var n=0;n<r[k];n++){var a=t[n],o=l[a],c=s[e];o&&(o[c]=r[n])}}},n,a),o},M.downSample=function(t,e,i,n){for(var a=r(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),v=0;v<o[t][k];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=f){f>p-v&&(f=p-v,c[k]=f);for(var m=0;f>m;m++){var g=l[v+m];c[m]=d[g],h[m]=g}var y=i(c),g=h[n(c,y)||0];d[g]=y,u.push(g)}return a},M.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new c(this._rawData[t],e,e&&e.ecModel)},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new h(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},M.getVisual=function(t){var e=this._visual;return e&&e[t]},M.setVisual=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},M.setLayout=function(t,e){if(_(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},M.getLayout=function(t){return this._layout[t]},M.getItemLayout=function(t){return this._itemLayouts[t]},M.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?v[D](this._itemLayouts[t]||{},e):e},M.clearItemLayouts=function(){this._itemLayouts[k]=0},M.getItemVisual=function(t,e,i){var r=this._itemVisuals[t],n=r&&r[e];return null!=n||i?n:this.getVisual(e)},M.setItemVisual=function(t,e,i){var r=this._itemVisuals[t]||{}; +if(this._itemVisuals[t]=r,_(e))for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);else r[e]=i},M.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var T=function(t){t.seriesIndex=this.seriesIndex,t[m]=this[m],t.dataType=this.dataType};return M.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[m]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},M.getItemGraphicEl=function(t){return this._graphicEls[t]},M.eachItemGraphicEl=function(t,e){v.each(this._graphicEls,function(i,r){i&&t&&t.call(e,i,r)})},M.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),e.indices=this.indices.slice(),this[I]&&(e[I]=v[D]({},this[I])),e},M.wrapMethod=function(t,e){var i=this[t];typeof i===d&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(v.slice(arguments)))})},M.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],M.CHANGABLE_METHODS=["filterSelf"],w}),e("echarts/model/Model",[B,R,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}var i=t(R),r=t("../util/clazz");e[E]={constructor:e,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;typeof t===S&&(t=t.split("."));for(var i=this.option,r=this.parentModel,n=0;n<t[k]&&(!t[n]||(i=i&&"object"==typeof i?i[t[n]]:null,null!=i));n++);return null==i&&r&&!e&&(i=r.get(t)),i},getShallow:function(t,e){var i=this.option,r=null==i?i:i[t],n=this.parentModel;return null==r&&n&&!e&&(r=n.getShallow(t)),r},getModel:function(t,i){var r=this.get(t,!0),n=this.parentModel,a=new e(r,i||n&&n[M](t),this.ecModel);return a},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){r.setReadOnly(this,t)}},r.enableClassExtend(e);var n=i.mixin;return n(e,t("./mixin/lineStyle")),n(e,t("./mixin/areaStyle")),n(e,t("./mixin/textStyle")),n(e,t("./mixin/itemStyle")),e}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var r=e[0]*i[0]+e[2]*i[1],n=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=r,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var r=e[0],n=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=r*c+o*u,t[1]=-r*u+o*c,t[2]=n*c+s*u,t[3]=-n*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,i){var r=i[0],n=i[1];return t[0]=e[0]*r,t[1]=e[1]*n,t[2]=e[2]*r,t[3]=e[3]*n,t[4]=e[4]*r,t[5]=e[5]*n,t},invert:function(t,e){var i=e[0],r=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*r;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-r*l,t[3]=i*l,t[4]=(r*s-o*n)*l,t[5]=(a*n-i*s)*l,t):null}};return e}),e(L,[],function(){var t=typeof Float32Array===i?Array:Float32Array,e={create:function(e,i){var r=new t(2);return null==e&&(e=0),null==i&&(i=0),r[0]=e,r[1]=i,r},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,r){return t[0]=e[0]+i[0]*r,t[1]=e[1]+i[1]*r,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var r=e.len(i);return 0===r?(t[0]=0,t[1]=0):(t[0]=i[0]/r,t[1]=i[1]/r),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,r){return t[0]=e[0]+r*(i[0]-e[0]),t[1]=e[1]+r*(i[1]-e[1]),t},applyTransform:function(t,e,i){var r=e[0],n=e[1];return t[0]=i[0]*r+i[2]*n+i[4],t[1]=i[1]*r+i[3]*n+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[k]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/scale/Scale",[B,"../util/clazz"],function(t){function e(){this[I]=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),r=e[E];return r.parse=function(t){return t},r[z]=function(t){var e=this[I];return t>=e[0]&&t<=e[1]},r[P]=function(t){var e=this[I];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.scale=function(t){var e=this[I];return t*(e[1]-e[0])+e[0]},r.unionExtent=function(t){var e=this[I];t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.getExtent=function(){return this[I].slice()},r.setExtent=function(t,e){var i=this[I];isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[k];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("zrender/tool/path",[B,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,r,n,a,o,s,l,u,p){var g=l*(d/180),y=f(g)*(t-i)/2+h(g)*(e-r)/2,_=-1*h(g)*(t-i)/2+f(g)*(e-r)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=c(x),s*=c(x));var b=(n===a?-1:1)*c((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,T=(t+i)/2+f(g)*w-h(g)*M,S=(e+r)/2+h(g)*w+f(g)*M,C=m([1,0],[(y-w)/o,(_-M)/s]),L=[(y-w)/o,(_-M)/s],A=[(-1*y-w)/o,(-1*_-M)/s],P=m(L,A);v(L,A)<=-1&&(P=d),v(L,A)>=1&&(P=0),0===a&&P>0&&(P-=2*d),1===a&&0>P&&(P+=2*d),p.addData(u,T,S,o,s,C,P,g,a)}function i(t){if(!t)return[];var i,r=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(i=0;i<u[k];i++)r=r.replace(new RegExp(u[i],"g"),"|"+u[i]);var n,o=r.split("|"),s=0,l=0,c=new a,h=a.CMD;for(i=1;i<o[k];i++){var f,d=o[i],p=d.charAt(0),v=0,m=d.slice(1).replace(/e,-/g,"e-").split(",");m[k]>0&&""===m[0]&&m.shift();for(var g=0;g<m[k];g++)m[g]=parseFloat(m[g]);for(;v<m[k]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,_,x,b,w,M,T,S=s,C=l;switch(p){case"l":s+=m[v++],l+=m[v++],f=h.L,c.addData(f,s,l);break;case"L":s=m[v++],l=m[v++],f=h.L,c.addData(f,s,l);break;case"m":s+=m[v++],l+=m[v++],f=h.M,c.addData(f,s,l),p="l";break;case"M":s=m[v++],l=m[v++],f=h.M,c.addData(f,s,l),p="L";break;case"h":s+=m[v++],f=h.L,c.addData(f,s,l);break;case"H":s=m[v++],f=h.L,c.addData(f,s,l);break;case"v":l+=m[v++],f=h.L,c.addData(f,s,l);break;case"V":l=m[v++],f=h.L,c.addData(f,s,l);break;case"C":f=h.C,c.addData(f,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],l=m[v-1];break;case"c":f=h.C,c.addData(f,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l),s+=m[v-2],l+=m[v-1];break;case"S":y=s,_=l;var L=c.len(),A=c.data;n===h.C&&(y+=s-A[L-4],_+=l-A[L-3]),f=h.C,S=m[v++],C=m[v++],s=m[v++],l=m[v++],c.addData(f,y,_,S,C,s,l);break;case"s":y=s,_=l;var L=c.len(),A=c.data;n===h.C&&(y+=s-A[L-4],_+=l-A[L-3]),f=h.C,S=s+m[v++],C=l+m[v++],s+=m[v++],l+=m[v++],c.addData(f,y,_,S,C,s,l);break;case"Q":S=m[v++],C=m[v++],s=m[v++],l=m[v++],f=h.Q,c.addData(f,S,C,s,l);break;case"q":S=m[v++]+s,C=m[v++]+l,s+=m[v++],l+=m[v++],f=h.Q,c.addData(f,S,C,s,l);break;case"T":y=s,_=l;var L=c.len(),A=c.data;n===h.Q&&(y+=s-A[L-4],_+=l-A[L-3]),s=m[v++],l=m[v++],f=h.Q,c.addData(f,y,_,s,l);break;case"t":y=s,_=l;var L=c.len(),A=c.data;n===h.Q&&(y+=s-A[L-4],_+=l-A[L-3]),s+=m[v++],l+=m[v++],f=h.Q,c.addData(f,y,_,s,l);break;case"A":x=m[v++],b=m[v++],w=m[v++],M=m[v++],T=m[v++],S=s,C=l,s=m[v++],l=m[v++],f=h.A,e(S,C,s,l,M,T,x,b,w,f,c);break;case"a":x=m[v++],b=m[v++],w=m[v++],M=m[v++],T=m[v++],S=s,C=l,s+=m[v++],l+=m[v++],f=h.A,e(S,C,s,l,M,T,x,b,w,f,c)}}("z"===p||"Z"===p)&&(f=h.Z,c.addData(f)),n=f}return c.toStatic(),c}function r(t,e){var r,n=i(t);return e=e||{},e.buildPath=function(t){t.setData(n.data),r&&s(t,r);var e=t.getContext();e&&t.rebuildPath(e)},e[o]=function(t){r||(r=l[A]()),l.mul(r,t,r),this.dirty(!0)},e}var n=t("../graphic/Path"),a=t("../core/PathProxy"),s=t("./transformPath"),l=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,f=Math.cos,d=Math.PI,p=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},v=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))},m=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(v(t,e))};return{createFromString:function(t,e){return new n(r(t,e))},extendFromString:function(t,e){return n[D](r(t,e))},mergePath:function(t,e){for(var i=[],r=t[k],a=0;r>a;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new n(e);return s.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Gradient",[B],function(){var t=function(t){this.colorStops=t||[]};return t[E]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("zrender/graphic/Path",[B,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new o}var i=t("./Displayable"),n=t("../core/util"),o=t("../core/PathProxy"),s=t("../contain/path"),u=t("./Pattern"),c=u[E].getCanvasPattern,h=Math.abs;return e[E]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,r=this.path,n=i.hasStroke(),o=i.hasFill(),s=i.fill,u=i[a],h=o&&!!s.colorStops,f=n&&!!u.colorStops,d=o&&!!s.image,p=n&&!!u.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var v=this[l]();h&&(this._fillGradient=i.getGradient(t,s,v)),f&&(this._strokeGradient=i.getGradient(t,u,v))}h?t.fillStyle=this._fillGradient:d&&(t.fillStyle=c.call(s,t)),f?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=c.call(u,t));var m=i.lineDash,g=i.lineDashOffset,y=!!t.setLineDash,_=this.getGlobalScale();r.setScale(_[0],_[1]),this.__dirtyPath||m&&!y&&n?(r=this.path.beginPath(t),m&&!y&&(r.setLineDash(m),r.setLineDashOffset(g)),this.buildPath(r,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),m&&y&&(t.setLineDash(m),t.lineDashOffset=g),n&&r[a](t),m&&y&&t.setLineDash([]),this.restoreTransform(t),(i.text||0===i.text)&&this.drawRectText(t,this[l]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[l]()}if(this._rect=t,e.hasStroke()){var n=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){n.copy(t);var a=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(n.width+=a/o,n[x]+=a/o,n.x-=a/o/2,n.y-=a/o/2)}return n}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[l](),n=this.style;if(t=i[0],e=i[1],r[z](t,e)){var a=this.path.data;if(n.hasStroke()){var o=n.lineWidth,u=n.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(n.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/u,t,e)))return!0}if(n.hasFill())return s[z](a,t,e)}return!1},dirty:function(t){null==t&&(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),this.__dirtyPath=!0,this._rect=null):i[E].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(n[y](t))for(var r in t)i[r]=t[r];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[r];return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1}},e[D]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendFrom(t.style,!1);var r=t.shape;if(r){this.shape=this.shape||{};var n=this.shape;for(var a in r)!n.hasOwnProperty(a)&&r.hasOwnProperty(a)&&(n[a]=r[a])}t.init&&t.init.call(this,i)};n.inherits(i,e);for(var r in t)"style"!==r&&"shape"!==r&&(i[E][r]=t[r]);return i},n.inherits(e,i),e}),e("zrender/container/Group",[B,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),r=t("../core/BoundingRect"),n=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return n[E]={constructor:n,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[k];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[k]},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 i=this._children,r=i[f](e);r>=0&&(i[g](r,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof n&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,r=this.__storage,a=this._children,o=e[f](a,t);return 0>o?this:(a[g](o,1),t.parent=null,r&&(r.delFromMap(t.id),t instanceof n&&t.delChildrenFromStorage(r)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,r=this.__storage;for(e=0;e<i[k];e++)t=i[e],r&&(r.delFromMap(t.id),t instanceof n&&t.delChildrenFromStorage(r)),t.parent=null;return i[k]=0,this},eachChild:function(t,e){for(var i=this._children,r=0;r<i[k];r++){var n=i[r];t.call(e,n,r)}return this},traverse:function(t,e){for(var i=0;i<this._children[k];i++){var r=this._children[i];t.call(e,r),"group"===r.type&&r.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[k];e++){var i=this._children[e];t.addToMap(i),i instanceof n&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[k];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof n&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new r(0,0,0,0),n=t||this._children,a=[],s=0;s<n[k];s++){var u=n[s];if(!u[w]&&!u.invisible){var c=u[l](),h=u.getLocalTransform(a);h?(i.copy(c),i[o](h),e=e||i.clone(),e.union(i)):(e=e||c.clone(),e.union(c))}}return e||i}},e.inherits(n,i),n}),e("zrender/graphic/Image",[B,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),r=t("../core/BoundingRect"),n=t("../core/util"),a=t("../core/LRU"),o=new a(50);return e[E]={constructor:e,type:"image",brush:function(t,e){var i,r=this.style,n=r.image;if(r.bind(t,this,e),i=typeof n===S?this._image:n,!i&&n){var a=o.get(n);if(!a)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<a.pending[k];t++)a.pending[t].dirty()},a={image:i,pending:[this]},i.src=n,o.put(n,a),void(this._image=i);if(i=a.image,this._image=i,!i.width||!i[x])return void a.pending.push(this)}if(i){var s=r.width||i.width,u=r[x]||i[x],c=r.x||0,h=r.y||0;if(!i.width||!i[x])return;if(this.setTransform(t),r.sWidth&&r.sHeight){var f=r.sx||0,d=r.sy||0;t.drawImage(i,f,d,r.sWidth,r.sHeight,c,h,s,u)}else if(r.sx&&r.sy){var f=r.sx,d=r.sy,p=s-f,v=u-d;t.drawImage(i,f,d,p,v,c,h,s,u)}else t.drawImage(i,c,h,s,u);null==r.width&&(r.width=s),null==r[x]&&(r[x]=u),this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this[l]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t[x]||0)),this._rect}},n.inherits(e,i),e}),e("zrender/graphic/Text",[B,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),r=t("../contain/text"),n=function(t){e.call(this,t)};return n[E]={constructor:n,type:"text",brush:function(t,e){var i=this.style,n=i.x||0,a=i.y||0,o=i.text;if(null!=o&&(o+=""),i.bind(t,this,e),o){this.setTransform(t);var s,u=i.textAlign,c=i.textFont||i.font;if(i.textVerticalAlign){var f=r[l](o,c,i.textAlign,"top");switch(s=h,i.textVerticalAlign){case h:a-=f[x]/2-f.lineHeight/2;break;case b:a-=f[x]-f.lineHeight/2;break;default:a+=f.lineHeight/2}}else s=i.textBaseline;t.font=c||"12px sans-serif",t.textAlign=u||"left",t.textAlign!==u&&(t.textAlign="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var d=r.measureText("国",t.font).width,p=o.split("\n"),v=0;v<p[k];v++)i.hasFill()&&t.fillText(p[v],n,a),i.hasStroke()&&t.strokeText(p[v],n,a),a+=d;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=r[l](t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case h:i.y-=i[x]/2;break;case b:i.y-=i[x]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i.inherits(n,e),n}),e("zrender/graphic/shape/Circle",[B,"../Path"],function(t){return t("../Path")[D]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[B,"../Path"],function(t){return t("../Path")[D]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,r=e.cy,n=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),c=Math.sin(o);t.moveTo(u*n+i,c*n+r),t.lineTo(u*a+i,c*a+r),t.arc(i,r,a,o,s,!l),t.lineTo(Math.cos(s)*n+i,Math.sin(s)*n+r),0!==n&&t.arc(i,r,n,s,o,l),t.closePath()}})}),e("zrender/graphic/shape/Ring",[B,"../Path"],function(t){return t("../Path")[D]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,r=e.cy,n=2*Math.PI;t.moveTo(i+e.r,r),t.arc(i,r,e.r,0,n,!1),t.moveTo(i+e.r0,r),t.arc(i,r,e.r0,0,n,!0)}})}),e("zrender/graphic/shape/Polygon",[B,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[D]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[B,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[D]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Rect",[B,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[D]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var r=i.x,n=i.y,a=i.width,o=i[x];i.r?e.buildPath(t,i):t.rect(r,n,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[B,"../Path"],function(t){return t("../Path")[D]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,r=e.y1,n=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,r),1>o&&(n=i*(1-o)+n*o,a=r*(1-o)+a*o),t.lineTo(n,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[B,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var r=t.cpx2,n=t.cpy2;return null===r||null===n?[(i?u:s)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?u:s)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?l:o)(t.x1,t.cpx1,t.x2,e),(i?l:o)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),r=t("../../core/vector"),n=i.quadraticSubdivide,a=i.cubicSubdivide,o=i.quadraticAt,s=i.cubicAt,l=i.quadraticDerivativeAt,u=i.cubicDerivativeAt,c=[];return t("../Path")[D]({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 i=e.x1,r=e.y1,o=e.x2,s=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,r),null==h||null==f?(1>d&&(n(i,l,o,d,c),l=c[1],o=c[2],n(r,u,s,d,c),u=c[1],s=c[2]),t.quadraticCurveTo(l,u,o,s)):(1>d&&(a(i,l,h,o,d,c),l=c[1],h=c[2],o=c[3],a(r,u,f,s,d,c),u=c[1],f=c[2],s=c[3]),t.bezierCurveTo(l,u,h,f,o,s)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return r[P](i,i)}})}),e("zrender/graphic/shape/Arc",[B,"../Path"],function(t){return t("../Path")[D]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,r=e.cy,n=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*n+i,u*n+r),t.arc(i,r,n,a,o,!s)}})}),e("zrender/graphic/CompoundPath",[B,"./Path"],function(t){var e=t("./Path");return e[D]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[k];i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[k];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],r=0;r<i[k];r++)i[r].buildPath(t,i[r].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[k];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[E][l].call(this)}})}),e("zrender/graphic/RadialGradient",[B,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),r=function(t,e,r,n,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==r?.5:r,this.type="radial",this.global=a||!1,i.call(this,n)};return r[E]={constructor:r},e.inherits(r,i),r}),e("zrender/graphic/LinearGradient",[B,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),r=function(t,e,r,n,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==r?1:r,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,i.call(this,a)};return r[E]={constructor:r},e.inherits(r,i),r}),e("zrender/core/BoundingRect",[B,"./vector","./matrix"],function(t){function e(t,e,i,r){this.x=t,this.y=e,this.width=i,this[x]=r}var i=t("./vector"),r=t("./matrix"),n=i[o],a=Math.min,s=Math.abs,l=Math.max;return e[E]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this[x]=l(t.y+t[x],this.y+this[x])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[x],n(t,t,i),n(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=s(e[0]-t[0]),this[x]=s(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t[x]/e[x],a=r[A]();return r.translate(a,a,[-e.x,-e.y]),r.scale(a,a,[i,n]),r.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,r=e.x+e.width,n=e.y,a=e.y+e[x],o=t.x,s=t.x+t.width,l=t.y,u=t.y+t[x];return!(o>r||i>s||l>a||n>u)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[x]},clone:function(){return new e(this.x,this.y,this.width,this[x])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[x]=t[x]}},e}),e("zrender/core/PathProxy",[B,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),r=t("./vector"),n=t("./bbox"),o=t("./BoundingRect"),s=t("../config").devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],f=[],d=Math.min,p=Math.max,v=Math.cos,m=Math.sin,g=Math.sqrt,y=Math.abs,_=typeof Float32Array!=i,x=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return x[E]={constructor:x,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/s/t)||0,this._uy=y(1/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.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){var i=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,r,n,a){return this.addData(l.C,t,e,i,r,n,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,r,n,a):this._ctx.bezierCurveTo(t,e,i,r,n,a)),this._xi=n,this._yi=a,this},quadraticCurveTo:function(t,e,i,r){return this.addData(l.Q,t,e,i,r),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,r):this._ctx.quadraticCurveTo(t,e,i,r)),this._xi=i,this._yi=r,this},arc:function(t,e,i,r,n,a){return this.addData(l.A,t,e,i,i,r,n-r,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,r,n,a),this._xi=v(n)*i+t,this._xi=m(n)*i+t,this},arcTo:function(t,e,i,r,n){return this._ctx&&this._ctx.arcTo(t,e,i,r,n),this},rect:function(t,e,i,r){return this._ctx&&this._ctx.rect(t,e,i,r),this.addData(l.R,t,e,i,r),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[a](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[k];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[k];this.data&&this.data[k]==e||!_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[k],i=0,r=this._len,n=0;e>n;n++)i+=t[n].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+i));for(var n=0;e>n;n++)for(var a=t[n].data,o=0;o<a[k];o++)this.data[r++]=a[o];this._len=r},addData:function(t){var e=this.data;this._len+arguments[k]>e[k]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[k];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,r,n=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,f=g(c*c+h*h),v=l,m=u,y=o[k];for(c/=f,h/=f,0>a&&(a=n+a),a%=n,v-=a*c,m-=a*h;c>0&&t>=v||0>c&&v>=t||0==c&&(h>0&&e>=m||0>h&&m>=e);)r=this._dashIdx,i=o[r],v+=c*i,m+=h*i,this._dashIdx=(r+1)%y,c>0&&l>v||0>c&&v>l||h>0&&u>m||0>h&&m>u||s[r%2?"moveTo":"lineTo"](c>=0?d(v,t):p(v,t),h>=0?d(m,e):p(m,e));c=v-t,h=m-e,this._dashOffset=-g(c*c+h*h)},_dashedBezierTo:function(t,i,r,n,a,o){var s,l,u,c,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,v=this._ctx,m=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[k],M=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)l=_(m,t,r,a,s+.1)-_(m,t,r,a,s),u=_(y,i,n,o,s+.1)-_(y,i,n,o,s),x+=g(l*l+u*u);for(;w>b&&(M+=p[b],!(M>d));b++);for(s=(M-d)/x;1>=s;)c=_(m,t,r,a,s),h=_(y,i,n,o,s),b%2?v.moveTo(c,h):v.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&v.lineTo(a,o),l=a-c,u=o-h,this._dashOffset=-g(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,r){var n=i,a=r;i=(i+2*t)/3,r=(r+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,r,n,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[k]=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,a=0,s=0,d=0;d<t[k];){var p=t[d++];switch(1==d&&(e=t[d],i=t[d+1],a=e,s=i),p){case l.M:a=t[d++],s=t[d++],e=a,i=s,h[0]=a,h[1]=s,f[0]=a,f[1]=s;break;case l.L:n.fromLine(e,i,t[d],t[d+1],h,f),e=t[d++],i=t[d++];break;case l.C:n.fromCubic(e,i,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],h,f),e=t[d++],i=t[d++];break;case l.Q:n.fromQuadratic(e,i,t[d++],t[d++],t[d],t[d+1],h,f),e=t[d++],i=t[d++];break;case l.A:var g=t[d++],y=t[d++],_=t[d++],x=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(a=v(b)*_+g,s=m(b)*x+y),n.fromArc(g,y,_,x,b,w,M,h,f),e=v(w)*_+g,i=m(w)*x+y;break;case l.R:a=e=t[d++],s=i=t[d++];var T=t[d++],S=t[d++];n.fromLine(a,s,a+T,s+S,h,f);break;case l.Z:e=a,i=s}r.min(u,u,h),r.max(c,c,f)}return 0===d&&(u[0]=u[1]=c[0]=c[1]=0),new o(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(t){for(var e,i,r,n,a,o,s=this.data,u=this._ux,c=this._uy,h=this._len,f=0;h>f;){var d=s[f++];switch(1==f&&(r=s[f],n=s[f+1],e=r,i=n),d){case l.M:e=r=s[f++],i=n=s[f++],t.moveTo(r,n);break;case l.L:a=s[f++],o=s[f++],(y(a-r)>u||y(o-n)>c||f===h-1)&&(t.lineTo(a,o),r=a,n=o);break;case l.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),r=s[f-2],n=s[f-1];break;case l.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),r=s[f-2],n=s[f-1];break;case l.A:var p=s[f++],g=s[f++],_=s[f++],x=s[f++],b=s[f++],w=s[f++],M=s[f++],T=s[f++],S=_>x?_:x,C=_>x?1:_/x,L=_>x?x/_:1,A=Math.abs(_-x)>.001,P=b+w;A?(t.translate(p,g),t.rotate(M),t.scale(C,L),t.arc(0,0,S,b,P,1-T),t.scale(1/C,1/L),t.rotate(-M),t.translate(-p,-g)):t.arc(p,g,S,b,P,1-T),1==f&&(e=v(b)*_+p,i=m(b)*x+g),r=v(P)*_+p,n=m(P)*x+g;break;case l.R:e=r=s[f],i=n=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case l.Z:t.closePath(),r=e,n=i}}}},x.CMD=l,x}),e("zrender/contain/text",[B,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(o[i])return o[i];for(var r=(t+"").split("\n"),n=0,a=0,s=r[k];s>a;a++)n=Math.max(p.measureText(r[a],e).width,n);return l>u&&(l=0,o={}),l++,o[i]=n,n}function i(t,i,r,n){var a=((t||"")+"").split("\n")[k],o=e(t,i),l=e("国",i),u=a*l,c=new f(0,0,o,u);switch(c.lineHeight=l,n){case b:case"alphabetic":c.y-=l;break;case h:c.y-=l/2}switch(r){case"end":case"right":c.x-=c.width;break;case s:c.x-=c.width/2}return c}function r(t,e,i,r){var n=e.x,a=e.y,o=e[x],l=e.width,u=i[x],c=o/2-u/2,h="left";switch(t){case"left":n-=r,a+=c,h="right";break;case"right":n+=r+l,a+=c,h="left";break;case"top":n+=l/2,a-=r+u,h=s;break;case b:n+=l/2,a+=o+r,h=s;break;case"inside":n+=l/2,a+=c,h=s;break;case"insideLeft":n+=r,a+=c,h="left";break;case"insideRight":n+=l-r,a+=c,h="right";break;case"insideTop":n+=l/2,a+=r,h=s;break;case"insideBottom":n+=l/2,a+=o-u-r,h=s;break;case"insideTopLeft":n+=r,a+=r,h="left";break;case"insideTopRight":n+=l-r,a+=r,h="right";break;case"insideBottomLeft":n+=r,a+=o-u-r;break;case"insideBottomRight":n+=l-r,a+=o-u-r,h="right"}return{x:n,y:a,textAlign:h,textBaseline:"top"}}function n(t,i,r,n,o){if(!i)return"";o=o||{},n=d(n,"...");for(var s=d(o.maxIterations,2),l=d(o.minChar,0),u=e("国",r),c=e("a",r),h=d(o.placeholder,""),f=i=Math.max(0,i-1),p=0;l>p&&f>=c;p++)f-=c;var v=e(n);v>f&&(n="",v=0),f=i-v;for(var m=(t+"").split("\n"),p=0,g=m[k];g>p;p++){var y=m[p],_=e(y,r);if(!(i>=_)){for(var x=0;;x++){if(f>=_||x>=s){y+=n;break}var b=0===x?a(y,f,c,u):_>0?Math.floor(y[k]*f/_):0;y=y.substr(0,b),_=e(y,r)}""===y&&(y=h),m[p]=y}}return m.join("\n")}function a(t,e,i,r){for(var n=0,a=0,o=t[k];o>a&&e>n;a++){var s=t.charCodeAt(a);n+=s>=0&&127>=s?i:r}return a}var o={},l=0,u=5e3,c=t("../core/util"),f=t("../core/BoundingRect"),d=c.retrieve,p={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:r,truncateText:n,measureText:function(t,e){var i=c.getContext();return i.font=e||"12px sans-serif",i.measureText(t)}};return p}),e("zrender/graphic/mixin/RectText",[B,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===S?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t +}var i=t("../../contain/text"),n=t("../../core/BoundingRect"),a=new n,s=function(){};return s[E]={constructor:s,drawRectText:function(t,n,s){var u=this.style,c=u.text;if(null!=c&&(c+=""),c){t.save();var f,d,p=u.textPosition,v=u.textDistance,m=u.textAlign,g=u.textFont||u.font,y=u.textBaseline,_=u.textVerticalAlign;s=s||i[l](c,g,m,y);var w=this[r];if(u.textTransform?this.setTransform(t):w&&(a.copy(n),a[o](w),n=a),p instanceof Array){if(f=n.x+e(p[0],n.width),d=n.y+e(p[1],n[x]),m=m||"left",y=y||"top",_){switch(_){case h:d-=s[x]/2-s.lineHeight/2;break;case b:d-=s[x]-s.lineHeight/2;break;default:d+=s.lineHeight/2}y=h}}else{var M=i.adjustTextPositionOnRect(p,n,s,v);f=M.x,d=M.y,m=m||M.textAlign,y=y||M.textBaseline}t.textAlign=m||"left",t.textBaseline=y||"alphabetic";var T=u.textFill,S=u.textStroke;T&&(t.fillStyle=T),S&&(t.strokeStyle=S),t.font=g||"12px sans-serif",t.shadowBlur=u.textShadowBlur,t.shadowColor=u.textShadowColor||"transparent",t.shadowOffsetX=u.textShadowOffsetX,t.shadowOffsetY=u.textShadowOffsetY;var C=c.split("\n");u.textRotation&&(w&&t.translate(w[4],w[5]),t.rotate(u.textRotation),w&&t.translate(-w[4],-w[5]));for(var L=0;L<C[k];L++)T&&t.fillText(C[L],f,d),S&&t.strokeText(C[L],f,d),d+=s.lineHeight;t.restore()}}},s}),e("zrender/graphic/Displayable",[B,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},n.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),r=t("./Style"),n=t("../Element"),a=t("./mixin/RectText");return e[E]={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,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),r=this[l]();return r[z](i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?n[E].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t),this.dirty(!1),this}},i.inherits(e,n),i.mixin(e,a),e}),e("zrender/vml/core",[B,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env").canvasSupported){var r,n="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",n),r=function(t){return o.createElement("<zrvml:"+t+' class="zrvml">')}}catch(l){r=function(t){return o.createElement("<"+t+' xmlns="'+n+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.styleSheets;t[k]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:u,createNode:r}}}),e("echarts/util/model",[B,"./format","./number","../model/Model",R],function(t){var e=t("./format"),i=t("./number"),r=t("../model/Model"),a=t(R),o={};return o.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},o.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},r=t[n]=t[n]||{};a.each(e,function(t){var e=a.retrieve(i[t],r[t]);null!=e&&(i[t]=e)})}},o.LABEL_OPTIONS=[c,"show","textStyle","distance","formatter"],o.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},o.isDataItemOption=function(t){return a[y](t)&&!(t instanceof Array)},o.converDataValue=function(t,e){var r=e&&e.type;return r===u?t:("time"!==r||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},o.createDataFormatModel=function(t,e){var i=new r;return a.mixin(i,o.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[_]=function(){return t},i},o.dataFormatMixin={getDataParams:function(t,e){var i=this[_](e),r=this.seriesIndex,n=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:r,seriesName:n,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,r,a){i=i||n;var o=this[_](r),s=o.getItemModel(t),l=this.getDataParams(t,r);null!=a&&l.value instanceof Array&&(l.value=l.value[a]);var u=s.get(["label",i,"formatter"]);return typeof u===d?(l.status=i,u(l)):typeof u===S?e.formatTpl(u,l):void 0},getRawValue:function(t,e){var i=this[_](e),r=i.getRawDataItem(t);return null!=r?!a[y](r)||r instanceof Array?r:r.value:void 0},formatTooltip:a.noop},o.mappingToExists=function(t,e){e=(e||[]).slice();var i=a.map(t||[],function(t){return{exist:t}});return a.each(e,function(t,r){if(a[y](t)){for(var n=0;n<i[k];n++)if(!i[n].option&&null!=t.id&&i[n].exist.id===t.id+"")return i[n].option=t,void(e[r]=null);for(var n=0;n<i[k];n++){var s=i[n].exist;if(!(i[n].option||null!=s.id&&null!=t.id||null==t.name||o.isIdInner(t)||o.isIdInner(s)||s.name!==t.name+""))return i[n].option=t,void(e[r]=null)}}}),a.each(e,function(t){if(a[y](t)){for(var e=0;e<i[k];e++){var r=i[e].exist;if(!i[e].option&&!o.isIdInner(r)&&null==t.id){i[e].option=t;break}}e>=i[k]&&i.push({option:t})}}),i},o.isIdInner=function(t){return a[y](t)&&t.id&&0===(t.id+"")[f]("\x00_ec_\x00")},o.compressBatches=function(t,e){function i(t,e,i){for(var r=0,n=t[k];n>r;r++)for(var a=t[r].seriesId,s=o.normalizeToArray(t[r][m]),l=i&&i[a],u=0,c=s[k];c>u;u++){var h=s[u];l&&l[h]?l[h]=null:(e[a]||(e[a]={}))[h]=1}}function r(t,e){var i=[];for(var n in t)if(t.hasOwnProperty(n)&&null!=t[n])if(e)i.push(+n);else{var a=r(t[n],!0);a[k]&&i.push({seriesId:n,dataIndex:a})}return i}var n={},a={};return i(t||[],n),i(e||[],a,n),[r(n),r(a)]},o}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==i&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,r=e._colorNameMap||(e._colorNameMap={});if(r[t])return r[t];var n=this.get("color",!0)||[];if(n[k]){var a=n[i];return t&&(r[t]=a),e._colorIdx=(i+1)%n[k],a}}}}),e("echarts/util/clazz",[B,R],function(t){function e(t,e){var i=r.slice(arguments,2);return this.superClass[E][e].apply(t,i)}function i(t,e,i){return this.superClass[E][e].apply(t,i)}var r=t(R),n={},a=".",o="___EC__COMPONENT__CONTAINER___",s=n.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return n.enableClassExtend=function(t){t.$constructor=t,t[D]=function(t){var n=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return r[D](a[E],t),a[D]=this[D],a.superCall=e,a.superApply=i,r.inherits(a,this),a.superClass=n,a}},n.enableClassManagement=function(t,e){function i(t){var e=n[t.main];return e&&e[o]||(e=n[t.main]={},e[o]=!0),e}e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var r=i(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[o]&&(r=e?r[e]:null),i&&!r)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return r},t.getClassesByMainType=function(t){t=s(t);var e=[],i=n[t.main];return i&&i[o]?r.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(n,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=s(t);var e=n[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[D];a&&(t[D]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},n.setReadOnly=function(){},n}),e("zrender/contain/path",[B,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function r(t,e,r,n,a,o,s,l,u,c){if(c>e&&c>n&&c>o&&c>l||e>c&&n>c&&o>c&&l>c)return 0;var h=d.cubicRootAt(e,n,o,l,c,y);if(0===h)return 0;for(var f,p,v=0,m=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=d.cubicAt(t,r,a,s,x);u>w||(0>m&&(m=d.cubicExtrema(e,n,o,l,_),_[1]<_[0]&&m>1&&i(),f=d.cubicAt(e,n,o,l,_[0]),m>1&&(p=d.cubicAt(e,n,o,l,_[1]))),v+=2==m?x<_[0]?e>f?b:-b:x<_[1]?f>p?b:-b:p>l?b:-b:x<_[0]?e>f?b:-b:f>l?b:-b)}return v}function n(t,e,i,r,n,a,o,s){if(s>e&&s>r&&s>a||e>s&&r>s&&a>s)return 0;var l=d.quadraticRootAt(e,r,a,s,y);if(0===l)return 0;var u=d.quadraticExtremum(e,r,a);if(u>=0&&1>=u){for(var c=0,h=d.quadraticAt(e,r,a,u),f=0;l>f;f++){var p=0===y[f]||1===y[f]?.5:1,v=d.quadraticAt(t,i,n,y[f]);o>v||(c+=y[f]<u?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,v=d.quadraticAt(t,i,n,y[0]);return o>v?0:e>a?p:-p}function a(t,e,i,r,n,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(r-n);if(1e-4>u)return 0;if(1e-4>u%m){r=0,n=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=r;r=f(n),n=f(l)}else r=f(r),n=f(n);r>n&&(n+=m);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var v=Math.atan2(s,p),c=a?1:-1;0>v&&(v=m+v),(v>=r&&n>=v||v+m>=r&&n>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,f){for(var d=0,m=0,g=0,y=0,_=0,x=0;x<t[k];){var b=t[x++];switch(b===s.M&&x>1&&(o||(d+=p(m,g,y,_,l,f))),1==x&&(m=t[x],g=t[x+1],y=m,_=g),b){case s.M:y=t[x++],_=t[x++],m=y,g=_;break;case s.L:if(o){if(v(m,g,t[x],t[x+1],i,l,f))return!0}else d+=p(m,g,t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.C:if(o){if(u.containStroke(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=r(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(m,g,t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=n(m,g,t[x++],t[x++],t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],T=t[x++],S=t[x++],C=t[x++],L=t[x++],A=(t[x++],1-t[x++]),P=Math.cos(C)*T+w,z=Math.sin(C)*S+M;x>1?d+=p(m,g,P,z,l,f):(y=P,_=z);var I=(l-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+L,A,i,I,f))return!0}else d+=a(w,M,S,C,C+L,A,I,f);m=Math.cos(C+L)*T+w,g=Math.sin(C+L)*S+M;break;case s.R:y=m=t[x++],_=g=t[x++];var D=t[x++],E=t[x++],P=y+D,z=_+E;if(o){if(v(y,_,P,_,i,l,f)||v(P,_,P,z,i,l,f)||v(P,z,y,z,i,l,f)||v(y,z,y,_,i,l,f))return!0}else d+=p(P,_,P,z,l,f),d+=p(y,z,y,_,l,f);break;case s.Z:if(o){if(v(m,g,y,_,i,l,f))return!0}else d+=p(m,g,y,_,l,f);m=y,g=_}}return o||e(g,_)||(d+=p(m,g,y,_,l,f)||0),0!==d}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,r){return o(t,e,!0,i,r)}}}),e("zrender/tool/transformPath",[B,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var r,o,u,c,h,f,d=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,_=i.Q;for(u=0,c=0;u<d[k];){switch(r=d[u++],c=u,o=0,r){case p:o=1;break;case m:o=1;break;case v:o=3;break;case _:o=2;break;case y:var x=e[4],b=e[5],w=s(e[0]*e[0]+e[1]*e[1]),M=s(e[2]*e[2]+e[3]*e[3]),T=l(-e[1]/M,e[0]/w);d[u++]+=x,d[u++]+=b,d[u++]*=w,d[u++]*=M,d[u++]+=T,d[u++]+=T,u+=2,c=u;break;case g:f[0]=d[u++],f[1]=d[u++],n(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[u++],f[1]+=d[u++],n(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;o>h;h++){var f=a[h];f[0]=d[u++],f[1]=d[u++],n(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var i=t("../core/PathProxy").CMD,r=t("../core/vector"),n=r[o],a=[[],[],[]],s=Math.sqrt,l=Math.atan2;return e}),e("zrender/graphic/Pattern",[B],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[E].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("zrender/core/bbox",[B,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),r={},n=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[A](),u=e[A](),c=e[A](),h=2*Math.PI;r.fromPoints=function(t,e,i){if(0!==t[k]){var r,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(r=1;r<t[k];r++)o=t[r],s=n(s,o[0]),l=a(l,o[0]),u=n(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}},r.fromLine=function(t,e,i,r,o,s){o[0]=n(t,i),o[1]=n(e,r),s[0]=a(t,i),s[1]=a(e,r)};var f=[],d=[];return r.fromCubic=function(t,e,r,o,s,l,u,c,h,p){var v,m=i.cubicExtrema,g=i.cubicAt,y=m(t,r,s,u,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,v=0;y>v;v++){var _=g(t,r,s,u,f[v]);h[0]=n(_,h[0]),p[0]=a(_,p[0])}for(y=m(e,o,l,c,d),v=0;y>v;v++){var x=g(e,o,l,c,d[v]);h[1]=n(x,h[1]),p[1]=a(x,p[1])}h[0]=n(t,h[0]),p[0]=a(t,p[0]),h[0]=n(u,h[0]),p[0]=a(u,p[0]),h[1]=n(e,h[1]),p[1]=a(e,p[1]),h[1]=n(c,h[1]),p[1]=a(c,p[1])},r.fromQuadratic=function(t,e,r,o,s,l,u,c){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(n(h(t,r,s),1),0),p=a(n(h(e,o,l),1),0),v=f(t,r,s,d),m=f(e,o,l,p);u[0]=n(t,s,v),u[1]=n(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},r.fromArc=function(t,i,r,n,a,f,d,p,v){var m=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-r,p[1]=i-n,v[0]=t+r,void(v[1]=i+n);if(l[0]=s(a)*r+t,l[1]=o(a)*n+i,u[0]=s(f)*r+t,u[1]=o(f)*n+i,m(p,l,u),g(v,l,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&&(c[0]=s(x)*r+t,c[1]=o(x)*n+i,m(p,c,p),g(v,c,v))},r}),e("zrender/config",[],function(){var t=1;typeof window!==i&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/Element",[B,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),a=t("./mixin/Animatable"),o=t("./core/util"),s=function(t){n.call(this,t),i.call(this,t),a.call(this,t),this.id=t.id||e()};return s[E]={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 i=this[r];i||(i=this[r]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===c||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[w]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[w]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===S)this.attrKV(t,e);else if(o[y](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),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(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[k];i++)t[T].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[k];i++)t[T].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},o.mixin(s,a),o.mixin(s,n),o.mixin(s,i),s}),e("zrender/graphic/Style",[B],function(){function t(t,e,i){var r=e.x,n=e.x2,a=e.y,o=e.y2;e.global||(r=r*i.width+i.x,n=n*i.width+i.x,a=a*i[x]+i.y,o=o*i[x]+i.y);var s=t.createLinearGradient(r,a,n,o);return s}function e(t,e,i){var r=i.width,n=i[x],a=Math.min(r,n),o=e.x,s=e.y,l=e.r;e.global||(o=o*r+i.x,s=s*n+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],r=function(t){this.extendFrom(t)};r[E]={constructor:r,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,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,r){for(var n=this,o=r&&r.style,s=!o,l=0;l<i[k];l++){var u=i[l],c=u[0];(s||n[c]!==o[c])&&(t[c]=n[c]||u[1])}if((s||n.fill!==o.fill)&&(t.fillStyle=n.fill),(s||n[a]!==o[a])&&(t.strokeStyle=n[a]),(s||n.opacity!==o.opacity)&&(t.globalAlpha=null==n.opacity?1:n.opacity),(s||n.blend!==o.blend)&&(t.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){var h=n.lineWidth;t.lineWidth=h/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this[a];return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var i=this;for(var r in t)!t.hasOwnProperty(r)||!e&&i.hasOwnProperty(r)||(i[r]=t[r])}},set:function(t,e){typeof t===S?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,r,n){for(var a="radial"===r.type?e:t,o=a(i,r,n),s=r.colorStops,l=0;l<s[k];l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var n=r[E],o=0;o<i[k];o++){var s=i[o];s[0]in n||(n[s[0]]=s[1])}return r.getGradient=n.getGradient,r}),e("zrender/core/curve",[B,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function r(t,e,i,r,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*r+3*a*i)}function n(t,e,i,r,n){var a=1-n;return 3*(((e-t)*a+2*(i-e)*n)*a+(r-i)*n*n)}function a(t,i,r,n,a,o){var s=n+3*(i-r)-t,l=3*(r-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,f=l*u-9*s*c,d=u*u-3*l*c,p=0;if(e(h)&&e(f))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=f*f-4*h*d;if(e(m)){var g=f/h,v=-l/s+g,x=-g/2;v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x)}else if(m>0){var b=_(m),T=h*l+1.5*s*(-f+b),S=h*l+1.5*s*(-f-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var v=(-l-(T+S))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*f)/(2*_(h*h*h)),L=Math.acos(C)/3,A=_(h),P=Math.cos(L),v=(-l-2*A*P)/(3*s),x=(-l+A*(P+w*Math.sin(L)))/(3*s),z=(-l+A*(P-w*Math.sin(L)))/(3*s);v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x),z>=0&&1>=z&&(o[p++]=z)}}return p}function o(t,r,n,a,o){var s=6*n-12*r+6*t,l=9*r+3*a-3*t-9*n,u=3*r-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*l*u;if(e(f))o[0]=-s/(2*l);else if(f>0){var d=_(f),h=(-s+d)/(2*l),p=(-s-d)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,r,n,a){var o=(e-t)*n+t,s=(i-e)*n+e,l=(r-i)*n+i,u=(s-o)*n+o,c=(l-s)*n+s,h=(c-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=r}function l(t,e,i,n,a,o,s,l,u,c,h){var f,d,p,v,m,y=.005,x=1/0;T[0]=u,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=r(t,i,a,s,w),S[1]=r(e,n,o,l,w),v=g(T,S),x>v&&(f=w,x=v);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,S[0]=r(t,i,a,s,d),S[1]=r(e,n,o,l,d),v=g(S,T),d>=0&&x>v?(f=d,x=v):(C[0]=r(t,i,a,s,p),C[1]=r(e,n,o,l,p),m=g(C,T),1>=p&&x>m?(f=p,x=m):y*=.5);return h&&(h[0]=r(t,i,a,s,f),h[1]=r(e,n,o,l,f)),_(x)}function u(t,e,i,r){var n=1-r;return n*(n*t+2*r*e)+r*r*i}function c(t,e,i,r){return 2*((1-r)*(e-t)+r*(i-e))}function h(t,r,n,a,o){var s=t-2*r+n,l=2*(r-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var f=l*l-4*s*u;if(e(f)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=_(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,i){var r=t+i-2*e;return 0===r?.5:(t-e)/r}function d(t,e,i,r,n){var a=(e-t)*r+t,o=(i-e)*r+e,s=(o-a)*r+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=i}function p(t,e,i,r,n,a,o,s,l){var c,h=.005,f=1/0;T[0]=o,T[1]=s;for(var d=0;1>d;d+=.05){S[0]=u(t,i,n,d),S[1]=u(e,r,a,d);var p=g(T,S);f>p&&(c=d,f=p)}f=1/0;for(var v=0;32>v&&!(b>h);v++){var m=c-h,y=c+h;S[0]=u(t,i,n,m),S[1]=u(e,r,a,m);var p=g(S,T);if(m>=0&&f>p)c=m,f=p;else{C[0]=u(t,i,n,y),C[1]=u(e,r,a,y);var x=g(C,T);1>=y&&f>x?(c=y,f=x):h*=.5}}return
Upgrade dependency library.