text: !function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(i,r,a){for(var s,l,u,c=0,h=[];c<i.length;c++)l=i[c],o[l]&&h.push(o[l][0]),o[l]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);for(n&&n(i,r,a);h.length;)h.shift()();if(a)for(c=0;c<a.length;c++)u=e(e.s=a[c]);return u};var i={},o={3:0};e.e=function(t){function n(){s.onerror=s.onload=null,clearTimeout(l);var e=o[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),o[t]=void 0)}var i=o[t];if(0===i)return new Promise(function(t){t()});if(i)return i[2];var r=new Promise(function(e,n){i=o[t]=[e,n]});i[2]=r;var a=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.timeout=12e4,e.nc&&s.setAttribute("nonce",e.nc),s.src=e.p+"static/js/"+({1:"vendor",2:"main"}[t]||t)+"."+{0:"9f058bcf",1:"c27ae79f",2:"0fad1844"}[t]+".chunk.js";var l=setTimeout(n,12e4);return s.onerror=s.onload=n,a.appendChild(s),r},e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e.oe=function(t){throw console.error(t),t},e(e.s=2255)}([function(t,e,n){"use strict";t.exports=n(170)},function(t,e,n){t.exports=n(1854)()},function(t,e){function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=N.call(t);if("[object Array]"===i){e=[];for(var o=0,r=t.length;o<r;o++)e[o]=n(t[o])}else if(R[i])e=t.constructor.from(t);else if(!z[i]&&!P(t)&&!I(t)){e={};for(var a in t)t.hasOwnProperty(a)&&(e[a]=n(t[a]))}return e}function i(t,e,o){if(!S(e)||!S(t))return o?n(e):t;for(var r in e)if(e.hasOwnProperty(r)){var a=t[r],s=e[r];!S(s)||!S(a)||_(s)||_(a)||I(s)||I(a)||M(s)||M(a)||P(s)||P(a)?!o&&r in t||(t[r]=n(e[r],!0)):i(a,s,o)}return t}function o(t,e){for(var n=t[0],o=1,r=t.length;o<r;o++)n=i(n,t[o],e);return n}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function s(){return document.createElement("canvas")}function l(){return O||(O=Z.createCanvas().getContext("2d")),O}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function c(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var o in i)t.prototype[o]=i[o];t.prototype.constructor=t,t.superClass=e}function h(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,a(t,e,n)}function d(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function p(t,e,n){if(t&&e)if(t.forEach&&t.forEach===B)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){if(t&&e){if(t.map&&t.map===H)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===W)return t.reduce(e,n,i);for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function m(t,e,n){if(t&&e){if(t.filter&&t.filter===G)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}}function v(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]}function y(t,e){var n=F.call(arguments,2);return function(){return t.apply(e,n.concat(F.call(arguments)))}}function x(t){var e=F.call(arguments,1);return function(){return t.apply(this,e.concat(F.call(arguments)))}}function _(t){return"[object Array]"===N.call(t)}function b(t){return"function"===typeof t}function w(t){return"[object String]"===N.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function M(t){return!!z[N.call(t)]}function I(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function T(t){return t!==t}function A(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]}function D(){return Function.call.apply(F,arguments)}function C(t,e){if(!t)throw new Error(e)}function L(t){t[j]=!0}function P(t){return t[j]}function k(t){t&&p(t,function(t,e){this.set(e,t)},this)}function E(t){return new k(t)}var O,z={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},R={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},N=Object.prototype.toString,V=Array.prototype,B=V.forEach,G=V.filter,F=V.slice,H=V.map,W=V.reduce,j="__ec_primitive__";k.prototype={constructor:k,get:function(t){return this["_ec_"+t]},set:function(t,e){return this["_ec_"+t]=e,e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var n in this)this.hasOwnProperty(n)&&t(this[n],n.slice(4))},removeKey:function(t){delete this[t]}};var Z={inherits:c,mixin:h,clone:n,merge:i,mergeAll:o,extend:r,defaults:a,getContext:l,createCanvas:s,indexOf:u,slice:D,find:v,isArrayLike:d,each:p,map:f,reduce:g,filter:m,bind:y,curry:x,isArray:_,isString:w,isObject:S,isFunction:b,isBuiltInObject:M,isDom:I,eqNaN:T,retrieve:A,assert:C,setAsPrimitive:L,createHashMap:E,noop:function(){}};t.exports=Z},,,,,,,,function(t,e,n){(function(e){function i(t){return function(e,n,i){e=e&&e.toLowerCase(),V.prototype[t].call(this,e,n,i)}}function o(){V.call(this)}function r(t,e,n){function i(t,e){return t.prio-e.prio}n=n||{},"string"===typeof e&&(e=tt[e]),this.id,this.group,this._dom=t;var r=this._zr=z.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=O.throttle(R.bind(r.flush,r),17),this._theme=R.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new T,this._api=b(this),V.call(this),this._messageCenter=new o,this._initEvents(),this.resize=R.bind(this.resize,this),this._pendingActions=[],B(Q,i),B($,i),r.animation.on("frame",this._onframe,this),R.setAsPrimitive(this)}function a(t,e,n){var i,o=this._model,r=this._coordSysMgr.getCoordinateSystems();e=E.parseFinder(o,e);for(var a=0;a<r.length;a++){var s=r[a];if(s[t]&&null!=(i=s[t](o,e,n)))return i}__DEV__&&console.warn("No coordinate system that supports "+t+" found by the given finder.")}function s(t,e,n,i,o){function r(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(!i)return void G(t._componentsViews.concat(t._chartsViews),r);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};o&&(l.subType=o),a&&a.eachComponent(l,function(e,n){r(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function l(t,e){var n=t.type,i=t.escapeConnect,o=Y[n],r=o.actionInfo,a=(r.update||"update").split(":"),l=a.pop();a=null!=a[0]&&F(a[0]),this[H]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=R.map(t.batch,function(e){return e=R.defaults(R.extend({},e),t),e.batch=null,e}));var h,d=[],p="highlight"===n||"downplay"===n;G(u,function(t){h=o.action(t,this._model,this._api),h=h||R.extend({},t),h.type=r.event||h.type,d.push(h),p?s(this,l,t,"series"):a&&s(this,l,t,a.main,a.sub)},this),"none"===l||p||a||(this[W]?(q.prepareAndUpdate.call(this,t),this[W]=!1):q[l].call(this,t)),h=c?{type:r.event||n,escapeConnect:i,batch:d}:d[0],this[H]=!1,!e&&this._messageCenter.trigger(h.type,h)}function u(t){for(var e=this._pendingActions;e.length;){var n=e.shift();l.call(this,n,t)}}function c(t){!t&&this.trigger("updated")}function h(t,e,n){var i=this._api;G(this._componentsViews,function(o){var r=o.__model;o[t](r,e,i,n),_(r,o)},this),e.eachSeries(function(o,r){var a=this._chartsMap[o.__viewId];a[t](o,e,i,n),_(o,a),x(o,a)},this),y(this._zr,e),G(J,function(t){t(e,i)})}function d(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,o=n?this._componentsMap:this._chartsMap,r=this._zr,a=0;a<i.length;a++)i[a].__alive=!1;e[n?"eachComponent":"eachSeries"](function(t,a){if(n){if("series"===t)return}else a=t;var s="_ec_"+a.id+"_"+a.type,l=o[s];if(!l){var u=F(a.type),c=n?L.getClass(u.main,u.sub):P.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),o[s]=l,i.push(l),r.add(l.group)}a.__viewId=l.__id=s,l.__alive=!0,l.__model=a,l.group.__ecComponentInfo={mainType:a.mainType,index:a.componentIndex}},this);for(var a=0;a<i.length;){var s=i[a];s.__alive?a++:(r.remove(s.group),s.dispose(e,this._api),i.splice(a,1),delete o[s.__id],s.__id=s.group.__ecComponentInfo=null)}}function p(t,e){G($,function(n){n.func(t,e)})}function f(t){var e={};t.eachSeries(function(t){var n=t.get("stack"),i=t.getData();if(n&&"list"===i.type){var o=e[n];e.hasOwnProperty(n)&&o&&(i.stackedOn=o),e[n]=i}})}function g(t,e){var n=this._api;G(Q,function(i){i.isLayout&&i.func(t,n,e)})}function m(t,e,n){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),G(Q,function(o){(!n||!o.isLayout)&&o.func(t,i,e)})}function v(t,e){var n=this._api;G(this._componentsViews,function(i){var o=i.__model;i.render(o,t,n,e),_(o,i)},this),G(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(i,o){var r=this._chartsMap[i.__viewId];r.__alive=!0,r.render(i,t,n,e),r.group.silent=!!i.get("silent"),_(i,r),x(i,r)},this),y(this._zr,t),G(this._chartsViews,function(e){e.__alive||e.remove(t,n)},this)}function y(t,e){var n=t.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!S.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function x(t,e){var n=0;e.group.traverse(function(t){"group"===t.type||t.ignore||n++});var i=+t.get("progressive"),o=n>t.get("progressiveThreshold")&&i&&!S.node;o&&e.group.traverse(function(t){t.isGroup||(t.progressive=o?Math.floor(n++/i):-1,o&&t.stopAnimation(!0))});var r=t.get("blendMode")||null;__DEV__&&!S.canvasSupported&&r&&"source-over"!==r&&console.warn("Only canvas support blendMode"),e.group.traverse(function(t){t.isGroup||t.setStyle("blend",r)})}function _(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function b(t){var e=t._coordSysMgr;return R.extend(new I(t),{getCoordinateSystems:R.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function w(t){function e(t,e){for(var i=0;i<t.length;i++){t[i][n]=e}}var n="__connectUpdateStatus";R.each(X,function(i,o){t._messageCenter.on(o,function(i){if(it[t.group]&&0!==t[n]){if(i&&i.escapeConnect)return;var o=t.makeActionFromEvent(i),r=[];R.each(nt,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),G(r,function(t){1!==t[n]&&t.dispatchAction(o)}),e(r,2)}})})}"undefined"===typeof __DEV__&&("undefined"!==typeof window?window.__DEV__=!0:"undefined"!==typeof e&&(e.__DEV__=!0));var S=n(59),M=n(1652),I=n(1424),T=n(94),A=n(1653),D=n(58),C=n(60),L=n(395),P=n(120),k=n(12),E=n(29),O=n(157),z=n(848),R=n(2),N=n(112),V=n(146),B=n(461),G=R.each,F=D.parseClassType,H="__flagInMainProcess",W="__optionUpdated",j=/^[a-zA-Z0-9_]+$/;o.prototype.on=i("on"),o.prototype.off=i("off"),o.prototype.one=i("one"),R.mixin(o,V);var Z=r.prototype;Z._onframe=function(){if(this[W]){var t=this[W].silent;this[H]=!0,q.prepareAndUpdate.call(this),this[H]=!1,this[W]=!1,u.call(this,t),c.call(this,t)}},Z.getDom=function(){return this._dom},Z.getZr=function(){return this._zr},Z.setOption=function(t,e,n){__DEV__&&R.assert(!this[H],"`setOption` should not be called during main process.");var i;if(R.isObject(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[H]=!0,!this._model||e){var o=new A(this._api),r=this._theme;(this._model=new M(null,null,r,o)).init(null,null,r,o)}this._model.setOption(t,K),n?(this[W]={silent:i},this[H]=!1):(q.prepareAndUpdate.call(this),this._zr.flush(),this[W]=!1,this[H]=!1,u.call(this,i),c.call(this,i))},Z.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Z.getModel=function(){return this._model},Z.getOption=function(){return this._model&&this._model.getOption()},Z.getWidth=function(){return this._zr.getWidth()},Z.getHeight=function(){return this._zr.getHeight()},Z.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Z.getRenderedCanvas=function(t){if(S.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return R.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},Z.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],o=this;G(e,function(t){n.eachComponent({mainType:t},function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var r=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return G(i,function(t){t.group.ignore=!1}),r},Z.getConnectedDataURL=function(t){if(S.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(it[e]){var o=1/0,r=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;R.each(nt,function(u,c){if(u.group===e){var h=u.getRenderedCanvas(R.clone(t)),d=u.getDom().getBoundingClientRect();o=n(d.left,o),r=n(d.top,r),a=i(d.right,a),s=i(d.bottom,s),l.push({dom:h,left:d.left,top:d.top})}}),o*=u,r*=u,a*=u,s*=u;var c=a-o,h=s-r,d=R.createCanvas();d.width=c,d.height=h;var p=z.init(d);return G(l,function(t){var e=new k.Image({style:{x:t.left*u-o,y:t.top*u-r,image:t.dom}});p.add(e)}),p.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Z.convertToPixel=R.curry(a,"convertToPixel"),Z.convertFromPixel=R.curry(a,"convertFromPixel"),Z.containPixel=function(t,e){var n,i=this._model;return t=E.parseFinder(i,t),R.each(t,function(t,i){i.indexOf("Models")>=0&&R.each(t,function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n|=!!o.containPoint(e);else if("seriesModels"===i){var r=this._chartsMap[t.__viewId];r&&r.containPoint?n|=r.containPoint(e,t):__DEV__&&console.warn(i+": "+(r?"The found component do not support containPoint.":"No view mapping to the found component."))}else __DEV__&&console.warn(i+": containPoint is not supported")},this)},this),!!n},Z.getVisual=function(t,e){var n=this._model;t=E.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel;__DEV__&&(i||console.warn("There is no specified seires model"));var o=i.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?o.indexOfRawIndex(t.dataIndex):null;return null!=r?o.getItemVisual(r,e):o.getVisual(e)},Z.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Z.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var q={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,o=this._zr;if(e){e.restoreData(),i.create(this._model,this._api),p.call(this,e,n),f.call(this,e),i.update(e,n),m.call(this,e,t),v.call(this,e,t);var r=e.get("backgroundColor")||"transparent",a=o.painter;if(a.isSingleCanvas&&a.isSingleCanvas())o.configLayer(0,{clearColor:r});else{if(!S.canvasSupported){var s=N.parse(r);r=N.stringify(s,"rgb"),0===s[3]&&(r="transparent")}r.colorStops||r.image?(o.configLayer(0,{clearColor:r}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&o.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=r)}G(J,function(t){t(e,n)})}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),m.call(this,e,t),h.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),m.call(this,e,t,!0),h.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(g.call(this,e,t),h.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;d.call(this,"component",e),d.call(this,"chart",e),q.update.call(this,t)}};Z.resize=function(t){__DEV__&&R.assert(!this[H],"`resize` should not be called during main process."),this[H]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");q[e?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[H]=!1;var n=t&&t.silent;u.call(this,n),c.call(this,n)},Z.showLoading=function(t,e){if(R.isObject(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!et[t])return void(__DEV__&&console.warn("Loading effects "+t+" not exists."));var n=et[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},Z.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Z.makeActionFromEvent=function(t){var e=R.extend({},t);return e.type=X[t.type],e},Z.dispatchAction=function(t,e){if(R.isObject(e)||(e={silent:!!e}),Y[t.type]){if(this[H])return void this._pendingActions.push(t);l.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&S.browser.weChat&&this._throttledZrFlush(),u.call(this,e.silent),c.call(this,e.silent)}},Z.on=i("on"),Z.off=i("off"),Z.one=i("one");var U=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Z._initEvents=function(){G(U,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),o=e.target;if("globalout"===t)n={};else if(o&&null!=o.dataIndex){var r=o.dataModel||i.getSeriesByIndex(o.seriesIndex);n=r&&r.getDataParams(o.dataIndex,o.dataType)||{}}else o&&o.eventData&&(n=R.extend({},o.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),G(X,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Z.isDisposed=function(){return this._disposed},Z.clear=function(){this.setOption({series:[]},!0)},Z.dispose=function(){if(this._disposed)return void(__DEV__&&console.warn("Instance "+this.id+" has been disposed"));this._disposed=!0;var t=this._api,e=this._model;G(this._componentsViews,function(n){n.dispose(e,t)}),G(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete nt[this.id]},R.mixin(r,V);var Y={},X={},$=[],K=[],J=[],Q=[],tt={},et={},nt={},it={},ot=new Date-0,rt=new Date-0,at={version:"3.6.2",dependencies:{zrender:"3.5.2"}};at.init=function(t,e,n){if(__DEV__){if(z.version.replace(".","")-0<at.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+z.version+" is too old for ECharts "+at.version+". Current version need ZRender "+at.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.")}var i=at.getInstanceByDom(t);if(i)return __DEV__&&console.warn("There is a chart instance already initialized on the dom."),i;__DEV__&&(!R.isDom(t)||"CANVAS"===t.nodeName.toUpperCase()||(t.clientWidth||n&&null!=n.width)&&(t.clientHeight||n&&null!=n.height)||console.warn("Can't get dom width or height"));var o=new r(t,e,n);return o.id="ec_"+ot++,nt[o.id]=o,t.setAttribute?t.setAttribute("_echarts_instance_",o.id):t._echarts_instance_=o.id,w(o),o},at.connect=function(t){if(R.isArray(t)){var e=t;t=null,R.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+rt++,R.each(e,function(e){e.group=t})}return it[t]=!0,t},at.disConnect=function(t){it[t]=!1},at.disconnect=at.disConnect,at.dispose=function(t){"string"===typeof t?t=nt[t]:t instanceof r||(t=at.getInstanceByDom(t)),t instanceof r&&!t.isDisposed()&&t.dispose()},at.getInstanceByDom=function(t){var e;return e=t.getAttribute?t.getAttribute("_echarts_instance_"):t._echarts_instance_,nt[e]},at.getInstanceById=function(t){return nt[t]},at.registerTheme=function(t,e){tt[t]=e},at.registerPreprocessor=function(t){K.push(t)},at.registerProcessor=function(t,e){if("function"===typeof t&&(e=t,t=1e3),__DEV__&&isNaN(t))throw new Error("Unkown processor priority");$.push({prio:t,func:e})},at.registerPostUpdate=function(t){J.push(t)},at.registerAction=function(t,e,n){"function"===typeof e&&(n=e,e="");var i=R.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,R.assert(j.test(i)&&j.test(e)),Y[i]||(Y[i]={action:n,actionInfo:t}),X[e]=i},at.registerCoordinateSystem=function(t,e){T.register(t,e)},at.getCoordinateSystemDimensions=function(t){var e=T.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},at.registerLayout=function(t,e){if("function"===typeof t&&(e=t,t=1e3),__DEV__&&isNaN(t))throw new Error("Unkown layout priority");Q.push({prio:t,func:e,isLayout:!0})},at.registerVisual=function(t,e){if("function"===typeof t&&(e=t,t=3e3),__DEV__&&isNaN(t))throw new Error("Unkown visual priority");Q.push({prio:t,func:e})},at.registerLoading=function(t,e){et[t]=e},at.extendComponentModel=function(t){return D.extend(t)},at.extendComponentView=function(t){return L.extend(t)},at.extendSeriesModel=function(t){return C.extend(t)},at.extendChartView=function(t){return P.extend(t)},at.setCanvasCreator=function(t){R.createCanvas=t},at.registerVisual(2e3,n(1667)),at.registerPreprocessor(n(1660)),at.registerLoading("default",n(1651)),at.registerAction({type:"highlight",event:"highlight",update:"highlight"},R.noop),at.registerAction({type:"downplay",event:"downplay",update:"downplay"},R.noop),at.zrender=z,at.List=n(55),at.Model=n(53),at.Axis=n(119),at.graphic=n(12),at.number=n(13),at.format=n(35),at.throttle=O.throttle,at.matrix=n(91),at.vector=n(34),at.color=n(112),at.util={},G(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){at.util[t]=R[t]}),at.helper=n(1649),at.PRIORITY={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},t.exports=at}).call(e,n(49))},,function(t,e,n){"use strict";function i(t){return null!=t&&"none"!=t}function o(t){return"string"===typeof t?x.lift(t,-.1):t}function r(t){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,r=t.__hoverStl;r.fill=r.fill||(i(n)?o(n):null),r.stroke=r.stroke||(i(e)?o(e):null);var a={};for(var s in r)r.hasOwnProperty(s)&&(a[s]=t.style[s]);t.__normalStl=a,t.__hoverStlDirty=!1}}function a(t){t.__isHover||(r(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function s(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function l(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t)}):a(t)}function u(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t)}):s(t)}function c(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&r(t)}function h(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&l(this)}function d(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&u(this)}function p(){this.__isEmphasis=!0,l(this)}function f(){this.__isEmphasis=!1,u(this)}function g(t,e,n,i,o,r){if("function"===typeof o&&(r=o,o=null),i&&i.isAnimationEnabled()){var a=t?"Update":"",s=i.getShallow("animationDuration"+a),l=i.getShallow("animationEasing"+a),u=i.getShallow("animationDelay"+a);"function"===typeof u&&(u=u(o,i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null)),"function"===typeof s&&(s=s(o)),s>0?e.animateTo(n,s,u||0,l,r):(e.stopAnimation(),e.attr(n),r&&r())}else e.stopAnimation(),e.attr(n),r&&r()}var m=n(2),v=n(2243),y=n(62),x=n(112),_=n(91),b=n(34),w=n(463),S=n(54),M=Math.round,I=Math.max,T=Math.min,A={};A.Group=n(305),A.Image=n(462),A.Text=n(844),A.Circle=n(2234),A.Sector=n(2240),A.Ring=n(2239),A.Polygon=n(2236),A.Polyline=n(2237),A.Rect=n(2238),A.Line=n(2235),A.BezierCurve=n(2233),A.Arc=n(2232),A.CompoundPath=n(2227),A.LinearGradient=n(841),A.RadialGradient=n(2228),A.BoundingRect=S,A.extendShape=function(t){return y.extend(t)},A.extendPath=function(t,e){return v.extendFromString(t,e)},A.makePath=function(t,e,n,i){var o=v.createFromString(t,e),r=o.getBoundingRect();if(n){var a=r.width/r.height;if("center"===i){var s,l=n.height*a;l<=n.width?s=n.height:(l=n.width,s=l/a);var u=n.x+n.width/2,c=n.y+n.height/2;n.x=u-l/2,n.y=c-s/2,n.width=l,n.height=s}A.resizePath(o,n)}return o},A.mergePath=v.mergePath,A.resizePath=function(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}},A.subPixelOptimizeLine=function(t){var e=A.subPixelOptimize,n=t.shape,i=t.style.lineWidth;return M(2*n.x1)===M(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),M(2*n.y1)===M(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},A.subPixelOptimizeRect=function(t){var e=A.subPixelOptimize,n=t.shape,i=t.style.lineWidth,o=n.x,r=n.y,a=n.width,s=n.height;return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(o+a,i,!1)-n.x,0===a?0:1),n.height=Math.max(e(r+s,i,!1)-n.y,0===s?0:1),t},A.subPixelOptimize=function(t,e,n){var i=M(2*t);return(i+M(e))%2===0?i/2:(i+(n?1:-1))/2},A.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",d),t.on("emphasis",p).on("normal",f)},A.setText=function(t,e,n){var i=e.getShallow("position")||"inside",o=e.getShallow("offset"),r=i.indexOf("inside")>=0?"white":n,a=e.getModel("textStyle");m.extend(t,{textDistance:e.getShallow("distance")||5,textFont:a.getFont(),textPosition:i,textOffset:o,textFill:a.getTextColor()||r})},A.getFont=function(t,e){var n=e&&e.getModel("textStyle");return[t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" ")},A.updateProps=function(t,e,n,i,o){g(!0,t,e,n,i,o)},A.initProps=function(t,e,n,i,o){g(!1,t,e,n,i,o)},A.getTransform=function(t,e){for(var n=_.identity([]);t&&t!==e;)_.mul(n,t.getLocalTransform(),n),t=t.parent;return n},A.applyTransform=function(t,e,n){return e&&!m.isArrayLike(e)&&(e=w.getLocalTransform(e)),n&&(e=_.invert([],e)),b.applyTransform([],t,e)},A.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0];return r=A.applyTransform(r,e,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},A.groupTransition=function(t,e,n,i){function o(t){var e={position:b.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=m.extend({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),A.updateProps(t,i,n,t.dataIndex)}}})}},A.clipPointsByRect=function(t,e){return m.map(t,function(t){var n=t[0];n=I(n,e.x),n=T(n,e.x+e.width);var i=t[1];return i=I(i,e.y),i=T(i,e.y+e.height),[n,i]})},A.clipRectByRect=function(t,e){var n=I(t.x,e.x),i=T(t.x+t.width,e.x+e.width),o=I(t.y,e.y),r=T(t.y+t.height,e.y+e.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}},t.exports=A},function(t,e,n){function i(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function o(t){return Math.floor(Math.log(t)/Math.LN10)}var r=n(2),a={};a.linearMap=function(t,e,n,i){var o=e[1]-e[0],r=n[1]-n[0];if(0===o)return 0===r?n[0]:(n[0]+n[1])/2;if(i)if(o>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*r+n[0]},a.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"===typeof t?i(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},a.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},a.asc=function(t){return t.sort(function(t,e){return t-e}),t},a.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},a.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var o=e.indexOf(".");return o<0?0:e.length-1-o},a.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,o=Math.floor(n(t[1]-t[0])/i),r=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20},a.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var i=r.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),a=r.map(t,function(t){return(isNaN(t)?0:t)/i*o*100}),s=100*o,l=r.map(a,function(t){return Math.floor(t)}),u=r.reduce(l,function(t,e){return t+e},0),c=r.map(a,function(t,e){return t-l[e]});u<s;){for(var h=Number.NEGATIVE_INFINITY,d=null,p=0,f=c.length;p<f;++p)c[p]>h&&(h=c[p],d=p);++l[d],c[d]=0,++u}return l[e]/o},a.MAX_SAFE_INTEGER=9007199254740991,a.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},a.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4};var s=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;a.getTimezoneOffset=function(){return(new Date).getTimezoneOffset()},a.parseDate=function(t){if(t instanceof Date)return t;if("string"===typeof t){var e=s.exec(t);if(!e)return new Date(NaN);var n=a.getTimezoneOffset(),i=e[8]?"Z"===e[8].toUpperCase()?n:60*+e[8].slice(0,3)+n:0;return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0)-i,+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},a.quantity=function(t){return Math.pow(10,o(t))},a.nice=function(t,e){var n,i=o(t),r=Math.pow(10,i),a=t/r;return n=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t},a.reformIntervals=function(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,o=0;o<t.length;){for(var r=t[o].interval,a=t[o].close,s=0;s<2;s++)r[s]<=n&&(r[s]=n,a[s]=s?1:1-i),n=r[s],i=a[s];r[0]===r[1]&&a[0]*a[1]!==1?t.splice(o,1):o++}return t},a.isNumeric=function(t){return t-parseFloat(t)>=0},t.exports=a},function(t,e,n){"use strict";function i(t,e,n,i,r,a,s,l){if(o(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,r,a,s,l],h=0;u=new Error(e.replace(/%s/g,function(){return c[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(t){};t.exports=i},function(t,e,n){"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=i(t),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)r.call(n,c)&&(l[c]=n[c]);if(o){s=o(n);for(var h=0;h<s.length;h++)a.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},,,,,,,,function(t,e,n){"use strict";var i=n(78),o=i;t.exports=o},,,,,,function(t,e,n){function i(t,e){return t&&t.hasOwnProperty(e)}var o=n(35),r=n(13),a=n(53),s=n(2),l=s.each,u=s.isObject,c={};c.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},c.defaultEmphasis=function(t,e){if(t){var n=t.emphasis=t.emphasis||{},i=t.normal=t.normal||{};l(e,function(t){var e=s.retrieve(n[t],i[t]);null!=e&&(n[t]=e)})}},c.LABEL_OPTIONS=["position","offset","show","textStyle","distance","formatter"],c.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},c.isDataItemOption=function(t){return u(t)&&!(t instanceof Array)},c.converDataValue=function(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"===n&&"number"!==typeof t&&null!=t&&"-"!==t&&(t=+r.parseDate(t)),null==t||""===t?NaN:+t)},c.createDataFormatModel=function(t,e){var n=new a;return s.mixin(n,c.dataFormatMixin),n.seriesIndex=e.seriesIndex,n.name=e.name||"",n.mainType=e.mainType,n.subType=e.subType,n.getData=function(){return t},n},c.dataFormatMixin={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t,!0),s=n.getRawDataItem(t),l=n.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:a,dataIndex:r,data:s,dataType:e,value:i,color:l,marker:o.getTooltipMarker(l),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,r){e=e||"normal";var a=this.getData(n),s=a.getItemModel(t),l=this.getDataParams(t,n);null!=i&&l.value instanceof Array&&(l.value=l.value[i]);var u=s.get([r||"label",e,"formatter"]);return"function"===typeof u?(l.status=e,u(l)):"string"===typeof u?o.formatTpl(u,l):void 0},getRawValue:function(t,e){var n=this.getData(e),i=n.getRawDataItem(t);if(null!=i)return!u(i)||i instanceof Array?i:i.value},formatTooltip:s.noop},c.mappingToExists=function(t,e){e=(e||[]).slice();var n=s.map(t||[],function(t,e){return{exist:t}});return l(e,function(t,i){if(u(t)){for(var o=0;o<n.length;o++)if(!n[o].option&&null!=t.id&&n[o].exist.id===t.id+"")return n[o].option=t,void(e[i]=null);for(var o=0;o<n.length;o++){var r=n[o].exist;if(!n[o].option&&(null==r.id||null==t.id)&&null!=t.name&&!c.isIdInner(t)&&!c.isIdInner(r)&&r.name===t.name+"")return n[o].option=t,void(e[i]=null)}}}),l(e,function(t,e){if(u(t)){for(var i=0;i<n.length;i++){var o=n[i].exist;if(!n[i].option&&!c.isIdInner(o)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}}),n},c.makeIdAndName=function(t){var e=s.createHashMap();l(t,function(t,n){var i=t.exist;i&&e.set(i.id,t)}),l(t,function(t,n){var i=t.option;s.assert(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),l(t,function(t,n){var i=t.exist,o=t.option,r=t.keyInfo;if(u(o)){if(r.name=null!=o.name?o.name+"":i?i.name:"\0-",i)r.id=i.id;else if(null!=o.id)r.id=o.id+"";else{var a=0;do{r.id="\0"+r.name+"\0"+a++}while(e.get(r.id))}e.set(r.id,t)}})},c.isIdInner=function(t){return u(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")},c.compressBatches=function(t,e){function n(t,e,n){for(var i=0,o=t.length;i<o;i++)for(var r=t[i].seriesId,a=c.normalizeToArray(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}function i(t,e){var n=[];for(var o in t)if(t.hasOwnProperty(o)&&null!=t[o])if(e)n.push(+o);else{var r=i(t[o],!0);r.length&&n.push({seriesId:o,dataIndex:r})}return n}var o={},r={};return n(t||[],o),n(e||[],r,o),[i(o),i(r)]},c.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?s.isArray(e.dataIndex)?s.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?s.isArray(e.name)?s.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},c.makeGetter=function(){var t=0;return function(){var e="\0__ec_prop_getter_"+t++;return function(t){return t[e]||(t[e]={})}}}(),c.parseFinder=function(t,e,n){if(s.isString(e)){var o={};o[e+"Index"]=0,e=o}var r=n&&n.defaultMainType;!r||i(e,r+"Index")||i(e,r+"Id")||i(e,r+"Name")||(e[r+"Index"]=0);var a={};return l(e,function(i,o){var i=e[o];if("dataIndex"===o||"dataIndexInside"===o)return void(a[o]=i);var r=o.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();if(!(!l||!u||null==i||"index"===u&&"none"===i||n&&n.includeMainTypes&&s.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===i||(c[u]=i);var h=t.queryComponents(c);a[l+"Models"]=h,a[l+"Model"]=h[0]}}),a},c.dataDimToCoordDim=function(t,e){var n=t.dimensions;e=t.getDimension(e);for(var i=0;i<n.length;i++){var o=t.getDimensionInfo(n[i]);if(o.name===e)return o.coordDim}},c.coordDimToDataDim=function(t,e){var n=[];return l(t.dimensions,function(i){var o=t.getDimensionInfo(i);o.coordDim===e&&(n[o.coordDimIndex]=o.name)}),n},c.otherDimToDataDim=function(t,e){var n=[];return l(t.dimensions,function(i){var o=t.getDimensionInfo(i),r=o.otherDims,a=r[e];null!=a&&!1!==a&&(n[a]=o.name)}),n},t.exports=c},,,,,function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array,i={create:function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,e){var n=i.len(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[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,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],o=e[1];return t[0]=n[0]*i+n[2]*o+n[4],t[1]=n[1]*i+n[3]*o+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,t.exports=i},function(t,e,n){var i=n(2),o=n(13),r=n(110),a={};a.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))},a.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},a.normalizeCssArray=function(t){var e=t.length;return"number"===typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t};var s=a.encodeHTML=function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};a.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var r=e[0].$vars||[],a=0;a<r.length;a++){var c=l[a],h=u(c,0);t=t.replace(u(c),n?s(h):h)}for(var d=0;d<o;d++)for(var p=0;p<r.length;p++){var h=e[d][r[p]];t=t.replace(u(l[p],d),n?s(h):h)}return t},a.formatTplSimple=function(t,e,n){return i.each(e,function(e,i){t=t.replace("{"+i+"}",n?s(e):e)}),t},a.getTooltipMarker=function(t,e){return t?'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+a.encodeHTML(t)+";"+(e||"")+'"></span>':""};var c=function(t){return t<10?"0"+t:t};a.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=o.parseDate(e),r=n?"UTC":"",a=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),u=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),d=i["get"+r+"Seconds"]();return t=t.replace("MM",c(s)).toLowerCase().replace("yyyy",a).replace("yy",a%100).replace("dd",c(l)).replace("d",l).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(d)).replace("s",d)},a.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},a.truncateText=r.truncateText,t.exports=a},,,,,,,,function(t,e,n){"use strict";function i(t,e,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.position,p=l.getBoundingRect(),f=e.childAt(u+1),g=f&&f.getBoundingRect();if("horizontal"===t){var m=p.width+(g?-g.x+p.x:0);c=r+m,c>i||l.newline?(r=0,c=m,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);h=a+v,h>o||l.newline?(r+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=r,d[1]=a,"horizontal"===t?r=c+n:a=h+n)})}var o=n(2),r=n(54),a=n(13),s=n(35),l=a.parsePercent,u=o.each,c={},h=c.LOCATION_PARAMS=["left","right","top","bottom","width","height"],d=c.HV_NAMES=[["width","left","right"],["height","top","bottom"]];c.box=i,c.vbox=o.curry(i,"vertical"),c.hbox=o.curry(i,"horizontal"),c.getAvailableSize=function(t,e,n){var i=e.width,o=e.height,r=l(t.x,i),a=l(t.y,o),u=l(t.x2,i),c=l(t.y2,o);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=o),n=s.normalizeCssArray(n||0),{width:Math.max(u-r-n[1]-n[3],0),height:Math.max(c-a-n[0]-n[2],0)}},c.getLayoutRect=function(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,o=e.height,a=l(t.left,i),u=l(t.top,o),c=l(t.right,i),h=l(t.bottom,o),d=l(t.width,i),p=l(t.height,o),f=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-a),isNaN(p)&&(p=o-h-f-u),isNaN(d)&&isNaN(p)&&(m>i/o?d=.8*i:p=.8*o),null!=m&&(isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(a)&&(a=i-c-d-g),isNaN(u)&&(u=o-h-p-f),t.left||t.right){case"center":a=i/2-d/2-n[3];break;case"right":a=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=o/2-p/2-n[0];break;case"bottom":u=o-p-f}a=a||0,u=u||0,isNaN(d)&&(d=i-a-(c||0)),isNaN(p)&&(p=o-u-(h||0));var v=new r(a+n[3],u+n[0],d,p);return v.margin=n,v},c.positionElement=function(t,e,n,i,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();h=h.clone(),h.applyTransform(d)}e=c.getLayoutRect(o.defaults({width:h.width,height:h.height},e),n,i);var p=t.position,f=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[f,g]:[p[0]+f,p[1]+g])}},c.sizeCalculable=function(t,e){return null!=t[d[e][0]]||null!=t[d[e][1]]&&null!=t[d[e][2]]},c.mergeLayoutParam=function(t,e,n){function i(n,i){var o={},s=0,c={},h=0;if(u(n,function(e){c[e]=t[e]}),u(n,function(t){r(e,t)&&(o[t]=c[t]=e[t]),a(o,t)&&s++,a(c,t)&&h++}),l[i])return a(e,n[1])?c[n[2]]=null:a(e,n[2])&&(c[n[1]]=null),c;if(2!==h&&s){if(s>=2)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!r(o,p)&&r(t,p)){o[p]=t[p];break}}return o}return c}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function s(t,e,n){u(t,function(t){e[t]=n[t]})}!o.isObject(n)&&(n={});var l=n.ignoreSize;!o.isArray(l)&&(l=[l,l]);var c=i(d[0],0),h=i(d[1],1);s(d[0],t,c),s(d[1],t,h)},c.getLayoutParams=function(t){return c.copyLayoutParams({},t)},c.copyLayoutParams=function(t,e){return e&&t&&u(h,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t},t.exports=c},,,,,,function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},,,,function(t,e,n){function i(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function o(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"===typeof t?t[e[i]]:null));i++);return null==t&&n&&(t=n.get(e)),t}function r(t,e){var n=s.get(t,"getParent");return n?n.call(t,e):t.parentModel}var a=n(2),s=n(105),l=n(59);i.prototype={constructor:i,init:null,mergeOption:function(t){a.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:o(this.option,this.parsePath(t),!e&&r(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],o=!e&&r(this,t);return null==i&&o&&(i=o.getShallow(t)),i},getModel:function(t,e){var n,a=null==t?this.option:o(this.option,t=this.parsePath(t));return e=e||(n=r(this,t))&&n.getModel(t),new i(a,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(a.clone(this.option))},setReadOnly:function(t){s.setReadOnly(this,t)},parsePath:function(t){return"string"===typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){s.set(this,"getParent",t)},isAnimationEnabled:function(){if(!l.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s.enableClassExtend(i);var u=a.mixin;u(i,n(1658)),u(i,n(1655)),u(i,n(1659)),u(i,n(1657)),t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var o=n(34),r=n(91),a=o.applyTransform,s=Math.min,l=Math.max;i.prototype={constructor:i,union:function(t){var e=s(t.x,this.x),n=s(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this.height=l(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(o){if(o){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,a(t,t,o),a(e,e,o),a(n,n,o),a(i,i,o),this.x=s(t[0],e[0],n[0],i[0]),this.y=s(t[1],e[1],n[1],i[1]);var r=l(t[0],e[0],n[0],i[0]),u=l(t[1],e[1],n[1],i[1]);this.width=r-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,o=r.create();return r.translate(o,o,[-e.x,-e.y]),r.scale(o,o,[n,i]),r.translate(o,o,[t.x,t.y]),o},intersect:function(t){if(!t)return!1;t instanceof i||(t=i.create(t));var e=this,n=e.x,o=e.x+e.width,r=e.y,a=e.y+e.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height;return!(o<s||l<n||a<u||c<r)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},t.exports=i},function(t,e,n){(function(e){function i(t,e){p.each(m.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods}function o(t){this._array=t||[]}function r(t){return p.isArray(t)||(t=[t]),t}function a(t,e){var n=t.dimensions,o=new v(p.map(n,t.getDimensionInfo,t),t.hostModel);i(o,t);for(var r=o._storage={},a=t._storage,s=0;s<n.length;s++){var l=n[s],u=a[l];p.indexOf(e,l)>=0?r[l]=new u.constructor(a[l].length):r[l]=a[l]}return o}var s="undefined"===typeof window?e:window,l="undefined"===typeof s.Float64Array?Array:s.Float64Array,u="undefined"===typeof s.Int32Array?Array:s.Int32Array,c={float:l,int:u,ordinal:Array,number:Array,time:Array},h=n(53),d=n(205),p=n(2),f=n(29),g=p.isObject,m=["stackedOn","hasItemOption","_nameList","_idList","_rawData"];o.prototype.pure=!1,o.prototype.count=function(){return this._array.length},o.prototype.getItem=function(t){return this._array[t]};var v=function(t,e){t=t||["x","y"];for(var n={},i=[],o=0;o<t.length;o++){var r,a={};"string"===typeof t[o]?(r=t[o],a={name:r,coordDim:r,coordDimIndex:0,stackable:!1,type:"number"}):(a=t[o],r=a.name,a.type=a.type||"number",a.coordDim||(a.coordDim=r,a.coordDimIndex=0)),a.otherDims=a.otherDims||{},i.push(r),n[r]=a}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},y=v.prototype;y.type="list",y.hasItemOption=!0,y.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},y.getDimensionInfo=function(t){return p.clone(this._dimensionInfos[this.getDimension(t)])},y.initData=function(t,e,n){t=t||[];var i=p.isArray(t);if(i&&(t=new o(t)),__DEV__&&!i&&("function"!=typeof t.getItem||"function"!=typeof t.count))throw new Error("Inavlid data provider.");this._rawData=t;var r,a=this._storage={},s=this.indices=[],l=this.dimensions,u=this._dimensionInfos,h=t.count(),d=[],g={};e=e||[];for(var m=0;m<l.length;m++){var v=u[l[m]];0===v.otherDims.itemName&&(r=m);var y=c[v.type];a[l[m]]=new y(h)}var x=this;n||(x.hasItemOption=!1),n=n||function(t,e,n,i){var o=f.getDataItemValue(t);return f.isDataItemOption(t)&&(x.hasItemOption=!0),f.converDataValue(o instanceof Array?o[i]:o,u[e])};for(var m=0;m<h;m++){for(var _=t.getItem(m),b=0;b<l.length;b++){var w=l[b];a[w][m]=n(_,w,m,b)}s.push(m)}for(var m=0;m<h;m++){var _=t.getItem(m);!e[m]&&_&&(null!=_.name?e[m]=_.name:null!=r&&(e[m]=a[l[r]][m]));var S=e[m]||"",M=_&&_.id;!M&&S&&(g[S]=g[S]||0,M=S,g[S]>0&&(M+="__ec__"+g[S]),g[S]++),M&&(d[m]=M)}this._nameList=e,this._idList=d},y.count=function(){return this.indices.length},y.get=function(t,e,n){var i=this._storage,o=this.indices[e];if(null==o||!i[t])return NaN;var r=i[t][o];if(n){var a=this._dimensionInfos[t];if(a&&a.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(r>=0&&l>0||r<=0&&l<0)&&(r+=l),s=s.stackedOn}}return r},y.getValues=function(t,e,n){var i=[];p.isArray(t)||(n=e,e=t,t=this.dimensions);for(var o=0,r=t.length;o<r;o++)i.push(this.get(t[o],e,n));return i},y.hasValue=function(t){for(var e=this.dimensions,n=this._dimensionInfos,i=0,o=e.length;i<o;i++)if("ordinal"!==n[e[i]].type&&isNaN(this.get(e[i],t)))return!1;return!0},y.getDataExtent=function(t,e,n){t=this.getDimension(t);var i=this._storage[t],o=this.getDimensionInfo(t);e=o&&o.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var s=1/0,l=-1/0,u=0,c=this.count();u<c;u++)r=this.get(t,u,e),n&&!n(r,t,u)||(r<s&&(s=r),r>l&&(l=r));return this._extent[t+!!e]=[s,l]}return[1/0,-1/0]},y.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var o=0,r=this.count();o<r;o++){var a=this.get(t,o,e);isNaN(a)||(i+=a)}return i},y.indexOf=function(t,e){var n=this._storage,i=n[t],o=this.indices;if(i)for(var r=0,a=o.length;r<a;r++){var s=o[r];if(i[s]===e)return r}return-1},y.indexOfName=function(t){for(var e=this.indices,n=this._nameList,i=0,o=e.length;i<o;i++){if(n[e[i]]===t)return i}return-1},y.indexOfRawIndex=function(t){var e=this.indices,n=e[t];if(null!=n&&n===t)return t;for(var i=0,o=e.length-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;o=r-1}}return-1},y.indicesOfNearest=function(t,e,n,i){var o=this._storage,r=o[t],a=[];if(!r)return a;null==i&&(i=1/0);for(var s=Number.MAX_VALUE,l=-1,u=0,c=this.count();u<c;u++){var h=e-this.get(t,u,n),d=Math.abs(h);h<=i&&d<=s&&((d<s||h>=0&&l<0)&&(s=d,l=h,a.length=0),a.push(u))}return a},y.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},y.getRawDataItem=function(t){return this._rawData.getItem(this.getRawIndex(t))},y.getName=function(t){return this._nameList[this.indices[t]]||""},y.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},y.each=function(t,e,n,i){"function"===typeof t&&(i=n,n=e,e=t,t=[]),t=p.map(r(t),this.getDimension,this);var o=[],a=t.length,s=this.indices;i=i||this;for(var l=0;l<s.length;l++)switch(a){case 0:e.call(i,l);break;case 1:e.call(i,this.get(t[0],l,n),l);break;case 2:e.call(i,this.get(t[0],l,n),this.get(t[1],l,n),l);break;default:for(var u=0;u<a;u++)o[u]=this.get(t[u],l,n);o[u]=l,e.apply(i,o)}},y.filterSelf=function(t,e,n,i){"function"===typeof t&&(i=n,n=e,e=t,t=[]),t=p.map(r(t),this.getDimension,this);var o=[],a=[],s=t.length,l=this.indices;i=i||this;for(var u=0;u<l.length;u++){var c;if(s)if(1===s)c=e.call(i,this.get(t[0],u,n),u);else{for(var h=0;h<s;h++)a[h]=this.get(t[h],u,n);a[h]=u,c=e.apply(i,a)}else c=e.call(i,u);c&&o.push(l[u])}return this.indices=o,this._extent={},this},y.mapArray=function(t,e,n,i){"function"===typeof t&&(i=n,n=e,e=t,t=[]);var o=[];return this.each(t,function(){o.push(e&&e.apply(this,arguments))},n,i),o},y.map=function(t,e,n,i){t=p.map(r(t),this.getDimension,this);var o=a(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var n=arguments[arguments.length-1],i=e&&e.apply(this,arguments);if(null!=i){"number"===typeof i&&(u[0]=i,i=u);for(var o=0;o<i.length;o++){var r=t[o],a=l[r],c=s[n];a&&(a[c]=i[o])}}},n,i),o},y.downSample=function(t,e,n,i){for(var o=a(this,[t]),r=this._storage,s=o._storage,l=this.indices,u=o.indices=[],c=[],h=[],d=Math.floor(1/e),p=s[t],f=this.count(),g=0;g<r[t].length;g++)s[t][g]=r[t][g];for(var g=0;g<f;g+=d){d>f-g&&(d=f-g,c.length=d);for(var m=0;m<d;m++){var v=l[g+m];c[m]=p[v],h[m]=v}var y=n(c),v=h[i(c,y)||0];p[v]=y,u.push(v)}return o},y.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new h(this._rawData.getItem(t),e,e&&e.ecModel)},y.diff=function(t){var e,n=this._idList,i=t&&t._idList;return new d(t?t.indices:[],this.indices,function(t){return null!=(e=i[t])?e:"e\0\0"+t},function(t){return null!=(e=n[t])?e:"e\0\0"+t})},y.getVisual=function(t){var e=this._visual;return e&&e[t]},y.setVisual=function(t,e){if(g(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},y.setLayout=function(t,e){if(g(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},y.getLayout=function(t){return this._layout[t]},y.getItemLayout=function(t){return this._itemLayouts[t]},y.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?p.extend(this._itemLayouts[t]||{},e):e},y.clearItemLayouts=function(){this._itemLayouts.length=0},y.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],o=i&&i[e];return null!=o||n?o:this.getVisual(e)},y.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};if(this._itemVisuals[t]=i,g(e))for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o]);else i[e]=n},y.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var x=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};y.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(x,e)),this._graphicEls[t]=e},y.getItemGraphicEl=function(t){return this._graphicEls[t]},y.eachItemGraphicEl=function(t,e){p.each(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},y.cloneShallow=function(){var t=p.map(this.dimensions,this.getDimensionInfo,this),e=new v(t,this.hostModel);return e._storage=this._storage,i(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=p.extend({},this._extent)),e},y.wrapMethod=function(t,e){var n=this[t];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(p.slice(arguments)))})},y.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],y.CHANGABLE_METHODS=["filterSelf"],t.exports=v}).call(e,n(49))},,,function(t,e,n){function i(t){var e=[];return r.each(c.getClassesByMainType(t),function(t){a.apply(e,t.prototype.dependencies||[])}),r.map(e,function(t){return l.parseClassType(t).main})}var o=n(53),r=n(2),a=Array.prototype.push,s=n(394),l=n(105),u=n(43),c=o.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){o.call(this,t,e,n,i),this.uid=s.getUID("componentModel")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?u.getLayoutParams(t):{},o=e.getTheme();r.merge(t,o.get(this.mainType)),r.merge(t,this.getDefaultOption()),n&&u.mergeLayoutParam(t,i,n)},mergeOption:function(t,e){r.merge(this.option,t,!0);var n=this.layoutMode;n&&u.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){if(!l.hasOwn(this,"__defaultOption")){for(var t=[],e=this.constructor;e;){var n=e.prototype.defaultOption;n&&t.push(n),e=e.superClass}for(var i={},o=t.length-1;o>=0;o--)i=r.merge(i,t[o],!0);l.set(this,"__defaultOption",i)}return l.get(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});l.enableClassManagement(c,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(c),s.enableTopologicalTravel(c,i),r.mixin(c,n(1656)),t.exports=c},function(t,e){var n={};n="undefined"===typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:function(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),o=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),o&&(n.ie=!0,n.version=o[1]),r&&(n.edge=!0,n.version=r[1]),a&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11)}}(navigator.userAgent),t.exports=n},function(t,e,n){"use strict";var i=n(2),o=n(35),r=n(105),a=n(29),s=n(58),l=n(659),u=n(59),c=n(43),h=r.set,d=r.get,p=o.encodeHTML,f=o.addCommas,g=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,n,o){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,n);var r=this.getInitialData(t,n);__DEV__&&i.assert(r,"getInitialData returned invalid data."),h(this,"dataBeforeProcessed",r),this.restoreData()},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,o=n?c.getLayoutParams(t):{};i.merge(t,e.getTheme().get(this.subType)),i.merge(t,this.getDefaultOption()),a.defaultEmphasis(t.label,a.LABEL_OPTIONS),this.fillDataTextStyle(t.data),n&&c.mergeLayoutParam(t,o,n)},mergeOption:function(t,e){t=i.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&c.mergeLayoutParam(this.option,t,n);var o=this.getInitialData(t,e);o&&(h(this,"data",o),h(this,"dataBeforeProcessed",o.cloneShallow()))},fillDataTextStyle:function(t){if(t)for(var e=0;e<t.length;e++)t[e]&&t[e].label&&a.defaultEmphasis(t[e].label,a.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){var e=d(this,"data");return null==t?e:e.getLinkedData(t)},setData:function(t){h(this,"data",t)},getRawData:function(){return d(this,"dataBeforeProcessed")},coordDimToDataDim:function(t){return a.coordDimToDataDim(this.getData(),t)},dataDimToCoordDim:function(t){return a.dataDimToCoordDim(this.getData(),t)},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n){var r=d(this,"data"),s=this.getRawValue(t),l=i.isArray(s)?function(n){function s(t,n){var i=r.getDimensionInfo(n);if(i&&!1!==i.otherDims.tooltip){var a=i.type,s=(l?"- "+(i.tooltipName||i.name)+": ":"")+("ordinal"===a?t+"":"time"===a?e?"":o.formatTime("yyyy/MM/dd hh:mm:ss",t):f(t));s&&u.push(p(s))}}var l=i.reduce(n,function(t,e,n){var i=r.getDimensionInfo(n);return t|=i&&!1!==i.tooltip&&null!=i.tooltipName},0),u=[],c=a.otherDimToDataDim(r,"tooltip");return c.length?i.each(c,function(e){s(r.get(e,t),e)}):i.each(n,s),(l?"<br/>":"")+u.join(l?"<br/>":", ")}(s):p(f(s)),u=r.getName(t),c=r.getItemVisual(t,"color");i.isObject(c)&&c.colorStops&&(c=(c.colorStops[0]||{}).color),c=c||"transparent";var h=o.getTooltipMarker(c),g=this.name;return"\0-"===g&&(g=""),g=g?p(g)+(e?": ":"<br/>"):"",e?h+g+l:g+h+(u?p(u)+": "+l:l)},isAnimationEnabled:function(){if(u.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){h(this,"data",d(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var n=this.ecModel,i=l.getColorFromPalette.call(this,t,e);return i||(i=n.getColorFromPalette(t,e)),i},getAxisTooltipData:null,getTooltipPosition:null});i.mixin(g,a.dataFormatMixin),i.mixin(g,l),t.exports=g},,function(t,e,n){function i(t){o.call(this,t),this.path=null}var o=n(306),r=n(2),a=n(176),s=n(2224),l=n(842),u=l.prototype.getCanvasPattern,c=Math.abs,h=new a(!0);i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path||h,o=n.hasStroke(),r=n.hasFill(),a=n.fill,s=n.stroke,l=r&&!!a.colorStops,c=o&&!!s.colorStops,d=r&&!!a.image,p=o&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var f;l&&(f=f||this.getBoundingRect(),this._fillGradient=n.getGradient(t,a,f)),c&&(f=f||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,f))}l?t.fillStyle=this._fillGradient:d&&(t.fillStyle=u.call(a,t)),c?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=u.call(s,t));var g=n.lineDash,m=n.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();i.setScale(y[0],y[1]),this.__dirtyPath||g&&!v&&o?(i.beginPath(t),g&&!v&&(i.setLineDash(g),i.setLineDashOffset(m)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r&&i.fill(t),g&&v&&(t.setLineDash(g),t.lineDashOffset=m),o&&i.stroke(t),g&&v&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var r=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(r=Math.max(r,this.strokeContainThreshold||4)),s>1e-10&&(o.width+=r/s,o.height+=r/s,o.x-=r/s/2,o.y-=r/s/2)}return o}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var r=this.path.data;if(o.hasStroke()){var a=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(o.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),s.containStroke(r,a/l,t,e)))return!0}if(o.hasFill())return s.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):o.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},i.extend=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var o=this.shape;for(var r in n)!o.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(o[r]=n[r])}t.init&&t.init.call(this,e)};r.inherits(e,i);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(i,o),t.exports=i},,,,,,,,,,,,,,,function(t,e,n){var i=n(1664),o=n(267);n(1665),n(1663);var r=n(268),a=n(13),s=n(2),l=n(110),u={};u.getScaleExtent=function(t,e){var n,i,o,r=t.type,l=e.getMin(),u=e.getMax(),c=null!=l,h=null!=u,d=t.getExtent();return"ordinal"===r?n=(e.get("data")||[]).length:(i=e.get("boundaryGap"),s.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(__DEV__&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),i=[0,0]),i[0]=a.parsePercent(i[0],1),i[1]=a.parsePercent(i[1],1),o=d[1]-d[0]||Math.abs(d[0])),null==l&&(l="ordinal"===r?n?0:NaN:d[0]-i[0]*o),null==u&&(u="ordinal"===r?n?n-1:NaN:d[1]+i[1]*o),"dataMin"===l&&(l=d[0]),"dataMax"===u&&(u=d[1]),(null==l||!isFinite(l))&&(l=NaN),(null==u||!isFinite(u))&&(u=NaN),t.setBlank(s.eqNaN(l)||s.eqNaN(u)),e.getNeedCrossZero()&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!h&&(u=0)),[l,u]},u.niceScaleExtent=function(t,e){var n=u.getScaleExtent(t,e),i=null!=e.getMin(),o=null!=e.getMax(),r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase")),t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i,fixMax:o,minInterval:"interval"===t.type?e.get("minInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)},u.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i(t.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(r.getClass(e)||o).create(t)}},u.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},u.getAxisLabelInterval=function(t,e,n,i){var o,r=0,a=0,s=1;e.length>40&&(s=Math.floor(e.length/40));for(var u=0;u<t.length;u+=s){var c=t[u],h=l.getBoundingRect(e[u],n,"center","top");h[i?"x":"y"]+=c,h[i?"width":"height"]*=1.3,o?o.intersect(h)?(a++,r=Math.max(r,a)):(o.union(h),a=0):o=h.clone()}return 0===r&&s>1?s:(r+1)*s-1},u.getFormattedLabels=function(t,e){var n=t.scale,i=n.getTicksLabels(),o=n.getTicks();return"string"===typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),s.map(i,e)):"function"===typeof e?s.map(o,function(n,i){return e(u.getAxisRawValue(t,n),i)},this):i},u.getAxisRawValue=function(t,e){return"category"===t.type?t.scale.getLabel(e):e},t.exports=u},function(t,e,n){"use strict";function i(t){return function(){return t}}var o=function(){};o.thatReturns=i,o.thatReturnsFalse=i(!1),o.thatReturnsTrue=i(!0),o.thatReturnsNull=i(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},,,,,,,function(t,e,n){function i(t,e,n){function i(t,e,n){h[e]?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,m.set(e,!0))}function a(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}e=e||[],n=n||{},t=(t||[]).slice();var p=(n.dimsDef||[]).slice(),f=r.createHashMap(n.encodeDef),g=r.createHashMap(),m=r.createHashMap(),v=[],y=n.dimCount;if(null==y){var x=o(e[0]);y=Math.max(r.isArray(x)&&x.length||1,t.length,p.length),s(t,function(t){var e=t.dimsDef;e&&(y=Math.max(y,e.length))})}for(var _=0;_<y;_++){var b=l(p[_])?{name:p[_]}:p[_]||{},w=b.name,S=v[_]={otherDims:{}};null!=w&&null==g.get(w)&&(S.name=S.tooltipName=w,g.set(w,_)),null!=b.type&&(S.type=b.type)}f.each(function(t,e){t=f.set(e,c(t).slice()),s(t,function(n,o){l(n)&&(n=g.get(n)),null!=n&&n<y&&(t[o]=n,i(v[n],e,o))})});var M=0;s(t,function(t,e){var n,t,o,a;l(t)?(n=t,t={}):(n=t.name,t=r.clone(t),o=t.dimsDef,a=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null);var h=c(f.get(n));if(!h.length)for(var d=0;d<(o&&o.length||1);d++){for(;M<v.length&&null!=v[M].coordDim;)M++;M<v.length&&h.push(M++)}s(h,function(e,r){var s=v[e];i(u(s,t),n,r),null==s.name&&o&&(s.name=s.tooltipName=o[r]),a&&u(s.otherDims,a)})});for(var I=n.extraPrefix||"value",T=0;T<y;T++){var S=v[T]=v[T]||{};null==S.coordDim&&(S.coordDim=a(I,m,n.extraFromZero),S.coordDimIndex=0,S.isExtraCoord=!0),null==S.name&&(S.name=a(S.coordDim,g)),null==S.type&&d(e,T)&&(S.type="ordinal")}return v}function o(t){return r.isArray(t)?t:r.isObject(t)?t.value:t}var r=n(2),a=n(29),s=r.each,l=r.isString,u=r.defaults,c=a.normalizeToArray,h={tooltip:1,label:1,itemName:1},d=i.guessOrdinal=function(t,e){for(var n=0,i=t.length;n<i;n++){var a=o(t[n]);if(!r.isArray(a))return!1;var a=a[e];if(null!=a&&isFinite(a))return!1;if(l(a)&&"-"!==a)return!0}return!1};t.exports=i},function(t,e,n){"use strict";var i=n(12),o=n(54),r=i.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i+r),t.lineTo(n-o,i+r),t.closePath()}}),a=i.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i),t.lineTo(n,i+r),t.lineTo(n-o,i),t.closePath()}}),s=i.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u);t.arc(n,l,a,Math.PI-u,2*Math.PI+u);var p=.6*a,f=.7*a;t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),l=i.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,r=e.y,a=i/3*2;t.moveTo(o,r),t.lineTo(o+a,r+n),t.lineTo(o,r+n/4*3),t.lineTo(o-a,r+n),t.lineTo(o,r),t.closePath()}}),u={line:i.Line,rect:i.Rect,roundRect:i.Rect,square:i.Rect,circle:i.Circle,diamond:a,pin:s,arrow:l,triangle:r},c={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){var r=Math.min(n,i);o.x=t,o.y=e,o.width=r,o.height=r},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},h={};for(var d in u)u.hasOwnProperty(d)&&(h[d]=new u[d]);var p=i.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,o=h[i];"none"!==e.symbolType&&(o||(i="rect",o=h[i]),c[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,n))}}),f=function(t){if("image"!==this.type){var e=this.style,n=this.shape;n&&"line"===n.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},g={createSymbol:function(t,e,n,r,a,s){var l=0===t.indexOf("empty");l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return u=0===t.indexOf("image://")?new i.Image({style:{image:t.slice(8),x:e,y:n,width:r,height:a}}):0===t.indexOf("path://")?i.makePath(t.slice(7),{},new o(e,n,r,a)):new p({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),u.__isEmptyBrush=l,u.setColor=f,u.setColor(s),u}};t.exports=g},,,,,function(t,e){var n="undefined"===typeof Float32Array?Array:Float32Array,i={create:function(){var t=new n(6);return i.identity(t),t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=l,t},translate:function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},rotate:function(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=o*c+s*u,t[3]=-o*u+c*s,t[4]=c*r+u*l,t[5]=c*l-u*r,t},scale:function(t,e,n){var i=n[0],o=n[1];return t[0]=e[0]*i,t[1]=e[1]*o,t[2]=e[2]*i,t[3]=e[3]*o,t[4]=e[4]*i,t[5]=e[5]*o,t},invert:function(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=n*a-r*i;return l?(l=1/l,t[0]=a*l,t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*o)*l,t[5]=(r*o-n*s)*l,t):null}};t.exports=i},,,function(t,e,n){"use strict";function i(){this._coordinateSystems=[]}var o=n(2),r={};i.prototype={constructor:i,create:function(t,e){var n=[];o.each(r,function(i,o){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},update:function(t,e){o.each(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},i.register=function(t,e){r[t]=e},i.get=function(t){return r[t]},t.exports=i},,,,,,,,,,,function(t,e,n){function i(t){a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function o(t,e){var n=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function r(t,e,n){return this.superClass.prototype[e].apply(t,n)}var a=n(2),s={},l="___EC__COMPONENT__CONTAINER___";s.set=function(t,e,n){return t["\0ec_\0"+e]=n},s.get=function(t,e){return t["\0ec_\0"+e]},s.hasOwn=function(t,e){return t.hasOwnProperty("\0ec_\0"+e)};var u=s.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e};s.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){__DEV__&&a.each(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return a.extend(i.prototype,t),i.extend=this.extend,i.superCall=o,i.superApply=r,a.inherits(i,this),i.superClass=n,i}},s.enableClassManagement=function(t,e){function n(t){var e=o[t.main];return e&&e[l]||(e=o[t.main]={},e[l]=!0),e}e=e||{};var o={};if(t.registerClass=function(t,e){if(e)if(i(e),e=u(e),e.sub){if(e.sub!==l){var r=n(e);r[e.sub]=t}}else __DEV__&&o[e.main]&&console.warn(e.main+" exists."),o[e.main]=t;return t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[l]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){t=u(t);var e=[],n=o[t.main];return n&&n[l]?a.each(n,function(t,n){n!==l&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=u(t),!!o[t.main]},t.getAllClassMainTypes=function(){var t=[];return a.each(o,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=u(t);var e=o[t.main];return e&&e[l]},t.parseClassType=u,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var n=r.call(this,e);return t.registerClass(n,e.type)})}return t},s.setReadOnly=function(t,e){},t.exports=s},,,,function(t,e,n){"use strict";var i={current:null};t.exports=i},function(t,e,n){function i(t,e){var n=t+":"+e;if(l[n])return l[n];for(var i=(t+"").split("\n"),o=0,r=0,a=i.length;r<a;r++)o=Math.max(f.measureText(i[r],e).width,o);return u>c&&(u=0,l={}),u++,l[n]=o,o}function o(t,e,n,o){var r=((t||"")+"").split("\n").length,a=i(t,e),s=i("\u56fd",e),l=r*s,u=new d(0,0,a,l);switch(u.lineHeight=s,o){case"bottom":case"alphabetic":u.y-=s;break;case"middle":u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case"center":u.x-=u.width/2}return u}function r(t,e,n,i){var o=e.x,r=e.y,a=e.height,s=e.width,l=n.height,u=n.lineHeight,c=a/2-l/2+u,h="left";switch(t){case"left":o-=i,r+=c,h="right";break;case"right":o+=i+s,r+=c,h="left";break;case"top":o+=s/2,r-=i+l-u,h="center";break;case"bottom":o+=s/2,r+=a+i+u,h="center";break;case"inside":o+=s/2,r+=c,h="center";break;case"insideLeft":o+=i,r+=c,h="left";break;case"insideRight":o+=s-i,r+=c,h="right";break;case"insideTop":o+=s/2,r+=i+u,h="center";break;case"insideBottom":o+=s/2,r+=a-l-i+u,h="center";break;case"insideTopLeft":o+=i,r+=i+u,h="left";break;case"insideTopRight":o+=s-i,r+=i+u,h="right";break;case"insideBottomLeft":o+=i,r+=a-l-i+u;break;case"insideBottomRight":o+=s-i,r+=a-l-i+u,h="right"}return{x:o,y:r,textAlign:h,textBaseline:"alphabetic"}}function a(t,e,n,o,r){if(!e)return"";r=r||{},o=p(o,"...");for(var a=p(r.maxIterations,2),l=p(r.minChar,0),u=i("\u56fd",n),c=i("a",n),h=p(r.placeholder,""),d=e=Math.max(0,e-1),f=0;f<l&&d>=c;f++)d-=c;var g=i(o);g>d&&(o="",g=0),d=e-g;for(var m=(t+"").split("\n"),f=0,v=m.length;f<v;f++){var y=m[f],x=i(y,n);if(!(x<=e)){for(var _=0;;_++){if(x<=d||_>=a){y+=o;break}var b=0===_?s(y,d,c,u):x>0?Math.floor(y.length*d/x):0;y=y.substr(0,b),x=i(y,n)}""===y&&(y=h),m[f]=y}}return m.join("\n")}function s(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}var l={},u=0,c=5e3,h=n(2),d=n(54),p=h.retrieve,f={getWidth:i,getBoundingRect:o,adjustTextPositionOnRect:r,truncateText:a,measureText:function(t,e){var n=h.getContext();return n.font=e||"12px sans-serif",n.measureText(t)}};t.exports=f},function(t,e,n){"use strict";function i(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function o(t,e,n,i){return n=n||{},i||!c.canvasSupported?r(t,e,n):c.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):r(t,e,n),n}function r(t,e,n){var o=i(t);n.zrX=e.clientX-o.left,n.zrY=e.clientY-o.top}function a(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];r&&o(t,r,e,n)}else o(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function s(t,e,n){h?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function l(t,e,n){h?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var u=n(146),c=n(59),h="undefined"!==typeof window&&!!window.addEventListener,d=h?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};t.exports={clientToLocal:o,normalizeEvent:a,addEventListener:s,removeEventListener:l,stop:d,Dispatcher:u}},function(t,e,n){function i(t){return t=Math.round(t),t<0?0:t>255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function r(t){return t<0?0:t>1?1:t}function a(t){return i(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function s(t){return r(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function l(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function c(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function d(t,e){T&&h(T,e),T=I.put(t,T||e.slice())}function p(t,e){if(t){e=e||[];var n=I.get(t);if(n)return h(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in M)return h(e,M[i]),d(t,e),e;if("#"!==i.charAt(0)){var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===i.length){var l=i.substr(0,o),u=i.substr(o+1,r-(o+1)).split(","),p=1;switch(l){case"rgba":if(4!==u.length)return void c(e,0,0,0,1);p=s(u.pop());case"rgb":return 3!==u.length?void c(e,0,0,0,1):(c(e,a(u[0]),a(u[1]),a(u[2]),p),d(t,e),e);case"hsla":return 4!==u.length?void c(e,0,0,0,1):(u[3]=s(u[3]),f(u,e),d(t,e),e);case"hsl":return 3!==u.length?void c(e,0,0,0,1):(f(u,e),d(t,e),e);default:return}}c(e,0,0,0,1)}else{if(4===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=4095?(c(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(t,e),e):void c(e,0,0,0,1)}if(7===i.length){var g=parseInt(i.substr(1),16);return g>=0&&g<=16777215?(c(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(t,e),e):void c(e,0,0,0,1)}}}}function f(t,e){var n=(parseFloat(t[0])%360+360)%360/360,o=s(t[1]),r=s(t[2]),a=r<=.5?r*(o+1):r+o-r*o,u=2*r-a;return e=e||[],c(e,i(255*l(u,a,n+1/3)),i(255*l(u,a,n)),i(255*l(u,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function g(t){if(t){var e,n,i=t[0]/255,o=t[1]/255,r=t[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-o)/6+l/2)/l,d=((s-r)/6+l/2)/l;i===s?e=d-h:o===s?e=1/3+c-d:r===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function m(t,e){var n=p(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return w(n,4===n.length?"rgba":"rgb")}}function v(t,e){var n=p(t);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function y(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var o=t*(e.length-1),a=Math.floor(o),s=Math.ceil(o),l=e[a],c=e[s],h=o-a;return n[0]=i(u(l[0],c[0],h)),n[1]=i(u(l[1],c[1],h)),n[2]=i(u(l[2],c[2],h)),n[3]=r(u(l[3],c[3],h)),n}}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){var o=t*(e.length-1),a=Math.floor(o),s=Math.ceil(o),l=p(e[a]),c=p(e[s]),h=o-a,d=w([i(u(l[0],c[0],h)),i(u(l[1],c[1],h)),i(u(l[2],c[2],h)),r(u(l[3],c[3],h))],"rgba");return n?{color:d,leftIndex:a,rightIndex:s,value:o}:d}}function _(t,e,n,i){if(t=p(t))return t=g(t),null!=e&&(t[0]=o(e)),null!=n&&(t[1]=s(n)),null!=i&&(t[2]=s(i)),w(f(t),"rgba")}function b(t,e){if((t=p(t))&&null!=e)return t[3]=r(e),w(t,"rgba")}function w(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}var S=n(839),M={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]},I=new S(20),T=null;t.exports={parse:p,lift:m,toHex:v,fastMapToColor:y,mapToColor:x,modifyHSL:_,modifyAlpha:b,stringify:w}},,,,,function(t,e,n){"use strict";function i(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function o(t){var e=i(t);return null!=e&&!h.isArray(f(e))}function r(t,e,n){if(t=t||[],__DEV__&&!h.isArray(t))throw new Error("Invalid data.");var i=e.get("coordinateSystem"),r=m[i],a=p.get(i),s={encodeDef:e.get("encode"),dimsDef:e.get("dimensions")},v=r&&r(t,e,n,s),y=v&&v.dimensions;y||(y=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"],y=c(y,t,s));var x=v?v.categoryIndex:-1,_=new u(y,e),b=l(v,t),w={},S=x>=0&&o(t)?function(t,e,n,i){return d.isDataItemOption(t)&&(_.hasItemOption=!0),i===x?n:g(f(t),y[i])}:function(t,e,n,i){var o=f(t),r=g(o&&o[i],y[i]);d.isDataItemOption(t)&&(_.hasItemOption=!0);var a=v&&v.categoryAxesModels;return a&&a[e]&&"string"===typeof r&&(w[e]=w[e]||a[e].getCategories(),(r=h.indexOf(w[e],r))<0&&!isNaN(r)&&(r=+r)),r};return _.hasItemOption=!1,_.initData(t,b,S),_}function a(t){return"category"!==t&&"time"!==t}function s(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function l(t,e){var n,i=[],o=t&&t.dimensions[t.categoryIndex];if(o&&(n=t.categoryAxesModels[o.name]),n){var r=n.getCategories();if(r){var a=e.length;if(h.isArray(e[0])&&e[0].length>1){i=[];for(var s=0;s<a;s++)i[s]=r[e[s][t.categoryIndex||0]]}else i=r.slice(0)}}return i}var u=n(55),c=n(85),h=n(2),d=n(29),p=n(94),f=d.getDataItemValue,g=d.converDataValue,m={cartesian2d:function(t,e,n,i){var o=h.map(["xAxis","yAxis"],function(t){return n.queryComponents({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),r=o[0],l=o[1];if(__DEV__){if(!r)throw new Error('xAxis "'+h.retrieve(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!l)throw new Error('yAxis "'+h.retrieve(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}var u=r.get("type"),d=l.get("type"),p=[{name:"x",type:s(u),stackable:a(u)},{name:"y",type:s(d),stackable:a(d)}],f="category"===u,g="category"===d;p=c(p,t,i);var m={};return f&&(m.x=r),g&&(m.y=l),{dimensions:p,categoryIndex:f?0:g?1:-1,categoryAxesModels:m}},singleAxis:function(t,e,n,i){var o=n.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];if(__DEV__&&!o)throw new Error("singleAxis should be specified.");var r=o.get("type"),l="category"===r,u=[{name:"single",type:s(r),stackable:a(r)}];u=c(u,t,i);var h={};return l&&(h.single=o),{dimensions:u,categoryIndex:l?0:-1,categoryAxesModels:h}},polar:function(t,e,n,i){var o=n.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],r=o.findAxisModel("angleAxis"),l=o.findAxisModel("radiusAxis");if(__DEV__){if(!r)throw new Error("angleAxis option not found");if(!l)throw new Error("radiusAxis option not found")}var u=l.get("type"),h=r.get("type"),d=[{name:"radius",type:s(u),stackable:a(u)},{name:"angle",type:s(h),stackable:a(h)}],p="category"===h,f="category"===u;d=c(d,t,i);var g={};return f&&(g.radius=l),p&&(g.angle=r),{dimensions:d,categoryIndex:p?1:f?0:-1,categoryAxesModels:g}},geo:function(t,e,n,i){return{dimensions:c([{name:"lng"},{name:"lat"}],t,i)}}};t.exports=r},function(t,e,n){"use strict";var i={};t.exports={register:function(t,e){i[t]=e},get:function(t){return i[t]}}},function(t,e,n){function i(t,e){var n=t[1]-t[0],i=e,o=n/i/2;t[0]+=o,t[1]-=o}var o=n(13),r=o.linearMap,a=n(2),s=n(77),l=[0,1],u=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1,this._labelInterval};u.prototype={constructor:u,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return o.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&"ordinal"===o.type&&(n=n.slice(),i(n,o.count())),r(t,l,n,e)},coordToData:function(t,e){var n=this._extent,o=this.scale;this.onBand&&"ordinal"===o.type&&(n=n.slice(),i(n,o.count()));var a=r(t,n,l,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),n=[],i=0;i<e.length;i++)n.push(e[i][0]);return e[i-1]&&n.push(e[i-1][1]),n}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return a.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this.getExtent(),e=[],n=this.scale.count(),i=t[0],o=t[1],r=o-i,a=0;a<n;a++)e.push([r*a/n+i,r*(a+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},getLabelInterval:function(){var t=this._labelInterval;if(!t){var e=this.model,n=e.getModel("axisLabel"),i=n.get("interval");"category"!==this.type||"auto"!==i?t="auto"===i?0:i:this.isHorizontal&&(t=s.getAxisLabelInterval(a.map(this.scale.getTicks(),this.dataToCoord,this),e.getFormattedLabels(),n.getModel("textStyle").getFont(),this.isHorizontal())),this._labelInterval=t}return t}},t.exports=u},function(t,e,n){function i(){this.group=new a,this.uid=s.getUID("viewChart")}function o(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)o(t.childAt(n),e)}function r(t,e,n){var i=u.queryDataIndex(t,e);null!=i?c.each(u.normalizeToArray(i),function(e){o(t.getItemGraphicEl(e),n)}):t.eachItemGraphicEl(function(t){o(t,n)})}var a=n(305),s=n(394),l=n(105),u=n(29),c=n(2);i.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){r(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){r(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};var h=i.prototype;h.updateView=h.updateLayout=h.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},l.enableClassExtend(i,["dispose"]),l.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},,,,,,function(t,e,n){"use strict";function i(t){return t>-w&&t<w}function o(t){return t>w||t<-w}function r(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function a(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function s(t,e,n,o,r,a){var s=o+3*(e-n)-t,l=3*(n-2*e+t),u=3*(e-t),c=t-r,h=l*l-3*s*u,d=l*u-9*s*c,p=u*u-3*l*c,f=0;if(i(h)&&i(d))if(i(l))a[0]=0;else{var g=-u/l;g>=0&&g<=1&&(a[f++]=g)}else{var m=d*d-4*h*p;if(i(m)){var v=d/h,g=-l/s+v,y=-v/2;g>=0&&g<=1&&(a[f++]=g),y>=0&&y<=1&&(a[f++]=y)}else if(m>0){var x=b(m),w=h*l+1.5*s*(-d+x),S=h*l+1.5*s*(-d-x);w=w<0?-_(-w,I):_(w,I),S=S<0?-_(-S,I):_(S,I);var g=(-l-(w+S))/(3*s);g>=0&&g<=1&&(a[f++]=g)}else{var T=(2*h*l-3*s*d)/(2*b(h*h*h)),A=Math.acos(T)/3,D=b(h),C=Math.cos(A),g=(-l-2*D*C)/(3*s),y=(-l+D*(C+M*Math.sin(A)))/(3*s),L=(-l+D*(C-M*Math.sin(A)))/(3*s);g>=0&&g<=1&&(a[f++]=g),y>=0&&y<=1&&(a[f++]=y),L>=0&&L<=1&&(a[f++]=L)}}return f}function l(t,e,n,r,a){var s=6*n-12*e+6*t,l=9*e+3*r-3*t-9*n,u=3*e-3*t,c=0;if(i(l)){if(o(s)){var h=-u/s;h>=0&&h<=1&&(a[c++]=h)}}else{var d=s*s-4*l*u;if(i(d))a[0]=-s/(2*l);else if(d>0){var p=b(d),h=(-s+p)/(2*l),f=(-s-p)/(2*l);h>=0&&h<=1&&(a[c++]=h),f>=0&&f<=1&&(a[c++]=f)}}return c}function u(t,e,n,i,o,r){var a=(e-t)*o+t,s=(n-e)*o+e,l=(i-n)*o+n,u=(s-a)*o+a,c=(l-s)*o+s,h=(c-u)*o+u;r[0]=t,r[1]=a,r[2]=u,r[3]=h,r[4]=h,r[5]=c,r[6]=l,r[7]=i}function c(t,e,n,i,o,a,s,l,u,c,h){var d,p,f,g,m,v=.005,y=1/0;T[0]=u,T[1]=c;for(var _=0;_<1;_+=.05)A[0]=r(t,n,o,s,_),A[1]=r(e,i,a,l,_),(g=x(T,A))<y&&(d=_,y=g);y=1/0;for(var w=0;w<32&&!(v<S);w++)p=d-v,f=d+v,A[0]=r(t,n,o,s,p),A[1]=r(e,i,a,l,p),g=x(A,T),p>=0&&g<y?(d=p,y=g):(D[0]=r(t,n,o,s,f),D[1]=r(e,i,a,l,f),m=x(D,T),f<=1&&m<y?(d=f,y=m):v*=.5);return h&&(h[0]=r(t,n,o,s,d),h[1]=r(e,i,a,l,d)),b(y)}function h(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function d(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function p(t,e,n,r,a){var s=t-2*e+n,l=2*(e-t),u=t-r,c=0;if(i(s)){if(o(l)){var h=-u/l;h>=0&&h<=1&&(a[c++]=h)}}else{var d=l*l-4*s*u;if(i(d)){var h=-l/(2*s);h>=0&&h<=1&&(a[c++]=h)}else if(d>0){var p=b(d),h=(-l+p)/(2*s),f=(-l-p)/(2*s);h>=0&&h<=1&&(a[c++]=h),f>=0&&f<=1&&(a[c++]=f)}}return c}function f(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function g(t,e,n,i,o){var r=(e-t)*i+t,a=(n-e)*i+e,s=(a-r)*i+r;o[0]=t,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=n}function m(t,e,n,i,o,r,a,s,l){var u,c=.005,d=1/0;T[0]=a,T[1]=s;for(var p=0;p<1;p+=.05){A[0]=h(t,n,o,p),A[1]=h(e,i,r,p);var f=x(T,A);f<d&&(u=p,d=f)}d=1/0;for(var g=0;g<32&&!(c<S);g++){var m=u-c,v=u+c;A[0]=h(t,n,o,m),A[1]=h(e,i,r,m);var f=x(A,T);if(m>=0&&f<d)u=m,d=f;else{D[0]=h(t,n,o,v),D[1]=h(e,i,r,v);var y=x(D,T);v<=1&&y<d?(u=v,d=y):c*=.5}}return l&&(l[0]=h(t,n,o,u),l[1]=h(e,i,r,u)),b(d)}var v=n(34),y=v.create,x=v.distSquare,_=Math.pow,b=Math.sqrt,w=1e-8,S=1e-4,M=b(3),I=1/3,T=y(),A=y(),D=y();t.exports={cubicAt:r,cubicDerivativeAt:a,cubicRootAt:s,cubicExtrema:l,cubicSubdivide:u,cubicProjectPoint:c,quadraticAt:h,quadraticDerivativeAt:d,quadraticRootAt:p,quadraticExtremum:f,quadraticSubdivide:g,quadraticProjectPoint:m}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(259),l=i(s),u=n(1423),c=i(u),h=function(t){function e(t){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.echartsInstance=l.default,n}return a(e,t),e}(c.default);e.default=h},,,,,,,,,,,function(t,e,n){function i(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function o(t,e,n,i){var o,r,a=p(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return f(a-x/2)?(r=l?"bottom":"top",o="center"):f(a-1.5*x)?(r=l?"top":"bottom",o="center"):(r="middle",o=a<1.5*x&&a>x/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:r}}function r(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function a(t,e){var n=t.get("axisLabel.showMinLabel"),i=t.get("axisLabel.showMaxLabel"),o=e[0],r=e[1],a=e[e.length-1],l=e[e.length-2];!1===n?o.ignore=!0:null!=t.getMin()&&s(o,r)&&(n?r.ignore=!0:o.ignore=!0),!1===i?a.ignore=!0:null!=t.getMax()&&s(l,a)&&(i?l.ignore=!0:a.ignore=!0)}function s(t,e,n){var i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o){var r=m.identity([]);return m.rotate(r,r,-t.rotation),i.applyTransform(m.mul([],r,t.getLocalTransform())),o.applyTransform(m.mul([],r,e.getLocalTransform())),i.intersect(o)}}var l=n(2),u=n(35),c=n(12),h=n(53),d=n(13),p=d.remRadian,f=d.isRadianAroundZero,g=n(34),m=n(91),v=g.applyTransform,y=l.retrieve,x=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,l.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var n=new c.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};_.prototype={constructor:_,hasBuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,o=[n[0],0],r=[n[1],0];i&&(v(o,o,i),v(r,r,i)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"line",shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:l.extend({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel,e=t.axis;if(t.get("axisTick.show")&&!e.scale.isBlank())for(var n=t.getModel("axisTick"),i=this.opt,o=n.getModel("lineStyle"),r=n.get("length"),a=M(n,i.labelInterval),s=e.getTicksCoords(n.get("alignWithLabel")),u=e.scale.getTicks(),h=[],d=[],p=this._transform,f=0;f<s.length;f++)if(!S(e,f,a)){var g=s[f];h[0]=g,h[1]=0,d[0]=g,d[1]=i.tickDirection*r,p&&(v(h,h,p),v(d,d,p)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"tick_"+u[f],shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:l.defaults(o.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){var t=this.opt,e=this.axisModel,n=e.axis;if(y(t.axisLabelShow,e.get("axisLabel.show"))&&!n.scale.isBlank()){var o=e.getModel("axisLabel"),s=o.getModel("textStyle"),u=o.get("margin"),d=n.scale.getTicks(),p=e.getFormattedLabels(),f=(y(t.labelRotate,o.get("rotate"))||0)*x/180,g=w(t.rotation,f,t.labelDirection),m=e.get("data"),v=[],_=r(e),b=e.get("triggerEvent");l.each(d,function(o,r){if(!S(n,r,t.labelInterval)){var a=s;m&&m[o]&&m[o].textStyle&&(a=new h(m[o].textStyle,s,e.ecModel));var l=a.getTextColor()||e.get("axisLine.lineStyle.color"),d=n.dataToCoord(o),f=[d,t.labelOffset+t.labelDirection*u],y=n.scale.getLabel(o),x=new c.Text({anid:"label_"+o,style:{text:p[r],textAlign:a.get("align",!0)||g.textAlign,textVerticalAlign:a.get("baseline",!0)||g.textVerticalAlign,textFont:a.getFont(),fill:"function"===typeof l?l("category"===n.type?y:"value"===n.type?o+"":o,r):l},position:f,rotation:g.rotation,silent:_,z2:10});b&&(x.eventData=i(e),x.eventData.targetType="axisLabel",x.eventData.value=y),this._dumbGroup.add(x),x.updateTransform(),v.push(x),this.group.add(x),x.decomposeTransform()}},this),a(e,v)}},axisName:function(){var t=this.opt,e=this.axisModel,n=y(t.axisName,e.get("name"));if(n){var a,s=e.get("nameLocation"),h=t.nameDirection,d=e.getModel("nameTextStyle"),p=e.get("nameGap")||0,f=this.axisModel.axis.getExtent(),g=f[0]>f[1]?-1:1,m=["start"===s?f[0]-g*p:"end"===s?f[1]+g*p:(f[0]+f[1])/2,"middle"===s?t.labelOffset+h*p:0],v=e.get("nameRotate");null!=v&&(v=v*x/180);var _;"middle"===s?a=w(t.rotation,null!=v?v:t.rotation,h):(a=o(t,s,v||0,f),null!=(_=t.axisNameAvailableWidth)&&(_=Math.abs(_/Math.sin(a.rotation)),!isFinite(_)&&(_=null)));var b=d.getFont(),S=e.get("nameTruncate",!0)||{},M=S.ellipsis,I=y(t.nameTruncateMaxWidth,S.maxWidth,_),T=null!=M&&null!=I?u.truncateText(n,I,b,M,{minChar:2,placeholder:S.placeholder}):n,A=e.get("tooltip",!0),D=e.mainType,C={componentType:D,name:n,$vars:["name"]};C[D+"Index"]=e.componentIndex;var L=new c.Text({anid:"name",__fullText:n,__truncatedText:T,style:{text:T,textFont:b,fill:d.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.textVerticalAlign},position:m,rotation:a.rotation,silent:r(e),z2:1,tooltip:A&&A.show?l.extend({content:n,formatter:function(){return n},formatterParams:C},A):null});e.get("triggerEvent")&&(L.eventData=i(e),L.eventData.targetType="axisName",L.eventData.name=n),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},w=_.innerTextLayout=function(t,e,n){var i,o,r=p(e-t);return f(r)?(o=n>0?"top":"bottom",i="center"):f(r-x)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=r>0&&r<x?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:o}},S=_.ifIgnoreOnTick=function(t,e,n){var i,o=t.scale;return"ordinal"===o.type&&("function"===typeof n?(i=o.getTicks()[e],!n(i,o.getLabel(i))):e%(n+1))},M=_.getInterval=function(t,e){var n=t.get("interval");return null!=n&&"auto"!=n||(n=e),n};t.exports=_},function(t,e,n){function i(t,e,n,i,s,l){var u=a.getAxisPointerClass(t.axisPointerClass);if(u){var c=r.getAxisPointerModel(e);c?(t._axisPointer||(t._axisPointer=new u)).render(e,c,i,l):o(t,i)}}function o(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var r=n(261),a=n(10).extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,o){this.axisPointerClass&&r.fixValue(t),a.superApply(this,"render",arguments),i(this,t,e,n,o,!0)},updateAxisPointer:function(t,e,n,o,r){i(this,t,e,n,o,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),a.superApply(this,"remove",arguments)},dispose:function(t,e){o(this,e),a.superApply(this,"dispose",arguments)}}),s=[];a.registerAxisPointerClass=function(t,e){if(__DEV__&&s[t])throw new Error("axisPointer "+t+" exists");s[t]=e},a.getAxisPointerClass=function(t){return t&&s[t]},t.exports=a},function(t,e,n){function i(t){var e=t.pieceList;t.hasSpecialVisual=!1,g.each(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}function o(t){var e=t.categories,n=t.visual,i=t.categoryMap={};if(y(e,function(t,e){i[t]=e}),!g.isArray(n)){var o=[];g.isObject(n)?y(n,function(t,e){var n=i[e];o[null!=n?n:_]=t}):o[_]=n,n=p(t,o)}for(var r=e.length-1;r>=0;r--)null==n[r]&&(delete i[e[r]],e.pop())}function r(t,e){var n=t.visual,i=[];g.isObject(n)?y(n,function(t){i.push(t)}):null!=n&&i.push(n);var o={color:1,symbol:1};e||1!==i.length||o.hasOwnProperty(t.type)||(i[1]=i[0]),p(t,i)}function a(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:h([0,1])}}function s(t){var e=this.option.visual;return e[Math.round(v(t,[0,1],[0,e.length-1],!0))]||{}}function l(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function u(t){var e=this.option.visual;return e[this.option.loop&&t!==_?t%e.length:t]}function c(){return this.option.visual[0]}function h(t){return{linear:function(e){return v(e,t,this.option.visual,!0)},category:u,piecewise:function(e,n){var i=d.call(this,n);return null==i&&(i=v(e,t,this.option.visual,!0)),i},fixed:c}}function d(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=b.findPieceIndex(t,n),o=n[i];if(o&&o.visual)return o.visual[this.type]}}function p(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g.map(e,function(t){return m.parse(t)})),e}function f(t,e,n){return t?e<=n:e<n}var g=n(2),m=n(112),v=n(13).linearMap,y=g.each,x=g.isObject,_=-1,b=function(t){var e=t.mappingMethod,n=t.type,a=this.option=g.clone(t);this.type=n,this.mappingMethod=e,this._normalizeData=S[e];var s=w[n];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._doMap=s._doMap[e],"piecewise"===e?(r(a),i(a)):"category"===e?a.categories?o(a):r(a,!0):(g.assert("linear"!==e||a.dataExtent),r(a))};b.prototype={constructor:b,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return g.bind(this._normalizeData,this)}};var w=b.visualHandlers={color:{applyVisual:l("color"),getColorMapper:function(){var t=this.option;return g.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),u.call(this,t)}:function(e,n,i){var o=!!i;return!n&&(e=this._normalizeData(e)),i=m.fastMapToColor(e,t.parsedVisual,i),o?i:m.stringify(i,"rgba")},this)},_doMap:{linear:function(t){return m.stringify(m.fastMapToColor(t,this.option.parsedVisual),"rgba")},category:u,piecewise:function(t,e){var n=d.call(this,e);return null==n&&(n=m.stringify(m.fastMapToColor(t,this.option.parsedVisual),"rgba")),n},fixed:c}},colorHue:a(function(t,e){return m.modifyHSL(t,e)}),colorSaturation:a(function(t,e){return m.modifyHSL(t,null,e)}),colorLightness:a(function(t,e){return m.modifyHSL(t,null,null,e)}),colorAlpha:a(function(t,e){return m.modifyAlpha(t,e)}),opacity:{applyVisual:l("opacity"),_doMap:h([0,1])},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);if(g.isString(i))n("symbol",i);else if(x(i))for(var o in i)i.hasOwnProperty(o)&&n(o,i[o])},_doMap:{linear:s,category:u,piecewise:function(t,e){var n=d.call(this,e);return null==n&&(n=s.call(this,t)),n},fixed:c}},symbolSize:{applyVisual:l("symbolSize"),_doMap:h([0,1])}},S={linear:function(t){return v(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=b.findPieceIndex(t,e,!0);if(null!=n)return v(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?_:e},fixed:g.noop};b.listVisualTypes=function(){var t=[];return g.each(w,function(e,n){t.push(n)}),t},b.addVisualHandler=function(t,e){w[t]=e},b.isValidType=function(t){return w.hasOwnProperty(t)},b.eachVisual=function(t,e,n){g.isObject(t)?g.each(t,e,n):e.call(n,t)},b.mapVisual=function(t,e,n){var i,o=g.isArray(t)?[]:g.isObject(t)?{}:(i=!0,null);return b.eachVisual(t,function(t,r){var a=e.call(n,t,r);i?o=a:o[r]=a}),o},b.retrieveVisuals=function(t){var e,n={};return t&&y(w,function(i,o){t.hasOwnProperty(o)&&(n[o]=t[o],e=!0)}),e?n:null},b.prepareVisualTypes=function(t){if(x(t)){var e=[];y(t,function(t,n){e.push(n)}),t=e}else{if(!g.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},b.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},b.findPieceIndex=function(t,e,n){function i(e,n){var i=Math.abs(e-t);i<r&&(r=i,o=n)}for(var o,r=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(null!=l){if(l===t||"string"===typeof l&&l===t+"")return a;n&&i(l,a)}}for(var a=0,s=e.length;a<s;a++){var u=e[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(f(h[1],t,c[1]))return a}else if(c[1]===1/0){if(f(h[0],c[0],t))return a}else if(f(h[0],c[0],t)&&f(h[1],t,c[1]))return a;n&&i(c[0],a),n&&i(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:o},t.exports=b},,,,,,function(t,e){var n=Array.prototype.slice,i=function(){this._$handlers={}};i.prototype={constructor:i,one:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===e)return this;return i[t].push({h:e,one:!0,ctx:n||this}),this},on:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var o=0;o<i[t].length;o++)if(i[t][o].h===e)return this;return i[t].push({h:e,one:!1,ctx:n||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!=e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>3&&(e=n.call(e,1));for(var o=this._$handlers[t],r=o.length,a=0;a<r;){switch(i){case 1:o[a].h.call(o[a].ctx);break;case 2:o[a].h.call(o[a].ctx,e[1]);break;case 3:o[a].h.call(o[a].ctx,e[1],e[2]);break;default:o[a].h.apply(o[a].ctx,e)}o[a].one?(o.splice(a,1),r--):a++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>4&&(e=n.call(e,1,e.length-1));for(var o=e[e.length-1],r=this._$handlers[t],a=r.length,s=0;s<a;){switch(i){case 1:r[s].h.call(o);break;case 2:r[s].h.call(o,e[1]);break;case 3:r[s].h.call(o,e[1],e[2]);break;default:r[s].h.apply(o,e)}r[s].one?(r.splice(s,1),a--):s++}}return this}},t.exports=i},,,,,,,,,function(t,e,n){var i=n(2),o={retrieveTargetInfo:function(t,e){if(t&&("treemapZoomToNode"===t.type||"treemapRootToNode"===t.type)){var n=e.getData().tree.root,i=t.targetNode;if(i&&n.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=n.getNodeById(o)))return{node:i}}},getPathToRoot:function(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()},aboveViewRoot:function(t,e){var n=o.getPathToRoot(t);return i.indexOf(n,e)>=0},wrapTreePathInfo:function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}};t.exports=o},function(t,e,n){function i(t){return o.isObject(t)&&null!=t.value?t.value:t+""}var o=n(2),r=n(77);t.exports={getFormattedLabels:function(){return r.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&o.map(this.get("data"),i)},getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&!o.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&!o.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:o.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}}},function(t,e){var n={},i="\0__throttleOriginMethod",o="\0__throttleRate";n.throttle=function(t,e,n){function i(){c=(new Date).getTime(),h=null,t.apply(a,s||[])}var o,r,a,s,l,u=0,c=0,h=null;e=e||0;var d=function(){o=(new Date).getTime(),a=this,s=arguments;var t=l||e,d=l||n;l=null,r=o-(d?u:c)-t,clearTimeout(h),d?h=setTimeout(i,t):r>=0?i():h=setTimeout(i,-r),u=o};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){l=t},d},n.createOrUpdate=function(t,e,r,a){var s=t[e];if(s){var l=s[i]||s,u=s["\0__throttleType"];if(s[o]!==r||u!==a){if(null==r||!a)return t[e]=l;s=t[e]=n.throttle(l,r,"debounce"===a),s[i]=l,s["\0__throttleType"]=a,s[o]=r}return s}},n.clear=function(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])},t.exports=n},function(t,e){t.exports=function(t,e,n,i,o){i.eachRawSeriesByType(t,function(t){var o=t.getData(),r=t.get("symbol")||e,a=t.get("symbolSize");o.setVisual({legendSymbol:n||r,symbol:r,symbolSize:a}),i.isSeriesFiltered(t)||("function"===typeof a&&o.each(function(e){var n=t.getRawValue(e),i=t.getDataParams(e);o.setItemVisual(e,"symbolSize",a(n,i))}),o.each(function(t){var e=o.getItemModel(t),n=e.getShallow("symbol",!0),i=e.getShallow("symbolSize",!0);null!=n&&o.setItemVisual(t,"symbol",n),null!=i&&o.setItemVisual(t,"symbolSize",i)}))})}},,,,,,,,,,,,function(t,e,n){"use strict";var i=n(15),o=n(806),r=n(2136),a=n(2137),s=n(171),l=n(2138),u=n(2139),c=n(2140),h=n(2144),d=s.createElement,p=s.createFactory,f=s.cloneElement,g=i,m=function(t){return t},v={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:h},Component:o.Component,PureComponent:o.PureComponent,createElement:d,cloneElement:f,isValidElement:s.isValidElement,PropTypes:l,createClass:c,createFactory:p,createMixin:m,DOM:a,version:u,__spread:g};t.exports=v},function(t,e,n){"use strict";function i(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var r=n(15),a=n(109),s=(n(23),n(810),Object.prototype.hasOwnProperty),l=n(808),u={key:!0,ref:!0,__self:!0,__source:!0},c=function(t,e,n,i,o,r,a){var s={$$typeof:l,type:t,key:e,ref:n,props:a,_owner:r};return s};c.createElement=function(t,e,n){var r,l={},h=null,d=null;if(null!=e){i(e)&&(d=e.ref),o(e)&&(h=""+e.key),void 0===e.__self?null:e.__self,void 0===e.__source?null:e.__source;for(r in e)s.call(e,r)&&!u.hasOwnProperty(r)&&(l[r]=e[r])}var p=arguments.length-2;if(1===p)l.children=n;else if(p>1){for(var f=Array(p),g=0;g<p;g++)f[g]=arguments[g+2];l.children=f}if(t&&t.defaultProps){var m=t.defaultProps;for(r in m)void 0===l[r]&&(l[r]=m[r])}return c(t,h,d,0,0,a.current,l)},c.createFactory=function(t){var e=c.createElement.bind(null,t);return e.type=t,e},c.cloneAndReplaceKey=function(t,e){return c(t.type,e,t.ref,t._self,t._source,t._owner,t.props)},c.cloneElement=function(t,e,n){var l,h=r({},t.props),d=t.key,p=t.ref,f=(t._self,t._source,t._owner);if(null!=e){i(e)&&(p=e.ref,f=a.current),o(e)&&(d=""+e.key);var g;t.type&&t.type.defaultProps&&(g=t.type.defaultProps);for(l in e)s.call(e,l)&&!u.hasOwnProperty(l)&&(void 0===e[l]&&void 0!==g?h[l]=g[l]:h[l]=e[l])}var m=arguments.length-2;if(1===m)h.children=n;else if(m>1){for(var v=Array(m),y=0;y<m;y++)v[y]=arguments[y+2];h.children=v}return c(t.type,d,p,0,0,f,h)},c.isValidElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===l},t.exports=c},,,,,function(t,e,n){"use strict";var i=n(126),o=n(34),r=n(459),a=n(54),s=n(304).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],p=Math.min,f=Math.max,g=Math.cos,m=Math.sin,v=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/s/t)||0,this._uy=y(1/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,o,r){return this.addData(l.C,t,e,n,i,o,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,o,r){return this.addData(l.A,t,e,n,n,i,o-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=g(o)*n+t,this._yi=m(o)*n+t,this},arcTo:function(t,e,n,i,o){return this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!x||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,o=this._dashSum,r=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,d=v(c*c+h*h),g=l,m=u,y=a.length;for(c/=d,h/=d,r<0&&(r=o+r),r%=o,g-=r*c,m-=r*h;c>0&&g<=t||c<0&&g>=t||0==c&&(h>0&&m<=e||h<0&&m>=e);)i=this._dashIdx,n=a[i],g+=c*n,m+=h*n,this._dashIdx=(i+1)%y,c>0&&g<l||c<0&&g>l||h>0&&m<u||h<0&&m>u||s[i%2?"moveTo":"lineTo"](c>=0?p(g,t):f(g,t),h>=0?p(m,e):f(m,e));c=g-t,h=m-e,this._dashOffset=-v(c*c+h*h)},_dashedBezierTo:function(t,e,n,o,r,a){var s,l,u,c,h,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,y=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=f.length,S=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=x(m,t,n,r,s+.1)-x(m,t,n,r,s),u=x(y,e,o,a,s+.1)-x(y,e,o,a,s),_+=v(l*l+u*u);for(;b<w&&!((S+=f[b])>p);b++);for(s=(S-p)/_;s<=1;)c=x(m,t,n,r,s),h=x(y,e,o,a,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=f[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(r,a),l=r-c,u=a-h,this._dashOffset=-v(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var o=n,r=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,o,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,p=0;p<t.length;){var f=t[p++];switch(1==p&&(e=t[p],n=t[p+1],i=e,s=n),f){case l.M:i=t[p++],s=t[p++],e=i,n=s,h[0]=i,h[1]=s,d[0]=i,d[1]=s;break;case l.L:r.fromLine(e,n,t[p],t[p+1],h,d),e=t[p++],n=t[p++];break;case l.C:r.fromCubic(e,n,t[p++],t[p++],t[p++],t[p++],t[p],t[p+1],h,d),e=t[p++],n=t[p++];break;case l.Q:r.fromQuadratic(e,n,t[p++],t[p++],t[p],t[p+1],h,d),e=t[p++],n=t[p++];break;case l.A:var v=t[p++],y=t[p++],x=t[p++],_=t[p++],b=t[p++],w=t[p++]+b,S=(t[p++],1-t[p++]);1==p&&(i=g(b)*x+v,s=m(b)*_+y),r.fromArc(v,y,x,_,b,w,S,h,d),e=g(w)*x+v,n=m(w)*_+y;break;case l.R:i=e=t[p++],s=n=t[p++];var M=t[p++],I=t[p++];r.fromLine(i,s,i+M,s+I,h,d);break;case l.Z:e=i,n=s}o.min(u,u,h),o.max(c,c,d)}return 0===p&&(u[0]=u[1]=c[0]=c[1]=0),new a(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(t){for(var e,n,i,o,r,a,s=this.data,u=this._ux,c=this._uy,h=this._len,d=0;d<h;){var p=s[d++];switch(1==d&&(i=s[d],o=s[d+1],e=i,n=o),p){case l.M:e=i=s[d++],n=o=s[d++],t.moveTo(i,o);break;case l.L:r=s[d++],a=s[d++],(y(r-i)>u||y(a-o)>c||d===h-1)&&(t.lineTo(r,a),i=r,o=a);break;case l.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],o=s[d-1];break;case l.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],o=s[d-1];break;case l.A:var f=s[d++],v=s[d++],x=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],I=x>_?x:_,T=x>_?1:x/_,A=x>_?_/x:1,D=Math.abs(x-_)>.001,C=b+w;D?(t.translate(f,v),t.rotate(S),t.scale(T,A),t.arc(0,0,I,b,C,1-M),t.scale(1/T,1/A),t.rotate(-S),t.translate(-f,-v)):t.arc(f,v,I,b,C,1-M),1==d&&(e=g(b)*x+f,n=m(b)*_+v),i=g(C)*x+f,o=m(C)*_+v;break;case l.R:e=i=s[d],n=o=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:t.closePath(),i=e,o=n}}}},_.CMD=l,t.exports=_},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){function i(t){this.group=new r.Group,this._symbolCtor=t||a}function o(t,e,n){var i=t.getItemLayout(e);return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(n&&n(e))&&"none"!==t.getItemVisual(e,"symbol")}var r=n(12),a=n(380),s=i.prototype;s.updateData=function(t,e){var n=this.group,i=t.hostModel,a=this._data,s=this._symbolCtor,l={itemStyle:i.getModel("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:i.getModel("itemStyle.emphasis").getItemStyle(),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),labelModel:i.getModel("label.normal"),hoverLabelModel:i.getModel("label.emphasis"),cursorStyle:i.get("cursor")};t.diff(a).add(function(i){var r=t.getItemLayout(i);if(o(t,i,e)){var a=new s(t,i,l);a.attr("position",r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(u,c){var h=a.getItemGraphicEl(c),d=t.getItemLayout(u);if(!o(t,u,e))return void n.remove(h);h?(h.updateData(t,u,l),r.updateProps(h,{position:d},i)):(h=new s(t,u),h.attr("position",d)),n.add(h),t.setItemGraphicEl(u,h)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},s.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},s.remove=function(t){var e=this.group,n=this._data;n&&(t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},t.exports=i},function(t,e,n){var i=n(10),o=n(261),r=n(1534),a=n(2);n(1530),n(1531),n(629),i.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!a.isArray(e)&&(t.axisPointer.link=[e])}}),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=o.collect(t,e)}),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},r)},function(t,e,n){function i(t){var e={};return h(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function o(t,e){h([["start","startValue"],["end","endValue"]],function(n,i){var o=t._rangePropMode;null!=e[n[0]]?o[i]="percent":null!=e[n[1]]&&(o[i]="value")})}var r=n(2),a=n(59),s=n(10),l=n(29),u=n(382),c=n(1552),h=r.each,d=u.eachAxisDim,p=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null},init:function(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var o=i(t);this.mergeDefaultAndTheme(t,n),this.doInit(o)},mergeOption:function(t){var e=i(t);r.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;a.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),o(this,t),h([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,o){var r=this.dependentModels[e.axis][n],a=r.__dzAxisProxy||(r.__dzAxisProxy=new c(e.name,n,this,o));t[e.name+"_"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();d(function(e){var n=e.axisIndex;t[n]=l.normalizeToArray(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;d(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var o="vertical"===e?"y":"x";i[o+"Axis"].length?(n[o+"AxisIndex"]=[0],t=!1):h(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&d(function(e){if(t){var i=[],o=this.dependentModels[e.axis];if(o.length&&!i.length)for(var r=0,a=o.length;r<a;r++)"category"===o[r].get("type")&&i.push(r);n[e.axisIndex]=i,i.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&d(function(e){var i=n[e.axisIndex],o=t.get(e.axisIndex),a=t.get(e.axisId),s=t.ecModel.queryComponents({mainType:e.axis,index:o,id:a})[0];if(__DEV__&&!s)throw new Error(e.axis+' "'+r.retrieve(o,a,0)+'" not found');o=s.componentIndex,r.indexOf(i,o)<0&&i.push(o)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var n=!0;return d(function(i){var o=t.get(i.axisIndex),r=this.dependentModels[i.axis][o];r&&r.get("type")===e||(n=!1)},this),n},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return d(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;d(function(i){h(this.get(i.axisIndex),function(o){t.call(e,i,o,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var n=this.getAxisProxy(t,e);return n&&n.getAxisModel()},setRawRange:function(t,e){h(["start","end","startValue","endValue"],function(e){this.option[e]=t[e]},this),!e&&o(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var n in e)if(e.hasOwnProperty(n)&&e[n].hostedBy(this))return e[n];for(var n in e)if(e.hasOwnProperty(n)&&!e[n].hostedBy(this))return e[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});t.exports=p},function(t,e,n){var i=n(395);t.exports=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){function t(t,e,n,i){for(var o,r=0;r<n.length;r++)if(n[r].model===t){o=n[r];break}o||n.push(o={model:t,axisModels:[],coordIndex:i}),o.axisModels.push(e)}var e=this.dataZoomModel,n=this.ecModel,i={};return e.eachTargetAxis(function(e,o){var r=n.getComponent(e.axis,o);if(r){var a=r.getCoordSysModel();a&&t(a,r,i[a.mainType]||(i[a.mainType]=[]),a.componentIndex)}},this),i}})},function(t,e,n){"use strict";var i=n(12),o=n(2),r=n(10);n(389),n(1529),r.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new i.Rect({shape:t.coordinateSystem.getRect(),style:o.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})},function(t,e){function n(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function i(t,e){return Math.min(e[1],Math.max(e[0],t))}t.exports=function(t,e,o,r,a,s){e[0]=i(e[0],o),e[1]=i(e[1],o),t=t||0;var l=o[1]-o[0];null!=a&&(a=i(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r&&(a=s=Math.abs(e[1]-e[0]),r=0);var u=n(e,r);e[r]+=t;var c=a||0,h=o.slice();u.sign<0?h[0]+=c:h[1]-=c,e[r]=i(e[r],h);var d=n(e,r);null!=a&&(d.sign!==u.sign||d.span<a)&&(e[1-r]=e[r]+u.sign*a);var d=n(e,r);return null!=s&&d.span>s&&(e[1-r]=e[r]+d.sign*s),e}},function(t,e,n){"use strict";function i(t){return t}function o(t,e,n,o){this._old=t,this._new=e,this._oldKeyGetter=n||i,this._newKeyGetter=o||i}function r(t,e,n,i){for(var o=0;o<t.length;o++){var r="_ec_"+i(t[o],o),a=e[r];null==a?(n.push(r),e[r]=o):(a.length||(e[r]=a=[a]),a.push(o))}}o.prototype={constructor:o,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,i=this._oldKeyGetter,o=this._newKeyGetter,a={},s={},l=[],u=[];for(r(e,a,l,i),r(n,s,u,o),t=0;t<e.length;t++){var c=l[t],h=s[c];if(null!=h){var d=h.length;d?(1===d&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<u.length;t++){var c=u[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h.length)for(var p=0,d=h.length;p<d;p++)this._add&&this._add(h[p]);else this._add&&this._add(h)}}}},t.exports=o},function(t,e,n){var i=n(2);t.exports=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n){for(var o={},r=0;r<t.length;r++){var a=t[r][1];if(!(e&&i.indexOf(e,a)>=0||n&&i.indexOf(n,a)<0)){var s=this.getShallow(a);null!=s&&(o[t[r][0]]=s)}}return o}}},,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,i=0;i<e;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(10),n(1477),n(1425),n(1498),n(1513),n(1503),n(1486),n(1521),n(1454),n(1450),n(1446),n(1493),n(1508),n(1431),n(1436),n(1443),n(1481),n(1467),n(1497),n(1516),n(1442),n(1562),n(1563),n(1564),n(1602),n(200),n(1579),n(1560),n(644),n(645),n(1541),n(1548),n(1592),n(1550),n(1606),n(1571),n(1570),n(1569),n(1583),n(1593),n(2247)},function(t,e,n){"use strict";var i=n(55),o=n(85),r=n(1476),a=n(2),s={_baseAxisDim:null,getInitialData:function(t,e){var n,r,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),c=l.get("type");"category"===u?(t.layout="horizontal",n=s.getCategories(),r=!0):"category"===c?(t.layout="vertical",n=l.getCategories(),r=!0):t.layout=t.layout||"horizontal";var h=["x","y"],d="horizontal"===t.layout?0:1,p=this._baseAxisDim=h[d],f=h[1-d],g=t.data;r&&a.each(g,function(t,e){a.isArray(t)&&t.unshift(e)});var m=[{name:p,otherDims:{tooltip:!1},dimsDef:["base"]},{name:f,dimsDef:this.defaultValueDimensions.slice()}];m=o(m,g,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")});var v=new i(m,this);return v.initData(g,n?n.slice():null),v},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}},l={init:function(){var t=this._whiskerBoxDraw=new r(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,n){this._whiskerBoxDraw.updateData(t.getData())},remove:function(t){this._whiskerBoxDraw.remove()}};t.exports={seriesModelMixin:s,viewMixin:l}},function(t,e,n){function i(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),s=r.get("link",!0)||[],u=[];h(n.getCoordinateSystems(),function(n){function c(i,c,h){var d=h.model.getModel("axisPointer",r),p=d.get("show");if(p&&("auto"!==p||i||l(d))){null==c&&(c=d.get("triggerTooltip")),d=i?o(h,v,r,e,i,c):d;var m=d.get("snap"),y=f(h.model),x=c||m||"category"===h.type,_=t.axesInfo[y]={key:y,axis:h,coordSys:n,axisPointerModel:d,triggerTooltip:c,involveSeries:x,snap:m,useHandle:l(d),seriesModels:[]};g[y]=_,t.seriesInvolved|=x;var b=a(s,h);if(null!=b){var w=u[b]||(u[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}if(n.axisPointerEnabled){var p=f(n.model),g=t.coordSysAxesInfo[p]={};t.coordSysMap[p]=n;var m=n.model,v=m.getModel("tooltip",i);if(h(n.getAxes(),d(c,!1,null)),n.getTooltipAxes&&i&&v.get("show")){var y="axis"===v.get("trigger"),x="cross"===v.get("axisPointer.type"),_=n.getTooltipAxes(v.get("axisPointer.axis"));(y||x)&&h(_.baseAxes,d(c,!x||"cross",y)),x&&h(_.otherAxes,d(c,"cross",!1))}}})}function o(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};h(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=u.clone(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===o&&(l.show=!0,!r)){var d=s.lineStyle=a.get("crossStyle");d&&u.defaults(l.textStyle||(l.textStyle={}),d.textStyle)}return t.model.getModel("axisPointer",new c(s,n,i))}function r(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),o=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==e.get("axisPointer.show",!0)&&h(t.coordSysAxesInfo[f(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function a(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(s(r[i+"AxisId"],n.id)||s(r[i+"AxisIndex"],n.componentIndex)||s(r[i+"AxisName"],n.name))return o}}function s(t,e){return"all"===t||u.isArray(t)&&u.indexOf(t,e)>=0||t===e}function l(t){return!!t.get("handle.show")}var u=n(2),c=n(53),h=u.each,d=u.curry,p={};p.collect=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i(n,t,e),n.seriesInvolved&&r(n,t),n},p.fixValue=function(t){var e=p.getAxisInfo(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,o=n.option,r=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=l(n);null==r&&(o.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),o.value=a,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}},p.getAxisInfo=function(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[f(t)]},p.getAxisPointerModel=function(t){var e=p.getAxisInfo(t);return e&&e.axisPointerModel};var f=p.makeKey=function(t){return t.type+"||"+t.id};t.exports=p},function(t,e,n){"use strict";function i(t,e,n,i){var o=i.getWidth(),r=i.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,r)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}var o=n(2),r=n(12),a=n(110),s=n(35),l=n(91),u=n(77),c=n(138),h={};h.buildElStyle=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e},h.buildLabelElOption=function(t,e,n,o,r){var l=n.get("value"),u=h.getValueLabel(l,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n.getModel("label"),d=c.getModel("textStyle"),p=s.normalizeCssArray(c.get("padding")||0),f=d.getFont(),g=a.getBoundingRect(u,f,r.textAlign,r.textBaseline),m=r.position,v=g.width+p[1]+p[3],y=g.height+p[0]+p[2],x=r.align;"right"===x&&(m[0]-=v),"center"===x&&(m[0]-=v/2);var _=r.verticalAlign;"bottom"===_&&(m[1]-=y),"middle"===_&&(m[1]-=y/2),i(m,v,y,o);var b=c.get("backgroundColor");b&&"auto"!==b||(b=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:v,height:y,r:c.get("borderRadius")},position:m.slice(),style:{text:u,textFont:f,textFill:d.getTextColor(),textPosition:"inside",fill:b,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}},h.getValueLabel=function(t,e,n,i,r){var a=e.scale.getLabel(t,{precision:r.precision}),s=r.formatter;if(s){var l={value:u.getAxisRawValue(e,t),seriesData:[]};o.each(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=e&&e.getDataParams(i);o&&l.seriesData.push(o)}),o.isString(s)?a=s.replace("{value}",a):o.isFunction(s)&&(a=s(l))}return a},h.getTransformedPosition=function(t,e,n){var i=l.create();return l.rotate(i,i,n.rotation),l.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)},h.buildCartesianSingleLabelElOption=function(t,e,n,i,o,r){var a=c.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get("label.margin"),h.buildLabelElOption(e,i,o,r,{position:h.getTransformedPosition(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})},h.makeLineShape=function(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}},h.makeRectShape=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},h.makeSectorShape=function(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}},t.exports=h},function(t,e,n){function i(t){this.pointerChecker,this._zr=t,this._opt={};var e=d.bind,n=e(o,this),i=e(r,this),u=e(a,this),c=e(s,this),p=e(l,this);h.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,o){this.disable(),this._opt=d.defaults(d.clone(o)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",u)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",c),t.on("pinch",p))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",u),t.off("mousewheel",c),t.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function o(t){if(!t.target||!t.target.draggable){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function r(t){if(c(this,"moveOnMouseMove",t)&&this._dragging&&"pinch"!==t.gestureEvent&&!f.isTaken(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,o=this._y,r=e-i,a=n-o;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&p.stop(t.event),this.trigger("pan",r,a,i,o,e,n)}}function a(t){this._dragging=!1}function s(t){if(c(this,"zoomOnMouseWheel",t)&&0!==t.wheelDelta){var e=t.wheelDelta>0?1.1:1/1.1;u.call(this,t,e,t.offsetX,t.offsetY)}}function l(t){if(!f.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;u.call(this,t,e,t.pinchX,t.pinchY)}}function u(t,e,n,i){this.pointerChecker&&this.pointerChecker(t,n,i)&&(p.stop(t.event),this.trigger("zoom",e,n,i))}function c(t,e,n){var i=t._opt[e];return i&&(!d.isString(i)||n.event[i+"Key"])}var h=n(146),d=n(2),p=n(111),f=n(641);d.mixin(i,h),t.exports=i},function(t,e,n){var i=n(654),o=n(2),r=n(58),a=n(43),s=["value","category","time","log"];t.exports=function(t,e,n,l){o.each(s,function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,i){var s=this.layoutMode,l=s?a.getLayoutParams(e):{},u=i.getTheme();o.merge(e,u.get(r+"Axis")),o.merge(e,this.getDefaultOption()),e.type=n(t,e),s&&a.mergeLayoutParam(e,l,s)},defaultOption:o.mergeAll([{},i[r+"Axis"],l],!0)})}),r.registerSubTypeDefaulter(t+"Axis",o.curry(n,t))}},function(t,e,n){function i(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],o=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(o[0])||isNaN(o[1])?__DEV__&&console.error("Invalid boundingCoords"):this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}var r,s=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),p=t.get("aspectScale")||.75,f=s.width/s.height*p,g=!1;u&&c&&(u=[l.parsePercent(u[0],h),l.parsePercent(u[1],d)],c=l.parsePercent(c,Math.min(h,d)),isNaN(u[0])||isNaN(u[1])||isNaN(c)?__DEV__&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):g=!0);var m;if(g){var m={};f>1?(m.width=c,m.height=c/f):(m.height=c,m.width=c*f),m.y=u[1]-m.height/2,m.x=u[0]-m.width/2}else r=t.getBoxLayoutParams(),r.aspect=f,m=a.getLayoutRect(r,{width:h,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function o(t,e){s.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}var r=n(1621),a=n(43),s=n(2),l=n(13),u={};if(__DEV__)var c=function(t){console.error("Map "+t+" not exists. You can download map file on http://echarts.baidu.com/download-map.html")};var h={dimensions:r.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",function(t,a){var s=t.get("map"),l=u[s];__DEV__&&(l||c(s));var h=new r(s+a,s,l&&l.geoJson,l&&l.specialAreas,t.get("nameMap"));h.zoomLimit=t.get("scaleLimit"),n.push(h),o(h,t),t.coordinateSystem=h,h.model=t,h.resize=i,h.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var a={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}}),s.each(a,function(t,a){var l=u[a];__DEV__&&(l||c(t[0].get("map")));var h=s.map(t,function(t){return t.get("nameMap")}),d=new r(a,a,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));d.zoomLimit=s.retrieve.apply(null,s.map(t,function(t){return t.get("scaleLimit")})),n.push(d),d.resize=i,d.resize(t[0],e),s.each(t,function(t){t.coordinateSystem=d,o(d,t)})}),n},registerMap:function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),"string"===typeof e&&(e="undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),u[t]={geoJson:e,specialAreas:n}},getMap:function(t){return u[t]},getFilledRegions:function(t,e){var n=(t||[]).slice(),i=h.getMap(e),o=i&&i.geoJson;if(!o)return __DEV__&&c(e),t;for(var r=s.createHashMap(),a=o.features,l=0;l<n.length;l++)r.set(n[l].name,n[l]);for(var l=0;l<a.length;l++){var u=a[l].properties.name;r.get(u)||n.push({name:u})}return n}},d=n(10);d.registerMap=h.registerMap,d.getMap=h.getMap,d.parseGeoJSON=n(656),d.loadMap=function(){},d.registerCoordinateSystem("geo",h),t.exports=h},function(t,e){t.exports=function(t,e){var n=e.findComponents({mainType:"legend"});n&&n.length&&e.eachSeriesByType(t,function(t){var e=t.getData();e.filterSelf(function(t){for(var i=e.getName(t),o=0;o<n.length;o++)if(!n[o].isSelected(i))return!1;return!0},this)},this)}},function(t,e,n){var i=n(13),o=n(35),r=n(268),a=n(660),s=i.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(t)},getTicks:function(){return a.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),o.addCommas(t)},niceTicks:function(t,e){t=t||5;var n=this._extent,i=n[1]-n[0];if(isFinite(i)){i<0&&(i=-i,n.reverse());var o=a.intervalScaleNiceTicks(n,t,e);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval);var o=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=s(Math.ceil(e[1]/o)*o))}});l.create=function(){return new l},t.exports=l},function(t,e,n){function i(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var o=n(105),r=i.prototype;r.parse=function(t){return t},r.getSetting=function(t){return this._setting[t]},r.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},r.getExtent=function(){return this._extent.slice()},r.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},r.isBlank=function(){return this._isBlank},r.setBlank=function(t){this._isBlank=t},o.enableClassExtend(i),o.enableClassManagement(i,{registerWhenExtend:!0}),t.exports=i},function(t,e,n){function i(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}var o=n(2),r=n(140),a=o.each,s={createVisualMappings:function(t,e,n){function i(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}var s={};return a(e,function(e){var l=s[e]=i();a(t[e],function(t,i){if(r.isValidType(i)){var a={type:i,visual:t};n&&n(a,e),l[i]=new r(a),"opacity"===i&&(a=o.clone(a),a.type="colorAlpha",l.__hidden.__alphaForOpacity=new r(a))}})}),s},replaceVisualOption:function(t,e,n){var r;o.each(n,function(t){e.hasOwnProperty(t)&&i(e[t])&&(r=!0)}),r&&o.each(n,function(n){e.hasOwnProperty(n)&&i(e[n])?t[n]=o.clone(e[n]):delete t[n]})},applyVisual:function(t,e,n,i,a,s){function l(t){return n.getItemVisual(d,t)}function u(t,e){n.setItemVisual(d,t,e)}function c(t,o){d=null==s?t:o;var r=n.getRawDataItem(d);if(!r||!1!==r.visualMap)for(var c=i.call(a,t),p=e[c],f=h[c],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,u)}}var h={};o.each(t,function(t){var n=r.prepareVisualTypes(e[t]);h[t]=n});var d;null==s?n.each(c,!0):n.each([s],c,!0)}};t.exports=s},function(t,e,n){"use strict";var i={};t.exports=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){var n=1;"undefined"!==typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i={debugMode:0,devicePixelRatio:n};t.exports=i},function(t,e,n){var i=n(2),o=n(831),r=n(54),a=function(t){t=t||{},o.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={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,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,o=this._children,r=i.indexOf(o,t);return r<0?this:(o.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof a&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof a&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new r(0,0,0,0),i=t||this._children,o=[],a=0;a<i.length;a++){var s=i[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(n.copy(l),n.applyTransform(u),e=e||n.clone(),e.union(n)):(e=e||l.clone(),e.union(l))}}return e||n}},i.inherits(a,o),t.exports=a},function(t,e,n){function i(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 o=n(2),r=n(843),a=n(831),s=n(846);i.prototype={constructor:i,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(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.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}},o.inherits(i,a),o.mixin(i,s),t.exports=i},function(t,e){var n=function(t){this.colorStops=t||[]};n.prototype={constructor:n,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t.exports=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){function i(t){return"_"+t+"Type"}function o(t,e,n){var i=e.getItemVisual(n,"color"),o=e.getItemVisual(n,t),r=e.getItemVisual(n,t+"Size");if(o&&"none"!==o){p.isArray(r)||(r=[r,r]);var a=u.createSymbol(o,-r[0]/2,-r[1]/2,r[0],r[1],i);return a.name=t,a}}function r(t){var e=new h({name:"line"});return a(e.shape,t),e}function a(t,e){var n=e[0],i=e[1],o=e[2];t.x1=n[0],t.y1=n[1],t.x2=i[0],t.y2=i[1],t.percent=1,o?(t.cpx1=o[0],t.cpy1=o[1]):(t.cpx1=NaN,t.cpy1=NaN)}function s(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.childOfName("label");if(e||n||!i.ignore){for(var o=1,r=this.parent;r;)r.scale&&(o/=r.scale[0]),r=r.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),h=c.sub([],u,l);if(c.normalize(h,h),e){e.attr("position",l);var d=a.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[o*s,o*s])}if(n){n.attr("position",u);var d=a.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),n.attr("scale",[o*s,o*s])}if(!i.ignore){i.attr("position",u);var p,f,g,m=5*o;if("end"===i.__position)p=[h[0]*m+u[0],h[1]*m+u[1]],f=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var v=s/2,d=a.tangentAt(v),y=[d[1],-d[0]],x=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),p=[x[0]+y[0]*m,x[1]+y[1]*m],f="center",g="bottom";var _=-Math.atan2(d[1],d[0]);u[0]<l[0]&&(_=Math.PI+_),i.attr("rotation",_)}else p=[-h[0]*m+l[0],-h[1]*m+l[1]],f=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||f},position:p,scale:[o,o]})}}}}function l(t,e,n){d.Group.call(this),this._createLine(t,e,n)}var u=n(86),c=n(34),h=n(1475),d=n(12),p=n(2),f=n(13),g=["fromSymbol","toSymbol"],m=l.prototype;m.beforeUpdate=s,m._createLine=function(t,e,n){var a=t.hostModel,s=t.getItemLayout(e),l=r(s);l.shape.percent=0,d.initProps(l,{shape:{percent:1}},a,e),this.add(l);var u=new d.Text({name:"label"});this.add(u),p.each(g,function(n){var r=o(n,t,e);this.add(r),this[i(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},m.updateData=function(t,e,n){var r=t.hostModel,s=this.childOfName("line"),l=t.getItemLayout(e),u={shape:{}};a(u.shape,l),d.updateProps(s,u,r,e),p.each(g,function(n){var r=t.getItemVisual(e,n),a=i(n);if(this[a]!==r){this.remove(this.childOfName(n));var s=o(n,t,e);this.add(s)}this[a]=r},this),this._updateCommonStl(t,e,n)},m._updateCommonStl=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),r=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);r=u.getModel("lineStyle.normal").getLineStyle(),a=u.getModel("lineStyle.emphasis").getLineStyle(),s=u.getModel("label.normal"),l=u.getModel("label.emphasis")}var c=t.getItemVisual(e,"color"),h=p.retrieve(t.getItemVisual(e,"opacity"),r.opacity,1);o.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:c,opacity:h},r)),o.hoverStyle=a,p.each(g,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:h}))},this);var m,v,y=s.getShallow("show"),x=l.getShallow("show"),_=this.childOfName("label");if(y||x){var b=i.getRawValue(e);v=null==b?v=t.getName(e):isFinite(b)?f.round(b):b,m=c||"#000"}if(y){var w=s.getModel("textStyle");_.setStyle({text:p.retrieve(i.getFormattedLabel(e,"normal",t.dataType),v),textFont:w.getFont(),fill:w.getTextColor()||m}),_.__textAlign=w.get("align"),_.__verticalAlign=w.get("baseline"),_.__position=s.get("position")}else _.setStyle("text","");if(x){var S=l.getModel("textStyle");_.hoverStyle={text:p.retrieve(i.getFormattedLabel(e,"emphasis",t.dataType),v),textFont:S.getFont(),fill:S.getTextColor()||m}}else _.hoverStyle={text:""};_.ignore=!y&&!x,d.setHoverStyle(this)},m.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},m.setLinePoints=function(t){var e=this.childOfName("line");a(e.shape,t),e.dirty()},p.inherits(l,d.Group),t.exports=l},function(t,e,n){function i(t){return isNaN(t[0])||isNaN(t[1])}function o(t){return!i(t[0])&&!i(t[1])}function r(t){this._ctor=t||s,this.group=new a.Group}var a=n(12),s=n(378),l=r.prototype;l.updateData=function(t){var e=this._lineData,n=this.group,i=this._ctor,r=t.hostModel,a={lineStyle:r.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:r.getModel("lineStyle.emphasis").getLineStyle(),labelModel:r.getModel("label.normal"),hoverLabelModel:r.getModel("label.emphasis")};t.diff(e).add(function(e){if(o(t.getItemLayout(e))){var r=new i(t,e,a);t.setItemGraphicEl(e,r),n.add(r)}}).update(function(r,s){var l=e.getItemGraphicEl(s);if(!o(t.getItemLayout(r)))return void n.remove(l);l?l.updateData(t,r,a):l=new i(t,r,a),t.setItemGraphicEl(r,l),n.add(l)}).remove(function(t){n.remove(e.getItemGraphicEl(t))}).execute(),this._lineData=t},l.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},l.remove=function(){this.group.removeAll()},t.exports=r},function(t,e,n){function i(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]}function o(t){return[t[0]/2,t[1]/2]}function r(t,e,n){u.Group.call(this),this.updateData(t,e,n)}function a(t,e){this.parent.drift(t,e)}var s=n(2),l=n(86),u=n(12),c=n(13),h=n(627),d=r.prototype;d._createSymbol=function(t,e,n,i){this.removeAll();var r=e.hostModel,s=e.getItemVisual(n,"color"),c=l.createSymbol(t,-1,-1,2,2,s);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=a,u.initProps(c,{scale:o(i)},r,n),this._symbolType=t,this.add(c)},d.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},d.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},d.updateData=function(t,e,n){this.silent=!1;var r=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i(t,e);if(r!==this._symbolType)this._createSymbol(r,t,e,s);else{var l=this.childAt(0);l.silent=!1,u.updateProps(l,{scale:o(s)},a,e)}this._updateCommon(t,e,s,n),this._seriesModel=a};var p=["itemStyle","normal"],f=["itemStyle","emphasis"],g=["label","normal"],m=["label","emphasis"];d._updateCommon=function(t,e,n,i){var r=this.childAt(0),a=t.hostModel,l=t.getItemVisual(e,"color");"image"!==r.type&&r.useStyle({strokeNoScale:!0}),i=i||null;var d=i&&i.itemStyle,v=i&&i.hoverItemStyle,y=i&&i.symbolRotate,x=i&&i.symbolOffset,_=i&&i.labelModel,b=i&&i.hoverLabelModel,w=i&&i.hoverAnimation,S=i&&i.cursorStyle;if(!i||t.hasItemOption){var M=t.getItemModel(e);d=M.getModel(p).getItemStyle(["color"]),v=M.getModel(f).getItemStyle(),y=M.getShallow("symbolRotate"),x=M.getShallow("symbolOffset"),_=M.getModel(g),b=M.getModel(m),w=M.getShallow("hoverAnimation"),S=M.getShallow("cursor")}else v=s.extend({},v);var I=r.style;r.attr("rotation",(y||0)*Math.PI/180||0),x&&r.attr("position",[c.parsePercent(x[0],n[0]),c.parsePercent(x[1],n[1])]),S&&r.attr("cursor",S),r.setColor(l),r.setStyle(d);var T=t.getItemVisual(e,"opacity");null!=T&&(I.opacity=T);var A=h.findLabelValueDim(t);h.setTextToStyle(t,e,A,I,a,_,l),h.setTextToStyle(t,e,A,v,a,b,l),r.off("mouseover").off("mouseout").off("emphasis").off("normal"),r.hoverStyle=v,u.setHoverStyle(r);var D=o(n);if(w&&a.isAnimationEnabled()){var C=function(){var t=D[1]/D[0];this.animateTo({scale:[Math.max(1.1*D[0],D[0]+3),Math.max(1.1*D[1],D[1]+3*t)]},400,"elasticOut")},L=function(){this.animateTo({scale:D},400,"elasticOut")};r.on("mouseover",C).on("mouseout",L).on("emphasis",C).on("normal",L)}},d.fadeOut=function(t){var e=this.childAt(0);this.silent=e.silent=!0,e.style.text="",u.updateProps(e,{scale:[0,0]},this._seriesModel,this.dataIndex,t)},s.inherits(r,u.Group),t.exports=r},function(t,e,n){"use strict";function i(){}function o(t,e,n,i){r(p(n).lastProp,i)||(p(n).lastProp=i,e?d.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function r(t,e){if(c.isObject(t)&&c.isObject(e)){var n=!0;return c.each(e,function(e,i){n&=r(t[i],e)}),!!n}return t===e}function a(t,e){t[e.get("label.show")?"show":"hide"]()}function s(t){return{position:t.position.slice(),rotation:t.rotation||0}}function l(t,e){var n=t.get("icon"),i={x:-1,y:-1,width:2,height:2},o=c.extend({style:{strokeNoScale:!0},rectHover:!0,cursor:"move",draggable:!0},e);return 0===n.indexOf("image://")?(i.image=n.slice(8),o.style=i,new d.Image(o)):d.makePath(n.replace("path://",""),o,i,"center")}function u(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}var c=n(2),h=n(105),d=n(12),p=n(29).makeGetter(),f=n(261),g=n(111),m=n(157),v=c.clone,y=c.bind;i.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||"hide"===a)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var h={};this.makeElOption(h,r,t,e,n);var p=h.graphicKey;p!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=p;var f=this._moveAnimation=this.determineAnimation(t,e);if(s){var g=c.curry(o,e,f);this.updatePointerEl(s,h,g,e),this.updateLabelEl(s,h,g,e)}else s=this._group=new d.Group,this.createPointerEl(s,h,t,e),this.createLabelEl(s,h,t,e),n.getZr().add(s);u(s,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,r=e.get("snap");if(!r&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&i.getBandWidth()>a)return!0;if(r){var s=f.getAxisInfo(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},makeElOption:function(t,e,n,i,o){},createPointerEl:function(t,e,n,i){var o=e.pointer;if(o){var r=p(t).pointerEl=new d[o.type](v(e.pointer));t.add(r)}},createLabelEl:function(t,e,n,i){if(e.label){var o=p(t).labelEl=new d.Rect(v(e.label));t.add(o),a(o,i)}},updatePointerEl:function(t,e,n){var i=p(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var o=p(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{shape:e.label.shape,position:e.label.position}),a(o,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),r=e.get("status");if(!o.get("show")||!r||"hide"===r)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=l(o,{onmousemove:function(t){g.stop(t.event)},onmousedown:y(this._onHandleDragMove,this,0,0),drift:y(this._onHandleDragMove,this),ondragend:y(this._onHandleDragEnd,this)}),n.add(i)),u(i,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.setStyle(o.getItemStyle(null,s));var h=o.get("size");c.isArray(h)||(h=[h,h]),i.attr("scale",[h[0]/2,h[1]/2]),m.createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},_moveHandleToValue:function(t,e){o(this._axisPointerModel,!e&&this._moveAnimation,this._handle,s(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(s(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(s(i)),p(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},i.prototype.constructor=i,h.enableClassExtend(i),t.exports=i},function(t,e,n){var i=n(35),o=n(2),r={},a=["x","y","z","radius","angle","single"],s=["cartesian2d","polar","singleAxis"];r.isCoordSupported=function(t){return o.indexOf(s,t)>=0},r.createNameEach=function(t,e){t=t.slice();var n=o.map(t,i.capitalFirst);e=(e||[]).slice();var r=o.map(e,i.capitalFirst);return function(i,a){o.each(t,function(t,o){for(var s={name:t,capital:n[o]},l=0;l<e.length;l++)s[e[l]]=t+r[l];i.call(a,s)})}},r.eachAxisDim=r.createNameEach(a,["axisIndex","axis","index","id"]),r.createLinkedNodesFinder=function(t,e,n){function i(t,e){return o.indexOf(e.nodes,t)>=0}function r(t,i){var r=!1;return e(function(e){o.each(n(t,e)||[],function(t){i.records[e.name][t]&&(r=!0)})}),r}function a(t,i){i.nodes.push(t),e(function(e){o.each(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function o(t){!i(t,s)&&r(t,s)&&(a(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;a(n,s);var l;do{l=!1,t(o)}while(l);return s}},t.exports=r},function(t,e,n){function i(t){__DEV__&&B.assert(t),V.call(this),this._zr=t,this.group=new G.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,__DEV__&&this._mounted,this._uid="brushController_"+nt++,this._handlers={},j(it,function(t,e){this._handlers[e]=B.bind(t,this)},this)}function o(t,e){var n=t._zr;t._enableGlobalPan||F.take(n,J,t._uid),j(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=B.merge(B.clone(et),e,!0)}function r(t){var e=t._zr;F.release(e,J,t._uid),j(t._handlers,function(t,n){e.off(n,t)}),t._brushType=t._brushOption=null}function a(t,e){var n=ot[e.brushType].createCover(t,e);return n.__brushOption=e,u(n,e),t.group.add(n),n}function s(t,e){var n=h(e);return n.endCreating&&(n.endCreating(t,e),u(e,e.__brushOption)),e}function l(t,e){var n=e.__brushOption;h(e).updateCoverShape(t,e,n.range,n)}function u(t,e){var n=e.z;null==n&&(n=X),t.traverse(function(t){t.z=n,t.z2=n})}function c(t,e){h(e).updateCommon(t,e),l(t,e)}function h(t){return ot[t.__brushOption.brushType]}function d(t,e,n){var i=t._panels;if(!i)return!0;var o,r=t._transform;return j(i,function(t){t.isTargetByCursor(e,n,r)&&(o=t)}),o}function p(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function f(t){var e=t._covers,n=e.length;return j(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function g(t,e){var n=Z(t._covers,function(t){var e=t.__brushOption,n=B.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function m(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],o=n[0]-i[0],r=n[1]-i[1];return Y(o*o+r*r,.5)>$}function v(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function y(t,e,n,i){var o=new G.Group;return o.add(new G.Rect({name:"main",style:w(n),silent:!0,draggable:!0,cursor:"move",drift:W(t,e,o,"nswe"),ondragend:W(g,e,{isEnd:!0})})),j(i,function(n){o.add(new G.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:W(t,e,o,n),ondragend:W(g,e,{isEnd:!0})}))}),o}function x(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=U(o,K),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,c=n[0][1],h=n[1][1],d=c-r+o/2,p=h-r+o/2,f=c-a,g=h-s,m=f+o,v=g+o;b(t,e,"main",a,s,f,g),i.transformable&&(b(t,e,"w",l,u,r,v),b(t,e,"e",d,u,r,v),b(t,e,"n",l,u,m,r),b(t,e,"s",l,p,m,r),b(t,e,"nw",l,u,r,r),b(t,e,"ne",d,u,r,r),b(t,e,"sw",l,p,r,r),b(t,e,"se",d,p,r,r))}function _(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(w(n)),o.attr({silent:!i,cursor:i?"move":"default"}),j(["w","e","n","s","se","sw","ne","nw"],function(n){var o=e.childOfName(n),r=I(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?tt[r]+"-resize":null})})}function b(t,e,n,i,o,r,a){var s=e.childOfName(n);s&&s.setShape(L(C(t,e,[[i,o],[i+r,o+a]])))}function w(t){return B.defaults({strokeNoScale:!0},t.brushStyle)}function S(t,e,n,i){var o=[q(t,n),q(e,i)],r=[U(t,n),U(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function M(t){return G.getTransform(t.group)}function I(t,e){if(e.length>1){e=e.split("");var n=[I(t,e[0]),I(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},n=G.transformDirection(i[e],M(t));return o[n]}function T(t,e,n,i,o,r,a,s){var l=i.__brushOption,u=t(l.range),h=D(n,r,a);j(o.split(""),function(t){var e=Q[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(S(u[0][0],u[1][0],u[0][1],u[1][1])),c(n,i),g(n,{isEnd:!1})}function A(t,e,n,i,o){var r=e.__brushOption.range,a=D(t,n,i);j(r,function(t){t[0]+=a[0],t[1]+=a[1]}),c(t,e),g(t,{isEnd:!1})}function D(t,e,n){var i=t.group,o=i.transformCoordToLocal(e,n),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function C(t,e,n){var i=p(t,e);return i&&!0!==i?i.clipPath(n,t._transform):B.clone(n)}function L(t){var e=q(t[0][0],t[1][0]),n=q(t[0][1],t[1][1]);return{x:e,y:n,width:U(t[0][0],t[1][0])-e,height:U(t[0][1],t[1][1])-n}}function P(t,e,n){if(t._brushType){var i=t._zr,o=t._covers,r=d(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(!0===r||s.panelId===r.panelId)&&ot[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function k(t){var e=t.event;e.preventDefault&&e.preventDefault()}function E(t,e,n){return t.childOfName("main").contain(e,n)}function O(t,e,n,i){var o,r=t._creatingCover,u=t._creatingPanel,c=t._brushOption;if(t._track.push(n.slice()),m(t)||r){if(u&&!r){"single"===c.brushMode&&f(t);var h=B.clone(c);h.brushType=z(h.brushType,u),h.panelId=!0===u?null:u.panelId,r=t._creatingCover=a(t,h),t._covers.push(r)}if(r){var p=ot[z(t._brushType,u)];r.__brushOption.range=p.getCreatingRange(C(t,r,t._track)),i&&(s(t,r),p.updateCommon(t,r)),l(t,r),o={isEnd:i}}}else i&&"single"===c.brushMode&&c.removeOnClick&&d(t,e,n)&&f(t)&&(o={isEnd:i,removeOnClick:!0});return o}function z(t,e){return"auto"===t?(__DEV__&&B.assert(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}function R(t){if(this._dragging){k(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),n=O(this,t,e,!0);this._dragging=!1,this._track=[],this._creatingCover=null,n&&g(this,n)}}function N(t){return{createCover:function(e,n){return y(W(T,function(e){var n=[e,[0,100]];return t&&n.reverse(),n},function(e){return e[t]}),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=v(e);return[q(n[0][t],n[1][t]),U(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,o){var r,a=p(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,r];t&&l.reverse(),x(e,n,l,o)},updateCommon:_,contain:E}}var V=n(146),B=n(2),G=n(12),F=n(641),H=n(205),W=B.curry,j=B.each,Z=B.map,q=Math.min,U=Math.max,Y=Math.pow,X=1e4,$=6,K=6,J="globalPan",Q={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},tt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},et={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},nt=0;i.prototype={constructor:i,enableBrush:function(t){return __DEV__&&B.assert(this._mounted),this._brushType&&r(this),t.brushType&&o(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};B.each(t,function(t){e[t.panelId]=B.clone(t)})}else this._panels=null;return this},mount:function(t){t=t||{},__DEV__&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){j(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:r+e)+"-"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function i(e,n){var i=t[e];if(null!=n&&l[n]===d)u[e]=l[n];else{var o=u[e]=null!=n?(l[n].__brushOption=i,l[n]):s(h,a(h,i));c(h,o)}}function o(t){l[t]!==d&&h.group.remove(l[t])}__DEV__&&B.assert(this._mounted),t=B.map(t,function(t){return B.merge(B.clone(et),t,!0)});var r="\0-brush-index-",l=this._covers,u=this._covers=[],h=this,d=this._creatingCover;return new H(l,t,n,e).add(i).update(i).remove(o).execute(),this},unmount:function(){if(!__DEV__||this._mounted)return this.enableBrush(!1),f(this),this._zr.remove(this.group),__DEV__&&(this._mounted=!1),this},dispose:function(){this.unmount(),this.off()}},B.mixin(i,V);var it={mousedown:function(t){if(this._dragging)R.call(this,t);else if(!t.target||!t.target.draggable){k(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=d(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(P(this,t,e),this._dragging){k(t);var n=O(this,t,e,!1);n&&g(this,n)}},mouseup:R},ot={lineX:N(0),lineY:N(1),rect:{createCover:function(t,e){return y(W(T,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=v(t);return S(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){x(t,e,n,i)},updateCommon:_,contain:E},polygon:{createCover:function(t,e){var n=new G.Group;return n.add(new G.Polyline({name:"main",style:w(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new G.Polygon({name:"main",draggable:!0,drift:W(A,t,e),ondragend:W(g,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:C(t,e,n)})},updateCommon:_,contain:E}};t.exports=i},function(t,e){var n={},i={axisPointer:1,tooltip:1,brush:1};n.onIrrelevantElement=function(t,e,n){var o=e.getComponentByElement(t.topTarget),r=o&&o.coordinateSystem;return o&&o!==n&&!i[o.mainType]&&r&&r.model!==n},t.exports=n},function(t,e,n){var i=n(2);t.exports={updateSelectedMap:function(t){this._selectTargetMap=i.reduce(t||[],function(t,e){return t.set(e.name,e),t},i.createHashMap())},select:function(t){var e=this._selectTargetMap,n=e.get(t);"single"===this.get("selectedMode")&&e.each(function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._selectTargetMap.get(t);e&&(e.selected=!1)},toggleSelected:function(t){var e=this._selectTargetMap.get(t);if(null!=e)return this[e.selected?"unSelect":"select"](t),e.selected},isSelected:function(t){var e=this._selectTargetMap.get(t);return e&&e.selected}}},function(t,e,n){function i(t){o.defaultEmphasis(t.label,o.LABEL_OPTIONS)}var o=n(29),r=n(2),a=n(59),s=n(35),l=s.addCommas,u=s.encodeHTML,c=n(10).extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n,i){if(__DEV__&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},isAnimationEnabled:function(){if(a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,n,o){var a=this.constructor,s=this.mainType+"Model";n||e.eachSeries(function(t){var n=t.get(this.mainType),l=t[s];if(!n||!n.data)return void(t[s]=null);l?l.mergeOption(n,e,!0):(o&&i(n),r.each(n.data,function(t){t instanceof Array?(i(t[0]),i(t[1])):i(t)}),l=new a(n,this,e),r.extend(l,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),l.__hostSeries=t),t[s]=l},this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=r.isArray(n)?r.map(n,l).join(", "):l(n),o=e.getName(t),a=u(this.name);return(null!=n||o)&&(a+="<br />"),o&&(a+=u(o),null!=n&&(a+=" : ")),null!=n&&(a+=u(i)),a},getData:function(){return this._data},setData:function(t){this._data=t}});r.mixin(c,o.dataFormatMixin),t.exports=c},function(t,e,n){var i=n(2);t.exports=n(10).extendComponentView({type:"marker",init:function(){this.markerGroupMap=i.createHashMap()},render:function(t,e,n){var i=this.markerGroupMap;i.each(function(t){t.__keep=!1});var o=this.type+"Model";e.eachSeries(function(t){var i=t[o];i&&this.renderSeries(t,i,e,n)},this),i.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}})},function(t,e,n){function i(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function o(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function r(t,e,n){var i=-1;do{i=Math.max(l.getPrecision(t.get(e,n)),i),t=t.stackedOn}while(t);return i}function a(t,e,n,i,o,a){var s=[],l=m(e,i,t),u=e.indicesOfNearest(i,l,!0)[0];s[o]=e.get(n,u,!0),s[a]=e.get(i,u,!0);var c=r(e,i,u);return c>=0&&(s[a]=+s[a].toFixed(c)),s}var s=n(2),l=n(13),u=s.indexOf,c=s.curry,h={min:c(a,"min"),max:c(a,"max"),average:c(a,"average")},d=function(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!o(e)&&!s.isArray(e.coord)&&i){var r=i.dimensions,a=p(e,n,i,t);if(e=s.clone(e),e.type&&h[e.type]&&a.baseAxis&&a.valueAxis){var l=u(r,a.baseAxis.dim),c=u(r,a.valueAxis.dim);e.coord=h[e.type](n,a.baseDataDim,a.valueDataDim,l,c),e.value=e.coord[c]}else{for(var d=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],f=0;f<2;f++)if(h[d[f]]){var g=t.coordDimToDataDim(r[f])[0];d[f]=m(n,g,d[f])}e.coord=d}}return e},p=function(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(i.dataDimToCoordDim(o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=i.coordDimToDataDim(o.baseAxis.dim)[0]):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=i.coordDimToDataDim(o.baseAxis.dim)[0],o.valueDataDim=i.coordDimToDataDim(o.valueAxis.dim)[0]),o},f=function(t,e){return!(t&&t.containData&&e.coord&&!i(e))||t.containData(e.coord)},g=function(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value},m=function(t,e,n){if("average"===n){var i=0,o=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,o++)},!0),i/o}return t.getDataExtent(e,!0)["max"===n?1:0]};t.exports={dataTransform:d,dataFilter:f,dimValueGetter:g,getAxisInfo:p,numCalculate:m}},function(t,e,n){function i(t,e,n){return t.getCoordSysModel()===e}function o(t){var e,n=t.model,i=n.getFormattedLabels(),o=n.getModel("axisLabel.textStyle"),r=1,a=i.length;a>40&&(r=Math.ceil(a/40));for(var s=0;s<a;s+=r)if(!t.isLabelIgnored(s)){var l=o.getTextRect(i[s]);e?e.union(l):e=l}return e}function r(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}function a(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function s(t,e){return h.map(y,function(e){var n=t.getReferringComponents(e)[0];if(__DEV__&&!n)throw new Error(e+' "'+h.retrieve(t.get(e+"Index"),t.get(e+"Id"),0)+'" not found');return n})}function l(t){return"cartesian2d"===t.get("coordinateSystem")}var u=n(43),c=n(77),h=n(2),d=n(1618),p=n(1616),f=h.each,g=c.ifAxisCrossZero,m=c.niceScaleExtent;n(1619);var v=r.prototype;v.type="grid",v.axisPointerEnabled=!0,v.getRect=function(){return this._rect},v.update=function(t,e){function n(t){var e=i[t];for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if(o&&("category"===o.type||"time"===o.type||!g(o)))return!0}return!1}var i=this._axesMap;this._updateScale(t,this.model),f(i.x,function(t){m(t.scale,t.model)}),f(i.y,function(t){m(t.scale,t.model)}),f(i.x,function(t){n("y")&&(t.onZero=!1)}),f(i.y,function(t){n("x")&&(t.onZero=!1)}),this.resize(this.model,e)},v.resize=function(t,e,n){function i(){f(s,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),a(t,e?r.x:r.y)})}var r=u.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var s=this._axesList;i(),!n&&t.get("containLabel")&&(f(s,function(t){if(!t.model.get("axisLabel.inside")){var e=o(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),i())},v.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},v.getAxes=function(){return this._axesList.slice()},v.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}h.isObject(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},v.getCartesians=function(){return this._coordsList.slice()},v.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},v.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},v._findConvertTarget=function(t,e){var n,i,o=e.seriesModel,r=e.xAxisModel||o&&o.getReferringComponents("xAxis")[0],a=e.yAxisModel||o&&o.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(o)n=o.coordinateSystem,h.indexOf(l,n)<0&&(n=null);else if(r&&a)n=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(a)i=this.getAxis("y",a.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},v.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},v._initCartesian=function(t,e,n){function o(n){return function(o,l){if(i(o,t,e)){var u=o.get("position");"x"===n?"top"!==u&&"bottom"!==u&&(u="bottom",r[u]&&(u="top"===u?"bottom":"top")):"left"!==u&&"right"!==u&&(u="left",r[u]&&(u="left"===u?"right":"left")),r[u]=!0;var h=new p(n,c.createScaleByModel(o),[0,0],o.get("type"),u),d="category"===h.type;h.onBand=d&&o.get("boundaryGap"),h.inverse=o.get("inverse"),h.onZero=o.get("axisLine.onZero"),o.axis=h,h.model=o,h.grid=this,h.index=l,this._axesList.push(h),a[n][l]=h,s[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",o("x"),this),e.eachComponent("yAxis",o("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);this._axesMap=a,f(a.x,function(e,n){f(a.y,function(i,o){var r="x"+n+"y"+o,a=new d(r);a.grid=this,a.model=t,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(i)},this)},this)},v._updateScale=function(t,e){function n(t,e,n){f(n.coordDimToDataDim(e.dim),function(n){e.scale.unionExtentFromData(t,n)})}h.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(o){if(l(o)){var r=s(o,t),a=r[0],u=r[1];if(!i(a,e,t)||!i(u,e,t))return;var c=this.getCartesian(a.componentIndex,u.componentIndex),h=o.getData(),d=c.getAxis("x"),p=c.getAxis("y");"list"===h.type&&(n(h,d,o),n(h,p,o))}},this)},v.getTooltipAxes=function(t){var e=[],n=[];return f(this.getCartesians(),function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),r=i.getOtherAxis(o);h.indexOf(e,o)<0&&e.push(o),h.indexOf(n,r)<0&&n.push(r)}),{baseAxes:e,otherAxes:n}};var y=["xAxis","yAxis"];r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,o){var a=new r(i,t,e);a.name="grid_"+o,a.resize(i,e,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if(l(e)){var n=s(e,t),i=n[0],o=n[1],r=i.getCoordSysModel();if(__DEV__){if(!r)throw new Error('Grid "'+h.retrieve(i.get("gridIndex"),i.get("gridId"),0)+'" not found');if(i.getCoordSysModel()!==o.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var a=r.coordinateSystem;e.coordinateSystem=a.getCartesian(i.componentIndex,o.componentIndex)}}),n},r.dimensions=r.prototype.dimensions=d.prototype.dimensions,n(94).register("cartesian2d",r),t.exports=r},function(t,e,n){function i(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}var o=n(835),r=n(54),a=n(459),s=n(34);i.prototype={constructor:i,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],o=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;a.fromPoints(h,o,l),s.min(n,n,o),s.max(i,i,l)}return 0===c&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new r(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var a=n[i].exterior,s=n[i].interiors;if(o.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,n,i){var o=this.getBoundingRect(),a=o.width/o.height;n?i||(i=n/a):n=a*i;for(var l=new r(t,e,n,i),u=o.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var d=c[h].exterior,p=c[h].interiors,f=0;f<d.length;f++)s.applyTransform(d[f],d[f],u);for(var g=0;g<(p?p.length:0);g++)for(var f=0;f<p[g].length;f++)s.applyTransform(p[g][f],p[g][f],u)}o=this._rect,o.copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]}},t.exports=i},function(t,e,n){function i(t,e){var n=t.get("center"),i=t.get("radius"),o=e.getWidth(),r=e.getHeight(),a=s.parsePercent;this.cx=a(n[0],o),this.cy=a(n[1],r);var l=this.getRadiusAxis(),u=Math.min(o,r)/2;l.setExtent(0,a(i,u))}function o(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();o.scale.unionExtentFromData(e,"radius"),i.scale.unionExtentFromData(e,"angle")}}),c(i.scale,i.model),c(o.scale,o.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function r(t,e){if(t.type=e.get("type"),t.scale=u.createScaleByModel(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,"angleAxis"===e.mainType){var n=e.get("startAngle");t.inverse=e.get("inverse")^e.get("clockwise"),t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var a=n(1635),s=n(13),l=n(2),u=n(77),c=u.niceScaleExtent;n(1636);var h={dimensions:a.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,s){var l=new a(s);l.resize=i,l.update=o;var u=l.getRadiusAxis(),c=l.getAngleAxis(),h=t.findAxisModel("radiusAxis"),d=t.findAxisModel("angleAxis");r(u,h),r(c,d),l.resize(t,e),n.push(l),t.coordinateSystem=l,l.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];if(__DEV__&&!n)throw new Error('Polar "'+l.retrieve(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}}),n}};n(94).register("polar",h)},function(t,e,n){"use strict";function i(t){return t.get("stack")||d+t.seriesIndex}function o(t){return t.dim+t.index}function r(t,e){var n=[],i=t.axis;if("category"===i.type){for(var o=i.getBandWidth(),r=0;r<t.count;r++)n.push(u.defaults({bandWidth:o,axisKey:"axis0",stackId:d+r},t));for(var a=s(n,e),l=[],r=0;r<t.count;r++){var c=a.axis0[d+r];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function a(t,e){return s(u.map(t,function(t){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),a=r.getExtent(),s="category"===r.type?r.getBandWidth():Math.abs(a[1]-a[0])/e.count();return{bandWidth:s,barWidth:h(t.get("barWidth"),s),barMaxWidth:h(t.get("barMaxWidth"),s),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),axisKey:o(r),stackId:i(t)}}),e)}function s(t,e){var n={};u.each(t,function(t,e){var i=t.axisKey,o=t.bandWidth,r=n[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=r.stacks;n[i]=r;var s=t.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(l=Math.min(r.remainedWidth,l),a[s].width=l,r.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barGap;null!=c&&(r.gap=c);var h=t.barCategoryGap;null!=h&&(r.categoryGap=h)});var i={};return u.each(n,function(t,e){i[e]={};var n=t.stacks,o=t.bandWidth,r=h(t.categoryGap,o),a=h(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,c=(s-r)/(l+(l-1)*a);c=Math.max(c,0),u.each(n,function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)}),c=(s-r)/(l+(l-1)*a),c=Math.max(c,0);var d,p=0;u.each(n,function(t,e){t.width||(t.width=c),d=t,p+=t.width*(1+a)}),d&&(p-=d.width*a);var f=-p/2;u.each(n,function(t,n){i[e][n]=i[e][n]||{offset:f,width:t.width},f+=t.width*(1+a)})}),i}function l(t,e,n){var r=a(u.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),s={},l={};e.eachSeriesByType(t,function(t){if("cartesian2d"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),u=i(t),c=r[o(a)][u],h=c.offset,d=c.width,p=n.getOtherAxis(a),f=t.get("barMinHeight")||0,g=a.onZero?p.toGlobalCoord(p.dataToCoord(0)):p.getGlobalExtent()[0],m=n.dataToPoints(e,!0);s[u]=s[u]||[],l[u]=l[u]||[],e.setLayout({offset:h,size:d}),e.each(p.dim,function(t,n){if(!isNaN(t)){s[u][n]||(s[u][n]={p:g,n:g},l[u][n]={p:g,n:g});var i,o,r,a,c=t>=0?"p":"n",v=m[n],y=s[u][n][c],x=l[u][n][c];p.isHorizontal()?(i=y,o=v[1]+h,r=v[0]-x,a=d,l[u][n][c]+=r,Math.abs(r)<f&&(r=(r<0?-1:1)*f),s[u][n][c]+=r):(i=v[0]+h,o=y,r=d,a=v[1]-x,l[u][n][c]+=a,Math.abs(a)<f&&(a=(a<=0?-1:1)*f),s[u][n][c]+=a),e.setItemLayout(n,{x:i,y:o,width:r,height:a})}},!0)}},this)}var u=n(2),c=n(13),h=c.parsePercent,d="__ec_stack_";l.getLayoutOnAxis=r,t.exports=l},function(t,e){t.exports=function(t,e){e.eachSeriesByType(t,function(t){var e=t.getData(),n=t.coordinateSystem;if(n){for(var i=[],o=n.dimensions,r=0;r<o.length;r++)i.push(t.coordDimToDataDim(n.dimensions[r])[0]);1===i.length?e.each(i[0],function(t,i){e.setItemLayout(i,isNaN(t)?[NaN,NaN]:n.dataToPoint(t))}):2===i.length&&e.each(i,function(t,i,o){e.setItemLayout(o,isNaN(t)||isNaN(i)?[NaN,NaN]:n.dataToPoint([t,i]))},!0)}})}},function(t,e,n){var i=n(2),o=n(105),r=o.parseClassType,a=0,s={};s.getUID=function(t){return[t||"",a++,Math.random()].join("_")},s.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=r(t),e[t.main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var a=r(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](i))}return o},t},s.enableTopologicalTravel=function(t,e){function n(t){var n={},a=[];return i.each(t,function(s){var l=o(n,s),u=l.originalDeps=e(s),c=r(u,t);l.entryCount=c.length,0===l.entryCount&&a.push(s),i.each(c,function(t){i.indexOf(l.predecessor,t)<0&&l.predecessor.push(t);var e=o(n,t);i.indexOf(e.successor,t)<0&&e.successor.push(s)})}),{graph:n,noEntryList:a}}function o(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return i.each(t,function(t){i.indexOf(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,o,r){function a(t){0===--u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,a(t)}if(t.length){var l=n(e),u=l.graph,c=l.noEntryList,h={};for(i.each(t,function(t){h[t]=!0});c.length;){var d=c.pop(),p=u[d],f=!!h[d];f&&(o.call(r,d,p.originalDeps.slice()),delete h[d]),i.each(p.successor,f?s:a)}i.each(h,function(){throw new Error("Circle dependency may exists")})}}},t.exports=s},function(t,e,n){var i=n(305),o=n(394),r=n(105),a=function(){this.group=new i,this.uid=o.getUID("viewComponent")};a.prototype={constructor:a,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},r.enableClassExtend(a),r.enableClassManagement(a,{registerWhenExtend:!0}),t.exports=a},function(t,e){t.exports=function(t,e){var n={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),o={};if(!e.isSeriesFiltered(t)){var r=t.getData();r.each(function(t){var e=r.getRawIndex(t);o[e]=t}),i.each(function(e){var a=o[e],s=null!=a&&r.getItemVisual(a,"color",!0);if(s)i.setItemVisual(e,"color",s);else{var l=i.getItemModel(e),u=l.get("itemStyle.normal.color")||t.getColorFromPalette(i.getName(e),n);i.setItemVisual(e,"color",u),null!=a&&r.setItemVisual(a,"color",u)}})}})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(34),o=n(126),r={},a=Math.min,s=Math.max,l=Math.sin,u=Math.cos,c=i.create(),h=i.create(),d=i.create(),p=2*Math.PI;r.fromPoints=function(t,e,n){if(0!==t.length){var i,o=t[0],r=o[0],l=o[0],u=o[1],c=o[1];for(i=1;i<t.length;i++)o=t[i],r=a(r,o[0]),l=s(l,o[0]),u=a(u,o[1]),c=s(c,o[1]);e[0]=r,e[1]=u,n[0]=l,n[1]=c}},r.fromLine=function(t,e,n,i,o,r){o[0]=a(t,n),o[1]=a(e,i),r[0]=s(t,n),r[1]=s(e,i)};var f=[],g=[];r.fromCubic=function(t,e,n,i,r,l,u,c,h,d){var p,m=o.cubicExtrema,v=o.cubicAt,y=m(t,n,r,u,f);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,p=0;p<y;p++){var x=v(t,n,r,u,f[p]);h[0]=a(x,h[0]),d[0]=s(x,d[0])}for(y=m(e,i,l,c,g),p=0;p<y;p++){var _=v(e,i,l,c,g[p]);h[1]=a(_,h[1]),d[1]=s(_,d[1])}h[0]=a(t,h[0]),d[0]=s(t,d[0]),h[0]=a(u,h[0]),d[0]=s(u,d[0]),h[1]=a(e,h[1]),d[1]=s(e,d[1]),h[1]=a(c,h[1]),d[1]=s(c,d[1])},r.fromQuadratic=function(t,e,n,i,r,l,u,c){var h=o.quadraticExtremum,d=o.quadraticAt,p=s(a(h(t,n,r),1),0),f=s(a(h(e,i,l),1),0),g=d(t,n,r,p),m=d(e,i,l,f);u[0]=a(t,r,g),u[1]=a(e,l,m),c[0]=s(t,r,g),c[1]=s(e,l,m)},r.fromArc=function(t,e,n,o,r,a,s,f,g){var m=i.min,v=i.max,y=Math.abs(r-a);if(y%p<1e-4&&y>1e-4)return f[0]=t-n,f[1]=e-o,g[0]=t+n,void(g[1]=e+o);if(c[0]=u(r)*n+t,c[1]=l(r)*o+e,h[0]=u(a)*n+t,h[1]=l(a)*o+e,m(f,c,h),v(g,c,h),r%=p,r<0&&(r+=p),a%=p,a<0&&(a+=p),r>a&&!s?a+=p:r<a&&s&&(r+=p),s){var x=a;a=r,r=x}for(var _=0;_<a;_+=Math.PI/2)_>r&&(d[0]=u(_)*n+t,d[1]=l(_)*o+e,m(f,d,f),v(g,d,g))},t.exports=r},function(t,e,n){var i=n(304);t.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(i.debugMode>1)for(var t in arguments)console.log(arguments[t])}},function(t,e){function n(t){for(var e=0;t>=c;)e|=1&t,t>>=1;return t+e}function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;o(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function o(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}function r(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)r=s+l>>>1,o(a,t[r])<0?l=r:s=r+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function a(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])>0){for(s=i-o;l<s&&r(t,e[n+o+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}for(a++;a<l;){var c=a+(l-a>>>1);r(t,e[n+c])>0?a=c+1:l=c}return l}function s(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}else{for(s=i-o;l<s&&r(t,e[n+o+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var c=a+(l-a>>>1);r(t,e[n+c])<0?l=c:a=c+1}return l}function l(t,e){function n(t,e){c[g]=t,d[g]=e,g+=1}function i(){for(;g>1;){var t=g-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]<d[t+1]&&t--;else if(d[t]>d[t+1])break;r(t)}}function o(){for(;g>1;){var t=g-2;t>0&&d[t-1]<d[t+1]&&t--,r(t)}}function r(n){var i=c[n],o=d[n],r=c[n+1],h=d[n+1];d[n]=o+h,n===g-3&&(c[n+1]=c[n+2],d[n+1]=d[n+2]),g--;var p=s(t[r],t,i,o,0,e);i+=p,0!==(o-=p)&&0!==(h=a(t[i+o-1],t,r,h,h-1,e))&&(o<=h?l(i,o,r,h):u(i,o,r,h))}function l(n,i,o,r){var l=0;for(l=0;l<i;l++)m[l]=t[n+l];var u=0,c=o,d=n;if(t[d++]=t[c++],0!==--r){if(1===i){for(l=0;l<r;l++)t[d+l]=t[c+l];return void(t[d+r]=m[u])}for(var f,g,v,y=p;;){f=0,g=0,v=!1;do{if(e(t[c],m[u])<0){if(t[d++]=t[c++],g++,f=0,0===--r){v=!0;break}}else if(t[d++]=m[u++],f++,g=0,1===--i){v=!0;break}}while((f|g)<y);if(v)break;do{if(0!==(f=s(t[c],m,u,i,0,e))){for(l=0;l<f;l++)t[d+l]=m[u+l];if(d+=f,u+=f,(i-=f)<=1){v=!0;break}}if(t[d++]=t[c++],0===--r){v=!0;break}if(0!==(g=a(m[u],t,c,r,0,e))){for(l=0;l<g;l++)t[d+l]=t[c+l];if(d+=g,c+=g,0===(r-=g)){v=!0;break}}if(t[d++]=m[u++],1===--i){v=!0;break}y--}while(f>=h||g>=h);if(v)break;y<0&&(y=0),y+=2}if(p=y,p<1&&(p=1),1===i){for(l=0;l<r;l++)t[d+l]=t[c+l];t[d+r]=m[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[d+l]=m[u+l]}}else for(l=0;l<i;l++)t[d+l]=m[u+l]}function u(n,i,o,r){var l=0;for(l=0;l<r;l++)m[l]=t[o+l];var u=n+i-1,c=r-1,d=o+r-1,f=0,g=0;if(t[d--]=t[u--],0!==--i){if(1===r){for(d-=i,u-=i,g=d+1,f=u+1,l=i-1;l>=0;l--)t[g+l]=t[f+l];return void(t[d]=m[c])}for(var v=p;;){var y=0,x=0,_=!1;do{if(e(m[c],t[u])<0){if(t[d--]=t[u--],y++,x=0,0===--i){_=!0;break}}else if(t[d--]=m[c--],x++,y=0,1===--r){_=!0;break}}while((y|x)<v);if(_)break;do{if(0!==(y=i-s(m[c],t,n,i,i-1,e))){for(d-=y,u-=y,i-=y,g=d+1,f=u+1,l=y-1;l>=0;l--)t[g+l]=t[f+l];if(0===i){_=!0;break}}if(t[d--]=m[c--],1===--r){_=!0;break}if(0!==(x=r-a(t[u],m,0,r,r-1,e))){for(d-=x,c-=x,r-=x,g=d+1,f=c+1,l=0;l<x;l++)t[g+l]=m[f+l];if(r<=1){_=!0;break}}if(t[d--]=t[u--],0===--i){_=!0;break}v--}while(y>=h||x>=h);if(_)break;v<0&&(v=0),v+=2}if(p=v,p<1&&(p=1),1===r){for(d-=i,u-=i,g=d+1,f=u+1,l=i-1;l>=0;l--)t[g+l]=t[f+l];t[d]=m[c]}else{if(0===r)throw new Error;for(f=d-(r-1),l=0;l<r;l++)t[f+l]=m[l]}}else for(f=d-(r-1),l=0;l<r;l++)t[f+l]=m[l]}var c,d,p=h,f=0,g=0;f=t.length;var m=[];c=[],d=[],this.mergeRuns=i,this.forceMergeRuns=o,this.pushRun=n}function u(t,e,o,a){o||(o=0),a||(a=t.length);var s=a-o;if(!(s<2)){var u=0;if(s<c)return u=i(t,o,a,e),void r(t,o,a,o+u,e);var h=new l(t,e),d=n(s);do{if((u=i(t,o,a,e))<d){var p=s;p>d&&(p=d),r(t,o,o+p,o+u,e),u=p}h.pushRun(o,u),h.mergeRuns(),s-=u,o+=u}while(0!==s);h.forceMergeRuns()}}var c=32,h=7;t.exports=u},function(t,e,n){function i(t){o.call(this,t)}var o=n(306),r=n(54),a=n(2),s=n(839),l=new s(50);i.prototype={constructor:i,type:"image",brush:function(t,e){var n,i=this.style,o=i.image;if(i.bind(t,this,e),!(n="string"===typeof o?this._image:o)&&o){var r=l.get(o);if(!r)return n=new Image,n.onload=function(){n.onload=null;for(var t=0;t<r.pending.length;t++)r.pending[t].dirty()},r={image:n,pending:[this]},n.src=o,l.put(o,r),void(this._image=n);if(n=r.image,this._image=n,!n.width||!n.height)return void r.pending.push(this)}if(n){var a=i.x||0,s=i.y||0;if(!n.width||!n.height)return;var u=i.width,c=i.height,h=n.width/n.height;if(null==u&&null!=c?u=c*h:null==c&&null!=u?c=u/h:null==u&&null==c&&(u=n.width,c=n.height),this.setTransform(t),i.sWidth&&i.sHeight){var d=i.sx||0,p=i.sy||0;t.drawImage(n,d,p,i.sWidth,i.sHeight,a,s,u,c)}else if(i.sx&&i.sy){var d=i.sx,p=i.sy,f=u-d,g=c-p;t.drawImage(n,d,p,f,g,a,s,u,c)}else t.drawImage(n,a,s,u,c);this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(i,o),t.exports=i},function(t,e,n){"use strict";function i(t){return t>s||t<-s}var o=n(91),r=n(34),a=o.identity,s=5e-5,l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;if(!n&&!e)return void(i&&a(i));i=i||o.create(),n?this.getLocalTransform(i):a(i),e&&(n?o.mul(i,t.transform,i):o.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||o.create(),o.invert(this.invTransform,i)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var c=[];u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(o.mul(c,t.invTransform,e),e=c);var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=this.position,s=this.scale;i(n-1)&&(n=Math.sqrt(n)),i(r-1)&&(r=Math.sqrt(r)),e[0]<0&&(n=-n),e[3]<0&&(r=-r),a[0]=e[4],a[1]=e[5],s[0]=n,s[1]=r,this.rotation=Math.atan2(-e[1]/r,e[0]/n)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(n=-n),[e,n]},u.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){e=e||[],a(e);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),o.scale(e,e,i),r&&o.rotate(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e},t.exports=l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){return t}function o(t,e,n){function o(t,e){var n=y.hasOwnProperty(e)?y[e]:null;w.hasOwnProperty(e)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function u(t,n){if(n){s("function"!==typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var i=t.prototype,r=i.__reactAutoBindPairs;n.hasOwnProperty(l)&&x.mixins(t,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==l){var u=n[a],c=i.hasOwnProperty(a);if(o(c,a),x.hasOwnProperty(a))x[a](t,u);else{var h=y.hasOwnProperty(a),f="function"===typeof u,g=f&&!h&&!c&&!1!==n.autobind;if(g)r.push(a,u),i[a]=u;else if(c){var m=y[a];s(h&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?i[a]=d(i[a],u):"DEFINE_MANY"===m&&(i[a]=p(i[a],u))}else i[a]=u}}}else;}function c(t,e){if(e)for(var n in e){var i=e[n];if(e.hasOwnProperty(n)){var o=n in x;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var r=n in t;s(!r,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=i}}}function h(t,e){s(t&&e&&"object"===typeof t&&"object"===typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(s(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function d(t,e){return function(){var n=t.apply(this,arguments),i=e.apply(this,arguments);if(null==n)return i;if(null==i)return n;var o={};return h(o,n),h(o,i),o}}function p(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function f(t,e){var n=e.bind(t);return n}function g(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var i=e[n],o=e[n+1];t[i]=f(t,o)}}function m(t){var e=i(function(t,i,o){this.__reactAutoBindPairs.length&&g(this),this.props=t,this.context=i,this.refs=a,this.updater=o||n,this.state=null;var r=this.getInitialState?this.getInitialState():null;s("object"===typeof r&&!Array.isArray(r),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=r});e.prototype=new S,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],v.forEach(u.bind(null,e)),u(e,_),u(e,t),u(e,b),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),s(e.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in y)e.prototype[o]||(e.prototype[o]=null);return e}var v=[],y={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},x={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)u(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=r({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=r({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=d(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=r({},t.propTypes,e)},statics:function(t,e){c(t,e)},autobind:function(){}},_={componentDidMount:function(){this.__isMounted=!0}},b={componentWillUnmount:function(){this.__isMounted=!1}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},S=function(){};return r(S.prototype,t.prototype,w),m}var r=n(15),a=n(270),s=n(14),l="mixins";t.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(10),o=n(2);t.exports=function(t,e){o.each(e,function(e){e.update="updateView",i.registerAction(e,function(n,i){var o={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name);var i=t.getData();i.each(function(e){var n=i.getName(e);o[n]=t.isSelected(n)||!1})}),{name:n.name,selected:o}})})}},function(t,e,n){var i=n(2),o=n(618);n(10).registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){var r=e.coordinateSystem;if("geo"===r.type){var a=o.updateCenterAndZoom(r,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===n&&i.each(e.seriesGroup,function(t){t.setCenter(a.center),t.setZoom(a.zoom)})}})})},function(t,e){var n={};n.updateCenterAndZoom=function(t,e,n){var i=t.getZoom(),o=t.getCenter(),r=e.zoom,a=t.dataToPoint(o);if(null!=e.dx&&null!=e.dy){a[0]-=e.dx,a[1]-=e.dy;var o=t.pointToData(a);t.setCenter(o)}if(null!=r){if(n){var s=n.min||0,l=n.max||1/0;r=Math.max(Math.min(i*r,l),s)/i}t.scale[0]*=r,t.scale[1]*=r;var u=t.position,c=(e.originX-u[0])*(r-1),h=(e.originY-u[1])*(r-1);u[0]-=c,u[1]-=h,t.updateTransform();var o=t.pointToData(a);t.setCenter(o),t.setZoom(r*i)}return{center:t.getCenter(),zoom:t.getZoom()}},t.exports=n},function(t,e,n){"use strict";var i=n(60),o=n(117);t.exports=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return o(t.data,this,e)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(t,!0),i=this.getData(),o=i.getLayout("offset"),r=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=o+r/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,itemStyle:{normal:{},emphasis:{}}}})},function(t,e,n){function i(t,e,n,i,o){r.setText(t,e,n),t.text=i,"outside"===t.textPosition&&(t.textPosition=o)}var o=n(2),r=n(12),a={};a.setLabel=function(t,e,n,r,a,s,l){var u=n.getModel("label.normal"),c=n.getModel("label.emphasis");u.get("show")?i(t,u,r,o.retrieve(a.getFormattedLabel(s,"normal"),a.getRawValue(s)),l):t.text="",c.get("show")?i(e,c,r,o.retrieve(a.getFormattedLabel(s,"emphasis"),a.getRawValue(s)),l):e.text=""},t.exports=a},function(t,e,n){var i=n(34);t.exports=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=e.getBoundingRect(),o=t.getData(),r=o.graph,a=0,s=o.getSum("value"),l=2*Math.PI/(s||o.count()),u=n.width/2+n.x,c=n.height/2+n.y,h=Math.min(n.width,n.height)/2;r.eachNode(function(t){var e=t.getValue("value");a+=l*(s?e:1)/2,t.setLayout([h*Math.cos(a)+u,h*Math.sin(a)+c]),a+=l*(s?e:1)/2}),o.setLayout({cx:u,cy:c}),r.eachEdge(function(t){var e,n=t.getModel().get("lineStyle.normal.curveness")||0,o=i.clone(t.node1.getLayout()),r=i.clone(t.node2.getLayout()),a=(o[0]+r[0])/2,s=(o[1]+r[1])/2;+n&&(n*=3,e=[u*n+a*(1-n),c*n+s*(1-n)]),t.setLayout([o,r,e])})}}},function(t,e,n){var i=n(34);t.exports=function(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.normal.curveness")||0,n=i.clone(t.node1.getLayout()),o=i.clone(t.node2.getLayout()),r=[n,o];+e&&r.push([(n[0]+o[0])/2-(n[1]-o[1])*e,(n[1]+o[1])/2-(o[0]-n[0])*e]),t.setLayout(r)})}},function(t,e,n){var i=n(622);t.exports=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),i(n)}}},function(t,e,n){function i(t,e,n){o.Group.call(this),this.add(this.createLine(t,e,n)),this._updateEffectSymbol(t,e)}var o=n(12),r=n(378),a=n(2),s=n(86),l=n(34),u=n(126),c=i.prototype;c.createLine=function(t,e,n){return new r(t,e,n)},c._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),o=i.get("symbolSize"),r=i.get("symbol");a.isArray(o)||(o=[o,o]);var l=i.get("color")||t.getItemVisual(e,"color"),u=this.childAt(1);this._symbolType!==r&&(this.remove(u),u=s.createSymbol(r,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.attr("scale",o),u.setColor(l),u.attr("scale",o),this._symbolType=r,this._updateEffectAnimation(t,i,e))},c._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var o=this,r=t.getItemLayout(n),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),c=a.retrieve(e.get("delay"),function(e){return e/t.count()*s/3}),h="function"===typeof c;if(i.ignore=!0,this.updateAnimationPoints(i,r),u>0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=c;h&&(d=c(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var p=i.animate("",l).when(s,{__t:1}).delay(d).during(function(){o.updateSymbolPosition(i)});l||p.done(function(){o.remove(i)}),p.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,r=t.position,a=u.quadraticAt,s=u.quadraticDerivativeAt;r[0]=a(e[0],i[0],n[0],o),r[1]=a(e[1],i[1],n[1],o);var l=s(e[0],i[0],n[0],o),c=s(e[1],i[1],n[1],o);t.rotation=-Math.atan2(c,l)-Math.PI/2,t.ignore=!1},c.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},a.inherits(i,o.Group),t.exports=i},function(t,e,n){function i(t,e,n){o.Group.call(this),this._createPolyline(t,e,n)}var o=n(12),r=n(2),a=i.prototype;a._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new o.Polyline({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},a.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};o.updateProps(r,a,i,e),this._updateCommonStl(t,e,n)},a._updateCommonStl=function(t,e,n){var i=this.childAt(0),a=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!t.hasItemOption||(l=a.getModel("lineStyle.normal").getLineStyle(),u=a.getModel("lineStyle.emphasis").getLineStyle()),i.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),i.hoverStyle=u,o.setHoverStyle(this)},a.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},r.inherits(i,o.Group),t.exports=i},function(t,e,n){var i=n(55),o=n(1647),r=n(658),a=n(85),s=n(94),l=n(2),u=n(117);t.exports=function(t,e,n,c,h){for(var d=new o(c),p=0;p<t.length;p++)d.addNode(l.retrieve(t[p].id,t[p].name,p),p);for(var f=[],g=[],m=0,p=0;p<e.length;p++){var v=e[p],y=v.source,x=v.target;d.addEdge(y,x,m)&&(g.push(v),f.push(l.retrieve(v.id,y+" > "+x)),m++)}var _,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,n,n.ecModel);else{var w=s.get(b),S=a((w&&"view"!==w.type?w.dimensions||[]:[]).concat(["value"]),t);_=new i(S,n),_.initData(t)}var M=new i(["value"],n);return M.initData(g,f),h&&h(_,M),r({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(t,e,n){var i=n(12),o=n(2),r=n(29),a={};a.findLabelValueDim=function(t){var e,n=r.otherDimToDataDim(t,"label");if(n.length)e=n[0];else for(var i,o=t.dimensions.slice();o.length&&(e=o.pop(),"ordinal"===(i=t.getDimensionInfo(e).type)||"time"===i););return e},a.setTextToStyle=function(t,e,n,r,a,s,l){null!=n&&s.getShallow("show")?(i.setText(r,s,l),r.text=o.retrieve(a.getFormattedLabel(e,"normal"),t.get(n,e))):r.text=""},t.exports=a},function(t,e,n){function i(t){return isNaN(t[0])||isNaN(t[1])}function o(t,e,n,o,r,a,g,m,v,y,x){for(var _=0,b=n,w=0;w<o;w++){var S=e[b];if(b>=r||b<0)break;if(i(S)){if(x){b+=a;continue}break}if(b===n)t[a>0?"moveTo":"lineTo"](S[0],S[1]),h(p,S);else if(v>0){var M=b+a,I=e[M];if(x)for(;I&&i(e[M]);)M+=a,I=e[M];var T=.5,A=e[_],I=e[M];if(!I||i(I))h(f,S);else{i(I)&&!x&&(I=S),s.sub(d,I,A);var D,C;if("x"===y||"y"===y){var L="x"===y?0:1;D=Math.abs(S[L]-A[L]),C=Math.abs(S[L]-I[L])}else D=s.dist(S,A),C=s.dist(S,I);T=C/(C+D),c(f,S,d,-v*(1-T))}l(p,p,m),u(p,p,g),l(f,f,m),u(f,f,g),t.bezierCurveTo(p[0],p[1],f[0],f[1],S[0],S[1]),c(p,S,d,v*T)}else t.lineTo(S[0],S[1]);_=b,b+=a}return w}function r(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var o=0;o<t.length;o++){var r=t[o];r[0]<n[0]&&(n[0]=r[0]),r[1]<n[1]&&(n[1]=r[1]),r[0]>i[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:e?n:i,max:e?i:n}}var a=n(62),s=n(34),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,d=[],p=[],f=[];t.exports={Polyline:a.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,e){var n=e.points,a=0,s=n.length,l=r(n,e.smoothConstraint);if(e.connectNulls){for(;s>0&&i(n[s-1]);s--);for(;a<s&&i(n[a]);a++);}for(;a<s;)a+=o(t,n,a,s,s,1,l.min,l.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),Polygon:a.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,e){var n=e.points,a=e.stackedOnPoints,s=0,l=n.length,u=e.smoothMonotone,c=r(n,e.smoothConstraint),h=r(a,e.smoothConstraint);if(e.connectNulls){for(;l>0&&i(n[l-1]);l--);for(;s<l&&i(n[s]);s++);}for(;s<l;){var d=o(t,n,s,l,l,1,c.min,c.max,e.smooth,u,e.connectNulls);o(t,a,s+d-1,d,l,-1,h.min,h.max,e.stackedOnSmooth,u,e.connectNulls),s+=d+1,t.closePath()}}})}},function(t,e,n){"use strict";function i(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function o(t){return"x"===t.dim?0:1}var r=n(12),a=n(381),s=n(262),l=n(632),u=n(139),c=a.extend({makeElOption:function(t,e,n,o,r){var a=n.axis,u=a.grid,c=o.get("type"),d=i(u,a).getOtherAxis(a).getGlobalExtent(),p=a.toGlobalCoord(a.dataToCoord(e,!0));if(c&&"none"!==c){var f=s.buildElStyle(o),g=h[c](a,p,d,f);g.style=f,t.graphicKey=g.type,t.pointer=g}var m=l.layout(u.model,n);s.buildCartesianSingleLabelElOption(e,t,m,n,o,r)},getHandleTransform:function(t,e,n){var i=l.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,o){var r=n.axis,a=r.grid,s=r.getGlobalExtent(!0),l=i(a,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(s[1],c[u]),c[u]=Math.max(s[0],c[u]);var h=(l[1]+l[0])/2,d=[h,h];d[u]=c[u];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:p[u]}}}),h={line:function(t,e,n,i){var a=s.makeLineShape([e,n[0]],[e,n[1]],o(t));return r.subPixelOptimizeLine({shape:a,style:i}),{type:"Line",shape:a}},shadow:function(t,e,n,i){var r=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([e-r/2,n[0]],[r,a],o(t))}}};u.registerAxisPointerClass("CartesianAxisPointer",c),t.exports=c},function(t,e,n){var i=n(2),o=n(29);t.exports=function(t,e){var n,r=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=o.queryDataIndex(s,t);if(null==l||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)r=c.dataToPoint(s.getValues(i.map(c.dimensions,function(t){return n.coordDimToDataDim(t)[0]}),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),r=[h.x+h.width/2,h.y+h.height/2]}return{point:r,el:u}}},function(t,e,n){function i(t,e){function n(n,i){t.on(n,function(n){var r=s(e);h(c(t).records,function(t){t&&i(t,n,r.dispatchAction)}),o(r.pendings,e)})}c(t).initialized||(c(t).initialized=!0,n("click",u.curry(a,"click")),n("mousemove",u.curry(a,"mousemove")),n("globalout",r))}function o(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function r(t,e,n){t.handler("leave",null,n)}function a(t,e,n,i){e.handler(t,n,i)}function s(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}var l=n(59),u=n(2),c=n(29).makeGetter(),h=u.each,d={};d.register=function(t,e,n){if(!l.node){var o=e.getZr();c(o).records||(c(o).records={}),i(o,e);(c(o).records[t]||(c(o).records[t]={})).handler=n}},d.unregister=function(t,e){if(!l.node){var n=e.getZr();(c(n).records||{})[t]&&(c(n).records[t]=null)}},t.exports=d},function(t,e,n){var i=n(2),o={};o.layout=function(t,e,n){function o(t,e){var n=r.getAxis(t);return n.toGlobalCoord(n.dataToCoord(0))}n=n||{};var r=t.coordinateSystem,a=e.axis,s={},l=a.position,u=a.onZero?"onZero":l,c=a.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p=e.get("offset")||0,f={x:{top:d[2]-p,bottom:d[3]+p},y:{left:d[0]-p,right:d[1]+p}};f.x.onZero=Math.max(Math.min(o("y"),f.x.bottom),f.x.top),f.y.onZero=Math.max(Math.min(o("x"),f.y.right),f.y.left),s.position=["y"===c?f.y[u]:d[0],"x"===c?f.x[u]:d[3]],s.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=g[l],s.labelOffset=a.onZero?f[c][l]-f[c].onZero:0,e.get("axisTick.inside")&&(s.tickDirection=-s.tickDirection),i.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(s.labelDirection=-s.labelDirection);var m=e.get("axisLabel.rotate");return s.labelRotate="top"===u?-m:m,s.labelInterval=a.getLabelInterval(),s.z2=1,s},t.exports=o},function(t,e,n){var i=n(2),o={};o.layout=function(t,e){e=e||{};var n=t.coordinateSystem,o=t.axis,r={},a=o.position,s=o.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};r.position=["vertical"===s?c.vertical[a]:u[0],"horizontal"===s?c.horizontal[a]:u[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[a],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),i.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var p=e.rotate;return null==p&&(p=t.get("axisLabel.rotate")),r.labelRotation="top"===a?-p:p,r.labelInterval=o.getLabelInterval(),r.z2=1,r},t.exports=o},function(t,e,n){var i=n(2),o=n(382);n(10).registerAction("dataZoom",function(t,e){var n=o.createLinkedNodesFinder(i.bind(e.eachComponent,e,"dataZoom"),o.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),r=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){r.push.apply(r,n(t).nodes)}),i.each(r,function(e,n){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})},function(t,e,n){function i(t,e,n){n.getAxisProxy(t.name,e).reset(n)}function o(t,e,n){n.getAxisProxy(t.name,e).filterData(n)}n(10).registerProcessor(function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(i),t.eachTargetAxis(o)}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setRawRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]},!0)})})},function(t,e,n){function i(t){var e=t[a];return e||(e=t[a]=[{}]),e}var o=n(2),r=o.each,a="\0_ec_hist_store",s={push:function(t,e){var n=i(t);r(e,function(e,i){for(var o=n.length-1;o>=0;o--){if(n[o][i])break}if(o<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var a=r.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)},pop:function(t){var e=i(t),n=e[e.length-1];e.length>1&&e.pop();var o={};return r(n,function(t,n){for(var i=e.length-1;i>=0;i--){var t=e[i][n];if(t){o[n]=t;break}}}),o},clear:function(t){t[a]=null},count:function(t){return i(t).length}};t.exports=s},function(t,e,n){n(58).registerSubTypeDefaulter("dataZoom",function(t){return"slider"})},function(t,e,n){function i(t,e,n){var i=this._targetInfoList=[],o={},a=r(e,t);f(_,function(t,e){(!n||!n.include||g(n.include,e)>=0)&&t(a,i,o)})}function o(t){return t[0]>t[1]&&t.reverse(),t}function r(t,e){return d.parseFinder(t,e,{includeMainTypes:y})}function a(t,e,n,i){__DEV__&&c.assert("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var r=n.getAxis(["x","y"][t]),a=o(c.map([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t])):r.toGlobalCoord(r.dataToCoord(i[t]))})),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}function s(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function l(t,e){var n=u(t),i=u(e),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function u(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var c=n(2),h=n(12),d=n(29),p=n(640),f=c.each,g=c.indexOf,m=c.curry,v=["dataToPoint","pointToData"],y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x=i.prototype;x.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=S[t.brushType](0,n,e);t.__rangeOffset={offset:M[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})},x.matchOutputRanges=function(t,e,n){f(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&c.each(i.coordSyses,function(i){var o=S[t.brushType](1,i,t.range);n(t,o.values,i,e)})},this)},x.setInputRanges=function(t,e){f(t,function(t){var n=this.findTargetInfo(t,e);if(__DEV__&&(c.assert(!n||!0===n||t.coordRange,"coordRange must be specified when coord index specified."),c.assert(!n||!0!==n||t.range,"range must be specified in global brush.")),t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=S[t.brushType](0,n.coordSys,t.coordRange),o=t.__rangeOffset;t.range=o?M[t.brushType](i.values,o.offset,l(i.xyMinMax,o.xyMinMax)):i.values}},this)},x.makePanelOpts=function(t,e){return c.map(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e&&e(n),clipPath:p.makeRectPanelClipPath(i),isTargetByCursor:p.makeRectIsTargetByCursor(i,t,n.coordSysModel),getLinearBrushOtherExtent:p.makeLinearBrushOtherExtent(i)}})},x.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&g(i.coordSyses,e.coordinateSystem)>=0},x.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=r(e,t),o=0;o<n.length;o++){var a=n[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var o=0;o<b.length;o++)if(b[o](i,a))return a}return!0};var _={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,r=c.createHashMap(),a={},s={};(n||i||o)&&(f(n,function(t){var e=t.axis.grid.model;r.set(e.id,e),a[e.id]=!0}),f(i,function(t){var e=t.axis.grid.model;r.set(e.id,e),s[e.id]=!0}),f(o,function(t){r.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),r.each(function(t){var o=t.coordinateSystem,r=[];f(o.getCartesians(),function(t,e){(g(n,t.getAxis("x").model)>=0||g(i,t.getAxis("y").model)>=0)&&r.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:w.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){f(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:w.geo})})}},b=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,o=t.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],w={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(h.getTransform(t)),e}},S={lineX:m(a,0),lineY:m(a,1),rect:function(t,e,n){var i=e[v[t]]([n[0][0],n[1][0]]),r=e[v[t]]([n[0][1],n[1][1]]),a=[o([i[0],r[0]]),o([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:c.map(n,function(n){var o=e[v[t]](n);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}),xyMinMax:i}}},M={lineX:m(s,0),lineY:m(s,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return c.map(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};t.exports=i},function(t,e,n){function i(t,e){var n=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(n.fill=i),n}function o(t,e,n,i,o){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",function(){t._mouseDownFlag=!0}),n.on("click",function(a){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=a.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:h.map(s.__regions,function(t){return{name:t.name,from:o.uid}})};l[e.mainType+"Id"]=e.id,i.dispatchAction(l),r(e,n)}}}))}function r(t,e){e.eachChild(function(e){h.each(e.__regions,function(n){e.trigger(t.isSelected(n.name)?"emphasis":"normal")})})}function a(t,e){var n=new c.Group;this._controller=new s(t.getZr()),this._controllerHost={target:e?n:null},this.group=n,this._updateGroup=e,this._mouseDownFlag}var s=n(263),l=n(643),u=n(384),c=n(12),h=n(2);a.prototype={constructor:a,draw:function(t,e,n,a,s){var l="geo"===t.mainType,u=t.getData&&t.getData();l&&e.eachComponent({mainType:"series",subType:"map"},function(e){u||e.getHostGeoModel()!==t||(u=e.getData())});var d=t.coordinateSystem,p=this.group,f=d.scale,g={position:d.position,scale:f};!p.childAt(0)||s?p.attr(g):c.updateProps(p,g,t),p.removeAll();var m=["itemStyle","normal"],v=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_=h.createHashMap();h.each(d.regions,function(e){var n=_.get(e.name)||_.set(e.name,new c.Group),o=new c.CompoundPath({shape:{paths:[]}});n.add(o);var r,a=t.getRegionModel(e.name)||t,s=a.getModel(m),d=a.getModel(v),g=i(s,f),b=i(d,f),w=a.getModel(y),S=a.getModel(x);if(u){r=u.indexOfName(e.name);var M=u.getItemVisual(r,"color",!0);M&&(g.fill=M)}var I=w.getModel("textStyle"),T=S.getModel("textStyle");h.each(e.geometries,function(t){if("polygon"===t.type){o.shape.paths.push(new c.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)o.shape.paths.push(new c.Polygon({shape:{points:t.interiors[e]}}))}}),o.setStyle(g),o.style.strokeNoScale=!0,o.culling=!0;var A=w.get("show"),D=S.get("show"),C=u&&isNaN(u.get("value",r)),L=u&&u.getItemLayout(r);if(l||C&&(A||D)||L&&L.showLabel){var P=u?r:e.name,k=t.getFormattedLabel(P,"normal"),E=t.getFormattedLabel(P,"emphasis"),O=new c.Text({style:{text:A?k||e.name:"",fill:I.getTextColor(),textFont:I.getFont(),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:D?E||e.name:"",fill:T.getTextColor(),textFont:T.getFont()},position:e.center.slice(),scale:[1/f[0],1/f[1]],z2:10,silent:!0});n.add(O)}if(u)u.setItemGraphicEl(r,n);else{var a=t.getRegionModel(e.name);o.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:a&&a.option||{}}}(n.__regions||(n.__regions=[])).push(e),c.setHoverStyle(n,b,{hoverSilentOnTouch:!!t.get("selectedMode")}),p.add(n)}),this._updateController(t,e,n),o(this,t,p,n,a),r(t,p)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,n){function i(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}var o=t.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=o.getZoom(),r.enable(t.get("roam")||!1);var s=t.mainType;r.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,l.updateViewOnPan(a,t,e),n.dispatchAction(h.extend(i(),{dx:t,dy:e}))},this),r.off("zoom").on("zoom",function(t,e,o){if(this._mouseDownFlag=!1,l.updateViewOnZoom(a,t,e,o),n.dispatchAction(h.extend(i(),{zoom:t,originX:e,originY:o})),this._updateGroup){var r=this.group,s=r.scale;r.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.setPointerChecker(function(e,i,r){return o.getViewRectAfterRoam().contain(i,r)&&!u.onIrrelevantElement(e,n,t)})}},t.exports=a},function(t,e,n){function i(t){return r.create(t)}var o=n(384),r=n(54),a=n(12),s={};s.makeRectPanelClipPath=function(t){return t=i(t),function(e,n){return a.clipPointsByRect(e,t)}},s.makeLinearBrushOtherExtent=function(t,e){return t=i(t),function(n){var i=null!=e?e:n,o=i?t.width:t.height,r=i?t.x:t.y;return[r,r+(o||0)]}},s.makeRectIsTargetByCursor=function(t,e,n){return t=i(t),function(i,r,a){return t.contain(r[0],r[1])&&!o.onIrrelevantElement(i,e,n)}},t.exports=s},function(t,e,n){function i(t){return t[o]||(t[o]={})}var o="\0_ec_interaction_mutex",r={take:function(t,e,n){i(t)[e]=n},release:function(t,e,n){var o=i(t);o[e]===n&&(o[e]=null)},isTaken:function(t,e){return!!i(t)[e]}};n(10).registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.exports=r},function(t,e,n){function i(t,e,n){o.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"))}var o=n(43),r=n(35),a=n(12);t.exports={layout:function(t,e,n){var r=o.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o.box(e.get("orient"),t,e.get("itemGap"),r.width,r.height),i(t,e,n)},addBackground:function(t,e){var n=r.normalizeCssArray(e.get("padding")),i=t.getBoundingRect(),o=e.getItemStyle(["color","opacity"]);o.fill=e.get("backgroundColor");var s=new a.Rect({shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},style:o,silent:!0,z2:-1});a.subPixelOptimizeRect(s),t.add(s)}}},function(t,e){var n={};n.updateViewOnPan=function(t,e,n){var i=t.target,o=i.position;o[0]+=e,o[1]+=n,i.dirty()},n.updateViewOnZoom=function(t,e,n,i){var o=t.target,r=t.zoomLimit,a=o.position,s=o.scale,l=t.zoom=t.zoom||1;if(l*=e,r){var u=r.min||0,c=r.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,a[0]-=(n-a[0])*(h-1),a[1]-=(i-a[1])*(h-1),s[0]*=h,s[1]*=h,o.dirty()},t.exports=n},function(t,e,n){function i(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}n(657),n(1631),n(1578);var o=n(10),r=n(2),a=n(157);o.extendComponentView({type:"parallel",render:function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},r.each(s,function(t,e){n.getZr().on(e,this._handlers[e]=r.bind(t,this))},this)),a.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){r.each(this._handlers,function(t,n){e.getZr().off(n,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},t))}});var s={mousedown:function(t){i(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(i(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&i(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),o=n.behavior;"jump"===o&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===o?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===o&&null})}}};o.registerPreprocessor(n(1632))},function(t,e,n){n(1646),n(1539),n(1642),n(200),n(1533),n(10).extendComponentView({type:"single"})},function(t,e,n){var i=n(10),o=n(2),r=n(59),a=n(662),s=n(140),l=n(269),u=s.mapVisual,c=n(29),h=s.eachVisual,d=n(13),p=o.isArray,f=o.each,g=d.asc,m=d.linearMap,v=o.noop,y=["#f6efa6","#d88273","#bf444c"],x=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:null,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;r.canvasSupported||(n.realtime=!1),!e&&l.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=o.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},resetTargetSeries:function(){var t=this.option,e=null==t.seriesIndex;t.seriesIndex=e?[]:c.normalizeToArray(t.seriesIndex),e&&this.ecModel.eachSeries(function(e,n){t.seriesIndex.push(n)})},eachTargetSeries:function(t,e){o.each(this.option.seriesIndex,function(n){t.call(e,this.ecModel.getSeriesByIndex(n))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},formatValueText:function(t,e,n){function i(t){return t===u[0]?"min":t===u[1]?"max":(+t).toFixed(l)}var r,a,s=this.option,l=s.precision,u=this.dataBound,c=s.formatter;return n=n||["<",">"],o.isArray(t)&&(t=t.slice(),r=!0),a=e?t:r?[i(t[0]),i(t[1])]:i(t),o.isString(c)?c.replace("{value}",r?a[0]:a).replace("{value2}",r?a[1]:a):o.isFunction(c)?r?c(t[0],t[1]):c(t):r?t[0]===u[0]?n[0]+" "+a[1]:t[1]===u[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){p(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:y},f(this.stateList,function(e){var n=t[e];if(o.isString(n)){var i=a.get(n,"active",d);i?(t[e]={},t[e][n]=i):delete t[e]}},this)}function e(t,e,n){var i=t[e],o=t[n];i&&!o&&(o=t[n]={},f(i,function(t,e){if(s.isValidType(e)){var n=a.get(e,"inactive",d);null!=n&&(o[e]=n,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}function n(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");f(this.stateList,function(r){var a=this.itemSize,s=t[r];s||(s=t[r]={color:d?i:[i]}),null==s.symbol&&(s.symbol=e&&o.clone(e)||(d?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&o.clone(n)||(d?a[0]:[a[0],a[0]])),s.symbol=u(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var c=-1/0;h(l,function(t){t>c&&(c=t)}),s.symbolSize=u(l,function(t){return m(t,[0,c],[0,a[0]],!0)})}},this)}var i=this.option,r={inRange:i.inRange,outOfRange:i.outOfRange},l=i.target||(i.target={}),c=i.controller||(i.controller={});o.merge(l,r),o.merge(c,r);var d=this.isCategory();t.call(this,l),t.call(this,c),e.call(this,l,"inRange","outOfRange"),n.call(this,c)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v});t.exports=x},function(t,e,n){var i=n(2),o=n(12),r=n(35),a=n(43),s=n(10),l=n(140);t.exports=s.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){if(this.visualMapModel=t,!1===t.get("show"))return void this.group.removeAll();this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,n=r.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new o.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){function o(t){return u[t]}function r(t,e){u[t]=e}n=n||{};var a=n.forceState,s=this.visualMapModel,u={};if("symbol"===e&&(u.symbol=s.get("itemSymbol")),"color"===e){var c=s.get("contentColor");u.color=c}var h=s.controllerVisuals[a||s.getValueState(t)],d=l.prepareVisualTypes(h);return i.each(d,function(i){var a=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=h.__alphaForOpacity),l.dependsOn(i,e)&&a&&a.applyVisual(t,o,r)}),u[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;a.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:i.noop})},function(t,e,n){var i=n(2),o=n(43),r={getItemAlign:function(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var a={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?n[0]:i[u[d]];var p=[["x","width",3],["y","height",0]][s],f=o.getLayoutRect(h,a,i.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*a[p[1]]?0:1]},convertDataIndex:function(t){return i.each(t||[],function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}};t.exports=r},function(t,e,n){function i(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var o=n(2),r=o.each;t.exports=function(t){var e=t&&t.visualMap;o.isArray(e)||(e=e?[e]:[]),r(e,function(t){if(t){i(t,"splitList")&&!i(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&o.isArray(e)&&r(e,function(t){o.isObject(t)&&(i(t,"start")&&!i(t,"min")&&(t.min=t.start),i(t,"end")&&!i(t,"max")&&(t.max=t.end))})}})}},function(t,e,n){n(58).registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})},function(t,e,n){function i(t,e){t.eachTargetSeries(function(e){var n=e.getData();s.applyVisual(t.stateList,t.targetVisuals,n,t.getValueState,t,t.getDataDimension(n))})}function o(t){t.eachSeries(function(e){var n=e.getData(),i=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(u.bind(r,null,e,t))||{stops:[],outerColors:[]};o.dimension=t.getDataDimension(n),i.push(o)}}),e.getData().setVisual("visualMeta",i)})}function r(t,e,n,i){function o(t){return u[t]}function r(t,e){u[t]=e}for(var a=e.targetVisuals[i],s=l.prepareVisualTypes(a),u={color:t.getData().getVisual("color")},c=0,h=s.length;c<h;c++){var d=s[c],p=a["opacity"===d?"__alphaForOpacity":d];p&&p.applyVisual(n,o,r)}return u.color}var a=n(10),s=n(269),l=n(140),u=n(2);a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,function(t){t.eachComponent("visualMap",function(e){i(e,t)}),o(t)})},function(t,e,n){var i=n(10),o={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(o,function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})})},function(t,e,n){function i(){l.call(this)}function o(t){this.name=t,this.zoomLimit,l.call(this),this._roamTransform=new i,this._viewTransform=new i,this._center,this._zoom}function r(t,e,n,i){var o=n.seriesModel,r=o?o.coordinateSystem:null;return r===this?r[t](i):null}var a=n(34),s=n(91),l=n(463),u=n(2),c=n(54),h=a.applyTransform;u.mixin(i,l),o.prototype={constructor:o,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,n,i){return this._rect=new c(t,e,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new c(t,e,n,i)},transformTo:function(t,e,n,i){var o=this.getBoundingRect(),r=this._viewTransform;r.transform=o.calculateTransform(new c(t,e,n,i)),r.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var t=this._viewTransform.getLocalTransform(),e=this._roamTransform,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=a.applyTransform([],i,t),n=a.applyTransform([],n,t),e.origin=i,e.position=[n[0]-i[0],n[1]-i[1]],e.scale=[o,o],this._updateTransform()},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e.parent=t,t.updateTransform(),e.updateTransform(),e.transform&&s.copy(this.transform||(this.transform=[]),e.transform),this.transform?(this.invTransform=this.invTransform||[],s.invert(this.invTransform,this.transform)):this.invTransform=null,this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t){var e=this.transform;return e?h([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this.invTransform;return e?h([],t,e):[t[0],t[1]]},convertToPixel:u.curry(r,"dataToPoint"),convertFromPixel:u.curry(r,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},u.mixin(o,l),t.exports=o},function(t,e,n){var i=n(2),o={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},axisPointer:{},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,showMinLabel:null,showMaxLabel:null,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)"]}}},r=i.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),a=i.merge({boundaryGap:[0,0],splitNumber:5},o),s=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a),l=i.defaults({scale:!0,logBase:10},a);t.exports={categoryAxis:r,valueAxis:a,timeAxis:s,logAxis:l}},function(t,e,n){"use strict";function i(t,e){return e.type||(e.data?"category":"value")}var o=n(58),r=n(2),a=n(264),s=o.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r.merge(s.prototype,n(156));var l={offset:0};a("x",s,i,l),a("y",s,i,l),t.exports=s},function(t,e,n){function i(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i],a=r.geometry,s=a.coordinates,l=a.encodeOffsets,u=0;u<s.length;u++){var c=s[u];if("Polygon"===a.type)s[u]=o(c,l[u],e);else if("MultiPolygon"===a.type)for(var h=0;h<c.length;h++){var d=c[h];c[h]=o(d,l[u][h],e)}}return t.UTF8Encoding=!1,t}function o(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=r,o=s,r=l,i.push([s/n,l/n])}return i}var r=n(2),a=n(390);t.exports=function(t){return i(t),r.map(r.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,o=[];"Polygon"===n.type&&o.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&r.each(i,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var s=new a(e.name,o,e.cp);return s.properties=e,s})}},function(t,e,n){function i(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var a=new o(i,t,e);a.name="parallel_"+r,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=n.coordinateSystem}}),n}var o=n(1629);n(94).register("parallel",{create:i})},function(t,e,n){function i(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,u(e,n,t),d(n,function(n){d(e.TRANSFERABLE_METHODS,function(e){n.wrapMethod(e,h.curry(o,t))})}),e.wrapMethod("cloneShallow",h.curry(a,t)),d(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,h.curry(r,t))}),h.assert(n[e.dataType]===e)}function o(t,e){if(l(this)){var n=h.extend({},this[p]);n[this.dataType]=e,u(e,n,t)}else c(e,this.dataType,this[f],t);return e}function r(t,e){return t.struct&&t.struct.update(this),e}function a(t,e){return d(e[p],function(n,i){n!==e&&c(n.cloneShallow(),i,e,t)}),e}function s(t){var e=this[f];return null==t||null==e?e:e[p][t]}function l(t){return t[f]===t}function u(t,e,n){t[p]={},d(e,function(e,i){c(e,i,t,n)})}function c(t,e,n,i){n[p][e]=t,t[f]=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=s}var h=n(2),d=h.each,p="\0__link_datas",f="\0__link_mainData";t.exports=i},function(t,e,n){var i=n(105),o=i.set,r=i.get;t.exports={clearColorPalette:function(){o(this,"colorIdx",0),o(this,"colorNameMap",{})},getColorFromPalette:function(t,e){e=e||this;var n=r(e,"colorIdx")||0,i=r(e,"colorNameMap")||o(e,"colorNameMap",{});if(i.hasOwnProperty(t))return i[t];var a=this.get("color",!0)||[];if(a.length){var s=a[n];return t&&(i[t]=s),o(e,"colorIdx",(n+1)%a.length),s}}}},function(t,e,n){function i(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}var o=n(13),r=o.round,a={};a.intervalScaleNiceTicks=function(t,e,n){var i={},s=t[1]-t[0],l=i.interval=o.nice(s/e,!0);null!=n&&l<n&&(l=i.interval=n);var u=i.intervalPrecision=a.getIntervalPrecision(l),c=i.niceTickExtent=[r(Math.ceil(t[0]/l)*l,u),r(Math.floor(t[1]/l)*l,u)];return a.fixExtent(c,t),i},a.getIntervalPrecision=function(t){return o.getPrecisionSafe(t)+2},a.fixExtent=function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),i(t,0,e),i(t,1,e),t[0]>t[1]&&(t[0]=t[1])},a.intervalScaleGetTicks=function(t,e,n,i){var o=[];if(!t)return o;e[0]<n[0]&&o.push(e[0]);for(var a=n[0];a<=n[1]&&(o.push(a),(a=r(a+t,i))!==o[o.length-1]);)if(o.length>1e4)return[];return e[1]>(o.length?o[o.length-1]:n[1])&&o.push(e[1]),o},t.exports=a},function(t,e,n){function i(){function t(e,i){if(i>=n.length)return e;for(var r=-1,a=e.length,s=n[i++],l={},u={};++r<a;){var c=s(e[r]),h=u[c];h?h.push(e[r]):u[c]=[e[r]]}return o.each(u,function(e,n){l[n]=t(e,i)}),l}function e(t,r){if(r>=n.length)return t;var a=[],s=i[r++];return o.each(t,function(t,n){a.push({key:n,values:e(t,r)})}),s?a.sort(function(t,e){return s(t.key,e.key)}):a}var n=[],i=[];return{key:function(t){return n.push(t),this},sortKeys:function(t){return i[n.length-1]=t,this},entries:function(n){return e(t(n,0),0)}}}var o=n(2);t.exports=i},function(t,e,n){var i=n(2),o={get:function(t,e,n){var o=i.clone((r[t]||{})[e]);return n&&i.isArray(o)?o[o.length-1]:o}},r={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};t.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(1855);t.exports=function(t){return i(t,!1)}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t,e,n){this.props=t,this.context=e,this.refs=u,this.updater=n||l}function o(t,e,n){this.props=t,this.context=e,this.refs=u,this.updater=n||l}function r(){}var a=n(223),s=n(15),l=n(809),u=(n(810),n(270));n(14),n(2143);i.prototype.isReactComponent={},i.prototype.setState=function(t,e){"object"!==typeof t&&"function"!==typeof t&&null!=t&&a("85"),this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};r.prototype=i.prototype,o.prototype=new r,o.prototype.constructor=o,s(o.prototype,i.prototype),o.prototype.isPureReactComponent=!0,t.exports={Component:i,PureComponent:o}},,function(t,e,n){"use strict";var i="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=i},function(t,e,n){"use strict";var i=(n(23),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){},enqueueReplaceState:function(t,e){},enqueueSetState:function(t,e){}});t.exports=i},function(t,e,n){"use strict";var i=!1;t.exports=i},,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var i=n(840),o=n(146),r=n(463),a=n(2241),s=n(2),l=function(t){r.call(this,t),o.call(this,t),a.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,a),s.mixin(l,r),s.mixin(l,o),t.exports=l},function(t,e,n){function i(t,e){return t[e]}function o(t,e,n){t[e]=n}function r(t,e,n){return(e-t)*n+t}function a(t,e,n){return n>.5?e:t}function s(t,e,n,i,o){var a=t.length;if(1==o)for(var s=0;s<a;s++)i[s]=r(t[s],e[s],n);else for(var l=a&&t[0].length,s=0;s<a;s++)for(var u=0;u<l;u++)i[s][u]=r(t[s][u],e[s][u],n)}function l(t,e,n){var i=t.length,o=e.length;if(i!==o){if(i>o)t.length=o;else for(var r=i;r<o;r++)t.push(1===n?e[r]:_.call(e[r]))}for(var a=t[0]&&t[0].length,r=0;r<t.length;r++)if(1===n)isNaN(t[r])&&(t[r]=e[r]);else for(var s=0;s<a;s++)isNaN(t[r][s])&&(t[r][s]=e[r][s])}function u(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var o=0;o<i;o++)if(t[o]!==e[o])return!1}else for(var r=t[0].length,o=0;o<i;o++)for(var a=0;a<r;a++)if(t[o][a]!==e[o][a])return!1;return!0}function c(t,e,n,i,o,r,a,s,l){var u=t.length;if(1==l)for(var c=0;c<u;c++)s[c]=h(t[c],e[c],n[c],i[c],o,r,a);else for(var d=t[0].length,c=0;c<u;c++)for(var p=0;p<d;p++)s[c][p]=h(t[c][p],e[c][p],n[c][p],i[c][p],o,r,a)}function h(t,e,n,i,o,r,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*r+s*o+e}function d(t){if(x(t)){var e=t.length;if(x(t[0])){for(var n=[],i=0;i<e;i++)n.push(_.call(t[i]));return n}return _.call(t)}return t}function p(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){var e=t[t.length-1].value;return x(e&&e[0])?2:1}function g(t,e,n,i,o){var d=t._getter,g=t._setter,y="spline"===e,_=i.length;if(_){var b,w=i[0].value,S=x(w),M=!1,I=!1,T=S?f(i):0;i.sort(function(t,e){return t.time-e.time}),b=i[_-1].time;for(var A=[],D=[],C=i[0].value,L=!0,P=0;P<_;P++){A.push(i[P].time/b);var k=i[P].value;if(S&&u(k,C,T)||!S&&k===C||(L=!1),C=k,"string"==typeof k){var E=v.parse(k);E?(k=E,M=!0):I=!0}D.push(k)}if(!L){for(var O=D[_-1],P=0;P<_-1;P++)S?l(D[P],O,T):!isNaN(D[P])||isNaN(O)||I||M||(D[P]=O);S&&l(d(t._target,o),O,T);var z,R,N,V,B,G,F=0,H=0;if(M)var W=[0,0,0,0];var j=function(t,e){var n;if(e<0)n=0;else if(e<H){for(z=Math.min(F+1,_-1),n=z;n>=0&&!(A[n]<=e);n--);n=Math.min(n,_-2)}else{for(n=F;n<_&&!(A[n]>e);n++);n=Math.min(n-1,_-2)}F=n,H=e;var i=A[n+1]-A[n];if(0!==i)if(R=(e-A[n])/i,y)if(V=D[n],N=D[0===n?n:n-1],B=D[n>_-2?_-1:n+1],G=D[n>_-3?_-1:n+2],S)c(N,V,B,G,R,R*R,R*R*R,d(t,o),T);else{var l;if(M)l=c(N,V,B,G,R,R*R,R*R*R,W,1),l=p(W);else{if(I)return a(V,B,R);l=h(N,V,B,G,R,R*R,R*R*R)}g(t,o,l)}else if(S)s(D[n],D[n+1],R,d(t,o),T);else{var l;if(M)s(D[n],D[n+1],R,W,1),l=p(W);else{if(I)return a(D[n],D[n+1],R);l=r(D[n],D[n+1],R)}g(t,o,l)}},Z=new m({target:t._target,life:b,loop:t._loop,delay:t._delay,onframe:j,ondestroy:n});return e&&"spline"!==e&&(Z.easing=e),Z}}}var m=n(2220),v=n(112),y=n(2),x=y.isArrayLike,_=Array.prototype.slice,b=function(t,e,n,r){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||i,this._setter=r||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var o=this._getter(this._target,i);if(null==o)continue;0!==t&&n[i].push({time:0,value:d(o)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t){var e,n=this,i=0,o=function(){--i||n._doneCallback()};for(var r in this._tracks)if(this._tracks.hasOwnProperty(r)){var a=g(this,t,o,this._tracks[r],r);a&&(this._clipList.push(a),i++,this.animation&&this.animation.addClip(a),e=a)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return i||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var o=e[i];t&&o.onframe(this._target,1),n&&n.removeClip(o)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},t.exports=b},function(t,e){t.exports="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}},function(t,e){t.exports={containStroke:function(t,e,n,i,o,r,a){if(0===o)return!1;var s=o,l=0,u=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||r>t+s&&r>n+s||r<t-s&&r<n-s)return!1;if(t===n)return Math.abs(r-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*r-a+u;return c*c/(l*l+1)<=s/2*s/2}}},function(t,e,n){function i(t,e){return Math.abs(t-e)<a}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var l=t[s];o+=r(a[0],a[1],l[0],l[1],e,n),a=l}var u=t[0];return i(a[0],u[0])&&i(a[1],u[1])||(o+=r(a[0],a[1],u[0],u[1],e,n)),0!==o}var r=n(838),a=1e-8;t.exports={contain:o}},function(t,e,n){var i=n(126);t.exports={containStroke:function(t,e,n,o,r,a,s,l,u){if(0===s)return!1;var c=s;return!(u>e+c&&u>o+c&&u>a+c||u<e-c&&u<o-c&&u<a-c||l>t+c&&l>n+c&&l>r+c||l<t-c&&l<n-c&&l<r-c)&&i.quadraticProjectPoint(t,e,n,o,r,a,l,u,null)<=c/2}}},function(t,e){var n=2*Math.PI;t.exports={normalizeRadian:function(t){return t%=n,t<0&&(t+=n),t}}},function(t,e){t.exports=function(t,e,n,i,o,r){if(r>e&&r>i||r<e&&r<i)return 0;if(i===e)return 0;var a=i<e?1:-1,s=(r-e)/(i-e);return 1!==s&&0!==s||(a=i<e?.5:-.5),s*(n-t)+t>o?a:0}},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new o(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var o=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new n,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},a=r.prototype;a.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new o(e),s.key=t,n.insertEntry(s),i[t]=s}return r},a.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}},t.exports=r},function(t,e){var n=2311;t.exports=function(){return n++}},function(t,e,n){"use strict";var i=n(2),o=n(307),r=function(t,e,n,i,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,o.call(this,r)};r.prototype={constructor:r},i.inherits(r,o),t.exports=r},function(t,e){var n=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")},t.exports=n},function(t,e){function n(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,r=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,r=r*n.height+n.y,a=a*n.height+n.y),t.createLinearGradient(i,r,o,a)}function i(t,e,n){var i=n.width,o=n.height,r=Math.min(i,o),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*o+n.y,l*=r),t.createRadialGradient(a,s,0,a,s,l)}var o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],r=function(t){this.extendFrom(t)};r.prototype={constructor:r,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textPositionRect:null,textOffset:null,textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,n){for(var i=this,r=n&&n.style,a=!r,s=0;s<o.length;s++){var l=o[s],u=l[0];(a||i[u]!==r[u])&&(t[u]=i[u]||l[1])}if((a||i.fill!==r.fill)&&(t.fillStyle=i.fill),(a||i.stroke!==r.stroke)&&(t.strokeStyle=i.stroke),(a||i.opacity!==r.opacity)&&(t.globalAlpha=null==i.opacity?1:i.opacity),(a||i.blend!==r.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var c=i.lineWidth;t.lineWidth=c/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var n=this;for(var i in t)!t.hasOwnProperty(i)||!e&&n.hasOwnProperty(i)||(n[i]=t[i])}},set:function(t,e){"string"===typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,o){for(var r="radial"===e.type?i:n,a=r(t,e,o),s=e.colorStops,l=0;l<s.length;l++)a.addColorStop(s[l].offset,s[l].color);return a}};for(var a=r.prototype,s=0;s<o.length;s++){var l=o[s];l[0]in a||(a[l[0]]=l[1])}r.getGradient=a.getGradient,t.exports=r},function(t,e,n){var i=n(306),o=n(2),r=n(110),a=function(t){i.call(this,t)};a.prototype={constructor:a,type:"text",brush:function(t,e){var n=this.style,i=n.x||0,o=n.y||0,a=n.text;if(null!=a&&(a+=""),n.bind(t,this,e),a){this.setTransform(t);var s,l=n.textAlign,u=n.textFont||n.font;if(n.textVerticalAlign){var c=r.getBoundingRect(a,u,n.textAlign,"top");switch(s="middle",n.textVerticalAlign){case"middle":o-=c.height/2-c.lineHeight/2;break;case"bottom":o-=c.height-c.lineHeight/2;break;default:o+=c.lineHeight/2}}else s=n.textBaseline;t.font=u||"12px sans-serif",t.textAlign=l||"left",t.textAlign!==l&&(t.textAlign="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=r.measureText("\u56fd",t.font).width,d=a.split("\n"),p=0;p<d.length;p++)n.hasStroke()&&t.strokeText(d[p],i,o),n.hasFill()&&t.fillText(d[p],i,o),o+=h;this.restoreTransform(t)}},getBoundingRect:function(){var t=this.style;if(!this._rect){var e=t.textVerticalAlign,n=r.getBoundingRect(t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":n.y-=n.height/2;break;case"bottom":n.y-=n.height}if(n.x+=t.x||0,n.y+=t.y||0,t.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},o.inherits(a,i),t.exports=a},function(t,e,n){var i=n(2231),o=n(2230);t.exports={buildPath:function(t,e,n){var r=e.points,a=e.smooth;if(r&&r.length>=2){if(a&&"spline"!==a){var s=o(r,a,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var l=r.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],d=r[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===a&&(r=i(r,n)),t.moveTo(r[0][0],r[0][1]);for(var u=1,p=r.length;u<p;u++)t.lineTo(r[u][0],r[u][1])}n&&t.closePath()}}}},function(t,e,n){function i(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var o=n(110),r=n(54),a=new r,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e,n){var r=this.style,s=r.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=r.textPosition,h=r.textOffset,d=r.textDistance,p=r.textAlign,f=r.textFont||r.font,g=r.textBaseline,m=r.textVerticalAlign;e=r.textPositionRect||e,n=n||o.getBoundingRect(s,f,p,g);var v=this.transform;if(r.textTransform?this.setTransform(t):v&&(a.copy(e),a.applyTransform(v),e=a),c instanceof Array){if(l=e.x+i(c[0],e.width),u=e.y+i(c[1],e.height),p=p||"left",g=g||"top",m){switch(m){case"middle":u-=n.height/2-n.lineHeight/2;break;case"bottom":u-=n.height-n.lineHeight/2;break;default:u+=n.lineHeight/2}g="middle"}}else{var y=o.adjustTextPositionOnRect(c,e,n,d);l=y.x,u=y.y,p=p||y.textAlign,g=g||y.textBaseline}h&&(l+=h[0],u+=h[1]),t.textAlign=p||"left",t.textBaseline=g||"alphabetic";var x=r.textFill,_=r.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=f||"12px sans-serif",t.shadowBlur=r.textShadowBlur,t.shadowColor=r.textShadowColor||"transparent",t.shadowOffsetX=r.textShadowOffsetX,t.shadowOffsetY=r.textShadowOffsetY;var b=s.split("\n");r.textRotation&&(v&&t.translate(v[4],v[5]),t.rotate(r.textRotation),v&&t.translate(-v[4],-v[5]));for(var w=0;w<b.length;w++)_&&t.strokeText(b[w],l,u),x&&t.fillText(b[w],l,u),u+=n.lineHeight;t.restore()}}},t.exports=s},function(t,e,n){if(!n(59).canvasSupported){var i,o="urn:schemas-microsoft-com:vml",r=window,a=r.document,s=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",o),i=function(t){return a.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){i=function(t){return a.createElement("<"+t+' xmlns="'+o+'" class="zrvml">')}}var l=function(){if(!s){s=!0;var t=a.styleSheets;t.length<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};t.exports={doc:a,initVML:l,createNode:i}}},function(t,e,n){function i(t){delete p[t]}var o=n(840),r=n(59),a=n(2),s=n(2215),l=n(2218),u=n(2219),c=n(2226),h=!r.canvasSupported,d={canvas:n(2217)},p={},f={};f.version="3.5.2",f.init=function(t,e){var n=new g(o(),t,e);return p[n.id]=n,n},f.dispose=function(t){if(t)t.dispose();else{for(var e in p)p.hasOwnProperty(e)&&p[e].dispose();p={}}return f},f.getInstance=function(t){return p[t]},f.registerPainter=function(t,e){d[t]=e};var g=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,o=new l,p=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");p="vml"}else p&&d[p]||(p="canvas");var f=new d[p](e,o,n);this.storage=o,this.painter=f;var g=r.node?null:new c(f.getViewportRoot());this.handler=new s(o,f,g,f.root),this.animation=new u({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=o.delFromStorage,v=o.addToStorage;o.delFromStorage=function(t){m.call(o,t),t&&t.removeSelfFromZr(i)},o.addToStorage=function(t){v.call(o,t),t.addSelfToZr(i)}};g.prototype={constructor:g,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},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(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,i(this.id)}},t.exports=f},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=n(0),u=i(l),c=n(1),h=i(c),d=n(1669),p=i(d),f=function(t){function e(t){o(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getEchartsInstance=function(){return n.echartsInstance.getInstanceByDom(n.echartsElement)||n.echartsInstance.init(n.echartsElement,n.props.theme)},n.bindEvents=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&function(n){"string"===typeof n&&"function"===typeof e[n]&&(t.off(n),t.on(n,function(i){e[n](i,t)}))}(n)},n.renderEchartDom=function(){var t=n.getEchartsInstance();return t.setOption(n.props.option,n.props.notMerge||!1,n.props.lazyUpdate||!1),n.props.showLoading?t.showLoading(n.props.loadingOption||null):t.hideLoading(),t},n.echartsInstance=n.props.echarts,n.echartsElement=null,n}return a(e,t),s(e,[{key:"componentDidMount",value:function(){var t=this.renderEchartDom(),e=this.props.onEvents||{};this.bindEvents(t,e),"function"===typeof this.props.onChartReady&&this.props.onChartReady(t),(0,p.default)(this.echartsElement,function(){t.resize()})}},{key:"componentDidUpdate",value:function(){this.renderEchartDom(),this.bindEvents(this.getEchartsInstance(),this.props.onEvents||[])}},{key:"componentWillUnmount",value:function(){this.echartsElement&&("function"===typeof p.default.unbind&&p.default.unbind(this.echartsElement),this.echartsInstance.dispose(this.echartsElement))}},{key:"render",value:function(){var t=this,e=this.props.style||{height:"300px"};return u.default.createElement("div",{ref:function(e){t.echartsElement=e},style:e,className:this.props.className})}}]),e}(u.default.Component);e.default=f,f.propTypes={option:h.default.object.isRequired,echarts:h.default.object.isRequired,notMerge:h.default.bool,lazyUpdate:h.default.bool,style:h.default.object,className:h.default.string,theme:h.default.string,onChartReady:h.default.func,showLoading:h.default.bool,loadingOption:h.default.object,onEvents:h.default.object},f.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{height:"300px"},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{}}},function(t,e,n){"use strict";function i(t){o.each(r,function(e){this[e]=o.bind(t[e],t)},this)}var o=n(2),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];t.exports=i},function(t,e,n){var i=n(2);n(389),n(1426),n(1427);var o=n(392),r=n(10);r.registerLayout(i.curry(o,"bar")),r.registerVisual(function(t){t.eachSeriesByType("bar",function(t){t.getData().setVisual("legendSymbol","roundRect")})}),n(203)},function(t,e,n){t.exports=n(619).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect"})},function(t,e,n){"use strict";function i(t,e,n){n.style.text="",l.updateProps(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function o(t,e,n){n.style.text="",l.updateProps(n,{shape:{r:n.shape.r0}},e,t,function(){n.parent&&n.parent.remove(n)})}function r(t,e,n,i,o,r,a,c){var h=e.getItemVisual(n,"color"),d=e.getItemVisual(n,"opacity"),p=i.getModel("itemStyle.normal"),f=i.getModel("itemStyle.emphasis").getBarItemStyle();c||t.setShape("r",p.get("barBorderRadius")||0),t.useStyle(s.defaults({fill:h,opacity:d},p.getBarItemStyle()));var g=i.getShallow("cursor");g&&t.attr("cursor",g);var m=a?o.height>0?"bottom":"top":o.width>0?"left":"right";c||u.setLabel(t.style,f,i,h,r,n,m),l.setHoverStyle(t,f)}function a(t,e){var n=t.get(c)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}var s=n(2),l=n(12),u=n(620),c=["itemStyle","normal","barBorderWidth"];s.extend(n(53).prototype,n(1430));var h=n(10).extendChartView({type:"bar",render:function(t,e,n){var i=t.get("coordinateSystem");return"cartesian2d"===i||"polar"===i?this._render(t,e,n):__DEV__&&console.warn("Only cartesian2d and polar supported for bar."),this.group},dispose:s.noop,_render:function(t,e,n){var a,s=this.group,u=t.getData(),c=this._data,h=t.coordinateSystem,f=h.getBaseAxis();"cartesian2d"===h.type?a=f.isHorizontal():"polar"===h.type&&(a="angle"===f.dim);var g=t.isAnimationEnabled()?t:null;u.diff(c).add(function(e){if(u.hasValue(e)){var n=u.getItemModel(e),i=p[h.type](u,e,n),o=d[h.type](u,e,n,i,a,g);u.setItemGraphicEl(e,o),s.add(o),r(o,u,e,n,i,t,a,"polar"===h.type)}}).update(function(e,n){var i=c.getItemGraphicEl(n);if(!u.hasValue(e))return void s.remove(i);var o=u.getItemModel(e),f=p[h.type](u,e,o);i?l.updateProps(i,{shape:f},g,e):i=d[h.type](u,e,o,f,a,g,!0),u.setItemGraphicEl(e,i),s.add(i),r(i,u,e,o,f,t,a,"polar"===h.type)}).remove(function(t){var e=c.getItemGraphicEl(t);"cartesian2d"===h.type?e&&i(t,g,e):e&&o(t,g,e)}).execute(),this._data=u},remove:function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(e){"sector"===e.type?o(e.dataIndex,t,e):i(e.dataIndex,t,e)}):n.removeAll()}}),d={cartesian2d:function(t,e,n,i,o,r,a){var u=new l.Rect({shape:s.extend({},i)});if(r){var c=u.shape,h=o?"height":"width",d={};c[h]=0,d[h]=i[h],l[a?"updateProps":"initProps"](u,{shape:d},r,e)}return u},polar:function(t,e,n,i,o,r,a){var u=new l.Sector({shape:s.extend({},i)});if(r){var c=u.shape,h=o?"r":"endAngle",d={};c[h]=o?0:i.startAngle,d[h]=i[h],l[a?"updateProps":"initProps"](u,{shape:d},r,e)}return u}},p={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),o=a(n,i),r=i.width>0?1:-1,s=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+s*o/2,width:i.width-r*o,height:i.height-s*o}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};t.exports=h},function(t,e,n){var i=n(619).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,i.superApply(this,"getInitialData",arguments)}});t.exports=i},function(t,e,n){function i(t,e,n,i){var r=t.getItemLayout(e),u=n.get("symbolRepeat"),c=n.get("symbolClip"),h=n.get("symbolPosition")||"start",d=n.get("symbolRotate"),p=(d||0)*Math.PI/180||0,f=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),m={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:p,animationModel:g?n:null,hoverAnimation:g&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};o(n,u,r,i,m),a(t,e,r,u,c,m.boundingLength,m.pxSign,f,i,m),s(n,m.symbolScale,p,i,m);var v=m.symbolSize,y=n.get("symbolOffset");return T.isArray(y)&&(y=[P(y[0],v[0]),P(y[1],v[1])]),l(n,v,r,u,c,y,h,m.valueLineWidth,m.boundingLength,m.repeatCutLength,i,m),m}function o(t,e,n,i,o){var a,s=i.valueDim,l=t.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(T.isArray(l)){var d=[r(u,l[0])-c,r(u,l[1])-c];d[1]<d[0]&&d.reverse(),a=d[h]}else a=null!=l?r(u,l)-c:e?i.coordSysExtent[s.index][h]-c:n[s.wh];o.boundingLength=a,e&&(o.repeatCutLength=n[s.wh]),o.pxSign=a>0?1:a<0?-1:0}function r(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function a(t,e,n,i,o,r,a,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(n[h.wh]),p=t.getItemVisual(e,"symbolSize");T.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]),p[h.index]=P(p[h.index],d),p[c.index]=P(p[c.index],i?d:Math.abs(r)),u.symbolSize=p,(u.symbolScale=[p[0]/s,p[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}function s(t,e,n,i,o){var r=t.get(k)||0;r&&(O.attr({scale:e.slice(),rotation:n}),O.updateTransform(),r/=O.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r}function l(t,e,n,i,o,r,a,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(i){var v=Math.abs(l),y=T.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=P(y,e[p.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=C.isNumeric(i),S=w?i:I((v+b)/_);y=(v-S*g)/2/(x?S:S-1),_=g+2*y,b=x?0:2*y,w||"fixed"===i||(S=u?I((Math.abs(u)+b)/_):0),m=S*_-b,h.repeatTimes=S,h.symbolMargin=y}var M=f*(m/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[p.index]="start"===a?M:"end"===a?l-M:l/2,r&&(A[0]+=r[0],A[1]+=r[1]);var D=h.bundlePosition=[];D[d.index]=n[d.xy],D[p.index]=n[p.xy];var L=h.barRectShape=T.extend({},n);L[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+M)),L[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function u(t){var e=t.symbolPatternSize,n=D.createSymbol(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function c(t,e,n,i){function o(t){var e=h.slice(),i=n.pxSign,o=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(o=p-1-t),e[d.index]=g*(o-p/2+.5)+h[d.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function r(){w(t,function(t){t.trigger("emphasis")})}function a(){w(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,l=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,d=e.valueDim,p=n.repeatTimes||0,f=0,g=l[e.valueDim.index]+c+2*n.symbolMargin;for(w(t,function(t){t.__pictorialAnimationIndex=f,t.__pictorialRepeatTimes=p,f<p?S(t,null,o(f),n,i):S(t,null,{scale:[0,0]},n,i,function(){s.remove(t)}),v(t,n),f++});f<p;f++){var m=u(n);m.__pictorialAnimationIndex=f,m.__pictorialRepeatTimes=p,s.add(m);var y=o(f);S(m,{position:y.position,scale:[0,0]},{scale:y.scale,rotation:y.rotation},n,i),m.on("mouseover",r).on("mouseout",a),v(m,n)}}function h(t,e,n,i){function o(){this.trigger("emphasis")}function r(){this.trigger("normal")}var a=t.__pictorialBundle,s=t.__pictorialMainPath;s?S(s,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(s=t.__pictorialMainPath=u(n),a.add(s),S(s,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),s.on("mouseover",o).on("mouseout",r)),v(s,n)}function d(t,e,n){var i=T.extend({},e.barRectShape),o=t.__pictorialBarRect;o?S(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new A.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function p(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,r=T.extend({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(o)A.updateProps(o,{shape:r},s,l);else{r[a.wh]=0,o=new A.Rect({shape:r}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var u={};u[a.wh]=n.clipShape[a.wh],A[i?"updateProps":"initProps"](o,{shape:u},s,l)}}}function f(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=g,n.isAnimationEnabled=m,n}function g(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function m(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function v(t,e){t.off("emphasis").off("normal");var n=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:n.slice()},400,"elasticOut")})}function y(t,e,n,i){var o=new A.Group,r=new A.Group;return o.add(r),o.__pictorialBundle=r,r.attr("position",n.bundlePosition.slice()),n.symbolRepeat?c(o,e,n):h(o,e,n),d(o,n,i),p(o,e,n,i),o.__pictorialShapeStr=b(t,n),o.__pictorialSymbolMeta=n,o}function x(t,e,n){var i=n.animationModel,o=n.dataIndex,r=t.__pictorialBundle;A.updateProps(r,{position:n.bundlePosition.slice()},i,o),n.symbolRepeat?c(t,e,n,!0):h(t,e,n,!0),d(t,n,!0),p(t,e,n,!0)}function _(t,e,n,i){var o=i.__pictorialBarRect;o&&(o.style.text="");var r=[];w(i,function(t){r.push(t)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),T.each(r,function(t){A.updateProps(t,{scale:[0,0]},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function b(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function w(t,e,n){T.each(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function S(t,e,n,i,o,r){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&A[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,r)}function M(t,e,n){var i=n.color,o=n.dataIndex,r=n.itemModel,a=r.getModel("itemStyle.normal").getItemStyle(["color"]),s=r.getModel("itemStyle.emphasis").getItemStyle(),l=r.getShallow("cursor");w(t,function(t){t.setColor(i),t.setStyle(T.defaults({fill:i,opacity:n.opacity},a)),A.setHoverStyle(t,s),l&&(t.cursor=l),t.z2=n.z2});var u={},c=e.valueDim.posDesc[+(n.boundingLength>0)],h=t.__pictorialBarRect;L.setLabel(h.style,u,r,i,e.seriesModel,o,c),A.setHoverStyle(h,u)}function I(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var T=n(2),A=n(12),D=n(86),C=n(13),L=n(620),P=C.parsePercent,k=["itemStyle","normal","borderWidth"],E=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],O=new A.Circle,z=n(10).extendChartView({type:"pictorialBar",render:function(t,e,n){var o=this.group,r=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),c=s.grid.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:E[+u],categoryDim:E[1-u]};return r.diff(a).add(function(t){if(r.hasValue(t)){var e=f(r,t),n=i(r,t,e,h),a=y(r,h,n);r.setItemGraphicEl(t,a),o.add(a),M(a,h,n)}}).update(function(t,e){var n=a.getItemGraphicEl(e);if(!r.hasValue(t))return void o.remove(n);var s=f(r,t),l=i(r,t,s,h),u=b(r,l);n&&u!==n.__pictorialShapeStr&&(o.remove(n),r.setItemGraphicEl(t,null),n=null),n?x(n,h,l):n=y(r,h,l,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,o.add(n),M(n,h,l)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&_(a,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},dispose:T.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){_(i,e.dataIndex,t,e)}):n.removeAll()}});t.exports=z},function(t,e,n){var i=n(206)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getBarItemStyle:function(t){var e=i.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}}},function(t,e,n){var i=n(10);n(1432),n(1433),i.registerVisual(n(1435)),i.registerLayout(n(1434))},function(t,e,n){"use strict";var i=n(2),o=n(60),r=n(260),a=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(a,r.seriesModelMixin,!0),t.exports=a},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),o=i.getModel(u),r=e.getItemVisual(n,"color"),s=o.getItemStyle(["borderColor"]),l=t.childAt(t.whiskerIndex);l.style.set(s),l.style.stroke=r,l.dirty();var h=t.childAt(t.bodyIndex);h.style.set(s),h.style.stroke=r,h.dirty();var d=i.getModel(c).getItemStyle();a.setHoverStyle(t,d)}var o=n(2),r=n(120),a=n(12),s=n(260),l=r.extend({type:"boxplot",getStyleUpdater:function(){return i},dispose:o.noop});o.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),o=a.indexOf(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)}),e}function o(t){var e,n,i=t.axis,o=t.seriesModels,r=o.length,s=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===i.type)n=i.getBandWidth();else{var d=0;u(o,function(t){d=Math.max(d,t.getData().count())}),e=i.getExtent(),Math.abs(e[1]-e[0])}u(o,function(t){var e=t.get("boxWidth");a.isArray(e)||(e=[e,e]),h.push([l(e[0],n)||0,l(e[1],n)||0])});var p=.8*n-2,f=p/r*.3,g=(p-f*(r-1))/r,m=g/2-p/2;u(o,function(t,e){c.push(m),m+=f+g,s.push(Math.min(Math.max(g,h[e][0]),h[e][1]))})}function r(t,e,n){var i,o=t.coordinateSystem,r=t.getData(),s=n/2,l=t.get("layout"),u="horizontal"===l?0:1,c=1-u,h=["x","y"],d=[];a.each(r.dimensions,function(t){var e=r.getDimensionInfo(t),n=e.coordDim;n===h[c]?d.push(t):n===h[u]&&(i=t)}),null==i||d.length<5||r.each([i].concat(d),function(){function t(t){var n=[];n[u]=h,n[c]=t;var i;return isNaN(h)||isNaN(t)?i=[NaN,NaN]:(i=o.dataToPoint(n),i[u]+=e),i}function n(t,e){var n=t.slice(),i=t.slice();n[u]+=s,i[u]-=s,e?y.push(n,i):y.push(i,n)}function i(t){var e=[t.slice(),t.slice()];e[0][u]-=s,e[1][u]+=s,v.push(e)}var a=arguments,h=a[0],p=a[d.length+1],f=t(a[3]),g=t(a[1]),m=t(a[5]),v=[[g,t(a[2])],[m,t(a[4])]];i(g),i(m),i(f);var y=[];n(v[0][1],0),n(v[1][1],1),r.setItemLayout(p,{chartLayout:l,initBaseline:f[c],median:f,bodyEnds:y,whiskerEnds:v})})}var a=n(2),s=n(13),l=s.parsePercent,u=a.each;t.exports=function(t){var e=i(t);u(e,function(t){var e=t.seriesModels;e.length&&(o(t),u(e,function(e,n){r(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}},function(t,e){var n=["itemStyle","normal","borderColor"];t.exports=function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var o=i[e.seriesIndex%i.length],r=e.getData();r.setVisual({legendSymbol:"roundRect",color:e.get(n)||o}),t.isSeriesFiltered(e)||r.each(function(t){var e=r.getItemModel(t);r.setItemVisual(t,{color:e.get(n,!0)})})})}},function(t,e,n){var i=n(10);n(1437),n(1438),i.registerPreprocessor(n(1441)),i.registerVisual(n(1440)),i.registerLayout(n(1439))},function(t,e,n){"use strict";var i=n(2),o=n(60),r=n(260),a=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return n.rect(i.brushRect)}});i.mixin(a,r.seriesModelMixin,!0),t.exports=a},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),o=i.getModel(u),r=e.getItemVisual(n,"color"),s=e.getItemVisual(n,"borderColor")||r,l=o.getItemStyle(["color","color0","borderColor","borderColor0"]),h=t.childAt(t.whiskerIndex);h.useStyle(l),h.style.stroke=s;var d=t.childAt(t.bodyIndex);d.useStyle(l),d.style.fill=r,d.style.stroke=s;var p=i.getModel(c).getItemStyle();a.setHoverStyle(t,p)}var o=n(2),r=n(120),a=n(12),s=n(260),l=r.extend({type:"candlestick",getStyleUpdater:function(){return i},dispose:o.noop});o.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t,e){var n,i=t.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),s=a(r(t.get("barMaxWidth"),o),o),l=a(r(t.get("barMinWidth"),1),o),u=t.get("barWidth");return null!=u?a(u,o):Math.max(Math.min(o/2,s),l)}var o=n(2),r=n(2).retrieve,a=n(13).parsePercent;t.exports=function(t){t.eachSeriesByType("candlestick",function(t){var e,n=t.coordinateSystem,r=t.getData(),a=i(t,r),s=t.get("layout"),l="horizontal"===s?0:1,u=1-l,c=["x","y"],h=[];o.each(r.dimensions,function(t){var n=r.getDimensionInfo(t),i=n.coordDim;i===c[u]?h.push(t):i===c[l]&&(e=t)}),null==e||h.length<4||r.each([e].concat(h),function(){function t(t){var e=[];return e[l]=o,e[u]=t,isNaN(o)||isNaN(t)?[NaN,NaN]:n.dataToPoint(e)}function e(t,e){var n=t.slice(),i=t.slice();n[l]+=a/2,i[l]-=a/2,e?S.push(n,i):S.push(i,n)}var i=arguments,o=i[0],c=i[h.length+1],d=i[1],p=i[2],f=i[3],g=i[4],m=Math.min(d,p),v=Math.max(d,p),y=t(m),x=t(v),_=t(f),b=t(g),w=[[b,x],[_,y]],S=[];e(x,0),e(y,1),r.setItemLayout(c,{chartLayout:s,sign:d>p?-1:d<p?1:0,initBaseline:d>p?x[u]:y[u],bodyEnds:S,whiskerEnds:w,brushRect:function(){var e=t(Math.min(d,p,f,g)),n=t(Math.max(d,p,f,g));return e[l]-=a/2,n[l]-=a/2,{x:e[0],y:e[1],width:u?a:n[0]-e[0],height:u?n[1]-e[1]:a}}()})},!0)})}},function(t,e){var n=["itemStyle","normal","borderColor"],i=["itemStyle","normal","borderColor0"],o=["itemStyle","normal","color"],r=["itemStyle","normal","color0"];t.exports=function(t,e){t.eachRawSeriesByType("candlestick",function(e){var a=e.getData();a.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||a.each(function(t){var e=a.getItemModel(t),s=a.getItemLayout(t).sign;a.setItemVisual(t,{color:e.get(s>0?o:r),borderColor:e.get(s>0?n:i)})})})}},function(t,e,n){var i=n(2);t.exports=function(t){t&&i.isArray(t.series)&&i.each(t.series,function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,n){function i(t){var e,n=t.type;if("path"===n){var i=t.shape;e=d.makePath(i.pathData,null,{x:i.x||0,y:i.y||0,width:i.width||0,height:i.height||0},"center"),e.__customPathData=t.pathData}else if("image"===n)e=new d.Image({}),e.__customImagePath=t.style.image;else if("text"===n)e=new d.Text({}),e.__customText=t.style.text;else{var o=d[n.charAt(0).toUpperCase()+n.slice(1)];__DEV__&&h.assert(o,'graphic type "'+n+'" can not be found.'),e=new o}return e.__customGraphicType=n,e}function o(t,e,n,i,o,a){var s={},l=n.style||{};if(n.shape&&(s.shape=h.clone(n.shape)),n.position&&(s.position=n.position.slice()),n.scale&&(s.scale=n.scale.slice()),n.origin&&(s.origin=n.origin.slice()),n.rotation&&(s.rotation=n.rotation),"image"===t.type&&n.style){var u=s.style={};h.each(["x","y","width","height"],function(e){r(e,u,l,t.style,a)})}if("text"===t.type&&n.style){var u=s.style={};h.each(["x","y"],function(e){r(e,u,l,t.style,a)})}if("group"!==t.type&&(t.useStyle(l),a)){t.style.opacity=0;var c=l.opacity;null==c&&(c=1),d.initProps(t,{style:{opacity:c}},i,e)}a?t.attr(s):d.updateProps(t,s,i,e),t.attr({z2:n.z2||0,silent:n.silent}),!1!==n.styleEmphasis&&d.setHoverStyle(t,n.styleEmphasis)}function r(t,e,n,i,o){null==n[t]||o||(e[t]=n[t],n[t]=i[t])}function a(t,e,n,i){function o(t){null==t&&(t=M),E&&(I=e.getItemModel(t),T=I.getModel(y),A=I.getModel(x),D=p.findLabelValueDim(e),C=e.getItemVisual(t,"color"),E=!1)}function r(t,n){return null==n&&(n=M),e.get(e.getDimension(t||0),n)}function a(n,i){null==i&&(i=M),o(i);var r=I.getModel(m).getItemStyle();null!=C&&(r.fill=C);var a=e.getItemVisual(i,"opacity");return null!=a&&(r.opacity=a),p.setTextToStyle(e,i,D,r,t,T,C),n&&h.extend(r,n),r}function l(n,i){null==i&&(i=M),o(i);var r=I.getModel(v).getItemStyle();return p.setTextToStyle(e,i,D,r,t,A,C),n&&h.extend(r,n),r}function u(t,n){return null==n&&(n=M),e.getItemVisual(n,t)}function c(t){if(S.getBaseAxis){var e=S.getBaseAxis();return g.getLayoutOnAxis(h.defaults({axis:e},t),i)}}function f(){return n.getCurrentSeriesIndices()}function b(t){return d.getFont(t,n)}var w=t.get("renderItem"),S=t.coordinateSystem;__DEV__&&(h.assert(w,"series.render is required."),h.assert(S.prepareCustoms||_[S.type],"This coordSys does not support custom series."));var M,I,T,A,D,C,L=S.prepareCustoms?S.prepareCustoms():_[S.type](S),P=h.defaults({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:r,style:a,styleEmphasis:l,visual:u,barLayout:c,currentSeriesIndices:f,font:b},L.api),k={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:L.coordSys,dataInsideLength:e.count(),encode:s(t.getData())},E=!0;return function(t){return M=t,E=!0,w&&w(h.defaults({dataIndexInside:t,dataIndex:e.getRawIndex(t)},k),P)||{}}}function s(t){var e={};return h.each(t.dimensions,function(n,i){var o=t.getDimensionInfo(n);if(!o.isExtraCoord){var r=o.coordDim;(e[r]=e[r]||[])[o.coordDimIndex]=i}}),e}function l(t,e,n,i,o,r){(t=u(t,e,n,i,o,r))&&r.setItemGraphicEl(e,t)}function u(t,e,n,r,a,s){var l=n.type;if(!t||l===t.__customGraphicType||"path"===l&&n.pathData===t.__customPathData||"image"===l&&n.style.image===t.__customImagePath||"text"===l&&n.style.text===t.__customText||(a.remove(t),t=null),null!=l){var c=!t;return!t&&(t=i(n)),o(t,e,n,r,s,c),"group"===l&&h.each(n.children,function(n,i){u(t.childAt(i),e,n,r,t,s)}),a.add(t),t}}var c=n(10),h=n(2),d=n(12),p=n(627),f=n(117),g=n(392),m=["itemStyle","normal"],v=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_={cartesian2d:n(1620),geo:n(1627),singleAxis:n(1645),polar:n(1638),calendar:n(1615)};c.extendSeriesModel({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0},getInitialData:function(t,e){return f(t.data,this,e)}}),c.extendChartView({type:"custom",_data:null,render:function(t,e,n){var i=this._data,o=t.getData(),r=this.group,s=a(t,o,e,n);o.diff(i).add(function(e){o.hasValue(e)&&l(null,e,s(e),t,r,o)}).update(function(e,n){var a=i.getItemGraphicEl(n);o.hasValue(e)?l(a,e,s(e),t,r,o):a&&r.remove(a)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=o},dispose:h.noop})},function(t,e,n){var i=n(2),o=n(10);n(1444),n(1445),o.registerVisual(i.curry(n(158),"effectScatter","circle",null)),o.registerLayout(i.curry(n(393),"effectScatter"))},function(t,e,n){"use strict";var i=n(117),o=n(60);t.exports=o.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(t,e,n){var i=n(199),o=n(1472);n(10).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(o)},render:function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i),this.group.add(o.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}})},function(t,e,n){var i=n(2),o=n(10);n(1447),n(1448),o.registerVisual(i.curry(n(396),"funnel")),o.registerLayout(n(1449)),o.registerProcessor(i.curry(n(266),"funnel"))},function(t,e,n){"use strict";var i=n(55),o=n(29),r=n(85),a=n(10).extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var n=r(["value"],t.data),o=new i(n,this);return o.initData(t.data),o},_defaultLabelLine:function(t){o.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.show&&t.label.emphasis.show},getDataParams:function(t){var e=this.getData(),n=a.superCall(this,"getDataParams",t),i=e.getSum("value");return n.percent=i?+(e.get("value",t)/i*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});t.exports=a},function(t,e,n){function i(t,e){function n(){a.ignore=a.hoverIgnore,s.ignore=s.hoverIgnore}function i(){a.ignore=a.normalIgnore,s.ignore=s.normalIgnore}r.Group.call(this);var o=new r.Polygon,a=new r.Polyline,s=new r.Text;this.add(o),this.add(a),this.add(s),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function o(t,e,n,i){var o=i.getModel("textStyle"),r=i.get("position"),s="inside"===r||"inner"===r||"center"===r;return{fill:o.getTextColor()||(s?"#fff":t.getItemVisual(e,"color")),textFont:o.getFont(),text:a.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var r=n(12),a=n(2),s=i.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(t,e,n){var i=this.childAt(0),o=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,i.useStyle({}),n?(i.setShape({points:u.points}),i.setStyle({opacity:0}),r.initProps(i,{style:{opacity:c}},o,e)):r.updateProps(i,{style:{opacity:c},shape:{points:u.points}},o,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");i.setStyle(a.defaults({lineJoin:"round",fill:d},h.getModel("normal").getItemStyle(["opacity"]))),i.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),r.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");r.updateProps(n,{shape:{points:u.linePoints||u.linePoints}},a,e),r.updateProps(i,{style:{x:u.x,y:u.y}},a,e),i.attr({style:{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getModel("label.normal"),d=s.getModel("label.emphasis"),p=s.getModel("labelLine.normal"),f=s.getModel("labelLine.emphasis");i.setStyle(o(t,e,"normal",h)),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:c}),n.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=o(t,e,"emphasis",d),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},a.inherits(i,r.Group);var u=n(120).extend({type:"funnel",render:function(t,e,n){var o=t.getData(),r=this._data,a=this.group;o.diff(r).add(function(t){var e=new i(o,t);o.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(o,t),a.add(n),o.setItemGraphicEl(t,n)}).remove(function(t){var e=r.getItemGraphicEl(t);a.remove(e)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=u},function(t,e,n){function i(t,e){return a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function o(t,e){for(var n=t.mapArray("value",function(t){return t}),i=[],o="ascending"===e,r=0,a=t.count();r<a;r++)i[r]=r;return"function"===typeof e?i.sort(e):"none"!==e&&i.sort(function(t,e){return o?n[t]-n[e]:n[e]-n[t]}),i}function r(t){t.each(function(e){var n,i,o,r,a=t.getItemModel(e),s=a.getModel("label.normal"),l=s.get("position"),u=a.getModel("labelLine.normal"),c=t.getItemLayout(e),h=c.points,d="inner"===l||"inside"===l||"center"===l;if(d)i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center",r=[[i,o],[i,o]];else{var p,f,g,m=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,g=p-m,i=g-5,n="right"):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,g=p+m,i=g+5,n="left");var v=f;r=[[p,f],[g,v]],o=v}c.label={linePoints:r,x:i,y:o,verticalAlign:"middle",textAlign:n,inside:d}})}var a=n(43),s=n(13),l=s.parsePercent;t.exports=function(t,e,n){t.eachSeriesByType("funnel",function(t){var n=t.getData(),a=t.get("sort"),u=i(t,e),c=o(n,a),h=[l(t.get("minSize"),u.width),l(t.get("maxSize"),u.width)],d=n.getDataExtent("value"),p=t.get("min"),f=t.get("max");null==p&&(p=Math.min(d[0],0)),null==f&&(f=d[1]);var g=t.get("funnelAlign"),m=t.get("gap"),v=(u.height-m*(n.count()-1))/n.count(),y=u.y,x=function(t,e){var i,o=n.get("value",t)||0,r=s.linearMap(o,[p,f],h,!0);switch(g){case"left":i=u.x;break;case"center":i=u.x+(u.width-r)/2;break;case"right":i=u.x+u.width-r}return[[i,e],[i+r,e]]};"ascending"===a&&(v=-v,m=-m,y+=u.height,c=c.reverse());for(var _=0;_<c.length;_++){var b=c[_],w=c[_+1],S=x(b,y),M=x(w,y+v);y+=v+m,n.setItemLayout(b,{points:S.concat(M.slice().reverse())})}r(n)})}},function(t,e,n){n(1451),n(1452)},function(t,e,n){var i=n(55),o=n(60),r=n(2),a=o.extend({type:"series.gauge",getInitialData:function(t,e){var n=new i(["value"],this),o=t.data||[];return r.isArray(o)||(o=[o]),n.initData(o),n},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,textStyle:{color:"auto"}},pointer:{show:!0,length:"80%",width:8},itemStyle:{normal:{color:"auto"}},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}}});t.exports=a},function(t,e,n){function i(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o);return{cx:l(n[0],e.getWidth()),cy:l(n[1],e.getHeight()),r:l(t.get("radius"),r/2)}}function o(t,e){return e&&("string"===typeof e?t=e.replace("{value}",null!=t?t:""):"function"===typeof e&&(t=e(t))),t}var r=n(1453),a=n(12),s=n(13),l=s.parsePercent,u=2*Math.PI,c=n(120).extend({type:"gauge",render:function(t,e,n){this.group.removeAll();var o=t.get("axisLine.lineStyle.color"),r=i(t,n);this._renderMain(t,e,n,o,r)},dispose:function(){},_renderMain:function(t,e,n,i,o){for(var r=this.group,s=t.getModel("axisLine"),l=s.getModel("lineStyle"),c=t.get("clockwise"),h=-t.get("startAngle")/180*Math.PI,d=-t.get("endAngle")/180*Math.PI,p=(d-h)%u,f=h,g=l.get("width"),m=0;m<i.length;m++){var v=Math.min(Math.max(i[m][0],0),1),d=h+p*v,y=new a.Sector({shape:{startAngle:f,endAngle:d,cx:o.cx,cy:o.cy,clockwise:c,r0:o.r-g,r:o.r},silent:!0});y.setStyle({fill:i[m][1]}),y.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),r.add(y),f=d}var x=function(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};if(!c){var _=h;h=d,d=_}this._renderTicks(t,e,n,x,o,h,d,c),this._renderPointer(t,e,n,x,o,h,d,c),this._renderTitle(t,e,n,x,o),this._renderDetail(t,e,n,x,o)},_renderTicks:function(t,e,n,i,r,u,c,h){for(var d=this.group,p=r.cx,f=r.cy,g=r.r,m=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),x=t.getModel("axisTick"),_=t.getModel("axisLabel"),b=t.get("splitNumber"),w=x.get("splitNumber"),S=l(y.get("length"),g),M=l(x.get("length"),g),I=u,T=(c-u)/b,A=T/w,D=y.getModel("lineStyle").getLineStyle(),C=x.getModel("lineStyle").getLineStyle(),L=_.getModel("textStyle"),P=0;P<=b;P++){var k=Math.cos(I),E=Math.sin(I);if(y.get("show")){var O=new a.Line({shape:{x1:k*g+p,y1:E*g+f,x2:k*(g-S)+p,y2:E*(g-S)+f},style:D,silent:!0});"auto"===D.stroke&&O.setStyle({stroke:i(P/b)}),d.add(O)}if(_.get("show")){var z=o(s.round(P/b*(v-m)+m),_.get("formatter")),R=_.get("distance"),N=new a.Text({style:{text:z,x:k*(g-S-R)+p,y:E*(g-S-R)+f,fill:L.getTextColor(),textFont:L.getFont(),textVerticalAlign:E<-.4?"top":E>.4?"bottom":"middle",textAlign:k<-.4?"left":k>.4?"right":"center"},silent:!0});"auto"===N.style.fill&&N.setStyle({fill:i(P/b)}),d.add(N)}if(x.get("show")&&P!==b){for(var V=0;V<=w;V++){var k=Math.cos(I),E=Math.sin(I),B=new a.Line({shape:{x1:k*g+p,y1:E*g+f,x2:k*(g-M)+p,y2:E*(g-M)+f},silent:!0,style:C});"auto"===C.stroke&&B.setStyle({stroke:i((P+V/w)/b)}),d.add(B),I+=A}I-=A}else I+=T}},_renderPointer:function(t,e,n,i,o,u,c,h){var d=this.group,p=this._data;if(!t.get("pointer.show"))return void(p&&p.eachItemGraphicEl(function(t){d.remove(t)}));var f=[+t.get("min"),+t.get("max")],g=[u,c],m=t.getData();m.diff(p).add(function(e){var n=new r({shape:{angle:u}});a.initProps(n,{shape:{angle:s.linearMap(m.get("value",e),f,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)}).update(function(e,n){var i=p.getItemGraphicEl(n);a.updateProps(i,{shape:{angle:s.linearMap(m.get("value",e),f,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)}).remove(function(t){var e=p.getItemGraphicEl(t);d.remove(e)}).execute(),m.eachItemGraphicEl(function(t,e){var n=m.getItemModel(e),r=n.getModel("pointer");t.setShape({x:o.cx,y:o.cy,width:l(r.get("width"),o.r),r:l(r.get("length"),o.r)}),t.useStyle(n.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",i(s.linearMap(m.get("value",e),f,[0,1],!0))),a.setHoverStyle(t,n.getModel("itemStyle.emphasis").getItemStyle())}),this._data=m},_renderTitle:function(t,e,n,i,o){var r=t.getModel("title");if(r.get("show")){var u=r.getModel("textStyle"),c=r.get("offsetCenter"),h=o.cx+l(c[0],o.r),d=o.cy+l(c[1],o.r),p=new a.Text({style:{x:h,y:d,text:t.getData().getName(0),fill:u.getTextColor(),textFont:u.getFont(),textAlign:"center",textVerticalAlign:"middle"}});if("auto"===p.style.fill){var f=+t.get("min"),g=+t.get("max"),m=t.getData().get("value",0);p.setStyle("fill",i(s.linearMap(m,[f,g],[0,1],!0)))}this.group.add(p)}},_renderDetail:function(t,e,n,i,r){var u=t.getModel("detail"),c=+t.get("min"),h=+t.get("max");if(u.get("show")){var d=u.getModel("textStyle"),p=u.get("offsetCenter"),f=r.cx+l(p[0],r.r),g=r.cy+l(p[1],r.r),m=l(u.get("width"),r.r),v=l(u.get("height"),r.r),y=t.getData().get("value",0),x=new a.Rect({shape:{x:f-m/2,y:g-v/2,width:m,height:v},style:{text:o(y,u.get("formatter")),fill:u.get("backgroundColor"),textFill:d.getTextColor(),textFont:d.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",i(s.linearMap(y,[c,h],[0,1],!0))),x.setStyle(u.getItemStyle(["color"])),this.group.add(x)}}});t.exports=c},function(t,e,n){t.exports=n(62).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(r>=o/3?1:2),l=e.y-i(a)*r*(r>=o/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)}})},function(t,e,n){var i=n(10),o=n(2);n(1455),n(1456),n(1465),i.registerProcessor(n(1458)),i.registerVisual(o.curry(n(158),"graph","circle",null)),i.registerVisual(n(1459)),i.registerVisual(n(1462)),i.registerLayout(n(1466)),i.registerLayout(n(1460)),i.registerLayout(n(1464)),i.registerCoordinateSystem("graphView",{create:n(1461)})},function(t,e,n){"use strict";var i=n(55),o=n(2),r=n(29),a=n(53),s=n(35),l=n(626),u=n(10).extendSeriesModel({type:"series.graph",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){u.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){u.superApply(this,"mergeDefaultAndTheme",arguments),r.defaultEmphasis(t.edgeLabel,r.LABEL_OPTIONS)},getInitialData:function(t,e){function n(t,n){function i(t){return t=this.parsePath(t),t&&"label"===t[0]?s:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t});var o=r.getModel("edgeLabel"),s=new a({label:o.option},o.parentModel,e);n.wrapMethod("getItemModel",function(t){return t.customizeGetParent(i),t})}var i=t.edges||t.links||[],o=t.data||t.nodes||[],r=this;if(o&&i)return l(o,i,this,!0,n).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),r=i.graph.getEdgeByIndex(t),a=i.getName(r.node1.dataIndex),l=i.getName(r.node2.dataIndex),c=[];return null!=a&&c.push(a),null!=l&&c.push(l),c=s.encodeHTML(c.join(" > ")),o.value&&(c+=" : "+s.encodeHTML(o.value)),c}return u.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=o.map(this.option.categories||[],function(t){return null!=t.value?t:o.extend({value:0},t)}),e=new i(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return u.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});t.exports=u},function(t,e,n){function i(t,e){return t.getVisual("opacity")||t.getModel().get(e)}var o=n(199),r=n(379),a=n(263),s=n(643),l=n(384),u=n(12),c=n(1457),h=n(2),d=["itemStyle","normal","opacity"],p=["lineStyle","normal","opacity"];n(10).extendChartView({type:"graph",init:function(t,e){var n=new o,i=new r,s=this.group;this._controller=new a(e.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var o=this._symbolDraw,r=this._lineDraw,a=this.group;if("view"===i.type){var s={position:i.position,scale:i.scale};this._firstRender?a.attr(s):u.updateProps(a,s,t)}c(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();o.updateData(l);var h=t.getEdgeData();r.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get("force.layoutAnimation");d&&this._startForceLayoutIteration(d,p),l.eachItemGraphicEl(function(e,i){var o=l.getItemModel(i);e.off("drag").off("dragend");var r=l.getItemModel(i).get("draggable");r&&e.on("drag",function(){d&&(d.warmUp(),!this._layouting&&this._startForceLayoutIteration(d,p),d.setFixed(i),l.setItemLayout(i,e.position))},this).on("dragend",function(){d&&d.setUnfixed(i)},this),e.setDraggable(r&&d),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),o.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this);var f="circular"===t.get("layout")&&t.get("circular.rotateLabel"),g=l.getLayout("cx"),m=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=t.getSymbolPath();if(f){var i=l.getItemLayout(e),o=Math.atan2(i[1]-m,i[0]-g);o<0&&(o=2*Math.PI+o);var r=i[0]<g;r&&(o-=Math.PI);var a=r?"left":"right";n.setStyle({textRotation:o,textPosition:a}),n.hoverStyle&&(n.hoverStyle.textPosition=a)}else n.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(t,e,n,o){function r(t,e){var n=i(t,e),o=t.getGraphicEl();null==n&&(n=1),o.traverse(function(t){t.trigger("normal"),"group"!==t.type&&t.setStyle("opacity",.1*n)})}function a(t,e){var n=i(t,e);t.getGraphicEl().traverse(function(t){t.trigger("emphasis"),"group"!==t.type&&t.setStyle("opacity",n)})}var s=this._model.getData(),l=o.dataIndex,u=s.getItemGraphicEl(l);if(u){var c=s.graph,f=u.dataType;if(null!==l&&"edge"!==f){c.eachNode(function(t){r(t,d)}),c.eachEdge(function(t){r(t,p)});var g=c.getNodeByIndex(l);a(g,d),h.each(g.edges,function(t){t.dataIndex<0||(a(t,p),a(t.node1,d),a(t.node2,d))})}}},unfocusNodeAdjacency:function(t,e,n,o){var r=this._model.getData().graph;r.eachNode(function(t){var e=i(t,d);t.getGraphicEl().traverse(function(t){t.trigger("normal"),"group"!==t.type&&t.setStyle("opacity",e)})}),r.eachEdge(function(t){var e=i(t,p);t.getGraphicEl().traverse(function(t){t.trigger("normal"),"group"!==t.type&&t.setStyle("opacity",e)})})},_startForceLayoutIteration:function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},_updateController:function(t,e,n){var i=this._controller,o=this._controllerHost,r=this.group;if(i.setPointerChecker(function(e,i,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(i,o)&&!l.onIrrelevantElement(e,n,t)}),"view"!==t.coordinateSystem.type)return void i.disable();i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",function(e,i){s.updateViewOnPan(o,e,i),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e,dy:i})}).on("zoom",function(e,i,r){s.updateViewOnZoom(o,e,i,r),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e,originX:i,originY:r}),this._updateNodeAndLinkScale(),c(t.getGraph(),this._getNodeGlobalScale(t)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),n=this._getNodeGlobalScale(t),i=[n,n];e.eachItemGraphicEl(function(t,e){t.attr("scale",i)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scale,o=i&&i[0]||1;return((e.getZoom()-1)*n+1)/o},updateLayout:function(t){c(t.getGraph(),this._getNodeGlobalScale(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}})},function(t,e,n){function i(t,e,n){for(var i,o=t[0],r=t[1],d=t[2],p=1/0,f=n*n,g=.1,m=.1;m<=.9;m+=.1){a[0]=u(o[0],r[0],d[0],m),a[1]=u(o[1],r[1],d[1],m);var v=h(c(a,e)-f);v<p&&(p=v,i=m)}for(var y=0;y<32;y++){var x=i+g;s[0]=u(o[0],r[0],d[0],i),s[1]=u(o[1],r[1],d[1],i),l[0]=u(o[0],r[0],d[0],x),l[1]=u(o[1],r[1],d[1],x);var v=c(s,e)-f;if(h(v)<.01)break;var _=c(l,e)-f;g/=2,v<0?_>=0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}var o=n(126),r=n(34),a=[],s=[],l=[],u=o.quadraticAt,c=r.distSquare,h=Math.abs;t.exports=function(t,e){function n(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var a=[],s=o.quadraticSubdivide,l=[[],[],[]],u=[[],[]],c=[];e/=2,t.eachEdge(function(t,o){var h=t.getLayout(),d=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");h.__original||(h.__original=[r.clone(h[0]),r.clone(h[1])],h[2]&&h.__original.push(r.clone(h[2])));var f=h.__original;if(null!=h[2]){if(r.copy(l[0],f[0]),r.copy(l[1],f[2]),r.copy(l[2],f[1]),d&&"none"!=d){var g=n(t.node1),m=i(l,f[0],g*e);s(l[0][0],l[1][0],l[2][0],m,a),l[0][0]=a[3],l[1][0]=a[4],s(l[0][1],l[1][1],l[2][1],m,a),l[0][1]=a[3],l[1][1]=a[4]}if(p&&"none"!=p){var g=n(t.node2),m=i(l,f[1],g*e);s(l[0][0],l[1][0],l[2][0],m,a),l[1][0]=a[1],l[2][0]=a[2],s(l[0][1],l[1][1],l[2][1],m,a),l[1][1]=a[1],l[2][1]=a[2]}r.copy(h[0],l[0]),r.copy(h[1],l[2]),r.copy(h[2],l[1])}else{if(r.copy(u[0],f[0]),r.copy(u[1],f[1]),r.sub(c,u[1],u[0]),r.normalize(c,c),d&&"none"!=d){var g=n(t.node1);r.scaleAndAdd(u[0],u[0],c,g*e)}if(p&&"none"!=p){var g=n(t.node2);r.scaleAndAdd(u[1],u[1],c,-g*e)}r.copy(h[0],u[0]),r.copy(h[1],u[1])}})}},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph(),o=i.data,r=n.mapArray(n.getName);o.filterSelf(function(t){var n=o.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=r[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0})},this)}},function(t,e){t.exports=function(t){var e={};t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getData(),o={};n.each(function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.get("itemStyle.normal.color")||t.getColorFromPalette(r,e);n.setItemVisual(i,"color",s)}),n.count()&&i.each(function(t){var e=i.getItemModel(t),r=e.getShallow("category");null!=r&&("string"===typeof r&&(r=o["ec-"+r]),i.getItemVisual(t,"color",!0)||i.setItemVisual(t,"color",n.getItemVisual(r,"color")))})})}},function(t,e,n){var i=n(621);t.exports=function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&i(t)})}},function(t,e,n){function i(t,e,n){var i=t.getBoxLayoutParams();return i.aspect=n,r.getLayoutRect(i,{width:e.getWidth(),height:e.getHeight()})}var o=n(653),r=n(43),a=n(459);t.exports=function(t,e){var n=[];return t.eachSeriesByType("graph",function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var s=t.getData(),l=s.mapArray(function(t){var e=s.getItemModel(t);return[+e.get("x"),+e.get("y")]}),u=[],c=[];a.fromPoints(l,u,c),c[0]-u[0]===0&&(c[0]+=1,u[0]-=1),c[1]-u[1]===0&&(c[1]+=1,u[1]-=1);var h=(c[0]-u[0])/(c[1]-u[1]),d=i(t,e,h);isNaN(h)&&(u=[d.x,d.y],c=[d.x+d.width,d.y+d.height]);var p=c[0]-u[0],f=c[1]-u[1],g=d.width,m=d.height,v=t.coordinateSystem=new o;v.zoomLimit=t.get("scaleLimit"),v.setBoundingRect(u[0],u[1],p,f),v.setViewRect(d.x,d.y,g,m),v.setCenter(t.get("center")),v.setZoom(t.get("zoom")),n.push(v)}}),n}},function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}t.exports=function(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),i=t.getEdgeData(),o=n(t.get("edgeSymbol")),r=n(t.get("edgeSymbolSize")),a="lineStyle.normal.color".split("."),s="lineStyle.normal.opacity".split(".");i.setVisual("fromSymbol",o&&o[0]),i.setVisual("toSymbol",o&&o[1]),i.setVisual("fromSymbolSize",r&&r[0]),i.setVisual("toSymbolSize",r&&r[1]),i.setVisual("color",t.get(a)),i.setVisual("opacity",t.get(s)),i.each(function(t){var o=i.getItemModel(t),r=e.getEdgeByIndex(t),l=n(o.getShallow("symbol",!0)),u=n(o.getShallow("symbolSize",!0)),c=o.get(a),h=o.get(s);switch(c){case"source":c=r.node1.getVisual("color");break;case"target":c=r.node2.getVisual("color")}l[0]&&r.setVisual("fromSymbol",l[0]),l[1]&&r.setVisual("toSymbol",l[1]),u[0]&&r.setVisual("fromSymbolSize",u[0]),u[1]&&r.setVisual("toSymbolSize",u[1]),r.setVisual("color",c),r.setVisual("opacity",h)})})}},function(t,e,n){var i=n(34),o=i.scaleAndAdd;t.exports=function(t,e,n){for(var r=n.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<t.length;c++){var h=t[c];h.p||(h.p=i.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=i.clone(h.p),h.edges=null}var d=.6;return{warmUp:function(){d=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var r=[],a=t.length,s=0;s<e.length;s++){var c=e[s],h=c.n1,p=c.n2;i.sub(r,p.p,h.p);var f=i.len(r)-c.d,g=p.w/(h.w+p.w);i.normalize(r,r),!h.fixed&&o(h.p,h.p,r,g*f*d),!p.fixed&&o(p.p,p.p,r,-(1-g)*f*d)}for(var s=0;s<a;s++){var m=t[s];m.fixed||(i.sub(r,l,m.p),i.scaleAndAdd(m.p,m.p,r,u*d))}for(var s=0;s<a;s++)for(var h=t[s],v=s+1;v<a;v++){var p=t[v];i.sub(r,p.p,h.p);var f=i.len(r);0===f&&(i.set(r,Math.random()-.5,Math.random()-.5),f=1);var y=(h.rep+p.rep)/f/f;!h.fixed&&o(h.pp,h.pp,r,y),!p.fixed&&o(p.pp,p.pp,r,-y)}for(var x=[],s=0;s<a;s++){var m=t[s];m.fixed||(i.sub(x,m.p,m.pp),i.scaleAndAdd(m.p,m.p,x,d),i.copy(m.pp,m.p))}d*=.992,n&&n(t,e,d<.01)}}}},function(t,e,n){var i=n(1463),o=n(13),r=n(623),a=n(621),s=n(34),l=n(2);t.exports=function(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},u=t.getGraph(),c=u.data,h=u.edgeData,d=t.getModel("force"),p=d.get("initLayout");t.preservedPoints?c.each(function(t){var e=c.getId(t);c.setItemLayout(t,n[e]||[NaN,NaN])}):p&&"none"!==p?"circular"===p&&a(t):r(t);var f=c.getDataExtent("value"),g=h.getDataExtent("value"),m=d.get("repulsion"),v=d.get("edgeLength");l.isArray(m)||(m=[m,m]),l.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=c.mapArray("value",function(t,e){var n=c.getItemLayout(e),i=o.linearMap(t,f,m);return isNaN(i)&&(i=(m[0]+m[1])/2),{w:i,rep:i,fixed:c.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),x=h.mapArray("value",function(t,e){var n=u.getEdgeByIndex(e),i=o.linearMap(t,g,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{n1:y[n.node1.dataIndex],n2:y[n.node2.dataIndex],d:i,curveness:n.getModel().get("lineStyle.normal.curveness")||0}}),e=t.coordinateSystem,_=e.getBoundingRect(),b=i(y,x,{rect:_,gravity:d.get("gravity")}),w=b.step;b.step=function(t){for(var e=0,i=y.length;e<i;e++)y[e].fixed&&s.copy(y[e].p,u.getNodeByIndex(e).getLayout());w(function(e,i,o){for(var r=0,a=e.length;r<a;r++)e[r].fixed||u.getNodeByIndex(r).setLayout(e[r].p),n[c.getId(r)]=e[r].p;for(var r=0,a=i.length;r<a;r++){var l=i[r],h=u.getEdgeByIndex(r),d=l.n1.p,p=l.n2.p,f=h.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],s.copy(f[0],d),s.copy(f[1],p),+l.curveness&&(f[2]=[(d[0]+p[0])/2-(d[1]-p[1])*l.curveness,(d[1]+p[1])/2-(p[0]-d[0])*l.curveness]),h.setLayout(f)}t&&t(o)})},t.forceLayout=b,t.preservedPoints=n,b.step()}else t.forceLayout=null})}},function(t,e,n){var i=n(10),o=n(618),r={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(r,function(t,e){e.eachComponent({mainType:"series",query:t},function(e){var n=e.coordinateSystem,i=o.updateCenterAndZoom(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})}),i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(t,e,n){var i=n(623),o=n(622);t.exports=function(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),a=n.dimensions;r.each(a,function(){for(var t,e=arguments,i=[],o=0;o<a.length;o++)isNaN(e[o])||(t=!0),i.push(e[o]);var s=e[e.length-1];t?r.setItemLayout(s,n.dataToPoint(i)):r.setItemLayout(s,[NaN,NaN])}),o(r.graph)}else e&&"none"!==e||i(t)})}},function(t,e,n){n(1469),n(1470)},function(t,e,n){function i(){var t=o.createCanvas();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}var o=n(2);i.prototype={update:function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(t,o,"inRange"),l=this._getGradient(t,o,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],v=f[2],y=i(v);h.globalAlpha=y,h.drawImage(a,g-u,m-u)}for(var x=h.getImageData(0,0,c.width,c.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity,I=M-S;b<w;){var y=_[b+3]/256,T=4*Math.floor(255*y);if(y>0){var A=r(y)?s:l;y>0&&(y=y*I+S),_[b++]=A[T],_[b++]=A[T+1],_[b++]=A[T+2],_[b++]=A[T+3]*y*256}else b+=4}return h.putImageData(x,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=o.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,o=i[n]||(i[n]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o}},t.exports=i},function(t,e,n){var i=n(60),o=n(117);t.exports=i.extend({type:"series.heatmap",getInitialData:function(t,e){return o(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(t,e,n){function i(t,e,n){var i=t[1]-t[0];e=l.map(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var o=e.length,r=0;return function(t){for(var i=r;i<o;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){r=i;break}}if(i===o)for(var i=r-1;i>=0;i--){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){r=i;break}}return i>=0&&i<o&&n[i]}}function o(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function r(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var a=n(12),s=n(1468),l=n(2);t.exports=n(10).extendChartView({type:"heatmap",render:function(t,e,n){var i;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),__DEV__&&!i)throw new Error("Heatmap must use with visualMap");this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(o,t,n):r(o)&&this._renderOnGeo(o,t,i,n)},dispose:function(){},_renderOnCartesianAndCalendar:function(t,e,n){if("cartesian2d"===t.type){var i=t.getAxis("x"),o=t.getAxis("y");if(__DEV__){if("category"!==i.type||"category"!==o.type)throw new Error("Heatmap on cartesian must have two category axes");if(!i.onBand||!o.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}var r=i.getBandWidth(),s=o.getBandWidth()}var u=this.group,c=e.getData(),h=e.getModel("itemStyle.normal").getItemStyle(["color"]),d=e.getModel("itemStyle.emphasis").getItemStyle(),p=e.getModel("label.normal"),f=e.getModel("label.emphasis"),g=t.type,m="cartesian2d"===g?[e.coordDimToDataDim("x")[0],e.coordDimToDataDim("y")[0],e.coordDimToDataDim("value")[0]]:[e.coordDimToDataDim("time")[0],e.coordDimToDataDim("value")[0]];c.each(function(n){var i;if("cartesian2d"===g){if(isNaN(c.get(m[2],n)))return;var o=t.dataToPoint([c.get(m[0],n),c.get(m[1],n)]);i=new a.Rect({shape:{x:o[0]-r/2,y:o[1]-s/2,width:r,height:s},style:{fill:c.getItemVisual(n,"color"),opacity:c.getItemVisual(n,"opacity")}})}else{if(isNaN(c.get(m[1],n)))return;i=new a.Rect({z2:1,shape:t.dataToRect([c.get(m[0],n)]).contentShape,style:{fill:c.getItemVisual(n,"color"),opacity:c.getItemVisual(n,"opacity")}})}var v=c.getItemModel(n);c.hasItemOption&&(h=v.getModel("itemStyle.normal").getItemStyle(["color"]),d=v.getModel("itemStyle.emphasis").getItemStyle(),p=v.getModel("label.normal"),f=v.getModel("label.emphasis"));var y=e.getRawValue(n),x="-";y&&null!=y[2]&&(x=y[2]),p.getShallow("show")&&(a.setText(h,p),h.text=e.getFormattedLabel(n,"normal")||x),f.getShallow("show")&&(a.setText(d,f),d.text=e.getFormattedLabel(n,"emphasis")||x),i.setStyle(h),a.setHoverStyle(i,c.hasItemOption?d:l.extend({},d)),u.add(i),c.setItemGraphicEl(n,i)})},_renderOnGeo:function(t,e,n,r){var l=n.targetVisuals.inRange,u=n.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),p=t.getRoamTransform().transform;d.applyTransform(p);var f=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,r.getWidth()),v=Math.min(d.height+d.y,r.getHeight()),y=m-f,x=v-g,_=c.mapArray(["lng","lat","value"],function(e,n,i){var o=t.dataToPoint([e,n]);return o[0]-=f,o[1]-=g,o.push(i),o}),b=n.getExtent(),w="visualMap.continuous"===n.type?o(b,n.option.range):i(b,n.getPieceList(),n.option.selected);h.update(_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},w);var S=new a.Image({style:{width:y,height:x,x:f,y:g,image:h.canvas},silent:!0});this.group.add(S)}})},function(t,e,n){function i(t,e,n){a.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var o=n(625),r=n(2),a=n(624),s=n(34),l=i.prototype;l.createLine=function(t,e,n){return new o(t,e,n)},l.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var r=e[o-1],a=e[o];i+=s.dist(r,a),n.push(i)}if(0!==i){for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}},l.getLineLength=function(t){return this._length},l.updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r,a=this._lastFrame;if(e<this._lastFramePercent){var l=Math.min(a+1,o-1);for(r=l;r>=0&&!(i[r]<=e);r--);r=Math.min(r,o-2)}else{for(var r=a;r<o&&!(i[r]>e);r++);r=Math.min(r-1,o-2)}s.lerp(t.position,n[r],n[r+1],(e-i[r])/(i[r+1]-i[r]));var u=n[r+1][0]-n[r][0],c=n[r+1][1]-n[r][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},r.inherits(i,a),t.exports=i},function(t,e,n){function i(t){return a.isArray(t)||(t=[+t,+t]),t}function o(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function r(t,e){h.call(this);var n=new c(t,e),i=new h;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var a=n(2),s=n(86),l=n(12),u=n(13),c=n(380),h=l.Group,d=r.prototype;d.stopEffectAnimation=function(){this.childAt(1).removeAll()},d.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var a=s.createSymbol(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-r/3*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(l).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),i.add(a)}o(i,t)},d.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i;r++){var a=i[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}o(n,t)},d.highlight=function(){this.trigger("emphasis")},d.downplay=function(){this.trigger("normal")},d.updateData=function(t,e){var n=t.hostModel;this.childAt(0).updateData(t,e);var o=this.childAt(1),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=i(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"color");o.attr("scale",s),o.traverse(function(t){t.attr({fill:l})});var c=r.getShallow("symbolOffset");if(c){var h=o.position;h[0]=u.parsePercent(c[0],s[0]),h[1]=u.parsePercent(c[1],s[1])}o.rotation=(r.getShallow("symbolRotate")||0)*Math.PI/180||0;var d={};if(d.showEffectOn=n.get("showEffectOn"),d.rippleScale=r.get("rippleEffect.scale"),d.brushType=r.get("rippleEffect.brushType"),d.period=1e3*r.get("rippleEffect.period"),d.effectOffset=e/t.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=a,d.color=l,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn)this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),f=function(){p.trigger("emphasis"),"render"!==d.showEffectOn&&this.startEffectAnimation(d)},g=function(){p.trigger("normal"),"render"!==d.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",f,this).on("mouseout",g,this).on("emphasis",f,this).on("normal",g,this)}this._effectCfg=d},d.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},a.inherits(r,h),t.exports=r},function(t,e,n){function i(){this.group=new o.Group,this._lineEl=new s}var o=n(12),r=n(836),a=n(834),s=o.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(t,e){for(var n=e.segs,i=e.polyline,o=0;o<n.length;o++){var r=n[o];if(i){t.moveTo(r[0][0],r[0][1]);for(var a=1;a<r.length;a++)t.lineTo(r[a][0],r[a][1])}else t.moveTo(r[0][0],r[0][1]),r.length>2?t.quadraticCurveTo(r[2][0],r[2][1],r[1][0],r[1][1]):t.lineTo(r[1][0],r[1][1])}},findDataIndex:function(t,e){for(var n=this.shape,i=n.segs,o=n.polyline,s=Math.max(this.style.lineWidth,1),l=0;l<i.length;l++){var u=i[l];if(o){for(var c=1;c<u.length;c++)if(a.containStroke(u[c-1][0],u[c-1][1],u[c][0],u[c][1],s,t,e))return l}else if(u.length>2){if(r.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(a.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=i.prototype;l.updateData=function(t){this.group.removeAll();var e=this._lineEl,n=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:n.get("polyline")}),e.useStyle(n.getModel("lineStyle.normal").getLineStyle());var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n)}),this.group.add(e)},l.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(){this.group=new o.Group,this._symbolEl=new a({})}var o=n(12),r=n(86),a=o.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var n=e.points,i=e.sizes,o=this.symbolProxy,r=o.shape,a=0;a<n.length;a++){var s=n[a];if(!isNaN(s[0])&&!isNaN(s[1])){var l=i[a];l[0]<4?t.rect(s[0]-l[0]/2,s[1]-l[1]/2,l[0],l[1]):(r.x=s[0]-l[0]/2,r.y=s[1]-l[1]/2,r.width=l[0],r.height=l[1],o.buildPath(t,r,!0))}}},findDataIndex:function(t,e){for(var n=this.shape,i=n.points,o=n.sizes,r=i.length-1;r>=0;r--){var a=i[r],s=o[r],l=a[0]-s[0]/2,u=a[1]-s[1]/2;if(t>=l&&e>=u&&t<=l+s[0]&&e<=u+s[1])return r}return-1}}),s=i.prototype;s.updateData=function(t){this.group.removeAll();var e=this._symbolEl,n=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray(function(e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array||(n=[n,n]),n})}),e.symbolProxy=r.createSymbol(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(n.getModel("itemStyle.normal").getItemStyle(["color"]));var i=t.getVisual("color");i&&e.setColor(i),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(e.dataIndex=n)}),this.group.add(e)},s.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},s.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var o=n(12),r=n(34),a=o.Line.prototype,s=o.BezierCurve.prototype;t.exports=o.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(i(e)?a:s).buildPath(t,e)},pointAt:function(t){return i(this.shape)?a.pointAt.call(this,t):s.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,n=i(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentAt.call(this,t);return r.normalize(n,n)}})},function(t,e,n){function i(t,e,n,i){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(t,e,i),this.updateData(t,e,i),this._seriesModel}function o(t,e,n){return s.map(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function r(t){var e={};return s.each(t,function(t,n){e["ends"+n]=t}),e}function a(t){this.group=new l.Group,this.styleUpdater=t}var s=n(2),l=n(12),u=n(62),c=u.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var n in e)if(e.hasOwnProperty(n)&&0===n.indexOf("ends")){var i=e[n];t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1])}}}),h=i.prototype;h._createContent=function(t,e,n){var i=t.getItemLayout(e),a="horizontal"===i.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:n?o(i.bodyEnds,a,i):i.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=s.map(i.whiskerEnds,function(t){return n?o(t,a,i):t});this.add(new c({shape:r(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},h.updateData=function(t,e,n){var i=this._seriesModel=t.hostModel,o=t.getItemLayout(e),a=l[n?"initProps":"updateProps"];a(this.childAt(this.bodyIndex),{shape:{points:o.bodyEnds}},i,e),a(this.childAt(this.whiskerIndex),{shape:r(o.whiskerEnds)},i,e),this.styleUpdater.call(null,this,t,e)},s.inherits(i,l.Group);var d=a.prototype;d.updateData=function(t){var e=this.group,n=this._data,o=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var r=new i(t,n,o,!0);t.setItemGraphicEl(n,r),e.add(r)}}).update(function(r,a){var s=n.getItemGraphicEl(a);if(!t.hasValue(r))return void e.remove(s);s?s.updateData(t,r):s=new i(t,r,o),e.add(s),t.setItemGraphicEl(r,s)}).remove(function(t){var i=n.getItemGraphicEl(t);i&&e.remove(i)}).execute(),this._data=t},d.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.exports=a},function(t,e,n){var i=n(2),o=n(10),r=o.PRIORITY;n(1478),n(1479),o.registerVisual(i.curry(n(158),"line","circle","line")),o.registerLayout(i.curry(n(393),"line")),o.registerProcessor(r.PROCESSOR.STATISTIC,i.curry(n(1662),"line")),n(203)},function(t,e,n){"use strict";var i=n(117),o=n(60);t.exports=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){if(__DEV__){var n=t.coordinateSystem;if("polar"!==n&&"cartesian2d"!==n)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return i(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},function(t,e,n){"use strict";function i(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],o=e[n];if(i[0]!==o[0]||i[1]!==o[1])return}return!0}}function o(t){return"number"===typeof t?t:t?.3:0}function r(t){var e=t.getGlobalExtent();if(t.onBand){var n=t.getBandWidth()/2-1,i=e[1]>e[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function a(t){return t>=0?1:-1}function s(t,e){var n=t.getBaseAxis(),i=t.getOtherAxis(n),o=n.onZero?0:i.scale.getExtent()[0],r=i.dim,s="x"===r||"radius"===r?1:0;return e.mapArray([r],function(i,l){for(var u,c=e.stackedOn;c&&a(c.get(r,l))===a(i);){u=c;break}var h=[];return h[s]=e.get(n.dim,l),h[1-s]=u?u.get(r,l,!0):o,t.dataToPoint(h)},!0)}function l(t,e,n){var i=r(t.getAxis("x")),o=r(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),s=Math.min(i[0],i[1]),l=Math.min(o[0],o[1]),u=Math.max(i[0],i[1])-s,c=Math.max(o[0],o[1])-l,h=n.get("lineStyle.normal.width")||2,d=n.get("clipOverflow")?h/2:Math.max(u,c);a?(l-=d,c+=2*d):(s-=d,u+=2*d);var p=new v.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(p.shape[a?"width":"height"]=0,v.initProps(p,{shape:{width:u,height:c}},n)),p}function u(t,e,n){var i=t.getAngleAxis(),o=t.getRadiusAxis(),r=o.getExtent(),a=i.getExtent(),s=Math.PI/180,l=new v.Sector({shape:{cx:t.cx,cy:t.cy,r0:r[0],r:r[1],startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:i.inverse}});return e&&(l.shape.endAngle=-a[0]*s,v.initProps(l,{shape:{endAngle:-a[1]*s}},n)),l}function c(t,e,n){return"polar"===t.type?u(t,e,n):l(t,e,n)}function h(t,e,n){for(var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,r=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];r.push(l);var u=[];switch(n){case"end":u[o]=s[o],u[1-o]=l[1-o],r.push(u);break;case"middle":var c=(l[o]+s[o])/2,h=[];u[o]=h[o]=c,u[1-o]=l[1-o],h[1-o]=s[1-o],r.push(u),r.push(h);break;default:u[o]=l[o],u[1-o]=s[1-o],r.push(u)}}return t[a]&&r.push(t[a]),r}function d(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()){for(var i,o=n.length-1;o>=0;o--)if(n[o].dimension<2){i=n[o];break}if(!i||"cartesian2d"!==e.type)return void(__DEV__&&console.warn("Visual map on line style only support x or y dimension."));var r=i.dimension,a=t.dimensions[r],s=e.getAxis(a),l=p.map(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,d=l[u-1].coord+10,f=d-h;if(f<.001)return"transparent";p.each(l,function(t){t.offset=(t.coord-h)/f}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var g=new v.LinearGradient(0,0,0,0,l,!0);return g[a]=h,g[a+"2"]=d,g}}var p=n(2),f=n(199),g=n(380),m=n(1480),v=n(12),y=n(29),x=n(628),_=n(120);t.exports=_.extend({type:"line",init:function(){var t=new v.Group,e=new f;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var r=t.coordinateSystem,a=this.group,l=t.getData(),u=t.getModel("lineStyle.normal"),f=t.getModel("areaStyle.normal"),g=l.mapArray(l.getItemLayout,!0),m="polar"===r.type,v=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get("animation"),S=!f.isEmpty(),M=s(r,l),I=t.get("showSymbol"),T=I&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,r),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),A.setItemGraphicEl(e,null))}),I||y.remove(),a.add(b);var D=!m&&t.get("step");x&&v.type===r.type&&D===this._step?(S&&!_?_=this._newPolygon(g,M,r,w):_&&!S&&(b.remove(_),_=this._polygon=null),b.setClipPath(c(r,!1,t)),I&&y.updateData(l,T),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),i(this._stackedOnPoints,M)&&i(this._points,g)||(w?this._updateAnimation(l,M,r,n,D):(D&&(g=h(g,r,D),M=h(M,r,D)),x.setShape({points:g}),_&&_.setShape({points:g,stackedOnPoints:M})))):(I&&y.updateData(l,T),D&&(g=h(g,r,D),M=h(M,r,D)),x=this._newPolyline(g,r,w),S&&(_=this._newPolygon(g,M,r,w)),b.setClipPath(c(r,!0,t)));var C=d(l,r)||l.getVisual("color");x.useStyle(p.defaults(u.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"}));var L=t.get("smooth");if(L=o(t.get("smooth")),x.setShape({smooth:L,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var P=l.stackedOn,k=0;if(_.useStyle(p.defaults(f.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel"})),P){k=o(P.hostModel.get("smooth"))}_.setShape({smooth:L,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=r,this._stackedOnPoints=M,this._points=g,this._step=D},dispose:function(){},highlight:function(t,e,n,i){var o=t.getData(),r=y.queryDataIndex(o,i);if(!(r instanceof Array)&&null!=r&&r>=0){var a=o.getItemGraphicEl(r);if(!a){var s=o.getItemLayout(r);if(!s)return;a=new g(o,r),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,o.setItemGraphicEl(r,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else _.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var o=t.getData(),r=y.queryDataIndex(o,i);if(null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else _.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new x.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new x.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return p.bind(n.isLabelIgnored,n)},_updateAnimation:function(t,e,n,i,o){var r=this._polyline,a=this._polygon,s=t.hostModel,l=m(this._data,t,this._stackedOnPoints,e,this._coordSys,n),u=l.current,c=l.stackedOnCurrent,d=l.next,p=l.stackedOnNext;o&&(u=h(l.current,n,o),c=h(l.stackedOnCurrent,n,o),d=h(l.next,n,o),p=h(l.stackedOnNext,n,o)),r.shape.__points=l.current,r.shape.points=u,v.updateProps(r,{shape:{points:d}},s),a&&(a.setShape({points:u,stackedOnPoints:c}),v.updateProps(a,{shape:{points:d,stackedOnPoints:p}},s));for(var f=[],g=l.status,y=0;y<g.length;y++){if("="===g[y].cmd){var x=t.getItemGraphicEl(g[y].idx1);x&&f.push({el:x,ptIdx:y})}}r.animators&&r.animators.length&&r.animators[0].during(function(){for(var t=0;t<f.length;t++){f[t].el.attr("position",r.shape.__points[f[t].ptIdx])}})},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},function(t,e){function n(t){return t>=0?1:-1}function i(t,e,i){for(var o,r=t.getBaseAxis(),a=t.getOtherAxis(r),s=r.onZero?0:a.scale.getExtent()[0],l=a.dim,u="x"===l||"radius"===l?1:0,c=e.stackedOn,h=e.get(l,i);c&&n(c.get(l,i))===n(h);){o=c;break}var d=[];return d[u]=e.get(r.dim,i),d[1-u]=o?o.get(l,i,!0):s,t.dataToPoint(d)}function o(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}t.exports=function(t,e,n,r,a,s){for(var l=o(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],m=s.dimensions,v=0;v<l.length;v++){var y=l[v],x=!0;switch(y.cmd){case"=":var _=t.getItemLayout(y.idx),b=e.getItemLayout(y.idx1);(isNaN(_[0])||isNaN(_[1]))&&(_=b.slice()),u.push(_),c.push(b),h.push(n[y.idx]),d.push(r[y.idx1]),g.push(e.getRawIndex(y.idx1));break;case"+":var w=y.idx;u.push(a.dataToPoint([e.get(m[0],w,!0),e.get(m[1],w,!0)])),c.push(e.getItemLayout(w).slice()),h.push(i(a,e,w)),d.push(r[w]),g.push(e.getRawIndex(w));break;case"-":var w=y.idx,S=t.getRawIndex(w);S!==w?(u.push(t.getItemLayout(w)),c.push(s.dataToPoint([t.get(m[0],w,!0),t.get(m[1],w,!0)])),h.push(n[w]),d.push(i(s,t,w)),g.push(S)):x=!1}x&&(p.push(y),f.push(f.length))}f.sort(function(t,e){return g[t]-g[e]});for(var M=[],I=[],T=[],A=[],D=[],v=0;v<f.length;v++){var w=f[v];M[v]=u[w],I[v]=c[w],T[v]=h[w],A[v]=d[w],D[v]=p[w]}return{current:M,next:I,stackedOnCurrent:T,stackedOnNext:A,status:D}}},function(t,e,n){n(1482),n(1483);var i=n(10);i.registerLayout(n(1484)),i.registerVisual(n(1485))},function(t,e,n){"use strict";function i(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(__DEV__&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=a.map(e,function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),a.mergeAll([n,t[0],t[1]])}))}var o=n(60),r=n(55),a=n(2),s=n(35),l=n(94),u=o.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.normal.color",init:function(t){i(t),u.superApply(this,"init",arguments)},mergeOption:function(t){i(t),u.superApply(this,"mergeOption",arguments)},getInitialData:function(t,e){if(__DEV__){if(!l.get(t.coordinateSystem))throw new Error("Unkown coordinate system "+t.coordinateSystem)}var n=new r(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,o){if(t instanceof Array)return NaN;n.hasItemOption=!0;var r=t.value;return null!=r?r instanceof Array?r[o]:r:void 0}),n},formatTooltip:function(t){var e=this.getData(),n=e.getItemModel(t),i=n.get("name");if(i)return i;var o=n.get("fromName"),r=n.get("toName"),a=[];return null!=o&&a.push(o),null!=r&&a.push(r),s.encodeHTML(a.join(" > "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})},function(t,e,n){var i=n(379),o=n(624),r=n(378),a=n(625),s=n(1471),l=n(1473);n(10).extendChartView({type:"lines",init:function(){},render:function(t,e,n){var u=t.getData(),c=this._lineDraw,h=t.get("effect.show"),d=t.get("polyline"),p=t.get("large")&&u.count()>=t.get("largeThreshold");__DEV__&&h&&p&&console.warn("Large lines not support effect"),h===this._hasEffet&&d===this._isPolyline&&p===this._isLarge||(c&&c.remove(),c=this._lineDraw=p?new l:new i(d?h?s:a:h?o:r),this._hasEffet=h,this._isPolyline=d,this._isLarge=p);var f=t.get("zlevel"),g=t.get("effect.trailLength"),m=n.getZr();if(m.painter.getLayer(f).clear(!0),null!=this._lastZlevel&&m.configLayer(this._lastZlevel,{motionBlur:!1}),h&&g){if(__DEV__){var v=!1;e.eachSeries(function(e){e!==t&&e.get("zlevel")===f&&(v=!0)}),v&&console.warn("Lines with trail effect should have an individual zlevel")}m.configLayer(f,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updateData(u),this._lastZlevel=f},updateLayout:function(t,e,n){this._lineDraw.updateLayout(t),n.getZr().painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0)},dispose:function(){}})},function(t,e){t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.coordinateSystem,n=t.getData();n.each(function(i){var o=n.getItemModel(i),r=o.option instanceof Array?o.option:o.get("coords");if(__DEV__&&!(r instanceof Array&&r.length>0&&r[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(r)+". Lines must have 2d coords array in data item.");var a=[];if(t.get("polyline"))for(var s=0;s<r.length;s++)a.push(e.dataToPoint(r[s]));else{a[0]=e.dataToPoint(r[0]),a[1]=e.dataToPoint(r[1]);var l=o.get("lineStyle.normal.curveness");+l&&(a[2]=[(a[0][0]+a[1][0])/2-(a[0][1]-a[1][1])*l,(a[0][1]+a[1][1])/2-(a[1][0]-a[0][0])*l])}n.setItemLayout(i,a)})})}},function(t,e){function n(t){return t instanceof Array||(t=[t,t]),t}t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.getData(),i=n(t.get("symbol")),o=n(t.get("symbolSize")),r="lineStyle.normal.opacity".split(".");e.setVisual("fromSymbol",i&&i[0]),e.setVisual("toSymbol",i&&i[1]),e.setVisual("fromSymbolSize",o&&o[0]),e.setVisual("toSymbolSize",o&&o[1]),e.setVisual("opacity",t.get(r)),e.each(function(t){var i=e.getItemModel(t),o=n(i.getShallow("symbol",!0)),a=n(i.getShallow("symbolSize",!0)),s=i.get(r);o[0]&&e.setItemVisual(t,"fromSymbol",o[0]),o[1]&&e.setItemVisual(t,"toSymbol",o[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1]),e.setItemVisual(t,"opacity",s)})})}},function(t,e,n){var i=n(10),o=i.PRIORITY;n(1487),n(1488),n(617),n(265),i.registerLayout(n(1491)),i.registerVisual(n(1492)),i.registerProcessor(o.PROCESSOR.STATISTIC,n(1490)),i.registerPreprocessor(n(1489)),n(616)("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(t,e,n){var i=n(55),o=n(60),r=n(2),a=n(85),s=n(35),l=s.encodeHTML,u=s.addCommas,c=n(385),h=n(265),d=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){t=this._fillOption(t,this.getMapType()),this.option=t,d.superApply(this,"init",arguments),this.updateSelectedMap(t.data)},getInitialData:function(t){var e=a(["value"],t.data||[]),n=new i(e,this);return n.initData(t.data),n},mergeOption:function(t){t.data&&(t=this._fillOption(t,this.getMapType())),d.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(t,e){return t=r.extend({},t),t.data=h.getFilledRegions(t.data,e),t},getRawValue:function(t){return this.getData().get("value",t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),n=u(this.getRawValue(t)),i=e.getName(t),o=this.seriesGroup,r=[],a=0;a<o.length;a++){var s=o[a].originalData.indexOfName(i);isNaN(o[a].originalData.get("value",s))||r.push(l(o[a].name))}return r.join(", ")+"<br />"+l(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});r.mixin(d,c),t.exports=d},function(t,e,n){var i=n(12),o=n(639);n(10).extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){var a=this._mapDraw;a&&r.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new o(n,!0);r.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var o=t.originalData,r=this.group;o.each("value",function(e,n){if(!isNaN(e)){var a=o.getItemLayout(n);if(a&&a.point){var s=a.point,l=a.offset,u=new i.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainSeries.getData(),h=o.getName(n),d=h,p=c.indexOfName(h),f=o.getItemModel(n),g=f.getModel("label.normal"),m=f.getModel("label.emphasis"),v=g.getModel("textStyle"),y=m.getModel("textStyle"),x=c.getItemGraphicEl(p);u.setStyle({textPosition:"bottom"});var _=function(){u.setStyle({text:m.get("show")?d:"",textFill:y.getTextColor(),textFont:y.getFont()})},b=function(){u.setStyle({text:g.get("show")?d:"",textFill:v.getTextColor(),textFont:v.getFont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}r.add(u)}}})}})},function(t,e,n){var i=n(2);t.exports=function(t){var e=[];i.each(t.series,function(t){"map"===t.type&&e.push(t)}),i.each(e,function(t){t.map=t.map||t.mapType,i.defaults(t,t.mapLocation)})}},function(t,e,n){function i(t,e){var n={},i=["value"];return o.each(t,function(t){t.each(i,function(e,i){var o="ec-"+t.getName(i);n[o]=n[o]||[],isNaN(e)||n[o].push(e)})}),t[0].map(i,function(i,o){for(var r="ec-"+t[0].getName(o),a=0,s=1/0,l=-1/0,u=n[r].length,c=0;c<u;c++)s=Math.min(s,n[r][c]),l=Math.max(l,n[r][c]),a+=n[r][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?a/u:a,0===u?NaN:h})}var o=n(2);t.exports=function(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),o.each(e,function(t,e){for(var n=i(o.map(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(var r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r&&!t[r].getHostGeoModel(),t[r].setData(n.cloneShallow()),t[r].mainSeries=t[0]})}},function(t,e,n){var i=n(2);t.exports=function(t){var e={};t.eachSeriesByType("map",function(n){var o=n.getMapType();if(!n.getHostGeoModel()&&!e[o]){var r={};i.each(n.seriesGroup,function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each("value",function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.center);r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}})});var a=n.getData();a.each(function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!r[e],a.setItemLayout(t,n)}),e[o]=!0}})}},function(t,e){t.exports=function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t.getModel("itemStyle.normal"),i=n.get("areaColor"),o=n.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:i,color:o})})}},function(t,e,n){var i=n(10);n(644),n(1494),n(1495),i.registerVisual(n(1496))},function(t,e,n){function i(t,e,n){var i=t.get("data"),r=o(e);i&&i.length&&s.each(n,function(t){if(t){var e=s.indexOf(i,t[r]);t[r]=e>=0?e:NaN}})}function o(t){return+t.replace("dim","")}function r(t,e){var n=0;s.each(t,function(t){var e=o(t);e>n&&(n=e)});var i=e[0];i&&i.length-1>n&&(n=i.length-1);for(var r=[],a=0;a<=n;a++)r.push("dim"+a);return r}var a=n(55),s=n(2),l=n(60),u=n(85);t.exports=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var n=e.getComponent("parallel",this.get("parallelIndex")),o=n.parallelAxisIndex,l=t.data,c=n.dimensions,h=r(c,l),d=s.map(h,function(t,n){var r=s.indexOf(c,t),a=r>=0&&e.getComponent("parallelAxis",o[r]);return a&&"category"===a.get("type")?(i(a,t,l),{name:t,type:"ordinal"}):r<0&&u.guessOrdinal(l,n)?{name:t,type:"ordinal"}:t}),p=new a(d,this);return p.initData(l),this.option.progressive&&(this.option.animation=!1),p},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,o){t===e&&i.push(n.getRawIndex(o))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(t,e,n){function i(t,e,n){var i=t.model,o=t.getRect(),r=new l.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===i.get("layout")?"width":"height";return r.setShape(a,0),l.initProps(r,{shape:{width:o.width,height:o.height}},e,n),r}function o(t,e,n,i){for(var o=[],r=0;r<n.length;r++){var a=n[r],l=t.get(a,e);s(l,i.getAxis(a).type)||o.push(i.dataToPoint(l,a))}return o}function r(t,e,n,i,r){var a=o(t,n,i,r),s=new l.Polyline({shape:{points:a},silent:!0,z2:10});e.add(s),t.setItemGraphicEl(n,s)}function a(t,e){var n=t.hostModel.getModel("lineStyle.normal"),i=n.getLineStyle();t.eachItemGraphicEl(function(o,r){if(t.hasItemOption){var a=t.getItemModel(r),s=a.getModel("lineStyle.normal",n);i=s.getLineStyle(["color","stroke"])}o.useStyle(u.extend(i,{fill:null,stroke:t.getItemVisual(r,"color"),opacity:t.getItemVisual(r,"opacity")})),o.shape.smooth=e})}function s(t,e){return"category"===e?null==t:null==t||isNaN(t)}var l=n(12),u=n(2),c=n(120).extend({type:"parallel",init:function(){this._dataGroup=new l.Group,this.group.add(this._dataGroup),this._data},render:function(t,e,n,i){this._renderForNormal(t,i)},dispose:function(){},_renderForNormal:function(t,e){function n(t){r(h,c,t,f,p)}function s(n,i){var r=d.getItemGraphicEl(i),a=o(h,n,f,p);h.setItemGraphicEl(n,r);var s=e&&!1===e.animation?null:t;l.updateProps(r,{shape:{points:a}},s,n)}function u(t){var e=d.getItemGraphicEl(t);c.remove(e)}var c=this._dataGroup,h=t.getData(),d=this._data,p=t.coordinateSystem,f=p.dimensions,g=t.option,m=g.smooth?.3:null;if(h.diff(d).add(n).update(s).remove(u).execute(),a(h,m),!this._data){var v=i(p,t,function(){setTimeout(function(){c.removeClipPath()})});c.setClipPath(v)}this._data=h},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});t.exports=c},function(t,e){var n=["lineStyle","normal","opacity"];t.exports=function(t){t.eachSeriesByType("parallel",function(e){var i=e.getModel("itemStyle.normal"),o=e.getModel("lineStyle.normal"),r=t.get("color"),a=o.get("color")||i.get("color")||r[e.seriesIndex%r.length],s=e.get("inactiveOpacity"),l=e.get("activeOpacity"),u=e.getModel("lineStyle.normal").getLineStyle(),c=e.coordinateSystem,h=e.getData(),d={normal:u.opacity,active:l,inactive:s};c.eachActiveState(h,function(t,e){var i=h.getItemModel(e),o=d[t];if("normal"===t){var r=i.get(n,!0);null!=r&&(o=r)}h.setItemVisual(e,"opacity",o)}),h.setVisual("color",a)})}},function(t,e,n){var i=n(2);n(389),n(1428),n(1429);var o=n(392),r=n(10);r.registerLayout(i.curry(o,"pictorialBar")),r.registerVisual(i.curry(n(158),"pictorialBar","roundRect",null)),n(203)},function(t,e,n){var i=n(2),o=n(10);n(1499),n(1500),n(616)("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),o.registerVisual(i.curry(n(396),"pie")),o.registerLayout(i.curry(n(1502),"pie")),o.registerProcessor(i.curry(n(266),"pie"))},function(t,e,n){"use strict";var i=n(55),o=n(2),r=n(29),a=n(13),s=n(85),l=n(385),u=n(10).extendSeriesModel({type:"series.pie",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getInitialData:function(t,e){var n=s(["value"],t.data),o=new i(n,this);return o.initData(t.data),o},getDataParams:function(t){var e=this.getData(),n=u.superCall(this,"getDataParams",t),i=[];return e.each("value",function(t){i.push(t)}),n.percent=a.getPercentWithPrecision(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){r.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.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,percentPrecision:2,stillShowZeroSum:!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:{}},animationType:"expansion",animationEasing:"cubicOut",data:[]}});o.mixin(u,l),t.exports=u},function(t,e,n){function i(t,e,n,i){var r=e.getData(),a=this.dataIndex,s=r.getName(a),l=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),r.each(function(t){o(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,n)})}function o(t,e,n,i,o){var r=(e.startAngle+e.endAngle)/2,a=Math.cos(r),s=Math.sin(r),l=n?i:0,u=[a*l,s*l];o?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function r(t,e){function n(){r.ignore=r.hoverIgnore,a.ignore=a.hoverIgnore}function i(){r.ignore=r.normalIgnore,a.ignore=a.normalIgnore}s.Group.call(this);var o=new s.Sector({z2:2}),r=new s.Polyline,a=new s.Text;this.add(o),this.add(r),this.add(a),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function a(t,e,n,i,o){var r=i.getModel("textStyle"),a="inside"===o||"inner"===o;return{fill:r.getTextColor()||(a?"#fff":t.getItemVisual(e,"color")),opacity:t.getItemVisual(e,"opacity"),textFont:r.getFont(),text:l.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var s=n(12),l=n(2),u=r.prototype;u.updateData=function(t,e,n){function i(){a.stopAnimation(!0),a.animateTo({shape:{r:h.r+10}},300,"elasticOut")}function r(){a.stopAnimation(!0),a.animateTo({shape:{r:h.r}},300,"elasticOut")}var a=this.childAt(0),u=t.hostModel,c=t.getItemModel(e),h=t.getItemLayout(e),d=l.extend({},h);if(d.label=null,n){a.setShape(d);"scale"===u.getShallow("animationType")?(a.shape.r=h.r0,s.initProps(a,{shape:{r:h.r}},u,e)):(a.shape.endAngle=h.startAngle,s.updateProps(a,{shape:{endAngle:h.endAngle}},u,e))}else s.updateProps(a,{shape:d},u,e);var p=c.getModel("itemStyle"),f=t.getItemVisual(e,"color");a.useStyle(l.defaults({lineJoin:"bevel",fill:f},p.getModel("normal").getItemStyle())),a.hoverStyle=p.getModel("emphasis").getItemStyle();var g=c.getShallow("cursor");g&&a.attr("cursor",g),o(this,t.getItemLayout(e),c.get("selected"),u.get("selectedOffset"),u.get("animation")),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),c.get("hoverAnimation")&&u.isAnimationEnabled()&&a.on("mouseover",i).on("mouseout",r).on("emphasis",i).on("normal",r),this._updateLabel(t,e),s.setHoverStyle(this)},u._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),o=t.hostModel,r=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");s.updateProps(n,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o,e),s.updateProps(i,{style:{x:u.x,y:u.y}},o,e),i.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u.textAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=r.getModel("label.normal"),d=r.getModel("label.emphasis"),p=r.getModel("labelLine.normal"),f=r.getModel("labelLine.emphasis"),g=h.get("position")||d.get("position");i.setStyle(a(t,e,"normal",h,g)),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:c,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=a(t,e,"emphasis",d,g),n.hoverStyle=f.getModel("lineStyle").getLineStyle();var m=p.get("smooth");m&&!0===m&&(m=.4),n.setShape({smooth:m})},l.inherits(r,s.Group);var c=n(120).extend({type:"pie",init:function(){var t=new s.Group;this._sectorGroup=t},render:function(t,e,n,o){if(!o||o.from!==this.uid){var a=t.getData(),s=this._data,u=this.group,c=e.get("animation"),h=!s,d=t.get("animationType"),p=l.curry(i,this.uid,t,c,n),f=t.get("selectedMode");if(a.diff(s).add(function(t){var e=new r(a,t);h&&"scale"!==d&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",p),a.setItemGraphicEl(t,e),u.add(e)}).update(function(t,e){var n=s.getItemGraphicEl(e);n.updateData(a,t),n.off("click"),f&&n.on("click",p),u.add(n),a.setItemGraphicEl(t,n)}).remove(function(t){var e=s.getItemGraphicEl(t);u.remove(e)}).execute(),c&&h&&a.count()>0&&"scale"!==d){var g=a.getItemLayout(0),m=Math.max(n.getWidth(),n.getHeight())/2,v=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,n,i,o,r,a){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:o}});return s.initProps(l,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},a,r),l},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,r=t[1]-i.cy,a=Math.sqrt(o*o+r*r);return a<=i.r&&a>=i.r0}}});t.exports=c},function(t,e,n){"use strict";function i(t,e,n,i,o,r,a){function s(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function l(t,e,n,i,o,r){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-i),c=t[s].len,h=t[s].len2,d=u<o+c?Math.sqrt((o+c+h)*(o+c+h)-u*u):Math.abs(t[s].x-n);e&&d>=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=n+d*r,a=d}}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=t.length,d=[],p=[],f=0;f<h;f++)u=t[f].y-c,u<0&&function(e,n,i,o){for(var r=e;r<n;r++)if(t[r].y+=i,r>e&&r+1<n&&t[r+1].y>t[r].y+t[r].height)return void s(r,i/2);s(n-1,i/2)}(f,h,-u),c=t[f].y+t[f].height;a-c<0&&s(h-1,c-a);for(var f=0;f<h;f++)t[f].y>=n?p.push(t[f]):d.push(t[f]);l(d,!1,e,n,i,o),l(p,!0,e,n,i,o)}function o(t,e,n,o,r,a){for(var s=[],l=[],u=0;u<t.length;u++)t[u].x<e?s.push(t[u]):l.push(t[u]);i(l,e,n,o,1,r,a),i(s,e,n,o,-1,r,a);for(var u=0;u<t.length;u++){var c=t[u].linePoints;if(c){var h=c[1][0]-c[2][0];t[u].x<e?c[2][0]=t[u].x+3:c[2][0]=t[u].x-3,c[1][1]=c[2][1]=t[u].y,c[1][0]=c[2][0]+h}}}var r=n(110);t.exports=function(t,e,n,i){var a,s,l=t.getData(),u=[],c=!1;l.each(function(n){var i,o,h,d,p=l.getItemLayout(n),f=l.getItemModel(n),g=f.getModel("label.normal"),m=g.get("position")||f.get("label.emphasis.position"),v=f.getModel("labelLine.normal"),y=v.get("length"),x=v.get("length2"),_=(p.startAngle+p.endAngle)/2,b=Math.cos(_),w=Math.sin(_);a=p.cx,s=p.cy;var S="inside"===m||"inner"===m;if("center"===m)i=p.cx,o=p.cy,d="center";else{var M=(S?(p.r+p.r0)/2*b:p.r*b)+a,I=(S?(p.r+p.r0)/2*w:p.r*w)+s;if(i=M+3*b,o=I+3*w,!S){var T=M+b*(y+e-p.r),A=I+w*(y+e-p.r),D=T+(b<0?-1:1)*x,C=A;i=D+(b<0?-5:5),o=C,h=[[M,I],[T,A],[D,C]]}d=S?"center":b>0?"left":"right"}var L=g.getModel("textStyle").getFont(),P=g.get("rotate")?b<0?-_+Math.PI:-_:0,k=t.getFormattedLabel(n,"normal")||l.getName(n),E=r.getBoundingRect(k,L,d,"top");c=!!P,p.label={x:i,y:o,position:m,height:E.height,len:y,len2:x,linePoints:h,textAlign:d,verticalAlign:"middle",font:L,rotation:P},S||u.push(p.label)}),!c&&t.get("avoidLabelOverlap")&&o(u,a,s,e,n,i)}},function(t,e,n){var i=n(13),o=i.parsePercent,r=n(1501),a=n(2),s=2*Math.PI,l=Math.PI/180;t.exports=function(t,e,n,u){e.eachSeriesByType(t,function(t){var e=t.get("center"),u=t.get("radius");a.isArray(u)||(u=[0,u]),a.isArray(e)||(e=[e,e]);var c=n.getWidth(),h=n.getHeight(),d=Math.min(c,h),p=o(e[0],c),f=o(e[1],h),g=o(u[0],d/2),m=o(u[1],d/2),v=t.getData(),y=-t.get("startAngle")*l,x=t.get("minAngle")*l,_=0;v.each("value",function(t){!isNaN(t)&&_++});var b=v.getSum("value"),w=Math.PI/(b||_)*2,S=t.get("clockwise"),M=t.get("roseType"),I=t.get("stillShowZeroSum"),T=v.getDataExtent("value");T[0]=0;var A=s,D=0,C=y,L=S?1:-1;if(v.each("value",function(t,e){var n;if(isNaN(t))return void v.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:p,cy:f,r0:g,r:M?NaN:m});n="area"!==M?0===b&&I?w:t*w:s/_,n<x?(n=x,A-=x):D+=t;var o=C+L*n;v.setItemLayout(e,{angle:n,startAngle:C,endAngle:o,clockwise:S,cx:p,cy:f,r0:g,r:M?i.linearMap(t,T,[g,m]):m}),C=o},!0),A<s&&_)if(A<=.001){var P=s/_;v.each("value",function(t,e){if(!isNaN(t)){var n=v.getItemLayout(e);n.angle=P,n.startAngle=y+L*e*P,n.endAngle=y+L*(e+1)*P}})}else w=A/D,C=y,v.each("value",function(t,e){if(!isNaN(t)){var n=v.getItemLayout(e),i=n.angle===x?x:t*w;n.startAngle=C,n.endAngle=C+L*i,C+=L*i}});r(t,m,c,h)})}},function(t,e,n){var i=n(2),o=n(10);n(1580),n(1504),n(1505),o.registerVisual(i.curry(n(396),"radar")),o.registerVisual(i.curry(n(158),"radar","circle",null)),o.registerLayout(n(1507)),o.registerProcessor(i.curry(n(266),"radar")),o.registerPreprocessor(n(1506))},function(t,e,n){"use strict";var i=n(60),o=n(55),r=n(85),a=n(2),s=n(35).encodeHTML,l=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){var n=t.data||[],i=r([],n,{extraPrefix:"indicator_",extraFromZero:!0}),a=new o(i,this);return a.initData(n),a},formatTooltip:function(t){var e=this.getRawValue(t),n=this.coordinateSystem,i=n.getIndicatorAxes(),o=this.getData().getName(t);return s(""===o?this.name:o)+"<br/>"+a.map(i,function(t,n){return s(t.name+" : "+e[n])}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}});t.exports=l},function(t,e,n){function i(t){return r.isArray(t)||(t=[+t,+t]),t}var o=n(12),r=n(2),a=n(86);t.exports=n(10).extendChartView({type:"radar",render:function(t,e,n){function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle",o=t.getItemVisual(e,"color");if("none"!==n){var r=a.createSymbol(n,-.5,-.5,1,1,o);return r.attr({style:{strokeNoScale:!0},z2:100,scale:i(t.getItemVisual(e,"symbolSize"))}),r}}function l(e,n,i,r,a,l){i.removeAll();for(var u=0;u<n.length-1;u++){var c=s(r,a);c&&(c.__dimIdx=u,e[u]?(c.attr("position",e[u]),o[l?"initProps":"updateProps"](c,{position:n[u]},t,a)):c.attr("position",n[u]),i.add(c))}}function u(t){return r.map(t,function(t){return[c.cx,c.cy]})}var c=t.coordinateSystem,h=this.group,d=t.getData(),p=this._data;d.diff(p).add(function(e){var n=d.getItemLayout(e);if(n){var i=new o.Polygon,r=new o.Polyline,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),o.initProps(i,a,t,e),o.initProps(r,a,t,e);var s=new o.Group,c=new o.Group;s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,d,e,!0),d.setItemGraphicEl(e,s)}}).update(function(e,n){var i=p.getItemGraphicEl(n),r=i.childAt(0),a=i.childAt(1),s=i.childAt(2),u={shape:{points:d.getItemLayout(e)}};u.shape.points&&(l(r.shape.points,u.shape.points,s,d,e,!1),o.updateProps(r,u,t),o.updateProps(a,u,t),d.setItemGraphicEl(e,i))}).remove(function(t){h.remove(p.getItemGraphicEl(t))}).execute(),d.eachItemGraphicEl(function(e,n){function i(){u.attr("ignore",v)}function a(){u.attr("ignore",m)}var s=d.getItemModel(n),l=e.childAt(0),u=e.childAt(1),c=e.childAt(2),p=d.getItemVisual(n,"color");h.add(e),l.useStyle(r.defaults(s.getModel("lineStyle.normal").getLineStyle(),{fill:"none",stroke:p})),l.hoverStyle=s.getModel("lineStyle.emphasis").getLineStyle();var f=s.getModel("areaStyle.normal"),g=s.getModel("areaStyle.emphasis"),m=f.isEmpty()&&f.parentModel.isEmpty(),v=g.isEmpty()&&g.parentModel.isEmpty();v=v&&m,u.ignore=m,u.useStyle(r.defaults(f.getAreaStyle(),{fill:p,opacity:.7})),u.hoverStyle=g.getAreaStyle();var y=s.getModel("itemStyle.normal").getItemStyle(["color"]),x=s.getModel("itemStyle.emphasis").getItemStyle(),_=s.getModel("label.normal"),b=s.getModel("label.emphasis");c.eachChild(function(e){e.setStyle(y),e.hoverStyle=r.clone(x);var i=d.get(d.dimensions[e.__dimIdx],n);o.setText(e.style,_,p),e.setStyle({text:_.get("show")?r.retrieve(t.getFormattedLabel(n,"normal",null,e.__dimIdx),i):""}),o.setText(e.hoverStyle,b,p),e.hoverStyle.text=b.get("show")?r.retrieve(t.getFormattedLabel(n,"emphasis",null,e.__dimIdx),i):""}),e.off("mouseover").off("mouseout").off("normal").off("emphasis"),e.on("emphasis",i).on("mouseover",i).on("normal",a).on("mouseout",a),o.setHoverStyle(e)}),this._data=d},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},function(t,e,n){var i=n(2);t.exports=function(t){var e=t.polar;if(e){i.isArray(e)||(e=[e]);var n=[];i.each(e,function(e,o){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],i.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}i.each(t.series,function(t){"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("radar",function(t){function e(t,e){i[e]=i[e]||[],i[e][r]=o.dataToPoint(t,r)}var n=t.getData(),i=[],o=t.coordinateSystem;if(o){for(var r=0;r<o.getIndicatorAxes().length;r++){var a=n.dimensions[r];n.each(a,e)}n.each(function(t){i[t][0]&&i[t].push(i[t][0].slice()),n.setItemLayout(t,i[t])})}})}},function(t,e,n){var i=n(10);n(1509),n(1510),i.registerLayout(n(1511)),i.registerVisual(n(1512))},function(t,e,n){var i=n(60),o=n(626),r=n(35).encodeHTML,a=i.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(t){var e=t.edges||t.links,n=t.data||t.nodes;if(n&&e){return o(n,e,this,!0).data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getDataParams(t,n),o=i.data,s=o.source+" -- "+o.target;return i.value&&(s+=" : "+i.value),r(s)}return a.superCall(this,"formatTooltip",t,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodeWidth:20,nodeGap:8,layoutIterations:32,label:{normal:{show:!0,position:"right",textStyle:{color:"#000",fontSize:12}},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:1,borderColor:"#333"}},lineStyle:{normal:{color:"#314656",opacity:.2,curveness:.5},emphasis:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}});t.exports=a},function(t,e,n){function i(t,e,n){var i=new o.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return o.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}var o=n(12),r=n(2),a=o.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildPath:function(t,e){var n=e.extent/2;t.moveTo(e.x1,e.y1-n),t.bezierCurveTo(e.cpx1,e.cpy1-n,e.cpx2,e.cpy2-n,e.x2,e.y2-n),t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n),t.closePath()}});t.exports=n(10).extendChartView({type:"sankey",_model:null,render:function(t,e,n){var s=t.getGraph(),l=this.group,u=t.layoutInfo,c=t.getData(),h=t.getData("edge");this._model=t,l.removeAll(),l.position=[u.x,u.y],s.eachEdge(function(e){var n=new a;n.dataIndex=e.dataIndex,n.seriesIndex=t.seriesIndex,n.dataType="edge";var i=e.getModel("lineStyle.normal"),r=i.get("curveness"),s=e.node1.getLayout(),u=e.node2.getLayout(),c=e.getLayout();n.shape.extent=Math.max(1,c.dy);var d=s.x+s.dx,p=s.y+c.sy+c.dy/2,f=u.x,g=u.y+c.ty+c.dy/2,m=d*(1-r)+f*r,v=p,y=d*r+f*(1-r),x=g;switch(n.setShape({x1:d,y1:p,x2:f,y2:g,cpx1:m,cpy1:v,cpx2:y,cpy2:x}),n.setStyle(i.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color");break;case"target":n.style.fill=e.node2.getVisual("color")}o.setHoverStyle(n,e.getModel("lineStyle.emphasis").getItemStyle()),l.add(n),h.setItemGraphicEl(e.dataIndex,n)}),s.eachNode(function(e){var n=e.getLayout(),i=e.getModel(),a=i.getModel("label.normal"),s=a.getModel("textStyle"),u=i.getModel("label.emphasis"),h=u.getModel("textStyle"),d=new o.Rect({shape:{x:n.x,y:n.y,width:e.getLayout().dx,height:e.getLayout().dy},style:{text:a.get("show")?t.getFormattedLabel(e.dataIndex,"normal")||e.id:"",textFont:s.getFont(),textFill:s.getTextColor(),textPosition:a.get("position")}});d.setStyle(r.defaults({fill:e.getVisual("color")},i.getModel("itemStyle.normal").getItemStyle())),o.setHoverStyle(d,r.extend(e.getModel("itemStyle.emphasis"),{text:u.get("show")?t.getFormattedLabel(e.dataIndex,"emphasis")||e.id:"",textFont:h.getFont(),textFill:h.getTextColor(),textPosition:u.get("position")})),l.add(d),c.setItemGraphicEl(e.dataIndex,d),d.dataType="node"}),!this._data&&t.get("animation")&&l.setClipPath(i(l.getBoundingRect(),t,function(){l.removeClipPath()})),this._data=t.getData()},dispose:function(){}})},function(t,e,n){function i(t,e){return M.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function o(t,e,n,i,o,r,s){a(t,n,o),u(t,e,r,i,s),m(t)}function r(t){T.each(t,function(t){var e=x(t.outEdges,S),n=x(t.inEdges,S),i=Math.max(e,n);t.setLayout({value:i},!0)})}function a(t,e,n){for(var i=t,o=null,r=0,a=0;i.length;){o=[];for(var u=0,c=i.length;u<c;u++){var h=i[u];h.setLayout({x:r},!0),h.setLayout({dx:e},!0);for(var d=0,p=h.outEdges.length;d<p;d++)o.push(h.outEdges[d].node2)}i=o,++r}s(t,r),a=(n-e)/(r-1),l(t,a)}function s(t,e){T.each(t,function(t){t.outEdges.length||t.setLayout({x:e-1},!0)})}function l(t,e){T.each(t,function(t){var n=t.getLayout().x*e;t.setLayout({x:n},!0)})}function u(t,e,n,i,o){var r=I().key(function(t){return t.getLayout().x}).sortKeys(w).entries(t).map(function(t){return t.values});c(t,r,e,n,i),h(r,i,n);for(var a=1;o>0;o--)a*=.99,d(r,a),h(r,i,n),f(r,a),h(r,i,n)}function c(t,e,n,i,o){var r=[];T.each(e,function(t){var e=t.length,n=0;T.each(t,function(t){n+=t.getLayout().value});var a=(i-(e-1)*o)/n;r.push(a)}),r.sort(function(t,e){return t-e});var a=r[0];T.each(e,function(t){T.each(t,function(t,e){t.setLayout({y:e},!0);var n=t.getLayout().value*a;t.setLayout({dy:n},!0)})}),T.each(n,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})}function h(t,e,n){T.each(t,function(t){var i,o,r,a=0,s=t.length;for(t.sort(b),r=0;r<s;r++){if(i=t[r],(o=a-i.getLayout().y)>0){var l=i.getLayout().y+o;i.setLayout({y:l},!0)}a=i.getLayout().y+i.getLayout().dy+e}if((o=a-e-n)>0){var l=i.getLayout().y-o;for(i.setLayout({y:l},!0),a=i.getLayout().y,r=s-2;r>=0;--r)i=t[r],o=i.getLayout().y+i.getLayout().dy+e-a,o>0&&(l=i.getLayout().y-o,i.setLayout({y:l},!0)),a=i.getLayout().y}})}function d(t,e){T.each(t.slice().reverse(),function(t){T.each(t,function(t){if(t.outEdges.length){var n=x(t.outEdges,p)/x(t.outEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function p(t){return _(t.node2)*t.getValue()}function f(t,e){T.each(t,function(t){T.each(t,function(t){if(t.inEdges.length){var n=x(t.inEdges,g)/x(t.inEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function g(t){return _(t.node1)*t.getValue()}function m(t){T.each(t,function(t){t.outEdges.sort(v),t.inEdges.sort(y)}),T.each(t,function(t){var e=0,n=0;T.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),T.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}function v(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function y(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function x(t,e){for(var n=0,i=t.length,o=-1;++o<i;){var r=+e.call(t,t[o],o);isNaN(r)||(n+=r)}return n}function _(t){return t.getLayout().y+t.getLayout().dy/2}function b(t,e){return t.getLayout().y-e.getLayout().y}function w(t,e){return t<e?-1:t>e?1:t===e?0:NaN}function S(t){return t.getValue()}var M=n(43),I=n(661),T=n(2);t.exports=function(t,e,n){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),s=i(t,e);t.layoutInfo=s;var l=s.width,u=s.height,c=t.getGraph(),h=c.nodes,d=c.edges;r(h),o(h,d,n,a,l,u,0!==T.filter(h,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"))})}},function(t,e,n){var i=n(140),o=n(2);t.exports=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes;n.sort(function(t,e){return t.getLayout().value-e.getLayout().value});var r=n[0].getLayout().value,a=n[n.length-1].getLayout().value;o.each(n,function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:t.get("color")}),o=n.mapValueToVisual(e.getLayout().value);e.setVisual("color",o);var s=e.getModel(),l=s.get("itemStyle.normal.color");null!=l&&e.setVisual("color",l)})})}},function(t,e,n){var i=n(2),o=n(10);n(1514),n(1515),o.registerVisual(i.curry(n(158),"scatter","circle",null)),o.registerLayout(i.curry(n(393),"scatter")),n(203)},function(t,e,n){"use strict";var i=n(117),o=n(60);t.exports=o.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,n){var i=n(199),o=n(1474);n(10).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new o},render:function(t,e,n){var i=t.getData(),o=this._largeSymbolDraw,r=this._normalSymbolDraw,a=this.group,s=t.get("large")&&i.count()>t.get("largeThreshold")?o:r;this._symbolDraw=s,s.updateData(i),a.add(s.group),a.remove(s===o?r.group:o.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)},dispose:function(){}})},function(t,e,n){var i=n(10),o=n(2);n(645),n(1517),n(1518),i.registerLayout(n(1519)),i.registerVisual(n(1520)),i.registerProcessor(o.curry(n(266),"themeRiver"))},function(t,e,n){"use strict";var i=n(85),o=n(60),r=n(55),a=n(2),s=n(35),l=s.encodeHTML,u=n(661),c=o.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){c.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=u().key(function(t){return t[2]}).entries(t),i=a.map(n,function(t){return{name:t.key,dataList:t.values}}),o=i.length,r=-1,s=-1,l=0;l<o;++l){var c=i[l].dataList.length;c>r&&(r=c,s=l)}for(var h=0;h<o;++h)if(h!==s)for(var d=i[h].name,p=0;p<r;++p){for(var f=i[s].dataList[p][0],g=i[h].dataList.length,m=-1,v=0;v<g;++v){var y=i[h].dataList[v][0];if(y===f){m=v;break}}-1===m&&(t[e]=[],t[e][0]=f,t[e][1]=0,t[e][2]=d,e++)}return t},getInitialData:function(t,e){var n=[],o=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],s=o.get("type");n=[{name:"time",type:"category"===s?"ordinal":"time"===s?"time":"float"},{name:"value",type:"float"},{name:"name",type:"ordinal"}];for(var l=a.filter(t.data,function(t){return void 0!==t[2]}),u=this.fixData(l||[]),c=[],h=this.nameMap=a.createHashMap(),d=0,p=0;p<u.length;++p)c.push(u[p][2]),h.get(u[p][2])||(h.set(u[p][2],d),d++);n=i(n,u);var f=new r(n,this);return f.initData(u,c),f},coordDimToDataDim:function(t){return["time"]},getLayerSeries:function(){function t(t,n){return e.get("time",t)-e.get("time",n)}for(var e=this.getData(),n=e.count(),i=[],o=0;o<n;++o)i[o]=o;for(var r=u().key(function(t){return e.get("name",t)}).entries(i),s=a.map(r,function(t){return{name:t.key,indices:t.values}}),l=0;l<s.length;++l)s[l].indices.sort(t);return s},getAxisTooltipData:function(t,e,n){a.isArray(t)||(t=t?[t]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),s=[],l=r.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,d=r[u].indices.length,p=0;p<d;++p){var f=o.get(t[0],r[u].indices[p]),g=Math.abs(f-e);g<=c&&(i=f,c=g,h=r[u].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),n=e.get("name",t),i=e.get("value",t);return(isNaN(i)||null==i)&&(i="-"),l(n+" : "+i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{normal:{margin:4,textAlign:"right",show:!0,position:"left",textStyle:{color:"#000",fontSize:11}},emphasis:{show:!0}}}});t.exports=c},function(t,e,n){function i(t,e,n){var i=new r.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return r.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}var o=n(628),r=n(12),a=n(2),s=n(205);t.exports=n(10).extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,n){function l(t){return t.name}function u(e,n,s){var l=this._layers;if("remove"===e)return void d.remove(l[n]);for(var u,f=[],g=[],m=p[n].indices,v=0;v<m.length;v++){var x=c.getItemLayout(m[v]),_=x.x,b=x.y0,w=x.y;f.push([_,b]),g.push([_,b+w]),u=h.getItemVisual(m[v],"color")}var S,M,I=c.getItemLayout(m[0]),T=c.getItemModel(m[v-1]),A=T.getModel("label.normal"),D=A.get("margin");if("add"===e){var C=y[n]=new r.Group;S=new o.Polygon({shape:{points:f,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M=new r.Text({style:{x:I.x-D,y:I.y0+I.y/2}}),C.add(S),C.add(M),d.add(C),S.setClipPath(i(S.getBoundingRect(),t,function(){S.removeClipPath()}))}else{var C=l[s];S=C.childAt(0),M=C.childAt(1),d.add(C),y[n]=C,r.updateProps(S,{shape:{points:f,stackedOnPoints:g}},t),r.updateProps(M,{style:{x:I.x-D,y:I.y0+I.y/2}},t)}var L=T.getModel("itemStyle.emphasis"),P=T.getModel("itemStyle.normal"),k=A.getModel("textStyle");M.setStyle({text:A.get("show")?t.getFormattedLabel(m[v-1],"normal")||c.getName(m[v-1]):"",textFont:k.getFont(),textAlign:A.get("textAlign"),textVerticalAlign:"middle"}),S.setStyle(a.extend({fill:u},P.getItemStyle(["color"]))),r.setHoverStyle(S,L.getItemStyle())}var c=t.getData(),h=t.getRawData();if(c.count()){var d=this.group,p=t.getLayerSeries(),f=c.getLayout("layoutInfo"),g=f.rect,m=f.boundaryGap;d.attr("position",[0,g.y+m[0]]);var v=new s(this._layersSeries||[],p,l,l),y={};v.add(a.bind(a.curry(u,"add"),this)).update(a.bind(a.curry(u,"update"),this)).remove(a.bind(a.curry(u,"remove"),this)).execute(),this._layersSeries=p,this._layers=y}},dispose:function(){}})},function(t,e,n){function i(t,e,n){if(t.count())for(var i,a=e.coordinateSystem,s=e.getLayerSeries(),l=r.map(s,function(e){return r.map(e.indices,function(e){var n=a.dataToPoint(t.get("time",e));return n[1]=t.get("value",e),n})}),u=o(l),c=u.y0,h=n/u.max,d=s.length,p=s[0].indices.length,f=0;f<p;++f){i=c[f]*h,t.setItemLayout(s[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,t.setItemLayout(s[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}function o(t){for(var e,n=t.length,i=t[0].length,o=[],r=[],a=0,s={},l=0;l<i;++l){for(var u=0,e=0;u<n;++u)e+=t[u][l][1];e>a&&(a=e),o.push(e)}for(var c=0;c<i;++c)r[c]=(a-o[c])/2;a=0;for(var h=0;h<i;++h){var d=o[h]+r[h];d>a&&(a=d)}return s.y0=r,s.max=a,s}var r=n(2),a=n(13);t.exports=function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,o={},r=n.getRect();o.rect=r;var s=t.get("boundaryGap"),l=n.getAxis();if(o.boundaryGap=s,"horizontal"===l.orient){s[0]=a.parsePercent(s[0],r.height),s[1]=a.parsePercent(s[1],r.height);i(e,t,r.height-s[0]-s[1])}else{s[0]=a.parsePercent(s[0],r.width),s[1]=a.parsePercent(s[1],r.width);i(e,t,r.width-s[0]-s[1])}e.setLayout("layoutInfo",o)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color");e.each(function(o){var r=e.getName(o),a=i[(t.nameMap.get(r)-1)%i.length];n.setItemVisual(o,"color",a)})})}},function(t,e,n){var i=n(10);n(1523),n(1524),n(1525),i.registerVisual(n(1527)),i.registerLayout(n(1526))},function(t,e,n){function i(t){this.group=new a.Group,t.add(this.group)}function o(t,e,n,i,o,r){var a=[[o?t:t-c,e],[t+n,e],[t+n,e+i],[o?t:t-c,e+i]];return!r&&a.splice(2,0,[t+n+c,e+i/2]),!o&&a.push([t,e+i/2]),a}function r(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&u.wrapTreePathInfo(n,e)}}var a=n(12),s=n(43),l=n(2),u=n(155),c=5;i.prototype={constructor:i,render:function(t,e,n,i){var o=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),o.get("show")&&n){var a=o.getModel("itemStyle.normal"),l=a.getModel("textStyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,a,l,i),s.positionElement(r,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var o=i.getModel().get("name"),r=n.getTextRect(o),a=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:o,width:a})}},_renderContent:function(t,e,n,i,u){for(var c=0,h=e.emptyItemWidth,d=t.get("breadcrumb.height"),p=s.getAvailableSize(e.pos,e.box),f=e.totalWidth,g=e.renderList,m=g.length-1;m>=0;m--){var v=g[m],y=v.node,x=v.width,_=v.text;f>p.width&&(f-=x-h,x=h,_="");var b=new a.Polygon({shape:{points:o(c,0,x,d,m===g.length-1,0===m)},style:l.defaults(n.getItemStyle(),{lineJoin:"bevel",text:_,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:l.curry(u,y)});this.group.add(b),r(b,t,y),c+=x+8}},remove:function(){this.group.removeAll()}},t.exports=i},function(t,e,n){function i(t){var e=0;s.each(t.children,function(t){i(t);var n=t.value;s.isArray(n)&&(n=n[0]),e+=n});var n=t.value;s.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s.isArray(t.value)?t.value[0]=n:t.value=n}function o(t,e){var n=e.get("color");if(n){t=t||[];var i;if(s.each(t,function(t){var e=new l(t),n=e.get("color");(e.get("itemStyle.normal.color")||n&&"none"!==n)&&(i=!0)}),!i){(t[0]||(t[0]={})).color=n.slice()}return t}}var r=n(60),a=n(1648),s=n(2),l=n(53),u=n(35),c=n(155),h=u.encodeHTML,d=u.addCommas;t.exports=r.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},upperLabel:{normal:{show:!1,position:[0,"50%"],height:20,textStyle:{color:"#fff",ellipsis:!0,baseline:"middle"}},emphasis:{show:!0,position:[0,"50%"],textStyle:{color:"#fff",ellipsis:!0,baseline:"middle"}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var n={name:t.name,children:t.data};i(n);var r=t.levels||[];return r=t.levels=o(r,e),a.createTree(n,this,r).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=d(s.isArray(n)?n[0]:n),o=e.getName(t);return h(o+": "+i)},getDataParams:function(t){var e=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c.wrapTreePathInfo(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=s.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}})},function(t,e,n){function i(){return{nodeGroup:[],background:[],content:[]}}function o(t,e,n,i,o,l,u,c,h,d){function p(t,e){P?!t.invisible&&l.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function f(e,n,i,o,r,s){var l=u.getModel(),c=a.retrieve(t.getFormattedLabel(u.dataIndex,"normal",null,null,s?"upperLabel":"label"),l.get("name"));if(!s&&A.isLeafRoot){var h=t.get("drillDownIcon",!0);c=h?h+" "+c:c}g(c,e,l,s?b:x,i,o,r,s),g(c,n,l,s?w:_,i,o,r,s)}function g(t,e,n,i,o,r,l,u){var c=n.getModel(i),h=c.getModel("textStyle");s.setText(e,c,o),e.textAlign=h.get("align"),e.textVerticalAlign=h.get("baseline"),u&&(e.textPositionRect=a.clone(u));var d=h.getTextRect(t);!c.getShallow("show")||d.height>l?e.text="":d.width>r?e.text=h.get("ellipsis")?h.truncateText(t,r,null,{minChar:2}):"":e.text=t}function y(t,i,a,s){var l=null!=E&&n[t][E],u=o[t];return l?(n[t][E]=null,S(u,l,t)):P||(l=new i({z:r(a,s)}),l.__tmDepth=a,l.__tmStorageName=t,T(u,l,t)),e[t][k]=l}function S(t,e,n){(t[k]={}).old="nodeGroup"===n?e.position.slice():a.extend({},e.shape)}function T(t,e,n){var r=t[k]={},a=u.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,l=0,c=o.background[a.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,l=c.old.height),r.old="nodeGroup"===n?[0,l]:{x:s,y:l,width:0,height:0}}r.fadein="nodeGroup"!==n}if(u){var A=u.getLayout();if(A&&A.isInView){var D=A.width,C=A.height,L=A.borderWidth,P=A.invisible,k=u.getRawIndex(),E=c&&c.getRawIndex(),O=u.viewChildren,z=A.upperHeight,R=O&&O.length,N=u.getModel("itemStyle.emphasis"),V=y("nodeGroup",m);if(V){if(h.add(V),V.attr("position",[A.x||0,A.y||0]),V.__tmNodeWidth=D,V.__tmNodeHeight=C,A.isAboveViewRoot)return V;var B=y("background",v,d,M);if(B&&function(e,n,i){n.dataIndex=u.dataIndex,n.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:D,height:C});var o=u.getVisual("borderColor",!0),r=N.get("borderColor");p(n,function(){var t={fill:o},e={fill:r};if(i){var a=D-2*L;f(t,e,o,a,z,{x:L,y:0,width:a,height:z})}else t.text=e.text="";n.setStyle(t),s.setHoverStyle(n,e)}),e.add(n)}(V,B,R&&A.upperHeight),!R){var G=y("content",v,d,I);G&&function(e,n){n.dataIndex=u.dataIndex,n.seriesIndex=t.seriesIndex;var i=Math.max(D-2*L,0),o=Math.max(C-2*L,0);n.culling=!0,n.setShape({x:L,y:L,width:i,height:o});var r=u.getVisual("color",!0);p(n,function(){var t={fill:r},e=N.getItemStyle();f(t,e,r,i,o),n.setStyle(t),s.setHoverStyle(n,e)}),e.add(n)}(V,G)}return V}}}}function r(t,e){var n=t*S+e;return(n-1)/n}var a=n(2),s=n(12),l=n(205),u=n(155),c=n(1522),h=n(263),d=n(54),p=n(91),f=n(1666),g=a.bind,m=s.Group,v=s.Rect,y=a.each,x=["label","normal"],_=["label","emphasis"],b=["upperLabel","normal"],w=["upperLabel","emphasis"],S=10,M=1,I=2;t.exports=n(10).extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=i(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(t,e,n,i){var o=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(a.indexOf(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=u.retrieveTargetInfo(i,t),s=i&&i.type,l=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===s&&r&&h?{rootNodeGroup:h.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(l),f=this._doRender(p,t,d);c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(p,f,t,d),this._resetController(n),this._renderBreadcrumb(t,n,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){function r(t,e,n,i,o){function s(t){return t.getId()}function u(a,s){var l=null!=a?t[a]:null,u=null!=s?e[s]:null,c=g(l,u,n,o);c&&r(l&&l.viewChildren||[],u&&u.viewChildren||[],c,i,o+1)}i?(e=t,y(t,function(t,e){!t.isRemoved()&&u(e,e)})):new l(e,t,s,s).add(u).update(u).remove(a.curry(u,null)).execute()}function s(){y(m,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(f,function(t){t.invisible=!0,t.dirty()})}var u=e.getData().tree,c=this._oldTree,h=i(),d=i(),p=this._storage,f=[],g=a.curry(o,e,d,p,n,h,f);r(u.root?[u.root]:[],c&&c.root?[c.root]:[],t,u===c||!c,0);var m=function(t){var e=i();return t&&y(t,function(t,n){var i=e[n];y(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}(p);return this._oldTree=u,this._storage=d,{lastsForAnimation:h,willDeleteEls:m,renderFinally:s}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var o=n.get("animationDurationUpdate"),r=n.get("animationEasing"),s=f.createWrap();y(e.willDeleteEls,function(t,e){y(t,function(t,n){if(!t.invisible){var a,l=t.parent;if(i&&"drillDown"===i.direction)a=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),a="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}a&&s.add(t,a,o,r)}})}),y(this._storage,function(t,n){y(t,function(t,i){var l=e.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=a.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,o,r))})},this),this._state="animating",s.done(g(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new h(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var n=new d(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,i){return n.contain(e,i)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t,e){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(t)>3||Math.abs(e)>3)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t,y:i.y+e,width:i.width,height:i.height}})}},_onZoom:function(t,e,n){if(this._mayClick=!1,"animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var r=new d(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=p.create();p.translate(s,s,[-e,-n]),p.scale(s,s,[t,t]),p.translate(s,s,[e,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){function e(t){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var o=i.hostTree.data.getItemModel(i.dataIndex),r=o.get("link",!0),a=o.get("target",!0)||"blank";r&&window.open(r,a)}}}}t.on("mousedown",function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on("mouseup",function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(u.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,n.node,g(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=i(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var o=this._storage.background[i.getRawIndex()];if(o){var r=o.transformCoordToLocal(t,e),a=o.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}},this),n}})},function(t,e,n){for(var i=n(10),o=n(155),r=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)i.registerAction({type:a[s],update:"updateView"},r);i.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,e){function n(e,n){var i=o.retrieveTargetInfo(t,e);if(i){var r=e.getViewRoot();r&&(t.direction=o.aboveViewRoot(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)})},function(t,e,n){function i(t,e,n){var i={mainType:"series",subType:"treemap",query:n};t.eachComponent(i,function(t){var i=e.getWidth(),r=e.getHeight(),a=t.option,s=v.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=a.size||[],u=w(S(s.width,l[0]),i),c=w(S(s.height,l[1]),r),f=n&&n.type,m=y.retrieveTargetInfo(n,t),_="treemapRender"===f||"treemapMove"===f?n.rootRect:null,b=t.getViewRoot(),I=y.getPathToRoot(b);if("treemapMove"!==f){var T="treemapZoomToNode"===f?h(t,m,b,u,c):_?[_.width,_.height]:[u,c],A=a.sort;A&&"asc"!==A&&"desc"!==A&&(A="desc");var D={squareRatio:a.squareRatio,sort:A,leafDepth:a.leafDepth};b.hostTree.clearLayouts();var C={x:0,y:0,width:T[0],height:T[1],area:T[0]*T[1]};b.setLayout(C),o(b,D,!1,0);var C=b.getLayout();M(I,function(t,e){var n=(I[e+1]||b).getValue();t.setLayout(g.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},C))})}var L=t.getData().tree.root;L.setLayout(d(s,_,m),!0),t.setLayoutInfo(s),p(L,new x(-s.x,-s.y,i,r),I,b,0)})}function o(t,e,n,i){var a,s;if(!t.isRemoved()){var l=t.getLayout();a=l.width,s=l.height;var h=t.getModel(),d=h.get(I),p=h.get(T)/2,g=f(h),m=Math.max(d,g),v=d-p,y=m-p,h=t.getModel();t.setLayout({borderWidth:d,upperHeight:m,upperLabelHeight:g},!0),a=_(a-2*v,0),s=_(s-v-y,0);var x=a*s,w=r(t,h,x,e,n,i);if(w.length){var S={x:v,y:y,width:a,height:s},M=b(a,s),A=1/0,D=[];D.area=0;for(var C=0,L=w.length;C<L;){var P=w[C];D.push(P),D.area+=P.getLayout().area;var k=u(D,M,e.squareRatio);k<=A?(C++,A=k):(D.area-=D.pop().getLayout().area,c(D,M,S,p,!1),M=b(S.width,S.height),D.length=D.area=0,A=1/0)}if(D.length&&c(D,M,S,p,!0),!n){var E=h.get("childrenVisibleMin");null!=E&&x<E&&(n=!0)}for(var C=0,L=w.length;C<L;C++)o(w[C],e,n,i+1)}}}function r(t,e,n,i,o,r){var u=t.children||[],c=i.sort;"asc"!==c&&"desc"!==c&&(c=null);var h=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!h)return t.viewChildren=[];u=g.filter(u,function(t){return!t.isRemoved()}),s(u,c);var d=l(e,u,c);if(0===d.sum)return t.viewChildren=[];if(d.sum=a(e,n,d.sum,c,u),0===d.sum)return t.viewChildren=[];for(var p=0,f=u.length;p<f;p++){var m=u[p].getValue()/d.sum*n;u[p].setLayout({area:m})}return h&&(u.length&&t.setLayout({isLeafRoot:!0},!0),u.length=0),t.viewChildren=u,t.setLayout({dataExtent:d.dataExtent},!0),u}function a(t,e,n,i,o){if(!i)return n;for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*e<r&&(s=l,n-=u)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}function s(t,e){return e&&t.sort(function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}),t}function l(t,e,n){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a,s=t.get("visualDimension");if(e&&e.length)if("value"===s&&n)a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse();else{var a=[1/0,-1/0];M(e,function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)})}else a=[NaN,NaN];return{sum:i,dataExtent:a}}function u(t,e,n){for(var i,o=0,r=1/0,a=0,s=t.length;a<s;a++)(i=t[a].getLayout().area)&&(i<r&&(r=i),i>o&&(o=i));var l=t.area*t.area,u=e*e*n;return l?_(u*o/l,l/(u*r)):1/0}function c(t,e,n,i,o){var r=e===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=n[s[r]],c=e?t.area/e:0;(o||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,m=f[l[a]]=_(c-2*i,0),v=n[s[r]]+n[l[r]]-u,y=h===d-1||v<g?v:g,x=f[l[r]]=_(y-2*i,0);f[s[a]]=n[s[a]]+b(i,m/2),f[s[r]]=u+b(i,x/2),u+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function h(t,e,n,i,o){var r=(e||{}).node,a=[i,o];if(!r||r===n)return a;for(var s,l=i*o,u=l*t.option.zoomToNodeRatio;s=r.parentNode;){for(var c=0,h=s.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var g=r.getValue();if(0===g)return a;u*=c/g;var v=s.getModel(),y=v.get(I);u+=4*y*y+(3*y+Math.max(y,f(v)))*Math.pow(u,.5),u>m.MAX_SAFE_INTEGER&&(u=m.MAX_SAFE_INTEGER),r=s}u<l&&(u=l);var x=Math.pow(u/l,.5);return[i*x,o*x]}function d(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var o=n.node,r=o.getLayout();if(!r)return i;for(var a=[r.width/2,r.height/2],s=o;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function p(t,e,n,i,o){var r=t.getLayout(),a=n[o],s=a&&a===t;if(!(a&&!s||o===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(r),isAboveViewRoot:s},!0);var l=new x(e.x-r.x,e.y-r.y,e.width,e.height);M(t.viewChildren||[],function(t){p(t,l,n,i,o+1)})}}function f(t){return t.get(A)?t.get(D):0}var g=n(2),m=n(13),v=n(43),y=n(155),x=n(54),y=n(155),_=Math.max,b=Math.min,w=m.parsePercent,S=g.retrieve,M=g.each,I=["itemStyle","normal","borderWidth"],T=["itemStyle","normal","gapWidth"],A=["upperLabel","normal","show"],D=["upperLabel","normal","height"];t.exports=i},function(t,e,n){function i(t,e,n,s,u,h){var d=t.getModel(),f=t.getLayout();if(f&&!f.invisible&&f.isInView){var m,v=t.getModel(g),y=n[t.depth],x=o(v,e,y,s),_=v.get("borderColor"),b=v.get("borderColorSaturation");null!=b&&(m=r(x),_=a(b,m)),t.setVisual("borderColor",_);var w=t.viewChildren;if(w&&w.length){var S=l(t,d,f,v,x,w);p.each(w,function(t,e){if(t.depth>=u.length||t===u[t.depth]){i(t,c(d,x,t,e,S,h),n,s,u,h)}})}else m=r(x),t.setVisual("color",m)}}function o(t,e,n,i){var o=p.extend({},e);return p.each(["color","colorAlpha","colorSaturation"],function(r){var a=t.get(r,!0);null==a&&n&&(a=n[r]),null==a&&(a=e[r]),null==a&&(a=i.get(r)),null!=a&&(o[r]=a)}),o}function r(t){var e=s(t,"color");if(e){var n=s(t,"colorAlpha"),i=s(t,"colorSaturation");return i&&(e=d.modifyHSL(e,null,null,i)),n&&(e=d.modifyAlpha(e,n)),e}}function a(t,e){return null!=e?d.modifyHSL(e,null,null,t):null}function s(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function l(t,e,n,i,o,r){if(r&&r.length){var a=u(e,"color")||null!=o.color&&"none"!==o.color&&(u(e,"colorAlpha")||u(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var d=e.get("colorMappingBy"),p={type:a.name,dataExtent:c,visual:a.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new h(p);return f.__drColorMappingBy=d,f}}}function u(t,e){var n=t.get(e);return f(n)&&n.length?{name:e,range:n}:null}function c(t,e,n,i,o,r){var a=p.extend({},e);if(o){var s=o.type,l="color"===s&&o.__drColorMappingBy,u="index"===l?i:"id"===l?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=o.mapValueToVisual(u)}return a}var h=n(140),d=n(112),p=n(2),f=p.isArray,g="itemStyle.normal";t.exports=function(t,e,n){var o={mainType:"series",subType:"treemap",query:n};t.eachComponent(o,function(t){var e=t.getData().tree,n=e.root,o=t.getModel(g);if(!n.isRemoved()){i(n,{},p.map(e.levelModels,function(t){return t?t.get(g):null}),o,t.getViewRoot().getAncestors(),t)}})}},function(t,e,n){"use strict";n(391),n(1535)},function(t,e,n){"use strict";n(655),n(1536)},function(t,e,n){var i=n(10),o=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,textStyle:{color:"#fff"},padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});t.exports=o},function(t,e,n){var i=n(631),o=n(10).extendComponentView({type:"axisPointer",render:function(t,e,n){var o=e.getComponent("tooltip"),r=t.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";i.register("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){i.disopse(e.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(t,e){i.unregister("axisPointer",e),o.superApply(this._model,"dispose",arguments)}})},function(t,e,n){"use strict";function i(t,e,n,i,o){var r=e.axis,s=r.dataToCoord(t),c=i.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,p,f=i.getRadiusAxis().getExtent();if("radius"===r.dim){var g=l.create();l.rotate(g,g,c),l.translate(g,g,[i.cx,i.cy]),h=a.applyTransform([s,-o],g);var m=e.getModel("axisLabel").get("rotate")||0,v=u.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];h=i.coordToPoint([y+o,s]);var x=i.cx,_=i.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",p=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:p}}var o=n(35),r=n(381),a=n(12),s=n(262),l=n(91),u=n(138),c=n(139),h=r.extend({makeElOption:function(t,e,n,r,a){var l=n.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var u,c=l.polar,h=c.getOtherAxis(l),p=h.getExtent();u=l["dataTo"+o.capitalFirst(l.dim)](e);var f=r.get("type");if(f&&"none"!==f){var g=s.buildElStyle(r),m=d[f](l,c,u,p,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=r.get("label.margin"),y=i(e,n,r,c,v);s.buildLabelElOption(t,n,r,a,y)}}),d={line:function(t,e,n,i,o){return"angle"===t.dim?{type:"Line",shape:s.makeLineShape(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,o){var r=t.getBandWidth(),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,i[0],i[1],(-n-r/2)*a,(r/2-n)*a)}:{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",h),t.exports=h},function(t,e,n){"use strict";function i(t){return t.isHorizontal()?0:1}function o(t,e){var n=t.getRect();return[n[c[e]],n[c[e]]+n[h[e]]]}var r=n(12),a=n(381),s=n(262),l=n(633),u=n(139),c=["x","y"],h=["width","height"],d=a.extend({makeElOption:function(t,e,n,r,a){var u=n.axis,c=u.coordinateSystem,h=o(c,1-i(u)),d=c.dataToPoint(e)[0],f=r.get("type");if(f&&"none"!==f){var g=s.buildElStyle(r),m=p[f](u,d,h,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=l.layout(n);s.buildCartesianSingleLabelElOption(e,t,v,n,r,a)},getHandleTransform:function(t,e,n){var i=l.layout(e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,r){var a=n.axis,s=a.coordinateSystem,l=i(a),u=o(s,l),c=t.position;c[l]+=e[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=o(s,1-l),d=(h[1]+h[0])/2,p=[d,d];return p[l]=c[l],{position:c,rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(t,e,n,o){var a=s.makeLineShape([e,n[0]],[e,n[1]],i(t));return r.subPixelOptimizeLine({shape:a,style:o}),{type:"Line",shape:a}},shadow:function(t,e,n,o){var r=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:s.makeRectShape([e-r/2,n[0]],[r,a],i(t))}}};u.registerAxisPointerClass("SingleAxisPointer",d),t.exports=d},function(t,e,n){function i(t,e,n){var i=t.currTrigger,r=[t.x,t.y],g=t,m=t.dispatchAction||f.bind(n.dispatchAction,n),_=e.getComponent("axisPointer").coordSysAxesInfo;p(r)&&(r=v({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var b=p(r),w=g.axesInfo,S=_.axesInfo,M="leave"===i||p(r),I={},T={},A={list:[],map:{}},D={showPointer:x(a,T),showTooltip:x(s,A)};y(_.coordSysMap,function(t,e){var n=b||t.containPoint(r);y(_.coordSysAxesInfo[e],function(t,e){var i=t.axis,a=h(w,t);if(!M&&n&&(!w||a)){var s=a&&a.value;null!=s||b||(s=i.pointToData(r)),null!=s&&o(t,s,D,!1,I)}})});var C={};return y(S,function(t,e){var n=t.linkGroup;n&&!T[e]&&y(n.axesInfo,function(e,i){var o=T[i];if(e!==t&&o){var r=o.value;n.mapper&&(r=t.axis.scale.parse(n.mapper(r,d(e),d(t)))),C[t.key]=r}})}),y(C,function(t,e){o(S[e],t,D,!0,I)}),l(T,S,I),u(A,r,t,m),c(S,m,n),I}function o(t,e,n,i,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var s=r(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==o.seriesIndex&&f.extend(o,l[0]),!i&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l,o),n.showTooltip(t,s,u)}}function r(t,e){var n=e.axis,i=n.dim,o=t,r=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,function(e,l){var u,c,h=e.coordDimToDataDim(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,!1,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,o=u,r.length=0),y(c,function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:r,snapToValue:o}}function a(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function s(t,e,n,i){var o=n.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,u=m.makeKey(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:o.slice()})}}function l(t,e,n){var i=n.axesInfo=[];y(e,function(e,n){var o=e.axisPointerModel.option,r=t[n];r?(!e.useHandle&&(o.status="show"),o.value=r.value,o.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})})}function u(t,e,n,i){if(p(e)||!t.list.length)return void i({type:"hideTip"});var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}function c(t,e,n){var i=n.getZr(),o=_(i).axisPointerLastHighlights||{},r=_(i).axisPointerLastHighlights={};y(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&y(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var a=[],s=[];f.each(o,function(t,e){!r[e]&&s.push(t)}),f.each(r,function(t,e){!o[e]&&a.push(t)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}function h(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function d(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function p(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var f=n(2),g=n(29),m=n(261),v=n(630),y=f.each,x=f.curry,_=g.makeGetter();t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){var o=t.coordToPoint([e,i]),r=t.coordToPoint([n,i]);return{x1:o[0],y1:o[1],x2:r[0],y2:r[1]}}var o=n(2),r=n(12),a=n(53),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];n(139).extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),a=n.getTicksCoords();"category"!==n.type&&a.pop(),o.each(s,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,i,a,r)},this)}},_axisLine:function(t,e,n,i){var o=t.getModel("axisLine.lineStyle"),a=new r.Circle({shape:{cx:e.cx,cy:e.cy,r:i[1]},style:o.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,a){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),u=o.map(n,function(t){return new r.Line({shape:i(e,a[1],a[1]+l,t)})});this.group.add(r.mergePath(u,{style:o.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,i){for(var o=t.axis,s=t.get("data"),l=t.getModel("axisLabel"),u=l.getModel("textStyle"),c=t.getFormattedLabels(),h=l.get("margin"),d=o.getLabelsCoords(),p=0;p<n.length;p++){var f=i[1],g=e.coordToPoint([f+h,d[p]]),m=e.cx,v=e.cy,y=Math.abs(g[0]-m)/f<.3?"center":g[0]>m?"left":"right",x=Math.abs(g[1]-v)/f<.3?"middle":g[1]>v?"top":"bottom",_=u;s&&s[p]&&s[p].textStyle&&(_=new a(s[p].textStyle,u)),this.group.add(new r.Text({style:{x:g[0],y:g[1],fill:_.getTextColor()||t.get("axisLine.lineStyle.color"),text:c[p],textAlign:y,textVerticalAlign:x,textFont:_.getFont()},silent:!0}))}},_splitLine:function(t,e,n,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<n.length;d++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new r.Line({shape:i(e,a[0],a[1],n[d])}))}for(var d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:o.defaults({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,n,i){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-n[0]*h,p=Math.min(i[0],i[1]),f=Math.max(i[0],i[1]),g=t.get("clockwise"),m=1;m<n.length;m++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:p,r:f,startAngle:d,endAngle:-n[m]*h,clockwise:g},silent:!0})),d=-n[m]*h}for(var m=0;m<c.length;m++)this.group.add(r.mergePath(c[m],{style:o.defaults({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}})},function(t,e,n){var i=n(2),o=n(12),r=n(138),a=n(139),s=n(632),l=r.ifIgnoreOnTick,u=r.getInterval,c=["axisLine","axisLabel","axisTick","axisName"],h=["splitArea","splitLine"],d=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,a){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),t.get("show")){var u=t.getCoordSysModel(),p=s.layout(u,t),f=new r(t,p);i.each(c,f.add,f),this._axisGroup.add(f.getGroup()),i.each(h,function(e){t.get(e+".show")&&this["_"+e](t,u,p.labelInterval)},this),o.groupTransition(l,this._axisGroup,t),d.superCall(this,"render",t,e,n,a)}},_splitLine:function(t,e,n){var r=t.axis;if(!r.scale.isBlank()){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),c=s.get("color"),h=u(a,n);c=i.isArray(c)?c:[c];for(var d=e.coordinateSystem.getRect(),p=r.isHorizontal(),f=0,g=r.getTicksCoords(),m=r.scale.getTicks(),v=[],y=[],x=s.getLineStyle(),_=0;_<g.length;_++)if(!l(r,_,h)){var b=r.toGlobalCoord(g[_]);p?(v[0]=b,v[1]=d.y,y[0]=b,y[1]=d.y+d.height):(v[0]=d.x,v[1]=b,y[0]=d.x+d.width,y[1]=b);var w=f++%c.length;this._axisGroup.add(new o.Line(o.subPixelOptimizeLine({anid:"line_"+m[_],shape:{x1:v[0],y1:v[1],x2:y[0],y2:y[1]},style:i.defaults({stroke:c[w]},x),silent:!0})))}}},_splitArea:function(t,e,n){var r=t.axis;if(!r.scale.isBlank()){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),c=s.get("color"),h=e.coordinateSystem.getRect(),d=r.getTicksCoords(),p=r.scale.getTicks(),f=r.toGlobalCoord(d[0]),g=r.toGlobalCoord(d[0]),m=0,v=u(a,n),y=s.getAreaStyle();c=i.isArray(c)?c:[c];for(var x=1;x<d.length;x++)if(!l(r,x,v)){var _,b,w,S,M=r.toGlobalCoord(d[x]);r.isHorizontal()?(_=f,b=h.y,w=M-_,S=h.height):(_=h.x,b=g,w=h.width,S=M-b);var I=m++%c.length;this._axisGroup.add(new o.Rect({anid:"area_"+p[x],shape:{x:_,y:b,width:w,height:S},style:i.defaults({fill:c[I]},y),silent:!0})),f=_+w,g=b+S}}}});d.extend({type:"xAxis"}),d.extend({type:"yAxis"})},function(t,e,n){function i(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function o(t){var e=t.axis;return a.map(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function r(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var a=n(2),s=n(138),l=n(383),u=n(640),c=n(12),h=["axisLine","axisLabel","axisTick","axisName"],d=n(10).extendComponentView({type:"parallelAxis",init:function(t,e){d.superApply(this,"init",arguments),(this._brushController=new l(e.getZr())).on("brush",a.bind(this._onBrush,this))},render:function(t,e,n,o){if(!i(t,e,o)){this.axisModel=t,this.api=n,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new c.Group,this.group.add(this._axisGroup),t.get("show")){var u=r(t,e),d=u.coordinateSystem,p=t.getAreaSelectStyle(),f=p.width,g=t.axis.dim,m=d.getAxisLayout(g),v=a.extend({strokeContainThreshold:f},m),y=new s(t,v);a.each(h,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,p,t,u,f,n);var x=o&&!1===o.animation?null:t;c.groupTransition(l,this._axisGroup,x)}}},updateVisual:function(t,e,n,i){this._brushController&&this._brushController.updateCovers(o(t))},_refreshBrushController:function(t,e,n,i,r,a){var s=n.axis.getExtent(),l=s[1]-s[0],h=Math.min(30,.1*Math.abs(l)),d=c.BoundingRect.create({x:s[0],y:-r/2,width:l,height:r});d.x-=h,d.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:u.makeRectPanelClipPath(d),isTargetByCursor:u.makeRectIsTargetByCursor(d,a,i),getLinearBrushOtherExtent:u.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(o(n))},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,o=a.map(t,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},dispose:function(){this._brushController.dispose()}});t.exports=d},function(t,e,n){"use strict";function i(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var o=n(2),r=n(12),a=n(138),s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"];n(139).extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,u=r.getAngleAxis(),c=n.getTicksCoords(),h=u.getExtent()[0],d=n.getExtent(),p=i(r,t,h),f=new a(t,p);o.each(s,f.add,f),this.group.add(f.getGroup()),o.each(l,function(e){t.get(e+".show")&&!n.scale.isBlank()&&this["_"+e](t,r,h,d,c)},this)}},_splitLine:function(t,e,n,i,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<a.length;d++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new r.Circle({shape:{cx:e.cx,cy:e.cy,r:a[d]},silent:!0}))}for(var d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:o.defaults({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},_splitArea:function(t,e,n,i,a){var s=t.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=a[0],p=1;p<a.length;p++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new r.Sector({shape:{cx:e.cx,cy:e.cy,r0:d,r:a[p],startAngle:0,endAngle:2*Math.PI},silent:!0})),d=a[p]}for(var p=0;p<h.length;p++)this.group.add(r.mergePath(h[p],{style:o.defaults({fill:u[p%u.length]},l.getAreaStyle()),silent:!0}))}})},function(t,e,n){var i=n(138),o=n(2),r=n(12),a=n(633),s=i.getInterval,l=i.ifIgnoreOnTick,u=["axisLine","axisLabel","axisTick","axisName"],c=n(139).extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,r){var s=this.group;s.removeAll();var l=a.layout(t),h=new i(t,l);o.each(u,h.add,h),s.add(h.getGroup()),t.get("splitLine.show")&&this._splitLine(t,l.labelInterval),c.superCall(this,"render",t,e,n,r)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),a=o.get("width"),u=o.get("color"),c=s(i,e);u=u instanceof Array?u:[u];for(var h=t.coordinateSystem.getRect(),d=n.isHorizontal(),p=[],f=0,g=n.getTicksCoords(),m=[],v=[],y=0;y<g.length;++y)if(!l(n,y,c)){var x=n.toGlobalCoord(g[y]);d?(m[0]=x,m[1]=h.y,v[0]=x,v[1]=h.y+h.height):(m[0]=h.x,m[1]=x,v[0]=h.x+h.width,v[1]=x);var _=f++%u.length;p[_]=p[_]||[],p[_].push(new r.Line(r.subPixelOptimizeLine({shape:{x1:m[0],y1:m[1],x2:v[0],y2:v[1]},style:{lineWidth:a},silent:!0})))}for(var y=0;y<p.length;++y)this.group.add(r.mergePath(p[y],{style:{stroke:u[y%u.length],lineDash:o.getLineDash(a),lineWidth:a},silent:!0}))}}});t.exports=c},function(t,e,n){var i=n(10),o={type:"axisAreaSelect",event:"axisAreaSelected",update:"updateVisual"};i.registerAction(o,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),i.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})},function(t,e,n){n(10).registerPreprocessor(n(1545)),n(1547),n(1542),n(1543),n(1544),n(1596)},function(t,e,n){function i(t,e){return r.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var o=n(10),r=n(2),a=n(269),s=n(53),l=["#ddd"],u=o.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var n=this.option;!e&&a.replaceVisualOption(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{},n.outOfBrush=n.outOfBrush||{color:l}},setAreas:function(t){__DEV__&&(r.assert(r.isArray(t)),r.each(t,function(t){r.assert(t.brushType,"Illegal areas")})),t&&(this.areas=r.map(t,function(t){return i(this.option,t)},this))},setBrushOption:function(t){this.brushOption=i(this.option,t),this.brushType=this.brushOption.brushType}});t.exports=u},function(t,e,n){function i(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}var o=n(2),r=n(383),a=n(10);t.exports=a.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new r(e.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,i.apply(this,arguments)},updateView:i,updateLayout:i,updateVisual:i,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:o.clone(t),$from:n})}})},function(t,e,n){var i=n(10);i.registerAction({type:"brush",event:"brush",update:"updateView"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),i.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},function(t,e,n){function i(t){var e={};o.each(t,function(t){e[t]=1}),t.length=0,o.each(e,function(e,n){t.push(n)})}var o=n(2),r=["rect","polygon","keep","clear"];t.exports=function(t,e){var n=t&&t.brush;if(o.isArray(n)||(n=n?[n]:[]),n.length){var a=[];o.each(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(a=a.concat(e))});var s=t&&t.toolbox;o.isArray(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),u=l.brush||(l.brush={}),c=u.type||(u.type=[]);c.push.apply(c,a),i(c),e&&!c.length&&c.push.apply(c,r)}}},function(t,e,n){function i(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){var r=i.range;return o(e[t],r)},rect:function(i,r,a){var s=a.range,l=[i[e[t]],i[e[t]]+i[n[t]]];return l[1]<l[0]&&l.reverse(),o(l[0],s)||o(l[1],s)||o(s[0],l)||o(s[1],l)}}}function o(t,e){return e[0]<=t&&t<=e[1]}function r(t,e,n,i,o){for(var r=0,s=o[o.length-1];r<o.length;r++){var l=o[r];if(a(t,e,n,i,l[0],l[1],s[0],s[1]))return!0;s=l}}function a(t,e,n,i,o,r,a,u){var c=l(n-t,o-a,i-e,r-u);if(s(c))return!1;var h=l(o-t,o-a,r-e,r-u)/c;if(h<0||h>1)return!1;var d=l(n-t,o-t,i-e,r-e)/c;return!(d<0||d>1)}function s(t){return t<=1e-6&&t>=-1e-6}function l(t,e,n,i){return t*i-e*n}var u=n(835).contain,c=n(54),h={lineX:i(0),lineY:i(1),rect:{point:function(t,e,n){return n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return n.boundingRect.contain(t[0],t[1])&&u(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(i.length<=1)return!1;var o=t.x,a=t.y,s=t.width,l=t.height,h=i[0];return!!(u(i,o,a)||u(i,o+s,a)||u(i,o,a+l)||u(i,o+s,a+l)||c.create(t).contain(h[0],h[1])||r(o,a,o+s,a,i)||r(o,a,o,a+l,i)||r(o+s,a,o+s,a+l,i)||r(o,a+l,o+s,a+l,i))||void 0}}};t.exports=h},function(t,e,n){function i(t,e,n,i,r){if(r){var a=t.getZr();if(!a[x]){a[y]||(a[y]=o);g.createOrUpdate(a,y,n,e)(t,i)}}}function o(t,e){if(!t.isDisposed()){var n=t.getZr();n[x]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[x]=!1}}function r(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t[a.brushType](i,n,a.selectors,a))return!0}}function a(t){var e=t.brushSelector;if(d.isString(e)){var n=[];return d.each(f,function(t,i){n[i]=function(n,i,o,r){var a=i.getItemLayout(n);return t[e](a,o,r)}}),n}if(d.isFunction(e)){var i={};return d.each(f,function(t,n){i[n]=e}),i}return e}function s(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(d.isArray(n)?d.indexOf(n,e)<0:e!==n)}function l(t){var e=t.selectors={};return d.each(f[t.brushType],function(n,i){e[i]=function(i){return n(i,e,t)}}),t}function u(t){return new p(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var c=n(10),h=n(269),d=n(2),p=n(54),f=n(1546),g=n(157),m=n(638),v=["inBrush","outOfBrush"],y="__ecBrushSelect",x="__ecInBrushSelectEvent",_=c.PRIORITY.VISUAL.BRUSH;c.registerLayout(_,function(t,e,n){t.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1}),(e.brushTargetManager=new m(e.option,t)).setInputRanges(e.areas,t)})}),c.registerVisual(_,function(t,e,n){var o,u,c=[];t.eachComponent({mainType:"brush"},function(e,n){function i(t){return"all"===x||_[t]}function p(t){return!!t.length}function f(t,e){var n=t.coordinateSystem;M|=n.hasAxisBrushed(),i(e)&&n.eachActiveState(t.getData(),function(t,e){"active"===t&&(w[e]=1)})}function g(n,o,l){var u=a(n);if(u&&!s(e,o)&&(d.each(I,function(i){u[i.brushType]&&e.brushTargetManager.controlSeries(i,n,t)&&l.push(i),M|=p(l)}),i(o)&&p(l))){var c=n.getData();c.each(function(t){r(u,l,c,t)&&(w[t]=1)})}}var m={brushId:e.id,brushIndex:n,brushName:e.name,areas:d.clone(e.areas),selected:[]};c.push(m);var y=e.option,x=y.brushLink,_=[],w=[],S=[],M=0;n||(o=y.throttleType,u=y.throttleDelay);var I=d.map(e.areas,function(t){return l(d.defaults({boundingRect:b[t.brushType](t)},t))}),T=h.createVisualMappings(e.option,v,function(t){t.mappingMethod="fixed"});d.isArray(x)&&d.each(x,function(t){_[t]=1}),t.eachSeries(function(t,e){var n=S[e]=[];"parallel"===t.subType?f(t,e):g(t,e,n)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};m.selected.push(n);var o=a(t),s=S[e],l=t.getData(),u=i(e)?function(t){return w[t]?(n.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return r(o,s,l,t)?(n.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"};(i(e)?M:p(s))&&h.applyVisual(v,T,l,u)})}),i(e,o,u,c,n)});var b={lineX:d.noop,lineY:d.noop,rect:function(t){return u(t.range)},polygon:function(t){for(var e,n=t.range,i=0,o=n.length;i<o;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<e[0][0]&&(e[0][0]=r[0]),r[0]>e[0][1]&&(e[0][1]=r[0]),r[1]<e[1][0]&&(e[1][0]=r[1]),r[1]>e[1][1]&&(e[1][1]=r[1])}return e&&u(e)}}},function(t,e,n){"use strict";n(1613),n(1614),n(1549)},function(t,e,n){"use strict";var i=n(2),o=n(12),r=n(35),a=n(13),s={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},l={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]};t.exports=n(10).extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,r=o.getRangeInfo(),a=o.getOrient();this._renderDayRect(t,r,i),this._renderLines(t,r,a,i),this._renderYearText(t,r,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,r,a,i)},_renderDayRect:function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle.normal").getItemStyle(),a=i.getCellWidth(),s=i.getCellHeight(),l=e.start.time;l<=e.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,c=new o.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:r});n.add(c)}},_renderLines:function(t,e,n,i){function o(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToRect([e],!1).tl);var o=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(o[0]),r._blpoints.push(o[o.length-1]),l&&r._drawSplitline(o,s,i)}var r=this,a=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,h=0;c.time<=e.end.time;h++){o(c.formatedDate),0===h&&(c=a.getDateInfo(e.start.y+"-"+e.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=a.getDateInfo(d)}o(a.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,u,n),s,i),l&&this._drawSplitline(r._getEdgesPoints(r._blpoints,u,n),s,i)},_getEdgesPoints:function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-e/2,i[1][o]=i[1][o]+e/2,i},_drawSplitline:function(t,e,n){var i=new o.Polyline({z2:20,shape:{points:t},style:e});n.add(i)},_getLinePointsOfOneWeek:function(t,e,n){var i=t.coordinateSystem;e=i.getDateInfo(e);for(var o=[],r=0;r<7;r++){var a=i.getNextNDay(e.time,r),s=i.dataToRect([a.time],!1);o[2*a.day]=s.tl,o[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return o},_formatterLabel:function(t,e){return"string"===typeof t&&t?r.formatTplSimple(t,e):"function"===typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,n,i){t=t.slice();var o=["center","bottom"];"top"===n&&(t[1]-=i),"bottom"===n&&(t[1]+=i,o=["center","top"]),"left"===n&&(t[0]-=i),"right"===n&&(t[0]+=i,o=["center","top"]);var r=0;return"left"!==n&&"right"!==n||(r=Math.PI/2),{rotation:r,origin:t,style:{x:t[0],y:t[1],textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,n,r){var a=t.getModel("yearLabel");if(a.get("show")){var s=t.getModel("yearLabel.textStyle"),l=a.get("margin"),u=a.get("position");u||(u="horizontal"!==n?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,p="horizontal"===n?0:1,f={top:[h,c[p][1]],bottom:[h,c[1-p][1]],left:[c[1-p][0],d],right:[c[p][0],d]},g=e.start.y;+e.end.y>+e.start.y&&(g=g+"-"+e.end.y);var m=a.get("formatter"),v={start:e.start.y,end:e.end.y,nameMap:g},y=this._formatterLabel(m,v),x=new o.Text(i.merge({z2:30,style:{text:y,font:s.getFont(),fill:s.getTextColor()}},this._yearTextPositionControl(f[u],n,u,l)));r.add(x)}},_monthTextPositionControl:function(t,e,n,i,o){var r="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:a}},_renderMonthText:function(t,e,n){var r=t.getModel("monthLabel");if(r.get("show")){var a=t.getModel("monthLabel.textStyle"),l=r.get("nameMap"),u=r.get("margin"),c=r.get("position"),h=r.get("align"),d=[this._tlpoints,this._blpoints];i.isString(l)&&(l=s[l.toUpperCase()]||[]);var p="start"===c?0:1,f="horizontal"===e?0:1;u="start"===c?-u:u;for(var g="center"===h,m=0;m<d[p].length-1;m++){var v=d[p][m].slice(),y=this._firstDayOfMonth[m];if(g){var x=this._firstDayPoints[m];v[f]=(x[f]+d[0][m+1][f])/2}var _=r.get("formatter"),b=l[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},S=this._formatterLabel(_,w),M=new o.Text({z2:30,style:i.extend({text:S,font:a.getFont(),fill:a.getTextColor()},this._monthTextPositionControl(v,g,e,c,u))});n.add(M)}}},_weekTextPositionControl:function(t,e,n,i,o){var r="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*o[0]/2,r=u?"right":"left"):(l=l+i+(u?1:-1)*o[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:r,textVerticalAlign:a}},_renderWeekText:function(t,e,n,r){var s=t.getModel("dayLabel");if(s.get("show")){var u=t.coordinateSystem,c=t.getModel("dayLabel.textStyle"),h=s.get("position"),d=s.get("nameMap"),p=s.get("margin"),f=u.getFirstDayOfWeek();i.isString(d)&&(d=l[d.toUpperCase()]||[]);var g=u.getNextNDay(e.end.time,7-e.lweek).time,m=[u.getCellWidth(),u.getCellHeight()];p=a.parsePercent(p,m["horizontal"===n?0:1]),"start"===h&&(g=u.getNextNDay(e.start.time,-(7+e.fweek)).time,p=-p);for(var v=0;v<7;v++){var y=u.getNextNDay(g,v),x=u.dataToRect([y.time],!1).center,_=v;_=Math.abs((v+f)%7);var b=new o.Text({z2:30,style:i.extend({text:d[_],font:c.getFont(),fill:c.getTextColor()},this._weekTextPositionControl(x,n,h,p,m))});r.add(b)}}}})},function(t,e,n){n(637),n(201),n(202),n(1557),n(1558),n(1553),n(1554),n(635),n(634)},function(t,e,n){n(637),n(201),n(202),n(1555),n(1556),n(635),n(634)},function(t,e,n){function i(t,e,n){var i=[1/0,-1/0];return c(n,function(t){var n=t.getData();n&&c(t.coordDimToDataDim(e),function(t){var e=n.getDataExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})}),i[1]<i[0]&&(i=[NaN,NaN]),o(t,i),i}function o(t,e){var n=t.getAxisModel(),i=n.getMin(!0),o="category"===n.get("type"),r=o&&(n.get("data")||[]).length;null!=i&&"dataMin"!==i?e[0]=i:o&&(e[0]=r>0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a?e[1]=a:o&&(e[1]=r>0?r-1:NaN),n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function r(t,e){var n=t.getAxisModel(),i=t._percentWindow,o=t._valueWindow;if(i){var r=l.getPixelPrecision(o,[0,500]),a=e||0===i[0]&&100===i[1];n.setRange(a?null:+o[0].toFixed(r),a?null:+o[1].toFixed(r))}}function a(t){var e=t._minMaxSpan={},n=t._dataZoomModel;c(["min","max"],function(i){e[i+"Span"]=n.get(i+"Span");var o=n.get(i+"ValueSpan");null!=o&&(e[i+"ValueSpan"]=o,null!=(o=t.getAxisModel().axis.scale.parse(o))&&(e[i+"Span"]=l.linearMap(o,t._dataExtent,[0,100],!0)))})}var s=n(2),l=n(13),u=n(382),c=s.each,h=l.asc,d=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};d.prototype={constructor:d,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(u.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,o=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&t.push(n)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n=this._dimName,i=this.ecModel,o=this.getAxisModel(),r="x"===n||"y"===n;r?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle");var a;return i.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(o.get(e)||0)&&(a=t)}),a},getMinMaxSpan:function(){return s.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[t.start,t.end],s=[];return c(["startValue","endValue"],function(e){s.push(null!=t[e]?i.parse(t[e]):null)}),c([0,1],function(t){var n=s[t],u=a[t];"percent"===o[t]?(null==u&&(u=r[t]),n=i.parse(l.linearMap(u,r,e,!0))):u=l.linearMap(n,e,r,!0),s[t]=n,a[t]=u}),{valueWindow:h(s),percentWindow:h(a)}},reset:function(t){if(t===this._dataZoomModel){this._dataExtent=i(this,this._dimName,this.getTargetSeriesModels());var e=this.calculateDataWindow(t.option);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,a(this),r(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,r(this,!0))},filterData:function(t){function e(t){return t>=r[0]&&t<=r[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),r=this._valueWindow;if("none"!==o){var a=this.getOtherAxisModel();t.get("$fromToolbox")&&a&&"category"===a.get("type")&&(o="empty"),c(i,function(t){var i=t.getData(),a=t.coordDimToDataDim(n);"weakFilter"===o?i&&i.filterSelf(function(t){for(var e,n,o,s=0;s<a.length;s++){var l=i.get(a[s],t),u=!isNaN(l),c=l<r[0],h=l>r[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(e=!0),h&&(n=!0)}return o&&e&&n}):i&&c(a,function(n){"empty"===o?t.setData(i.map(n,function(t){return e(t)?t:NaN})):i.filterSelf(n,e)})})}}}},t.exports=d},function(t,e,n){t.exports=n(201).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}})},function(t,e,n){var i=n(202),o=n(2),r=n(204),a=n(1559),s=o.bind,l=i.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,i){l.superApply(this,"render",arguments),a.shouldRecordRange(i,t.id)&&(this._range=t.getPercentRange()),o.each(this.getTargetCoordInfo(),function(e,i){var r=o.map(e,function(t){return a.generateCoordId(t.model)});o.each(e,function(e){var o=e.model,l=t.option;a.register(n,{coordId:a.generateCoordId(o),allCoordIds:r,containsPoint:function(t,e,n){return o.coordinateSystem.containPoint([e,n])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:s(this._onPan,this,e,i),zoomGetRange:s(this._onZoom,this,e,i),zoomLock:l.zoomLock,disabled:l.disabled,roamControllerOpt:{zoomOnMouseWheel:l.zoomOnMouseWheel,moveOnMouseMove:l.moveOnMouseMove,preventDefaultMouseMove:l.preventDefaultMouseMove}})},this)},this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,n,i,o,a,s,l,c){var h=this._range.slice(),d=t.axisModels[0];if(d){var p=u[e]([a,s],[l,c],d,n,t),f=p.signal*(h[1]-h[0])*p.pixel/p.pixelLength;return r(f,h,[0,100],"all"),this._range=h}},_onZoom:function(t,e,n,i,o,a){var s=this._range.slice(),l=t.axisModels[0];if(l){var c=u[e](null,[o,a],l,n,t),h=(c.signal>0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(s[1]-s[0])+s[0];i=Math.max(1/i,0),s[0]=(s[0]-h)*i+h,s[1]=(s[1]-h)*i+h;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,s,[0,100],0,d.minSpan,d.maxSpan),this._range=s}}}),u={grid:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};t.exports=l},function(t,e,n){var i=n(201);t.exports=i.extend({type:"dataZoom.select"})},function(t,e,n){t.exports=n(202).extend({type:"dataZoom.select"})},function(t,e,n){var i=n(201),o=i.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});t.exports=o},function(t,e,n){function i(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}var o=n(2),r=n(12),a=n(157),s=n(202),l=r.Rect,u=n(13),c=u.linearMap,h=n(43),d=n(204),p=n(111),f=u.asc,g=o.bind,m=o.each,v="horizontal",y=5,x=["line","bar","candlestick","scatter"],_=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){if(_.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1===this.dataZoomModel.get("show"))return void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()},remove:function(){_.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){_.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===v?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=h.getLayoutParams(t.option);o.each(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=r[t])});var s=h.getLayoutRect(a,i,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==v||o?n===v&&o?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||o?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([r]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.barGroup;n.add(new l({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),n.add(new l({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:o.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var s=i.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,h=[0,e[1]],d=[0,e[0]],p=[[e[0],0],[0,0]],f=[],g=d[1]/(i.count()-1),m=0,v=Math.round(i.count()/e[0]);i.each([a],function(t,e){if(v>0&&e%v)return void(m+=g);var n=null==t||isNaN(t)||""===t,i=n?0:c(t,s,h,!0);n&&!u&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&u&&(p.push([m,0]),f.push([m,0])),p.push([m,i]),f.push([m,i]),m+=g,u=n});var y=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:p},style:o.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a.name,s).getTargetSeriesModels();o.each(l,function(t){if(!n&&!(!0!==e&&o.indexOf(x,t.get("type"))<0)){var l,u=r.getComponent(a.axis,s).axis,c=i(a.name),h=t.coordinateSystem;null!=c&&h.getOtherAxis&&(l=h.getOtherAxis(u).inverse),n={thisAxis:u,series:t,thisDim:a.name,otherDim:c,otherAxisInverse:l}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,o=this._size,a=this.dataZoomModel;i.add(t.filler=new l({draggable:!0,cursor:"move",drift:g(this._onDragMove,this,"all"),onmousemove:function(t){p.stop(t.event)},ondragstart:g(this._showDataInfo,this,!0),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new l(r.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})));var s=a.get("handleIcon");m([0,1],function(t){var o={style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:g(this._onDragMove,this,t),onmousemove:function(t){p.stop(t.event)},ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)},l={x:-1,y:0,width:2,height:2},c=0===s.indexOf("image://")?(l.image=s.slice(8),o.style=l,new r.Image(o)):r.makePath(s.replace("path://",""),o,l,"center"),h=c.getBoundingRect();this._handleHeight=u.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=h.width/h.height*this._handleHeight,c.setStyle(a.getModel("handleStyle").getItemStyle());var d=a.get("handleColor");null!=d&&(c.style.fill=d),i.add(e[t]=c);var f=a.textStyleModel;this.group.add(n[t]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:f.getTextColor(),textFont:f.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[c(t[0],[0,100],e,!0),c(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];d(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?c(r.minSpan,a,o,!0):null,null!=r.maxSpan?c(r.maxSpan,a,o,!0):null),this._range=f([c(i[0],o,a,!0),c(i[1],o,a,!0)])},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=f(n.slice()),o=this._size;m([0,1],function(t){var i=e.handles[t],r=this._handleHeight;i.attr({scale:[r/2,r/2],position:[n[t],o[1]/2-r/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=r.getTransform(i.handles[t].parent,this.group),n=r.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+y,u=r.applyTransform([d[t]+(0===t?-l:l),this._size[1]/2],e);o[t].setStyle({x:u[0],y:u[1],textVerticalAlign:a===v?"middle":n,textAlign:a===v?n:"center",text:s[t]})}var n=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var d=f(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return o.isFunction(i)?i(t,a):o.isString(i)?i.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=this._displayables.barGroup.getLocalTransform(),o=r.applyTransform([e,n],i,!0);this._updateInterval(t,o[0]);var a=this.dataZoomModel.get("realtime");this._updateView(!a),a&&a&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,n=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,o=(i[0]+i[1])/2;this._updateInterval("all",n[0]-o),this._updateView(),this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(m(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});t.exports=_},function(t,e,n){function i(t){var e=t.getZr();return e[g]||(e[g]={})}function o(t,e){var n=new d(t.getZr());return n.on("pan",f(a,e)),n.on("zoom",f(s,e)),n}function r(t){h.each(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function a(t,e,n,i,o,r,a){l(t,function(s){return s.panGetRange(t.controller,e,n,i,o,r,a)})}function s(t,e,n,i){l(t,function(o){return o.zoomGetRange(t.controller,e,n,i)})}function l(t,e){var n=[];h.each(t.dataZoomInfos,function(t){var i=e(t);!t.disabled&&i&&n.push({dataZoomId:t.dataZoomId,start:i[0],end:i[1]})}),t.dispatchAction(n)}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function c(t){var e,n={},i={true:2,move:1,false:0,undefined:-1};return h.each(t,function(t){var o=!t.disabled&&(!t.zoomLock||"move");i[o]>i[e]&&(e=o),h.extend(n,t.roamControllerOpt)}),{controlType:e,opt:n}}var h=n(2),d=n(263),p=n(157),f=h.curry,g="\0_ec_dataZoom_roams",m={register:function(t,e){var n=i(t),a=e.dataZoomId,s=e.coordId;h.each(n,function(t,n){var i=t.dataZoomInfos;i[a]&&h.indexOf(e.allCoordIds,s)<0&&(delete i[a],t.count--)}),r(n);var l=n[s];l||(l=n[s]={coordId:s,dataZoomInfos:{},count:0},l.controller=o(t,l),l.dispatchAction=h.curry(u,t)),!l.dataZoomInfos[a]&&l.count++,l.dataZoomInfos[a]=e;var d=c(l.dataZoomInfos);l.controller.enable(d.controlType,d.opt),l.controller.setPointerChecker(e.containsPoint),p.createOrUpdate(l,"dispatchAction",e.throttleRate,"fixRate")},unregister:function(t,e){var n=i(t);h.each(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),r(n)},shouldRecordRange:function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var n=0,i=t.batch.length;n<i;n++)if(t.batch[n].dataZoomId===e)return!1;return!0},generateCoordId:function(t){return t.type+"\0_"+t.id}};t.exports=m},function(t,e,n){function i(t,e){e.update="updateView",o.registerAction(e,function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name);var o=n.coordinateSystem;r.each(o.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}n(1622),n(265),n(1561),n(617);var o=n(10),r=n(2);i("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),i("select",{type:"geoSelect",event:"geoselected"}),i("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(t,e,n){"use strict";var i=n(639);t.exports=n(10).extendComponentView({type:"geo",init:function(t,e){var n=new i(e,!0);this._mapDraw=n,this.group.add(n.group)},render:function(t,e,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var o=this._mapDraw;t.get("show")?o.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}})},function(t,e,n){function i(t,e,n,i){var o=n.type;__DEV__&&h.assert(o,"graphic type MUST be set");var r=p[o.charAt(0).toUpperCase()+o.slice(1)];__DEV__&&h.assert(r,"graphic type can not be found");var a=new r(n);e.add(a),i.set(t,a),a.__ecGraphicId=t}function o(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){o(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function r(t){return t=h.extend({},t),h.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(e){delete t[e]}),t}function a(t,e){var n;return h.each(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}function s(t,e){var n=t.exist;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function l(t,e,n){var i=h.extend({},n),o=t[e],r=n.$action||"merge";if("merge"===r)if(o){if(__DEV__){var a=n.type;h.assert(!a||o.type===a,'Please set $action: "replace" to change `type`')}h.merge(o,i,!0),f.mergeLayoutParam(o,i,{ignoreSize:!0}),f.copyLayoutParams(n,o)}else t[e]=i;else"replace"===r?t[e]=i:"remove"===r&&o&&(t[e]=null)}function u(t,e){t&&(t.hv=e.hv=[a(e,["left","right"]),a(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}var c=n(10),h=n(2),d=n(29),p=n(12),f=n(43);c.registerPreprocessor(function(t){var e=t.graphic;h.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var g=c.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,g.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,i=(e?n:t).elements,o=n.elements=e?[]:n.elements,r=[];this._flatten(i,r);var a=d.mappingToExists(o,r);d.makeIdAndName(a);var c=this._elOptionsToUpdate=[];h.each(a,function(t,e){var n=t.option;__DEV__&&h.assert(h.isObject(n)||t.exist,"Empty graphic option definition"),n&&(c.push(n),s(t,n),l(o,e,n),u(o[e],n))},this);for(var p=o.length-1;p>=0;p--)null==o[p]?o.splice(p,1):delete o[p].$action},_flatten:function(t,e,n){h.each(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});c.extendComponentView({type:"graphic",init:function(t,e){this._elMap=h.createHashMap(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,n),this._relocate(t,n)},_updateElements:function(t,e){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,s=this.group;h.each(n,function(t){var e=t.$action,n=t.id,l=a.get(n),u=t.parentId,c=null!=u?a.get(u):s;t.hv&&t.hv[1]&&"text"===t.type&&(t.style=h.defaults({textBaseline:"middle"},t.style),t.style.textVerticalAlign=null);var d=r(t);__DEV__&&l&&h.assert(c===l.parent,"Changing parent is not supported."),e&&"merge"!==e?"replace"===e?(o(l,a),i(n,c,d,a)):"remove"===e&&o(l,a):l?l.attr(d):i(n,c,d,a);var p=a.get(n);p&&(p.__ecGraphicWidth=t.width,p.__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,r=n.length-1;r>=0;r--){var a=n[r],s=o.get(a.id);if(s){var l=s.parent,u=l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};f.positionElement(s,a,u,null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){o(e,t)}),this._elMap=h.createHashMap()},dispose:function(){this._clear()}})},function(t,e,n){n(203),n(629),n(200)},function(t,e,n){n(1565),n(1567),n(1566),n(10).registerProcessor(n(1568))},function(t,e,n){"use strict";var i=n(2),o=n(53),r=n(10).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){r.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=i.map(this.get("data")||[],function(t){return"string"!==typeof t&&"number"!==typeof t||(t={name:t}),new o(t,this,this.ecModel)},this);this._data=e;var n=i.map(t.getSeries(),function(t){return t.name});t.eachSeries(function(t){if(t.legendDataProvider){var e=t.legendDataProvider();n=n.concat(e.mapArray(e.getName))}}),this._availableNames=n},getData:function(){return this._data},select:function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;i.each(n,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&i.indexOf(this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});t.exports=r},function(t,e,n){function i(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function o(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function r(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var a=n(2),s=n(86),l=n(12),u=n(642),c=a.curry;t.exports=n(10).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,e,n){var s=this.group;if(s.removeAll(),t.get("show")){var h=t.get("selectedMode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var p=a.createHashMap();a.each(t.getData(),function(a){var u=a.get("name");if(""===u||"\n"===u)return void s.add(new l.Group({newline:!0}));var f=e.getSeriesByName(u)[0];if(!p.get(u)){if(f){var g=f.getData(),m=g.getVisual("color");"function"===typeof m&&(m=m(f.getDataParams(0)));var v=g.getVisual("legendSymbol")||"roundRect",y=g.getVisual("symbol");this._createItem(u,a,t,v,y,d,m,h).on("click",c(i,u,n)).on("mouseover",c(o,f,null,n)).on("mouseout",c(r,f,null,n)),p.set(u,!0)}else e.eachRawSeries(function(e){if(!p.get(u)&&e.legendDataProvider){var s=e.legendDataProvider(),l=s.indexOfName(u);if(l<0)return;var f=s.getItemVisual(l,"color");this._createItem(u,a,t,"roundRect",null,d,f,h).on("click",c(i,u,n)).on("mouseover",c(o,e,u,n)).on("mouseout",c(r,e,u,n)),p.set(u,!0)}},this);__DEV__&&(p.get(u)||console.warn(u+" series not exists. Legend data should be same with series name or data name."))}},this),u.layout(s,t,n),u.addBackground(s,t)}},_createItem:function(t,e,n,i,o,r,u,c){var h=n.get("itemWidth"),d=n.get("itemHeight"),p=n.get("inactiveColor"),f=n.isSelected(t),g=new l.Group,m=e.getModel("textStyle"),v=e.get("icon"),y=e.getModel("tooltip"),x=y.parentModel;if(i=v||i,g.add(s.createSymbol(i,0,0,h,d,f?u:p)),!v&&o&&(o!==i||"none"==o)){var _=.8*d;"none"===o&&(o="circle"),g.add(s.createSymbol(o,(h-_)/2,(d-_)/2,_,_,f?u:p))}var b="left"===r?h+5:-5,w=r,S=n.get("formatter"),M=t;"string"===typeof S&&S?M=S.replace("{name}",null!=t?t:""):"function"===typeof S&&(M=S(t));var I=new l.Text({style:{text:M,x:b,y:d/2,fill:f?m.getTextColor():p,textFont:m.getFont(),textAlign:w,textVerticalAlign:"middle"}});g.add(I);var T=new l.Rect({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?a.extend({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(T),g.eachChild(function(t){t.silent=!0}),T.silent=!c,this.group.add(g),l.setHoverStyle(g),g}})},function(t,e,n){function i(t,e,n){var i,o={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();r.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&i:o[e]=i}})}),{name:e.name,selected:o}}var o=n(10),r=n(2);o.registerAction("legendToggleSelect","legendselectchanged",r.curry(i,"toggleSelected")),o.registerAction("legendSelect","legendselected",r.curry(i,"select")),o.registerAction("legendUnSelect","legendunselected",r.curry(i,"unSelect"))},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}},function(t,e,n){n(1572),n(1573),n(10).registerPreprocessor(function(t){t.markArea=t.markArea||{}})},function(t,e,n){n(1574),n(1575),n(10).registerPreprocessor(function(t){t.markLine=t.markLine||{}})},function(t,e,n){n(1576),n(1577),n(10).registerPreprocessor(function(t){t.markPoint=t.markPoint||{}})},function(t,e,n){t.exports=n(386).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemStyle:{normal:{borderWidth:0}}}})},function(t,e,n){function i(t){return!isNaN(t)&&!isFinite(t)}function o(t,e,n,o){var r=1-t;return i(e[r])&&i(n[r])}function r(t,e){var n=e.coord[0],i=e.coord[1];return!("cartesian2d"!==t.type||!n||!i||!o(1,n,i,t)&&!o(0,n,i,t))||(p.dataFilter(t,{coord:n,x:e.x0,y:e.y0})||p.dataFilter(t,{coord:i,x:e.x1,y:e.y1}))}function a(t,e,n,o,r){var a,s=o.coordinateSystem,l=t.getItemModel(e),u=c.parsePercent(l.get(n[0]),r.getWidth()),h=c.parsePercent(l.get(n[1]),r.getHeight());if(isNaN(u)||isNaN(h)){if(o.getMarkerPosition)a=o.getMarkerPosition(t.getValues(n,e));else{var d=t.get(n[0],e),p=t.get(n[1],e);a=s.dataToPoint([d,p],!0)}if("cartesian2d"===s.type){var f=s.getAxis("x"),g=s.getAxis("y"),d=t.get(n[0],e),p=t.get(n[1],e);i(d)?a[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):i(p)&&(a[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(a[0]=u),isNaN(h)||(a[1]=h)}else a=[u,h];return a}function s(t,e,n){var i,o,a=["x0","y0","x1","y1"];t?(i=l.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}),o=new u(l.map(a,function(t,e){return{name:t,type:i[e%2].type}}),n)):(i=[{name:"value",type:"float"}],o=new u(i,n));var s=l.map(n.get("data"),l.curry(f,e,t,n));t&&(s=l.filter(s,l.curry(r,t)));var c=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return o.initData(s,null,c),o.hasItemOption=!0,o}var l=n(2),u=n(55),c=n(13),h=n(12),d=n(112),p=n(388),f=function(t,e,n,i){var o=p.dataTransform(t,i[0]),r=p.dataTransform(t,i[1]),a=l.retrieve,s=o.coord,u=r.coord;s[0]=a(s[0],-1/0),s[1]=a(s[1],-1/0),u[0]=a(u[0],1/0),u[1]=a(u[1],1/0);var c=l.mergeAll([{},o,r]);return c.coord=[o.coord,r.coord],c.x0=o.x,c.y0=o.y,c.x1=r.x,c.y1=r.y,c},g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];n(387).extend({type:"markArea",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var i=e.getData();i.each(function(e){var o=l.map(g,function(o){return a(i,e,o,t,n)});i.setItemLayout(e,o),i.getItemGraphicEl(e).setShape("points",o)})}},this)},renderSeries:function(t,e,n,i){var o=t.coordinateSystem,r=t.name,u=t.getData(),c=this.markerGroupMap,p=c.get(r)||c.set(r,{group:new h.Group});this.group.add(p.group),p.__keep=!0;var f=s(o,t,e);e.setData(f),f.each(function(e){f.setItemLayout(e,l.map(g,function(n){return a(f,e,n,t,i)})),f.setItemVisual(e,{color:u.getVisual("color")})}),f.diff(p.__data).add(function(t){var e=new h.Polygon({shape:{points:f.getItemLayout(t)}});f.setItemGraphicEl(t,e),p.group.add(e)}).update(function(t,n){var i=p.__data.getItemGraphicEl(n);h.updateProps(i,{shape:{points:f.getItemLayout(t)}},e,t),p.group.add(i),f.setItemGraphicEl(t,i)}).remove(function(t){var e=p.__data.getItemGraphicEl(t);p.group.remove(e)}).execute(),f.eachItemGraphicEl(function(t,n){var i=f.getItemModel(n),o=i.getModel("label.normal"),r=i.getModel("label.emphasis"),a=f.getItemVisual(n,"color");t.useStyle(l.defaults(i.getModel("itemStyle.normal").getItemStyle(),{fill:d.modifyAlpha(a,.4),stroke:a})),t.hoverStyle=i.getModel("itemStyle.normal").getItemStyle();var s=f.getName(n)||"",u=a||t.style.fill;o.getShallow("show")?(h.setText(t.style,o,u),t.style.text=l.retrieve(e.getFormattedLabel(n,"normal"),s)):t.style.text="",r.getShallow("show")?(h.setText(t.hoverStyle,r,u),t.hoverStyle.text=l.retrieve(e.getFormattedLabel(n,"emphasis"),s)):t.hoverStyle.text="",h.setHoverStyle(t,{}),t.dataModel=e}),p.__data=f,p.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){t.exports=n(386).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}})},function(t,e,n){function i(t){return!isNaN(t)&&!isFinite(t)}function o(t,e,n,o){var r=1-t,a=o.dimensions[t];return i(e[r])&&i(n[r])&&e[t]===n[t]&&o.getAxis(a).containData(e[t])}function r(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(o(1,n,i,t)||o(0,n,i,t)))return!0}return h.dataFilter(t,e[0])&&h.dataFilter(t,e[1])}function a(t,e,n,o,r){var a,s=o.coordinateSystem,l=t.getItemModel(e),u=c.parsePercent(l.get("x"),r.getWidth()),h=c.parsePercent(l.get("y"),r.getHeight());if(isNaN(u)||isNaN(h)){if(o.getMarkerPosition)a=o.getMarkerPosition(t.getValues(t.dimensions,e));else{var d=s.dimensions,p=t.get(d[0],e),f=t.get(d[1],e);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y"),d=s.dimensions;i(t.get(d[0],e))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):i(t.get(d[1],e))&&(a[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(h)||(a[1]=h)}else a=[u,h];t.setItemLayout(e,a)}function s(t,e,n){var i;i=t?l.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}):[{name:"value",type:"float"}];var o=new u(i,n),a=new u(i,n),s=new u([],n),c=l.map(n.get("data"),l.curry(p,e,t,n));t&&(c=l.filter(c,l.curry(r,t)));var d=t?h.dimValueGetter:function(t){return t.value};return o.initData(l.map(c,function(t){return t[0]}),null,d),a.initData(l.map(c,function(t){return t[1]}),null,d),s.initData(l.map(c,function(t){return t[2]})),s.hasItemOption=!0,{from:o,to:a,line:s}}var l=n(2),u=n(55),c=n(13),h=n(388),d=n(379),p=function(t,e,n,i){var o=t.getData(),r=i.type;if(!l.isArray(i)&&("min"===r||"max"===r||"average"===r||null!=i.xAxis||null!=i.yAxis)){var a,s;if(null!=i.yAxis||null!=i.xAxis)a=null!=i.yAxis?"y":"x",e.getAxis(a),s=l.retrieve(i.yAxis,i.xAxis);else{var u=h.getAxisInfo(i,o,e,t);a=u.valueDataDim,u.valueAxis,s=h.numCalculate(o,a,r)}var c="x"===a?0:1,d=1-c,p=l.clone(i),f={};p.type=null,p.coord=[],f.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&"number"===typeof s&&(s=+s.toFixed(g)),p.coord[c]=f.coord[c]=s,i=[p,f,{type:r,valueIndex:i.valueIndex,value:s}]}return i=[h.dataTransform(t,i[0]),h.dataTransform(t,i[1]),l.extend({},i[2])],i[2].type=i[2].type||"",l.merge(i[2],i[0]),l.merge(i[2],i[1]),i};n(387).extend({type:"markLine",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),o=e.__from,r=e.__to;o.each(function(e){a(o,e,!0,t,n),a(r,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[o.getItemLayout(t),r.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,n,i){function o(e,n,o){var r=e.getItemModel(n);a(e,n,o,t,i),e.setItemVisual(n,{symbolSize:r.get("symbolSize")||x[o?0:1],symbol:r.get("symbol",!0)||y[o?0:1],color:r.get("itemStyle.normal.color")||c.getVisual("color")})}var r=t.coordinateSystem,u=t.id,c=t.getData(),h=this.markerGroupMap,p=h.get(u)||h.set(u,new d);this.group.add(p.group);var f=s(r,t,e),g=f.from,m=f.to,v=f.line;e.__from=g,e.__to=m,e.setData(v);var y=e.get("symbol"),x=e.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"===typeof x&&(x=[x,x]),f.from.each(function(t){o(g,t,!0),o(m,t,!1)}),v.each(function(t){var e=v.getItemModel(t).get("lineStyle.normal.color");v.setItemVisual(t,{color:e||g.getItemVisual(t,"color")}),v.setItemLayout(t,[g.getItemLayout(t),m.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolSize:g.getItemVisual(t,"symbolSize"),fromSymbol:g.getItemVisual(t,"symbol"),toSymbolSize:m.getItemVisual(t,"symbolSize"),toSymbol:m.getItemVisual(t,"symbol")})}),p.updateData(v),f.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),p.__keep=!0,p.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){t.exports=n(386).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}})},function(t,e,n){function i(t,e,n){var i=e.coordinateSystem;t.each(function(o){var r,a=t.getItemModel(o),l=s.parsePercent(a.get("x"),n.getWidth()),u=s.parsePercent(a.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)r=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(i){var c=t.get(i.dimensions[0],o),h=t.get(i.dimensions[1],o);r=i.dataToPoint([c,h])}}else r=[l,u];isNaN(l)||(r[0]=l),isNaN(u)||(r[1]=u),t.setItemLayout(o,r)})}function o(t,e,n){var i;i=t?a.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}):[{name:"value",type:"float"}];var o=new l(i,n),r=a.map(n.get("data"),a.curry(u.dataTransform,e));return t&&(r=a.filter(r,a.curry(u.dataFilter,t))),o.initData(r,null,t?u.dimValueGetter:function(t){return t.value}),o}var r=n(199),a=n(2),s=n(13),l=n(55),u=n(388);n(387).extend({type:"markPoint",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markPointModel;e&&(i(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,n,a){var s=t.coordinateSystem,l=t.id,u=t.getData(),c=this.markerGroupMap,h=c.get(l)||c.set(l,new r),d=o(s,t,e);e.setData(d),i(e.getData(),t,a),d.each(function(t){var n=d.getItemModel(t),i=n.getShallow("symbolSize");"function"===typeof i&&(i=i(e.getRawValue(t),e.getDataParams(t))),d.setItemVisual(t,{symbolSize:i,color:n.get("itemStyle.normal.color")||u.getVisual("color"),symbol:n.getShallow("symbol")})}),h.updateData(d),this.group.add(h.group),d.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){n(657),n(1540),n(1537)},function(t,e,n){"use strict";var i=n(2);n(391),n(1528),n(1582),n(200),n(1532),n(10).registerLayout(i.curry(n(1650),"bar")),n(10).extendComponentView({type:"polar"})},function(t,e,n){n(1640),n(1641),n(1581)},function(t,e,n){var i=n(138),o=n(2),r=n(12),a=["axisLine","axisLabel","axisTick","axisName"];t.exports=n(10).extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=o.map(n,function(t){return new i(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});o.each(r,function(t){o.each(a,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}var n=t.coordinateSystem,i=n.getIndicatorAxes();if(i.length){var a=t.get("shape"),s=t.getModel("splitLine"),l=t.getModel("splitArea"),u=s.getModel("lineStyle"),c=l.getModel("areaStyle"),h=s.get("show"),d=l.get("show"),p=u.get("color"),f=c.get("color");p=o.isArray(p)?p:[p],f=o.isArray(f)?f:[f];var g=[],m=[];if("circle"===a)for(var v=i[0].getTicksCoords(),y=n.cx,x=n.cy,_=0;_<v.length;_++){if(h){var b=e(g,p,_);g[b].push(new r.Circle({shape:{cx:y,cy:x,r:v[_]}}))}if(d&&_<v.length-1){var b=e(m,f,_);m[b].push(new r.Ring({shape:{cx:y,cy:x,r0:v[_],r:v[_+1]}}))}}else for(var w,S=o.map(i,function(t,e){var i=t.getTicksCoords();return w=null==w?i.length-1:Math.min(i.length-1,w),o.map(i,function(t){return n.coordToPoint(t,e)})}),M=[],_=0;_<=w;_++){for(var I=[],T=0;T<i.length;T++)I.push(S[T][_]);if(I[0]?I.push(I[0].slice()):__DEV__&&console.error("Can't draw value axis "+_),h){var b=e(g,p,_);g[b].push(new r.Polyline({shape:{points:I}}))}if(d&&M){var b=e(m,f,_-1);m[b].push(new r.Polygon({shape:{points:I.concat(M)}}))}M=I.slice().reverse()}var A=u.getLineStyle(),D=c.getAreaStyle();o.each(m,function(t,e){this.group.add(r.mergePath(t,{style:o.defaults({stroke:"none",fill:f[e%f.length]},D),silent:!0}))},this),o.each(g,function(t,e){this.group.add(r.mergePath(t,{style:o.defaults({fill:"none",stroke:p[e%p.length]},A),silent:!0}))},this)}}})},function(t,e,n){n(391),n(1538)},function(t,e,n){n(10).registerPreprocessor(n(1589)),n(1591),n(1590),n(1584),n(1585)},function(t,e,n){var i=n(1587),o=n(2),r=n(29),a=i.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});o.mixin(a,r.dataFormatMixin),t.exports=a},function(t,e,n){function i(t,e){return u.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function o(t,e,n,i){return l.makePath(t.get(e).replace(/^path:\/\//,""),s.clone(i||{}),new f(n[0],n[1],n[2],n[3]),"center")}function r(t,e,n,i,o,r){var a=e.get("color");if(o)o.setColor(a),n.add(o),r&&r.onUpdate(o);else{var l=t.get("symbol");o=d.createSymbol(l,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)}var u=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(u),i=s.merge({rectHover:!0,z2:100},i,!0);var c=t.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,i.scale=c;var h=t.get("symbolOffset");if(h){var p=i.position=i.position||[0,0];p[0]+=m.parsePercent(h[0],c[0]),p[1]+=m.parsePercent(h[1],c[1])}var f=t.get("symbolRotate");return i.rotation=(f||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function a(t,e,n,i,o){if(!t.dragging){var r=i.getModel("checkpointStyle"),a=n.dataToCoord(i.getData().get(["value"],e));o||!r.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},r.get("animationDuration",!0),r.get("animationEasing",!0)))}}var s=n(2),l=n(12),u=n(43),c=n(1588),h=n(1586),d=n(86),p=n(77),f=n(54),g=n(91),m=n(13),v=n(35),y=v.encodeHTML,x=s.bind,_=s.each,b=Math.PI;t.exports=c.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,n,i){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var o=this._layout(t,n),r=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(o,t);t.formatTooltip=function(t){return y(s.scale.getLabel(t))},_(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](o,r,s,t)},this),this._renderAxisLabel(o,a,s,t),this._position(o,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var n=t.get("label.normal.position"),o=t.get("orient"),r=i(t,e);null==n||"auto"===n?n="horizontal"===o?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][n]);var a={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:b/2},u="vertical"===o?r.height:r.width,c=t.getModel("controlStyle"),h=c.get("show"),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,f=d+p,g=t.get("label.normal.rotate")||0;g=g*b/180;var m,v,y,x,_=c.get("position",!0),h=c.get("show",!0),w=h&&c.get("showPlayBtn",!0),S=h&&c.get("showPrevBtn",!0),M=h&&c.get("showNextBtn",!0),I=0,T=u;return"left"===_||"bottom"===_?(w&&(m=[0,0],I+=f),S&&(v=[I,0],I+=f),M&&(y=[T-d,0],T-=f)):(w&&(m=[T-d,0],T-=f),S&&(v=[0,0],I+=f),M&&(y=[T-d,0],T-=f)),x=[I,T],t.get("inverse")&&x.reverse(),{viewRect:r,mainLength:u,orient:o,rotation:l[o],labelRotation:g,labelPosOpt:n,labelAlign:t.get("label.normal.textStyle.align")||a[o],labelBaseline:t.get("label.normal.textStyle.baseline")||s[o],playPosition:m,prevBtnPosition:v,nextBtnPosition:y,axisExtent:x,controlSize:d,controlGap:p}},_position:function(t,e){function n(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function o(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}var r=this._mainGroup,a=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=g.create(),u=s.x,c=s.y+s.height;g.translate(l,l,[-u,-c]),g.rotate(l,l,-b/2),g.translate(l,l,[u,c]),s=s.clone(),s.applyTransform(l)}var h=i(s),d=i(r.getBoundingRect()),p=i(a.getBoundingRect()),f=r.position,m=a.position;m[0]=f[0]=h[0][0];var v=t.labelPosOpt;if(isNaN(v)){var y="+"===v?0:1;o(f,d,h,1,y),o(m,p,h,1,1-y)}else{var y=v>=0?0:1;o(f,d,h,1,y),m[1]=f[1]+v}r.attr("position",f),a.attr("position",m),r.rotation=a.rotation=t.rotation,n(r),n(a)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),o=p.createScaleByModel(e,i),r=n.getDataExtent("value");o.setExtent(r[0],r[1]),this._customizeScale(o,n),o.niceTicks();var a=new h("value",o,t.axisExtent,i);return a.model=e,a},_customizeScale:function(t,e){t.getTicks=function(){return e.mapArray(["value"],function(t){return t})},t.getTicksLabels=function(){return s.map(this.getTicks(),t.getLabel,t)}},_createGroup:function(t){var e=this["_"+t]=new l.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var o=n.getExtent();i.get("lineStyle.show")&&e.add(new l.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:s.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var o=i.getData(),a=n.scale.getTicks();_(a,function(t,a){var s=n.dataToCoord(t),u=o.getItemModel(a),c=u.getModel("itemStyle.normal"),h=u.getModel("itemStyle.emphasis"),d={position:[s,0],onclick:x(this._changeTimeline,this,a)},p=r(u,c,e,d);l.setHoverStyle(p,h.getItemStyle()),u.get("tooltip")?(p.dataIndex=a,p.dataModel=i):p.dataIndex=p.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){var o=i.getModel("label.normal");if(o.get("show")){var r=i.getData(),a=n.scale.getTicks(),s=p.getFormattedLabels(n,o.get("formatter")),u=n.getLabelInterval();_(a,function(i,o){if(!n.isLabelIgnored(o,u)){var a=r.getItemModel(o),c=a.getModel("label.normal.textStyle"),h=a.getModel("label.emphasis.textStyle"),d=n.dataToCoord(i),p=new l.Text({style:{text:s[o],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline,textFont:c.getFont(),fill:c.getTextColor()},position:[d,0],rotation:t.labelRotation-t.rotation,onclick:x(this._changeTimeline,this,o),silent:!1});e.add(p),l.setHoverStyle(p,h.getItemStyle())}},this)}},_renderControl:function(t,e,n,i){function r(t,n,r,d){if(t){var p={position:t,origin:[a/2,0],rotation:d?-s:0,rectHover:!0,style:u,onclick:r},f=o(i,n,h,p);e.add(f),l.setHoverStyle(f,c)}}var a=t.controlSize,s=t.rotation,u=i.getModel("controlStyle.normal").getItemStyle(),c=i.getModel("controlStyle.emphasis").getItemStyle(),h=[0,-a/2,a,a],d=i.getPlayState(),p=i.get("inverse",!0);r(t.nextBtnPosition,"controlStyle.nextIcon",x(this._changeTimeline,this,p?"-":"+")),r(t.prevBtnPosition,"controlStyle.prevIcon",x(this._changeTimeline,this,p?"+":"-")),r(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),x(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(t){t.draggable=!0,t.drift=x(u._handlePointerDrag,u),t.ondragend=x(u._handlePointerDragend,u),a(t,s,n,i,!0)},onUpdate:function(t){a(t,s,n,i)}};this._currentPointer=r(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,o=m.asc(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var r=this._findNearestTick(n),a=this.model;(e||r!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(r)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(x(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup.getLocalTransform();return l.applyTransform(t,e,!0)},_findNearestTick:function(t){var e,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],function(n,r){var a=o.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=r)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}})},function(t,e,n){var i=n(2),o=n(119),r=n(77),a=function(t,e,n,i){o.call(this,t,e,n),this.type=i||"value",this._autoLabelInterval,this.model=null};a.prototype={constructor:a,getLabelInterval:function(){var t=this.model,e=t.getModel("label.normal"),n=e.get("interval");if(null!=n&&"auto"!=n)return n;var n=this._autoLabelInterval;return n||(n=this._autoLabelInterval=r.getAxisLabelInterval(i.map(this.scale.getTicks(),this.dataToCoord,this),r.getFormattedLabels(this,e.get("formatter")),e.getModel("textStyle").getFont(),"horizontal"===t.get("orient"))),n},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"===typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}}},i.inherits(a,o),t.exports=a},function(t,e,n){var i=n(58),o=n(55),r=n(2),a=n(29),s=i.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,n){this._data,this._names,this.mergeDefaultAndTheme(t,n),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if("category"===n){var s=[];r.each(e,function(t,e){var n,o=a.getDataItemValue(t);r.isObject(t)?(n=r.clone(t),n.value=e):n=e,s.push(n),r.isString(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")}),e=s}var l={category:"ordinal",time:"time"}[n]||"number";(this._data=new o([{name:"value",type:l}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});t.exports=s},function(t,e,n){var i=n(395);t.exports=i.extend({type:"timeline"})},function(t,e,n){function i(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),o(t),r(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});r(i,"position")||(i.position=t.controlPosition),"none"!==i.position||r(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}a.each(t.data||[],function(t){a.isObject(t)&&!a.isArray(t)&&(!r(t,"value")&&r(t,"name")&&(t.value=t.name),o(t))})}function o(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},o=i.normal||(i.normal={}),s={normal:1,emphasis:1};a.each(i,function(t,e){s[e]||r(o,e)||(o[e]=t)}),n.label&&!r(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function r(t,e){return t.hasOwnProperty(e)}var a=n(2);t.exports=function(t){var e=t&&t.timeline;a.isArray(e)||(e=e?[e]:[]),a.each(e,function(t){t&&i(t)})}},function(t,e,n){var i=n(10),o=n(2);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),o.defaults({currentIndex:n.option.currentIndex},t)}),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})},function(t,e,n){n(58).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(t,e,n){"use strict";var i=n(10),o=n(12),r=n(43);i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=t.get("textBaseline"),c=new o.Text({style:{text:t.get("text"),textFont:a.getFont(),fill:a.getTextColor()},z2:10}),h=c.getBoundingRect(),d=t.get("subtext"),p=new o.Text({style:{text:d,textFont:s.getFont(),fill:s.getTextColor(),y:h.height+t.get("itemGap"),textBaseline:"top"},z2:10}),f=t.get("link"),g=t.get("sublink");c.silent=!f,p.silent=!g,f&&c.on("click",function(){window.open(f,"_"+t.get("target"))}),g&&p.on("click",function(){window.open(g,"_"+t.get("subtarget"))}),i.add(c),d&&i.add(p);var m=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=r.getLayoutRect(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),i.attr("position",[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c.setStyle(x),p.setStyle(x),m=i.getBoundingRect();var _=y.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new o.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2]},style:b,silent:!0});o.subPixelOptimizeRect(w),i.add(w)}}})},function(t,e,n){n(1594),n(1595),n(1601),n(1599),n(1597),n(1598),n(1600)},function(t,e,n){var i=n(118),o=n(2),r=n(10).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(t){r.superApply(this,"mergeDefaultAndTheme",arguments),o.each(this.option.feature,function(t,e){var n=i.get(e);n&&o.merge(t,n.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});t.exports=r},function(t,e,n){function i(t){return 0===t.indexOf("my")}var o=n(118),r=n(2),a=n(12),s=n(53),l=n(205),u=n(642),c=n(110);t.exports=n(10).extendComponentView({type:"toolbox",render:function(t,e,n,h){function d(r,a){var l,u=y[r],c=y[a],d=m[u],f=new s(d,t,t.ecModel);if(u&&!c){if(i(u))l={model:f,onclick:f.option.onclick,featureName:u};else{var g=o.get(u);if(!g)return;l=new g(f,e,n)}v[u]=l}else{if(!(l=v[c]))return;l.model=f,l.ecModel=e,l.api=n}return!u&&c?void(l.dispose&&l.dispose(e,n)):!f.get("show")||l.unusable?void(l.remove&&l.remove(e,n)):(p(f,l,u),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},void(l.render&&l.render(f,e,n,h)))}function p(i,o,s){var l=i.getModel("iconStyle"),u=o.getIcons?o.getIcons():i.get("icon"),c=i.get("title")||{};if("string"===typeof u){var h=u,d=c;u={},c={},u[s]=h,c[s]=d}var p=i.iconPaths={};r.each(u,function(s,u){var h=l.getModel("normal").getItemStyle(),d=l.getModel("emphasis").getItemStyle(),m={x:-g/2,y:-g/2,width:g,height:g},v=0===s.indexOf("image://")?(m.image=s.slice(8),new a.Image({style:m})):a.makePath(s.replace("path://",""),{style:h,hoverStyle:d,rectHover:!0},m,"center");a.setHoverStyle(v),t.get("showTitle")&&(v.__title=c[u],v.on("mouseover",function(){var t=l.getModel("emphasis").getItemStyle();v.setStyle({text:c[u],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){v.setStyle({textFill:null})})),v.trigger(i.get("iconStatus."+u)||"normal"),f.add(v),v.on("click",r.bind(o.onclick,o,e,n,u)),p[u]=v})}var f=this.group;if(f.removeAll(),t.get("show")){var g=+t.get("itemSize"),m=t.get("feature")||{},v=this._features||(this._features={}),y=[];r.each(m,function(t,e){y.push(e)}),new l(this._featureNames||[],y).add(d).update(d).remove(r.curry(d,null)).execute(),this._featureNames=y,u.layout(f,t,n),u.addBackground(f,t),f.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var o=c.getBoundingRect(e,i.font),r=t.position[0]+f.position[0],a=t.position[1]+f.position[1]+g,s=!1;a+o.height>n.getHeight()&&(i.textPosition="top",s=!0);var l=s?-5-o.height:g+8;r+o.width/2>n.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):r-o.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}})}},updateView:function(t,e,n,i){r.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},updateLayout:function(t,e,n,i){r.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,n,i)})},remove:function(t,e){r.each(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){r.each(this._features,function(n){n.dispose&&n.dispose(t,e)})}})},function(t,e,n){"use strict";function i(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}var o=n(118),r=n(2);i.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}};var a=i.prototype;a.render=a.updateView=a.updateLayout=function(t,e,n){var i,o,a;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=i,this._brushMode=o,r.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===i)?"emphasis":"normal")})},a.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return r.each(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},a.onclick=function(t,e,n){var e=this.api,i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},o.register("brush",i),t.exports=i},function(t,e,n){function i(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var o=t.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(t);else{var r=o.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:o.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function o(t){var e=[];return f.each(t,function(t,n){var i=t.categoryAxis,o=t.valueAxis,r=o.dim,a=[" "].concat(f.map(t.series,function(t){return t.name})),s=[i.model.getCategories()];f.each(t.series,function(t){s.push(t.getRawData().mapArray(r,function(t){return t}))});for(var l=[a.join(v)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(v))}e.push(l.join("\n"))}),e.join("\n\n"+m+"\n\n")}function r(t){return f.map(t,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,o=arguments[t-1],r=e.getName(o),a=0;a<t-1;a++)i[a]=arguments[a];n.push((r?r+v:"")+i.join(v))}),n.join("\n")}).join("\n\n"+m+"\n\n")}function a(t){var e=i(t);return{value:f.filter([o(e.seriesGroupByCategoryAxis),r(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:e.meta}}function s(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(t){if(t.slice(0,t.indexOf("\n")).indexOf(v)>=0)return!0}function u(t){for(var e=t.split(/\n+/g),n=s(e.shift()).split(y),i=[],o=f.map(n,function(t){return{name:t,data:[]}}),r=0;r<e.length;r++){var a=s(e[r]).split(y);i.push(a.shift());for(var l=0;l<a.length;l++)o[l]&&(o[l].data[r]=a[l])}return{series:o,categories:i}}function c(t){for(var e=t.split(/\n+/g),n=s(e.shift()),i=[],o=0;o<e.length;o++){var r,a=s(e[o]).split(y),l="",u=!1;isNaN(a[0])?(u=!0,l=a[0],a=a.slice(1),i[o]={name:l,value:[]},r=i[o].value):r=i[o]=[];for(var c=0;c<a.length;c++)r.push(+a[c]);1===r.length&&(u?i[o].value=r[0]:i[o]=r[0])}return{name:n,data:i}}function h(t,e){var n=t.split(new RegExp("\n*"+m+"\n*","g")),i={series:[]};return f.each(n,function(t,n){if(l(t)){var o=u(t),r=e[n],a=r.axisDim+"Axis";r&&(i[a]=i[a]||[],i[a][r.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=c(t);i.series.push(o)}}),i}function d(t){this._dom=null,this.model=t}function p(t,e){return f.map(t,function(t,n){var i=e&&e[n];return f.isObject(i)&&!f.isArray(i)?(f.isObject(t)&&!f.isArray(t)&&(t=t.value),f.defaults({value:t},i)):t})}var f=n(2),g=n(111),m=new Array(60).join("-"),v="\t",y=new RegExp("["+v+"]+","g");d.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},d.prototype.onclick=function(t,e){function n(){i.removeChild(r),M._dom=null}var i=e.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var d=o.get("optionToContent"),p=o.get("contentToOption"),m=a(t);if("function"===typeof d){var y=d(e.getOption());"string"===typeof y?u.innerHTML=y:f.isDom(y)&&u.appendChild(y)}else u.appendChild(c),c.readOnly=o.get("readOnly"),c.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",c.style.color=o.get("textColor"),c.style.borderColor=o.get("textareaBorderColor"),c.style.backgroundColor=o.get("textareaColor"),c.value=m.value;var x=m.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),S=document.createElement("div");b+=";background-color:"+o.get("buttonColor"),b+=";color:"+o.get("buttonTextColor");var M=this;g.addEventListener(w,"click",n),g.addEventListener(S,"click",function(){var t;try{t="function"===typeof p?p(u,e.getOption()):h(c.value,x)}catch(t){throw n(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),n()}),w.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=b,w.style.cssText=b,!o.get("readOnly")&&_.appendChild(S),_.appendChild(w),g.addEventListener(c,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,n=this.selectionStart,i=this.selectionEnd;this.value=e.substring(0,n)+v+e.substring(i),this.selectionStart=this.selectionEnd=n+1,g.stop(t)}}),r.appendChild(s),r.appendChild(u),r.appendChild(_),u.style.height=i.clientHeight-80+"px",i.appendChild(r),this._dom=r},d.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},d.prototype.dispose=function(t,e){this.remove(t,e)},n(118).register("dataView",d),n(10).registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];f.each(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var o=i.get("data");n.push({name:t.name,data:p(t.data,o)})}else n.push(f.extend({type:"scatter"},t))}),e.mergeOption(f.defaults({series:n},t.newOption))}),t.exports=d},function(t,e,n){"use strict";function i(t,e,n){(this._brushController=new l(n.getZr())).on("brush",s.bind(this._onBrush,this)).mount(),this._isZoomActive}function o(t){var e={};return s.each(["xAxisIndex","yAxisIndex"],function(n){e[n]=t[n],null==e[n]&&(e[n]="all"),(!1===e[n]||"none"===e[n])&&(e[n]=[])}),e}function r(t,e){t.setIconStatus("back",c.count(e)>1?"emphasis":"normal")}function a(t,e,n,i,r){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var s=new u(o(t.option),e,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!a&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var s=n(2),l=n(383),u=n(638),c=n(636),h=n(204),d=s.each;n(1551);var p="\0_ec_\0toolbox-dataZoom_";i.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}};var f=i.prototype;f.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n,a(t,e,this,i,n),r(t,e)},f.onclick=function(t,e,n){g[n].call(this)},f.remove=function(t,e){this._brushController.unmount()},f.dispose=function(t,e){this._brushController.dispose()};var g={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}};f._onBrush=function(t,e){function n(t,e,n){var o=e.getAxis(t),s=o.model,l=i(t,s,a),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(n=h(0,n.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}function i(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}if(e.isEnd&&t.length){var r={},a=this.ecModel;this._brushController.updateCovers([]);new u(o(this.model.option),a,{include:["grid"]}).matchOutputRanges(t,a,function(t,e,i){if("cartesian2d"===i.type){var o=t.brushType;"rect"===o?(n("x",i,e[0]),n("y",i,e[1])):n({lineX:"x",lineY:"y"}[o],i,e)}}),c.push(a,r),this._dispatchZoomAction(r)}},f._dispatchZoomAction=function(t){var e=[];d(t,function(t,n){e.push(s.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},n(118).register("dataZoom",i),n(10).registerPreprocessor(function(t){function e(t,e){if(e){var o=t+"Index",r=e[o];null==r||"all"==r||s.isArray(r)||(r=!1===r||"none"===r?[]:[r]),n(t,function(e,n){if(null==r||"all"==r||-1!==s.indexOf(r,n)){var a={type:"select",$fromToolbox:!0,id:p+t+n};a[o]=n,i.push(a)}})}}function n(e,n){var i=t[e];s.isArray(i)||(i=i?[i]:[]),d(i,n)}if(t){var i=t.dataZoom||(t.dataZoom=[]);s.isArray(i)||(t.dataZoom=i=[i]);var o=t.toolbox;if(o&&(s.isArray(o)&&(o=o[0]),o&&o.feature)){var r=o.feature.dataZoom;e("xAxis",r),e("yAxis",r)}}}),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var o=n(2);i.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"},option:{},seriesIndex:{}};var r=i.prototype;r.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return o.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var a={line:function(t,e,n,i){if("bar"===t)return o.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return o.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return o.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return o.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}},s=[["line","bar"],["stack","tiled"]];r.onclick=function(t,e,n){var i=this.model,r=i.get("seriesIndex."+n);if(a[n]){var l={series:[]},u=function(e){var r=e.subType,s=e.id,u=a[n](r,s,e,i);u&&(o.defaults(u,e.option),l.series.push(u));var c=e.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var h=c.getAxesByScale("ordinal")[0];if(h){var d=h.dim,p=d+"Axis",f=t.queryComponents({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=f.componentIndex;l[p]=l[p]||[];for(var m=0;m<=g;m++)l[p][g]=l[p][g]||{};l[p][g].boundaryGap="bar"===n}}};o.each(s,function(t){o.indexOf(t,n)>=0&&o.each(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},u),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:l})}},n(10).registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),n(118).register("magicType",i),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var o=n(636);i.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"\u8fd8\u539f"},i.prototype.onclick=function(t,e,n){o.clear(t),e.dispatchAction({type:"restore",from:this.uid})},n(118).register("restore",i),n(10).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=i},function(t,e,n){function i(t){this.model=t}var o=n(59);i.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]},i.prototype.unusable=!o.canvasSupported,i.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),a=n.get("type",!0)||"png";r.download=i+"."+a,r.target="_blank";var s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(r.href=s,"function"!==typeof MouseEvent||o.browser.ie||o.browser.edge){var l=n.get("lang"),u='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>';window.open().document.write(u)}else{var c=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(c)}},n(118).register("saveAsImage",i),t.exports=i},function(t,e,n){n(200),n(1604),n(1605),n(10).registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),n(10).registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(t,e,n){function i(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return s.map(f,function(t){return t+"transition:"+e}).join(";")}function o(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),h(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function r(t){var e=[],n=t.get("transitionDuration"),r=t.get("backgroundColor"),a=t.getModel("textStyle"),s=t.get("padding");return n&&e.push(i(n)),r&&(p.canvasSupported?e.push("background-Color:"+r):(e.push("background-Color:#"+l.toHex(r)),e.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(n){var i="border-"+n,o=d(i),r=t.get(o);null!=r&&e.push(i+":"+r+("color"===n?"":"px"))}),e.push(o(a)),null!=s&&e.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),e.join(";")+";"}function a(t,e){var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!o._enterable){var n=i.handler;u.normalizeEvent(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}}var s=n(2),l=n(112),u=n(111),c=n(35),h=s.each,d=c.toCamelCase,p=n(59),f=["","-webkit-","-moz-","-o-"];a.prototype={constructor:a,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+r(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){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRoot())&&(t+=n.offsetLeft||0,e+=n.offsetTop||0);var o=this.el.style;o.left=t+"px",o.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}},t.exports=a},function(t,e,n){n(10).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}})},function(t,e,n){function i(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(n instanceof v&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),e=new v(n,e,e.ecModel))}return e}function o(t,e){return t.dispatchAction||c.bind(e.dispatchAction,e)}function r(t,e,n,i,o,r,a){var s=n.clientWidth,l=n.clientHeight;return null!=r&&(t+s+r>i?t-=s+r:t+=r),null!=a&&(e+l+a>o?e-=l+a:e+=a),[t,e]}function a(t,e,n,i,o){var r=n.clientWidth,a=n.clientHeight;return t=Math.min(t+r,i)-r,e=Math.min(e+a,o)-a,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function s(t,e,n){var i=n[0],o=n[1],r=0,a=0,s=e.width,l=e.height;switch(t){case"inside":r=e.x+s/2-i/2,a=e.y+l/2-o/2;break;case"top":r=e.x+s/2-i/2,a=e.y-o-5;break;case"bottom":r=e.x+s/2-i/2,a=e.y+l+5;break;case"left":r=e.x-i-5,a=e.y+l/2-o/2;break;case"right":r=e.x+s+5,a=e.y+l/2-o/2}return[r,a]}function l(t){return"center"===t||"middle"===t}var u=n(1603),c=n(2),h=n(35),d=n(13),p=n(12),f=n(630),g=n(43),m=n(59),v=n(53),y=n(631),x=n(77),_=n(262),b=c.bind,w=c.each,S=d.parsePercent,M=new p.Rect({shape:{x:-1,y:-1,width:2,height:2}});n(10).extendComponentView({type:"tooltip",init:function(t,e){if(!m.node){var n=new u(e.getDom(),e);this._tooltipContent=n}},render:function(t,e,n){if(!m.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");y.register("itemTooltip",this._api,b(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!m.node){var r=o(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=M;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=f(i,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:i.position,target:l.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;this._alwaysShowContent||r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(o(i,n))},_manuallyAxisShowTip:function(t,e,n,o){var r=o.seriesIndex,a=o.dataIndex,s=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=s){var l=e.getSeriesByIndex(r);if(l){var u=l.getData(),t=i([u.getItemModel(a),l,(l.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:o.position}),!0}}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=c.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,o=this._tooltipModel,r=[e.offsetX,e.offsetY],a=[],s=[],l=i([e.tooltipOption,o]);w(t,function(t){w(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,o=[];if(e&&null!=i){var r=_.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);c.each(t.seriesDataIndices,function(a){var l=n.getSeriesByIndex(a.seriesIndex),u=a.dataIndexInside,c=l&&l.getDataParams(u);c.axisDim=t.axisDim,c.axisIndex=t.axisIndex,c.axisType=t.axisType,c.axisId=t.axisId,c.axisValue=x.getAxisRawValue(e.axis,i),c.axisValueLabel=r,c&&(s.push(c),o.push(l.formatTooltip(u,!0)))});var l=r;a.push((l?h.encodeHTML(l)+"<br />":"")+o.join("<br />"))}})},this),a.reverse(),a=a.join("<br /><br />");var u=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,u,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(l,a,s,Math.random(),r[0],r[1],u)})},_showSeriesItemTooltip:function(t,e,n){var o=this._ecModel,r=e.seriesIndex,a=o.getSeriesByIndex(r),s=e.dataModel||a,l=e.dataIndex,u=e.dataType,c=s.getData(),h=i([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var p=s.getDataParams(l,u),f=s.formatTooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,f,p,g,t.offsetX,t.offsetY,t.position,t.target)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"===typeof i){var o=i;i={content:o,formatter:o}}var r=new v(i,this._tooltipModel,this._ecModel),a=r.get("content"),s=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,o,r,a,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");a=a||t.get("position");var c=e;if(u&&"string"===typeof u)c=h.formatTpl(u,n,!0);else if("function"===typeof u){var d=b(function(e,i){e===this._ticket&&(l.setContent(i),this._updatePosition(t,a,o,r,l,n,s))},this);this._ticket=i,c=u(n,i,d)}l.setContent(c),l.show(t),this._updatePosition(t,a,o,r,l,n,s)}},_updatePosition:function(t,e,n,i,o,u,h){var d=this._api.getWidth(),p=this._api.getHeight();e=e||t.get("position");var f=o.getSize(),m=t.get("align"),v=t.get("verticalAlign"),y=h&&h.getBoundingRect().clone();if(h&&y.applyTransform(h.transform),"function"===typeof e&&(e=e([n,i],u,o.el,y,{viewSize:[d,p],contentSize:f.slice()})),c.isArray(e))n=S(e[0],d),i=S(e[1],p);else if(c.isObject(e)){e.width=f[0],e.height=f[1];var x=g.getLayoutRect(e,{width:d,height:p});n=x.x,i=x.y,m=null,v=null}else if("string"===typeof e&&h){var _=s(e,y,f);n=_[0],i=_[1]}else{var _=r(n,i,o.el,d,p,m?null:20,v?null:20);n=_[0],i=_[1]}if(m&&(n-=l(m)?f[0]/2:"right"===m?f[0]:0),v&&(i-=l(v)?f[1]/2:"bottom"===v?f[1]:0),t.get("confine")){var _=a(n,i,o.el,d,p);n=_[0],i=_[1]}o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&w(e,function(e,i){var o=e.dataByAxis||{},r=t[i]||{},a=r.dataByAxis||[];(n&=o.length===a.length)&&w(o,function(t,e){var i=a[e]||{},o=t.seriesDataIndices||[],r=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&o.length===r.length)&&w(o,function(t,e){var i=r[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){m.node||(this._tooltipContent.hide(),y.unregister("itemTooltip",e))}})},function(t,e,n){n(1607),n(1608)},function(t,e,n){n(10).registerPreprocessor(n(649)),n(650),n(651),n(1609),n(1610),n(652)},function(t,e,n){n(10).registerPreprocessor(n(649)),n(650),n(651),n(1611),n(1612),n(652)},function(t,e,n){function i(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}var o=n(646),r=n(2),a=n(13),s=[20,140],l=o.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:!0},optionUpdated:function(t,e){l.superApply(this,"optionUpdated",arguments),this.resetTargetSeries(),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){l.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=s[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=s[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):r.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){o.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimension(o),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},!0,this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){function e(e,n){r.push({value:e,color:t(e,n)})}for(var n=i(this,"outOfRange",this.getExtent()),o=i(this,"inRange",this.option.range.slice()),r=[],a=0,s=0,l=o.length,u=n.length;s<u&&(!o.length||n[s]<=o[0]);s++)n[s]<o[a]&&e(n[s],"outOfRange");for(var c=1;a<l;a++,c=0)c&&r.length&&e(o[a],"outOfRange"),e(o[a],"inRange");for(var c=1;s<u;s++)(!o.length||o[o.length-1]<n[s])&&(c&&(r.length&&e(r[r.length-1].value,"outOfRange"),c=0),e(n[s],"outOfRange"));var h=r.length;return{stops:r,outerColors:[h?r[0].color:"transparent",h?r[h-1].color:"transparent"]}}});t.exports=l},function(t,e,n){function i(t,e,n,i){return new u.Polygon({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){m.stop(t.event)},ondragend:i})}function o(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function r(t,e,n,i){return t?[[0,-x(e,_(n,0))],[w,0],[0,x(e,_(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function a(t,e,n){var i=b/2,o=t.get("hoverLinkDataSize");return o&&(i=v(o,e,n,!0)/2),i}function s(t){return!t.get("realtime")&&t.get("hoverLinkOnHandle")}var l=n(647),u=n(12),c=n(2),h=n(13),d=n(204),p=n(841),f=n(648),g=n(29),m=n(111),v=h.linearMap,y=c.each,x=Math.min,_=Math.max,b=12,w=6,S=l.extend({type:"visualMap.continuous",init:function(){S.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,s=this._shapes.barGroup,l=this._applyTransform([a[0]/2,0===n?-r:a[1]+r],s),c=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new u.Text({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:i,textFont:d.getFont(),fill:d.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,n=this._shapes,o=e.itemSize,r=this._orient,a=this._useHandle,s=f.getItemAlign(e,this.api,o),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=i()),l.add(n.inRange=i(null,a?"move":null,c.bind(this._dragHandle,this,"all",!1),c.bind(this._dragHandle,this,"all",!0)));var u=e.textStyleModel.getTextRect("\u56fd"),h=_(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,o,h,r,s),this._createHandle(l,1,o,h,r,s)),this._createIndicator(l,o,h,r),t.add(l)},_createHandle:function(t,e,n,r,a){var s=c.bind(this._dragHandle,this,e,!1),l=c.bind(this._dragHandle,this,e,!0),h=i(o(e,r),"move",s,l);h.position[0]=n[0],t.add(h);var d=this.visualMapModel.textStyleModel,p=new u.Text({draggable:!0,drift:s,onmousemove:function(t){m.stop(t.event)},ondragend:l,style:{x:0,y:0,text:"",textFont:d.getFont(),fill:d.getTextColor()}});this.group.add(p);var f=["horizontal"===a?r/2:1.5*r,"horizontal"===a?0===e?-1.5*r:1.5*r:0===e?-r/2:r/2],g=this._shapes;g.handleThumbs[e]=h,g.handleLabelPoints[e]=f,g.handleLabels[e]=p},_createIndicator:function(t,e,n,o){var r=i([[0,0]],"move");r.position[0]=e[0],r.attr({invisible:!0,silent:!0}),t.add(r);var a=this.visualMapModel.textStyleModel,s=new u.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),fill:a.getTextColor()}});this.group.add(s);var l=["horizontal"===o?n/2:w+3,0],c=this._shapes;c.indicator=r,c.indicatorLabel=s,c.indicatorLabelPoint=l},_dragHandle:function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(t,o[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():s(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[v(e[0],n,i,!0),v(e[1],n,i,!0)]},_updateInterval:function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];d(e,i,o,t,0);var r=n.getExtent();this._dataInterval=[v(i[0],o,r,!0),v(i[1],o,r,!0)]},_updateView:function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=[0,e.itemSize[1]],r=t?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(r,a)},_createBarVisual:function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(t,o),a=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],s=this._createBarPoints(n,a);return{barColor:new p(0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},_makeColorGradient:function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new u.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels;y([0,1],function(a){var s=o[a];s.setStyle("fill",e.handlesColor[a]),s.position[1]=t[a];var l=u.applyTransform(n.handleLabelPoints[a],u.getTransform(s,this.group));r[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var o=this.visualMapModel,a=o.getExtent(),s=o.itemSize,l=[0,s[1]],c=v(t,a,l,!0),h=this._shapes,d=h.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",r(!!n,i,c,s[1]));var p={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",p);d.setStyle("fill",f);var g=u.applyTransform(h.indicatorLabelPoint,u.getTransform(d,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",h.barGroup),x=this._orient;m.setStyle({text:(n||"")+o.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=x(_(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],r=n.getExtent();t=x(_(o[0],t),o[1]);var l=a(n,r,o),u=[t-l,t+l],c=v(t,o,r,!0),h=[v(u[0],o,r,!0),v(u[1],o,r,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var d=this._hoverLinkDataIndices,p=[];(e||s(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var m=g.compressBatches(d,p);this._dispatchHighDown("downplay",f.convertDataIndex(m[0])),this._dispatchHighDown("highlight",f.convertDataIndex(m[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,n=this.visualMapModel;if(e&&null!=e.dataIndex){var i=this.ecModel.getSeriesByIndex(e.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(e.dataType),r=o.getDimension(n.getDataDimension(o)),a=o.get(r,e.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",f.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,i){var o=u.getTransform(e,i?null:this.group);return u[c.isArray(t)?"applyTransform":"transformDirection"](t,o,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});t.exports=S},function(t,e,n){function i(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var o=n(646),r=n(2),a=n(140),s=n(662),l=n(13).reformIntervals,u=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetTargetSeries(),this.resetExtent();var n=this._mode=this._determineMode();c[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=r.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,function(t){var t=r.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,n){return t&&t[e]&&(r.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}var e=this.option,n={},i=a.listVisualTypes(),l=this.isCategory();r.each(e.pieces,function(t){r.each(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),r.each(n,function(n,i){var o=0;r.each(this.stateList,function(n){o|=t(e,n,i)||t(e.target,n,i)},this),!o&&r.each(this.stateList,function(t){(e[t]||(e[t]={}))[i]=s.get(i,"inRange"===t?"active":"inactive",l)})},this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,r.each(i,function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)},this),"single"===n.selectedMode){var a=!1;r.each(i,function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=r.clone(t)},getValueState:function(t){var e=a.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimension(o),function(e,n){a.findPieceIndex(e,this._pieceList)===t&&i.push(n)},!0,this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){function e(e,r){var a=o.getRepresentValue({interval:e});r||(r=o.getValueState(a));var s=t(a,r);e[0]===-1/0?i[0]=s:e[1]===1/0?i[1]=s:n.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var n=[],i=[],o=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-1/0&&a.unshift({interval:[-1/0,s]}),s=a[a.length-1].interval[1],s!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return r.each(a,function(t){var n=t.interval;n&&(n[0]>l&&e([l,n[0]],"outOfRange"),e(n.slice()),l=n[1])},this),{stops:n,outerColors:i}}}}),c={splitNumber:function(){var t=this.option,e=this._pieceList,n=t.precision,i=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var a=(i[1]-i[0])/o;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n);var s=0;t.minOpen&&e.push({index:s++,interval:[-1/0,i[0]],close:[0,0]});for(var u=i[0],c=s+o;s<c;u+=a){var h=s===o-1?i[1]:u+a;e.push({index:s++,interval:[u,h],close:[1,1]})}t.maxOpen&&e.push({index:s++,interval:[i[1],1/0],close:[0,0]}),l(e),r.each(e,function(t){t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;r.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),i(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;r.each(t.pieces,function(t,n){r.isObject(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var o=i.value=t.value;i.interval=[o,o],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==s[d];f++)s[d]=t[p[f]],l[d]=u[f],h[d]=2===f;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),__DEV__&&s[0]>s[1]&&console.warn("Piece "+n+"is illegal: "+s+" lower bound should not greater then uppper bound."),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=a.retrieveVisuals(t),e.push(i)},this),i(t,e),l(e),r.each(e,function(t){var e=t.close,n=[["<","\u2264"][e[1]],[">","\u2265"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};t.exports=u},function(t,e,n){var i=n(647),o=n(2),r=n(12),a=n(86),s=n(43),l=n(648),u=i.extend({type:"visualMap.piecewise",doRender:function(){function t(t){var a=t.piece,s=new r.Group;s.onclick=o.bind(this._onItemClick,this,a),this._enableHoverLink(s,t.indexInModelPieceList);var d=n.getRepresentValue(a);if(this._createItemSymbol(s,d,[0,0,h[0],h[1]]),f){var p=this.visualMapModel.getValueState(d);s.add(new r.Text({style:{x:"right"===c?-i:h[0]+i,y:h[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:c,textFont:l,fill:u,opacity:"outOfRange"===p?.5:1}}))}e.add(s)}var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,l=a.getFont(),u=a.getTextColor(),c=this._getItemAlign(),h=n.itemSize,d=this._getViewData(),p=d.endsText,f=o.retrieve(n.get("showLabel",!0),!p);p&&this._renderEndsText(e,p[0],h,f,c),o.each(d.viewPieceList,t,this),p&&this._renderEndsText(e,p[1],h,f,c),s.box(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.convertDataIndex(n.findTargetDataIndices(e))})}t.on("mouseover",o.bind(n,this,"highlight")).on("mouseout",o.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,o){if(e){var a=new r.Group,s=this.visualMapModel.textStyleModel;a.add(new r.Text({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?o:"center",text:e,textFont:s.getFont(),fill:s.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=o.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(a.createSymbol(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=o.clone(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,o.each(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});t.exports=u},function(t,e,n){"use strict";function i(t,e,n){this._model=t}function o(t,e,n,i){var o=n.calendarModel,r=n.seriesModel,a=o?o.coordinateSystem:r?r.coordinateSystem:null;return a===this?a[t](i):null}var r=n(43),a=n(13),s=n(2);i.prototype={constructor:i,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=a.parseDate(t);var e=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e,m:n,d:i,day:o,time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){if(0===(e=e||0))return this.getDateInfo(t);var n=this.getDateInfo(t).time;return this.getDateInfo(n+864e5*e)},update:function(t,e){function n(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),u="horizontal"===this._orient?[i,7]:[7,i];s.each([0,1],function(t){n(a,t)&&(l[o[t]]=a[t]*u[t])});var c={width:e.getWidth(),height:e.getHeight()},h=this._rect=r.getLayoutRect(l,c);s.each([0,1],function(t){n(a,t)||(a[t]=h[o[t]]/u[t])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){s.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<=i.end.time))return[NaN,NaN];var r=n.day,a=this._getRangeInfo([i.start.time,o]).weeks;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+(a-1)*this._sh+this._sh/2]:[this._rect.x+(a-1)*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},convertToPixel:s.curry(o,"dataToPoint"),convertFromPixel:s.curry(o,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(s.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var n=this.getDateInfo(e),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var r=this._getRangeInfo(t);return r.start.time>r.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e=this.getDateInfo(t[0]),n=this.getDateInfo(t[1]),i=Math.floor(n.time/864e5)-Math.floor(e.time/864e5)+1,o=Math.floor((i+e.day+6)/7);return{range:[e.formatedDate,n.formatedDate],start:e,end:n,allDay:i,weeks:o,fweek:e.day,lweek:n.day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return!1;var o=7*(t-1)-i.fweek+e,r=i.start.time+864e5*o;return this.getDateInfo(r)}},i.dimensions=i.prototype.dimensions,i.getDimensionsInfo=i.prototype.getDimensionsInfo,i.create=function(t,e){var n=[];return t.eachComponent("calendar",function(o){var r=new i(o,t,e);n.push(r),o.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},n(94).register("calendar",i),t.exports=i},function(t,e,n){"use strict";function i(t,e){var n=t.cellSize;r.isArray(n)?1===n.length&&(n[1]=n[0]):n=t.cellSize=[n,n];var i=r.map([0,1],function(t){return a.sizeCalculable(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});a.mergeLayoutParam(t,e,{type:"box",ignoreSize:i})}var o=n(58),r=n(2),a=n(43),s=o.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",textStyle:{color:"#000"}},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,textStyle:{color:"#000"}},yearLabel:{show:!0,position:null,margin:30,formatter:null,textStyle:{color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}}},init:function(t,e,n,o){var r=a.getLayoutParams(t);s.superApply(this,"init",arguments),i(t,r)},mergeOption:function(t,e){s.superApply(this,"mergeOption",arguments),i(this.option,t)}});t.exports=s},function(t,e,n){function i(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:o.bind(t.dataToPoint,t)}}}var o=n(2);t.exports=i},function(t,e,n){var i=n(2),o=n(119),r=function(t,e,n,i,r){o.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"===typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(r,o),t.exports=r},function(t,e,n){"use strict";function i(t){return this._axes[t]}var o=n(2),r=function(t){this._axes={},this._dimList=[],this.name=t||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return o.map(this._dimList,i,this)},getAxesByScale:function(t){return t=t.toLowerCase(),o.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},o=0;o<n.length;o++){var r=n[o],a=this._axes[r];i[r]=a[e](t[r])}return i}},t.exports=r},function(t,e,n){"use strict";function i(t){r.call(this,t)}var o=n(2),r=n(1617);i.prototype={constructor:i,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.toGlobalCoord(n.dataToCoord(t[0],e)),i.toGlobalCoord(i.dataToCoord(t[1],e))]},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.coordToData(n.toLocalCoord(t[0]),e),i.coordToData(i.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},o.inherits(i,r),t.exports=i},function(t,e,n){"use strict";n(655);var i=n(58);t.exports=i.extend({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"}})},function(t,e,n){function i(t,e){return e=e||[0,0],r.map(["x","y"],function(n,i){var o=this.getAxis(n),r=e[i],a=t[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))},this)}function o(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:r.bind(t.dataToPoint,t),size:r.bind(i,t)}}}var r=n(2);t.exports=o},function(t,e,n){function i(t,e,n,i,o){l.call(this,t),this.map=e,this._nameCoordMap=a.createHashMap(),this.loadGeoJson(n,i,o)}function o(t,e,n,i){var o=n.geoModel,r=n.seriesModel,a=o?o.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](i):null}var r=n(656),a=n(2),s=n(54),l=n(653),u=[n(1625),n(1626),n(1624),n(1623)];i.prototype={constructor:i,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},loadGeoJson:function(t,e,n){try{this.regions=t?r(t):[]}catch(t){throw"Invalid geoJson format\n"+t.message}e=e||{},n=n||{};for(var i=this.regions,o=a.createHashMap(),s=0;s<i.length;s++){var l=i[s].name;l=n.hasOwnProperty(l)?n[l]:l,i[s].name=l,o.set(l,i[s]),this.addGeoCoord(l,i[s].center);var c=e[l];c&&i[s].transformTo(c.left,c.top,c.width,c.height)}this._regionsMap=o,this._rect=null,a.each(u,function(t){t(this)},this)},transformTo:function(t,e,n,i){var o=this.getBoundingRect();o=o.clone(),o.y=-o.y-o.height;var r=this._viewTransform;r.transform=o.calculateTransform(new s(t,e,n,i)),r.decomposeTransform();var a=r.scale;a[1]=-a[1],r.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){if(this._rect)return this._rect;for(var t,e=this.regions,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return this._rect=t||new s(0,0,0,0)},dataToPoints:function(t){var e=[];return t.mapArray(["lng","lat"],function(t,n){return e[0]=t,e[1]=n,this.dataToPoint(e)},this)},dataToPoint:function(t){if("string"===typeof t&&(t=this.getGeoCoord(t)),t)return l.prototype.dataToPoint.call(this,t)},convertToPixel:a.curry(o,"dataToPoint"),convertFromPixel:a.curry(o,"pointToData")},a.mixin(i,l),t.exports=i},function(t,e,n){"use strict";var i=n(29),o=n(58),r=n(53),a=n(2),s=n(385),l=n(265),u=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){o.prototype.init.apply(this,arguments),i.defaultEmphasis(t.label,["position","show","textStyle","distance","formatter"])},optionUpdated:function(){var t=this.option,e=this;t.regions=l.getFilledRegions(t.regions,t.map),this._optionModelMap=a.reduce(t.regions||[],function(t,n){return n.name&&t.set(n.name,new r(n,e)),t},a.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new r(null,this,this.ecModel)},getFormattedLabel:function(t,e){var n=this.getRegionModel(t),i=n.get("label."+e+".formatter"),o={name:t};if("function"===typeof i)return o.status=e,i(o);if("string"===typeof i){var r=o.seriesName;return i.replace("{a}",null!=r?r:"")}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});a.mixin(u,s),t.exports=u},function(t,e,n){var i=(n(390),n(2),[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]]);t.exports=function(t){if("china"===t.map)for(var e=0,n=t.regions.length;e<n;++e)"\u53f0\u6e7e"===t.regions[e].name&&t.regions[e].geometries.push({type:"polygon",exterior:i[0]})}},function(t,e,n){var i=n(2),o={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};t.exports=function(t){i.each(t.regions,function(t){var e=o[t.name];if(e){var n=t.center;n[0]=e[0],n[1]=e[1]}})}},function(t,e,n){for(var i=n(390),o=n(2),r=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=r[0],a[s][l][1]+=r[1];t.exports=function(t){"china"===t.map&&t.regions.push(new i("\u5357\u6d77\u8bf8\u5c9b",o.map(a,function(t){return{type:"polygon",exterior:t}}),r))}},function(t,e,n){var i=n(2),o={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};t.exports=function(t){i.each(t.regions,function(t){var e=o[t.name];if(e){var n=t.center;n[0]+=e[0]/10.5,n[1]+=-e[1]/14}})}},function(t,e,n){function i(t,e){return e=e||[0,0],r.map([0,1],function(n){var i=e[n],o=t[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])},this)}function o(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:r.bind(t.dataToPoint,t),size:r.bind(i,t)}}}var r=n(2);t.exports=o},function(t,e,n){function i(t,e){return e.type||(e.data?"category":"value")}var o=n(58),r=n(2),a=n(206),s=n(264),l=n(13),u=o.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]]).call(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=r.clone(t);if(e)for(var n=e.length-1;n>=0;n--)l.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var n=0,i=e.length;n<i;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};r.merge(u.prototype,n(156)),s("parallel",u,i,c),t.exports=u},function(t,e,n){function i(t,e,n){this._axesMap=u.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,n)}function o(t,e){return m(v(t,e[0]),e[1])}function r(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function a(t,e){var n,i,o=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],u=r,c=!0):(n=o-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var s=n(43),l=n(77),u=n(2),c=n(1630),h=n(12),d=n(91),p=n(13),f=n(204),g=u.each,m=Math.min,v=Math.max,y=Math.floor,x=Math.ceil,_=p.round,b=Math.PI;i.prototype={type:"parallel",constructor:i,_init:function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;g(i,function(t,n){var i=o[n],r=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new c(t,l.createScaleByModel(r),[0,0],r.get("type"),i)),s="category"===a.type;a.onBand=s&&r.get("boundaryGap"),a.inverse=r.get("inverse"),r.axis=a,a.model=r,a.coordinateSystem=r.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o],a=t[o];return r>=n&&r<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},_updateAxesFromSeries:function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();g(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,t),l.niceScaleExtent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),s="horizontal"===a?0:1,l=n[r[s]],u=[0,l],c=this.dimensions.length,h=o(e.get("axisExpandWidth"),u),d=o(e.get("axisExpandCount")||0,[0,c]),p=e.get("axisExpandable")&&c>3&&c>d&&d>1&&h>0&&l>0,f=e.get("axisExpandWindow");if(f)t=o(f[1]-f[0],u),f[1]=f[0]+t;else{t=o(h*(d-1),u);f=[h*(e.get("axisExpandCenter")||y(c/2))-t/2],f[1]=f[0]+t}var g=(l-t)/(c-d);g<3&&(g=0);var m=[y(_(f[0]/h,1))+1,x(_(f[1]/h,1))-1],v=g/h*f[0];return{layout:a,pixelDimIndex:s,layoutBase:n[i[s]],layoutLength:l,axisBase:n[i[1-s]],axisLength:n[r[1-s]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:f,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),g(n,function(n,s){var l=(i.axisExpandable?a:r)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:b/2,vertical:0},h=[u[o].x+t.x,u[o].y+t.y],p=c[o],f=d.create();d.rotate(f,f,p),d.translate(f,f,h),this._axesLayout[n]={position:h,rotation:p,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1,labelInterval:e.get(n).getLabelInterval()}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,n){for(var i=this.dimensions,o=this._axesMap,r=this.hasAxisBrushed(),a=0,s=t.count();a<s;a++){var l,u=t.getValues(i,a);if(r){l="active";for(var c=0,h=i.length;c<h;c++){var d=i[c];if("inactive"===o.get(d).model.getActiveState(u[c],c)){l="inactive";break}}}else l="normal";e.call(n,l,a)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(t,e){var n=this._axesLayout[e];return h.applyTransform([t,0],n.transform)},getAxisLayout:function(t){return u.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<o*c[0]?(l="jump",a=s-o*c[2]):h&&u&&s>o*(1-c[0])?(l="jump",a=s-o*(1-c[2])):(a=s-o*c[1])>=0&&(a=s-o*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?f(a,i,r,"all"):l="none";else{var o=i[1]-i[0];i=[v(0,r[1]*s/o-o/2)],i[1]=m(r[1],i[0]+o),i[0]=i[1]-o}return{axisExpandWindow:i,behavior:l}}},t.exports=i},function(t,e,n){var i=n(2),o=n(119),r=function(t,e,n,i,r){o.call(this,t,e,n),this.type=i||"value",this.axisIndex=r};r.prototype={constructor:r,model:null},i.inherits(r,o),t.exports=r},function(t,e,n){var i=n(2),o=n(58);n(1628),o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,function(t){return t.get("parallelIndex")===this.componentIndex});i.each(n,function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})}})},function(t,e,n){function i(t){if(!t.parallel){var e=!1;r.each(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function o(t){var e=a.normalizeToArray(t.parallelAxis);r.each(e,function(e){if(r.isObject(e)){var n=e.parallelIndex||0,i=a.normalizeToArray(t.parallel)[n];i&&i.parallelAxisDefault&&r.merge(e,i.parallelAxisDefault,!1)}})}var r=n(2),a=n(29);t.exports=function(t){i(t),o(t)}},function(t,e,n){"use strict";function i(t,e){e=e||[0,360],r.call(this,"angle",t,e),this.type="category"}var o=n(2),r=n(119);i.prototype={constructor:i,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData},o.inherits(i,r),t.exports=i},function(t,e,n){"use strict";function i(t,e){return e.type||(e.data?"category":"value")}var o=n(2),r=n(58),a=n(264),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});o.merge(s.prototype,n(156));var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};a("angle",s,i,l.angle),a("radius",s,i,l.radius)},function(t,e,n){"use strict";var i=n(1637),o=n(1633),r=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new o,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoints:function(t){return t.mapArray(this.dimensions,function(t,e){return this.dataToPoint([t,e])},!0,this)},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);i.inverse?r=a-360:a=r+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<r?1:-1;l<r||l>a;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}},t.exports=r},function(t,e,n){"use strict";n(1634),n(10).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(t,e,n){"use strict";function i(t,e){r.call(this,"radius",t,e),this.type="category"}var o=n(2),r=n(119);i.prototype={constructor:i,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},o.inherits(i,r),t.exports=i},function(t,e,n){function i(t,e){return r.map(["Radius","Angle"],function(n,i){var o=this["get"+n+"Axis"](),r=e[i],a=t[i]/2,s="dataTo"+n,l="category"===o.type?o.getBandWidth():Math.abs(o[s](r-a)-o[s](r+a));return"Angle"===n&&(l=l*Math.PI/180),l},this)}function o(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),o=e.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:o[1],r0:o[0]},api:{coord:r.bind(function(i){var o=e.dataToRadius(i[0]),r=n.dataToAngle(i[1]),a=t.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a}),size:r.bind(i,t)}}}var r=n(2);t.exports=o},function(t,e,n){function i(t,e,n){r.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}var o=n(2),r=n(119);o.inherits(i,r),t.exports=i},function(t,e,n){function i(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=o.map(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new r(n,new a);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.startAngle}var o=n(2),r=n(1639),a=n(267),s=n(13),l=n(77);i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},i.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},i.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var o,r=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(r-u.angle);c<a&&(o=u,s=l,a=c)}return[s,+(o&&o.coodToData(i))]},i.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r)/2;this.cx=s.parsePercent(n[0],i),this.cy=s.parsePercent(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180,this.r=s.parsePercent(t.get("radius"),a),o.each(this._indicatorAxes,function(t,e){t.setExtent(0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n},this)},i.prototype.update=function(t,e){function n(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),n=t/e;return 2===n?n=5:n*=2,n*e}var i=this._indicatorAxes,r=this._model;o.each(i,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,n){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var a=e.getData();o.each(i,function(t){t.scale.unionExtentFromData(a,t.dim)})}},this);var a=r.get("splitNumber");o.each(i,function(t,e){var i=l.getScaleExtent(t.scale,t.model);l.niceScaleExtent(t.scale,t.model);var o=t.model,r=t.scale,u=o.getMin(),c=o.getMax(),h=r.getInterval();if(null!=u&&null!=c)r.setExtent(+u,+c),r.setInterval((c-u)/a);else if(null!=u){var d;do{d=u+h*a,r.setExtent(+u,d),r.setInterval(h),h=n(h)}while(d<i[1]&&isFinite(d)&&isFinite(i[1]))}else if(null!=c){var p;do{p=c-h*a,r.setExtent(p,+c),r.setInterval(h),h=n(h)}while(p>i[0]&&isFinite(p)&&isFinite(i[0]))}else{var f=r.getTicks().length-1;f>a&&(h=n(h));var g=Math.round((i[0]+i[1])/2/h)*h,m=Math.round(a/2);r.setExtent(s.round(g-m*h),s.round(g+(a-m)*h)),r.setInterval(h)}})},i.dimensions=[],i.create=function(t,e){var n=[];return t.eachComponent("radar",function(o){var r=new i(o,t,e);n.push(r),o.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])}),n},n(94).register("radar",i),t.exports=i},function(t,e,n){function i(t,e){return s.defaults({show:e},t)}var o=n(654),r=o.valueAxis,a=n(53),s=n(2),l=n(156),u=n(10).extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),r=this.get("axisLabel"),u=this.get("name.textStyle"),c=this.get("name.show"),h=this.get("name.formatter"),d=this.get("nameGap"),p=this.get("triggerEvent"),f=s.map(this.get("indicator")||[],function(f){if(null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0),f=s.merge(s.clone(f),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:r,name:f.text,nameLocation:"end",nameGap:d,nameTextStyle:u,triggerEvent:p},!1),c||(f.name=""),"string"===typeof h){var g=f.name;f.name=h.replace("{value}",null!=g?g:"")}else"function"===typeof h&&(f.name=h(f.name,f));var m=s.extend(new a(f,null,this.ecModel),l);return m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this.getIndicatorModels=function(){return f}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:s.merge({lineStyle:{color:"#bbb"}},r.axisLine),axisLabel:i(r.axisLabel,!1),axisTick:i(r.axisTick,!1),splitLine:i(r.splitLine,!0),splitArea:i(r.splitArea,!0),indicator:[]}});t.exports=u},function(t,e,n){function i(t,e){return e.type||(e.data?"category":"value")}var o=n(58),r=n(264),a=n(2),s=o.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};a.merge(s.prototype,n(156)),r("single",s,i,l),t.exports=s},function(t,e,n){function i(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}var o=n(1644),r=n(77),a=n(43);i.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:i,_init:function(t,e,n){var i=this.dimension,a=new o(i,r.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData(),n=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(n)),r.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=a.getLayoutRect({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],o=t.isHorizontal();t.toGlobalCoord=o?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=o?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i}},t.exports=i},function(t,e,n){var i=n(2),o=n(119),r=function(t,e,n,i,r){o.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom",this.orient=null,this._labelInterval=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(r,o),t.exports=r},function(t,e,n){function i(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function o(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:r.bind(t.dataToPoint,t),size:r.bind(i,t)}}}var r=n(2);t.exports=o},function(t,e,n){function i(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var a=new o(i,t,e);a.name="single_"+r,a.resize(i,e),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n}var o=n(1643);n(94).register("single",{create:i,dimensions:o.prototype.dimensions})},function(t,e,n){"use strict";function i(t){return"_EC_"+t}function o(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function r(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}var a=n(2),s=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},l=s.prototype;l.type="graph",l.isDirected=function(){return this._directed},l.addNode=function(t,e){t=t||""+e;var n=this._nodesMap;if(n[i(t)])return void(__DEV__&&console.error("Graph nodes have duplicate name or id"));var r=new o(t,e);return r.hostGraph=this,this.nodes.push(r),n[i(t)]=r,r},l.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},l.getNodeById=function(t){return this._nodesMap[i(t)]},l.addEdge=function(t,e,n){var a=this._nodesMap,s=this._edgesMap;if("number"===typeof t&&(t=this.nodes[t]),"number"===typeof e&&(e=this.nodes[e]),t instanceof o||(t=a[i(t)]),e instanceof o||(e=a[i(e)]),t&&e){var l=t.id+"-"+e.id;if(!s[l]){var u=new r(t,e,n);return u.hostGraph=this,this._directed&&(t.outEdges.push(u),e.inEdges.push(u)),t.edges.push(u),t!==e&&e.edges.push(u),this.edges.push(u),s[l]=u,u}}},l.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},l.getEdge=function(t,e){t instanceof o&&(t=t.id),e instanceof o&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},l.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&t.call(e,n[o],o)},l.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&t.call(e,n[o],o)},l.breadthFirstTraverse=function(t,e,n,r){if(e instanceof o||(e=this._nodesMap[i(e)]),e){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(r,e,null))for(var l=[e];l.length;)for(var u=l.shift(),c=u[a],s=0;s<c.length;s++){var h=c[s],d=h.node1===u?h.node2:h.node1;if(!d.__visited){if(t.call(r,d,u))return;l.push(d),d.__visited=!0}}}},l.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(var o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o;e.filterSelf(function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(var o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o},l.clone=function(){for(var t=new s(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<n.length;i++){var o=n[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0)){return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)}}},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)}};var u=function(t,e){return{getValue:function(n){var i=this[t][e];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};a.mixin(o,u("hostGraph","data")),a.mixin(r,u("hostGraph","edgeData")),s.Node=o,s.Edge=r,t.exports=s},function(t,e,n){function i(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=r.map(e||[],function(e){return new a(e,t,t.ecModel)})}function o(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var r=n(2),a=n(53),s=n(55),l=n(658),u=n(85),c=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"===typeof t&&(n=e,e=t,t=null),t=t||{},r.isString(t)&&(t={order:t});var i,o=t.order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var s=0;!i&&s<a.length;s++)a[s].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},contains:function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},getAncestors:function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex),i=this.getLevelModel();return n.getModel(t,(i||e.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},i.prototype={constructor:i,type:"tree",eachNode:function(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},i.createTree=function(t,e,n){function a(t,e){var n=t.value;p=Math.max(p,r.isArray(n)?n.length:1),d.push(t);var i=new c(t.name,h);e?o(i,e):h.root=i,h._nodes.push(i);var s=t.children;if(s)for(var l=0;l<s.length;l++)a(s[l],i)}var h=new i(e,n),d=[],p=1;a(t),h.root.updateDepthAndHeight(0);var f=u([{name:"value"}],d,{dimCount:p}),g=new s(f,e);return g.initData(d),l({mainData:g,struct:h,structAttr:"tree"}),h.update(),h},t.exports=i},function(t,e,n){var i=n(117),o=n(86),r=n(77),a=n(156),s=n(53),l=n(2);t.exports={createList:function(t){var e=t.get("data");return i(e,t,t.ecModel)},completeDimensions:n(85),createSymbol:o.createSymbol,createScale:function(t,e){var n=e;e instanceof s||(n=new s(e),l.mixin(n,a));var i=r.createScaleByModel(n);return i.setExtent(t[0],t[1]),r.niceScaleExtent(i,n),i},mixinAxisModelCommonMethods:function(t){l.mixin(t,a)}}},function(t,e,n){"use strict";function i(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function o(t){return t.dim}function r(t,e,n){var r=n.getWidth(),u=n.getHeight(),c={},h={},d=a(s.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getAngleAxis(),s=n.getBaseAxis(),p=i(t),f=d[o(s)][p],g=f.offset,m=f.width,v=n.getOtherAxis(s),y=t.get("center")||["50%","50%"],x=l(y[0],r),_=l(y[1],u),b=t.get("barMinHeight")||0,w=t.get("barMinAngle")||0,S=v.getExtent()[0],M=v.model.get("max"),I=v.model.get("min"),T=n.dataToPoints(e);c[p]=c[p]||[],h[p]=h[p]||[],e.each(v.dim,function(t,i){if(!isNaN(t)){c[p][i]||(c[p][i]={p:S,n:S},h[p][i]={p:S,n:S});var o,r,s,l,u=t>=0?"p":"n",d=n.pointToCoord(T[i]),f=h[p][i][u];if("radius"===v.dim)o=f,r=d[0],s=(-d[1]+g)*Math.PI/180,l=s+m*Math.PI/180,Math.abs(r)<b&&(r=o+(r<0?-1:1)*b),h[p][i][u]=r;else{o=d[0]+g,r=o+m,null!=M&&(t=Math.min(t,M)),null!=I&&(t=Math.max(t,I));var y=a.dataToAngle(t);Math.abs(y-f)<w&&(y=f-(t<0?-1:1)*w),s=-f*Math.PI/180,l=-y*Math.PI/180;var A=a.getExtent(),D=y;D===A[0]&&t>0?D=A[1]:D===A[1]&&t<0&&(D=A[0]),h[p][i][u]=D}e.setItemLayout(i,{cx:x,cy:_,r0:o,r:r,startAngle:s,endAngle:l})}},!0)}},this)}function a(t,e){var n={};s.each(t,function(t,e){var r=t.getData(),a=t.coordinateSystem,s=a.getBaseAxis(),u=s.getExtent(),c="category"===s.type?s.getBandWidth():Math.abs(u[1]-u[0])/r.count(),h=n[o(s)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[o(s)]=h;var p=i(t);d[p]||h.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=l(t.get("barWidth"),c),g=l(t.get("barMaxWidth"),c),m=t.get("barGap"),v=t.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(h.remainedWidth,f),d[p].width=f,h.remainedWidth-=f),g&&(d[p].maxWidth=g),null!=m&&(h.gap=m),null!=v&&(h.categoryGap=v)});var r={};return s.each(n,function(t,e){r[e]={};var n=t.stacks,i=t.bandWidth,o=l(t.categoryGap,i),a=l(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-o)/(c+(c-1)*a);h=Math.max(h,0),s.each(n,function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,u),t.width&&(n=Math.min(n,t.width)),u-=n,t.width=n,c--)}),h=(u-o)/(c+(c-1)*a),h=Math.max(h,0);var d,p=0;s.each(n,function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+a)}),d&&(p-=d.width*a);var f=-p/2;s.each(n,function(t,n){r[e][n]=r[e][n]||{offset:f,width:t.width},f+=t.width*(1+a)})}),r}var s=n(2),l=n(13).parsePercent;t.exports=r},function(t,e,n){var i=n(12),o=n(2),r=Math.PI;t.exports=function(t,e){e=e||{},o.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new i.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),a=new i.Arc({shape:{startAngle:-r/2,endAngle:-r/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),s=new i.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*r/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*r/2}).delay(300).start("circularInOut");var l=new i.Group;return l.add(a),l.add(s),l.add(n),l.resize=function(){var e=t.getWidth()/2,i=t.getHeight()/2;a.setShape({cx:e,cy:i});var o=a.shape.r;s.setShape({x:e-o,y:i-o,width:2*o,height:2*o}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},l.resize(),l}},function(t,e,n){function i(t,e){c.each(e,function(e,n){x.hasClass(n)||("object"===typeof e?t[n]=t[n]?c.merge(t[n],e,!1):c.clone(e):null==t[n]&&(t[n]=e))})}function o(t){t=t,this.option={},this.option[b]=1,this._componentsMap=c.createHashMap({series:[]}),this._seriesIndices=null,i(t,this._theme.option),c.merge(t,_,!1),this.mergeOption(t)}function r(t,e){c.isArray(e)||(e=e?[e]:[]);var n={};return p(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}function a(t,e,n){return e.type?e.type:n?n.subType:x.determineSubType(t,e)}function s(t){return g(t,function(t){return t.componentIndex})||[]}function l(t,e){return e.hasOwnProperty("subType")?f(t,function(t){return t.subType===e.subType}):t}function u(t){if(__DEV__&&!t._seriesIndices)throw new Error("Option should contains series.")}var c=n(2),h=n(29),d=n(53),p=c.each,f=c.filter,g=c.map,m=c.isArray,v=c.indexOf,y=c.isObject,x=n(58),_=n(1654),b="\0_ec_inner",w=d.extend({constructor:w,init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new d(n),this._optionManager=i},setOption:function(t,e){c.assert(!(b in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):o.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this,this._api);a.length&&p(a,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,o){var l=h.normalizeToArray(t[e]),u=h.mappingToExists(i.get(e),l);h.makeIdAndName(u),p(u,function(t,n){var i=t.option;y(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=a(e,i,t.exist))});var d=r(i,o);n[e]=[],i.set(e,[]),p(u,function(t,o){var r=t.exist,a=t.option;if(c.assert(y(a)||r,"Empty component definition"),a){var s=x.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r.mergeOption(a,this),r.optionUpdated(a,!1);else{var l=c.extend({dependentModels:d,componentIndex:o},t.keyInfo);r=new s(a,this,this,l),c.extend(r,l),r.init(a,this,this,l),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(e)[o]=r,n[e][o]=r.option},this),"series"===e&&(this._seriesIndices=s(i.get("series")))}var n=this.option,i=this._componentsMap,o=[];p(t,function(t,e){null!=t&&(x.hasClass(e)?o.push(e):n[e]=null==n[e]?c.clone(t):c.merge(n[e],t,!0))}),x.topologicalTravel(o,x.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=c.clone(this.option);return p(t,function(e,n){if(x.hasClass(n)){for(var e=h.normalizeToArray(e),i=e.length-1;i>=0;i--)h.isIdInner(e[i])&&e.splice(i,1);t[n]=e}}),delete t[b],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,o=t.name,r=this._componentsMap.get(e);if(!r||!r.length)return[];var a;if(null!=n)m(n)||(n=[n]),a=f(g(n,function(t){return r[t]}),function(t){return!!t});else if(null!=i){var s=m(i);a=f(r,function(t){return s&&v(i,t.id)>=0||!s&&t.id===i})}else if(null!=o){var u=m(o);a=f(r,function(t){return u&&v(o,t.name)>=0||!u&&t.name===o})}else a=r.slice();return l(a,t)},findComponents:function(t){var e=t.query,n=t.mainType,i=function(t){var e=n+"Index",i=n+"Id",o=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[o]?null:{mainType:n,index:t[e],id:t[i],name:t[o]}}(e),o=i?this.queryComponents(i):this._componentsMap.get(n);return function(e){return t.filter?f(e,t.filter):e}(l(o,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"===typeof t)n=e,e=t,i.each(function(t,i){p(t,function(t,o){e.call(n,i,t,o)})});else if(c.isString(t))p(i.get(t),e,n);else if(y(t)){var o=this.findComponents(t);p(o,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return f(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return f(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},eachSeries:function(t,e){u(this),p(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){p(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){u(this),p(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&e.call(n,o,i)},this)},eachRawSeriesByType:function(t,e,n){return p(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return u(this),c.indexOf(this._seriesIndices,t.componentIndex)<0},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){u(this);var n=f(this._componentsMap.get("series"),t,e);this._seriesIndices=s(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t.get("series"));var e=[];t.each(function(t,n){e.push(n)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e,n){p(t.get(e),function(t){t.restoreData()})})}});c.mixin(w,n(659)),t.exports=w},function(t,e,n){function i(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function o(t,e,n){var i,o,r=[],a=[],s=t.timeline;if(t.baseOption&&(o=t.baseOption),(s||t.options)&&(o=o||{},r=(t.options||[]).slice()),t.media){o=o||{};var l=t.media;d(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return o||(o=t),o.timeline||(o.timeline=s),d([o].concat(r).concat(u.map(a,function(t){return t.option})),function(t){d(e,function(e){e(t,n)})}),{baseOption:o,timelineOptions:r,mediaDefault:i,mediaList:a}}function r(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return u.each(t,function(t,e){var n=e.match(m);if(n&&n[1]&&n[2]){var r=n[1],s=n[2].toLowerCase();a(i[s],t,r)||(o=!1)}}),o}function a(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function s(t,e){return t.join(",")===e.join(",")}function l(t,e){e=e||{},d(e,function(e,n){if(null!=e){var i=t[n];if(h.hasClass(n)){e=c.normalizeToArray(e),i=c.normalizeToArray(i);var o=c.mappingToExists(i,e);t[n]=f(o,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else t[n]=g(i,e,!0)}})}var u=n(2),c=n(29),h=n(58),d=u.each,p=u.clone,f=u.map,g=u.merge,m=/^(min|max)?(.+)$/;i.prototype={constructor:i,setOption:function(t,e){t=p(t,!0);var n=this._optionBackup,i=o.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(l(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,p),this._mediaList=f(e.mediaList,p),this._mediaDefault=p(e.mediaDefault),this._currentMediaIndices=[],p(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=p(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],l=[];if(!i.length&&!o)return l;for(var u=0,c=i.length;u<c;u++)r(i[u].query,e,n)&&a.push(u);return!a.length&&o&&(a=[-1]),a.length&&!s(a,this._currentMediaIndices)&&(l=f(a,function(t){return p(-1===t?o.option:i[t].option)})),this._currentMediaIndices=a,l}},t.exports=i},function(t,e){var n="";"undefined"!==typeof navigator&&(n=navigator.platform||""),t.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},function(t,e,n){t.exports={getAreaStyle:n(206)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}},function(t,e){t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(t,e,n){var i=n(206)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);t.exports={getItemStyle:function(t,e){var n=i.call(this,t,e),o=this.getBorderLineDash();return o&&(n.lineDash=o),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}},function(t,e,n){var i=n(206)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getLineStyle:function(t){var e=i.call(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}}},function(t,e,n){var i=n(110),o=n(12);t.exports={getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){return o.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("baseline"))},truncateText:function(t,e,n,o){return i.truncateText(t,e,this.getFont(),n,o)}}},function(t,e,n){function i(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}function o(t,e,n,i){e=e.split(",");for(var o,r=t,a=0;a<e.length-1;a++)o=e[a],null==r[o]&&(r[o]={}),r=r[o];(i||null==r[e[a]])&&(r[e[a]]=n)}function r(t){h(l,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var a=n(2),s=n(1661),l=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],c=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],h=a.each;t.exports=function(t){h(t.series,function(t){if(a.isObject(t)){var e=t.type;if(s(t),"pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var n=i(t,"pointer.color");null!=n&&o(t,"itemStyle.normal.color",n)}for(var l=0;l<c.length;l++)if(c[l]===t.type){r(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),h(u,function(e){var n=t[e];n&&(a.isArray(n)||(n=[n]),h(n,function(t){r(t)}))})}},function(t,e,n){function i(t){var e=t&&t.itemStyle;e&&o.each(r,function(n){var i=e.normal,r=e.emphasis;i&&i[n]&&(t[n]=t[n]||{},t[n].normal?o.merge(t[n].normal,i[n]):t[n].normal=i[n],i[n]=null),r&&r[n]&&(t[n]=t[n]||{},t[n].emphasis?o.merge(t[n].emphasis,r[n]):t[n].emphasis=r[n],r[n]=null)})}var o=n(2),r=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];t.exports=function(t){if(t){i(t),i(t.markPoint),i(t.markLine);var e=t.data;if(e){for(var n=0;n<e.length;n++)i(e[n]);var r=t.markPoint;if(r&&r.data)for(var a=r.data,n=0;n<a.length;n++)i(a[n]);var s=t.markLine;if(s&&s.data)for(var l=s.data,n=0;n<l.length;n++)o.isArray(l[n])?(i(l[n][0]),i(l[n][1])):i(l[n])}}}},function(t,e){var n={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return e},nearest:function(t){return t[0]}},i=function(t,e){return Math.round(t.length/2)};t.exports=function(t,e,o){e.eachSeriesByType(t,function(t){var e=t.getData(),o=t.get("sampling"),r=t.coordinateSystem;if("cartesian2d"===r.type&&o){var a=r.getBaseAxis(),s=r.getOtherAxis(a),l=a.getExtent(),u=l[1]-l[0],c=Math.round(e.count()/u);if(c>1){var h;"string"===typeof o?h=n[o]:"function"===typeof o&&(h=o),h&&(e=e.downSample(s.dim,1/c,h,i),t.setData(e))}}},this)}},function(t,e,n){function i(t,e){return h(t,c(e))}var o=n(2),r=n(268),a=n(13),s=n(267),l=r.prototype,u=s.prototype,c=a.getPrecisionSafe,h=a.round,d=Math.floor,p=Math.ceil,f=Math.pow,g=Math.log,m=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new s},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return o.map(u.getTicks.call(this),function(o){var r=a.round(f(this.base,o));return r=o===e[0]&&t.__fixMin?i(r,n[0]):r,r=o===e[1]&&t.__fixMax?i(r,n[1]):r},this)},getLabel:u.getLabel,scale:function(t){return t=l.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var n=this.base;t=g(t)/g(n),e=g(e)/g(n),u.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=l.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var n=this._originalScale,o=n.getExtent();return n.__fixMin&&(e[0]=i(e[0],o[0])),n.__fixMax&&(e[1]=i(e[1],o[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!0,function(t){return t>0}))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=a.quantity(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[a.round(p(e[0]/i)*i),a.round(d(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){u.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});o.each(["contain","normalize"],function(t){m.prototype[t]=function(e){return e=g(e)/g(this.base),l[t].call(this,e)}}),m.create=function(){return new m},t.exports=m},function(t,e,n){var i=n(2),o=n(268),r=o.prototype,a=o.extend({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t.length-1]},parse:function(t){return"string"===typeof t?i.indexOf(this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),r.contain.call(this,t)&&null!=this._data[t]},normalize:function(t){return r.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(r.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!1))},niceTicks:i.noop,niceExtent:i.noop});a.create=function(){return new a},t.exports=a},function(t,e,n){var i=n(2),o=n(13),r=n(35),a=n(660),s=n(267),l=s.prototype,u=Math.ceil,c=Math.floor,h=function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][2]<e?n=o+1:i=o}return n},d=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return r.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber);var i=this._interval;t.fixMin||(e[0]=o.round(c(e[0]/i)*i)),t.fixMax||(e[1]=o.round(u(e[1]/i)*i))},niceTicks:function(t){var e=this.getSetting("useUTC")?0:60*o.getTimezoneOffset()*1e3;t=t||10;var n=this._extent,i=n[1]-n[0],r=i/t,s=p.length,l=h(p,r,0,s),d=p[Math.min(l,s-1)],f=d[2];if("year"===d[0]){var g=i/f;f*=o.nice(g/t,!0)}var m=[Math.round(u((n[0]-e)/f)*f+e),Math.round(c((n[1]-e)/f)*f+e)];a.fixExtent(m,n),this._stepLvl=d,this._interval=f,this._niceExtent=m},parse:function(t){return+o.parseDate(t)}});i.each(["contain","normalize"],function(t){d.prototype[t]=function(e){return l[t].call(this,this.parse(e))}});var p=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,864e5],["week",7,6048e5],["month",1,26784e5],["quarter",3,8208e6],["half-year",6,16416e6],["year",1,32832e6]];d.create=function(t){return new d({useUTC:t.ecModel.get("useUTC")})},t.exports=d},function(t,e,n){function i(){var t,e=[],n={};return{add:function(t,i,r,a,s){return o.isString(a)&&(s=a,a=0),!n[t.id]&&(n[t.id]=1,e.push({el:t,target:i,time:r,delay:a,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function i(){--o||(e.length=0,n={},t&&t())}for(var o=e.length,r=0,a=e.length;r<a;r++){var s=e[r];s.el.animateTo(s.target,s.time,s.delay,s.easing,i)}return this}}}var o=n(2);t.exports={createWrap:i}},function(t,e,n){var i=n(307);t.exports=function(t){function e(e){var n=(e.visualColorAccessPath||"itemStyle.normal.color").split("."),o=e.getData(),r=e.get(n)||e.getColorFromPalette(e.get("name"));o.setVisual("color",r),t.isSeriesFiltered(e)||("function"!==typeof r||r instanceof i||o.each(function(t){o.setItemVisual(t,"color",r(e.getDataParams(t)))}),o.each(function(t){var e=o.getItemModel(t),i=e.get(n,!0);null!=i&&o.setItemVisual(t,"color",i)}))}t.eachRawSeries(e)}},,function(t,e){var e=function(t,e){function n(t){var e=t.target||t.srcElement;e.__resizeRAF__&&u(e.__resizeRAF__),e.__resizeRAF__=r(function(){var n=e.__resizeTrigger__;void 0!==n&&n.__resizeListeners__.forEach(function(e){e.call(n,t)})})}function i(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)}var o,r,a=this,s=a.document,l=s.attachEvent;"undefined"!==typeof navigator&&(o=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),r=function(){var t=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||function(t){return a.setTimeout(t,20)};return function(e){return t(e)}}();var u=function(){var t=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.clearTimeout;return function(e){return t(e)}}();if(!t.__resizeListeners__)if(t.__resizeListeners__=[],l)t.__resizeTrigger__=t,t.attachEvent("onresize",n);else{"static"===getComputedStyle(t).position&&(t.style.position="relative");var c=t.__resizeTrigger__=s.createElement("object");c.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1; opacity: 0;"),c.setAttribute("class","resize-sensor"),c.__resizeElement__=t,c.onload=i,c.type="text/html",o&&t.appendChild(c),c.data="about:blank",o||t.appendChild(c)}t.__resizeListeners__.push(e)};e.unbind=function(t,e){var n=document.attachEvent;t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(n?t.detachEvent("onresize",resizeListener):(t.__resizeTrigger__.contentDocument.defaultView.removeEventListener("resize",resizeListener),t.__resizeTrigger__=!t.removeChild(t.__resizeTrigger__)))},t.exports="undefined"===typeof window?e:e.bind(window)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t,e,n,i,o){}t.exports=i},function(t,e,n){"use strict";var i=n(78),o=n(14),r=n(710);t.exports=function(){function t(t,e,n,i,a,s){s!==r&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=i,n.PropTypes=n,n}},function(t,e,n){"use strict";var i=n(78),o=n(14),r=n(23),a=n(710),s=n(1853);t.exports=function(t,e){function n(t){var e=t&&(M&&t[M]||t[I]);if("function"===typeof e)return e}function l(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function u(t){this.message=t,this.stack=""}function c(t){function n(n,i,r,s,l,c,h){if(s=s||T,c=c||r,h!==a)if(e)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==i[r]?n?new u(null===i[r]?"The "+l+" `"+c+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+l+" `"+c+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(i,r,s,l,c)}var i=n.bind(null,!1);return i.isRequired=n.bind(null,!0),i}function h(t){function e(e,n,i,o,r,a){var s=e[n];if(_(s)!==t)return new u("Invalid "+o+" `"+r+"` of type `"+b(s)+"` supplied to `"+i+"`, expected `"+t+"`.");return null}return c(e)}function d(t){function e(e,n,i,o,r){if("function"!==typeof t)return new u("Property `"+r+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){return new u("Invalid "+o+" `"+r+"` of type `"+_(s)+"` supplied to `"+i+"`, expected an array.")}for(var l=0;l<s.length;l++){var c=t(s,l,i,o,r+"["+l+"]",a);if(c instanceof Error)return c}return null}return c(e)}function p(t){function e(e,n,i,o,r){if(!(e[n]instanceof t)){var a=t.name||T;return new u("Invalid "+o+" `"+r+"` of type `"+S(e[n])+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}return null}return c(e)}function f(t){function e(e,n,i,o,r){for(var a=e[n],s=0;s<t.length;s++)if(l(a,t[s]))return null;return new u("Invalid "+o+" `"+r+"` of value `"+a+"` supplied to `"+i+"`, expected one of "+JSON.stringify(t)+".")}return Array.isArray(t)?c(e):i.thatReturnsNull}function g(t){function e(e,n,i,o,r){if("function"!==typeof t)return new u("Property `"+r+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=e[n],l=_(s);if("object"!==l)return new u("Invalid "+o+" `"+r+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var c in s)if(s.hasOwnProperty(c)){var h=t(s,c,i,o,r+"."+c,a);if(h instanceof Error)return h}return null}return c(e)}function m(t){function e(e,n,i,o,r){for(var s=0;s<t.length;s++){if(null==(0,t[s])(e,n,i,o,r,a))return null}return new u("Invalid "+o+" `"+r+"` supplied to `"+i+"`.")}if(!Array.isArray(t))return i.thatReturnsNull;for(var n=0;n<t.length;n++){var o=t[n];if("function"!==typeof o)return r(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),i.thatReturnsNull}return c(e)}function v(t){function e(e,n,i,o,r){var s=e[n],l=_(s);if("object"!==l)return new u("Invalid "+o+" `"+r+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in t){var h=t[c];if(h){var d=h(s,c,i,o,r+"."+c,a);if(d)return d}}return null}return c(e)}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||t(e))return!0;var i=n(e);if(!i)return!1;var o,r=i.call(e);if(i!==e.entries){for(;!(o=r.next()).done;)if(!y(o.value))return!1}else for(;!(o=r.next()).done;){var a=o.value;if(a&&!y(a[1]))return!1}return!0;default:return!1}}function x(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"===typeof Symbol&&e instanceof Symbol)}function _(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":x(e,t)?"symbol":e}function b(t){if("undefined"===typeof t||null===t)return""+t;var e=_(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=b(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function S(t){return t.constructor&&t.constructor.name?t.constructor.name:T}var M="function"===typeof Symbol&&Symbol.iterator,I="@@iterator",T="<<anonymous>>",A={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:function(){return c(i.thatReturnsNull)}(),arrayOf:d,element:function(){function e(e,n,i,o,r){var a=e[n];if(!t(a)){return new u("Invalid "+o+" `"+r+"` of type `"+_(a)+"` supplied to `"+i+"`, expected a single ReactElement.")}return null}return c(e)}(),instanceOf:p,node:function(){function t(t,e,n,i,o){return y(t[e])?null:new u("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return c(t)}(),objectOf:g,oneOf:f,oneOfType:m,shape:v};return u.prototype=Error.prototype,A.checkPropTypes=s,A.PropTypes=A,A}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1))).replace(e,function(t){return n[t]})}var r={escape:i,unescape:o};t.exports=r},function(t,e,n){"use strict";var i=n(223),o=(n(14),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),r=function(t,e){var n=this;if(n.instancePool.length){var i=n.instancePool.pop();return n.call(i,t,e),i}return new n(t,e)},a=function(t,e,n){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n),o}return new i(t,e,n)},s=function(t,e,n,i){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,t,e,n,i),r}return new o(t,e,n,i)},l=function(t){var e=this;t instanceof e||i("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},u=o,c=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||u,n.poolSize||(n.poolSize=10),n.release=l,n},h={addPoolingTo:c,oneArgumentPooler:o,twoArgumentPooler:r,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=h},function(t,e,n){"use strict";function i(t){return(""+t).replace(_,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function r(t,e,n){var i=t.func,o=t.context;i.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var i=o.getPooled(e,n);v(t,r,i),o.release(i)}function s(t,e,n,i){this.result=t,this.keyPrefix=e,this.func=n,this.context=i,this.count=0}function l(t,e,n){var o=t.result,r=t.keyPrefix,a=t.func,s=t.context,l=a.call(s,e,t.count++);Array.isArray(l)?u(l,o,n,m.thatReturnsArgument):null!=l&&(g.isValidElement(l)&&(l=g.cloneAndReplaceKey(l,r+(!l.key||e&&e.key===l.key?"":i(l.key)+"/")+n)),o.push(l))}function u(t,e,n,o,r){var a="";null!=n&&(a=i(n)+"/");var u=s.getPooled(e,a,o,r);v(t,l,u),s.release(u)}function c(t,e,n){if(null==t)return t;var i=[];return u(t,i,null,e,n),i}function h(t,e,n){return null}function d(t,e){return v(t,h,null)}function p(t){var e=[];return u(t,e,null,m.thatReturnsArgument),e}var f=n(2135),g=n(171),m=n(78),v=n(2145),y=f.twoArgumentPooler,x=f.fourArgumentPooler,_=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},f.addPoolingTo(o,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f.addPoolingTo(s,x);var b={forEach:a,map:c,mapIntoWithKeyPrefixInternal:u,count:d,toArray:p};t.exports=b},function(t,e,n){"use strict";var i=n(171),o=i.createFactory,r={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=r},function(t,e,n){"use strict";var i=n(171),o=i.isValidElement,r=n(709);t.exports=r(o)},function(t,e,n){"use strict";t.exports="15.6.1"},function(t,e,n){"use strict";var i=n(806),o=i.Component,r=n(171),a=r.isValidElement,s=n(809),l=n(541);t.exports=l(o,a,s)},function(t,e,n){"use strict";function i(t){var e=t&&(o&&t[o]||t[r]);if("function"===typeof e)return e}var o="function"===typeof Symbol&&Symbol.iterator,r="@@iterator";t.exports=i},,function(t,e,n){"use strict";var i=function(){};t.exports=i},function(t,e,n){"use strict";function i(t){return r.isValidElement(t)||o("143"),t}var o=n(223),r=n(171);n(14);t.exports=i},function(t,e,n){"use strict";function i(t,e){return t&&"object"===typeof t&&null!=t.key?u.escape(t.key):e.toString(36)}function o(t,e,n,r){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===s)return n(r,t,""===e?c+i(t,0):e),1;var p,f,g=0,m=""===e?c:e+h;if(Array.isArray(t))for(var v=0;v<t.length;v++)p=t[v],f=m+i(p,v),g+=o(p,f,n,r);else{var y=l(t);if(y){var x,_=y.call(t);if(y!==t.entries)for(var b=0;!(x=_.next()).done;)p=x.value,f=m+i(p,b++),g+=o(p,f,n,r);else for(;!(x=_.next()).done;){var w=x.value;w&&(p=w[1],f=m+u.escape(w[0])+h+i(p,0),g+=o(p,f,n,r))}}else if("object"===d){var S="",M=String(t);a("31","[object Object]"===M?"object with keys {"+Object.keys(t).join(", ")+"}":M,S)}}return g}function r(t,e,n){return null==t?0:o(t,"",e,n)}var a=n(223),s=(n(109),n(808)),l=n(2141),u=(n(14),n(2134)),c=(n(23),"."),h=":";t.exports=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function i(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch}}function o(){}function r(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,o=t;o;){if(o.clipPath&&!o.clipPath.contain(e,n))return!1;o.silent&&(i=!0),o=o.parent}return!i||u}return!1}var a=n(2),s=n(2242),l=n(146),u="silent";o.prototype.dispose=function(){};var c=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],h=function(t,e,n,i){l.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new o,this.proxy=n,n.handler=this,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,s.call(this),a.each(c,function(t){n.on&&n.on(t,this[t],this)},this)};h.prototype={constructor:h,mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,o=this._hovered=this.findHover(e,n),r=o.target,a=i.target,s=this.proxy;s.setCursor&&s.setCursor(r?r.cursor:"default"),a&&r!==a&&a.__zr&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(o,"mousemove",t),r&&r!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!=n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};for(var o="on"+e,r=i(e,t,n),a=t.target;a&&(a[o]&&(r.cancelBubble=a[o].call(a,r)),a.trigger(e,r),a=a.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),o={},a=i.length-1;a>=0;a--){var s;if(i[a]!==n&&!i[a].ignore&&(s=r(i[a],t,e))&&(!o.topTarget&&(o.topTarget=i[a]),s!==u)){o.target=i[a];break}}return o}},a.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){h.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;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(n,t,e)}}),a.mixin(h,l),a.mixin(h,s),t.exports=h},function(t,e,n){function i(){return!1}function o(t,e,n,i){var o=document.createElement(e),r=n.getWidth(),a=n.getHeight(),s=o.style;return s.position="absolute",s.left=0,s.top=0,s.width=r+"px",s.height=a+"px",o.width=r*i,o.height=a*i,o.setAttribute("data-zr-dom-id",t),o}var r=n(2),a=n(304),s=n(843),l=n(842),u=function(t,e,n){var s;n=n||a.devicePixelRatio,"string"===typeof t?s=o(t,"canvas",e,n):r.isObject(t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=i,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=o("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o.width=t+"px",o.height=e+"px",i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,o=e.height,r=this.clearColor,a=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/c,o/c)),n.clearRect(0,0,i,o),r){var h;r.colorStops?(h=r.__canvasGradient||s.getGradient(n,r,{x:0,y:0,width:i,height:o}),r.__canvasGradient=h):r.image&&(h=l.prototype.getCanvasPattern.call(r,n)),n.save(),n.fillStyle=h||r,n.fillRect(0,0,i,o),n.restore()}if(a){var d=this.domBack;n.save(),n.globalAlpha=u,n.drawImage(d,0,0,i,o),n.restore()}}},t.exports=u},function(t,e,n){"use strict";function i(t){return parseInt(t,10)}function o(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function r(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function s(t,e,n){return y.copy(t.getBoundingRect()),t.transform&&y.applyTransform(t.transform),x.width=e,x.height=n,!y.intersect(x)}function l(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0}function u(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function c(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var h=n(304),d=n(2),p=n(460),f=n(54),g=n(461),m=n(2216),v=n(833),y=new f(0,0,0,0),x=new f(0,0,0,0),_=function(t,e,n){var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=d.extend({},n||{}),this.dpr=n.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=i,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var r=this._zlevelList=[],a=this._layers={};if(this._layerConfig={},i){null!=n.width&&(t.width=n.width),null!=n.height&&(t.height=n.height);var s=t.width,l=t.height;this._width=s,this._height=l;var u=new m(t,this,1);u.initContext(),a[0]=u,r.push(0),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=c(this._width,this._height);t.appendChild(p)}this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};_.prototype={constructor:_,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._paintList(e,t);for(var i=0;i<n.length;i++){var o=n[i],r=this._layers[o];!r.__builtin__&&r.refresh&&r.refresh()}return this.refreshHover(),this._progressiveLayers.length&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape});n.__from=t,t.__hoverMir=n,n.setStyle(e),this._hoverElements.push(n)}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=d.indexOf(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){g(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(1e5));var i={};n.ctx.save();for(var o=0;o<e;){var r=t[o],a=r.__from;a&&a.__zr?(o++,a.invisible||(r.transform=a.transform,r.invTransform=a.invTransform,r.__clipPaths=a.__clipPaths,this._doPaintEl(r,n,!0,i))):(t.splice(o,1),a.__hoverMir=null,e--)}n.ctx.restore()}},_startProgessive:function(){function t(){n===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,v(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var n=e._progressiveToken=+new Date;e._progress++,v(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,d.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuiltinLayer(r),this._doPaintList(t,e),this.eachBuiltinLayer(a)},_doPaintList:function(t,e){function n(t){var e=r.dpr||1;r.save(),r.globalAlpha=1,r.shadowBlur=0,i.__dirty=!0,r.setTransform(1,0,0,1,0,0),r.drawImage(t.dom,0,0,c*e,h*e),r.restore()}for(var i,o,r,a,s,l,u=0,c=this._width,h=this._height,f=this._progress,g=0,m=t.length;g<m;g++){var v=t[g],y=this._singleCanvas?0:v.zlevel,x=v.__frame;if(x<0&&s&&(n(s),s=null),o!==y&&(r&&r.restore(),a={},o=y,i=this.getLayer(o),i.__builtin__||p("ZLevel "+o+" has been used by unkown layer "+i.id),r=i.ctx,r.save(),i.__unusedCount=0,(i.__dirty||e)&&i.clear()),i.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,4)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){g=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(f=l),s.__progress=f+1}x===f&&this._doPaintEl(v,s,!0,s.renderScope)}else this._doPaintEl(v,i,e,a);v.__dirty=!1}}s&&n(s),r&&r.restore(),this._furtherProgressive=!1,d.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,i){var o=e.ctx,r=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!r||r[0]||r[3])&&(!t.culling||!s(t,this._width,this._height))){var a=t.__clipPaths;(i.prevClipLayer!==e||l(a,i.prevElClipPaths))&&(i.prevElClipPaths&&(i.prevClipLayer.ctx.restore(),i.prevClipLayer=i.prevElClipPaths=null,i.prevEl=null),a&&(o.save(),u(a,o),i.prevClipLayer=e,i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(o),t.brush(o,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(o)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new m("zr_"+t,this,this.dpr),e.__builtin__=!0,this._layerConfig[t]&&d.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=null,s=-1,l=this._domRoot;if(n[t])return void p("ZLevel "+t+" has been used already");if(!o(e))return void p("Layer of zlevel "+t+" is not valid");if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)},eachLayer:function(t,e){var n,i,o=this._zlevelList;for(i=0;i<o.length;i++)n=o[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,o,r=this._zlevelList;for(o=0;o<r.length;o++)i=r[o],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,o,r=this._zlevelList;for(o=0;o<r.length;o++)i=r[o],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,n=this._progressiveLayers,i={},o={};this.eachBuiltinLayer(function(t,e){i[e]=t.elCount,t.elCount=0,t.__dirty=!1}),d.each(n,function(t,e){o[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var r,a,s=0,l=0,u=0,c=t.length;u<c;u++){var h=t[u],p=this._singleCanvas?0:h.zlevel,f=e[p],g=h.progressive;if(f&&(f.elCount++,f.__dirty=f.__dirty||h.__dirty),g>=0){a!==g&&(a=g,l++);var v=h.__frame=l-1;if(!r){var y=Math.min(s,4);r=n[y],r||(r=n[y]=new m("progressive",this,this.dpr),r.initContext()),r.__maxProgress=0}r.__dirty=r.__dirty||h.__dirty,r.elCount++,r.__maxProgress=Math.max(r.__maxProgress,v),r.__maxProgress>=r.__progress&&(f.__dirty=!0)}else h.__frame=-1,r&&(r.__nextIdxNotProg=u,s++,r=null)}r&&(s++,r.__nextIdxNotProg=u),this.eachBuiltinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)}),n.length=Math.min(s,5),d.each(n,function(t,e){o[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?d.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&d.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(d.indexOf(n,t),1))},resize:function(t,e){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);d.each(this._progressiveLayers,function(n){n.resize(t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){function e(t,e){var i=a._zlevelList;null==t&&(t=-1/0);for(var o,r=0;r<i.length;r++){var s=i[r],l=a._layers[s];if(!l.__builtin__&&s>t&&s<e){o=l;break}}o&&o.renderToCanvas&&(n.ctx.save(),o.renderToCanvas(n.ctx),n.ctx.restore())}if(t=t||{},this._singleCanvas)return this._layers[0].dom;var n=new m("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clearColor=t.backgroundColor,n.clear();for(var i,o=this.storage.getDisplayList(!0),r={},a=this,s=0;s<o.length;s++){var l=o[s];l.zlevel!==i&&(e(i,l.zlevel),i=l.zlevel),this._doPaintEl(l,n,!0,r)}return e(i,1/0),n.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[o]||i(l[n])||i(s.style[n]))-(i(l[r])||0)-(i(l[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),o=i.getContext("2d"),r=t.getBoundingRect(),a=t.style,s=a.shadowBlur,l=a.shadowOffsetX,u=a.shadowOffsetY,c=a.hasStroke()?a.lineWidth:0,h=Math.max(c/2,-l+s),d=Math.max(c/2,l+s),p=Math.max(c/2,-u+s),f=Math.max(c/2,u+s),g=r.width+h+d,m=r.height+p+f;i.width=g*e,i.height=m*e,o.scale(e,e),o.clearRect(0,0,g,m),o.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-r.x,p-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(o);var y=n(462),x=new y({style:{x:0,y:0,image:i}});return null!=v.position&&(x.position=t.position=v.position),null!=v.rotation&&(x.rotation=t.rotation=v.rotation),null!=v.scale&&(x.scale=t.scale=v.scale),x}},t.exports=_},function(t,e,n){"use strict";function i(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var o=n(2),r=n(59),a=n(305),s=n(461),l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,o=0,a=e.length;o<a;o++)this._updateAndAddDisplayable(e[o],null,t);n.length=this._displayListLen,r.canvasSupported&&s(n,i)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),r=o,o=o.clipPath}if(t.isGroup){for(var a=t._children,s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof a&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof a&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var r=o.indexOf(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t.__storage=this,t.dirty(!1),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:i},t.exports=l},function(t,e,n){"use strict";var i=n(2),o=n(111).Dispatcher,r=n(833),a=n(832),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=i.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,o=[],r=[],a=0;a<i;a++){var s=n[a],l=s.step(t,e);l&&(o.push(l),r.push(s))}for(var a=0;a<i;)n[a]._needsRemove?(n[a]=n[i-1],n.pop(),i--):a++;i=o.length;for(var a=0;a<i;a++)r[a].fire(o[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(r(t),!e._paused&&e._update())}var e=this;this._running=!0,r(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var n=new a(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},i.mixin(s,o),t.exports=s},function(t,e,n){function i(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}var o=n(2221);i.prototype={constructor:i,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?o[i]:i,a="function"===typeof r?r(n):n;return this.fire("frame",a),1==n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},t.exports=i},function(t,e){var n={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*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.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?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-n.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5}};t.exports=n},function(t,e,n){var i=n(837).normalizeRadian,o=2*Math.PI;t.exports={containStroke:function(t,e,n,r,a,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>n||d+h<n)return!1;if(Math.abs(r-a)%o<1e-4)return!0;if(s){var p=r;r=i(a),a=i(p)}else r=i(r),a=i(a);r>a&&(a+=o);var f=Math.atan2(c,u);return f<0&&(f+=o),f>=r&&f<=a||f+o>=r&&f+o<=a}}},function(t,e,n){var i=n(126);t.exports={containStroke:function(t,e,n,o,r,a,s,l,u,c,h){if(0===u)return!1;var d=u;return!(h>e+d&&h>o+d&&h>a+d&&h>l+d||h<e-d&&h<o-d&&h<a-d&&h<l-d||c>t+d&&c>n+d&&c>r+d&&c>s+d||c<t-d&&c<n-d&&c<r-d&&c<s-d)&&i.cubicProjectPoint(t,e,n,o,r,a,s,l,c,h,null)<=d/2}}},function(t,e,n){"use strict";function i(t,e){return Math.abs(t-e)<x}function o(){var t=b[0];b[0]=b[1],b[1]=t}function r(t,e,n,i,r,a,s,l,u,c){if(c>e&&c>i&&c>a&&c>l||c<e&&c<i&&c<a&&c<l)return 0;var h=g.cubicRootAt(e,i,a,l,c,_);if(0===h)return 0;for(var d,p,f=0,m=-1,v=0;v<h;v++){var y=_[v],x=0===y||1===y?.5:1;g.cubicAt(t,n,r,s,y)<u||(m<0&&(m=g.cubicExtrema(e,i,a,l,b),b[1]<b[0]&&m>1&&o(),d=g.cubicAt(e,i,a,l,b[0]),m>1&&(p=g.cubicAt(e,i,a,l,b[1]))),2==m?y<b[0]?f+=d<e?x:-x:y<b[1]?f+=p<d?x:-x:f+=l<p?x:-x:y<b[0]?f+=d<e?x:-x:f+=l<d?x:-x)}return f}function a(t,e,n,i,o,r,a,s){if(s>e&&s>i&&s>r||s<e&&s<i&&s<r)return 0;var l=g.quadraticRootAt(e,i,r,s,_);if(0===l)return 0;var u=g.quadraticExtremum(e,i,r);if(u>=0&&u<=1){for(var c=0,h=g.quadraticAt(e,i,r,u),d=0;d<l;d++){var p=0===_[d]||1===_[d]?.5:1,f=g.quadraticAt(t,n,o,_[d]);f<a||(_[d]<u?c+=h<e?p:-p:c+=r<h?p:-p)}return c}var p=0===_[0]||1===_[0]?.5:1,f=g.quadraticAt(t,n,o,_[0]);return f<a?0:r<e?p:-p}function s(t,e,n,i,o,r,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);_[0]=-l,_[1]=l;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u%y<1e-4){i=0,o=y;var c=r?1:-1;return a>=_[0]+t&&a<=_[1]+t?c:0}if(r){var l=i;i=f(o),o=f(l)}else i=f(i),o=f(o);i>o&&(o+=y);for(var h=0,d=0;d<2;d++){var p=_[d];if(p+t>a){var g=Math.atan2(s,p),c=r?1:-1;g<0&&(g=y+g),(g>=i&&g<=o||g+y>=i&&g+y<=o)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function l(t,e,n,o,l){for(var c=0,f=0,g=0,y=0,x=0,_=0;_<t.length;){var b=t[_++];switch(b===u.M&&_>1&&(n||(c+=m(f,g,y,x,o,l))),1==_&&(f=t[_],g=t[_+1],y=f,x=g),b){case u.M:y=t[_++],x=t[_++],f=y,g=x;break;case u.L:if(n){if(v(f,g,t[_],t[_+1],e,o,l))return!0}else c+=m(f,g,t[_],t[_+1],o,l)||0;f=t[_++],g=t[_++];break;case u.C:if(n){if(h.containStroke(f,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],e,o,l))return!0}else c+=r(f,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],o,l)||0;f=t[_++],g=t[_++];break;case u.Q:if(n){if(d.containStroke(f,g,t[_++],t[_++],t[_],t[_+1],e,o,l))return!0}else c+=a(f,g,t[_++],t[_++],t[_],t[_+1],o,l)||0;f=t[_++],g=t[_++];break;case u.A:var w=t[_++],S=t[_++],M=t[_++],I=t[_++],T=t[_++],A=t[_++],D=(t[_++],1-t[_++]),C=Math.cos(T)*M+w,L=Math.sin(T)*I+S;_>1?c+=m(f,g,C,L,o,l):(y=C,x=L);var P=(o-w)*I/M+w;if(n){if(p.containStroke(w,S,I,T,T+A,D,e,P,l))return!0}else c+=s(w,S,I,T,T+A,D,P,l);f=Math.cos(T+A)*M+w,g=Math.sin(T+A)*I+S;break;case u.R:y=f=t[_++],x=g=t[_++];var k=t[_++],E=t[_++],C=y+k,L=x+E;if(n){if(v(y,x,C,x,e,o,l)||v(C,x,C,L,e,o,l)||v(C,L,y,L,e,o,l)||v(y,L,y,x,e,o,l))return!0}else c+=m(C,x,C,L,o,l),c+=m(y,L,y,x,o,l);break;case u.Z:if(n){if(v(f,g,y,x,e,o,l))return!0}else c+=m(f,g,y,x,o,l);f=y,g=x}}return n||i(g,x)||(c+=m(f,g,y,x,o,l)||0),0!==c}var u=n(176).CMD,c=n(834),h=n(2223),d=n(836),p=n(2222),f=n(837).normalizeRadian,g=n(126),m=n(838),v=c.containStroke,y=2*Math.PI,x=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,n){return l(t,0,!1,e,n)},containStroke:function(t,e,n,i){return l(t,e,!0,n,i)}}},function(t,e,n){"use strict";function i(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function o(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var r=n(111),a=function(){this._track=[]};a.prototype={constructor:a,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},a=0,s=i.length;a<s;a++){var l=i[a],u=r.clientToLocal(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var n=s[e](this._track,t);if(n)return n}}};var s={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var s=i(r)/i(a);!isFinite(s)&&(s=1),e.pinchScale=s;var l=o(r);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}};t.exports=a},function(t,e,n){function i(t){return"mousewheel"===t&&d.browser.firefox?"DOMMouseScroll":t}function o(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var o=i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===n&&i.clear(),o){var r=o.type;e.gestureEvent=r,t.handler.dispatchToElement({target:o.target},r,o.event)}}function r(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function a(t){var e=t.pointerType;return"pen"===e||"touch"===e}function s(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}c.each(y,function(e){t._handlers[e]=c.bind(b[e],t)}),c.each(_,function(e){t._handlers[e]=c.bind(b[e],t)}),c.each(v,function(n){t._handlers[n]=e(b[n],t)})}function l(t){function e(e,n){c.each(e,function(e){f(t,i(e),n._handlers[e])},n)}h.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new p,this._handlers={},s(this),d.pointerEventsSupported?e(_,this):(d.touchEventsSupported&&e(y,this),e(v,this))}var u=n(111),c=n(2),h=n(146),d=n(59),p=n(2225),f=u.addEventListener,g=u.removeEventListener,m=u.normalizeEvent,v=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],y=["touchstart","touchend","touchmove"],x={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},_=c.map(v,function(t){var e=t.replace("mouse","pointer");return x[e]?e:t}),b={mousemove:function(t){t=m(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=m(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=m(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,o(this,t,"start"),b.mousemove.call(this,t),b.mousedown.call(this,t),r(this)},touchmove:function(t){t=m(this.dom,t),t.zrByTouch=!0,o(this,t,"change"),b.mousemove.call(this,t),r(this)},touchend:function(t){t=m(this.dom,t),t.zrByTouch=!0,o(this,t,"end"),b.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&b.click.call(this,t),r(this)},pointerdown:function(t){b.mousedown.call(this,t)},pointermove:function(t){a(t)||b.mousemove.call(this,t)},pointerup:function(t){b.mouseup.call(this,t)},pointerout:function(t){a(t)||b.mouseout.call(this,t)}};c.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){b[t]=function(e){e=m(this.dom,e),this.trigger(t,e)}});var w=l.prototype;w.dispose=function(){for(var t=v.concat(y),e=0;e<t.length;e++){var n=t[e];g(this.dom,i(n),this._handlers[n])}},w.setCursor=function(t){this.dom.style.cursor=t||"default"},c.mixin(l,h),t.exports=l},function(t,e,n){var i=n(62);t.exports=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}})},function(t,e,n){"use strict";var i=n(2),o=n(307),r=function(t,e,n,i,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,o.call(this,i)};r.prototype={constructor:r},i.inherits(r,o),t.exports=r},function(t,e){t.exports={buildPath:function(t,e){var n,i,o,r,a=e.x,s=e.y,l=e.width,u=e.height,c=e.r;l<0&&(a+=l,l=-l),u<0&&(s+=u,u=-u),"number"===typeof c?n=i=o=r=c:c instanceof Array?1===c.length?n=i=o=r=c[0]:2===c.length?(n=o=c[0],i=r=c[1]):3===c.length?(n=c[0],i=r=c[1],o=c[2]):(n=c[0],i=c[1],o=c[2],r=c[3]):n=i=o=r=0;var h;n+i>l&&(h=n+i,n*=l/h,i*=l/h),o+r>l&&(h=o+r,o*=l/h,r*=l/h),i+o>u&&(h=i+o,i*=u/h,o*=u/h),n+r>u&&(h=n+r,n*=u/h,r*=u/h),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.quadraticCurveTo(a+l,s,a+l,s+i),t.lineTo(a+l,s+u-o),0!==o&&t.quadraticCurveTo(a+l,s+u,a+l-o,s+u),t.lineTo(a+r,s+u),0!==r&&t.quadraticCurveTo(a,s+u,a,s+u-r),t.lineTo(a,s+n),0!==n&&t.quadraticCurveTo(a,s,a+n,s)}}},function(t,e,n){var i=n(34),o=i.min,r=i.max,a=i.scale,s=i.distance,l=i.add;t.exports=function(t,e,n,u){var c,h,d,p,f=[],g=[],m=[],v=[];if(u){d=[1/0,1/0],p=[-1/0,-1/0];for(var y=0,x=t.length;y<x;y++)o(d,d,t[y]),r(p,p,t[y]);o(d,d,u[0]),r(p,p,u[1])}for(var y=0,x=t.length;y<x;y++){var _=t[y];if(n)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){f.push(i.clone(t[y]));continue}c=t[y-1],h=t[y+1]}i.sub(g,h,c),a(g,g,e);var b=s(_,c),w=s(_,h),S=b+w;0!==S&&(b/=S,w/=S),a(m,g,-b),a(v,g,w);var M=l([],_,m),I=l([],_,v);u&&(r(M,M,d),o(M,M,p),r(I,I,d),o(I,I,p)),f.push(M),f.push(I)}return n&&f.push(f.shift()),f}},function(t,e,n){function i(t,e,n,i,o,r,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*r+s*o+e}var o=n(34);t.exports=function(t,e){for(var n=t.length,r=[],a=0,s=1;s<n;s++)a+=o.distance(t[s-1],t[s]);var l=a/2;l=l<n?n:l;for(var s=0;s<l;s++){var u,c,h,d=s/(l-1)*(e?n:n-1),p=Math.floor(d),f=d-p,g=t[p%n];e?(u=t[(p-1+n)%n],c=t[(p+1)%n],h=t[(p+2)%n]):(u=t[0===p?p:p-1],c=t[p>n-2?n-1:p+1],h=t[p>n-3?n-1:p+2]);var m=f*f,v=f*m;r.push([i(u[0],g[0],c[0],h[0],f,m,v),i(u[1],g[1],c[1],h[1],f,m,v)])}return r}},function(t,e,n){t.exports=n(62).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(r),u=Math.sin(r);t.moveTo(l*o+n,u*o+i),t.arc(n,i,o,r,a,!s)}})},function(t,e,n){"use strict";function i(t,e,n){var i=t.cpx2,o=t.cpy2;return null===i||null===o?[(n?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?c:l)(t.x1,t.cpx1,t.x2,e),(n?c:l)(t.y1,t.cpy1,t.y2,e)]}var o=n(126),r=n(34),a=o.quadraticSubdivide,s=o.cubicSubdivide,l=o.quadraticAt,u=o.cubicAt,c=o.quadraticDerivativeAt,h=o.cubicDerivativeAt,d=[];t.exports=n(62).extend({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 n=e.x1,i=e.y1,o=e.x2,r=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,p=e.percent;0!==p&&(t.moveTo(n,i),null==c||null==h?(p<1&&(a(n,l,o,p,d),l=d[1],o=d[2],a(i,u,r,p,d),u=d[1],r=d[2]),t.quadraticCurveTo(l,u,o,r)):(p<1&&(s(n,l,c,o,p,d),l=d[1],c=d[2],o=d[3],s(i,u,h,r,p,d),u=d[1],h=d[2],r=d[3]),t.bezierCurveTo(l,u,c,h,o,r)))},pointAt:function(t){return i(this.shape,t,!1)},tangentAt:function(t){var e=i(this.shape,t,!0);return r.normalize(e,e)}})},function(t,e,n){"use strict";t.exports=n(62).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})},function(t,e,n){t.exports=n(62).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.percent;0!==a&&(t.moveTo(n,i),a<1&&(o=n*(1-a)+o*a,r=i*(1-a)+r*a),t.lineTo(o,r))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})},function(t,e,n){var i=n(845);t.exports=n(62).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){i.buildPath(t,e,!0)}})},function(t,e,n){var i=n(845);t.exports=n(62).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}})},function(t,e,n){var i=n(2229);t.exports=n(62).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,o=e.y,r=e.width,a=e.height;e.r?i.buildPath(t,e):t.rect(n,o,r,a),t.closePath()}})},function(t,e,n){t.exports=n(62).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)}})},function(t,e,n){var i=n(59),o=n(62),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=o.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i.browser.ie&&i.browser.version>=11?function(){var t,e=this.__clipPaths,n=this.style;if(e)for(var i=0;i<e.length;i++){var a=e[i]&&e[i].shape;if(a&&a.startAngle===a.endAngle){for(var s=0;s<r.length;s++)r[s][2]=n[r[s][0]],n[r[s][0]]=r[s][1];t=!0;break}}if(o.prototype.brush.apply(this,arguments),t)for(var s=0;s<r.length;s++)n[r[s][0]]=r[s][2]}:o.prototype.brush,buildPath:function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),c=Math.sin(a);t.moveTo(u*o+n,c*o+i),t.lineTo(u*r+n,c*r+i),t.arc(n,i,r,a,s,!l),t.lineTo(Math.cos(s)*o+n,Math.sin(s)*o+i),0!==o&&t.arc(n,i,o,s,a,l),t.closePath()}})},function(t,e,n){"use strict";var i=n(832),o=n(2),r=o.isString,a=o.isFunction,s=o.isObject,l=n(460),u=function(){this.animators=[]};u.prototype={constructor:u,animate:function(t,e){var n,r=!1,a=this,s=this.__zr;if(t){var u=t.split("."),c=a;r="shape"===u[0];for(var h=0,d=u.length;h<d;h++)c&&(c=c[u[h]]);c&&(n=c)}else n=a;if(!n)return void l('Property "'+t+'" is not existed in element '+a.id);var p=a.animators,f=new i(n,e);return f.during(function(t){a.dirty(r)}).done(function(){p.splice(o.indexOf(p,f),1)}),p.push(f),s&&s.animation.addAnimator(f),f},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,o){function s(){--u||o&&o()}r(n)?(o=i,i=n,n=0):a(i)?(o=i,i="linear",n=0):a(n)?(o=n,n=0):a(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,n,i,o);var l=this.animators.slice(),u=l.length;u||o&&o();for(var c=0;c<l.length;c++)l[c].done(s).start(i)},_animateToShallow:function(t,e,n,i,r){var a={},l=0;for(var u in n)if(n.hasOwnProperty(u))if(null!=e[u])s(n[u])&&!o.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],i,r):(a[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==i?500:i,a).delay(r||0),this}},t.exports=u},function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function i(t,e){return{target:t,topTarget:e&&e.topTarget}}n.prototype={constructor:n,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(i(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,o=t.offsetY,r=n-this._x,a=o-this._y;this._x=n,this._y=o,e.drift(r,a,t),this.dispatchToElement(i(e,t),"drag",t.event);var s=this.findHover(n,o,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(i(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(i(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(i(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(i(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t.exports=n},function(t,e,n){function i(t,e,n,i,o,r,a,s,l,u,f){var v=l*(p/180),y=d(v)*(t-n)/2+h(v)*(e-i)/2,x=-1*h(v)*(t-n)/2+d(v)*(e-i)/2,_=y*y/(a*a)+x*x/(s*s);_>1&&(a*=c(_),s*=c(_));var b=(o===r?-1:1)*c((a*a*(s*s)-a*a*(x*x)-s*s*(y*y))/(a*a*(x*x)+s*s*(y*y)))||0,w=b*a*x/s,S=b*-s*y/a,M=(t+n)/2+d(v)*w-h(v)*S,I=(e+i)/2+h(v)*w+d(v)*S,T=m([1,0],[(y-w)/a,(x-S)/s]),A=[(y-w)/a,(x-S)/s],D=[(-1*y-w)/a,(-1*x-S)/s],C=m(A,D);g(A,D)<=-1&&(C=p),g(A,D)>=1&&(C=0),0===r&&C>0&&(C-=2*p),1===r&&C<0&&(C+=2*p),f.addData(u,M,I,a,s,T,C,v,r)}function o(t){if(!t)return[];var e,n=t.replace(/-/g," -").replace(/  /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<u.length;e++)n=n.replace(new RegExp(u[e],"g"),"|"+u[e]);var o,r=n.split("|"),a=0,l=0,c=new s,h=s.CMD;for(e=1;e<r.length;e++){var d,p=r[e],f=p.charAt(0),g=0,m=p.slice(1).replace(/e,-/g,"e-").split(",");m.length>0&&""===m[0]&&m.shift();for(var v=0;v<m.length;v++)m[v]=parseFloat(m[v]);for(;g<m.length&&!isNaN(m[g])&&!isNaN(m[0]);){var y,x,_,b,w,S,M,I=a,T=l;switch(f){case"l":a+=m[g++],l+=m[g++],d=h.L,c.addData(d,a,l);break;case"L":a=m[g++],l=m[g++],d=h.L,c.addData(d,a,l);break;case"m":a+=m[g++],l+=m[g++],d=h.M,c.addData(d,a,l),f="l";break;case"M":a=m[g++],l=m[g++],d=h.M,c.addData(d,a,l),f="L";break;case"h":a+=m[g++],d=h.L,c.addData(d,a,l);break;case"H":a=m[g++],d=h.L,c.addData(d,a,l);break;case"v":l+=m[g++],d=h.L,c.addData(d,a,l);break;case"V":l=m[g++],d=h.L,c.addData(d,a,l);break;case"C":d=h.C,c.addData(d,m[g++],m[g++],m[g++],m[g++],m[g++],m[g++]),a=m[g-2],l=m[g-1];break;case"c":d=h.C,c.addData(d,m[g++]+a,m[g++]+l,m[g++]+a,m[g++]+l,m[g++]+a,m[g++]+l),a+=m[g-2],l+=m[g-1];break;case"S":y=a,x=l;var A=c.len(),D=c.data;o===h.C&&(y+=a-D[A-4],x+=l-D[A-3]),d=h.C,I=m[g++],T=m[g++],a=m[g++],l=m[g++],c.addData(d,y,x,I,T,a,l);break;case"s":y=a,x=l;var A=c.len(),D=c.data;o===h.C&&(y+=a-D[A-4],x+=l-D[A-3]),d=h.C,I=a+m[g++],T=l+m[g++],a+=m[g++],l+=m[g++],c.addData(d,y,x,I,T,a,l);break;case"Q":I=m[g++],T=m[g++],a=m[g++],l=m[g++],d=h.Q,c.addData(d,I,T,a,l);break;case"q":I=m[g++]+a,T=m[g++]+l,a+=m[g++],l+=m[g++],d=h.Q,c.addData(d,I,T,a,l);break;case"T":y=a,x=l;var A=c.len(),D=c.data;o===h.Q&&(y+=a-D[A-4],x+=l-D[A-3]),a=m[g++],l=m[g++],d=h.Q,c.addData(d,y,x,a,l);break;case"t":y=a,x=l;var A=c.len(),D=c.data;o===h.Q&&(y+=a-D[A-4],x+=l-D[A-3]),a+=m[g++],l+=m[g++],d=h.Q,c.addData(d,y,x,a,l);break;case"A":_=m[g++],b=m[g++],w=m[g++],S=m[g++],M=m[g++],I=a,T=l,a=m[g++],l=m[g++],d=h.A,i(I,T,a,l,S,M,_,b,w,d,c);break;case"a":_=m[g++],b=m[g++],w=m[g++],S=m[g++],M=m[g++],I=a,T=l,a+=m[g++],l+=m[g++],d=h.A,i(I,T,a,l,S,M,_,b,w,d,c)}}"z"!==f&&"Z"!==f||(d=h.Z,c.addData(d)),o=d}return c.toStatic(),c}function r(t,e){var n=o(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;n.rebuildPath(e)}},e.applyTransform=function(t){l(n,t),this.dirty(!0)},e}var a=n(62),s=n(176),l=n(2244),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,d=Math.cos,p=Math.PI,f=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},g=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},m=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))};t.exports={createFromString:function(t,e){return new a(r(t,e))},extendFromString:function(t,e){return a.extend(r(t,e))},mergePath:function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];r.path||r.createPathProxy(),r.__dirtyPath&&r.buildPath(r.path,r.shape,!0),n.push(r.path)}var s=new a(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},s}}},function(t,e,n){function i(t,e){var n,i,r,c,h,d,p=t.data,f=o.M,g=o.C,m=o.L,v=o.R,y=o.A,x=o.Q;for(r=0,c=0;r<p.length;){switch(n=p[r++],c=r,i=0,n){case f:case m:i=1;break;case g:i=3;break;case x:i=2;break;case y:var _=e[4],b=e[5],w=l(e[0]*e[0]+e[1]*e[1]),S=l(e[2]*e[2]+e[3]*e[3]),M=u(-e[1]/S,e[0]/w);p[r]*=w,p[r++]+=_,p[r]*=S,p[r++]+=b,p[r++]*=w,p[r++]*=S,p[r++]+=M,p[r++]+=M,r+=2,c=r;break;case v:d[0]=p[r++],d[1]=p[r++],a(d,d,e),p[c++]=d[0],p[c++]=d[1],d[0]+=p[r++],d[1]+=p[r++],a(d,d,e),p[c++]=d[0],p[c++]=d[1]}for(h=0;h<i;h++){var d=s[h];d[0]=p[r++],d[1]=p[r++],a(d,d,e),p[c++]=d[0],p[c++]=d[1]}}}var o=n(176).CMD,r=n(34),a=r.applyTransform,s=[[],[],[]],l=Math.sqrt,u=Math.atan2;t.exports=i},function(t,e,n){function i(t){return parseInt(t,10)}function o(t,e){a.initVML(),this.root=t,this.storage=e;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",t.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var o=e.delFromStorage,r=e.addToStorage;e.delFromStorage=function(t){o.call(e,t),t&&t.onRemove&&t.onRemove(i)},e.addToStorage=function(t){t.onAdd&&t.onAdd(i),r.call(e,t)},this._firstPaint=!0}var r=n(460),a=n(847);o.prototype={constructor:o,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,n=0;n<t.length;n++){var i=t[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(e),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(e),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,e),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var n=this._vmlViewport.style;n.width=t+"px",n.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||i(e.width))-i(e.paddingLeft)-i(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||i(e.height))-i(e.paddingTop)-i(e.paddingBottom)|0}};for(var s=["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],l=0;l<s.length;l++){var u=s[l];o.prototype[u]=function(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}(u)}t.exports=o},function(t,e,n){if(!n(59).canvasSupported){var i=n(34),o=n(54),r=n(176).CMD,a=n(112),s=n(110),l=n(846),u=n(306),c=n(462),h=n(844),d=n(62),p=n(176),f=n(307),g=n(847),m=Math.round,v=Math.sqrt,y=Math.abs,x=Math.cos,_=Math.sin,b=Math.max,w=i.applyTransform,S=21600,M=S/2,I=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=S+","+S,t.coordorigin="0,0"},T=function(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},A=function(t,e,n){return"rgb("+[t,e,n].join(",")+")"},D=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},C=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},L=function(t,e,n){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+n},P=function(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},k=function(t,e,n){var i=a.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=A(i[0],i[1],i[2]),t.opacity=n*i[3])},E=function(t){var e=a.parse(t);return[A(e[0],e[1],e[2]),e[3]]},O=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof f){var o,r=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),c=u.width,h=u.height;if("linear"===i.type){o="gradient";var d=n.transform,p=[i.x*c,i.y*h],g=[i.x2*c,i.y2*h];d&&(w(p,p,d),w(g,g,d));var m=g[0]-p[0],v=g[1]-p[1];r=180*Math.atan2(m,v)/Math.PI,r<0&&(r+=360),r<1e-6&&(r=0)}else{o="gradientradial";var p=[i.x*c,i.y*h],d=n.transform,y=n.scale,x=c,_=h;a=[(p[0]-u.x)/x,(p[1]-u.y)/_],d&&w(p,p,d),x/=y[0]*S,_/=y[1]*S;var M=b(x,_);s=0/M,l=2*i.r/M-s}var I=i.colorStops.slice();I.sort(function(t,e){return t.offset-e.offset});for(var T=I.length,A=[],D=[],C=0;C<T;C++){var L=I[C],P=E(L.color);D.push(L.offset*l+s+" "+P[0]),0!==C&&C!==T-1||A.push(P)}if(T>=2){var O=A[0][0],z=A[1][0],R=A[0][1]*e.opacity,N=A[1][1]*e.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=r,t.color=O,t.color2=z,t.colors=D.join(","),t.opacity=N,t.opacity2=R}"radial"===o&&(t.focusposition=a.join(","))}else k(t,i,e.opacity)},z=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof f||k(t,e.stroke,e.opacity)},R=function(t,e,n,i){var o="fill"==e,r=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(o||!o&&n.lineWidth)?(t[o?"filled":"stroked"]="true",n[e]instanceof f&&C(t,r),r||(r=g.createNode(e)),o?O(r,n,i):z(r,n),D(t,r)):(t[o?"filled":"stroked"]="false",C(t,r))},N=[[],[],[]],V=function(t,e){var n,i,o,a,s,l,u=r.M,c=r.C,h=r.L,d=r.A,p=r.Q,f=[];for(a=0;a<t.length;){switch(o=t[a++],i="",n=0,o){case u:i=" m ",n=1,s=t[a++],l=t[a++],N[0][0]=s,N[0][1]=l;break;case h:i=" l ",n=1,s=t[a++],l=t[a++],N[0][0]=s,N[0][1]=l;break;case p:case c:i=" c ",n=3;var g,y,b=t[a++],I=t[a++],T=t[a++],A=t[a++];o===p?(g=T,y=A,T=(T+2*b)/3,A=(A+2*I)/3,b=(s+2*b)/3,I=(l+2*I)/3):(g=t[a++],y=t[a++]),N[0][0]=b,N[0][1]=I,N[1][0]=T,N[1][1]=A,N[2][0]=g,N[2][1]=y,s=g,l=y;break;case d:var D=0,C=0,L=1,P=1,k=0;e&&(D=e[4],C=e[5],L=v(e[0]*e[0]+e[1]*e[1]),P=v(e[2]*e[2]+e[3]*e[3]),k=Math.atan2(-e[1]/P,e[0]/L));var E=t[a++],O=t[a++],z=t[a++],R=t[a++],V=t[a++]+k,B=t[a++]+V+k;a++;var G=t[a++],F=E+x(V)*z,H=O+_(V)*R,b=E+x(B)*z,I=O+_(B)*R,W=G?" wa ":" at ";Math.abs(F-b)<1e-4&&(Math.abs(B-V)>.01?G&&(F+=.0125):Math.abs(H-O)<1e-4?G&&F<E||!G&&F>E?I-=.0125:I+=.0125:G&&H<O||!G&&H>O?b+=.0125:b-=.0125),f.push(W,m(((E-z)*L+D)*S-M),",",m(((O-R)*P+C)*S-M),",",m(((E+z)*L+D)*S-M),",",m(((O+R)*P+C)*S-M),",",m((F*L+D)*S-M),",",m((H*P+C)*S-M),",",m((b*L+D)*S-M),",",m((I*P+C)*S-M)),s=b,l=I;break;case r.R:var j=N[0],Z=N[1];j[0]=t[a++],j[1]=t[a++],Z[0]=j[0]+t[a++],Z[1]=j[1]+t[a++],e&&(w(j,j,e),w(Z,Z,e)),j[0]=m(j[0]*S-M),Z[0]=m(Z[0]*S-M),j[1]=m(j[1]*S-M),Z[1]=m(Z[1]*S-M),f.push(" m ",j[0],",",j[1]," l ",Z[0],",",j[1]," l ",Z[0],",",Z[1]," l ",j[0],",",Z[1]);break;case r.Z:f.push(" x ")}if(n>0){f.push(i);for(var q=0;q<n;q++){var U=N[q];e&&w(U,U,e),f.push(m(U[0]*S-M),",",m(U[1]*S-M),q<n-1?",":"")}}}return f.join("")};d.prototype.brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=g.createNode("shape"),I(n),this._vmlEl=n),R(n,"fill",e,this),R(n,"stroke",e,this);var i=this.transform,o=null!=i,r=n.getElementsByTagName("stroke")[0];if(r){var a=e.lineWidth;if(o&&!e.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=v(y(s))}r.weight=a+"px"}var l=this.path||(this.path=new p);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=V(l.data,this.transform),n.style.zIndex=L(this.zlevel,this.z,this.z2),D(t,n),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},d.prototype.onRemove=function(t){C(t,this._vmlEl),this.removeRectText(t)},d.prototype.onAdd=function(t){D(t,this._vmlEl),this.appendRectText(t)};var B=function(t){return"object"===typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};c.prototype.brushVML=function(t){var e,n,i=this.style,o=i.image;if(B(o)){var r=o.src;if(r===this._imageSrc)e=this._imageWidth,n=this._imageHeight;else{var a=o.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",e=o.width,n=o.height,a.width=s,a.height=l,this._imageSrc=r,this._imageWidth=e,this._imageHeight=n}o=r}else o===this._imageSrc&&(e=this._imageWidth,n=this._imageHeight);if(o){var u=i.x||0,c=i.y||0,h=i.width,d=i.height,p=i.sWidth,f=i.sHeight,y=i.sx||0,x=i.sy||0,_=p&&f,S=this._vmlEl;S||(S=g.doc.createElement("div"),I(S),this._vmlEl=S);var M,T=S.style,A=!1,C=1,P=1;if(this.transform&&(M=this.transform,C=v(M[0]*M[0]+M[1]*M[1]),P=v(M[2]*M[2]+M[3]*M[3]),A=M[1]||M[2]),A){var k=[u,c],E=[u+h,c],O=[u,c+d],z=[u+h,c+d];w(k,k,M),w(E,E,M),w(O,O,M),w(z,z,M);var R=b(k[0],E[0],O[0],z[0]),N=b(k[1],E[1],O[1],z[1]),V=[];V.push("M11=",M[0]/C,",","M12=",M[2]/P,",","M21=",M[1]/C,",","M22=",M[3]/P,",","Dx=",m(u*C+M[4]),",","Dy=",m(c*P+M[5])),T.padding="0 "+m(R)+"px "+m(N)+"px 0",T.filter="progid:DXImageTransform.Microsoft.Matrix("+V.join("")+", SizingMethod=clip)"}else M&&(u=u*C+M[4],c=c*P+M[5]),T.filter="",T.left=m(u)+"px",T.top=m(c)+"px";var G=this._imageEl,F=this._cropEl;G||(G=g.doc.createElement("div"),this._imageEl=G);var H=G.style;if(_){if(e&&n)H.width=m(C*e*h/p)+"px",H.height=m(P*n*d/f)+"px";else{var W=new Image,j=this;W.onload=function(){W.onload=null,e=W.width,n=W.height,H.width=m(C*e*h/p)+"px",H.height=m(P*n*d/f)+"px",j._imageWidth=e,j._imageHeight=n,j._imageSrc=o},W.src=o}F||(F=g.doc.createElement("div"),F.style.overflow="hidden",this._cropEl=F);var Z=F.style;Z.width=m((h+y*h/p)*C),Z.height=m((d+x*d/f)*P),Z.filter="progid:DXImageTransform.Microsoft.Matrix(Dx="+-y*h/p*C+",Dy="+-x*d/f*P+")",F.parentNode||S.appendChild(F),G.parentNode!=F&&F.appendChild(G)}else H.width=m(C*h)+"px",H.height=m(P*d)+"px",S.appendChild(G),F&&F.parentNode&&(S.removeChild(F),this._cropEl=null);var q="",U=i.opacity;U<1&&(q+=".Alpha(opacity="+m(100*U)+") "),q+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+o+", SizingMethod=scale)",H.filter=q,S.style.zIndex=L(this.zlevel,this.z,this.z2),D(t,S),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},c.prototype.onRemove=function(t){C(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},c.prototype.onAdd=function(t){D(t,this._vmlEl),this.appendRectText(t)};var G,F={},H=0,W=document.createElement("div"),j=function(t){var e=F[t];if(!e){H>100&&(H=0,F={});var n,i=W.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||"normal",variant:i.fontVariant||"normal",weight:i.fontWeight||"normal",size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},F[t]=e,H++}return e};s.measureText=function(t,e){var n=g.doc;G||(G=n.createElement("div"),G.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendChild(G));try{G.style.font=e}catch(t){}return G.innerHTML="",G.appendChild(n.createTextNode(t)),{width:G.offsetWidth}};for(var Z=new o,q=function(t,e,n,i){var o=this.style,r=o.text;if(null!=r&&(r+=""),r){var a,l,u=o.textAlign,c=j(o.textFont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',d=o.textBaseline,p=o.textVerticalAlign;n=n||s.getBoundingRect(r,h,u,d);var f=this.transform;if(f&&!i&&(Z.copy(e),Z.applyTransform(f),e=Z),i)a=e.x,l=e.y;else{var v=o.textPosition,y=o.textDistance;if(v instanceof Array)a=e.x+P(v[0],e.width),l=e.y+P(v[1],e.height),u=u||"left",d=d||"top";else{var x=s.adjustTextPositionOnRect(v,e,n,y);a=x.x,l=x.y,u=u||x.textAlign,d=d||x.textBaseline}}if(p){switch(p){case"middle":l-=n.height/2;break;case"bottom":l-=n.height}d="top"}var _=c.size;switch(d){case"hanging":case"top":l+=_/1.75;break;case"middle":break;default:l-=_/2.25}switch(u){case"left":break;case"center":a-=n.width/2;break;case"right":a-=n.width}var b,S,M,A=g.createNode,C=this._textVmlEl;C?(M=C.firstChild,b=M.nextSibling,S=b.nextSibling):(C=A("line"),b=A("path"),S=A("textpath"),M=A("skew"),S.style["v-text-align"]="left",I(C),b.textpathok=!0,S.on=!0,C.from="0 0",C.to="1000 0.05",D(C,M),D(C,b),D(C,S),this._textVmlEl=C);var k=[a,l],E=C.style;f&&i?(w(k,k,f),M.on=!0,M.matrix=f[0].toFixed(3)+","+f[2].toFixed(3)+","+f[1].toFixed(3)+","+f[3].toFixed(3)+",0,0",M.offset=(m(k[0])||0)+","+(m(k[1])||0),M.origin="0 0",E.left="0px",E.top="0px"):(M.on=!1,E.left=m(a)+"px",E.top=m(l)+"px"),S.string=T(r);try{S.style.font=h}catch(t){}R(C,"fill",{fill:i?o.fill:o.textFill,opacity:o.opacity},this),R(C,"stroke",{stroke:i?o.stroke:o.textStroke,opacity:o.opacity,lineDash:o.lineDash},this),C.style.zIndex=L(this.zlevel,this.z,this.z2),D(t,C)}},U=function(t){C(t,this._textVmlEl),this._textVmlEl=null},Y=function(t){D(t,this._textVmlEl)},X=[l,u,c,d,h],$=0;$<X.length;$++){var K=X[$].prototype;K.drawRectText=q,K.removeRectText=U,K.appendRectText=Y}h.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},h.prototype.onRemove=function(t){this.removeRectText(t)},h.prototype.onAdd=function(t){this.appendRectText(t)}}},function(t,e,n){n(2246),n(848).registerPainter("vml",n(2245))},,,,,,,,function(t,e,n){t.exports=n(127)}]);
  //# sourceMappingURL=charts.1195e132.js.map