(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.echarts"],{"04f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return v}));var i=n("07fd"),r=n("e0d3"),o=n("6d8b"),a=n("2b17"),s=n("b7d9"),l=n("edae"),u=n("ec6f"),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s["d"])(t,e)},t}();function d(t,e){var n=new c,r=t.data,s=n.sourceFormat=t.sourceFormat,u=t.startIndex,d="";t.seriesLayoutBy!==i["a"]&&Object(l["c"])(d);var y=[],m={},v=t.dimensionsDefine;if(v)Object(o["k"])(v,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(y.push(i),null!=n){var r="";Object(o["q"])(m,n)&&Object(l["c"])(r),m[n]=i}}));else for(var b=0;b<t.dimensionsDetectedCount;b++)y.push({index:b});var x=Object(a["c"])(s,i["a"]);e.__isBuiltIn&&(n.getRawDataItem=function(t){return x(r,u,y,t)},n.getRawData=Object(o["c"])(h,null,t)),n.cloneRawData=Object(o["c"])(p,null,t);var _=Object(a["b"])(s,i["a"]);n.count=Object(o["c"])(_,null,r,u,y);var O=Object(a["d"])(s);n.retrieveValue=function(t,e){var n=x(r,u,y,t);return w(n,e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=y[e];return n?O(t,e,n.name):void 0}};return n.getDimensionInfo=Object(o["c"])(f,null,y,m),n.cloneAllDimensionInfo=Object(o["c"])(g,null,y),n}function h(t){var e=t.sourceFormat;if(!x(e)){var n="";0,Object(l["c"])(n)}return t.data}function p(t){var e=t.sourceFormat,n=t.data;if(!x(e)){var r="";0,Object(l["c"])(r)}if(e===i["c"]){for(var a=[],s=0,u=n.length;s<u;s++)a.push(n[s].slice());return a}if(e===i["e"]){for(a=[],s=0,u=n.length;s<u;s++)a.push(Object(o["m"])({},n[s]));return a}}function f(t,e,n){if(null!=n)return Object(o["z"])(n)||!isNaN(n)&&!Object(o["q"])(e,n)?t[n]:Object(o["q"])(e,n)?e[n]:void 0}function g(t){return Object(o["d"])(t)}var y=Object(o["f"])();function m(t){t=Object(o["d"])(t);var e=t.type,n="";e||Object(l["c"])(n);var i=e.split(":");2!==i.length&&Object(l["c"])(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,y.set(e,t)}function v(t,e,n){var i=Object(r["r"])(t),o=i.length,a="";o||Object(l["c"])(a);for(var s=0,u=o;s<u;s++){var c=i[s];e=b(c,e,n,1===o?null:s),s!==u-1&&(e.length=Math.max(e.length,1))}return e}function b(t,e,n,a){var s="";e.length||Object(l["c"])(s),Object(o["A"])(t)||Object(l["c"])(s);var c=t.type,h=y.get(c);h||Object(l["c"])(s);var p=Object(o["H"])(e,(function(t){return d(t,h)})),f=Object(r["r"])(h.transform({upstream:p[0],upstreamList:p,config:Object(o["d"])(t.config)}));return Object(o["H"])(f,(function(t,n){var r="";Object(o["A"])(t)||Object(l["c"])(r),t.data||Object(l["c"])(r);var a,s=Object(u["d"])(t.data);x(s)||Object(l["c"])(r);var c=e[0];if(c&&0===n&&!t.dimensions){var d=c.startIndex;d&&(t.data=c.data.slice(0,d).concat(t.data)),a={seriesLayoutBy:i["a"],sourceHeader:d,dimensions:c.metaRawOption.dimensions}}else a={seriesLayoutBy:i["a"],sourceHeader:0,dimensions:t.dimensions};return Object(u["b"])(t.data,a,null)}))}function x(t){return t===i["c"]||t===i["e"]}},"07fd":function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return h}));var i=n("6d8b"),r=Object(i["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",d="column",h="row"},"0924":function(t,e,n){"use strict";function i(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function r(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function o(t,e,n,i){switch(n){case"color":var r=t.ensureUniqueItemVisual(e,"style");r[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},"0f99":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"g",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return p}));var i=n("e0d3"),r=n("6d8b"),o=n("07fd"),a={Must:1,Might:2,Not:3},s=Object(i["o"])();function l(t){s(t).datasetMap=Object(r["f"])()}function u(t,e,n){var i={},o=d(e);if(!o||!t)return i;var a,l,u=[],c=[],h=e.ecModel,p=s(h).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(r["k"])(t,(function(e,n){var o=Object(r["A"])(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,l=m(o)),i[o.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function y(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function m(t){var e=t.dimsDef;return e?e.length:1}return Object(r["k"])(t,(function(t,e){var n=t.name,r=m(t);if(null==a){var o=g.valueWayDim;y(i[n],o,r),y(c,o,r),g.valueWayDim+=r}else if(a===e)y(i[n],0,r),y(u,0,r);else{o=g.categoryWayDim;y(i[n],o,r),y(c,o,r),g.categoryWayDim+=r}})),u.length&&(i.itemName=u),c.length&&(i.seriesName=c),i}function c(t,e,n){var i={},s=d(t);if(!s)return i;var l,u=e.sourceFormat,c=e.dimensionsDefine;u!==o["e"]&&u!==o["d"]||Object(r["k"])(c,(function(t,e){"name"===(Object(r["A"])(t)?t.name:t)&&(l=e)}));var h=function(){for(var t={},i={},r=[],o=0,s=Math.min(5,n);o<s;o++){var d=f(e.data,u,e.seriesLayoutBy,c,e.startIndex,o);r.push(d);var h=d===a.Not;if(h&&null==t.v&&o!==l&&(t.v=o),(null==t.n||t.n===t.v||!h&&r[t.n]===a.Not)&&(t.n=o),p(t)&&r[t.n]!==a.Not)return t;h||(d===a.Might&&null==i.v&&o!==l&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(h){i.value=[h.v];var p=null!=l?l:h.n;i.itemName=[p],i.seriesName=[p]}return i}function d(t){var e=t.get("data",!0);if(!e)return Object(i["v"])(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i["b"]).models[0]}function h(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Object(i["v"])(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i["b"]).models:[]}function p(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,u){var c,d,h,p=5;if(Object(r["E"])(t))return a.Not;if(s){var f=s[u];Object(r["A"])(f)?(d=f.name,h=f.type):Object(r["C"])(f)&&(d=f)}if(null!=h)return"ordinal"===h?a.Must:a.Not;if(e===o["c"]){var g=t;if(n===o["b"]){for(var y=g[u],m=0;m<(y||[]).length&&m<p;m++)if(null!=(c=S(y[l+m])))return c}else for(m=0;m<g.length&&m<p;m++){var v=g[l+m];if(v&&null!=(c=S(v[u])))return c}}else if(e===o["e"]){var b=t;if(!d)return a.Not;for(m=0;m<b.length&&m<p;m++){var x=b[m];if(x&&null!=(c=S(x[d])))return c}}else if(e===o["d"]){var _=t;if(!d)return a.Not;y=_[d];if(!y||Object(r["E"])(y))return a.Not;for(m=0;m<y.length&&m<p;m++)if(null!=(c=S(y[m])))return c}else if(e===o["f"]){var O=t;for(m=0;m<O.length&&m<p;m++){x=O[m];var w=Object(i["h"])(x);if(!Object(r["t"])(w))return a.Not;if(null!=(c=S(w[u])))return c}}function S(t){var e=Object(r["C"])(t);return null!=t&&isFinite(t)&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},1830:function(t,e,n){"use strict";var i=n("6d8b"),r=n("b682"),o=n("b1d4"),a=n("2f45"),s=n("e0d3"),l=n("1f39"),u=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(i["f"])(),this.categoryAxisMap=Object(i["f"])(),this.coordSysName=t}return t}();function c(t){var e=t.get("coordinateSystem"),n=new u(e),i=d[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var d={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",s["b"]).models[0],o=t.getReferringComponents("yAxis",s["b"]).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),h(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),h(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",s["b"]).models[0];e.coordSysDims=["single"],n.set("single",r),h(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",s["b"]).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),h(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),h(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();Object(i["k"])(a.parallelAxisIndex,(function(t,i){var a=o.getComponent("parallelAxis",t),l=s[i];n.set(l,a),h(a)&&(r.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))}))}};function h(t){return"category"===t.get("type")}var p=n("ec6f"),f=n("ee1a"),g=n("0f99"),y=n("07fd");function m(t,e){var n,r=t.get("coordinateSystem"),o=l["a"].get(r);return e&&e.coordSysDims&&(n=i["H"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Object(a["a"])(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function v(t,e,n){var r,o;return n&&i["k"](t,(function(t,i){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==r||(t[r].otherDims.itemName=0),r}function b(t,e,n){n=n||{};var a,s=e.getSourceManager(),l=!1;t?(l=!0,a=Object(p["c"])(t)):(a=s.getSource(),l=a.sourceFormat===y["f"]);var u=c(e),d=m(e,u),h=n.useEncodeDefaulter,b=i["w"](h)?h:h?i["h"](g["c"],d,e):null,_={coordDimensions:d,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!l},O=Object(o["b"])(a,_),w=v(O.dimensions,n.createInvertedIndices,u),S=l?null:s.getSharedDataStore(O),M=Object(f["a"])(e,{schema:O,store:S}),I=new r["a"](O,e);I.setCalculationInfo(M);var j=null!=w&&x(a)?function(t,e,n,i){return i===w?n:this.defaultDimValueGetter(t,e,n,i)}:null;return I.hasItemOption=!1,I.initData(l?a:S,null,j),I}function x(t){if(t.sourceFormat===y["f"]){var e=_(t.data||[]);return!i["t"](Object(s["h"])(e))}}function _(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}e["a"]=b},"18c0":function(t,e,n){"use strict";var i=n("7fae"),r=n("e0d8"),o=n("8e43"),a=n("944e"),s=n("6d8b"),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o["a"]({})),Object(s["t"])(i)&&(i=new o["a"]({categories:Object(s["H"])(i,(function(t){return Object(s["A"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(i["a"])(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s["C"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a["a"](t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a["f"](t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a["g"](t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r["a"]);r["a"].registerClass(l),e["a"]=l},"1be7":function(t,e,n){"use strict";n.d(e,"a",(function(){return Ye})),n.d(e,"b",(function(){return Gn})),n.d(e,"j",(function(){return Wn})),n.d(e,"k",(function(){return qn})),n.d(e,"h",(function(){return Un})),n.d(e,"i",(function(){return Yn})),n.d(e,"m",(function(){return Xn})),n.d(e,"c",(function(){return Zn})),n.d(e,"d",(function(){return Kn})),n.d(e,"e",(function(){return Jn})),n.d(e,"n",(function(){return $n})),n.d(e,"f",(function(){return ei})),n.d(e,"g",(function(){return ni})),n.d(e,"l",(function(){return ii}));var i=n("7fae"),r=n("697e7"),o=n("6d8b"),a=n("22d1"),s=n("04f6"),l=n("6fd3"),u=n("e0d3"),c=n("4319"),d=n("6cb7"),h="";"undefined"!==typeof navigator&&(h=navigator.platform||"");var p,f,g,y="rgba(0, 0, 0, 0.2)",m={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:y,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:y,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:y,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:y,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:y,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:y,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:h.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},v=n("0f99"),b=n("2f1f"),x=n("4041"),_=n("edae"),O="\0_ec_inner",w=1;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new c["a"](i),this._locale=new c["a"](r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=T(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,T(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):g(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&Object(o["k"])(s,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=Object(o["f"])(),l=e&&e.replaceMergeMainTypeMap;function c(e){var a=Object(b["a"])(this,e,u["r"](t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",h=u["q"](s,a,c);u["x"](h,e,d["a"]),n[e]=null,i.set(e,null),r.set(e,0);var f,g=[],y=[],m=0;Object(o["k"])(h,(function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=d["a"].getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(f)return void 0;f=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(o["m"])({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),Object(o["m"])(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(g.push(i.option),y.push(i),m++):(g.push(void 0),y.push(void 0))}),this),n[e]=g,i.set(e,y),r.set(e,m),"series"===e&&p(this)}Object(v["g"])(this),Object(o["k"])(t,(function(t,e){null!=t&&(d["a"].hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?Object(o["d"])(t):Object(o["I"])(n[e],t,!0))})),l&&l.each((function(t,e){d["a"].hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),d["a"].topologicalTravel(a,d["a"].getAllClassMainTypes(),c,this),this._seriesIndices||p(this)},e.prototype.getOption=function(){var t=Object(o["d"])(this.option);return Object(o["k"])(t,(function(e,n){if(d["a"].hasClass(n)){for(var i=u["r"](e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!u["l"](i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[O],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=i?(n=[],Object(o["k"])(u["r"](i),(function(t){s[t]&&n.push(s[t])}))):n=null!=r?j("id",r,s):null!=a?j("name",a,s):Object(o["n"])(s,(function(t){return!!t})),C(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=a(e),r=i?this.queryComponents(i):Object(o["n"])(this._componentsMap.get(n),(function(t){return!!t}));return s(C(r,t));function a(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function s(e){return t.filter?Object(o["n"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(o["w"])(t)){var r=e,a=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(r,e,i,i.componentIndex)}}))}else for(var s=Object(o["C"])(t)?i.get(t):Object(o["A"])(t)?this.findComponents(t):null,l=0;s&&l<s.length;l++){var u=s[l];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=u["e"](t,null);return Object(o["n"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(o["n"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(o["n"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){f(this),Object(o["k"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(o["k"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){f(this),Object(o["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(o["k"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return f(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){f(this);var n=[];Object(o["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(o["f"])(n)},e.prototype.restoreData=function(t){p(this);var e=this._componentsMap,n=[];e.each((function(t,e){d["a"].hasClass(e)&&n.push(e)})),d["a"].topologicalTravel(n,d["a"].getAllClassMainTypes(),(function(n){Object(o["k"])(e.get(n),(function(e){!e||"series"===n&&M(e,t)||e.restoreData()}))}))},e.internalField=function(){p=function(t){var e=t._seriesIndices=[];Object(o["k"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(o["f"])(e)},f=function(t){0},g=function(t,e){t.option={},t.option[O]=w,t._componentsMap=Object(o["f"])({series:[]}),t._componentsCount=Object(o["f"])();var n=e.aria;Object(o["A"])(n)&&null==n.enabled&&(n.enabled=!0),I(e,t._theme.option),Object(o["I"])(e,m,!1),t._mergeOption(e,null)}}(),e}(c["a"]);function M(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function I(t,e){var n=t.color&&!t.colorLayer;Object(o["k"])(e,(function(e,i){"colorLayer"===i&&n||d["a"].hasClass(i)||("object"===typeof e?t[i]=t[i]?Object(o["I"])(t[i],e,!1):Object(o["d"])(e):null==t[i]&&(t[i]=e))}))}function j(t,e,n){if(Object(o["t"])(e)){var i=Object(o["f"])();return Object(o["k"])(e,(function(t){if(null!=t){var e=u["e"](t,null);null!=e&&i.set(t,!0)}})),Object(o["n"])(n,(function(e){return e&&i.get(e[t])}))}var r=u["e"](e,null);return Object(o["n"])(n,(function(e){return e&&null!=r&&e[t]===r}))}function C(t,e){return e.hasOwnProperty("subType")?Object(o["n"])(t,(function(t){return t&&t.subType===e.subType})):t}function T(t){var e=Object(o["f"])();return t&&Object(o["k"])(u["r"](t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(o["K"])(S,x["a"]);var D=S,A=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],k=function(){function t(t){o["k"](A,(function(e){this[e]=o["c"](t[e],t)}),this)}return t}(),L=k,P=n("1f39"),N=/^(min|max)?(.+)$/,R=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(o["k"])(Object(u["r"])(t.series),(function(t){t&&t.data&&Object(o["E"])(t.data)&&Object(o["R"])(t.data)})),Object(o["k"])(Object(u["r"])(t.dataset),(function(t){t&&t.source&&Object(o["E"])(t.source)&&Object(o["R"])(t.source)}))),t=Object(o["d"])(t);var i=this._optionBackup,r=E(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(o["d"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(o["d"])(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],s=[];if(!i.length&&!r)return s;for(var l=0,u=i.length;l<u;l++)z(i[l].query,e,n)&&a.push(l);return!a.length&&r&&(a=[-1]),a.length&&!B(a,this._currentMediaIndices)&&(s=Object(o["H"])(a,(function(t){return Object(o["d"])(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=a,s},t}();function E(t,e,n){var i,r,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,d=!!t.media,h=!!(u||l||s&&s.timeline);function p(t){Object(o["k"])(e,(function(e){e(t,n)}))}return s?(r=s,r.timeline||(r.timeline=l)):((h||d)&&(t.options=t.media=null),r=t),d&&Object(o["t"])(c)&&Object(o["k"])(c,(function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})),p(r),Object(o["k"])(u,(function(t){return p(t)})),Object(o["k"])(a,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:u||[],mediaDefault:i,mediaList:a}}function z(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Object(o["k"])(t,(function(t,e){var n=e.match(N);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();V(i[a],t,o)||(r=!1)}})),r}function V(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function B(t,e){return t.join(",")===e.join(",")}var G=R,H=o["k"],F=o["A"],W=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function q(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=W.length;n<i;n++){var r=W[n],a=e.normal,s=e.emphasis;a&&a[r]&&(t[r]=t[r]||{},t[r].normal?o["I"](t[r].normal,a[r]):t[r].normal=a[r],a[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?o["I"](t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function U(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,o["i"](t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Y(t){U(t,"itemStyle"),U(t,"lineStyle"),U(t,"areaStyle"),U(t,"label"),U(t,"labelLine"),U(t,"upperLabel"),U(t,"edgeLabel")}function X(t,e){var n=F(t)&&t[e],i=F(n)&&n.textStyle;if(i){0;for(var r=0,o=u["c"].length;r<o;r++){var a=u["c"][r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function Z(t){t&&(Y(t),X(t,"label"),t.emphasis&&X(t.emphasis,"label"))}function K(t){if(F(t)){q(t),Y(t),X(t,"label"),X(t,"upperLabel"),X(t,"edgeLabel"),t.emphasis&&(X(t.emphasis,"label"),X(t.emphasis,"upperLabel"),X(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(q(e),Z(e));var n=t.markLine;n&&(q(n),Z(n));var i=t.markArea;i&&Z(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!o["E"](a))for(var s=0;s<a.length;s++)Z(a[s]);o["k"](t.categories,(function(t){Y(t)}))}if(r&&!o["E"](r))for(s=0;s<r.length;s++)Z(r[s]);if(e=t.markPoint,e&&e.data){var l=e.data;for(s=0;s<l.length;s++)Z(l[s])}if(n=t.markLine,n&&n.data){var u=n.data;for(s=0;s<u.length;s++)o["t"](u[s])?(Z(u[s][0]),Z(u[s][1])):Z(u[s])}"gauge"===t.type?(X(t,"axisLabel"),X(t,"title"),X(t,"detail")):"treemap"===t.type?(U(t.breadcrumb,"itemStyle"),o["k"](t.levels,(function(t){Y(t)}))):"tree"===t.type&&Y(t.leaves)}}function J(t){return o["t"](t)?t:t?[t]:[]}function $(t){return(o["t"](t)?t[0]:t)||{}}function Q(t,e){H(J(t.series),(function(t){F(t)&&K(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),H(n,(function(e){H(J(t[e]),(function(t){t&&(X(t,"axisLabel"),X(t.axisPointer,"label"))}))})),H(J(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;X(e,"axisLabel"),X(e&&e.axisPointer,"label")})),H(J(t.calendar),(function(t){U(t,"itemStyle"),X(t,"dayLabel"),X(t,"monthLabel"),X(t,"yearLabel")})),H(J(t.radar),(function(t){X(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),H(J(t.geo),(function(t){F(t)&&(Z(t),H(J(t.regions),(function(t){Z(t)})))})),H(J(t.timeline),(function(t){Z(t),U(t,"label"),U(t,"itemStyle"),U(t,"controlStyle",!0);var e=t.data;o["t"](e)&&o["k"](e,(function(t){o["A"](t)&&(U(t,"label"),U(t,"itemStyle"))}))})),H(J(t.toolbox),(function(t){U(t,"iconStyle"),H(t.feature,(function(t){U(t,"iconStyle")}))})),X($(t.axisPointer),"label"),X($(t.tooltip).axisPointer,"label")}function tt(t,e){for(var n=e.split(","),i=t,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function et(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function nt(t){t&&Object(o["k"])(it,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var it=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rt=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ot=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function at(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<ot.length;n++){var i=ot[n][1],r=ot[n][0];null!=e[i]&&(e[r]=e[i])}}function st(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function lt(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ut(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function ct(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&ct(t[n].children,e)}function dt(t,e){Q(t,e),t.series=Object(u["r"])(t.series),Object(o["k"])(t.series,(function(t){if(Object(o["A"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),st(t.label);var n=t.data;if(n&&!Object(o["E"])(n))for(var i=0;i<n.length;i++)st(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=tt(t,"pointer.color");null!=r&&et(t,"itemStyle.color",r)}else if("bar"===e){at(t),at(t.backgroundStyle),at(t.emphasis);n=t.data;if(n&&!Object(o["E"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(at(n[i]),at(n[i]&&n[i].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),lt(t),ct(t.data,lt)}else"graph"===e||"sankey"===e?ut(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(o["i"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),nt(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(o["k"])(rt,(function(e){var n=t[e];n&&(Object(o["t"])(n)||(n=[n]),Object(o["k"])(n,(function(t){nt(t)})))}))}var ht=n("3842");function pt(t){var e=Object(o["f"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(ft)}function ft(t){Object(o["k"])(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var d,h,p=a.get(e.stackedDimension,c);if(isNaN(p))return r;s?h=a.getRawIndex(c):d=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(h=y.data.rawIndexOf(y.stackedByDimension,d)),h>=0){var m=y.data.getByRawIndex(y.stackResultDimension,h);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=Object(ht["b"])(p,m),f=m;break}}}return i[0]=p,i[1]=f,i}))}))}var gt=n("4f85"),yt=n("b12f"),mt=n("e887"),vt=n("c7a2"),bt=n("0da8"),xt=n("deca"),_t=n("cbe5"),Ot=n("861c"),wt=n("7d6c"),St=n("88b3"),Mt=n("282b"),It=n("551f"),jt=n("3901"),Ct=Object(u["o"])(),Tt={itemStyle:Object(Mt["a"])(It["a"],!0),lineStyle:Object(Mt["a"])(jt["a"],!0)},Dt={lineStyle:"stroke",itemStyle:"fill"};function At(t,e){var n=t.visualStyleMapper||Tt[e];return n||(console.warn("Unknown style type '"+e+"'."),Tt.itemStyle)}function kt(t,e){var n=t.visualDrawType||Dt[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Lt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),a=At(t,i),s=a(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=kt(t,i),c=s[u],d=Object(o["w"])(c)?c:null,h="auto"===s.fill||"auto"===s.stroke;if(!s[u]||d||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[u]||(s[u]=p,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||Object(o["w"])(s.fill)?p:s.fill,s.stroke="auto"===s.stroke||Object(o["w"])(s.stroke)?p:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(o["m"])({},s);r[u]=d(i),e.setItemVisual(n,"style",r)}}}},Pt=new c["a"],Nt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=At(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Pt.option=n[i];var s=r(Pt),l=t.ensureUniqueItemVisual(e,"style");Object(o["m"])(l,s),Pt.option.decal&&(t.setItemVisual(e,"decal",Pt.option.decal),Pt.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Rt={performRawSeries:!0,overallReset:function(t){var e=Object(o["f"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Ct(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Ct(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=kt(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",d=n.count();u[s]=e.getColorFromPalette(c,o,d)}}))}}))}},Et=n("2dc5"),zt=n("76a5"),Vt=n("8d32"),Bt=Math.PI;function Gt(t,e){e=e||{},o["i"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Et["a"],i=new vt["a"]({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,a=new zt["a"]({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new vt["a"]({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&(r=new Vt["a"]({shape:{startAngle:-Bt/2,endAngle:-Bt/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Bt/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Bt/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*o-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:o),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ht=n("9fbc"),Ft=n("8918"),Wt=function(){function t(t,e,n,i){this._stageTaskMap=Object(o["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(o["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(o["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),a="";Object(o["b"])(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(o["k"])(t,(function(t,o){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(t){s(i,t)&&(t.dirty(),d=!0)})),d&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);h.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(o,l){s(i,o)&&o.dirty();var u=a.getPerformArgs(o,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Object(o["f"])(),l=t.seriesType,u=t.getTargetSeries;function c(e){var o=e.uid,l=s.set(o,a&&a.get(o)||Object(Ht["a"])({plan:Zt,reset:Kt,count:Qt}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,a=e.overallTask=e.overallTask||Object(Ht["a"])({reset:qt});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=Object(o["f"])(),u=t.seriesType,c=t.getTargetSeries,d=!0,h=!1,p="";function f(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(h=!0,Object(Ht["a"])({reset:Ut,onDirty:Xt})));n.context={model:t,overallProgress:d},n.agent=a,n.__block=d,r._pipe(t,n)}Object(o["b"])(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,f):c?c(n,i).each(f):(d=!1,Object(o["k"])(n.getSeries(),f)),h&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(o["w"])(t)&&(t={overallReset:t,seriesType:te(t)}),t.uid=Object(Ft["c"])("stageHandler"),e&&(t.visualType=e),t},t}();function qt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ut(t){return t.overallProgress&&Yt}function Yt(){this.agent.dirty(),this.getDownstream().dirty()}function Xt(){this.agent&&this.agent.dirty()}function Zt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Kt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(u["r"])(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(o["H"])(e,(function(t,e){return $t(e)})):Jt}var Jt=$t(0);function $t(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Qt(t){return t.data.count()}function te(t){ee=null;try{t(ne,ie)}catch(e){}return ee}var ee,ne={},ie={};function re(t,e){for(var n in e.prototype)t[n]=o["L"]}re(ne,D),re(ie,L),ne.eachSeriesByType=ne.eachRawSeriesByType=function(t){ee=t},ne.eachComponent=function(t){"series"===t.mainType&&t.subType&&(ee=t.subType)};var oe=Wt,ae=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],se={color:ae,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ae]},le="#B9B8CE",ue="#100C2A",ce=function(){return{axisLine:{lineStyle:{color:le}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},de=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],he={darkMode:!0,color:de,backgroundColor:ue,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:le}},textStyle:{color:le},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:le}},dataZoom:{borderColor:"#71708A",textStyle:{color:le},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:le}},timeline:{lineStyle:{color:le},label:{color:le},controlStyle:{color:le,borderColor:le}},calendar:{itemStyle:{color:ue},dayLabel:{color:le},monthLabel:{color:le},yearLabel:{color:le}},timeAxis:ce(),logAxis:ce(),valueAxis:ce(),categoryAxis:ce(),line:{symbol:"circle"},graph:{color:de},gauge:{title:{color:le},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:le},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};he.categoryAxis.splitLine.show=!1;var pe=he,fe=n("625e"),ge=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(o["C"](t)){var r=Object(fe["f"])(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o["k"](t,(function(t,r){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(e.mainType=d,e[u.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ye=["symbol","symbolSize","symbolRotate","symbolOffset"],me=ye.concat(["symbolKeepAspect"]),ve={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<ye.length;s++){var l=ye[s],u=t.get(l);Object(o["w"])(u)?(a=!0,r[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(o["m"])({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=Object(o["F"])(r);return{dataEach:a?d:null}}}function d(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,r[s](i,o))}}}},be={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){for(var n=t.getItemModel(e),i=0;i<me.length;i++){var r=me[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}}},xe=n("0924"),_e=n("f3bb"),Oe=n("04f7"),we=n("ef59"),Se=n("fadd"),Me=n("b3c1");function Ie(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=Object(Me["a"])(n,e)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=Object(Me["a"])(r,e)}}}))}var je=new l["a"],Ce=je,Te=n("726e"),De=n("58c9"),Ae=1,ke=800,Le=900,Pe=1e3,Ne=2e3,Re=5e3,Ee=1e3,ze=1100,Ve=2e3,Be=3e3,Ge=4e3,He=4500,Fe=4600,We=5e3,qe=6e3,Ue=7e3,Ye={PROCESSOR:{FILTER:Pe,SERIES_FILTER:ke,STATISTIC:Re},VISUAL:{LAYOUT:Ee,PROGRESSIVE_LAYOUT:ze,GLOBAL:Ve,CHART:Be,POST_CHART_LAYOUT:Fe,COMPONENT:Ge,BRUSH:We,CHART_ITEM:He,ARIA:qe,DECAL:Ue}},Xe="__flagInMainProcess",Ze="__pendingUpdate",Ke="__needsUpdateStatus",Je=/^[a-zA-Z0-9_]+$/,$e="__connectUpdateStatus",Qe=0,tn=1,en=2;function nn(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return on(this,t,e);Tn(this.id)}}function rn(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return on(this,t,e)}}function on(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l["a"].prototype[e].apply(t,n)}var an,sn,ln,un,cn,dn,hn,pn,fn,gn,yn,mn,vn,bn,xn,_n,On,wn,Sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(l["a"]),Mn=Sn.prototype;Mn.on=rn("on"),Mn.off=rn("off");var In=function(t){function e(e,n,i){var a=t.call(this,new ge)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Object(o["C"])(n)&&(n=Nn[n]),a._dom=e;var l="canvas",u="auto",c=!1,d=a._zr=r["a"](e,{renderer:i.renderer||l,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(o["P"])(i.useDirtyRect,c),useCoarsePointer:Object(o["P"])(i.useCoarsePointer,u),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Object(St["c"])(Object(o["c"])(d.flush,d),17),n=Object(o["d"])(n),n&&dt(n,!0),a._theme=n,a._locale=Object(we["b"])(i.locale||we["a"]),a._coordSysMgr=new P["a"];var h=a._api=xn(a);function p(t,e){return t.__prio-e.__prio}return Object(s["a"])(Pn,p),Object(s["a"])(kn,p),a._scheduler=new oe(a,h,kn,Pn),a._messageCenter=new Sn,a._initEvents(),a.resize=Object(o["c"])(a.resize,a),d.animation.on("frame",a._onframe,a),gn(d,a),yn(d,a),Object(o["R"])(a),a}return Object(i["a"])(e,t),e.prototype._onframe=function(){if(!this._disposed){wn(this);var t=this._scheduler;if(this[Ze]){var e=this[Ze].silent;this[Xe]=!0;try{an(this),un.update.call(this,null,this[Ze].updateParams)}catch(a){throw this[Xe]=!1,this[Ze]=null,a}this._zr.flush(),this[Xe]=!1,this[Ze]=null,pn.call(this,e),fn.call(this,e)}else if(t.unfinished){var n=Ae,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),dn(this,i),t.performVisualTasks(i),bn(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Xe])if(this._disposed)Tn(this.id);else{var i,r,a;if(Object(o["A"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this[Xe]=!0,!this._model||e){var s=new G(this._api),l=this._theme,u=this._model=new D;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:r},Ln);var c={seriesTransition:a,optionChanged:!0};if(n)this[Ze]={silent:i,updateParams:c},this[Xe]=!1,this.getZr().wakeUp();else{try{an(this),un.update.call(this,null,c)}catch(d){throw this[Ze]=null,this[Xe]=!1,d}this._ssr||this._zr.flush(),this[Ze]=null,this[Xe]=!1,pn.call(this,i),fn.call(this,i)}}},e.prototype.setTheme=function(){Object(_["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(o["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(o["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(o["k"])(i,(function(t){t.group.ignore=!1})),a}Tn(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(zn[n]){var l=s,u=s,c=-s,d=-s,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();Object(o["k"])(En,(function(r,s){if(r.group===n){var p=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Object(o["d"])(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=a(f.right,c),d=a(f.bottom,d),h.push({dom:p,left:f.left,top:f.top})}})),l*=p,u*=p,c*=p,d*=p;var f=c-l,g=d-u,y=Te["d"].createCanvas(),m=r["a"](y,{renderer:e?"svg":"canvas"});if(m.resize({width:f,height:g}),e){var v="";return Object(o["k"])(h,(function(t){var e=t.left-l,n=t.top-u;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new vt["a"]({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),Object(o["k"])(h,(function(t){var e=new bt["a"]({style:{x:t.left*p-l,y:t.top*p-u,image:t.dom}});m.add(e)})),m.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Tn(this.id)},e.prototype.convertToPixel=function(t,e){return cn(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return cn(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=u["s"](i,t);return Object(o["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(o["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}Tn(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=u["s"](n,t,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Object(xe["a"])(o,a,e):Object(xe["b"])(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(o["k"])(Cn,(function(e){var n=function(n){var i,r=t.getModel(),a=n.target,s="globalout"===e;if(s?i={}:a&&Object(Se["a"])(a,(function(t){var e=Object(Ot["a"])(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=Object(o["m"])({},e.eventData),!0}),!0),i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&r.getComponent(l,u),d=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:c,view:d},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(o["k"])(An,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(o["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(_e["b"])(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Tn(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Tn(this.id);else{this._disposed=!0;var t=this.getDom();t&&u["w"](this.getDom(),Bn,"");var e=this,n=e._api,i=e._model;Object(o["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(o["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete En[e.id]}},e.prototype.resize=function(t){if(!this[Xe])if(this._disposed)Tn(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Ze]&&(null==i&&(i=this[Ze].silent),n=!0,this[Ze]=null),this[Xe]=!0;try{n&&an(this),un.update.call(this,{type:"resize",animation:Object(o["m"])({duration:0},t&&t.animation)})}catch(r){throw this[Xe]=!1,r}this[Xe]=!1,pn.call(this,i),fn.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Tn(this.id);else if(Object(o["A"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rn[t]){var n=Rn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Tn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(o["m"])({},t);return e.type=An[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Tn(this.id);else if(Object(o["A"])(e)||(e={silent:!!e}),Dn[t.type]&&this._model)if(this[Xe])this._pendingActions.push(t);else{var n=e.silent;hn.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a["a"].browser.weChat&&this._throttledZrFlush(),pn.call(this,n),fn.call(this,n)}},e.prototype.updateLabelLayout=function(){Ce.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Tn(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,a,l=e.concat(n);Object(s["a"])(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(o["k"])(l,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===wt["e"]&&t.states.emphasis?e.push("emphasis"):t.hoverState===wt["d"]&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function l(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function c(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return d(t,n,i,-1/0),!0}))}}function d(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(d(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function h(t,e){e.eachRendered((function(t){if(!xt["d"](t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function p(t,e){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(xt["d"](t))return;if(t instanceof _t["b"]&&Object(wt["E"])(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}an=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),sn(t,!0),sn(t,!1),e.plan()},sn=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var d=Object(fe["f"])(t.type),h=e?yt["a"].getClass(d.main,d.sub):mt["a"].getClass(d.sub);0,c=new h,c.init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},ln=function(t,e,n,i,r){var a=t._model;if(a.setUpdatePayload(n),i){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};r&&(l.subType=r);var c,d=n.excludeSeriesId;null!=d&&(c=Object(o["f"])(),Object(o["k"])(u["r"](d),(function(t){var e=u["e"](t,null);null!=e&&c.set(e,!0)}))),a&&a.eachComponent(l,(function(e){var i=c&&null!=c.get(e.id);if(!i)if(Object(wt["z"])(n))if(e instanceof gt["b"])n.type!==wt["c"]||n.notBlur||e.get(["emphasis","disabled"])||Object(wt["m"])(e,n,t._api);else{var r=Object(wt["t"])(e.mainType,e.componentIndex,n.name,t._api),a=r.focusSelf,s=r.dispatchers;n.type===wt["c"]&&a&&!n.notBlur&&Object(wt["l"])(e.mainType,e.componentIndex,t._api),s&&Object(o["k"])(s,(function(t){n.type===wt["c"]?Object(wt["r"])(t):Object(wt["C"])(t)}))}else Object(wt["A"])(n)&&e instanceof gt["b"]&&(Object(wt["K"])(e,n,t._api),Object(wt["L"])(e),On(t))}),t),a&&a.eachComponent(l,(function(e){var n=c&&null!=c.get(e.id);n||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(o["k"])([].concat(t._componentsViews).concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},un={prepareAndUpdate:function(t){an(this),un.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),dn(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),mn(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Ce.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var a=[];i.eachComponent((function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,e);l&&l.update&&a.push(s)}else a.push(s)}}));var s=Object(o["f"])();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,i,r,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),bn(this,i,r,e,{},s),Ce.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),mt["a"].markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),mn(this,n,this._api,e,{}),Ce.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),mt["a"].markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){var r=n._chartsMap[t.__viewId];r.updateVisual(t,i,n._api,e)})),Ce.trigger("afterupdate",i,this._api))},updateLayout:function(t){un.update.call(this,t)}},cn=function(t,e,n,i){if(t._disposed)Tn(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=u["s"](o,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(r=c[e](o,s,i)))return r}0}},dn=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},hn=function(t,e){var n=this,i=this.getModel(),r=t.type,a=t.escapeConnect,s=Dn[r],l=s.actionInfo,c=(l.update||"update").split(":"),d=c.pop(),h=null!=c[0]&&Object(fe["f"])(c[0]);this[Xe]=!0;var p=[t],f=!1;t.batch&&(f=!0,p=Object(o["H"])(t.batch,(function(e){return e=Object(o["i"])(Object(o["m"])({},e),t),e.batch=null,e})));var g,y=[],m=Object(wt["A"])(t),v=Object(wt["z"])(t);if(v&&Object(wt["k"])(this._api),Object(o["k"])(p,(function(e){if(g=s.action(e,n._model,n._api),g=g||Object(o["m"])({},e),g.type=l.event||g.type,y.push(g),v){var i=u["t"](t),r=i.queryOptionMap,a=i.mainTypeSpecified,c=a?r.keys()[0]:"series";ln(n,d,e,c),On(n)}else m?(ln(n,d,e,"series"),On(n)):h&&ln(n,d,e,h.main,h.sub)})),"none"!==d&&!v&&!m&&!h)try{this[Ze]?(an(this),un.update.call(this,t),this[Ze]=null):un[d].call(this,t)}catch(_){throw this[Xe]=!1,_}if(g=f?{type:l.event||r,escapeConnect:a,batch:y}:y[0],this[Xe]=!1,!e){var b=this._messageCenter;if(b.trigger(g.type,g),m){var x={type:"selectchanged",escapeConnect:a,selected:Object(wt["u"])(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(x.type,x)}}},pn=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();hn.call(this,n,t)}},fn=function(t){!t&&this.trigger("updated")},gn=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Ze]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},yn=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=Object(Se["a"])(n,wt["y"]);i&&(Object(wt["x"])(i,t,e._api),On(e))})).on("mouseout",(function(t){var n=t.target,i=Object(Se["a"])(n,wt["y"]);i&&(Object(wt["w"])(i,t,e._api),On(e))})).on("click",(function(t){var n=t.target,i=Object(Se["a"])(n,(function(t){return null!=Object(Ot["a"])(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=Object(Ot["a"])(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},mn=function(t,n,i,r,a){e(n),vn(t,n,i,r,a),Object(o["k"])(t._chartsViews,(function(t){t.__alive=!1})),bn(t,n,i,r,a),Object(o["k"])(t._chartsViews,(function(t){t.__alive||t.remove(n,i)}))},vn=function(t,e,n,i,r,a){Object(o["k"])(a||t._componentsViews,(function(t){var r=t.__model;h(r,t),t.render(r,e,n,i),c(r,t),p(r,t)}))},bn=function(t,e,n,i,a,s){var u=t._scheduler;a=Object(o["m"])(a||{},{updatedSeries:e.getSeries()}),Ce.trigger("series:beforeupdate",e,n,a);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,i),h(e,n),s&&s.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(d=!0),n.group.silent=!!e.get("silent"),l(e,n),Object(wt["L"])(e)})),u.unfinished=d||u.unfinished,Ce.trigger("series:layoutlabels",e,n,a),Ce.trigger("series:transition",e,n,a),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];c(e,n),p(e,n)})),r(t,e),Ce.trigger("series:afterupdate",e,n,a)},On=function(t){t[Ke]=!0,t.getZr().wakeUp()},wn=function(t){t[Ke]&&(t.getZr().storage.traverse((function(t){xt["d"](t)||n(t)})),t[Ke]=!1)},xn=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Object(wt["r"])(e,n),On(t)},n.prototype.leaveEmphasis=function(e,n){Object(wt["C"])(e,n),On(t)},n.prototype.enterBlur=function(e){Object(wt["q"])(e),On(t)},n.prototype.leaveBlur=function(e){Object(wt["B"])(e),On(t)},n.prototype.enterSelect=function(e){Object(wt["s"])(e),On(t)},n.prototype.leaveSelect=function(e){Object(wt["D"])(e),On(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(L))(t)},_n=function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[$e]=e}}Object(o["k"])(An,(function(n,i){t._messageCenter.on(i,(function(n){if(zn[t.group]&&t[$e]!==Qe){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Object(o["k"])(En,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,Qe),Object(o["k"])(r,(function(t){t[$e]!==tn&&t.dispatchAction(i)})),e(r,en)}}))}))}}(),e}(l["a"]),jn=In.prototype;jn.on=nn("on"),jn.off=nn("off"),jn.one=function(t,e,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,r)}Object(_["a"])("ECharts#one is deprecated."),this.on.call(this,t,r,n)};var Cn=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Tn(t){0}var Dn={},An={},kn=[],Ln=[],Pn=[],Nn={},Rn={},En={},zn={},Vn=+new Date-0,Bn=(new Date,"_echarts_instance_");function Gn(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=Hn(t);if(r)return r;0}var o=new In(t,e,n);return o.id="ec_"+Vn++,En[o.id]=o,i&&u["w"](t,Bn,o.id),_n(o),Ce.trigger("afterinit",o),o}function Hn(t){return En[u["g"](t,Bn)]}function Fn(t,e){Nn[t]=e}function Wn(t){Object(o["r"])(Ln,t)<0&&Ln.push(t)}function qn(t,e){ti(kn,t,e,Ne)}function Un(t){Xn("afterinit",t)}function Yn(t){Xn("afterupdate",t)}function Xn(t,e){Ce.on(t,e)}function Zn(t,e,n){Object(o["w"])(e)&&(n=e,e="");var i=Object(o["A"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,An[e]||(Object(o["b"])(Je.test(i)&&Je.test(e)),Dn[i]||(Dn[i]={action:n,actionInfo:t}),An[e]=i)}function Kn(t,e){P["a"].register(t,e)}function Jn(t,e){ti(Pn,t,e,Ee,"layout")}function $n(t,e){ti(Pn,t,e,Be,"visual")}var Qn=[];function ti(t,e,n,i,r){if((Object(o["w"])(e)||Object(o["A"])(e))&&(n=e,e=i),!(Object(o["r"])(Qn,n)>=0)){Qn.push(n);var a=oe.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function ei(t,e){Rn[t]=e}function ni(t,e,n){var i=Object(De["a"])("registerMap");i&&i(t,e,n)}var ii=Oe["b"];$n(Ve,Lt),$n(He,Nt),$n(He,Rt),$n(Ve,ve),$n(He,be),$n(Ue,Ie),Wn(dt),qn(Le,pt),ei("default",Gt),Zn({type:wt["c"],event:wt["c"],update:wt["c"]},o["L"]),Zn({type:wt["b"],event:wt["b"],update:wt["b"]},o["L"]),Zn({type:wt["f"],event:wt["f"],update:wt["f"]},o["L"]),Zn({type:wt["i"],event:wt["i"],update:wt["i"]},o["L"]),Zn({type:wt["h"],event:wt["h"],update:wt["h"]},o["L"]),Fn("light",se),Fn("dark",pe)},"1f39":function(t,e,n){"use strict";var i=n("6d8b"),r={},o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i["k"](r,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i["k"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}();e["a"]=o},2023:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}()},"216a":function(t,e,n){"use strict";var i=n("7fae"),r=n("3842"),o=n("f876"),a=n("944e"),s=n("89e3"),l=n("e0d8"),u=n("6d8b"),c=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},d=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(i["a"])(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(o["h"])(t.value,o["i"][Object(o["l"])(Object(o["m"])(this._minLevelUnit))]||o["i"].second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return Object(o["r"])(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=x(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o["a"],e[1]+=o["a"]),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]-o["a"]}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=h.length,a=Math.min(c(h,this._approxInterval,0,o),o-1);this._interval=h[a][1],this._minLevelUnit=h[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(u["z"])(t)?t:+r["p"](t)},e.prototype.contain=function(t){return a["a"](this.parse(t),this._extent)},e.prototype.normalize=function(t){return a["f"](this.parse(t),this._extent)},e.prototype.scale=function(t){return a["g"](t,this._extent)},e.type="time",e}(s["a"]),h=[["second",o["d"]],["minute",o["c"]],["hour",o["b"]],["quarter-day",6*o["b"]],["half-day",12*o["b"]],["day",1.2*o["a"]],["half-week",3.5*o["a"]],["week",7*o["a"]],["month",31*o["a"]],["quarter",95*o["a"]],["half-year",o["e"]/2],["year",o["e"]]];function p(t,e,n,i){var a=r["p"](e),s=r["p"](n),l=function(t){return Object(o["n"])(a,t,i)===Object(o["n"])(s,t,i)},u=function(){return l("year")},c=function(){return u()&&l("month")},d=function(){return c()&&l("day")},h=function(){return d()&&l("hour")},p=function(){return h()&&l("minute")},f=function(){return p()&&l("second")},g=function(){return f()&&l("millisecond")};switch(t){case"year":return u();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return f();case"millisecond":return g()}}function f(t,e){return t/=o["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function g(t){var e=30*o["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function y(t){return t/=o["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function m(t,e){return t/=e?o["c"]:o["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function v(t){return r["n"](t,!0)}function b(t,e,n){var i=new Date(t);switch(Object(o["m"])(e)){case"year":case"month":i[Object(o["x"])(n)](0);case"day":i[Object(o["g"])(n)](1);case"hour":i[Object(o["p"])(n)](0);case"minute":i[Object(o["v"])(n)](0);case"second":i[Object(o["A"])(n)](0),i[Object(o["t"])(n)](0)}return i.getTime()}function x(t,e,n,i){var r=1e4,a=o["B"],s=0;function l(t,e,n,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u<n&&u<=i[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function c(t,r,a){var s=[],u=!r.length;if(!p(Object(o["m"])(t),i[0],i[1],n)){u&&(r=[{value:b(new Date(i[0]),t,n)},{value:i[1]}]);for(var c=0;c<r.length-1;c++){var d=r[c].value,h=r[c+1].value;if(d!==h){var x=void 0,_=void 0,O=void 0,w=!1;switch(t){case"year":x=Math.max(1,Math.round(e/o["a"]/365)),_=Object(o["j"])(n),O=Object(o["k"])(n);break;case"half-year":case"quarter":case"month":x=g(e),_=Object(o["w"])(n),O=Object(o["x"])(n);break;case"week":case"half-week":case"day":x=f(e,31),_=Object(o["f"])(n),O=Object(o["g"])(n),w=!0;break;case"half-day":case"quarter-day":case"hour":x=y(e),_=Object(o["o"])(n),O=Object(o["p"])(n);break;case"minute":x=m(e,!0),_=Object(o["u"])(n),O=Object(o["v"])(n);break;case"second":x=m(e,!1),_=Object(o["z"])(n),O=Object(o["A"])(n);break;case"millisecond":x=v(e),_=Object(o["s"])(n),O=Object(o["t"])(n);break}l(x,d,h,_,O,w,s),"year"===t&&a.length>1&&0===c&&a.unshift({value:a[0].value-x})}}for(c=0;c<s.length;c++)a.push(s[c]);return s}}for(var d=[],h=[],x=0,_=0,O=0;O<a.length&&s++<r;++O){var w=Object(o["m"])(a[O]);if(Object(o["q"])(a[O])){c(a[O],d[d.length-1]||[],h);var S=a[O+1]?Object(o["m"])(a[O+1]):null;if(w!==S){if(h.length){_=x,h.sort((function(t,e){return t.value-e.value}));for(var M=[],I=0;I<h.length;++I){var j=h[I].value;0!==I&&h[I-1].value===j||(M.push(h[I]),j>=i[0]&&j<=i[1]&&x++)}var C=(i[1]-i[0])/e;if(x>1.5*C&&_>C/1.5)break;if(d.push(M),x>C||t===a[O])break}h=[]}}}var T=Object(u["n"])(Object(u["H"])(d,(function(t){return Object(u["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),D=[],A=T.length-1;for(O=0;O<T.length;++O)for(var k=T[O],L=0;L<k.length;++L)D.push({value:k[L].value,level:A-O});D.sort((function(t,e){return t.value-e.value}));var P=[];for(O=0;O<D.length;++O)0!==O&&D[O].value===D[O-1].value||P.push(D[O]);return P}l["a"].registerClass(d),e["a"]=d},"217c":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return v})),n.d(e,"e",(function(){return M})),n.d(e,"d",(function(){return I})),n.d(e,"a",(function(){return j}));var i=n("65ed"),r=n("eda2"),o=n("6d8b"),a=n("b7d9"),s=n("3842"),l="line-height:1";function u(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Object(i["a"])(r+"")+"px;color:"+Object(i["a"])(n)+";font-weight:"+Object(i["a"])(o+""),valueStyle:"font-size:"+Object(i["a"])(s+"")+"px;color:"+Object(i["a"])(a)+";font-weight:"+Object(i["a"])(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],d=["","\n","\n\n","\n\n\n"];function h(t,e){return e.type=t,e}function p(t){return"section"===t.type}function f(t){return p(t)?y:m}function g(t){if(p(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Object(o["k"])(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||p(t)&&!t.noHeader)))})),e}return 0}function y(t,e,n,s){var c=e.noHeader,d=b(g(e)),h=[],p=e.blocks||[];Object(o["b"])(!p||Object(o["t"])(p)),p=p||[];var y=t.orderMode;if(e.sortBlocks&&y){p=p.slice();var m={valueAsc:"asc",valueDesc:"desc"};if(Object(o["q"])(m,y)){var v=new a["a"](m[y],null);p.sort((function(t,e){return v.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===y&&p.reverse()}Object(o["k"])(p,(function(n,i){var r=e.valueFormatter,a=f(n)(r?Object(o["m"])(Object(o["m"])({},t),{valueFormatter:r}):t,n,i>0?d.html:0,s);null!=a&&h.push(a)}));var _="richText"===t.renderMode?h.join(d.richText):x(h.join(""),c?n:d.html);if(c)return _;var O=Object(r["h"])(e.header,"ordinal",t.useUTC),S=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?w(t,O,S)+d.richText+_:x('<div style="'+S+";"+l+';">'+Object(i["a"])(O)+"</div>"+_,n)}function m(t,e,n,i){var a=t.renderMode,s=e.noName,l=e.noValue,c=!e.markerType,d=e.name,h=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(t){return t=Object(o["t"])(t)?t:[t],Object(o["H"])(t,(function(t,e){return Object(r["h"])(t,Object(o["t"])(y)?y[e]:y,h)}))};if(!s||!l){var f=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=s?"":Object(r["h"])(d,"ordinal",h),y=e.valueType,m=l?[]:p(e.value),v=!c||!s,b=!c&&s,M=u(i,a),I=M.nameStyle,j=M.valueStyle;return"richText"===a?(c?"":f)+(s?"":w(t,g,I))+(l?"":S(t,m,v,b,j)):x((c?"":f)+(s?"":_(g,!c,I))+(l?"":O(m,v,b,j)),n)}}function v(t,e,n,i,r,o){if(t){var a=f(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function b(t){return{html:c[t],richText:d[t]}}function x(t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+l+';">'+t+n+"</div>"}function _(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Object(i["a"])(t)+"</span>"}function O(t,e,n,r){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(o["t"])(t)?t:[t],'<span style="'+s+";"+r+'">'+Object(o["H"])(t,(function(t){return Object(i["a"])(t)})).join(" ")+"</span>"}function w(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function S(t,e,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(o["t"])(e)?e.join(" "):e,a)}function M(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Object(r["c"])(i)}function I(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var j=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(s["j"])()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,a=Object(r["g"])({color:e,type:t,renderMode:n,markerId:i});return Object(o["C"])(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(o["t"])(e)?Object(o["k"])(e,(function(t){return Object(o["m"])(n,t)})):Object(o["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},"22b4":function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var i=n("1be7"),r=n("b12f"),o=n("e887"),a=n("6cb7"),s=n("4f85"),l=n("6d8b"),u=n("58c9"),c=n("697e7"),d=[],h={registerPreprocessor:i["j"],registerProcessor:i["k"],registerPostInit:i["h"],registerPostUpdate:i["i"],registerUpdateLifecycle:i["m"],registerAction:i["c"],registerCoordinateSystem:i["d"],registerLayout:i["e"],registerVisual:i["n"],registerTransform:i["l"],registerLoading:i["f"],registerMap:i["g"],registerImpl:u["b"],PRIORITY:i["a"],ComponentModel:a["a"],ComponentView:r["a"],SeriesModel:s["b"],ChartView:o["a"],registerComponentModel:function(t){a["a"].registerClass(t)},registerComponentView:function(t){r["a"].registerClass(t)},registerSeriesModel:function(t){s["b"].registerClass(t)},registerChartView:function(t){o["a"].registerClass(t)},registerSubTypeDefaulter:function(t,e){a["a"].registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(c["b"])(t,e)}};function p(t){Object(l["t"])(t)?Object(l["k"])(t,(function(t){p(t)})):Object(l["r"])(d,t)>=0||(d.push(t),Object(l["w"])(t)&&(t={install:t}),t.install(h))}},2306:function(t,e,n){"use strict";n.r(e),n.d(e,"extendShape",(function(){return N})),n.d(e,"extendPath",(function(){return E})),n.d(e,"registerShape",(function(){return z})),n.d(e,"getShapeClass",(function(){return V})),n.d(e,"makePath",(function(){return B})),n.d(e,"makeImage",(function(){return G})),n.d(e,"mergePath",(function(){return F})),n.d(e,"resizePath",(function(){return W})),n.d(e,"subPixelOptimizeLine",(function(){return q})),n.d(e,"subPixelOptimizeRect",(function(){return U})),n.d(e,"subPixelOptimize",(function(){return Y})),n.d(e,"getTransform",(function(){return X})),n.d(e,"applyTransform",(function(){return Z})),n.d(e,"transformDirection",(function(){return K})),n.d(e,"groupTransition",(function(){return Q})),n.d(e,"clipPointsByRect",(function(){return tt})),n.d(e,"clipRectByRect",(function(){return et})),n.d(e,"createIcon",(function(){return nt})),n.d(e,"linePolygonIntersect",(function(){return it})),n.d(e,"lineLineIntersect",(function(){return rt})),n.d(e,"setTooltipConfig",(function(){return st})),n.d(e,"traverseElements",(function(){return ut}));var i=n("342d"),r=n("1687"),o=n("401b"),a=n("cbe5");n.d(e,"Path",(function(){return a["b"]}));var s=n("8582"),l=n("0da8");n.d(e,"Image",(function(){return l["a"]}));var u=n("2dc5");n.d(e,"Group",(function(){return u["a"]}));var c=n("76a5");n.d(e,"Text",(function(){return c["a"]}));var d=n("d9fc");n.d(e,"Circle",(function(){return d["a"]}));var h=n("ae69");n.d(e,"Ellipse",(function(){return h["a"]}));var p=n("4aa2");n.d(e,"Sector",(function(){return p["a"]}));var f=n("4573");n.d(e,"Ring",(function(){return f["a"]}));var g=n("87b1");n.d(e,"Polygon",(function(){return g["a"]}));var y=n("d498");n.d(e,"Polyline",(function(){return y["a"]}));var m=n("c7a2");n.d(e,"Rect",(function(){return m["a"]}));var v=n("cb11");n.d(e,"Line",(function(){return v["a"]}));var b=n("ac0f");n.d(e,"BezierCurve",(function(){return b["a"]}));var x=n("8d32");n.d(e,"Arc",(function(){return x["a"]}));var _=n("d4c6");n.d(e,"CompoundPath",(function(){return _["a"]}));var O=n("48a9");n.d(e,"LinearGradient",(function(){return O["a"]}));var w=n("dded");n.d(e,"RadialGradient",(function(){return w["a"]}));var S=n("9850");n.d(e,"BoundingRect",(function(){return S["a"]}));var M=n("ca80");n.d(e,"OrientedBoundingRect",(function(){return M["a"]}));var I=n("dce8");n.d(e,"Point",(function(){return I["a"]}));var j=n("392f");n.d(e,"IncrementalDisplayable",(function(){return j["a"]}));var C=n("9cf9"),T=n("6d8b"),D=n("861c"),A=n("deca");n.d(e,"updateProps",(function(){return A["h"]})),n.d(e,"initProps",(function(){return A["c"]})),n.d(e,"removeElement",(function(){return A["e"]})),n.d(e,"removeElementWithFadeOut",(function(){return A["f"]})),n.d(e,"isElementRemoved",(function(){return A["d"]}));var k=Math.max,L=Math.min,P={};function N(t){return a["b"].extend(t)}var R=i["c"];function E(t,e){return R(t,e)}function z(t,e){P[t]=e}function V(t){if(P.hasOwnProperty(t))return P[t]}function B(t,e,n,r){var o=i["b"](t,e);return n&&("center"===r&&(n=H(n,o.getBoundingRect())),W(o,n)),o}function G(t,e,n){var i=new l["a"]({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(H(e,r))}}});return i}function H(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var F=i["d"];function W(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function q(t,e){return C["b"](t,t,{lineWidth:e}),t}function U(t){return C["c"](t.shape,t.shape,t.style),t}var Y=C["a"];function X(t,e){var n=r["d"]([]);while(t&&t!==e)r["f"](n,t.getLocalTransform(),n),t=t.parent;return n}function Z(t,e,n){return e&&!Object(T["u"])(e)&&(e=s["c"].getLocalTransform(e)),n&&(e=r["e"]([],e)),o["b"]([],t,e)}function K(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Z(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function J(t){return!t.isGroup}function $(t){return null!=t.shape}function Q(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(J(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Object(A["h"])(t,r,n,Object(D["a"])(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){J(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return $(t)&&(e.shape=Object(T["m"])({},t.shape)),e}}function tt(t,e){return Object(T["H"])(t,(function(t){var n=t[0];n=k(n,e.x),n=L(n,e.x+e.width);var i=t[1];return i=k(i,e.y),i=L(i,e.y+e.height),[n,i]}))}function et(t,e){var n=k(t.x,e.x),i=L(t.x+t.width,e.x+e.width),r=k(t.y,e.y),o=L(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function nt(t,e,n){var i=Object(T["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(T["i"])(r,n),new l["a"](i)):B(t.replace("path://",""),i,n,"center")}function it(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(rt(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function rt(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,d=s-o,h=ot(c,d,l,u);if(at(h))return!1;var p=t-r,f=e-o,g=ot(p,f,l,u)/h;if(g<0||g>1)return!1;var y=ot(p,f,c,d)/h;return!(y<0||y>1)}function ot(t,e,n,i){return t*i-n*e}function at(t){return t<=1e-6&&t>=-1e-6}function st(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(T["C"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(T["k"])(Object(T["F"])(l),(function(t){Object(T["q"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Object(D["a"])(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Object(T["i"])({content:i,formatterParams:s},r)}}function lt(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function ut(t,e){if(t)if(Object(T["t"])(t))for(var n=0;n<t.length;n++)lt(t[n],e);else lt(t,e)}z("circle",d["a"]),z("ellipse",h["a"]),z("sector",p["a"]),z("ring",f["a"]),z("polygon",g["a"]),z("polyline",y["a"]),z("rect",m["a"]),z("line",v["a"]),z("bezierCurve",b["a"]),z("arc",x["a"])},2355:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("ca80"),r=n("9850");function o(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var d=l?new i["a"](s,a):null;e.push({label:o,labelLine:r.labelLine,rect:c,localRect:s,obb:d,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return e}function a(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],d=0,h=0;h<a;h++){var p=t[h],f=p.rect;s=f[e]-l,s<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),d+=g,l=f[e]+f[n]}d>0&&o&&O(-d/a,0,a);var y,m,v=t[0],b=t[a-1];return x(),y<0&&w(-y,.8),m<0&&w(m,.8),x(),_(y,m,1),_(m,y,-1),x(),y<0&&S(-y),m<0&&S(m),u}function x(){y=v.rect[e]-i,m=r-b.rect[e]-b.rect[n]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){O(i*n,0,a);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function O(n,i,r){0!==n&&(u=!0);for(var o=i;o<r;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function w(i,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var d=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var h=o[l]*d;O(h,0,l+1)}else for(l=a-1;l>0;l--){h=o[l-1]*d;O(-h,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?O(n,0,i+1):O(-n,a-i-1,a),t-=n,t<=0)return}}function s(t,e,n,i){return a(t,"x","width",e,n,i)}function l(t,e,n,i){return a(t,"y","height",e,n,i)}function u(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new r["a"](0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,u=s.localRect,c=s.transform,d=s.label,h=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<e.length;g++){var y=e[g];if(n.intersect(y.rect)){if(l&&y.axisAligned){f=!0;break}if(y.obb||(y.obb=new i["a"](y.localRect,y.transform)),p||(p=new i["a"](u,c)),p.intersect(y.obb)){f=!0;break}}}f?(o(d),h&&o(h)):(d.attr("ignore",s.defaultAttr.ignore),h&&h.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},"282b":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6d8b");function r(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i["r"](r,l)>=0||o&&i["r"](o,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},"2b17":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return v})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return w}));var i,r,o,a,s,l=n("6d8b"),u=n("e0d3"),c=n("ec6f"),d=n("07fd"),h=function(){function t(t,e){var n=Object(c["e"])(t)?t:Object(c["c"])(t);this._source=n;var i=this._data=n.data;n.sourceFormat===d["g"]&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;s=function(t,r,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,h=o.dimensionsDefine,p=a[O(s,u)];if(Object(l["m"])(t,p),s===d["g"])t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,u);t.getItem=Object(l["c"])(f,null,r,c,h);var y=v(s,u);t.count=Object(l["c"])(y,null,r,c,h)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,d=n[a],h=0;h<c;h++){var p=r[h*o+a];d[t+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[d["c"]+"_"+d["a"]]={pure:!0,appendData:r},t[d["c"]+"_"+d["b"]]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[d["e"]]={pure:!0,appendData:r},t[d["d"]]={pure:!0,appendData:function(t){var e=this._data;Object(l["k"])(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[d["f"]]={appendData:r},t[d["g"]]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),p=function(t,e,n,i){return t[i]},f=(i={},i[d["c"]+"_"+d["a"]]=function(t,e,n,i){return t[i+e]},i[d["c"]+"_"+d["b"]]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},i[d["e"]]=p,i[d["d"]]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[i]:null}return o},i[d["f"]]=p,i);function g(t,e){var n=f[O(t,e)];return n}var y=function(t,e,n){return t.length},m=(r={},r[d["c"]+"_"+d["a"]]=function(t,e,n){return Math.max(0,t.length-e)},r[d["c"]+"_"+d["b"]]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[d["e"]]=y,r[d["d"]]=function(t,e,n){var i=n[0].name;var r=t[i];return r?r.length:0},r[d["f"]]=y,r);function v(t,e){var n=m[O(t,e)];return n}var b=function(t,e,n){return t[e]},x=(o={},o[d["c"]]=b,o[d["e"]]=function(t,e,n){return t[n]},o[d["d"]]=b,o[d["f"]]=function(t,e,n){var i=Object(u["h"])(t);return i instanceof Array?i[e]:i},o[d["g"]]=b,o);function _(t){var e=x[t];return e}function O(t,e){return t===d["c"]?t+"_"+e:t}function w(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return _(o)(i,a,s)}var l=i;return o===d["f"]&&(l=Object(u["h"])(i)),l}}}},"2f1f":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("6d8b"),r=Object(i["f"])();function o(t,e){Object(i["b"])(null==r.get(t)&&e),r.set(t,e)}function a(t,e,n){var i=r.get(e);if(!i)return n;var o=i(t);return o?n.concat(o):n}},"2f45":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("07fd"),o=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function a(t,e){var n={},a=n.encode={},l=Object(i["f"])(),c=[],d=[],h={};Object(i["k"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),i=n.coordDim;if(i){0;var o=n.coordDimIndex;s(a,i)[o]=e,n.isExtraCoord||(l.set(i,1),u(n.type)&&(c[0]=e),s(h,i)[o]=t.getDimensionIndex(n.name)),n.defaultTooltip&&d.push(e)}r["i"].each((function(t,e){var i=s(a,e),r=n.otherDims[e];null!=r&&!1!==r&&(i[r]=n.name)}))}));var p=[],f={};l.each((function(t,e){var n=a[e];f[e]=n[0],p=p.concat(n)})),n.dataDimsOnCoord=p,n.dataDimIndicesOnCoord=Object(i["H"])(p,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=f;var g=a.label;g&&g.length&&(c=g.slice());var y=a.tooltip;return y&&y.length?d=y.slice():d.length||(d=c.slice()),a.defaultedLabel=c,a.defaultedTooltip=d,n.userOutput=new o(h,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function u(t){return!("ordinal"===t||"time"===t)}},"313e":function(t,e,n){"use strict";n.d(e,"a",(function(){return r["g"]})),n.d(e,"b",(function(){return r["j"]}));var i=n("22b4"),r=n("aa74"),o=n("f95e"),a=n("dc20");function s(t){t.registerPainter("svg",a["a"])}var l=n("7fae"),u=n("1830"),c=n("4f85"),d=n("a15a"),h=n("2dc5"),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t){return Object(u["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new h["a"],n=Object(d["a"])("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=Object(d["a"])(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(c["b"]),f=p,g=n("6d8b"),y=n("deca"),m=n("2306"),v=n("861c"),b=n("7d6c"),x=n("2b17");function _(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Object(x["e"])(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Object(x["e"])(t,e,n[a]));return o.join(" ")}}function O(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(g["t"])(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var w=n("7837"),S=n("0da8"),M=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return Object(l["a"])(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Object(d["a"])(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=I,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(b["r"])(this.childAt(0))},e.prototype.downplay=function(){Object(b["C"])(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):y["h"](d,h,a,n),Object(y["g"])(d)}if(this._updateCommon(t,n,s,i,r),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,y["c"](d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,f,y=this.childAt(0),m=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),x=v.getModel("emphasis");o=x.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=x.get("focus"),u=x.get("blurScope"),c=x.get("disabled"),h=Object(w["e"])(v),p=x.getShallow("scale"),f=v.getShallow("cursor")}var O=t.getItemVisual(e,"symbolRotate");y.attr("rotation",(O||0)*Math.PI/180||0);var M=Object(d["b"])(t.getItemVisual(e,"symbolOffset"),n);M&&(y.x=M[0],y.y=M[1]),f&&y.attr("cursor",f);var I=t.getItemVisual(e,"style"),j=I.fill;if(y instanceof S["a"]){var C=y.style;y.useStyle(Object(g["m"])({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},I))}else y.__isEmptyBrush?y.useStyle(Object(g["m"])({},I)):y.useStyle(I),y.style.decal=null,y.setColor(j,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var T=t.getItemVisual(e,"liftZ"),D=this._z2;null!=T?null==D&&(this._z2=y.z2,y.z2+=T):null!=D&&(y.z2=D,this._z2=null);var A=r&&r.useNameLabel;function k(e){return A?t.getName(e):_(t,e)}Object(w["g"])(y,h,{labelFetcher:m,labelDataIndex:e,defaultText:k,inheritColor:j,defaultOpacity:I.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=y.ensureState("emphasis");L.style=o,y.ensureState("select").style=s,y.ensureState("blur").style=a;var P=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Object(b["J"])(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Object(v["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&y["e"](a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();y["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Object(d["c"])(t.getItemVisual(e,"symbolSize"))},e}(h["a"]);function I(t,e){this.parent.drift(t,e)}var j=M;function C(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function T(t){return null==t||Object(g["A"])(t)||(t={isIgnore:t}),t||{}}function D(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(w["e"])(e),cursorStyle:e.get("cursor")}}var A=function(){function t(t){this.group=new h["a"],this._SymbolCtor=t||j}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=T(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=D(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(C(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var h=r.getItemGraphicEl(d),p=u(c);if(C(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),h=new o(t,c,s,l),h.setPosition(p);else{h.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):y["h"](h,m,i)}n.add(h),t.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=D(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=T(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(C(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),k=A,L=n("ee1a");function P(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=N(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,d=Object(g["H"])(t.dimensions,(function(t){return e.mapDimension(t)})),h=!1,p=e.getCalculationInfo("stackResultDimension");return Object(L["c"])(e,d[0])&&(h=!0,d[0]=p),Object(L["c"])(e,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function N(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:Object(g["z"])(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function R(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var E=n("f658");function z(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}function V(t,e,n,i,r,o,a,s){for(var l=z(t,e),u=[],c=[],d=[],h=[],p=[],f=[],g=[],y=P(r,e,a),m=t.getLayout("points")||[],v=e.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,O=void 0,w=void 0;switch(x.cmd){case"=":O=2*x.idx,w=2*x.idx1;var S=m[O],M=m[O+1],I=v[w],j=v[w+1];(isNaN(S)||isNaN(M))&&(S=I,M=j),u.push(S,M),c.push(I,j),d.push(n[O],n[O+1]),h.push(i[w],i[w+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var C=x.idx,T=y.dataDimsForPoint,D=r.dataToPoint([e.get(T[0],C),e.get(T[1],C)]);w=2*C,u.push(D[0],D[1]),c.push(v[w],v[w+1]);var A=R(y,r,e,C);d.push(A[0],A[1]),h.push(i[w],i[w+1]),g.push(e.getRawIndex(C));break;case"-":_=!1}_&&(p.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var k=u.length,L=Object(E["a"])(k),N=Object(E["a"])(k),V=Object(E["a"])(k),B=Object(E["a"])(k),G=[];for(b=0;b<f.length;b++){var H=f[b],F=2*b,W=2*H;L[F]=u[W],L[F+1]=u[W+1],N[F]=c[W],N[F+1]=c[W+1],V[F]=d[W],V[F+1]=d[W+1],B[F]=h[W],B[F+1]=h[W+1],G[b]=p[H]}return{current:L,next:N,stackedOnCurrent:V,stackedOnNext:B,status:G}}var B=n("48a9"),G=n("76a5"),H=n("e0d3"),F=n("cbe5"),W=n("20c8"),q=n("4a3f"),U=Math.min,Y=Math.max;function X(t,e){return isNaN(t)||isNaN(e)}function Z(t,e,n,i,r,o,a,s,l){for(var u,c,d,h,p,f,g=n,y=0;y<i;y++){var m=e[2*g],v=e[2*g+1];if(g>=r||g<0)break;if(X(m,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,v),d=m,h=v;else{var b=m-u,x=v-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){var _=g+o,O=e[2*_],w=e[2*_+1];while(O===m&&w===v&&y<i)y++,_+=o,g+=o,O=e[2*_],w=e[2*_+1],m=e[2*g],v=e[2*g+1],b=m-u,x=v-c;var S=y+1;if(l)while(X(O,w)&&S<i)S++,_+=o,O=e[2*_],w=e[2*_+1];var M=.5,I=0,j=0,C=void 0,T=void 0;if(S>=i||X(O,w))p=m,f=v;else{I=O-u,j=w-c;var D=m-u,A=O-m,k=v-c,L=w-v,P=void 0,N=void 0;if("x"===s){P=Math.abs(D),N=Math.abs(A);var R=I>0?1:-1;p=m-R*P*a,f=v,C=m+R*N*a,T=v}else if("y"===s){P=Math.abs(k),N=Math.abs(L);var E=j>0?1:-1;p=m,f=v-E*P*a,C=m,T=v+E*N*a}else P=Math.sqrt(D*D+k*k),N=Math.sqrt(A*A+L*L),M=N/(N+P),p=m-I*a*(1-M),f=v-j*a*(1-M),C=m+I*a*M,T=v+j*a*M,C=U(C,Y(O,m)),T=U(T,Y(w,v)),C=Y(C,U(O,m)),T=Y(T,U(w,v)),I=C-m,j=T-v,p=m-I*P/N,f=v-j*P/N,p=U(p,Y(u,m)),f=U(f,Y(c,v)),p=Y(p,U(u,m)),f=Y(f,U(c,v)),I=m-p,j=v-f,C=m+I*N/P,T=v+j*N/P}t.bezierCurveTo(d,h,p,f,m,v),d=C,h=T}else t.lineTo(m,v)}u=m,c=v,g+=o}return y}var K=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),J=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(l["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new K},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!X(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!X(n[2*i],n[2*i+1]))break}while(i<r)i+=Z(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=W["a"].CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,y=void 0,m=void 0;switch(c){case a.M:n=o[u++],i=o[u++];break;case a.L:if(d=o[u++],h=o[u++],m=s?(t-n)/(d-n):(t-i)/(h-i),m<=1&&m>=0){var v=s?(h-i)*m+i:(d-n)*m+n;return s?[t,v]:[v,t]}n=d,i=h;break;case a.C:d=o[u++],h=o[u++],p=o[u++],f=o[u++],g=o[u++],y=o[u++];var b=s?Object(q["f"])(n,d,p,g,t,l):Object(q["f"])(i,h,f,y,t,l);if(b>0)for(var x=0;x<b;x++){var _=l[x];if(_<=1&&_>=0){v=s?Object(q["a"])(i,h,f,y,_):Object(q["a"])(n,d,p,g,_);return s?[t,v]:[v,t]}}n=g,i=y;break}}},e}(F["b"]),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e}(K),Q=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new $},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!X(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!X(n[2*r],n[2*r+1]))break}while(r<o){var s=Z(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Z(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(F["b"]),tt=n("e887"),et=n("c7a2"),nt=n("4aa2"),it=n("3842");function rt(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var d=new et["a"]({shape:{x:a,y:s,width:l,height:u}});if(e){var h=t.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var m=Object(g["w"])(r)?function(t){r(t,d)}:null;y["c"](d,{shape:{width:l,height:u,x:a,y:s}},n,null,i,m)}return d}function ot(t,e,n){var i=t.getArea(),r=Object(it["w"])(i.r0,1),o=Object(it["w"])(i.r,1),a=new nt["a"]({shape:{cx:Object(it["w"])(t.cx,1),cy:Object(it["w"])(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,y["c"](a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function at(t,e,n,i,r){return t?"polar"===t.type?ot(t,e,n):"cartesian2d"===t.type?rt(t,e,n,i,r):null:null}function st(t,e){return t.type===e}var lt=n("eda2"),ut=n("41ef");function ct(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function dt(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function ht(t,e){var n=dt(t),i=n[0],r=n[1],o=dt(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function pt(t){return g["z"](t)?t:t?.5:0}function ft(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Object(E["a"])(2*i),o=0;o<i;o++){var a=R(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function gt(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||d.push(t[s],t[s+1]);t=d}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,p=[];l[o]=p[o]=h,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function yt(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i),o=Object(ut["b"])(r,[t.color,e.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function mt(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=g["H"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=yt(u,"x"===r?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=10,y=h[0].coord-f,m=h[p-1].coord+f,v=m-y;if(v<.001)return"transparent";g["k"](h,(function(t){t.offset=(t.coord-y)/v})),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var b=new B["a"](0,0,0,0,h,!0);return b[r]=y,b[r+"2"]=m,b}}}function vt(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!bt(o,e))){var a=e.mapDimension(o.dim),s={};return g["k"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function bt(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*j.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function xt(t,e){return isNaN(t)||isNaN(e)}function _t(t){for(var e=t.length/2;e>0;e--)if(!xt(t[2*e-2],t[2*e-1]))break;return e-1}function Ot(t,e){return[t[2*e],t[2*e+1]]}function wt(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function St(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<b["g"].length;e++)if(t.get([b["g"][e],"endLabel","show"]))return!0;return!1}function Mt(t,e,n,i){if(st(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=St(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=rt(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return ot(e,n,i)}function It(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.init=function(){var t=new h["a"],e=new k;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,f=this._polygon,m=this._lineGroup,x=!e.ssr&&t.isAnimationEnabled(),_=!l.isEmpty(),O=l.get("origin"),w=P(r,a,O),S=_&&ft(r,a,w),M=t.get("showSymbol"),I=t.get("connectNulls"),j=M&&!c&&vt(t,a,r),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),M||h.remove(),o.add(m);var T,D=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(T=r.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var A=mt(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===r.type&&D===this._step){_&&!f?f=this._newPolygon(u,S):f&&!_&&(m.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Object(lt["c"])(A));var k=m.getClipPath();if(k){var L=Mt(this,r,!1,t);y["c"](k,{shape:L.shape},t)}else m.setClipPath(Mt(this,r,!0,t));M&&h.updateData(a,{isIgnore:j,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),ct(this._stackedOnPoints,S)&&ct(this._points,u)||(x?this._doUpdateAnimation(a,S,r,n,D,O,I):(D&&(u=gt(u,r,D,I),S&&(S=gt(S,r,D,I))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:S})))}else M&&h.updateData(a,{isIgnore:j,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),x&&this._initSymbolLabelAnimation(a,r,T),D&&(u=gt(u,r,D,I),S&&(S=gt(S,r,D,I))),p=this._newPolyline(u),_?f=this._newPolygon(u,S):f&&(m.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,Object(lt["c"])(A)),m.setClipPath(Mt(this,r,!0,t));var N=t.getModel("emphasis"),R=N.get("focus"),E=N.get("blurScope"),z=N.get("disabled");if(p.useStyle(g["i"](s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Object(b["I"])(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}Object(v["a"])(p).seriesIndex=t.seriesIndex,Object(b["J"])(p,R,E,z);var B=pt(t.get("smooth")),G=t.get("smoothMonotone");if(p.setShape({smooth:B,smoothMonotone:G,connectNulls:I}),f){var H=a.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(g["i"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),H&&(F=pt(H.get("smooth"))),f.setShape({smooth:B,stackedOnSmooth:F,smoothMonotone:G,connectNulls:I}),Object(b["I"])(f,t,"areaStyle"),Object(v["a"])(f).seriesIndex=t.seriesIndex,Object(b["J"])(f,R,E,z)}var W=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=W)})),this._polyline.onHoverStateChange=W,this._data=a,this._coordSys=r,this._stackedOnPoints=S,this._points=u,this._step=D,this._valueOrigin=O,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Object(v["a"])(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=H["u"](r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,d=t.get("z")||0;s=new j(r,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else tt["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=H["u"](r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else tt["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(b["H"])(this._polyline,t),e&&Object(b["H"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new J({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Q({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");g["w"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=g["w"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var d=[t.x,t.y],h=void 0,p=void 0,f=void 0;if(n)if(r){var y=n,m=e.pointToCoord(d);i?(h=y.startAngle,p=y.endAngle,f=-m[1]/180*Math.PI):(h=y.r0,p=y.r,f=m[0])}else{var v=n;i?(h=v.x,p=v.x+v.width,f=t.x):(h=v.y+v.height,p=v.y,f=t.y)}var b=p===h?0:(f-h)/(p-h);a&&(b=1-b);var x=g["w"](u)?u(o):l*b+c,_=s.getSymbolPath(),O=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(St(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new G["a"]({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=_t(a);l>=0&&(Object(w["g"])(o,Object(w["e"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?O(r,n):_(r,t)},enableTextSetter:!0},It(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,m=e.shape,v=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),_=g?"x":"y",O=wt(u,v,_),S=O.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!d){var j=Ot(u,S[0]);s.attr({x:j[0]+b,y:j[1]+x}),r&&(I=c.getRawValue(S[0]))}else{j=l.getPointOn(v,_);j&&s.attr({x:j[0]+b,y:j[1]+x});var C=c.getRawValue(S[0]),T=c.getRawValue(S[1]);r&&(I=H["k"](n,h,C,T,O.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;j=Ot(u,D);r&&(I=c.getRawValue(D)),s.attr({x:j[0]+b,y:j[1]+x})}if(r){var A=Object(w["f"])(s);"function"===typeof A.setLabelText&&A.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=V(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=gt(c.current,n,r,a),h=gt(c.stackedOnCurrent,n,r,a),p=gt(c.next,n,r,a),f=gt(c.stackedOnNext,n,r,a)),ht(d,p)>3e3||l&&ht(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),y["h"](s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),y["h"](l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,b=0;b<v.length;b++){var x=v[b].cmd;if("="===x){var _=t.getItemGraphicEl(v[b].idx1);_&&m.push({el:_,ptIdx:b})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.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._endLabel=this._data=null},e.type="line",e}(tt["a"]),Ct=jt,Tt=n("cccd");function Dt(t,e){return{seriesType:t,plan:Object(Tt["a"])(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=Object(g["H"])(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Object(L["c"])(n,a[0])&&(a[0]=l),Object(L["c"])(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Object(E["a"])(n*s),a=[],l=[],h=t.start,p=0;h<t.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(d,h),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(h,f.slice())}o&&e.setLayout("points",r)}}}}}}var At={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 isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},kt=function(t){return Math.round(t.length/2)};function Lt(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h));var p=void 0;Object(g["C"])(r)?p=At[r]:Object(g["w"])(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/h,p,kt))}}}}}function Pt(t){t.registerChartView(Ct),t.registerSeriesModel(f),t.registerLayout(Dt("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Lt("line"))}var Nt=n("9d57"),Rt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)Object(g["k"])(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=r[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,c=1,d=0;d<i.length;d++){var h=i[d].coord,p=d===i.length-1?i[d-1].tickValue+c:i[d].tickValue;if(p===a){u=h;break}if(p<a)l=h;else if(null!=l&&p>a){u=(h+l)/2;break}1===d&&(c=p-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(c["b"]);c["b"].registerClass(Rt);var Et=Rt,zt=n("8918"),Vt=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(){return Object(u["a"])(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Object(zt["d"])(Et.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Et),Bt=Vt,Gt=n("88b3"),Ht=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Ft=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Ht},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,d=2*Math.PI,h=c?u-l<d:l-u<d;h||(l=u-(c?d:-d));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);h?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(F["b"]),Wt=Ft,qt=n("e86a");function Ut(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return Object(qt["c"])(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,c=l.cy,d=l.r,h=l.r0,p=(d+h)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,m=n?Math.abs(d-h)/2:0,v=Math.cos,b=Math.sin,x=u+d*v(f),_=c+d*b(f),O="left",w="top";switch(a){case"startArc":x=u+(h-s)*v(y),_=c+(h-s)*b(y),O="center",w="top";break;case"insideStartArc":x=u+(h+s)*v(y),_=c+(h+s)*b(y),O="center",w="bottom";break;case"startAngle":x=u+p*v(f)+Xt(f,s+m,!1),_=c+p*b(f)+Zt(f,s+m,!1),O="right",w="middle";break;case"insideStartAngle":x=u+p*v(f)+Xt(f,-s+m,!1),_=c+p*b(f)+Zt(f,-s+m,!1),O="left",w="middle";break;case"middle":x=u+p*v(y),_=c+p*b(y),O="center",w="middle";break;case"endArc":x=u+(d+s)*v(y),_=c+(d+s)*b(y),O="center",w="bottom";break;case"insideEndArc":x=u+(d-s)*v(y),_=c+(d-s)*b(y),O="center",w="top";break;case"endAngle":x=u+p*v(g)+Xt(g,s+m,!0),_=c+p*b(g)+Zt(g,s+m,!0),O="left",w="middle";break;case"insideEndAngle":x=u+p*v(g)+Xt(g,-s+m,!0),_=c+p*b(g)+Zt(g,-s+m,!0),O="right",w="middle";break;default:return Object(qt["c"])(e,i,r)}return e=e||{},e.x=x,e.y=_,e.align=O,e.verticalAlign=w,e}}function Yt(t,e,n,i){if(Object(g["z"])(i))t.setTextConfig({rotation:i});else if(Object(g["t"])(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function Xt(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Zt(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Kt(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(g["t"])(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(g["H"])(i,(function(t){return Object(qt["g"])(t,r)}))}}var Jt=Math.max,$t=Math.min;function Qt(t,e){var n=t.getArea&&t.getArea();if(st(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var te=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Object(m["traverseElements"])(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,d=ie(t,l);d&&this._enableRealtimeSort(d,a,n);var p=t.get("clip",!0)||d,f=Qt(l,a);o.removeClipPath();var g=t.get("roundCap",!0),m=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),b=v.get("borderRadius")||0,x=[],_=this._backgroundEls,O=i&&i.isInitSort,S=i&&"changeAxisOrder"===i.type;function M(t){var e=ue[l.type](a,t),n=xe(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",b):n.setShape("cornerRadius",b),x[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=ue[l.type](a,e,n);if(m&&M(e),a.hasValue(e)&&le[l.type](i)){var s=!1;p&&(s=ee[l.type](f,i));var h=ne[l.type](t,a,e,i,r,c,u.model,!1,g);d&&(h.forceLabelAnimation=!0),he(h,a,e,n,i,t,r,"polar"===l.type),O?h.attr({shape:i}):d?re(d,c,h,i,e,r,!1,!1):Object(y["c"])(h,{shape:i},t,e),a.setItemGraphicEl(e,h),o.add(h),h.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),h=ue[l.type](a,e,i);if(m){var I=void 0;0===_.length?I=M(n):(I=_[n],I.useStyle(v.getItemStyle()),"cartesian2d"===l.type?I.setShape("r",b):I.setShape("cornerRadius",b),x[e]=I);var j=ue[l.type](a,e),C=be(r,j,l);Object(y["h"])(I,{shape:C},c,e)}var T=s.getItemGraphicEl(n);if(a.hasValue(e)&&le[l.type](h)){var D=!1;if(p&&(D=ee[l.type](f,h),D&&o.remove(T)),T?Object(y["g"])(T):T=ne[l.type](t,a,e,h,r,c,u.model,!!T,g),d&&(T.forceLabelAnimation=!0),S){var A=T.getTextContent();if(A){var k=Object(w["f"])(A);null!=k.prevValue&&(k.prevValue=k.value)}}else he(T,a,e,i,h,t,r,"polar"===l.type);O?T.attr({shape:h}):d?re(d,c,T,h,e,r,!0,S):Object(y["h"])(T,{shape:h},t,e,null),a.setItemGraphicEl(e,T),T.ignore=D,o.add(T)}else o.remove(T)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Object(y["f"])(n,t,e)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new h["a"]);I.removeAll();for(var j=0;j<x.length;++j)I.add(x[j]);o.add(I),this._backgroundEls=x,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),ye(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),ye(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&at(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(g["H"])(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(y["f"])(e,t,Object(v["a"])(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(tt["a"]),ee={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Jt(e.x,t.x),s=$t(e.x+e.width,r),l=Jt(e.y,t.y),u=$t(e.y+e.height,o),c=s<a,d=u<l;return e.x=c&&a>r?s:a,e.y=d&&l>o?u:l,e.width=c?0:s-a,e.height=d?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=$t(e.r,t.r),o=Jt(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},ne={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new et["a"]({shape:Object(g["m"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=r?"height":"width";c[d]=0}return u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?Wt:nt["a"],c=new u({shape:i,z2:1});c.name="item";var d=de(r);if(c.calculateTextPosition=Ut(d,{isRoundCap:u===Wt}),o){var h=c.shape,p=r?"r":"endAngle",f={};h[p]=r?i.r0:i.startAngle,f[p]=i[p],(s?y["h"]:y["c"])(c,{shape:f},o)}return c}};function ie(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function re(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?y["h"]:y["c"])(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?y["h"]:y["c"])(n,{shape:u},c,r)}function oe(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var ae=["x","y","width","height"],se=["cx","cy","r","startAngle","endAngle"],le={cartesian2d:function(t){return!oe(t,ae)},polar:function(t){return!oe(t,se)}},ue={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?pe(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},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,clockwise:i.clockwise}}};function ce(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function de(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function he(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=Kt(i.getModel("itemStyle"),u,!0);Object(g["m"])(u,c),t.setShape(u)}}else{var d=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(l);var h=i.getShallow("cursor");h&&t.attr("cursor",h);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=Object(w["e"])(i);Object(w["g"])(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:_(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var y=t.getTextContent();if(s&&y){var m=i.get(["label","position"]);t.textConfig.inside="middle"===m||null,Yt(t,"outside"===m?p:m,de(a),i.get(["label","rotate"]))}Object(w["h"])(y,f,o.getRawValue(n),(function(t){return O(e,t)}));var v=i.getModel(["emphasis"]);Object(b["J"])(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(b["I"])(t,i),ce(r)&&(t.style.fill="none",t.style.stroke="none",Object(g["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function pe(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}var fe=function(){function t(){}return t}(),ge=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new fe},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(F["b"]);function ye(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new ge({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var d=new ge({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,e.add(d),d.useStyle(r.getVisual("style")),Object(v["a"])(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",me),d.on("mousemove",me)),n&&n.push(d)}var me=Object(Gt["c"])((function(t){var e=this,n=ve(e,t.offsetX,t.offsetY);Object(v["a"])(e).dataIndex=n>=0?n:null}),30,!1);function ve(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,d=o.length/3;c<d;c++){var h=3*c;if(l[i]=u,l[r]=o[h+2],s[i]=o[h+i],s[r]=o[h+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function be(t,e,n){if(st(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.getArea();var o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function xe(t,e,n){var i="polar"===t.type?nt["a"]:et["a"];return new i({shape:be(e,n,t),silent:!0,z2:0})}var _e=te;function Oe(t){t.registerChartView(_e),t.registerSeriesModel(Bt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,g["h"](Nt["c"],"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Nt["a"])("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Lt("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var we=n("f3bb"),Se=n("f934"),Me=2*Math.PI,Ie=Math.PI/180;function je(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ce(t,e){var n=je(t,e),i=t.get("center"),r=t.get("radius");g["t"](r)||(r=[0,r]);var o,a,s=Object(it["q"])(n.width,e.getWidth()),l=Object(it["q"])(n.height,e.getHeight()),u=Math.min(s,l),c=Object(it["q"])(r[0],u/2),d=Object(it["q"])(r[1],u/2),h=t.coordinateSystem;if(h){var p=h.dataToPoint(i);o=p[0]||0,a=p[1]||0}else g["t"](i)||(i=[i,i]),o=Object(it["q"])(i[0],s)+n.x,a=Object(it["q"])(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function Te(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=je(t,n),o=Ce(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*Ie,d=t.get("minAngle")*Ie,h=0;e.each(i,(function(t){!isNaN(t)&&h++}));var p=e.getSum(i),f=Math.PI/(p||h)*2,g=t.get("clockwise"),y=t.get("roseType"),m=t.get("stillShowZeroSum"),v=e.getDataExtent(i);v[0]=0;var b=Me,x=0,_=c,O=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:y?NaN:l});else{i="area"!==y?0===p&&m?f:t*f:Me/h,i<d?(i=d,b-=d):x+=t;var r=_+O*i;e.setItemLayout(n,{angle:i,startAngle:_,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:y?Object(it["m"])(t,v,[u,l]):l}),_=r}})),b<Me&&h)if(b<=.001){var w=Me/h;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=w,i.startAngle=c+O*n*w,i.endAngle=c+O*(n+1)*w}}))}else f=b/x,_=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===d?d:t*f;i.startAngle=_,i.endAngle=_+O*r,_+=O*r}}))}))}function De(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var Ae=n("d498"),ke=n("dce8"),Le=n("89b6"),Pe=n("2355"),Ne=Math.PI/180;function Re(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,d=0;d<c;d++)if("outer"===t[d].position&&"labelLine"===t[d].labelAlignTo){var h=t[d].label.x-u;t[d].linePoints[1][0]+=h,t[d].label.x=u}Object(Pe["d"])(t,l,l+a)&&f(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,d=c*c,h=Math.sqrt((1-Math.abs(u*u/a))*d),p=e+(h+l.len2)*r,f=p-l.label.x,g=l.targetTextWidth-f*r;ze(l,g,!0),l.label.x=p}}function f(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-e-l.len2*r,h=i+l.len,f=Math.abs(d)<h?Math.sqrt(c*c/(1-d*d/h/h)):h;u.rB=f,u.maxY=c}u.list.push(l)}p(o),p(a)}}function Ee(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<t.length;h++){var p=t[h].label;Ve(t[h])||(p.x<e?(c=Math.min(c,p.x),l.push(t[h])):(d=Math.max(d,p.x),u.push(t[h])))}for(h=0;h<t.length;h++){var f=t[h];if(!Ve(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?c-a-f.bleedMargin:a+r-d-f.bleedMargin:p.x<e?p.x-a-f.bleedMargin:a+r-p.x-f.bleedMargin,f.targetTextWidth=y,ze(f,y)}}Re(u,e,n,i,1,r,o,a,s,d),Re(l,e,n,i,-1,r,o,a,s,c);for(h=0;h<t.length;h++){f=t[h];if(!Ve(f)&&f.linePoints){p=f.label,g=f.linePoints;var m="edge"===f.labelAlignTo,v=p.style.padding,b=v?v[1]+v[3]:0,x=p.style.backgroundColor?0:b,_=f.rect.width+x,O=g[1][0]-g[2][0];m?p.x<e?g[2][0]=a+f.edgeDistance+_+f.labelDistance:g[2][0]=a+r-f.edgeDistance-_-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+O),g[1][1]=g[2][1]=p.y}}}function ze(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){var d=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-d)/2}}}function Ve(t){return"center"===t.position}function Be(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Ne,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function p(t){t.ignore=!0}function f(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),d=s.shape,h=s.getTextContent(),y=s.getTextGuideLine(),m=i.getItemModel(t),v=m.getModel("label"),b=v.get("position")||m.get(["emphasis","label","position"]),x=v.get("distanceToLabelLine"),_=v.get("alignTo"),O=Object(it["q"])(v.get("edgeDistance"),u),w=v.get("bleedMargin"),S=m.getModel("labelLine"),M=S.get("length");M=Object(it["q"])(M,u);var I=S.get("length2");if(I=Object(it["q"])(I,u),Math.abs(d.endAngle-d.startAngle)<a)return Object(g["k"])(h.states,p),h.ignore=!0,void(y&&(Object(g["k"])(y.states,p),y.ignore=!0));if(f(h)){var j,C,T,D,A=(d.startAngle+d.endAngle)/2,k=Math.cos(A),L=Math.sin(A);e=d.cx,n=d.cy;var P="inside"===b||"inner"===b;if("center"===b)j=d.cx,C=d.cy,D="center";else{var N=(P?(d.r+d.r0)/2*k:d.r*k)+e,R=(P?(d.r+d.r0)/2*L:d.r*L)+n;if(j=N+3*k,C=R+3*L,!P){var E=N+k*(M+l-d.r),z=R+L*(M+l-d.r),V=E+(k<0?-1:1)*I,B=z;j="edge"===_?k<0?c+O:c+u-O:V+(k<0?-x:x),C=B,T=[[N,R],[E,z],[V,B]]}D=P?"center":"edge"===_?k>0?"right":"left":k>0?"left":"right"}var G=Math.PI,H=0,F=v.get("rotate");if(Object(g["z"])(F))H=F*(G/180);else if("center"===b)H=0;else if("radial"===F||!0===F){var W=k<0?-A+G:-A;H=W}else if("tangential"===F&&"outside"!==b&&"outer"!==b){var q=Math.atan2(k,L);q<0&&(q=2*G+q);var U=L>0;U&&(q=G+q),H=q-G}if(o=!!H,h.x=j,h.y=C,h.rotation=H,h.setStyle({verticalAlign:"middle"}),P){h.setStyle({align:D});var Y=h.states.select;Y&&(Y.x+=h.x,Y.y+=h.y)}else{var X=h.getBoundingRect().clone();X.applyTransform(h.getComputedTransform());var Z=(h.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,r.push({label:h,labelLine:y,position:b,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new ke["a"](k,L),linePoints:T,textAlign:D,labelDistance:x,labelAlignTo:_,edgeDistance:O,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&Ee(r,e,n,l,u,h,c,d);for(var y=0;y<r.length;y++){var m=r[y],v=m.label,b=m.labelLine,x=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),x&&(Object(g["k"])(v.states,p),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(b){var O=m.linePoints;x||!O?(Object(g["k"])(b.states,p),b.ignore=!0):(Object(Le["c"])(O,m.minTurnAngle),Object(Le["b"])(O,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:O}),v.__hostTarget.textGuideLineConfig={anchor:new ke["a"](O[0][0],O[0][1])})}}}var Ge=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new G["a"];return r.setTextContent(o),r.updateData(e,n,i,!0),r}return Object(l["a"])(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Object(g["m"])(Kt(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(y["c"](r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,y["c"](r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),y["c"](r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,y["h"](r,{shape:{endAngle:l.endAngle}},o,e))}else Object(y["g"])(r),y["h"](r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Object(b["I"])(r,a);var d=(l.startAngle+l.endAngle)/2,h=o.get("selectedOffset"),p=Math.cos(d)*h,f=Math.sin(d)*h,m=a.getShallow("cursor");m&&r.attr("cursor",m),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Object(g["m"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Kt(s.getModel("itemStyle"),l)),Object(g["m"])(r.ensureState("select"),{x:p,y:f,shape:Kt(a.getModel(["select","itemStyle"]),l)}),Object(g["m"])(r.ensureState("blur"),{shape:Kt(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),x=r.getTextContent();v&&Object(g["m"])(v.ensureState("select"),{x:p,y:f}),Object(g["m"])(x.ensureState("select"),{x:p,y:f}),Object(b["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Object(w["g"])(i,Object(w["e"])(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Ae["a"],this.setTextGuideLine(d)),Object(Le["d"])(this,Object(Le["a"])(r),{stroke:s,opacity:Object(g["Q"])(o.get(["lineStyle","opacity"]),l,1)})}},e}(nt["a"]),He=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new nt["a"]({shape:Ce(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new Ge(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);y["f"](n,t,e)})).execute(),Be(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="pie",e}(tt["a"]),Fe=He,We=n("b1d4"),qe=n("b682");function Ue(t,e,n){e=Object(g["t"])(e)&&{coordDimensions:e}||Object(g["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Object(We["b"])(i,e).dimensions,o=new qe["a"](r,t);return o.initData(i,n),o}var Ye=n("0f99"),Xe=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),Ze=Xe,Ke=H["o"](),Je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ze(g["c"](this.getData,this),g["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ue(this,{coordDimensions:["value"],encodeDefaulter:g["h"](Ye["d"],this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Ke(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=Object(it["e"])(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){H["f"](t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(c["b"]),$e=Je;function Qe(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(g["z"])(i)&&!isNaN(i)&&i<0)}))}}}function tn(t){t.registerChartView(Fe),t.registerSeriesModel($e),Object(we["a"])("pie",t.registerAction),t.registerLayout(Object(g["h"])(Te,"pie")),t.registerProcessor(De("pie")),t.registerProcessor(Qe("pie"))}var en=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(c["b"]),nn=en,rn=n("9850"),on=4,an=function(){function t(){}return t}(),sn=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new an},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<on,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],d=i[n++];isNaN(c)||isNaN(d)||(u&&!u.contain(c,d)||(a.x=c-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],h=n[c++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(h,s),u=Math.max(h,u)}t=this._rect=new rn["a"](a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(F["b"]),ln=function(){function t(){this.group=new h["a"]}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new sn({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=Object(d["a"])(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<on;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Object(v["a"])(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),un=ln,cn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Dt("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new un:new k,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(tt["a"]),dn=cn,hn=n("b12f"),pn=n("6cb7"),fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(pn["a"]),gn=fn,yn=n("2023"),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",H["b"]).models[0]},e.type="cartesian2dAxis",e}(pn["a"]);g["K"](mn,yn["a"]);var vn={show:!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,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},bn=g["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vn),xn=g["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},vn),_n=g["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xn),On=g["i"]({logBase:10},xn),wn={category:bn,value:xn,time:_n,log:On},Sn=n("8e43"),Mn={value:1,category:1,time:1,log:1};function In(t,e,n,i){Object(g["k"])(Mn,(function(r,o){var a=Object(g["I"])(Object(g["I"])({},wn[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return Object(l["a"])(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(Se["d"])(this),i=n?Object(Se["f"])(t):{},r=e.getTheme();Object(g["I"])(t,r.get(o+"Axis")),Object(g["I"])(t,this.getDefaultOption()),t.type=jn(t),n&&Object(Se["h"])(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Sn["a"].createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",jn)}function jn(t){return t.type||(t.data?"category":"value")}var Cn=n("697e"),Tn=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return g["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),g["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Dn=Tn,An=n("1687"),kn=n("401b"),Ln=["x","y"];function Pn(t){return"interval"===t.type||"time"===t.type}var Nn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ln,e}return Object(l["a"])(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Pn(t)&&Pn(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,d=r[1]-i[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=Object(An["e"])([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.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]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new rn["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Object(kn["b"])(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(kn["b"])(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new rn["a"](n,i,r,o)},e}(Dn),Rn=Nn,En=n("84ce"),zn=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return Object(l["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.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},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(En["a"]),Vn=zn;function Bn(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(y,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),g["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Gn(t){return"cartesian2d"===t.get("coordinateSystem")}function Hn(t){var e={xAxisModel:null,yAxisModel:null};return g["k"](e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,H["b"]).models[0];e[i]=o})),e}var Fn=n("944e"),Wn=n("89e3"),qn=Math.log;function Un(t,e,n){var i=Wn["a"].prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=Object(Cn["f"])(t,e),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===t.type){var h=qn(t.base);u=[qn(u[0])/h,qn(u[1])/h]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=i.getExtent.call(t);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(c&&d)f=(y-g)/a;else if(c){y=u[0]+f*a;while(y<u[1]&&isFinite(y)&&isFinite(u[1]))f=Object(Fn["c"])(f),y=u[0]+f*a}else if(d){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=Object(Fn["c"])(f),g=u[1]-f*a}else{var m=t.getTicks().length-1;m>a&&(f=Object(Fn["c"])(f));var v=f*a;y=Math.ceil(u[1]/f)*f,g=Object(it["w"])(y-v),g<0&&u[0]>=0?(g=0,y=Object(it["w"])(v)):y>0&&u[1]<=0&&(y=0,g=-Object(it["w"])(v))}var b=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*b,y+f*x),i.setInterval.call(t,f),(b||x)&&i.setNiceExtent.call(t,g+f,y-f)}var Yn=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ln,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(g["F"])(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Object(Fn["e"])(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(Object(Cn["i"])(u,l),Object(Fn["e"])(u)&&(e=s))}r.length&&(e||(e=r.pop(),Object(Cn["i"])(e.scale,e.model)),Object(g["k"])(r,(function(t){Un(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(g["k"])(n.x,(function(t){Zn(n,"y",t,r)})),Object(g["k"])(n.y,(function(t){Zn(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Object(Se["g"])(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(g["k"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Jn(t,e?o.x:o.y)}))}s(),r&&(Object(g["k"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Object(Cn["b"])(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),Object(g["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(g["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",H["b"]).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",H["b"]).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,Object(g["r"])(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Xn(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new Vn(e,Object(Cn["a"])(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,Object(g["k"])(a.x,(function(e,n){Object(g["k"])(a.y,(function(r,o){var a="x"+n+"y"+o,s=new Rn(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(g["k"])(Object(Cn["d"])(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(g["k"])(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Gn(t)){var i=Hn(t),r=i.xAxisModel,o=i.yAxisModel;if(!Xn(r,e)||!Xn(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(g["k"])(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);Object(g["r"])(e,r)<0&&e.push(r),Object(g["r"])(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(Gn(t)){var e=Hn(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=Ln,t}();function Xn(t,e){return t.getCoordSysModel()===e}function Zn(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Kn(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Kn(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Kn(t){return t&&"category"!==t.type&&"time"!==t.type&&Object(Cn["g"])(t)}function Jn(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var $n=Yn,Qn=n("cb11"),ti=n("4319"),ei=Math.PI,ni=function(){function t(t,e){this.group=new h["a"],this.opt=e,this.axisModel=t,Object(g["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new h["a"]({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!ii[t]},t.prototype.add=function(t){ii[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Object(it["v"])(e-t);return Object(it["l"])(o)?(r=n>0?"top":"bottom",i="center"):Object(it["l"])(o-ei)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<ei?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),ii={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Object(kn["b"])(s,s,a),Object(kn["b"])(l,l,a));var c=Object(g["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Qn["a"]({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});m["subPixelOptimizeLine"](h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);Object(g["C"])(p)&&(p=[p,p]),(Object(g["C"])(f)||Object(g["z"])(f))&&(f=[f,f]);var y=Object(d["b"])(e.get(["axisLine","symbolOffset"])||0,f),v=f[0],b=f[1];Object(g["k"])([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==p[i]&&null!=p[i]){var r=Object(d["a"])(p[i],-v/2,-b/2,v,b,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=ci(n,i,e,t),o=hi(n,i,e,t);if(oi(e,o,r),di(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Object(Pe["b"])(Object(g["H"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(Pe["a"])(a)}},axisName:function(t,e,n,i){var r=Object(g["O"])(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,d=e.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,li(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*ei/180),li(s)?o=ni.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=ri(t.rotation,s,f||0,d),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var y=u.getFont(),b=e.get("nameTruncate",!0)||{},x=b.ellipsis,_=Object(g["O"])(t.nameTruncateMaxWidth,b.maxWidth,a),O=new G["a"]({x:p[0],y:p[1],rotation:o.rotation,silent:ni.isLabelSilent(e),style:Object(w["c"])(u,{text:r,font:y,overflow:"truncate",width:_,ellipsis:x,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(m["setTooltipConfig"]({el:O,componentModel:e,itemName:r}),O.__fullText=r,O.anid="name",e.get("triggerEvent")){var S=ni.makeAxisEventDataBase(e);S.targetType="axisName",S.name=r,Object(v["a"])(O).eventData=S}i.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function ri(t,e,n,i){var r,o,a=Object(it["v"])(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Object(it["l"])(a-ei/2)?(o=l?"bottom":"top",r="center"):Object(it["l"])(a-1.5*ei)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*ei&&a>ei/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function oi(t,e,n){if(!Object(Cn["j"])(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(ai(o),ai(u)):si(o,a)&&(i?(ai(a),ai(c)):(ai(o),ai(u))),!1===r?(ai(s),ai(d)):si(l,s)&&(r?(ai(l),ai(h)):(ai(s),ai(d)))}}function ai(t){t&&(t.ignore=!0)}function si(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=An["d"]([]);return An["g"](r,r,-t.rotation),n.applyTransform(An["f"]([],r,t.getLocalTransform())),i.applyTransform(An["f"]([],r,e.getLocalTransform())),n.intersect(i)}}function li(t){return"middle"===t||"center"===t}function ui(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Object(kn["b"])(a,a,e),Object(kn["b"])(s,s,e));var c=new Qn["a"]({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});m["subPixelOptimizeLine"](c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function ci(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),c=ui(u,e.transform,l,Object(g["i"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)t.add(c[d]);return c}}function di(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=Object(g["i"])(s.getLineStyle(),Object(g["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=ui(a[c],e.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)t.add(d[h])}}function hi(t,e,n,i){var r=n.axis,o=Object(g["O"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(Object(g["O"])(i.labelRotate,a.get("rotate"))||0)*ei/180,c=ni.innerTextLayout(i.rotation,u,i.labelDirection),d=n.getCategories&&n.getCategories(!0),h=[],p=ni.isLabelSilent(n),f=n.get("triggerEvent");return Object(g["k"])(l,(function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,y=o.formattedLabel,m=o.rawLabel,b=a;if(d&&d[u]){var x=d[u];Object(g["A"])(x)&&x.textStyle&&(b=new ti["a"](x.textStyle,a,n.ecModel))}var _=b.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=r.dataToCoord(u),S=new G["a"]({x:O,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:Object(w["c"])(b,{text:y,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:Object(g["w"])(_)?_("category"===r.type?m:"value"===r.type?u+"":u,l):_})});if(S.anid="label_"+u,f){var M=ni.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=m,M.tickIndex=l,"category"===r.type&&(M.dataIndex=u),Object(v["a"])(S).eventData=M}e.add(S),S.updateTransform(),h.push(S),t.add(S),S.decomposeTransform()})),h}}var pi=ni;function fi(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return gi(n,t,e),n.seriesInvolved&&mi(n,t),n}function gi(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(g["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Si(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(Object(g["k"])(n.getAxes(),Object(g["h"])(f,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var d="axis"===c.get("trigger"),h="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(d||h)&&Object(g["k"])(p.baseAxes,Object(g["h"])(f,!h||"cross",d)),h&&Object(g["k"])(p.otherAxes,Object(g["h"])(f,"cross",!1))}}function f(i,s,u){var d=u.model.getModel("axisPointer",r),h=d.get("show");if(h&&("auto"!==h||i||wi(d))){null==s&&(s=d.get("triggerTooltip")),d=i?yi(u,c,r,e,i,s):d;var p=d.get("snap"),f=d.get("triggerEmphasis"),g=Si(u.model),y=s||p||"category"===u.type,m=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:wi(d),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||y;var v=vi(o,u);if(null!=v){var b=a[v]||(a[v]={axesInfo:{}});b.axesInfo[g]=m,b.mapper=o[v].mapper,m.linkGroup=b}}}}))}function yi(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(g["k"])(s,(function(t){l[t]=Object(g["d"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var d=l.lineStyle=a.get("crossStyle");d&&Object(g["i"])(u,d.textStyle)}}return t.model.getModel("axisPointer",new ti["a"](l,n,i))}function mi(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(g["k"])(t.coordSysAxesInfo[Si(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())}))}))}function vi(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(bi(o[i+"AxisId"],n.id)||bi(o[i+"AxisIndex"],n.componentIndex)||bi(o[i+"AxisName"],n.name))return r}}function bi(t,e){return"all"===t||Object(g["t"])(t)&&Object(g["r"])(t,e)>=0||t===e}function xi(t){var e=_i(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=wi(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function _i(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Si(t)]}function Oi(t){var e=_i(t);return e&&e.axisPointerModel}function wi(t){return!!t.get(["handle","show"])}function Si(t){return t.type+"||"+t.id}var Mi={},Ii=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&xi(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=Oi(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Mi[t]=e},e.getAxisPointerClass=function(t){return t&&Mi[t]},e.type="axis",e}(hn["a"]),ji=Ii,Ci=Object(H["o"])();function Ti(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=Ci(t).splitAreaColors,h=g["f"](),p=0;if(d)for(var f=0;f<u.length;f++){var y=d.get(u[f].tickValue);if(null!=y){p=(y+(c-1)*f)%c;break}}var m=r.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=g["t"](s)?s:[s];for(f=1;f<u.length;f++){var b=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,O=void 0,w=void 0;r.isHorizontal()?(x=m,_=l.y,O=b-x,w=l.height,m=x+O):(x=l.x,_=m,O=l.width,w=b-_,m=_+w);var S=u[f-1].tickValue;null!=S&&h.set(S,p),e.add(new et["a"]({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:O,height:w},style:g["i"]({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}Ci(t).splitAreaColors=h}}}function Di(t){Ci(t).splitAreaColors=null}var Ai=["axisLine","axisTickLabel","axisName"],ki=["splitArea","splitLine","minorSplitLine"],Li=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(l["a"])(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new h["a"],this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Bn(a,e),l=new pi(e,g["m"]({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Object(Fn["e"])(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));g["k"](Ai,l.add,l),this._axisGroup.add(l.getGroup()),g["k"](ki,(function(t){e.get([t,"show"])&&Pi[t](this,this._axisGroup,e,a)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||m["groupTransition"](o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){Di(this)},e.type="cartesianAxis",e}(ji),Pi={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=g["t"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,d=r.getTicksCoords({tickModel:o}),h=[],p=[],f=a.getLineStyle(),y=0;y<d.length;y++){var v=r.toGlobalCoord(d[y].coord);u?(h[0]=v,h[1]=l.y,p[0]=v,p[1]=l.y+l.height):(h[0]=l.x,h[1]=v,p[0]=l.x+l.width,p[1]=v);var b=c++%s.length,x=d[y].tickValue,_=new Qn["a"]({anid:null!=x?"line_"+d[y].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:g["i"]({stroke:s[b]},f),silent:!0});m["subPixelOptimizeLine"](_.shape,f.lineWidth),e.add(_)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],d=[],h=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=r.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,d[0]=g,d[1]=s.y+s.height):(c[0]=s.x,c[1]=g,d[0]=s.x+s.width,d[1]=g);var y=new Qn["a"]({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0});m["subPixelOptimizeLine"](y.shape,h.lineWidth),e.add(y)}},splitArea:function(t,e,n,i){Ti(t,e,n,i)}},Ni=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="xAxis",e}(Li),Ri=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Ni.type,e}return Object(l["a"])(e,t),e.type="yAxis",e}(Li),Ei=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Object(l["a"])(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new et["a"]({shape:t.coordinateSystem.getRect(),style:Object(g["i"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(hn["a"]),zi={offset:0};function Vi(t){t.registerComponentView(Ei),t.registerComponentModel(gn),t.registerCoordinateSystem("cartesian2d",$n),In(t,"x",mn,zi),In(t,"y",mn,zi),t.registerComponentView(Ni),t.registerComponentView(Ri),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function Bi(t){Object(i["a"])(Vi),t.registerSeriesModel(nn),t.registerChartView(dn),t.registerLayout(Dt("scatter"))}function Gi(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();g["k"](r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=Hi(r)?r:Fi(i)}))})),e.each((function(t){var r=g["o"](n[t],(function(t){return Hi(t)}))||Fi(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function Hi(t){return!isNaN(t[0])&&!isNaN(t[1])}function Fi(t){return[t.cx,t.cy]}function Wi(t){var e=t.polar;if(e){g["t"](e)||(e=[e]);var n=[];g["k"](e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],g["t"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}g["k"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var qi=n("87b1"),Ui=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=d["c"](t.getItemVisual(e,"symbolSize")),r=d["a"](n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function l(e,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var u=s(r,o);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),m[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,o)):u.setPosition(n[l]),i.add(u))}}function u(t){return g["H"](t,(function(t){return[i.cx,i.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var i=new qi["a"],r=new Ae["a"],a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),y["c"](i,a,t,e),y["c"](r,a,t,e);var s=new h["a"],c=new h["a"];s.add(r),s.add(i),s.add(c),l(r.shape.points,n,c,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),u=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(l(r.shape.points,c.shape.points,u,o,e,!1),Object(y["g"])(s),Object(y["g"])(r),y["h"](r,c,t),y["h"](s,c,t),o.setItemGraphicEl(e,i))})).remove((function(t){r.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(g["i"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(b["I"])(i,n,"lineStyle"),Object(b["I"])(a,n,"areaStyle");var c=n.getModel("areaStyle"),d=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=d,g["k"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&d})),a.useStyle(g["i"](c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof S["a"]){var i=t.style;t.useStyle(g["m"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;var r=t.ensureState("emphasis");r.style=g["d"](p);var a=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==a||isNaN(a))&&(a=""),Object(w["g"])(t,Object(w["e"])(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),Object(b["J"])(t,h.get("focus"),h.get("blurScope"),h.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(tt["a"]),Yi=Ui,Xi=n("217c"),Zi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ze(g["c"](this.getData,this),g["c"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return Ue(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(t),s=""===a?this.name:a,l=Object(Xi["e"])(this,t);return Object(Xi["c"])("section",{header:s,sortBlocks:!0,blocks:g["H"](o,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Object(Xi["c"])("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(g["H"](n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(c["b"]),Ki=Zi,Ji=wn.value;function $i(t,e){return g["i"]({show:e},t)}var Qi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),d=g["H"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=g["i"]({color:d.color},a));var p=g["I"](g["d"](d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:c},!1);if(g["C"](l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else g["w"](l)&&(p.name=l(p.name,p));var y=new ti["a"](p,null,this.ecModel);return g["K"](y,yn["a"].prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:g["I"]({lineStyle:{color:"#bbb"}},Ji.axisLine),axisLabel:$i(Ji.axisLabel,!1),axisTick:$i(Ji.axisTick,!1),splitLine:$i(Ji.splitLine,!0),splitArea:$i(Ji.splitArea,!0),indicator:[]},e}(pn["a"]),tr=Qi,er=n("d9fc"),nr=n("4573"),ir=["axisLine","axisTickLabel","axisName"],rr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=g["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new pi(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));g["k"](i,(function(t){g["k"](ir,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),h=g["t"](c)?c:[c],p=g["t"](d)?d:[d],f=[],y=[];if("circle"===i)for(var v=n[0].getTicksCoords(),b=e.cx,x=e.cy,_=0;_<v.length;_++){if(l){var O=D(f,h,_);f[O].push(new er["a"]({shape:{cx:b,cy:x,r:v[_].coord}}))}if(u&&_<v.length-1){O=D(y,p,_);y[O].push(new nr["a"]({shape:{cx:b,cy:x,r0:v[_].coord,r:v[_+1].coord}}))}}else{var w,S=g["H"](n,(function(t,n){var i=t.getTicksCoords();return w=null==w?i.length-1:Math.min(i.length-1,w),g["H"](i,(function(t){return e.coordToPoint(t.coord,n)}))})),M=[];for(_=0;_<=w;_++){for(var I=[],j=0;j<n.length;j++)I.push(S[j][_]);if(I[0]&&I.push(I[0].slice()),l){O=D(f,h,_);f[O].push(new Ae["a"]({shape:{points:I}}))}if(u&&M){O=D(y,p,_-1);y[O].push(new qi["a"]({shape:{points:I.concat(M)}}))}M=I.slice().reverse()}}var C=a.getLineStyle(),T=s.getAreaStyle();g["k"](y,(function(t,e){this.group.add(m["mergePath"](t,{style:g["i"]({stroke:"none",fill:p[e%p.length]},T),silent:!0}))}),this),g["k"](f,(function(t,e){this.group.add(m["mergePath"](t,{style:g["i"]({fill:"none",stroke:h[e%h.length]},C),silent:!0}))}),this)}function D(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(hn["a"]),or=rr,ar=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return Object(l["a"])(e,t),e}(En["a"]),sr=ar,lr=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(g["H"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new sr(n,new Wn["a"]);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[r,o]},t.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 r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=it["q"](n[0],i),this.cy=it["q"](n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(g["C"])(a)||Object(g["z"])(a))&&(a=[0,a]),this.r0=it["q"](a[0],o),this.r=it["q"](a[1],o),Object(g["k"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,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)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;Object(g["k"])(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();Object(g["k"])(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),o=new Wn["a"];o.setExtent(0,r),o.setInterval(1),Object(g["k"])(n,(function(t,e){Un(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}(),ur=lr;function cr(t){t.registerCoordinateSystem("radar",ur),t.registerComponentModel(tr),t.registerComponentView(or),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function dr(t){Object(i["a"])(cr),t.registerChartView(Yi),t.registerSeriesModel(Ki),t.registerLayout(Gi),t.registerProcessor(De("radar")),t.registerPreprocessor(Wi)}var hr=n("6fd3"),pr=n("607d"),fr=n("1be7"),gr="\0_ec_interaction_mutex";function yr(t,e,n){var i=br(t);i[e]=n}function mr(t,e,n){var i=br(t),r=i[e];r===n&&(i[e]=null)}function vr(t,e){return!!br(t)[e]}function br(t){return t[gr]||(t[gr]={})}fr["c"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},g["L"]);var xr=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(g["c"])(n._mousedownHandler,n),r=Object(g["c"])(n._mousemoveHandler,n),o=Object(g["c"])(n._mouseupHandler,n),a=Object(g["c"])(n._mousewheelHandler,n),s=Object(g["c"])(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(g["i"])(Object(g["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return Object(l["a"])(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!pr["d"](t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&wr("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!vr(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&pr["g"](t.event),Or(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){pr["d"](t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=wr("zoomOnMouseWheel",t,this._opt),n=wr("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;_r(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);_r(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!vr(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;_r(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(hr["a"]);function _r(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(pr["g"](i.event),Or(t,e,n,i,r))}function Or(t,e,n,i,r){r.isAvailableBehavior=Object(g["c"])(wr,null,n,i),t.trigger(e,r)}function wr(t,e,n){var i=n[t];return!t||i&&(!Object(g["C"])(i)||e.event[i+"Key"])}var Sr=xr;function Mr(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Ir(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var jr={axisPointer:1,tooltip:1,brush:1};function Cr(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!jr.hasOwnProperty(i.mainType)&&r&&r.model!==n}var Tr=n("d4c6"),Dr=n("3041"),Ar=n("4a80"),kr=n("f279"),Lr=Object(g["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Pr=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(g["f"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Object(Ar["a"])(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Rr(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Object(Dr["b"])(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(g["b"])(null!=n)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var i=new h["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,d=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,d=o):a&&(u=a.y,d=a.height),null==l||null==u){var p=n.getBoundingRect();null==l&&(l=p.x,c=p.width),null==u&&(u=p.y,d=p.height)}s=this._boundingRect=new rn["a"](l,u,c,d)}if(a){var f=Object(Dr["a"])(a,s);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new et["a"]({shape:s.plain()}));var y=[];return Object(g["k"])(e.named,(function(t){null!=Lr.get(t.svgNodeTagLower)&&(y.push(t),Nr(t.el))})),{root:i,boundingRect:s,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function Nr(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function Rr(t){var e=[],n=Object(g["f"])();return Object(g["k"])(t,(function(t){if(null==t.namedFrom){var i=new kr["d"](t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}for(var Er=n("bda7"),zr=[126,25],Vr="南海诸岛",Br=[[[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]]],Gr=0;Gr<Br.length;Gr++)for(var Hr=0;Hr<Br[Gr].length;Hr++)Br[Gr][Hr][0]/=10.5,Br[Gr][Hr][1]/=-14,Br[Gr][Hr][0]+=zr[0],Br[Gr][Hr][1]+=zr[1];function Fr(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Vr)return;e.push(new kr["c"](Vr,g["H"](Br,(function(t){return{type:"polygon",exterior:t}})),zr))}}var Wr={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function qr(t,e){if("china"===t){var n=Wr[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var Ur=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Yr(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:Ur[0]})}var Xr="name",Zr=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(g["f"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=Jr(e)}return t.prototype.load=function(t,e){e=e||Xr;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Kr(i)})}var r=Object(g["f"])(),o=[];return Object(g["k"])(n.regions,(function(e){var n=e.name;t&&Object(g["q"])(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new rn["a"](0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?Object(Er["a"])(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return Fr(n,e),Object(g["k"])(e,(function(t){var e=t.name;qr(n,t),Yr(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Kr(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function Jr(t){return Object(g["C"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var $r=Object(g["f"])(),Qr={registerMap:function(t,e,n){if(e.svg){var i=new Pr(t,e.svg);$r.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new Zr(t,r,n);$r.set(t,i)}},getGeoResource:function(t){return $r.get(t)},getMapForUser:function(t){var e=$r.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=$r.get(t);if(i)return i.load(e,n)}},to=n("b3c1"),eo=n("19eb"),no=["rect","circle","line","ellipse","polygon","polyline","path"],io=g["f"](no),ro=g["f"](no.concat(["g"])),oo=g["f"](no.concat(["g"])),ao=Object(H["o"])();function so(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function lo(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var uo=function(){function t(t){var e=new h["a"];this.uid=Object(zt["c"])("ec_map_draw"),this._controller=new Sr(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new h["a"]),e.add(this._svgGroup=new h["a"])}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,h=c.roam,p=!l.childAt(0)||r;p?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):y["h"](u,h,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=g["f"](),n=g["f"](),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function d(t){return{shape:{points:c(t)}}}i.removeAll(),g["k"](t.geo.regions,(function(r){var c=r.name,p=e.get(c),f=n.get(c)||{},y=f.dataIdx,m=f.regionModel;p||(p=e.set(c,new h["a"]),i.add(p),y=a?a.indexOfName(c):null,m=t.isGeo?o.getRegionModel(c):a?a.getItemModel(y):null,n.set(c,{dataIdx:y,regionModel:m}));var v=[],b=[];g["k"](r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=yo(e,l)),g["k"](e,(function(t){v.push(new qi["a"](d(t)))}))}else{var n=t.points;l&&(n=yo(n,l,!0)),g["k"](n,(function(t){b.push(new Ae["a"](d(t)))}))}}));var x=u(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new Tr["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(i),co(t,i,y,m),ho(t,i,c,m,o,y,x),n&&(lo(i),g["k"](i.states,lo))}}_(v),_(b,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;po(t,e,i,s,o,a),fo(t,e,i,s,o),go(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=g["f"](),r=!1;g["k"](this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=io.get(s)&&l instanceof eo["c"]&&co(t,l,u,c),l instanceof eo["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=oo.get(s)&&ho(t,l,n,c,o,u,null),po(t,l,n,c,o,u),fo(t,l,n,c,o),null!=ro.get(s))){var d=go(t,l,n,c,o);"self"===d&&(r=!0);var h=i.get(n)||i.set(n,[]);h.push(l)}}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Object(b["G"])(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=Qr.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=Qr.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,Mr(o,t.dx,t.dy),n.dispatchAction(g["m"](s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Ir(o,t.scale,t.originX,t.originY),n.dispatchAction(g["m"](s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!Cr(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=ao(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function co(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=so(r),u=so(o),c=so(s),d=so(a),h=t.data;if(h){var p=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Object(to["a"])(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=d,Object(b["G"])(e)}function ho(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var d=l?n:o,h=void 0;(!s||o>=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(w["g"])(e,Object(w["e"])(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=e.getTextContent();if(f&&(ao(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function po(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Object(v["a"])(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function fo(t,e,n,i,r){t.data||m["setTooltipConfig"]({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function go(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Object(b["J"])(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(b["n"])(e,r,n),a}function yo(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),g["k"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var mo=uo,vo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.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(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new mo(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new er["a"]({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:b["j"]+1)});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),d=u.indexOfName(c),h=i.getItemModel(n),p=h.getModel("label"),f=u.getItemGraphicEl(d);Object(w["g"])(l,Object(w["e"])(h),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){Object(b["H"])(l,t)}}r.add(l)}}}))},e.type="map",e}(tt["a"]),bo=vo,xo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],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.getCenter())}},n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t){for(var e=Ue(this,{coordDimensions:["value"],encodeDefaulter:g["h"](Ye["d"],this)}),n=g["f"](),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}var s=Qr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return g["k"](s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Object(Xi["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(Xi["c"])("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Object(d["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(c["b"]),_o=xo;function Oo(t,e){var n={};return g["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d<c;d++)l=Math.min(l,n[a][d]),u=Math.max(u,n[a][d]),s+=n[a][d];return o="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:o}))}function wo(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)})),g["k"](e,(function(t,e){for(var n=Oo(g["H"](t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]}))}function So(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};g["k"](n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("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.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var Mo=n("8582"),Io=kn["b"],jo=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Mo["c"],n._rawTransformable=new Mo["c"],n.name=e,n}return Object(l["a"])(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new rn["a"](t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new rn["a"](t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new rn["a"](t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Object(it["q"])(t[0],e.getWidth()),Object(it["q"])(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.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()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=kn["b"]([],i,t),n=kn["b"]([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),An["b"](this.transform||(this.transform=[]),e.transform||An["c"]()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],An["e"](this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Mo["c"];return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Io(n,t,i):kn["d"](n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?Io([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=Co(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=Co(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Mo["c"]);function Co(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var To=jo,Do={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ao=["lng","lat"],ko=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=Ao,r.type="geo",r._nameCoordMap=g["f"](),r.map=n;var o,a=i.projection,s=Qr.load(n,i.nameMap,i.nameProperty),l=Qr.getGeoResource(n),u=(r.resourceType=l?l.type:null,r.regions=s.regions),c=Do[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(a);o=o||h.clone(),o.union(h)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:g["P"](i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return Object(l["a"])(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new rn["a"](t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(g["C"](t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=Lo(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=Lo(e);return i===this?i.pointToData(n):null},e}(To);function Lo(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",H["b"]).models[0]||{}).coordinateSystem:null}g["K"](ko,To);var Po=ko;function No(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,d=o.project([t+s*c,e+l*c]);kn["l"](i,i,d),kn["k"](r,r,d)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var d,h,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),y=t.get("layoutSize"),m=e.getWidth(),v=e.getHeight(),b=f.width/f.height*this.aspectScale,x=!1;if(g&&y&&(d=[it["q"](g[0],m),it["q"](g[1],v)],h=it["q"](y,Math.min(m,v)),isNaN(d[0])||isNaN(d[1])||isNaN(h)||(x=!0)),x)p={},b>1?(p.width=h,p.height=h/b):(p.height=h,p.width=h*b),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,p=Se["g"](_,{width:m,height:v})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function Ro(t,e){g["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var Eo=function(){function t(){this.dimensions=Ao}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new Po(o+r,o,g["m"]({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=No,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),g["k"](r,(function(t,r){var o=g["H"](t,(function(t){return t.get("nameMap")})),a=new Po(r,r,g["m"]({nameMap:g["J"](o)},i(t[0])));a.zoomLimit=g["O"].apply(null,g["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=No,a.resize(t[0],e),g["k"](t,(function(t){t.coordinateSystem=a,Ro(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=g["f"](),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=Qr.load(e,n,i);return g["k"](s.regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}(),zo=new Eo,Vo=zo,Bo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){var i=Qr.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),H["f"](t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=Vo.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=g["N"](e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new ti["a"](i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),g["f"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ti["a"](null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return g["w"](i)?(r.status=e,i(r)):g["C"](i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(pn["a"]),Go=Bo;function Ho(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Fo(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Ho(t,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),d=(e.originY-t.y)*(a-1);t.x-=c,t.y-=d,t.updateTransform(),t.setCenter(Ho(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var Wo=n("fadd"),qo=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new mo(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;Object(Wo["a"])(t.target,(function(t){return null!=(e=Object(v["a"])(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=Object(v["a"])(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(hn["a"]),Uo=qo;function Yo(t,e,n){Qr.registerMap(t,e,n)}function Xo(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;Object(g["k"])(o.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var a=[];Object(g["k"])(i,(function(t,e){i[e]&&a.push(e)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",Vo),t.registerComponentModel(Go),t.registerComponentView(Uo),t.registerImpl("registerMap",Yo),t.registerImpl("getMap",(function(t){return Qr.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=Fo(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&Object(g["k"])(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function Zo(t){Object(i["a"])(Xo),t.registerChartView(bo),t.registerSeriesModel(_o),t.registerLayout(So),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,wo),Object(we["a"])("map",t.registerAction)}var Ko=n("ac0f");function Jo(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[e];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function $o(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){ia(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=ra(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Qo(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function ta(t){return arguments.length?t:ua}function ea(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function na(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ia(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function ra(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=oa(s),o=aa(o),s&&o){r=oa(r),a=aa(a),r.hierNode.ancestor=t;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+i(s,o);h>0&&(la(sa(s,t,n),t,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!oa(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!aa(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function oa(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aa(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function sa(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function la(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function ua(t,e){return t.parentNode===e.parentNode?1:2}var ca=n("e263"),da=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),ha=function(t){function e(e){return t.call(this,e)||this}return Object(l["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new da},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(it["q"])(e.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(d[0],d[1]),t.moveTo(o[0],o[1]),d[l]=o[l],t.lineTo(d[0],d[1]),d[l]=a[l],t.lineTo(d[0],d[1]),t.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var p=n[h];t.moveTo(p[0],p[1]),d[l]=p[l],t.lineTo(d[0],d[1])}},e}(F["b"]),pa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new h["a"],n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this._controller=new Sr(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup,a=t.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add((function(e){fa(i,e)&&ga(i,e,null,o,t)})).update((function(e,n){var r=s.getItemGraphicEl(n);fa(i,e)?ga(i,e,r,o,t):r&&ba(s,n,r,o,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&ba(s,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],o=[];ca["d"](i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new To;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Cr(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Mr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Ir(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,r=e.getZoom(),o=(r-1)*n+1;return o/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(tt["a"]);function fa(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function ga(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,d=a.parentNode===c?a:a.parentNode||a,h=t.getItemGraphicEl(d.dataIndex),p=d.getLayout(),f=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,m=a.getLayout();o?(n=new j(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,y["h"](n,{x:m.x,y:m.y},r);var x=n.getSymbolPath();if("radial"===r.get("layout")){var _=c.children[0],O=_.getLayout(),w=_.children.length,S=void 0,M=void 0;if(m.x===O.x&&!0===a.isExpand&&_.children.length){var I={x:(_.children[0].getLayout().x+_.children[w-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[w-1].getLayout().y)/2};S=Math.atan2(I.y-O.y,I.x-O.x),S<0&&(S=2*Math.PI+S),M=I.x<O.x,M&&(S-=Math.PI)}else S=Math.atan2(m.y-O.y,m.x-O.x),S<0&&(S=2*Math.PI+S),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(M=m.x<O.x,M&&(S-=Math.PI)):(M=m.x>O.x,M||(S-=Math.PI));var C=M?"left":"right",T=s.getModel("label"),D=T.get("rotate"),A=D*(Math.PI/180),k=x.getTextContent();k&&(x.setTextConfig({position:T.get("position")||C,rotation:null==D?-S:A,origin:"center"}),k.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),P="relative"===L?g["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():null;P&&(Object(v["a"])(n).focus=P),ya(r,a,c,n,f,p,m,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===b["d"]||Object(b["H"])(n.__edge,e)}})}function ya(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),d=t.getOrient(),h=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),m=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(m||(m=i.__edge=new Ko["a"]({shape:xa(c,d,h,r,r)})),y["h"](m,{shape:xa(c,d,h,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,x=[],_=0;_<v.length;_++){var O=v[_].getLayout();x.push([O.x,O.y])}m||(m=i.__edge=new ha({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:p}})),y["h"](m,{shape:{parentPoint:[a.x,a.y],childPoints:x}},t)}}else 0;m&&("polyline"!==u||e.isExpand)&&(m.useStyle(g["i"]({strokeNoScale:!0,fill:null},f)),Object(b["I"])(m,l,"lineStyle"),Object(b["G"])(m),s.add(m))}function ma(t,e,n,i,r){var o=e.tree.root,a=va(o,t),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),d=c.__edge,h=u.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),m=i.get(["lineStyle","curveness"]);h&&("curve"===p?y["e"](h,{shape:xa(f,g,m,l,l),style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}):"polyline"===p&&"orthogonal"===i.get("layout")&&y["e"](h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}))}}function va(t,e){var n,i=e.parentNode===t?e:e.parentNode||e;while(n=i.getLayout(),null==n)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function ba(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=va(a,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};y["e"](n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(e){ma(e,t,i,r,l)})),ma(o,t,i,r,l)}function xa(t,e,n,i,r){var o,a,s,l,u,c,d,h;if("radial"===t){u=i.rawX,d=i.rawY,c=r.rawX,h=r.rawY;var p=ea(u,d),f=ea(u,d+(h-d)*n),g=ea(c,h+(d-h)*n),y=ea(c,h);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,d=i.y,c=r.x,h=r.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=d,s=c+(u-c)*n,l=h),"TB"!==e&&"BT"!==e||(o=u,a=d+(h-d)*n,s=c,l=h+(d-h)*n),{x1:u,y1:d,x2:c,y2:h,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var _a=pa,Oa=Object(H["o"])();function wa(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Da(e,n,t),Object(g["k"])(n,(function(n){Object(g["k"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(g["h"])(Sa,t))}))})),e.wrapMethod("cloneShallow",Object(g["h"])(Ia,t)),Object(g["k"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(g["h"])(Ma,t))})),Object(g["b"])(n[e.dataType]===e)}function Sa(t,e){if(Ta(this)){var n=Object(g["m"])({},Oa(this).datas);n[this.dataType]=e,Da(e,n,t)}else Aa(e,this.dataType,Oa(this).mainData,t);return e}function Ma(t,e){return t.struct&&t.struct.update(),e}function Ia(t,e){return Object(g["k"])(Oa(e).datas,(function(n,i){n!==e&&Aa(n.cloneShallow(),i,e,t)})),e}function ja(t){var e=Oa(this).mainData;return null==t||null==e?e:Oa(e).datas[t]}function Ca(){var t=Oa(this).mainData;return null==t?[{data:t}]:Object(g["H"])(Object(g["F"])(Oa(t).datas),(function(e){return{type:e,data:Oa(t).datas[e]}}))}function Ta(t){return Oa(t).mainData===t}function Da(t,e,n){Oa(t).datas={},Object(g["k"])(e,(function(e,i){Aa(e,i,t,n)}))}function Aa(t,e,n,i){Oa(n).datas[e]=t,Oa(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=ja,t.getLinkedDataAll=Ca}var ka=wa,La=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){g["w"](t)&&(n=e,e=t,t=null),t=t||{},g["C"](t)&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.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},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),Pa=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;function s(t,e){var n=t.value;a=Math.max(a,g["t"](n)?n.length:1),o.push(t);var i=new La(Object(H["e"])(t.name,""),r);e?Na(i,e):r.root=i,r._nodes.push(i);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(e),r.root.updateDepthAndHeight(0);var l=Object(We["b"])(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new qe["a"](l,n);return u.initData(o),i&&i(u),ka({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},t}();function Na(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var Ra=Pa;function Ea(t,e,n){if(t&&g["r"](e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(g["C"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function za(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function Va(t,e){var n=za(t);return g["r"](n,e)>=0}function Ba(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var Ga=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new ti["a"](n,this,this.ecModel),r=Ra.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var a=0;r.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return Object(Xi["c"])("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ba(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(c["b"]),Ha=Ga;function Fa(t,e,n){var i,r=[t],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())e(i,n)}function Wa(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function qa(t,e){t.eachSeriesByType("tree",(function(t){Ua(t,e)}))}function Ua(t,e){var n=na(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=ta((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=ta());var s=t.getData().tree.root,l=s.children[0];if(l){Jo(s),Fa(l,$o,a),s.hierNode.modifier=-l.hierNode.prelim,Wa(l,Qo);var u=l,c=l,d=l;Wa(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>d.depth&&(d=t)}));var h=u===c?1:a(u,c)/2,p=h-u.getLayout().x,f=0,g=0,y=0,m=0;if("radial"===i)f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),Wa(l,(function(t){y=(t.getLayout().x+p)*f,m=(t.depth-1)*g;var e=ea(y,m);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:m},!0)}));else{var v=t.getOrient();"RL"===v||"LR"===v?(g=o/(c.getLayout().x+h+p),f=r/(d.depth-1||1),Wa(l,(function(t){m=(t.getLayout().x+p)*g,y="LR"===v?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(f=r/(c.getLayout().x+h+p),g=o/(d.depth-1||1),Wa(l,(function(t){y=(t.getLayout().x+p)*f,m="TB"===v?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:m},!0)})))}}}function Ya(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(g["m"])(r,i)}))}))}function Xa(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,r=Fo(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function Za(t){t.registerChartView(_a),t.registerSeriesModel(Ha),t.registerLayout(qa),t.registerVisual(Ya),Xa(t)}var Ka=["treemapZoomToNode","treemapRender","treemapMove"];function Ja(t){for(var e=0;e<Ka.length;e++)t.registerAction({type:Ka[e],update:"updateView"},g["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],r=Ea(t,i,e);if(r){var o=e.getViewRoot();o&&(t.direction=Va(o,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}var $a=n("4041");function Qa(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var r=Object($a["b"])(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var ts=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};es(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new ti["a"]({itemStyle:r},this,e);i=t.levels=ns(i,e);var a=g["H"](i||[],(function(t){return new ti["a"](t,o,e)}),this),s=Ra.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Object(Xi["c"])("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ba(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},g["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=g["f"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Qa(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(c["b"]);function es(t){var e=0;g["k"](t.children,(function(t){es(t);var n=t.value;g["t"](n)&&(n=n[0]),e+=n}));var n=t.value;g["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),g["t"](t.value)?t.value[0]=n:t.value=n}function ns(t,e){var n=Object(H["r"])(e.get("color")),i=Object(H["r"])(e.get(["aria","decal","decals"]));if(n){var r,o;t=t||[],g["k"](t,(function(t){var e=new ti["a"](t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}var is=ts,rs=n("80f0"),os=8,as=8,ss=5,ls=function(){function t(t){this.group=new h["a"],t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,i),Se["i"](o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Object(H["e"])(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*os,e.emptyItemWidth);e.totalWidth+=a+as,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=Se["e"](e.pos,e.box),d=e.totalWidth,h=e.renderList,p=i.getModel("itemStyle").getItemStyle(),f=h.length-1;f>=0;f--){var y=h[f],m=y.node,v=y.width,x=y.text;d>c.width&&(d-=v-l,v=l,x=null);var _=new qi["a"]({shape:{points:us(s,0,v,u,f===h.length-1,0===f)},style:Object(g["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new G["a"]({style:Object(w["c"])(r,{text:x})}),textConfig:{position:"inside"},z2:1e4*b["j"],onclick:Object(g["h"])(a,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Object(w["c"])(o,{text:x}),_.ensureState("emphasis").style=p,Object(b["J"])(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),cs(_,t,m),s+=v+as}},t.prototype.remove=function(){this.group.removeAll()},t}();function us(t,e,n,i,r,o){var a=[[r?t:t-ss,e],[t+n,e],[t+n,e+i],[r?t:t-ss,e+i]];return!o&&a.splice(2,0,[t+n+ss,e+i/2]),!r&&a.push([t,e+i/2]),a}function cs(t,e,n){Object(v["a"])(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Ba(n,e)}}var ds=ls,hs=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function ps(){return new hs}var fs=n("282b"),gs=h["a"],ys=et["a"],ms=3,vs="label",bs="upperLabel",xs=10*b["j"],_s=2*b["j"],Os=3*b["j"],ws=Object(fs["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Ss=function(t){var e=ws(t);return e.stroke=e.fill=e.lineWidth=null,e},Ms=Object(H["o"])(),Is=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=js(),n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(g["r"])(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],a=Ea(i,o,t),s=i&&i.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,d="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(l),p=t.get("animation"),f=this._doRender(h,t,d);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(h,f,t,d),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new gs,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o=js(),a=js(),s=this._storage,l=[];function u(t,i,r,u){return Cs(e,a,s,n,o,l,t,i,r,u)}d(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=h(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:p};function d(t,e,n,i,r){function o(t){return t.getId()}function a(o,a){var s=null!=o?t[o]:null,l=null!=a?e[a]:null,c=u(s,l,n,r);c&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(e=t,Object(g["k"])(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new rs["a"](e,t,o,o).add(a).update(a).remove(Object(g["h"])(a,null)).execute()}function h(t){var e=js();return t&&Object(g["k"])(t,(function(t,n){var i=e[n];Object(g["k"])(t,(function(t){t&&(i.push(t),Ms(t).willDelete=!0)}))})),e}function p(){Object(g["k"])(c,(function(t){Object(g["k"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(g["k"])(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(g["w"])(r)?0:r)||0,s=(Object(g["w"])(o)?null:o)||"cubicOut",l=ps();Object(g["k"])(e.willDeleteEls,(function(t,e){Object(g["k"])(t,(function(t,n){if(!t.invisible){var r,o=t.parent,u=Ms(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;u.willDelete||(c=u.nodeWidth/2,d=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}}))})),Object(g["k"])(this._storage,(function(t,n){Object(g["k"])(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof h["a"]?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=Object(g["m"])({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(Object(g["c"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new Sr(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",Object(g["c"])(this._onPan,this)),e.on("zoom",Object(g["c"])(this._onZoom,this)));var n=new rn["a"](0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>ms||Math.abs(t.dy)>ms)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new rn["a"](r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=An["c"]();An["i"](s,s,[-e,-n]),An["h"](s,s,[t.scale,t.scale]),An["i"](s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Object(lt["k"])(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ds(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(Va(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=js(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(tt["a"]);function js(){return{nodeGroup:[],background:[],content:[]}}function Cs(t,e,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),d=t.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var f=c.width,y=c.height,m=c.borderWidth,x=c.invisible,_=a.getRawIndex(),O=s&&s.getRawIndex(),S=a.viewChildren,M=c.upperHeight,I=S&&S.length,j=p.getModel("itemStyle"),C=p.getModel(["emphasis","itemStyle"]),T=p.getModel(["blur","itemStyle"]),D=p.getModel(["select","itemStyle"]),A=j.get("borderRadius")||0,k=U("nodeGroup",gs);if(k){if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),Ms(k).nodeWidth=f,Ms(k).nodeHeight=y,c.isAboveViewRoot)return k;var L=U("background",ys,u,_s);L&&B(k,L,I&&c.upperLabelHeight);var P=p.getModel("emphasis"),N=P.get("focus"),R=P.get("blurScope"),E=P.get("disabled"),z="ancestor"===N?a.getAncestorsIndices():"descendant"===N?a.getDescendantIndices():N;if(I)Object(b["y"])(k)&&Object(b["F"])(k,!1),L&&(Object(b["F"])(L,!E),d.setItemGraphicEl(a.dataIndex,L),Object(b["p"])(L,z,R));else{var V=U("content",ys,u,Os);V&&G(k,V),L.disableMorphing=!0,L&&Object(b["y"])(L)&&Object(b["F"])(L,!1),Object(b["F"])(k,!E),d.setItemGraphicEl(a.dataIndex,k),Object(b["p"])(k,z,R)}return k}}}function B(e,n,i){var r=Object(v["a"])(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:y,r:A}),x)F(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Ss(j);l.fill=s;var u=ws(C);u.fill=C.get("borderColor");var c=ws(T);c.fill=T.get("borderColor");var d=ws(D);if(d.fill=D.get("borderColor"),i){var h=f-2*m;W(n,s,o.opacity,{x:m,y:0,width:h,height:M})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,Object(b["G"])(n)}e.add(n)}function G(e,n){var i=Object(v["a"])(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(y-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:A}),x)F(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=Ss(j);u.fill=l,u.decal=s.decal;var c=ws(C),d=ws(T),h=ws(D);W(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,Object(b["G"])(n)}e.add(n)}function F(t){!t.invisible&&o.push(t)}function W(e,n,i,r){var o=p.getModel(r?bs:vs),s=Object(H["e"])(p.get("name"),null),l=o.getShallow("show");Object(w["g"])(e,Object(w["e"])(p,r?bs:vs),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var d=u.style,h=Object(g["M"])(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-h[1]-h[3],0),n=Math.max((r?r.height:e.shape.height)-h[0]-h[2],0);d.width===t&&d.height===n||u.setStyle({width:t,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",q(d,r,c);var f=u.getState("emphasis");q(f?f.style:null,r,c)}}function q(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function U(t,i,o,a){var s=null!=O&&n[t][O],l=r[t];return s?(n[t][O]=null,Y(l,s)):x||(s=new i,s instanceof eo["c"]&&(s.z2=Ts(o,a)),X(l,s)),e[t][_]=s}function Y(t,e){var n=t[_]={};e instanceof gs?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(g["m"])({},e.shape)}function X(t,e){var n=t[_]={},o=a.parentNode,s=e instanceof h["a"];if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function Ts(t,e){return t*xs+e}var Ds=Is,As=n("edae"),ks=g["k"],Ls=g["A"],Ps=-1,Ns=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=g["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=Ys[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(zs(r),Rs(r)):"category"===n?r.categories?Es(r):zs(r,!0):(g["b"]("linear"!==n||r.dataExtent),zs(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return g["c"](this._normalizeData,this)},t.listVisualTypes=function(){return g["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){g["A"](t)?g["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=g["t"](e)?[]:g["A"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&ks(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(g["t"](t))t=t.slice();else{if(!Ls(t))return[];var e=[];ks(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||g["C"](s)&&s===t+"")return o;n&&d(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(Xs(c[1],t,u[1]))return o}else if(u[1]===1/0){if(Xs(c[0],u[0],t))return o}else if(Xs(c[0],u[0],t)&&Xs(c[1],t,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function d(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:Gs("color"),getColorMapper:function(){var t=this.option;return g["c"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),Hs.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=ut["a"](e,t.parsedVisual,i),r?i:ut["h"](i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ut["h"](ut["a"](t,this.option.parsedVisual),"rgba")},category:Hs,piecewise:function(t,e){var n=qs.call(this,e);return null==n&&(n=ut["h"](ut["a"](t,this.option.parsedVisual),"rgba")),n},fixed:Fs}},colorHue:Vs((function(t,e){return ut["f"](t,e)})),colorSaturation:Vs((function(t,e){return ut["f"](t,null,e)})),colorLightness:Vs((function(t,e){return ut["f"](t,null,null,e)})),colorAlpha:Vs((function(t,e){return ut["e"](t,e)})),decal:{applyVisual:Gs("decal"),_normalizedToVisual:{linear:null,category:Hs,piecewise:null,fixed:null}},opacity:{applyVisual:Gs("opacity"),_normalizedToVisual:Ws([0,1])},liftZ:{applyVisual:Gs("liftZ"),_normalizedToVisual:{linear:Fs,category:Fs,piecewise:Fs,fixed:Fs}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:Bs,category:Hs,piecewise:function(t,e){var n=qs.call(this,e);return null==n&&(n=Bs.call(this,t)),n},fixed:Fs}},symbolSize:{applyVisual:Gs("symbolSize"),_normalizedToVisual:Ws([0,1])}},t}();function Rs(t){var e=t.pieceList;t.hasSpecialVisual=!1,g["k"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function Es(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(ks(e,(function(t,e){n[t]=e})),!g["t"](i)){var r=[];g["A"](i)?ks(i,(function(t,e){var i=n[e];r[null!=i?i:Ps]=t})):r[Ps]=i,i=Us(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function zs(t,e){var n=t.visual,i=[];g["A"](n)?ks(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),Us(t,i)}function Vs(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:Ws([0,1])}}function Bs(t){var e=this.option.visual;return e[Math.round(Object(it["m"])(t,[0,1],[0,e.length-1],!0))]||{}}function Gs(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function Hs(t){var e=this.option.visual;return e[this.option.loop&&t!==Ps?t%e.length:t]}function Fs(){return this.option.visual[0]}function Ws(t){return{linear:function(e){return Object(it["m"])(e,t,this.option.visual,!0)},category:Hs,piecewise:function(e,n){var i=qs.call(this,n);return null==i&&(i=Object(it["m"])(e,t,this.option.visual,!0)),i},fixed:Fs}}function qs(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=Ns.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function Us(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g["H"](e,(function(t){var e=ut["g"](t);return e||[0,0,0,1]}))),e}var Ys={linear:function(t){return Object(it["m"])(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Ns.findPieceIndex(t,e,!0);if(null!=n)return Object(it["m"])(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Ps:e},fixed:g["L"]};function Xs(t,e,n){return t?e<=n:e<n}var Zs=Ns,Ks="itemStyle",Js=Object(H["o"])(),$s={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||Qs(n,{},t.getViewRoot().getAncestors(),t)}};function Qs(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(Ks),u=tl(l,e,i),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),d=l.get("borderColor"),h=l.get("borderColorSaturation");null!=h&&(s=el(u),d=nl(h,s)),c.stroke=d;var p=t.viewChildren;if(p&&p.length){var f=rl(t,r,o,l,u,p);Object(g["k"])(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=al(r,u,t,e,f,i);Qs(t,o,n,i)}}))}else s=el(u),c.fill=s}}function tl(t,e,n){var i=Object(g["m"])({},e),r=n.designatedVisualItemStyle;return Object(g["k"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function el(t){var e=il(t,"color");if(e){var n=il(t,"colorAlpha"),i=il(t,"colorSaturation");return i&&(e=Object(ut["f"])(e,null,null,i)),n&&(e=Object(ut["e"])(e,n)),e}}function nl(t,e){return null!=e?Object(ut["f"])(e,null,null,t):null}function il(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function rl(t,e,n,i,r,o){if(o&&o.length){var a=ol(e,"color")||null!=r.color&&"none"!==r.color&&(ol(e,"colorAlpha")||ol(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new Zs(d);return Js(h).drColorMappingBy=c,h}}}function ol(t,e){var n=t.get(e);return Object(g["t"])(n)&&n.length?{name:e,range:n}:null}function al(t,e,n,i,r,o){var a=Object(g["m"])({},e);if(r){var s=r.type,l="color"===s&&Js(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var sl=Math.max,ll=Math.min,ul=g["O"],cl=g["k"],dl=["itemStyle","borderWidth"],hl=["itemStyle","gapWidth"],pl=["upperLabel","show"],fl=["upperLabel","height"],gl={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Se["g"](t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Object(it["q"])(ul(s.width,l[0]),r),c=Object(it["q"])(ul(s.height,l[1]),o),d=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],p=Ea(i,h,t),f="treemapRender"===d||"treemapMove"===d?i.rootRect:null,y=t.getViewRoot(),m=za(y);if("treemapMove"!==d){var v="treemapZoomToNode"===d?wl(t,p,y,u,c):f?[f.width,f.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};y.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(_),yl(y,x,!1,0),_=y.getLayout(),cl(m,(function(t,e){var n=(m[e+1]||y).getValue();t.setLayout(g["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var O=t.getData().tree.root;O.setLayout(Sl(s,f,p),!0),t.setLayoutInfo(s),Ml(O,new rn["a"](-s.x,-s.y,r,o),m,y,0)}};function yl(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(dl),u=s.get(hl)/2,c=Il(s),d=Math.max(l,c),h=l-u,p=d-u;t.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),r=sl(r-2*h,0),o=sl(o-h-p,0);var f=r*o,g=ml(t,s,f,e,n,i);if(g.length){var y={x:h,y:p,width:r,height:o},m=ll(r,o),v=1/0,b=[];b.area=0;for(var x=0,_=g.length;x<_;){var O=g[x];b.push(O),b.area+=O.getLayout().area;var w=_l(b,m,e.squareRatio);w<=v?(x++,v=w):(b.area-=b.pop().getLayout().area,Ol(b,m,y,u,!1),m=ll(y.width,y.height),b.length=b.area=0,v=1/0)}if(b.length&&Ol(b,m,y,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&f<S&&(n=!0)}for(x=0,_=g.length;x<_;x++)yl(g[x],e,n,i+1)}}}function ml(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=g["n"](a,(function(t){return!t.isRemoved()})),bl(a,s);var u=xl(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=vl(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,d=a.length;c<d;c++){var h=a[c].getValue()/u.sum*n;a[c].setLayout({area:h})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function vl(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function bl(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 xl(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],cl(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function _l(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?sl(u*i/l,l/(u*r)):1/0}function Ol(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=t.length;d<h;d++){var p=t[d],f={},g=c?p.getLayout().area/c:0,y=f[l[a]]=sl(c-2*i,0),m=n[s[o]]+n[l[o]]-u,v=d===h-1||m<g?m:g,b=f[l[o]]=sl(v-2*i,0);f[s[a]]=n[s[a]]+ll(i,y/2),f[s[o]]=u+ll(i,b/2),u+=v,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function wl(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,u=l*t.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,d=o.children,h=0,p=d.length;h<p;h++)c+=d[h].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),y=g.get(dl),m=Math.max(y,Il(g));u+=4*y*y+(3*y+m)*Math.pow(u,.5),u>it["a"]&&(u=it["a"]),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[i*v,r*v]}function Sl(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(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 Ml(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new rn["a"](e.x-o.x,e.y-o.y,e.width,e.height);cl(t.viewChildren||[],(function(t){Ml(t,l,n,i,r+1)}))}}function Il(t){return t.get(pl)?t.get(fl):0}function jl(t){t.registerSeriesModel(is),t.registerChartView(Ds),t.registerVisual($s),t.registerLayout(gl),Ja(t)}function Cl(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){Object(g["z"])(i)&&(i=o[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0}))}))}function Tl(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),o=e.getShallow("category");if(null!=o){Object(g["C"])(o)&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(t,"style");Object(g["m"])(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(t,l[u],n.getItemVisual(o,l[u]))}}))}))}function Dl(t){return t instanceof Array||(t=[t,t]),t}function Al(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Dl(t.get("edgeSymbol")),r=Dl(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=Dl(i.getShallow("symbol",!0)),a=Dl(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(g["m"])(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var kl="--\x3e",Ll=function(t){return t.get("autoCurveness")||null},Pl=function(t,e){var n=Ll(t),i=20,r=[];if(g["z"](n))i=n;else if(g["t"](n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},Nl=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(kl)},Rl=function(t){var e=t.split(kl);return[e[0],e[2],e[1]].join(kl)},El=function(t,e){var n=Nl(t.node1,t.node2,e);return e.__edgeMap[n]},zl=function(t,e){var n=Vl(Nl(t.node1,t.node2,e),e),i=Vl(Nl(t.node2,t.node1,e),e);return n+i},Vl=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Bl(t){Ll(t)&&(t.__curvenessList=[],t.__edgeMap={},Pl(t))}function Gl(t,e,n,i){if(Ll(n)){var r=Nl(t,e,n),o=n.__edgeMap,a=o[Rl(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function Hl(t,e,n,i){var r=Ll(e),o=g["t"](r);if(!r)return null;var a=El(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=zl(t,e);Pl(e,u),t.lineStyle=t.lineStyle||{};var c=Nl(t.node1,t.node2,e),d=e.__curvenessList,h=o||u%2?0:1;if(a.isForward)return d[h+s];var p=Rl(c),f=Vl(p,e),y=d[s+f+h];return i?o?r&&0===r[0]?(f+h)%2?y:-y:((f%2?0:1)+h)%2?y:-y:(f+h)%2?y:-y:d[s+f+h]}function Fl(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")])})),Wl(n,t)}}function Wl(t,e){t.eachEdge((function(t,n){var i=g["Q"](t.getModel().get(["lineStyle","curveness"]),-Hl(t,e,n,!0),0),r=kn["c"](t.node1.getLayout()),o=kn["c"](t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function ql(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];Object(g["k"])(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}Wl(i.graph,t)}else e&&"none"!==e||Fl(t)}))}function Ul(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX,r=e.getZoom(),o=(r-1)*n+1;return o/i}function Yl(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Xl=Math.PI,Zl=[];function Kl(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:u}),d){if(n){var h=r.pointToData(i),p=h[0],f=h[1],y=[p-l,f-u];kn["m"](y,y),kn["n"](y,y,c),n.setLayout([l+y[0],u+y[1]],!0);var m=t.get(["circular","rotateLabel"]);$l(n,m,l,u)}Jl[e](t,s,a,c,l,u,d),s.eachEdge((function(e,n){var i,r=g["Q"](e.getModel().get(["lineStyle","curveness"]),Hl(e,t,n),0),o=kn["c"](e.node1.getLayout()),a=kn["c"](e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),u*r+c*(1-r)]),e.setLayout([o,a,i])}))}}}var Jl={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;Zl.length=a;var l=Ul(t);e.eachNode((function(t){var e=Yl(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=Xl/2),Zl[t.dataIndex]=n,s+=2*n}));var u=(2*Xl-s)/a/2,c=0;e.eachNode((function(t){var e=u+Zl[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=e}))}};function $l(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel(),a=o.get(["label","rotate"])||0,s=r.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-i,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var d=c?"left":"right";s.setTextConfig({rotation:-u,position:d,origin:"center"});var h=s.ensureState("emphasis");g["m"](h.textConfig||(h.textConfig={}),{position:d})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function Ql(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&Kl(t,"symbolSize")}))}var tu=kn["o"];function eu(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var d=i[c];d.p||(d.p=kn["e"](a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=kn["c"](d.p),d.edges=null}var h,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){h=t},afterStep:function(t){p=t},step:function(t){h&&h(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;kn["q"](e,c.p,s.p);var d=kn["i"](e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),kn["m"](e,e),!s.fixed&&tu(s.p,s.p,e,f*d*g),!c.fixed&&tu(c.p,c.p,e,-(1-f)*d*g)}}for(o=0;o<n;o++){var y=i[o];y.fixed||(kn["q"](e,l,y.p),tu(y.p,y.p,e,u*g))}for(o=0;o<n;o++){s=i[o];for(var m=o+1;m<n;m++){c=i[m];kn["q"](e,c.p,s.p);d=kn["i"](e);0===d&&(kn["p"](e,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+c.rep)/d/d;!s.fixed&&tu(s.pp,s.pp,e,v),!c.fixed&&tu(c.pp,c.pp,e,-v)}}var b=[];for(o=0;o<n;o++){y=i[o];y.fixed||(kn["q"](b,y.p,y.pp),tu(y.p,y.p,b,g),kn["d"](y.pp,y.p))}g*=.992;var x=g<.01;p&&p(i,r,x),t&&t(x)}}}function nu(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Kl(t,"value"):Fl(t);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),d=a.get("edgeLength"),h=g["t"](c)?c:[c,c],p=g["t"](d)?d:[d,d];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=Object(it["m"])(t,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),y=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=Object(it["m"])(e,u,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=g["Q"](r.getModel().get(["lineStyle","curveness"]),-Hl(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=e.getBoundingRect(),v=eu(f,y,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&kn["d"](t[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,h=u.getLayout();h=h?h.slice():[],h[0]=h[0]||[],h[1]=h[1]||[],kn["d"](h[0],c),kn["d"](h[1],d),+l.curveness&&(h[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(h)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function iu(t,e,n){var i=Object(g["m"])(t.getBoxLayoutParams(),{aspect:n});return Object(Se["g"])(i,{width:e.getWidth(),height:e.getHeight()})}function ru(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];ca["d"](o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=iu(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],d=s[1]-a[1],h=u.width,p=u.height,f=t.coordinateSystem=new To;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,d),f.setViewRect(u.x,u.y,h,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var ou=Qn["a"].prototype,au=Ko["a"].prototype,su=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l["a"])(e,t)})(su);function lu(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var uu=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return Object(l["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new su},e.prototype.buildPath=function(t,e){lu(e)?ou.buildPath.call(this,t,e):au.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return lu(this.shape)?ou.pointAt.call(this,t):au.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=lu(e)?[e.x2-e.x1,e.y2-e.y1]:au.tangentAt.call(this,t);return kn["m"](n,n)},e}(F["b"]),cu=uu,du=["fromSymbol","toSymbol"];function hu(t){return"_"+t+"Type"}function pu(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=d["c"](r),u=d["b"](a||0,l);return i+l+u+(o||"")+(s||"")}function fu(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=d["c"](r),u=d["b"](a||0,l),c=d["a"](i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function gu(t){var e=new cu({name:"line",subPixelOptimize:!0});return yu(e.shape,t),e}function yu(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var mu=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return Object(l["a"])(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),o=gu(r);o.shape.percent=0,y["c"](o,{shape:{percent:1}},i,e),this.add(o),Object(g["k"])(du,(function(n){var i=fu(n,t,e);this.add(i),this[hu(n)]=pu(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};yu(a.shape,o),y["h"](r,a,i,e),Object(g["k"])(du,(function(n){var i=pu(n,t,e),r=hu(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=fu(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||t.hasItemOption){var h=t.getItemModel(e),p=h.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=h.getModel(["blur","lineStyle"]).getLineStyle(),s=h.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),d=p.get("blurScope"),l=Object(w["e"])(h)}var f=t.getItemVisual(e,"style"),y=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,Object(g["k"])(du,(function(t){var e=this.childOfName(t);if(e){e.setColor(y),e.style.opacity=f.opacity;for(var n=0;n<b["g"].length;n++){var i=b["g"][n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var m=i.getRawValue(e);Object(w["g"])(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:y||"#000",defaultOpacity:f.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?Object(it["w"])(m):m)+""});var v=this.getTextContent();if(v){var x=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=x.get("position")||"middle";var _=x.get("distance");Object(g["t"])(_)||(_=[_,_]),v.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Object(b["J"])(this,c,d,u)},e.prototype.highlight=function(){Object(b["r"])(this)},e.prototype.downplay=function(){Object(b["C"])(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");yu(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=kn["q"]([],u,l);if(kn["m"](c,c),e&&(e.setPosition(l),w(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),w(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,h=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,y=s/2,m=a.tangentAt(y),v=[m[1],-m[0]],b=a.pointAt(y);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var x=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(m[1],m[0]);u[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var O=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":O=-g,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":O=g,h="top";break;default:O=0,h="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+O,d=m[0]<0?"right":"left",i.originX=-f*x,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+O,d="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+u[0],i.y=u[1]+O,d=m[0]>=0?"right":"left",i.originX=f*x,i.originY=-O;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||d})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(h["a"]),vu=mu,bu=function(){function t(t){this.group=new h["a"],this._LineCtor=t||vu}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=_u(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_u(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||xu(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(wu(r)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(wu(i)){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);wu(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function xu(t){return t.animators&&t.animators.length>0}function _u(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(w["e"])(e)}}function Ou(t){return isNaN(t[0])||isNaN(t[1])}function wu(t){return t&&!Ou(t[0])&&!Ou(t[1])}var Su=bu,Mu=[],Iu=[],ju=[],Cu=q["h"],Tu=kn["g"],Du=Math.abs;function Au(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){Mu[0]=Cu(r[0],o[0],a[0],c),Mu[1]=Cu(r[1],o[1],a[1],c);var d=Du(Tu(Mu,e)-l);d<s&&(s=d,i=c)}for(var h=0;h<32;h++){var p=i+u;Iu[0]=Cu(r[0],o[0],a[0],i),Iu[1]=Cu(r[1],o[1],a[1],i),ju[0]=Cu(r[0],o[0],a[0],p),ju[1]=Cu(r[1],o[1],a[1],p);d=Tu(Iu,e)-l;if(Du(d)<.01)break;var f=Tu(ju,e)-l;u/=2,d<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function ku(t,e){var n=[],i=q["n"],r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[kn["c"](l[0]),kn["c"](l[1])],l[2]&&l.__original.push(kn["c"](l[2])));var d=l.__original;if(null!=l[2]){if(kn["d"](r[0],d[0]),kn["d"](r[1],d[2]),kn["d"](r[2],d[1]),u&&"none"!==u){var h=Yl(t.node1),p=Au(r,d[0],h*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){h=Yl(t.node2),p=Au(r,d[1],h*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}kn["d"](l[0],r[0]),kn["d"](l[1],r[2]),kn["d"](l[2],r[1])}else{if(kn["d"](o[0],d[0]),kn["d"](o[1],d[1]),kn["q"](a,o[1],o[0]),kn["m"](a,a),u&&"none"!==u){h=Yl(t.node1);kn["o"](o[0],o[0],a,h*e)}if(c&&"none"!==c){h=Yl(t.node2);kn["o"](o[1],o[1],a,-h*e)}kn["d"](l[0],o[0]),kn["d"](l[1],o[1])}}))}function Lu(t){return"view"===t.type}var Pu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){var n=new k,i=new Su,r=this.group;this._controller=new Sr(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(Lu(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):y["h"](s,l,t)}ku(t.getGraph(),Ul(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,h=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),Kl(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case"none":default:u.setItemLayout(n,[r.x,r.y]),Wl(t.getGraph(),t),i.updateLayout(t);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Object(v["a"])(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(v["a"])(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(t){$l(t,f,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._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())}))})()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Cr(e,n,t)})),Lu(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){Mr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Ir(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),ku(t.getGraph(),Ul(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Ul(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){ku(t.getGraph(),Ul(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(tt["a"]),Nu=Pu;function Ru(t){return"_EC_"+t}var Eu=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[Ru(t)]){var i=new zu(t,e);return i.hostGraph=this,this.nodes.push(i),n[Ru(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[Ru(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(g["z"](t)&&(t=this.nodes[t]),g["z"](e)&&(e=this.nodes[e]),t instanceof zu||(t=i[Ru(t)]),e instanceof zu||(e=i[Ru(e)]),t&&e){var o=t.id+"-"+e.id,a=new Vu(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof zu&&(t=t.id),e instanceof zu&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof zu||(e=this._nodesMap[Ru(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null)){var a=[e];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;a.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),zu=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=g["f"](),e=g["f"](),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);var r=[i.node1],o=[i.node2],a=0;while(a<r.length){var s=r[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}a=0;while(a<o.length){var u=o[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),Vu=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=g["f"](),e=g["f"]();t.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],r=0;while(r<n.length){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}r=0;while(r<i.length){var s=i[r];r++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function Bu(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},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)}}}g["K"](zu,Bu("hostGraph","data")),g["K"](Vu,Bu("hostGraph","edgeData"));var Gu=Eu,Hu=n("1f39");function Fu(t,e,n,i,r){for(var o=new Gu(i),a=0;a<t.length;a++)o.addNode(g["O"](t[a].id,t[a].name,a),a);var s=[],l=[],c=0;for(a=0;a<e.length;a++){var d=e[a],h=d.source,p=d.target;o.addEdge(h,p,c)&&(l.push(d),s.push(g["O"](Object(H["e"])(d.id,null),h+" > "+p)),c++)}var f,y=n.get("coordinateSystem");if("cartesian2d"===y||"polar"===y)f=Object(u["a"])(t,n);else{var m=Hu["a"].get(y),v=m&&m.dimensions||[];g["r"](v,"value")<0&&v.concat(["value"]);var b=Object(We["b"])(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new qe["a"](b,n),f.initData(t)}var x=new qe["a"](["value"],n);return x.initData(l,s),r&&r(f,x),ka({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Wu=n("f6d8"),qu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Ze(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(H["f"])(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){Bl(this);var o=Fu(i,n,this,!0,a);return g["k"](o.edges,(function(t){Gl(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){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 n=ti["a"].prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(Xi["c"])("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=Object(Wu["a"])({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=g["H"](this.option.categories||[],(function(t){return null!=t.value?t:g["m"]({value:0},t)})),e=new qe["a"](["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(c["b"]),Uu=qu,Yu={type:"graphRoam",event:"graphRoam",update:"none"};function Xu(t){t.registerChartView(Nu),t.registerSeriesModel(Uu),t.registerProcessor(Cl),t.registerVisual(Tl),t.registerVisual(Al),t.registerLayout(ql),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Ql),t.registerLayout(nu),t.registerCoordinateSystem("graphView",{dimensions:To.dimensions,create:ru}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},g["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},g["L"]),t.registerAction(Yu,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,r=Fo(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var Zu=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),Ku=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Zu},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(F["b"]),Ju=Ku;function $u(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=Object(it["q"])(n[0],e.getWidth()),s=Object(it["q"])(n[1],e.getHeight()),l=Object(it["q"])(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Qu(t,e){var n=null==t?"":t+"";return e&&(Object(g["C"])(e)?n=e.replace("{value}",n):Object(g["w"])(e)&&(n=e(t))),n}var tc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=$u(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),d=c?Wt:nt["a"],h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),y=[s,l];Object(W["b"])(y,!a),s=y[0],l=y[1];for(var m=l-s,v=s,b=[],x=0;h&&x<i.length;x++){var _=Math.min(Math.max(i[x][0],0),1);l=s+m*_;var O=new d({shape:{startAngle:v,endAngle:l,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});O.setStyle({fill:i[x][1]}),O.setStyle(p.getLineStyle(["color","width"])),b.push(O),v=l}b.reverse(),Object(g["k"])(b,(function(t){return o.add(t)}));var w=function(t){if(t<=0)return i[0][1];var e;for(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]};this._renderTicks(t,e,n,w,r,s,l,a,f),this._renderTitleAndDetail(t,e,n,w,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,w,r,s,l,a,f)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var u,c,d=this.group,h=r.cx,p=r.cy,f=r.r,y=+t.get("min"),m=+t.get("max"),v=t.getModel("splitLine"),b=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),O=b.get("splitNumber"),S=Object(it["q"])(v.get("length"),f),M=Object(it["q"])(b.get("length"),f),I=o,j=(a-o)/_,C=j/O,T=v.getModel("lineStyle").getLineStyle(),D=b.getModel("lineStyle").getLineStyle(),A=v.get("distance"),k=0;k<=_;k++){if(u=Math.cos(I),c=Math.sin(I),v.get("show")){var L=A?A+l:l,P=new Qn["a"]({shape:{x1:u*(f-L)+h,y1:c*(f-L)+p,x2:u*(f-S-L)+h,y2:c*(f-S-L)+p},style:T,silent:!0});"auto"===T.stroke&&P.setStyle({stroke:i(k/_)}),d.add(P)}if(x.get("show")){L=x.get("distance")+A;var N=Qu(Object(it["w"])(k/_*(m-y)+y),x.get("formatter")),R=i(k/_),E=u*(f-S-L)+h,z=c*(f-S-L)+p,V=x.get("rotate"),B=0;"radial"===V?(B=-I+2*Math.PI,B>Math.PI/2&&(B+=Math.PI)):"tangential"===V?B=-I-Math.PI/2:Object(g["z"])(V)&&(B=V*Math.PI/180),0===B?d.add(new G["a"]({style:Object(w["c"])(x,{text:N,x:E,y:z,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):d.add(new G["a"]({style:Object(w["c"])(x,{text:N,x:E,y:z,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:E,originY:z,rotation:B}))}if(b.get("show")&&k!==_){L=b.get("distance");L=L?L+l:l;for(var H=0;H<=O;H++){u=Math.cos(I),c=Math.sin(I);var F=new Qn["a"]({shape:{x1:u*(f-L)+h,y1:c*(f-L)+p,x2:u*(f-M-L)+h,y2:c*(f-M-L)+p},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:i((k+H/O)/_)}),d.add(F),I+=C}I-=C}else I+=j}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],f=t.get(["pointer","show"]),m=t.getModel("progress"),x=m.get("show"),_=t.getData(),O=_.mapDimension("value"),w=+t.get("min"),M=+t.get("max"),I=[w,M],j=[o,a];function C(e,n){var i,o=_.getItemModel(e),a=o.getModel("pointer"),s=Object(it["q"])(a.get("width"),r.r),l=Object(it["q"])(a.get("length"),r.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Object(it["q"])(c[0],r.r),p=Object(it["q"])(c[1],r.r),f=a.get("keepAspect");return i=u?Object(d["a"])(u,h-s/2,p-l,s,l,null,f):new Ju({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:p}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function T(t,e){var n=m.get("roundCap"),i=n?Wt:nt["a"],a=m.get("overlap"),u=a?m.get("width"):l/_.count(),c=a?r.r-u:r.r-(t+1)*u,d=a?r.r:r.r-t*u,h=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=M-_.get(O,t)%M),h}(x||f)&&(_.diff(c).add((function(e){var n=_.get(O,e);if(f){var i=C(e,o);y["c"](i,{rotation:-((isNaN(+n)?j[0]:Object(it["m"])(n,I,j,!0))+Math.PI/2)},t),u.add(i),_.setItemGraphicEl(e,i)}if(x){var r=T(e,o),a=m.get("clip");y["c"](r,{shape:{endAngle:Object(it["m"])(n,I,j,a)}},t),u.add(r),Object(v["b"])(t.seriesIndex,_.dataType,e,r),p[e]=r}})).update((function(e,n){var i=_.get(O,e);if(f){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=C(e,a);s.rotation=a,y["h"](s,{rotation:-((isNaN(+i)?j[0]:Object(it["m"])(i,I,j,!0))+Math.PI/2)},t),u.add(s),_.setItemGraphicEl(e,s)}if(x){var l=h[n],d=l?l.shape.endAngle:o,g=T(e,d),b=m.get("clip");y["h"](g,{shape:{endAngle:Object(it["m"])(i,I,j,b)}},t),u.add(g),Object(v["b"])(t.seriesIndex,_.dataType,e,g),p[e]=g}})).execute(),_.each((function(t){var e=_.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=_.getItemGraphicEl(t),l=_.getItemVisual(t,"style"),u=l.fill;if(s instanceof S["a"]){var c=s.style;s.useStyle(Object(g["m"])({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(it["m"])(_.get(O,t),I,[0,1],!0))),s.z2EmphasisLift=0,Object(b["I"])(s,e),Object(b["J"])(s,r,o,a)}if(x){var d=p[t];d.useStyle(_.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(b["I"])(d,e),Object(b["J"])(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(d["a"])(o,e.cx-r/2+Object(it["q"])(a[0],e.r),e.cy-r/2+Object(it["q"])(a[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new h["a"],d=[],p=[],f=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){d[t]=new G["a"]({silent:!0}),p[t]=new G["a"]({silent:!0})})).update((function(t,e){d[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),y=new h["a"],m=i(Object(it["m"])(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),x=r.cx+Object(it["q"])(b[0],r.r),_=r.cy+Object(it["q"])(b[1],r.r),O=d[e];O.attr({z2:g?0:2,style:Object(w["c"])(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),y.add(O)}var S=n.getModel("detail");if(S.get("show")){var M=S.get("offsetCenter"),I=r.cx+Object(it["q"])(M[0],r.r),j=r.cy+Object(it["q"])(M[1],r.r),C=Object(it["q"])(S.get("width"),r.r),T=Object(it["q"])(S.get("height"),r.r),D=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,A=(O=p[e],S.get("formatter"));O.attr({z2:g?0:2,style:Object(w["c"])(S,{x:I,y:j,text:Qu(o,A),width:isNaN(C)?null:C,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Object(w["h"])(O,{normal:S},o,(function(t){return Qu(t,A)})),f&&Object(w["a"])(O,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return Qu(a?a.interpolatedValue:o,A)}}),y.add(O)}c.add(y)})),this.group.add(c),this._titleEls=d,this._detailEls=p},e.type="gauge",e}(tt["a"]),ec=tc,nc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Ue(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(c["b"]),ic=nc;function rc(t){t.registerChartView(ec),t.registerSeriesModel(ic)}var oc=["itemStyle","opacity"],ac=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Ae["a"],a=new G["a"];return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return Object(l["a"])(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(oc);l=null==l?1:l,n||Object(y["g"])(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,y["c"](i,{style:{opacity:l}},r,e)):y["h"](i,{style:{opacity:l},shape:{points:a.points}},r,e),Object(b["I"])(i,o),this._updateLabel(t,e),Object(b["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;Object(w["g"])(r,Object(w["e"])(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new ke["a"](d[0][0],d[0][1]):null},y["h"](r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Le["d"])(n,Object(Le["a"])(a),{stroke:c})},e}(qi["a"]),sc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new ac(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);y["f"](n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(tt["a"]),lc=sc,uc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ze(g["c"](this.getData,this),g["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Ue(this,{coordDimensions:["value"],encodeDefaulter:g["h"](Ye["d"],this)})},e.prototype._defaultLabelLine=function(t){Object(H["f"])(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(c["b"]),cc=uc;function dc(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hc(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return Object(g["w"])(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}function pc(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var i,r,o,a,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),d=t.getItemLayout(e),h=d.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===u?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(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,i="center"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,y=void 0,m=void 0,v=c.get("length");0,"left"===u?(f=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,y=f-v,r=y-5,i="right"):"right"===u?(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,y=f+v,r=y+5,i="left"):"top"===u?(f=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,m=g-v,o=m-5,i="center"):"bottom"===u?(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,m=g+v,o=m+5,i="center"):"rightTop"===u?(f="horizontal"===n?h[3][0]:h[1][0],g="horizontal"===n?h[3][1]:h[1][1],"horizontal"===n?(m=g-v,o=m-5,i="center"):(y=f+v,r=y+5,i="top")):"rightBottom"===u?(f=h[2][0],g=h[2][1],"horizontal"===n?(m=g+v,o=m+5,i="center"):(y=f+v,r=y+5,i="bottom")):"leftTop"===u?(f=h[0][0],g="horizontal"===n?h[0][1]:h[1][1],"horizontal"===n?(m=g-v,o=m-5,i="center"):(y=f-v,r=y-5,i="right")):"leftBottom"===u?(f="horizontal"===n?h[1][0]:h[3][0],g="horizontal"===n?h[1][1]:h[2][1],"horizontal"===n?(m=g+v,o=m+5,i="center"):(y=f-v,r=y-5,i="right")):(f=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,"horizontal"===n?(m=g+v,o=m+5,i="center"):(y=f+v,r=y+5,i="left")),"horizontal"===n?(y=f,r=y):(m=g,o=m),a=[[f,g],[y,m]]}d.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function fc(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=dc(t,e),a=t.get("orient"),s=o.width,l=o.height,u=hc(n,r),c=o.x,d=o.y,h="horizontal"===a?[Object(it["q"])(t.get("minSize"),l),Object(it["q"])(t.get("maxSize"),l)]:[Object(it["q"])(t.get("minSize"),s),Object(it["q"])(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),v="horizontal"===a?s:l,b=(v-m*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var r=n.get(i,t)||0,o=Object(it["m"])(r,[f,g],h,!0),u=void 0;switch(y){case"top":u=d;break;case"center":u=d+(l-o)/2;break;case"bottom":u=d+(l-o);break}return[[e,u],[e,u+o]]}var p,m=n.get(i,t)||0,v=Object(it["m"])(m,[f,g],h,!0);switch(y){case"left":p=c;break;case"center":p=c+(s-v)/2;break;case"right":p=c+s-v;break}return[[p,e],[p+v,e]]};"ascending"===r&&(b=-b,m=-m,"horizontal"===a?c+=s:d+=l,u=u.reverse());for(var _=0;_<u.length;_++){var O=u[_],w=u[_+1],S=n.getItemModel(O);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=b:(M=Object(it["q"])(M,s),"ascending"===r&&(M=-M));var I=x(O,c),j=x(w,c+M);c+=M+m,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}else{var C=S.get(["itemStyle","height"]);null==C?C=b:(C=Object(it["q"])(C,l),"ascending"===r&&(C=-C));I=x(O,d),j=x(w,d+C);d+=C+m,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}}pc(n)}))}function gc(t){t.registerChartView(lc),t.registerSeriesModel(cc),t.registerLayout(fc),t.registerProcessor(De("funnel"))}var yc=.3,mc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new h["a"],n._initialized=!1,n}return Object(l["a"])(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=_c(t);function c(t){var e=xc(o,r,t,l,s);Oc(e,o,t,u)}function d(e,n){var i=a.getItemGraphicEl(n),r=bc(o,e,l,s);o.setItemGraphicEl(e,i),y["h"](i,{shape:{points:r}},t,e),Object(y["g"])(i),Oc(i,o,e,u)}function h(t){var e=a.getItemGraphicEl(t);r.remove(e)}if(o.diff(a).add(c).update(d).remove(h).execute(),!this._initialized){this._initialized=!0;var p=vc(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=_c(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=xc(i,this._dataGroup,l,o,r);u.incremental=!0,Oc(u,i,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(tt["a"]);function vc(t,e,n){var i=t.model,r=t.getRect(),o=new et["a"]({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),y["c"](o,{shape:{width:r.width,height:r.height}},e,n),o}function bc(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);wc(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function xc(t,e,n,i,r){var o=bc(t,n,i,r),a=new Ae["a"]({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function _c(t){var e=t.get("smooth",!0);return!0===e&&(e=yc),e=Object(it["o"])(e),Object(g["l"])(e)&&(e=0),{smooth:e}}function Oc(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");Object(b["I"])(t,r,"lineStyle"),Object(b["J"])(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function wc(t,e){return"category"===e?null==t:null==t||isNaN(t)}var Sc=mc,Mc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{useEncodeDefaulter:Object(g["c"])(Ic,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(c["b"]);function Ic(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(g["k"])(e.dimensions,(function(t){var e=jc(t);n[t]=e})),n}}function jc(t){return+t.replace("dim","")}var Cc=Mc,Tc=["lineStyle","opacity"],Dc={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(Tc,!0);null!=o&&(r=o)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=r}),t.start,t.end)}}}},Ac=Dc;function kc(t){Lc(t),Pc(t)}function Lc(t){if(!t.parallel){var e=!1;g["k"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function Pc(t){var e=H["r"](t.parallelAxis);g["k"](e,(function(e){if(g["A"](e)){var n=e.parallelIndex||0,i=H["r"](t.parallel)[n];i&&i.parallelAxisDefault&&g["I"](e,i.parallelAxisDefault,!1)}}))}var Nc=5,Rc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(g["k"])(Ec,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(g["c"])(t,this))}),this)),Object(Gt["b"])(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Object(Gt["a"])(this,"_throttledDispatchExpand"),Object(g["k"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(g["m"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(hn["a"]),Ec={mousedown:function(t){zc(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(zc(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>Nc)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&zc(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function zc(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var Vc=Rc,Bc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&g["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){g["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=g["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);g["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={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},e}(pn["a"]),Gc=Bc,Hc=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return Object(l["a"])(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(En["a"]),Fc=Hc;function Wc(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=Uc(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Uc(s,[0,a]),r=o=Uc(s,[r,o]),i=0}e[0]=Uc(e[0],n),e[1]=Uc(e[1],n);var l=qc(e,i);e[i]+=t;var u,c=r||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,e[i]=Uc(e[i],d),u=qc(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=e[i]+l.sign*r),u=qc(e,i),null!=o&&u.span>o&&(e[1-i]=e[i]+u.sign*o),e}function qc(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 Uc(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var Yc=g["k"],Xc=Math.min,Zc=Math.max,Kc=Math.floor,Jc=Math.ceil,$c=it["w"],Qc=Math.PI,td=function(){function t(t,e,n){this.type="parallel",this._axesMap=g["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;Yc(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new Fc(t,Cn["a"](o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();Yc(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),Cn["i"](e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=ed(e.get("axisExpandWidth"),l),d=ed(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=ed(p[1]-p[0],l),p[1]=p[0]+t;else{t=ed(c*(d-1),l);var f=e.get("axisExpandCenter")||Kc(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-d);g<3&&(g=0);var y=[Kc($c(p[0]/c,1))+1,Jc($c(p[1]/c,1))-1],m=g/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),Yc(n,(function(e,n){var o=(i.axisExpandable?id:nd)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:Qc/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=An["c"]();An["g"](c,c,u),An["i"](c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];g["k"](o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var d=t.getValues(a,u),h=0,p=o.length;h<p;h++){var f=s[h].getActiveState(d[h]);if("inactive"===f){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return m["applyTransform"]([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return g["d"](this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[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"),d=null!=c[0];if(u)d&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):d&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?Wc(a,i,o,"all"):l="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[Zc(0,p-h/2)],i[1]=Xc(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},t}();function ed(t,e){return Xc(Zc(t,e[0]),e[1])}function nd(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function id(t,e){var n,i,r=e.layoutLength,o=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*o-e.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var rd=td;function od(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new rd(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",H["b"]).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var ad={create:od},sd=ad,ld=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return Object(l["a"])(e,t),e.prototype.getAreaSelectStyle=function(){return Object(fs["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=g["d"](t);if(e)for(var n=e.length-1;n>=0;n--)it["c"](e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(pn["a"]);g["K"](ld,yn["a"]);var ud=ld,cd=!0,dd=Math.min,hd=Math.max,pd=Math.pow,fd=1e4,gd=6,yd=6,md="globalPan",vd={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bd={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},xd={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},_d=0,Od=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new h["a"],n._uid="brushController_"+_d++,Object(g["k"])(th,(function(t,e){this._handlers[e]=Object(g["c"])(t,this)}),n),n}return Object(l["a"])(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||yr(e,md,this._uid),Object(g["k"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(g["I"])(Object(g["d"])(xd),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;mr(t,md,this._uid),Object(g["k"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(g["k"])(t,(function(t){e[t.panelId]=Object(g["d"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(g["H"])(t,(function(t){return Object(g["I"])(Object(g["d"])(xd),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new rs["a"](n,t,s,a).add(l).update(l).remove(u).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return a(t.__brushOption,e)}function l(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):Sd(r,wd(r,s));jd(r,l)}}function u(t){n[t]!==o&&r.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),Ad(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(hr["a"]);function wd(t,e){var n=ih[e.brushType].createCover(t,e);return n.__brushOption=e,Id(n,e),t.group.add(n),n}function Sd(t,e){var n=Cd(e);return n.endCreating&&(n.endCreating(t,e),Id(e,e.__brushOption)),e}function Md(t,e){var n=e.__brushOption;Cd(e).updateCoverShape(t,e,n.range,n)}function Id(t,e){var n=e.z;null==n&&(n=fd),t.traverse((function(t){t.z=n,t.z2=n}))}function jd(t,e){Cd(e).updateCommon(t,e),Md(t,e)}function Cd(t){return ih[t.__brushOption.brushType]}function Td(t,e,n){var i,r=t._panels;if(!r)return cd;var o=t._transform;return Object(g["k"])(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function Dd(t,e){var n=t._panels;if(!n)return cd;var i=e.__brushOption.panelId;return null!=i?n[i]:cd}function Ad(t){var e=t._covers,n=e.length;return Object(g["k"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function kd(t,e){var n=Object(g["H"])(t._covers,(function(t){var e=t.__brushOption,n=Object(g["d"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Ld(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1],a=pd(r*r+o*o,.5);return a>gd}function Pd(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Nd(t,e,n,i){var r=new h["a"];return r.add(new et["a"]({name:"main",style:Vd(n),silent:!0,draggable:!0,cursor:"move",drift:Object(g["h"])(Wd,t,e,r,["n","s","w","e"]),ondragend:Object(g["h"])(kd,e,{isEnd:!0})})),Object(g["k"])(i,(function(n){r.add(new et["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(g["h"])(Wd,t,e,r,n),ondragend:Object(g["h"])(kd,e,{isEnd:!0})}))})),r}function Rd(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=hd(r,yd),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],d=n[1][1],h=c-o+r/2,p=d-o+r/2,f=c-a,g=d-s,y=f+r,m=g+r;zd(t,e,"main",a,s,f,g),i.transformable&&(zd(t,e,"w",l,u,o,m),zd(t,e,"e",h,u,o,m),zd(t,e,"n",l,u,y,o),zd(t,e,"s",l,p,y,o),zd(t,e,"nw",l,u,o,o),zd(t,e,"ne",h,u,o,o),zd(t,e,"sw",l,p,o,o),zd(t,e,"se",h,p,o,o))}function Ed(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Vd(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(g["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?Hd(t,n[0]):Fd(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?bd[o]+"-resize":null})}))}function zd(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(Xd(Yd(t,e,[[i,r],[i+o,r+a]])))}function Vd(t){return Object(g["i"])({strokeNoScale:!0},t.brushStyle)}function Bd(t,e,n,i){var r=[dd(t,n),dd(e,i)],o=[hd(t,n),hd(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Gd(t){return m["getTransform"](t.group)}function Hd(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=m["transformDirection"](n[e],Gd(t));return i[r]}function Fd(t,e){var n=[Hd(t,e[0]),Hd(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Wd(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=Ud(e,r,o);Object(g["k"])(i,(function(t){var e=vd[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(Bd(s[0][0],s[1][0],s[0][1],s[1][1])),jd(e,n),kd(e,{isEnd:!1})}function qd(t,e,n,i){var r=e.__brushOption.range,o=Ud(t,n,i);Object(g["k"])(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),jd(t,e),kd(t,{isEnd:!1})}function Ud(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function Yd(t,e,n){var i=Dd(t,e);return i&&i!==cd?i.clipPath(n,t._transform):Object(g["d"])(n)}function Xd(t){var e=dd(t[0][0],t[1][0]),n=dd(t[0][1],t[1][1]),i=hd(t[0][0],t[1][0]),r=hd(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function Zd(t,e,n){if(t._brushType&&!nh(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=Td(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===cd||s.panelId===o.panelId)&&ih[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function Kd(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Jd(t,e,n){return t.childOfName("main").contain(e,n)}function $d(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),Ld(t)||o){if(a&&!o){"single"===s.brushMode&&Ad(t);var l=Object(g["d"])(s);l.brushType=Qd(l.brushType,a),l.panelId=a===cd?null:a.panelId,o=t._creatingCover=wd(t,l),t._covers.push(o)}if(o){var u=ih[Qd(t._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(Yd(t,o,t._track)),i&&(Sd(t,o),u.updateCommon(t,o)),Md(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Td(t,e,n)&&Ad(t)&&(r={isEnd:i,removeOnClick:!0});return r}function Qd(t,e){return"auto"===t?e.defaultBrushType:t}var th={mousedown:function(t){if(this._dragging)eh(this,t);else if(!t.target||!t.target.draggable){Kd(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=Td(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(Zd(this,t,i),this._dragging){Kd(t);var r=$d(this,t,i,!1);r&&kd(this,r)}},mouseup:function(t){eh(this,t)}};function eh(t,e){if(t._dragging){Kd(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=$d(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&kd(t,o)}}function nh(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var ih={lineX:rh(0),lineY:rh(1),rect:{createCover:function(t,e){function n(t){return t}return Nd({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Pd(t);return Bd(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Rd(t,e,n,i)},updateCommon:Ed,contain:Jd},polygon:{createCover:function(t,e){var n=new h["a"];return n.add(new Ae["a"]({name:"main",style:Vd(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new qi["a"]({name:"main",draggable:!0,drift:Object(g["h"])(qd,t,e),ondragend:Object(g["h"])(kd,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:Yd(t,e,n)})},updateCommon:Ed,contain:Jd}};function rh(t){return{createCover:function(e,n){return Nd({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=Pd(e),i=dd(n[0][t],n[1][t]),r=hd(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=Dd(e,n);if(a!==cd&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Rd(e,n,l,r)},updateCommon:Ed,contain:Jd}}var oh=Od;function ah(t){return t=uh(t),function(e){return m["clipPointsByRect"](e,t)}}function sh(t,e){return t=uh(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function lh(t,e,n){var i=uh(t);return function(t,r){return i.contain(r[0],r[1])&&!Cr(t,e,n)}}function uh(t){return rn["a"].create(t)}var ch=["axisLine","axisTickLabel","axisName"],dh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new oh(n.getZr())).on("brush",g["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!hh(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new h["a"],this.group.add(this._axisGroup),t.get("show")){var o=fh(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),d=g["m"]({strokeContainThreshold:l},c),p=new pi(t,d);g["k"](ch,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,s,t,o,l,n),m["groupTransition"](r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=rn["a"].create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:ah(u),isTargetByCursor:lh(u,o,i),getLinearBrushOtherExtent:sh(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(ph(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=g["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(hn["a"]);function hh(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function ph(t){var e=t.axis;return g["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function fh(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var gh=dh,yh={type:"axisAreaSelect",event:"axisAreaSelected"};function mh(t){t.registerAction(yh,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var vh={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function bh(t){t.registerComponentView(Vc),t.registerComponentModel(Gc),t.registerCoordinateSystem("parallel",sd),t.registerPreprocessor(kc),t.registerComponentModel(ud),t.registerComponentView(gh),In(t,"parallel",ud,vh),mh(t)}function xh(t){Object(i["a"])(bh),t.registerChartView(Sc),t.registerSeriesModel(Cc),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Ac)}var _h=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),Oh=function(t){function e(e){return t.call(this,e)||this}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new _h},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(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()},e.prototype.highlight=function(){Object(b["r"])(this)},e.prototype.downplay=function(){Object(b["C"])(this)},e}(F["b"]),wh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new Oh,i=Object(v["a"])(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,u,h,p,f,y,m,x=e.getModel(),_=x.getModel("lineStyle"),O=_.get("curveness"),S=e.node1.getLayout(),M=e.node1.getModel(),I=M.get("localX"),j=M.get("localY"),C=e.node2.getLayout(),T=e.node2.getModel(),D=T.get("localX"),A=T.get("localY"),k=e.getLayout();n.shape.extent=Math.max(1,k.dy),n.shape.orient=d,"vertical"===d?(r=(null!=I?I*s:S.x)+k.sy,a=(null!=j?j*l:S.y)+S.dy,u=(null!=D?D*s:C.x)+k.ty,h=null!=A?A*l:C.y,p=r,f=a*(1-O)+h*O,y=u,m=a*O+h*(1-O)):(r=(null!=I?I*s:S.x)+S.dx,a=(null!=j?j*l:S.y)+k.sy,u=null!=D?D*s:C.x,h=(null!=A?A*l:C.y)+k.ty,p=r*(1-O)+u*O,f=a,y=r*O+u*(1-O),m=h),n.setShape({x1:r,y1:a,x2:u,y2:h,cpx1:p,cpy1:f,cpx2:y,cpy2:m}),n.useStyle(_.getItemStyle()),Sh(n.style,d,e);var L=""+x.get("value"),P=Object(w["e"])(x,"edgeLabel");Object(w["g"])(n,P,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,Object(g["Q"])(o,P.normal&&P.normal.get("formatter"),L),a)}},labelDataIndex:e.dataIndex,defaultText:L}),n.setTextConfig({position:"inside"});var N=x.getModel("emphasis");Object(b["I"])(n,x,"lineStyle",(function(t){var n=t.getItemStyle();return Sh(n,d,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var R=N.get("focus");Object(b["J"])(n,"adjacency"===R?e.getAdjacentDataIndices():"trajectory"===R?e.getTrajectoryDataIndices():R,N.get("blurScope"),N.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),d=new et["a"]({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(w["g"])(d,Object(w["e"])(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Object(b["I"])(d,i),o.add(d),u.setItemGraphicEl(e.dataIndex,d),Object(v["a"])(d).dataType="node";var h=c.get("focus");Object(b["J"])(d,"adjacency"===h?e.getAdjacentDataIndices():"trajectory"===h?e.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,r){var o=u.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Mh(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(tt["a"]);function Sh(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(g["C"])(i)&&Object(g["C"])(r)&&(t.fill=new B["a"](0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}function Mh(t,e,n){var i=new et["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return y["c"](i,{shape:{width:t.width+20}},e,n),i}var Ih=wh,jh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new ti["a"](r[a],this,e));if(i&&n){var s=Fu(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Object(Xi["c"])("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Object(Xi["c"])("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(c["b"]),Ch=jh;function Th(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=Dh(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;kh(l);var c=g["n"](l,(function(t){return 0===t.getLayout().value})),d=0!==c.length?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");Ah(l,u,n,i,o,a,d,h,p)}))}function Dh(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ah(t,e,n,i,r,o,a,s,l){Lh(t,e,n,r,o,s,l),zh(t,e,o,r,i,a,s),Jh(t,s)}function kh(t){g["k"](t,(function(t){var e=Zh(t.outEdges,Xh),n=Zh(t.inEdges,Xh),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function Lh(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<e.length;h++)s[h]=1;for(h=0;h<t.length;h++)l[h]=t[h].inEdges.length,0===l[h]&&u.push(t[h]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=y.depth&&y.depth>=0;m&&y.depth>p&&(p=y.depth),g.setLayout({depth:m?y.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var b=g.outEdges[v],x=e.indexOf(b);s[x]=0;var _=b.node2,O=t.indexOf(_);0===--l[O]&&c.indexOf(_)<0&&c.push(_)}}++d,u=c,c=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var w=p>d-1?p:d-1;a&&"left"!==a&&Nh(t,a,o,w);var S="vertical"===o?(r-n)/w:(i-n)/w;Eh(t,S,o)}function Ph(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Nh(t,e,n,i){if("right"===e){var r=[],o=t,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}g["k"](t,(function(t){Ph(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&Rh(t,i)}function Rh(t,e){g["k"](t,(function(t){Ph(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function Eh(t,e,n){g["k"](t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function zh(t,e,n,i,r,o,a){var s=Vh(t,a);Bh(s,e,n,i,r,a),Gh(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,Hh(s,l,a),Gh(s,r,n,i,a),Kh(s,l,a),Gh(s,r,n,i,a)}function Vh(t,e){var n=[],i="vertical"===e?"y":"x",r=Object(H["j"])(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),g["k"](r.keys,(function(t){n.push(r.buckets.get(t))})),n}function Bh(t,e,n,i,r,o){var a=1/0;g["k"](t,(function(t){var e=t.length,s=0;g["k"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)})),g["k"](t,(function(t){g["k"](t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),g["k"](e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function Gh(t,e,n,i,r){var o="vertical"===r?"x":"y";g["k"](t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,d="vertical"===r?"dx":"dy",h=0;h<c;h++)s=t[h],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+e;var p="vertical"===r?i:n;if(l=u-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(h=c-2;h>=0;--h)s=t[h],l=s.getLayout()[o]+s.getLayout()[d]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function Hh(t,e,n){g["k"](t.slice().reverse(),(function(t){g["k"](t,(function(t){if(t.outEdges.length){var i=Zh(t.outEdges,Fh,n)/Zh(t.outEdges,Xh);if(isNaN(i)){var r=t.outEdges.length;i=r?Zh(t.outEdges,Wh,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Yh(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Yh(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Fh(t,e){return Yh(t.node2,e)*t.getValue()}function Wh(t,e){return Yh(t.node2,e)}function qh(t,e){return Yh(t.node1,e)*t.getValue()}function Uh(t,e){return Yh(t.node1,e)}function Yh(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Xh(t){return t.getValue()}function Zh(t,e,n){var i=0,r=t.length,o=-1;while(++o<r){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function Kh(t,e,n){g["k"](t,(function(t){g["k"](t,(function(t){if(t.inEdges.length){var i=Zh(t.inEdges,qh,n)/Zh(t.inEdges,Xh);if(isNaN(i)){var r=t.inEdges.length;i=r?Zh(t.inEdges,Uh,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Yh(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Yh(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function Jh(t,e){var n="vertical"===e?"x":"y";g["k"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),g["k"](t,(function(t){var e=0,n=0;g["k"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),g["k"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function $h(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;g["k"](n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),g["k"](n,(function(e){var n=new Zs({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&g["k"](i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function Qh(t){t.registerChartView(Ih),t.registerSeriesModel(Ch),t.registerLayout(Th),t.registerVisual($h),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var tp=n("2f45"),ep=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],h=[r,o],p=h[u].get("type"),f=h[1-u].get("type"),y=t.data;if(y&&i){var m=[];g["k"](y,(function(t,e){var n;g["t"](t)?(n=t.slice(),t.unshift(e)):g["t"](t.value)?(n=g["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var v=this.defaultValueDimensions,b=[{name:c,type:Object(tp["a"])(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Object(tp["a"])(f),dimsDef:v.slice()}];return Ue(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:g["h"](Ye["c"],b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),np=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(l["a"])(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(c["b"]);Object(g["K"])(np,ep,!0);var ip=np,rp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=sp(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Object(y["g"])(n),lp(s,n,i,t)):n=sp(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(tt["a"]),op=function(){function t(){}return t}(),ap=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new op},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(F["b"]);function sp(t,e,n,i,r){var o=t.ends,a=new ap({shape:{points:r?up(o,i,t):o}});return lp(t,a,e,n,r),a}function lp(t,e,n,i,r){var o=n.hostModel,a=m[r?"initProps":"updateProps"];a(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");Object(b["I"])(e,s),Object(b["J"])(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function up(t,e,n){return g["H"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var cp=rp,dp=g["k"];function hp(t){var e=pp(t);dp(e,(function(t){var e=t.seriesModels;e.length&&(fp(t),dp(e,(function(e,n){gp(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function pp(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=g["r"](n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}function fp(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;dp(i,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}dp(i,(function(t){var n=t.get("boxWidth");g["t"](n)||(n=[n,n]),s.push([Object(it["q"])(n[0],e)||0,Object(it["q"])(n[1],e)||0])}));var c=.8*e-2,d=c/r*.3,h=(c-d*(r-1))/r,p=h/2-c/2;dp(i,(function(t,e){a.push(p),p+=d+h,o.push(Math.min(Math.max(h,s[e][0]),s[e][1]))}))}function gp(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var d=0;d<r.count();d++){var h=r.get(u,d),p=b(h,c[2],d),f=b(h,c[0],d),g=b(h,c[1],d),y=b(h,c[3],d),m=b(h,c[4],d),v=[];x(v,g,!1),x(v,y,!0),v.push(f,g,m,y),_(v,f),_(v,m),_(v,p),r.setItemLayout(d,{initBaseline:p[s],ends:v})}function b(t,n,o){var l,u=r.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=e),l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function _(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}function yp(t,e){e=e||{};for(var n=[],i=[],r=e.boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=Object(it["c"])(t[a].slice()),l=Object(it["r"])(s,.25),u=Object(it["r"])(s,.5),c=Object(it["r"])(s,.75),d=s[0],h=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?d:Math.max(d,l-p),y=o?h:Math.min(h,c+p),m=e.itemNameFormatter,v=Object(g["w"])(m)?m({value:a}):Object(g["C"])(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,u,c,y]);for(var b=0;b<s.length;b++){var x=s[b];if(x<f||x>y){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var mp=n("07fd"),vp={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==mp["c"]){var n="";0,Object(As["c"])(n)}var i=yp(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function bp(t){t.registerSeriesModel(ip),t.registerChartView(cp),t.registerLayout(hp),t.registerTransform(vp)}var xp=["color","borderColor"],_p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&Mp(s,a))return;var l=Sp(a,n,!0);y["c"](l,{shape:{points:a.ends}},t,n),Ip(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&Mp(s,c)?i.remove(u):(u?(y["h"](u,{shape:{points:c.ends}},t,a),Object(y["g"])(u)):u=Sp(c,a),Ip(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Dp(t,this.group);var e=t.get("clip",!0)?at(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=i.getItemLayout(n),a=Sp(o,n);Ip(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){Dp(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(tt["a"]),Op=function(){function t(){}return t}(),wp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Op},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(F["b"]);function Sp(t,e,n){var i=t.ends;return new wp({shape:{points:n?jp(i,t):i},z2:100})}function Mp(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function Ip(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,Object(b["I"])(t,r)}function jp(t,e){return g["H"](t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var Cp=function(){function t(){}return t}(),Tp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return Object(l["a"])(e,t),e.prototype.getDefaultShape=function(){return new Cp},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(F["b"]);function Dp(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new Tp({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new Tp({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Tp({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),Ap(1,a,t,r),Ap(-1,s,t,r),Ap(0,l,t,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Ap(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(xp);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var kp=_p,Lp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(l["a"])(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(c["b"]);Object(g["K"])(Lp,ep,!0);var Pp=Lp;function Np(t){t&&g["t"](t.series)&&g["k"](t.series,(function(t){g["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var Rp=["itemStyle","borderColor"],Ep=["itemStyle","borderColor0"],zp=["itemStyle","borderColorDoji"],Vp=["itemStyle","color"],Bp=["itemStyle","color0"],Gp={seriesType:"candlestick",plan:Object(Tt["a"])(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?Vp:Bp)}function i(t,e){return e.get(0===t?zp:t>0?Rp:Ep)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){var r;while(null!=(r=t.next())){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");Object(g["m"])(l,s)}}}}}},Hp=Gp,Fp={seriesType:"candlestick",plan:Object(Tt["a"])(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=qp(t,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=Object(g["H"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?f:p};function p(t,n){var a,l=n.getStore();while(null!=(a=t.next())){var p=l.get(s,a),f=l.get(u,a),g=l.get(c,a),y=l.get(d,a),v=l.get(h,a),b=Math.min(f,g),x=Math.max(f,g),_=C(b,p),O=C(x,p),w=C(y,p),S=C(v,p),M=[];T(M,O,0),T(M,_,1),M.push(A(S),A(O),A(w),A(_));var I=n.getItemModel(a),j=!!I.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:Wp(l,a,f,g,c,j),initBaseline:f>g?O[o]:_[o],ends:M,brushRect:D(y,v,p)})}function C(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function T(t,e,n){var o=e.slice(),a=e.slice();o[r]=Object(m["subPixelOptimize"])(o[r]+i/2,1,!1),a[r]=Object(m["subPixelOptimize"])(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function D(t,e,n){var a=C(t,n),s=C(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function A(t){return t[r]=Object(m["subPixelOptimize"])(t[r],1),t}}function f(n,i){var a,l,p=Object(E["a"])(4*n.count),f=0,g=[],y=[],m=i.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=m.get(s,l),x=m.get(u,l),_=m.get(c,l),O=m.get(d,l),w=m.get(h,l);isNaN(b)||isNaN(O)||isNaN(w)?(p[f++]=NaN,f+=3):(p[f++]=Wp(m,l,x,_,c,v),g[r]=b,g[o]=O,a=e.dataToPoint(g,null,y),p[f++]=a?a[0]:NaN,p[f++]=a?a[1]:NaN,g[o]=w,a=e.dataToPoint(g,null,y),p[f++]=a?a[1]:NaN)}i.setLayout("largePoints",p)}}};function Wp(t,e,n,i,r,o){var a;return a=n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1,a}function qp(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Object(it["q"])(Object(g["P"])(t.get("barMaxWidth"),r),r),a=Object(it["q"])(Object(g["P"])(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Object(it["q"])(s,r):Math.max(Math.min(r/2,o),a)}var Up=Fp;function Yp(t){t.registerChartView(kp),t.registerSeriesModel(Pp),t.registerPreprocessor(Np),t.registerVisual(Hp),t.registerLayout(Up)}function Xp(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var Zp=function(t){function e(e,n){var i=t.call(this)||this,r=new j(e,n),o=new h["a"];return i.add(r),i.add(o),i.updateData(e,n),i}return Object(l["a"])(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=Object(d["a"])(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}Xp(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}Xp(n,t)},e.prototype.highlight=function(){Object(b["r"])(this)},e.prototype.downplay=function(){Object(b["C"])(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Object(d["c"])(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var h=Object(d["b"])(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var p=t.getItemVisual(e,"symbolRotate");r.rotation=(p||0)*Math.PI/180||0;var f={};f.showEffectOn=i.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOffset=e/t.count(),f.z=i.getShallow("z")||0,f.zlevel=i.getShallow("zlevel")||0,f.symbolType=a,f.color=u,f.rippleEffectColor=o.get(["rippleEffect","color"]),f.rippleNumber=o.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===t&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,Object(b["J"])(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(h["a"]),Kp=Zp,Jp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(){this._symbolDraw=new k(Kp)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=Dt("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=An["a"](e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(tt["a"]),$p=Jp,Qp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(c["b"]),tf=Qp;function ef(t){t.registerChartView($p),t.registerSeriesModel(tf),t.registerLayout(Dt("effectScatter"))}var nf=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return Object(l["a"])(e,t),e.prototype.createLine=function(t,e,n){return new vu(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");g["t"](r)||(r=[r,r]);var a=t.getItemVisual(e,"style"),s=i.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Object(d["a"])(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=g["O"](e.get("delay"),(function(e){return e/t.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=g["w"](u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return kn["f"](t.__p1,t.__cp1)+kn["f"](t.__cp1,t.__p2)},e.prototype._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]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=q["h"],l=q["i"];o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*kn["f"](a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*kn["f"](e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(h["a"]),rf=nf,of=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return Object(l["a"])(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Ae["a"]({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};y["h"](r,o,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=o,Object(b["J"])(this,a,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(h["a"]),af=of,sf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Object(l["a"])(e,t),e.prototype.createLine=function(t,e,n){return new af(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=kn["f"](o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=e)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>e)break;o=Math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var d=t.__t<1?c[0]-u[0]:u[0]-c[0],h=t.__t<1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(rf),lf=sf,uf=n("9680"),cf=n("68ab"),df=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),hf=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(l["a"])(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new df},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var d=(s+u)/2-(l-c)*r,h=(l+c)/2-(u-s)*r;t.quadraticCurveTo(d,h,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],d=1;d<l;d++){var h=i[s++],p=i[s++];if(uf["a"](u,c,h,p,o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++],h=i[s++],p=i[s++];if(r>0){var f=(u+h)/2-(c-p)*r,g=(c+p)/2-(h-u)*r;if(cf["a"](u,c,f,g,h,p,o,t,e))return a}else if(uf["a"](u,c,h,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(u,r),a=Math.max(u,a)}t=this._rect=new rn["a"](i,r,o,a)}return t},e}(F["b"]),pf=function(){function t(){this.group=new h["a"]}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new hf({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=Object(v["a"])(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ff=pf,gf={seriesType:"lines",plan:Object(Tt["a"])(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,h=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,a);n&&(s[d++]=p);for(var f=0;f<p;f++)h=e.dataToPoint(a[f],!1,h),s[d++]=h[0],s[d++]=h[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),y=(p=t.getLineCoords(c,a),[]);if(n)for(var m=0;m<p;m++)y.push(e.dataToPoint(a[m]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var v=g.get(["lineStyle","curveness"]);+v&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*v,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*v])}o.setItemLayout(c,y)}}}}}},yf=gf,mf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&at(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=yf.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new ff:new Su(r?i?lf:af:i?rf:vu),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(tt["a"]),vf=mf,bf="undefined"===typeof Uint32Array?Array:Uint32Array,xf="undefined"===typeof Float64Array?Array:Float64Array;function _f(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(g["H"])(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),Object(g["J"])([n,t[0],t[1]])})))}var Of=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(l["a"])(e,t),e.prototype.init=function(e){e.data=e.data||[],_f(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(_f(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(g["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(g["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(g["z"])(t[0])){for(var n=t.length,i=new bf(n),r=new xf(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var c=0;c<u;c++){var d=t[l++],h=t[l++];r[o++]=d,r[o++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new qe["a"](["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getItemModel(t),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(Xi["c"])("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!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,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(c["b"]),wf=Of;function Sf(t){return t instanceof Array||(t=[t,t]),t}var Mf={seriesType:"lines",reset:function(t){var e=Sf(t.get("symbol")),n=Sf(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=Sf(n.getShallow("symbol",!0)),r=Sf(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},If=Mf;function jf(t){t.registerChartView(vf),t.registerSeriesModel(wf),t.registerLayout(yf),t.registerVisual(If)}var Cf=n("726e"),Tf=256,Df=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Cf["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=t.length;c.width=e,c.height=n;for(var p=0;p<h;++p){var f=t[p],g=f[0],y=f[1],m=f[2],v=i(m);d.globalAlpha=v,d.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;var b=d.getImageData(0,0,c.width,c.height),x=b.data,_=0,O=x.length,w=this.minOpacity,S=this.maxOpacity,M=S-w;while(_<O){v=x[_+3]/256;var I=4*Math.floor(v*(Tf-1));if(v>0){var j=o(v)?s:l;v>0&&(v=v*M+w),x[_++]=j[I],x[_++]=j[I+1],x[_++]=j[I+2],x[_++]=j[I+3]*v*256}else _+=4}return d.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Cf["d"].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},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),Af=Df;function kf(t,e,n){var i=t[1]-t[0];e=g["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){var i;for(i=o;i<r;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function Lf(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 Pf(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var Nf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Pf(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(Pf(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=st(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=t.get(["itemStyle","borderRadius"]),x=Object(w["e"])(t),_=t.getModel("emphasis"),O=_.get("focus"),S=_.get("blurScope"),M=_.get("disabled"),I=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],j=n;j<i;j++){var C=void 0,T=f.getItemVisual(j,"style");if(c){var D=f.get(I[0],j),A=f.get(I[1],j);if(isNaN(f.get(I[2],j))||isNaN(D)||isNaN(A)||D<s[0]||D>s[1]||A<l[0]||A>l[1])continue;var k=u.dataToPoint([D,A]);C=new et["a"]({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(I[1],j)))continue;C=new et["a"]({z2:1,shape:u.dataToRect([f.get(I[0],j)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(j),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),m=L.getModel(["select","itemStyle"]).getItemStyle(),v=L.get(["itemStyle","borderRadius"]),O=P.get("focus"),S=P.get("blurScope"),M=P.get("disabled"),x=Object(w["e"])(L)}C.shape.r=v;var N=t.getRawValue(j),R="-";N&&null!=N[2]&&(R=N[2]+""),Object(w["g"])(C,x,{labelFetcher:t,labelDataIndex:j,defaultOpacity:T.opacity,defaultText:R}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=y,C.ensureState("select").style=m,Object(b["J"])(C,O,S,M),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),p.add(C),f.setItemGraphicEl(j,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Af;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=h-c,g=p-d,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(y,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=d,r.push(i),r})),v=n.getExtent(),b="visualMap.continuous"===n.type?Lf(v,n.option.range):kf(v,n.getPieceList(),n.option.selected);s.update(m,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var x=new S["a"]({style:{width:f,height:g,x:c,y:d,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(tt["a"]),Rf=Nf,Ef=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Hu["a"].get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(c["b"]),zf=Ef;function Vf(t){t.registerChartView(Rf),t.registerSeriesModel(zf)}var Bf=["itemStyle","borderWidth"],Gf=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Hf=new er["a"],Ff=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Gf[+l],categoryDim:Gf[1-+l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=eg(r,t),n=Wf(r,t,e,c),o=rg(r,c,n);r.setItemGraphicEl(t,o),i.add(o),cg(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=eg(r,t),s=Wf(r,t,a,c),l=sg(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?og(n,c,s):n=rg(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),cg(n,c,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&ag(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){ag(i,Object(v["a"])(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(tt["a"]);function Wf(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),p={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};qf(n,o,r,i,p),Yf(t,e,r,o,a,p.boundingLength,p.pxSign,c,i,p),Xf(n,p.symbolScale,u,i,p);var f=p.symbolSize,g=Object(d["b"])(n.get("symbolOffset"),f);return Zf(n,f,r,o,a,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function qf(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(g["t"](s)){var d=[Uf(l,s[0])-u,Uf(l,s[1])-u];d[1]<d[0]&&d.reverse(),o=d[c]}else o=null!=s?Uf(l,s)-u:e?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1}function Uf(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Yf(t,e,n,i,r,o,a,s,l,u){var c,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=t.getItemVisual(e,"symbolSize");c=g["t"](f)?f.slice():null==f?["100%","100%"]:[f,f],c[h.index]=Object(it["q"])(c[h.index],p),c[d.index]=Object(it["q"])(c[d.index],i?p:Math.abs(o)),u.symbolSize=c;var y=u.symbolScale=[c[0]/s,c[1]/s];y[d.index]*=(l.isHorizontal?-1:1)*a}function Xf(t,e,n,i,r){var o=t.get(Bf)||0;o&&(Hf.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Hf.updateTransform(),o/=Hf.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}function Zf(t,e,n,i,r,o,a,s,l,u,c,d){var h=c.categoryDim,p=c.valueDim,f=d.pxSign,y=Math.max(e[p.index]+s,0),m=y;if(i){var v=Math.abs(l),b=g["O"](t.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Object(it["q"])(b,e[p.index]),O=Math.max(y+2*_,0),w=x?0:2*_,S=Object(it["k"])(i),M=S?i:dg((v+w)/O),I=v-M*y;_=I/2/(x?M:Math.max(M-1,1)),O=y+2*_,w=x?0:2*_,S||"fixed"===i||(M=u?dg((Math.abs(u)+w)/O):0),m=M*O-w,d.repeatTimes=M,d.symbolMargin=_}var j=f*(m/2),C=d.pathPosition=[];C[h.index]=n[h.wh]/2,C[p.index]="start"===a?j:"end"===a?l-j:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var T=d.bundlePosition=[];T[h.index]=n[h.xy],T[p.index]=n[p.xy];var D=d.barRectShape=g["m"]({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+j)),D[h.wh]=n[h.wh];var A=d.clipShape={};A[h.xy]=-n[h.xy],A[h.wh]=c.ecSize[h.wh],A[p.xy]=0,A[p.wh]=n[p.wh]}function Kf(t){var e=t.symbolPatternSize,n=Object(d["a"])(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Jf(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,d=o[e.valueDim.index]+a+2*n.symbolMargin;for(lg(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?ug(t,null,f(c),n,i):ug(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<u;c++){var h=Kf(n);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,r.add(h);var p=f(c);ug(h,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=d*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function $f(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?ug(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=Kf(n),r.add(o),ug(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Qf(t,e,n){var i=g["m"]({},e.barRectShape),r=t.__pictorialBarRect;r?ug(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new et["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function tg(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=g["m"]({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)y["h"](r,{shape:o},s,l);else{o[a.wh]=0,r=new et["a"]({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],m[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function eg(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=ng,n.isAnimationEnabled=ig,n}function ng(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function ig(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rg(t,e,n,i){var r=new h["a"],o=new h["a"];return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Jf(r,e,n):$f(r,e,n),Qf(r,n,i),tg(r,e,n,i),r.__pictorialShapeStr=sg(t,n),r.__pictorialSymbolMeta=n,r}function og(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;y["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Jf(t,e,n,!0):$f(t,e,n,!0),Qf(t,n,!0),tg(t,e,n,!0)}function ag(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];lg(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),g["k"](o,(function(t){y["e"](t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function sg(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function lg(t,e,n){g["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function ug(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&m[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function cg(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");lg(t,(function(t){if(t instanceof S["a"]){var e=t.style;t.useStyle(g["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;Object(w["g"])(f,Object(w["e"])(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:_(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(b["J"])(t,c,d,o.get("disabled"))}function dg(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var hg=Ff,pg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(zt["d"])(Et.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,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Et),fg=pg;function gg(t){t.registerChartView(hg),t.registerSeriesModel(fg),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(g["h"])(Nt["c"],"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(Nt["a"])("pictorialBar"))}var yg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var d=new rs["a"](this._layersSeries||[],a,c,c),p=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,d=[],f=[],g=a[n].indices,m=0;m<g.length;m++){var v=i.getItemLayout(g[m]),x=v.x,_=v.y0,O=v.y;d.push(x,_),f.push(x,_+O),u=i.getItemVisual(g[m],"style")}var S=i.getItemLayout(g[0]),M=t.getModel("label"),I=M.get("margin"),j=t.getModel("emphasis");if("add"===e){var C=p[n]=new h["a"];c=new Q({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(c),o.add(C),t.isAnimationEnabled()&&c.setClipPath(mg(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{C=l[s];c=C.childAt(0),o.add(C),p[n]=C,y["h"](c,{shape:{points:d,stackedOnPoints:f}},t),Object(y["g"])(c)}Object(w["g"])(c,Object(w["e"])(t),{labelDataIndex:g[m-1],defaultText:i.getName(g[m-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var T=c.getTextContent();T&&(T.x=S.x-I,T.y=S.y0+S.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),Object(b["I"])(c,t),Object(b["J"])(c,j.get("focus"),j.get("blurScope"),j.get("disabled"))}else o.remove(l[n])}d.add(Object(g["c"])(f,this,"add")).update(Object(g["c"])(f,this,"update")).remove(Object(g["c"])(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(tt["a"]);function mg(t,e,n){var i=new et["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return y["c"](i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var vg=yg,bg=2,xg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ze(g["c"](this.getData,this),g["c"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Object(H["j"])(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",H["b"]).models[0],i=n.get("type"),r=g["n"](t.data,(function(t){return void 0!==t[2]})),o=this.fixData(r||[]),a=[],s=this.nameMap=g["f"](),l=0,u=0;u<o.length;++u)a.push(o[u][bg]),s.get(o[u][bg])||(s.set(o[u][bg],l),l++);var c=Object(We["b"])(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(tp["a"])(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new qe["a"](c,this);return d.initData(o),d},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=Object(H["j"])(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){g["t"](t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,d=o[l].indices.length,h=0;h<d;++h){var p=r.get(t[0],o[l].indices[h]),f=Math.abs(p-e);f<=u&&(i=p,u=f,c=o[l].indices[h])}a.push(c)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),o=i.get(i.mapDimension("value"),t);return Object(Xi["c"])("nameValue",{name:r,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(c["b"]),_g=xg;function Og(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=it["q"](o[0],r.height),o[1]=it["q"](o[1],r.height);var s=r.height-o[0]-o[1];wg(e,t,s)}else{o[0]=it["q"](o[0],r.width),o[1]=it["q"](o[1],r.width);var l=r.width-o[0]-o[1];wg(e,t,l)}e.setLayout("layoutInfo",i)}))}function wg(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=g["H"](o,(function(e){return g["H"](e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=Sg(l),c=u.y0,d=n/u.max,h=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*d,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*d});for(var y=1;y<h;++y)i+=l[y-1][f][1]*d,t.setItemLayout(o[y].indices[f],{layerIndex:y,x:l[y][f][0],y0:i,y:l[y][f][1]*d})}}function Sg(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var d=i[c]+r[c];d>o&&(o=d)}return{y0:r,max:o}}function Mg(t){t.registerChartView(vg),t.registerSeriesModel(_g),t.registerLayout(Og),t.registerProcessor(De("themeRiver"))}var Ig=n("857d"),jg=2,Cg=4,Tg=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=jg,o.textConfig={inside:!0},Object(v["a"])(o).seriesIndex=n.seriesIndex;var a=new G["a"]({z2:Cg,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return Object(l["a"])(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Object(v["a"])(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=g["m"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var d=e.getVisual("decal");d&&(c.decal=Object(to["a"])(d,r));var h=Kt(a.getModel("itemStyle"),u,!0);g["m"](u,h),g["k"](b["g"],(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=Kt(n,u);i&&(e.shape=i)})),t?(o.setShape(u),o.shape.r=l.r0,y["c"](o,{shape:{r:l.r}},n,e.dataIndex)):(y["h"](o,{shape:u},n),Object(y["g"])(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),m="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;Object(b["J"])(this,m,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=h&&Math.abs(o)<h);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,g["k"](b["a"],(function(i){var h="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,y=p?c:c.ensureState(i),m=t.getFormattedLabel(d,i);p&&(m=m||e.node.name),y.style=Object(w["c"])(h,{},null,"normal"!==i,!0),m&&(y.style.text=m);var v=h.get("show");null==v||p||(y.ignore=!v);var b,x=f(h,"position"),_=p?u:u.states[i],O=_.style.fill;_.textConfig={outsideFill:"inherit"===h.get("color")?O:null,inside:"outside"!==x};var S=f(h,"distance")||0,M=f(h,"align");"outside"===x?(b=r.r+S,M=a>Math.PI/2?"right":"left"):M&&"center"!==M?"left"===M?(b=r.r0+S,a>Math.PI/2&&(M="right")):"right"===M&&(b=r.r-S,a>Math.PI/2&&(M="left")):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,M="center"),y.style.align=M,y.style.verticalAlign=f(h,"verticalAlign")||"middle",y.x=b*s+r.cx,y.y=b*l+r.cy;var I=f(h,"rotate"),j=0;"radial"===I?(j=Object(Ig["a"])(-a),j>Math.PI/2&&j<1.5*Math.PI&&(j+=Math.PI)):"tangential"===I?(j=Math.PI/2-a,j>Math.PI/2?j-=Math.PI:j<-Math.PI/2&&(j+=Math.PI)):g["z"](I)&&(j=I*Math.PI/180),y.rotation=Object(Ig["a"])(j)})),c.dirtyStyle()},e}(nt["a"]),Dg=Tg,Ag="sunburstRootToNode",kg="sunburstHighlight",Lg="sunburstUnhighlight";function Pg(t){t.registerAction({type:Ag,update:"updateView"},(function(t,e){function n(e,n){var i=Ea(t,[Ag],e);if(i){var r=e.getViewRoot();r&&(t.direction=Va(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:kg,update:"none"},(function(t,e,n){function i(e){var n=Ea(t,[kg],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(g["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(g["m"])(t,{type:"highlight"}))})),t.registerAction({type:Lg,update:"updateView"},(function(t,e,n){t=Object(g["m"])({},t),n.dispatchAction(Object(g["m"])(t,{type:"downplay"}))}))}var Ng=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var d=this._oldChildren||[];function h(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];p(r,o)}0===t.length&&0===e.length||new rs["a"](e,t,n,n).add(i).update(i).remove(g["h"](i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new Dg(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function y(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new Dg(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}h(c,d),y(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Object(lt["k"])(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Ag,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="sunburst",e}(tt["a"]),Rg=Ng,Eg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(l["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};zg(n);var i=this._levelModels=g["H"](t.levels||[],(function(t){return new ti["a"](t,this,e)}),this),r=Ra.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Ba(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Qa(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(c["b"]);function zg(t){var e=0;g["k"](t.children,(function(t){zg(t);var n=t.value;g["t"](n)&&(n=n[0]),e+=n}));var n=t.value;g["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),g["t"](t.value)?t.value[0]=n:t.value=n}var Vg=Eg,Bg=Math.PI/180;function Gg(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");g["t"](i)||(i=[0,i]),g["t"](e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Object(it["q"])(e[0],r),l=Object(it["q"])(e[1],o),u=Object(it["q"])(i[0],a/2),c=Object(it["q"])(i[1],a/2),d=-t.get("startAngle")*Bg,h=t.get("minAngle")*Bg,p=t.getData().tree.root,f=t.getViewRoot(),y=f.depth,m=t.get("sort");null!=m&&Hg(f,m);var v=0;g["k"](f.children,(function(t){!isNaN(t.getValue())&&v++}));var b=f.getValue(),x=Math.PI/(b||v)*2,_=f.depth>0,O=f.height-(_?-1:1),w=(c-u)/(O||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,j=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===b&&M?x:r*x;o<h&&(o=h),i=n+I*o;var c=e.depth-y-(_?-1:1),d=u+w*c,f=u+w*(c+1),m=t.getLevelModel(e);if(m){var v=m.get("r0",!0),O=m.get("r",!0),C=m.get("radius",!0);null!=C&&(v=C[0],O=C[1]),null!=v&&(d=Object(it["q"])(v,a/2)),null!=O&&(f=Object(it["q"])(O,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:d,r:f})}if(e.children&&e.children.length){var T=0;g["k"](e.children,(function(t){T+=j(t,n+T)}))}return i-n}};if(_){var C=u,T=u+w,D=2*Math.PI;p.setLayout({angle:D,startAngle:d,endAngle:d+D,clockwise:S,cx:s,cy:l,r0:C,r:T})}j(f,d)}))}function Hg(t,e){var n=t.children||[];t.children=Fg(n,e),n.length&&g["k"](t.children,(function(t){Hg(t,e)}))}function Fg(t,e){if(g["w"](e)){var n=g["H"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),g["H"](n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function Wg(t){var e={};function n(t,n,i){var r=t;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(g["C"])(o)&&(o=Object(ut["c"])(o,(t.depth-1)/(i-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,t,i.root.height));var s=e.ensureUniqueItemVisual(r.dataIndex,"style");Object(g["m"])(s,a)}))}))}function qg(t){t.registerChartView(Rg),t.registerSeriesModel(Vg),t.registerLayout(Object(g["h"])(Gg,"sunburst")),t.registerProcessor(Object(g["h"])(De,"sunburst")),t.registerVisual(Wg),Pg(t)}var Ug={color:"fill",borderColor:"stroke"},Yg={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xg=Object(H["o"])(),Zg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Object(u["a"])(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=Xg(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(c["b"]),Kg=Zg;function Jg(t,e){return e=e||[0,0],g["H"](["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function $g(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:g["c"](Jg,t)}}}function Qg(t,e){return e=e||[0,0],g["H"]([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function ty(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:g["c"](Qg,t)}}}function ey(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function ny(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(g["c"])(ey,t)}}}function iy(t,e){return e=e||[0,0],g["H"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=e[i],s=t[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function ry(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:g["c"](iy,t)}}}function oy(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:function(e,n){return t.dataToPoint(e,n)}}}}function ay(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(g["q"])(t,"text")))}function sy(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Object(g["q"])(a,"text")&&(o.text=a.text),Object(g["q"])(a,"rich")&&(o.rich=a.rich),Object(g["q"])(a,"textFill")&&(o.fill=a.textFill),Object(g["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(g["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(g["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(g["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(g["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Object(g["q"])(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Object(g["q"])(a,"textPosition")&&(i.position=a.textPosition),Object(g["q"])(a,"textOffset")&&(i.offset=a.textOffset),Object(g["q"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(g["q"])(a,"textDistance")&&(i.distance=a.textDistance)}return ly(o,t),Object(g["k"])(o.rich,(function(t){ly(t,t)})),{textConfig:i,textContent:r}}function ly(t,e){e&&(e.font=e.textFont||e.font,Object(g["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(g["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(g["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(g["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(g["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(g["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(g["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(g["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(g["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(g["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(g["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(g["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(g["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(g["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(g["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function uy(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";cy(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(g["k"])(e.rich,(function(t){cy(t,t)})),i}function cy(t,e){e&&(Object(g["q"])(e,"fill")&&(t.textFill=e.fill),Object(g["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(g["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(g["q"])(e,"font")&&(t.font=e.font),Object(g["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(g["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(g["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(g["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(g["q"])(e,"align")&&(t.textAlign=e.align),Object(g["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(g["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(g["q"])(e,"width")&&(t.textWidth=e.width),Object(g["q"])(e,"height")&&(t.textHeight=e.height),Object(g["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(g["q"])(e,"padding")&&(t.textPadding=e.padding),Object(g["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(g["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(g["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(g["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(g["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(g["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(g["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(g["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(g["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(g["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(g["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var dy=n("06ad"),hy={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},py=Object(g["F"])(hy),fy=(Object(g["N"])(Mo["a"],(function(t,e){return t[e]=1,t}),{}),Mo["a"].join(", "),["","style","shape","extra"]),gy=Object(H["o"])();function yy(t,e,n,i,r){var o=t+"Animation",a=Object(y["a"])(t,i,r)||{},s=gy(e).userDuring;return a.duration>0&&(a.during=s?Object(g["c"])(Iy,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(g["m"])(a,n[o]),a}function my(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=gy(t),u=e.style;l.userDuring=e.during;var c={},d={};if(Dy(t,e,d),Cy("shape",e,d),Cy("extra",e,d),!o&&s&&(Ty(t,e,c),jy("shape",t,e,c),jy("extra",t,e,c),Ay(t,e,u,c)),d.style=u,_y(t,d,a),wy(t,e),s)if(o){var h={};Object(g["k"])(fy,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(h[t]=h[t]||{}),Object(g["m"])(t?h[t]:h,n.enterFrom))}));var p=yy("enter",t,e,n,r);p.duration>0&&t.animateFrom(h,p)}else Oy(t,e,r||0,n,c);vy(t,e),u?t.dirty():t.markRedraw()}function vy(t,e){for(var n=gy(t).leaveToProps,i=0;i<fy.length;i++){var r=fy[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=gy(t).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(g["m"])(r?n[r]:n,o.leaveTo))}}function by(t,e,n,i){if(t){var r=t.parent,o=gy(t).leaveToProps;if(o){var a=yy("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function xy(t){return"all"===t}function _y(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function Oy(t,e,n,i,r){if(r){var o=yy("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}function wy(t,e){Object(g["q"])(e,"silent")&&(t.silent=e.silent),Object(g["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof eo["c"]&&Object(g["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof F["b"]&&Object(g["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Sy={},My={setTransform:function(t,e){return Sy.el[t]=e,this},getTransform:function(t){return Sy.el[t]},setShape:function(t,e){var n=Sy.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=Sy.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=Sy.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=Sy.el.style;if(e)return e[t]},setExtra:function(t,e){var n=Sy.el.extra||(Sy.el.extra={});return n[t]=e,this},getExtra:function(t){var e=Sy.el.extra;if(e)return e[t]}};function Iy(){var t=this,e=t.el;if(e){var n=gy(e).userDuring,i=t.userDuring;n===i?(Sy.el=e,i(My)):t.el=t.userDuring=null}}function jy(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),xy(l))Object(g["m"])(o,a);else for(var u=Object(H["r"])(l),c=0;c<u.length;c++){var d=u[c],h=a[d];o[d]=h}else if(xy(s)||Object(g["r"])(s,t)>=0){!o&&(o=i[t]={});var p=Object(g["F"])(a);for(c=0;c<p.length;c++){d=p[c],h=a[d];ky(r[d],h)&&(o[d]=h)}}}}}function Cy(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=Object(g["F"])(i),a=0;a<o.length;a++){var s=o[a];r[s]=Object(dy["a"])(i[s])}}function Ty(t,e,n){for(var i=e.transition,r=xy(i)?Mo["a"]:Object(H["r"])(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}function Dy(t,e,n){for(var i=0;i<py.length;i++){var r=py[i],o=hy[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<Mo["a"].length;i++){var s=Mo["a"][i];null!=e[s]&&(n[s]=e[s])}}function Ay(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!xy(a)){var l=Object(H["r"])(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],d=o[c];r[c]=d}}else if(t.getAnimationStyleProps&&(xy(s)||xy(a)||Object(g["r"])(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var f=Object(g["F"])(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){d=o[c];r[c]=d}}}}}}}function ky(t,e){return Object(g["u"])(t)?t!==e:null!=t&&isFinite(t)}var Ly=Object(H["o"])(),Py=["percent","easing","shape","style","extra"];function Ny(t){t.stopAnimation("keyframe"),t.attr(Ly(t))}function Ry(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(g["t"])(e))Object(g["k"])(e,(function(e){Ry(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=Object(y["a"])("enter",n,0);r=o&&o.duration}if(i&&r){var a=Ly(t);Object(g["k"])(fy,(function(n){if(!n||t[n]){var o;i.sort((function(t,e){return t.percent-e.percent})),Object(g["k"])(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=Object(g["F"])(l);if(n||(u=Object(g["n"])(u,(function(t){return Object(g["r"])(Py,t)<0}))),u.length){o||(o=t.animate(n,e.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Object(g["k"])(u,(function(e){d[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var Ey="emphasis",zy="normal",Vy="blur",By="select",Gy=[zy,Ey,Vy,By],Hy={normal:["itemStyle"],emphasis:[Ey,"itemStyle"],blur:[Vy,"itemStyle"],select:[By,"itemStyle"]},Fy={normal:["label"],emphasis:[Ey,"label"],blur:[Vy,"label"],select:[By,"label"]},Wy=["x","y"],qy="e\0\0",Uy={normal:{},emphasis:{},blur:{},select:{}},Yy={cartesian2d:$g,geo:ty,single:ny,polar:ry,calendar:oy};function Xy(t){return t instanceof F["b"]}function Zy(t){return t instanceof eo["c"]}function Ky(t,e){e.copyTransform(t),Zy(e)&&Zy(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,Xy(e)&&Xy(t)&&e.setShape(t.shape))}var Jy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=rm(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){am(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&by(n,Xg(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);am(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?at(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=rm(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=am(null,null,u,a(u,r),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){m["traverseElements"](this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},e.type="custom",e}(tt["a"]),$y=Jy;function Qy(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=xm(i);e=m["makePath"](o,null,r,i.layout||"center"),Xg(e).customPathData=o}else if("image"===n)e=new S["a"]({}),Xg(e).customImagePath=t.style.image;else if("text"===n)e=new G["a"]({});else if("group"===n)e=new h["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=m["getShapeClass"](n);if(!a){var s="";0,Object(As["c"])(s)}e=new a}return Xg(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function tm(t,e,n,i,r,o,a){Ny(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=Wy);var l=i&&i.style;if(l){if("text"===e.type){var u=l;Object(g["q"])(u,"textFill")&&(u.fill=u.textFill),Object(g["q"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=Xy(e)?l.decal:null;t&&d&&(d.dirty=!0,c=Object(to["a"])(d,t)),l.__decalPattern=c}if(Zy(e)&&l){c=l.__decalPattern;c&&(l.decal=c)}my(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),Ry(e,i.keyframeAnimation,o)}function em(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Object(b["G"])(o)}}function nm(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<Gy.length;s++)im(i,e,Gy[s])}}function im(t,e,n){var i,r=n===zy,o=r?e:hm(e,n),a=o?o.z2:null;null!=a&&(i=r?t:t.ensureState(n),i.z2=a||0)}function rm(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):Yy[o.type](o));for(var s,l,u=Object(g["i"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:O,style:M,ordinalRawValue:S,styleEmphasis:I,visual:T,barLayout:D,currentSeriesIndices:A,font:k},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:om(t.getData())},d={},h={},p={},f={},y=0;y<Gy.length;y++){var m=Gy[y];p[m]=t.getModel(Hy[m]),f[m]=t.getModel(Fy[m])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(Hy[n])):v(t).getModel(Hy[n]):p[n]}function x(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(Fy[n])):v(t).getModel(Fy[n]):f[n]}return function(t,n){return s=t,l=null,d={},h={},r&&r(Object(g["i"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function O(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)}function S(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function M(n,i){null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=b(i,zy).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(g["C"])(o)?o:"#000"},c=x(i,zy),d=w["c"](c,null,u,!1,!0);d.text=c.getShallow("show")?Object(g["P"])(t.getFormattedLabel(i,zy),_(e,i)):null;var h=w["b"](c,u,!1);return C(n,l),l=uy(l,d,h),n&&j(l,n),l.legacy=!0,l}function I(n,i){null==i&&(i=s);var r=b(i,Ey).getItemStyle(),o=x(i,Ey),a=w["c"](o,null,null,!0,!0);a.text=o.getShallow("show")?Object(g["Q"])(t.getFormattedLabel(i,Ey),t.getFormattedLabel(i,zy),_(e,i)):null;var l=w["b"](o,null,!0);return C(n,r),r=uy(r,a,l),n&&j(r,n),r.legacy=!0,r}function j(t,e){for(var n in e)Object(g["q"])(e,n)&&(t[n]=e[n])}function C(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function T(t,n){if(null==n&&(n=s),Object(g["q"])(Ug,t)){var i=e.getItemVisual(n,"style");return i?i[Ug[t]]:null}if(Object(g["q"])(Yg,t))return e.getItemVisual(n,t)}function D(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return Object(Nt["b"])(Object(g["i"])({axis:e},t))}}function A(){return n.getCurrentSeriesIndices()}function k(t){return w["d"](t,n)}}function om(t){var e={};return Object(g["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=e[r]=e[r]||[];o[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function am(t,e,n,i,r,o,a){if(i){var s=sm(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Object(b["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function sm(t,e,n,i,r,o){var a=-1,s=e;e&&lm(e,i,r)&&(a=Object(g["r"])(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Qy(i),s&&Ky(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Uy.normal.cfg=Uy.normal.conOpt=Uy.emphasis.cfg=Uy.emphasis.conOpt=Uy.blur.cfg=Uy.blur.conOpt=Uy.select.cfg=Uy.select.conOpt=null,Uy.isLegacy=!1,cm(u,n,i,r,l,Uy),um(u,n,i,r,l),tm(t,u,n,i,Uy,r,l),Object(g["q"])(i,"info")&&(Xg(u).info=i.info);for(var c=0;c<Gy.length;c++){var d=Gy[c];if(d!==zy){var h=hm(i,d),p=pm(i,h,d);em(d,u,h,p,Uy)}}return nm(u,i,r),"group"===i.type&&fm(t,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function lm(t,e,n){var i=Xg(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&_m(o)&&xm(o)!==i.customPathData||"image"===r&&Object(g["q"])(a,"image")&&a.image!==i.customImagePath}function um(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&lm(a,o,i)&&(a=null),a||(a=Qy(o),t.setClipPath(a)),tm(null,a,e,o,null,i,r)}}function cm(t,e,n,i,r,o){if(!t.isGroup){dm(n,null,o),dm(n,Ey,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=Qy(a),t.setTextContent(c)),tm(null,c,e,a,null,i,r);for(var d=a&&a.style,h=0;h<Gy.length;h++){var p=Gy[h];if(p!==zy){var f=o[p].conOpt;em(p,c,f,pm(a,f,p),null)}}d?c.dirty():c.markRedraw()}}}}function dm(t,e,n){var i=e?hm(t,e):t,r=e?pm(t,i,Ey):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?hm(s,e):s:null;if(r&&(n.isLegacy||ay(r,o,!!a,!!l))){n.isLegacy=!0;var u=sy(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var d=e?n[e]:n.normal;d.cfg=a,d.conOpt=l}function hm(t,e){return e?t?t[e]:null:t}function pm(t,e,n){var i=e&&e.style;return null==i&&n===Ey&&t&&(i=t.styleEmphasis),i}function fm(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)ym({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e});else{u&&e.removeAll();for(var c=0;c<a;c++){var d=o[c],h=e.childAt(c);d?(null==d.ignore&&(d.ignore=!1),sm(t,h,n,d,r,e)):h.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var f=e.childAt(p);gm(e,f,r)}}}function gm(t,e,n){e&&by(e,Xg(t).option,n)}function ym(t){new rs["a"](t.oldChildren,t.newChildren,mm,mm,t).add(vm).update(vm).remove(bm).execute()}function mm(t,e){var n=t&&t.name;return null!=n?n:qy+e}function vm(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;sm(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function bm(t){var e=this.context,n=e.oldChildren[t];n&&by(n,Xg(n).option,e.seriesModel)}function xm(t){return t&&(t.pathData||t.d)}function _m(t){return t&&(Object(g["q"])(t,"pathData")||Object(g["q"])(t,"d"))}function Om(t){t.registerChartView($y),t.registerSeriesModel(Kg)}var wm=Object(H["o"])(),Sm=g["d"],Mm=g["c"],Im=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=g["h"](jm,e,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,e)}else a=this._group=new h["a"],this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Am(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=_i(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=wm(t).pointerEl=new m[r.type](Sm(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=wm(t).labelEl=new G["a"](Sm(e.label));t.add(r),Tm(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=wm(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=wm(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Tm(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=m["createIcon"](o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){pr["g"](t.event)},onmousedown:Mm(this._onHandleDragMove,this,0,0),drift:Mm(this._onHandleDragMove,this),ondragend:Mm(this._onHandleDragEnd,this)}),i.add(r)),Am(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");g["t"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Gt["b"](this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){jm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Dm(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Dm(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Dm(i)),wm(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.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),Gt["a"](this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function jm(t,e,n,i){Cm(wm(n).lastProp,i)||(wm(n).lastProp=i,e?y["h"](n,i,t):(n.stopAnimation(),n.attr(i)))}function Cm(t,e){if(g["A"](t)&&g["A"](e)){var n=!0;return g["k"](e,(function(e,i){n=n&&Cm(t[i],e)})),!!n}return t===e}function Tm(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Dm(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Am(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var km=Im;function Lm(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}function Pm(t,e,n,i,r){var o=n.get("value"),a=Rm(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=lt["i"](s.get("padding")||0),u=s.getFont(),c=qt["d"](a,u),d=r.position,h=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(d[0]-=h),"center"===f&&(d[0]-=h/2);var g=r.verticalAlign;"bottom"===g&&(d[1]-=p),"middle"===g&&(d[1]-=p/2),Nm(d,h,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:d[0],y:d[1],style:Object(w["c"])(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Nm(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Rm(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Cn["c"](e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};g["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),g["C"](a)?o=a.replace("{value}",o):g["w"](a)&&(o=a(s))}return o}function Em(t,e,n){var i=An["c"]();return An["g"](i,i,n.rotation),An["i"](i,i,n.position),m["applyTransform"]([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function zm(t,e,n,i,r,o){var a=pi.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Pm(e,i,r,o,{position:Em(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Vm(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Bm(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function Gm(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var Hm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Fm(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=Lm(i),d=Wm[s](o,u,l);d.style=c,t.graphicKey=d.type,t.pointer=d}var h=Bn(a.model,n);zm(e,t,h,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Bn(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Em(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Fm(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:d,tooltipOption:h[l]}},e}(km);function Fm(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Wm={line:function(t,e,n){var i=Vm([e,n[0]],[e,n[1]],qm(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:Bm([e-i/2,n[0]],[i,r],qm(t))}}};function qm(t){return"x"===t.dim?0:1}var Um=Hm,Ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},e}(pn["a"]),Xm=Ym,Zm=n("22d1"),Km=Object(H["o"])(),Jm=g["k"];function $m(t,e,n){if(!Zm["a"].node){var i=e.getZr();Km(i).records||(Km(i).records={}),Qm(i,e);var r=Km(i).records[t]||(Km(i).records[t]={});r.handler=n}}function Qm(t,e){function n(n,i){t.on(n,(function(n){var r=iv(e);Jm(Km(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),tv(r.pendings,e)}))}Km(t).initialized||(Km(t).initialized=!0,n("click",g["h"](nv,"click")),n("mousemove",g["h"](nv,"mousemove")),n("globalout",ev))}function tv(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function ev(t,e,n){t.handler("leave",null,n)}function nv(t,e,n,i){e.handler(t,n,i)}function iv(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function rv(t,e){if(!Zm["a"].node){var n=e.getZr(),i=(Km(n).records||{})[t];i&&(Km(n).records[t]=null)}}var ov=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";$m("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})}))},e.prototype.remove=function(t,e){rv("axisPointer",e)},e.prototype.dispose=function(t,e){rv("axisPointer",e)},e.type="axisPointer",e}(hn["a"]),av=ov;function sv(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=H["u"](o,t);if(null==a||a<0||g["t"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,p="x"===d||"radius"===d?1:0,f=o.mapDimension(h),y=[];y[p]=o.get(f,a),y[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(y)||[]}else i=l.dataToPoint(o.getValues(g["H"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),i=[m.x+m.width/2,m.y+m.height/2]}return{point:i,el:s}}var lv=Object(H["o"])();function uv(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(g["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bv(r)&&(r=sv({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bv(r),u=o.axesInfo,c=s.axesInfo,d="leave"===i||bv(r),h={},p={},f={list:[],map:{}},y={showPointer:Object(g["h"])(hv,p),showTooltip:Object(g["h"])(pv,f)};Object(g["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(g["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=mv(u,t);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&cv(t,a,y,!1,h)}}))}));var m={};return Object(g["k"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(g["k"])(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,vv(e),vv(t)))),m[t.key]=o}}))})),Object(g["k"])(m,(function(t,e){cv(c[e],t,y,!0,h)})),fv(p,c,h),gv(f,r,t,a),yv(c,a,n),h}}function cv(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=dv(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(g["m"])(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function dv(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(g["k"])(e.seriesModels,(function(e,l){var u,c,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(d,t,n);c=h.dataIndices,u=h.nestestValue}else{if(c=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(d[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,r=u,o.length=0),Object(g["k"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function hv(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function pv(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Si(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function fv(t,e,n){var i=n.axesInfo=[];Object(g["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function gv(t,e,n,i){if(!bv(e)&&t.list.length){var r=((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:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function yv(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=lv(i)[r]||{},a=lv(i)[r]={};Object(g["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(g["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(g["k"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(g["k"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function mv(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 vv(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 bv(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function xv(t){ji.registerAxisPointerClass("CartesianAxisPointer",Um),t.registerComponentModel(Xm),t.registerComponentView(av),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(g["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=fi(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uv)}function _v(t){Object(i["a"])(Vi),Object(i["a"])(xv)}var Ov=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var d=Lm(i),h=Sv[c](o,a,u,l);h.style=d,t.graphicKey=h.type,t.pointer=h}var p=i.get(["label","margin"]),f=wv(e,n,i,a,p);Pm(t,n,i,r,f)},e}(km);function wv(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=An["c"]();An["g"](h,h,s),An["i"](h,h,[i.cx,i.cy]),l=m["applyTransform"]([a,-r],h);var p=e.getModel("axisLabel").get("rotate")||0,f=pi.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var Sv={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:Vm(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){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Gm(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:Gm(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},Mv=Ov,Iv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(pn["a"]),jv=Iv,Cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",H["b"]).models[0]},e.type="polarAxis",e}(pn["a"]);g["K"](Cv,yn["a"]);var Tv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="angleAxis",e}(Cv),Dv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="radiusAxis",e}(Cv),Av=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(l["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(En["a"]);Av.prototype.dataToRadius=En["a"].prototype.dataToCoord,Av.prototype.radiusToData=En["a"].prototype.coordToData;var kv=Av,Lv=Object(H["o"])(),Pv=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(l["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=qt["d"](null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=Lv(t.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-r)<=1&&p>d?d=p:(h.lastTickCount=r,h.lastAutoInterval=d),d},e}(En["a"]);Pv.prototype.dataToAngle=En["a"].prototype.dataToCoord,Pv.prototype.angleToData=En["a"].prototype.coordToData;var Nv=Pv,Rv=["radius","angle"],Ev=function(){function t(t){this.dimensions=Rv,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new kv,this._angleAxis=new Nv,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.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},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=zv(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=zv(e);return i===this?this.pointToData(n):null},t}();function zv(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var Vv=Ev;function Bv(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Object(it["q"])(i[0],r),t.cy=Object(it["q"])(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:g["t"](l)||(l=[0,l]);var u=[Object(it["q"])(l[0],s),Object(it["q"])(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Gv(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();g["k"](Object(Cn["d"])(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),g["k"](Object(Cn["d"])(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Object(Cn["i"])(i.scale,i.model),Object(Cn["i"])(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Hv(t){return"angleAxis"===t.mainType}function Fv(t,e){if(t.type=e.get("type"),t.scale=Object(Cn["a"])(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),Hv(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var Wv={dimensions:Rv,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new Vv(i+"");r.update=Gv;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Fv(o,s),Fv(a,l),Bv(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",H["b"]).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},qv=Wv,Uv=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Yv(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Xv(t){var e=t.getRadiusAxis();return e.inverse?0:1}function Zv(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var Kv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(l["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=g["H"](n.getViewLabels(),(function(t){t=g["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));Zv(s),Zv(o),g["k"](Uv,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||Jv[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(ji),Jv={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=Xv(n),u=l?0:1;a=0===o[u]?new er["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new nr["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Xv(n)],u=g["H"](i,(function(t){return new Qn["a"]({shape:Yv(n,[l,l+s],t.coord)})}));t.add(m["mergePath"](u,{style:g["i"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Xv(n)],c=[],d=0;d<r.length;d++)for(var h=0;h<r[d].length;h++)c.push(new Qn["a"]({shape:Yv(n,[u,u+l],r[d][h].coord)}));t.add(m["mergePath"](c,{style:g["i"](s.getModel("lineStyle").getLineStyle(),g["i"](a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");g["k"](a,(function(i,r){var a=l,d=i.tickValue,h=o[Xv(n)],p=n.coordToPoint([h+u,i.coord]),f=n.cx,y=n.cy,m=Math.abs(p[0]-f)/h<.3?"center":p[0]>f?"left":"right",b=Math.abs(p[1]-y)/h<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[d]){var x=s[d];g["A"](x)&&x.textStyle&&(a=new ti["a"](x.textStyle,l,l.ecModel))}var _=new G["a"]({silent:pi.isLabelSilent(e),style:Object(w["c"])(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:b})});if(t.add(_),c){var O=pi.makeAxisEventDataBase(e);O.targetType="axisLabel",O.value=i.rawLabel,Object(v["a"])(_).eventData=O}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Qn["a"]({shape:Yv(n,o,i[d].coord)}))}for(d=0;d<c.length;d++)t.add(m["mergePath"](c[d],{style:g["i"]({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new Qn["a"]({shape:Yv(n,o,r[u][c].coord)}));t.add(m["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,h=-i[0].coord*d,p=Math.min(o[0],o[1]),f=Math.max(o[0],o[1]),y=e.get("clockwise"),v=1,b=i.length;v<=b;v++){var x=v===b?i[0].coord:i[v].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new nt["a"]({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:h,endAngle:-x*d,clockwise:y},silent:!0})),h=-x*d}for(v=0;v<c.length;v++)t.add(m["mergePath"](c[v],{style:g["i"]({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},$v=Kv,Qv=["axisLine","axisTickLabel","axisName"],tb=["splitLine","splitArea","minorSplitLine"],eb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(l["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new h["a"];this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=a.getExtent()[0],c=r.getExtent(),d=ib(o,t,u),p=new pi(t,d);g["k"](Qv,p.add,p),i.add(p.getGroup()),m["groupTransition"](n,i,t),g["k"](tb,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&nb[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(ji),nb={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<o.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new er["a"]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[d].coord,0)}}))}for(d=0;d<c.length;d++)t.add(m["mergePath"](c[d],{style:g["i"]({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var d=0;d<a[c].length;d++)u.push(new er["a"]({shape:{cx:n.cx,cy:n.cy,r:a[c][d].coord}}));t.add(m["mergePath"](u,{style:g["i"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=o[0].coord,h=1;h<o.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new nt["a"]({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[h].coord}for(h=0;h<c.length;h++)t.add(m["mergePath"](c[h],{style:g["i"]({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function ib(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 rb=eb;function ob(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ab(t,e){return e.dim+t.model.componentIndex}function sb(t,e,n){var i={},r=lb(g["n"](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,o=n.getBaseAxis(),a=ab(n,o),s=ob(t),l=r[a][s],u=l.offset,c=l.width,d=n.getOtherAxis(o),h=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=e.mapDimension(d.dim),m=e.mapDimension(o.dim),v=Object(L["c"])(e,y),b="radius"!==o.dim||!t.get("roundCap",!0),x=d.dataToCoord(0),_=0,O=e.count();_<O;_++){var w=e.get(y,_),S=e.get(m,_),M=w>=0?"p":"n",I=x;v&&(i[s][S]||(i[s][S]={p:x,n:x}),I=i[s][S][M]);var j=void 0,C=void 0,T=void 0,D=void 0;if("radius"===d.dim){var A=d.dataToCoord(w)-x,k=o.dataToCoord(S);Math.abs(A)<f&&(A=(A<0?-1:1)*f),j=I,C=I+A,T=k-u,D=T-c,v&&(i[s][S][M]=C)}else{var P=d.dataToCoord(w,b)-x,N=o.dataToCoord(S);Math.abs(P)<g&&(P=(P<0?-1:1)*g),j=N+u,C=j+c,T=I,D=I+P,v&&(i[s][S][M]=D)}e.setItemLayout(_,{cx:h,cy:p,r0:j,r:C,startAngle:-T*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:T>=D})}}}))}function lb(t){var e={};g["k"](t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=ab(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var d=ob(t);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Object(it["q"])(t.get("barWidth"),l),p=Object(it["q"])(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),p&&(c[d].maxWidth=p),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return g["k"](e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=Object(it["q"])(t.categoryGap,r),a=Object(it["q"])(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),g["k"](i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,d=0;g["k"](i,(function(t,e){t.width||(t.width=u),c=t,d+=t.width*(1+a)})),c&&(d-=c.width*a);var h=-d/2;g["k"](i,(function(t,i){n[e][i]=n[e][i]||{offset:h,width:t.width},h+=t.width*(1+a)}))})),n}var ub=sb,cb={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},db={splitNumber:5},hb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="polar",e}(hn["a"]);function pb(t){Object(i["a"])(xv),ji.registerAxisPointerClass("PolarAxisPointer",Mv),t.registerCoordinateSystem("polar",qv),t.registerComponentModel(jv),t.registerComponentView(hb),In(t,"angle",Tv,cb),In(t,"radius",Dv,db),t.registerComponentView($v),t.registerComponentView(rb),t.registerLayout(Object(g["h"])(ub,"bar"))}function fb(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[a];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),g["O"](e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var gb=["axisLine","axisTickLabel","axisName"],yb=["splitArea","splitLine"],mb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return Object(l["a"])(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new h["a"];var s=fb(e),l=new pi(e,s);g["k"](gb,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),g["k"](yb,(function(t){e.get([t,"show"])&&vb[t](this,this.group,this._axisGroup,e)}),this),m["groupTransition"](a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){Di(this)},e.type="singleAxis",e}(ji),vb={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),d=[],h=0,p=r.getTicksCoords({tickModel:o}),f=[],y=[],v=0;v<p.length;++v){var b=r.toGlobalCoord(p[v].coord);c?(f[0]=b,f[1]=u.y,y[0]=b,y[1]=u.y+u.height):(f[0]=u.x,f[1]=b,y[0]=u.x+u.width,y[1]=b);var x=new Qn["a"]({shape:{x1:f[0],y1:f[1],x2:y[0],y2:y[1]},silent:!0});m["subPixelOptimizeLine"](x.shape,l);var _=h++%s.length;d[_]=d[_]||[],d[_].push(x)}var O=a.getLineStyle(["color"]);for(v=0;v<d.length;++v)e.add(m["mergePath"](d[v],{style:g["i"]({stroke:s[v%s.length]},O),silent:!0}))}},splitArea:function(t,e,n,i){Ti(t,n,i,i)}},bb=mb,xb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(pn["a"]);Object(g["K"])(xb,yn["a"].prototype);var _b=xb,Ob=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return Object(l["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(En["a"]),wb=Ob,Sb=["single"],Mb=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=Sb,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new wb(i,Cn["a"](t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(g["k"])(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),Cn["i"](this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(Se["g"])({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()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?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},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=Ib(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=Ib(e);return i===this?this.pointToData(n):null},t}();function Ib(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var jb=Mb;function Cb(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new jb(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",H["b"]).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var Tb={create:Cb,dimensions:Sb},Db=Tb,Ab=["x","y"],kb=["width","height"],Lb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Rb(a,1-Nb(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=Lm(i),d=Pb[u](o,l,s);d.style=c,t.graphicKey=d.type,t.pointer=d}var h=fb(n);zm(e,t,h,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=fb(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Em(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=Nb(r),s=Rb(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Rb(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(km),Pb={line:function(t,e,n){var i=Vm([e,n[0]],[e,n[1]],Nb(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:Bm([e-i/2,n[0]],[i,r],Nb(t))}}};function Nb(t){return t.isHorizontal()?0:1}function Rb(t,e){var n=t.getRect();return[n[Ab[e]],n[Ab[e]]+n[kb[e]]]}var Eb=Lb,zb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="single",e}(hn["a"]);function Vb(t){Object(i["a"])(xv),ji.registerAxisPointerClass("SingleAxisPointer",Eb),t.registerComponentView(zb),t.registerComponentView(bb),t.registerComponentModel(_b),In(t,"single",_b,_b.defaultOption),t.registerCoordinateSystem("single",Db)}var Bb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(e,n,i){var r=Object(Se["f"])(e);t.prototype.init.apply(this,arguments),Gb(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Gb(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(pn["a"]);function Gb(t,e){var n,i=t.cellSize;n=g["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=g["H"]([0,1],(function(t){return Object(Se["j"])(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Object(Se["h"])(t,e,{type:"box",ignoreSize:r})}var Hb=Bb,Fb=n("ef59"),Wb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new et["a"]({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){h(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Ae["a"]({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(g["C"])(t)&&t?Object(lt["f"])(t,e):Object(g["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=e.start.y;+e.end.y>+e.start.y&&(h=h+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:h},g=this._formatterLabel(p,f),y=new G["a"]({z2:30,style:Object(w["c"])(r,{text:g})});y.attr(this._yearTextPositionControl(y,d[a],n,a,o)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(g["C"])(o)||(o&&(e=Object(Fb["d"])(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,p=0;p<u[c].length-1;p++){var f=u[c][p].slice(),y=this._firstDayOfMonth[p];if(h){var m=this._firstDayPoints[p];f[d]=(m[d]+u[0][p+1][d])/2}var v=r.get("formatter"),b=o[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},_=this._formatterLabel(v,x),O=new G["a"]({z2:30,style:Object(g["m"])(Object(w["c"])(r,{text:_}),this._monthTextPositionControl(f,h,n,s,a))});i.add(O)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Object(g["C"])(l)){l&&(e=Object(Fb["d"])(l)||e);var d=e.get(["time","dayOfWeekShort"]);l=d||Object(g["H"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Object(it["q"])(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=0;f<7;f++){var y=a.getNextNDay(h,f),m=a.dataToRect([y.time],!1).center,v=f;v=Math.abs((f+c)%7);var b=new G["a"]({z2:30,style:Object(g["m"])(Object(w["c"])(o,{text:l[v]}),this._weekTextPositionControl(m,i,s,u,p))});r.add(b)}}},e.type="calendar",e}(hn["a"]),qb=Wb,Ub=864e5,Yb=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=it["p"](t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];g["k"]([0,1],(function(t){u(r,t)&&(o[i[t]]=r[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Se["g"](o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}g["k"]([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){g["t"](t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Ub))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.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]}},t.prototype.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)},t.prototype.convertToPixel=function(t,e,n){var i=Xb(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=Xb(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(g["t"](e)&&1===e.length&&(e=e[0]),g["t"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/Ub)-Math.floor(n[0].time/Ub)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._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 null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function Xb(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var Zb=Yb;function Kb(t){t.registerComponentModel(Hb),t.registerComponentView(qb),t.registerCoordinateSystem("calendar",Zb)}function Jb(t,e){var n=t.existing;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 $b(t,e){var n;return g["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function Qb(t,e,n){var i=g["m"]({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(g["I"](r,i,!0),Object(Se["h"])(r,i,{ignoreSize:!0}),Object(Se["c"])(n,r),nx(n,r),nx(n,r,"shape"),nx(n,r,"style"),nx(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}var tx=["transition","enterFrom","leaveTo"],ex=tx.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function nx(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?tx:ex,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}function ix(t,e){if(t&&(t.hv=e.hv=[$b(e,["left","right"]),$b(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var rx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return Object(l["a"])(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=H["q"](r,o,"normalMerge"),s=this._elOptionsToUpdate=[];g["k"](a,(function(t,e){var n=t.newOption;n&&(s.push(n),Jb(t,n),Qb(r,e,n),ix(r[e],n))}),this),n.elements=g["n"](r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){g["k"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(pn["a"]),ox={path:null,compoundPath:null,group:h["a"],image:S["a"],text:G["a"]},ax=H["o"](),sx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(){this._elMap=g["f"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");g["k"](e,(function(e){var a=H["e"](e.id,null),s=null!=a?n.get(a):null,l=H["e"](e.parentId,null),u=null!=l?n.get(l):i,c=e.type,d=e.style;"text"===c&&d&&e.hv&&e.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var h=e.textContent,p=e.textConfig;if(d&&ay(d,c,!!p,!!h)){var f=sy(d,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!h&&f.textContent&&(h=f.textContent)}var g=hx(e);var y=e.$action||"merge",v="merge"===y,b="replace"===y;if(v){var x=!s,_=s;x?_=ux(a,u,e.type,n):(_&&(ax(_).isNew=!1),Ny(_)),_&&(my(_,g,t,{isInit:x}),dx(_,e,r,o))}else if(b){cx(s,e,n,t);var O=ux(a,u,e.type,n);O&&(my(O,g,t,{isInit:!0}),dx(O,e,r,o))}else"remove"===y&&(vy(s,e),cx(s,e,n,t));var w=n.get(a);if(w&&h)if(v){var S=w.getTextContent();S?S.attr(h):w.setTextContent(new G["a"](h))}else b&&w.setTextContent(new G["a"](h));if(w){var M=e.clipPath;if(M){var I=M.type,j=void 0;x=!1;if(v){var C=w.getClipPath();x=!C||ax(C).type!==I,j=x?lx(I):C}else b&&(x=!0,j=lx(I));w.setClipPath(j),my(j,M,t,{isInit:x}),Ry(j,M.keyframeAnimation,t)}var T=ax(w);w.setTextConfig(p),T.option=e,px(w,t,e),m["setTooltipConfig"]({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),Ry(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=H["e"](u.id,null),d=null!=c?r.get(c):null;if(d&&d.isGroup){var h=d.parent,p=h===i,f=ax(d),m=ax(h);f.width=Object(it["q"])(f.option.width,p?o:m.width)||0,f.height=Object(it["q"])(f.option.height,p?a:m.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=H["e"](u.id,null),d=null!=c?r.get(c):null;if(d){h=d.parent,m=ax(h);var v=h===i?{width:o,height:a}:{width:m.width,height:m.height},b={},x=Se["i"](d,u,v,null,{hv:u.hv,boundingMode:u.bounding},b);if(!ax(d).isNew&&x){for(var _=u.transition,O={},w=0;w<s.length;w++){var S=s[w],M=b[S];_&&(xy(_)||g["r"](_,S)>=0)?O[S]=M:d[S]=M}Object(y["h"])(d,O,t,0)}else d.attr(b)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){cx(n,ax(n).option,e,t._lastGraphicModel)})),this._elMap=g["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(hn["a"]);function lx(t){var e=g["q"](ox,t)?ox[t]:m["getShapeClass"](t);var n=new e({});return ax(n).type=t,n}function ux(t,e,n,i){var r=lx(n);return e.add(r),i.set(t,r),ax(r).id=t,ax(r).isNew=!0,r}function cx(t,e,n,i){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){cx(t,e,n,i)})),by(t,e,i),n.removeKey(ax(t).id))}function dx(t,e,n,i){t.isGroup||g["k"]([["cursor",eo["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];g["q"](e,i)?t[i]=g["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),g["k"](g["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=g["w"](i)?i:null}})),g["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function hx(t){return t=g["m"]({},t),g["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Se["a"]),(function(e){delete t[e]})),t}function px(t,e,n){var i=Object(v["a"])(t).eventData;t.silent||t.ignore||i||(i=Object(v["a"])(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function fx(t){t.registerComponentModel(rx),t.registerComponentView(sx),t.registerPreprocessor((function(t){var e=t.graphic;Object(g["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var gx=["x","y","radius","angle","single"],yx=["cartesian2d","polar","singleAxis"];function mx(t){var e=t.get("coordinateSystem");return Object(g["r"])(yx,e)>=0}function vx(t){return t+"Axis"}function bx(t,e){var n,i=Object(g["f"])(),r=[],o=Object(g["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function xx(t){var e=t.ecModel,n={infoList:[],infoMap:Object(g["f"])()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(vx(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var _x=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),Ox=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){var i=wx(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=wx(t);Object(g["I"])(this.option,t,!0),Object(g["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(g["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(g["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(g["k"])(gx,(function(n){var i=this.getReferringComponents(vx(n),H["a"]);if(i.specified){e=!0;var r=new _x;Object(g["k"])(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new _x;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",H["b"]).models[0];a&&Object(g["k"])(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",H["b"]).models[0]&&o.add(t.componentIndex)}))}}}i&&Object(g["k"])(gx,(function(e){if(i){var r=n.findComponents({mainType:vx(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new _x;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._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}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(g["k"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(vx(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(g["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(vx(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(g["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(g["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.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},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(pn["a"]);function wx(t){var e={};return Object(g["k"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var Sx=Ox,Mx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="dataZoom.select",e}(Sx),Ix=Mx,jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(hn["a"]),Cx=jx,Tx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="dataZoom.select",e}(Cx),Dx=Tx,Ax=n("538f"),kx=g["k"],Lx=it["c"],Px=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(mx(e)){var n=vx(this._dimName),i=e.getReferringComponents(n,H["b"]).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return g["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];kx(["start","end"],(function(i,u){var c=t[i],d=t[i+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),d=r.parse(it["m"](c,a,n))):(e=!0,d=null==d?n[u]:r.parse(d),c=it["m"](d,n,a)),l[u]=null==d||isNaN(d)?n[u]:d,s[u]=null==c||isNaN(c)?a[u]:c})),Lx(l),Lx(s);var u=this._minMaxSpan;function c(t,e,n,i,o){var a=o?"Span":"ValueSpan";Wc(0,t,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)e[s]=it["m"](t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Nx(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&kx(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=e.getStore(),l=g["H"](i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,a=0;a<i.length;a++){var u=s.get(l[a],t),c=!isNaN(u),d=u<o[0],h=u>o[1];if(c&&!d&&!h)return!0;c&&(r=!0),d&&(e=!0),h&&(n=!0)}return r&&e&&n}))}else kx(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));kx(i,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;kx(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=it["m"](n[0]+o,n,[0,100],!0):null!=r&&(o=it["m"](r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=it["g"](n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();function Nx(t,e,n){var i=[1/0,-1/0];kx(n,(function(t){Object(Cn["k"])(i,t.getData(),e)}));var r=t.getAxisModel(),o=Object(Ax["a"])(r.axis.scale,r,i).calculate();return[o.min,o.max]}var Rx=Px,Ex={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(vx(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Rx(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Object(g["f"])();return Object(g["k"])(n,(function(t){Object(g["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},zx=Ex;function Vx(t){t.registerAction("dataZoom",(function(t,e){var n=bx(e,t);Object(g["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var Bx=!1;function Gx(t){Bx||(Bx=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,zx),Vx(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Hx(t){t.registerComponentModel(Ix),t.registerComponentView(Dx),Gx(t)}var Fx=function(){function t(){}return t}(),Wx={};function qx(t,e){Wx[t]=e}function Ux(t){return Wx[t]}var Yx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;g["k"](this.option.feature,(function(t,n){var i=Ux(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),g["I"](t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(pn["a"]),Xx=Yx;function Zx(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Object(Se["g"])(i,o,r);Object(Se["b"])(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Object(Se["i"])(t,i,o,r)}function Kx(t,e){var n=lt["i"](e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new et["a"]({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var Jx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];g["k"](s,(function(t,e){u.push(e)})),new rs["a"](this._featureNames||[],u).add(c).update(c).remove(g["h"](c,null)).execute(),this._featureNames=u,Zx(r,t,n),r.add(Kx(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!g["w"](l)&&e){var u=l.style||(l.style={}),c=qt["d"](e,G["a"].makeFont(u)),d=t.x+r.x,h=t.y+r.y+o,p=!1;h+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],h=u[o],p=s[c],f=new ti["a"](p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if($x(c))a={onclick:f.option.onclick,featureName:c};else{var g=Ux(c);if(!g)return;a=new g}l[c]=a}else if(a=l[h],!a)return;a.uid=Object(zt["c"])("toolbox-feature"),a.model=f,a.ecModel=e,a.api=n;var y=a instanceof Fx;c||!h?!f.get("show")||y&&a.unusable?y&&a.remove&&a.remove(e,n):(d(f,a,c),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?b["r"]:b["C"])(i[t])},a instanceof Fx&&a.render&&a.render(f,e,n,i)):y&&a.dispose&&a.dispose(e,n)}function d(i,s,l){var u,c,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),p=s instanceof Fx&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};g["C"](p)?(u={},u[l]=p):u=p,g["C"](f)?(c={},c[l]=f):c=f;var y=i.iconPaths={};g["k"](u,(function(l,u){var p=m["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var v=new G["a"]({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),m["setTooltipConfig"]({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=h.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";v.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||i}),v.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?b["r"]:b["C"])(p),r.add(p),p.on("click",g["c"](s.onclick,s,e,n,u)),y[u]=p}))}},e.prototype.updateView=function(t,e,n,i){g["k"](this._features,(function(t){t instanceof Fx&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){g["k"](this._features,(function(n){n instanceof Fx&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){g["k"](this._features,(function(n){n instanceof Fx&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(hn["a"]);function $x(t){return 0===t.indexOf("my")}var Qx=Jx,t_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Zm["a"].browser;if(Object(g["w"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var c=a.split(","),d=c[0].indexOf("base64")>-1,h=r?decodeURIComponent(c[1]):c[1];d&&(h=window.atob(h));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var f=h.length,y=new Uint8Array(f);while(f--)y[f]=h.charCodeAt(f);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var v=document.createElement("iframe");document.body.appendChild(v);var b=v.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(v)}}else{var _=n.get("lang"),O='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',w=window.open();w.document.write(O),w.document.title=i}},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(Fx),e_=t_,n_="__ec_magicType_stack__",i_=[["line","bar"],["stack"]],r_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return g["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={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"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(o_[n]){var o,a={series:[]},s=function(t){var e=t.subType,r=t.id,o=o_[n](e,r,t,i);o&&(g["i"](o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",d=t.getReferringComponents(c,H["b"]).models[0],h=d.componentIndex;a[c]=a[c]||[];for(var p=0;p<=h;p++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}};g["k"](i_,(function(t){g["r"](t,n)>=0&&g["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=g["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(Fx),o_={line:function(t,e,n,i){if("bar"===t)return g["I"]({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 g["I"]({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){var r=n.get("stack")===n_;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),g["I"]({id:e,stack:r?"":n_},i.get(["option","stack"])||{},!0)}};fr["c"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var a_=r_,s_=new Array(60).join("-"),l_="\t";function u_(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function c_(t){var e=[];return g["k"](t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(g["H"](t.series,(function(t){return t.name}))),s=[i.model.getCategories()];g["k"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(l_)],u=0;u<s[0].length;u++){for(var c=[],d=0;d<s.length;d++)c.push(s[d][u]);l.push(c.join(l_))}e.push(l.join("\n"))})),e.join("\n\n"+s_+"\n\n")}function d_(t){return g["H"](t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+l_:"")+i.join(l_))})),n.join("\n")})).join("\n\n"+s_+"\n\n")}function h_(t){var e=u_(t);return{value:g["n"]([c_(e.seriesGroupByCategoryAxis),d_(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+s_+"\n\n"),meta:e.meta}}function p_(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function f_(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(l_)>=0)return!0}var g_=new RegExp("["+l_+"]+","g");function y_(t){for(var e=t.split(/\n+/g),n=p_(e.shift()).split(g_),i=[],r=g["H"](n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=p_(e[o]).split(g_);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function m_(t){for(var e=t.split(/\n+/g),n=p_(e.shift()),i=[],r=0;r<e.length;r++){var o=p_(e[r]);if(o){var a=o.split(g_),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function v_(t,e){var n=t.split(new RegExp("\n*"+s_+"\n*","g")),i={series:[]};return g["k"](n,(function(t,n){if(f_(t)){var r=y_(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=m_(t);i.series.push(r)}})),i}var b_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),d=h_(t);if(g["w"](u)){var h=u(e.getOption());g["C"](h)?s.innerHTML=h:g["v"](h)&&s.appendChild(h)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function _(){n.removeChild(r),x._dom=null}Object(pr["a"])(v,"click",_),Object(pr["a"])(b,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=g["w"](c)?c(s,e.getOption()):v_(l.value,f)}catch(n){throw _(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),v.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=v.style.cssText=m,!i.get("readOnly")&&y.appendChild(b),y.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(y),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(Fx);function x_(t,e){return g["H"](t,(function(t,n){var i=e&&e[n];if(g["A"](i)&&!g["t"](i)){var r=g["A"](t)&&!g["t"](t);r||(t={value:t});var o=null!=i.name&&null==t.name;return t=g["i"](t,i),o&&delete t.name,t}return t}))}fr["c"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];g["k"](t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:x_(t.data,r)})}else n.push(g["m"]({type:"scatter"},t))})),e.mergeOption(g["i"]({series:n},t.newOption))}));var __=b_,O_=g["k"],w_=Object(H["o"])();function S_(t,e){var n=C_(t);O_(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function M_(t){var e=C_(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return O_(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}function I_(t){w_(t).snapshots=null}function j_(t){return C_(t).length}function C_(t){var e=w_(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var T_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.onclick=function(t,e){I_(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(Fx);fr["c"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var D_=T_,A_=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],k_=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=P_(e,t);Object(g["k"])(N_,(function(t,e){(!n||!n.include||Object(g["r"])(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=z_[t.brushType](0,n,e);t.__rangeOffset={offset:B_[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(g["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(g["k"])(i.coordSyses,(function(i){var r=z_[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(g["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=z_[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?B_[t.brushType](i.values,r.offset,H_(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(g["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:ah(i),isTargetByCursor:lh(i,t,n.coordSysModel),getLinearBrushOtherExtent:sh(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(g["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=P_(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<R_.length;s++)if(R_[s](i,o))return o}return!0},t}();function L_(t){return t[0]>t[1]&&t.reverse(),t}function P_(t,e){return Object(H["s"])(t,e,{includeMainTypes:A_})}var N_={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Object(g["f"])(),a={},s={};(n||i||r)&&(Object(g["k"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(g["k"])(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Object(g["k"])(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Object(g["k"])(r.getCartesians(),(function(t,e){(Object(g["r"])(n,t.getAxis("x").model)>=0||Object(g["r"])(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:E_.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(g["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:E_.geo})}))}},R_=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],E_={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(m["getTransform"](t)),e}},z_={lineX:Object(g["h"])(V_,0),lineY:Object(g["h"])(V_,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[L_([r[0],o[0]]),L_([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(g["H"])(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function V_(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=L_(Object(g["H"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var B_={lineX:Object(g["h"])(G_,0),lineY:Object(g["h"])(G_,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 Object(g["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function G_(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function H_(t,e){var n=F_(t),i=F_(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function F_(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var W_=k_,q_=n("2f1f"),U_=g["k"],Y_=Object(H["p"])("toolbox-dataZoom_"),X_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new oh(n.getZr()),this._brushController.on("brush",g["c"](this._onBrush,this)).mount()),$_(t,e,this,i,n),J_(t,e)},e.prototype.onclick=function(t,e,n){Z_[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new W_(K_(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),S_(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),s=o.model,l=a(t,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=Wc(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];U_(t,(function(t,n){e.push(g["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(Fx),Z_={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(M_(this.ecModel))}};function K_(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function J_(t,e){t.setIconStatus("back",j_(e)>1?"emphasis":"normal")}function $_(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new W_(K_(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(q_["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=K_(i),a=Object(H["s"])(t,o);return U_(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),U_(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Y_+e+o};a[n]=o,r.push(a)}}));var Q_=X_;function tO(t){t.registerComponentModel(Xx),t.registerComponentView(Qx),qx("saveAsImage",e_),qx("magicType",a_),qx("dataView",__),qx("dataZoom",Q_),qx("restore",D_),Object(i["a"])(Hx)}var eO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(pn["a"]),nO=eO,iO=n("65ed");function rO(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function oO(t){if(Zm["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var aO=oO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),sO=oO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lO(t,e){if(!t)return e;e=Object(lt["j"])(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function uO(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var cO=lO(sO,"transition"),dO=lO(aO,"transform"),hO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Zm["a"].transform3dSupported?"will-change:transform;":"");function pO(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function fO(t,e,n){if(!Object(g["C"])(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Object(lt["c"])(e);var o,a=pO(n),s=Math.max(1.5*Math.round(r),6),l="",u=dO+":";Object(g["r"])(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,d=s+r,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),p=Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-d)/2))/100;l+=";"+a+":-"+p+"px";var f=e+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function gO(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=Zm["a"].transformSupported?","+dO+i:",left"+i+",top"+i),cO+":"+r}function yO(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!Zm["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Zm["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+dO+":"+a+";":[["top",0],["left",0],[aO,a]]}function mO(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),Object(g["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function vO(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),d=Object(Xi["d"])(t,"html"),h=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+h),e&&r&&i.push(gO(r,n)),o&&i.push("background-color:"+o),Object(g["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=Object(lt["j"])(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(mO(c)),null!=d&&i.push("padding:"+Object(lt["i"])(d).join("px ")+"px"),i.join(";")+";"}function bO(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&Object(iO["d"])(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var xO=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Zm["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;bO(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();Object(pr["e"])(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=uO(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=hO+vO(t,!this._firstShow,this._longHide)+yO(r[0],r[1],!0)+"border-color:"+Object(lt["c"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(g["C"])(r)&&"item"===n.get("trigger")&&!rO(n)&&(a=fO(n,i,r)),Object(g["C"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(g["t"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(g["v"])(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(bO(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=yO(n[0],n[1]);Object(g["k"])(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Zm["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(g["c"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),_O=xO,OO=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),MO(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;g["A"](t)&&Object(As["c"])(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new G["a"]({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(Xi["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),g["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),g["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=SO(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;MO(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=wO(r.borderWidth||0),a=SO(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(g["c"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function wO(t){return Math.max(0,t)}function SO(t){var e=wO(t.shadowBlur||0),n=wO(t.shadowOffsetX||0),i=wO(t.shadowOffsetY||0);return{left:wO(e-n),right:wO(e+n),top:wO(e-i),bottom:wO(e+i)}}function MO(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var IO=OO,jO=n("f876"),CO=n("38a2"),TO=new et["a"]({shape:{x:-1,y:-1,width:2,height:2}}),DO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){if(!Zm["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Object(H["i"])(n.get("renderMode"));this._tooltipContent="richText"===i?new IO(e):new _O(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!Zm["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Object(Gt["b"])(this,"_updatePosition",50,"fixRate"):Object(Gt["a"])(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");$m("itemTooltip",this._api,Object(g["c"])((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Zm["a"].node&&n.getDom()){var r=kO(i,n);this._ticket="";var o=i.dataByCoordSys,a=EO(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=TO;l.x=i.x,l.y=i.y,l.update(),Object(v["a"])(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=sv(i,e),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:i.position,positionDefault:"bottom"},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},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(kO(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=AO([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a;this._lastDataByCoordSys=null,Object(Wo["a"])(n,(function(t){return null!=Object(v["a"])(t).dataIndex?(o=t,!0):null!=Object(v["a"])(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(g["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=AO([e.tooltipOption],i),a=this._renderMode,s=[],l=Object(Xi["c"])("section",{blocks:[],noHeader:!0}),u=[],c=new Xi["a"];Object(g["k"])(t,(function(t){Object(g["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Rm(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=Object(Xi["c"])("section",{header:o,noHeader:!Object(g["T"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(g["k"])(t.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Cn["c"](e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Object(lt["c"])(f.color),a);var y=Object(CO["b"])(h.formatTooltip(p,!0,null)),m=y.frag;if(m){var v=AO([h],i).get("valueFormatter");d.blocks.push(v?Object(g["m"])({valueFormatter:v},m):m)}y.text&&u.push(y.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=e.position,h=o.get("order"),p=Object(Xi["b"])(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",y=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],d,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Object(v["a"])(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),d=this._renderMode,h=t.positionDefault,p=AO([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var y=s.getDataParams(l,u),m=new Xi["a"];y.marker=m.makeTooltipMarker("item",Object(lt["c"])(y.color),d);var b=Object(CO["b"])(s.formatTooltip(l,!1,u)),x=p.get("order"),_=p.get("valueFormatter"),O=b.frag,w=O?Object(Xi["b"])(_?Object(g["m"])({valueFormatter:_},O):O,m,d,x,i.get("useUTC"),p.get("textStyle")):b.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,y,S,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Object(v["a"])(e),r=i.tooltipConfig,o=r.option||{};if(Object(g["C"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=AO(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new Xi["a"];this._showOrMove(c,(function(){var n=Object(g["d"])(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var d=e,h=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),p=h.color;if(c)if(Object(g["C"])(c)){var f=t.ecModel.get("useUTC"),y=Object(g["t"])(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=c,m&&(d=Object(jO["h"])(y.axisValue,d,f)),d=Object(lt["e"])(d,n,!0)}else if(Object(g["w"])(c)){var v=Object(g["c"])((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,d=c(n,i,v)}else d=c;u.setContent(d,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(g["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(g["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),d=t.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),Object(g["w"])(e)&&(e=e([n,i],o,r.el,h,{viewSize:[s,l],contentSize:u.slice()})),Object(g["t"])(e))n=Object(it["q"])(e[0],s),i=Object(it["q"])(e[1],l);else if(Object(g["A"])(e)){var p=e;p.width=u[0],p.height=u[1];var f=Object(Se["g"])(p,{width:s,height:l});n=f.x,i=f.y,c=null,d=null}else if(Object(g["C"])(e)&&a){var y=NO(e,h,u,t.get("borderWidth"));n=y[0],i=y[1]}else{y=LO(n,i,r,s,l,c?null:20,d?null:20);n=y[0],i=y[1]}if(c&&(n-=RO(c)?u[0]/2:"right"===c?u[0]:0),d&&(i-=RO(d)?u[1]/2:"bottom"===d?u[1]:0),rO(t)){y=PO(n,i,r,s,l);n=y[0],i=y[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(g["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(g["k"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&Object(g["k"])(a,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(g["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Zm["a"].node&&e.getDom()&&(Object(Gt["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),rv("itemTooltip",e))},e.type="tooltip",e}(hn["a"]);function AO(t,e,n){var i,r=e.ecModel;n?(i=new ti["a"](n,r,r),i=new ti["a"](e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ti["a"]&&(a=a.get("tooltip",!0)),Object(g["C"])(a)&&(a={formatter:a}),a&&(i=new ti["a"](a,i,r)))}return i}function kO(t,e){return t.dispatchAction||Object(g["c"])(e.dispatchAction,e)}function LO(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function PO(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function NO(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function RO(t){return"center"===t||"middle"===t}function EO(t,e,n){var i=Object(H["t"])(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Object(H["v"])(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Object(v["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var zO=DO;function VO(t){Object(i["a"])(xv),t.registerComponentModel(nO),t.registerComponentView(zO),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},g["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},g["L"])}var BO=["rect","polygon","keep","clear"];function GO(t,e){var n=Object(H["r"])(t?t.brush:[]);if(n.length){var i=[];g["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;g["t"](r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),HO(s),e&&!s.length&&s.push.apply(s,BO)}}function HO(t){var e={};g["k"](t,(function(t){e[t]=1})),t.length=0,g["k"](e,(function(e,n){t.push(n)}))}var FO=n("0924"),WO=g["k"];function qO(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function UO(t,e,n){var i={};return WO(e,(function(e){var o=i[e]=r();WO(t[e],(function(t,i){if(Zs.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Zs(r),"opacity"===i&&(r=g["d"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new Zs(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function YO(t,e,n){var i;g["k"](n,(function(t){e.hasOwnProperty(t)&&qO(e[t])&&(i=!0)})),i&&g["k"](n,(function(n){e.hasOwnProperty(n)&&qO(e[n])?t[n]=g["d"](e[n]):delete t[n]}))}function XO(t,e,n,i,r,o){var a,s={};function l(t){return Object(FO["a"])(n,a,t)}function u(t,e){Object(FO["c"])(n,a,t,e)}function c(t,c){a=null==o?t:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,t),p=e[h],f=s[h],g=0,y=f.length;g<y;g++){var m=f[g];p[m]&&p[m].applyVisual(t,l,u)}}g["k"](t,(function(t){var n=Zs.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}function ZO(t,e,n,i){var r={};return g["k"](t,(function(t){var n=Zs.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,o){var a,s;function l(t){return Object(FO["a"])(o,s,t)}function u(t,e){Object(FO["c"])(o,s,t,e)}null!=i&&(a=o.getDimensionIndex(i));var c=o.getStore();while(null!=(s=t.next())){var d=o.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var h=null!=i?c.get(a,s):s,p=n(h),f=e[p],g=r[p],y=0,m=g.length;y<m;y++){var v=g[y];f[v]&&f[v].applyVisual(h,l,u)}}}}}var KO=n("0655");function JO(t){var e=t.brushType,n={point:function(i){return $O[e].point(i,n,t)},rect:function(i){return $O[e].rect(i,n,t)}};return n}var $O={lineX:QO(0),lineY:QO(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&KO["a"](n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(KO["a"](i,r,o)||KO["a"](i,r+a,o)||KO["a"](i,r,o+s)||KO["a"](i,r+a,o+s)||rn["a"].create(t).contain(l[0],l[1])||Object(m["linePolygonIntersect"])(r,o,r+a,o,i)||Object(m["linePolygonIntersect"])(r,o,r,o+s,i)||Object(m["linePolygonIntersect"])(r+a,o,r+a,o+s,i)||Object(m["linePolygonIntersect"])(r,o+s,r+a,o+s,i))||void 0}}};function QO(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,o=e[t];return tw(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),tw(s[0],a)||tw(s[1],a)||tw(a[0],s)||tw(a[1],s)}}}}function tw(t,e){return e[0]<=t&&t<=e[1]}var ew=["inBrush","outOfBrush"],nw="__ecBrushSelect",iw="__ecInBrushSelectEvent";function rw(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new W_(e.option,t);n.setInputRanges(e.areas,t)}))}function ow(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),rw(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:g["d"](e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],d=[],h=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=g["H"](e.areas,(function(t){var e=cw[t.brushType],n=g["i"]({boundingRect:e?e(t):void 0},t);return n.selectors=JO(n),n})),f=UO(e.option,ew,(function(t){t.mappingMethod="fixed"}));function y(t){return"all"===l||!!u[t]}function m(t){return!!t.length}function v(t,e){var n=t.coordinateSystem;h=h||n.hasAxisBrushed(),y(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function b(n,i,r){if(n.brushSelector&&!uw(e,i)&&(g["k"](p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),h=h||m(r)})),y(i)&&m(r))){var o=n.getData();o.each((function(t){lw(n,r,o,t)&&(c[t]=1)}))}}g["t"](l)&&g["k"](l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=d[e]=[];"parallel"===t.subType?v(t,e):b(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=d[e],r=t.getData(),o=y(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return lw(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(y(e)?h:m(i))&&XO(ew,f,r,o)}))})),aw(e,i,r,o,n)}function aw(t,e,n,i,r){if(r){var o=t.getZr();if(!o[iw]){o[nw]||(o[nw]=sw);var a=Gt["b"](o,nw,n,e);a(t,i)}}}function sw(t,e){if(!t.isDisposed()){var n=t.getZr();n[iw]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[iw]=!1}}function lw(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}function uw(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(g["t"](n)?g["r"](n,e)<0:e!==n)}var cw={rect:function(t){return dw(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&dw(e)}};function dw(t){return new rn["a"](t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new oh(e.getZr())).on("brush",g["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){rw(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:g["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:g["d"](n),$from:e})},e.type="brush",e}(hn["a"]),pw=hw,fw="#ddd",gw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&YO(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:fw},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=g["H"](t,(function(t){return yw(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=yw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(pn["a"]);function yw(t,e){return g["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new ti["a"](t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var mw=gw,vw=["rect","polygon","lineX","lineY","keep","clear"],bw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,g["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return g["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=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"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:vw.slice(),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:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(Fx),xw=bw;function _w(t){t.registerComponentView(pw),t.registerComponentModel(mw),t.registerPreprocessor(GO),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ow),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},g["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},g["L"]),qx("brush",xw)}var Ow=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(l["a"])(e,t),e.type="title",e.defaultOption={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:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(pn["a"]),ww=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=g["P"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new G["a"]({style:Object(w["c"])(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),d=new G["a"]({style:Object(w["c"])(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",(function(){Object(lt["k"])(h,"_"+t.get("target"))})),p&&d.on("click",(function(){Object(lt["k"])(p,"_"+t.get("subtarget"))})),Object(v["a"])(l).eventData=Object(v["a"])(d).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(d);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var b=Object(Se["g"])(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?b.x+=b.width:"center"===a&&(b.x+=b.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?b.y+=b.height:"middle"===s&&(b.y+=b.height/2),s=s||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var x={align:a,verticalAlign:s};l.setStyle(x),d.setStyle(x),y=i.getBoundingRect();var _=b.margin,O=t.getItemStyle(["color","opacity"]);O.fill=t.get("backgroundColor");var S=new et["a"]({shape:{x:y.x-_[3],y:y.y-_[0],width:y.width+_[1]+_[3],height:y.height+_[0]+_[2],r:t.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});i.add(S)}},e.type="title",e}(hn["a"]);function Sw(t){t.registerComponentModel(Ow),t.registerComponentView(ww)}var Mw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.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},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(g["k"])(n,(function(e,n){var i,o=Object(H["e"])(Object(H["h"])(e),"");Object(g["A"])(e)?(i=Object(g["d"])(e),i.value=n):i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new qe["a"]([{name:"value",type:o}],this);a.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={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:{},label:{color:"#000"},data:[]},e}(pn["a"]),Iw=Mw,jw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(zt["d"])(Iw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Iw);Object(g["K"])(jw,CO["a"].prototype);var Cw=jw,Tw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="timeline",e}(hn["a"]),Dw=Tw,Aw=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return Object(l["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(En["a"]),kw=Aw,Lw=n("18c0"),Pw=n("216a"),Nw=Math.PI,Rw=Object(H["o"])(),Ew=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Object(Xi["c"])("nameValue",{noName:!0,value:e})},Object(g["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),o=Vw(t,e);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":Object(g["C"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:Nw/2},h="vertical"===r?o.height:o.width,p=t.getModel("controlStyle"),f=p.get("show",!0),y=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,v=y+m,b=t.get(["label","rotate"])||0;b=b*Nw/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),O=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=h;"left"===x||"bottom"===x?(_&&(a=[0,0],S+=v),O&&(s=[S,0],S+=v),w&&(l=[M-y,0],M-=v)):(_&&(a=[M-y,0],M-=v),O&&(s=[0,0],S+=v),w&&(l=[M-y,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:o,mainLength:h,orient:r,rotation:d[r],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:y,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=An["c"](),a=r.x,s=r.y+r.height;An["i"](o,o,[-a,-s]),An["g"](o,o,-Nw/2),An["i"](o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Object(g["C"])(p)){var f="+"===p?0:1;v(d,u,l,1,f),v(h,c,l,1,1-f)}else{f=p>=0?0:1;v(d,u,l,1,f),h[1]=d[1]+p}function y(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=t.rotation,y(n),y(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=zw(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new kw("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new h["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Qn["a"]({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(g["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Qn["a"]({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(g["i"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(g["k"])(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(g["c"])(r._changeTimeline,r,t.value)},h=Gw(s,l,e,d);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),Object(b["o"])(h);var p=Object(v["a"])(h);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(g["k"])(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),h=new G["a"]({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(g["c"])(r._changeTimeline,r,o),silent:!1,style:Object(w["c"])(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=Object(w["c"])(u),h.ensureState("progress").style=Object(w["c"])(c),e.add(h),Object(b["o"])(h),Rw(h).dataIndex=o,r._tickLabels.push(h)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=Object(qt["g"])(Object(g["P"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-c/2,c,c],h=Bw(i,n+"Icon",d,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Object(b["o"])(h)}}c(t.nextBtnPosition,"next",Object(g["c"])(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(g["c"])(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(g["c"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(g["c"])(s._handlePointerDrag,s),t.ondragend=Object(g["c"])(s._handlePointerDragend,s),Hw(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Hw(t,s._progressLine,o,n,i)}};this._currentPointer=Gw(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=it["c"](i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return m["applyTransform"](t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._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})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",Rw(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(Dw);function zw(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Lw["a"]({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Pw["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Wn["a"]}}function Vw(t,e){return Se["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Bw(t,e,n,i){var r=i.style,o=m["createIcon"](t.get(["controlStyle",e]),i||{},new rn["a"](n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function Gw(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get("symbol");r=Object(d["a"])(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=Object(g["I"])({rectHover:!0,z2:100},i,!0);var u=Object(d["c"])(t.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=Object(d["b"])(t.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function Hw(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var Fw=Ew;function Ww(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(g["i"])({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function qw(t){var e=t&&t.timeline;g["t"](e)||(e=e?[e]:[]),g["k"](e,(function(t){t&&Uw(t)}))}function Uw(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),Yw(t),Xw(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});Xw(i,"position")||(i.position=t.controlPosition),"none"!==i.position||Xw(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}g["k"](t.data||[],(function(t){g["A"](t)&&!g["t"](t)&&(!Xw(t,"value")&&Xw(t,"name")&&(t.value=t.name),Yw(t))}))}function Yw(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};g["k"](i,(function(t,e){o[e]||Xw(r,e)||(r[e]=t)})),n.label&&!Xw(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function Xw(t,e){return t.hasOwnProperty(e)}function Zw(t){t.registerComponentModel(Cw),t.registerComponentView(Fw),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Ww(t),t.registerPreprocessor(qw)}function Kw(t,e){if(!t)return!1;for(var n=Object(g["t"])(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function Jw(t){Object(H["f"])(t,"label",["show"])}var $w=Object(H["o"])(),Qw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Zm["a"].node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=$w(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&Jw(n),g["k"](n.data,(function(t){t instanceof Array?(Jw(t[0]),Jw(t[1])):Jw(t)})),o=this.createMarkerModelFromSeries(n,this,e),g["m"](o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),$w(t)[r]=o):$w(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Object(Xi["c"])("section",{header:this.name,blocks:[Object(Xi["c"])("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return $w(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(pn["a"]);g["K"](Qw,CO["a"].prototype);var tS=Qw,eS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(tS),nS=eS,iS=n("b7d9");function rS(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function oS(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function aS(t,e,n,i,r,o){var a=[],s=Object(L["c"])(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=fS(e,l,t),c=e.indicesOfNearest(l,u)[0];a[r]=e.get(n,c),a[o]=e.get(l,c);var d=e.get(i,c),h=it["h"](e.get(i,c));return h=Math.min(h,20),h>=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var sS={min:Object(g["h"])(aS,"min"),max:Object(g["h"])(aS,"max"),average:Object(g["h"])(aS,"average"),median:Object(g["h"])(aS,"median")};function lS(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!oS(e)&&!Object(g["t"])(e.coord)&&Object(g["t"])(r)){var o=uS(e,n,i,t);if(e=Object(g["d"])(e),e.type&&sS[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(g["r"])(r,o.baseAxis.dim),s=Object(g["r"])(r,o.valueAxis.dim),l=sS[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(g["t"])(r))for(var u=e.coord,c=0;c<2;c++)sS[u[c]]&&(u[c]=fS(n,n.mapDimension(r[c]),u[c]));else e.coord=[];return e}}function uS(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(cS(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function cS(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function dS(t,e){return!(t&&t.containData&&e.coord&&!rS(e))||t.containData(e.coord)}function hS(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!rS(e)&&!rS(n))||t.containZone(e.coord,n.coord)}function pS(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return Object(iS["d"])(o,e[r])}:function(t,n,i,r){return Object(iS["d"])(t.value,e[r])}}function fS(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var gS=Object(H["o"])(),yS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.init=function(){this.markerGroupMap=Object(g["f"])()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){gS(t).keep=!1})),e.eachSeries((function(t){var r=tS.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!gS(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){gS(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(g["k"])(t,(function(t){var i=tS.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(t){t&&(e?Object(b["q"])(t):Object(b["B"])(t))}))}}))},e.type="marker",e}(hn["a"]),mS=yS;function vS(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=it["q"](a.get("x"),n.getWidth()),l=it["q"](a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var bS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=tS.getMarkerModelFromSeries(t,"markPoint");e&&(vS(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new k),u=xS(r,t,e);e.setData(u),vS(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(g["w"])(i)||Object(g["w"])(r)||Object(g["w"])(o)||Object(g["w"])(s)){var c=e.getRawValue(t),d=e.getDataParams(t);Object(g["w"])(i)&&(i=i(c,d)),Object(g["w"])(r)&&(r=r(c,d)),Object(g["w"])(o)&&(o=o(c,d)),Object(g["w"])(s)&&(s=s(c,d))}var h=n.getModel("itemStyle").getItemStyle(),p=Object(FO["b"])(a,"color");h.fill||(h.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Object(v["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(mS);function xS(t,e,n){var i;i=t?Object(g["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(g["m"])(Object(g["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new qe["a"](i,n),o=Object(g["H"])(n.get("data"),Object(g["h"])(lS,e));t&&(o=Object(g["n"])(o,Object(g["h"])(dS,t)));var a=pS(!!t,i);return r.initData(o,null,a),r}var _S=bS;function OS(t){t.registerComponentModel(nS),t.registerComponentView(_S),t.registerPreprocessor((function(t){Kw(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var wS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(tS),SS=wS,MS=Object(H["o"])(),IS=function(t,e,n,i){var r,o=t.getData();if(Object(g["t"])(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(g["O"])(i.yAxis,i.xAxis);else{var u=uS(i,o,e,t);s=u.valueAxis;var c=Object(L["b"])(o,u.valueDataDim);l=fS(o,c,a)}var d="x"===s.dim?0:1,h=1-d,p=Object(g["d"])(i),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var y=n.get("precision");y>=0&&Object(g["z"])(l)&&(l=+l.toFixed(Math.min(y,20))),p.coord[d]=f.coord[d]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var m=[lS(t,r[0]),lS(t,r[1]),Object(g["m"])({},r[2])];return m[2].type=m[2].type||null,Object(g["I"])(m[2],m[0]),Object(g["I"])(m[2],m[1]),m};function jS(t){return!isNaN(t)&&!isFinite(t)}function CS(t,e,n,i){var r=1-t,o=i.dimensions[t];return jS(e[r])&&jS(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function TS(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(CS(1,n,i,t)||CS(0,n,i,t)))return!0}return dS(t,e[0])&&dS(t,e[1])}function DS(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=it["q"](s.get("x"),r.getWidth()),u=it["q"](s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,d=t.get(c[0],e),h=t.get(c[1],e);o=a.dataToPoint([d,h])}if(st(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;jS(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):jS(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var AS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=tS.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=MS(e).from,o=MS(e).to;r.each((function(e){DS(r,e,!0,t,n),DS(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Su);this.group.add(l.group);var u=kS(r,t,e),c=u.from,d=u.to,h=u.line;MS(e).from=c,MS(e).to=d,e.setData(h);var p=e.get("symbol"),f=e.get("symbolSize"),y=e.get("symbolRotate"),m=e.get("symbolOffset");function b(e,n,r){var o=e.getItemModel(n);DS(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(FO["b"])(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(g["P"])(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:Object(g["P"])(o.get("symbolRotate",!0),y[r?0:1]),symbolSize:Object(g["P"])(o.get("symbolSize"),f[r?0:1]),symbol:Object(g["P"])(o.get("symbol",!0),p[r?0:1]),style:s})}Object(g["t"])(p)||(p=[p,p]),Object(g["t"])(f)||(f=[f,f]),Object(g["t"])(y)||(y=[y,y]),Object(g["t"])(m)||(m=[m,m]),u.from.each((function(t){b(c,t,!0),b(d,t,!1)})),h.each((function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})})),l.updateData(h),u.line.eachItemGraphicEl((function(t){Object(v["a"])(t).dataModel=e,t.traverse((function(t){Object(v["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(mS);function kS(t,e,n){var i;i=t?Object(g["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(g["m"])(Object(g["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new qe["a"](i,n),o=new qe["a"](i,n),a=new qe["a"]([],n),s=Object(g["H"])(n.get("data"),Object(g["h"])(IS,e,t,n));t&&(s=Object(g["n"])(s,Object(g["h"])(TS,t)));var l=pS(!!t,i);return r.initData(Object(g["H"])(s,(function(t){return t[0]})),null,l),o.initData(Object(g["H"])(s,(function(t){return t[1]})),null,l),a.initData(Object(g["H"])(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var LS=AS;function PS(t){t.registerComponentModel(SS),t.registerComponentView(LS),t.registerPreprocessor((function(t){Kw(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var NS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(tS),RS=NS,ES=Object(H["o"])(),zS=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=lS(t,r),s=lS(t,o),l=a.coord,u=s.coord;l[0]=Object(g["O"])(l[0],-1/0),l[1]=Object(g["O"])(l[1],-1/0),u[0]=Object(g["O"])(u[0],1/0),u[1]=Object(g["O"])(u[1],1/0);var c=Object(g["J"])([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function VS(t){return!isNaN(t)&&!isFinite(t)}function BS(t,e,n,i){var r=1-t;return VS(e[r])&&VS(n[r])}function GS(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return st(t,"cartesian2d")?!(!n||!i||!BS(1,n,i,t)&&!BS(0,n,i,t))||hS(t,r,o):dS(t,r)||dS(t,o)}function HS(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=it["q"](s.get(n[0]),r.getWidth()),u=it["q"](s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),d=t.getValues(["x1","y1"],e),h=a.clampData(c),p=a.clampData(d),f=[];"x0"===n[0]?f[0]=h[0]>p[0]?d[0]:c[0]:f[0]=h[0]>p[0]?c[0]:d[0],"y0"===n[1]?f[1]=h[1]>p[1]?d[1]:c[1]:f[1]=h[1]>p[1]?c[1]:d[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),m=[g,y];a.clampData&&a.clampData(m,m),o=a.dataToPoint(m,!0)}if(st(a,"cartesian2d")){var v=a.getAxis("x"),b=a.getAxis("y");g=t.get(n[0],e),y=t.get(n[1],e);VS(g)?o[0]=v.toGlobalCoord(v.getExtent()["x0"===n[0]?0:1]):VS(y)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var FS=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],WS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=tS.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(g["H"])(FS,(function(r){return HS(i,e,r,t,n)}));i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new h["a"]});this.group.add(l.group),this.markKeep(l);var u=qS(r,t,e);e.setData(u),u.each((function(e){var n=Object(g["H"])(FS,(function(n){return HS(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],h=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];it["c"](d),it["c"](h);var p=!(l[0]>d[1]||l[1]<d[0]||c[0]>h[1]||c[1]<h[0]),f=!p;u.setItemLayout(e,{points:n,allClipped:f});var y=u.getItemModel(e).getModel("itemStyle").getItemStyle(),m=Object(FO["b"])(a,"color");y.fill||(y.fill=m,Object(g["C"])(y.fill)&&(y.fill=ut["e"](y.fill,.4))),y.stroke||(y.stroke=m),u.setItemVisual(e,"style",y)})),u.diff(ES(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new qi["a"]({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=ES(l).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?y["h"](i,{shape:{points:r.points}},e,t):i=new qi["a"]({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=ES(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),Object(w["g"])(t,Object(w["e"])(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(g["C"])(r.fill)?ut["e"](r.fill,1):"#000"}),Object(b["I"])(t,i),Object(b["J"])(t,null,null,i.get(["emphasis","disabled"])),Object(v["a"])(t).dataModel=e})),ES(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(mS);function qS(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=Object(g["H"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(g["m"])(Object(g["m"])({},i),{name:t,ordinalMeta:null})}));r=Object(g["H"])(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new qe["a"](r,n)}else r=[{name:"value",type:"float"}],i=new qe["a"](r,n);var s=Object(g["H"])(n.get("data"),Object(g["h"])(zS,e,t,n));t&&(s=Object(g["n"])(s,Object(g["h"])(GS,t)));var l=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return Object(iS["d"])(o,r[i])}:function(t,e,n,i){return Object(iS["d"])(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var US=WS;function YS(t){t.registerComponentModel(RS),t.registerComponentView(US),t.registerPreprocessor((function(t){Kw(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var XS=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},ZS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),g["t"](e)&&g["k"](e,(function(t,i){g["C"](t)&&(t={type:t}),e[i]=g["I"](t,XS(n,t.type))}))},e.prototype.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"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&Object(H["n"])(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=g["f"](),o=g["H"](i,(function(t){return(g["C"](t)||g["z"](t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new ti["a"](t,this,this.ecModel))}),this);this._data=g["n"](o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;g["k"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;g["k"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;g["k"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&g["r"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(pn["a"]),KS=ZS,JS=g["h"],$S=g["k"],QS=h["a"],tM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(l["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new QS),this.group.add(this._selectorGroup=new QS),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),d=Se["g"](l,u,c),h=this.layoutInner(t,r,d,i,a,s),p=Se["g"](g["i"]({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Kx(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=g["f"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),$S(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new QS;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},y=p.getVisual("legendIcon"),m=p.getVisual("style"),v=this._createItem(h,a,o,r,e,t,f,m,y,u,i);v.on("click",JS(iM,a,null,i,c)).on("mouseover",JS(oM,h.name,null,i,c)).on("mouseout",JS(aM,h.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),h=s.getItemVisual(d,"style"),p=s.getItemVisual(d,"legendIcon"),f=Object(ut["g"])(h.fill);f&&0===f[3]&&(f[3]=.2,h=g["m"](g["m"]({},h),{fill:Object(ut["h"])(f,"rgba")}));var y=this._createItem(n,a,o,r,e,t,{},h,p,u,i);y.on("click",JS(iM,null,a,i,c)).on("mouseover",JS(oM,null,a,i,c)).on("mouseout",JS(aM,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();$S(t,(function(t){var i=t.type,r=new G["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(w["g"])(r,{normal:a,emphasis:s},{defaultText:t.title}),Object(b["o"])(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,c){var d=t.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),y=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),x=i.get("icon");l=x||l||"roundRect";var _=eM(l,i,a,s,d,f,c),O=new QS,S=i.getModel("textStyle");if(!g["w"](t.getLegendIcon)||x&&"inherit"!==x){var M="inherit"===x&&t.getData().getVisual("symbol")?"inherit"===y?t.getData().getVisual("symbolRotate"):y:0;O.add(nM({itemWidth:h,itemHeight:p,icon:l,iconRotate:M,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}))}else O.add(t.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}));var I="left"===o?h+5:-5,j=o,C=r.get("formatter"),T=e;g["C"](C)&&C?T=C.replace("{name}",null!=e?e:""):g["w"](C)&&(T=C(e));var D=f?S.getTextColor():i.get("inactiveColor");O.add(new G["a"]({style:Object(w["c"])(S,{text:T,x:I,y:p/2,fill:D,align:j,verticalAlign:"middle"},{inheritColor:D})}));var A=new et["a"]({shape:O.getBoundingRect(),invisible:!0}),k=i.getModel("tooltip");return k.get("show")&&m["setTooltipConfig"]({el:A,componentModel:r,itemName:e,itemTooltipOption:k.option}),O.add(A),O.eachChild((function(t){t.silent=!0})),A.silent=!u,this.getContentGroup().add(O),Object(b["o"])(O),O.__legendDataIndex=n,O},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Se["b"](t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Se["b"]("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[y]=Math.min(0,c[y]+d[1-p]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(hn["a"]);function eM(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),$S(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?Object(to["a"])(d,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var h=e.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function nM(t){var e=t.icon||"roundRect",n=Object(d["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function iM(t,e,n,i){aM(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),oM(t,e,n,i)}function rM(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function oM(t,e,n,i){rM(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function aM(t,e,n,i){rM(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var sM=tM;function lM(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 uM(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();Object(g["k"])(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function cM(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(g["h"])(uM,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(g["h"])(uM,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(g["h"])(uM,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(g["h"])(uM,"select")),t.registerAction("legendUnSelect","legendunselected",Object(g["h"])(uM,"unSelect"))}function dM(t){t.registerComponentModel(KS),t.registerComponentView(sM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,lM),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),cM(t)}var hM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Object(Se["f"])(e);t.prototype.init.call(this,e,n,i),pM(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),pM(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Object(zt["d"])(KS.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(KS);function pM(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Object(Se["h"])(e,n,{type:"box",ignoreSize:!!r})}var fM=hM,gM=h["a"],yM=["width","height"],mM=["x","y"],vM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(l["a"])(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new gM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gM)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=g["t"](c)?c:[c,c];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=m["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:g["c"](l._pageGo,l,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=t,u.add(o)}u.add(new G["a"]({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=yM[s],u=mM[s],c=yM[1-s],d=mM[1-s];r&&Se["b"]("horizontal",a,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],y=g["d"](n);r&&(y[l]=n[l]-p[l]-h);var m=this._layoutContentAndController(t,i,y,s,l,c,d,u);if(r){if("end"===o)f[s]+=m[l]+h;else{var v=p[l]+h;f[s]-=v,m[u]-=v}m[l]+=p[l]+h,f[1-s]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Se["b"](t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Se["b"]("horizontal",c,t.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=c.getBoundingRect(),p=this._showController=d[r]>n[r],f=[-d.x,-d.y];e||(f[i]=l[s]);var m=[0,0],v=[-h.x,-h.y],b=g["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var x=t.get("pageButtonPosition",!0);"end"===x?v[i]+=n[r]-h[r]:m[i]+=h[r]+b}v[1-i]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(m),c.setPosition(v);var _={x:0,y:0};if(_[r]=p?n[r]:d[r],_[o]=Math.max(d[o],h[o]),_[a]=Math.min(0,h[a]+v[1-i]),u.__rectSize=n[r],p){var O={x:0,y:0};O[r]=Math.max(n[r]-h[r]-b,0),O[o]=_[o],u.setClipPath(new et["a"]({shape:O})),u.__rectSize=O[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&y["h"](l,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),_},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;g["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",g["C"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=yM[r],a=mM[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=v(u);h.contentPosition[r]=-p.s;for(var f=s+1,g=p,y=p,m=null;f<=c;++f)m=v(l[f]),(!m&&y.e>g.s+i||m&&!b(m,g.s))&&(g=y.i>g.i?y:m,g&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount)),y=m;for(f=s-1,g=p,y=p,m=null;f>=-1;--f)m=v(l[f]),m&&b(y,m.s)||!(g.i<y.i)||(y=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=m;return h;function v(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(sM),bM=vM;function xM(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function _M(t){Object(i["a"])(dM),t.registerComponentModel(fM),t.registerComponentView(bM),xM(t)}function OM(t){Object(i["a"])(dM),Object(i["a"])(_M)}var wM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(zt["d"])(Sx.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Sx),SM=wM,MM=Object(H["o"])();function IM(t,e,n){MM(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function jM(t,e){for(var n=MM(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||CM(n,a))}}}function CM(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function TM(t,e){var n={model:e,containsPoint:Object(g["h"])(AM,e),dispatchAction:Object(g["h"])(DM,t),dataZoomInfoMap:null,controller:null},i=n.controller=new Sr(t.getZr());return Object(g["k"])(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function DM(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function AM(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function kM(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function LM(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=MM(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(g["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=xx(t);Object(g["k"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,TM(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(g["f"])());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=kM(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Gt["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else CM(i,t)}))}))}var PM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(l["a"])(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),IM(i,e,{pan:Object(g["c"])(NM.pan,this),zoom:Object(g["c"])(NM.zoom,this),scrollMove:Object(g["c"])(NM.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){jM(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Cx),NM={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=EM[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Wc(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:RM((function(t,e,n,i,r,o){var a=EM[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:RM((function(t,e,n,i,r,o){var a=EM[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function RM(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return Wc(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var EM={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.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=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},zM=PM;function VM(t){Gx(t),t.registerComponentModel(SM),t.registerComponentView(zM),LM(t)}var BM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(zt["d"])(Sx.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Sx),GM=BM,HM=et["a"],FM=7,WM=1,qM=30,UM=7,YM="horizontal",XM="vertical",ZM=5,KM=["line","bar","candlestick","scatter"],JM={easing:"cubicOut",duration:100,delay:0},$M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(g["c"])(this._onBrush,this),this._onBrushEnd=Object(g["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Gt["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Gt["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new h["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?UM:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===YM?{right:o.width-r.x-r.width,top:o.height-qM-FM-i,width:r.width,height:qM}:{right:FM,top:r.y,width:qM,height:r.height},s=Se["f"](t.option);Object(g["k"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=Se["g"](s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===XM&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==YM||r?n===YM&&r?{scaleY:a?1:-1,scaleX:-1}:n!==XM||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new HM({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new HM({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(g["c"])(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],y=[],m=f[1]/(r.count()-1),v=0,b=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(b>0&&e%b)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:Object(it["m"])(t,u,p,!0);n&&!d&&e?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&d&&(g.push([v,0]),y.push([v,0])),g.push([v,i]),y.push([v,i]),v+=m,d=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var O=w(1===_);this._displayables.sliderGroup.add(O),this._displayables.dataShadowSegs.push(O)}}}function w(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new h["a"],i=new qi["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Ae["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(g["k"])(a,(function(t){if(!n&&!(!0!==e&&Object(g["r"])(KM,t.get("type"))<0)){var a,s=i.getComponent(vx(r),o).axis,l=QM(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new HM({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new HM({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:WM,fill:"rgba(0,0,0,0)"}})),Object(g["k"])([0,1],(function(e){var o=a.get("handleIcon");!d["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Object(d["a"])(o,-1,0,2,2,null,!0);s.attr({cursor:tI(this._orient),draggable:!0,drift:Object(g["c"])(this._onDragMove,this,e),ondragend:Object(g["c"])(this._onDragEnd,this),onmouseover:Object(g["c"])(this._showDataInfo,this,!0),onmouseout:Object(g["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Object(it["q"])(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(b["o"])(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new G["a"]({silent:!0,invisible:!0,style:Object(w["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var p=Object(it["q"])(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new et["a"]({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),y=.8*p,m=e.moveHandleIcon=Object(d["a"])(a.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);m.silent=!0,m.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));h=e.moveZone=new et["a"]({invisible:!0,shape:{y:o[1]-v,height:p+v}}),h.on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),r.add(f),r.add(m),r.add(h)}h.attr({draggable:!0,cursor:tI(this._orient),drift:Object(g["c"])(this._onDragMove,this,"all"),ondragstart:Object(g["c"])(this._showDataInfo,this,!0),ondragend:Object(g["c"])(this._onDragEnd,this),onmouseover:Object(g["c"])(this._showDataInfo,this,!0),onmouseout:Object(g["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(it["m"])(t[0],[0,100],e,!0),Object(it["m"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Wc(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?Object(it["m"])(o.minSpan,a,r,!0):null,null!=o.maxSpan?Object(it["m"])(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Object(it["c"])([Object(it["m"])(i[0],r,a,!0),Object(it["m"])(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Object(it["c"])(n.slice()),r=this._size;Object(g["k"])([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new et["a"],u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Object(it["c"])(this._handleEnds.slice());function d(t){var e=m["getTransform"](n.handles[t].parent,this.group),a=m["transformDirection"](0===t?"right":"left",e),s=this._handleWidth/2+ZM,l=m["applyTransform"]([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===YM?"middle":a,align:r===YM?a:"center",text:o[t]})}d.call(this,0),d.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return Object(g["w"])(i)?i(t,o):Object(g["C"])(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,pr["g"](i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=m["applyTransform"]([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new ke["a"](e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Object(it["c"])([Object(it["m"])(n.x,r,o,!0),Object(it["m"])(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(pr["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new HM({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?JM:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=xx(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(Cx);function QM(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function tI(t){return"vertical"===t?"ns-resize":"ew-resize"}var eI=$M;function nI(t){t.registerComponentModel(GM),t.registerComponentView(eI),Gx(t)}function iI(t){Object(i["a"])(VM),Object(i["a"])(nI)}var rI={get:function(t,e,n){var i=g["d"]((oI[t]||{})[e]);return n&&g["t"](i)?i[i.length-1]:i}},oI={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]}},aI=rI,sI=Zs.mapVisual,lI=Zs.eachVisual,uI=g["t"],cI=g["k"],dI=it["c"],hI=it["m"],pI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(l["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&YO(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=g["c"](t,this),this.controllerVisuals=UO(this.option.controller,e,t),this.targetVisuals=UO(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=H["r"](t),e},e.prototype.eachTargetSeries=function(t,e){g["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],g["t"](t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return g["C"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):g["w"](s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=dI([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});g["I"](i,n),g["I"](r,n);var o=this.isCategory();function a(n){uI(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},cI(i,(function(t,e){if(Zs.isValidType(e)){var n=aI.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";cI(this.stateList,(function(r){var s=this.itemSize,l=t[r];l||(l=t[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&g["d"](e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&g["d"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=sI(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;lI(u,(function(t){t>c&&(c=t)})),l.symbolSize=sI(u,(function(t){return hI(t,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,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,textStyle:{color:"#333"}},e}(pn["a"]),fI=pI,gI=[20,140],yI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=gI[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=gI[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):g["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),g["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=it["c"]((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},e.prototype.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"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=mI(this,"outOfRange",this.getExtent()),n=mI(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Object(zt["d"])(fI.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fI);function mI(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}var vI=yI,bI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(l["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=lt["i"](e.get("padding")||0),i=t.getBoundingRect();t.add(new et["a"]({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")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],c=Zs.prepareVisualTypes(u);return g["k"](c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),Zs.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Se["i"](t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(hn["a"]),xI=bI,_I=[["left","right","width"],["top","bottom","height"]];function OI(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=_I[a],l=[0,null,10],u={},c=0;c<3;c++)u[_I[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var d=[["x","width",3],["y","height",0]][a],h=Object(Se["g"])(u,o,i.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+.5*h[d[1]]<.5*o[d[1]]?0:1]}function wI(t,e){return g["k"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var SI=it["m"],MI=g["k"],II=Math.min,jI=Math.max,CI=12,TI=6,DI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(l["a"])(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._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)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new G["a"]({style:Object(w["c"])(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=OI(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new h["a"];s.add(l),l.add(n.outOfRange=AI()),l.add(n.inRange=AI(null,o?PI(this._orient):null,g["c"](this._dragHandle,this,"all",!1),g["c"](this._dragHandle,this,"all",!0))),l.setClipPath(new et["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=jI(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=g["c"](this._dragHandle,this,n,!1),s=g["c"](this._dragHandle,this,n,!0),l=Object(qt["g"])(t.get("handleSize"),i[0]),u=Object(d["a"])(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=PI(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){pr["g"](t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(b["F"])(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new G["a"]({cursor:c,draggable:!0,drift:a,onmousemove:function(t){pr["g"](t.event)},ondragend:s,style:Object(w["c"])(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[l,0],y=this._shapes;y.handleThumbs[n]=u,y.handleLabelPoints[n]=f,y.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=Object(qt["g"])(t.get("indicatorSize"),n[0]),a=Object(d["a"])(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof S["a"]){var l=a.style;a.useStyle(g["m"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new G["a"]({silent:!0,invisible:!0,style:Object(w["c"])(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:TI)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),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():LI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[SI(e[0],n,i,!0),SI(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Wc(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[SI(i[0],r,o,!0),SI(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new B["a"](0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._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]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new h["a"]("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();MI([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=SI(t[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var h=m["applyTransform"](n.handleLabelPoints[l],m["getTransform"](u,this.group));o[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",c),h=this.getControllerVisual(t,"symbolSize"),p=SI(t,o,s,!0),f=a[0]-h/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var y=m["applyTransform"](l.indicatorLabelPoint,m["getTransform"](u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:_?b:"middle",align:_?"center":b});var O={x:f,y:p,style:{fill:d}},w={style:{x:y[0],y:y[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(O,S),v.animateTo(w,S)}else u.attr(O),v.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var I=0;I<M.length;I++)this._api.enterBlur(M[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=II(jI(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()}))},e.prototype._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()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=II(jI(r[0],t),r[1]);var a=kI(n,o,r),s=[t-a,t+a],l=SI(t,r,o,!0),u=[SI(s[0],r,o,!0),SI(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(e||LI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=H["d"](c,d);this._dispatchHighDown("downplay",wI(h[0],n)),this._dispatchHighDown("highlight",wI(h[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Object(Wo["a"])(t.target,(function(t){var n=Object(v["a"])(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",wI(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=m["getTransform"](e,i?null:this.group);return g["t"](t)?m["applyTransform"](t,r,n):m["transformDirection"](t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(xI);function AI(t,e,n,i){return new qi["a"]({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){pr["g"](t.event)},ondragend:i})}function kI(t,e,n){var i=CI/2,r=t.get("hoverLinkDataSize");return r&&(i=SI(r,e,n,!0)/2),i}function LI(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function PI(t){return"vertical"===t?"ns-resize":"ew-resize"}var NI=DI,RI={type:"selectDataRange",event:"dataRangeSelected",update:"update"},EI=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},zI=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(ZO(e.stateList,e.targetVisuals,g["c"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(g["c"](VI,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function VI(t,e,n,i){for(var r=e.targetVisuals[i],o=Zs.prepareVisualTypes(r),a={color:Object(FO["b"])(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,h)}return a.color;function d(t){return a[t]}function h(t,e){a[t]=e}}var BI=g["k"];function GI(t){var e=t&&t.visualMap;g["t"](e)||(e=e?[e]:[]),BI(e,(function(t){if(t){HI(t,"splitList")&&!HI(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&g["t"](e)&&BI(e,(function(t){g["A"](t)&&(HI(t,"start")&&!HI(t,"min")&&(t.min=t.start),HI(t,"end")&&!HI(t,"max")&&(t.max=t.end))}))}}))}function HI(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var FI=!1;function WI(t){FI||(FI=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(RI,EI),Object(g["k"])(zI,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(GI))}function qI(t){t.registerComponentModel(vI),t.registerComponentView(NI),WI(t)}var UI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(l["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],YI[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=g["d"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=g["H"](this._pieceList,(function(t){return t=g["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=Zs.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}g["k"](e.pieces,(function(t){g["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),g["k"](n,(function(t,n){var i=!1;g["k"](this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&g["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=aI.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,g["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;g["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=g["d"](t)},e.prototype.getValueState=function(t){var e=Zs.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){var o=Zs.findPieceIndex(e,n);o===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.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},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return g["k"](r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(zt["d"])(fI.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fI),YI={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Object(it["u"])(t),g["k"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;g["k"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),XI(e,t)},pieces:function(t){var e=this.option;g["k"](e.pieces,(function(e,n){g["A"](e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&null==o[c];h++)o[c]=e[d[h]],a[c]=s[h],u[c]=2===h;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Zs.retrieveVisuals(e),t.push(i)}),this),XI(e,t),Object(it["u"])(t),g["k"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function XI(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var ZI=UI,KI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(l["a"])(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=g["O"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),g["k"](l.viewPieceList,(function(i){var l=i.piece,u=new h["a"];u.onclick=g["c"](this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=e.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(d);u.add(new G["a"]({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Se["b"](e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:wI(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return OI(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new h["a"],a=this.visualMapModel.textStyleModel;o.add(new G["a"]({style:Object(w["c"])(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=g["H"](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}},e.prototype._createItemSymbol=function(t,e,n){t.add(Object(d["a"])(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=g["d"](n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,g["k"](r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(xI),JI=KI;function $I(t){t.registerComponentModel(ZI),t.registerComponentView(JI),WI(t)}function QI(t){Object(i["a"])(qI),Object(i["a"])($I)}var tj={label:{enabled:!0},decal:{show:!1}},ej=Object(H["o"])(),nj={};function ij(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=g["d"](tj);g["I"](i.label,t.getLocaleModel().get("aria"),!1),g["I"](n.option,i,!1),r(),o()}function r(){var e=n.getModel("decal"),i=e.get("show");if(i){var r=g["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=r.get(t.type);e||(e={},r.set(t.type,e)),ej(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(g["w"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Object($a["b"])(e.ecModel,e.name,nj,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=ej(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",c=Object($a["b"])(e.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}function u(t,e){var n=t?g["m"](g["m"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var i=t.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=g["i"](r.option,i),r.get("enabled")){var o=e.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=t.getSeriesCount(),d=r.get(["data","maxCount"])||10,h=r.get(["series","maxCount"])||10,p=Math.min(c,h);if(!(c<1)){var f=s();if(f){var y=r.get(["general","withTitle"]);u=a(y,{title:f})}else u=r.get(["general","withoutTitle"]);var m=[],v=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(v,{seriesCount:c}),t.eachSeries((function(t,e){if(e<p){var n=void 0,i=t.get("name"),o=i?"withName":"withoutName";n=c>1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>d){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var h=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),g=[],y=0;y<s.count();y++)if(y<d){var v=s.getName(y),b=s.getValues(y),x=r.get(["data",v?"withName":"withoutName"]);g.push(a(x,{name:v,value:b.join(h)}))}n+=g.join(h)+f,m.push(n)}}));var b=r.getModel(["series","multiple","separator"]),x=b.get("middle"),_=b.get("end");u+=m.join(x)+_,o.setAttribute("aria-label",u)}}}}function a(t,e){if(!g["C"](t))return t;var n=t;return g["k"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function rj(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},g["k"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function oj(t){t.registerPreprocessor(rj),t.registerVisual(t.PRIORITY.VISUAL.ARIA,ij)}var aj={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},sj=function(){function t(t){var e=this._condVal=Object(g["C"])(t)?new RegExp(t):Object(g["B"])(t)?t:null;if(null==e){var n="";0,Object(As["c"])(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(g["C"])(e)?this._condVal.test(t):!!Object(g["z"])(e)&&this._condVal.test(t+"")},t}(),lj=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),uj=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),cj=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),dj=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),hj=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?i:n))return!1;return!0},t}();function pj(t,e){if(!0===t||!1===t){var n=new lj;return n.value=t,n}var i="";return mj(t)||Object(As["c"])(i),t.and?fj("and",t,e):t.or?fj("or",t,e):t.not?gj(t,e):yj(t,e)}function fj(t,e,n){var i=e[t],r="";Object(g["t"])(i)||Object(As["c"])(r),i.length||Object(As["c"])(r);var o="and"===t?new uj:new cj;return o.children=Object(g["H"])(i,(function(t){return pj(t,n)})),o.children.length||Object(As["c"])(r),o}function gj(t,e){var n=t.not,i="";mj(n)||Object(As["c"])(i);var r=new dj;return r.child=pj(n,e),r.child||Object(As["c"])(i),r}function yj(t,e){for(var n="",i=e.prepareGetValue(t),r=[],o=Object(g["F"])(t),a=t.parser,s=a?Object(iS["c"])(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(g["q"])(aj,u)?aj[u]:u,d=t[u],h=s?s(d):d,p=Object(iS["b"])(c,h)||"reg"===c&&new sj(h);p||Object(As["c"])(n),r.push(p)}}r.length||Object(As["c"])(n);var f=new hj;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=r,f}function mj(t){return Object(g["A"])(t)&&!Object(g["u"])(t)}var vj=function(){function t(t,e){this._cond=pj(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function bj(t,e){return new vj(t,e)}var xj={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=bj(t.config,{valueGetterAttrMap:Object(g["f"])({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Object(g["q"])(t,"dimension")||Object(As["c"])(e);var r=n.getDimensionInfo(i);return r||Object(As["c"])(e),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),i.evaluate()&&r.push(e);return{data:r}}};var _j={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=Object(H["r"])(n);r.length||Object(As["c"])(i);var o=[];Object(g["k"])(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;if(null==n&&Object(As["c"])(i),"asc"!==r&&"desc"!==r&&Object(As["c"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(As["c"])(l)}if("asc"!==r&&"desc"!==r){var u="";0,Object(As["c"])(u)}var c=e.getDimensionInfo(n);c||Object(As["c"])(i);var d=a?Object(iS["c"])(a):null;a&&!d&&Object(As["c"])(i),o.push({dimIdx:c.index,parser:d,comparator:new iS["a"](r,s)})}));var a=e.sourceFormat;a!==mp["c"]&&a!==mp["e"]&&Object(As["c"])(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function Oj(t){t.registerTransform(xj),t.registerTransform(_j)}var wj=n("5e81"),Sj=n("0e50"),Mj=n("342d");function Ij(t){return Object(g["t"])(t[0])}function jj(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var Cj={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=Object(Mj["a"])(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function Tj(t,e,n,i,r,o){if(t.length&&e.length){var a=Object(y["a"])("update",i,r);if(a&&a.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);Ij(t)&&(s=t,l=e),Ij(e)&&(s=e,l=t);for(var d=s?s===t:t.length>e.length,h=s?jj(l,s):jj(d?e:t,[d?t:e]),p=0,f=0;f<h.length;f++)p+=h[f].many.length;var m=0;for(f=0;f<h.length;f++)v(h[f],d,m,p),m+=h[f].many.length}}function v(t,e,i,r,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var d=Object(g["i"])({dividePath:Cj[n],individualDelay:u&&function(t,e,n,o){return u(t+i,r)}},c),h=e?Object(Sj["a"])(s,l,d):Object(Sj["d"])(l,s,d),p=h.fromIndividuals,f=h.toIndividuals,y=p.length,m=0;m<y;m++){_=u?Object(g["i"])({delay:u(m,y)},c):c;o(p[m],f[m],e?s[m]:t.one,e?t.one:s[m],_)}else{var b=e?s[0]:l,x=e?l:s[0];if(Object(Sj["b"])(b))v({many:[b],one:x},!0,i,r,!0);else{var _=u?Object(g["i"])({delay:u(i,r)},c):c;Object(Sj["c"])(b,x,_),o(b,x,b,x,_)}}}}function Dj(t){if(!t)return[];if(Object(g["t"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(Dj(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof F["b"]&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var Aj=1e4,kj=Object(H["o"])();function Lj(t){for(var e=t.dimensions,n=0;n<e.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}function Pj(t){var e=[];return Object(g["k"])(t,(function(t){var n=t.data;if(!(n.count()>Aj))for(var i=n.getIndices(),r=Lj(n),o=0;o<i.length;o++)e.push({dataGroupId:t.dataGroupId,data:n,dim:t.dim||r,divide:t.divide,dataIndex:o})})),e}function Nj(t,e,n){t.traverse((function(t){t instanceof F["b"]&&Object(y["c"])(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function Rj(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Ej(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function zj(t,e,n){var i=Object(y["a"])("update",n,e);i&&t.traverse((function(t){if(t instanceof eo["c"]){var e=Object(y["b"])(t);e&&t.animateFrom({style:e},i)}}))}function Vj(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function Bj(t,e,n){var i=Pj(t),r=Pj(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?Object(g["m"])(Object(g["m"])({},n.style),t.style):t.style},r)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var s=a(i),l=a(r),u=!1;function c(t,e){return function(n){var i=n.data,r=n.dataIndex;if(e)return i.getId(r);var o=n.dataGroupId,a=t?s||l:l||s,u=a&&i.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var d=i.get(u.name,r);return c&&c.categories[d]||d+""}var h=i.getRawDataItem(r);return h&&h.groupId?h.groupId+"":o||i.getId(r)}}var d=Vj(i,r),h={};if(!d)for(var p=0;p<r.length;p++){var f=r[p],m=f.data.getItemGraphicEl(f.dataIndex);m&&(h[m.id]=!0)}function v(t,e){var n=i[e],a=r[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&h[l.id]||c&&(Ej(c),l?(Ej(l),Rj(l),u=!0,Tj(Dj(l),Dj(c),a.divide,s,t,o)):Nj(c,s,t)):c&&zj(c,a.dataIndex,s)}new rs["a"](i,r,c(!0,d),c(!1,d),null,"multiple").update(v).updateManyToOne((function(t,e){var n=r[t],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=Object(g["n"])(Object(g["H"])(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==l&&!h[t.id]}));l&&(Ej(l),c.length?(Object(g["k"])(c,(function(t){Ej(t),Rj(t)})),u=!0,Tj(Dj(c),Dj(l),n.divide,s,t,o)):Nj(l,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!h[a.id]){var s=Object(g["n"])(Object(g["H"])(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==a})),l=r[t[0]].data.hostModel;s.length&&(Object(g["k"])(s,(function(t){return Ej(t)})),a?(Ej(a),Rj(a),u=!0,Tj(Dj(a),Dj(s),n.divide,l,t[0],o)):Object(g["k"])(s,(function(e){return Nj(e,l,t[0])})))}})).updateManyToMany((function(t,e){new rs["a"](e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){v(t[n],e[i])})).execute()})).execute(),u&&Object(g["k"])(e,(function(t){var e=t.data,i=e.hostModel,r=i&&n.getViewOfSeriesModel(i),o=Object(y["a"])("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(t){t instanceof F["b"]&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function Gj(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Hj(t){return Object(g["t"])(t)?t.sort().join(","):t}function Fj(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Wj(t,e){var n=Object(g["f"])(),i=Object(g["f"])(),r=Object(g["f"])();return Object(g["k"])(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=Gj(e),l=Hj(s);i.set(l,{dataGroupId:o,data:a}),Object(g["t"])(s)&&Object(g["k"])(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),Object(g["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=Gj(t),s=Hj(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Fj(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Fj(o),data:o}]});else if(Object(g["t"])(a)){0;var u=[];Object(g["k"])(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Fj(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:Fj(o)}]})}else{var c=r.get(a);if(c){var d=n.get(c.key);d||(d={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Fj(c.data)}],newSeries:[]},n.set(c.key,d)),d.newSeries.push({dataGroupId:e,data:o,divide:Fj(o)})}}}})),n}function qj(t,e){for(var n=0;n<t.length;n++){var i=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(i)return n}}function Uj(t,e,n,i){var r=[],o=[];Object(g["k"])(Object(H["r"])(t.from),(function(t){var n=qj(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:Fj(e.oldData[n]),dim:t.dimension})})),Object(g["k"])(Object(H["r"])(t.to),(function(t){var i=qj(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:Fj(r),dim:t.dimension})}})),r.length>0&&o.length>0&&Bj(r,o,i)}function Yj(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(g["k"])(Object(H["r"])(n.seriesTransition),(function(t){Object(g["k"])(Object(H["r"])(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][c["a"]]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=kj(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(g["k"])(Object(H["r"])(r),(function(t){Uj(t,i,n,e)}));else{var o=Wj(i,n);Object(g["k"])(o.keys(),(function(t){var n=o.get(t);Bj(n.oldSeries,n.newSeries,e)}))}Object(g["k"])(n.updatedSeries,(function(t){t[c["a"]]&&(t[c["a"]]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],d=0;d<a.length;d++){var h=a[d].getData();h.count()<Aj&&(s.push(a[d]),l.push(a[d].get("dataGroupId")),u.push(h))}}))}var Xj=n("ee29");Object(i["a"])([o["a"]]),Object(i["a"])([s]),Object(i["a"])([Pt,Oe,tn,Bi,dr,Zo,Za,jl,Xu,rc,gc,xh,Qh,bp,Yp,ef,jf,Vf,gg,Mg,qg,Om]),Object(i["a"])(_v),Object(i["a"])(pb),Object(i["a"])(Xo),Object(i["a"])(Vb),Object(i["a"])(bh),Object(i["a"])(Kb),Object(i["a"])(fx),Object(i["a"])(tO),Object(i["a"])(VO),Object(i["a"])(xv),Object(i["a"])(_w),Object(i["a"])(Sw),Object(i["a"])(Zw),Object(i["a"])(OS),Object(i["a"])(PS),Object(i["a"])(YS),Object(i["a"])(OM),Object(i["a"])(iI),Object(i["a"])(VM),Object(i["a"])(nI),Object(i["a"])(QI),Object(i["a"])(qI),Object(i["a"])($I),Object(i["a"])(oj),Object(i["a"])(Oj),Object(i["a"])(wj["a"]),Object(i["a"])(Yj),Object(i["a"])(Xj["a"])},3842:function(t,e,n){"use strict";n.d(e,"m",(function(){return s})),n.d(e,"q",(function(){return l})),n.d(e,"w",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return g})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return m})),n.d(e,"v",(function(){return v})),n.d(e,"l",(function(){return b})),n.d(e,"p",(function(){return _})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return w})),n.d(e,"n",(function(){return S})),n.d(e,"r",(function(){return M})),n.d(e,"u",(function(){return I})),n.d(e,"o",(function(){return j})),n.d(e,"k",(function(){return C})),n.d(e,"j",(function(){return T})),n.d(e,"d",(function(){return A}));var i=n("6d8b"),r=1e-4,o=20;function a(t){return t.replace(/^\s+|\s+$/g,"")}function s(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function l(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return i["C"](t)?a(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function u(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),o),t=(+t).toFixed(e),n?t:+t}function c(t){return t.sort((function(t,e){return t-e})),t}function d(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return h(t)}function h(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function p(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function f(t,e,n){if(!t[e])return 0;var i=g(t,n);return i[e]||0}function g(t,e){var n=i["N"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),o=i["H"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,s=i["H"](o,(function(t){return Math.floor(t)})),l=i["N"](s,(function(t,e){return t+e}),0),u=i["H"](o,(function(t,e){return t-s[e]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,d=null,h=0,p=u.length;h<p;++h)u[h]>c&&(c=u[h],d=h);++s[d],u[d]=0,++l}return i["H"](s,(function(t){return t/r}))}function y(t,e){var n=Math.max(d(t),d(e)),i=t+e;return n>o?i:u(i,n)}var m=9007199254740991;function v(t){var e=2*Math.PI;return(t%e+e)%e}function b(t){return t>-r&&t<r}var x=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function _(t){if(t instanceof Date)return t;if(i["C"](t)){var e=x.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function O(t){return Math.pow(10,w(t))}function w(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function S(t,e){var n,i=w(t),r=Math.pow(10,i),o=t/r;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function M(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function I(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function j(t){var e=parseFloat(t);return e==t&&(0!==e||!i["C"](t)||t.indexOf("x")<=0)?e:NaN}function C(t){return!isNaN(j(t))}function T(){return Math.round(9*Math.random())}function D(t,e){return 0===e?t:D(e,t%e)}function A(t,e){return null==t?e:null==e?t:t*e/D(t,e)}},"38a2":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l}));var i=n("6d8b"),r=n("2b17"),o=n("eda2"),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,u){e=e||"normal";var c=this.getData(n),d=this.getDataParams(t,n);if(u&&(d.value=u.interpolatedValue),null!=s&&i["t"](d.value)&&(d.value=d.value[s]),!l){var h=c.getItemModel(t);l=h.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(i["w"](l))return d.status=e,d.dimensionIndex=s,l(d);if(i["C"](l)){var p=Object(o["e"])(l,d);return p.replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=Object(r["e"])(c,t,a);if(u&&i["t"](u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Object(r["e"])(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i["A"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}},3901:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var i=n("282b"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(i["a"])(r),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},"3eba":function(t,e,n){"use strict";var i=n("aa74");n.d(e,"a",(function(){return i["a"]})),n.d(e,"b",(function(){return i["b"]})),n.d(e,"c",(function(){return i["c"]})),n.d(e,"d",(function(){return i["d"]})),n.d(e,"e",(function(){return i["e"]})),n.d(e,"f",(function(){return i["f"]})),n.d(e,"g",(function(){return i["h"]})),n.d(e,"h",(function(){return i["i"]})),n.d(e,"i",(function(){return i["k"]})),n.d(e,"j",(function(){return i["l"]}));var r=n("22b4"),o=(n("1be7"),n("f95e")),a=n("5e81"),s=n("ee29");Object(r["a"])([o["a"],a["a"]]);Object(r["a"])(s["a"])},4041:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var i=n("e0d3"),r=Object(i["o"])(),o=Object(i["o"])(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=Object(i["r"])(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,r,o,a,t,e,n)},t.prototype.clearColorPalette=function(){c(this,r)},t}();function s(t,e,n,r){var a=Object(i["r"])(t.get(["aria","decal","decals"]));return u(t,o,a,null,e,n,r)}function l(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function u(t,e,n,i,r,o,a){o=o||t;var s=e(o),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var d=null!=a&&i?l(i,a):n;if(d=d||n,d&&d.length){var h=d[u];return r&&(c[r]=h),s.paletteIdx=(u+1)%d.length,h}}function c(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}},4319:function(t,e,n){"use strict";var i=n("22d1"),r=n("625e"),o=n("282b"),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(o["a"])(a),l=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return s(this,t,e)},t}(),u=n("7837"),c=n("76a5"),d=["textStyle","color"],h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],p=new c["a"],f=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(d):null)},t.prototype.getFont=function(){return Object(u["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<h.length;n++)e[h[n]]=this.getShallow(h[n]);return p.useStyle(e),p.update(),p.getBoundingRect()},t}(),g=f,y=n("3901"),m=n("551f"),v=n("6d8b"),b=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(v["I"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(v["d"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!i["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Object(r["b"])(b),Object(r["a"])(b),Object(v["K"])(b,y["b"]),Object(v["K"])(b,m["b"]),Object(v["K"])(b,l),Object(v["K"])(b,g);e["a"]=b},"4f85":function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("7fae"),r=n("6d8b"),o=n("22d1"),a=n("e0d3"),s=n("6cb7"),l=n("4041"),u=n("38a2"),c=n("f934"),d=n("9fbc"),h=n("625e"),p=n("f72b"),f=n("f6d8"),g=a["o"]();function y(t,e){return t.getName(e)||t.getId(e)}var m="__universalTransitionEnabled",v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(d["a"])({count:_,reset:O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=g(this).sourceManager=new p["a"](this);i.prepareSource();var r=this.getInitialData(t,n);S(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,b(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(c["d"])(this),i=n?Object(c["f"])(t):{},o=this.subType;s["a"].hasClass(o)&&(o+="Series"),r["I"](t,e.getTheme().get(this.subType)),r["I"](t,this.getDefaultOption()),a["f"](t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Object(c["h"])(t,i,n)},e.prototype.mergeOption=function(t,e){t=r["I"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Object(c["d"])(this);n&&Object(c["h"])(this.option,t,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,e);S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,b(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!r["E"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a["f"](t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=I(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return g(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=I(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}g(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r["f"](t)},e.prototype.getSourceManager=function(){return g(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return g(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Object(f["a"])({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l["a"].prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=y(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=r["F"](t),n=[],i=0;i<e.length;i++){var o=t[e[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[y(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r["A"](o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=e[u],d=y(t,c);l[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===a||!0===a){var h=e[s-1];d=y(t,h);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(i={},i[d]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s["a"].registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(s["a"]);function b(t){var e=t.name;a["n"](t)||(t.name=x(t)||e)}function x(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function _(t){return t.model.getRawData().count()}function O(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r["k"](r["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r["h"](M,e))}))}function M(t,e){var n=I(t);return n&&n.setOutputEnd((e||this).count()),e}function I(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r["K"](v,u["a"]),r["K"](v,l["a"]),Object(h["e"])(v,s["a"]),e["b"]=v},"538f":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("6d8b"),r=n("e86a"),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);Object(i["w"])(a)?this._modelMinNum=u(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=u(t,a));var s=this._modelMaxRaw=e.get("max",!0);if(Object(i["w"])(s)?this._modelMaxNum=u(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=u(t,s)),o)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),c=Object(i["t"])(l)?l:[l||0,l||0];"boolean"===typeof c[0]||"boolean"===typeof c[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(r["g"])(c[0],1),Object(r["g"])(c[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,c=null!=l;null==s&&(s=t?r?0:NaN:e-o[0]*a),null==l&&(l=t?r?r-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var d=Object(i["l"])(s)||Object(i["l"])(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(s=h,u=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=a[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i,i)}function u(t,e){return null==e?null:Object(i["l"])(e)?NaN:t.parse(e)}},"551f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var i=n("282b"),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=Object(i["a"])(r),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},"58c9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i={};function r(t,e){i[t]=e}function o(t){return i[t]}},"5e81":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("7fae"),r=n("6cb7"),o=n("b12f"),a=n("07fd"),s=n("f72b"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(i["a"])(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new s["a"](this),Object(s["b"])(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Object(s["b"])(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:a["a"]},e}(r["a"]),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return Object(i["a"])(e,t),e.type="dataset",e}(o["a"]);function c(t){t.registerComponentModel(l),t.registerComponentView(u)}},"625e":function(t,e,n){"use strict";n.d(e,"f",(function(){return l})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"a",(function(){return g})),n.d(e,"c",(function(){return v}));var i=n("7fae"),r=n("6d8b"),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(t){var e={main:"",sub:""};if(t){var n=t.split(o);e.main=n[0]||"",e.sub=n[1]||""}return e}function u(t){r["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t){return!(!t||!t[s])}function d(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return h(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},r["s"](e,this)),r["m"](e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=y,e.superApply=m,e.superClass=n,e}}function h(t){return r["w"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function p(t,e){t.extend=e.extend}var f=Math.round(10*Math.random());function g(t){var e=["__\0is_clz",f++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function y(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function m(t,e,n){return this.superClass.prototype[e].apply(t,n)}function v(t){var e={};function n(t){var n=e[t.main];return n&&n[a]||(n=e[t.main]={},n[a]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){u(i),t.prototype.type=i;var r=l(i);if(r.sub){if(r.sub!==a){var o=n(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[a]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=l(t),i=[],o=e[n.main];return o&&o[a]?r["k"](o,(function(t,e){e!==a&&i.push(t)})):i.push(o),i},t.hasClass=function(t){var n=l(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return r["k"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=l(t),i=e[n.main];return i&&i[a]}}},"697e":function(t,e,n){"use strict";n.d(e,"f",(function(){return I})),n.d(e,"i",(function(){return C})),n.d(e,"a",(function(){return T})),n.d(e,"g",(function(){return D})),n.d(e,"h",(function(){return A})),n.d(e,"c",(function(){return k})),n.d(e,"b",(function(){return L})),n.d(e,"e",(function(){return N})),n.d(e,"j",(function(){return R})),n.d(e,"d",(function(){return E})),n.d(e,"k",(function(){return z}));var i=n("6d8b"),r=n("18c0"),o=n("89e3"),a=n("e0d8"),s=n("9d57"),l=n("9850"),u=n("216a"),c=n("7fae"),d=n("3842"),h=n("944e"),p=a["a"].prototype,f=o["a"].prototype,g=d["w"],y=Math.floor,m=Math.ceil,v=Math.pow,b=Math.log,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new o["a"],e._interval=0,e}return Object(c["a"])(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=f.getTicks.call(this,t);return i["H"](o,(function(t){var e=t.value,i=d["w"](v(this.base,e));return i=e===n[0]&&this._fixMin?O(i,r[0]):i,i=e===n[1]&&this._fixMax?O(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=b(this.base);t=b(Math.max(0,t))/n,e=b(Math.max(0,e))/n,f.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=p.getExtent.call(this);e[0]=v(t,e[0]),e[1]=v(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=O(e[0],i[0])),this._fixMax&&(e[1]=O(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=b(t[0])/b(e),t[1]=b(t[1])/b(e),p.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=d["s"](n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[d["w"](m(e[0]/i)*i),d["w"](y(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){f.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=b(t)/b(this.base),h["a"](t,this._extent)},e.prototype.normalize=function(t){return t=b(t)/b(this.base),h["f"](t,this._extent)},e.prototype.scale=function(t){return t=h["g"](t,this._extent),v(this.base,t)},e.type="log",e}(a["a"]),_=x.prototype;function O(t,e){return g(t,d["h"](e))}_.getMinorTicks=f.getMinorTicks,_.getLabel=f.getLabel,a["a"].registerClass(x);var w=x,S=n("ee1a"),M=n("538f");function I(t,e){var n=t.type,r=Object(M["a"])(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var o=r.min,a=r.max,l=e.ecModel;if(l&&"time"===n){var u=Object(s["e"])("bar",l),c=!1;if(i["k"](u,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var d=Object(s["d"])(u),h=j(o,a,e,d);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function j(t,e,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],l=Object(s["f"])(r,n.axis);if(void 0===l)return{min:t,max:e};var u=1/0;i["k"](l,(function(t){u=Math.min(t.offset,u)}));var c=-1/0;i["k"](l,(function(t){c=Math.max(t.offset+t.width,c)})),u=Math.abs(u),c=Math.abs(c);var d=u+c,h=e-t,p=1-(u+c)/a,f=h/p-h;return e+=f*(c/d),t-=f*(u/d),{min:t,max:e}}function C(t,e){var n=e,i=I(t,n),r=i.extent,o=n.get("splitNumber");t instanceof w&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function T(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new r["a"]({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new u["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a["a"].getClass(e)||o["a"])}}function D(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function A(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):i["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):i["w"](e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(k(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function k(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function L(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();n instanceof r["a"]?o=n.count():(i=n.getTicks(),o=i.length);var s,l=t.getLabelModel(),u=A(t),c=1;o>40&&(c=Math.ceil(o/40));for(var d=0;d<o;d+=c){var h=i?i[d]:{value:a[0]+d},p=u(h,d),f=l.getTextRect(p),g=P(f,l.get("rotate")||0);s?s.union(g):s=g}return s}}function P(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new l["a"](t.x,t.y,o,a);return s}function N(t){var e=t.get("interval");return null==e?"auto":e}function R(t){return"category"===t.type&&0===N(t.getLabelModel())}function E(t,e){var n={};return i["k"](t.mapDimensionsAll(e),(function(e){n[Object(S["b"])(t,e)]=!0})),i["F"](n)}function z(t,e,n){e&&i["k"](E(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}},"6cb7":function(t,e,n){"use strict";var i=n("7fae"),r=n("6d8b"),o=n("4319"),a=n("8918"),s=n("625e"),l=n("e0d3"),u=n("f934"),c=Object(l["o"])(),d=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a["c"]("ec_cpt_model"),r}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=u["d"](this),i=n?u["f"](t):{},o=e.getTheme();r["I"](t,o.get(this.mainType)),r["I"](t,this.getDefaultOption()),n&&u["h"](t,i,n)},e.prototype.mergeOption=function(t,e){r["I"](this.option,t,!0);var n=u["d"](this);n&&u["h"](this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Object(s["d"])(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){var n=[],i=t;while(i){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r["I"](a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Object(l["v"])(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(o["a"]);function h(t){var e=[];return r["k"](d.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r["H"](e,(function(t){return Object(s["f"])(t).main})),"dataset"!==t&&r["r"](e,"dataset")<=0&&e.unshift("dataset"),e}Object(s["e"])(d,o["a"]),Object(s["c"])(d),a["a"](d),a["b"](d,h),e["a"]=d},7837:function(t,e,n){"use strict";n.d(e,"g",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"d",(function(){return _})),n.d(e,"f",(function(){return O})),n.d(e,"h",(function(){return w})),n.d(e,"a",(function(){return S}));var i=n("76a5"),r=n("6d8b"),o=n("7d6c"),a=n("e0d3"),s=n("deca"),l={};function u(t,e){for(var n=0;n<o["g"].length;n++){var i=o["g"][n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(r["w"])(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},d=0;d<o["g"].length;d++){var h=o["g"][d],p=e[h];c[h]=Object(r["P"])(a?a.getFormattedLabel(s,h,null,l,p&&p.get("formatter")):null,i)}return c}function d(t,e,n,a){n=n||l;for(var s=t instanceof i["a"],d=!1,h=0;h<o["a"].length;h++){var g=e[o["a"][h]];if(g&&g.getShallow("show")){d=!0;break}}var y=s?t:t.getTextContent();if(d){s||(y||(y=new i["a"],t.setTextContent(y)),t.stateProxy&&(y.stateProxy=t.stateProxy));var m=c(n,e),v=e.normal,b=!!v.getShallow("show"),x=p(v,a&&a.normal,n,!1,!s);x.text=m.normal,s||t.setTextConfig(f(v,n,!1));for(h=0;h<o["g"].length;h++){var _=o["g"][h];g=e[_];if(g){var w=y.ensureState(_),S=!!Object(r["P"])(g.getShallow("show"),b);if(S!==b&&(w.ignore=!S),w.style=p(g,a&&a[_],n,!0,!s),w.style.text=m[_],!s){var M=t.ensureState(_);M.textConfig=f(g,n,!0)}}}y.silent=!!v.getShallow("silent"),null!=y.style.x&&(x.x=y.style.x),null!=y.style.y&&(x.y=y.style.y),y.ignore=!b,y.useStyle(x),y.dirty(),n.enableTextSetter&&(O(y).setLabelText=function(t){var i=c(n,e,t);u(y,i)})}else y&&(y.ignore=!0);t.dirty()}function h(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<o["g"].length;i++){var r=o["g"][i];n[r]=t.getModel([r,e])}return n}function p(t,e,n,i,o){var a={};return g(a,t,n,i,o),e&&Object(r["m"])(a,e),a}function f(t,e,n){e=e||{};var i,o={},a=t.getShallow("rotate"),s=Object(r["P"])(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}function g(t,e,n,i,r){n=n||l;var o,a=e.ecModel,s=a&&a.option.textStyle,u=y(e);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var d=e.getModel(["rich",c]);x(o[c]={},d,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p),x(t,e,s,n,i,r,!0,!1)}function y(t){var e;while(t&&t!==t.ecModel){var n=(t.option||l).rich;if(n){e=e||{};for(var i=Object(r["F"])(n),o=0;o<i.length;o++){var a=i[o];e[a]=1}}t=t.parentModel}return e}var m=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],v=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],b=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function x(t,e,n,i,o,a,s,u){n=!o&&n||l;var c=i&&i.inheritColor,d=e.getShallow("color"),h=e.getShallow("textBorderColor"),p=Object(r["P"])(e.getShallow("opacity"),n.opacity);"inherit"!==d&&"auto"!==d||(d=c||null),"inherit"!==h&&"auto"!==h||(h=c||null),a||(d=d||n.color,h=h||n.textBorderColor),null!=d&&(t.fill=d),null!=h&&(t.stroke=h);var f=Object(r["P"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=Object(r["P"])(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var y=Object(r["P"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=y&&(t.lineDashOffset=y),o||null!=p||u||(p=i&&i.defaultOpacity),null!=p&&(t.opacity=p),o||a||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var x=0;x<m.length;x++){var _=m[x],O=Object(r["P"])(e.getShallow(_),n[_]);null!=O&&(t[_]=O)}for(x=0;x<v.length;x++){_=v[x],O=e.getShallow(_);null!=O&&(t[_]=O)}if(null==t.verticalAlign){var w=e.getShallow("baseline");null!=w&&(t.verticalAlign=w)}if(!s||!i.disableBox){for(x=0;x<b.length;x++){_=b[x],O=e.getShallow(_);null!=O&&(t[_]=O)}var S=e.getShallow("borderType");null!=S&&(t.borderDash=S),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return Object(r["T"])([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(" "))}var O=Object(a["o"])();function w(t,e,n,i){if(t){var r=O(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function S(t,e,n,i,o){var l=O(t);if(l.valueAnimation&&l.prevValue!==l.value){var d=l.defaultInterpolatedText,h=Object(r["P"])(l.interpolatedValue,l.prevValue),p=l.value;t.percent=0,(null==l.prevValue?s["c"]:s["h"])(t,{percent:1},i,e,null,f)}function f(i){var r=Object(a["k"])(n,l.precision,h,p,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:d?d(r):r+""},l.statesModels,r);u(t,s)}}},"7d6c":function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return g})),n.d(e,"g",(function(){return y})),n.d(e,"a",(function(){return m})),n.d(e,"j",(function(){return v})),n.d(e,"c",(function(){return x})),n.d(e,"b",(function(){return _})),n.d(e,"f",(function(){return O})),n.d(e,"i",(function(){return w})),n.d(e,"h",(function(){return S})),n.d(e,"H",(function(){return E})),n.d(e,"G",(function(){return F})),n.d(e,"r",(function(){return U})),n.d(e,"C",(function(){return Y})),n.d(e,"q",(function(){return X})),n.d(e,"B",(function(){return Z})),n.d(e,"s",(function(){return K})),n.d(e,"D",(function(){return J})),n.d(e,"k",(function(){return Q})),n.d(e,"l",(function(){return et})),n.d(e,"m",(function(){return nt})),n.d(e,"t",(function(){return it})),n.d(e,"x",(function(){return rt})),n.d(e,"w",(function(){return ot})),n.d(e,"K",(function(){return at})),n.d(e,"L",(function(){return st})),n.d(e,"u",(function(){return lt})),n.d(e,"o",(function(){return ut})),n.d(e,"J",(function(){return dt})),n.d(e,"p",(function(){return ht})),n.d(e,"I",(function(){return gt})),n.d(e,"F",(function(){return yt})),n.d(e,"y",(function(){return mt})),n.d(e,"n",(function(){return vt})),n.d(e,"v",(function(){return bt})),n.d(e,"A",(function(){return xt})),n.d(e,"z",(function(){return _t})),n.d(e,"E",(function(){return Ot}));var i=n("d51b"),r=n("6d8b"),o=n("861c"),a=n("41ef"),s=n("e0d3"),l=n("cbe5"),u=1,c={},d=Object(s["o"])(),h=Object(s["o"])(),p=0,f=1,g=2,y=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,b=9,x="highlight",_="downplay",O="select",w="unselect",S="toggleSelect";function M(t){return null!=t&&"none"!==t}var I=new i["a"](100);function j(t){if(Object(r["C"])(t)){var e=I.get(t);return e||(e=a["c"](t,-.1),I.put(t,e)),e}if(Object(r["x"])(t)){var n=Object(r["m"])({},t);return n.colorStops=Object(r["H"])(t.colorStops,(function(t){return{offset:t.offset,color:a["c"](t.color,-.1)}})),n}return t}function C(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function T(t){C(t,"emphasis",g)}function D(t){t.hoverState===g&&C(t,"normal",p)}function A(t){C(t,"blur",f)}function k(t){t.hoverState===f&&C(t,"normal",p)}function L(t){t.selected=!0}function P(t){t.selected=!1}function N(t,e,n){e(t,n)}function R(t,e,n){N(t,e,n),t.isGroup&&t.traverse((function(t){N(t,e,n)}))}function E(t,e){switch(e){case"emphasis":t.hoverState=g;break;case"normal":t.hoverState=p;break;case"blur":t.hoverState=f;break;case"select":t.selected=!0}}function z(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function V(t,e,n,i){var o=n&&Object(r["r"])(n,"select")>=0,a=!1;if(t instanceof l["b"]){var s=d(t),u=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(M(u)||M(c)){i=i||{};var h=i.style||{};"inherit"===h.fill?(a=!0,i=Object(r["m"])({},i),h=Object(r["m"])({},h),h.fill=u):!M(h.fill)&&M(u)?(a=!0,i=Object(r["m"])({},i),h=Object(r["m"])({},h),h.fill=j(u)):!M(h.stroke)&&M(c)&&(a||(i=Object(r["m"])({},i),h=Object(r["m"])({},h)),h.stroke=j(c)),i.style=h}}if(i&&null==i.z2){a||(i=Object(r["m"])({},i));var p=t.z2EmphasisLift;i.z2=t.z2+(null!=p?p:v)}return i}function B(t,e,n){if(n&&null==n.z2){n=Object(r["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:b)}return n}function G(t,e,n){var i=Object(r["r"])(t.currentStates,e)>=0,o=t.style.opacity,a=i?null:z(t,["opacity"],e,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(r["m"])({},n),s=Object(r["m"])({opacity:i?o:.1*a.opacity},s),n.style=s),n}function H(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return V(this,t,e,n);if("blur"===t)return G(this,t,n);if("select"===t)return B(this,t,n)}return n}function F(t){t.stateProxy=H;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=H),n&&(n.stateProxy=H)}function W(t,e){!$(t,e)&&!t.__highByOuter&&R(t,T)}function q(t,e){!$(t,e)&&!t.__highByOuter&&R(t,D)}function U(t,e){t.__highByOuter|=1<<(e||0),R(t,T)}function Y(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&R(t,D)}function X(t){R(t,A)}function Z(t){R(t,k)}function K(t){R(t,L)}function J(t){R(t,P)}function $(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Q(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=h(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){k(t)})),a&&n.push(r)),o.isBlured=!1})),Object(r["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function tt(t,e,n,i){var o=i.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Z(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&l?c===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!d||"series"===e&&o)){var p=i.getViewOfSeriesModel(t);if(p.group.traverse((function(t){t.__highByOuter&&o&&"self"===e||A(t)})),Object(r["u"])(e))a(t.getData(),e);else if(Object(r["A"])(e))for(var f=Object(r["F"])(e),g=0;g<f.length;g++)a(t.getData(f[g]),e[f[g]]);u.push(t),h(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function et(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){h(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){A(t)}))}}}function nt(t,e,n){var i=t.seriesIndex,a=t.getData(e.dataType);if(a){var l=Object(s["u"])(a,e);l=(Object(r["t"])(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u){var c=a.count(),d=0;while(!u&&d<c)u=a.getItemGraphicEl(d++)}if(u){var h=Object(o["a"])(u);tt(i,h.focus,h.blurScope,n)}else{var p=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=p&&tt(i,p,f,n)}}}function it(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var a=i.getModel().getComponent(t,e);if(!a)return r;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return r;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===Object(o["a"])(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function rt(t,e,n){var i=Object(o["a"])(t),a=it(i.componentMainType,i.componentIndex,i.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&et(i.componentMainType,i.componentIndex,n),Object(r["k"])(s,(function(t){return W(t,e)}))):(tt(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&et(i.componentMainType,i.componentIndex,n),W(t,e))}function ot(t,e,n){Q(n);var i=Object(o["a"])(t),a=it(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;a?Object(r["k"])(a,(function(t){return q(t,e)})):q(t,e)}function at(t,e,n){if(xt(e)){var i=e.dataType,o=t.getData(i),a=Object(s["u"])(o,e);Object(r["t"])(a)||(a=[a]),t[e.type===S?"toggleSelect":e.type===O?"select":"unselect"](a,i)}}function st(t){var e=t.getAllData();Object(r["k"])(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?K(e):J(e)}))}))}function lt(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(r["k"])(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function ut(t,e,n){yt(t,!0),R(t,F),ht(t,e,n)}function ct(t){yt(t,!1)}function dt(t,e,n,i){i?ct(t):ut(t,e,n)}function ht(t,e,n){var i=Object(o["a"])(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var pt=["emphasis","blur","select"],ft={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gt(t,e,n,i){n=n||"itemStyle";for(var r=0;r<pt.length;r++){var o=pt[r],a=e.getModel([o,n]),s=t.ensureState(o);s.style=i?i(a):a[ft[n]]()}}function yt(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function mt(t){return!(!t||!t.__highDownDispatcher)}function vt(t,e,n){var i=Object(o["a"])(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function bt(t){var e=c[t];return null==e&&u<=32&&(e=c[t]=u++),e}function xt(t){var e=t.type;return e===O||e===w||e===S}function _t(t){var e=t.type;return e===x||e===_}function Ot(t){var e=d(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}},"7fae":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));
|