!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],c=0,u=Math.min(e.length,n.length);u>c;c++){var h,f=i(e[c],r);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,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="__dirty",n="moveTo",r="transform",a="radius",o="../../util/graphic",s="category",l="dimensions",c="getItemModel",u="inside",h="stroke",f="lineWidth",d="applyTransform",p="getItemGraphicEl",v="normal",m="ecModel",g="animation",y="getShallow",_="getItemVisual",x="getName",b="ordinal",w="concat",M="option",S="createElement",T="getContext",C="undefined",A="getExtent",P="contain",L="opacity",k="position",z="center",I="middle",D="getBoundingRect",O="getTextColor",E="getFont",R="textAlign",B="textStyle",N="coordinateSystem",F="removeAll",G="inherits",V="indexOf",H="filter",q="number",W="function",Z="isArray",U="replace",X="zlevel",j="setStyle",Y="seriesIndex",$="dataIndex",Q="target",K="mouseout",J="mouseover",te="splice",ee="length",ie="defaults",ne="extend",re="remove",ae="isObject",oe="getData",se="update",le="create",ce="height",ue="bottom",he="ignore",fe="storage",de="canvasSupported",pe="getHeight",ve="getWidth",me="getModel",ge="resize",ye="string",_e="prototype",xe="toLowerCase",be="zrender/core/vector",we="zrender/core/util",Me="require";e("echarts/echarts",[Me,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",we,"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",be],function(t){function e(t){return function(e,i,n){e=e&&e[xe](),L[_e][t].call(this,e,i,n)}}function i(){L.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===ye&&(e=De[e]),this.id,this.group,this._dom=t,this._zr=C.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=A.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new y(this),this._coordSysMgr=new _,L.call(this),this._messageCenter=new i,this._initEvents(),this[ge]=A.bind(this[ge],this),this._pendingActions=[],k(Ie,r),k(ke,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;z(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),p(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),p(r,a),d(r,a)},this),f(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;oe.get("hoverLayerThreshold")&&!m.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function d(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[he]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!m.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[j]("blend",a)})}function p(t,e){var i=t.get("z"),n=t.get(X);e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[X]=n))})}function v(t){function e(t,e){for(var i=0;ii;){var r=i+n>>>1;t[r][2]=i)){var r=c(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([P,"normalize"],function(t){f[_e][t]=function(e){return e=h(e)/h(u),a[t].call(this,e)}}),f[le]=function(){return new f},f}),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[S]("canvas")[T]?!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===C?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/model/Global",[Me,we,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){for(var i in e)y.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?c.merge(t[i],e[i],!1):c.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this[M]={},this[M][x]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[M]),c.merge(t,_,!1),this.mergeOption(t)}function n(t,e){c[Z](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};f(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),f(e,function(e){var n=e[M];if(c.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),g(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),f(e,function(t){var e=t.exist,n=t[M],r=t.keyInfo;if(g(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:y.determineSubType(t,e);return n}function o(t){return p(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function l(t){}var c=t(we),u=t("../util/model"),h=t("./Model"),f=c.each,d=c[H],p=c.map,v=c[Z],m=c[V],g=c[ae],y=t("./Component"),_=t("./globalDefault"),x="\x00_ec_inner",b=h[ne]({constructor:b,init:function(t,e,i,n){i=i||{},this[M]=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){c.assert(!(x 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[M]&&"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[ee]&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=u.normalizeToArray(t[e]),h=u.mappingToExists(a[e],l);r(e,h);var d=n(a,s);i[e]=[],a[e]=[],f(h,function(t,n){var r=t.exist,o=t[M];if(c.assert(g(o)||r,"Empty component definition"),o){var s=y.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.mergeOption(o,this),r.optionUpdated(o,!1);else{var l=c[ne]({dependentModels:d,componentIndex:n},t.keyInfo);r=new s(o,this,this,l),r.init(o,this,this,l),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a[e][n]=r,i[e][n]=r[M]},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this[M],a=this._componentsMap,s=[];f(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?c.clone(t):c.merge(i[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this)},getOption:function(){var t=c.clone(this[M]);return f(t,function(e,i){if(y.hasClass(i)){for(var e=u.normalizeToArray(e),n=e[ee]-1;n>=0;n--)u.isIdInner(e[n])&&e[te](n,1);t[i]=e}}),delete t[x],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[ee])return[];var o;if(null!=i)v(i)||(i=[i]),o=d(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=v(n);o=d(a,function(t){return l&&m(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var c=v(r);o=d(a,function(t){return c&&m(r,t.name)>=0||!c&&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[H]?d(e,t[H]):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===W)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(c.isString(t))f(n[t],e,i);else if(g(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){l(this),f(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){l(this),f(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 f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),c[V](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=d(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];f(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return c.mixin(b,t("./mixin/colorPalette")),b}),e("echarts/ExtensionAPI",[Me,we],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(we),n=["getDom","getZr",ve,pe,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",me,"getOption"];return e}),e("echarts/CoordinateSystem",[Me],function(){function t(){this._coordinateSystems=[]}var e={};return t[_e]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][le](t,i);a&&(n=n[w](a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},u(e,function(e,i){if(null!=e){var n=t[i];if(c.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=f(r,function(t){return t[M]&&t.exist?d(t.exist,t[M],!0):t.exist||t[M]})}else t[i]=d(n,e,!0)}})}var s=t(we),l=t("../util/model"),c=t("./Component"),u=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 n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[ee]&&(n.timelineOptions=r.timelineOptions),r.mediaList[ee]&&(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[ee]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[ve](),e=this._api[pe](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[ee]&&!r)return s;for(var l=0,c=i[ee];c>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[ee]&&r&&(o=[-1]),o[ee]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r[M]:i[t][M])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[Me,"./Model",we,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[_e].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(we),r=Array[_e].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[ne]({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[ne](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[M],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[M],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 r={},a=t[ee]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/Series",[Me,we,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env"],function(t){var e=t(we),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=t("./mixin/colorPalette"),o=t("zrender/core/env"),s=i.encodeHTML,l=i.addCommas,c=r[ne]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(t,e,i){this[Y]=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[M],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',d=this.name;return"\x00-"===d&&(d=""),n?f+s(this.name)+" : "+c:(d&&s(d)+"
")+f+(u?s(u)+" : "+c:c)},ifEnableAnimation:function(){if(o.node)return!1;var t=this[y](g);return t&&this[oe]().count()>this[y]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this[m],n=a.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null});return e.mixin(c,n.dataFormatMixin),e.mixin(c,a),c}),e("echarts/view/Chart",[Me,"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;ns;s++)i(t[p](o[s]),n);else if(a)for(var c=a instanceof Array?a:[a],s=0,l=c[ee];l>s;s++){var r=t.indexOfName(c[s]);i(t[p](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[_e]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[oe](),r,"emphasis")},downplay:function(t,e,i,r){n(t[oe](),r,v)},remove:function(){this.group[F]()},dispose:function(){}};var s=e[_e];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",[Me,"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[_e]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[_e];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/util/graphic",[Me,we,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",be,"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===ye?T.lift(t,-.1):t}function n(t){if(t.__hoverStlDirty){var n=t.style[h],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[h]=a[h]||(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 r(t){t.__isHover||(n(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t[j](t.__hoverStl),t.z2+=1),t.__isHover=!0)}function a(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t[j](e),t.z2-=1),t.__isHover=!1}}function o(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t)}):a(t)}function l(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&n(t)}function c(){!this.__isEmphasis&&o(this)}function p(){!this.__isEmphasis&&s(this)}function m(){this.__isEmphasis=!0,o(this)}function _(){this.__isEmphasis=!1,s(this)}function x(t,e,i,n,r,a){typeof r===W&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[y](g));if(o){var s=t?"Update":"",l=n&&n[y]("animationDuration"+s),c=n&&n[y]("animationEasing"+s),u=n&&n[y]("animationDelay"+s);typeof u===W&&(u=u(r)),l>0?e.animateTo(i,l,u||0,c,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var b=t(we),w=t("zrender/tool/path"),M=Math.round,S=t("zrender/graphic/Path"),T=t("zrender/tool/color"),C=t("zrender/core/matrix"),A=t(be),P=(t("zrender/graphic/Gradient"),{});return P.Group=t("zrender/container/Group"),P.Image=t("zrender/graphic/Image"),P.Text=t("zrender/graphic/Text"),P.Circle=t("zrender/graphic/shape/Circle"),P.Sector=t("zrender/graphic/shape/Sector"),P.Ring=t("zrender/graphic/shape/Ring"),P.Polygon=t("zrender/graphic/shape/Polygon"),P.Polyline=t("zrender/graphic/shape/Polyline"),P.Rect=t("zrender/graphic/shape/Rect"),P.Line=t("zrender/graphic/shape/Line"),P.BezierCurve=t("zrender/graphic/shape/BezierCurve"),P.Arc=t("zrender/graphic/shape/Arc"),P.CompoundPath=t("zrender/graphic/CompoundPath"),P.LinearGradient=t("zrender/graphic/LinearGradient"),P.RadialGradient=t("zrender/graphic/RadialGradient"),P.BoundingRect=t("zrender/core/BoundingRect"),P.extendShape=function(t){return S[ne](t)},P.extendPath=function(t,e){return w.extendFromString(t,e)},P.makePath=function(t,e,i,n){var r=w.createFromString(t,e),a=r[D]();if(i){var o=a.width/a[ce];if(n===z){var s,l=i[ce]*o;l<=i.width?s=i[ce]:(l=i.width,s=l/o);var c=i.x+i.width/2,u=i.y+i[ce]/2;i.x=c-l/2,i.y=u-s/2,i.width=l,i[ce]=s}this.resizePath(r,i)}return r},P.mergePath=w.mergePath,P.resizePath=function(t,e){if(t[d]){var i=t[D](),n=i.calculateTransform(e);t[d](n)}},P.subPixelOptimizeLine=function(t){var e=P.subPixelOptimize,i=t.shape,n=t.style[f];return M(2*i.x1)===M(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),M(2*i.y1)===M(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},P.subPixelOptimizeRect=function(t){var e=P.subPixelOptimize,i=t.shape,n=t.style[f],r=i.x,a=i.y,o=i.width,s=i[ce];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[ce]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},P.subPixelOptimize=function(t,e,i){var n=M(2*t);return(n+M(e))%2===0?n/2:(n+(i?1:-1))/2},P.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on(J,c).on(K,p),t.on("emphasis",m).on(v,_)},P.setText=function(t,e,i){var n=e[y](k)||u,r=n[V](u)>=0?"white":i,a=e[me](B);b[ne](t,{textDistance:e[y]("distance")||5,textFont:a[E](),textPosition:n,textFill:a[O]()||r})},P.updateProps=function(t,e,i,n,r){x(!0,t,e,i,n,r)},P.initProps=function(t,e,i,n,r){x(!1,t,e,i,n,r)},P.getTransform=function(t,e){for(var i=C.identity([]);t&&t!==e;)C.mul(i,t.getLocalTransform(),i),t=t.parent;return i},P[d]=function(t,e,i){return i&&(e=C.invert([],e)),A[d]([],t,e)},P.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===ue?r:0];return a=P[d](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?ue:"top"},P.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:A.clone(t[k]),rotation:t.rotation};return t.shape&&(e.shape=b[ne]({},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)),P.updateProps(t,n,i,t[$])}}})}},P}),e("zrender/zrender",[Me,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete u[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=t("./dom/HandlerProxy"),l=!n[de],c={canvas:t("./Painter")},u={},h={};h.version="3.1.2",h.init=function(t,e){var n=new f(i(),t,e);return u[n.id]=n,n},h.dispose=function(t){if(t)t.dispose();else{for(var e in u)u[e].dispose();u={}}return h},h.getInstance=function(t){return u[t]},h.registerPainter=function(t,e){c[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var u=this,h=new a,f=i.renderer;if(l){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&c[f]||(f="canvas");var d=new c[f](e,h,i);this[fe]=h,this.painter=d;var p=n.node?null:new s(d.getViewportRoot());this.handler=new r(h,d,p),this[g]=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately(),u._needsRefreshHover&&u.refreshHoverImmediately()}}}),this[g].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(u)},h.addToMap=function(t){m.call(h,t),t.addSelfToZr(u)}};return f[_e]={constructor:f,getId:function(){return this.id},add:function(t){this[fe].addRoot(t),this._needsRefresh=!0},remove:function(t){this[fe].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[ge](),this.handler[ge]()},clearAnimation:function(){this[g].clear()},getWidth:function(){return this.painter[ve]()},getHeight:function(){return this.painter[pe]()},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[fe].delRoot(),this.painter.clear()},dispose:function(){this[g].stop(),this.clear(),this[fe].dispose(),this.painter.dispose(),this.handler.dispose(),this[g]=this[fe]=this.painter=this.handler=null,e(this.id)}},h}),e(we,[Me],function(){function t(e){if("object"==typeof e&&null!==e){var i=e;if(e instanceof Array){i=[];for(var n=0,r=e[ee];r>n;n++)i[n]=t(e[n])}else if(!M(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(!b(n)||!b(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!b(s)||!b(o)||y(s)||y(o)||C(s)||C(o)||M(s)||M(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[ee];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[S]("canvas")}function o(){return k||(k=F.createCanvas()[T]("2d")),k}function s(t,e){if(t){if(t[V])return t[V](e);for(var i=0,n=t[ee];n>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var n=t[_e];i[_e]=e[_e],t[_e]=new i;for(var r in n)t[_e][r]=n[r];t[_e].constructor=t,t.superClass=e}function c(t,e,i){t=_e in t?t[_e]:t,e=_e in e?e[_e]:e,r(t,e,i)}function u(t){return t?typeof t==ye?!1:typeof t[ee]==q:void 0}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===O)t.forEach(e,i);else if(t[ee]===+t[ee])for(var n=0,r=t[ee];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function f(t,e,i){if(t&&e){if(t.map&&t.map===B)return t.map(e,i);for(var n=[],r=0,a=t[ee];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function d(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===N)return t.reduce(e,i,n);for(var r=0,a=t[ee];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function p(t,e,i){if(t&&e){if(t[H]&&t[H]===E)return t[H](e,i);for(var n=[],r=0,a=t[ee];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function v(t,e,i){if(t&&e)for(var n=0,r=t[ee];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function m(t,e){var i=R.call(arguments,2);return function(){return t.apply(e,i[w](R.call(arguments)))}}function g(t){var e=R.call(arguments,1);return function(){return t.apply(this,e[w](R.call(arguments)))}}function y(t){return"[object Array]"===I.call(t)}function _(t){return typeof t===W}function x(t){return"[object String]"===I.call(t)}function b(t){var e=typeof t;return e===W||!!t&&"object"==e}function M(t){return!!z[I.call(t)]}function C(t){return t&&1===t.nodeType&&typeof t.nodeName==ye}function A(){for(var t=0,e=arguments[ee];e>t;t++)if(null!=arguments[t])return arguments[t]}function P(){return Function.call.apply(R,arguments)}function L(t,e){if(!t)throw new Error(e)}var k,z={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},I=Object[_e].toString,D=Array[_e],O=D.forEach,E=D[H],R=D.slice,B=D.map,N=D.reduce,F={inherits:l,mixin:c,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:P,find:v,isArrayLike:u,each:h,map:f,reduce:d,filter:p,bind:m,curry:g,isArray:y,isString:x,isObject:b,isFunction:_,isBuildInObject:M,isDom:C,retrieve:A,assert:L,noop:function(){}};return F}),e("zrender/tool/color",[Me],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[ee]&&"%"===e.charAt(e[ee]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[ee]&&"%"===t.charAt(t[ee]-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[U](/ /g,"")[xe]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[V]("("),a=e[V](")");if(-1!==i&&a+1===e[ee]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),c=1;switch(o){case"rgba":if(4!==s[ee])return;c=r(s.pop());case"rgb":if(3!==s[ee])return;return[n(s[0]),n(s[1]),n(s[2]),c];case"hsla":if(4!==s[ee])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[ee])return;return l(s);default:return}}}else{if(4===e[ee]){var u=parseInt(e.substr(1),16);if(!(u>=0&&4095>=u))return;return[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]}if(7===e[ee]){var u=parseInt(e.substr(1),16);if(!(u>=0&&16777215>=u))return;return[(16711680&u)>>16,(65280&u)>>8,255&u,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,c=[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[ee]&&(c[3]=e[3]),c}function c(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,c=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>c?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;n===s?e=f-h:r===s?e=1/3+u-f:a===s&&(e=2/3+h-u),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,c];return null!=t[3]&&d.push(t[3]),d}}function u(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 m(i,4===i[ee]?"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 f(e,i,n){if(i&&i[ee]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[ee]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],c=i[s],u=r-a;return n[0]=t(o(l[0],c[0],u)),n[1]=t(o(l[1],c[1],u)),n[2]=t(o(l[2],c[2],u)),n[3]=t(o(l[3],c[3],u)),n}}function d(e,n,r){if(n&&n[ee]&&e>=0&&1>=e){var a=e*(n[ee]-1),l=Math.floor(a),c=Math.ceil(a),u=s(n[l]),h=s(n[c]),f=a-l,d=m([t(o(u[0],h[0],f)),t(o(u[1],h[1],f)),t(o(u[2],h[2],f)),i(o(u[3],h[3],f))],"rgba");return r?{color:d,leftIndex:l,rightIndex:c,value:a}:d}}function p(t,i,n,a){return t=s(t),t?(t=c(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),m(l(t),"rgba")):void 0}function v(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),m(t,"rgba")):void 0}function m(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var g={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:u,toHex:h,fastMapToColor:f,mapToColor:d,modifyHSL:p,modifyAlpha:v,stringify:m}}),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,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,l=n;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var c=n-s;switch(c){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(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;s>l&&a(t,e[i+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[i+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var c=o;o=r-l,l=r-c}for(o++;l>o;){var u=o+(l-o>>>1);a(t,e[i+u])>0?o=u+1:l=u}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;s>l&&a(t,e[i+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var c=o;o=r-l,l=r-c}else{for(s=n-r;s>l&&a(t,e[i+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var u=o+(l-o>>>1);a(t,e[i+u])<0?l=u:o=u+1}return l}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])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]=o?l(n,o,s,c):h(n,o,s,c)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)_[l]=t[i+l];var u=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[f+l]=t[h+l];return void(t[f+s]=_[u])}for(var d,v,m,g=p;;){d=0,v=0,m=!1;do if(e(t[h],_[u])<0){if(t[f++]=t[h++],v++,d=0,0===--s){m=!0;break}}else if(t[f++]=_[u++],d++,v=0,1===--n){m=!0;break}while(g>(d|v));if(m)break;do{if(d=a(t[h],_,u,n,0,e),0!==d){for(l=0;d>l;l++)t[f+l]=_[u+l];if(f+=d,u+=d,n-=d,1>=n){m=!0;break}}if(t[f++]=t[h++],0===--s){m=!0;break}if(v=r(_[u],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++]=_[u++],1===--n){m=!0;break}g--}while(d>=c||v>=c);if(m)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(l=0;s>l;l++)t[f+l]=t[h+l];t[f+s]=_[u]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[f+l]=_[u+l]}}else for(l=0;n>l;l++)t[f+l]=_[u+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)_[l]=t[o+l];var u=i+n-1,h=s-1,f=o+s-1,d=0,v=0;if(t[f--]=t[u--],0!==--n){if(1===s){for(f-=n,u-=n,v=f+1,d=u+1,l=n-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[u])<0){if(t[f--]=t[u--],g++,y=0,0===--n){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=n-a(_[h],t,i,n,n-1,e),0!==g){for(f-=g,u-=g,n-=g,v=f+1,d=u+1,l=g-1;l>=0;l--)t[v+l]=t[d+l];if(0===n){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[u],_,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[u--],0===--n){x=!0;break}m--}while(g>=c||y>=c);if(x)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(f-=n,u-=n,v=f+1,d=u+1,l=n-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=c,v=0,m=u,g=0,y=0;v=t[ee],2*u>v&&(m=v>>>1);var _=[];g=120>v?5:1542>v?10:119151>v?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[ee]);var c=s-a;if(!(2>c)){var u=0;if(l>c)return u=e(i,a,s,r),void n(i,a,s,a+u,r);var h=new o(i,r),f=t(c);do{if(u=e(i,a,s,r),f>u){var d=c;d>f&&(d=f),n(i,a,a+d,a+u,r),u=d}h.pushRun(a,u),h.mergeRuns(),c-=u,a+=u}while(0!==c);h.forceMergeRuns()}}var l=32,c=7,u=256;return s}),e("zrender/mixin/Eventful",[Me],function(){var t=Array[_e].slice,e=function(){this._$handlers={}};return e[_e]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;rr;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][ee]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[ee];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[ee],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[te](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[ee];n>4&&(i=t.call(i,1,i[ee]-1));for(var r=i[i[ee]-1],a=this._$handlers[e],o=a[ee],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[te](s,1),o--):s++}}return this}},e}),e("echarts/visual/seriesColor",[Me,"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[oe](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==W||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r[c](t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/data/List",[Me,"../model/Model","./DataDiffer",we,"../util/model"],function(t){function e(t){return f[Z](t)||(t=[t]),t}function i(t,e){var i=t[l],n=new M(f.map(i,t.getDimensionInfo,t),t.hostModel);y(n,t);for(var r=n._storage={},a=t._storage,o=0;o=0?new c.constructor(a[s][ee]):a[s]}return n}var n=C,r=typeof window===C?global:window,a=typeof r.Float64Array===n?Array:r.Float64Array,o=typeof r.Int32Array===n?Array:r.Int32Array,s={"float":a,"int":o,ordinal:Array,number:Array,time:Array},u=t("../model/Model"),h=t("./DataDiffer"),f=t(we),d=t("../util/model"),v=f[ae],g=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],y=function(t,e){f.each(g[w](e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},M=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r0&&(M+="__ec__"+h[w]),h[w]++),M&&(u[f]=M)}this._nameList=e,this._idList=u},S.count=function(){return this.indices[ee]},S.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 l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},S.getValues=function(t,e,i){var n=[];f[Z](t)||(i=e,e=t,t=this[l]);for(var r=0,a=t[ee];a>r;r++)n.push(this.get(t[r],e,i));return n},S.hasValue=function(t){for(var e=this[l],i=this._dimensionInfos,n=0,r=e[ee];r>n;n++)if(i[e[n]].type!==b&&isNaN(this.get(e[n],t)))return!1;return!0},S.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,l=0,c=this.count();c>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},S.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},S[V]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[ee];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},S.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[ee];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},S.indexOfRawIndex=function(t){for(var e=this.indices,i=0,n=e[ee]-1;n>=i;){var r=(i+n)/2|0;if(e[r]t))return r;n=r-1}}return-1},S.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,l=0,c=this.count();c>l;l++){var u=e-this.get(t,l,i),h=Math.abs(u);n>=u&&(s>h||h===s&&u>0)&&(s=h,o=l)}return o},S.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},S.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},S[x]=function(t){return this._nameList[this.indices[t]]||""},S.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},S.each=function(t,i,n,r){typeof t===W&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this); var a=[],o=t[ee],s=this.indices;r=r||this;for(var l=0;lc;c++)a[c]=this.get(t[c],l,n);a[c]=l,i.apply(r,a)}},S.filterSelf=function(t,i,n,r){typeof t===W&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[ee],l=this.indices;r=r||this;for(var c=0;ch;h++)o[h]=this.get(t[h],c,n);o[h]=c,u=i.apply(r,o)}u&&a.push(l[c])}return this.indices=a,this._extent={},this},S.mapArray=function(t,e,i,n){typeof t===W&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},S.map=function(t,n,r,a){t=f.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,c=[];return this.each(t,function(){var e=arguments[arguments[ee]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===q&&(c[0]=i,i=c);for(var r=0;rv;v+=f){f>p-v&&(f=p-v,u[ee]=f);for(var m=0;f>m;m++){var g=l[v+m];u[m]=d[g],h[m]=g}var y=n(u),g=h[r(u,y)||0];d[g]=y,c.push(g)}return a},S[c]=function(t){var e=this.hostModel;return t=this.indices[t],new u(this._rawData[t],e,e&&e[m])},S.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+""})},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.setVisual=function(t,e){if(v(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},S.setLayout=function(t,e){if(v(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[ne](this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts[ee]=0},S[_]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},S.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,v(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var T=function(t){t[Y]=this[Y],t[$]=this[$],t.dataType=this.dataType};return S.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[$]=t,e.dataType=this.dataType,e[Y]=i&&i[Y],"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},S[p]=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},S.cloneShallow=function(){var t=f.map(this[l],this.getDimensionInfo,this),e=new M(t,this.hostModel);return e._storage=this._storage,y(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=f[ne]({},this._extent)),e},S.wrapMethod=function(t,e){var i=this[t];typeof i===W&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t][w](f.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf"],M}),e("echarts/loading/default",[Me,"../util/graphic",we],function(t){var e=t("../util/graphic"),i=t(we),n=Math.PI;return function(t,r){r=r||{},i[ie](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[X],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[X],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[X],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l[ge]=function(){var e=t[ve]()/2,i=t[pe]()/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[ve](),height:t[pe]()})},l[ge](),l}}),e("echarts/preprocessor/backwardCompat",[Me,we,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n0){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 z:case I:e="50%";break;case"left":case"top":e="0%";break;case"right":case ue:e="100%"}return typeof e===ye?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===ye?new Date(t[U](/-/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/util/format",[Me,we,"./number","zrender/contain/text"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][U](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[ee]>1?"."+t[1]:""))}function i(t){return t[xe]()[U](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[ee];return typeof t===q?[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)[U](/&/g,"&")[U](//g,">")[U](/"/g,""")[U](/'/g,"'")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){c[Z](e)||(e=[e]);var i=e[ee];if(!i)return"";for(var n=e[0].$vars||[],r=0;rs;s++)for(var l=0;lt?"0"+t:t}var c=t(we),u=t("./number"),h=t("zrender/contain/text"),f=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s,truncateText:h.truncateText}}),e(be,[],function(){var t=typeof Float32Array===C?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[ee]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===C?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],c=Math.sin(i),u=Math.cos(i);return t[0]=n*u+o*c,t[1]=-n*c+o*u,t[2]=r*u+s*c,t[3]=-r*c+u*s,t[4]=u*a+c*l,t[5]=u*l-c*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("echarts/coord/cartesian/Grid",[Me,"exports","../../util/layout","../../coord/axisHelper",we,"./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[ee];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[A](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var a=t("../../util/layout"),o=t("../../coord/axisHelper"),c=t(we),u=t("./Cartesian2D"),h=t("./Axis2D"),f=c.each,d=o.ifAxisCrossZero,p=o.niceScaleExtent;t("./GridModel");var v=n[_e];return v.type="grid",v.getRect=function(){return this._rect},v[se]=function(t,e){function i(t){var e=n[t];for(var i in e){var r=e[i];if(r&&(r.type===s||!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[ge](this._model,e)},v[ge]=function(t,e){function n(){f(s,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o[ce]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?o.x:o.y)})}var o=a.getLayoutRect(t.getBoxLayoutParams(),{width:e[ve](),height:e[pe]()});this._rect=o;var s=this._axesList;n(),t.get("containLabel")&&(f(s,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?ce:"width",r=t.model.get("axisLabel.margin");o[n]-=e[n]+r,"top"===t[k]?o.y+=e[ce]+r:"left"===t[k]&&(o.x+=e.width+r)}}}),n())},v.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]}},v.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;n0?1:-1,n=t[ce]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[ce])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[ce]-=n*e}var i=t(we),n=t(o);return i[ne](t("../../model/Model")[_e],t("./barItemStyle")),t("../../echarts").extendChartView({type:"bar",render:function(t,e,i){var n=t.get(N);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t){function r(r,a){var s=o.getItemLayout(r),l=o[c](r).get(d)||0;e(s,l);var u=new n.Rect({shape:i[ne]({},s)});if(f){var p=u.shape,v=h?ce:"width",m={};p[v]=0,m[v]=s[v],n[a?"updateProps":"initProps"](u,{shape:m},t,r)}return u}var a=this.group,o=t[oe](),s=this._data,l=t[N],u=l.getBaseAxis(),h=u.isHorizontal(),f=t.get(g),d=["itemStyle",v,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[se](function(i,l){var u=s[p](l);if(!o.hasValue(i))return void a[re](u);u||(u=r(i,!0));var h=o.getItemLayout(i),f=o[c](i).get(d)||0;e(h,f),n.updateProps(u,{shape:h},t,i),o.setItemGraphicEl(i,u),a.add(u)})[re](function(e){var i=s[p](e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,e,function(){a[re](i)}))}).execute(),this._updateStyle(t,o,h),this._data=o},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(o,s){var l=e[c](s),u=e[_](s,"color"),h=e[_](s,L),f=e.getItemLayout(s),d=l[me]("itemStyle.normal"),p=l[me]("itemStyle.emphasis").getBarItemStyle();o.setShape("r",d.get("barBorderRadius")||0),o.useStyle(i[ie]({fill:u,opacity:h},d.getBarItemStyle()));var m=r?f[ce]>0?ue:"top":f.width>0?"left":"right",g=l[me]("label.normal"),y=l[me]("label.emphasis"),x=o.style;g.get("show")?a(x,g,u,i.retrieve(t.getFormattedLabel(s,v),t.getRawValue(s)),m):x.text="",y.get("show")?a(p,y,u,i.retrieve(t.getFormattedLabel(s,"emphasis"),t.getRawValue(s)),m):p.text="",n.setHoverStyle(o,p)})},remove:function(t){var e=this.group;t.get(g)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,i[$],function(){e[re](i)})}):e[F]()}})}),e("echarts/layout/barGrid",[Me,we,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[Y]}function i(t){return t.dim+t.index}function n(t){var n={};a.each(t,function(t){var r=t[oe](),a=t[N],o=a.getBaseAxis(),c=o[A](),u=o.type===s?o.getBandWidth():Math.abs(c[1]-c[0])/r.count(),h=n[i(o)]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;n[i(o)]=h;var d=e(t);f[d]||h.autoWidthCount++,f[d]=f[d]||{width:0,maxWidth:0};var p=l(t.get("barWidth"),u),v=l(t.get("barMaxWidth"),u),m=t.get("barGap"),g=t.get("barCategoryGap");p&&!f[d].width&&(p=Math.min(h.remainedWidth,p),f[d].width=p,h.remainedWidth-=p),v&&(f[d].maxWidth=v),null!=m&&(h.gap=m),null!=g&&(h.categoryGap=g)});var r={};return a.each(n,function(t,e){r[e]={};var i=t.stacks,n=t.bandWidth,o=l(t.categoryGap,n),s=l(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-o)/(u+(u-1)*s);h=Math.max(h,0),a.each(i,function(t){var e=t.maxWidth;!t.width&&e&&h>e&&(e=Math.min(e,c),c-=e,t.width=e,u--)}),h=(c-o)/(u+(u-1)*s),h=Math.max(h,0);var f,d=0;a.each(i,function(t){t.width||(t.width=h),f=t,d+=t.width*(1+s)}),f&&(d-=f.width*s);var p=-d/2;a.each(i,function(t,i){r[e][i]=r[e][i]||{offset:p,width:t.width},p+=t.width*(1+s)})}),r}function r(t,r){var o=n(a[H](r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[N]&&"cartesian2d"===t[N].type})),s={};r.eachSeriesByType(t,function(t){var n=t[oe](),r=t[N],a=r.getBaseAxis(),l=e(t),c=o[i(a)][l],u=c.offset,h=c.width,f=r.getOtherAxis(a),d=t.get("barMinHeight")||0,p=a.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],v=r.dataToPoints(n,!0);s[l]=s[l]||[],n.setLayout({offset:u,size:h}),n.each(f.dim,function(t,e){if(!isNaN(t)){s[l][e]||(s[l][e]={p:p,n:p});var i,r,a,o,c=t>=0?"p":"n",m=v[e],g=s[l][e][c];f.isHorizontal()?(i=g,r=m[1]+u,a=m[0]-g,o=h,Math.abs(a)a?-1:1)*d),s[l][e][c]+=a):(i=m[0]+u,r=g,a=h,o=m[1]-g,Math.abs(o)=o?-1:1)*d),s[l][e][c]+=o),n.setItemLayout(e,{x:i,y:r,width:a,height:o})}},!0)},this)}var a=t(we),o=t("../util/number"),l=o.parsePercent;return r}),e("echarts/chart/line/LineSeries",[Me,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[ne]({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("echarts/chart/line/LineView",[Me,we,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",o,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[ee]===e[ee]){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function s(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),o=i.onZero?0:n.scale[A]()[0],s=n.dim,l="x"===s||s===a?1:0;return e.mapArray([s],function(n,a){for(var c,u=e.stackedOn;u&&r(u.get(s,a))===r(n);){c=u;break}var h=[];return h[l]=e.get(i.dim,a),h[1-l]=c?c.get(s,a,!0):o,t.dataToPoint(h)},!0)}function c(t,e){return null!=e[$]?e[$]:null!=e.name?t.indexOfName(e.name):void 0}function u(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]),l=Math.min(a[0],a[1]),c=Math.max(r[0],r[1])-s,u=Math.max(a[0],a[1])-l,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(c,u);o?(l-=f,u+=2*f):(s-=f,c+=2*f);var d=new S.Rect({shape:{x:s,y:l,width:c,height:u}});return e&&(d.shape[o?"width":ce]=0,S.initProps(d,{shape:{width:c,height:u}},i)),d}function h(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[A](),o=n[A](),s=Math.PI/180,l=new S.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,S.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function f(t,e,i){return"polar"===t.type?h(t,e,i):u(t,e,i)}function d(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||n.dim===a?0:1,o=[],s=0;s=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var a=n.dimension,o=t[l][a],s=t.getDataExtent(o),c=n.stops,u=[];c[0].interval&&c.sort(function(t,e){return t.interval[0]-e.interval[0]});var h=c[0],f=c[c[ee]-1],d=h.interval?v(h.interval[0],s):h.value,p=f.interval?v(f.interval[1],s):f.value,m=p-d;if(0===m)return t[_](0,"color");for(var r=0;r=0){var o=r[p](a);if(!o){var s=r.getItemLayout(a);o=new w(r,a),o[k]=s,o.setZ(t.get(X),t.get("z")),o[he]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else C[_e].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[oe](),a=c(r,n);if(null!=a&&a>=0){var o=r[p](a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group[re](o)):o.downplay())}else C[_e].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[re](e),e=new T.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[re](i),i=new T.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(b)[0];return i&&i.isLabelIgnored?y.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,o=this._polygon,s=t.hostModel,l=M(this._data,t,this._stackedOnPoints,e,this._coordSys,i),c=l.current,u=l.stackedOnCurrent,h=l.next,f=l.stackedOnNext;r&&(c=d(l.current,i,r),u=d(l.stackedOnCurrent,i,r),h=d(l.next,i,r),f=d(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=c,S.updateProps(a,{shape:{points:h}},s),o&&(o.setShape({points:c,stackedOnPoints:u}),S.updateProps(o,{shape:{points:h,stackedOnPoints:f,__points:l.next}},s));for(var v=[],m=l.status,g=0;ge&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i1){var h;typeof r===ye?h=t[r]:typeof r===W&&(h=r),h&&(n=n.downSample(s.dim,1/u,h,e),i.setData(n))}}},this)}}),e("echarts/chart/pie/PieSeries",[Me,"../../data/List",we,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(we),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../../component/helper/selectableMixin"),o=t("../../echarts").extendSeriesModel({type:"series.pie",init:function(t){o.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){o.superCall(this,"mergeOption",t),this.updateSelectedMap(this[M].data)},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=o.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[v],i=t.labelLine.emphasis;e.show=e.show&&t.label[v].show,i.show=i.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationEasing:"cubicOut",data:[]}}); return i.mixin(o,a),o}),e("echarts/chart/pie/PieView",[Me,o,we,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[oe](),o=this[$],s=a[x](o),l=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[p](t),a.getItemLayout(t),e.isSelected(a[x](t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,c=[o*l,s*l];r?t.animate().when(200,{position:c}).start("bounceOut"):t.attr(k,c)}function n(t,e){function i(){o[he]=o.hoverIgnore,s[he]=s.hoverIgnore}function n(){o[he]=o.normalIgnore,s[he]=s.normalIgnore}a.Group.call(this);var r=new a.Sector({z2:2}),o=new a.Polyline,s=new a.Text;this.add(r),this.add(o),this.add(s),this.updateData(t,e,!0),this.on("emphasis",i).on(v,n).on(J,i).on(K,n)}function r(t,e,i,n,r){var a=n[me](B),o=r===u||"inner"===r;return{fill:a[O]()||(o?"#fff":t[_](e,"color")),opacity:t[_](e,L),textFont:a[E](),text:s.retrieve(t.hostModel.getFormattedLabel(e,i),t[x](e))}}var a=t(o),s=t(we),l=n[_e];l.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:f.r+10}},300,"elasticOut")}function o(){l.stopAnimation(!0),l.animateTo({shape:{r:f.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,h=t[c](e),f=t.getItemLayout(e),d=s[ne]({},f);d.label=null,n?(l.setShape(d),l.shape.endAngle=f.startAngle,a.updateProps(l,{shape:{endAngle:f.endAngle}},u,e)):a.updateProps(l,{shape:d},u,e);var p=h[me]("itemStyle"),m=t[_](e,"color");l.useStyle(s[ie]({lineJoin:"bevel",fill:m},p[me](v).getItemStyle())),l.hoverStyle=p[me]("emphasis").getItemStyle(),i(this,t.getItemLayout(e),h.get("selected"),u.get("selectedOffset"),u.get(g)),l.off(J).off(K).off("emphasis").off(v),h.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on(J,r).on(K,o).on("emphasis",r).on(v,o),this._updateLabel(t,e),a.setHoverStyle(this)},l._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,s=t[c](e),l=t.getItemLayout(e),u=l.label,h=t[_](e,"color");a.updateProps(i,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o,e),a.updateProps(n,{style:{x:u.x,y:u.y}},o,e),n.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u[R],textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var f=s[me]("label.normal"),d=s[me]("label.emphasis"),p=s[me]("labelLine.normal"),m=s[me]("labelLine.emphasis"),g=f.get(k)||d.get(k);n[j](r(t,e,v,f,g)),n[he]=n.normalIgnore=!f.get("show"),n.hoverIgnore=!d.get("show"),i[he]=i.normalIgnore=!p.get("show"),i.hoverIgnore=!m.get("show"),i[j]({stroke:h,opacity:t[_](e,L)}),i[j](p[me]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,"emphasis",d,g),i.hoverStyle=m[me]("lineStyle").getLineStyle();var y=p.get("smooth");y&&y===!0&&(y=.4),i.setShape({smooth:y})},s[G](n,a.Group);var h=t("../../view/Chart")[ne]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var o=t[oe](),l=this._data,c=this.group,u=i.get(g),h=!l,f=s.curry(e,this.uid,t,u,r),d=t.get("selectedMode");if(o.diff(l).add(function(t){var e=new n(o,t);h&&e.eachChild(function(t){t.stopAnimation(!0)}),d&&e.on("click",f),o.setItemGraphicEl(t,e),c.add(e)})[se](function(t,e){var i=l[p](e);i.updateData(o,t),i.off("click"),d&&i.on("click",f),c.add(i),o.setItemGraphicEl(t,i)})[re](function(t){var e=l[p](t);c[re](e)}).execute(),u&&h&&o.count()>0){var v=o.getItemLayout(0),m=Math.max(r[ve](),r[pe]())/2,y=s.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(v.cx,v.cy,m,v.startAngle,v.clockwise,y,t))}this._data=o}},_createClipPath:function(t,e,i,n,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l}});return h}),e("echarts/action/createDataSelectAction",[Me,"../echarts",we],function(t){var e=t("../echarts"),i=t(we);return function(t,n){i.each(n,function(i){i[se]="updateView",e.registerAction(i,function(e,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[oe]();n.each(function(e){var i=n[x](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[Me],function(){return function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[oe]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),n.each(function(e){var o=n[c](e),s=r[e],l=a[_](s,"color",!0);if(l)n.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(n[x](e),i);n.setItemVisual(e,"color",u),a.setItemVisual(s,"color",u)}})}})}}),e("echarts/chart/pie/pieLayout",[Me,"../../util/number","./labelLayout",we],function(t){var e=t("../../util/number"),i=e.parsePercent,n=t("./labelLayout"),r=t(we),o=2*Math.PI,s=Math.PI/180;return function(t,l,c){l.eachSeriesByType(t,function(t){var l=t.get(z),u=t.get(a);r[Z](u)||(u=[0,u]),r[Z](l)||(l=[l,l]);var h=c[ve](),f=c[pe](),d=Math.min(h,f),p=i(l[0],h),v=i(l[1],f),m=i(u[0],d/2),g=i(u[1],d/2),y=t[oe](),_=-t.get("startAngle")*s,x=t.get("minAngle")*s,b=y.getSum("value"),w=Math.PI/(b||y.count())*2,M=t.get("clockwise"),S=t.get("roseType"),T=y.getDataExtent("value");T[0]=0;var C=o,A=0,P=_,L=M?1:-1;if(y.each("value",function(t,i){var n;n="area"!==S?0===b?w:t*w:o/(y.count()||1),x>n?(n=x,C-=x):A+=t;var r=P+L*n;y.setItemLayout(i,{angle:n,startAngle:P,endAngle:r,clockwise:M,cx:p,cy:v,r0:m,r:S?e.linearMap(t,T,[m,g]):g}),P=r},!0),o>C)if(.001>=C){var k=o/y.count();y.each(function(t){var e=y.getItemLayout(t);e.startAngle=_+L*t*k,e.endAngle=_+L*(t+1)*k})}else w=C/A,P=_,y.each("value",function(t,e){var i=y.getItemLayout(e),n=i.angle===x?x:t*w;i.startAngle=P,i.endAngle=P+L*n,P+=n});n(t,g,h,f)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[ee]&&e.eachSeriesByType(t,function(t){var e=t[oe]();e.filterSelf(function(t){for(var n=e[x](t),r=0;rn||l.newline?(a=0,u=m,o+=s+i,s=d[ce]):s=Math.max(s,d[ce])}else{var g=d[ce]+(v?-v.y+d.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=u+i:o=h+i)})}var i=t(we),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,l={},c=["left","right","top",ue,"width",ce];return l.box=e,l.vbox=i.curry(e,"vertical"),l.hbox=i.curry(e,"horizontal"),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[ce],s=o(t.x,n),l=o(t.y,r),c=o(t.x2,n),u=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(t.y2)))&&(u=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-s-i[1]-i[3],0),height:Math.max(u-l-i[0]-i[2],0)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[ce],l=o(t.left,r),c=o(t.top,s),u=o(t.right,r),h=o(t[ue],s),f=o(t.width,r),d=o(t[ce],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(f)&&(f=r-u-v-l),isNaN(d)&&(d=s-h-p-c),isNaN(f)&&isNaN(d)&&(m>r/s?f=.8*r:d=.8*s),null!=m&&(isNaN(f)&&(f=m*d),isNaN(d)&&(d=f/m)),isNaN(l)&&(l=r-u-f-v),isNaN(c)&&(c=s-h-d-p),t.left||t.right){case z:l=r/2-f/2-i[3];break;case"right":l=r-f-v}switch(t.top||t[ue]){case I:case z:c=s/2-d/2-i[0];break;case ue:c=s-d-p}l=l||0,c=c||0,isNaN(f)&&(f=r-l-(u||0)),isNaN(d)&&(d=s-c-(h||0));var g=new n(l+i[3],c+i[0],f,d);return g.margin=i,g},l.positionGroup=function(t,e,n,r){var a=t[D]();e=i[ne](i.clone(e),{width:a.width,height:a[ce]}),e=l.getLayoutRect(e,n,r),t.attr(k,[e.x-a.x,e.y-a.y])},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,c={},u=0,h=n.ignoreSize?1:2;if(s(i,function(e){c[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=c[t]=e[t]),o(r,t)&&l++,o(c,t)&&u++}),u!==h&&l){if(l>=h)return r;for(var f=0;f=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});return n}),e("echarts/component/legend/legendAction",[Me,"../../echarts",we],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[oe]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t("../../echarts"),n=t(we);i.registerAction("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i.registerAction("legendSelect","legendselected",n.curry(e,"select")),i.registerAction("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[Me,we,"../../util/symbol",o,"../helper/listComponent","../../echarts"],function(t){function e(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function i(t,e,i){var n=i.getZr()[fe].getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){var n=i.getZr()[fe].getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var r=t(we),a=t("../../util/symbol"),s=t(o),l=t("../helper/listComponent"),c=r.curry;return t("../../echarts").extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,o){var u=this.group;if(u[F](),t.get("show")){var h=t.get("selectedMode"),f=t.get("align");"auto"===f&&(f="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var d={};r.each(t[oe](),function(r){var l=r.get("name");if(""===l||"\n"===l)return void u.add(new s.Group({newline:!0}));var p=a.getSeriesByName(l)[0];if(!d[l])if(p){var v=p[oe](),m=v.getVisual("color");typeof m===W&&(m=m(p.getDataParams(0)));var g=v.getVisual("legendSymbol")||"roundRect",y=v.getVisual("symbol"),x=this._createItem(l,r,t,g,y,f,m,h);x.on("click",c(e,l,o)).on(J,c(i,p,"",o)).on(K,c(n,p,"",o)),d[l]=!0}else a.eachRawSeries(function(a){if(!d[l]&&a.legendDataProvider){var s=a.legendDataProvider(),u=s.indexOfName(l);if(0>u)return;var p=s[_](u,"color"),v="roundRect",m=this._createItem(l,r,t,v,null,f,p,h);m.on("click",c(e,l,o)).on(J,c(i,a,l,o)).on(K,c(n,a,l,o)),d[l]=!0}},this)},this),l.layout(u,t,o),l.addBackground(u,t)}},_createItem:function(t,e,i,n,o,l,c,u){var h=i.get("itemWidth"),f=i.get("itemHeight"),d=i.get("inactiveColor"),p=i.isSelected(t),v=new s.Group,m=e[me](B),g=e.get("icon"),y=e[me]("tooltip");if(n=g||n,v.add(a.createSymbol(n,0,0,h,f,p?c:d)),!g&&o&&(o!==n||"none"==o)){var _=.8*f;"none"===o&&(o="circle"),v.add(a.createSymbol(o,(h-_)/2,(f-_)/2,_,_,p?c:d))}var x="left"===l?h+5:-5,b=l,w=i.get("formatter"),S=t;typeof w===ye&&w?S=w[U]("{name}",t):typeof w===W&&(S=w(t));var T=new s.Text({style:{text:S,x:x,y:f/2,fill:p?m[O]():d,textFont:m[E](),textAlign:b,textVerticalAlign:"middle"}});v.add(T);var C=new s.Rect({shape:v[D](),invisible:!0,tooltip:y.get("show")?r[ne]({content:t,formatter:function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},y[M]):null});return v.add(C),v.eachChild(function(t){t.silent=!0}),C.silent=!u,this.group.add(v),s.setHoverStyle(v),v}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[ee]&&t.filterSeries(function(t){for(var i=0;in?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function y(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,c=e[ce];switch(t){case u:o=e.x+l/2-n/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case ue:o=e.x+l/2-n/2,s=e.y+c+a;break;case"left":o=e.x-n-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2}return[o,s]}function _(t,e,i,a,o,s,l){var c=l[ve](),u=l[pe](),h=s&&s[D]().clone();if(s&&h[d](s[r]),typeof t===W&&(t=t([e,i],o,a.el,h)),S[Z](t))e=P(t[0],c),i=P(t[1],u);else if(typeof t===ye&&s){var f=y(t,h,a.el);e=f[0],i=f[1]}else{var f=g(e,i,a.el,c,u);e=f[0],i=f[1]}a[n](e,i)}function b(t){var e=t[N],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===i)}var w=t("./TooltipContent"),M=t(o),S=t(we),T=t("../../util/format"),C=t("../../util/number"),P=C.parsePercent,L=t("zrender/core/env"),z=t("../../model/Model");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!L.node){var i=new w(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!L.node){this.group[F](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[se](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;if(r&&this.group.add(r),null!=this._lastX&&null!=this._lastY){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){a._manuallyShowTip({x:a._lastX,y:a._lastY})})}var o=this._api.getZr();o.off("click",this._tryShow),o.off("mousemove",this._mousemove),o.off(K,this._hide),o.off("globalout",this._hide),"click"===t.get("triggerOn")?o.on("click",this._tryShow,this):(o.on("mousemove",this._mousemove,this),o.on(K,this._hide,this),o.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),i=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){i._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[Y],n=t[$],a=e.getSeriesByIndex(i),o=this._api;if(null==t.x||null==t.y){if(a||e.eachSeries(function(t){b(t)&&!a&&(a=t)}),a){var s=a[oe]();null==n&&(n=s.indexOfName(t.name));var c,u,h=s[p](n),f=a[N];if(f&&f.dataToPoint){var v=f.dataToPoint(s.getValues(S.map(f[l],function(t){return a.coordDimToDataDim(t)[0]}),n,!0));c=v&&v[0],u=v&&v[1]}else if(h){var m=h[D]().clone();m[d](h[r]),c=m.x+m.width/2,u=m.y+m[ce]/2}null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,target:h,event:{}})}}else{var h=o.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,target:h,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(b(t)){var e,n,r=t[N];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"singleAxis"===r.type?(e=r.getAxis(),n=e.dim+e.type):(e=r.getBaseAxis(),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n].series.push(t)}},this),i},_tryShow:function(t){var e=t[Q],i=this._tooltipModel,n=i.get("trigger"),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[$]){var o=e.dataModel||r.getSeriesByIndex(e[Y]),s=e[$],l=o[oe]()[c](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,e.dataType,t)),a.dispatchAction({type:"showTip",from:this.uid,dataIndex:e[$],seriesIndex:e[Y]})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===ye){var h=u;u={content:h,formatter:h}}var f=new z(u,i),d=f.get("content"),p=Math.random();this._showTooltipContent(f,d,f.get("formatterParams")||{},p,t.offsetX,t.offsetY,e,a)}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){var r=t[me]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Q];if(o&&null!=o[$]){var s=i.getSeriesByIndex(o[Y]),c=o[$];this._showItemTooltipContent(s,c,o.dataType,n)}}this._showAxisPointer();var u=!0;S.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n.offsetX,n.offsetY];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var c=o[l],h=o.pointToData(s,!0);s=o.dataToPoint(h);var f=o.getBaseAxis(),d=r.get("axis");"auto"===d&&(d=f.dim);var p=!1,v=this._lastHover;if("cross"===a)e(v.data,h)&&(p=!0),v.data=h;else{var m=S[V](c,d);v.data===h[m]&&(p=!0),v.data=h[m]}"cartesian2d"!==o.type||p?"polar"!==o.type||p?"singleAxis"!==o.type||p||this._showSinglePointer(r,o,d,s):this._showPolarPointer(r,o,d,s):this._showCartesianPointer(r,o,d,s),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(o,t.series,s,h,p)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,n,r){function a(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);M.subPixelOptimizeLine({shape:o,style:s.style}),h?M.updateProps(s,{shape:o},t):s.attr({shape:o})}function o(i,n,r){var a=e.getAxis(i),o=a.getBandWidth(),s=r[1]-r[0],c="x"===i?f(n[0]-o/2,r[0],o,s):f(r[0],n[1]-o/2,s,o),u=l._getPointerElement(e,t,i,c);h?M.updateProps(u,{shape:c},t):u.attr({shape:c})}var l=this,c=t.get("type"),u=e.getBaseAxis(),h="cross"!==c&&u.type===s&&u.getBandWidth()>20;if("cross"===c)a("x",r,e.getAxis("y").getGlobalExtent()),a("y",r,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,r,t);else{var d=e.getAxis("x"===n?"y":"x"),p=d.getGlobalExtent();"cartesian2d"===e.type&&("line"===c?a:o)(n,r,p)}},_showSinglePointer:function(t,e,n,r){function a(n,r,a){var s=e.getAxis(),l=s.orient,u="horizontal"===l?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),h=o._getPointerElement(e,t,n,u);c?M.updateProps(h,{shape:u},t):h.attr({shape:u})}var o=this,l=t.get("type"),c="cross"!==l&&e.getBaseAxis().type===s,u=e.getRect(),h=[u.y,u.y+u[ce]];a(n,r,h)},_showPolarPointer:function(t,e,n,r){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var l=e.coordToPoint([a[0],s[1]]),u=e.coordToPoint([a[1],s[1]]);o=i(l[0],l[1],u[0],u[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var h=c._getPointerElement(e,t,n,o);d?M.updateProps(h,{shape:o},t):h.attr({shape:o})}function l(i,n,r){var a,o=e.getAxis(i),s=o.getBandWidth(),l=e.pointToCoord(n),u=Math.PI/180;a="angle"===i?v(e.cx,e.cy,r[0],r[1],(-l[1]-s/2)*u,(-l[1]+s/2)*u):v(e.cx,e.cy,l[0]-s/2,l[0]+s/2,0,2*Math.PI);var h=c._getPointerElement(e,t,i,a);d?M.updateProps(h,{shape:a},t):h.attr({shape:a})}var c=this,u=t.get("type"),h=e.getAngleAxis(),f=e.getRadiusAxis(),d="cross"!==u&&e.getBaseAxis().type===s;if("cross"===u)o("angle",r,f[A]()),o(a,r,h[A]()),this._updateCrossText(e,r,t);else{var p=e.getAxis(n===a?"angle":a),m=p[A]();("line"===u?o:l)(n,r,m)}},_updateCrossText:function(t,e,i){var n=i[me]("crossStyle"),r=n[me](B),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new M.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(o));var c=t.pointToData(e),u=t[l];c=S.map(c,function(e,i){var n=t.getAxis(u[i]);return e=n.type===s||"time"===n.type?n.scale.getLabel(e):T.addCommas(e.toFixed(n.getPixelPrecision()))}),o[j]({fill:r[O]()||n.get("color"),textFont:r[E](),text:c.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[X]=a.get(X)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,o=r.get("z"),s=r.get(X),l=this._axisPointers,c=t.name;if(l[c]=l[c]||{},l[c][i])return l[c][i];var u=e.get("type"),f=e[me](u+"Style"),d="shadow"===u,p=f[d?"getAreaStyle":"getLineStyle"](),v="polar"===t.type?d?"Sector":i===a?"Circle":"Line":d?"Rect":"Line";d?p[h]=null:p.fill=null;var m=l[c][i]=new M[v]({style:p,z:o,zlevel:s,silent:!0,shape:n});return this.group.add(m),m},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r){var o=this._tooltipModel,l=t.getBaseAxis(),c="x"===l.dim||l.dim===a?0:1,u=S.map(e,function(t){return{seriesIndex:t[Y],dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(l.dim),n,l):t[oe]().indexOfNearest(t.coordDimToDataDim(l.dim)[0],n[c],!1,l.type===s?.5:null)}}),h=this._lastHover,f=this._api;if(h.payloadBatch&&!r&&f.dispatchAction({type:"downplay",batch:h.payloadBatch}),r||(f.dispatchAction({type:"highlight",batch:u}),h.payloadBatch=u),f.dispatchAction({type:"showTip",dataIndex:u[0][$],seriesIndex:u[0][Y],from:this.uid}),l&&o.get("showContent")&&o.get("show")){var d=S.map(e,function(t,e){return t.getDataParams(u[e][$])});if(r)_(o.get(k),i[0],i[1],this._tooltipContent,d,null,f);else{var p=u[0][$],v="time"===l.type?l.scale.getLabel(n[c]):e[0][oe]()[x](p),m=(v?v+"
":"")+S.map(e,function(t,e){return t.formatTooltip(u[e][$],!0)}).join("
"),g="axis_"+t.name+"_"+p;this._showTooltipContent(o,m,d,g,i[0],i[1],null,f)}}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[oe](i),o=a[c](e),s=o.get("tooltip",!0);if(typeof s===ye){var l=s;s={formatter:l}}var u=this._tooltipModel,h=t[me]("tooltip",u),f=new z(s,h,h[m]),d=t.getDataParams(e,i),p=t.formatTooltip(e,!1,i),v="item_"+t.name+"_"+e;this._showTooltipContent(f,p,d,v,n.offsetX,n.offsetY,n[Q],r)},_showTooltipContent:function(t,e,i,n,r,a,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,c=t.get("formatter"),u=t.get(k),h=e;if(c)if(typeof c===ye)h=T.formatTpl(c,i);else if(typeof c===W){var f=this,d=n,p=function(t,e){t===f._ticket&&(l.setContent(e),_(u,r,a,l,i,o,s))};f._ticket=d,h=c(i,d,p)}l.show(t),l.setContent(h),_(u,r,a,l,i,o,s)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&S.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&S.each(e,function(t){t.hide()})}else this.group.children()[ee]&&this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!L.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._mousemove),i.off(K,this._hide),i.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("zrender/vml/graphic",[Me,"../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")[de]){var e=t("../core/vector"),i=t("../core/BoundingRect"),n=t("../core/PathProxy").CMD,a=t("../tool/color"),o=t("../contain/text"),s=t("../graphic/mixin/RectText"),l=t("../graphic/Displayable"),c=t("../graphic/Image"),u=t("../graphic/Text"),p=t("../graphic/Path"),m=t("../graphic/Gradient"),g=t("./core"),y=Math.round,_=Math.sqrt,x=Math.abs,b=Math.cos,w=Math.sin,M=Math.max,T=e[d],C=",",A="progid:DXImageTransform.Microsoft",P=21600,k=P/2,O=1e5,E=1e3,B=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=P+","+P,t.coordorigin="0,0"},N=function(t){return String(t)[U](/&/g,"&")[U](/"/g,""")},F=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},G=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},V=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},q=function(t,e,i){return(parseFloat(t)||0)*O+(parseFloat(e)||0)*E+i},W=function(t,e){return typeof t===ye?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},Z=function(t,e,i){var n=a.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=F(n[0],n[1],n[2]),t[L]=i*n[3])},j=function(t){var e=a.parse(t);return[F(e[0],e[1],e[2]),e[3]]},Y=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof m){var a,o=0,s=[0,0],l=0,c=1,u=i[D](),h=u.width,f=u[ce];if("linear"===n.type){a="gradient";var d=i[r],p=[n.x*h,n.y*f],v=[n.x2*h,n.y2*f];d&&(T(p,p,d),T(v,v,d));var g=v[0]-p[0],y=v[1]-p[1];o=180*Math.atan2(g,y)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{a="gradientradial";var p=[n.x*h,n.y*f],d=i[r],_=i.scale,x=h,b=f;s=[(p[0]-u.x)/x,(p[1]-u.y)/b],d&&T(p,p,d),x/=_[0]*P,b/=_[1]*P;var w=M(x,b);l=0/w,c=2*n.r/w-l}var S=n.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[ee],A=[],k=[],z=0;C>z;z++){var I=S[z],O=j(I.color);k.push(I.offset*c+l+" "+O[0]),(0===z||z===C-1)&&A.push(O)}if(C>=2){var E=A[0][0],R=A[1][0],B=A[0][1]*e[L],N=A[1][1]*e[L];t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=E,t.color2=R,t.colors=k.join(","),t[L]=N,t.opacity2=B}"radial"===a&&(t.focusposition=s.join(","))}else Z(t,n,e[L])},$=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[h]||e[h]instanceof m||Z(t,e[h],e[L])},Q=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[f])?(t[r?"filled":"stroked"]="true",i[e]instanceof m&&V(t,a),a||(a=g.createNode(e)),r?Y(a,i,n):$(a,i),G(t,a)):(t[r?"filled":"stroked"]="false",V(t,a))},K=[[],[],[]],J=function(t,e){var i,r,a,o,s,l,c=n.M,u=n.C,h=n.L,f=n.A,d=n.Q,p=[];for(o=0;o.01?G&&(V+=270/P):Math.abs(H-E)<1e-10?G&&O>V||!G&&V>O?x-=270/P:x+=270/P:G&&E>H||!G&&H>E?g+=270/P:g-=270/P),p.push(q,y(((O-R)*z+A)*P-k),C,y(((E-B)*I+L)*P-k),C,y(((O+R)*z+A)*P-k),C,y(((E+B)*I+L)*P-k),C,y((V*z+A)*P-k),C,y((H*I+L)*P-k),C,y((g*z+A)*P-k),C,y((x*I+L)*P-k)),s=g,l=x;break;case n.R:var W=K[0],Z=K[1];W[0]=t[o++],W[1]=t[o++],Z[0]=W[0]+t[o++],Z[1]=W[1]+t[o++],e&&(T(W,W,e),T(Z,Z,e)),W[0]=y(W[0]*P-k),Z[0]=y(Z[0]*P-k),W[1]=y(W[1]*P-k),Z[1]=y(Z[1]*P-k),p.push(" m ",W[0],C,W[1]," l ",Z[0],C,W[1]," l ",Z[0],C,Z[1]," l ",W[0],C,Z[1]);break;case n.Z:p.push(" x ")}if(i>0){p.push(r);for(var U=0;i>U;U++){var X=K[U];e&&T(X,X,e),p.push(y(X[0]*P-k),C,y(X[1]*P-k),i-1>U?C:"")}}}return p.join("")};p[_e].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=g.createNode("shape"),B(i),this._vmlEl=i),Q(i,"fill",e,this),Q(i,h,e,this);var n=this[r],a=null!=n,o=i.getElementsByTagName(h)[0];if(o){var s=e[f];if(a&&!e.strokeNoScale){var l=n[0]*n[3]-n[1]*n[2];s*=_(x(l))}o.weight=s+"px"}var c=this.path;this.__dirtyPath&&(c.beginPath(),this.buildPath(c,this.shape),c.toStatic(),this.__dirtyPath=!1),i.path=J(c.data,this[r]),i.style.zIndex=q(this[X],this.z,this.z2),G(t,i),e.text?this.drawRectText(t,this[D]()):this.removeRectText(t)},p[_e].onRemove=function(t){V(t,this._vmlEl),this.removeRectText(t)},p[_e].onAdd=function(t){G(t,this._vmlEl),this.appendRectText(t)};var te=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};c[_e].brushVML=function(t){var e,i,n=this.style,a=n.image;if(te(a)){var o=a.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=a.runtimeStyle,l=s.width,c=s[ce];s.width="auto",s[ce]="auto",e=a.width,i=a[ce],s.width=l,s[ce]=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 u=n.x||0,h=n.y||0,f=n.width,d=n[ce],p=n.sWidth,v=n.sHeight,m=n.sx||0,x=n.sy||0,b=p&&v,w=this._vmlEl;w||(w=g.doc[S]("div"),B(w),this._vmlEl=w);var P,k=w.style,z=!1,I=1,O=1;if(this[r]&&(P=this[r],I=_(P[0]*P[0]+P[1]*P[1]),O=_(P[2]*P[2]+P[3]*P[3]),z=P[1]||P[2]),z){var E=[u,h],R=[u+f,h],N=[u,h+d],F=[u+f,h+d];T(E,E,P),T(R,R,P),T(N,N,P),T(F,F,P);var V=M(E[0],R[0],N[0],F[0]),W=M(E[1],R[1],N[1],F[1]),Z=[];Z.push("M11=",P[0]/I,C,"M12=",P[2]/O,C,"M21=",P[1]/I,C,"M22=",P[3]/O,C,"Dx=",y(u*I+P[4]),C,"Dy=",y(h*O+P[5])),k.padding="0 "+y(V)+"px "+y(W)+"px 0",k[H]=A+".Matrix("+Z.join("")+", SizingMethod=clip)" }else P&&(u=u*I+P[4],h=h*O+P[5]),k[H]="",k.left=y(u)+"px",k.top=y(h)+"px";var U=this._imageEl,j=this._cropEl;U||(U=g.doc[S]("div"),this._imageEl=U);var Y=U.style;if(b){if(e&&i)Y.width=y(I*e*f/p)+"px",Y[ce]=y(O*i*d/v)+"px";else{var $=new Image,Q=this;$.onload=function(){$.onload=null,e=$.width,i=$[ce],Y.width=y(I*e*f/p)+"px",Y[ce]=y(O*i*d/v)+"px",Q._imageWidth=e,Q._imageHeight=i,Q._imageSrc=a},$.src=a}j||(j=g.doc[S]("div"),j.style.overflow="hidden",this._cropEl=j);var K=j.style;K.width=y((f+m*f/p)*I),K[ce]=y((d+x*d/v)*O),K[H]=A+".Matrix(Dx="+-m*f/p*I+",Dy="+-x*d/v*O+")",j.parentNode||w.appendChild(j),U.parentNode!=j&&j.appendChild(U)}else Y.width=y(I*f)+"px",Y[ce]=y(O*d)+"px",w.appendChild(U),j&&j.parentNode&&(w.removeChild(j),this._cropEl=null);var J="",ee=n[L];1>ee&&(J+=".Alpha(opacity="+y(100*ee)+") "),J+=A+".AlphaImageLoader(src="+a+", SizingMethod=scale)",Y[H]=J,w.style.zIndex=q(this[X],this.z,this.z2),G(t,w),n.text&&this.drawRectText(t,this[D]())}},c[_e].onRemove=function(t){V(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},c[_e].onAdd=function(t){G(t,this._vmlEl),this.appendRectText(t)};var ie,ne=v,re={},ae=0,oe=100,se=document[S]("div"),le=function(t){var e=re[t];if(!e){ae>oe&&(ae=0,re={});var i,n=se.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||ne,variant:n.fontVariant||ne,weight:n.fontWeight||ne,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},re[t]=e,ae++}return e};o.measureText=function(t,e){var i=g.doc;ie||(ie=i[S]("div"),ie.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendChild(ie));try{ie.style.font=e}catch(n){}return ie.innerHTML="",ie.appendChild(i.createTextNode(t)),{width:ie.offsetWidth}};for(var he=new i,fe=function(t,e,i,n){var a=this.style,s=a.text;if(s){var l,c,u=a[R],f=le(a.textFont),p=f.style+" "+f.variant+" "+f.weight+" "+f.size+'px "'+f.family+'"',v=a.textBaseline,m=a.textVerticalAlign;i=i||o[D](s,p,u,v);var _=this[r];if(_&&!n&&(he.copy(e),he[d](_),e=he),n)l=e.x,c=e.y;else{var x=a.textPosition,b=a.textDistance;if(x instanceof Array)l=e.x+W(x[0],e.width),c=e.y+W(x[1],e[ce]),u=u||"left",v=v||"top";else{var w=o.adjustTextPositionOnRect(x,e,i,b);l=w.x,c=w.y,u=u||w[R],v=v||w.textBaseline}}if(m){switch(m){case I:c-=i[ce]/2;break;case ue:c-=i[ce]}v="top"}var M=f.size;switch(v){case"hanging":case"top":c+=M/1.75;break;case I:break;default:c-=M/2.25}switch(u){case"left":break;case z:l-=i.width/2;break;case"right":l-=i.width}var S,A,P,k=g.createNode,O=this._textVmlEl;O?(P=O.firstChild,S=P.nextSibling,A=S.nextSibling):(O=k("line"),S=k("path"),A=k("textpath"),P=k("skew"),A.style["v-text-align"]="left",B(O),S.textpathok=!0,A.on=!0,O.from="0 0",O.to="1000 0.05",G(O,P),G(O,S),G(O,A),this._textVmlEl=O);var E=[l,c],F=O.style;_&&n?(T(E,E,_),P.on=!0,P.matrix=_[0].toFixed(3)+C+_[2].toFixed(3)+C+_[1].toFixed(3)+C+_[3].toFixed(3)+",0,0",P.offset=(y(E[0])||0)+","+(y(E[1])||0),P.origin="0 0",F.left="0px",F.top="0px"):(P.on=!1,F.left=y(l)+"px",F.top=y(c)+"px"),A[ye]=N(s);try{A.style.font=p}catch(V){}Q(O,"fill",{fill:n?a.fill:a.textFill,opacity:a[L]},this),Q(O,h,{stroke:n?a[h]:a.textStroke,opacity:a[L],lineDash:a.lineDash},this),O.style.zIndex=q(this[X],this.z,this.z2),G(t,O)}},pe=function(t){V(t,this._textVmlEl),this._textVmlEl=null},ve=function(t){G(t,this._textVmlEl)},me=[s,l,c,p,u],ge=0;gee[1]&&(e[1]=t[1]),o[_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._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]r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;in&&(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 l=o[1]-o[0];isFinite(l)||(o[0]=0,o[1]=1),this.niceTicks(t);var c=this._interval;i||(o[0]=e.round(r(o[0]/c)*c)),n||(o[1]=e.round(a(o[1]/c)*c))}});return o[le]=function(){return new o},o}),e("echarts/scale/Scale",[Me,"../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[_e];return n.parse=function(t){return t},n[P]=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[1]&&(e[1]=t[1])},n[A]=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=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),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(r);while(l);return s}},s.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t[v]=t[v]||{};r.each(e,function(t){var e=r.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},s.LABEL_OPTIONS=[k,"show",B,"distance","formatter"],s.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},s.isDataItemOption=function(t){return r[ae](t)&&!(t instanceof Array)},s.converDataValue=function(t,e){var n=e&&e.type;return n===b?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},s.createDataFormatModel=function(t,e){var i=new n;return r.mixin(i,s.dataFormatMixin),i[Y]=e[Y],i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[oe]=function(){return t},i},s.dataFormatMixin={getDataParams:function(t,e){var i=this[oe](e),n=this[Y],r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i[x](t,!0),l=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:l,dataType:e,value:a,color:i[_](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n,r){i=i||v;var a=this[oe](n),o=a[c](t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",i,"formatter"]);return typeof l===W?(s.status=i,l(s)):typeof l===ye?e.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this[oe](e),n=i.getRawDataItem(t);return null!=n?!r[ae](n)||n instanceof Array?n:n.value:void 0},formatTooltip:r.noop},s.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[ae](t))for(var a=0;a=i[ee]&&i.push({option:t})}}),i},s.isIdInner=function(t){return r[ae](t)&&t.id&&0===(t.id+"")[V]("\x00_ec_\x00")},s.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[ee];r>n;n++)for(var a=t[n].seriesId,o=s.normalizeToArray(t[n][$]),l=i&&i[a],c=0,u=o[ee];u>c;c++){var h=o[c];l&&l[h]?l[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[ee]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},s}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==C&&(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("zrender/tool/path",[Me,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,c,d){var v=l*(p/180),y=f(v)*(t-i)/2+h(v)*(e-n)/2,_=-1*h(v)*(t-i)/2+f(v)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=u(x),s*=u(x));var b=(r===a?-1:1)*u((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,S=(t+i)/2+f(v)*w-h(v)*M,T=(e+n)/2+h(v)*w+f(v)*M,C=g([1,0],[(y-w)/o,(_-M)/s]),A=[(y-w)/o,(_-M)/s],P=[(-1*y-w)/o,(-1*_-M)/s],L=g(A,P);m(A,P)<=-1&&(L=p),m(A,P)>=1&&(L=0),0===a&&L>0&&(L-=2*p),1===a&&0>L&&(L+=2*p),d.addData(c,S,T,o,s,C,L,v,a)}function n(t){if(!t)return[];var i,n=t[U](/-/g," -")[U](/ /g," ")[U](/ /g,",")[U](/,,/g,",");for(i=0;i0&&""===m[0]&&m.shift();for(var g=0;go;o++){var s=t[o];s[i]&&s.buildPath(s.path,s.shape,!0),n.push(s.path)}var l=new a(e);return l.buildPath=function(t){t.appendPath(n);var e=t[T]();e&&t.rebuildPath(e)},l}}}),e("zrender/graphic/Path",[Me,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){n.call(this,t),this.path=new o}var n=t("./Displayable"),a=t("../core/util"),o=t("../core/PathProxy"),s=t("../contain/path"),l=t("./Pattern"),c=l[_e].getCanvasPattern,u=Math.abs;return e[_e]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,r=this.path,a=n.hasStroke(),o=n.hasFill(),s=n.fill,l=n[h],u=o&&!!s.colorStops,f=a&&!!l.colorStops,d=o&&!!s.image,p=a&&!!l.image;if(n.bind(t,this,e),this.setTransform(t),this[i]){var v=this[D]();u&&(this._fillGradient=n.getGradient(t,s,v)),f&&(this._strokeGradient=n.getGradient(t,l,v))}u?t.fillStyle=this._fillGradient:d&&(t.fillStyle=c.call(s,t)),f?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=c.call(l,t));var m=n.lineDash,g=n.lineDashOffset,y=!!t.setLineDash,_=this.getGlobalScale();r.setScale(_[0],_[1]),this.__dirtyPath||m&&!y&&a?(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),a&&r[h](t),m&&y&&t.setLineDash([]),this.restoreTransform(t),(n.text||0===n.text)&&this.drawRectText(t,this[D]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[D]()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this[i]||n){a.copy(t);var o=e[f],s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a[ce]+=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),n=this[D](),r=this.style;if(t=i[0],e=i[1],n[P](t,e)){var a=this.path.data;if(r.hasStroke()){var o=r[f],l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/l,t,e)))return!0}if(r.hasFill())return s[P](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this[i]=!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):n[_e].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[ae](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[r];return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},e[ne]=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)};a[G](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[_e][n]=t[n]);return i},a[G](e,n),e}),e("zrender/graphic/Gradient",[Me],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("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[ee]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[ee],a}}}}),e("zrender/container/Group",[Me,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),n=t("../Element"),r=t("../core/BoundingRect"),a=function(t){t=t||{},n.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this[i]=!0};return a[_e]={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=0&&(i[te](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent[re](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[V](r,t);return 0>o?this:(r[te](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;es&&(a=i*(1-s)+a*s,o=r*(1-s)+o*s),t.lineTo(a,o))},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",[Me,"../../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?u:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?u:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?c:s)(t.x1,t.cpx1,t.x2,e),(i?c:s)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),r=t("../../core/vector"),a=i.quadraticSubdivide,o=i.cubicSubdivide,s=i.quadraticAt,l=i.cubicAt,c=i.quadraticDerivativeAt,u=i.cubicDerivativeAt,h=[];return t("../Path")[ne]({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,s=e.x2,l=e.y2,c=e.cpx1,u=e.cpy1,f=e.cpx2,d=e.cpy2,p=e.percent;0!==p&&(t[n](i,r),null==f||null==d?(1>p&&(a(i,c,s,p,h),c=h[1],s=h[2],a(r,u,l,p,h),u=h[1],l=h[2]),t.quadraticCurveTo(c,u,s,l)):(1>p&&(o(i,c,f,s,p,h),c=h[1],f=h[2],s=h[3],o(r,u,d,l,p,h),u=h[1],d=h[2],l=h[3]),t.bezierCurveTo(c,u,f,d,s,l)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return r.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[Me,"../Path"],function(t){return t("../Path")[ne]({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,a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,c=Math.cos(o),u=Math.sin(o);t[n](c*a+i,u*a+r),t.arc(i,r,a,o,s,!l)}})}),e("zrender/graphic/CompoundPath",[Me,"./Path"],function(t){var e=t("./Path");return e[ne]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;nn||i>s||l>a||r>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[ce]},clone:function(){return new e(this.x,this.y,this.width,this[ce])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[ce]=t[ce]}},e}),e("zrender/contain/text",[Me,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(o[i])return o[i];for(var n=(t+"").split("\n"),r=0,a=0,c=n[ee];c>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return s>l&&(s=0,o={}),s++,o[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[ee],o=e(t,i),s=e("国",i),l=a*s,c=new h(0,0,o,l);switch(c.lineHeight=s,r){case ue:case"alphabetic":c.y-=s;break;case I:c.y-=s/2}switch(n){case"end":case"right":c.x-=c.width;break;case z:c.x-=c.width/2}return c}function n(t,e,i,n){var r=e.x,a=e.y,o=e[ce],s=e.width,l=i[ce],c=o/2-l/2,h="left";switch(t){case"left":r-=n,a+=c,h="right";break;case"right":r+=n+s,a+=c,h="left";break;case"top":r+=s/2,a-=n+l,h=z;break;case ue:r+=s/2,a+=o+n,h=z;break;case u:r+=s/2,a+=c,h=z;break;case"insideLeft":r+=n,a+=c,h="left";break;case"insideRight":r+=s-n,a+=c,h="right";break;case"insideTop":r+=s/2,a+=n,h=z;break;case"insideBottom":r+=s/2,a+=o-l-n,h=z;break;case"insideTopLeft":r+=n,a+=n,h="left";break;case"insideTopRight":r+=s-n,a+=n,h="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,h="right"}return{x:r,y:a,textAlign:h,textBaseline:"top"}}function r(t,i,n,r,o){if(!i)return"";o=o||{},r=f(r,"...");for(var s=f(o.maxIterations,2),l=f(o.minChar,0),c=e("国",n),u=e("a",n),h=f(o.placeholder,""),d=i=Math.max(0,i-1),p=0;l>p&&d>=u;p++)d-=u;var v=e(r);v>d&&(r="",v=0),d=i-v; for(var m=(t+"").split("\n"),p=0,g=m[ee];g>p;p++){var y=m[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=s){y+=r;break}var b=0===x?a(y,d,u,c):_>0?Math.floor(y[ee]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),m[p]=y}}return m.join("\n")}function a(t,e,i,n){for(var r=0,a=0,o=t[ee];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var o={},s=0,l=5e3,c=t("../core/util"),h=t("../core/BoundingRect"),f=c.retrieve,d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:r,measureText:function(t,e){var i=c[T]();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/coord/axisHelper",[Me,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",we,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t("../util/number"),a=t(we),o=t("zrender/contain/text"),l={};return l.getScaleExtent=function(t,e){var i=t.scale,n=i[A](),o=n[1]-n[0];if(i.type===b)return isFinite(o)?n:[0,0];var s=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),c=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),u=e.get("boundaryGap");a[Z](u)||(u=[u||0,u||0]),u[0]=r.parsePercent(u[0],1),u[1]=r.parsePercent(u[1],1);var h=!0,f=!0;return null==s&&(s=n[0]-u[0]*o,h=!1),null==l&&(l=n[1]+u[1]*o,f=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),c&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!f&&(l=0)),[s,l]},l.niceScaleExtent=function(t,e){var i=t.scale,n=l.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 c=i.getInterval(),u=Math.max(Math.abs(c),s)/c;n=i[A](),i.setExtent(u*n[0],n[1]*u),i.niceExtent(o)}var c=e.get("interval");null!=c&&i.setInterval&&i.setInterval(c)},l.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case s:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[le](t)}},l.ifAxisCrossZero=function(t){var e=t.scale[A](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},l.getAxisLabelInterval=function(t,e,i,n){var r,a=0,s=0,l=1;e[ee]>40&&(l=Math.floor(e[ee]/40));for(var c=0;c1?l:(a+1)*l-1},l.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===ye?(e=function(t){return function(e){return t[U]("{value}",e)}}(e),a.map(n,e)):typeof e===W?a.map(r,function(n,r){return e(t.type===s?i.getLabel(n):n,r)},this):n},l}),e("echarts/coord/cartesian/Cartesian2D",[Me,we,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(we),n=t("./Cartesian");return e[_e]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(b)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[P](e.toLocalCoord(t[0]))&&i[P](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[G](e,n),e}),e("echarts/coord/cartesian/Axis2D",[Me,we,"../Axis","./axisLabelInterval"],function(t){var e=t(we),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[k]=a||ue};return r[_e]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[k];return"top"===t||t===ue},getGlobalExtent:function(){var t=this[A]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if(this.type===s){var e=this.getLabelInterval();return typeof e===W&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[G](r,i),r}),e("echarts/coord/cartesian/GridModel",[Me,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[ne]({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/util/clazz",[Me,we],function(t){function e(t,e){var i=n.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 n=t(we),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[ne]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[ne](a[_e],t),a[ne]=this[ne],a.superCall=e,a.superApply=i,n[G](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[ne];a&&(t[ne]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/lineStyle",[Me,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[f,"width"],[h,"color"],[L],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[Me,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[L],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Me,"zrender/contain/text"],function(t){function e(t,e){return t&&t[y](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[m];return this[y]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[m],i=t&&t[me](B);return[this[y]("fontStyle")||e(i,"fontStyle"),this[y]("fontWeight")||e(i,"fontWeight"),(this[y]("fontSize")||e(i,"fontSize")||12)+"px",this[y]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(B)||{};return i[D](t,this[E](),e.align,e.baseline)},truncateText:function(t,e,n,r){return i.truncateText(t,e,this[E](),n,r)}}}),e("echarts/model/mixin/itemStyle",[Me,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[h,"borderColor"],[f,"borderWidth"],[L],["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",[Me,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===ye?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),n=t("../../core/BoundingRect"),a=new n,o=function(){};return o[_e]={constructor:o,drawRectText:function(t,n,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){t.save();var c,u,h=s.textPosition,f=s.textDistance,p=s[R],v=s.textFont||s.font,m=s.textBaseline,g=s.textVerticalAlign;o=o||i[D](l,v,p,m);var y=this[r];if(y&&(a.copy(n),a[d](y),n=a),h instanceof Array){if(c=n.x+e(h[0],n.width),u=n.y+e(h[1],n[ce]),p=p||"left",m=m||"top",g){switch(g){case I:u-=o[ce]/2-o.lineHeight/2;break;case ue:u-=o[ce]-o.lineHeight/2;break;default:u+=o.lineHeight/2}m=I}}else{var _=i.adjustTextPositionOnRect(h,n,o,f);c=_.x,u=_.y,p=p||_[R],m=m||_.textBaseline}t[R]=p||"left",t.textBaseline=m||"alphabetic";var x=s.textFill,b=s.textStroke;x&&(t.fillStyle=x),b&&(t.strokeStyle=b),t.font=v,t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var w=l.split("\n"),M=0;Mthis._ux||y(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=v(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[h](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ii;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[ee],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();_&&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;oe[ee]&&(this._expandData(),e=this.data);for(var i=0;io&&(o=a+o),o%=a,m-=o*h,y-=o*f;h>0&&t>=m||0>h&&m>=t||0==h&&(f>0&&e>=y||0>f&&y>=e);)r=this._dashIdx,i=s[r],m+=h*i,y+=f*i,this._dashIdx=(r+1)%_,h>0&&c>m||0>h&&m>c||f>0&&u>y||0>f&&y>u||l[r%2?n:"lineTo"](h>=0?d(m,t):p(m,t),f>=0?d(y,e):p(y,e));h=m-t,f=y-e,this._dashOffset=-g(h*h+f*f)},_dashedBezierTo:function(t,i,r,a,o,s){var l,c,u,h,f,d=this._dashSum,p=this._dashOffset,v=this._lineDash,m=this._ctx,y=this._xi,_=this._yi,x=e.cubicAt,b=0,w=this._dashIdx,M=v[ee],S=0;for(0>p&&(p=d+p),p%=d,l=0;1>l;l+=.1)c=x(y,t,r,o,l+.1)-x(y,t,r,o,l),u=x(_,i,a,s,l+.1)-x(_,i,a,s,l),b+=g(c*c+u*u);for(;M>w&&(S+=v[w],!(S>p));w++);for(l=(S-p)/b;1>=l;)h=x(y,t,r,o,l),f=x(_,i,a,s,l),w%2?m[n](h,f):m.lineTo(h,f),l+=v[w]/b,w=(w+1)%M;w%2!==0&&m.lineTo(o,s),c=o-h,u=s-f,this._dashOffset=-g(c*c+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[ee]=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=u[0]=u[1]=Number.MAX_VALUE,c[0]=c[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,o=0,h=0,d=0;dd;){var p=c[d++];switch(1==d&&(r=c[d],a=c[d+1],e=r,i=a),p){case s.M:e=r=c[d++],i=a=c[d++],t[n](r,a);break;case s.L:o=c[d++],l=c[d++],(y(o-r)>u||y(l-a)>h||d===f-1)&&(t.lineTo(o,l),r=o,a=l);break;case s.C:t.bezierCurveTo(c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),r=c[d-2],a=c[d-1];break;case s.Q:t.quadraticCurveTo(c[d++],c[d++],c[d++],c[d++]),r=c[d-2],a=c[d-1];break;case s.A:var g=c[d++],_=c[d++],x=c[d++],b=c[d++],w=c[d++],M=c[d++],S=c[d++],T=c[d++],C=x>b?x:b,A=x>b?1:x/b,P=x>b?b/x:1,L=Math.abs(x-b)>.001,k=w+M;L?(t.translate(g,_),t.rotate(S),t.scale(A,P),t.arc(0,0,C,w,k,1-T),t.scale(1/A,1/P),t.rotate(-S),t.translate(-g,-_)):t.arc(g,_,C,w,k,1-T),1==d&&(e=v(w)*x+g,i=m(w)*b+_),r=v(k)*x+g,a=m(k)*b+_;break;case s.R:e=r=c[d],i=a=c[d+1],t.rect(c[d++],c[d++],c[d++],c[d++]);break;case s.Z:t.closePath(),r=e,a=i}}}},x.CMD=s,x}),e("zrender/graphic/Displayable",[Me,"../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 n=t("../core/util"),r=t("./Style"),a=t("../Element"),o=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),n=this[D]();return n[P](i[0],i[1])},dirty:function(){this[i]=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a[_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}},n[G](e,a),n.mixin(e,o),e}),e("zrender/vml/core",[Me,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[de]){var n,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),n=function(t){return o[S]("')}}catch(l){n=function(t){return o[S]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var c=function(){if(!s){s=!0;var t=o.styleSheets;t[ee]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:c,createNode:n}}}),e("zrender/tool/transformPath",[Me,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,c,u,h,f,d=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,_=i.Q;for(c=0,u=0;ch;h++){var f=a[h];f[0]=d[c++],f[1]=d[c++],r(f,f,e),d[u++]=f[0],d[u++]=f[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[d],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/contain/path",[Me,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>l||e>u&&r>u&&o>u&&l>u)return 0;var h=d.cubicRootAt(e,r,o,l,u,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,n,a,s,x);c>w||(0>m&&(m=d.cubicExtrema(e,r,o,l,_),_[1]<_[0]&&m>1&&i(),f=d.cubicAt(e,r,o,l,_[0]),m>1&&(p=d.cubicAt(e,r,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 r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=d.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var c=d.quadraticExtremum(e,n,a);if(c>=0&&1>=c){for(var u=0,h=d.quadraticAt(e,n,a,c),f=0;l>f;f++){var p=0===y[f]||1===y[f]?.5:1,v=d.quadraticAt(t,i,r,y[f]);o>v||(u+=y[f]h?p:-p:h>a?p:-p)}return u}var p=0===y[0]||1===y[0]?.5:1,v=d.quadraticAt(t,i,r,y[0]);return o>v?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 l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var c=Math.abs(n-r);if(1e-4>c)return 0;if(1e-4>c%m){n=0,r=m;var u=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?u:0}if(a){var l=n;n=f(r),r=f(l)}else n=f(n),r=f(r);n>r&&(r+=m);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var v=Math.atan2(s,p),u=a?1:-1;0>v&&(v=m+v),(v>=n&&r>=v||v+m>=n&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),h+=u)}}return h}function o(t,i,o,l,f){for(var d=0,m=0,g=0,y=0,_=0,x=0;x1&&(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(c.containStroke(m,g,t[x++],t[x++],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++],t[x],t[x+1],l,f)||0;m=t[x++],g=t[x++];break;case s.Q:if(o){if(u.containStroke(m,g,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+1],l,f)||0;m=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],S=t[x++],T=t[x++],C=t[x++],A=t[x++],P=(t[x++],1-t[x++]),L=Math.cos(C)*S+w,k=Math.sin(C)*T+M;x>1?d+=p(m,g,L,k,l,f):(y=L,_=k);var z=(l-w)*T/S+w;if(o){if(h.containStroke(w,M,T,C,C+A,P,i,z,f))return!0}else d+=a(w,M,T,C,C+A,P,z,f);m=Math.cos(C+A)*S+w,g=Math.sin(C+A)*T+M;break;case s.R:y=m=t[x++],_=g=t[x++];var I=t[x++],D=t[x++],L=y+I,k=_+D;if(o){if(v(y,_,L,_,i,l,f)||v(L,_,L,k,i,l,f)||v(L,k,y,k,i,l,f)||v(y,k,y,_,i,l,f))return!0}else d+=p(L,_,L,k,l,f),d+=p(y,k,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"),c=t("./cubic"),u=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,n){return o(t,e,!0,i,n)}}}),e("zrender/graphic/Pattern",[Me],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("echarts/scale/Ordinal",[Me,we,"./Scale"],function(t){var e=t(we),i=t("./Scale"),n=i[_e],r=i[ne]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[ee]-1]},parse:function(t){return typeof t===ye?e[V](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[P].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[le]=function(){return new r},r}),e("echarts/model/mixin/makeStyleMapper",[Me,we],function(t){var e=t(we);return function(t){for(var i=0;i=0)){var o=this[y](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/core/bbox",[Me,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[le](),c=e[le](),u=e[le](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[ee]){var n,o=t[0],s=o[0],l=o[0],c=o[1],u=o[1];for(n=1;nv;v++){var _=g(t,n,s,c,f[v]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=m(e,o,l,u,d),v=0;y>v;v++){var x=g(e,o,l,u,d[v]);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(c,h[0]),p[0]=a(c,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(u,h[1]),p[1]=a(u,p[1])},n.fromQuadratic=function(t,e,n,o,s,l,c,u){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=f(t,n,s,d),m=f(e,o,l,p);c[0]=r(t,s,v),c[1]=r(e,l,m),u[0]=a(t,s,v),u[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,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-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,c[0]=s(f)*n+t,c[1]=o(f)*r+i,m(p,l,c),g(v,l,c),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&&(u[0]=s(x)*n+t,u[1]=o(x)*r+i,m(p,u,p),g(v,u,v))},n}),e("zrender/core/curve",[Me,"./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,l=3*(n-2*i+t),c=3*(i-t),u=t-a,h=l*l-3*s*c,f=l*c-9*s*u,d=c*c-3*l*u,p=0;if(e(h)&&e(f))if(e(l))o[0]=0;else{var v=-c/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),S=h*l+1.5*s*(-f+b),T=h*l+1.5*s*(-f-b);S=0>S?-y(-S,M):y(S,M),T=0>T?-y(-T,M):y(T,M);var v=(-l-(S+T))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*f)/(2*_(h*h*h)),A=Math.acos(C)/3,P=_(h),L=Math.cos(A),v=(-l-2*P*L)/(3*s),x=(-l+P*(L+w*Math.sin(A)))/(3*s),k=(-l+P*(L-w*Math.sin(A)))/(3*s);v>=0&&1>=v&&(o[p++]=v),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,l=9*n+3*a-3*t-9*r,c=3*n-3*t,u=0;if(e(l)){if(i(s)){var h=-c/s;h>=0&&1>=h&&(o[u++]=h)}}else{var f=s*s-4*l*c;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[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-o)*r+o,u=(l-s)*r+s,h=(u-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,c,u,h){var f,d,p,v,m,y=.005,x=1/0;S[0]=c,S[1]=u;for(var w=0;1>w;w+=.05)T[0]=n(t,i,a,s,w),T[1]=n(e,r,o,l,w),v=g(S,T),x>v&&(f=w,x=v);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,T[0]=n(t,i,a,s,d),T[1]=n(e,r,o,l,d),v=g(T,S),d>=0&&x>v?(f=d,x=v):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),m=g(C,S),1>=p&&x>m?(f=p,x=m):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,l,f)),_(x)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function u(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),c=t-a,u=0;if(e(s)){if(i(l)){var h=-c/l;h>=0&&1>=h&&(o[u++]=h)}}else{var f=l*l-4*s*c;if(e(f)){var h=-l/(2*s);h>=0&&1>=h&&(o[u++]=h)}else if(f>0){var d=_(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&1>=h&&(o[u++]=h),p>=0&&1>=p&&(o[u++]=p)}}return u}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,l){var u,h=.005,f=1/0;S[0]=o,S[1]=s;for(var d=0;1>d;d+=.05){T[0]=c(t,i,r,d),T[1]=c(e,n,a,d);var p=g(S,T);f>p&&(u=d,f=p)}f=1/0;for(var v=0;32>v&&!(b>h);v++){var m=u-h,y=u+h;T[0]=c(t,i,r,m),T[1]=c(e,n,a,m);var p=g(T,S);if(m>=0&&f>p)u=m,f=p;else{C[0]=c(t,i,r,y),C[1]=c(e,n,a,y);var x=g(C,S);1>=y&&f>x?(u=y,f=x):h*=.5}}return l&&(l[0]=c(t,i,r,u),l[1]=c(e,n,a,u)),_(f)}var v=t("./vector"),m=v[le],g=v.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),M=1/3,S=m(),T=m(),C=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:c,quadraticDerivativeAt:u,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/config",[],function(){var t=1;typeof window!==C&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/graphic/Style",[Me],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[ce]+i.y,o=o*i[ce]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[ce],a=Math.min(n,r),o=e.x,s=e.y,l=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var c=t.createRadialGradient(o,s,0,o,s,l);return c}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[_e]={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;s0},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===ye?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,l=0;l=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){c[t].entryCount--,0===c[t].entryCount&&u.push(t)}function s(t){h[t]=!0,o(t)}if(t[ee]){var l=n(i),c=l.graph,u=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});u[ee];){var f=u.pop(),d=c[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[Me],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(ue),width:this.get("width"),height:this.get(ce)}}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Transformable",[Me,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var i=t("../core/matrix"),n=t("../core/vector"),a=i.identity,o=5e-5,s=function(t){t=t||{},t[k]||(this[k]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s[_e];l[r]=null,l.needLocalTransform=function(){return e(this.rotation)||e(this[k][0])||e(this[k][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l.updateTransform=function(){var t=this.parent,e=t&&t[r],n=this.needLocalTransform(),o=this[r];return n||e?(o=o||i[le](),n?this.getLocalTransform(o):a(o),e&&(n?i.mul(o,t[r],o):i.copy(o,t[r])),this[r]=o,this.invTransform=this.invTransform||i[le](),void i.invert(this.invTransform,o)):void(o&&a(o))},l.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,n=this.scale,r=this.rotation,o=this[k];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),r&&i.rotate(t,t,r),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},l.setTransform=function(t){var e=this[r];e&&t[r](e[0],e[1],e[2],e[3],e[4],e[5])},l.restoreTransform=function(t){var e=this.invTransform;e&&t[r](e[0],e[1],e[2],e[3],e[4],e[5])};var c=[];return l.decomposeTransform=function(){if(this[r]){var t=this.parent,n=this[r];t&&t[r]&&(i.mul(c,t.invTransform,n),n=c);var a=n[0]*n[0]+n[1]*n[1],o=n[2]*n[2]+n[3]*n[3],s=this[k],l=this.scale;e(a-1)&&(a=Math.sqrt(a)),e(o-1)&&(o=Math.sqrt(o)),n[0]<0&&(a=-a),n[3]<0&&(o=-o),s[0]=n[4],s[1]=n[5],l[0]=a,l[1]=o,this.rotation=Math.atan2(-n[1]/o,n[0]/a)}},l.getGlobalScale=function(){var t=this[r];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]},l.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[d](i,i,r),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],a=this[r];return a&&n[d](i,i,a),i},s}),e("zrender/mixin/Animatable",[Me,"../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[ae],o=t("../core/log"),s=function(){this.animators=[]};return s[_e]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var c=t.split("."),u=s;a="shape"===c[0];for(var h=0,f=c[ee];f>h;h++)u&&(u=u[c[h]]);u&&(r=u)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var d=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){d[te](i[V](d,p),1)}),d.push(p),l&&l[g].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[ee],n=0;i>n;n++)e[n].stop(t);return e[ee]=0,this},animateTo:function(t,e,i,a,o){function s(){c--,c||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),c=l[ee];c||o&&o();for(var u=0;u0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/coord/Axis",[Me,"../util/number",we],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(we),a=[0,1],o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[_e]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[P](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[A](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type===b&&(r=r.slice(),e(r,o.count())),n(t,a,r,i)},coordToData:function(t,i){var r=this._extent,o=this.scale;this.onBand&&o.type===b&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;no;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[A](),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}},o}),e("echarts/coord/cartesian/axisLabelInterval",[Me,we,"../axisHelper"],function(t){var e=t(we),i=t("../axisHelper");return function(t){var n=t.model,r=n[me]("axisLabel"),a=r.get("interval");return t.type!==s||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[me](B)[E](),t.isHorizontal())}}),e("zrender/core/log",[Me,"../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("zrender/animation/Animator",[Me,"./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[ee];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][ee],s=0;o>s;s++)for(var c=0;l>c;c++)r[s][c]=n(t[s][c],e[s][c],i)}function o(t,e,i){var n=t[ee],r=e[ee];if(n!==r){var a=n>r;if(a)t[ee]=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][ee],o=0;ol;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function s(t,e,i){if(t===e)return!0;var n=t[ee];if(n!==e[ee])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][ee],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var u=t[ee];if(1==l)for(var h=0;u>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][ee],h=0;u>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),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function u(t){if(m(t)){var e=t[ee];if(m(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 h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t,e,i,u,f){var v=t._getter,g=t._setter,y="spline"===e,_=u[ee];if(_){var x,b=u[0].value,w=m(b),M=!1,S=!1,T=w&&m(b[0])?2:1;u.sort(function(t,e){return t.time-e.time}),x=u[_-1].time;for(var C=[],A=[],P=u[0].value,L=!0,k=0;_>k;k++){C.push(u[k].time/x);var z=u[k].value;if(w&&s(z,P,T)||!w&&z===P||(L=!1),P=z,typeof z==ye){var I=p.parse(z);I?(z=I,M=!0):S=!0}A.push(z)}if(!L){for(var D=A[_-1],k=0;_-1>k;k++)w?o(A[k],D,T):!isNaN(A[k])||isNaN(D)||S||M||(A[k]=D);w&&o(v(t._target,f),D,T);var O,E,R,B,N,F,G=0,V=0;if(M)var H=[0,0,0,0];var q=function(t,e){var i;if(V>e){for(O=Math.min(G+1,_-1),i=O;i>=0&&!(C[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=G;_>i&&!(C[i]>e);i++);i=Math.min(i-1,_-2)}G=i,V=e;var o=C[i+1]-C[i];if(0!==o)if(E=(e-C[i])/o,y)if(B=A[i],R=A[0===i?i:i-1],N=A[i>_-2?_-1:i+1],F=A[i>_-3?_-1:i+2],w)l(R,B,N,F,E,E*E,E*E*E,v(t,f),T);else{var s;if(M)s=l(R,B,N,F,E,E*E,E*E*E,H,1),s=h(H);else{if(S)return r(B,N,E);s=c(R,B,N,F,E,E*E,E*E*E)}g(t,f,s)}else if(w)a(A[i],A[i+1],E,v(t,f),T);else{var s;if(M)a(A[i],A[i+1],E,H,1),s=h(H);else{if(S)return r(A[i],A[i+1],E);s=n(A[i],A[i+1],E)}g(t,f,s)}},W=new d({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:q,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var d=t("./Clip"),p=t("../tool/color"),v=t("../core/util"),m=v.isArrayLike,y=Array[_e].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 _[_e]={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:u(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[ee]=0;for(var t=this._doneList,e=t[ee],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=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[g]&&this[g].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;ne)){e=Math.min(e,1);var n=this.easing,r=typeof n==ye?i[n]:n,a=typeof r===W?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/axisModelCreator",[Me,"./axisDefault",we,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(we),n=t("../model/Component"),r=t("../util/layout"),a=["value",s,"time","log"];return function(t,o,s,l){i.each(a,function(n){o[ne]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},c=a.getTheme();i.merge(e,c.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[Me,we,"./axisHelper"],function(t){function e(t){return r[ae](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===s&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(we),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),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("echarts/coord/axisDefault",[Me,we],function(t){var e=t(we),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[ie]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[ie]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("zrender/contain/cubic",[Me,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c,u,h){if(0===c)return!1;var f=c;if(h>i+f&&h>r+f&&h>o+f&&h>l+f||i-f>h&&r-f>h&&o-f>h&&l-f>h||u>t+f&&u>n+f&&u>a+f&&u>s+f||t-f>u&&n-f>u&&a-f>u&&s-f>u)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,l,u,h,null);return f/2>=d}}}),e("zrender/contain/quadratic",[Me,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c){if(0===s)return!1;var u=s;if(c>i+u&&c>r+u&&c>o+u||i-u>c&&r-u>c&&o-u>c||l>t+u&&l>n+u&&l>a+u||t-u>l&&n-u>l&&a-u>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,c,null);return u/2>=h}}}),e("zrender/contain/arc",[Me,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,c,u){if(0===l)return!1;var h=l;c-=t,u-=n;var f=Math.sqrt(c*c+u*u);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(u,c);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/util",[Me],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var l=s*(i-t)+t;return l>r?o:0}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,c=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),c=(t*n-i*e)/(t-i);var u=l*a-o+c,h=u*u/(l*l+1);return s/2*s/2>=h}}}),e("echarts/chart/helper/createListFromArray",[Me,"../../data/List","../../data/helper/completeDimensions",we,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===_?i:m(v(t),y[n])}:function(t,e,i,n){var r=v(t),a=m(r&&r[n],y[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var o=s&&s.categoryAxesModels;return o&&o[e]&&typeof a===ye&&(M[e]=M[e]||o[e].getCategories(),a=f[V](M[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return x.hasItemOption=!1,x.initData(t,b,S),x}function r(t){return t!==s&&"time"!==t}function o(t){return t===s?b:"time"===t?"time":"float"}function c(t,e){var i,n=[],r=t&&t[l][t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[ee];if(f[Z](e[0])&&e[0][ee]>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"),h=t("../../data/helper/completeDimensions"),f=t(we),d=t("../../util/model"),p=t("../../CoordinateSystem"),v=d.getDataItemValue,m=d.converDataValue,g={cartesian2d:function(t,e,i){var n=i.getComponent("xAxis",e.get("xAxisIndex")),a=i.getComponent("yAxis",e.get("yAxisIndex")),l=n.get("type"),c=a.get("type"),u=[{name:"x",type:o(l),stackable:r(l)},{name:"y",type:o(c),stackable:r(c)}],f=l===s,d=c===s;h(u,t,["x","y","z"]);var p={};return f&&(p.x=n),d&&(p.y=a),{dimensions:u,categoryIndex:f?0:d?1:-1,categoryAxesModels:p}},polar:function(t,e,i){var n=e.get("polarIndex")||0,l=function(t){return t.get("polarIndex")===n},c=i.findComponents({mainType:"angleAxis",filter:l})[0],u=i.findComponents({mainType:"radiusAxis",filter:l})[0],f=u.get("type"),d=c.get("type"),p=[{name:"radius",type:o(f),stackable:r(f)},{name:"angle",type:o(d),stackable:r(d)}],v=d===s,m=f===s;h(p,t,[a,"angle","value"]);var g={};return m&&(g[a]=u),v&&(g.angle=c),{dimensions:p,categoryIndex:v?1:m?0:-1,categoryAxesModels:g}},geo:function(t){return{dimensions:h([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("zrender/core/LRU",[Me],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[_e];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[re]=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[_e];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[re](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[re](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/data/helper/completeDimensions",[Me,we],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),l=n[Z](s)&&s[ee]||1;a=a||[],o=o||"extra";for(var c=0;l>c;c++)if(!t[c]){var u=a[c]||o+(c-a[ee]);t[c]=r(e,c)?{type:"ordinal",name:u}:u}return t}function i(t){return n[Z](t)?t:n[ae](t)?t.value:t}var n=t(we),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[ee];a>r;r++){var o=i(t[r]);if(!n[Z](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/data/DataDiffer",[Me],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;rd;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("zrender/graphic/helper/poly",[Me,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,r,a){var o=r.points,s=r.smooth;if(o&&o[ee]>=2){if(s&&"spline"!==s){var l=i(o,s,a,r.smoothConstraint);t[n](o[0][0],o[0][1]);for(var c=o[ee],u=0;(a?c:c-1)>u;u++){var h=l[2*u],f=l[2*u+1],d=o[(u+1)%c];t.bezierCurveTo(h[0],h[1],f[0],f[1],d[0],d[1])}}else{"spline"===s&&(o=e(o,a)),t[n](o[0][0],o[0][1]);for(var u=1,p=o[ee];p>u;u++)t.lineTo(o[u][0],o[u][1])}a&&t.closePath()}}}}),e("zrender/Storage",[Me,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[X]===e[X]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[X]-e[X]}var n=t("./core/util"),r=t("./core/env"),a=t("./container/Group"),o=t("./core/timsort"),s=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return s[_e]={constructor:s,traverse:function(t,e){for(var i=0;ia;a++)this._updateAndAddDisplayable(i[a],null,t);n[ee]=this._displayListLen,r[de]&&o(n,e)},_updateAndAddDisplayable:function(t,e,n){if(!t[he]||n){t.beforeUpdate(),t[i]&&t[se](),t.afterUpdate();var r=t.clipPath;if(r&&(r.parent=t,r.updateTransform(),e?(e=e.slice(),e.push(r)):e=[r]),t.isGroup){for(var a=t._children,o=0;oe;e++)this.delRoot(t[e]);else{var o;o=typeof t==ye?this._elements[t]:t;var s=n[V](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[te](s,1),o instanceof a&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof a&&(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 a&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},s}),e("zrender/Handler",[Me,"./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":P](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[P](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[_e].dispose=function(){};var s=["click","dblclick","mousewheel",K,"mouseup","mousedown","mousemove"],l=function(t,e,n){o.call(this),this[fe]=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 l[_e]={constructor:l,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,K,t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,J,t)},mouseout:function(t){this.dispatchToElement(this._hovered,K,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[fe]=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]==W&&t[r].call(t,a),t.trigger&&t.trigger(i,a)}))},findHover:function(t,e,i){for(var r=this[fe].getDisplayList(),a=r[ee]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][he]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){l[_e][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(l,o),r.mixin(l,a),l}),e("zrender/animation/Animation",[Me,"../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[_e]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[g]=this;for(var e=t.getClips(),i=0;i=0&&this._clips[te](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;io;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[ee];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage[se]&&this.stage[se]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/dom/HandlerProxy",[Me,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&u.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[Q],a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return u.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;is;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var c,u,h,f=s/(l-1)*(n?r:r-1),d=Math.floor(f),p=f-d,v=t[d%r];n?(c=t[(d-1+r)%r],u=t[(d+1)%r],h=t[(d+2)%r]):(c=t[0===d?d:d-1],u=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var m=p*p,g=p*m;a.push([e(c[0],v[0],u[0],h[0],p,m,g),e(c[1],v[1],u[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Me,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,c){var u,h,f,d,p=[],v=[],m=[],g=[];if(c){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[ee];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,c[0]),n(d,d,c[1])}for(var y=0,_=t[ee];_>y;y++){var x=t[y];if(l)u=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}u=t[y-1],h=t[y+1]}e.sub(v,h,u),r(v,v,s);var b=a(x,u),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(m,v,-b),r(g,v,w);var S=o([],x,m),T=o([],x,g);c&&(n(S,S,f),i(S,S,d),n(T,T,f),i(T,T,d)),p.push(S),p.push(T)}return l&&p.push(p.shift()),p}}),e("echarts/chart/bar/barItemStyle",[Me,"../../model/mixin/makeStyleMapper"],function(t){var e=t("../../model/mixin/makeStyleMapper")([["fill","color"],[h,"borderColor"],[f,"borderWidth"],[h,"barBorderColor"],[f,"barBorderWidth"],[L],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getBarItemStyle:function(t){var i=e.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(i.lineDash=n)}return i}}}),e("zrender/Painter",[Me,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function n(t){return t?t.isBuildin?!0:typeof t[ge]!==W||typeof t.refresh!==W?!1:!0:!1}function a(t){t.__unusedCount++}function o(t){1==t.__unusedCount&&t.clear()}function s(t,e,i){return x.copy(t[D]()),t[r]&&x[d](t[r]),b.width=e,b[ce]=i,!x.intersect(b)}function l(t,e){if(t==e)return!1;if(!t||!e||t[ee]!==e[ee])return!0;for(var i=0;i=0&&i[te](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;ea;){var o=t[a],s=o.__from;s&&s.__zr?(a++,s.invisible||(o[r]=s[r],o.invTransform=s.invTransform,o.__clipPaths=s.__clipPaths,this._doPaintEl(o,i,!0,n))):(t[te](a,1),s.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e[fe]&&(e._doPaintList(e[fe].getDisplayList()),e._furtherProgressive?(e._progress++,y(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,y(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,f.each(this._progressiveLayers,function(t){t[i]&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(a),this._doPaintList(t,e),this.eachBuildinLayer(o)},_doPaintList:function(t,e){function n(t){o.save(),o.globalAlpha=1,o.shadowBlur=0,r[i]=!0,o.drawImage(t.dom,0,0,h,d),o.restore(),r.ctx.restore()}for(var r,a,o,s,l,c,u=0,h=this._width,d=this._height,v=this._progress,m=0,g=t[ee];g>m;m++){var y=t[m],x=this._singleCanvas?0:y[X],b=y.__frame;if(0>b&&l&&(n(l),l=null),a!==x&&(o&&o.restore(),s={},a=x,r=this.getLayer(a),r.isBuildin||p("ZLevel "+a+" has been used by unkown layer "+r.id),o=r.ctx,o.save(),r.__unusedCount=0,(r[i]||e)&&r.clear()),r[i]||e){if(b>=0){if(!l){if(l=this._progressiveLayers[Math.min(u++,_-1)],l.ctx.save(),l.renderScope={},l&&l.__progress>l.__maxProgress){m=l.__nextIdxNotProg-1;continue}c=l.__progress,l[i]||(v=c),l.__progress=v+1}b===v&&this._doPaintEl(y,l,!0,l.renderScope)}else this._doPaintEl(y,r,e,s);y[i]=!1}}l&&n(l),o&&o.restore(),this._furtherProgressive=!1,f.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,r){var a=e.ctx;if((e[i]||n)&&!t.invisible&&0!==t.style[L]&&t.scale[0]&&t.scale[1]&&(!t.culling||!s(t,this._width,this._height))){var o=t.__clipPaths;(r.prevClipLayer!==e||l(o,r.prevElClipPaths))&&(r.prevElClipPaths&&(r.prevClipLayer.ctx.restore(),r.prevClipLayer=r.prevElClipPaths=null,r.prevEl=null),o&&(a.save(),c(o,a),r.prevClipLayer=e,r.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(a),t.brush(a,r.prevEl||null),r.prevEl=t,t.afterBrush&&t.afterBrush(a)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new g("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&f.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var i=this._layers,r=this._zlevelList,a=r[ee],o=null,s=-1,l=this._domRoot;if(i[t])return void p("ZLevel "+t+" has been used already");if(!n(e))return void p("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]t);s++);o=i[r[s]]}if(r[te](s+1,0,t),o){var c=o.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);i[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;nu;u++){var d=t[u],p=this._singleCanvas?0:d[X],v=e[p],m=d.progressive;if(v&&(v.elCount++,v[i]=v[i]||d[i]),m>=0){s!==m&&(s=m,c++);var y=d.__frame=c-1;if(!o){var x=Math.min(l,_-1);o=n[x],o||(o=n[x]=new g("progressive",this,this.dpr),o.initContext()),o.__maxProgress=0}o[i]=o[i]||d[i],o.elCount++,o.__maxProgress=Math.max(o.__maxProgress,y),o.__maxProgress>=o.__progress&&(v[i]=!0)}else d.__frame=-1,o&&(o.__nextIdxNotProg=u,l++,o=null)}o&&(l++,o.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){r[e]!==t.elCount&&(t[i]=!0)}),n[ee]=Math.min(l,_),f.each(n,function(t,e){a[e]!==t.elCount&&(d[i]=!0),t[i]&&(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]?f.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&f.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[te](f[V](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[ce]=e+"px";for(var n in this._layers)this._layers[n][ge](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[fe]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new g("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this[fe].getDisplayList(!0),n={},r=0;rc&&(s+=c,c=-c),0>u&&(l+=u,u=-u),typeof h===q?i=r=a=o=h:h instanceof Array?1===h[ee]?i=r=a=o=h[0]:2===h[ee]?(i=a=h[0],r=o=h[1]):3===h[ee]?(i=h[0],r=o=h[1],a=h[2]):(i=h[0],r=h[1],a=h[2],o=h[3]):i=r=a=o=0;var f;i+r>c&&(f=i+r,i*=c/f,r*=c/f),a+o>c&&(f=a+o,a*=c/f,o*=c/f),r+a>u&&(f=r+a,r*=u/f,a*=u/f),i+o>u&&(f=i+o,i*=u/f,o*=u/f),t[n](s+i,l),t.lineTo(s+c-r,l),0!==r&&t.quadraticCurveTo(s+c,l,s+c,l+r),t.lineTo(s+c,l+u-a),0!==a&&t.quadraticCurveTo(s+c,l+u,s+c-a,l+u),t.lineTo(s+o,l+u),0!==o&&t.quadraticCurveTo(s,l+u,s,l+u-o),t.lineTo(s,l+i),0!==i&&t.quadraticCurveTo(s,l,s+i,l)}}}),e("zrender/core/event",[Me,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i,n){var r=e(t);return n=n||{},n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top,n}function n(t,e){if(e=e||window.event,null!=e.zrX)return e;var n=e.type,r=n&&n[V]("touch")>=0;if(r){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&i(t,a,e)}else i(t,e,e),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function r(t,e,i){s?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function a(t,e,i){s?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var o=t("../mixin/Eventful"),s=typeof window!==C&&!!window.addEventListener,l=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:i,normalizeEvent:n,addEventListener:r,removeEventListener:a,stop:l,Dispatcher:o}}),e("zrender/animation/requestAnimationFrame",[Me],function(){return typeof window!==C&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("echarts/component/axis/AxisView",[Me,we,o,"./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[N],r=e.axis,a={},o=r[k],s=r.onZero?"onZero":o,l=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[ce]],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[ue]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[k]=["y"===l?d.y[s]:h[0],"x"===l?d.x[s]: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[o],r.onZero&&(a.labelOffset=d[l][o]-d[l].onZero),e[me]("axisTick").get(u)&&(a.tickDirection=-a.tickDirection),e[me]("axisLabel").get(u)&&(a.labelDirection=-a.labelDirection);var v=e[me]("axisLabel").get("rotate");return a.labelRotation="top"===s?-v:v,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(we),n=t(o),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,s=r.getInterval,l=["axisLine","axisLabel","axisTick","axisName"],c=["splitArea","splitLine"],h=t("../../echarts").extendComponentView({type:"axis",render:function(t,a){this.group[F]();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")),u=e(s,t),h=new r(t,u);i.each(l,h.add,h),this._axisGroup.add(h.getGroup()),i.each(c,function(e){t.get(e+".show")&&this["_"+e](t,s,u.labelInterval)},this),n.groupTransition(o,this._axisGroup,t)}},_splitLine:function(t,e,r){var o=t.axis,l=t[me]("splitLine"),c=l[me]("lineStyle"),u=c.get("color"),h=s(l,r);u=i[Z](u)?u:[u];for(var f=e[N].getRect(),d=o.isHorizontal(),p=0,v=o.getTicksCoords(),m=o.scale.getTicks(),g=[],y=[],_=c.getLineStyle(),x=0;xo;o++){var l=r[o],c=n.clientToLocal(i,l);a.points.push([c.zrX,c.zrY]),a.touches.push(l)}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[ee];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[ee]>1&&a&&a[ee]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][Q],event:n}}}}};return r}),e("echarts/component/axis/AxisBuilder",[Me,we,"../../util/format",o,"../../model/Model","../../util/number",be],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,r,a=p(e-t.rotation);return v(a)?(r=i>0?"top":ue,n=z):v(a-x)?(r=i>0?ue:"top",n=z):(r=I,n=a>0&&x>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function n(t,e,i,n){var r,a,o=p(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return v(o-x/2)?(a=l?ue:"top",r=z):v(o-1.5*x)?(a=l?"top":ue,r=z):(a=I,r=1.5*x>o&&o>x/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function a(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(we),c=t("../../util/format"),u=t(o),h=t("../../model/Model"),f=t("../../util/number"),p=f.remRadian,v=f.isRadianAroundZero,g=t(be),y=g[d],_=l.retrieve,x=Math.PI,w=function(t,e){this.opt=e,this.axisModel=t,l[ie](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var i=new u.Group({position:e[k].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i[r],this._dumbGroup=i};w[_e]={constructor:w,hasBuilder:function(t){return!!M[t]},add:function(t){M[t].call(this)},getGroup:function(){return this.group}};var M={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[A](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(y(r,r,n),y(a,a,n)),this.group.add(new u.Line(u.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[ne]({lineCap:"round"},e[me]("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[me]("axisTick"),n=this.opt,r=i[me]("lineStyle"),a=i.get(ee),o=T(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),c=e.scale.getTicks(),h=[],f=[],d=this._transform,p=0;pv[1]?-1:1,g=["start"===h?v[0]-m*p:"end"===h?v[1]+m*p:(v[0]+v[1])/2,h===I?t.labelOffset+f*p:0],y=r.get("nameRotate");null!=y&&(y=y*x/180);var b;h===I?s=i(t,null!=y?y:t.rotation,f):(s=n(t,h,y||0,v),b=t.axisNameAvailableWidth,null!=b&&(b=Math.abs(b/Math.sin(s.rotation)),!isFinite(b)&&(b=null)));var w=d[E](),M=r.get("nameTruncate",!0)||{},S=M.ellipsis,T=_(M.maxWidth,b),C=null!=S&&null!=T?c.truncateText(o,T,w,S,{minChar:2,placeholder:M.placeholder}):o,P=r.get("tooltip",!0),L=r.mainType,k={componentType:L,name:o,$vars:["name"]};k[L+"Index"]=r.componentIndex;var z=new u.Text({anid:"name",__fullText:o,__truncatedText:C,style:{text:C,textFont:w,fill:d[O]()||r.get("axisLine.lineStyle.color"),textAlign:s[R],textVerticalAlign:s.verticalAlign},position:g,rotation:s.rotation,silent:a(r),z2:1,tooltip:P&&P.show?l[ne]({content:o,formatter:function(){return o},formatterParams:k},P):null});r.get("triggerEvent")&&(z.eventData=e(r),z.eventData.targetType="axisName",z.eventData.name=o),this._dumbGroup.add(z),z.updateTransform(),this.group.add(z),z.decomposeTransform()}}},S=w.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===b&&(typeof i===W?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},T=w.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return w}),e("zrender/Layer",[Me,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[S](e),a=i[ve](),o=i[pe](),s=r.style;return s[k]="absolute",s.left=0,s.top=0,s.width=a+"px",s[ce]=o+"px",r.width=a*n,r[ce]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),o=t("./graphic/Pattern"),s=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===ye?s=i(t,"canvas",a,o):n[ae](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return s[_e]={constructor:s,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[T]("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[T]("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[ce]=e+"px",n.width=t*i,n[ce]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[ce]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[ce],s=this.clearColor,l=this.motionBlur&&!t,c=this.lastFrameAlpha,u=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/u,r/u)),i.clearRect(0,0,n/u,r/u),s){var h;s.colorStops?(h=s.__canvasGradient||a.getGradient(i,s,{x:0,y:0,width:n/u,height:r/u}),s.__canvasGradient=h):s.image&&(h=o[_e].getCanvasPattern.call(s,i)),i.save(),i.fillStyle=h||s,i.fillRect(0,0,n/u,r/u),i.restore()}if(l){var f=this.domBack;i.save(),i.globalAlpha=c,i.drawImage(f,0,0,n/u,r/u),i.restore()}}},s}),e("echarts/preprocessor/helper/compatStyle",[Me,we],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[v],a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n][v]?i.merge(t[n][v],r[n]):t[n][v]=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(we),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=0?1:-1}function e(e,i,n){for(var r,o=e.getBaseAxis(),s=e.getOtherAxis(o),l=o.onZero?0:s.scale[A]()[0],c=s.dim,u="x"===c||c===a?1:0,h=i.stackedOn,f=i.get(c,n);h&&t(h.get(c,n))===t(f);){r=h;break}var d=[];return d[u]=i.get(o.dim,n),d[1-u]=r?r.get(c,n,!0):l,e.dataToPoint(d)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[se](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[re](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var c=i(t,n),u=[],h=[],f=[],d=[],p=[],v=[],m=[],g=s[l],y=0;yM;M++){var S=i[w];if(w>=p||0>w)break;if(e(S)){if(x){w+=v;continue}break}if(w===r)t[v>0?n:"lineTo"](S[0],S[1]),u(f,S);else if(y>0){var T=w+v,C=i[T];if(x)for(;C&&e(i[T]);)T+=v,C=i[T];var A=.5,P=i[b],C=i[T];if(!C||e(C))u(d,S);else{e(C)&&!x&&(C=S),o.sub(h,C,P);var L,k;if("x"===_||"y"===_){var z="x"===_?0:1;L=Math.abs(S[z]-P[z]),k=Math.abs(S[z]-C[z])}else L=o.dist(S,P),k=o.dist(S,C);A=k/(k+L),c(d,S,h,-y*(1-A))}s(f,f,g),l(f,f,m),s(d,d,g),l(d,d,m),t.bezierCurveTo(f[0],f[1],d[0],d[1],S[0],S[1]),c(f,S,h,y*A)}else t.lineTo(S[0],S[1]);b=w,w+=v}return M}function r(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;rn[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var a=t("zrender/graphic/Path"),o=t(be),s=o.min,l=o.max,c=o.scaleAndAdd,u=o.copy,h=[],f=[],d=[];return{Polyline:a[ne]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,n){var a=n.points,o=0,s=a[ee],l=r(a,n.smoothConstraint);if(n.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,l.min,l.max,n.smooth,n.smoothMonotone,n.connectNulls)+1}}),Polygon:a[ne]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,n){var a=n.points,o=n.stackedOnPoints,s=0,l=a[ee],c=n.smoothMonotone,u=r(a,n.smoothConstraint),h=r(o,n.smoothConstraint);if(n.connectNulls){for(;l>0&&e(a[l-1]);l--);for(;l>s&&e(a[s]);s++);}for(;l>s;){var f=i(t,a,s,l,l,1,u.min,u.max,n.smooth,c,n.connectNulls);i(t,o,s+f-1,f,l,-1,h.min,h.max,n.stackedOnSmooth,c,n.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/component/helper/listComponent",[Me,"../../util/layout","../../util/format",o],function(t){function e(t,e,n){i.positionGroup(t,e.getBoxLayoutParams(),{width:n[ve](),height:n[pe]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(o);return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[ve](),height:r[pe]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[ce]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[D](),o=e.getItemStyle(["color",L]);o.fill=e.get("backgroundColor");var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[ce]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/component/tooltip/TooltipContent",[Me,we,"zrender/tool/color","zrender/core/event","../../util/format","zrender/core/env"],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(p,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[O]();return n&&e.push("color:"+n),e.push("font:"+t[E]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t[me](B),c=t.get("padding");return r&&n.push(e(r)),o&&(d[de]?n.push("background-Color:"+o):(n.push("background-Color:#"+l.toHex(o)),n.push("filter:alpha(opacity=70)"))),h(["width","color",a],function(e){var i="border-"+e,r=f(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(s)),null!=c&&n.push("padding:"+u.normalizeCssArray(c).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[S]("div"),n=e.getZr();this.el=i,this._x=e[ve]()/2,this._y=e[pe]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;c.normalizeEvent(t,e),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},o(i,t)}function o(t,e){function i(t){n(t[Q])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}c.addEventListener(e,"touchstart",i),c.addEventListener(e,"touchmove",i),c.addEventListener(e,"touchend",i)}var s=t(we),l=t("zrender/tool/color"),c=t("zrender/core/event"),u=t("../../util/format"),h=s.each,f=u.toCamelCase,d=t("zrender/core/env"),p=["","-webkit-","-moz-","-o-"],v="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[_e]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[k]&&"absolute"!==e[k]&&(i[k]="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=v+n(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/chart/pie/labelLayout",[Me,"zrender/contain/text"],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n){for(var r=e;i>r;r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r][ce])return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][ce]));n--);}function c(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[ee];l>s;s++)if(t[s][k]!==z){var c=Math.abs(t[s].y-n),u=t[s].len,h=t[s].len2,f=r+u>c?Math.sqrt((r+u+h)*(r+u+h)-c*c):Math.abs(t[s].x-i);e&&f>=o&&(f=o-10),!e&&o>=f&&(f=o+10),t[s].x=i+f*a,o=f}}t.sort(function(t,e){return t.y-e.y});for(var u,h=0,f=t[ee],d=[],p=[],v=0;f>v;v++)u=t[v].y-h,0>u&&s(v,f,-u,r),h=t[v].y+t[v][ce];0>o-h&&l(f-1,h-o);for(var v=0;f>v;v++)t[v].y>=i?p.push(t[v]):d.push(t[v]);c(d,!1,e,i,n,r),c(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;cT?-1:1)*M,N=O;r=R+(0>T?-5:5),a=N,d=[[P,L],[I,O],[R,N]]}p=A?z:T>0?"left":"right"}var F=y[me](B)[E](),G=y.get("rotate")?0>T?-S+Math.PI:-S:0,V=t.getFormattedLabel(i,v)||l[x](i),H=n[D](V,F,p,"top");f=!!G,m.label={x:r,y:a,position:_,height:H[ce],len:w,len2:M,linePoints:d,textAlign:p,verticalAlign:"middle",font:F,rotation:G},A||h.push(m.label)}),!f&&t.get("avoidLabelOverlap")&&i(h,o,s,e,r,a)}}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Se=t("echarts");return Se.graphic=t("echarts/util/graphic"),Se.number=t("echarts/util/number"),Se.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("zrender/vml/vml"),Se});