19 lines
431 KiB
JavaScript
19 lines
431 KiB
JavaScript
import{r as wa,m as U,i as H,e as kn,a as $,b as kp,c as Y,d as ue,f as En,g as G,h as q,j as Z,k as b,l as ye,n as le,o as Zf,p as V,q as ni,s as Xe,P as Ae,t as Ul,u as ae,v as Ep,Z as gr,w as Rp,x as Cs,y as Rn,z as j,A as Np,C as Ra,E as Ds,S as tt,R as ii,B as Ms,D as Na,F as De,L as ze,G as oi,H as si,I as Op,J as Bp,K as Gp,T as Mr,M as Oa,N as rt,O as Er,Q as Pe,U as qf,V as Se,W as Kf,X as Is,Y as Nn,_ as we,$ as jf,a0 as ge,a1 as Ba,a2 as se,a3 as ee,a4 as St,a5 as Vp,a6 as Ve,a7 as oe,a8 as He,a9 as pe,aa as Q,ab as Go,ac as Jf,ad as It,ae as Vo,af as Fp,ag as zp,ah as Qf,ai as ev,aj as Ga,ak as Fo,al as tv,am as Hp,an as Yl,ao as Vi,ap as Wp,aq as $t,ar as zo,as as Up,at as $l,au as Yp,av as $p,aw as Xp,ax as Ls,ay as rv,az as Xl,aA as Fi,aB as Zp,aC as qp,aD as la,aE as Kp,aF as jp,aG as Jp,aH as Qp,aI as eg,aJ as tg,aK as rg,aL as ag,aM as ng,aN as ig,aO as og,aP as sg,aQ as Zl,aR as ql,aS as lg,aT as av,aU as Ps,aV as ks,aW as Kl,aX as Es,aY as ug,aZ as Rs,a_ as cg,a$ as fg,b0 as nv,b1 as vg,b2 as hg,b3 as dg,b4 as pg}from"./zrender-f903d501.js";import{_ as F}from"./tslib-54e39b60.js";var jl=1e-4,iv=20;function gg(r){return r.replace(/^\s+|\s+$/g,"")}function pt(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?gg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function he(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),iv),r=(+r).toFixed(t),e?r:+r}function mg(r){return r.sort(function(t,e){return t-e}),r}function yt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return On(r)}function On(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function ov(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function yg(r,t,e){if(!r[t])return 0;var a=sv(r,e);return a[t]||0}function sv(r,t){var e=wa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=U(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=U(n,function(v){return Math.floor(v)}),s=wa(o,function(v,d){return v+d},0),l=U(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return U(o,function(v){return v/a})}function _g(r,t){var e=Math.max(yt(r),yt(t)),a=r+t;return e>iv?a:he(a,e)}var xg=9007199254740991;function Ns(r){var t=Math.PI*2;return(r%t+t)%t}function ba(r){return r>-jl&&r<jl}var Sg=/^(?:(\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 at(r){if(r instanceof Date)return r;if(H(r)){var t=Sg.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function lv(r){return Math.pow(10,Va(r))}function Va(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Os(r,t){var e=Va(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function wg(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function bg(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Aa(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function Bs(r){return!isNaN(Aa(r))}function uv(){return Math.round(Math.random()*9)}function cv(r,t){return t===0?r:cv(t,r%t)}function Jl(r,t){return r==null?t:t==null?r:r*t/cv(r,t)}var Ag="[ECharts] ",Ql={},Tg=typeof console<"u"&&console.warn&&console.log;function li(r,t,e){if(Tg){if(e){if(Ql[t])return;Ql[t]=!0}console[r](Ag+t)}}function Cg(r,t){li("log",r,t)}function Ce(r,t){li("warn",r,t)}function ke(r,t){li("error",r,t)}function ht(r){li("warn","DEPRECATED: "+r,!0)}function _e(r,t,e){ht((e?"["+e+"]":"")+(r+" is deprecated, use "+t+" instead."))}function Bn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";{var a=function(n){return n===void 0?"undefined":n===1/0?"Infinity":n===-1/0?"-Infinity":kn(n)?"NaN":n instanceof Date?"Date("+n.toISOString()+")":$(n)?"function () { ... }":kp(n)?n+"":null};e=U(r,function(n){if(H(n))return n;var i=a(n);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(n,function(o,s){var l=a(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return e}function Fe(r){throw new Error(r)}function eu(r,t,e){return(t-r)*e+r}var fv="series\0",Dg="\0_ec_\0";function xe(r){return r instanceof Array?r:r==null?[]:[r]}function Ho(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var tu=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Fa(r){return Y(r)&&!G(r)&&!(r instanceof Date)?r.value:r}function Mg(r){return Y(r)&&!(r instanceof Array)}function Ig(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Z();b(t,function(l,u){if(!Y(l)){t[u]=null;return}l.id!=null&&!au(l.id)&&ru(l.id),l.name!=null&&!au(l.name)&&ru(l.name)});var s=Lg(r,o,e);return(a||n)&&Pg(s,r,o,t),a&&kg(s,t),a||n?Eg(s,t,n):i&&Rg(s,t),Ng(s),s}function Lg(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||Rr(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Pg(r,t,e,a){b(a,function(n,i){if(!(!n||n.id==null)){var o=da(n.id),s=e.get(o);if(s!=null){var l=r[s];q(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function kg(r,t){b(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!Rr(e)&&!Rr(i)&&vv("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function Eg(r,t,e){b(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Rr(n.existing)||n.existing&&a.id!=null&&!vv("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function Rg(r,t){b(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Ng(r){var t=Z();b(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),b(r,function(e){var a=e.newOption;q(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),b(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(Y(i)){if(o.name=i.name!=null?da(i.name):n?n.name:fv+a,n)o.id=da(n.id);else if(i.id!=null)o.id=da(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function vv(r,t,e){var a=vt(t[r],null),n=vt(e[r],null);return a!=null&&n!=null&&a===n}function da(r){if(r==null)throw new Error;return vt(r,"")}function vt(r,t){return r==null?t:H(r)?r:ue(r)||En(r)?r+"":t}function ru(r){Ce("`"+r+"` is invalid id or name. Must be a string or number.")}function au(r){return En(r)||Bs(r)}function Gs(r){var t=r.name;return!!(t&&t.indexOf(fv))}function Rr(r){return r&&r.id!=null&&da(r.id).indexOf(Dg)===0}function Og(r,t,e){b(r,function(a){var n=a.newOption;Y(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=Bg(t,n,a.existing,e))})}function Bg(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function cr(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return G(t.dataIndex)?U(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return G(t.name)?U(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ie(){var r="__ec_inner_"+Gg++;return function(t){return t[r]||(t[r]={})}}var Gg=uv();function zi(r,t,e){var a=Vs(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var f=za(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Vs(r,t){var e;if(H(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=Z(),i={},o=!1;return b(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ye(t.includeMainTypes,c)<0)){o=o||!!c;var h=n.get(c)||n.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ye={useDefault:!0,enableAll:!1,enableNone:!1};function za(r,t,e,a){a=a||Ye;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(q(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(q(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function hv(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function Vg(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Fg(r){return r==="auto"?le.domSupported?"html":"richText":r||"html"}function dv(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(ue(a)){var o=eu(e||0,a,n);return he(o,i?Math.max(yt(e||0),yt(a)):t)}else{if(H(a))return n<1?e:a;for(var s=[],l=e,u=a,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=r.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var v=l&&l[f]?l[f]:0,d=u[f],o=eu(v,d,n);s[f]=he(o,i?Math.max(yt(v),yt(d)):t)}}return s}}var zg=".",Jt="___EC__COMPONENT__CONTAINER___",pv="___EC__EXTENDED_CLASS___";function _t(r){var t={main:"",sub:""};if(r){var e=r.split(zg);t.main=e[0]||"",t.sub=e[1]||""}return t}function Hg(r){q(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Wg(r){return!!(r&&r[pv])}function Fs(r,t){r.$constructor=r,r.extend=function(e){b(t,function(i){e[i]||console.warn("Method `"+i+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var a=this,n;return Ug(a)?n=function(i){F(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},Zf(n,this)),V(n.prototype,e),n[pv]=!0,n.extend=this.extend,n.superCall=Xg,n.superApply=Zg,n.superClass=a,n}}function Ug(r){return $(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function gv(r,t){r.extend=t.extend}var Yg=Math.round(Math.random()*10);function $g(r){var t=["__\0is_clz",Yg++].join("_");r.prototype[t]=!0,q(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function Xg(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function Zg(r,t,e){return this.superClass.prototype[t].apply(r,e)}function ui(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){Hg(n),a.prototype.type=n;var i=_t(n);if(!i.sub)t[i.main]&&console.warn(i.main+" exists."),t[i.main]=a;else if(i.sub!==Jt){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[Jt]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=_t(a),i=[],o=t[n.main];return o&&o[Jt]?b(o,function(s,l){l!==Jt&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=_t(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return b(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=_t(a),i=t[n.main];return i&&i[Jt]};function e(a){var n=t[a.main];return(!n||!n[Jt])&&(n=t[a.main]={},n[Jt]=!0),n}}function Ta(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ye(n,l)>=0||i&&ye(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var qg=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Kg=Ta(qg),jg=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Kg(this,t,e)},r}(),K=ie(),Wo=function(r,t,e,a){if(a){var n=K(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=K(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},nu=1,iu={},mv=ie(),zs=ie(),Hs=0,Ha=1,ci=2,nt=["emphasis","blur","select"],Gn=["normal","emphasis","blur","select"],Jg=10,Qg=9,or="highlight",bn="downplay",pa="select",An="unselect",ga="toggleSelect";function _r(r){return r!=null&&r!=="none"}function fi(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function yv(r){fi(r,"emphasis",ci)}function _v(r){r.hoverState===ci&&fi(r,"normal",Hs)}function Ws(r){fi(r,"blur",Ha)}function xv(r){r.hoverState===Ha&&fi(r,"normal",Hs)}function em(r){r.selected=!0}function tm(r){r.selected=!1}function ou(r,t,e){t(r,e)}function kt(r,t,e){ou(r,t,e),r.isGroup&&r.traverse(function(a){ou(a,t,e)})}function Uo(r,t){switch(t){case"emphasis":r.hoverState=ci;break;case"normal":r.hoverState=Hs;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function rm(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function am(r,t,e,a){var n=e&&ye(e,"select")>=0,i=!1;if(r instanceof Ae){var o=mv(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(_r(s)||_r(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=V({},a),u=V({},u),u.fill=s):!_r(u.fill)&&_r(s)?(i=!0,a=V({},a),u=V({},u),u.fill=Ul(s)):!_r(u.stroke)&&_r(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=Ul(l)),a.style=u}}if(a&&a.z2==null){i||(a=V({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??Jg)}return a}function nm(r,t,e){if(e&&e.z2==null){e=V({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??Qg)}return e}function im(r,t,e){var a=ye(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:rm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=V({},e),o=V({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Hi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return am(this,r,t,e);if(r==="blur")return im(this,r,e);if(r==="select")return nm(this,r,e)}return e}function Sv(r){r.stateProxy=Hi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Hi),e&&(e.stateProxy=Hi)}function su(r,t){!Tv(r,t)&&!r.__highByOuter&&kt(r,yv)}function lu(r,t){!Tv(r,t)&&!r.__highByOuter&&kt(r,_v)}function Vn(r,t){r.__highByOuter|=1<<(t||0),kt(r,yv)}function Fn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&kt(r,_v)}function om(r){kt(r,Ws)}function wv(r){kt(r,xv)}function bv(r){kt(r,em)}function Av(r){kt(r,tm)}function Tv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Cv(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=zs(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){xv(u)}),s&&e.push(i)),o.isBlured=!1}),b(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Yo(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&wv(h)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!h||t==="series"&&c)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Ws(g)}),ni(t))i(u.getData(),t);else if(Y(t))for(var d=Xe(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),zs(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var f=a.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,n)}})}}function $o(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){zs(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Ws(i)})}}}function sm(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(!n){ke("Unknown dataType "+t.dataType);return}var i=cr(n,t);i=(G(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=K(o);Yo(a,u.focus,u.blurScope,e)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);c!=null&&Yo(a,c,f,e)}}function Us(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Nr(s[u])||ke("param should be highDownDispatcher"),K(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function lm(r,t,e){Nr(r)||ke("param should be highDownDispatcher");var a=K(r),n=Us(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&$o(a.componentMainType,a.componentIndex,e),b(i,function(s){return su(s,t)})):(Yo(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&$o(a.componentMainType,a.componentIndex,e),su(r,t))}function um(r,t,e){Nr(r)||ke("param should be highDownDispatcher"),Cv(e);var a=K(r),n=Us(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?b(n,function(i){return lu(i,t)}):lu(r,t)}function cm(r,t,e){if(Xo(t)){var a=t.dataType,n=r.getData(a),i=cr(n,t);G(i)||(i=[i]),r[t.type===ga?"toggleSelect":t.type===pa?"select":"unselect"](i,a)}}function uu(r){var t=r.getAllData();b(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?bv(i):Av(i)})})}function fm(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();b(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function zn(r,t,e){Dv(r,!0),kt(r,Sv),hm(r,t,e)}function vm(r){Dv(r,!1)}function fr(r,t,e,a){a?vm(r):zn(r,t,e)}function hm(r,t,e){var a=K(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var cu=["emphasis","blur","select"],dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vr(r,t,e,a){e=e||"itemStyle";for(var n=0;n<cu.length;n++){var i=cu[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[dm[e]]()}}function Dv(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Nr(r){return!!(r&&r.__highDownDispatcher)}function pm(r){var t=iu[r];return t==null&&nu<=32&&(t=iu[r]=nu++),t}function Xo(r){var t=r.type;return t===pa||t===An||t===ga}function fu(r){var t=r.type;return t===or||t===bn}function gm(r){var t=mv(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Mv=ie();function vi(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;a?(u=ae(a.duration,200),c=ae(a.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),$(f)&&(f=f(e,n)),$(u)&&(u=u(e));var h={duration:u||0,delay:f,easing:c};return h}else return null}function Ys(r,t,e,a,n,i,o){var s=!1,l;$(n)?(o=i,i=n,n=null):Y(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=vi(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,v=c.easing,d={duration:f,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function ce(r,t,e,a,n,i){Ys("update",r,t,e,a,n,i)}function be(r,t,e,a,n,i){Ys("enter",r,t,e,a,n,i)}function Ir(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function hr(r,t,e,a,n,i){Ir(r)||Ys("leave",r,t,e,a,n,i)}function vu(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),hr(r,{style:{opacity:0}},t,e,a)}function Hn(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||vu(n,t,e,a)}):vu(r,t,e,a)}function $s(r){Mv(r).oldStyle=r.style}function mm(r){return Mv(r).oldStyle}var Wn=Math.max,Un=Math.min,Zo={};function Iv(r){return Ae.extend(r)}var ym=Np;function Lv(r,t){return ym(r,t)}function ot(r,t){Zo[r]=t}function Pv(r){if(Zo.hasOwnProperty(r))return Zo[r]}function hi(r,t,e,a){var n=Ep(r,t);return e&&(a==="center"&&(e=kv(e,n.getBoundingRect())),Zs(n,e)),n}function Xs(r,t,e){var a=new gr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(kv(t,i))}}});return a}function kv(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var gt=Rp;function Zs(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function Ca(r,t){return Op(r,r,{lineWidth:t}),r}function _m(r){return Bp(r.shape,r.shape,r.style),r}var xm=Gp;function Ev(r,t){for(var e=Cs([]);r&&r!==t;)Rn(e,r.getLocalTransform(),e),r=r.parent;return e}function di(r,t,e){return t&&!ni(t)&&(t=Mr.getLocalTransform(t)),e&&(t=Oa([],t)),rt([],r,t)}function Sm(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=di(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function hu(r){return!r.isGroup}function wm(r){return r.shape!=null}function qs(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){hu(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wm(o)&&(s.shape=V({},o.shape)),s}var i=a(r);t.traverse(function(o){if(hu(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),ce(o,l,e,K(o).dataIndex)}}})}function Rv(r,t){return U(r,function(e){var a=e[0];a=Wn(a,t.x),a=Un(a,t.x+t.width);var n=e[1];return n=Wn(n,t.y),n=Un(n,t.y+t.height),[a,n]})}function Nv(r,t){var e=Wn(r.x,t.x),a=Un(r.x+r.width,t.x+t.width),n=Wn(r.y,t.y),i=Un(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function pi(r,t,e){var a=V({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),j(n,e),new gr(a)):hi(r.replace("path://",""),a,e,"center")}function bm(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(Ov(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ov(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,f=s-i,h=Wi(c,f,l,u);if(Am(h))return!1;var v=r-n,d=t-i,p=Wi(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Wi(v,d,c,f)/h;return!(g<0||g>1)}function Wi(r,t,e,a){return r*a-e*t}function Am(r){return r<=1e-6&&r>=-1e-6}function Ks(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=H(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&b(Xe(l),function(c){Er(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=K(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:j({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function du(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function gi(r,t){if(r)if(G(r))for(var e=0;e<r.length;e++)du(r[e],t);else du(r,t)}ot("circle",Ra);ot("ellipse",Ds);ot("sector",tt);ot("ring",ii);ot("polygon",Ms);ot("polyline",Na);ot("rect",De);ot("line",ze);ot("bezierCurve",oi);ot("arc",si);const js=Object.freeze(Object.defineProperty({__proto__:null,Arc:si,BezierCurve:oi,BoundingRect:Pe,Circle:Ra,CompoundPath:qf,Ellipse:Ds,Group:Se,Image:gr,IncrementalDisplayable:Kf,Line:ze,LinearGradient:Is,OrientedBoundingRect:Nn,Path:Ae,Point:we,Polygon:Ms,Polyline:Na,RadialGradient:jf,Rect:De,Ring:ii,Sector:tt,Text:ge,applyTransform:di,clipPointsByRect:Rv,clipRectByRect:Nv,createIcon:pi,extendPath:Lv,extendShape:Iv,getShapeClass:Pv,getTransform:Ev,groupTransition:qs,initProps:be,isElementRemoved:Ir,lineLineIntersect:Ov,linePolygonIntersect:bm,makeImage:Xs,makePath:hi,mergePath:gt,registerShape:ot,removeElement:hr,removeElementWithFadeOut:Hn,resizePath:Zs,setTooltipConfig:Ks,subPixelOptimize:xm,subPixelOptimizeLine:Ca,subPixelOptimizeRect:_m,transformDirection:Sm,traverseElements:gi,updateProps:ce},Symbol.toStringTag,{value:"Module"}));var mi={};function Bv(r,t){for(var e=0;e<nt.length;e++){var a=nt[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function qo(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=$(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<nt.length;u++){var c=nt[u],f=t[c];l[c]=ae(a?a.getFormattedLabel(n,c,null,i,f&&f.get("formatter")):null,s)}return l}function Wa(r,t,e,a){e=e||mi;for(var n=r instanceof ge,i=!1,o=0;o<Gn.length;o++){var s=t[Gn[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new ge,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=qo(e,t),c=t.normal,f=!!c.getShallow("show"),h=Qe(c,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(pu(c,e,!1));for(var o=0;o<nt.length;o++){var v=nt[o],s=t[v];if(s){var d=l.ensureState(v),p=!!ae(s.getShallow("show"),f);if(p!==f&&(d.ignore=!p),d.style=Qe(s,a&&a[v],e,!0,!n),d.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=pu(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),e.enableTextSetter&&(Fr(l).setLabelText=function(m){var y=qo(e,t,m);Bv(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Ua(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<nt.length;a++){var n=nt[a];e[n]=r.getModel([n,t])}return e}function Qe(r,t,e,a,n){var i={};return Tm(i,r,e,a,n),t&&V(i,t),i}function pu(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=ae(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function Tm(r,t,e,a,n){e=e||mi;var i=t.ecModel,o=i&&i.option.textStyle,s=Cm(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);_u(l[u]={},c,o,e,a,n,!1,!0)}}l&&(r.rich=l);var f=t.get("overflow");f&&(r.overflow=f);var h=t.get("minMargin");h!=null&&(r.margin=h),_u(r,t,o,e,a,n,!0,!1)}function Cm(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||mi).rich;if(e){t=t||{};for(var a=Xe(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var gu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],mu=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],yu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _u(r,t,e,a,n,i,o,s){e=!n&&e||mi;var l=a&&a.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ae(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(u==="auto"&&_e("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(c==="auto"&&_e("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var h=ae(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(r.lineWidth=h);var v=ae(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=ae(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&f==null&&!s&&(f=a&&a.defaultOpacity),f!=null&&(r.opacity=f),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<gu.length;p++){var g=gu[p],m=ae(t.getShallow(g),e[g]);m!=null&&(r[g]=m)}for(var p=0;p<mu.length;p++){var g=mu[p],m=t.getShallow(g);m!=null&&(r[g]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!a.disableBox){for(var p=0;p<yu.length;p++){var g=yu[p],m=t.getShallow(g);m!=null&&(r[g]=m)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor==="auto"&&_e("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor==="auto"&&_e("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=l)}}function Dm(r,t){var e=t&&t.getModel("textStyle");return Ba([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Fr=ie();function Gv(r,t,e,a){if(r){var n=Fr(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function Vv(r,t,e,a,n){var i=Fr(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ae(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=dv(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var h=qo({labelDataIndex:t,labelFetcher:n,defaultText:o?o(f):f+""},i.statesModels,f);Bv(r,h)}r.percent=0,(i.prevValue==null?be:ce)(r,{percent:1},a,t,null,u)}var Mm=["textStyle","color"],Ui=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Yi=new ge,Im=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Mm):null)},r.prototype.getFont=function(){return Dm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Ui.length;a++)e[Ui[a]]=this.getShallow(Ui[a]);return Yi.useStyle(e),Yi.update(),Yi.getBoundingRect()},r}();const Lm=Im;var Fv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Pm=Ta(Fv),km=function(){function r(){}return r.prototype.getLineStyle=function(t){return Pm(this,t)},r}(),zv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Em=Ta(zv),Rm=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return Em(this,t,e)},r}(),mr=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){se(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ee(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!le.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();Fs(mr);$g(mr);St(mr,km);St(mr,Rm);St(mr,jg);St(mr,Lm);const me=mr;var Nm=Math.round(Math.random()*10);function yi(r){return[r||"",Nm++].join("_")}function Om(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=_t(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=_t(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function Bm(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,f=u.noEntryList,h={};for(b(i,function(y){h[y]=!0});f.length;){var v=f.pop(),d=c[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),b(d.successor,p?m:g)}b(h,function(){var y="";throw y=Bn("Circular dependency may exists: ",h,i,o),new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){h[y]=!0,g(y)}};function e(i){var o={},s=[];return b(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),f=n(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),b(f,function(h){ye(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);ye(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return b(i,function(l){ye(o,l)>=0&&s.push(l)}),s}}function Hv(r,t){return se(se({},r,!0),t,!0)}const Gm={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Vm={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Yn="ZH",Js="EN",Lr=Js,Tn={},Qs={},Wv=le.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Lr).toUpperCase();return r.indexOf(Yn)>-1?Yn:Lr}():Lr;function el(r,t){r=r.toUpperCase(),Qs[r]=new me(t),Tn[r]=t}function Fm(r){if(H(r)){var t=Tn[r.toUpperCase()]||{};return r===Yn||r===Js?ee(t):se(ee(t),ee(Tn[Lr]),!1)}else return se(ee(r),ee(Tn[Lr]),!1)}function zm(r){return Qs[r]}function Hm(){return Qs[Lr]}el(Js,Gm);el(Yn,Vm);var tl=1e3,rl=tl*60,ma=rl*60,Je=ma*24,xu=Je*365,ua={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ja="{yyyy}-{MM}-{dd}",Su={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ja,hour:Ja+" "+ua.hour,minute:Ja+" "+ua.minute,second:Ja+" "+ua.second,millisecond:ua.none},$i=["year","month","day","hour","minute","second","millisecond"],Uv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ne(r,t){return r+="","0000".substr(0,t-r.length)+r}function Pr(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Wm(r){return r===Pr(r)}function Um(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ya(r,t,e,a){var n=at(r),i=n[al(e)](),o=n[kr(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[_i(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[Da(e)](),f=(c-1)%12+1,h=n[xi(e)](),v=n[Si(e)](),d=n[wi(e)](),p=c>=12?"pm":"am",g=p.toUpperCase(),m=a instanceof me?a:zm(a||Wv)||Hm(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ne(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ne(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ne(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ne(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ne(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ne(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ne(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ne(d,3)).replace(/{S}/g,d+"")}function Ym(r,t,e,a,n){var i=null;if(H(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=V({},ua);if(r.level>0)for(var s=0;s<$i.length;++s)o[$i[s]]="{primary|"+o[$i[s]]+"}";var l=e?e.inherit===!1?e:j(e,o):o,u=Yv(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=Uv.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(G(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return Ya(new Date(r.value),i,n,a)}function Yv(r,t){var e=at(r),a=e[kr(t)]()+1,n=e[_i(t)](),i=e[Da(t)](),o=e[xi(t)](),s=e[Si(t)](),l=e[wi(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function wu(r,t,e){var a=ue(r)?at(r):r;switch(t=t||Yv(r,e),t){case"year":return a[al(e)]();case"half-year":return a[kr(e)]()>=6?1:0;case"quarter":return Math.floor((a[kr(e)]()+1)/4);case"month":return a[kr(e)]();case"day":return a[_i(e)]();case"half-day":return a[Da(e)]()/24;case"hour":return a[Da(e)]();case"minute":return a[xi(e)]();case"second":return a[Si(e)]();case"millisecond":return a[wi(e)]()}}function al(r){return r?"getUTCFullYear":"getFullYear"}function kr(r){return r?"getUTCMonth":"getMonth"}function _i(r){return r?"getUTCDate":"getDate"}function Da(r){return r?"getUTCHours":"getHours"}function xi(r){return r?"getUTCMinutes":"getMinutes"}function Si(r){return r?"getUTCSeconds":"getSeconds"}function wi(r){return r?"getUTCMilliseconds":"getMilliseconds"}function $m(r){return r?"setUTCFullYear":"setFullYear"}function $v(r){return r?"setUTCMonth":"setMonth"}function Xv(r){return r?"setUTCDate":"setDate"}function Zv(r){return r?"setUTCHours":"setHours"}function qv(r){return r?"setUTCMinutes":"setMinutes"}function Kv(r){return r?"setUTCSeconds":"setSeconds"}function jv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Xm(r,t,e,a,n,i,o,s){var l=new ge({style:{text:r,font:t,align:e,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function nl(r){if(!Bs(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function il(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var $a=Vp;function Ko(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Ba(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?at(r):r;if(isNaN(+l)){if(s)return"-"}else return Ya(l,a,e)}if(t==="ordinal")return En(r)?n(r):ue(r)&&i(r)?r+"":"-";var u=Aa(r);return i(u)?nl(u):En(r)?n(r):typeof r=="boolean"?r+"":"-"}var bu=["a","b","c","d","e","f","g"],Xi=function(r,t){return"{"+r+(t??"")+"}"};function ol(r,t,e){G(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=bu[i];r=r.replace(Xi(o),Xi(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Xi(bu[l],s),e?Ve(u):u)}return r}function Jv(r,t){var e=H(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ve(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ve(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Zm(r,t,e){_e("echarts.format.formatTime","echarts.time.format"),(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
|
||
yyyy`);var a=at(t),n=e?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),c=a[n+"Seconds"](),f=a[n+"Milliseconds"]();return r=r.replace("MM",Ne(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ne(i%100+"",2)).replace("dd",Ne(s,2)).replace("d",s).replace("hh",Ne(l,2)).replace("h",l).replace("mm",Ne(u,2)).replace("m",u).replace("ss",Ne(c,2)).replace("s",c).replace("SSS",Ne(f,3)),r}function qm(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function dr(r,t){return t=t||"transparent",H(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var Cn=b,Km=["left","right","top","bottom","width","height"],Qa=[["width","left","right"],["height","top","bottom"]];function sl(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var ya=sl;oe(sl,"vertical");oe(sl,"horizontal");function pr(r,t,e){e=$a(e||0);var a=t.width,n=t.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n),u=W(r.width,a),c=W(r.height,n),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new Pe(i+e[3],o+e[0],u,c);return d.margin=e,d}function Ma(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Or(r,t,e){var a=e&&e.ignoreSize;!G(a)&&(a=[a,a]);var n=o(Qa[0],0),i=o(Qa[1],1);u(Qa[0],r,n),u(Qa[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(Cn(c,function(_){d[_]=r[_]}),Cn(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),a[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m<c.length;m++){var y=c[m];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){Cn(c,function(v){f[v]=h[v]})}}function bi(r){return jm({},r)}function jm(r,t){return t&&r&&Cn(Km,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Jm=ie(),zr=function(r){F(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=yi("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Ma(this),i=n?bi(e):{},o=a.getTheme();se(e,o.get(this.mainType)),se(e,this.getDefaultOption()),n&&Or(e,i,n)},t.prototype.mergeOption=function(e,a){se(this.option,e,!0);var n=Ma(this);n&&Or(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Wg(e))return e.defaultOption;var a=Jm(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=se(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return za(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(me);gv(zr,me);ui(zr);Om(zr);Bm(zr,Qm);function Qm(r){var t=[];return b(zr.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return _t(e).main}),r!=="dataset"&&ye(t,"dataset")<=0&&t.unshift("dataset"),t}const te=zr;var Qv="";typeof navigator<"u"&&(Qv=navigator.platform||"");var xr="rgba(0, 0, 0, 0.2)";const ey={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qv.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};var jo=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),st="original",We="arrayRows",dt="objectRows",wt="keyedColumns",Dt="typedArray",eh="unknown",Mt="column",Hr="row",Me={Must:1,Might:2,Not:3},th=ie();function ty(r){th(r).datasetMap=Z()}function ry(r,t,e){var a={},n=ll(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=th(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,f;r=r.slice(),b(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=d(m)),a[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});b(r,function(p,g){var m=p.name,y=d(p);if(c==null){var _=h.valueWayDim;v(a[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(c===g)v(a[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(a[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function ay(r,t,e){var a={},n=ll(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===dt||i===wt)&&b(o,function(c,f){(Y(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=ah(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var g=p===Me.Not;if(g&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v||!g&&h[c.n]===Me.Not)&&(c.n=v),m(c)&&h[c.n]!==Me.Not)return c;g||(p===Me.Might&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v)&&(f.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function ll(r){var t=r.get("data",!0);if(!t)return za(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ye).models[0]}function ny(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:za(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ye).models}function rh(r,t){return ah(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function ah(r,t,e,a,n,i){var o,s=5;if(He(r))return Me.Not;var l,u;if(a){var c=a[i];Y(c)?(l=c.name,u=c.type):H(c)&&(l=c)}if(u!=null)return u==="ordinal"?Me.Must:Me.Not;if(t===We){var f=r;if(e===Hr){for(var h=f[i],v=0;v<(h||[]).length&&v<s;v++)if((o=x(h[n+v]))!=null)return o}else for(var v=0;v<f.length&&v<s;v++){var d=f[n+v];if(d&&(o=x(d[i]))!=null)return o}}else if(t===dt){var p=r;if(!l)return Me.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=x(g[l]))!=null)return o}}else if(t===wt){var m=r;if(!l)return Me.Not;var h=m[l];if(!h||He(h))return Me.Not;for(var v=0;v<h.length&&v<s;v++)if((o=x(h[v]))!=null)return o}else if(t===st)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],_=Fa(g);if(!G(_))return Me.Not;if((o=x(_[i]))!=null)return o}function x(S){var w=H(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return w?Me.Might:Me.Not;if(w&&S!=="-")return Me.Must}return Me.Not}var iy=Z();function oy(r,t,e){var a=iy.get(t);if(!a)return e;var n=a(r);if(!n)return e;for(var i=0;i<n.length;i++)q(Rr(n[i]));return e.concat(n)}var Au=ie();ie();var ul=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=xe(this.get("color",!0)),i=this.get("colorLayer",!0);return ly(this,Au,n,i,t,e,a)},r.prototype.clearColorPalette=function(){uy(this,Au)},r}();function sy(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function ly(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:sy(a,o);if(c=c||e,!(!c||!c.length)){var f=c[l];return n&&(u[n]=f),s.paletteIdx=(l+1)%c.length,f}}function uy(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var en,Zr,Tu,Zi="\0_ec_inner",Cu=1,cy={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},fy={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},$n={};function vy(r){b(r,function(t,e){if(!te.hasClass(e)){var a=cy[e];a&&!$n[a]&&(ke("Component "+e+` is used but not imported.
|
||
import { `+a+` } from 'echarts/components';
|
||
echarts.use([`+a+"]);"),$n[a]=!0)}})}var nh=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new me(i),this._locale=new me(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){q(e!=null,"option is null/undefined"),q(e[Zi]!==Cu,"please use chart.getOption()");var i=Iu(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Iu(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");vy(o),!this.option||e==="recreate"?Tu(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;ty(this),b(e,function(f,h){f!=null&&(te.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?ee(f):se(n[h],f,!0))}),u&&u.each(function(f,h){te.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),c,this);function c(f){var h=oy(this,f,xe(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Ig(v,h,d);Og(p,f,te),n[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_,x;b(p,function(S,w){var A=S.existing,T=S.newOption;if(!T)A&&(A.mergeOption({},this),A.optionUpdated({},!1));else{var M=f==="series",C=te.getClass(f,S.keyInfo.subType,!M);if(!C){{var D=S.keyInfo.subType,I=fy[D];$n[D]||($n[D]=!0,ke(I?"Series "+D+` is used but not imported.
|
||
import { `+I+` } from 'echarts/charts';
|
||
echarts.use([`+I+"]);":"Unknown series "+D))}return}if(f==="tooltip"){if(_){x||(Ce("Currently only one tooltip component is allowed."),x=!0);return}_=!0}if(A&&A.constructor===C)A.name=S.keyInfo.name,A.mergeOption(T,this),A.optionUpdated(T,!1);else{var L=V({componentIndex:w},S.keyInfo);A=new C(T,this,this,L),V(A,L),S.brandNew&&(A.__requireNewView=!0),A.init(T,this,this),A.optionUpdated(null,!0)}}A?(g.push(A.option),m.push(A),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,i.set(f,m),o.set(f,y),f==="series"&&en(this)}this._seriesIndices||en(this)},t.prototype.getOption=function(){var e=ee(this.option);return b(e,function(a,n){if(te.hasClass(n)){for(var i=xe(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Rr(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Zi],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(xe(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Du("id",i,s):o!=null?l=Du("name",o,s):l=pe(s,function(u){return!!u}),Mu(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):pe(this._componentsMap.get(n),function(u){return!!u});return l(Mu(o,e));function s(u){var c=n+"Index",f=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[f],name:u[h]}:null}function l(u){return e.filter?pe(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if($(e)){var o=a,s=e;i.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=H(e)?i.get(e):Y(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=vt(e,null);return pe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return pe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return pe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Zr(this),b(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){b(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Zr(this),b(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return b(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Zr(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Zr(this);var n=[];b(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Z(n)},t.prototype.restoreData=function(e){en(this);var a=this._componentsMap,n=[];a.each(function(i,o){te.hasClass(o)&&n.push(o)}),te.topologicalTravel(n,te.getAllClassMainTypes(),function(i){b(a.get(i),function(o){o&&(i!=="series"||!hy(o,e))&&o.restoreData()})})},t.internalField=function(){en=function(e){var a=e._seriesIndices=[];b(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=Z(a)},Zr=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},Tu=function(e,a){e.option={},e.option[Zi]=Cu,e._componentsMap=Z({series:[]}),e._componentsCount=Z();var n=a.aria;Y(n)&&n.enabled==null&&(n.enabled=!0),dy(a,e._theme.option),se(a,ey,!1),e._mergeOption(a,null)}}(),t}(me);function hy(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function dy(r,t){var e=r.color&&!r.colorLayer;b(t,function(a,n){n==="colorLayer"&&e||te.hasClass(n)||(typeof a=="object"?r[n]=r[n]?se(r[n],a,!1):ee(a):r[n]==null&&(r[n]=a))})}function Du(r,t,e){if(G(t)){var a=Z();return b(t,function(i){if(i!=null){var o=vt(i,null);o!=null&&a.set(i,!0)}}),pe(e,function(i){return i&&a.get(i[r])})}else{var n=vt(t,null);return pe(e,function(i){return i&&n!=null&&i[r]===n})}}function Mu(r,t){return t.hasOwnProperty("subType")?pe(r,function(e){return e&&e.subType===t.subType}):r}function Iu(r){var t=Z();return r&&b(xe(r.replaceMerge),function(e){q(te.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}St(nh,ul);const ih=nh;var py=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gy=function(){function r(t){b(py,function(e){this[e]=Q(t[e],t)},this)}return r}();const oh=gy;var qi={},my=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];b(qi,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){b(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){qi[t]=e},r.get=function(t){return qi[t]},r}();const Ai=my;var yy=/^(min|max)?(.+)$/,_y=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(b(xe(t.series),function(o){o&&o.data&&He(o.data)&&Go(o.data)}),b(xe(t.dataset),function(o){o&&o.source&&He(o.source)&&Go(o.source)})),t=ee(t);var n=this._optionBackup,i=xy(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ee(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=ee(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)Sy(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!by(o,this._currentMediaIndices)&&(s=U(o,function(c){return ee(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function xy(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(r.options=r.media=null),i=r),c&&(G(u)?b(u,function(v){v&&!v.option&&Y(v.query)&&Y(v.query.option)&&ke("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?a.push(v):n||(n=v))}):ke("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),h(i),b(l,function(v){return h(v)}),b(a,function(v){return h(v.option)});function h(v){b(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function Sy(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return b(r,function(i,o){var s=o.match(yy);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wy(a[u],i,l)||(n=!1)}}),n}function wy(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function by(r,t){return r.join(",")===t.join(",")}const Ay=_y;var Ze=b,Ia=Y,Lu=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ki(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=Lu.length;e<a;e++){var n=Lu[e],i=t.normal,o=t.emphasis;i&&i[n]&&(_e("itemStyle.normal."+n,n),r[n]=r[n]||{},r[n].normal?se(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(_e("itemStyle.emphasis."+n,"emphasis."+n),r[n]=r[n]||{},r[n].emphasis?se(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Le(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(ht("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(r[t].normal=r[t].emphasis=null,j(r[t],a)):r[t]=a),n&&(ht(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function ca(r){Le(r,"itemStyle"),Le(r,"lineStyle"),Le(r,"areaStyle"),Le(r,"label"),Le(r,"labelLine"),Le(r,"upperLabel"),Le(r,"edgeLabel")}function de(r,t){var e=Ia(r)&&r[t],a=Ia(e)&&e.textStyle;if(a){ht("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var n=0,i=tu.length;n<i;n++){var o=tu[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}}function je(r){r&&(ca(r),de(r,"label"),r.emphasis&&de(r.emphasis,"label"))}function Ty(r){if(Ia(r)){Ki(r),ca(r),de(r,"label"),de(r,"upperLabel"),de(r,"edgeLabel"),r.emphasis&&(de(r.emphasis,"label"),de(r.emphasis,"upperLabel"),de(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Ki(t),je(t));var e=r.markLine;e&&(Ki(e),je(e));var a=r.markArea;a&&je(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!He(i))for(var o=0;o<i.length;o++)je(i[o]);b(r.categories,function(u){ca(u)})}if(n&&!He(n))for(var o=0;o<n.length;o++)je(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)je(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)G(l[o])?(je(l[o][0]),je(l[o][1])):je(l[o]);r.type==="gauge"?(de(r,"axisLabel"),de(r,"title"),de(r,"detail")):r.type==="treemap"?(Le(r.breadcrumb,"itemStyle"),b(r.levels,function(u){ca(u)})):r.type==="tree"&&ca(r.leaves)}}function At(r){return G(r)?r:r?[r]:[]}function Pu(r){return(G(r)?r[0]:r)||{}}function Cy(r,t){Ze(At(r.series),function(a){Ia(a)&&Ty(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ze(e,function(a){Ze(At(r[a]),function(n){n&&(de(n,"axisLabel"),de(n.axisPointer,"label"))})}),Ze(At(r.parallel),function(a){var n=a&&a.parallelAxisDefault;de(n,"axisLabel"),de(n&&n.axisPointer,"label")}),Ze(At(r.calendar),function(a){Le(a,"itemStyle"),de(a,"dayLabel"),de(a,"monthLabel"),de(a,"yearLabel")}),Ze(At(r.radar),function(a){de(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name,ht("name property in radar component has been changed to axisName")),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap,ht("nameGap property in radar component has been changed to axisNameGap")),Ze(a.indicator,function(n){n.text&&_e("text","name","radar.indicator")})}),Ze(At(r.geo),function(a){Ia(a)&&(je(a),Ze(At(a.regions),function(n){je(n)}))}),Ze(At(r.timeline),function(a){je(a),Le(a,"label"),Le(a,"itemStyle"),Le(a,"controlStyle",!0);var n=a.data;G(n)&&b(n,function(i){Y(i)&&(Le(i,"label"),Le(i,"itemStyle"))})}),Ze(At(r.toolbox),function(a){Le(a,"iconStyle"),Ze(a.feature,function(n){Le(n,"iconStyle")})}),de(Pu(r.axisPointer),"label"),de(Pu(r.tooltip).axisPointer,"label")}function Dy(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function My(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];(a||i[n[s]]==null)&&(i[n[s]]=e)}function ku(r){r&&b(Iy,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var Iy=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ly=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ji=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function qr(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<ji.length;e++){var a=ji[e][1],n=ji[e][0];t[a]!=null&&(t[n]=t[a],_e(a,n))}}function Eu(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(_e("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function Ru(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,_e("downplay","blur","sunburst"))}function Py(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(_e("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function sh(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&sh(r[e].children,t)}function lh(r,t){Cy(r,t),r.series=xe(r.series),b(r.series,function(e){if(Y(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,_e("clipOverflow","clip","line"));else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,_e("clockWise","clockwise")),Eu(e.label);var n=e.data;if(n&&!He(n))for(var i=0;i<n.length;i++)Eu(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(_e("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=Dy(e,"pointer.color");o!=null&&My(e,"itemStyle.color",o)}else if(a==="bar"){qr(e),qr(e.backgroundStyle),qr(e.emphasis);var n=e.data;if(n&&!He(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(qr(n[i]),qr(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,_e("highlightPolicy","emphasis.focus","sunburst"))),Ru(e),sh(e.data,Ru)}else a==="graph"||a==="sankey"?Py(e):a==="map"&&(e.mapType&&!e.map&&(_e("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(ht("`mapLocation` is not used anymore."),j(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(_e("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),ku(e)}}),r.dataRange&&(r.visualMap=r.dataRange),b(Ly,function(e){var a=r[e];a&&(G(a)||(a=[a]),b(a,function(n){ku(n)}))})}function ky(r){var t=Z();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(Ey)}function Ey(r){b(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var h=o.get(t.stackedDimension,f);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(f):v=o.get(t.stackedByDimension,f);for(var p=NaN,g=e-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=_g(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var Ti=function(){function r(t){this.data=t.data||(t.sourceFormat===wt?{}:[]),this.sourceFormat=t.sourceFormat||eh,this.seriesLayoutBy=t.seriesLayoutBy||Mt,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&rh(this,a)===Me.Must&&(n.type="ordinal")}}return r}();function cl(r){return r instanceof Ti}function Jo(r,t,e){e=e||uh(r);var a=t.seriesLayoutBy,n=Ny(r,e,a,t.sourceHeader,t.dimensions),i=new Ti({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ee(t)});return i}function fl(r){return new Ti({data:r,sourceFormat:He(r)?Dt:st})}function Ry(r){return new Ti({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ee(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function uh(r){var t=eh;if(He(r))t=Dt;else if(G(r)){r.length===0&&(t=We);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(G(n)||He(n)){t=We;break}else if(Y(n)){t=dt;break}}}}else if(Y(r)){for(var i in r)if(Er(r,i)&&ni(r[i])){t=wt;break}}return t}function Ny(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Nu(n),startIndex:o,dimensionsDetectedCount:i};if(t===We){var s=r;a==="auto"||a==null?Ou(function(u){u!=null&&u!=="-"&&(H(u)?o==null&&(o=1):o=0)},e,s,10):o=ue(a)?a:a?1:0,!n&&o===1&&(n=[],Ou(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Hr?s.length:s[0]?s[0].length:null}else if(t===dt)n||(n=Oy(r));else if(t===wt)n||(n=[],b(r,function(u,c){n.push(c)}));else if(t===st){var l=Fa(r[0]);i=G(l)&&l.length||1}else t===Dt&&q(!!n,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Nu(n),dimensionsDetectedCount:i}}function Oy(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Xe(e)}function Nu(r){if(r){var t=Z();return U(r,function(e,a){e=Y(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Ou(r,t,e,a){if(t===Hr)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function ch(r){var t=r.sourceFormat;return t===dt||t===wt}var Qt,er,tr,Bu,Gu,fh=function(){function r(t,e){var a=cl(t)?t:fl(t);this._source=a;var n=this._data=a.data;if(a.sourceFormat===Dt){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=n}Gu(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Gu=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,v=Bu[vl(u,c)];if(q(v,"Invalide sourceFormat: "+u),V(o,v),u===Dt)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=vh(u,c);o.getItem=Q(d,null,s,f,h);var p=hh(u,c);o.count=Q(p,null,s,f,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},a=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=l[h],y=0;y<g;y++){var _=c[y*f+h];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Bu=(t={},t[We+"_"+Mt]={pure:!0,appendData:i},t[We+"_"+Hr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[dt]={pure:!0,appendData:i},t[wt]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[st]={appendData:i},t[Dt]={persistent:!1,pure:!0,appendData:function(o){q(He(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Vu=function(r,t,e,a){return r[a]},By=(Qt={},Qt[We+"_"+Mt]=function(r,t,e,a){return r[a+t]},Qt[We+"_"+Hr]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Qt[dt]=Vu,Qt[wt]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name;if(s==null)throw new Error;var l=r[s];i[o]=l?l[a]:null}return i},Qt[st]=Vu,Qt);function vh(r,t){var e=By[vl(r,t)];return q(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var Fu=function(r,t,e){return r.length},Gy=(er={},er[We+"_"+Mt]=function(r,t,e){return Math.max(0,r.length-t)},er[We+"_"+Hr]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},er[dt]=Fu,er[wt]=function(r,t,e){var a=e[0].name;if(a==null)throw new Error;var n=r[a];return n?n.length:0},er[st]=Fu,er);function hh(r,t){var e=Gy[vl(r,t)];return q(e,'Do not support count on "'+r+'", "'+t+'".'),e}var Ji=function(r,t,e){return r[t]},Vy=(tr={},tr[We]=Ji,tr[dt]=function(r,t,e){return r[e]},tr[wt]=Ji,tr[st]=function(r,t,e){var a=Fa(r);return a instanceof Array?a[t]:a},tr[Dt]=Ji,tr);function dh(r){var t=Vy[r];return q(t,'Do not support get value on "'+r+'".'),t}function vl(r,t){return r===We?r+"_"+t:r}function Br(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return dh(i)(a,o,s)}else{var l=a;return i===st&&(l=Fa(a)),l}}}}var Fy=/\{@(.+?)\}/g,zy=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",v=a.userOutput&&a.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:c,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&G(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if($(i))return l.status=e,l.dimensionIndex=n,i(l);if(H(i)){var c=ol(i,l);return c.replace(Fy,function(f,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),isNaN(d)&&ke("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var p=Br(s,t,d);if(o&&G(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Br(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function zu(r){var t,e;return Y(r)?r.type?e=r:console.warn("The return type of `formatTooltip` is not supported: "+Bn(r)):t=r,{text:t,frag:e}}function _a(r){return new Hy(r)}var Hy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?(q(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(q(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(f||v<d)){var p=this._progress;if(G(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;q(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){Hu.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Hu.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),G(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){q(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Hu=function(){var r,t,e,a,n,i={reset:function(l,u,c,f){t=l,r=u,e=c,a=f,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Dn(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ue(r)&&r!=null&&r!=="-"&&(r=+at(r)),r==null||r===""?NaN:Number(r))}Z({number:function(r){return parseFloat(r)},time:function(r){return+at(r)},trim:function(r){return H(r)?Ba(r):r}});var Wy=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=ue(t)?t:Aa(t),n=ue(e)?e:Aa(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=H(t),l=H(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),Uy=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Dn(t,e)},r}();function Yy(r,t){var e=new Uy,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Mt&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',Fe(o));var s=[],l={},u=r.dimensionsDefine;if(u)b(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Er(l,m)&&(_='dimension name "'+m+'" duplicated.',Fe(_)),l[m]=y}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=vh(n,Mt);t.__isBuiltIn&&(e.getRawDataItem=function(p){return f(a,i,s,p)},e.getRawData=Q($y,null,r)),e.cloneRawData=Q(Xy,null,r);var h=hh(n,Mt);e.count=Q(h,null,a,i,s);var v=dh(n);e.retrieveValue=function(p,g){var m=f(a,i,s,p);return d(m,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return e.getDimensionInfo=Q(Zy,null,s,l),e.cloneAllDimensionInfo=Q(qy,null,s),e}function $y(r){var t=r.sourceFormat;if(!hl(t)){var e="";e="`getRawData` is not supported in source format "+t,Fe(e)}return r.data}function Xy(r){var t=r.sourceFormat,e=r.data;if(!hl(t)){var a="";a="`cloneRawData` is not supported in source format "+t,Fe(a)}if(t===We){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===dt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(V({},e[i]));return n}}function Zy(r,t,e){if(e!=null){if(ue(e)||!isNaN(e)&&!Er(t,e))return r[e];if(Er(t,e))return t[e]}}function qy(r){return ee(r)}var ph=Z();function Ky(r){r=ee(r);var t=r.type,e="";t||(e="Must have a `type` when `registerTransform`.",Fe(e));var a=t.split(":");a.length!==2&&(e='Name must include namespace like "ns:regression".',Fe(e));var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,ph.set(t,r)}function jy(r,t,e){var a=xe(r),n=a.length,i="";n||(i="If `transform` declared, it should at least contain one transform.",Fe(i));for(var o=0,s=n;o<s;o++){var l=a[o];t=Jy(l,t,e,n===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Jy(r,t,e,a){var n="";t.length||(n="Must have at least one upstream dataset.",Fe(n)),Y(r)||(n="transform declaration must be an object rather than "+typeof r+".",Fe(n));var i=r.type,o=ph.get(i);o||(n='Can not find transform on type "'+i+'".',Fe(n));var s=U(t,function(c){return Yy(c,o)}),l=xe(o.transform({upstream:s[0],upstreamList:s,config:ee(r.config)}));if(r.print){var u=U(l,function(c){var f=a!=null?" === pipe index: "+a:"";return["=== dataset index: "+e.datasetIndex+f+" ===","- transform result data:",Bn(c.data),"- transform result dimensions:",Bn(c.dimensions)].join(`
|
||
`)}).join(`
|
||
`);Cg(u)}return U(l,function(c,f){var h="";Y(c)||(h="A transform should not return some empty results.",Fe(h)),c.data||(h="Transform result data should be not be null or undefined",Fe(h));var v=uh(c.data);hl(v)||(h="Transform result data should be array rows or object rows.",Fe(h));var d,p=t[0];if(p&&f===0&&!c.dimensions){var g=p.startIndex;g&&(c.data=p.data.slice(0,g).concat(c.data)),d={seriesLayoutBy:Mt,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:Mt,sourceHeader:0,dimensions:c.dimensions};return Jo(c.data,d,null)})}function hl(r){return r===We||r===dt}var Ci="undefined",Qy=typeof Uint32Array===Ci?Array:Uint32Array,e0=typeof Uint16Array===Ci?Array:Uint16Array,gh=typeof Int32Array===Ci?Array:Int32Array,Wu=typeof Float64Array===Ci?Array:Float64Array,mh={float:Wu,int:gh,ordinal:Array,number:Array,time:Wu},Qi;function Kr(r){return r>65535?Qy:e0}function Sr(){return[1/0,-1/0]}function t0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Uu(r,t,e,a,n){var i=mh[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var r0=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return r.prototype.initData=function(t,e,a){q($(t.getItem)&&$(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Qi[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[];var o=ch(n);this._dimensions=U(e,function(s){return o&&q(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new mh[e||"float"](this._rawCount),this._rawExtent[i]=Sr(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=Sr());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){q(!this._indices,"appendData can only be called on raw data.");var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];Uu(a,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var c=n[d],p=Qi.arrayRows.call(this,t[v]||f,c.property,v,d);a[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Sr()),Uu(i,c,f.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var h=this.getRawIndex(c),v=e-i[h],d=Math.abs(v);d<=a&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Kr(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Kr(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],f=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=f[c][d];v=e(p,h)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][d];s[g]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Xe(t),i=n.length;if(!i)return this;var o=e.count(),s=Kr(e._rawCount),l=new s(o),u=0,c=n[0],f=t[c][0],h=t[c][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=v[n[0]],m=0;m<a;m++){var y=g[m];(y>=f&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[n[0]],_=v[n[1]],x=t[n[1]][0],S=t[n[1]][1],m=0;m<a;m++){var y=g[m],w=_[m];(y>=f&&y<=h||isNaN(y))&&(w>=x&&w<=S||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var A=e.getRawIndex(m),y=v[n[0]][A];(y>=f&&y<=h||isNaN(y))&&(l[u++]=A)}else for(var m=0;m<o;m++){for(var T=!0,A=e.getRawIndex(m),M=0;M<i;M++){var C=n[M],y=v[C][A];(y<t[C][0]||y>t[C][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=Sr();for(var f=0;f<s;f++){for(var h=t.getRawIndex(f),v=0;v<o;v++)l[v]=n[e[v]][h];l[o]=f;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var p=e[c],g=d[c],m=u[p],y=n[p];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,f,h,v=new(Kr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var x=this.getRawIndex(_),S=i[x];isNaN(S)||(y+=S)}y/=g-p;var w=d,A=Math.min(d+l,o),T=d-1,M=i[u];c=-1,h=w;for(var C=-1,D=0,_=w;_<A;_++){var x=this.getRawIndex(_),S=i[x];if(isNaN(S)){D++,C<0&&(C=x);continue}f=Math.abs((T-m)*(S-M)-(T-_)*(y-M)),f>c&&(c=f,h=x)}D>0&&D<A-w&&(v[s++]=Math.min(C,h),h=Math.max(C,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),f=i._rawExtent[t]=Sr(),h=new(Kr(this._rawCount))(Math.ceil(c/l)),v=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=a(s),y=this.getRawIndex(Math.min(d+n(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=Sr();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),f=e[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&wa(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?t0(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ee(this._extent),t._rawExtent=ee(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Dn(e[i],this._dimensions[i])}Qi={arrayRows:t,objectRows:function(e,a,n,i){return Dn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Dn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}();const Qo=r0;var a0=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(jr(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=He(s)?Dt:st,i=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ae(f.seriesLayoutBy,h.seriesLayoutBy)||null,d=ae(f.sourceHeader,h.sourceHeader),p=ae(f.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=g?[Jo(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(a){var y=this._applyTransform(e);n=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);n=[Jo(_,this._getSourceMetaRawOption(),null)],i=[]}}q(n&&i),this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(q(n!=null||a!=null),n!=null){var i="";t.length!==1&&(i="When using `fromTransformResult`, there should be only one upstream dataset",Yu(i))}var o,s=[],l=[];return b(t,function(u){u.prepareSource();var c=u.getSource(n||0),f="";n!=null&&!c&&(f="Can not retrieve result by `fromTransformResult`: "+n,Yu(f)),s.push(c),l.push(u._getVersionSign())}),a?o=jy(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Ry(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){q(jr(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];jr(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Qo,s.initData(new fh(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(jr(t)){var e=ll(t);return e?[e.getSourceManager()]:[]}else return U(ny(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(jr(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function jr(r){return r.mainType==="series"}function Yu(r){throw new Error(r)}var yh="line-height:1";function _h(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ve(a+"")+"px;color:"+Ve(e)+";font-weight:"+Ve(n+""),valueStyle:"font-size:"+Ve(o+"")+"px;color:"+Ve(i)+";font-weight:"+Ve(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var n0=[0,10,20,30],i0=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function Gr(r,t){return t.type=r,t}function es(r){return r.type==="section"}function xh(r){return es(r)?o0:s0}function Sh(r){if(es(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return b(r.blocks,function(n){var i=Sh(n);i>=t&&(t=i+ +(a&&(!i||es(n)&&!n.noHeader)))}),t}return 0}function o0(r,t,e,a){var n=t.noHeader,i=l0(Sh(t)),o=[],s=t.blocks||[];q(!s||G(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Er(u,l)){var c=new Wy(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(d,p){var g=t.valueFormatter,m=xh(d)(g?V(V({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):ts(o.join(""),n?e:i.html);if(n)return f;var h=Ko(t.header,"ordinal",r.useUTC),v=_h(a,r.renderMode).nameStyle;return r.renderMode==="richText"?wh(r,h,v)+i.richText+f:ts('<div style="'+v+";"+yh+';">'+Ve(h)+"</div>"+f,e)}function s0(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=G(x)?x:[x],U(x,function(S,w){return Ko(S,G(v)?v[w]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),h=i?"":Ko(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=_h(a,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":wh(r,h,y))+(o?"":f0(r,d,p,g,_)):ts((s?"":f)+(i?"":u0(h,!s,y))+(o?"":c0(d,p,g,_)),e)}}function $u(r,t,e,a,n,i){if(r){var o=xh(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function l0(r){return{html:n0[r],richText:i0[r]}}function ts(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+yh+';">'+r+e+"</div>"}function u0(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ve(r)+"</span>"}function c0(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=G(r)?r:[r],'<span style="'+i+";"+a+'">'+U(r,function(o){return Ve(o)}).join(" ")+"</span>"}function wh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function f0(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(" "):t,i)}function v0(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return dr(a)}function bh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var eo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=uv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=Jv({color:e,type:t,renderMode:a,markerId:n});return H(i)?i:(q(n),this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};G(e)?b(e,function(i){return V(a,i)}):V(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function h0(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=G(s),u=v0(t,e),c,f,h,v;if(o>1||l&&!o){var d=d0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=Br(n,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=Gs(t),m=g&&t.name||"",y=n.getName(e),_=a?m:y;return Gr("section",{header:m,noHeader:a||!g,sortParam:v,blocks:[Gr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ba(_),value:c,valueType:f,dataIndex:e})].concat(h||[])})}function d0(r,t,e,a,n){var i=t.getData(),o=wa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?b(a,function(f){c(Br(i,e,f),f)}):b(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Gr("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Bt=ie();function tn(r,t){return r.getName(t)||r.getId(t)}var Mn="__universalTransitionEnabled",Di=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=_a({count:g0,reset:m0}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Bt(this).sourceManager=new a0(this);i.prepareSource();var o=this.getInitialData(e,n);Zu(o,this),this.dataTask.context.data=o,q(o,"getInitialData returned invalid data."),Bt(this).dataBeforeProcessed=o,Xu(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Ma(this),i=n?bi(e):{},o=this.subType;te.hasClass(o)&&(o+="Series"),se(e,a.getTheme().get(this.subType)),se(e,this.getDefaultOption()),Ho(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Or(e,i,n)},t.prototype.mergeOption=function(e,a){e=se(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Ma(this);n&&Or(this.option,e,n);var i=Bt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Zu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Bt(this).dataBeforeProcessed=o,Xu(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!He(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ho(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=rs(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Bt(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=rs(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Bt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Z(e)},t.prototype.getSourceManager=function(){return Bt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Bt(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,a,n){return h0({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(le.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=ul.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=tn(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Xe(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[tn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Mn])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=a[c],h=tn(e,f);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(f)}}else if(s==="single"||s===!0){var v=a[l-1],h=tn(e,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(te);St(Di,zy);St(Di,ul);gv(Di,te);function Xu(r){var t=r.name;Gs(r)||(r.name=p0(r)||t)}function p0(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return b(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function g0(r){return r.model.getRawData().count()}function m0(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),y0}function y0(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Zu(r,t){b(Jf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,oe(_0,t))})}function _0(r,t){var e=rs(r);return e&&e.setOutputEnd((t||this).count()),t}function rs(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const $e=Di;var dl=function(){function r(){this.group=new Se,this.uid=yi("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Fs(dl);ui(dl);const it=dl;function pl(){var r=ie();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Ah=ie(),x0=pl(),gl=function(){function r(){this.group=new Se,this.uid=yi("viewChart"),this.renderTask=_a({plan:S0,reset:w0}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);if(!i){ke("Unknown dataType "+n.dataType);return}Ku(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);if(!i){ke("Unknown dataType "+n.dataType);return}Ku(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){gi(this.group,t)},r.markUpdateMethod=function(t,e){Ah(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function qu(r,t,e){r&&Nr(r)&&(t==="emphasis"?Vn:Fn)(r,e)}function Ku(r,t,e){var a=cr(r,t),n=t&&t.highlightKey!=null?pm(t.highlightKey):null;a!=null?b(xe(a),function(i){qu(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){qu(i,e,n)})}Fs(gl,["dispose"]);ui(gl);function S0(r){return x0(r.model)}function w0(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&Ah(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),b0[l]}var b0={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Be=gl;var Xn="\0__throttleOriginMethod",ju="\0__throttleRate",Ju="\0__throttleType";function Mi(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=c||t,g=c||e;c=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){c=v},h}function Th(r,t,e,a){var n=r[t];if(n){var i=n[Xn]||n,o=n[Ju],s=n[ju];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=Mi(i,e,a==="debounce"),n[Xn]=i,n[Ju]=a,n[ju]=e}return n}}function as(r,t){var e=r[t];e&&e[Xn]&&(e.clear&&e.clear(),r[t]=e[Xn])}var Qu=ie(),ec={itemStyle:Ta(zv,!0),lineStyle:Ta(Fv,!0)},A0={lineStyle:"stroke",itemStyle:"fill"};function Ch(r,t){var e=r.visualStyleMapper||ec[t];return e||(console.warn("Unknown style type '"+t+"'."),ec.itemStyle)}function Dh(r,t){var e=r.visualDrawType||A0[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var T0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Ch(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Dh(r,a),u=o[l],c=$(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=V({},o);g[l]=c(p),v.setItemVisual(d,"style",g)}}}},Jr=new me,C0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Ch(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Jr.option=l[a];var u=n(Jr),c=o.ensureUniqueItemVisual(s,"style");V(c,u),Jr.option.decal&&(o.setItemVisual(s,"decal",Jr.option.decal),Jr.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},D0={performRawSeries:!0,overallReset:function(r){var t=Z();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Qu(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Qu(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Dh(e,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var h=i.ensureUniqueItemVisual(c,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},rn=Math.PI;function M0(r,t){t=t||{},j(t,{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 e=new Se,a=new De({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new ge({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new De({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new si({shape:{startAngle:-rn/2,endAngle:-rn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:rn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:rn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var I0=function(){function r(t,e,a,n){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=Z();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;b(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";o='"reset" and "overallReset" must not be both specified.',q(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;b(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Z(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(f){var h=f.uid,v=s.set(h,o&&o.get(h)||_a({plan:R0,reset:N0,count:B0}));v.context={model:f,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||_a({reset:L0});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,v="";v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',q(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):c?c(a,n).each(d):(f=!1,b(a.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,_a({reset:P0,onDirty:E0})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return $(t)&&(t={overallReset:t,seriesType:G0(t)}),t.uid=yi("stageHandler"),e&&(t.visualType=e),t},r}();function L0(r){r.overallReset(r.ecModel,r.api,r.payload)}function P0(r){return r.overallProgress&&k0}function k0(){this.agent.dirty(),this.getDownstream().dirty()}function E0(){this.agent&&this.agent.dirty()}function R0(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function N0(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=xe(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?U(t,function(e,a){return Mh(a)}):O0}var O0=Mh(0);function Mh(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function B0(r){return r.data.count()}function G0(r){Zn=null;try{r(La,Ih)}catch{}return Zn}var La={},Ih={},Zn;Lh(La,ih);Lh(Ih,oh);La.eachSeriesByType=La.eachRawSeriesByType=function(r){Zn=r};La.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Zn=r.subType)};function Lh(r,t){for(var e in t.prototype)r[e]=It}const Ph=I0;var tc=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const V0={color:tc,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],tc]};var Re="#B9B8CE",rc="#100C2A",an=function(){return{axisLine:{lineStyle:{color:Re}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ac=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],kh={darkMode:!0,color:ac,backgroundColor:rc,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Re}},textStyle:{color:Re},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Re}},dataZoom:{borderColor:"#71708A",textStyle:{color:Re},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:Re}},timeline:{lineStyle:{color:Re},label:{color:Re},controlStyle:{color:Re,borderColor:Re}},calendar:{itemStyle:{color:rc},dayLabel:{color:Re},monthLabel:{color:Re},yearLabel:{color:Re}},timeAxis:an(),logAxis:an(),valueAxis:an(),categoryAxis:an(),line:{symbol:"circle"},graph:{color:ac},gauge:{title:{color:Re},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Re},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};kh.categoryAxis.splitLine.show=!1;const F0=kh;var z0=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(H(t)){var i=_t(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.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,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(f,h,v,d){return f[v]==null||h[d||v]===f[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ns=["symbol","symbolSize","symbolRotate","symbolOffset"],nc=ns.concat(["symbolKeepAspect"]),H0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<ns.length;o++){var s=ns[o],l=r.get(s);$(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(V({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Xe(n);function c(f,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(h,g,n[g](v,d))}}return{dataEach:i?c:null}}},W0={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<nc.length;s++){var l=nc[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function U0(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:console.warn("Unknown visual type "+e)}}function Y0(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:console.warn("Unknown visual type "+t)}}function $0(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}b([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=V({},n),_e(n.type,a[1]),o.dispatchAction(V(n,{type:a[1],seriesIndex:e(i,n)}))})})}function wr(r,t,e,a,n){var i=r+t;e.isSilent(i)||(ht("event "+i+" is deprecated."),a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=cr(f,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:G(h)?f.getName(h[0]):f.getName(h),selected:H(l)?l:V({},l)})}}))}function X0(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(wr("map","selectchanged",t,n,a),wr("pie","selectchanged",t,n,a)):a.fromAction==="select"?(wr("map","selected",t,n,a),wr("pie","selected",t,n,a)):a.fromAction==="unselect"&&(wr("map","unselected",t,n,a),wr("pie","unselected",t,n,a))})}function fa(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var Z0=Ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),q0=Ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),K0=Ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-f*v,l+s+h*v,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-c+f*v,l+s+h*v,e-c,l+s),r.closePath()}}),j0=Ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),J0={line:ze,rect:De,roundRect:De,square:De,circle:Ra,diamond:q0,pin:K0,arrow:j0,triangle:Z0},Q0={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},is={};b(J0,function(r,t){is[t]=new r});var e_=Ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Vo(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=is[a];n||(a="rect",n=is[a]),Q0[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function t_(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Lt(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Xs(r.slice(8),new Pe(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=hi(r.slice(7),{},new Pe(t,e,a,n),o?"center":"cover"):l=new e_({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=t_,i&&l.setColor(i),l}function r_(r){return G(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Eh(r,t){if(r!=null)return G(r)||(r=[r,r]),[W(r[0],t[0])||0,W(ae(r[1],r[0]),t[1])||0]}var to=new Fp,ic=new zp(100),oc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function os(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&to.delete(r);var i=to.get(r);if(i)return i;var o=j(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,to.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],f=!0,h=0;h<oc.length;++h){var v=o[oc[h]];if(v!=null&&!G(v)&&!H(v)&&!ue(v)&&typeof v!="boolean"){f=!1;break}c.push(v)}var d;if(f){d=c.join(",")+(n?"-svg":"");var p=ic.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=Nh(o.dashArrayX),m=a_(o.dashArrayY),y=Rh(o.symbol),_=n_(g),x=Oh(m),S=!n&&Qf.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},A=M(),T;S&&(S.width=A.width*e,S.height=A.height*e,T=S.getContext("2d")),C(),f&&ic.put(d,S||w),u.image=S,u.svgElement=w,u.svgWidth=A.width,u.svgHeight=A.height;function M(){for(var D=1,I=0,L=_.length;I<L;++I)D=Jl(D,_[I]);for(var k=1,I=0,L=y.length;I<L;++I)k=Jl(k,y[I].length);D*=k;var P=x*_.length*y.length;{var E=function(O){console.warn("Calculated decal size is greater than "+O+" due to decal option settings so "+O+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+O+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&E("maxTileWidth"),P>o.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var D=0,I=0;I<m.length;++I)D+=m[I];if(D<=0)return;for(var L=-x,k=0,P=0,E=0;L<A.height;){if(k%2===0){for(var O=P/2%y.length,R=0,N=0,B=0;R<A.width*2;){for(var z=0,I=0;I<g[E].length;++I)z+=g[E][I];if(z<=0)break;if(N%2===0){var X=(1-o.symbolSize)*.5,J=R+g[E][N]*X,ne=L+m[k]*X,Te=g[E][N]*o.symbolSize,fe=m[k]*o.symbolSize,Rt=B/2%y[O].length;Nt(J,ne,Te,fe,y[O][Rt])}R+=g[E][N],++B,++N,N===g[E].length&&(N=0)}++E,E===g.length&&(E=0)}L+=m[k],++P,++k,k===m.length&&(k=0)}function Nt(Ur,Yr,qa,Ka,ja){var jt=n?1:e,Ot=Lt(ja,Ur*jt,Yr*jt,qa*jt,Ka*jt,o.color,o.symbolKeepAspect);if(n){var bt=a.painter.renderOneToVNode(Ot);bt&&w.children.push(bt)}else ev(T,Ot)}}}}function Rh(r){if(!r||r.length===0)return[["rect"]];if(H(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!H(r[e])){t=!1;break}if(t)return Rh([r]);for(var a=[],e=0;e<r.length;++e)H(r[e])?a.push([r[e]]):a.push(r[e]);return a}function Nh(r){if(!r||r.length===0)return[[0,0]];if(ue(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!ue(r[a])){e=!1;break}if(e)return Nh([r]);for(var n=[],a=0;a<r.length;++a)if(ue(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=U(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function a_(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ue(r)){var t=Math.ceil(r);return[t,t]}var e=U(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function n_(r){return U(r,function(t){return Oh(t)})}function Oh(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function i_(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=os(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=os(n,t)}}})}var o_=new Ga;const ut=o_;var qn={};function s_(r,t){qn[r]&&ke("Already has an implementation of "+r+"."),qn[r]=t}function Bh(r){return qn[r]||ke("Implementation of "+r+" doesn't exists."),qn[r]}var l_="5.5.1",u_={zrender:"5.6.0"},c_=1,f_=800,v_=900,h_=1e3,d_=2e3,p_=5e3,Gh=1e3,g_=1100,ml=2e3,Vh=3e3,m_=4e3,Ii=4500,y_=4600,__=5e3,x_=6e3,Fh=7e3,zh={PROCESSOR:{FILTER:h_,SERIES_FILTER:f_,STATISTIC:p_},VISUAL:{LAYOUT:Gh,PROGRESSIVE_LAYOUT:g_,GLOBAL:ml,CHART:Vh,POST_CHART_LAYOUT:y_,COMPONENT:m_,BRUSH:__,CHART_ITEM:Ii,ARIA:x_,DECAL:Fh}},Ie="__flagInMainProcess",Ge="__pendingUpdate",ro="__needsUpdateStatus",sc=/^[a-zA-Z0-9_]+$/,ao="__connectUpdateStatus",lc=0,S_=1,w_=2;function Hh(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){Ue(this.id);return}return Uh(this,r,t)}}function Wh(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Uh(this,r,t)}}function Uh(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ga.prototype[t].apply(r,e)}var Yh=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ga),$h=Yh.prototype;$h.on=Wh("on");$h.off=Wh("off");var br,no,nn,Gt,io,oo,so,Qr,ea,uc,cc,lo,fc,on,vc,Xh,qe,hc,Kn=function(r){F(t,r);function t(e,a,n){var i=r.call(this,new z0)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},H(a)&&(a=Zh[a]),i._dom=e;var o="canvas",s="auto",l=!1;{var u=le.hasGlobalWindow?window:global;u&&(o=ae(u.__ECHARTS__DEFAULT__RENDERER__,o),s=ae(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=ae(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}n.ssr&&Hp(function(v){var d=K(v),p=d.dataIndex;if(p!=null){var g=Z();return g.set("series_index",d.seriesIndex),g.set("data_index",p),d.ssrType&&g.set("ssr_type",d.ssrType),g}});var c=i._zr=Yl(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ae(n.useDirtyRect,l),useCoarsePointer:ae(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Mi(Q(c.flush,c),17),a=ee(a),a&&lh(a,!0),i._theme=a,i._locale=Fm(n.locale||Wv),i._coordSysMgr=new Ai;var f=i._api=vc(i);function h(v,d){return v.__prio-d.__prio}return Vi(Jn,h),Vi(ss,h),i._scheduler=new Ph(i,f,ss,Jn),i._messageCenter=new Yh,i._initEvents(),i.resize=Q(i.resize,i),c.animation.on("frame",i._onframe,i),uc(c,i),cc(c,i),Go(i),i}return t.prototype._onframe=function(){if(!this._disposed){hc(this);var e=this._scheduler;if(this[Ge]){var a=this[Ge].silent;this[Ie]=!0;try{br(this),Gt.update.call(this,null,this[Ge].updateParams)}catch(l){throw this[Ie]=!1,this[Ge]=null,l}this._zr.flush(),this[Ie]=!1,this[Ge]=null,Qr.call(this,a),ea.call(this,a)}else if(e.unfinished){var n=c_,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),oo(this,i),e.performVisualTasks(i),on(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(this[Ie]){ke("`setOption` should not be called during main process.");return}if(this._disposed){Ue(this.id);return}var i,o,s;if(Y(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ie]=!0,!this._model||a){var l=new Ay(this._api),u=this._theme,c=this._model=new ih;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ls);var f={seriesTransition:s,optionChanged:!0};if(n)this[Ge]={silent:i,updateParams:f},this[Ie]=!1,this.getZr().wakeUp();else{try{br(this),Gt.update.call(this,null,f)}catch(h){throw this[Ge]=null,this[Ie]=!1,h}this._ssr||this._zr.flush(),this[Ge]=null,this[Ie]=!1,Qr.call(this,i),ea.call(this,i)}},t.prototype.setTheme=function(){ht("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||le.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return _e("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;if(a.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;if(a.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(le.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return b(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){Ue(this.id);return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;b(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return b(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){Ue(this.id);return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Qn[n]){var l=s,u=s,c=-s,f=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();b(sr,function(_,x){if(_.group===n){var S=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ee(e)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),f=o(w.bottom,f),h.push({dom:S,left:w.left,top:w.top})}}),l*=v,u*=v,c*=v,f*=v;var d=c-l,p=f-u,g=Qf.createCanvas(),m=Yl(g,{renderer:a?"svg":"canvas"});if(m.resize({width:d,height:p}),a){var y="";return b(h,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new De({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),b(h,function(_){var x=new gr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return io(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return io(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){Ue(this.id);return}var n=this._model,i,o=zi(n,e);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(a,u):Ce(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else Ce(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=zi(n,e,{defaultMainType:"series"}),o=i.seriesModel;o||Ce("There is no specified series model");var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?U0(s,l,a):Y0(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;b(b_,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&fa(s,function(d){var p=K(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=V({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),v=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];!u&&!(h&&v)&&Ce("model or view can not be found by params"),l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),b(xa,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),b(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),X0(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Ue(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Ue(this.id);return}this._disposed=!0;var e=this.getDom();e&&hv(this.getDom(),_l,"");var a=this,n=a._api,i=a._model;b(a._componentsViews,function(o){o.dispose(i,n)}),b(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete sr[a.id]},t.prototype.resize=function(e){if(this[Ie]){ke("`resize` should not be called during main process.");return}if(this._disposed){Ue(this.id);return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Ge]&&(i==null&&(i=this[Ge].silent),n=!0,this[Ge]=null),this[Ie]=!0;try{n&&br(this),Gt.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(o){throw this[Ie]=!1,o}this[Ie]=!1,Qr.call(this,i),ea.call(this,i)}},t.prototype.showLoading=function(e,a){if(this._disposed){Ue(this.id);return}if(Y(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!us[e]){Ce("Loading effects "+e+" not exists.");return}var n=us[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)},t.prototype.hideLoading=function(){if(this._disposed){Ue(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=V({},e);return a.type=xa[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){Ue(this.id);return}if(Y(a)||(a={silent:!!a}),!!jn[e.type]&&this._model){if(this[Ie]){this._pendingActions.push(e);return}var n=a.silent;so.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&le.browser.weChat&&this._throttledZrFlush(),Qr.call(this,n),ea.call(this,n)}},t.prototype.updateLabelLayout=function(){ut.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){Ue(this.id);return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);q(e.data&&i),i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){br=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),no(f,!0),no(f,!1),h.plan()},no=function(f,h){for(var v=f._model,d=f._scheduler,p=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(w,A){w!=="series"&&x(A)}):v.eachSeries(x);function x(w){var A=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,M=!A&&g[T];if(!M){var C=_t(w.type),D=h?it.getClass(C.main,C.sub):Be.getClass(C.sub);q(D,C.sub+" does not exist."),M=new D,M.init(v,y),g[T]=M,p.push(M),m.add(M.group)}w.__viewId=M.__id=T,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!h&&d.prepareView(M,w,v,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!h&&S.renderTask.dispose(),m.remove(S.group),S.dispose(v,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},nn=function(f,h,v,d,p){var g=f._model;if(g.setUpdatePayload(v),!d){b([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=v.excludeSeriesId,x;_!=null&&(x=Z(),b(xe(_),function(w){var A=vt(w,null);A!=null&&x.set(A,!0)})),g&&g.eachComponent(y,function(w){var A=x&&x.get(w.id)!=null;if(!A)if(fu(v))if(w instanceof $e)v.type===or&&!v.notBlur&&!w.get(["emphasis","disabled"])&&sm(w,v,f._api);else{var T=Us(w.mainType,w.componentIndex,v.name,f._api),M=T.focusSelf,C=T.dispatchers;v.type===or&&M&&!v.notBlur&&$o(w.mainType,w.componentIndex,f._api),C&&b(C,function(D){v.type===or?Vn(D):Fn(D)})}else Xo(v)&&w instanceof $e&&(cm(w,v,f._api),uu(w),qe(f))},f),g&&g.eachComponent(y,function(w){var A=x&&x.get(w.id)!=null;A||S(f[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},f);function S(w){w&&w.__alive&&w[h]&&w[h](w.__model,g,f._api,v)}},Gt={prepareAndUpdate:function(f){br(this),Gt.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(f),m.restoreData(v,f),m.performSeriesTasks(v),g.create(v,d),m.performDataProcessorTasks(v,f),oo(this,v),g.update(v,d),e(v),m.performVisualTasks(v,f),lo(this,v,d,f,h);var y=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),ut.trigger("afterupdate",v,d)}},updateTransform:function(f){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(f);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,v,d,f);x&&x.update&&p.push(_)}else p.push(_)}});var g=Z();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,v,d,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),e(v),this._scheduler.performVisualTasks(v,f,{setDirty:!0,dirtyMap:g}),on(this,v,d,f,{},g),ut.trigger("afterupdate",v,d)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),Be.markUpdateMethod(f,"updateView"),e(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),lo(this,h,this._api,f,{}),ut.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,v=this._model;v&&(v.setUpdatePayload(f),v.eachSeries(function(d){d.getData().clearAllVisual()}),Be.markUpdateMethod(f,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,f,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,f)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,f)}),ut.trigger("afterupdate",v,this._api))},updateLayout:function(f){Gt.update.call(this,f)}},io=function(f,h,v,d){if(f._disposed){Ue(f.id);return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=zi(p,v),_=0;_<g.length;_++){var x=g[_];if(x[h]&&(m=x[h](p,y,d))!=null)return m}Ce("No coordinate system that supports "+h+" found by the given finder.")},oo=function(f,h){var v=f._chartsMap,d=f._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},so=function(f,h){var v=this,d=this.getModel(),p=f.type,g=f.escapeConnect,m=jn[p],y=m.actionInfo,_=(y.update||"update").split(":"),x=_.pop(),S=_[0]!=null&&_t(_[0]);this[Ie]=!0;var w=[f],A=!1;f.batch&&(A=!0,w=U(f.batch,function(k){return k=j(V({},k),f),k.batch=null,k}));var T=[],M,C=Xo(f),D=fu(f);if(D&&Cv(this._api),b(w,function(k){if(M=m.action(k,v._model,v._api),M=M||V({},k),M.type=y.event||M.type,T.push(M),D){var P=Vs(f),E=P.queryOptionMap,O=P.mainTypeSpecified,R=O?E.keys()[0]:"series";nn(v,x,k,R),qe(v)}else C?(nn(v,x,k,"series"),qe(v)):S&&nn(v,x,k,S.main,S.sub)}),x!=="none"&&!D&&!C&&!S)try{this[Ge]?(br(this),Gt.update.call(this,f),this[Ge]=null):Gt[x].call(this,f)}catch(k){throw this[Ie]=!1,k}if(A?M={type:y.event||p,escapeConnect:g,batch:T}:M=T[0],this[Ie]=!1,!h){var I=this._messageCenter;if(I.trigger(M.type,M),C){var L={type:"selectchanged",escapeConnect:g,selected:fm(d),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(L.type,L)}}},Qr=function(f){for(var h=this._pendingActions;h.length;){var v=h.shift();so.call(this,v,f)}},ea=function(f){!f&&this.trigger("updated")},uc=function(f,h){f.on("rendered",function(v){h.trigger("rendered",v),f.animation.isFinished()&&!h[Ge]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},cc=function(f,h){f.on("mouseover",function(v){var d=v.target,p=fa(d,Nr);p&&(lm(p,v,h._api),qe(h))}).on("mouseout",function(v){var d=v.target,p=fa(d,Nr);p&&(um(p,v,h._api),qe(h))}).on("click",function(v){var d=v.target,p=fa(d,function(y){return K(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=K(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function a(f){var h=[],v=[],d=!1;if(f.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:h).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:w})}),d){var p=h.concat(v),g,m;Vi(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(p,function(y){var _=f.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;g!=null&&(x=Math.max(g,x)),S?(x===g&&S!==m&&x++,m=S):m&&(x===g&&x++,m=""),g=x,_.setZLevel(x)})}}lo=function(f,h,v,d,p){a(h),fc(f,h,v,d,p),b(f._chartsViews,function(g){g.__alive=!1}),on(f,h,v,d,p),b(f._chartsViews,function(g){g.__alive||g.remove(h,v)})},fc=function(f,h,v,d,p,g){b(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),s(y,m),c(y,m)})},on=function(f,h,v,d,p,g){var m=f._scheduler;p=V(p||{},{updatedSeries:h.getSeries()}),ut.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(_){var x=f._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,d),u(_,x),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),o(_,x),uu(_)}),m.unfinished=y||m.unfinished,ut.trigger("series:layoutlabels",h,v,p),ut.trigger("series:transition",h,v,p),h.eachSeries(function(_){var x=f._chartsMap[_.__viewId];s(_,x),c(_,x)}),i(f,h),ut.trigger("series:afterupdate",h,v,p)},qe=function(f){f[ro]=!0,f.getZr().wakeUp()},hc=function(f){f[ro]&&(f.getZr().storage.traverse(function(h){Ir(h)||n(h)}),f[ro]=!1)};function n(f){for(var h=[],v=f.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}f.selected&&f.states.select&&h.push("select"),f.hoverState===ci&&f.states.emphasis?h.push("emphasis"):f.hoverState===Ha&&f.states.blur&&h.push("blur"),f.useStates(h)}function i(f,h){var v=f._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!le.node&&!le.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var v=f.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(f,h){if(!f.preventAutoZ){var v=f.get("z")||0,d=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(f,h,v,d){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],h,v,d),d);else f.z=h,f.zlevel=v,d=Math.max(f.z2,d);if(p&&(p.z=h,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var x=f.textGuideLineConfig;g.z=h,g.zlevel=v,isFinite(d)&&(g.z2=d+(x&&x.showAbove?1:-1))}return d}function u(f,h){h.eachRendered(function(v){if(!Ir(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function c(f,h){var v=f.getModel("stateAnimation"),d=f.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ir(m))return;if(m instanceof Ae&&gm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&n(m)}})}vc=function(f){return new(function(h){F(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Vn(d,p),qe(f)},v.prototype.leaveEmphasis=function(d,p){Fn(d,p),qe(f)},v.prototype.enterBlur=function(d){om(d),qe(f)},v.prototype.leaveBlur=function(d){wv(d),qe(f)},v.prototype.enterSelect=function(d){bv(d),qe(f)},v.prototype.leaveSelect=function(d){Av(d),qe(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(d){return f.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return f.getViewOfSeriesModel(d)},v}(oh))(f)},Xh=function(f){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[ao]=d}}b(xa,function(v,d){f._messageCenter.on(d,function(p){if(Qn[f.group]&&f[ao]!==lc){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];b(sr,function(y){y!==f&&y.group===f.group&&m.push(y)}),h(m,lc),b(m,function(y){y[ao]!==S_&&y.dispatchAction(g)}),h(m,w_)}})})}}(),t}(Ga),yl=Kn.prototype;yl.on=Hh("on");yl.off=Hh("off");yl.one=function(r,t,e){var a=this;ht("ECharts#one is deprecated.");function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var b_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ue(r){Ce("Instance "+r+" has been disposed")}var jn={},xa={},ss=[],ls=[],Jn=[],Zh={},us={},sr={},Qn={},A_=+new Date-0,T_=+new Date-0,_l="_echarts_instance_";function C_(r,t,e){var a=!(e&&e.ssr);if(a){if(!r)throw new Error("Initialize failed: invalid dom.");var n=xl(r);if(n)return Ce("There is a chart instance already initialized on the dom."),n;Fo(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&(!e||e.width==null)||!r.clientHeight&&(!e||e.height==null))&&Ce("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new Kn(r,t,e);return i.id="ec_"+A_++,sr[i.id]=i,a&&hv(r,_l,i.id),Xh(i),ut.trigger("afterinit",i),i}function D_(r){if(G(r)){var t=r;r=null,b(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+T_++,b(t,function(e){e.group=r})}return Qn[r]=!0,r}function qh(r){Qn[r]=!1}var M_=qh;function I_(r){H(r)?r=sr[r]:r instanceof Kn||(r=xl(r)),r instanceof Kn&&!r.isDisposed()&&r.dispose()}function xl(r){return sr[Vg(r,_l)]}function L_(r){return sr[r]}function Sl(r,t){Zh[r]=t}function wl(r){ye(ls,r)<0&&ls.push(r)}function bl(r,t){Al(ss,r,t,d_)}function Kh(r){Li("afterinit",r)}function jh(r){Li("afterupdate",r)}function Li(r,t){ut.on(r,t)}function Zt(r,t,e){$(t)&&(e=t,t="");var a=Y(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!xa[t]&&(q(sc.test(a)&&sc.test(t)),jn[a]||(jn[a]={action:e,actionInfo:r}),xa[t]=a)}function Jh(r,t){Ai.register(r,t)}function P_(r){var t=Ai.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Qh(r,t){Al(Jn,r,t,Gh,"layout")}function qt(r,t){Al(Jn,r,t,Vh,"visual")}var dc=[];function Al(r,t,e,a,n){($(t)||Y(t))&&(e=t,t=a);{if(isNaN(t)||t==null)throw new Error("Illegal priority");b(r,function(o){q(o.__raw!==e)})}if(!(ye(dc,e)>=0)){dc.push(e);var i=Ph.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function Tl(r,t){us[r]=t}function k_(r){ht("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),tv({createCanvas:r})}function ed(r,t,e){var a=Bh("registerMap");a&&a(r,t,e)}function E_(r){var t=Bh("getMap");return t&&t(r)}var td=Ky;qt(ml,T0);qt(Ii,C0);qt(Ii,D0);qt(ml,H0);qt(Ii,W0);qt(Fh,i_);wl(lh);bl(v_,ky);Tl("default",M0);Zt({type:or,event:or,update:or},It);Zt({type:bn,event:bn,update:bn},It);Zt({type:pa,event:pa,update:pa},It);Zt({type:An,event:An,update:An},It);Zt({type:ga,event:ga,update:ga},It);Sl("light",V0);Sl("dark",F0);var R_={};function ta(r){return r==null?0:r.length||1}function pc(r){return r}var N_=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||pc,this._newKeyGetter=n||pc,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=ta(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],f=ta(u),h=ta(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var v=0;v<f;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=ta(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=ta(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const cs=N_;var O_=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function B_(r,t){var e={},a=e.encode={},n=Z(),i=[],o=[],s={};b(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){q(jo.get(d)==null);var p=v.coordDimIndex;uo(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),V_(v.type)&&(i[0]=h),uo(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}jo.each(function(g,m){var y=uo(a,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=U(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new O_(s,t),e}function uo(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function G_(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function V_(r){return!(r==="ordinal"||r==="time")}var F_=function(){function r(t){this.otherDims={},t!=null&&V(this,t)}return r}();const In=F_;var z_=ie(),H_={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rd=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=id(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ae(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ch(this.source),a=!od(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=e?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!f||!f.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=H_[u]||"f",c&&(n+=c.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function ad(r){return r instanceof rd}function nd(r){for(var t=Z(),e=0;e<(r||[]).length;e++){var a=r[e],n=Y(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function id(r){var t=z_(r);return t.dimNameMap||(t.dimNameMap=nd(r.dimensionsDefine))}function od(r){return r>30}var ra=Y,Vt=U,W_=typeof Int32Array>"u"?Array:Int32Array,U_="e\0\0",gc=-1,Y_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$_=["_approximateExtent"],mc,sn,aa,Ar,co,ln,fo,X_=function(){function r(t,e){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;ad(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],h=H(f)?new In({name:f}):f instanceof In?f:new In(f),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),q(n||h.storeDimIndex>=0),n&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Z();b(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(ue(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unknown dimension "+t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Qo&&(i=t),!i){var o=this.dimensions,s=cl(t)||ni(t)?new fh(t,o.length):t;i=new Qo;var l=Vt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=B_(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&fo(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Dt&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===st;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&Mg(f)&&(this.hasItemOption=!0),f){var h=f.name;i[c]==null&&h!=null&&(i[c]=vt(h,null));var v=f.id;o[c]==null&&v!=null&&(o[c]=vt(v,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)fo(this,c);mc(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){ra(t)?V(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=aa(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return sn(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return G(t)?n.getValues(Vt(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t];if(!a)throw new Error("Do not supported yet");var n=a[e];return n==null||isNaN(n)?gc:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){$(t)&&(a=e,e=t,t=[]);var n=a||this,i=Vt(Ar(t),this._getStoreDimIndex,this);this._store.each(i,n?Q(e,n):e)},r.prototype.filterSelf=function(t,e,a){$(t)&&(a=e,e=t,t=[]);var n=a||this,i=Vt(Ar(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Q(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Xe(t);return b(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){$(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Vt(Ar(t),this._getStoreDimIndex,this),s=ln(this);return s._store=this._store.map(o,i?Q(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=this,o=a||n||this;b(Ar(t),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Vt(Ar(t),this._getStoreDimIndex,this);this._store.modify(s,o?Q(e,o):e)},r.prototype.downSample=function(t,e,a,n){var i=ln(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.lttbDownSample=function(t,e){var a=ln(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new me(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new cs(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return sn(t,a)},function(a){return sn(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},ra(t)?V(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),G(i)?i=i.slice():ra(i)&&(i=V({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,ra(e)?V(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){ra(t)?V(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?V(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Wo(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){b(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Vt(this.dimensions,this._getDimInfo,this),this.hostModel)),co(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];$(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(Wp(arguments)))})},r.internalField=function(){mc=function(t){var e=t._invertedIndicesMap;b(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new W_(o.categories.length);for(var l=0;l<a.length;l++)a[l]=gc;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},aa=function(t,e,a){return vt(t._getCategory(e,a),null)},sn=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=aa(t,t._idDimIdx,e)),a==null&&(a=U_+e),a},Ar=function(t){return G(t)||(t=t!=null?[t]:[]),t},ln=function(t){var e=new r(t._schema?t._schema:Vt(t.dimensions,t._getDimInfo,t),t.hostModel);return co(e,t),e},co=function(t,e){b(Y_.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,b($_,function(a){t[a]=ee(e[a])}),t._calculationInfo=V({},e._calculationInfo)},fo=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=aa(t,i,e)),l==null&&o!=null&&(n[e]=l=aa(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}}(),r}();const Pi=X_;function Z_(r,t){return ki(r,t).dimensions}function ki(r,t){cl(r)||(r=fl(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=Z(),i=[],o=K_(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&od(o),l=a===r.dimensionsDefine,u=l?id(r):nd(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=Z(c),h=new gh(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var C=h[M];if(C<0){var D=a[M],I=Y(D)?D:{name:D},L=new In,k=I.name;k!=null&&u.get(k)!=null&&(L.name=L.displayName=k),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var P=i.length;return h[M]=P,L.storeDimIndex=M,i.push(L),L}return i[C]}if(!s)for(var v=0;v<o;v++)d(v);f.each(function(M,C){var D=xe(M).slice();if(D.length===1&&!H(D[0])&&D[0]<0){f.set(C,!1);return}var I=f.set(C,[]);b(D,function(L,k){var P=H(L)?u.get(L):L;P!=null&&P<o&&(I[k]=P,g(d(P),C,k))})});var p=0;b(e,function(M){var C,D,I,L;if(H(M))C=M,L={};else{L=M,C=L.name;var k=L.ordinalMeta;L.ordinalMeta=null,L=V({},L),L.ordinalMeta=k,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var P=f.get(C);if(P!==!1){if(P=xe(P),!P.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&P.push(p++)}b(P,function(O,R){var N=d(O);if(l&&L.type!=null&&(N.type=L.type),g(j(N,L),C,R),N.name==null&&D){var B=D[R];!Y(B)&&(B={name:B}),N.name=N.displayName=B.name,N.defaultTooltip=B.defaultTooltip}I&&j(N.otherDims,I)})}});function g(M,C,D){jo.get(C)!=null?M.otherDims[C]=D:(M.coordDim=C,M.coordDimIndex=D,n.set(C,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function S(M){M.name==null&&(M.name=M.coordDim)}if(s)b(i,function(M){S(M)}),i.sort(function(M,C){return M.storeDimIndex-C.storeDimIndex});else for(var w=0;w<o;w++){var A=d(w),T=A.coordDim;T==null&&(A.coordDim=j_(x,n,_),A.coordDimIndex=0,(!m||y<=0)&&(A.isExtraCoord=!0),y--),S(A),A.type==null&&(rh(r,w)===Me.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return q_(i),new rd({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function q_(r){for(var t=Z(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function K_(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return b(t,function(i){var o;Y(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function j_(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var J_=function(){function r(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return r}();function Q_(r){var t=r.get("coordinateSystem"),e=new J_(t),a=ex[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var ex={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ye).models[0],i=r.getReferringComponents("yAxis",Ye).models[0];{if(!n)throw new Error('xAxis "'+$t(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+$t(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Tr(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Tr(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ye).models[0];if(!n)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",n),Tr(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ye).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");{if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Tr(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Tr(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();b(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Tr(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Tr(r){return r.get("type")==="category"}function sd(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;tx(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,h;if(b(i,function(y,_){H(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!a&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(c=y))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,d=c.type,p=0;b(i,function(y){y.coordDim===v&&p++});var g={name:f,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(f,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:f}}function tx(r){return!ad(r.schema)}function Xt(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function ld(r,t){return Xt(r,t)?r.getCalculationInfo("stackResultDimension"):t}function rx(r,t){var e=r.get("coordinateSystem"),a=Ai.get(e),n;return t&&t.coordSysDims&&(n=U(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=G_(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function ax(r,t,e){var a,n;return e&&b(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Ei(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=fl(r)):(n=a.getSource(),i=n.sourceFormat===st);var o=Q_(t),s=rx(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?oe(ry,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ki(n,c),h=ax(f.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(f),d=sd(t,{schema:f,store:v}),p=new Pi(f,t);p.setCalculationInfo(d);var g=h!=null&&nx(n)?function(m,y,_,x){return x===h?_:this.defaultDimValueGetter(m,y,_,x)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,g),p}function nx(r){if(r.sourceFormat===st){var t=ix(r.data||[]);return!G(Fa(t))}}function ix(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var ud=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();ui(ud);const Et=ud;var ox=0,sx=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ox}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&U(a,lx);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!H(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function lx(r){return Y(r)&&r.value!=null?r.value:r+""}const fs=sx;function ux(r){var t=Math.pow(10,Va(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function vs(r){return r.type==="interval"||r.type==="log"}function cx(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=Os(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=cd(o),l=n.niceTickExtent=[he(Math.ceil(r[0]/o)*o,s),he(Math.floor(r[1]/o)*o,s)];return fx(l,r),n}function vo(r){var t=Math.pow(10,Va(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,he(e*t)}function cd(r){return yt(r)+2}function yc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function fx(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),yc(r,0,t),yc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ri(r,t){return r>=t[0]&&r<=t[1]}function Ni(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Oi(r,t){return r*(t[1]-t[0])+t[0]}var fd=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new fs({})),G(n)&&(n=new fs({categories:U(n,function(i){return Y(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ri(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ni(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Oi(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Et);Et.registerClass(fd);const vd=fd;var rr=he,hd=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ri(e,this._extent)},t.prototype.normalize=function(e){return Ni(e,this._extent)},t.prototype.scale=function(e){return Oi(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=cd(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:rr(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=rr(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return n[1]>c&&(e?s.push({value:rr(c+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,c=[],f=s.value-l.value,h=f/e;u<e-1;){var v=rr(l.value+(u+1)*h);v>i[0]&&v<i[1]&&c.push(v),u++}n.push(c)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=yt(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=rr(e.value,n,!0);return nl(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=cx(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=rr(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=rr(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(Et);Et.registerClass(hd);const Xa=hd;var dd=typeof Float32Array<"u",vx=dd?Float32Array:Array;function Tt(r){return G(r)?dd?new Float32Array(r):r:new vx(r)}var hx="__ec_stack_";function Cl(r){return r.get("stack")||hx+r.seriesIndex}function Dl(r){return r.dim+r.index}function pd(r,t){var e=[];return t.eachSeriesByType(r,function(a){md(a)&&e.push(a)}),e}function dx(r){var t={};b(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,v=f.getDimensionIndex(f.mapDimension(c.dim)),d=f.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(v,p);t[h]?t[h].push(m):t[h]=[m]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function gd(r){var t=dx(r),e=[];return b(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=W(a.get("barWidth"),s),p=W(a.get("barMaxWidth"),s),g=W(a.get("barMinWidth")||(yd(a)?.5:1),s),m=a.get("barGap"),y=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Dl(i),stackId:Cl(a)})}),px(e)}function px(r){var t={};b(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return b(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Xe(i).length;s=Math.max(35-l*4,15)+"%"}var u=W(s,o),c=W(a.gap,1),f=a.remainedWidth,h=a.autoWidthCount,v=(f-u)/(h+(h-1)*c);v=Math.max(v,0),b(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),_&&(x=Math.max(x,_)),m.width=x,f-=x+c*x,h--}else{var x=v;y&&y<x&&(x=Math.min(y,f)),_&&_>x&&(x=_),x!==v&&(m.width=x,f-=x+c*x,h--)}}),v=(f-u)/(h+(h-1)*c),v=Math.max(v,0);var d=0,p;b(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+c)}),p&&(d-=p.width*c);var g=-d/2;b(i,function(m,y){e[n][y]=e[n][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),e}function gx(r,t,e){if(r&&t){var a=r[Dl(t)];return a!=null&&e!=null?a[Cl(e)]:a}}function mx(r,t){var e=pd(r,t),a=gd(e);b(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Cl(n),u=a[Dl(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function yx(r){return{seriesType:r,plan:pl(),reset:function(t){if(md(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),f=Xt(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=_x(n,i),d=yd(t),p=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,x){for(var S=_.count,w=d&&Tt(S*3),A=d&&l&&Tt(S*3),T=d&&Tt(S),M=a.master.getRect(),C=h?M.width:M.height,D,I=x.getStore(),L=0;(D=_.next())!=null;){var k=I.get(f?g:o,D),P=I.get(s,D),E=v,O=void 0;f&&(O=+k-I.get(o,D));var R=void 0,N=void 0,B=void 0,z=void 0;if(h){var X=a.dataToPoint([k,P]);if(f){var J=a.dataToPoint([O,P]);E=J[0]}R=E,N=X[1]+y,B=X[0]-E,z=m,Math.abs(B)<p&&(B=(B<0?-1:1)*p)}else{var X=a.dataToPoint([P,k]);if(f){var J=a.dataToPoint([P,O]);E=J[1]}R=X[0]+y,N=E,B=m,z=X[1]-E,Math.abs(z)<p&&(z=(z<=0?-1:1)*p)}d?(w[L]=R,w[L+1]=N,w[L+2]=h?B:z,A&&(A[L]=h?M.x:R,A[L+1]=h?N:M.y,A[L+2]=C),T[D]=D):x.setItemLayout(D,{x:R,y:N,width:B,height:z}),L+=3}d&&x.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:A,valueAxisHorizontal:h})}}}}}}function md(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function yd(r){return r.pipelineContext&&r.pipelineContext.large}function _x(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var xx=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},_d=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return Ya(e.value,Su[Um(Pr(this._minLevelUnit))]||Su.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Ym(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=Dx(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Je,a[1]+=Je),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Je}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=un.length,l=Math.min(xx(un,this._approxInterval,0,s),s-1);this._interval=un[l][1],this._minLevelUnit=un[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ue(e)?e:+at(e)},t.prototype.contain=function(e){return Ri(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ni(this.parse(e),this._extent)},t.prototype.scale=function(e){return Oi(e,this._extent)},t.type="time",t}(Xa),un=[["second",tl],["minute",rl],["hour",ma],["quarter-day",ma*6],["half-day",ma*12],["day",Je*1.2],["half-week",Je*3.5],["week",Je*7],["month",Je*31],["quarter",Je*95],["half-year",xu/2],["year",xu]];function Sx(r,t,e,a){var n=at(t),i=at(e),o=function(d){return wu(n,d,a)===wu(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},v=function(){return h()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return v()}}function wx(r,t){return r/=Je,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function bx(r){var t=30*Je;return r/=t,r>6?6:r>3?3:r>2?2:1}function Ax(r){return r/=ma,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function _c(r,t){return r/=t?rl:tl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Tx(r){return Os(r,!0)}function Cx(r,t,e){var a=new Date(r);switch(Pr(t)){case"year":case"month":a[$v(e)](0);case"day":a[Xv(e)](1);case"hour":a[Zv(e)](0);case"minute":a[qv(e)](0);case"second":a[Kv(e)](0),a[jv(e)](0)}return a.getTime()}function Dx(r,t,e,a){var n=1e4,i=Uv,o=0;function s(C,D,I,L,k,P,E){for(var O=new Date(D),R=D,N=O[L]();R<I&&R<=a[1];)E.push({value:R}),N+=C,O[k](N),R=O.getTime();E.push({value:R,notAdd:!0})}function l(C,D,I){var L=[],k=!D.length;if(!Sx(Pr(C),a[0],a[1],e)){k&&(D=[{value:Cx(new Date(a[0]),C,e)},{value:a[1]}]);for(var P=0;P<D.length-1;P++){var E=D[P].value,O=D[P+1].value;if(E!==O){var R=void 0,N=void 0,B=void 0,z=!1;switch(C){case"year":R=Math.max(1,Math.round(t/Je/365)),N=al(e),B=$m(e);break;case"half-year":case"quarter":case"month":R=bx(t),N=kr(e),B=$v(e);break;case"week":case"half-week":case"day":R=wx(t),N=_i(e),B=Xv(e),z=!0;break;case"half-day":case"quarter-day":case"hour":R=Ax(t),N=Da(e),B=Zv(e);break;case"minute":R=_c(t,!0),N=xi(e),B=qv(e);break;case"second":R=_c(t,!1),N=Si(e),B=Kv(e);break;case"millisecond":R=Tx(t),N=wi(e),B=jv(e);break}s(R,E,O,N,B,z,L),C==="year"&&I.length>1&&P===0&&I.unshift({value:I[0].value-R})}}for(var P=0;P<L.length;P++)I.push(L[P]);return L}}for(var u=[],c=[],f=0,h=0,v=0;v<i.length&&o++<n;++v){var d=Pr(i[v]);if(Wm(i[v])){l(i[v],u[u.length-1]||[],c);var p=i[v+1]?Pr(i[v+1]):null;if(d!==p){if(c.length){h=f,c.sort(function(C,D){return C.value-D.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=a[0]&&y<=a[1]&&f++)}var _=(a[1]-a[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(g),f>_||r===i[v]))break}c=[]}}}o>=n&&Ce("Exceed safe limit.");for(var x=pe(U(u,function(C){return pe(C,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(C){return C.length>0}),S=[],w=x.length-1,v=0;v<x.length;++v)for(var A=x[v],T=0;T<A.length;++T)S.push({value:A[T].value,level:w-v});S.sort(function(C,D){return C.value-D.value});for(var M=[],v=0;v<S.length;++v)(v===0||S[v].value!==S[v-1].value)&&M.push(S[v]);return M}Et.registerClass(_d);const Mx=_d;var xc=Et.prototype,Sa=Xa.prototype,Ix=he,Lx=Math.floor,Px=Math.ceil,cn=Math.pow,lt=Math.log,Ml=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Xa,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=Sa.getTicks.call(this,e);return U(o,function(s){var l=s.value,u=he(cn(this.base,l));return u=l===n[0]&&this._fixMin?fn(u,i[0]):u,u=l===n[1]&&this._fixMax?fn(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=lt(this.base);e=lt(Math.max(0,e))/n,a=lt(Math.max(0,a))/n,Sa.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=xc.getExtent.call(this);a[0]=cn(e,a[0]),a[1]=cn(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=fn(a[0],i[0])),this._fixMax&&(a[1]=fn(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=lt(e[0])/lt(a),e[1]=lt(e[1])/lt(a),xc.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=lv(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[he(Px(a[0]/i)*i),he(Lx(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Sa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=lt(e)/lt(this.base),Ri(e,this._extent)},t.prototype.normalize=function(e){return e=lt(e)/lt(this.base),Ni(e,this._extent)},t.prototype.scale=function(e){return e=Oi(e,this._extent),cn(this.base,e)},t.type="log",t}(Et),xd=Ml.prototype;xd.getMinorTicks=Sa.getMinorTicks;xd.getLabel=Sa.getLabel;function fn(r,t){return Ix(r,yt(t))}Et.registerClass(Ml);const kx=Ml;var Ex=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;$(o)?this._modelMinNum=vn(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=vn(t,o));var s=this._modelMaxRaw=e.get("max",!0);if($(s)?this._modelMaxNum=vn(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=vn(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=G(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[zo(u[0],1),zo(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=kn(s)||kn(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){q(!this.frozen),this[Nx[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=Rx[t];q(!this.frozen&&this[a]==null),this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),Rx={min:"_determinedMin",max:"_determinedMax"},Nx={min:"_dataMin",max:"_dataMax"};function Ox(r,t,e){var a=r.rawExtentInfo;return a||(a=new Ex(r,t,e),r.rawExtentInfo=a,a)}function vn(r,t){return t==null?null:kn(t)?NaN:r.parse(t)}function Sd(r,t){var e=r.type,a=Ox(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=pd("bar",o),l=!1;if(b(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=gd(s),c=Bx(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function Bx(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=gx(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;b(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;b(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,f=1-(s+l)/i,h=c/f-c;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Pa(r,t){var e=t,a=Sd(r,e),n=a.extent,i=e.get("splitNumber");r instanceof kx&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Il(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new vd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Mx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Et.getClass(t)||Xa)}}function Gx(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Wr(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):H(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(t):$(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Ll(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Ll(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Vx(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof vd?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Wr(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var f=a?a[c]:{value:i[0]+c},h=s(f,c),v=o.getTextRect(h),d=Fx(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function Fx(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new Pe(r.x,r.y,i,o);return s}function Pl(r){var t=r.get("interval");return t??"auto"}function wd(r){return r.type==="category"&&Pl(r.getLabelModel())===0}function hs(r,t){var e={};return b(r.mapDimensionsAll(t),function(a){e[ld(r,a)]=!0}),Xe(e)}var kl=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function zx(r){return Ei(null,r)}var Hx={isDimensionStacked:Xt,enableDataStack:sd,getStackedDimension:ld};function Wx(r,t){var e=t;t instanceof me||(e=new me(t));var a=Il(e);return a.setExtent(r[0],r[1]),Pa(a,e),a}function Ux(r){St(r,kl)}function Yx(r,t){return t=t||{},Qe(r,null,null,t.state!=="normal")}const $x=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Z_,createList:zx,createScale:Wx,createSymbol:Lt,createTextStyle:Yx,dataStack:Hx,enableHoverEmphasis:zn,getECData:K,getLayoutRect:pr,mixinAxisModelCommonMethods:Ux},Symbol.toStringTag,{value:"Module"}));var Sc=[],Xx={registerPreprocessor:wl,registerProcessor:bl,registerPostInit:Kh,registerPostUpdate:jh,registerUpdateLifecycle:Li,registerAction:Zt,registerCoordinateSystem:Jh,registerLayout:Qh,registerVisual:qt,registerTransform:td,registerLoading:Tl,registerMap:ed,registerImpl:s_,PRIORITY:zh,ComponentModel:te,ComponentView:it,SeriesModel:$e,ChartView:Be,registerComponentModel:function(r){te.registerClass(r)},registerComponentView:function(r){it.registerClass(r)},registerSeriesModel:function(r){$e.registerClass(r)},registerChartView:function(r){Be.registerClass(r)},registerSubTypeDefaulter:function(r,t){te.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Up(r,t)}};function Pt(r){if(G(r)){b(r,function(t){Pt(t)});return}ye(Sc,r)>=0||(Sc.push(r),$(r)&&(r={install:r}),r.install(Xx))}var Zx=[];function ho(r,t){for(var e=0;e<r.length;e++)rt(r[e],r[e],t)}function wc(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Yp(t,t,i),$p(e,e,i))}}function qx(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var bd=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),bc=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Ac=function(){function r(t){this.type="linestring",this.points=t}return r}(),Kx=function(r){F(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return qx(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?wc(s.exterior,n,i,e):b(s.points,function(l){wc(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new Pe(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if($l(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if($l(u[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new Pe(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(ho(h.exterior,u),b(h.interiors,function(v){ho(v,u)})):b(h.points,function(v){ho(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(bd);(function(r){F(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Cs(Zx),o=e;o&&!o.isGeoSVGGraphicRoot;)Rn(i,o.getLocalTransform(),i),o=o.parent;return Oa(i,i),rt(n,n,i),n},t})(bd);function jx(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return b(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Ad(s,o,e);break;case"Polygon":po(s,o,e);break;case"MultiLineString":po(s,o,e);break;case"MultiPolygon":b(s,function(l,u){return po(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function po(r,t,e){for(var a=0;a<r.length;a++)r[a]=Ad(r[a],t[a],e)}function Ad(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function Tc(r,t){return r=jx(r),U(pe(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new bc(o[0],o.slice(1)));break;case"MultiPolygon":b(n.coordinates,function(l){l[0]&&i.push(new bc(l[0],l.slice(1)))});break;case"LineString":i.push(new Ac([n.coordinates]));break;case"MultiLineString":i.push(new Ac(n.coordinates))}var s=new Kx(a[t||"name"],i,a.cp);return s.properties=a,s})}const Jx=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:xg,asc:mg,getPercentWithPrecision:yg,getPixelPrecision:ov,getPrecision:yt,getPrecisionSafe:On,isNumeric:Bs,isRadianAroundZero:ba,linearMap:pt,nice:Os,numericToNumber:Aa,parseDate:at,quantile:wg,quantity:lv,quantityExponent:Va,reformIntervals:bg,remRadian:Ns,round:he},Symbol.toStringTag,{value:"Module"})),Qx=Object.freeze(Object.defineProperty({__proto__:null,format:Ya,parse:at},Symbol.toStringTag,{value:"Module"})),eS=Object.freeze(Object.defineProperty({__proto__:null,Arc:si,BezierCurve:oi,BoundingRect:Pe,Circle:Ra,CompoundPath:qf,Ellipse:Ds,Group:Se,Image:gr,IncrementalDisplayable:Kf,Line:ze,LinearGradient:Is,Polygon:Ms,Polyline:Na,RadialGradient:jf,Rect:De,Ring:ii,Sector:tt,Text:ge,clipPointsByRect:Rv,clipRectByRect:Nv,createIcon:pi,extendPath:Lv,extendShape:Iv,getShapeClass:Pv,getTransform:Ev,initProps:be,makeImage:Xs,makePath:hi,mergePath:gt,registerShape:ot,resizePath:Zs,updateProps:ce},Symbol.toStringTag,{value:"Module"})),tS=Object.freeze(Object.defineProperty({__proto__:null,addCommas:nl,capitalFirst:qm,encodeHTML:Ve,formatTime:Zm,formatTpl:ol,getTextRect:Xm,getTooltipMarker:Jv,normalizeCssArray:$a,toCamelCase:il,truncateText:Xp},Symbol.toStringTag,{value:"Module"})),rS=Object.freeze(Object.defineProperty({__proto__:null,bind:Q,clone:ee,curry:oe,defaults:j,each:b,extend:V,filter:pe,indexOf:ye,inherits:Zf,isArray:G,isFunction:$,isObject:Y,isString:H,map:U,merge:se,reduce:wa},Symbol.toStringTag,{value:"Module"}));var ka=ie();function Td(r,t){var e=U(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function aS(r){var t=r.getLabelModel().get("customValues");if(t){var e=Wr(r);return{labels:Td(r,t).map(function(a){var n={value:a};return{formattedLabel:e(n),rawLabel:r.scale.getLabel(n),tickValue:a}})}}return r.type==="category"?iS(r):sS(r)}function nS(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:Td(r,e)}:r.type==="category"?oS(r,t):{ticks:U(r.scale.getTicks(),function(a){return a.value})}}function iS(r){var t=r.getLabelModel(),e=Cd(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Cd(r,t){var e=Dd(r,"labels"),a=Pl(t),n=Md(e,a);if(n)return n;var i,o;return $(a)?i=Pd(r,a):(o=a==="auto"?lS(r):a,i=Ld(r,o)),Id(e,a,{labels:i,labelCategoryInterval:o})}function oS(r,t){var e=Dd(r,"ticks"),a=Pl(t),n=Md(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(a))i=Pd(r,a,!0);else if(a==="auto"){var s=Cd(r,r.getLabelModel());o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tickValue})}else o=a,i=Ld(r,o,!0);return Id(e,a,{ticks:i,tickCategoryInterval:o})}function sS(r){var t=r.scale.getTicks(),e=Wr(r);return{labels:U(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function Dd(r,t){return ka(r)[t]||(ka(r)[t]=[])}function Md(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function Id(r,t,e){return r.push({key:t,value:e}),e}function lS(r){var t=ka(r).autoInterval;return t??(ka(r).autoInterval=r.calculateCategoryInterval())}function uS(r){var t=cS(r),e=Wr(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),h=0,v=0;l<=i[1];l+=s){var d=0,p=0,g=Ls(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,h=Math.max(h,d,7),v=Math.max(v,p,7)}var m=h/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),x=ka(r.model),S=r.getExtent(),w=x.lastAutoInterval,A=x.lastTickCount;return w!=null&&A!=null&&Math.abs(w-_)<=1&&Math.abs(A-o)<=1&&w>_&&x.axisExtent0===S[0]&&x.axisExtent1===S[1]?_=w:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=S[0],x.axisExtent1=S[1]),_}function cS(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Ld(r,t,e){var a=Wr(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=wd(r),h=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(e?g:{formattedLabel:a(m),rawLabel:n.getLabel(m),tickValue:g})}return s}function Pd(r,t,e){var a=r.scale,n=Wr(r),i=[];return b(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Cc=[0,1],fS=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return ov(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Dc(a,n.count())),pt(t,Cc,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Dc(a,n.count()));var i=pt(t,a,Cc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=nS(this,e),n=a.ticks,i=U(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return vS(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=U(a,function(i){return U(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return aS(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return uS(this)},r}();function Dc(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function vS(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;b(t,function(v){v.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var f=i[0]>i[1];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0]}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1]});function h(v,d){return v=he(v),d=he(d),f?v>d:v<d}}const Kt=fS;function hS(r){var t=te.extend(r);return te.registerClass(t),t}function dS(r){var t=it.extend(r);return it.registerClass(t),t}function pS(r){var t=$e.extend(r);return $e.registerClass(t),t}function gS(r){var t=Be.extend(r);return Be.registerClass(t),t}var na=Math.PI*2,ar=rv.CMD,mS=["top","right","bottom","left"];function yS(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function _S(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,f=s*e+t;if(Math.abs(a-n)%na<1e-4)return l[0]=c,l[1]=f,u-e;if(i){var h=a;a=la(n),n=la(h)}else a=la(a),n=la(n);a>n&&(n+=na);var v=Math.atan2(s,o);if(v<0&&(v+=na),v>=a&&v<=n||v+na>=a&&v+na<=n)return l[0]=c,l[1]=f,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,m=e*Math.sin(n)+t,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function ei(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,f=a-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var v=l*c+u*f,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*c,g=o[1]=t+d*f;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function kd(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var ct=[];function xS(r,t,e){var a=kd(t.x,t.y,t.width,t.height,r.x,r.y,ct);return e.set(ct[0],ct[1]),a}function SS(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.data,f=r.x,h=r.y,v=0;v<c.length;){var d=c[v++];v===1&&(a=c[v],n=c[v+1],i=a,o=n);var p=u;switch(d){case ar.M:i=c[v++],o=c[v++],a=i,n=o;break;case ar.L:p=ei(a,n,c[v],c[v+1],f,h,ct,!0),a=c[v++],n=c[v++];break;case ar.C:p=qp(a,n,c[v++],c[v++],c[v++],c[v++],c[v],c[v+1],f,h,ct),a=c[v++],n=c[v++];break;case ar.Q:p=Zp(a,n,c[v++],c[v++],c[v],c[v+1],f,h,ct),a=c[v++],n=c[v++];break;case ar.A:var g=c[v++],m=c[v++],y=c[v++],_=c[v++],x=c[v++],S=c[v++];v+=1;var w=!!(1-c[v++]);s=Math.cos(x)*y+g,l=Math.sin(x)*_+m,v<=1&&(i=s,o=l);var A=(f-g)*_/y+g;p=_S(g,m,_,x,x+S,w,A,h,ct),a=Math.cos(x+S)*y+g,n=Math.sin(x+S)*_+m;break;case ar.R:i=a=c[v++],o=n=c[v++];var T=c[v++],M=c[v++];p=kd(i,o,T,M,f,h,ct);break;case ar.Z:p=ei(a,n,i,o,f,h,ct,!0),a=i,n=o;break}p<u&&(u=p,e.set(ct[0],ct[1]))}return u}var ft=new we,re=new we,ve=new we,xt=new we,mt=new we;function Mc(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||mS,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&Oa([],c),h=t.get("length2")||0;u&&ve.copy(u);for(var v=0;v<o.length;v++){var d=o[v];yS(d,0,s,ft,xt),we.scaleAndAdd(re,ft,xt,h),re.transform(f);var p=r.getBoundingRect(),g=u?u.distance(re):r instanceof Ae?SS(re,r.path,ve):xS(re,p,ve);g<l&&(l=g,re.transform(c),ve.transform(c),ve.toArray(i[0]),re.toArray(i[1]),ft.toArray(i[2]))}Ed(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var ti=[],Oe=new we;function Ed(r,t){if(t<=180&&t>0){t=t/180*Math.PI,ft.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),we.sub(xt,ft,re),we.sub(mt,ve,re);var e=xt.len(),a=mt.len();if(!(e<.001||a<.001)){xt.scale(1/e),mt.scale(1/a);var n=xt.dot(mt),i=Math.cos(t);if(i<n){var o=ei(re.x,re.y,ve.x,ve.y,ft.x,ft.y,ti,!1);Oe.fromArray(ti),Oe.scaleAndAdd(mt,o/Math.tan(Math.PI-t));var s=ve.x!==re.x?(Oe.x-re.x)/(ve.x-re.x):(Oe.y-re.y)/(ve.y-re.y);if(isNaN(s))return;s<0?we.copy(Oe,re):s>1&&we.copy(Oe,ve),Oe.toArray(r[1])}}}}function wS(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,ft.fromArray(r[0]),re.fromArray(r[1]),ve.fromArray(r[2]),we.sub(xt,re,ft),we.sub(mt,ve,re);var a=xt.len(),n=mt.len();if(!(a<.001||n<.001)){xt.scale(1/a),mt.scale(1/n);var i=xt.dot(t),o=Math.cos(e);if(i<o){var s=ei(re.x,re.y,ve.x,ve.y,ft.x,ft.y,ti,!1);Oe.fromArray(ti);var l=Math.PI/2,u=Math.acos(mt.dot(t)),c=l+u-e;if(c>=l)we.copy(Oe,ve);else{Oe.scaleAndAdd(mt,s/Math.tan(Math.PI/2-c));var f=ve.x!==re.x?(Oe.x-re.x)/(ve.x-re.x):(Oe.y-re.y)/(ve.y-re.y);if(isNaN(f))return;f<0?we.copy(Oe,re):f>1&&we.copy(Oe,ve)}Oe.toArray(r[1])}}}}function go(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function bS(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=Xl(a[0],a[1]),i=Xl(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=Fi([],a[1],a[0],o/n),l=Fi([],a[1],a[2],o/i),u=Fi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function Rd(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<Gn.length;l++){var u=Gn[l],c=t[u],f=u==="normal";if(c){var h=c.get("show"),v=f?s:ae(n.states[u]&&n.states[u].ignore,s);if(v||!ae(h,o)){var d=f?a:a&&a.states[u];d&&(d.ignore=!0),a&&go(a,!0,u,c);continue}a||(a=new Na,r.setTextGuideLine(a),!f&&(s||!o)&&go(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),go(a,!1,u,c)}}if(a){j(a.style,e),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=bS}}function Nd(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<nt.length;a++){var n=nt[a];e[n]=r.getModel([n,t])}return e}function Od(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Nn(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function Bd(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(T,M){return T.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var h=r[f],v=h.rect;l=v[t]-s,l<0&&(v[t]-=l,h.label[t]-=l,u=!0);var d=Math.max(-l,0);c+=d,s=v[t]+v[e]}c>0&&i&&S(-c/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),x(m,y,1),x(y,m,-1),_(),m<0&&A(-m),y<0&&A(y);function _(){m=p.rect[t]-a,y=n-g.rect[t]-g.rect[e]}function x(T,M,C){if(T<0){var D=Math.min(M,-T);if(D>0){S(D*C,0,o);var I=D+T;I<0&&w(-I*C,1)}else w(-T*C,1)}}function S(T,M,C){T!==0&&(u=!0);for(var D=M;D<C;D++){var I=r[D],L=I.rect;L[t]+=T,I.label[t]+=T}}function w(T,M){for(var C=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,k=Math.max(r[I].rect[t]-L[t]-L[e],0);C.push(k),D+=k}if(D){var P=Math.min(Math.abs(T)/D,M);if(T>0)for(var I=0;I<o-1;I++){var E=C[I]*P;S(E,0,I+1)}else for(var I=o-1;I>0;I--){var E=C[I-1]*P;S(-E,I,o)}}}function A(T){var M=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(M>0?S(C,0,D+1):S(-C,o-D-1,o),T-=C,T<=0)return}return u}function AS(r,t,e,a){return Bd(r,"x","width",t,e,a)}function Gd(r,t,e,a){return Bd(r,"y","height",t,e,a)}function Vd(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new Pe(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var f=i.obb,h=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){h=!0;break}if(d.obb||(d.obb=new Nn(d.localRect,d.transform)),f||(f=new Nn(s,l)),f.intersect(d.obb)){h=!0;break}}}h?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function TS(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function CS(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:TS(a&&a.shape.points)}}var Ic=["align","verticalAlign","width","height","fontSize"],Ee=new Mr,mo=ie(),DS=ie();function hn(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var dn=["x","y","rotation"],MS=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();Pe.applyTransform(c,c,u),u?Ee.setLocalTransform(u):(Ee.x=Ee.y=Ee.rotation=Ee.originX=Ee.originY=0,Ee.scaleX=Ee.scaleY=1),Ee.rotation=la(Ee.rotation);var f=n.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var v=f.getComputedTransform();Pe.applyTransform(h,h,v)}var d=h&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ee.x,y:Ee.y,scaleX:Ee.scaleX,scaleY:Ee.scaleY,rotation:Ee.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");($(n)||Xe(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=K(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,x){return function(){Mc(_,x)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;$(o.layoutOption)?c=o.layoutOption(CS(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=W(c.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=W(c.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:c.labelLinePoints}),h=!1)}var d=mo(s);d.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Ic.length;p++){var g=Ic[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",n(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=Od(this._labelList),i=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=pe(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});AS(i,0,e),Gd(o,0,a);var s=pe(n,function(l){return l.layoutOption.hideOverlap});Vd(s)},r.prototype.processLabelsOverall=function(){var t=this;b(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=mo(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=K(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");Rd(t,Nd(s),l),Mc(t,f)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Ir(t))){var i=mo(a),o=i.oldLayout,s=K(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(ye(h,"select")>=0&&a.attr(i.oldLayoutSelect),ye(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),ce(a,u,e,l)}else if(a.attr(u),!Fr(a).valueAnimation){var f=ae(a.style.opacity,1);a.style.opacity=0,be(a,{style:{opacity:f}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};hn(v,u,dn),hn(v,a.states.select,dn)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};hn(d,u,dn),hn(d,a.states.emphasis,dn)}Vv(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=DS(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),ce(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,be(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const IS=MS;var yo=ie();function cC(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=yo(e).labelManager;n||(n=yo(e).labelManager=new IS),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=yo(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}const fC=Object.freeze(Object.defineProperty({__proto__:null,Axis:Kt,ChartView:Be,ComponentModel:te,ComponentView:it,List:Pi,Model:me,PRIORITY:zh,SeriesModel:$e,color:Kp,connect:D_,dataTool:R_,dependencies:u_,disConnect:M_,disconnect:qh,dispose:I_,env:le,extendChartView:gS,extendComponentModel:hS,extendComponentView:dS,extendSeriesModel:pS,format:tS,getCoordinateSystemDimensions:P_,getInstanceByDom:xl,getInstanceById:L_,getMap:E_,graphic:eS,helper:$x,init:C_,innerDrawElementOnCanvas:ev,matrix:jp,number:Jx,parseGeoJSON:Tc,parseGeoJson:Tc,registerAction:Zt,registerCoordinateSystem:Jh,registerLayout:Qh,registerLoading:Tl,registerLocale:el,registerMap:ed,registerPostInit:Kh,registerPostUpdate:jh,registerPreprocessor:wl,registerProcessor:bl,registerTheme:Sl,registerTransform:td,registerUpdateLifecycle:Li,registerVisual:qt,setCanvasCreator:k_,setPlatformAPI:tv,throttle:Mi,time:Qx,use:Pt,util:rS,vector:Jp,version:l_,zrUtil:Qp,zrender:eg},Symbol.toStringTag,{value:"Module"}));function Lc(r){return G(r[0])}function Pc(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var LS={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=ig(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function _o(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=vi("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Lc(r)&&(u=r,c=t),Lc(t)&&(u=t,c=r);function f(m,y,_,x,S){var w=m.many,A=m.one;if(w.length===1&&!S){var T=y?w[0]:A,M=y?A:w[0];if(tg(T))f({many:[T],one:M},!0,_,x,!0);else{var C=s?j({delay:s(_,x)},l):l;rg(T,M,C),i(T,M,T,M,C)}}else for(var D=j({dividePath:LS[e],individualDelay:s&&function(O,R,N,B){return s(O+_,x)}},l),I=y?ag(w,A,D):ng(A,w,D),L=I.fromIndividuals,k=I.toIndividuals,P=L.length,E=0;E<P;E++){var C=s?j({delay:s(E,P)},l):l;i(L[E],k[E],y?w[E]:m.one,y?m.one:w[E],C)}}for(var h=u?u===r:r.length>t.length,v=u?Pc(c,u):Pc(h?t:r,[h?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)f(v[p],h,g,d),g+=v[p].many.length}function nr(r){if(!r)return[];if(G(r)){for(var t=[],e=0;e<r.length;e++)t.push(nr(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof Ae&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var Fd=1e4,PS=0,kc=1,Ec=2,kS=ie();function ES(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function RS(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function Rc(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=ES(r,n);if(i){var o=RS(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function Nc(r){var t=[];return b(r,function(e){var a=e.data,n=e.dataGroupId;if(a.count()>Fd){Ce("Universal transition is disabled on large data > 10k.");return}for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:Rc(a,o,n,!1),childGroupId:Rc(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function xo(r,t,e){r.traverse(function(a){a instanceof Ae&&be(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function So(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Cr(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function NS(r,t,e){var a=vi("update",e,t);a&&r.traverse(function(n){if(n instanceof og){var i=mm(n);i&&n.animateFrom({style:i},a)}})}function OS(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function zd(r,t,e){var a=Nc(r),n=Nc(t);function i(_,x,S,w,A){(S||_)&&x.animateFrom({style:S&&S!==_?V(V({},S.style),_.style):_.style},A)}var o=!1,s=PS,l=Z(),u=Z();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=kc;break}var h=n[c].childGroupId;if(h&&l.get(h)){s=Ec;break}}function v(_,x){return function(S){var w=S.data,A=S.dataIndex;return x?w.getId(A):_?s===kc?S.childGroupId:S.groupId:s===Ec?S.childGroupId:S.groupId}}var d=OS(a,n),p={};if(!d)for(var c=0;c<n.length;c++){var g=n[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(_,x){var S=a[x],w=n[_],A=w.data.hostModel,T=S.data.getItemGraphicEl(S.dataIndex),M=w.data.getItemGraphicEl(w.dataIndex);if(T===M){M&&NS(M,w.dataIndex,A);return}T&&p[T.id]||M&&(Cr(M),T?(Cr(T),So(T),o=!0,_o(nr(T),nr(M),w.divide,A,_,i)):xo(M,A,_))}new cs(a,n,v(!0,d),v(!1,d),null,"multiple").update(y).updateManyToOne(function(_,x){var S=n[_],w=S.data,A=w.hostModel,T=w.getItemGraphicEl(S.dataIndex),M=pe(U(x,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==T&&!p[C.id]});T&&(Cr(T),M.length?(b(M,function(C){Cr(C),So(C)}),o=!0,_o(nr(M),nr(T),S.divide,A,_,i)):xo(T,A,S.dataIndex))}).updateOneToMany(function(_,x){var S=a[x],w=S.data.getItemGraphicEl(S.dataIndex);if(!(w&&p[w.id])){var A=pe(U(_,function(M){return n[M].data.getItemGraphicEl(n[M].dataIndex)}),function(M){return M&&M!==w}),T=n[_[0]].data.hostModel;A.length&&(b(A,function(M){return Cr(M)}),w?(Cr(w),So(w),o=!0,_o(nr(w),nr(A),S.divide,T,_[0],i)):b(A,function(M){return xo(M,T,_[0])}))}}).updateManyToMany(function(_,x){new cs(x,_,function(S){return a[S].data.getId(a[S].dataIndex)},function(S){return n[S].data.getId(n[S].dataIndex)}).update(function(S,w){y(_[S],x[w])}).execute()}).execute(),o&&b(t,function(_){var x=_.data,S=x.hostModel,w=S&&e.getViewOfSeriesModel(S),A=vi("update",S,0);w&&S.isAnimationEnabled()&&A&&A.duration>0&&w.group.traverse(function(T){T instanceof Ae&&!T.animators.length&&T.animateFrom({style:{opacity:0}},A)})})}function Oc(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Bc(r){return G(r)?r.sort().join(","):r}function Ut(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function BS(r,t){var e=Z(),a=Z(),n=Z();b(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=Oc(o),f=Bc(c);a.set(f,{dataGroupId:l,data:u}),G(c)&&b(c,function(h){n.set(h,{key:f,dataGroupId:l,data:u})})});function i(o){e.get(o)&&Ce("Duplicated seriesKey in universalTransition "+o)}return b(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=Oc(o),c=Bc(u),f=a.get(c);if(f)i(c),e.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ut(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Ut(l),data:l}]});else if(G(u)){i(c);var h=[];b(u,function(p){var g=a.get(p);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Ut(g.data),data:g.data})}),h.length&&e.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:Ut(l)}]})}else{var v=n.get(u);if(v){var d=e.get(v.key);d||(d={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Ut(v.data)}],newSeries:[]},e.set(v.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Ut(l)})}}}}),e}function Gc(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function GS(r,t,e,a){var n=[],i=[];b(xe(r.from),function(o){var s=Gc(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ut(t.oldData[s]),groupIdDim:o.dimension})}),b(xe(r.to),function(o){var s=Gc(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ut(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&zd(n,i,a)}function vC(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){b(xe(a.seriesTransition),function(n){b(xe(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Mn]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=kS(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)b(xe(i),function(v){GS(v,n,a,e)});else{var o=BS(n,a);b(o.keys(),function(v){var d=o.get(v);zd(d.oldSeries,d.newSeries,e)})}b(a.updatedSeries,function(v){v[Mn]&&(v[Mn]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<Fd&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}function hC(r){r.registerPainter("canvas",sg)}var VS=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){{var a=e.coordinateSystem;if(a!=="polar"&&a!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Ei(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new Se,n=Lt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Lt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.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},t}($e);const FS=VS;function El(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Br(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Br(r,t,e[o]));return i.join(" ")}}function Hd(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!G(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var zS=function(r){F(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=Lt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=HS,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Vn(this.childAt(0))},t.prototype.downplay=function(){Fn(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,f)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ce(h,v,s,a),$s(h)}if(this._updateCommon(e,a,l,n,i),u){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,be(h,v,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,c,f,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Ua(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Eh(e.getItemVisual(a,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var w=e.getItemVisual(a,"style"),A=w.fill;if(s instanceof gr){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(V({},w)):s.useStyle(w),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(a,"liftZ"),C=this._z2;M!=null?C==null&&(this._z2=s.z2,s.z2+=M):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Wa(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:w.opacity});function I(P){return D?e.getName(P):El(e,P)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*k,L.scaleY=this._sizeY*k,this.setSymbolScale(1),fr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=K(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&hr(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();hr(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return r_(e.getItemVisual(a,"symbolSize"))},t}(Se);function HS(r,t){this.parent.drift(r,t)}const Bi=zS;function wo(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Vc(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function Fc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ua(t),cursorStyle:t.get("cursor")}}var WS=function(){function r(t){this.group=new Se,this._SymbolCtor=t||Bi}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vc(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Fc(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||a.removeAll(),t.diff(i).add(function(f){var h=c(f);if(wo(t,h,f,e)){var v=new o(t,f,l,u);v.setPosition(h),t.setItemGraphicEl(f,v),a.add(v)}}).update(function(f,h){var v=i.getItemGraphicEl(h),d=c(f);if(!wo(t,d,f,e)){a.remove(v);return}var p=t.getItemVisual(f,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)a.remove(v),v=new o(t,f,l,u),v.setPosition(d);else{v.updateData(t,f,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):ce(v,m,n)}a.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Fc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Vc(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(wo(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){gi(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();const US=WS;function Wd(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=YS(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=U(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Xt(t,f[0])&&(h=!0,f[0]=v),Xt(t,f[1])&&(h=!0,f[1]=v),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function YS(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:ue(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Ud(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function $S(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function XS(r,t,e,a,n,i,o,s){for(var l=$S(r,t),u=[],c=[],f=[],h=[],v=[],d=[],p=[],g=Wd(n,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,w=void 0,A=void 0;switch(x.cmd){case"=":w=x.idx*2,A=x.idx1*2;var T=m[w],M=m[w+1],C=y[A],D=y[A+1];(isNaN(T)||isNaN(M))&&(T=C,M=D),u.push(T,M),c.push(C,D),f.push(e[w],e[w+1]),h.push(a[A],a[A+1]),p.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,k=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);A=I*2,u.push(k[0],k[1]),c.push(y[A],y[A+1]);var P=Ud(g,n,t,I);f.push(P[0],P[1]),h.push(a[A],a[A+1]),p.push(t.getRawIndex(I));break;case"-":S=!1}S&&(v.push(x),d.push(d.length))}d.sort(function(Te,fe){return p[Te]-p[fe]});for(var E=u.length,O=Tt(E),R=Tt(E),N=Tt(E),B=Tt(E),z=[],_=0;_<d.length;_++){var X=d[_],J=_*2,ne=X*2;O[J]=u[ne],O[J+1]=u[ne+1],R[J]=c[ne],R[J+1]=c[ne+1],N[J]=f[ne],N[J+1]=f[ne+1],B[J]=h[ne],B[J+1]=h[ne+1],z[_]=v[X]}return{current:O,next:R,stackedOnCurrent:N,stackedOnNext:B,status:z}}var Ft=Math.min,zt=Math.max;function lr(r,t){return isNaN(r)||isNaN(t)}function ds(r,t,e,a,n,i,o,s,l){for(var u,c,f,h,v,d,p=e,g=0;g<a;g++){var m=t[p*2],y=t[p*2+1];if(p>=n||p<0)break;if(lr(m,y)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](m,y),f=m,h=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){p+=i;continue}if(o>0){for(var S=p+i,w=t[S*2],A=t[S*2+1];w===m&&A===y&&g<a;)g++,S+=i,p+=i,w=t[S*2],A=t[S*2+1],m=t[p*2],y=t[p*2+1],_=m-u,x=y-c;var T=g+1;if(l)for(;lr(w,A)&&T<a;)T++,S+=i,w=t[S*2],A=t[S*2+1];var M=.5,C=0,D=0,I=void 0,L=void 0;if(T>=a||lr(w,A))v=m,d=y;else{C=w-u,D=A-c;var k=m-u,P=w-m,E=y-c,O=A-y,R=void 0,N=void 0;if(s==="x"){R=Math.abs(k),N=Math.abs(P);var B=C>0?1:-1;v=m-B*R*o,d=y,I=m+B*N*o,L=y}else if(s==="y"){R=Math.abs(E),N=Math.abs(O);var z=D>0?1:-1;v=m,d=y-z*R*o,I=m,L=y+z*N*o}else R=Math.sqrt(k*k+E*E),N=Math.sqrt(P*P+O*O),M=N/(N+R),v=m-C*o*(1-M),d=y-D*o*(1-M),I=m+C*o*M,L=y+D*o*M,I=Ft(I,zt(w,m)),L=Ft(L,zt(A,y)),I=zt(I,Ft(w,m)),L=zt(L,Ft(A,y)),C=I-m,D=L-y,v=m-C*R/N,d=y-D*R/N,v=Ft(v,zt(u,m)),d=Ft(d,zt(c,y)),v=zt(v,Ft(u,m)),d=zt(d,Ft(c,y)),C=m-v,D=y-d,I=m+C*N/R,L=y+D*N/R}r.bezierCurveTo(f,h,v,d,m,y),f=I,h=L}else r.lineTo(m,y)}u=m,c=y,p+=i}return g}var Yd=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ZS=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yd},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&lr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&lr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=ds(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=rv.CMD,s,l,u=a==="x",c=[],f=0;f<i.length;){var h=i[f++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(h){case o.M:s=i[f++],l=i[f++];break;case o.L:if(v=i[f++],d=i[f++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(v-s)*_+s;return u?[e,x]:[x,e]}s=v,l=d;break;case o.C:v=i[f++],d=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var S=u?Zl(s,v,p,m,e,c):Zl(l,d,g,y,e,c);if(S>0)for(var w=0;w<S;w++){var A=c[w];if(A<=1&&A>=0){var x=u?ql(l,d,g,y,A):ql(s,v,p,m,A);return u?[e,x]:[x,e]}}s=m,l=y;break}}},t}(Ae),qS=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Yd),KS=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new qS},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&lr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&lr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=ds(e,n,o,s,s,1,a.smooth,l,a.connectNulls);ds(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Ae);function $d(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new De({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=$(n)?function(g){n(g,f)}:null;be(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return f}function Xd(r,t,e){var a=r.getArea(),n=he(a.r0,1),i=he(a.r,1),o=new tt({shape:{cx:he(r.cx,1),cy:he(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,be(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function jS(r,t,e,a,n){if(r){if(r.type==="polar")return Xd(r,t,e);if(r.type==="cartesian2d")return $d(r,t,e,a,n)}else return null;return null}function Rl(r,t){return r.type===t}function zc(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Hc(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function Wc(r,t){var e=Hc(r),a=e[0],n=e[1],i=Hc(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Uc(r){return ue(r)?r:r?.5:0}function JS(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=Tt(a*2),i=0;i<a;i++){var o=Ud(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Ht(r,t,e,a){var n=t.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&f.push(r[s],r[s+1]);r=f}for(s=0;s<r.length-2;s+=2)switch(c[0]=r[s+2],c[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var h=(u[i]+c[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=c[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function QS(r,t){var e=[],a=r.length,n,i;function o(c,f,h){var v=c.coord,d=(h-v)/(f.coord-v),p=lg(d,[c.color,f.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function ew(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())){if(t.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!i){console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(n),u=U(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=QS(u,n==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";b(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:f[0]||"transparent"});var y=new Is(0,0,0,0,h,!0);return y[n]=p,y[n+"2"]=g,y}}function tw(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&rw(i,t))){var o=t.mapDimension(i.dim),s={};return b(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function rw(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Bi.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function aw(r,t){return isNaN(r)||isNaN(t)}function nw(r){for(var t=r.length/2;t>0&&aw(r[t*2-2],r[t*2-1]);t--);return t-1}function Yc(r,t){return[r[t*2],r[t*2+1]]}function iw(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Zd(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<nt.length;t++)if(r.get([nt[t],"endLabel","show"]))return!0;return!1}function bo(r,t,e,a){if(Rl(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=Zd(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=$d(t,e,a,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return a.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Xd(t,e,a)}function ow(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var sw=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Se,a=new US;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),c=e.getModel("areaStyle"),f=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=!a.ssr&&e.get("animation"),_=!c.isEmpty(),x=c.get("origin"),S=Wd(o,l,x),w=_&&JS(o,l,S),A=e.get("showSymbol"),T=e.get("connectNulls"),M=A&&!h&&tw(e,l,o),C=this._data;C&&C.eachItemGraphicEl(function(fe,Rt){fe.__temp&&(s.remove(fe),C.setItemGraphicEl(Rt,null))}),A||d.remove(),s.add(m);var D=h?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=ew(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&D===this._step))A&&d.updateData(l,{isIgnore:M,clipShape:I,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,I),D&&(f=Ht(f,o,D,T),w&&(w=Ht(w,o,D,T))),p=this._newPolyline(f),_?g=this._newPolygon(f,w):g&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,dr(L)),m.setClipPath(bo(this,o,!0,e));else{_&&!g?g=this._newPolygon(f,w):g&&!_&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,dr(L));var k=m.getClipPath();if(k){var P=bo(this,o,!1,e);be(k,{shape:P.shape},e)}else m.setClipPath(bo(this,o,!0,e));A&&d.updateData(l,{isIgnore:M,clipShape:I,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),(!zc(this._stackedOnPoints,w)||!zc(this._points,f))&&(y?this._doUpdateAnimation(l,w,o,n,D,x,T):(D&&(f=Ht(f,o,D,T),w&&(w=Ht(w,o,D,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:w})))}var E=e.getModel("emphasis"),O=E.get("focus"),R=E.get("blurScope"),N=E.get("disabled");if(p.useStyle(j(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),vr(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=p.getState("emphasis").style;B.lineWidth=+p.style.lineWidth+1}K(p).seriesIndex=e.seriesIndex,fr(p,O,R,N);var z=Uc(e.get("smooth")),X=e.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:X,connectNulls:T}),g){var J=l.getCalculationInfo("stackedOnSeries"),ne=0;g.useStyle(j(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(ne=Uc(J.get("smooth"))),g.setShape({smooth:z,stackedOnSmooth:ne,smoothMonotone:X,connectNulls:T}),vr(g,e,"areaStyle"),K(g).seriesIndex=e.seriesIndex,fr(g,O,R,N)}var Te=function(fe){i._changePolyState(fe)};l.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=Te)}),this._polyline.onHoverStateChange=Te,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=f,this._step=D,this._valueOrigin=x,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){K(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=cr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new Bi(o,s),u.x=c,u.y=f,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Be.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=cr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Be.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Uo(this._polyline,e),a&&Uo(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new ZS({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new KS({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=$(f)?f(null):f;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=a.pointToCoord(g);i?(m=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(m=x.r0,y=x.r,_=S[0])}else{var w=n;i?(m=w.x,y=w.x+w.width,_=v.x):(m=w.y+w.height,y=w.y,_=v.y)}var A=y===m?0:(_-m)/(y-m);l&&(A=1-A);var T=$(f)?f(d):c*A+h,M=p.getSymbolPath(),C=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(Zd(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ge({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=nw(l);c>=0&&(Wa(s,Ua(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(f,h,v){return v!=null?Hd(o,v):El(o,f)},enableTextSetter:!0},ow(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=a.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?p:0)*(y?-1:1),w=(m?0:-p)*(y?-1:1),A=m?"x":"y",T=iw(f,x,A),M=T.range,C=M[1]-M[0],D=void 0;if(C>=1){if(C>1&&!v){var I=Yc(f,M[0]);u.attr({x:I[0]+S,y:I[1]+w}),o&&(D=h.getRawValue(M[0]))}else{var I=c.getPointOn(x,A);I&&u.attr({x:I[0]+S,y:I[1]+w});var L=h.getRawValue(M[0]),k=h.getRawValue(M[1]);o&&(D=dv(n,d,L,k,T.t))}i.lastFrameIndex=M[0]}else{var P=e===1||i.lastFrameIndex>0?M[0]:0,I=Yc(f,P);o&&(D=h.getRawValue(P)),u.attr({x:I[0]+S,y:I[1]+w})}if(o){var E=Fr(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,h=XS(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(v=Ht(h.current,n,o,l),d=Ht(h.stackedOnCurrent,n,o,l),p=Ht(h.next,n,o,l),g=Ht(h.stackedOnNext,n,o,l)),Wc(v,p)>3e3||c&&Wc(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),ce(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:d}),c.stopAnimation(),ce(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=h.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var w=e.getItemGraphicEl(_[x].idx1);w&&y.push({el:w,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,T=0;T<y.length;T++){var M=y[T].el,C=y[T].ptIdx*2;M.x=A[C],M.y=A[C+1],M.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Be);const lw=sw;function uw(r,t){return{seriesType:r,plan:pl(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=U(n.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Xt(a,s[0])&&(s[0]=u),Xt(a,s[1])&&(s[1]=u);var c=a.getStore(),f=a.getDimensionIndex(s[0]),h=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&Tt(p*l),m=[],y=[],_=v.start,x=0;_<v.end;_++){var S=void 0;if(l===1){var w=c.get(f,_);S=n.dataToPoint(w,null,y)}else m[0]=c.get(f,_),m[1]=c.get(h,_),S=n.dataToPoint(m,null,y);o?(g[x++]=S[0],g[x++]=S[1]):d.setItemLayout(_,S.slice())}o&&d.setLayout("points",g)}}}}}}var cw={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},minmax:function(r){for(var t=-1/0,e=-1/0,a=0;a<r.length;a++){var n=r[a],i=Math.abs(n);i>t&&(t=i,e=n)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},fw=function(r){return Math.round(r.length/2)};function qd(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v));var d=void 0;H(i)?d=cw[i]:$(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,fw))}}}}}function dC(r){r.registerChartView(lw),r.registerSeriesModel(FS),r.registerLayout(uw("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,qd("line"))}var Kd=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Ei(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)b(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=a[v]==="x1"||a[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<d.length;S++){var w=d[S].coord,A=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(A===g){_=w;break}else if(A<g)y=w;else if(y!=null&&A>g){_=(w+y)/2;break}S===1&&(x=A-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($e);$e.registerClass(Kd);const $c=Kd;var vw=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ei(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Hv($c.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}),t}($c);const hw=vw;var dw=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),pw=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new dw},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?f-c<v:c-f<v;d||(c=f-(h?v:-v));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);d?(e.moveTo(p*o+n,g*o+i),e.arc(p*u+n,g*u+i,l,-Math.PI+c,c,!h)):e.moveTo(p*s+n,g*s+i),e.arc(n,i,s,c,f,!h),e.arc(m*u+n,y*u+i,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&e.arc(n,i,o,f,c,h)},t}(Ae);const ri=pw;function gw(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Vo(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=e?Math.abs(h-v)/2:0,_=Math.cos,x=Math.sin,S=c+h*_(p),w=f+h*x(p),A="left",T="top";switch(s){case"startArc":S=c+(v-l)*_(m),w=f+(v-l)*x(m),A="center",T="top";break;case"insideStartArc":S=c+(v+l)*_(m),w=f+(v+l)*x(m),A="center",T="bottom";break;case"startAngle":S=c+d*_(p)+pn(p,l+y,!1),w=f+d*x(p)+gn(p,l+y,!1),A="right",T="middle";break;case"insideStartAngle":S=c+d*_(p)+pn(p,-l+y,!1),w=f+d*x(p)+gn(p,-l+y,!1),A="left",T="middle";break;case"middle":S=c+d*_(m),w=f+d*x(m),A="center",T="middle";break;case"endArc":S=c+(h+l)*_(m),w=f+(h+l)*x(m),A="center",T="bottom";break;case"insideEndArc":S=c+(h-l)*_(m),w=f+(h-l)*x(m),A="center",T="top";break;case"endAngle":S=c+d*_(g)+pn(g,l+y,!0),w=f+d*x(g)+gn(g,l+y,!0),A="left",T="middle";break;case"insideEndAngle":S=c+d*_(g)+pn(g,-l+y,!0),w=f+d*x(g)+gn(g,-l+y,!0),A="right",T="middle";break;default:return Vo(a,n,i)}return a=a||{},a.x=S,a.y=w,a.align=A,a.verticalAlign=T,a}}function mw(r,t,e,a){if(ue(a)){r.setTextConfig({rotation:a});return}else if(G(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function pn(r,t,e){return t*Math.sin(r)*(e?-1:1)}function gn(r,t,e){return t*Math.cos(r)*(e?1:-1)}function va(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;G(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:U(a,function(i){return zo(i,n)})}}var Ao=Math.max,To=Math.min;function yw(r,t){var e=r.getArea&&r.getArea();if(Rl(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var _w=function(r){F(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i)):Ce("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=xw(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,p=yw(u,s);o.removeClipPath();var g=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,w=i&&i.isInitSort,A=i&&i.type==="changeAxisOrder";function T(D){var I=mn[u.type](s,D),L=Dw(u,f,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),x[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=mn[u.type](s,D,I);if(m&&T(D),!(!s.hasValue(D)||!jc[u.type](L))){var k=!1;d&&(k=Xc[u.type](p,L));var P=Zc[u.type](e,s,D,L,f,h,c.model,!1,g);v&&(P.forceLabelAnimation=!0),Jc(P,s,D,I,L,e,f,u.type==="polar"),w?P.attr({shape:L}):v?qc(v,h,P,L,D,f,!1,!1):be(P,{shape:L},e,D),s.setItemGraphicEl(D,P),o.add(P),P.ignore=k}}).update(function(D,I){var L=s.getItemModel(D),k=mn[u.type](s,D,L);if(m){var P=void 0;S.length===0?P=T(I):(P=S[I],P.useStyle(y.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),x[D]=P);var E=mn[u.type](s,D),O=Jd(f,E,u);ce(P,{shape:O},h,D)}var R=l.getItemGraphicEl(I);if(!s.hasValue(D)||!jc[u.type](k)){o.remove(R);return}var N=!1;if(d&&(N=Xc[u.type](p,k),N&&o.remove(R)),R?$s(R):R=Zc[u.type](e,s,D,k,f,h,c.model,!!R,g),v&&(R.forceLabelAnimation=!0),A){var B=R.getTextContent();if(B){var z=Fr(B);z.prevValue!=null&&(z.prevValue=z.value)}}else Jc(R,s,D,L,k,e,f,u.type==="polar");w?R.attr({shape:k}):v?qc(v,h,R,k,D,f,!0,A):ce(R,{shape:k},e,D,null),s.setItemGraphicEl(D,R),R.ignore=N,o.add(R)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Hn(I,e,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Se);M.removeAll();for(var C=0;C<x.length;++C)M.add(x[C]);o.add(M),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),ef(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),ef(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&jS(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Hn(i,e,K(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Be),Xc={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Ao(t.x,r.x),s=To(t.x+t.width,n),l=Ao(t.y,r.y),u=To(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>n?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=To(t.r,r.r),i=Ao(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},Zc={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new De({shape:V({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?ri:tt,c=new u({shape:a,z2:1});c.name="item";var f=jd(n);if(c.calculateTextPosition=gw(f,{isRoundCap:u===ri}),i){var h=c.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?ce:be)(c,{shape:d},i)}return c}};function xw(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&(a.type!=="category"&&Ce("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Ce("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function qc(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?ce:be)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?ce:be)(e,{shape:u},c,n)}function Kc(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var Sw=["x","y","width","height"],ww=["cx","cy","r","startAngle","endAngle"],jc={cartesian2d:function(r){return!Kc(r,Sw)},polar:function(r){return!Kc(r,ww)}},mn={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?Aw(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function bw(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function jd(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function Jc(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,f=va(a.getModel("itemStyle"),c,!0);V(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Ua(a);Wa(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:El(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,mw(r,g==="outside"?v:g,jd(o),a.get(["label","rotate"]))}Gv(p,d,i.getRawValue(e),function(y){return Hd(t,y)});var m=a.getModel(["emphasis"]);fr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),vr(r,a),bw(n)&&(r.style.fill="none",r.style.stroke="none",b(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Aw(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var Tw=function(){function r(){}return r}(),Qc=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new Tw},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(Ae);function ef(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new Qc({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var f=new Qc({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(n.getVisual("style")),K(f).seriesIndex=r.seriesIndex,r.get("silent")||(f.on("mousedown",tf),f.on("mousemove",tf)),e&&e.push(f)}var tf=Mi(function(r){var t=this,e=Cw(t,r.offsetX,r.offsetY);K(t).dataIndex=e>=0?e:null},30,!1);function Cw(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=i.length/3;c<f;c++){var h=c*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function Jd(r,t,e){if(Rl(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Dw(r,t,e){var a=r.type==="polar"?tt:De;return new a({shape:Jd(t,e,r),silent:!0,z2:0})}const Mw=_w;function pC(r){r.registerChartView(Mw),r.registerSeriesModel(hw),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,oe(mx,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yx("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,qd("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var rf=Math.PI*2,yn=Math.PI/180;function Qd(r,t){return pr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ep(r,t){var e=Qd(r,t),a=r.get("center"),n=r.get("radius");G(n)||(n=[0,n]);var i=W(e.width,t.getWidth()),o=W(e.height,t.getHeight()),s=Math.min(i,o),l=W(n[0],s/2),u=W(n[1],s/2),c,f,h=r.coordinateSystem;if(h){var v=h.dataToPoint(a);c=v[0]||0,f=v[1]||0}else G(a)||(a=[a,a]),c=W(a[0],i)+e.x,f=W(a[1],o)+e.y;return{cx:c,cy:f,r0:l,r:u}}function Iw(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=Qd(a,e),s=ep(a,e),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-a.get("startAngle")*yn,v=a.get("endAngle"),d=a.get("padAngle")*yn;v=v==="auto"?h-rf:-v*yn;var p=a.get("minAngle")*yn,g=p+d,m=0;n.each(i,function(O){!isNaN(O)&&m++});var y=n.getSum(i),_=Math.PI/(y||m)*2,x=a.get("clockwise"),S=a.get("roseType"),w=a.get("stillShowZeroSum"),A=n.getDataExtent(i);A[0]=0;var T=x?1:-1,M=[h,v],C=T*d/2;av(M,!x),h=M[0],v=M[1];var D=tp(a);D.startAngle=h,D.endAngle=v,D.clockwise=x;var I=Math.abs(v-h),L=I,k=0,P=h;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(O,R){var N;if(isNaN(O)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?N=y===0&&w?_:O*_:N=I/m,N<g?(N=g,L-=g):k+=O;var B=P+T*N,z=0,X=0;d>N?(z=P+T*N/2,X=z):(z=P+C,X=B-C),n.setItemLayout(R,{angle:N,startAngle:z,endAngle:X,clockwise:x,cx:l,cy:u,r0:f,r:S?pt(O,A,[f,c]):c}),P=B}),L<rf&&m)if(L<=.001){var E=I/m;n.each(i,function(O,R){if(!isNaN(O)){var N=n.getItemLayout(R);N.angle=E;var B=0,z=0;E<d?(B=h+T*(R+1/2)*E,z=B):(B=h+T*R*E+C,z=h+T*(R+1)*E-C),N.startAngle=B,N.endAngle=z}})}else _=L/k,P=h,n.each(i,function(O,R){if(!isNaN(O)){var N=n.getItemLayout(R),B=N.angle===g?g:O*_,z=0,X=0;B<d?(z=P+T*B/2,X=z):(z=P+C,X=P+T*B-C),N.startAngle=z,N.endAngle=X,P+=T*B}})})}var tp=ie();function Lw(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var Pw=Math.PI/180;function af(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],x=Math.abs(_.label.y-e),S=a+_.len,w=S*S,A=Math.sqrt((1-Math.abs(x*x/m))*w),T=t+(A+_.len2)*n,M=T-_.label.x,C=_.targetTextWidth-M*n;rp(_,C,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],x=_.label.y>e?m:g,S=Math.abs(_.label.y-e);if(S>=x.maxY){var w=_.label.x-t-_.len2*n,A=a+_.len,T=Math.abs(w)<A?Math.sqrt(S*S/(1-w*w/A/A)):A;x.rB=T,x.maxY=S}x.list.push(_)}c(g),c(m)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}Gd(r,l,l+o)&&f(r)}function kw(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;Co(r[h])||(v.x<t?(c=Math.min(c,v.x),l.push(r[h])):(f=Math.max(f,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!Co(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=c-o-d.bleedMargin:g=o+n-f-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+n-v.x-d.bleedMargin,d.targetTextWidth=g,rp(d,g)}}af(u,t,e,a,1,n,i,o,s,f),af(l,t,e,a,-1,n,i,o,s,c);for(var h=0;h<r.length;h++){var d=r[h];if(!Co(d)&&d.linePoints){var v=d.label,p=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,x=v.style.backgroundColor?0:_,S=d.rect.width+x,w=p[1][0]-p[2][0];m?v.x<t?p[2][0]=o+d.edgeDistance+S+d.labelDistance:p[2][0]=o+n-d.edgeDistance-S-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=v.y}}}function rp(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){var f=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var h=a.getBoundingRect();a.setStyle("width",Math.ceil(h.width)),a.setStyle("backgroundColor",o)}else{var v=t-l,d=t<c?v:e?v>r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function Co(r){return r.position==="center"}function Ew(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Pw,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var A in w.states)if(w.states[A].ignore===!1)return!0;return!1}t.each(function(w){var A=t.getItemGraphicEl(w),T=A.shape,M=A.getTextContent(),C=A.getTextGuideLine(),D=t.getItemModel(w),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),P=I.get("alignTo"),E=W(I.get("edgeDistance"),u),O=I.get("bleedMargin"),R=D.getModel("labelLine"),N=R.get("length");N=W(N,u);var B=R.get("length2");if(B=W(B,u),Math.abs(T.endAngle-T.startAngle)<o){b(M.states,v),M.ignore=!0,C&&(b(C.states,v),C.ignore=!0);return}if(d(M)){var z=(T.startAngle+T.endAngle)/2,X=Math.cos(z),J=Math.sin(z),ne,Te,fe,Rt;a=T.cx,n=T.cy;var Nt=L==="inside"||L==="inner";if(L==="center")ne=T.cx,Te=T.cy,Rt="center";else{var Ur=(Nt?(T.r+T.r0)/2*X:T.r*X)+a,Yr=(Nt?(T.r+T.r0)/2*J:T.r*J)+n;if(ne=Ur+X*3,Te=Yr+J*3,!Nt){var qa=Ur+X*(N+l-T.r),Ka=Yr+J*(N+l-T.r),ja=qa+(X<0?-1:1)*B,jt=Ka;P==="edge"?ne=X<0?c+E:c+u-E:ne=ja+(X<0?-k:k),Te=jt,fe=[[Ur,Yr],[qa,Ka],[ja,jt]]}Rt=Nt?"center":P==="edge"?X>0?"right":"left":X>0?"left":"right"}var Ot=Math.PI,bt=0,$r=I.get("rotate");if(ue($r))bt=$r*(Ot/180);else if(L==="center")bt=0;else if($r==="radial"||$r===!0){var Lp=X<0?-z+Ot:-z;bt=Lp}else if($r==="tangential"&&L!=="outside"&&L!=="outer"){var yr=Math.atan2(X,J);yr<0&&(yr=Ot*2+yr);var Pp=J>0;Pp&&(yr=Ot+yr),bt=yr-Ot}if(i=!!bt,M.x=ne,M.y=Te,M.rotation=bt,M.setStyle({verticalAlign:"middle"}),Nt){M.setStyle({align:Rt});var Gi=M.states.select;Gi&&(Gi.x+=M.x,Gi.y+=M.y)}else{var Xr=M.getBoundingRect().clone();Xr.applyTransform(M.getComputedTransform());var Wl=(M.style.margin||0)+2.1;Xr.y-=Wl/2,Xr.height+=Wl,e.push({label:M,labelLine:C,position:L,len:N,len2:B,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new we(X,J),linePoints:fe,textAlign:Rt,labelDistance:k,labelAlignTo:P,edgeDistance:E,bleedMargin:O,rect:Xr,unconstrainedWidth:Xr.width,labelStyleWidth:M.style.width})}A.setTextConfig({inside:Nt})}}),!i&&r.get("avoidLabelOverlap")&&kw(e,a,n,l,u,h,c,f);for(var p=0;p<e.length;p++){var g=e[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(b(m.states,v),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(y){var S=g.linePoints;_||!S?(b(y.states,v),y.ignore=!0):(Ed(S,g.minTurnAngle),wS(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new we(S[0][0],S[0][1])})}}}var Rw=function(r){F(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new ge;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),f=V(va(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(be(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,be(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),be(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,ce(o,{shape:{endAngle:c.endAngle}},s,a))}else $s(o),ce(o,{shape:f},s,a);o.useStyle(e.getItemVisual(a,"style")),vr(o,l);var v=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=V({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},va(u.getModel("itemStyle"),c)),V(o.ensureState("select"),{x:p,y:g,shape:va(l.getModel(["select","itemStyle"]),c)}),V(o.ensureState("blur"),{shape:va(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&V(y.ensureState("select"),{x:p,y:g}),V(_.ensureState("select"),{x:p,y:g}),fr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;Wa(i,Ua(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Na,this.setTextGuideLine(v)),Rd(this,Nd(o),{stroke:u,opacity:Ps(s.get(["lineStyle","opacity"]),c,1)})}},t}(tt),Nw=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=tp(e),v=new tt({shape:V(ep(e,n),h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new Rw(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Hn(p,e,d)}).execute(),Ew(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Be);const Ow=Nw;function ap(r,t,e){t=G(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=ki(a,t).dimensions,i=new Pi(n,r);return i.initData(a,e),i}var Bw=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Gw=Bw;var Vw=ie(),Fw=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gw(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ap(this,{coordDimensions:["value"],encodeDefaulter:oe(ay,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=Vw(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=sv(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ho(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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"},t}($e);const zw=Fw;function Hw(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(ue(o)&&!isNaN(o)&&o<0)})}}}function gC(r){r.registerChartView(Ow),r.registerSeriesModel(zw),$0("pie",r.registerAction),r.registerLayout(oe(Iw,"pie")),r.registerProcessor(Lw("pie")),r.registerProcessor(Hw("pie"))}var Ww=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(te);const Uw=Ww;var ps=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ye).models[0]},t.type="cartesian2dAxis",t}(te);St(ps,kl);var np={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)"]}}},Yw=se({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},np),Nl=se({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}}},np),$w=se({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nl),Xw=j({logBase:10},Nl);const Zw={category:Yw,value:Nl,time:$w,log:Xw};var qw={value:1,category:1,time:1,log:1};function ai(r,t,e,a){b(qw,function(n,i){var o=se(se({},Zw[i],!0),a,!0),s=function(l){F(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Ma(this),v=h?bi(c):{},d=f.getTheme();se(c,d.get(i+"Axis")),se(c,this.getDefaultOption()),c.type=nf(c),h&&Or(c,v,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=fs.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",nf)}function nf(r){return r.type||(r.data?"category":"value")}var Kw=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return U(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),pe(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const jw=Kw;var gs=["x","y"];function of(r){return r.type==="interval"||r.type==="time"}var Jw=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=gs,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!of(e)||!of(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-n[0]*c,v=o[1]-i[0]*f,d=this._transform=[c,0,0,f,h,v];this._invTransform=Oa([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Pe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return rt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return rt(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Pe(i,o,s,l)},t}(jw),Qw=function(r){F(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Kt);const eb=Qw;function ms(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,c=a.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[h.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[h[l]]:f[0],u==="x"?d[h[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[h[s]]-d[h.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),$t(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function sf(r){return r.get("coordinateSystem")==="cartesian2d"}function lf(r){var t={xAxisModel:null,yAxisModel:null};return b(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ye).models[0];if(!i)throw new Error(n+' "'+Ps(r.get(n+"Index"),r.get(n+"Id"),0)+'" not found');t[a]=i}),t}var Do=Math.log;function tb(r,t,e){var a=Xa.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=Sd(r,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(r.type==="log"){var h=Do(r.base);u=[Do(u[0])/h,Do(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=a.getExtent.call(r);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(c&&f)d=(g-p)/o;else if(c)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=vo(d),g=u[0]+d*o;else if(f)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=vo(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=vo(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=he(g-y),p<0&&u[0]>=0?(p=0,g=he(y)):g>0&&u[1]<=0&&(g=0,p=-he(y))}var _=(n[0].value-i[0].value)/s,x=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*x),a.setInterval.call(r,d),(_||x)&&a.setNiceExtent.call(r,p+d,g-d);{var S=a.getTicks.call(r);S[1]&&(!ux(d)||On(S[1].value)>On(d))&&Ce("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var rb=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gs,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Xe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],v=o[h],d=v.model,p=v.scale;vs(p)&&d.get("alignTicks")&&d.get("interval")==null?c.push(v):(Pa(p,d),vs(p)&&(s=v))}c.length&&(s||(s=c.pop(),Pa(s.scale,s.model)),b(c,function(g){tb(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};b(a.x,function(o){uf(a,"y",o,i)}),b(a.y,function(o){uf(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=pr(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(b(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Vx(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),b(this._coordsList,function(u){u.calcAffineTransform()});function l(){b(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),ab(u,c?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ye).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ye).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ye(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(c,f){b(s.y,function(h,v){var d="x"+f+"y"+v,p=new Jw(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(c),p.addAxis(h)})});function u(c){return function(f,h){if(Mo(f,t)){var v=f.get("position");c==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new eb(c,Il(f),[0,0],f.get("type"),v),p=d.type==="category";d.onBand=p&&f.get("boundaryGap"),d.inverse=f.get("inverse"),f.axis=d,d.model=f,d.grid=i,d.index=h,i._axesList.push(d),s[c][h]=d,l[c]++}}}},r.prototype._updateScale=function(t,e){b(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(sf(n)){var i=lf(n),o=i.xAxisModel,s=i.yAxisModel;if(!Mo(o,e)||!Mo(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),f=l.getAxis("y");a(u,c),a(u,f)}},this);function a(n,i){b(hs(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return b(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ye(e,i)<0&&e.push(i),ye(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(sf(n)){var i=lf(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();{if(!l)throw new Error('Grid "'+Ps(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=gs,r}();function Mo(r,t){return r.getCoordSysModel()===t}function uf(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)cf(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&cf(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function cf(r){return r&&r.type!=="category"&&r.type!=="time"&&Gx(r)}function ab(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}const nb=rb;var Yt=Math.PI,ur=function(){function r(t,e){this.group=new Se,this.opt=e,this.axisModel=t,j(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Se({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!ff[t]},r.prototype.add=function(t){ff[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=Ns(e-t),i,o;return ba(n)?(o=a>0?"top":"bottom",i="center"):ba(n-Yt)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Yt?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),ff={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(rt(s,s,o),rt(l,l,o));var c=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ze({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ca(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);H(h)&&(h=[h,h]),(H(v)||ue(v))&&(v=[v,v]);var d=Eh(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];b([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(h[y]!=="none"&&h[y]!=null){var _=Lt(h[y],-p/2,-g/2,p,g,c.stroke,!0),x=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+x*Math.cos(r.rotation),y:S[1]-x*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,a){var n=sb(e,a,t,r),i=ub(e,a,t,r);if(ob(t,i,n),lb(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Od(U(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vd(o)}},axisName:function(r,t,e,a){var n=$t(r.axisName,t.get("name"));if(n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,hf(i)?r.labelOffset+o*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*Yt/180);var d;hf(i)?h=ur.innerTextLayout(r.rotation,v??r.rotation,o):(h=ib(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(h.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=$t(r.nameTruncateMaxWidth,g.maxWidth,d),_=new ge({x:f[0],y:f[1],rotation:h.rotation,silent:ur.isLabelSilent(t),style:Qe(s,{text:n,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ks({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var x=ur.makeAxisEventDataBase(t);x.targetType="axisName",x.name=n,K(_).eventData=x}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function ib(r,t,e,a){var n=Ns(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return ba(n-Yt/2)?(o=l?"bottom":"top",i="center"):ba(n-Yt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Yt*1.5&&n>Yt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function ob(r,t,e){if(!wd(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],f=e[e.length-1],h=e[e.length-2];a===!1?(Ke(i),Ke(u)):vf(i,o)&&(a?(Ke(o),Ke(c)):(Ke(i),Ke(u))),n===!1?(Ke(s),Ke(f)):vf(l,s)&&(n?(Ke(l),Ke(h)):(Ke(s),Ke(f)))}}function Ke(r){r&&(r.ignore=!0)}function vf(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=Cs([]);return ks(n,n,-r.rotation),e.applyTransform(Rn([],n,r.getLocalTransform())),a.applyTransform(Rn([],n,t.getLocalTransform())),e.intersect(a)}}function hf(r){return r==="middle"||r==="center"}function ip(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(rt(o,o,t),rt(s,s,t));var c=new ze({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Ca(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c)}return i}function sb(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=ip(u,t.transform,l,j(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)r.add(c[f]);return c}}function lb(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=j(s.getLineStyle(),j(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=ip(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)r.add(f[h])}}function ub(r,t,e,a){var n=e.axis,i=$t(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=($t(a.labelRotate,o.get("rotate"))||0)*Yt/180,c=ur.innerTextLayout(a.rotation,u,a.labelDirection),f=e.getCategories&&e.getCategories(!0),h=[],v=ur.isLabelSilent(e),d=e.get("triggerEvent");return b(l,function(p,g){var m=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,x=o;if(f&&f[m]){var S=f[m];Y(S)&&S.textStyle&&(x=new me(S.textStyle,o,e.ecModel))}var w=x.getTextColor()||e.get(["axisLine","lineStyle","color"]),A=n.dataToCoord(m),T=x.getShallow("align",!0)||c.textAlign,M=ae(x.getShallow("alignMinLabel",!0),T),C=ae(x.getShallow("alignMaxLabel",!0),T),D=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,I=ae(x.getShallow("verticalAlignMinLabel",!0),D),L=ae(x.getShallow("verticalAlignMaxLabel",!0),D),k=new ge({x:A,y:a.labelOffset+a.labelDirection*s,rotation:c.rotation,silent:v,z2:10+(p.level||0),style:Qe(x,{text:y,align:g===0?M:g===l.length-1?C:T,verticalAlign:g===0?I:g===l.length-1?L:D,fill:$(w)?w(n.type==="category"?_:n.type==="value"?m+"":m,g):w})});if(k.anid="label_"+m,d){var P=ur.makeAxisEventDataBase(e);P.targetType="axisLabel",P.value=_,P.tickIndex=g,n.type==="category"&&(P.dataIndex=m),K(k).eventData=P}t.add(k),k.updateTransform(),h.push(k),r.add(k),k.decomposeTransform()}),h}}const Vr=ur;function cb(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fb(e,r,t),e.seriesInvolved&&hb(e,r),e}function fb(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];b(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ea(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(b(s.getAxes(),oe(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var h=f.get("trigger")==="axis",v=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||v)&&b(d.baseAxes,oe(p,v?"cross":!0,h)),v&&b(d.otherAxes,oe(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!g&&!ys(_))){m==null&&(m=_.get("triggerTooltip")),_=g?vb(y,f,n,t,g,m):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),A=Ea(y.model),T=m||S||y.type==="category",M=r.axesInfo[A]={key:A,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:T,snap:S,useHandle:ys(_),seriesModels:[],linkGroup:null};u[A]=M,r.seriesInvolved=r.seriesInvolved||T;var C=db(i,y);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[A]=M,D.mapper=i[C].mapper,M.linkGroup=D}}}})}function vb(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(h){l[h]=ee(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&j(u,f.textStyle)}}return r.model.getModel("axisPointer",new me(l,e,a))}function hb(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||b(r.coordSysAxesInfo[Ea(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function db(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Io(i[a+"AxisId"],e.id)||Io(i[a+"AxisIndex"],e.componentIndex)||Io(i[a+"AxisName"],e.name))return n}}function Io(r,t){return r==="all"||G(r)&&ye(r,t)>=0||r===t}function pb(r){var t=Ol(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=ys(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Ol(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ea(r)]}function gb(r){var t=Ol(r);return t&&t.axisPointerModel}function ys(r){return!!r.get(["handle","show"])}function Ea(r){return r.type+"||"+r.id}var Lo={},mb=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&pb(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=gb(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){if(Lo[e])throw new Error("axisPointer "+e+" exists");Lo[e]=a},t.getAxisPointerClass=function(e){return e&&Lo[e]},t.type="axis",t}(it);const Za=mb;var _s=ie();function yb(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=_s(r).splitAreaColors,h=Z(),v=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){v=(p+(c-1)*d)%c;break}}var g=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=G(s)?s:[s];for(var d=1;d<u.length;d++){var y=n.toGlobalCoord(u[d].coord),_=void 0,x=void 0,S=void 0,w=void 0;n.isHorizontal()?(_=g,x=l.y,S=y-_,w=l.height,g=_+S):(_=l.x,x=g,S=l.width,w=y-x,g=x+w);var A=u[d-1].tickValue;A!=null&&h.set(A,v),t.add(new De({anid:A!=null?"area_"+A:null,shape:{x:_,y:x,width:S,height:w},style:j({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%c}_s(r).splitAreaColors=h}}}function _b(r){_s(r).splitAreaColors=null}var xb=["axisLine","axisTickLabel","axisName"],Sb=["splitArea","splitLine","minorSplitLine"],op=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Se,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=ms(s,e),u=new Vr(e,V({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(vs(h[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));b(xb,u.add,u),this._axisGroup.add(u.getGroup()),b(Sb,function(f){e.get([f,"show"])&&wb[f](this,this._axisGroup,e,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||qs(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){_b(this)},t.type="cartesianAxis",t}(Za),wb={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=G(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,f=n.getTicksCoords({tickModel:i}),h=[],v=[],d=o.getLineStyle(),p=0;p<f.length;p++){var g=n.toGlobalCoord(f[p].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var m=c++%s.length,y=f[p].tickValue,_=new ze({anid:y!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:j({stroke:s[m]},d),silent:!0});Ca(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=n.toGlobalCoord(u[v][d].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new ze({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Ca(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,a){yb(r,t,e,a)}},sp=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(op),bb=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=sp.type,e}return t.type="yAxis",t}(op),Ab=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new De({shape:e.coordinateSystem.getRect(),style:j({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(it),df={offset:0};function Tb(r){r.registerComponentView(Ab),r.registerComponentModel(Uw),r.registerCoordinateSystem("cartesian2d",nb),ai(r,"x",ps,df),ai(r,"y",ps,df),r.registerComponentView(sp),r.registerComponentView(bb),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var pf="\0_ec_interaction_mutex";function gf(r,t){return!!Cb(r)[t]}function Cb(r){return r[pf]||(r[pf]={})}Zt({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},It);var Db=function(r){F(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=Q(a._mousedownHandler,a),i=Q(a._mousemoveHandler,a),o=Q(a._mouseupHandler,a),s=Q(a._mousewheelHandler,a),l=Q(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=j(ee(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Kl(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Ln("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||gf(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&Es(e.event),lp(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Kl(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=Ln("zoomOnMouseWheel",e,this._opt),n=Ln("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Po(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(i),h=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);Po(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!gf(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;Po(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Ga);function Po(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Es(a.event),lp(r,t,e,a,n))}function lp(r,t,e,a,n){n.isAvailableBehavior=Q(Ln,null,e,a),r.trigger(t,n)}function Ln(r,t,e){var a=e[r];return!r||a&&(!H(a)||t.event[a+"Key"])}const Mb=Db;function Ib(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function Lb(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Pb={axisPointer:1,tooltip:1,brush:1};function kb(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!Pb.hasOwnProperty(a.mainType)&&n&&n.model!==e}var mf=rt,Eb=function(r){F(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Mr,a._rawTransformable=new Mr,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new Pe(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new Pe(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Pe(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){e&&(this._center=[W(e[0],a.getWidth()),W(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=rt([],i,e),n=rt([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),ug(this.transform||(this.transform=[]),a.transform||Rs()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Oa(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new Mr;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?mf(n,e,i):cg(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?mf([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=yf(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=yf(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Mr);function yf(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const Rb=Eb;function _f(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function Nb(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(_f(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var c=(t.originX-r.x)*(o-1),f=(t.originY-r.y)*(o-1);r.x-=c,r.y-=f,r.updateTransform(),r.setCenter(_f(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}function Ob(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function Bb(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){Fb(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=zb(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function Gb(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function xf(r){return arguments.length?r:Ub}function ha(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function Vb(r,t){return pr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Fb(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function zb(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=ko(s),i=Eo(i),s&&i;){n=ko(n),o=Eo(o),n.hierNode.ancestor=r;var h=s.hierNode.prelim+f-i.hierNode.prelim-u+a(s,i);h>0&&(Wb(Hb(s,r,e),r,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!ko(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=f-l),i&&!Eo(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function ko(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Eo(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function Hb(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function Wb(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function Ub(r,t){return r.parentNode===t.parentNode?1:2}var Yb=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),$b=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yb},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=W(a.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*h,e.moveTo(o[0],o[1]),e.lineTo(v[0],v[1]),e.moveTo(s[0],s[1]),v[c]=s[c],e.lineTo(v[0],v[1]),v[c]=l[c],e.lineTo(v[0],v[1]),e.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),v[c]=p[c],e.lineTo(v[0],v[1])}},t}(Ae),Xb=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new Se,e}return t.prototype.init=function(e,a){this._controller=new Mb(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,a,n);var u=this._data;i.diff(u).add(function(c){Sf(i,c)&&wf(i,c,null,s,e)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!Sf(i,c)){h&&Af(u,f,h,s,e);return}wf(i,c,h,s,e)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&Af(u,c,f,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,a){var n=e.getData(),i=[];n.each(function(f){var h=n.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];fg(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=new Rb;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center"),a),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!kb(u,n,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Ib(s,u.dx,u.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Lb(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Be);function Sf(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function wf(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=r.getItemGraphicEl(f.dataIndex),v=f.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(e=new Bi(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,ce(e,{x:p.x,y:p.y},n);var g=e.getSymbolPath();if(n.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),_=m.children.length,x=void 0,S=void 0;if(p.x===y.x&&o.isExpand===!0&&m.children.length){var w={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};x=Math.atan2(w.y-y.y,w.x-y.x),x<0&&(x=Math.PI*2+x),S=w.x<y.x,S&&(x=x-Math.PI)}else x=Math.atan2(p.y-y.y,p.x-y.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=p.x<y.x,S&&(x=x-Math.PI)):(S=p.x>y.x,S||(x=x-Math.PI));var A=S?"left":"right",T=s.getModel("label"),M=T.get("rotate"),C=M*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||A,rotation:M==null?-x:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Jf(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(K(e).focus=L),Zb(n,o,c,e,d,v,p,a),e.__edge&&(e.onHoverStateChange=function(k){if(k!=="blur"){var P=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===Ha||Uo(e.__edge,k)}})}function Zb(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new oi({shape:xs(c,f,h,n,n)})),ce(p,{shape:xs(c,f,h,i,o)},r));else if(u==="polyline")if(c==="orthogonal"){if(t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;y<g.length;y++){var _=g[y].getLayout();m.push([_.x,_.y])}p||(p=a.__edge=new $b({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:v}})),ce(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}}else throw new Error("The polyline edgeShape can only be used in orthogonal layout");p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(j({strokeNoScale:!0,fill:null},d)),vr(p,l,"lineStyle"),Sv(p),s.add(p))}function bf(r,t,e,a,n){var i=t.tree.root,o=up(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),v=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);h&&(v==="curve"?hr(h,{shape:xs(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){e.remove(h)},removeOpt:n}):v==="polyline"&&a.get("layout")==="orthogonal"&&hr(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(h)},removeOpt:n}))}}function up(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function Af(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=up(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};hr(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){bf(u,r,a,n,l)}),bf(i,r,a,n,l)}function xs(r,t,e,a,n){var i,o,s,l,u,c,f,h;if(r==="radial"){u=a.rawX,f=a.rawY,c=n.rawX,h=n.rawY;var v=ha(u,f),d=ha(u,f+(h-f)*e),p=ha(c,h+(f-h)*e),g=ha(c,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,f=a.y,c=n.x,h=n.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*e,o=f,s=c+(u-c)*e,l=h),(t==="TB"||t==="BT")&&(i=u,o=f+(h-f)*e,s=c,l=h+(f-h)*e);return{x1:u,y1:f,x2:c,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const qb=Xb;var et=ie();function Kb(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,cp(t,e,r),b(e,function(a){b(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,oe(jb,r))})}),t.wrapMethod("cloneShallow",oe(Qb,r)),b(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,oe(Jb,r))}),q(e[t.dataType]===t)}function jb(r,t){if(rA(this)){var e=V({},et(this).datas);e[this.dataType]=t,cp(t,e,r)}else Bl(t,this.dataType,et(this).mainData,r);return t}function Jb(r,t){return r.struct&&r.struct.update(),t}function Qb(r,t){return b(et(t).datas,function(e,a){e!==t&&Bl(e.cloneShallow(),a,t,r)}),t}function eA(r){var t=et(this).mainData;return r==null||t==null?t:et(t).datas[r]}function tA(){var r=et(this).mainData;return r==null?[{data:r}]:U(Xe(et(r).datas),function(t){return{type:t,data:et(r).datas[t]}})}function rA(r){return et(r).mainData===r}function cp(r,t,e){et(r).datas={},b(t,function(a,n){Bl(a,n,r,e)})}function Bl(r,t,e,a){et(e).datas[t]=r,et(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=eA,r.getLinkedDataAll=tA}var aA=function(){function r(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 r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){$(t)&&(a=e,e=t,t=null),t=t||{},H(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.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},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),nA=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(c,f){var h=c.value;o=Math.max(o,G(h)?h.length:1),i.push(c);var v=new aA(vt(c.name,""),n);f?iA(v,f):n.root=v,n._nodes.push(v);var d=c.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}n.root.updateDepthAndHeight(0);var l=ki(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Pi(l,e);return u.initData(i),a&&a(u),Kb({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function iA(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const oA=nA;function sA(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var lA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new me(n,this,this.ecModel),o=oA.createTree(a,this,s);function s(f){f.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Gr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=sA(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.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},t}($e);const uA=lA;function cA(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)t(i,e)}function ia(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function fA(r,t){r.eachSeriesByType("tree",function(e){vA(e,t)})}function vA(r,t){var e=Vb(r,t);r.layoutInfo=e;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(e.height,e.width)/2,o=xf(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(n=e.width,i=e.height,o=xf());var s=r.getData().tree.root,l=s.children[0];if(l){Ob(s),cA(l,Bb,o),s.hierNode.modifier=-l.hierNode.prelim,ia(l,Gb);var u=l,c=l,f=l;ia(l,function(_){var x=_.getLayout().x;x<u.getLayout().x&&(u=_),x>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var h=u===c?1:o(u,c)/2,v=h-u.getLayout().x,d=0,p=0,g=0,m=0;if(a==="radial")d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ia(l,function(_){g=(_.getLayout().x+v)*d,m=(_.depth-1)*p;var x=ha(g,m);_.setLayout({x:x.x,y:x.y,rawX:g,rawY:m},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(p=i/(c.getLayout().x+h+v),d=n/(f.depth-1||1),ia(l,function(_){m=(_.getLayout().x+v)*p,g=y==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(d=n/(c.getLayout().x+h+v),p=i/(f.depth-1||1),ia(l,function(_){g=(_.getLayout().x+v)*d,m=y==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function hA(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");V(s,o)})})}function dA(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=Nb(i,t,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function mC(r){r.registerChartView(qb),r.registerSeriesModel(uA),r.registerLayout(fA),r.registerVisual(hA),dA(r)}var pA=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),gA=function(r){F(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new pA},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t}(Ae);const mA=gA;function yA(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=W(e[0],t.getWidth()),s=W(e[1],t.getHeight()),l=W(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function _n(r,t){var e=r==null?"":r+"";return t&&(H(t)?e=t.replace("{value}",e):$(t)&&(e=t(r))),e}var _A=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=yA(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),h=f.get("roundCap"),v=h?ri:tt,d=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];av(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,x=[],S=0;d&&S<i.length;S++){var w=Math.min(Math.max(i[S][0],0),1);c=u+y*w;var A=new v({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});A.setStyle({fill:i[S][1]}),A.setStyle(p.getLineStyle(["color","width"])),x.push(A),_=c}x.reverse(),b(x,function(M){return s.add(M)});var T=function(M){if(M<=0)return i[0][1];var C;for(C=0;C<i.length;C++)if(i[C][0]>=M&&(C===0?0:i[C-1][0])<M)return i[C][1];return i[C-1][1]};this._renderTicks(e,a,n,T,o,u,c,l,g),this._renderTitleAndDetail(e,a,n,T,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,T,o,u,c,l,g)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,c){for(var f=this.group,h=o.cx,v=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),m=e.getModel("splitLine"),y=e.getModel("axisTick"),_=e.getModel("axisLabel"),x=e.get("splitNumber"),S=y.get("splitNumber"),w=W(m.get("length"),d),A=W(y.get("length"),d),T=s,M=(l-s)/x,C=M/S,D=m.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),L=m.get("distance"),k,P,E=0;E<=x;E++){if(k=Math.cos(T),P=Math.sin(T),m.get("show")){var O=L?L+c:c,R=new ze({shape:{x1:k*(d-O)+h,y1:P*(d-O)+v,x2:k*(d-w-O)+h,y2:P*(d-w-O)+v},style:D,silent:!0});D.stroke==="auto"&&R.setStyle({stroke:i(E/x)}),f.add(R)}if(_.get("show")){var O=_.get("distance")+L,N=_n(he(E/x*(g-p)+p),_.get("formatter")),B=i(E/x),z=k*(d-w-O)+h,X=P*(d-w-O)+v,J=_.get("rotate"),ne=0;J==="radial"?(ne=-T+2*Math.PI,ne>Math.PI/2&&(ne+=Math.PI)):J==="tangential"?ne=-T-Math.PI/2:ue(J)&&(ne=J*Math.PI/180),ne===0?f.add(new ge({style:Qe(_,{text:N,x:z,y:X,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:B}),silent:!0})):f.add(new ge({style:Qe(_,{text:N,x:z,y:X,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:z,originY:X,rotation:ne}))}if(y.get("show")&&E!==x){var O=y.get("distance");O=O?O+c:c;for(var Te=0;Te<=S;Te++){k=Math.cos(T),P=Math.sin(T);var fe=new ze({shape:{x1:k*(d-O)+h,y1:P*(d-O)+v,x2:k*(d-A-O)+h,y2:P*(d-A-O)+v},silent:!0,style:I});I.stroke==="auto"&&fe.setStyle({stroke:i((E+Te/S)/x)}),f.add(fe),T+=C}T-=C}else T+=M}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var f=this.group,h=this._data,v=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),y=e.getData(),_=y.mapDimension("value"),x=+e.get("min"),S=+e.get("max"),w=[x,S],A=[s,l];function T(C,D){var I=y.getItemModel(C),L=I.getModel("pointer"),k=W(L.get("width"),o.r),P=W(L.get("length"),o.r),E=e.get(["pointer","icon"]),O=L.get("offsetCenter"),R=W(O[0],o.r),N=W(O[1],o.r),B=L.get("keepAspect"),z;return E?z=Lt(E,R-k/2,N-P,k,P,null,B):z=new mA({shape:{angle:-Math.PI/2,width:k,r:P,x:R,y:N}}),z.rotation=-(D+Math.PI/2),z.x=o.cx,z.y=o.cy,z}function M(C,D){var I=g.get("roundCap"),L=I?ri:tt,k=g.get("overlap"),P=k?g.get("width"):c/y.count(),E=k?o.r-P:o.r-(C+1)*P,O=k?o.r:o.r-C*P,R=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:O}});return k&&(R.z2=S-y.get(_,C)%S),R}(m||p)&&(y.diff(h).add(function(C){var D=y.get(_,C);if(p){var I=T(C,s);be(I,{rotation:-((isNaN(+D)?A[0]:pt(D,w,A,!0))+Math.PI/2)},e),f.add(I),y.setItemGraphicEl(C,I)}if(m){var L=M(C,s),k=g.get("clip");be(L,{shape:{endAngle:pt(D,w,A,k)}},e),f.add(L),Wo(e.seriesIndex,y.dataType,C,L),d[C]=L}}).update(function(C,D){var I=y.get(_,C);if(p){var L=h.getItemGraphicEl(D),k=L?L.rotation:s,P=T(C,k);P.rotation=k,ce(P,{rotation:-((isNaN(+I)?A[0]:pt(I,w,A,!0))+Math.PI/2)},e),f.add(P),y.setItemGraphicEl(C,P)}if(m){var E=v[D],O=E?E.shape.endAngle:s,R=M(C,O),N=g.get("clip");ce(R,{shape:{endAngle:pt(I,w,A,N)}},e),f.add(R),Wo(e.seriesIndex,y.dataType,C,R),d[C]=R}}).execute(),y.each(function(C){var D=y.getItemModel(C),I=D.getModel("emphasis"),L=I.get("focus"),k=I.get("blurScope"),P=I.get("disabled");if(p){var E=y.getItemGraphicEl(C),O=y.getItemVisual(C,"style"),R=O.fill;if(E instanceof gr){var N=E.style;E.useStyle(V({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},O))}else E.useStyle(O),E.type!=="pointer"&&E.setColor(R);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(pt(y.get(_,C),w,[0,1],!0))),E.z2EmphasisLift=0,vr(E,D),fr(E,L,k,P)}if(m){var B=d[C];B.useStyle(y.getItemVisual(C,"style")),B.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,vr(B,D),fr(B,L,k,P)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=Lt(s,a.cx-o/2+W(l[0],a.r),a.cy-o/2+W(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),f=+e.get("max"),h=new Se,v=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new ge({silent:!0}),d[m]=new ge({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),x=new Se,S=i(pt(_,[c,f],[0,1],!0)),w=y.getModel("title");if(w.get("show")){var A=w.get("offsetCenter"),T=o.cx+W(A[0],o.r),M=o.cy+W(A[1],o.r),C=v[m];C.attr({z2:g?0:2,style:Qe(w,{x:T,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(C)}var D=y.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+W(I[0],o.r),k=o.cy+W(I[1],o.r),P=W(D.get("width"),o.r),E=W(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,C=d[m],R=D.get("formatter");C.attr({z2:g?0:2,style:Qe(D,{x:L,y:k,text:_n(_,R),width:isNaN(P)?null:P,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:O})}),Gv(C,{normal:D},_,function(B){return _n(B,R)}),p&&Vv(C,m,l,e,{getFormattedLabel:function(B,z,X,J,ne,Te){return _n(Te?Te.interpolatedValue:_,R)}}),x.add(C)}h.add(x)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Be);const xA=_A;var SA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return ap(this,["value"])},t.type="series.gauge",t.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}},t}($e);const wA=SA;function yC(r){r.registerChartView(xA),r.registerSeriesModel(wA)}var ir=ie(),Tf=ee,Ro=Q,bA=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Se,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=oe(Cf,e,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}Mf(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Ol(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=ir(t).pointerEl=new js[i.type](Tf(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=ir(t).labelEl=new ge(Tf(e.label));t.add(i),Df(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=ir(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=ir(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),Df(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=pi(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Es(u.event)},onmousedown:Ro(this._onHandleDragMove,this,0,0),drift:Ro(this._onHandleDragMove,this),ondragend:Ro(this._onHandleDragEnd,this)}),a.add(n)),Mf(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");G(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Th(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Cf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,No(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(No(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(No(n)),ir(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.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"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),as(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function Cf(r,t,e,a){fp(ir(e).lastProp,a)||(ir(e).lastProp=a,t?ce(e,a,r):(e.stopAnimation(),e.attr(a)))}function fp(r,t){if(Y(r)&&Y(t)){var e=!0;return b(t,function(a,n){e=e&&fp(r[n],a)}),!!e}else return r===t}function Df(r,t){r[t.get(["label","show"])?"show":"hide"]()}function No(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Mf(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const vp=bA;function hp(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function dp(r,t,e,a,n){var i=e.get("value"),o=pp(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=$a(s.get("padding")||0),u=s.getFont(),c=Ls(o,u),f=n.position,h=c.width+l[1]+l[3],v=c.height+l[0]+l[2],d=n.align;d==="right"&&(f[0]-=h),d==="center"&&(f[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(f[1]-=v),p==="middle"&&(f[1]-=v/2),AA(f,h,v,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Qe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function AA(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function pp(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ll(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};b(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),H(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function gp(r,t,e){var a=Rs();return ks(a,a,e.rotation),nv(a,a,e.position),di([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function TA(r,t,e,a,n,i){var o=Vr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),dp(t,a,n,i,{position:gp(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function mp(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function CA(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function If(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var DA=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=Lf(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=hp(i),v=MA[u](s,f,c);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=ms(l.model,n);TA(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=ms(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=gp(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Lf(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=a[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,v=[h,h];v[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[c]}},t}(vp);function Lf(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var MA={line:function(r,t,e){var a=mp([t,e[0]],[t,e[1]],Pf(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:CA([t-a/2,e[0]],[a,n],Pf(r))}}};function Pf(r){return r.dim==="x"?0:1}const IA=DA;var LA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.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}},t}(te);const PA=LA;var Ct=ie(),kA=b;function yp(r,t,e){if(!le.node){var a=t.getZr();Ct(a).records||(Ct(a).records={}),EA(a,t);var n=Ct(a).records[r]||(Ct(a).records[r]={});n.handler=e}}function EA(r,t){if(Ct(r).initialized)return;Ct(r).initialized=!0,e("click",oe(kf,"click")),e("mousemove",oe(kf,"mousemove")),e("globalout",NA);function e(a,n){r.on(a,function(i){var o=OA(t);kA(Ct(r).records,function(s){s&&n(s,i,o.dispatchAction)}),RA(o.pendings,t)})}}function RA(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function NA(r,t,e){r.handler("leave",null,e)}function kf(r,t,e,a){t.handler(r,e,a)}function OA(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Ss(r,t){if(!le.node){var e=t.getZr(),a=(Ct(e).records||{})[r];a&&(Ct(e).records[r]=null)}}var BA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";yp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Ss("axisPointer",a)},t.prototype.dispose=function(e,a){Ss("axisPointer",a)},t.type="axisPointer",t}(it);const GA=BA;function _p(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=cr(i,r);if(o==null||o<0||G(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,v=f==="x"||f==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(U(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Ef=ie();function VA(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Pn(n)&&(n=_p({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Pn(n),u=i.axesInfo,c=s.axesInfo,f=a==="leave"||Pn(n),h={},v={},d={list:[],map:{}},p={showPointer:oe(zA,v),showTooltip:oe(HA,d)};b(s.coordSysMap,function(m,y){var _=l||m.containPoint(n);b(s.coordSysAxesInfo[y],function(x,S){var w=x.axis,A=$A(u,x);if(!f&&_&&(!u||A)){var T=A&&A.value;T==null&&!l&&(T=w.pointToData(n)),T!=null&&Rf(x,T,p,!1,h)}})});var g={};return b(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&b(_.axesInfo,function(x,S){var w=v[S];if(x!==m&&w){var A=w.value;_.mapper&&(A=m.axis.scale.parse(_.mapper(A,Nf(x),Nf(m)))),g[m.key]=A}})}),b(g,function(m,y){Rf(c[y],m,p,!0,h)}),WA(v,c,h),UA(d,n,r,o),YA(c,o,e),h}}function Rf(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=FA(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&V(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function FA(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return b(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,r,e);h=v.dataIndices,f=v.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=f,i.length=0),b(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function zA(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function HA(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Ea(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function WA(r,t,e){var a=e.axesInfo=[];b(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function UA(r,t,e,a){if(Pn(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function YA(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=Ef(a)[n]||{},o=Ef(a)[n]={};b(r,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&b(f.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];b(i,function(u,c){!o[c]&&l.push(u)}),b(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $A(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function Nf(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Pn(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Gl(r){Za.registerAxisPointerClass("CartesianAxisPointer",IA),r.registerComponentModel(PA),r.registerComponentView(GA),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=cb(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},VA)}function _C(r){Pt(Tb),Pt(Gl)}var XA=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(a),h=i.get("type");if(h&&h!=="none"){var v=hp(i),d=qA[h](s,l,f,c);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=ZA(a,n,i,l,p);dp(e,n,i,o,g)},t}(vp);function ZA(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var h=Rs();ks(h,h,s),nv(h,h,[a.cx,a.cy]),u=di([o,-n],h);var v=t.getModel("axisLabel").get("rotate")||0,d=Vr.innerTextLayout(s,v*Math.PI/180,-1);c=d.textAlign,f=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,m=a.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var qA={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:mp(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:If(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:If(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const KA=XA;var jA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(te);const JA=jA;var Vl=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ye).models[0]},t.type="polarAxis",t}(te);St(Vl,kl);var QA=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Vl),eT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Vl),Fl=function(r){F(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(Kt);Fl.prototype.dataToRadius=Kt.prototype.dataToCoord;Fl.prototype.radiusToData=Kt.prototype.coordToData;const tT=Fl;var rT=ie(),zl=function(r){F(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=Ls(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=rT(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(Kt);zl.prototype.dataToAngle=Kt.prototype.dataToCoord;zl.prototype.angleToData=Kt.prototype.coordToData;const aT=zl;var xp=["radius","angle"],nT=function(){function r(t){this.dimensions=xp,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tT,this._angleAxis=new aT,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},r.prototype.convertToPixel=function(t,e,a){var n=Of(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Of(e);return n===this?this.pointToData(a):null},r}();function Of(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const iT=nT;function oT(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=W(a[0],n),r.cy=W(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:G(l)||(l=[0,l]);var u=[W(l[0],s),W(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function sT(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();b(hs(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),b(hs(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Pa(a.scale,a.model),Pa(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function lT(r){return r.mainType==="angleAxis"}function Bf(r,t){var e;if(r.type=t.get("type"),r.scale=Il(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),lT(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var uT={dimensions:xp,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new iT(n+"");i.update=sT;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Bf(o,l),Bf(s,u),oT(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Ye).models[0];if(!n)throw new Error('Polar "'+$t(a.get("polarIndex"),a.get("polarId"),0)+'" not found');a.coordinateSystem=n.coordinateSystem}}),e}};const cT=uT;var fT=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function xn(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Sn(r){var t=r.getRadiusAxis();return t.inverse?0:1}function Gf(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var vT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=U(n.getViewLabels(),function(c){c=ee(c);var f=n.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(h),c});Gf(u),Gf(s),b(fT,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&hT[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Za),hT={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Sn(e),f=c?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?h=new js[v]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new ii({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Sn(e)],u=U(a,function(c){return new ze({shape:xn(e,[l,l+s],c.coord)})});r.add(gt(u,{style:j(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Sn(e)],c=[],f=0;f<n.length;f++)for(var h=0;h<n[f].length;h++)c.push(new ze({shape:xn(e,[u,u+l],n[f][h].coord)}));r.add(gt(c,{style:j(s.getModel("lineStyle").getLineStyle(),j(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");b(o,function(f,h){var v=l,d=f.tickValue,p=i[Sn(e)],g=e.coordToPoint([p+u,f.coord]),m=e.cx,y=e.cy,_=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",x=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var S=s[d];Y(S)&&S.textStyle&&(v=new me(S.textStyle,l,l.ecModel))}var w=new ge({silent:Vr.isLabelSilent(t),style:Qe(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:x})});if(r.add(w),c){var A=Vr.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,K(w).eventData=A}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<a.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new ze({shape:xn(e,i,a[f].coord)}))}for(var f=0;f<c.length;f++)r.add(gt(c[f],{style:j({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new ze({shape:xn(e,i,n[u][c].coord)}));r.add(gt(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-a[0].coord*f,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,m=a.length;g<=m;g++){var y=g===m?a[0].coord:a[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new tt({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:h,endAngle:-y*f,clockwise:p},silent:!0})),h=-y*f}for(var g=0;g<c.length;g++)r.add(gt(c[g],{style:j({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const dT=vT;var pT=["axisLine","axisTickLabel","axisName"],gT=["splitLine","splitArea","minorSplitLine"],mT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Se;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),v=_T(s,e,f),d=new Vr(e,v);b(pT,d.add,d),i.add(d.getGroup()),qs(n,i,e),b(gT,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&yT[p](this.group,e,s,f,h,u,c)},this)}},t.type="radiusAxis",t}(Za),yT={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new js[v]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[p].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var p=0;p<d.length;p++)r.add(gt(d[p],{style:j({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Ra({shape:{cx:e.cx,cy:e.cy,r:o[c][f].coord}}));r.add(gt(u,{style:j({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new tt({shape:{cx:e.cx,cy:e.cy,r0:f,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[h].coord}for(var h=0;h<c.length;h++)r.add(gt(c[h],{style:j({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function _T(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const xT=mT;function Sp(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function wp(r,t){return t.dim+r.model.componentIndex}function ST(r,t,e){var a={},n=wT(pe(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=wp(s,l),c=Sp(i),f=n[u][c],h=f.offset,v=f.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,y=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var _=o.mapDimension(d.dim),x=o.mapDimension(l.dim),S=Xt(o,_),w=l.dim!=="radius"||!i.get("roundCap",!0),A=d.model,T=A.get("startValue"),M=d.dataToCoord(T||0),C=0,D=o.count();C<D;C++){var I=o.get(_,C),L=o.get(x,C),k=I>=0?"p":"n",P=M;S&&(a[c][L]||(a[c][L]={p:M,n:M}),P=a[c][L][k]);var E=void 0,O=void 0,R=void 0,N=void 0;if(d.dim==="radius"){var B=d.dataToCoord(I)-M,z=l.dataToCoord(L);Math.abs(B)<m&&(B=(B<0?-1:1)*m),E=P,O=P+B,R=z-h,N=R-v,S&&(a[c][L][k]=O)}else{var X=d.dataToCoord(I,w)-M,J=l.dataToCoord(L);Math.abs(X)<y&&(X=(X<0?-1:1)*y),E=J+h,O=E+v,R=P,N=P+X,S&&(a[c][L][k]=N)}o.setItemLayout(C,{cx:p,cy:g,r0:E,r:O,startAngle:-R*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:R>=N})}}})}function wT(r){var t={};b(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=wp(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var v=Sp(a);h[v]||f.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=W(a.get("barWidth"),c),p=W(a.get("barMaxWidth"),c),g=a.get("barGap"),m=a.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(f.remainedWidth,d),h[v].width=d,f.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var e={};return b(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=W(a.categoryGap,o),l=W(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),b(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,v;b(i,function(p,g){p.width||(p.width=f),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;b(i,function(p,g){e[n][g]=e[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var bT={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},AT={splitNumber:5},TT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(it);function xC(r){Pt(Gl),Za.registerAxisPointerClass("PolarAxisPointer",KA),r.registerCoordinateSystem("polar",cT),r.registerComponentModel(JA),r.registerComponentView(TT),ai(r,"angle",QA,bT),ai(r,"radius",eT,AT),r.registerComponentView(dT),r.registerComponentView(xT),r.registerLayout(oe(ST,"bar"))}function CT(r,t){var e=$a(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new De({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var DT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(te);const MT=DT;function bp(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Ap(r){if(le.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var Tp=Ap(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),IT=Ap(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Cp(r,t){if(!r)return t;t=il(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function LT(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var PT=Cp(IT,"transition"),Hl=Cp(Tp,"transform"),kT="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(le.transform3dSupported?"will-change:transform;":"");function ET(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function RT(r,t,e){if(!H(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=dr(t);var i=ET(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Hl+":",u;ye(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+n,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function NT(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=le.transformSupported?","+Hl+a:",left"+a+",top"+a),PT+":"+n}function Vf(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!le.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=le.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Hl+":"+o+";":[["top",0],["left",0],[Tp,o]]}function OT(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),b(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function BT(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),f=bh(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+h),t&&n&&a.push(NT(n,e)),i&&a.push("background-color:"+i),b(["width","color","radius"],function(v){var d="border-"+v,p=il(d),g=r.get(p);g!=null&&a.push(d+":"+g+(v==="color"?"":"px"))}),a.push(OT(c)),f!=null&&a.push("padding:"+$a(f).join("px ")+"px"),a.join(";")+";"}function Ff(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&hg(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var GT=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,le.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(H(i)?document.querySelector(i):Fo(i)?i:$(i)&&i(t.getDom()));Ff(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();vg(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=LT(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=kT+BT(t,!this._firstShow,this._longHide)+Vf(i[0],i[1],!0)+("border-color:"+dr(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(i)&&a.get("trigger")==="item"&&!bp(a)&&(s=RT(a,n,i)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var l=0;l<t.length;l++)Fo(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var a=this._styleCoord;if(Ff(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Vf(a[0],a[1]);b(i,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",le.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}();const VT=GT;var FT=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Hf(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;Y(t)&&Fe("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new ge({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:bh(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),b(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=zf(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;Hf(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Wt(i.borderWidth||0),s=zf(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Wt(r){return Math.max(0,r)}function zf(r){var t=Wt(r.shadowBlur||0),e=Wt(r.shadowOffsetX||0),a=Wt(r.shadowOffsetY||0);return{left:Wt(t-e),right:Wt(t+e),top:Wt(t-a),bottom:Wt(t+a)}}function Hf(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const zT=FT;var HT=new De({shape:{x:-1,y:-1,width:2,height:2}}),WT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(le.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=Fg(n.get("renderMode"));this._tooltipContent=i==="richText"?new zT(a):new VT(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(le.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Th(this,"_updatePosition",50,"fixRate"):as(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");yp("itemTooltip",this._api,Q(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||le.node||!n.getDom())){var o=Wf(i,n);this._ticket="";var s=i.dataByCoordSys,l=XT(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=HT;c.x=i.x,c.y=i.y,c.update(),K(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var f=_p(i,a),h=f.point[0],v=f.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(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},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Wf(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=oa([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=K(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;fa(n,function(c){if(K(c).dataIndex!=null)return l=c,!0;if(K(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=oa([a.tooltipOption],i),l=this._renderMode,u=[],c=Gr("section",{blocks:[],noHeader:!0}),f=[],h=new eo;b(e,function(y){b(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var w=pp(S,x.axis,n,_.seriesDataIndices,_.valueLabelOpt),A=Gr("section",{header:w,noHeader:!Ba(w),sortBlocks:!0,blocks:[]});c.blocks.push(A),b(_.seriesDataIndices,function(T){var M=n.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,D=M.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Ll(x.axis,{value:S}),D.axisValueLabel=w,D.marker=h.makeTooltipMarker("item",dr(D.color),l);var I=zu(M.formatTooltip(C,!0,null)),L=I.frag;if(L){var k=oa([M],i).get("valueFormatter");A.blocks.push(k?V({valueFormatter:k},L):L)}I.text&&f.push(I.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=a.position,d=s.get("order"),p=$u(c,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
|
||
|
||
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=K(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=oa([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new eo;m.marker=y.makeTooltipMarker("item",dr(m.color),v);var _=zu(u.formatTooltip(c,!1,f)),x=p.get("order"),S=p.get("valueFormatter"),w=_.frag,A=w?$u(S?V({valueFormatter:S},w):w,y,v,x,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=K(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=ee(l),l.content=Ve(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=e.positionDefault,d=oa(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new eo;this._showOrMove(d,function(){var y=ee(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,a,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(H(h)){var g=e.ecModel.get("useUTC"),m=G(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Ya(m.axisValue,v,g)),v=ol(v,n,!0)}else if($(h)){var _=Q(function(x,S){x===this._ticket&&(f.setContent(S,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||G(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!G(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),G(a))n=W(a[0],u),i=W(a[1],c);else if(Y(a)){var p=a;p.width=f[0],p.height=f[1];var g=pr(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(H(a)&&l){var m=$T(a,d,f,e.get("borderWidth"));n=m[0],i=m[1]}else{var m=UT(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=Uf(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=Uf(v)?f[1]/2:v==="bottom"?f[1]:0),bp(e)){var m=YT(n,i,o,u,c);n=m[0],i=m[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&b(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&b(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&b(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=a[y],x=i[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){le.node||!a.getDom()||(as(this,"_updatePosition"),this._tooltipContent.dispose(),Ss("itemTooltip",a))},t.type="tooltip",t}(it);function oa(r,t,e){var a=t.ecModel,n;e?(n=new me(e,a,a),n=new me(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof me&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(n=new me(o,n,a)))}return n}function Wf(r,t){return r.dispatchAction||Q(t.dispatchAction,t)}function UT(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function YT(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function $T(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function Uf(r){return r==="center"||r==="middle"}function XT(r,t,e){var a=Vs(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=za(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=K(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const ZT=WT;function SC(r){Pt(Gl),r.registerComponentModel(MT),r.registerComponentView(ZT),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},It),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},It)}var qT=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},KT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),G(a)&&b(a,function(i,o){H(i)&&(i={type:i}),a[o]=se(i,qT(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):c=!0}else c=!0;c&&Gs(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=Z(),s=U(i,function(l){return(H(l)||ue(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new me(l,this,this.ecModel))},this);this._data=pe(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;b(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;b(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;b(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ye(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(te);const ws=KT;var Dr=oe,bs=b,wn=Se,jT=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new wn),this.group.add(this._selectorGroup=new wn),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=e.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},h=e.get("padding"),v=pr(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=pr(j({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=CT(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=Z(),f=a.get("selectedMode"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),bs(a.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
||
`)){var g=new wn;g.newline=!0,u.add(g);return}var m=n.getSeriesByName(p)[0];if(!c.get(p)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,d,v,a,e,_,S,x,f,i);w.on("click",Dr(Yf,p,null,i,h)).on("mouseover",Dr(As,m.name,null,i,h)).on("mouseout",Dr(Ts,m.name,null,i,h)),n.ssr&&w.eachChild(function(A){var T=K(A);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),C=T.getItemVisual(M,"style"),D=T.getItemVisual(M,"legendIcon"),I=dg(C.fill);I&&I[3]===0&&(I[3]=.2,C=V(V({},C),{fill:pg(I,"rgba")}));var L=this._createItem(A,p,d,v,a,e,{},C,D,f,i);L.on("click",Dr(Yf,null,p,i,h)).on("mouseover",Dr(As,null,p,i,h)).on("mouseout",Dr(Ts,null,p,i,h)),n.ssr&&L.eachChild(function(k){var P=K(k);P.seriesIndex=A.seriesIndex,P.dataIndex=d,P.ssrType="legend"}),c.set(p,!0)}},this);c.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();bs(e,function(u){var c=u.type,f=new ge({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Wa(f,{normal:h,emphasis:v},{defaultText:u.title}),zn(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=JT(c,i,l,u,v,g,h),S=new wn,w=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var A=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;S.add(QT({itemWidth:d,itemHeight:p,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,M=s,C=o.get("formatter"),D=a;H(C)&&C?D=C.replace("{name}",a??""):$(C)&&(D=C(a));var I=g?w.getTextColor():i.get("inactiveColor");S.add(new ge({style:Qe(w,{text:D,x:T,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new De({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Ks({el:L,componentModel:o,itemName:a,itemTooltipOption:k.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!f,this.getContentGroup().add(S),zn(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ya(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ya("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(it);function JT(r,t,e,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),bs(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:os(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function QT(r){var t=r.icon||"roundRect",e=Lt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Yf(r,t,e,a){Ts(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),As(r,t,e,a)}function Dp(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function As(r,t,e,a){Dp(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Ts(r,t,e,a){Dp(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}const Mp=jT;function eC(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function sa(r,t,e){var a={},n=r==="toggleSelected",i;return e.eachComponent("legend",function(o){n&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();b(s,function(l){var u=l.get("name");if(!(u===`
|
||
`||u==="")){var c=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&c:a[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function tC(r){r.registerAction("legendToggleSelect","legendselectchanged",oe(sa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",oe(sa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",oe(sa,"inverseSelect")),r.registerAction("legendSelect","legendselected",oe(sa,"select")),r.registerAction("legendUnSelect","legendunselected",oe(sa,"unSelect"))}function Ip(r){r.registerComponentModel(ws),r.registerComponentView(Mp),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,eC),r.registerSubTypeDefaulter("legend",function(){return"plain"}),tC(r)}var rC=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=bi(e);r.prototype.init.call(this,e,a,n),$f(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),$f(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Hv(ws.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}),t}(ws);function $f(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Or(t,e,{type:"box",ignoreSize:!!n})}const aC=rC;var Xf=Se,Oo=["width","height"],Bo=["x","y"],nC=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Xf),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Xf)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),h=G(f)?f:[f,f];d("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new ge({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=pi(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Q(u._pageGo,u,m,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Oo[u],f=Bo[u],h=Oo[1-u],v=Bo[1-u];o&&ya("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=ee(n);o&&(m[c]=n[c]-p[c]-d);var y=this._layoutContentAndController(e,i,m,u,c,h,v,f);if(o){if(s==="end")g[u]+=y[c]+d;else{var _=p[c]+d;g[u]-=_,y[f]-=_}y[c]+=p[c]+d,g[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;ya(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),ya("horizontal",h,e.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?y[i]+=n[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:v[o],S[s]=Math.max(v[s],d[s]),S[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=S[s],f.setClipPath(new De({shape:w})),f.__rectSize=w[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return A.pageIndex!=null&&ce(c,{x:A.contentPosition[0],y:A.contentPosition[1]},p?e:null),this._updatePageInfoView(e,A),S},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;b(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=a[f]!=null,v=n.childOfName(c);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",H(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Oo[o],l=Bo[o],u=this._findTargetItemIndex(a),c=n.children(),f=c[u],h=c.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=x(f);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=x(c[g]),(!_&&y.e>m.s+i||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=x(c[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function x(w){if(w){var A=w.getBoundingRect(),T=A[l]+w[l];return{s:T,e:T+A[s],i:w.__legendDataIndex}}}function S(w,A){return w.e>=A&&w.s<=A+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(Mp);const iC=nC;function oC(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function sC(r){Pt(Ip),r.registerComponentModel(aC),r.registerComponentView(iC),oC(r)}function wC(r){Pt(Ip),Pt(sC)}export{mC as a,hC as b,xC as c,dC as d,fC as e,_C as f,wC as g,pC as h,SC as i,vC as j,gC as k,cC as l,yC as m,Pt as u};
|