=0&&(m=o.interpolatedValue[v])}return m!=null?m+"":""})}},n.prototype.getRawValue=function(e,t){return pv(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function Ok(n){var e,t;return Kn(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function Xg(n){return new A1e(n)}var A1e=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(_){return!(_>=1)&&(_=1),_}var d;(this._dirty||a==="reset")&&(this._dirty=!1,d=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(d||f1&&i>0?s:o}};return a;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},M1e=function(){function n(e,t){if(!Yi(t)){var i="";ur(i)}this._opFn=OX[e],this._rvalFloat=jc(t)}return n.prototype.evaluate=function(e){return Yi(e)?this._opFn(e,this._rvalFloat):this._opFn(jc(e),this._rvalFloat)},n}(),BX=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=Yi(e)?e:jc(e),r=Yi(t)?t:jc(t),a=isNaN(i),o=isNaN(r);if(a&&(i=this._incomparable),o&&(r=this._incomparable),a&&o){var s=xn(e),l=xn(t);s&&(i=l?e:0),l&&(r=s?t:0)}return ir?-this._resultLT:0},n}(),E1e=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=jc(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=jc(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function P1e(n,e){return n==="eq"||n==="ne"?new E1e(n==="eq",e):Mn(OX,n)?new M1e(n,e):null}var R1e=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return gh(e,t)},n}();function L1e(n,e){var t=new R1e,i=n.data,r=t.sourceFormat=n.sourceFormat,a=n.startIndex,o="";n.seriesLayoutBy!==Wu&&ur(o);var s=[],l={},u=n.dimensionsDefine;if(u)ne(u,function(m,v){var g=m.name,_={index:v,name:g,displayName:m.displayName};if(s.push(_),g!=null){var S="";Mn(l,g)&&ur(S),l[g]=_}});else for(var c=0;c65535?z1e:G1e}function k1(){return[1/0,-1/0]}function U1e(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function Gk(n,e,t,i,r){var a=UX[t||"float"];if(r){var o=n[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;uv[1]&&(v[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var r=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Xt(o,function(_){return _.property}),c=0;cg[1]&&(g[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&ie)a=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,i){var r=this._chunks,a=r[e],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=f,u=0),f===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,r=this._count;if(i===Array){e=new i(r);for(var a=0;a=d&&_<=h||isNaN(_))&&(l[u++]=m),m++}p=!0}else if(a===2){for(var v=f[r[0]],S=f[r[1]],x=e[r[1]][0],A=e[r[1]][1],g=0;g=d&&_<=h||isNaN(_))&&(C>=x&&C<=A||isNaN(C))&&(l[u++]=m),m++}p=!0}}if(!p)if(a===1)for(var g=0;g=d&&_<=h||isNaN(_))&&(l[u++]=M)}else for(var g=0;ge[E][1])&&(I=!1)}I&&(l[u++]=t.getRawIndex(g))}return ug[1]&&(g[1]=v)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),r=i._chunks,a=r[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,h,f=new(N1(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));f[s++]=u;for(var p=1;pc&&(c=d,h=x)}P>0&&Ps&&(m=s-c);for(var v=0;vp&&(p=_,f=c+v)}var S=this.getRawIndex(d),x=this.getRawIndex(f);dc-p&&(l=c-p,s.length=l);for(var m=0;md[1]&&(d[1]=g),h[f++]=_}return a._count=f,a._indices=h,a._updateGetRawIdx(),a},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,r=this._chunks,a=0,o=this.count();al&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],r=this._chunks,a=0;a=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,r,a){return gh(t[a],this._dimensions[a])}Hb={arrayRows:e,objectRows:function(t,i,r,a){return gh(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,r,a){var o=t&&(t.value==null?t:t.value);return gh(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,r,a){return t[a]}}}(),n}(),VX=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,r,a;if(t6(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=sl(s)?mh:R0,a=[];var d=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},f=ai(d.seriesLayoutBy,h.seriesLayoutBy)||null,p=ai(d.sourceHeader,h.sourceHeader),m=ai(d.dimensions,h.dimensions),v=f!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||m;r=v?[DA(s,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},l)]:[]}else{var g=e;if(i){var _=this._applyTransform(t);r=_.sourceList,a=_.upstreamSignList}else{var S=g.get("source",!0);r=[DA(S,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(r,a)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),r=t.get("fromTransformResult",!0);if(r!=null){var a="";e.length!==1&&Vk(a)}var o,s=[],l=[];return ne(e,function(u){u.prepareSource();var c=u.getSource(r||0),d="";r!=null&&!c&&Vk(d),s.push(c),l.push(u._getVersionSign())}),i?o=O1e(i,s,{datasetIndex:t.componentIndex}):r!=null&&(o=[y1e(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return ne(n.blocks,function(r){var a=$X(r);a>=e&&(e=a+ +(i&&(!a||kA(r)&&!r.noHeader)))}),e}return 0}function j1e(n,e,t,i){var r=e.noHeader,a=q1e($X(e)),o=[],s=e.blocks||[];Ls(!s||$t(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mn(u,l)){var c=new BX(u[l],null);s.sort(function(m,v){return c.evaluate(m.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}ne(s,function(m,v){var g=e.valueFormatter,_=jX(m)(g?It(It({},n),{valueFormatter:g}):n,m,v>0?a.html:0,i);_!=null&&o.push(_)});var d=n.renderMode==="richText"?o.join(a.richText):FA(i,o.join(""),r?t:a.html);if(r)return d;var h=RA(e.header,"ordinal",n.useUTC),f=WX(i,n.renderMode).nameStyle,p=HX(i);return n.renderMode==="richText"?qX(n,h,f)+a.richText+d:FA(i,''+os(h)+"
"+d,t)}function $1e(n,e,t,i){var r=n.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(x){return x=$t(x)?x:[x],Xt(x,function(A,C){return RA(A,$t(f)?f[C]:f,u)})};if(!(a&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),h=a?"":RA(l,"ordinal",u),f=e.valueType,p=o?[]:c(e.value,e.dataIndex),m=!s||!a,v=!s&&a,g=WX(i,r),_=g.nameStyle,S=g.valueStyle;return r==="richText"?(s?"":d)+(a?"":qX(n,h,_))+(o?"":K1e(n,p,m,v,S)):FA(i,(s?"":d)+(a?"":X1e(h,!s,_))+(o?"":Y1e(p,m,v,S)),t)}}function Hk(n,e,t,i,r,a){if(n){var o=jX(n),s={useUTC:r,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,a)}}function q1e(n){return{html:H1e[n],richText:W1e[n]}}function FA(n,e,t){var i='',r="margin: "+t+"px 0 0",a=HX(n);return''+e+i+"
"}function X1e(n,e,t){var i=e?"margin-left:2px":"";return''+os(n)+""}function Y1e(n,e,t,i){var r=t?"10px":"20px",a=e?"float:right;margin-left:"+r:"";return n=$t(n)?n:[n],''+Xt(n,function(o){return os(o)}).join(" ")+""}function qX(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function K1e(n,e,t,i,r){var a=[r],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle($t(e)?e.join(" "):e,a)}function XX(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return Gp(i)}function YX(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Wb=function(){function n(){this.richTextStyles={},this._nextStyleNameId=Y$()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var r=i==="richText"?this._generateStyleName():null,a=Ope({color:t,type:e,renderMode:i,markerId:r});return xn(a)?a:(this.richTextStyles[r]=a.style,a.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};$t(t)?ne(t,function(a){return It(i,a)}):It(i,t);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+e+"}"},n}();function KX(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,r=e.getData(),a=r.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=$t(s),u=XX(e,t),c,d,h,f;if(o>1||l&&!o){var p=Z1e(s,e,t,a,u);c=p.inlineValues,d=p.inlineValueTypes,h=p.blocks,f=p.inlineValues[0]}else if(o){var m=r.getDimensionInfo(a[0]);f=c=pv(r,t,a[0]),d=m.type}else f=c=l?s[0]:s;var v=aE(e),g=v&&e.name||"",_=r.getName(t),S=i?g:_;return So("section",{header:g,noHeader:i||!v,sortParam:f,blocks:[So("nameValue",{markerType:"item",markerColor:u,name:S,noName:!K0(S),value:c,valueType:d,dataIndex:t})].concat(h||[])})}function Z1e(n,e,t,i,r){var a=e.getData(),o=Yu(n,function(d,h,f){var p=a.getDimensionInfo(f);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];i.length?ne(i,function(d){c(pv(a,t,d),d)}):ne(n,c);function c(d,h){var f=a.getDimensionInfo(h);!f||f.otherDims.tooltip===!1||(o?u.push(So("nameValue",{markerType:"subItem",markerColor:r,name:f.displayName,value:d,valueType:f.type})):(s.push(d),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Md=Gi();function n6(n,e){return n.getName(e)||n.getId(e)}var s5="__universalTransitionEnabled",U_=function(n){ot(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,r){this.seriesIndex=this.componentIndex,this.dataTask=Xg({count:Q1e,reset:e2e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,r);var a=Md(this).sourceManager=new VX(this);a.prepareSource();var o=this.getInitialData(t,r);jk(o,this),this.dataTask.context.data=o,Md(this).dataBeforeProcessed=o,Wk(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var r=D9(this),a=r?jv(t):{},o=this.subType;$i.hasClass(o)&&(o+="Series"),ui(t,i.getTheme().get(this.subType)),ui(t,this.getDefaultOption()),Fp(t,"label",["show"]),this.fillDataTextStyle(t.data),r&&Rh(t,a,r)},e.prototype.mergeOption=function(t,i){t=ui(this.option,t,!0),this.fillDataTextStyle(t.data);var r=D9(this);r&&Rh(this.option,t,r);var a=Md(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);jk(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Md(this).dataBeforeProcessed=o,Wk(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!sl(t))for(var i=["show"],r=0;rthis.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,r){var a=this.ecModel,o=RE.prototype.getColorFromPalette.call(this,t,i,r);return o||(o=a.getColorFromPalette(t,i,r)),o},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,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var r=this.option.selectedMap;if(r){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||r==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&r.push(o)}return r},e.prototype.isSelected=function(t,i){var r=this.option.selectedMap;if(!r)return!1;var a=this.getData(i);return(r==="all"||r[n6(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[s5])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var r,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Kn(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,i)}},e.registerClass=function(t){return $i.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}($i);Za(U_,z_);Za(U_,RE);rq(U_,$i);function Wk(n){var e=n.name;aE(n)||(n.name=J1e(n)||e)}function J1e(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return ne(t,function(r){var a=e.getDimensionInfo(r);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Q1e(n){return n.model.getRawData().count()}function e2e(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),t2e}function t2e(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jk(n,e){ne(x9(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,si(n2e,e))})}function n2e(n,e){var t=OA(n);return t&&t.setOutputEnd((e||this).count()),e}function OA(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}const pa=U_;var kE=function(){function n(){this.group=new ei,this.uid=Hv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,r){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,r){},n.prototype.updateLayout=function(e,t,i,r){},n.prototype.updateVisual=function(e,t,i,r){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();sE(kE);b_(kE);const xa=kE;function Xv(){var n=Gi();return function(e){var t=n(e),i=e.pipelineContext,r=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(r!==o||a!==s)&&"reset"}}var ZX=Gi(),i2e=Xv(),FE=function(){function n(){this.group=new ei,this.uid=Hv("viewChart"),this.renderTask=Xg({plan:r2e,reset:a2e}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,r){},n.prototype.highlight=function(e,t,i,r){var a=e.getData(r&&r.dataType);a&&qk(a,r,"emphasis")},n.prototype.downplay=function(e,t,i,r){var a=e.getData(r&&r.dataType);a&&qk(a,r,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,r){this.render(e,t,i,r)},n.prototype.updateLayout=function(e,t,i,r){this.render(e,t,i,r)},n.prototype.updateVisual=function(e,t,i,r){this.render(e,t,i,r)},n.prototype.eachRendered=function(e){Gh(this.group,e)},n.markUpdateMethod=function(e,t){ZX(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function $k(n,e,t){n&&R9(n)&&(e==="emphasis"?$c:qc)(n,t)}function qk(n,e,t){var i=Op(n,e),r=e&&e.highlightKey!=null?Rfe(e.highlightKey):null;i!=null?ne(Ar(i),function(a){$k(n.getItemGraphicEl(a),t,r)}):n.eachItemGraphicEl(function(a){$k(a,t,r)})}sE(FE);b_(FE);function r2e(n){return i2e(n.model)}function a2e(n){var e=n.model,t=n.ecModel,i=n.api,r=n.payload,a=e.pipelineContext.progressiveRender,o=n.view,s=r&&ZX(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,r),o2e[l]}var o2e={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Yr=FE;var Q5="\0__throttleOriginMethod",Xk="\0__throttleRate",Yk="\0__throttleType";function V_(n,e,t){var i,r=0,a=0,o=null,s,l,u,c;e=e||0;function d(){a=new Date().getTime(),o=null,n.apply(l,u||[])}var h=function(){for(var f=[],p=0;p=0?d():o=setTimeout(d,-s),r=i};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(f){c=f},h}function Yv(n,e,t,i){var r=n[e];if(r){var a=r[Q5]||r,o=r[Yk],s=r[Xk];if(s!==t||o!==i){if(t==null||!i)return n[e]=a;r=n[e]=V_(a,t,i==="debounce"),r[Q5]=a,r[Yk]=i,r[Xk]=t}return r}}function k9(n,e){var t=n[e];t&&t[Q5]&&(t.clear&&t.clear(),n[e]=t[Q5])}var Kk=Gi(),Zk={itemStyle:Bp(tX,!0),lineStyle:Bp(eX,!0)},s2e={lineStyle:"stroke",itemStyle:"fill"};function JX(n,e){var t=n.visualStyleMapper||Zk[e];return t||(console.warn("Unknown style type '"+e+"'."),Zk.itemStyle)}function QX(n,e){var t=n.visualDrawType||s2e[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var l2e={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),a=JX(n,i),o=a(r),s=r.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=QX(n,i),u=o[l],c=$n(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var h=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$n(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$n(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(f,p){var m=n.getDataParams(p),v=It({},o);v[l]=c(m),f.setItemVisual(p,"style",v)}}}},km=new Xr,u2e={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=JX(n,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){km.option=l[i];var u=r(km),c=o.ensureUniqueItemVisual(s,"style");It(c,u),km.option.decal&&(o.setItemVisual(s,"decal",km.option.decal),km.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},c2e={performRawSeries:!0,overallReset:function(n){var e=In();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+i,a=e.get(r);a||(a={},e.set(r,a)),Kk(t).scope=a}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),r={},a=t.getData(),o=Kk(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=QX(t,s);a.each(function(u){var c=a.getRawIndex(u);r[c]=u}),i.each(function(u){var c=r[u],d=a.getItemVisual(c,"colorFromPalette");if(d){var h=a.ensureUniqueItemVisual(c,"style"),f=i.getName(u)||u+"",p=i.count();h[l]=t.getColorFromPalette(f,o,p)}})}})}},i6=Math.PI;function d2e(n,e){e=e||{},qn(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 t=new ei,i=new Hi({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var r=new Xi({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Hi({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new gE({shape:{startAngle:-i6/2,endAngle:-i6/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:i6*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:i6*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=r.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var h2e=function(){function n(e,t,i,r){this._stageTaskMap=In(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),r=i.context,a=!t&&i.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=r&&r.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),r=e.getData(),a=r.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&a>=i.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=In();e.eachSeries(function(r){var a=r.getProgressive(),o=r.uid;i.set(o,{id:o,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:a&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;ne(this._allHandlers,function(r){var a=e.get(r.uid)||e.set(r.uid,{}),o="";Ls(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,a,t,i),r.overallReset&&this._createOverallStageTask(r,a,t,i)},this)},n.prototype.prepareView=function(e,t,i,r){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=r,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,r){r=r||{};var a=!1,o=this;ne(e,function(l,u){if(!(r.visualType&&r.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,h=c.overallTask;if(h){var f,p=h.agentStubMap;p.each(function(v){s(r,v)&&(v.dirty(),f=!0)}),f&&h.dirty(),o.updatePayload(h,i);var m=o.getPerformArgs(h,r.block);p.each(function(v){v.perform(m)}),h.perform(m)&&(a=!0)}else d&&d.each(function(v,g){s(r,v)&&v.dirty();var _=o.getPerformArgs(v,r.block);_.skip=!l.performRawSeries&&t.isSeriesFiltered(v.context.model),o.updatePayload(v,i),v.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,r){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=In(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,r).each(c);function c(d){var h=d.uid,f=s.set(h,o&&o.get(h)||Xg({plan:g2e,reset:y2e,count:S2e}));f.context={model:d,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(d,f)}},n.prototype._createOverallStageTask=function(e,t,i,r){var a=this,o=t.overallTask=t.overallTask||Xg({reset:f2e});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=In(),u=e.seriesType,c=e.getTargetSeries,d=!0,h=!1,f="";Ls(!e.createOnAllSeries,f),u?i.eachRawSeriesByType(u,p):c?c(i,r).each(p):(d=!1,ne(i.getSeries(),p));function p(m){var v=m.uid,g=l.set(v,s&&s.get(v)||(h=!0,Xg({reset:p2e,onDirty:m2e})));g.context={model:m,overallProgress:d},g.agent=o,g.__block=d,a._pipe(m,g)}h&&o.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},n.wrapStageHandler=function(e,t){return $n(e)&&(e={overallReset:e,seriesType:b2e(e)}),e.uid=Hv("stageHandler"),t&&(e.visualType=t),e},n}();function f2e(n){n.overallReset(n.ecModel,n.api,n.payload)}function p2e(n){return n.overallProgress&&v2e}function v2e(){this.agent.dirty(),this.getDownstream().dirty()}function m2e(){this.agent&&this.agent.dirty()}function g2e(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function y2e(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Ar(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?Xt(e,function(t,i){return eY(i)}):_2e}var _2e=eY(0);function eY(n){return function(e,t){var i=t.data,r=t.resetDefines[n];if(r&&r.dataEach)for(var a=e.start;a0&&f===u.length-h.length){var p=u.slice(0,f);p!=="data"&&(t.mainType=p,t[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(i[u]=l,c=!0),c||(r[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:r}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,a));function c(d,h,f,p){return d[f]==null||h[p||f]===d[f]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),BA=["symbol","symbolSize","symbolRotate","symbolOffset"],tF=BA.concat(["symbolKeepAspect"]),A2e={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},r={},a=!1,o=0;o=0&&lp(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function zA(n,e,t){for(var i=e.type==="radial"?U2e(n,e,t):G2e(n,e,t),r=e.colorStops,a=0;a0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:Yi(n)?[n]:$t(n)?n:null}function BE(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&H2e(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var r=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;r&&r!==1&&(t=Xt(t,function(a){return a/r}),i/=r)}return[t,i]}var W2e=new Qu(!0);function n8(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function nF(n){return typeof n=="string"&&n!=="none"}function i8(n){var e=n.fill;return e!=null&&e!=="none"}function iF(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function rF(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function GA(n,e,t){var i=lE(e.image,e.__image,t);if(x_(i)){var r=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*q4),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}function j2e(n,e,t,i){var r,a=n8(t),o=i8(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||W2e,d=e.__dirty;if(!i){var h=t.fill,f=t.stroke,p=o&&!!h.colorStops,m=a&&!!f.colorStops,v=o&&!!h.image,g=a&&!!f.image,_=void 0,S=void 0,x=void 0,A=void 0,C=void 0;(p||m)&&(C=e.getBoundingRect()),p&&(_=d?zA(n,h,C):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(S=d?zA(n,f,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),v&&(x=d||!e.__canvasFillPattern?GA(n,h,e):e.__canvasFillPattern,e.__canvasFillPattern=x),g&&(A=d||!e.__canvasStrokePattern?GA(n,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),p?n.fillStyle=_:v&&(x?n.fillStyle=x:o=!1),m?n.strokeStyle=S:g&&(A?n.strokeStyle=A:a=!1)}var M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold);var I,D;n.setLineDash&&t.lineDash&&(r=BE(e),I=r[0],D=r[1]);var E=!0;(u||d&y2)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),E=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(n,l?s:1),I&&(n.setLineDash(I),n.lineDashOffset=D),i||(t.strokeFirst?(a&&rF(n,t),o&&iF(n,t)):(o&&iF(n,t),a&&rF(n,t))),I&&n.setLineDash([])}function $2e(n,e,t){var i=e.__image=lE(t.image,e.__image,e,e.onload);if(!(!i||!x_(i))){var r=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(i,u,c,t.sWidth,t.sHeight,r,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,h=s-c;n.drawImage(i,u,c,d,h,r,a,o,s)}else n.drawImage(i,r,a,o,s)}}function q2e(n,e,t){var i,r=t.text;if(r!=null&&(r+=""),r){n.font=t.font||Ch,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var a=void 0,o=void 0;n.setLineDash&&t.lineDash&&(i=BE(e),a=i[0],o=i[1]),a&&(n.setLineDash(a),n.lineDashOffset=o),t.strokeFirst?(n8(t)&&n.strokeText(r,t.x,t.y),i8(t)&&n.fillText(r,t.x,t.y)):(i8(t)&&n.fillText(r,t.x,t.y),n8(t)&&n.strokeText(r,t.x,t.y)),a&&n.setLineDash([])}}var aF=["shadowBlur","shadowOffsetX","shadowOffsetY"],oF=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sY(n,e,t,i,r){var a=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Xs(n,r),a=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bp.opacity:o}(i||e.blend!==t.blend)&&(a||(Xs(n,r),a=!0),n.globalCompositeOperation=e.blend||bp.blend);for(var s=0;s0&&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,i,r){if(!this[Qo]){if(this._disposed){this.id;return}var a,o,s;if(Kn(i)&&(r=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Qo]=!0,!this._model||i){var l=new l1e(this._api),u=this._theme,c=this._model=new CX;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},VA);var d={seriesTransition:s,optionChanged:!0};if(r)this[zs]={silent:a,updateParams:d},this[Qo]=!1,this.getZr().wakeUp();else{try{O1(this),Ed.update.call(this,null,d)}catch(h){throw this[zs]=null,this[Qo]=!1,h}this._ssr||this._zr.flush(),this[zs]=null,this[Qo]=!1,Fm.call(this,a),Om.call(this,a)}}},e.prototype.setTheme=function(){},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||qi.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(qi.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return ne(i,function(r){r.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,r=this._model,a=[],o=this;ne(i,function(l){r.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ne(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",r=this.group,a=Math.min,o=Math.max,s=1/0;if(bF[r]){var l=s,u=s,c=-s,d=-s,h=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();ne(Kg,function(S,x){if(S.group===r){var A=i?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Zn(t)),C=S.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),c=o(C.right,c),d=o(C.bottom,d),h.push({dom:A,left:C.left,top:C.top})}}),l*=f,u*=f,c*=f,d*=f;var p=c-l,m=d-u,v=Mh.createCanvas(),g=CN(v,{renderer:i?"svg":"canvas"});if(g.resize({width:p,height:m}),i){var _="";return ne(h,function(S){var x=S.left-l,A=S.top-u;_+=''+S.dom+""}),g.painter.getSvgRoot().innerHTML=_,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new Hi({shape:{x:0,y:0,width:p,height:m},style:{fill:t.connectedBackgroundColor}})),ne(h,function(S){var x=new qo({style:{x:S.left*f-l,y:S.top*f-u,image:S.dom}});g.add(x)}),g.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Yb(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Yb(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var r=this._model,a,o=Hg(r,t);return ne(o,function(s,l){l.indexOf("Models")>=0&&ne(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(i);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(a=a||d.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(t,i){var r=this._model,a=Hg(r,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?OE(s,l,i):w3(s,i)},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;ne(_ve,function(i){var r=function(a){var o=t.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&sp(s,function(p){var m=ni(p);if(m&&m.dataIndex!=null){var v=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=v&&v.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=It({},m.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var h=c&&d!=null&&o.getComponent(c,d),f=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:f},t.trigger(i,l)}};r.zrEventfulCallAtLast=!0,t._zr.on(i,r,t)}),ne(Yg,function(i,r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),ne(["selectchanged"],function(i){t._messageCenter.on(i,function(r){this.trigger(i,r)},t)}),M2e(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&tq(this.getDom(),UE,"");var i=this,r=i._api,a=i._model;ne(i._componentsViews,function(o){o.dispose(a,r)}),ne(i._chartsViews,function(o){o.dispose(a,r)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Kg[i.id]},e.prototype.resize=function(t){if(!this[Qo]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var r=i.resetOption("media"),a=t&&t.silent;this[zs]&&(a==null&&(a=this[zs].silent),r=!0,this[zs]=null),this[Qo]=!0;try{r&&O1(this),Ed.update.call(this,{type:"resize",animation:It({duration:0},t&&t.animation)})}catch(o){throw this[Qo]=!1,o}this[Qo]=!1,Fm.call(this,a),Om.call(this,a)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(Kn(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!HA[t]){var r=HA[t](this._api,i),a=this._zr;this._loadingFX=r,a.add(r)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=It({},t);return i.type=Yg[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(Kn(i)||(i={silent:!!i}),!!r8[t.type]&&this._model){if(this[Qo]){this._pendingActions.push(t);return}var r=i.silent;Zb.call(this,t,r);var a=i.flush;a?this._zr.flush():a!==!1&&qi.browser.weChat&&this._throttledZrFlush(),Fm.call(this,r),Om.call(this,r)}},e.prototype.updateLabelLayout=function(){j0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,r=this.getModel(),a=r.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){O1=function(d){var h=d._scheduler;h.restorePipelines(d._model),h.prepareStageTasks(),Xb(d,!0),Xb(d,!1),h.plan()},Xb=function(d,h){for(var f=d._model,p=d._scheduler,m=h?d._componentsViews:d._chartsViews,v=h?d._componentsMap:d._chartsMap,g=d._zr,_=d._api,S=0;Sh.get("hoverLayerThreshold")&&!qi.node&&!qi.worker&&h.eachSeries(function(v){if(!v.preventUsingHoverLayer){var g=d._chartsMap[v.__viewId];g.__alive&&g.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(d,h){var f=d.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=f)})}function s(d,h){if(!d.preventAutoZ){var f=d.get("z")||0,p=d.get("zlevel")||0;h.eachRendered(function(m){return l(m,f,p,-1/0),!0})}}function l(d,h,f,p){var m=d.getTextContent(),v=d.getTextGuideLine(),g=d.isGroup;if(g)for(var _=d.childrenRef(),S=0;S<_.length;S++)p=Math.max(l(_[S],h,f,p),p);else d.z=h,d.zlevel=f,p=Math.max(d.z2,p);if(m&&(m.z=h,m.zlevel=f,isFinite(p)&&(m.z2=p+2)),v){var x=d.textGuideLineConfig;v.z=h,v.zlevel=f,isFinite(p)&&(v.z2=p+(x&&x.showAbove?1:-1))}return p}function u(d,h){h.eachRendered(function(f){if(!X2(f)){var p=f.getTextContent(),m=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function c(d,h){var f=d.getModel("stateAnimation"),p=d.isAnimationEnabled(),m=f.get("duration"),v=m>0?{duration:m,delay:f.get("delay"),easing:f.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(X2(g))return;if(g instanceof Ei&&Lfe(g),g.__dirty){var _=g.prevStates;_&&g.useStates(_)}if(p){g.stateTransition=v;var S=g.getTextContent(),x=g.getTextGuideLine();S&&(S.stateTransition=v),x&&(x.stateTransition=v)}g.__dirty&&r(g)}})}_F=function(d){return new(function(h){ot(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(p){for(;p;){var m=p.__ecComponentInfo;if(m!=null)return d._model.getComponent(m.mainType,m.index);p=p.parent}},f.prototype.enterEmphasis=function(p,m){$c(p,m),Yl(d)},f.prototype.leaveEmphasis=function(p,m){qc(p,m),Yl(d)},f.prototype.enterBlur=function(p){xq(p),Yl(d)},f.prototype.leaveBlur=function(p){fE(p),Yl(d)},f.prototype.enterSelect=function(p){wq(p),Yl(d)},f.prototype.leaveSelect=function(p){Tq(p),Yl(d)},f.prototype.getModel=function(){return d.getModel()},f.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},f.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},f}(MX))(d)},xY=function(d){function h(f,p){for(var m=0;m=0)){xF.push(t);var a=iY.wrapStageHandler(t,r);a.__prio=e,a.__raw=t,n.push(a)}}function EY(n,e){HA[n]=e}function Mve(n,e,t){var i=rve("registerMap");i&&i(n,e,t)}var Eve=F1e;i1(zE,l2e);i1(H_,u2e);i1(H_,c2e);i1(zE,A2e);i1(H_,C2e);i1(mY,tve);CY(PX);MY(sve,m1e);EY("default",d2e);nc({type:xp,event:xp,update:xp},Ba);nc({type:n5,event:n5,update:n5},Ba);nc({type:Wg,event:Wg,update:Wg},Ba);nc({type:i5,event:i5,update:i5},Ba);nc({type:jg,event:jg,update:jg},Ba);AY("light",x2e);AY("dark",w2e);var wF=[],Pve={registerPreprocessor:CY,registerProcessor:MY,registerPostInit:wve,registerPostUpdate:Tve,registerUpdateLifecycle:VE,registerAction:nc,registerCoordinateSystem:Ave,registerLayout:Cve,registerVisual:i1,registerTransform:Eve,registerLoading:EY,registerMap:Mve,registerImpl:ive,PRIORITY:mve,ComponentModel:$i,ComponentView:xa,SeriesModel:pa,ChartView:Yr,registerComponentModel:function(n){$i.registerClass(n)},registerComponentView:function(n){xa.registerClass(n)},registerSeriesModel:function(n){pa.registerClass(n)},registerChartView:function(n){Yr.registerClass(n)},registerSubTypeDefaulter:function(n,e){$i.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){Yde(n,e)}};function Ci(n){if($t(n)){ne(n,function(e){Ci(e)});return}xi(wF,n)>=0||(wF.push(n),$n(n)&&(n={install:n}),n.install(Pve))}function Bm(n){return n==null?0:n.length||1}function TF(n){return n}var Rve=function(){function n(e,t,i,r,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||TF,this._newKeyGetter=r||TF,this.context=a,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},r=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(c,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},r={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(d===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(d===1&&h===1)this._update&&this._update(c,u),r[l]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(d>1)for(var f=0;f1)for(var s=0;s30}var zm=Kn,Pd=Xt,Ove=typeof Int32Array=="undefined"?Array:Int32Array,Bve="e\0\0",AF=-1,zve=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gve=["_approximateExtent"],CF,l6,Gm,Um,ex,Vm,tx,Uve=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,r=!1;RY(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c