7 lines
256 KiB
JavaScript
7 lines
256 KiB
JavaScript
import{_ as E}from"./tslib.60310f1a.js";import{i as $,r as tn,m as G,a as O,c as Z,e as w,b as st,d as ye,f as j,g as pt,h as rc,j as kt,k as lb,l as z,n as X,L as Tm,o as vn,p as Yt,P as Tt,q as ac,s as ub,t as mt,u as cb,Z as Ne,v as vb,w as fb,x as hb,y as pb,z as vv,A as as,T as Ya,B as Ni,C as Pe,D as J,E as U,F as db,G as ur,H as Cm,S as Re,R as Gs,I as Ee,J as me,K as ft,M as te,N as Fs,O as fv,Q as tt,U as ct,V as gb,W as Dm,X as Hs,Y as yb,_ as xt,$ as ns,a0 as Gt,a1 as Oi,a2 as nt,a3 as q,a4 as qt,a5 as Mm,a6 as Q,a7 as ke,a8 as bt,a9 as W,aa as is,ab as os,ac as fe,ad as nc,ae as mb,af as ss,ag as Sb,ah as fn,ai as Jf,aj as Sl,ak as xb,al as en,am as ls,an as _b,ao as aa,ap as Im,aq as Lm,ar as Ws,as as Pm,at as oa,au as xl,av as bb,aw as wb,ax as io,ay as Qf,az as th,aA as Ab,aB as Vi,aC as jt,aD as Bi,aE as Tb,aF as eh,aG as kr,aH as Cb,aI as Db,aJ as Mb,aK as ga,aL as Ib,aM as hn,aN as ue,aO as hv,aP as Rm,aQ as ya,aR as Lb,aS as _l,aT as $o,aU as Em,aV as ai,aW as us,aX as Lr,aY as Pb,aZ as Za,a_ as rh,a$ as $s,b0 as Rb,b1 as ic,b2 as Eb,b3 as km,b4 as kb,b5 as Nb,b6 as Ob,b7 as Vb,b8 as ah,b9 as Bb,ba as pi,bb as zb,bc as Nm,bd as nh,be as Gb,bf as Fb,bg as Hb,bh as Wb,bi as $b,bj as Ub,bk as Yb,bl as Zb,bm as Xb,bn as Kb}from"./zrender.3760070d.js";var ih=1e-4,Om=20;function qb(r){return r.replace(/^\s+|\s+$/g,"")}function dt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[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 F(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return $(r)?qb(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Nt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Om),r=(+r).toFixed(e),t?r:+r}function Ie(r){return r.sort(function(e,t){return e-t}),r}function Ke(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return jb(r)}function jb(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Vm(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Jb(r,e,t){if(!r[e])return 0;var a=tn(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(a===0)return 0;for(var n=Math.pow(10,t),i=G(r,function(p){return(isNaN(p)?0:p)/a*n*100}),o=n*100,s=G(i,function(p){return Math.floor(p)}),l=tn(s,function(p,d){return p+d},0),u=G(i,function(p,d){return p-s[d]});l<o;){for(var c=Number.NEGATIVE_INFINITY,v=null,f=0,h=u.length;f<h;++f)u[f]>c&&(c=u[f],v=f);++s[v],u[v]=0,++l}return s[e]/n}function Qb(r,e){var t=Math.max(Ke(r),Ke(e)),a=r+e;return t>Om?a:Nt(a,t)}var oh=9007199254740991;function Bm(r){var e=Math.PI*2;return(r%e+e)%e}function cs(r){return r>-ih&&r<ih}var tw=/^(?:(\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 tr(r){if(r instanceof Date)return r;if($(r)){var e=tw.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function ew(r){return Math.pow(10,pv(r))}function pv(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function zm(r,e){var t=pv(r),a=Math.pow(10,t),n=r/a,i;return e?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,t>=-20?+r.toFixed(t<0?-t:0):r}function bl(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function sh(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=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 cr(r){var e=parseFloat(r);return e==r&&(e!==0||!$(r)||r.indexOf("x")<=0)?e:NaN}function Gm(r){return!isNaN(cr(r))}function Fm(){return Math.round(Math.random()*9)}function Hm(r,e){return e===0?r:Hm(e,r%e)}function lh(r,e){return r==null?e:e==null?r:r*e/Hm(r,e)}function ht(r){throw new Error(r)}function uh(r,e,t){return(e-r)*t+r}var Wm="series\0",$m="\0_ec_\0";function yt(r){return r instanceof Array?r:r==null?[]:[r]}function ma(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var ch=["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 pn(r){return j(r)&&!O(r)&&!(r instanceof Date)?r.value:r}function rw(r){return j(r)&&!(r instanceof Array)}function Um(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Z();w(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=aw(r,o,t);return(a||n)&&nw(s,r,o,e),a&&iw(s,e),a||n?ow(s,e,n):i&&sw(s,e),lw(s),s}function aw(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||di(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function nw(r,e,t,a){w(a,function(n,i){if(!(!n||n.id==null)){var o=ni(n.id),s=t.get(o);if(s!=null){var l=r[s];ye(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function iw(r,e){w(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!di(t)&&!di(i)&&Ym("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function ow(r,e,t){w(e,function(a){if(!!a){for(var n,i=0;(n=r[i])&&(n.newOption||di(n.existing)||n.existing&&a.id!=null&&!Ym("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function sw(r,e){w(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function lw(r){var e=Z();w(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),w(r,function(t){var a=t.newOption;ye(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),w(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(!!j(i)){if(o.name=i.name!=null?ni(i.name):n?n.name:Wm+a,n)o.id=ni(n.id);else if(i.id!=null)o.id=ni(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function Ym(r,e,t){var a=$t(e[r],null),n=$t(t[r],null);return a!=null&&n!=null&&a===n}function ni(r){return $t(r,"")}function $t(r,e){return r==null?e:$(r)?r:pt(r)||rc(r)?r+"":e}function dv(r){var e=r.name;return!!(e&&e.indexOf(Wm))}function di(r){return r&&r.id!=null&&ni(r.id).indexOf($m)===0}function uw(r){return $m+r}function cw(r,e,t){w(r,function(a){var n=a.newOption;j(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=vw(e,n,a.existing,t))})}function vw(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function fw(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var v=$t(o[u].seriesId,null);if(v==null)return;for(var f=yt(o[u].dataIndex),h=l&&l[v],p=0,d=f.length;p<d;p++){var g=f[p];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Sa(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return O(e.dataIndex)?G(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return O(e.name)?G(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ut(){var r="__ec_inner_"+hw++;return function(e){return e[r]||(e[r]={})}}var hw=Fm();function ii(r,e,t){var a=gv(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var v=zi(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=v.models,s[c+"Model"]=v.models[0]}),s}function gv(r,e){var t;if($(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=Z(),i={},o=!1;return w(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],v=(u[2]||"").toLowerCase();if(!(!c||!v||e&&e.includeMainTypes&&st(e.includeMainTypes,c)<0)){o=o||!!c;var f=n.get(c)||n.set(c,{});f[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ft={useDefault:!0,enableAll:!1,enableNone:!1},pw={useDefault:!1,enableAll:!0,enableNone:!0};function zi(r,e,t,a){a=a||Ft;var n=t.index,i=t.id,o=t.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(e))?[l]:[],s}return n==="none"||n===!1?(ye(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(ye(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function Zm(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function dw(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function gw(r){return r==="auto"?kt.domSupported?"html":"richText":r||"html"}function oc(r,e){var t=Z(),a=[];return w(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function Xm(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(pt(a)){var o=uh(t||0,a,n);return Nt(o,i?Math.max(Ke(t||0),Ke(a)):e)}else{if($(a))return n<1?t:a;for(var s=[],l=t,u=a,c=Math.max(l?l.length:0,u.length),v=0;v<c;++v){var f=r.getDimensionInfo(v);if(f&&f.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,p=u[v],o=uh(h,p,n);s[v]=Nt(o,i?Math.max(Ke(h),Ke(p)):e)}}return s}}var yw=".",$r="___EC__COMPONENT__CONTAINER___",Km="___EC__EXTENDED_CLASS___";function qe(r){var e={main:"",sub:""};if(r){var t=r.split(yw);e.main=t[0]||"",e.sub=t[1]||""}return e}function mw(r){ye(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Sw(r){return!!(r&&r[Km])}function yv(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return xw(a)?n=function(i){E(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(t.$constructor||a).apply(this,arguments)},lb(n,this)),z(n.prototype,t),n[Km]=!0,n.extend=this.extend,n.superCall=ww,n.superApply=Aw,n.superClass=a,n}}function xw(r){return X(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function qm(r,e){r.extend=e.extend}var _w=Math.round(Math.random()*10);function bw(r){var e=["__\0is_clz",_w++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function ww(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function Aw(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Us(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){mw(n),a.prototype.type=n;var i=qe(n);if(!i.sub)e[i.main]=a;else if(i.sub!==$r){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[$r]&&(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=qe(a),i=[],o=e[n.main];return o&&o[$r]?w(o,function(s,l){l!==$r&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=qe(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return w(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=qe(a),i=e[n.main];return i&&i[$r]};function t(a){var n=e[a.main];return(!n||!n[$r])&&(n=e[a.main]={},n[$r]=!0),n}}function xa(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&st(n,l)>=0||i&&st(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var Tw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Cw=xa(Tw),Dw=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return Cw(this,e,t)},r}(),K=ut(),sc=function(r,e,t,a){if(a){var n=K(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,a.type==="group"&&a.traverse(function(i){var o=K(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},vh=1,fh={},jm=ut(),mv=ut(),Sv=0,Gi=1,Ys=2,he=["emphasis","blur","select"],gi=["normal","emphasis","blur","select"],dn=10,Mw=9,ua="highlight",Uo="downplay",oi="select",Yo="unselect",si="toggleSelect";function La(r){return r!=null&&r!=="none"}var hh=new Tm(100);function ph(r){if($(r)){var e=hh.get(r);return e||(e=ac(r,-.1),hh.put(r,e)),e}else if(ub(r)){var t=z({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:ac(a.color,-.1)}}),t}return r}function Zs(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function Jm(r){Zs(r,"emphasis",Ys)}function Qm(r){r.hoverState===Ys&&Zs(r,"normal",Sv)}function xv(r){Zs(r,"blur",Gi)}function t0(r){r.hoverState===Gi&&Zs(r,"normal",Sv)}function Iw(r){r.selected=!0}function Lw(r){r.selected=!1}function dh(r,e,t){e(r,t)}function gr(r,e,t){dh(r,e,t),r.isGroup&&r.traverse(function(a){dh(a,e,t)})}function vs(r,e){switch(e){case"emphasis":r.hoverState=Ys;break;case"normal":r.hoverState=Sv;break;case"blur":r.hoverState=Gi;break;case"select":r.selected=!0}}function Pw(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l==null?a&&a[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function Rw(r,e,t,a){var n=t&&st(t,"select")>=0,i=!1;if(r instanceof Tt){var o=jm(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(La(s)||La(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=z({},a),u=z({},u),u.fill=s):!La(u.fill)&&La(s)?(i=!0,a=z({},a),u=z({},u),u.fill=ph(s)):!La(u.stroke)&&La(l)&&(i||(a=z({},a),u=z({},u)),u.stroke=ph(l)),a.style=u}}if(a&&a.z2==null){i||(a=z({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c!=null?c:dn)}return a}function Ew(r,e,t){if(t&&t.z2==null){t=z({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:Mw)}return t}function kw(r,e,t){var a=st(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:Pw(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=z({},t),o=z({opacity:a?n:i.opacity*.1},o),t.style=o),t}function wl(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return Rw(this,r,e,t);if(r==="blur")return kw(this,r,t);if(r==="select")return Ew(this,r,t)}return t}function _a(r){r.stateProxy=wl;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=wl),t&&(t.stateProxy=wl)}function gh(r,e){!n0(r,e)&&!r.__highByOuter&&gr(r,Jm)}function yh(r,e){!n0(r,e)&&!r.__highByOuter&&gr(r,Qm)}function vr(r,e){r.__highByOuter|=1<<(e||0),gr(r,Jm)}function fr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&gr(r,Qm)}function e0(r){gr(r,xv)}function _v(r){gr(r,t0)}function r0(r){gr(r,Iw)}function a0(r){gr(r,Lw)}function n0(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function i0(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=mv(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){t0(u)}),s&&t.push(i)),o.isBlured=!1}),w(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function lc(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,c){for(var v=0;v<c.length;v++){var f=u.getItemGraphicEl(c[v]);f&&_v(f)}}if(r!=null&&!(!e||e==="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,v=u.coordinateSystem;v&&v.master&&(v=v.master);var f=v&&s?v===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!f||e==="series"&&c)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(g){xv(g)}),vn(e))i(u.getData(),e);else if(j(e))for(var p=Yt(e),d=0;d<p.length;d++)i(u.getData(p[d]),e[p[d]]);l.push(u),mv(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var v=a.getViewOfComponentModel(c);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function uc(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(!!a){mv(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){xv(i)})}}}function Nw(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(!!n){var i=Sa(n,e);i=(O(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);lc(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);c!=null&&lc(a,c,v,t)}}}function bv(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(K(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Ow(r,e,t){var a=K(r),n=bv(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&uc(a.componentMainType,a.componentIndex,t),w(i,function(s){return gh(s,e)})):(lc(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&uc(a.componentMainType,a.componentIndex,t),gh(r,e))}function Vw(r,e,t){i0(t);var a=K(r),n=bv(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?w(n,function(i){return yh(i,e)}):yh(r,e)}function Bw(r,e,t){if(!!vc(e)){var a=e.dataType,n=r.getData(a),i=Sa(n,e);O(i)||(i=[i]),r[e.type===si?"toggleSelect":e.type===oi?"select":"unselect"](i,a)}}function mh(r){var e=r.getAllData();w(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?r0(i):a0(i)})})}function zw(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();w(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function ca(r,e,t){sa(r,!0),gr(r,_a),cc(r,e,t)}function Gw(r){sa(r,!1)}function Ot(r,e,t,a){a?Gw(r):ca(r,e,t)}function cc(r,e,t){var a=K(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var Sh=["emphasis","blur","select"],Fw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function re(r,e,t,a){t=t||"itemStyle";for(var n=0;n<Sh.length;n++){var i=Sh[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[Fw[t]]()}}function sa(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function yi(r){return!!(r&&r.__highDownDispatcher)}function Hw(r,e,t){var a=K(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function Ww(r){var e=fh[r];return e==null&&vh<=32&&(e=fh[r]=vh++),e}function vc(r){var e=r.type;return e===oi||e===Yo||e===si}function xh(r){var e=r.type;return e===ua||e===Uo}function $w(r){var e=jm(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var o0=ut();function gn(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,v=void 0;a?(u=mt(a.duration,200),c=mt(a.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(v=i.delay)),X(v)&&(v=v(t,n)),X(u)&&(u=u(t));var f={duration:u||0,delay:v,easing:c};return f}else return null}function wv(r,e,t,a,n,i,o){var s=!1,l;X(n)?(o=i,i=n,n=null):j(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=gn(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(c&&c.duration>0){var v=c.duration,f=c.delay,h=c.easing,p={duration:v,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function lt(r,e,t,a,n,i){wv("update",r,e,t,a,n,i)}function It(r,e,t,a,n,i){wv("enter",r,e,t,a,n,i)}function qa(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Nr(r,e,t,a,n,i){qa(r)||wv("leave",r,e,t,a,n,i)}function _h(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Nr(r,{style:{opacity:0}},e,t,a)}function mi(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||_h(n,e,t,a)}):_h(r,e,t,a)}function We(r){o0(r).oldStyle=r.style}function Uw(r){return o0(r).oldStyle}var fs=Math.max,hs=Math.min,fc={};function Yw(r){return Tt.extend(r)}var Zw=db;function Xw(r,e){return Zw(r,e)}function $e(r,e){fc[r]=e}function Av(r){if(fc.hasOwnProperty(r))return fc[r]}function Xs(r,e,t,a){var n=cb(r,e);return t&&(a==="center"&&(t=l0(t,n.getBoundingRect())),u0(n,t)),n}function s0(r,e,t){var a=new Ne({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(l0(e,i))}}});return a}function l0(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);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 De=vb;function u0(r,e){if(!!r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Kw(r){return fb(r.shape,r.shape,r.style),r}function qw(r){return hb(r.shape,r.shape,r.style),r}var Zo=pb;function va(r,e){for(var t=vv([]);r&&r!==e;)as(t,r.getLocalTransform(),t),r=r.parent;return t}function He(r,e,t){return e&&!vn(e)&&(e=Ya.getLocalTransform(e)),t&&(e=Ni([],e)),Pe([],r,e)}function Ks(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=He(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function bh(r){return!r.isGroup}function jw(r){return r.shape!=null}function Fi(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){bh(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return jw(o)&&(s.shape=z({},o.shape)),s}var i=a(r);e.traverse(function(o){if(bh(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),lt(o,l,t,K(o).dataIndex)}}})}function c0(r,e){return G(r,function(t){var a=t[0];a=fs(a,e.x),a=hs(a,e.x+e.width);var n=t[1];return n=fs(n,e.y),n=hs(n,e.y+e.height),[a,n]})}function Jw(r,e){var t=fs(r.x,e.x),a=hs(r.x+r.width,e.x+e.width),n=fs(r.y,e.y),i=hs(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Hi(r,e,t){var a=z({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),J(n,t),new Ne(a)):Xs(r.replace("path://",""),a,t,"center")}function qn(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(v0(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function v0(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,c=o-n,v=s-i,f=Al(c,v,l,u);if(Qw(f))return!1;var h=r-n,p=e-i,d=Al(h,p,l,u)/f;if(d<0||d>1)return!1;var g=Al(h,p,c,v)/f;return!(g<0||g>1)}function Al(r,e,t,a){return r*a-t*e}function Qw(r){return r<=1e-6&&r>=-1e-6}function yn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=$(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Yt(l),function(c){U(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,formatterParams:s},n)}}function wh(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Hr(r,e){if(r)if(O(r))for(var t=0;t<r.length;t++)wh(r[t],e);else wh(r,e)}$e("circle",ur);$e("ellipse",Cm);$e("sector",Re);$e("ring",Gs);$e("polygon",Ee);$e("polyline",me);$e("rect",ft);$e("line",te);$e("bezierCurve",Fs);$e("arc",fv);const Wi=Object.freeze(Object.defineProperty({__proto__:null,updateProps:lt,initProps:It,removeElement:Nr,removeElementWithFadeOut:mi,isElementRemoved:qa,extendShape:Yw,extendPath:Xw,registerShape:$e,getShapeClass:Av,makePath:Xs,makeImage:s0,mergePath:De,resizePath:u0,subPixelOptimizeLine:Kw,subPixelOptimizeRect:qw,subPixelOptimize:Zo,getTransform:va,applyTransform:He,transformDirection:Ks,groupTransition:Fi,clipPointsByRect:c0,clipRectByRect:Jw,createIcon:Hi,linePolygonIntersect:qn,lineLineIntersect:v0,setTooltipConfig:yn,traverseElements:Hr,Group:tt,Image:Ne,Text:ct,Circle:ur,Ellipse:Cm,Sector:Re,Ring:Gs,Polygon:Ee,Polyline:me,Rect:ft,Line:te,BezierCurve:Fs,Arc:fv,IncrementalDisplayable:gb,CompoundPath:Dm,LinearGradient:Hs,RadialGradient:yb,BoundingRect:xt,OrientedBoundingRect:ns,Point:Gt,Path:Tt},Symbol.toStringTag,{value:"Module"}));var qs={};function f0(r,e){for(var t=0;t<he.length;t++){var a=he[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function hc(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=X(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<he.length;u++){var c=he[u],v=e[c];l[c]=mt(a?a.getFormattedLabel(n,c,null,i,v&&v.get("formatter")):null,s)}return l}function se(r,e,t,a){t=t||qs;for(var n=r instanceof ct,i=!1,o=0;o<gi.length;o++){var s=e[gi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new ct,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=hc(t,e),c=e.normal,v=!!c.getShallow("show"),f=Lt(c,a&&a.normal,t,!1,!n);f.text=u.normal,n||r.setTextConfig(ps(c,t,!1));for(var o=0;o<he.length;o++){var h=he[o],s=e[h];if(s){var p=l.ensureState(h),d=!!mt(s.getShallow("show"),v);if(d!==v&&(p.ignore=!d),p.style=Lt(s,a&&a[h],t,!0,!n),p.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=ps(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!v,l.useStyle(f),l.dirty(),t.enableTextSetter&&(mn(l).setLabelText=function(y){var m=hc(t,e,y);f0(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Jt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<he.length;a++){var n=he[a];t[n]=r.getModel([n,e])}return t}function Lt(r,e,t,a,n){var i={};return tA(i,r,t,a,n),e&&z(i,e),i}function ps(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=mt(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.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"?e.inheritColor||null:"auto",a}function tA(r,e,t,a,n){t=t||qs;var i=e.ecModel,o=i&&i.option.textStyle,s=eA(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Dh(l[u]={},c,o,t,a,n,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var f=e.get("minMargin");f!=null&&(r.margin=f),Dh(r,e,o,t,a,n,!0,!1)}function eA(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||qs).rich;if(t){e=e||{};for(var a=Yt(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var Ah=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Th=["align","lineHeight","width","height","tag","verticalAlign"],Ch=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dh(r,e,t,a,n,i,o,s){t=!n&&t||qs;var l=a&&a.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),v=mt(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var f=mt(e.getShallow("textBorderWidth"),t.textBorderWidth);f!=null&&(r.lineWidth=f);var h=mt(e.getShallow("textBorderType"),t.textBorderType);h!=null&&(r.lineDash=h);var p=mt(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!n&&v==null&&!s&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var d=0;d<Ah.length;d++){var g=Ah[d],y=mt(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var d=0;d<Th.length;d++){var g=Th[d],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var d=0;d<Ch.length;d++){var g=Ch[d],y=e.getShallow(g);y!=null&&(r[g]=y)}var S=e.getShallow("borderType");S!=null&&(r.borderDash=S),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function h0(r,e){var t=e&&e.getModel("textStyle");return Oi([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var mn=ut();function p0(r,e,t,a){if(!!r){var n=mn(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function d0(r,e,t,a,n){var i=mn(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=mt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var v=Xm(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:v;var f=hc({labelDataIndex:e,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);f0(r,f)}r.percent=0,(i.prevValue==null?It:lt)(r,{percent:1},a,e,null,u)}var rA=["textStyle","color"],Tl=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Cl=new ct,aA=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(rA):null)},r.prototype.getFont=function(){return h0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Tl.length;a++)t[Tl[a]]=this.getShallow(Tl[a]);return Cl.useStyle(t),Cl.update(),Cl.getBoundingRect()},r}();const nA=aA;var g0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],iA=xa(g0),oA=function(){function r(){}return r.prototype.getLineStyle=function(e){return iA(this,e)},r}(),y0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sA=xa(y0),lA=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return sA(this,e,t)},r}(),Ta=function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){nt(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(q(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!kt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(!!e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r}();yv(Ta);bw(Ta);qt(Ta,oA);qt(Ta,lA);qt(Ta,Dw);qt(Ta,nA);const wt=Ta;var uA=Math.round(Math.random()*10);function Sn(r){return[r||"",uA++].join("_")}function cA(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=qe(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=qe(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function vA(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,v=u.noEntryList,f={};for(w(i,function(m){f[m]=!0});v.length;){var h=v.pop(),p=c[h],d=!!f[h];d&&(s.call(l,h,p.originalDeps.slice()),delete f[h]),w(p.successor,d?y:g)}w(f,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&v.push(m)}function y(m){f[m]=!0,g(m)}};function t(i){var o={},s=[];return w(i,function(l){var u=a(o,l),c=u.originalDeps=e(l),v=n(c,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),w(v,function(f){st(u.predecessor,f)<0&&u.predecessor.push(f);var h=a(o,f);st(h.successor,f)<0&&h.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 w(i,function(l){st(o,l)>=0&&s.push(l)}),s}}function Wr(r,e){return nt(nt({},r,!0),e,!0)}const fA={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"}},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:". "}}}},hA={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var ds="ZH",Tv="EN",Si=Tv,Xo={},Cv={},m0=kt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(ds)>-1?ds:Si}():Si;function S0(r,e){r=r.toUpperCase(),Cv[r]=new wt(e),Xo[r]=e}function pA(r){if($(r)){var e=Xo[r.toUpperCase()]||{};return r===ds||r===Tv?q(e):nt(q(e),q(Xo[Si]),!1)}else return nt(q(r),q(Xo[Si]),!1)}function pc(r){return Cv[r]}function dA(){return Cv[Si]}S0(Tv,fA);S0(ds,hA);var Dv=1e3,Mv=Dv*60,li=Mv*60,Me=li*24,Mh=Me*365,jn={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}"},oo="{yyyy}-{MM}-{dd}",Ih={year:"{yyyy}",month:"{yyyy}-{MM}",day:oo,hour:oo+" "+jn.hour,minute:oo+" "+jn.minute,second:oo+" "+jn.second,millisecond:jn.none},Dl=["year","month","day","hour","minute","second","millisecond"],x0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ur(r,e){return r+="","0000".substr(0,e-r.length)+r}function ja(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 gA(r){return r===ja(r)}function yA(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function js(r,e,t,a){var n=tr(r),i=n[Iv(t)](),o=n[Ja(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Js(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[xi(t)](),v=(c-1)%12+1,f=n[Qs(t)](),h=n[tl(t)](),p=n[el(t)](),d=a instanceof wt?a:pc(a||m0)||dA(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),S=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ur(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ur(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ur(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ur(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,Ur(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ur(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ur(p,3)).replace(/{S}/g,p+"")}function mA(r,e,t,a,n){var i=null;if($(t))i=t;else if(X(t))i=t(r.value,e,{level:r.level});else{var o=z({},jn);if(r.level>0)for(var s=0;s<Dl.length;++s)o[Dl[s]]="{primary|"+o[Dl[s]]+"}";var l=t?t.inherit===!1?t:J(t,o):o,u=_0(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var c=x0.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var v=r.level==null?0:r.level>=0?r.level:i.length+r.level;v=Math.min(v,i.length-1),i=i[v]}}return js(new Date(r.value),i,n,a)}function _0(r,e){var t=tr(r),a=t[Ja(e)]()+1,n=t[Js(e)](),i=t[xi(e)](),o=t[Qs(e)](),s=t[tl(e)](),l=t[el(e)](),u=l===0,c=u&&s===0,v=c&&o===0,f=v&&i===0,h=f&&n===1,p=h&&a===1;return p?"year":h?"month":f?"day":v?"hour":c?"minute":u?"second":"millisecond"}function Lh(r,e,t){var a=pt(r)?tr(r):r;switch(e=e||_0(r,t),e){case"year":return a[Iv(t)]();case"half-year":return a[Ja(t)]()>=6?1:0;case"quarter":return Math.floor((a[Ja(t)]()+1)/4);case"month":return a[Ja(t)]();case"day":return a[Js(t)]();case"half-day":return a[xi(t)]()/24;case"hour":return a[xi(t)]();case"minute":return a[Qs(t)]();case"second":return a[tl(t)]();case"millisecond":return a[el(t)]()}}function Iv(r){return r?"getUTCFullYear":"getFullYear"}function Ja(r){return r?"getUTCMonth":"getMonth"}function Js(r){return r?"getUTCDate":"getDate"}function xi(r){return r?"getUTCHours":"getHours"}function Qs(r){return r?"getUTCMinutes":"getMinutes"}function tl(r){return r?"getUTCSeconds":"getSeconds"}function el(r){return r?"getUTCMilliseconds":"getMilliseconds"}function SA(r){return r?"setUTCFullYear":"setFullYear"}function b0(r){return r?"setUTCMonth":"setMonth"}function w0(r){return r?"setUTCDate":"setDate"}function A0(r){return r?"setUTCHours":"setHours"}function T0(r){return r?"setUTCMinutes":"setMinutes"}function C0(r){return r?"setUTCSeconds":"setSeconds"}function D0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function M0(r){if(!Gm(r))return $(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function I0(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var xn=Mm,xA=/([&<>"'])/g,_A={"&":"&","<":"<",">":">",'"':""","'":"'"};function ge(r){return r==null?"":(r+"").replace(xA,function(e,t){return _A[t]})}function dc(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Oi(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?tr(r):r;if(isNaN(+l)){if(s)return"-"}else return js(l,a,t)}if(e==="ordinal")return rc(r)?n(r):pt(r)&&i(r)?r+"":"-";var u=cr(r);return i(u)?M0(u):rc(r)?n(r):typeof r=="boolean"?r+"":"-"}var Ph=["a","b","c","d","e","f","g"],Ml=function(r,e){return"{"+r+(e==null?"":e)+"}"};function L0(r,e,t){O(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=Ph[i];r=r.replace(Ml(o),Ml(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Ml(Ph[l],s),t?ge(u):u)}return r}function bA(r,e,t){return w(e,function(a,n){r=r.replace("{"+n+"}",t?ge(a):a)}),r}function wA(r,e){var t=$(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.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:'+ge(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ge(a)+";"+(e||"")+'"></span>';var o=t.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 ba(r,e){return e=e||"transparent",$(r)?r:j(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function gs(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ko=w,P0=["left","right","top","bottom","width","height"],la=[["width","left","right"],["height","top","bottom"]];function Lv(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),v=e.childAt(u+1),f=v&&v.getBoundingRect(),h,p;if(r==="horizontal"){var d=c.width+(f?-f.x+c.x:0);h=i+d,h>a||l.newline?(i=0,h=d,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(f?-f.y+c.y:0);p=o+g,p>n||l.newline?(i+=s+t,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+t:o=p+t)})}var fa=Lv;Q(Lv,"vertical");Q(Lv,"horizontal");function AA(r,e,t){var a=e.width,n=e.height,i=F(r.left,a),o=F(r.top,n),s=F(r.right,a),l=F(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=xn(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Ut(r,e,t){t=xn(t||0);var a=e.width,n=e.height,i=F(r.left,a),o=F(r.top,n),s=F(r.right,a),l=F(r.bottom,n),u=F(r.width,a),c=F(r.height,n),v=t[2]+t[0],f=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-f-i),isNaN(c)&&(c=n-l-v-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=a-s-u-f),isNaN(o)&&(o=n-l-c-v),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-f;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-f-i-(s||0)),isNaN(c)&&(c=n-v-o-(l||0));var p=new xt(i+t[3],o+t[0],u,c);return p.margin=t,p}function rl(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new xt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var v=Ut(J({width:u.width,height:u.height},e),t,a),f=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===r&&r.markRedraw(),!0}function TA(r,e){return r[la[e][0]]!=null||r[la[e][1]]!=null&&r[la[e][2]]!=null}function _i(r){var e=r.layoutMode||r.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function Or(r,e,t){var a=t&&t.ignoreSize;!O(a)&&(a=[a,a]);var n=o(la[0],0),i=o(la[1],1);u(la[0],r,n),u(la[1],r,i);function o(c,v){var f={},h=0,p={},d=0,g=2;if(Ko(c,function(S){p[S]=r[S]}),Ko(c,function(S){s(e,S)&&(f[S]=p[S]=e[S]),l(f,S)&&h++,l(p,S)&&d++}),a[v])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(d===g||!h)return p;if(h>=g)return f;for(var y=0;y<c.length;y++){var m=c[y];if(!s(f,m)&&s(r,m)){f[m]=r[m];break}}return f}function s(c,v){return c.hasOwnProperty(v)}function l(c,v){return c[v]!=null&&c[v]!=="auto"}function u(c,v,f){Ko(c,function(h){v[h]=f[h]})}}function _n(r){return R0({},r)}function R0(r,e){return e&&r&&Ko(P0,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var CA=ut(),bn=function(r){E(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Sn("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=_i(this),i=n?_n(t):{},o=a.getTheme();nt(t,o.get(this.mainType)),nt(t,this.getDefaultOption()),n&&Or(t,i,n)},e.prototype.mergeOption=function(t,a){nt(this.option,t,!0);var n=_i(this);n&&Or(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Sw(t))return t.defaultOption;var a=CA(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=nt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return zi(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(wt);qm(bn,wt);Us(bn);cA(bn);vA(bn,DA);function DA(r){var e=[];return w(bn.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return qe(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}const ot=bn;var E0="";typeof navigator<"u"&&(E0=navigator.platform||"");var Pa="rgba(0, 0, 0, 0.2)";const MA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Pa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Pa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:E0.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 k0=Z(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Oe="original",oe="arrayRows",Ve="objectRows",er="keyedColumns",Pr="typedArray",N0="unknown",Qe="column",wn="row",Qt={Must:1,Might:2,Not:3},O0=ut();function IA(r){O0(r).datasetMap=Z()}function V0(r,e,t){var a={},n=Rv(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=O0(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,v;r=r.slice(),w(r,function(d,g){var y=j(d)?d:r[g]={name:d};y.type==="ordinal"&&c==null&&(c=g,v=p(y)),a[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});w(r,function(d,g){var y=d.name,m=p(d);if(c==null){var S=f.valueWayDim;h(a[y],S,m),h(o,S,m),f.valueWayDim+=m}else if(c===g)h(a[y],0,m),h(i,0,m);else{var S=f.categoryWayDim;h(a[y],S,m),h(o,S,m),f.categoryWayDim+=m}});function h(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Pv(r,e,t){var a={},n=Rv(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Ve||i===er)&&w(o,function(c,v){(j(c)?c.name:c)==="name"&&(s=v)});var l=function(){for(var c={},v={},f=[],h=0,p=Math.min(5,t);h<p;h++){var d=z0(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);f.push(d);var g=d===Qt.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&f[c.n]===Qt.Not)&&(c.n=h),y(c)&&f[c.n]!==Qt.Not)return c;g||(d===Qt.Might&&v.v==null&&h!==s&&(v.v=h),(v.n==null||v.n===v.v)&&(v.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(v)?v:null}();if(l){a.value=[l.v];var u=s!=null?s:l.n;a.itemName=[u],a.seriesName=[u]}return a}function Rv(r){var e=r.get("data",!0);if(!e)return zi(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ft).models[0]}function LA(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:zi(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ft).models}function B0(r,e){return z0(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function z0(r,e,t,a,n,i){var o,s=5;if(ke(r))return Qt.Not;var l,u;if(a){var c=a[i];j(c)?(l=c.name,u=c.type):$(c)&&(l=c)}if(u!=null)return u==="ordinal"?Qt.Must:Qt.Not;if(e===oe){var v=r;if(t===wn){for(var f=v[i],h=0;h<(f||[]).length&&h<s;h++)if((o=x(f[n+h]))!=null)return o}else for(var h=0;h<v.length&&h<s;h++){var p=v[n+h];if(p&&(o=x(p[i]))!=null)return o}}else if(e===Ve){var d=r;if(!l)return Qt.Not;for(var h=0;h<d.length&&h<s;h++){var g=d[h];if(g&&(o=x(g[l]))!=null)return o}}else if(e===er){var y=r;if(!l)return Qt.Not;var f=y[l];if(!f||ke(f))return Qt.Not;for(var h=0;h<f.length&&h<s;h++)if((o=x(f[h]))!=null)return o}else if(e===Oe)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],S=pn(g);if(!O(S))return Qt.Not;if((o=x(S[i]))!=null)return o}function x(b){var _=$(b);if(b!=null&&isFinite(b)&&b!=="")return _?Qt.Might:Qt.Not;if(_&&b!=="-")return Qt.Must}return Qt.Not}var gc=Z();function PA(r,e){ye(gc.get(r)==null&&e),gc.set(r,e)}function RA(r,e,t){var a=gc.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var Rh=ut(),EA=ut(),Ev=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=yt(this.get("color",!0)),i=this.get("colorLayer",!0);return G0(this,Rh,n,i,e,t,a)},r.prototype.clearColorPalette=function(){NA(this,Rh)},r}();function yc(r,e,t,a){var n=yt(r.get(["aria","decal","decals"]));return G0(r,EA,n,null,e,t,a)}function kA(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function G0(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?t:kA(a,o);if(c=c||t,!(!c||!c.length)){var v=c[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%c.length,v}}function NA(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var so,In,Eh,kh="\0_ec_inner",OA=1,F0=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new wt(i),this._locale=new wt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=Vh(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,Vh(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?Eh(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;IA(this),w(t,function(v,f){v!=null&&(ot.hasClass(f)?f&&(s.push(f),l.set(f,!0)):n[f]=n[f]==null?q(v):nt(n[f],v,!0))}),u&&u.each(function(v,f){ot.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),c,this);function c(v){var f=RA(this,v,yt(t[v])),h=i.get(v),p=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",d=Um(h,f,p);cw(d,v,ot),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,S;w(d,function(x,b){var _=x.existing,A=x.newOption;if(!A)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=v==="series",C=ot.getClass(v,x.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(S)return;S=!0}if(_&&_.constructor===C)_.name=x.keyInfo.name,_.mergeOption(A,this),_.optionUpdated(A,!1);else{var M=z({componentIndex:b},x.keyInfo);_=new C(A,this,this,M),z(_,M),x.brandNew&&(_.__requireNewView=!0),_.init(A,this,this),_.optionUpdated(null,!0)}}_?(g.push(_.option),y.push(_),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&so(this)}this._seriesIndices||so(this)},e.prototype.getOption=function(){var t=q(this.option);return w(t,function(a,n){if(ot.hasClass(n)){for(var i=yt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!di(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[kh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);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]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(yt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Nh("id",i,s):o!=null?l=Nh("name",o,s):l=bt(s,function(u){return!!u}),Oh(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):bt(this._componentsMap.get(n),function(u){return!!u});return l(Oh(o,t));function s(u){var c=n+"Index",v=n+"Id",f=n+"Name";return u&&(u[c]!=null||u[v]!=null||u[f]!=null)?{mainType:n,index:u[c],id:u[v],name:u[f]}:null}function l(u){return t.filter?bt(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(X(t)){var o=a,s=t;i.each(function(v,f){for(var h=0;v&&h<v.length;h++){var p=v[h];p&&s.call(o,f,p,p.componentIndex)}})}else for(var l=$(t)?i.get(t):j(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=$t(t,null);return bt(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return bt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return bt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){In(this),w(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){w(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){In(this),w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return w(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return In(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){In(this);var n=[];w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Z(n)},e.prototype.restoreData=function(t){so(this);var a=this._componentsMap,n=[];a.each(function(i,o){ot.hasClass(o)&&n.push(o)}),ot.topologicalTravel(n,ot.getAllClassMainTypes(),function(i){w(a.get(i),function(o){o&&(i!=="series"||!VA(o,t))&&o.restoreData()})})},e.internalField=function(){so=function(t){var a=t._seriesIndices=[];w(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=Z(a)},In=function(t){},Eh=function(t,a){t.option={},t.option[kh]=OA,t._componentsMap=Z({series:[]}),t._componentsCount=Z();var n=a.aria;j(n)&&n.enabled==null&&(n.enabled=!0),BA(a,t._theme.option),nt(a,MA,!1),t._mergeOption(a,null)}}(),e}(wt);function VA(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function BA(r,e){var t=r.color&&!r.colorLayer;w(e,function(a,n){n==="colorLayer"&&t||ot.hasClass(n)||(typeof a=="object"?r[n]=r[n]?nt(r[n],a,!1):q(a):r[n]==null&&(r[n]=a))})}function Nh(r,e,t){if(O(e)){var a=Z();return w(e,function(i){if(i!=null){var o=$t(i,null);o!=null&&a.set(i,!0)}}),bt(t,function(i){return i&&a.get(i[r])})}else{var n=$t(e,null);return bt(t,function(i){return i&&n!=null&&i[r]===n})}}function Oh(r,e){return e.hasOwnProperty("subType")?bt(r,function(t){return t&&t.subType===e.subType}):r}function Vh(r){var e=Z();return r&&w(yt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}qt(F0,Ev);const H0=F0;var zA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],GA=function(){function r(e){w(zA,function(t){this[t]=W(e[t],e)},this)}return r}();const W0=GA;var Il={},FA=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];w(Il,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){w(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Il[e]=t},r.get=function(e){return Il[e]},r}();const $i=FA;var HA=/^(min|max)?(.+)$/,WA=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(w(yt(e.series),function(o){o&&o.data&&ke(o.data)&&is(o.data)}),w(yt(e.dataset),function(o){o&&o.source&&ke(o.source)&&is(o.source)})),e=q(e);var n=this._optionBackup,i=$A(e,t,!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(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],q(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=q(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=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++)UA(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!ZA(o,this._currentMediaIndices)&&(s=G(o,function(c){return q(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function $A(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||c)&&(r.options=r.media=null),i=r),c&&O(u)&&w(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),f(i),w(l,function(h){return f(h)}),w(a,function(h){return f(h.option)});function f(h){w(e,function(p){p(h,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function UA(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return w(r,function(i,o){var s=o.match(HA);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();YA(a[u],i,l)||(n=!1)}}),n}function YA(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function ZA(r,e){return r.join(",")===e.join(",")}const XA=WA;var Be=w,bi=j,Bh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ll(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=Bh.length;t<a;t++){var n=Bh[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?nt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?nt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function ie(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,J(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Jn(r){ie(r,"itemStyle"),ie(r,"lineStyle"),ie(r,"areaStyle"),ie(r,"label"),ie(r,"labelLine"),ie(r,"upperLabel"),ie(r,"edgeLabel")}function zt(r,e){var t=bi(r)&&r[e],a=bi(t)&&t.textStyle;if(a)for(var n=0,i=ch.length;n<i;n++){var o=ch[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function Ae(r){r&&(Jn(r),zt(r,"label"),r.emphasis&&zt(r.emphasis,"label"))}function KA(r){if(!!bi(r)){Ll(r),Jn(r),zt(r,"label"),zt(r,"upperLabel"),zt(r,"edgeLabel"),r.emphasis&&(zt(r.emphasis,"label"),zt(r.emphasis,"upperLabel"),zt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Ll(e),Ae(e));var t=r.markLine;t&&(Ll(t),Ae(t));var a=r.markArea;a&&Ae(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!ke(i))for(var o=0;o<i.length;o++)Ae(i[o]);w(r.categories,function(u){Jn(u)})}if(n&&!ke(n))for(var o=0;o<n.length;o++)Ae(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ae(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)O(l[o])?(Ae(l[o][0]),Ae(l[o][1])):Ae(l[o]);r.type==="gauge"?(zt(r,"axisLabel"),zt(r,"title"),zt(r,"detail")):r.type==="treemap"?(ie(r.breadcrumb,"itemStyle"),w(r.levels,function(u){Jn(u)})):r.type==="tree"&&Jn(r.leaves)}}function nr(r){return O(r)?r:r?[r]:[]}function zh(r){return(O(r)?r[0]:r)||{}}function qA(r,e){Be(nr(r.series),function(a){bi(a)&&KA(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Be(t,function(a){Be(nr(r[a]),function(n){n&&(zt(n,"axisLabel"),zt(n.axisPointer,"label"))})}),Be(nr(r.parallel),function(a){var n=a&&a.parallelAxisDefault;zt(n,"axisLabel"),zt(n&&n.axisPointer,"label")}),Be(nr(r.calendar),function(a){ie(a,"itemStyle"),zt(a,"dayLabel"),zt(a,"monthLabel"),zt(a,"yearLabel")}),Be(nr(r.radar),function(a){zt(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Be(nr(r.geo),function(a){bi(a)&&(Ae(a),Be(nr(a.regions),function(n){Ae(n)}))}),Be(nr(r.timeline),function(a){Ae(a),ie(a,"label"),ie(a,"itemStyle"),ie(a,"controlStyle",!0);var n=a.data;O(n)&&w(n,function(i){j(i)&&(ie(i,"label"),ie(i,"itemStyle"))})}),Be(nr(r.toolbox),function(a){ie(a,"iconStyle"),Be(a.feature,function(n){ie(n,"iconStyle")})}),zt(zh(r.axisPointer),"label"),zt(zh(r.tooltip).axisPointer,"label")}function jA(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function JA(r,e,t,a){for(var n=e.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]]=t)}function Gh(r){r&&w(QA,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var QA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tT=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Pl=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ln(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Pl.length;t++){var a=Pl[t][1],n=Pl[t][0];e[a]!=null&&(e[n]=e[a])}}function Fh(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Hh(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function eT(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function $0(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&$0(r[t].children,e)}function U0(r,e){qA(r,e),r.series=yt(r.series),w(r.series,function(t){if(!!j(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),Fh(t.label);var n=t.data;if(n&&!ke(n))for(var i=0;i<n.length;i++)Fh(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=jA(t,"pointer.color");o!=null&&JA(t,"itemStyle.color",o)}else if(a==="bar"){Ln(t),Ln(t.backgroundStyle),Ln(t.emphasis);var n=t.data;if(n&&!ke(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Ln(n[i]),Ln(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Hh(t),$0(t.data,Hh)}else a==="graph"||a==="sankey"?eT(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&J(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),Gh(t)}}),r.dataRange&&(r.visualMap=r.dataRange),w(tT,function(t){var a=r[t];a&&(O(a)||(a=[a]),w(a,function(n){Gh(n)}))})}function rT(r){var e=Z();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.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:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(aT)}function aT(r){w(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,v){var f=o.get(e.stackedDimension,v);if(isNaN(f))return n;var h,p;s?p=o.getRawIndex(v):h=o.get(e.stackedByDimension,v);for(var d=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=Qb(f,m),d=m;break}}}return a[0]=f,a[1]=d,a})})}var al=function(){function r(e){this.data=e.data||(e.sourceFormat===er?{}:[]),this.sourceFormat=e.sourceFormat||N0,this.seriesLayoutBy=e.seriesLayoutBy||Qe,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&B0(this,a)===Qt.Must&&(n.type="ordinal")}}return r}();function kv(r){return r instanceof al}function mc(r,e,t){t=t||Y0(r);var a=e.seriesLayoutBy,n=iT(r,t,a,e.sourceHeader,e.dimensions),i=new al({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(e)});return i}function Nv(r){return new al({data:r,sourceFormat:ke(r)?Pr:Oe})}function nT(r){return new al({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:q(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Y0(r){var e=N0;if(ke(r))e=Pr;else if(O(r)){r.length===0&&(e=oe);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(O(n)){e=oe;break}else if(j(n)){e=Ve;break}}}}else if(j(r)){for(var i in r)if(U(r,i)&&vn(r[i])){e=er;break}}return e}function iT(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:Wh(n),startIndex:o,dimensionsDetectedCount:i};if(e===oe){var s=r;a==="auto"||a==null?$h(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},t,s,10):o=pt(a)?a:a?1:0,!n&&o===1&&(n=[],$h(function(u,c){n[c]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===wn?s.length:s[0]?s[0].length:null}else if(e===Ve)n||(n=oT(r));else if(e===er)n||(n=[],w(r,function(u,c){n.push(c)}));else if(e===Oe){var l=pn(r[0]);i=O(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Wh(n),dimensionsDetectedCount:i}}function oT(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t){var a=[];return w(t,function(n,i){a.push(i)}),a}}function Wh(r){if(!!r){var e=Z();return G(r,function(t,a){t=j(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function $h(r,e,t,a){if(e===wn)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function Z0(r){var e=r.sourceFormat;return e===Ve||e===er}var Yr,Zr,Xr,Uh,Yh,X0=function(){function r(e,t){var a=kv(e)?e:Nv(e);this._source=a;var n=this._data=a.data;a.sourceFormat===Pr&&(this._offset=0,this._dimSize=t,this._data=n),Yh(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;Yh=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,v=l.startIndex,f=l.dimensionsDefine,h=Uh[Ov(u,c)];if(z(o,h),u===Pr)o.getItem=t,o.count=n,o.fillStorage=a;else{var p=K0(u,c);o.getItem=W(p,null,s,v,f);var d=q0(u,c);o.count=W(d,null,s,v,f)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,v=0;v<u;v++)s[v]=l[c+v];return s},a=function(o,s,l,u){for(var c=this._data,v=this._dimSize,f=0;f<v;f++){for(var h=u[f],p=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],g=s-o,y=l[f],m=0;m<g;m++){var S=c[m*v+f];y[o+m]=S,S<p&&(p=S),S>d&&(d=S)}h[0]=p,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Uh=(e={},e[oe+"_"+Qe]={pure:!0,appendData:i},e[oe+"_"+wn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ve]={pure:!0,appendData:i},e[er]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var c=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)c.push(l[v])})}},e[Oe]={appendData:i},e[Pr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Zh=function(r,e,t,a){return r[a]},sT=(Yr={},Yr[oe+"_"+Qe]=function(r,e,t,a){return r[a+e]},Yr[oe+"_"+wn]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Yr[Ve]=Zh,Yr[er]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];i[o]=l?l[a]:null}return i},Yr[Oe]=Zh,Yr);function K0(r,e){var t=sT[Ov(r,e)];return t}var Xh=function(r,e,t){return r.length},lT=(Zr={},Zr[oe+"_"+Qe]=function(r,e,t){return Math.max(0,r.length-e)},Zr[oe+"_"+wn]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Zr[Ve]=Xh,Zr[er]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},Zr[Oe]=Xh,Zr);function q0(r,e){var t=lT[Ov(r,e)];return t}var Rl=function(r,e,t){return r[e]},uT=(Xr={},Xr[oe]=Rl,Xr[Ve]=function(r,e,t){return r[t]},Xr[er]=Rl,Xr[Oe]=function(r,e,t){var a=pn(r);return a instanceof Array?a[e]:a},Xr[Pr]=Rl,Xr);function j0(r){var e=uT[r];return e}function Ov(r,e){return r===oe?r+"_"+e:r}function rn(r,e,t){if(!!r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return j0(i)(a,o,s)}else{var l=a;return i===Oe&&(l=pn(a)),l}}}}var cT=/\{@(.+?)\}/g,Vv=function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,v=this.mainType,f=v==="series",h=a.userOutput&&a.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&O(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(X(i))return l.status=t,l.dimensionIndex=n,i(l);if($(i)){var c=L0(i,l);return c.replace(cT,function(v,f){var h=f.length,p=f;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var d=rn(s,e,p);if(o&&O(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return rn(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function Kh(r){var e,t;return j(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function ui(r){return new vT(r)}var vT=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.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(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!a&&(v||h<p)){var d=this._progress;if(O(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],h,p,l,u);else this._doProgress(d,h,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}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(e,t,a,n,i){qh.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:qh.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),O(t)&&!t.length&&(t=null)),this._progress=t,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(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),qh=function(){var r,e,t,a,n,i={reset:function(l,u,c,v){e=l,r=u,t=c,a=v,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}}();function Rr(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!pt(r)&&r!=null&&r!=="-"&&(r=+tr(r)),r==null||r===""?NaN:+r)}var fT=Z({number:function(r){return parseFloat(r)},time:function(r){return+tr(r)},trim:function(r){return $(r)?Oi(r):r}});function J0(r){return fT.get(r)}var Q0={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},hT=function(){function r(e,t){if(!pt(t)){var a="";ht(a)}this._opFn=Q0[e],this._rvalFloat=cr(t)}return r.prototype.evaluate=function(e){return pt(e)?this._opFn(e,this._rvalFloat):this._opFn(cr(e),this._rvalFloat)},r}(),tS=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=pt(e)?e:cr(e),n=pt(t)?t:cr(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(e),l=$(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),pT=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=cr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=cr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function dT(r,e){return r==="eq"||r==="ne"?new pT(r==="eq",e):U(Q0,r)?new hT(r,e):null}var gT=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Rr(e,t)},r}();function yT(r,e){var t=new gT,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Qe&&ht(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var S="";U(l,y)&&ht(S),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var v=K0(n,Qe);e.__isBuiltIn&&(t.getRawDataItem=function(d){return v(a,i,s,d)},t.getRawData=W(mT,null,r)),t.cloneRawData=W(ST,null,r);var f=q0(n,Qe);t.count=W(f,null,a,i,s);var h=j0(n);t.retrieveValue=function(d,g){var y=v(a,i,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return h(d,g,y.name)}};return t.getDimensionInfo=W(xT,null,s,l),t.cloneAllDimensionInfo=W(_T,null,s),t}function mT(r){var e=r.sourceFormat;if(!Bv(e)){var t="";ht(t)}return r.data}function ST(r){var e=r.sourceFormat,t=r.data;if(!Bv(e)){var a="";ht(a)}if(e===oe){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Ve){for(var n=[],i=0,o=t.length;i<o;i++)n.push(z({},t[i]));return n}}function xT(r,e,t){if(t!=null){if(pt(t)||!isNaN(t)&&!U(e,t))return r[t];if(U(e,t))return e[t]}}function _T(r){return q(r)}var eS=Z();function bT(r){r=q(r);var e=r.type,t="";e||ht(t);var a=e.split(":");a.length!==2&&ht(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,eS.set(e,r)}function wT(r,e,t){var a=yt(r),n=a.length,i="";n||ht(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=AT(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function AT(r,e,t,a){var n="";e.length||ht(n),j(r)||ht(n);var i=r.type,o=eS.get(i);o||ht(n);var s=G(e,function(u){return yT(u,o)}),l=yt(o.transform({upstream:s[0],upstreamList:s,config:q(r.config)}));return G(l,function(u,c){var v="";j(u)||ht(v),u.data||ht(v);var f=Y0(u.data);Bv(f)||ht(v);var h,p=e[0];if(p&&c===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),h={seriesLayoutBy:Qe,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:Qe,sourceHeader:0,dimensions:u.dimensions};return mc(u.data,h,null)})}function Bv(r){return r===oe||r===Ve}var nl="undefined",TT=typeof Uint32Array===nl?Array:Uint32Array,CT=typeof Uint16Array===nl?Array:Uint16Array,rS=typeof Int32Array===nl?Array:Int32Array,jh=typeof Float64Array===nl?Array:Float64Array,aS={float:jh,int:rS,ordinal:Array,number:Array,time:jh},El;function Pn(r){return r>65535?TT:CT}function Ra(){return[1/0,-1/0]}function DT(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Jh(r,e,t,a,n){var i=aS[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var Sc=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=El[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],Z0(n),this._dimensions=G(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new aS[t||"float"](this._rawCount),this._rawExtent[i]=Ra(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=Ra());for(var l=i[e],u=o;u<s;u++){var c=a[u]=t.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=n[u];Jh(a,u,c.type,l,!0)}for(var v=[],f=s;f<l;f++)for(var h=f-s,p=0;p<i;p++){var c=n[p],d=El.arrayRows.call(this,e[h]||v,c.property,h,p);a[p][f]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),c=0;c<s;c++){var v=o[c];l[c]||(l[c]=Ra()),Jh(i,c,v.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var f=[],h=e;h<t;h++){f=n.getItem(h,f);for(var p=0;p<s;p++){var d=i[p],g=this._dimValueGetter(f,u[p],h,p);d[h]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.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(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,c=0,v=this.count();c<v;c++){var f=this.getRawIndex(c),h=t-i[f],p=Math.abs(h);p<=a&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=Pn(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Pn(a._rawCount),o=new i(n),s=[],l=e.length,u=0,c=e[0],v=a._chunks,f=0;f<n;f++){var h=void 0,p=a.getRawIndex(f);if(l===0)h=t(f);else if(l===1){var d=v[c][p];h=t(d,f)}else{for(var g=0;g<l;g++)s[g]=v[e[g]][p];s[g]=f,h=t.apply(null,s)}h&&(o[u++]=p)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Yt(e),i=n.length;if(!i)return this;var o=t.count(),s=Pn(t._rawCount),l=new s(o),u=0,c=n[0],v=e[c][0],f=e[c][1],h=t._chunks,p=!1;if(!t._indices){var d=0;if(i===1){for(var g=h[n[0]],y=0;y<a;y++){var m=g[y];(m>=v&&m<=f||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(i===2){for(var g=h[n[0]],S=h[n[1]],x=e[n[1]][0],b=e[n[1]][1],y=0;y<a;y++){var m=g[y],_=S[y];(m>=v&&m<=f||isNaN(m))&&(_>=x&&_<=b||isNaN(_))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var A=t.getRawIndex(y),m=h[n[0]][A];(m>=v&&m<=f||isNaN(m))&&(l[u++]=A)}else for(var y=0;y<o;y++){for(var T=!0,A=t.getRawIndex(y),C=0;C<i;C++){var M=n[C],m=h[M][A];(m<e[M][0]||m>e[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=Ra();for(var v=0;v<s;v++){for(var f=e.getRawIndex(v),h=0;h<o;h++)l[h]=n[t[h]][f];l[o]=v;var p=a&&a.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var d=t[c],g=p[c],y=u[d],m=n[d];m&&(m[f]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,v,f,h=new(Pn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,S=d;S<g;S++){var x=this.getRawIndex(S),b=i[x];isNaN(b)||(m+=b)}m/=g-d;var _=p,A=Math.min(p+l,o),T=p-1,C=i[u];c=-1,f=_;for(var M=-1,D=0,S=_;S<A;S++){var x=this.getRawIndex(S),b=i[x];if(isNaN(b)){D++,M<0&&(M=x);continue}v=Math.abs((T-y)*(b-C)-(T-S)*(m-C)),v>c&&(c=v,f=x)}D>0&&D<A-_&&(h[s++]=Math.min(M,f),f=Math.max(M,f)),h[s++]=f,u=f}return h[s++]=this.getRawIndex(o-1),a._count=s,a._indices=h,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),v=i._rawExtent[e]=Ra(),f=new(Pn(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,c-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),f[h++]=m}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(!!this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=Ra();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),v=t[c];v<s&&(s=v),v>l&&(l=v)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&tn(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?DT(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=q(this._extent),e._rawExtent=q(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Rr(t[i],this._dimensions[i])}El={arrayRows:e,objectRows:function(t,a,n,i){return Rr(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Rr(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),nS=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(lo(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=ke(s)?Pr:Oe,i=[];var v=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=mt(v.seriesLayoutBy,f.seriesLayoutBy)||null,p=mt(v.sourceHeader,f.sourceHeader),d=mt(v.dimensions,f.dimensions),g=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||d;n=g?[mc(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var S=y.get("source",!0);n=[mc(S,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&tp(i)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var c=u.getSource(n||0),v="";n!=null&&!c&&tp(v),s.push(c),l.push(u._getVersionSign())}),a?o=wT(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[nT(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,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];lo(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new Sc,s.initData(new X0(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(lo(e)){var t=Rv(e);return t?[t.getSourceManager()]:[]}else return G(LA(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(lo(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r}();function Qh(r){var e=r.option.transform;e&&is(r.option.transform)}function lo(r){return r.mainType==="series"}function tp(r){throw new Error(r)}var iS="line-height:1";function oS(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ge(a+"")+"px;color:"+ge(t)+";font-weight:"+ge(n+""),valueStyle:"font-size:"+ge(o+"")+"px;color:"+ge(i)+";font-weight:"+ge(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var MT=[0,10,20,30],IT=["",`
|
|
`,`
|
|
|
|
`,`
|
|
|
|
|
|
`];function Kt(r,e){return e.type=r,e}function xc(r){return r.type==="section"}function sS(r){return xc(r)?LT:PT}function lS(r){if(xc(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return w(r.blocks,function(n){var i=lS(n);i>=e&&(e=i+ +(a&&(!i||xc(n)&&!n.noHeader)))}),e}return 0}function LT(r,e,t,a){var n=e.noHeader,i=RT(lS(e)),o=[],s=e.blocks||[];ye(!s||O(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(U(u,l)){var c=new tS(u[l],null);s.sort(function(p,d){return c.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(p,d){var g=e.valueFormatter,y=sS(p)(g?z(z({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);y!=null&&o.push(y)});var v=r.renderMode==="richText"?o.join(i.richText):_c(o.join(""),n?t:i.html);if(n)return v;var f=dc(e.header,"ordinal",r.useUTC),h=oS(a,r.renderMode).nameStyle;return r.renderMode==="richText"?uS(r,f,h)+i.richText+v:_c('<div style="'+h+";"+iS+';">'+ge(f)+"</div>"+v,t)}function PT(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(x){return x=O(x)?x:[x],G(x,function(b,_){return dc(b,O(h)?h[_]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),f=i?"":dc(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),d=!s||!i,g=!s&&i,y=oS(a,n),m=y.nameStyle,S=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":uS(r,f,m))+(o?"":NT(r,p,d,g,S)):_c((s?"":v)+(i?"":ET(f,!s,m))+(o?"":kT(p,d,g,S)),t)}}function ep(r,e,t,a,n,i){if(!!r){var o=sS(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function RT(r){return{html:MT[r],richText:IT[r]}}function _c(r,e){var t='<div style="clear:both"></div>',a="margin: "+e+"px 0 0";return'<div style="'+a+";"+iS+';">'+r+t+"</div>"}function ET(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+ge(r)+"</span>"}function kT(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=O(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return ge(o)}).join(" ")+"</span>"}function uS(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function NT(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(e)?e.join(" "):e,i)}function cS(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return ba(a)}function vS(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var kl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Fm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=wA({color:t,type:e,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};O(t)?w(t,function(i){return z(a,i)}):z(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function fS(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=O(s),u=cS(e,t),c,v,f,h;if(o>1||l&&!o){var p=OT(s,e,t,i,u);c=p.inlineValues,v=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);h=c=rn(n,t,i[0]),v=d.type}else h=c=l?s[0]:s;var g=dv(e),y=g&&e.name||"",m=n.getName(t),S=a?y:m;return Kt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Kt("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Oi(S),value:c,valueType:v})].concat(f||[])})}function OT(r,e,t,a,n){var i=e.getData(),o=tn(r,function(v,f,h){var p=i.getDimensionInfo(h);return v=v||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?w(a,function(v){c(rn(i,t,v),v)}):w(r,c);function c(v,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(Kt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sr=ut();function uo(r,e){return r.getName(e)||r.getId(e)}var qo="__universalTransitionEnabled",il=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=ui({count:BT,reset:zT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Sr(this).sourceManager=new nS(this);i.prepareSource();var o=this.getInitialData(t,n);ap(o,this),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,rp(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=_i(this),i=n?_n(t):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),nt(t,a.getTheme().get(this.subType)),nt(t,this.getDefaultOption()),ma(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Or(t,i,n)},e.prototype.mergeOption=function(t,a){t=nt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=_i(this);n&&Or(this.option,t,n);var i=Sr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);ap(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,rp(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!ke(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ma(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=bc(this);if(a){var n=a.context.data;return t==null?n:n.getLinkedData(t)}else return Sr(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=bc(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Sr(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Z(t)},e.prototype.getSourceManager=function(){return Sr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Sr(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,n){return fS({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(kt.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Ev.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,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<t.length;s++){var l=t[s],u=uo(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Yt(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[uo(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[qo])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,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"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var v=a[c],f=uo(t,v);u[f]=!0,this._selectedDataIndicesMap[f]=t.getRawIndex(v)}}else if(s==="single"||s===!0){var h=a[l-1],f=uo(t,h);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(i={},i[f]=t.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return ot.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ot);qt(il,Vv);qt(il,Ev);qm(il,ot);function rp(r){var e=r.name;dv(r)||(r.name=VT(r)||e)}function VT(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return w(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function BT(r){return r.model.getRawData().count()}function zT(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),GT}function GT(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ap(r,e){w(os(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Q(FT,e))})}function FT(r,e){var t=bc(r);return t&&t.setOutputEnd((e||this).count()),e}function bc(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const Pt=il;var zv=function(){function r(){this.group=new tt,this.uid=Sn("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();yv(zv);Us(zv);const Et=zv;function An(){var r=ut();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var hS=ut(),HT=An(),Gv=function(){function r(){this.group=new tt,this.uid=Sn("viewChart"),this.renderTask=ui({plan:WT,reset:$T}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||ip(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||ip(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Hr(this.group,e)},r.markUpdateMethod=function(e,t){hS(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function np(r,e,t){r&&yi(r)&&(e==="emphasis"?vr:fr)(r,t)}function ip(r,e,t){var a=Sa(r,e),n=e&&e.highlightKey!=null?Ww(e.highlightKey):null;a!=null?w(yt(a),function(i){np(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){np(i,t,n)})}yv(Gv);Us(Gv);function WT(r){return HT(r.model)}function $T(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&hS(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),UT[l]}var UT={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const At=Gv;var ys="\0__throttleOriginMethod",op="\0__throttleRate",sp="\0__throttleType";function Fv(r,e,t){var a,n=0,i=0,o=null,s,l,u,c;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var f=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];a=new Date().getTime(),l=this,u=h;var d=c||e,g=c||t;c=null,s=a-(g?n:i)-d,clearTimeout(o),g?o=setTimeout(v,d):s>=0?v():o=setTimeout(v,-s),n=a};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function Tn(r,e,t,a){var n=r[e];if(!!n){var i=n[ys]||n,o=n[sp],s=n[op];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Fv(i,t,a==="debounce"),n[ys]=i,n[sp]=a,n[op]=t}return n}}function wi(r,e){var t=r[e];t&&t[ys]&&(t.clear&&t.clear(),r[e]=t[ys])}var lp=ut(),up={itemStyle:xa(y0,!0),lineStyle:xa(g0,!0)},YT={lineStyle:"stroke",itemStyle:"fill"};function pS(r,e){var t=r.visualStyleMapper||up[e];return t||(console.warn("Unkown style type '"+e+"'."),up.itemStyle)}function dS(r,e){var t=r.visualDrawType||YT[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var ZT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=pS(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=dS(r,a),u=o[l],c=X(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||v){var f=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var d=r.getDataParams(p),g=z({},o);g[l]=c(d),h.setItemVisual(p,"style",g)}}}},Rn=new wt,XT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=pS(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Rn.option=l[a];var u=n(Rn),c=o.ensureUniqueItemVisual(s,"style");z(c,u),Rn.option.decal&&(o.setItemVisual(s,"decal",Rn.option.decal),Rn.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},KT={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),lp(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=lp(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=dS(t,s);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],v=i.getItemVisual(c,"colorFromPalette");if(v){var f=i.ensureUniqueItemVisual(c,"style"),h=a.getName(u)||u+"",p=a.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},co=Math.PI;function qT(r,e){e=e||{},J(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new tt,a=new ft({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new ct({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new ft({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new fv({shape:{startAngle:-co/2,endAngle:-co/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:co*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:co*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.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()})},t.resize(),t}var jT=function(){function r(e,t,a,n){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__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(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=Z();e.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}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;w(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";ye(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;w(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),v=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,a);var d=o.getPerformArgs(f,n.block);p.each(function(g){g.perform(d)}),f.perform(d)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(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(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(c):l?a.eachRawSeriesByType(l,c):u&&u(a,n).each(c);function c(v){var f=v.uid,h=s.set(f,o&&o.get(f)||ui({plan:rC,reset:aC,count:iC}));h.context={model:v,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||ui({reset:JT});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,c=e.getTargetSeries,v=!0,f=!1,h="";ye(!e.createOnAllSeries,h),u?a.eachRawSeriesByType(u,p):c?c(a,n).each(p):(v=!1,w(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(f=!0,ui({reset:QT,onDirty:eC})));y.context={model:d,overallProgress:v},y.agent=o,y.__block=v,i._pipe(d,y)}f&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return X(e)&&(e={overallReset:e,seriesType:oC(e)}),e.uid=Sn("stageHandler"),t&&(e.visualType=t),e},r}();function JT(r){r.overallReset(r.ecModel,r.api,r.payload)}function QT(r){return r.overallProgress&&tC}function tC(){this.agent.dirty(),this.getDownstream().dirty()}function eC(){this.agent&&this.agent.dirty()}function rC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function aC(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=yt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return gS(a)}):nC}var nC=gS(0);function gS(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function iC(r){return r.data.count()}function oC(r){ms=null;try{r(Ai,yS)}catch{}return ms}var Ai={},yS={},ms;mS(Ai,H0);mS(yS,W0);Ai.eachSeriesByType=Ai.eachRawSeriesByType=function(r){ms=r};Ai.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ms=r.subType)};function mS(r,e){for(var t in e.prototype)r[t]=fe}const SS=jT;var cp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const sC={color:cp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],cp]};var le="#B9B8CE",vp="#100C2A",vo=function(){return{axisLine:{lineStyle:{color:le}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},fp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],xS={darkMode:!0,color:fp,backgroundColor:vp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:le}},textStyle:{color:le},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:le}},dataZoom:{borderColor:"#71708A",textStyle:{color:le},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:le}},timeline:{lineStyle:{color:le},label:{color:le},controlStyle:{color:le,borderColor:le}},calendar:{itemStyle:{color:vp},dayLabel:{color:le},monthLabel:{color:le},yearLabel:{color:le}},timeAxis:vo(),logAxis:vo(),valueAxis:vo(),categoryAxis:vo(),line:{symbol:"circle"},graph:{color:fp},gauge:{title:{color:le},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:le},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};xS.categoryAxis.splitLine.show=!1;const lC=xS;var uC=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if($(e)){var i=qe(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(l,u){for(var c=!1,v=0;v<o.length;v++){var f=o[v],h=u.lastIndexOf(f);if(h>0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){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=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function c(v,f,h,p){return v[h]==null||f[p||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),wc=["symbol","symbolSize","symbolRotate","symbolOffset"],hp=wc.concat(["symbolKeepAspect"]),cC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<wc.length;o++){var s=wc[o],l=r.get(s);X(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(z({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Yt(n);function c(v,f){for(var h=r.getRawValue(f),p=r.getDataParams(f),d=0;d<u.length;d++){var g=u[d];v.setItemVisual(f,g,n[g](h,p))}}return{dataEach:i?c:null}}},vC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<hp.length;s++){var l=hp[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function Hv(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Ui(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function _S(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function bS(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=z({},n),o.dispatchAction(z(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Ea(r,e,t,a,n){var i=r+e;t.isSilent(i)||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 v=o.getData(),f=Sa(v,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:O(f)?v.getName(f[0]):v.getName(f),selected:$(l)?l:z({},l)})}})}function fC(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Ea("map","selectchanged",e,n,a),Ea("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Ea("map","selected",e,n,a),Ea("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Ea("map","unselected",e,n,a),Ea("pie","unselected",e,n,a))})}function Xa(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var hC=Tt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),pC=Tt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),dC=Tt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,v=Math.sin(u),f=Math.cos(u),h=o*.6,p=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-v*h,l+s+f*h,t,a-p,t,a),r.bezierCurveTo(t,a-p,t-c+v*h,l+s+f*h,t-c,l+s),r.closePath()}}),gC=Tt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),yC={line:te,rect:ft,roundRect:ft,square:ft,circle:ur,diamond:pC,pin:dC,arrow:gC,triangle:hC},mC={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},Ss={};w(yC,function(r,e){Ss[e]=new r});var SC=Tt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=nc(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=Ss[a];n||(a="rect",n=Ss[a]),mC[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function xC(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Ht(r,e,t,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=s0(r.slice(8),new xt(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Xs(r.slice(7),{},new xt(e,t,a,n),o?"center":"cover"):l=new SC({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=xC,i&&l.setColor(i),l}function Yi(r){return O(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Cn(r,e){if(r!=null)return O(r)||(r=[r,r]),[F(r[0],e[0])||0,F(mt(r[1],r[0]),e[1])||0]}var Nl=new mb,pp=new Tm(100),dp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function an(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&Nl.delete(r);var i=Nl.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/t,Nl.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],v=!0,f=0;f<dp.length;++f){var h=o[dp[f]];if(h!=null&&!O(h)&&!$(h)&&!pt(h)&&typeof h!="boolean"){v=!1;break}c.push(h)}var p;if(v){p=c.join(",")+(n?"-svg":"");var d=pp.get(p);d&&(n?u.svgElement=d:u.image=d)}var g=AS(o.dashArrayX),y=_C(o.dashArrayY),m=wS(o.symbol),S=bC(g),x=TS(y),b=!n&&ss.createCanvas(),_=n&&{tag:"g",attrs:{},key:"dcl",children:[]},A=C(),T;b&&(b.width=A.width*t,b.height=A.height*t,T=b.getContext("2d")),M(),v&&pp.put(p,b||_),u.image=b,u.svgElement=_,u.svgWidth=A.width,u.svgHeight=A.height;function C(){for(var D=1,I=0,L=S.length;I<L;++I)D=lh(D,S[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=lh(P,m[I].length);D*=P;var R=x*S.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-x,P=0,R=0,k=0;L<A.height;){if(P%2===0){for(var B=R/2%m.length,N=0,V=0,H=0;N<A.width*2;){for(var Y=0,I=0;I<g[k].length;++I)Y+=g[k][I];if(Y<=0)break;if(V%2===0){var et=(1-o.symbolSize)*.5,it=N+g[k][V]*et,gt=L+y[P]*et,Vt=g[k][V]*o.symbolSize,Dt=y[P]*o.symbolSize,vt=H/2%m[B].length;rt(it,gt,Vt,Dt,m[B][vt])}N+=g[k][V],++H,++V,V===g[k].length&&(V=0)}++k,k===g.length&&(k=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function rt(Ct,St,Rt,Zt,ae){var Mt=n?1:t,Wt=Ht(ae,Ct*Mt,St*Mt,Rt*Mt,Zt*Mt,o.color,o.symbolKeepAspect);if(n){var Xt=a.painter.renderOneToVNode(Wt);Xt&&_.children.push(Xt)}else Sb(T,Wt)}}}}function wS(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!$(r[t])){e=!1;break}if(e)return wS([r]);for(var a=[],t=0;t<r.length;++t)$(r[t])?a.push([r[t]]):a.push(r[t]);return a}function AS(r){if(!r||r.length===0)return[[0,0]];if(pt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!pt(r[a])){t=!1;break}if(t)return AS([r]);for(var n=[],a=0;a<r.length;++a)if(pt(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=G(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function _C(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(pt(r)){var e=Math.ceil(r);return[e,e]}var t=G(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function bC(r){return G(r,function(e){return TS(e)})}function TS(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function wC(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=an(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=an(n,e)}}})}var AC=new fn;const ze=AC;var CS={};function TC(r,e){CS[r]=e}function CC(r){return CS[r]}var DC=typeof window<"u",MC=1,IC=800,LC=900,PC=1e3,RC=2e3,EC=5e3,DS=1e3,kC=1100,Wv=2e3,MS=3e3,NC=4e3,ol=4500,OC=4600,VC=5e3,BC=6e3,IS=7e3,zC={PROCESSOR:{FILTER:PC,SERIES_FILTER:IC,STATISTIC:EC},VISUAL:{LAYOUT:DS,PROGRESSIVE_LAYOUT:kC,GLOBAL:Wv,CHART:MS,POST_CHART_LAYOUT:OC,COMPONENT:NC,BRUSH:VC,CHART_ITEM:ol,ARIA:BC,DECAL:IS}},ne="__flagInMainProcess",pe="__pendingUpdate",Ol="__needsUpdateStatus",gp=/^[a-zA-Z0-9_]+$/,Vl="__connectUpdateStatus",yp=0,GC=1,FC=2;function LS(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return RS(this,r,e)}}function PS(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return RS(this,r,e)}}function RS(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),fn.prototype[e].apply(r,t)}var ES=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(fn),kS=ES.prototype;kS.on=PS("on");kS.off=PS("off");var ka,Bl,fo,xr,zl,Gl,Fl,En,kn,mp,Sp,Hl,xp,ho,_p,NS,xe,bp,OS=function(r){E(e,r);function e(t,a,n){var i=r.call(this,new uC)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},$(a)&&(a=VS[a]),i._dom=t;var o="canvas",s=!1,l=i._zr=Jf(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:n.useDirtyRect==null?s:n.useDirtyRect});i._ssr=n.ssr,i._throttledZrFlush=Fv(W(l.flush,l),17),a=q(a),a&&U0(a,!0),i._theme=a,i._locale=pA(n.locale||m0),i._coordSysMgr=new $i;var u=i._api=_p(i);function c(v,f){return v.__prio-f.__prio}return Sl(_s,c),Sl(Ac,c),i._scheduler=new SS(i,u,Ac,_s),i._messageCenter=new ES,i._initEvents(),i.resize=W(i.resize,i),l.animation.on("frame",i._onframe,i),mp(l,i),Sp(l,i),is(i),i}return e.prototype._onframe=function(){if(!this._disposed){bp(this);var t=this._scheduler;if(this[pe]){var a=this[pe].silent;this[ne]=!0;try{ka(this),xr.update.call(this,null,this[pe].updateParams)}catch(l){throw this[ne]=!1,this[pe]=null,l}this._zr.flush(),this[ne]=!1,this[pe]=null,En.call(this,a),kn.call(this,a)}else if(t.unfinished){var n=MC,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Gl(this,i),t.performVisualTasks(i),ho(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[ne]){if(this._disposed){this.id;return}var i,o,s;if(j(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ne]=!0,!this._model||a){var l=new XA(this._api),u=this._theme,c=this._model=new H0;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Tc);var v={seriesTransition:s,optionChanged:!0};if(n)this[pe]={silent:i,updateParams:v},this[ne]=!1,this.getZr().wakeUp();else{try{ka(this),xr.update.call(this,null,v)}catch(f){throw this[pe]=null,this[ne]=!1,f}this._ssr||this._zr.flush(),this[pe]=null,this[ne]=!1,En.call(this,i),kn.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||DC&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(!!kt.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return w(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;w(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(t).toDataURL("image/"+(t&&t.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(wp[n]){var l=s,u=s,c=-s,v=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(vi,function(S,x){if(S.group===n){var b=a?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(q(t)),_=S.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),c=o(_.right,c),v=o(_.bottom,v),f.push({dom:b,left:_.left,top:_.top})}}),l*=h,u*=h,c*=h,v*=h;var p=c-l,d=v-u,g=ss.createCanvas(),y=Jf(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return w(f,function(S){var x=S.left-l,b=S.top-u;m+='<g transform="translate('+x+","+b+')">'+S.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new ft({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),w(f,function(S){var x=new Ne({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return zl(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return zl(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=ii(n,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=ii(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Hv(s,l,a):Ui(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(HC,function(a){var n=function(i){var o=t.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Xa(s,function(p){var d=K(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=z({},d.eventData),!0},!0),l){var c=l.componentType,v=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=l.seriesIndex);var f=c&&v!=null&&o.getComponent(c,v),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),w(ci,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),w(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),fC(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Zm(this.getDom(),Uv,"");var a=this,n=a._api,i=a._model;w(a._componentsViews,function(o){o.dispose(i,n)}),w(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 vi[a.id]},e.prototype.resize=function(t){if(!this[ne]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[pe]&&(i==null&&(i=this[pe].silent),n=!0,this[pe]=null),this[ne]=!0;try{n&&ka(this),xr.update.call(this,{type:"resize",animation:z({duration:0},t&&t.animation)})}catch(o){throw this[ne]=!1,o}this[ne]=!1,En.call(this,i),kn.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(j(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Cc[t]){var n=Cc[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=z({},t);return a.type=ci[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(j(a)||(a={silent:!!a}),!!xs[t.type]&&!!this._model){if(this[ne]){this._pendingActions.push(t);return}var n=a.silent;Fl.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&kt.browser.weChat&&this._throttledZrFlush(),En.call(this,n),kn.call(this,n)}},e.prototype.updateLabelLayout=function(){ze.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ka=function(v){var f=v._scheduler;f.restorePipelines(v._model),f.prepareStageTasks(),Bl(v,!0),Bl(v,!1),f.plan()},Bl=function(v,f){for(var h=v._model,p=v._scheduler,d=f?v._componentsViews:v._chartsViews,g=f?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,S=0;S<d.length;S++)d[S].__alive=!1;f?h.eachComponent(function(_,A){_!=="series"&&x(A)}):h.eachSeries(x);function x(_){var A=_.__requireNewView;_.__requireNewView=!1;var T="_ec_"+_.id+"_"+_.type,C=!A&&g[T];if(!C){var M=qe(_.type),D=f?Et.getClass(M.main,M.sub):At.getClass(M.sub);C=new D,C.init(h,m),g[T]=C,d.push(C),y.add(C.group)}_.__viewId=C.__id=T,C.__alive=!0,C.__model=_,C.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!f&&p.prepareView(C,_,h,m)}for(var S=0;S<d.length;){var b=d[S];b.__alive?S++:(!f&&b.renderTask.dispose(),y.remove(b.group),b.dispose(h,m),d.splice(S,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},fo=function(v,f,h,p,d){var g=v._model;if(g.setUpdatePayload(h),!p){w([].concat(v._componentsViews).concat(v._chartsViews),b);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var S=h.excludeSeriesId,x;S!=null&&(x=Z(),w(yt(S),function(_){var A=$t(_,null);A!=null&&x.set(A,!0)})),g&&g.eachComponent(m,function(_){var A=x&&x.get(_.id)!==null;if(!A)if(xh(h))if(_ instanceof Pt)h.type===ua&&!h.notBlur&&!_.get(["emphasis","disabled"])&&Nw(_,h,v._api);else{var T=bv(_.mainType,_.componentIndex,h.name,v._api),C=T.focusSelf,M=T.dispatchers;h.type===ua&&C&&!h.notBlur&&uc(_.mainType,_.componentIndex,v._api),M&&w(M,function(D){h.type===ua?vr(D):fr(D)})}else vc(h)&&_ instanceof Pt&&(Bw(_,h,v._api),mh(_),xe(v))},v),g&&g.eachComponent(m,function(_){var A=x&&x.get(_.id)!==null;A||b(v[p==="series"?"_chartsMap":"_componentsMap"][_.__viewId])},v);function b(_){_&&_.__alive&&_[f]&&_[f](_.__model,g,v._api,h)}},xr={prepareAndUpdate:function(v){ka(this),xr.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,f){var h=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!h){h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,p),y.performDataProcessorTasks(h,v),Gl(this,h),g.update(h,p),t(h),y.performVisualTasks(h,v),Hl(this,h,p,v,f);var m=h.get("backgroundColor")||"transparent",S=h.get("darkMode");d.setBackgroundColor(m),S!=null&&S!=="auto"&&d.setDarkMode(S),ze.trigger("afterupdate",h,p)}},updateTransform:function(v){var f=this,h=this._model,p=this._api;if(!!h){h.setUpdatePayload(v);var d=[];h.eachComponent(function(y,m){if(y!=="series"){var S=f.getViewOfComponentModel(m);if(S&&S.__alive)if(S.updateTransform){var x=S.updateTransform(m,h,p,v);x&&x.update&&d.push(S)}else d.push(S)}});var g=Z();h.eachSeries(function(y){var m=f._chartsMap[y.__viewId];if(m.updateTransform){var S=m.updateTransform(y,h,p,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(h),this._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),ho(this,h,p,v,{},g),ze.trigger("afterupdate",h,p)}},updateView:function(v){var f=this._model;!f||(f.setUpdatePayload(v),At.markUpdateMethod(v,"updateView"),t(f),this._scheduler.performVisualTasks(f,v,{setDirty:!0}),Hl(this,f,this._api,v,{}),ze.trigger("afterupdate",f,this._api))},updateVisual:function(v){var f=this,h=this._model;!h||(h.setUpdatePayload(v),h.eachSeries(function(p){p.getData().clearAllVisual()}),At.markUpdateMethod(v,"updateVisual"),t(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,d){if(p!=="series"){var g=f.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,h,f._api,v)}}),h.eachSeries(function(p){var d=f._chartsMap[p.__viewId];d.updateVisual(p,h,f._api,v)}),ze.trigger("afterupdate",h,this._api))},updateLayout:function(v){xr.update.call(this,v)}},zl=function(v,f,h,p){if(v._disposed){v.id;return}for(var d=v._model,g=v._coordSysMgr.getCoordinateSystems(),y,m=ii(d,h),S=0;S<g.length;S++){var x=g[S];if(x[f]&&(y=x[f](d,m,p))!=null)return y}},Gl=function(v,f){var h=v._chartsMap,p=v._scheduler;f.eachSeries(function(d){p.updateStreamModes(d,h[d.__viewId])})},Fl=function(v,f){var h=this,p=this.getModel(),d=v.type,g=v.escapeConnect,y=xs[d],m=y.actionInfo,S=(m.update||"update").split(":"),x=S.pop(),b=S[0]!=null&&qe(S[0]);this[ne]=!0;var _=[v],A=!1;v.batch&&(A=!0,_=G(v.batch,function(P){return P=J(z({},P),v),P.batch=null,P}));var T=[],C,M=vc(v),D=xh(v);if(D&&i0(this._api),w(_,function(P){if(C=y.action(P,h._model,h._api),C=C||z({},P),C.type=m.event||C.type,T.push(C),D){var R=gv(v),k=R.queryOptionMap,B=R.mainTypeSpecified,N=B?k.keys()[0]:"series";fo(h,x,P,N),xe(h)}else M?(fo(h,x,P,"series"),xe(h)):b&&fo(h,x,P,b.main,b.sub)}),x!=="none"&&!D&&!M&&!b)try{this[pe]?(ka(this),xr.update.call(this,v),this[pe]=null):xr[x].call(this,v)}catch(P){throw this[ne]=!1,P}if(A?C={type:m.event||d,escapeConnect:g,batch:T}:C=T[0],this[ne]=!1,!f){var I=this._messageCenter;if(I.trigger(C.type,C),M){var L={type:"selectchanged",escapeConnect:g,selected:zw(p),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};I.trigger(L.type,L)}}},En=function(v){for(var f=this._pendingActions;f.length;){var h=f.shift();Fl.call(this,h,v)}},kn=function(v){!v&&this.trigger("updated")},mp=function(v,f){v.on("rendered",function(h){f.trigger("rendered",h),v.animation.isFinished()&&!f[pe]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},Sp=function(v,f){v.on("mouseover",function(h){var p=h.target,d=Xa(p,yi);d&&(Ow(d,h,f._api),xe(f))}).on("mouseout",function(h){var p=h.target,d=Xa(p,yi);d&&(Vw(d,h,f._api),xe(f))}).on("click",function(h){var p=h.target,d=Xa(p,function(m){return K(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=K(d);f._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(v){v.clearColorPalette(),v.eachSeries(function(f){f.clearColorPalette()})}function a(v){var f=[],h=[],p=!1;if(v.eachComponent(function(m,S){var x=S.get("zlevel")||0,b=S.get("z")||0,_=S.getZLevelKey();p=p||!!_,(m==="series"?h:f).push({zlevel:x,z:b,idx:S.componentIndex,type:m,key:_})}),p){var d=f.concat(h),g,y;Sl(d,function(m,S){return m.zlevel===S.zlevel?m.z-S.z:m.zlevel-S.zlevel}),w(d,function(m){var S=v.getComponent(m.type,m.idx),x=m.zlevel,b=m.key;g!=null&&(x=Math.max(g,x)),b?(x===g&&b!==y&&x++,y=b):y&&(x===g&&x++,y=""),g=x,S.setZLevel(x)})}}Hl=function(v,f,h,p,d){a(f),xp(v,f,h,p,d),w(v._chartsViews,function(g){g.__alive=!1}),ho(v,f,h,p,d),w(v._chartsViews,function(g){g.__alive||g.remove(f,h)})},xp=function(v,f,h,p,d,g){w(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,f,h,p),s(m,y),c(m,y)})},ho=function(v,f,h,p,d,g){var y=v._scheduler;d=z(d||{},{updatedSeries:f.getSeries()}),ze.trigger("series:beforeupdate",f,h,d);var m=!1;f.eachSeries(function(S){var x=v._chartsMap[S.__viewId];x.__alive=!0;var b=x.renderTask;y.updatePayload(b,p),u(S,x),g&&g.get(S.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),x.group.silent=!!S.get("silent"),o(S,x),mh(S)}),y.unfinished=m||y.unfinished,ze.trigger("series:layoutlabels",f,h,d),ze.trigger("series:transition",f,h,d),f.eachSeries(function(S){var x=v._chartsMap[S.__viewId];s(S,x),c(S,x)}),i(v,f),ze.trigger("series:afterupdate",f,h,d)},xe=function(v){v[Ol]=!0,v.getZr().wakeUp()},bp=function(v){!v[Ol]||(v.getZr().storage.traverse(function(f){qa(f)||n(f)}),v[Ol]=!1)};function n(v){for(var f=[],h=v.currentStates,p=0;p<h.length;p++){var d=h[p];d==="emphasis"||d==="blur"||d==="select"||f.push(d)}v.selected&&v.states.select&&f.push("select"),v.hoverState===Ys&&v.states.emphasis?f.push("emphasis"):v.hoverState===Gi&&v.states.blur&&f.push("blur"),v.useStates(f)}function i(v,f){var h=v._zr,p=h.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>f.get("hoverLayerThreshold")&&!kt.node&&!kt.worker&&f.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=v._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(v,f){var h=v.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(v,f){if(!v.preventAutoZ){var h=v.get("z")||0,p=v.get("zlevel")||0;f.eachRendered(function(d){return l(d,h,p,-1/0),!0})}}function l(v,f,h,p){var d=v.getTextContent(),g=v.getTextGuideLine(),y=v.isGroup;if(y)for(var m=v.childrenRef(),S=0;S<m.length;S++)p=Math.max(l(m[S],f,h,p),p);else v.z=f,v.zlevel=h,p=Math.max(v.z2,p);if(d&&(d.z=f,d.zlevel=h,isFinite(p)&&(d.z2=p+2)),g){var x=v.textGuideLineConfig;g.z=f,g.zlevel=h,isFinite(p)&&(g.z2=p+(x&&x.showAbove?1:-1))}return p}function u(v,f){f.eachRendered(function(h){if(!qa(h)){var p=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(v,f){var h=v.getModel("stateAnimation"),p=v.isAnimationEnabled(),d=h.get("duration"),g=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qa(y))return;if(y instanceof Tt&&$w(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var S=y.getTextContent(),x=y.getTextGuideLine();S&&(S.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&n(y)}})}_p=function(v){return new(function(f){E(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return v._model.getComponent(d.mainType,d.index);p=p.parent}},h.prototype.enterEmphasis=function(p,d){vr(p,d),xe(v)},h.prototype.leaveEmphasis=function(p,d){fr(p,d),xe(v)},h.prototype.enterBlur=function(p){e0(p),xe(v)},h.prototype.leaveBlur=function(p){_v(p),xe(v)},h.prototype.enterSelect=function(p){r0(p),xe(v)},h.prototype.leaveSelect=function(p){a0(p),xe(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(p){return v.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return v.getViewOfSeriesModel(p)},h}(W0))(v)},NS=function(v){function f(h,p){for(var d=0;d<h.length;d++){var g=h[d];g[Vl]=p}}w(ci,function(h,p){v._messageCenter.on(p,function(d){if(wp[v.group]&&v[Vl]!==yp){if(d&&d.escapeConnect)return;var g=v.makeActionFromEvent(d),y=[];w(vi,function(m){m!==v&&m.group===v.group&&y.push(m)}),f(y,yp),w(y,function(m){m[Vl]!==GC&&m.dispatchAction(g)}),f(y,FC)}})})}}(),e}(fn),$v=OS.prototype;$v.on=LS("on");$v.off=LS("off");$v.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var HC=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var xs={},ci={},Ac=[],Tc=[],_s=[],VS={},Cc={},vi={},wp={},WC=+new Date-0,Uv="_echarts_instance_";function G5(r,e,t){var a=!(t&&t.ssr);if(a){var n=$C(r);if(n)return n}var i=new OS(r,e,t);return i.id="ec_"+WC++,vi[i.id]=i,a&&Zm(r,Uv,i.id),NS(i),ze.trigger("afterinit",i),i}function $C(r){return vi[dw(r,Uv)]}function BS(r,e){VS[r]=e}function zS(r){st(Tc,r)<0&&Tc.push(r)}function GS(r,e){Zv(Ac,r,e,RC)}function UC(r){Yv("afterinit",r)}function YC(r){Yv("afterupdate",r)}function Yv(r,e){ze.on(r,e)}function rr(r,e,t){X(e)&&(t=e,e="");var a=j(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!ci[e]&&(ye(gp.test(a)&&gp.test(e)),xs[a]||(xs[a]={action:t,actionInfo:r}),ci[e]=a)}function ZC(r,e){$i.register(r,e)}function XC(r,e){Zv(_s,r,e,DS,"layout")}function Ca(r,e){Zv(_s,r,e,MS,"visual")}var Ap=[];function Zv(r,e,t,a,n){if((X(e)||j(e))&&(t=e,e=a),!(st(Ap,t)>=0)){Ap.push(t);var i=SS.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function FS(r,e){Cc[r]=e}function KC(r,e,t){var a=CC("registerMap");a&&a(r,e,t)}var qC=bT;Ca(Wv,ZT);Ca(ol,XT);Ca(ol,KT);Ca(Wv,cC);Ca(ol,vC);Ca(IS,wC);zS(U0);GS(LC,rT);FS("default",qT);rr({type:ua,event:ua,update:ua},fe);rr({type:Uo,event:Uo,update:Uo},fe);rr({type:oi,event:oi,update:oi},fe);rr({type:Yo,event:Yo,update:Yo},fe);rr({type:si,event:si,update:si},fe);BS("light",sC);BS("dark",lC);function Nn(r){return r==null?0:r.length||1}function Tp(r){return r}var jC=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Tp,this._newKeyGetter=n||Tp,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=Nn(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 e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],v=Nn(u),f=Nn(c);if(v>1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(v===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(v===1&&f===1)this._update&&this._update(c,u),n[l]=null;else if(v>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(v>1)for(var h=0;h<v;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=Nn(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);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=Nn(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}();const hr=jC;var JC=function(){function r(e,t){this._encode=e,this._schema=t}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 QC(r,e){var t={},a=t.encode={},n=Z(),i=[],o=[],s={};w(r.dimensions,function(f){var h=r.getDimensionInfo(f),p=h.coordDim;if(p){var d=h.coordDimIndex;Wl(a,p)[d]=f,h.isExtraCoord||(n.set(p,1),tD(h.type)&&(i[0]=f),Wl(s,p)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(f)}k0.each(function(g,y){var m=Wl(a,y),S=h.otherDims[y];S!=null&&S!==!1&&(m[S]=h.name)})});var l=[],u={};n.each(function(f,h){var p=a[h];u[h]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=G(l,function(f){return r.getDimensionInfo(f).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var v=a.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new JC(s,e),t}function Wl(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function bs(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function tD(r){return!(r==="ordinal"||r==="time")}var eD=function(){function r(e){this.otherDims={},e!=null&&z(this,e)}return r}();const jo=eD;var rD=ut(),aD={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},HS=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=US(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return mt(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Z0(this.source),a=!YS(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,c=v.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=t?f.name:null,u=f.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=aD[u]||"f",c&&(n+=c.uid),n+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function WS(r){return r instanceof HS}function $S(r){for(var e=Z(),t=0;t<(r||[]).length;t++){var a=r[t],n=j(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function US(r){var e=rD(r);return e.dimNameMap||(e.dimNameMap=$S(r.dimensionsDefine))}function YS(r){return r>30}var On=j,_r=G,nD=typeof Int32Array>"u"?Array:Int32Array,iD="e\0\0",Cp=-1,oD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sD=["_approximateExtent"],Dp,po,Vn,Bn,$l,go,Ul,lD=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;WS(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var v=a[c],f=$(v)?new jo({name:v}):v instanceof jo?v:new jo(v),h=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=h,f.coordDimIndex=0);var p=f.otherDims=f.otherDims||{};o.push(h),i[h]=f,u[h]!=null&&(l=!0),f.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),n&&(f.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=Z();w(o,function(g){d.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(pt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof Sc&&(i=e),!i){var o=this.dimensions,s=kv(e)||vn(e)?new X0(e,o.length):e;i=new Sc;var l=_r(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=QC(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&Ul(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Pr&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Oe;if(l&&!n.pure)for(var u=[],c=e;c<t;c++){var v=n.getItem(c,u);if(!this.hasItemOption&&rw(v)&&(this.hasItemOption=!0),v){var f=v.name;i[c]==null&&f!=null&&(i[c]=$t(f,null));var h=v.id;o[c]==null&&h!=null&&(o[c]=$t(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Ul(this,c);Dp(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){On(e)?z(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=Vn(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return po(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return O(e)?n.getValues(_r(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a[t];return n==null||isNaN(n)?Cp:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){X(e)&&(a=t,t=e,e=[]);var n=a||this,i=_r(Bn(e),this._getStoreDimIndex,this);this._store.each(i,n?W(t,n):t)},r.prototype.filterSelf=function(e,t,a){X(e)&&(a=t,t=e,e=[]);var n=a||this,i=_r(Bn(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?W(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Yt(e);return w(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){X(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=_r(Bn(e),this._getStoreDimIndex,this),s=go(this);return s._store=this._store.map(o,i?W(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=_r(Bn(e),this._getStoreDimIndex,this);this._store.modify(o,i?W(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=go(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.lttbDownSample=function(e,t){var a=go(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new wt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new hr(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return po(e,a)},function(a){return po(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},On(e)?z(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n==null?this.getVisual(t):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),O(i)?i=i.slice():On(i)&&(i=z({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,On(t)?z(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){On(e)?z(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?z(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;sc(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:_r(this.dimensions,this._getDimInfo,this),this.hostModel)),$l(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!X(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(xb(arguments)))})},r.internalField=function(){Dp=function(e){var t=e._invertedIndicesMap;w(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new nD(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Cp;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Vn=function(e,t,a){return $t(e._getCategory(t,a),null)},po=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=Vn(e,e._idDimIdx,t)),a==null&&(a=iD+t),a},Bn=function(e){return O(e)||(e=e!=null?[e]:[]),e},go=function(e){var t=new r(e._schema?e._schema:_r(e.dimensions,e._getDimInfo,e),e.hostModel);return $l(t,e),t},$l=function(e,t){w(oD.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,w(sD,function(a){e[a]=q(t[a])}),e._calculationInfo=z({},t._calculationInfo)},Ul=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=Vn(e,i,t)),l==null&&o!=null&&(n[t]=l=Vn(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[t]=l}}}(),r}();const ve=lD;function Zi(r,e){kv(r)||(r=Nv(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=Z(),i=[],o=cD(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&YS(o),l=a===r.dimensionsDefine,u=l?US(r):$S(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var v=Z(c),f=new rS(o),h=0;h<f.length;h++)f[h]=-1;function p(C){var M=f[C];if(M<0){var D=a[C],I=j(D)?D:{name:D},L=new jo,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=i.length;return f[C]=R,L.storeDimIndex=C,i.push(L),L}return i[M]}if(!s)for(var h=0;h<o;h++)p(h);v.each(function(C,M){var D=yt(C).slice();if(D.length===1&&!$(D[0])&&D[0]<0){v.set(M,!1);return}var I=v.set(M,[]);w(D,function(L,P){var R=$(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(p(R),M,P))})});var d=0;w(t,function(C){var M,D,I,L;if($(C))M=C,L={};else{L=C,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=z({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=v.get(M);if(R!==!1){if(R=yt(R),!R.length)for(var k=0;k<(D&&D.length||1);k++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}w(R,function(B,N){var V=p(B);if(l&&L.type!=null&&(V.type=L.type),g(J(V,L),M,N),V.name==null&&D){var H=D[N];!j(H)&&(H={name:H}),V.name=V.displayName=H.name,V.defaultTooltip=H.defaultTooltip}I&&J(V.otherDims,I)})}});function g(C,M,D){k0.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,n.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,S=m!=null;m=y?m||1:0;var x=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)w(i,function(C){b(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var _=0;_<o;_++){var A=p(_),T=A.coordDim;T==null&&(A.coordDim=vD(x,n,S),A.coordDimIndex=0,(!y||m<=0)&&(A.isExtraCoord=!0),m--),b(A),A.type==null&&(B0(r,_)===Qt.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return uD(i),new HS({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function uD(r){for(var e=Z(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function cD(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return w(e,function(i){var o;j(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function vD(r,e,t){var a=e.data;if(t||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return e.set(r,!0),r}var fD=function(){function r(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return r}();function hD(r){var e=r.get("coordinateSystem"),t=new fD(e),a=pD[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var pD={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Ft).models[0],i=r.getReferringComponents("yAxis",Ft).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Na(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Na(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Ft).models[0];e.coordSysDims=["single"],t.set("single",n),Na(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Ft).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Na(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Na(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Na(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Na(r){return r.get("type")==="category"}function dD(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;gD(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,v,f;if(w(i,function(m,S){$(m)&&(i[S]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(c=m))}),c&&!a&&!u&&(a=!0),c){v="__\0ecstackresult_"+r.id,f="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,d=0;w(i,function(m){m.coordDim===h&&d++});var g={name:v,coordDim:h,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(v,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:v}}function gD(r){return!WS(r.schema)}function Vr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function ZS(r,e){return Vr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function yD(r,e){var t=r.get("coordinateSystem"),a=$i.get(t),n;return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=bs(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function mD(r,e,t){var a,n;return t&&w(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function yr(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Nv(r)):(n=a.getSource(),i=n.sourceFormat===Oe);var o=hD(e),s=yD(e,o),l=t.useEncodeDefaulter,u=X(l)?l:l?Q(V0,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Zi(n,c),f=mD(v.dimensions,t.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),p=dD(e,{schema:v,store:h}),d=new ve(v,e);d.setCalculationInfo(p);var g=f!=null&&SD(n)?function(y,m,S,x){return x===f?S:this.defaultDimValueGetter(y,m,S,x)}:null;return d.hasItemOption=!1,d.initData(i?n:h,null,g),d}function SD(r){if(r.sourceFormat===Oe){var e=xD(r.data||[]);return!O(pn(e))}}function xD(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var XS=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Us(XS);const mr=XS;var _D=0,bD=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++_D}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,wD);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!$(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function wD(r){return j(r)&&r.value!=null?r.value:r+""}const Dc=bD;function Mc(r){return r.type==="interval"||r.type==="log"}function AD(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=zm(i/e,!0);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=KS(o),l=n.niceTickExtent=[Nt(Math.ceil(r[0]/o)*o,s),Nt(Math.floor(r[1]/o)*o,s)];return TD(l,r),n}function Yl(r){var e=Math.pow(10,pv(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Nt(t*e)}function KS(r){return Ke(r)+2}function Mp(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function TD(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Mp(r,0,e),Mp(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function sl(r,e){return r>=e[0]&&r<=e[1]}function ll(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function ul(r,e){return r*(e[1]-e[0])+e[0]}var qS=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Dc({})),O(n)&&(n=new Dc({categories:G(n,function(i){return j(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:$(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),sl(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),ll(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(ul(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.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}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(mr);mr.registerClass(qS);const Xv=qS;var Kr=Nt,jS=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return sl(t,this._extent)},e.prototype.normalize=function(t){return ll(t,this._extent)},e.prototype.scale=function(t){return ul(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=KS(t)},e.prototype.getTicks=function(t){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]&&(t?s.push({value:Kr(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Kr(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&&(t?s.push({value:Kr(c+a,o)}):s.push({value:n[1]})),s},e.prototype.getMinorTicks=function(t){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=[],v=s.value-l.value,f=v/t;u<t-1;){var h=Kr(l.value+(u+1)*f);h>i[0]&&h<i[1]&&c.push(h),u++}n.push(c)}return n},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Ke(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Kr(t.value,n,!0);return M0(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=AD(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=a[0];t.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(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Kr(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Kr(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e}(mr);mr.registerClass(jS);const Br=jS;var JS=typeof Float32Array<"u",CD=JS?Float32Array:Array;function je(r){return O(r)?JS?new Float32Array(r):r:new CD(r)}var Ic="__ec_stack_";function Kv(r){return r.get("stack")||Ic+r.seriesIndex}function qv(r){return r.dim+r.index}function DD(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(J({bandWidth:n,axisKey:a,stackId:Ic+i},r));for(var o=ex(e),s=[],i=0;i<r.count;i++){var l=o[a][Ic+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function QS(r,e){var t=[];return e.eachSeriesByType(r,function(a){nx(a)&&t.push(a)}),t}function MD(r){var e={};w(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var v=l.getData(),f=c.dim+"_"+c.index,h=v.getDimensionIndex(v.mapDimension(c.dim)),p=v.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(h,d);e[f]?e[f].push(y):e[f]=[y]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[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))}t[a]=i}}return t}function tx(r){var e=MD(r),t=[];return w(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=e[l],c=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),f=Math.abs(v[1]-v[0]);s=u?c/f*u:c}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=F(a.get("barWidth"),s),d=F(a.get("barMaxWidth"),s),g=F(a.get("barMinWidth")||(ix(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:qv(i),stackId:Kv(a)})}),ex(t)}function ex(r){var e={};w(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[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 v=a.barMaxWidth;v&&(l[u].maxWidth=v);var f=a.barMinWidth;f&&(l[u].minWidth=f);var h=a.barGap;h!=null&&(s.gap=h);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return w(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Yt(i).length;s=Math.max(35-l*4,15)+"%"}var u=F(s,o),c=F(a.gap,1),v=a.remainedWidth,f=a.autoWidthCount,h=(v-u)/(f+(f-1)*c);h=Math.max(h,0),w(i,function(y){var m=y.maxWidth,S=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),S&&(x=Math.max(x,S)),y.width=x,v-=x+c*x,f--}else{var x=h;m&&m<x&&(x=Math.min(m,v)),S&&S>x&&(x=S),x!==h&&(y.width=x,v-=x+c*x,f--)}}),h=(v-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,d;w(i,function(y,m){y.width||(y.width=h),d=y,p+=y.width*(1+c)}),d&&(p-=d.width*c);var g=-p/2;w(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),t}function ID(r,e,t){if(r&&e){var a=r[qv(e)];return a!=null&&t!=null?a[Kv(t)]:a}}function rx(r,e){var t=QS(r,e),a=tx(t);w(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Kv(n),u=a[qv(s)][l],c=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:v})})}function ax(r){return{seriesType:r,plan:An(),reset:function(e){if(!!nx(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),v=Vr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=LD(n,i),p=ix(e),d=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(S,x){for(var b=S.count,_=p&&je(b*3),A=p&&l&&je(b*3),T=p&&je(b),C=a.master.getRect(),M=f?C.width:C.height,D,I=x.getStore(),L=0;(D=S.next())!=null;){var P=I.get(v?g:o,D),R=I.get(s,D),k=h,B=void 0;v&&(B=+P-I.get(o,D));var N=void 0,V=void 0,H=void 0,Y=void 0;if(f){var et=a.dataToPoint([P,R]);if(v){var it=a.dataToPoint([B,R]);k=it[0]}N=k,V=et[1]+m,H=et[0]-k,Y=y,Math.abs(H)<d&&(H=(H<0?-1:1)*d)}else{var et=a.dataToPoint([R,P]);if(v){var it=a.dataToPoint([R,B]);k=it[1]}N=et[0]+m,V=k,H=y,Y=et[1]-k,Math.abs(Y)<d&&(Y=(Y<=0?-1:1)*d)}p?(_[L]=N,_[L+1]=V,_[L+2]=f?H:Y,A&&(A[L]=f?C.x:N,A[L+1]=f?V:C.y,A[L+2]=M),T[D]=D):x.setItemLayout(D,{x:N,y:V,width:H,height:Y}),L+=3}p&&x.setLayout({largePoints:_,largeDataIndices:T,largeBackgroundPoints:A,valueAxisHorizontal:f})}}}}}}function nx(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ix(r){return r.pipelineContext&&r.pipelineContext.large}function LD(r,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var PD=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},ox=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return js(t.value,Ih[yA(ja(this._minLevelUnit))]||Ih.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return mA(t,a,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,n=[];if(!t)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=BD(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Me,a[1]+=Me),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]-Me}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=yo.length,l=Math.min(PD(yo,this._approxInterval,0,s),s-1);this._interval=yo[l][1],this._minLevelUnit=yo[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return pt(t)?t:+tr(t)},e.prototype.contain=function(t){return sl(this.parse(t),this._extent)},e.prototype.normalize=function(t){return ll(this.parse(t),this._extent)},e.prototype.scale=function(t){return ul(t,this._extent)},e.type="time",e}(Br),yo=[["second",Dv],["minute",Mv],["hour",li],["quarter-day",li*6],["half-day",li*12],["day",Me*1.2],["half-week",Me*3.5],["week",Me*7],["month",Me*31],["quarter",Me*95],["half-year",Mh/2],["year",Mh]];function RD(r,e,t,a){var n=tr(e),i=tr(t),o=function(p){return Lh(n,p,a)===Lh(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},v=function(){return c()&&o("minute")},f=function(){return v()&&o("second")},h=function(){return f()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return v();case"second":return f();case"millisecond":return h()}}function ED(r,e){return r/=Me,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function kD(r){var e=30*Me;return r/=e,r>6?6:r>3?3:r>2?2:1}function ND(r){return r/=li,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ip(r,e){return r/=e?Mv:Dv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function OD(r){return zm(r,!0)}function VD(r,e,t){var a=new Date(r);switch(ja(e)){case"year":case"month":a[b0(t)](0);case"day":a[w0(t)](1);case"hour":a[A0(t)](0);case"minute":a[T0(t)](0);case"second":a[C0(t)](0),a[D0(t)](0)}return a.getTime()}function BD(r,e,t,a){var n=1e4,i=x0,o=0;function s(M,D,I,L,P,R,k){for(var B=new Date(D),N=D,V=B[L]();N<I&&N<=a[1];)k.push({value:N}),V+=M,B[P](V),N=B.getTime();k.push({value:N,notAdd:!0})}function l(M,D,I){var L=[],P=!D.length;if(!RD(ja(M),a[0],a[1],t)){P&&(D=[{value:VD(new Date(a[0]),M,t)},{value:a[1]}]);for(var R=0;R<D.length-1;R++){var k=D[R].value,B=D[R+1].value;if(k!==B){var N=void 0,V=void 0,H=void 0,Y=!1;switch(M){case"year":N=Math.max(1,Math.round(e/Me/365)),V=Iv(t),H=SA(t);break;case"half-year":case"quarter":case"month":N=kD(e),V=Ja(t),H=b0(t);break;case"week":case"half-week":case"day":N=ED(e),V=Js(t),H=w0(t),Y=!0;break;case"half-day":case"quarter-day":case"hour":N=ND(e),V=xi(t),H=A0(t);break;case"minute":N=Ip(e,!0),V=Qs(t),H=T0(t);break;case"second":N=Ip(e,!1),V=tl(t),H=C0(t);break;case"millisecond":N=OD(e),V=el(t),H=D0(t);break}s(N,k,B,V,H,Y,L),M==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],c=[],v=0,f=0,h=0;h<i.length&&o++<n;++h){var p=ja(i[h]);if(!!gA(i[h])){l(i[h],u[u.length-1]||[],c);var d=i[h+1]?ja(i[h+1]):null;if(p!==d){if(c.length){f=v,c.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=a[0]&&m<=a[1]&&v++)}var S=(a[1]-a[0])/e;if(v>S*1.5&&f>S/1.5||(u.push(g),v>S||r===i[h]))break}c=[]}}}for(var x=bt(G(u,function(M){return bt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],_=x.length-1,h=0;h<x.length;++h)for(var A=x[h],T=0;T<A.length;++T)b.push({value:A[T].value,level:_-h});b.sort(function(M,D){return M.value-D.value});for(var C=[],h=0;h<b.length;++h)(h===0||b[h].value!==b[h-1].value)&&C.push(b[h]);return C}mr.registerClass(ox);const sx=ox;var Lp=mr.prototype,fi=Br.prototype,zD=Nt,GD=Math.floor,FD=Math.ceil,mo=Math.pow,_e=Math.log,jv=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Br,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=fi.getTicks.call(this,t);return G(o,function(s){var l=s.value,u=Nt(mo(this.base,l));return u=l===n[0]&&this._fixMin?So(u,i[0]):u,u=l===n[1]&&this._fixMax?So(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=this.base;t=_e(t)/_e(n),a=_e(a)/_e(n),fi.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=Lp.getExtent.call(this);a[0]=mo(t,a[0]),a[1]=mo(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=So(a[0],i[0])),this._fixMax&&(a[1]=So(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=_e(t[0])/_e(a),t[1]=_e(t[1])/_e(a),Lp.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=ew(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Nt(FD(a[0]/i)*i),Nt(GD(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){fi.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=_e(t)/_e(this.base),sl(t,this._extent)},e.prototype.normalize=function(t){return t=_e(t)/_e(this.base),ll(t,this._extent)},e.prototype.scale=function(t){return t=ul(t,this._extent),mo(this.base,t)},e.type="log",e}(mr),lx=jv.prototype;lx.getMinorTicks=fi.getMinorTicks;lx.getLabel=fi.getLabel;function So(r,e){return zD(r,Ke(e))}mr.registerClass(jv);const HD=jv;var WD=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);X(i)?this._modelMinNum=xo(e,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=xo(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(X(o)?this._modelMaxNum=xo(e,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=xo(e,o)),n)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=O(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[en(l[0],1),en(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var v=ls(s)||ls(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:v}},r.prototype.modifyDataMinMax=function(e,t){this[UD[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=$D[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),$D={min:"_determinedMin",max:"_determinedMax"},UD={min:"_dataMin",max:"_dataMax"};function ux(r,e,t){var a=r.rawExtentInfo;return a||(a=new WD(r,e,t),r.rawExtentInfo=a,a)}function xo(r,e){return e==null?null:ls(e)?NaN:r.parse(e)}function cx(r,e){var t=r.type,a=ux(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=QS("bar",o),l=!1;if(w(s,function(v){l=l||v.getBaseAxis()===e.axis}),l){var u=tx(s),c=YD(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function YD(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=ID(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;w(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;w(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,v=1-(s+l)/i,f=c/v-c;return e+=f*(l/u),r-=f*(s/u),{min:r,max:e}}function nn(r,e){var t=e,a=cx(r,t),n=a.extent,i=t.get("splitNumber");r instanceof HD&&(r.base=t.get("logBase"));var o=r.type,s=t.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?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function cl(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Xv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new sx({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(mr.getClass(e)||Br)}}function ZD(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Xi(r){var e=r.getLabelModel().get("formatter"),t=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)}}(e):$(e)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(e):X(e)?function(a){return function(n,i){return t!=null&&(i=n.value-t),a(Jv(r,n),i,n.level!=null?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function Jv(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function XD(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof Xv?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=Xi(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var v=a?a[c]:{value:i[0]+c},f=s(v,c),h=o.getTextRect(f),p=KD(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function KD(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),s=new xt(r.x,r.y,i,o);return s}function Qv(r){var e=r.get("interval");return e==null?"auto":e}function vx(r){return r.type==="category"&&Qv(r.getLabelModel())===0}function ws(r,e){var t={};return w(r.mapDimensionsAll(e),function(a){t[ZS(r,a)]=!0}),Yt(t)}function qD(r,e,t){e&&w(ws(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Ki=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Pp=[],jD={registerPreprocessor:zS,registerProcessor:GS,registerPostInit:UC,registerPostUpdate:YC,registerUpdateLifecycle:Yv,registerAction:rr,registerCoordinateSystem:ZC,registerLayout:XC,registerVisual:Ca,registerTransform:qC,registerLoading:FS,registerMap:KC,registerImpl:TC,PRIORITY:zC,ComponentModel:ot,ComponentView:Et,SeriesModel:Pt,ChartView:At,registerComponentModel:function(r){ot.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){Pt.registerClass(r)},registerChartView:function(r){At.registerClass(r)},registerSubTypeDefaulter:function(r,e){ot.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){_b(r,e)}};function at(r){if(O(r)){w(r,function(e){at(e)});return}st(Pp,r)>=0||(Pp.push(r),X(r)&&(r={install:r}),r.install(jD))}var JD=[];function Zl(r,e){for(var t=0;t<r.length;t++)Pe(r[t],r[t],e)}function Rp(r,e,t,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])&&(Im(e,e,i),Lm(t,t,i))}}function QD(r){for(var e=0,t=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;e+=c,t+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var fx=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),Ep=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),kp=function(){function r(e){this.type="linestring",this.points=e}return r}(),hx=function(r){E(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return QD(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?Rp(s.exterior,n,i,t):w(s.points,function(l){Rp(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new xt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t: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(aa(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(aa(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new xt(t,a,n,i),u=o.calculateTransform(l),c=this.geometries,v=0;v<c.length;v++){var f=c[v];f.type==="polygon"?(Zl(f.exterior,u),w(f.interiors,function(h){Zl(h,u)})):w(f.points,function(h){Zl(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e}(fx),tM=function(r){E(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=vv(JD),o=t;o&&!o.isGeoSVGGraphicRoot;)as(i,o.getLocalTransform(),i),o=o.parent;return Ni(i,i),Pe(n,n,i),n},e}(fx);function eM(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return w(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=px(s,o,t);break;case"Polygon":Xl(s,o,t);break;case"MultiLineString":Xl(s,o,t);break;case"MultiPolygon":w(s,function(l,u){return Xl(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Xl(r,e,t){for(var a=0;a<r.length;a++)r[a]=px(r[a],e[a],t)}function px(r,e,t){for(var a=[],n=e[0],i=e[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/t,l/t])}return a}function rM(r,e){return r=eM(r),G(bt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Ep(o[0],o.slice(1)));break;case"MultiPolygon":w(n.coordinates,function(l){l[0]&&i.push(new Ep(l[0],l.slice(1)))});break;case"LineString":i.push(new kp([n.coordinates]));break;case"MultiLineString":i.push(new kp(n.coordinates))}var s=new hx(a[e||"name"],i,a.cp);return s.properties=a,s})}var Ti=ut();function aM(r){return r.type==="category"?iM(r):sM(r)}function nM(r,e){return r.type==="category"?oM(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}function iM(r){var e=r.getLabelModel(),t=dx(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function dx(r,e){var t=gx(r,"labels"),a=Qv(e),n=yx(t,a);if(n)return n;var i,o;return X(a)?i=xx(r,a):(o=a==="auto"?lM(r):a,i=Sx(r,o)),mx(t,a,{labels:i,labelCategoryInterval:o})}function oM(r,e){var t=gx(r,"ticks"),a=Qv(e),n=yx(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),X(a))i=xx(r,a,!0);else if(a==="auto"){var s=dx(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=a,i=Sx(r,o,!0);return mx(t,a,{ticks:i,tickCategoryInterval:o})}function sM(r){var e=r.scale.getTicks(),t=Xi(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function gx(r,e){return Ti(r)[e]||(Ti(r)[e]=[])}function yx(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function mx(r,e,t){return r.push({key:e,value:t}),t}function lM(r){var e=Ti(r).autoInterval;return e!=null?e:Ti(r).autoInterval=r.calculateCategoryInterval()}function uM(r){var e=cM(r),t=Xi(r),a=(e.axisRotate-e.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)),v=Math.abs(u*Math.sin(a)),f=0,h=0;l<=i[1];l+=s){var p=0,d=0,g=Ws(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,f=Math.max(f,p,7),h=Math.max(h,d,7)}var y=f/c,m=h/v;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var S=Math.max(0,Math.floor(Math.min(y,m))),x=Ti(r.model),b=r.getExtent(),_=x.lastAutoInterval,A=x.lastTickCount;return _!=null&&A!=null&&Math.abs(_-S)<=1&&Math.abs(A-o)<=1&&_>S&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?S=_:(x.lastTickCount=o,x.lastAutoInterval=S,x.axisExtent0=b[0],x.axisExtent1=b[1]),S}function cM(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Sx(r,e,t){var a=Xi(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||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 v=vx(r),f=o.get("showMinLabel")||v,h=o.get("showMaxLabel")||v;f&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);h&&p-l!==i[1]&&d(i[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function xx(r,e,t){var a=r.scale,n=Xi(r),i=[];return w(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Np=[0,1],vM=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Vm(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Op(a,n.count())),dt(e,Np,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Op(a,n.count()));var i=dt(e,a,Np,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=nM(this,t),n=a.ticks,i=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return fM(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=G(a,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return aM(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 e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return uM(this)},r}();function Op(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function fM(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;w(e,function(h){h.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s},e.push(o)}var v=i[0]>i[1];f(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Nt(h),p=Nt(p),v?h>p:h<p}}const Ue=vM;var zn=Math.PI*2,qr=Pm.CMD,hM=["top","right","bottom","left"];function pM(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function dM(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,v=s*t+e;if(Math.abs(a-n)%zn<1e-4)return l[0]=c,l[1]=v,u-t;if(i){var f=a;a=io(n),n=io(f)}else a=io(a),n=io(n);a>n&&(n+=zn);var h=Math.atan2(s,o);if(h<0&&(h+=zn),h>=a&&h<=n||h+zn>=a&&h+zn<=n)return l[0]=c,l[1]=v,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),S=(g-o)*(g-o)+(y-s)*(y-s);return m<S?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(S))}function As(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,c=t-r,v=a-e,f=Math.sqrt(c*c+v*v);c/=f,v/=f;var h=l*c+u*v,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var d=o[0]=r+p*c,g=o[1]=e+p*v;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function _x(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var Ge=[];function gM(r,e,t){var a=_x(e.x,e.y,e.width,e.height,r.x,r.y,Ge);return t.set(Ge[0],Ge[1]),a}function yM(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=e.data,v=r.x,f=r.y,h=0;h<c.length;){var p=c[h++];h===1&&(a=c[h],n=c[h+1],i=a,o=n);var d=u;switch(p){case qr.M:i=c[h++],o=c[h++],a=i,n=o;break;case qr.L:d=As(a,n,c[h],c[h+1],v,f,Ge,!0),a=c[h++],n=c[h++];break;case qr.C:d=wb(a,n,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],v,f,Ge),a=c[h++],n=c[h++];break;case qr.Q:d=bb(a,n,c[h++],c[h++],c[h],c[h+1],v,f,Ge),a=c[h++],n=c[h++];break;case qr.A:var g=c[h++],y=c[h++],m=c[h++],S=c[h++],x=c[h++],b=c[h++];h+=1;var _=!!(1-c[h++]);s=Math.cos(x)*m+g,l=Math.sin(x)*S+y,h<=1&&(i=s,o=l);var A=(v-g)*S/m+g;d=dM(g,y,S,x,x+b,_,A,f,Ge),a=Math.cos(x+b)*m+g,n=Math.sin(x+b)*S+y;break;case qr.R:i=a=c[h++],o=n=c[h++];var T=c[h++],C=c[h++];d=_x(i,o,T,C,v,f,Ge);break;case qr.Z:d=As(a,n,i,o,v,f,Ge,!0),a=i,n=o;break}d<u&&(u=d,t.set(Ge[0],Ge[1]))}return u}var Fe=new Gt,_t=new Gt,Bt=new Gt,Je=new Gt,Xe=new Gt;function Vp(r,e){if(!!r){var t=r.getTextGuideLine(),a=r.getTextContent();if(!!(a&&t)){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||hM,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),v=c&&Ni([],c),f=e.get("length2")||0;u&&Bt.copy(u);for(var h=0;h<o.length;h++){var p=o[h];pM(p,0,s,Fe,Je),Gt.scaleAndAdd(_t,Fe,Je,f),_t.transform(v);var d=r.getBoundingRect(),g=u?u.distance(_t):r instanceof Tt?yM(_t,r.path,Bt):gM(_t,d,Bt);g<l&&(l=g,_t.transform(c),Bt.transform(c),Bt.toArray(i[0]),_t.toArray(i[1]),Fe.toArray(i[2]))}bx(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Ts=[],ce=new Gt;function bx(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Fe.fromArray(r[0]),_t.fromArray(r[1]),Bt.fromArray(r[2]),Gt.sub(Je,Fe,_t),Gt.sub(Xe,Bt,_t);var t=Je.len(),a=Xe.len();if(!(t<.001||a<.001)){Je.scale(1/t),Xe.scale(1/a);var n=Je.dot(Xe),i=Math.cos(e);if(i<n){var o=As(_t.x,_t.y,Bt.x,Bt.y,Fe.x,Fe.y,Ts,!1);ce.fromArray(Ts),ce.scaleAndAdd(Xe,o/Math.tan(Math.PI-e));var s=Bt.x!==_t.x?(ce.x-_t.x)/(Bt.x-_t.x):(ce.y-_t.y)/(Bt.y-_t.y);if(isNaN(s))return;s<0?Gt.copy(ce,_t):s>1&&Gt.copy(ce,Bt),ce.toArray(r[1])}}}}function mM(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Fe.fromArray(r[0]),_t.fromArray(r[1]),Bt.fromArray(r[2]),Gt.sub(Je,_t,Fe),Gt.sub(Xe,Bt,_t);var a=Je.len(),n=Xe.len();if(!(a<.001||n<.001)){Je.scale(1/a),Xe.scale(1/n);var i=Je.dot(e),o=Math.cos(t);if(i<o){var s=As(_t.x,_t.y,Bt.x,Bt.y,Fe.x,Fe.y,Ts,!1);ce.fromArray(Ts);var l=Math.PI/2,u=Math.acos(Xe.dot(e)),c=l+u-t;if(c>=l)Gt.copy(ce,Bt);else{ce.scaleAndAdd(Xe,s/Math.tan(Math.PI/2-c));var v=Bt.x!==_t.x?(ce.x-_t.x)/(Bt.x-_t.x):(ce.y-_t.y)/(Bt.y-_t.y);if(isNaN(v))return;v<0?Gt.copy(ce,_t):v>1&&Gt.copy(ce,Bt)}ce.toArray(r[1])}}}}function Bp(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;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 SM(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=oa(a[0],a[1]),i=oa(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)*t,s=xl([],a[1],a[0],o/n),l=xl([],a[1],a[2],o/i),u=xl([],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 tf(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<gi.length;l++){var u=gi[l],c=e[u],v=u==="normal";if(c){var f=c.get("show"),h=v?s:mt(n.states[u]&&n.states[u].ignore,s);if(h||!mt(f,o)){var p=v?a:a&&a.states[u];p&&(p.ignore=!0);continue}a||(a=new me,r.setTextGuideLine(a),!v&&(s||!o)&&Bp(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Bp(a,!1,u,c)}}if(a){J(a.style,t),a.style.fill=null;var d=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,a.buildPath=SM}}function ef(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<he.length;a++){var n=he[a];t[n]=r.getModel([n,e])}return t}function wx(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];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 ns(o,i):null;e.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 e}function Ax(r,e,t,a,n,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[e]-C.rect[e]});for(var s=0,l,u=!1,c=0,v=0;v<o;v++){var f=r[v],h=f.rect;l=h[e]-s,l<0&&(h[e]-=l,f.label[e]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=h[e]+h[t]}c>0&&i&&b(-c/o,0,o);var d=r[0],g=r[o-1],y,m;S(),y<0&&_(-y,.8),m<0&&_(m,.8),S(),x(y,m,1),x(m,y,-1),S(),y<0&&A(-y),m<0&&A(m);function S(){y=d.rect[e]-a,m=n-g.rect[e]-g.rect[t]}function x(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&_(-I*M,1)}else _(-T*M,1)}}function b(T,C,M){T!==0&&(u=!0);for(var D=C;D<M;D++){var I=r[D],L=I.rect;L[e]+=T,I.label[e]+=T}}function _(T,C){for(var M=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[e]-L[e]-L[t],0);M.push(P),D+=P}if(!!D){var R=Math.min(Math.abs(T)/D,C);if(T>0)for(var I=0;I<o-1;I++){var k=M[I]*R;b(k,0,I+1)}else for(var I=o-1;I>0;I--){var k=M[I-1]*R;b(-k,I,o)}}}function A(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(C>0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function xM(r,e,t,a){return Ax(r,"x","width",e,t,a)}function Tx(r,e,t,a){return Ax(r,"y","height",e,t,a)}function Cx(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new xt(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.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;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var v=i.obb,f=!1,h=0;h<e.length;h++){var p=e[h];if(!!t.intersect(p.rect)){if(o&&p.axisAligned){f=!0;break}if(p.obb||(p.obb=new ns(p.localRect,p.transform)),v||(v=new ns(s,l)),v.intersect(p.obb)){f=!0;break}}}f?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function _M(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function bM(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:_M(a&&a.shape.points)}}var zp=["align","verticalAlign","width","height","fontSize"],de=new Ya,Kl=ut(),wM=ut();function _o(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var bo=["x","y","rotation"],AM=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();xt.applyTransform(c,c,u),u?de.setLocalTransform(u):(de.x=de.y=de.rotation=de.originX=de.originY=0,de.scaleX=de.scaleY=1);var v=n.__hostTarget,f;if(v){f=v.getBoundingRect().plain();var h=v.getComputedTransform();xt.applyTransform(f,f,h)}var p=f&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:de.x,y:de.y,scaleX:de.scaleX,scaleY:de.scaleY,rotation:de.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(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");!(X(n)||Yt(n).length)||e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=K(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(S,x){return function(){Vp(S,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;X(o.layoutOption)?c=o.layoutOption(bM(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*v:u.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(c.x!=null?(s.x=F(c.x,t),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=F(c.y,a),s.setStyle("y",0),f=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),f=!1)}var p=Kl(s);p.needsUpdateLabelLine=f,s.rotation=c.rotate!=null?c.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<zp.length;d++){var g=zp[d];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=wx(this._labelList),i=bt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=bt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});xM(i,0,t),Tx(o,0,a);var s=bt(n,function(l){return l.layoutOption.hideOverlap});Cx(s)},r.prototype.processLabelsOverall=function(){var e=this;w(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Kl(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=K(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");l.stroke=u[c];var v=s.getModel("labelLine");tf(e,ef(s),l),Vp(e,v)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!qa(e))){var i=Kl(a),o=i.oldLayout,s=K(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=t.getData(s.dataType);if(o){a.attr(o);var f=e.prevStates;f&&(st(f,"select")>=0&&a.attr(i.oldLayoutSelect),st(f,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),lt(a,u,t,l)}else if(a.attr(u),!mn(a).valueAnimation){var v=mt(a.style.opacity,1);a.style.opacity=0,It(a,{style:{opacity:v}},t,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};_o(h,u,bo),_o(h,a.states.select,bo)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};_o(p,u,bo),_o(p,a.states.emphasis,bo)}d0(a,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=wM(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),lt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,It(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const TM=AM;var ql=ut();function CM(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=ql(t).labelManager;n||(n=ql(t).labelManager=new TM),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=ql(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var DM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return yr(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new tt,n=Ht("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=Ht(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Pt);const MM=DM;function on(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=rn(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(rn(r,e,t[o]));return i.join(" ")}}function Dx(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!O(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var IM=function(r){E(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Ht(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=LM,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){vr(this.childAt(0))},e.prototype.downplay=function(){fr(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var v=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,v)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):lt(f,h,s,a),We(f)}if(this._updateCommon(t,a,l,n,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,It(f,h,s,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,c,v,f,h,p,d,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,v=i.selectItemStyle,f=i.focus,h=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),S=m.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),h=S.get("blurScope"),p=S.get("disabled"),d=Jt(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var x=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=Cn(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var _=t.getItemVisual(a,"style"),A=_.fill;if(s instanceof Ne){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(z({},_)):s.useStyle(_),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;se(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:A,defaultOpacity:_.opacity});function I(R){return D?t.getName(R):on(t,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=c,g){var P=Math.max(pt(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P}this.setSymbolScale(1),Ot(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,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&&Nr(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Nr(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Yi(t.getItemVisual(a,"symbolSize"))},e}(tt);function LM(r,e){this.parent.drift(r,e)}const qi=IM;function jl(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Gp(r){return r!=null&&!j(r)&&(r={isIgnore:r}),r||{}}function Fp(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Jt(e),cursorStyle:e.get("cursor")}}var PM=function(){function r(e){this.group=new tt,this._SymbolCtor=e||qi}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Gp(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Fp(e),u={disableAnimation:s},c=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||a.removeAll(),e.diff(i).add(function(v){var f=c(v);if(jl(e,f,v,t)){var h=new o(e,v,l,u);h.setPosition(f),e.setItemGraphicEl(v,h),a.add(h)}}).update(function(v,f){var h=i.getItemGraphicEl(f),p=c(v);if(!jl(e,p,v,t)){a.remove(h);return}var d=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==d)a.remove(h),h=new o(e,v,l,u),h.setPosition(p);else{h.updateData(e,v,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):lt(h,y,n)}a.add(h),e.setItemGraphicEl(v,h)}).remove(function(v){var f=i.getItemGraphicEl(v);f&&f.fadeOut(function(){a.remove(f)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Fp(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Gp(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(jl(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Hr(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r}();const ji=PM;function Mx(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=RM(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,v=G(r.dimensions,function(p){return e.mapDimension(p)}),f=!1,h=e.getCalculationInfo("stackResultDimension");return Vr(e,v[0])&&(f=!0,v[0]=h),Vr(e,v[1])&&(f=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function RM(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:pt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function Ix(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function EM(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function kM(r,e,t,a,n,i,o,s){for(var l=EM(r,e),u=[],c=[],v=[],f=[],h=[],p=[],d=[],g=Mx(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],S=0;S<l.length;S++){var x=l[S],b=!0,_=void 0,A=void 0;switch(x.cmd){case"=":_=x.idx*2,A=x.idx1*2;var T=y[_],C=y[_+1],M=m[A],D=m[A+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),c.push(M,D),v.push(t[_],t[_+1]),f.push(a[A],a[A+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,L=g.dataDimsForPoint,P=n.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);A=I*2,u.push(P[0],P[1]),c.push(m[A],m[A+1]);var R=Ix(g,n,e,I);v.push(R[0],R[1]),f.push(a[A],a[A+1]),d.push(e.getRawIndex(I));break;case"-":b=!1}b&&(h.push(x),p.push(p.length))}p.sort(function(Vt,Dt){return d[Vt]-d[Dt]});for(var k=u.length,B=je(k),N=je(k),V=je(k),H=je(k),Y=[],S=0;S<p.length;S++){var et=p[S],it=S*2,gt=et*2;B[it]=u[gt],B[it+1]=u[gt+1],N[it]=c[gt],N[it+1]=c[gt+1],V[it]=v[gt],V[it+1]=v[gt+1],H[it]=f[gt],H[it+1]=f[gt+1],Y[S]=h[et]}return{current:B,next:N,stackedOnCurrent:V,stackedOnNext:H,status:Y}}var br=Math.min,wr=Math.max;function ha(r,e){return isNaN(r)||isNaN(e)}function Lc(r,e,t,a,n,i,o,s,l){for(var u,c,v,f,h,p,d=t,g=0;g<a;g++){var y=e[d*2],m=e[d*2+1];if(d>=n||d<0)break;if(ha(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,f=m;else{var S=y-u,x=m-c;if(S*S+x*x<.5){d+=i;continue}if(o>0){for(var b=d+i,_=e[b*2],A=e[b*2+1];_===y&&A===m&&g<a;)g++,b+=i,d+=i,_=e[b*2],A=e[b*2+1],y=e[d*2],m=e[d*2+1],S=y-u,x=m-c;var T=g+1;if(l)for(;ha(_,A)&&T<a;)T++,b+=i,_=e[b*2],A=e[b*2+1];var C=.5,M=0,D=0,I=void 0,L=void 0;if(T>=a||ha(_,A))h=y,p=m;else{M=_-u,D=A-c;var P=y-u,R=_-y,k=m-c,B=A-m,N=void 0,V=void 0;if(s==="x"){N=Math.abs(P),V=Math.abs(R);var H=M>0?1:-1;h=y-H*N*o,p=m,I=y+H*V*o,L=m}else if(s==="y"){N=Math.abs(k),V=Math.abs(B);var Y=D>0?1:-1;h=y,p=m-Y*N*o,I=y,L=m+Y*V*o}else N=Math.sqrt(P*P+k*k),V=Math.sqrt(R*R+B*B),C=V/(V+N),h=y-M*o*(1-C),p=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=br(I,wr(_,y)),L=br(L,wr(A,m)),I=wr(I,br(_,y)),L=wr(L,br(A,m)),M=I-y,D=L-m,h=y-M*N/V,p=m-D*N/V,h=br(h,wr(u,y)),p=br(p,wr(c,m)),h=wr(h,br(u,y)),p=wr(p,br(c,m)),M=y-h,D=m-p,I=y+M*V/N,L=m+D*V/N}r.bezierCurveTo(v,f,h,p,y,m),v=I,f=L}else r.lineTo(y,m)}u=y,c=m,d+=i}return g}var Lx=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),NM=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lx},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ha(n[o*2-2],n[o*2-1]);o--);for(;i<o&&ha(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Lc(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Pm.CMD,s,l,u=a==="x",c=[],v=0;v<i.length;){var f=i[v++],h=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,S=void 0;switch(f){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],p=i[v++],S=u?(t-s)/(h-s):(t-l)/(p-l),S<=1&&S>=0){var x=u?(p-l)*S+l:(h-s)*S+s;return u?[t,x]:[x,t]}s=h,l=p;break;case o.C:h=i[v++],p=i[v++],d=i[v++],g=i[v++],y=i[v++],m=i[v++];var b=u?Qf(s,h,d,y,t,c):Qf(l,p,g,m,t,c);if(b>0)for(var _=0;_<b;_++){var A=c[_];if(A<=1&&A>=0){var x=u?th(l,p,g,m,A):th(s,h,d,y,A);return u?[t,x]:[x,t]}}s=y,l=m;break}}},e}(Tt),OM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Lx),Px=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new OM},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ha(n[s*2-2],n[s*2-1]);s--);for(;o<s&&ha(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Lc(t,n,o,s,s,1,a.smooth,l,a.connectNulls);Lc(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(Tt);function Rx(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var v=new ft({shape:{x:o,y:s,width:l,height:u}});if(e){var f=r.getBaseAxis(),h=f.isHorizontal(),p=f.inverse;h?(p&&(v.shape.x+=l),v.shape.width=0):(p||(v.shape.y+=u),v.shape.height=0);var d=X(n)?function(g){n(g,v)}:null;It(v,{shape:{width:l,height:u,x:o,y:s}},t,null,a,d)}return v}function Ex(r,e,t){var a=r.getArea(),n=Nt(a.r0,1),i=Nt(a.r,1),o=new Re({shape:{cx:Nt(r.cx,1),cy:Nt(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,It(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function vl(r,e,t,a,n){if(r){if(r.type==="polar")return Ex(r,e,t);if(r.type==="cartesian2d")return Rx(r,e,t,a,n)}else return null;return null}function Da(r,e){return r.type===e}function Hp(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Wp(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function $p(r,e){var t=Wp(r),a=t[0],n=t[1],i=Wp(e),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 Up(r){return pt(r)?r:r?.5:0}function VM(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=je(a*2),i=0;i<a;i++){var o=Ix(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Ar(r,e,t,a){var n=e.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],v=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&v.push(r[s],r[s+1]);r=v}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]),t){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var f=(u[i]+c[i])/2,h=[];l[i]=h[i]=f,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[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 BM(r,e){var t=[],a=r.length,n,i;function o(c,v,f){var h=c.coord,p=(f-h)/(v.coord-h),d=Ab(p,[c.color,v.color]);return{coord:f,color:d}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function zM(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){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){var l=e.getAxis(n),u=G(i.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,v=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),v.reverse());var f=BM(u,n==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?v[1]?v[1]:u[c-1].color:v[0]?v[0]:u[0].color;var p=10,d=f[0].coord-p,g=f[h-1].coord+p,y=g-d;if(y<.001)return"transparent";w(f,function(S){S.offset=(S.coord-d)/y}),f.push({offset:h?f[h-1].offset:.5,color:v[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:v[0]||"transparent"});var m=new Hs(0,0,0,0,f,!0);return m[n]=d,m[n+"2"]=g,m}}}function GM(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(!!i&&!(n&&FM(i,e))){var o=e.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function FM(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(qi.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function HM(r,e){return isNaN(r)||isNaN(e)}function WM(r){for(var e=r.length/2;e>0&&HM(r[e*2-2],r[e*2-1]);e--);return e-1}function Yp(r,e){return[r[e*2],r[e*2+1]]}function $M(r,e,t){for(var a=r.length/2,n=t==="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<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function kx(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<he.length;e++)if(r.get([he[e],"endLabel","show"]))return!0;return!1}function Jl(r,e,t,a){if(Da(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=kx(a)?function(h,p){r._endLabelOnDuring(h,p,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Rx(e,t,a,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var v=c.shape,f=Math.max(v.width,v.height);u?(v.y-=f,v.height+=f*2):(v.x-=f,v.width+=f*2)}return l&&l(1,c),c}else return Ex(e,t,a)}function UM(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.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 YM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new tt,a=new ji;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),v=l.getLayout("points")||[],f=o.type==="polar",h=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),S=!c.isEmpty(),x=c.get("origin"),b=Mx(o,l,x),_=S&&VM(o,l,b),A=t.get("showSymbol"),T=t.get("connectNulls"),C=A&&!f&&GM(t,l,o),M=this._data;M&&M.eachItemGraphicEl(function(Dt,vt){Dt.__temp&&(s.remove(Dt),M.setItemGraphicEl(vt,null))}),A||p.remove(),s.add(y);var D=f?!1:t.get("step"),I;o&&o.getArea&&t.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=zM(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&h.type===o.type&&D===this._step))A&&p.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Dt){return[v[Dt*2],v[Dt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),D&&(v=Ar(v,o,D,T),_&&(_=Ar(_,o,D,T))),d=this._newPolyline(v),S?g=this._newPolygon(v,_):g&&(y.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(t,o,ba(L)),y.setClipPath(Jl(this,o,!0,t));else{S&&!g?g=this._newPolygon(v,_):g&&!S&&(y.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(t,o,ba(L));var P=y.getClipPath();if(P){var R=Jl(this,o,!1,t);It(P,{shape:R.shape},t)}else y.setClipPath(Jl(this,o,!0,t));A&&p.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Dt){return[v[Dt*2],v[Dt*2+1]]}}),(!Hp(this._stackedOnPoints,_)||!Hp(this._points,v))&&(m?this._doUpdateAnimation(l,_,o,n,D,x,T):(D&&(v=Ar(v,o,D,T),_&&(_=Ar(_,o,D,T))),d.setShape({points:v}),g&&g.setShape({points:v,stackedOnPoints:_})))}var k=t.getModel("emphasis"),B=k.get("focus"),N=k.get("blurScope"),V=k.get("disabled");if(d.useStyle(J(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),re(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=d.getState("emphasis").style;H.lineWidth=+d.style.lineWidth+1}K(d).seriesIndex=t.seriesIndex,Ot(d,B,N,V);var Y=Up(t.get("smooth")),et=t.get("smoothMonotone");if(d.setShape({smooth:Y,smoothMonotone:et,connectNulls:T}),g){var it=l.getCalculationInfo("stackedOnSeries"),gt=0;g.useStyle(J(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),it&&(gt=Up(it.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:gt,smoothMonotone:et,connectNulls:T}),re(g,t,"areaStyle"),K(g).seriesIndex=t.seriesIndex,Ot(g,B,N,V)}var Vt=function(Dt){i._changePolyState(Dt)};l.eachItemGraphicEl(function(Dt){Dt&&(Dt.onHoverStateChange=Vt)}),this._polyline.onHoverStateChange=Vt,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=v,this._step=D,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){K(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Sa(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],v=l[s*2+1];if(isNaN(c)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,v))return;var f=t.get("zlevel"),h=t.get("z");u=new qi(o,s),u.x=c,u.y=v,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else At.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Sa(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 At.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;vs(this._polyline,t),a&&vs(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new NM({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Px({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,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=t.hostModel,c=u.get("animationDuration");X(c)&&(c=c(null));var v=u.get("animationDelay")||0,f=X(v)?v(null):v;t.eachItemGraphicEl(function(h,p){var d=h;if(d){var g=[h.x,h.y],y=void 0,m=void 0,S=void 0;if(n)if(o){var x=n,b=a.pointToCoord(g);i?(y=x.startAngle,m=x.endAngle,S=-b[1]/180*Math.PI):(y=x.r0,m=x.r,S=b[0])}else{var _=n;i?(y=_.x,m=_.x+_.width,S=h.x):(y=_.y+_.height,m=_.y,S=h.y)}var A=m===y?0:(S-y)/(m-y);l&&(A=1-A);var T=X(v)?v(p):c*A+f,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(kx(t)){var o=t.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 ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=WM(l);c>=0&&(se(s,Jt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(v,f,h){return h!=null?Dx(o,h):on(o,v)},enableTextSetter:!0},UM(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),f=n.hostModel,h=f.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,S=a.shape,x=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,b=(y?d:0)*(m?-1:1),_=(y?0:-d)*(m?-1:1),A=y?"x":"y",T=$M(v,x,A),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=Yp(v,C[0]);u.attr({x:I[0]+b,y:I[1]+_}),o&&(D=f.getRawValue(C[0]))}else{var I=c.getPointOn(x,A);I&&u.attr({x:I[0]+b,y:I[1]+_});var L=f.getRawValue(C[0]),P=f.getRawValue(C[1]);o&&(D=Xm(n,p,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=t===1||i.lastFrameIndex>0?C[0]:0,I=Yp(v,R);o&&(D=f.getRawValue(R)),u.attr({x:I[0]+b,y:I[1]+_})}o&&mn(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,v=t.hostModel,f=kM(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,d=f.next,g=f.stackedOnNext;if(o&&(h=Ar(f.current,n,o,l),p=Ar(f.stackedOnCurrent,n,o,l),d=Ar(f.next,n,o,l),g=Ar(f.stackedOnNext,n,o,l)),$p(h,d)>3e3||c&&$p(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),c&&(c.stopAnimation(),c.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:d}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),lt(u,y,v),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),lt(c,{shape:{stackedOnPoints:g}},v),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=f.status,x=0;x<S.length;x++){var b=S[x].cmd;if(b==="="){var _=t.getItemGraphicEl(S[x].idx1);_&&m.push({el:_,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,M=m[T].ptIdx*2;C.x=A[M],C.y=A[M+1],C.markRedraw()}})},e.prototype.remove=function(t){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},e.type="line",e}(At);const ZM=YM;function Ji(r,e){return{seriesType:r,plan:An(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(!!n){var s=G(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Vr(a,s[0])&&(s[0]=u),Vr(a,s[1])&&(s[1]=u);var c=a.getStore(),v=a.getDimensionIndex(s[0]),f=a.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var d=h.end-h.start,g=o&&je(d*l),y=[],m=[],S=h.start,x=0;S<h.end;S++){var b=void 0;if(l===1){var _=c.get(v,S);b=n.dataToPoint(_,null,m)}else y[0]=c.get(v,S),y[1]=c.get(f,S),b=n.dataToPoint(y,null,m);o?(g[x++]=b[0],g[x++]=b[1]):p.setItemLayout(S,b.slice())}o&&p.setLayout("points",g)}}}}}}var XM={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},KM=function(r){return Math.round(r.length/2)};function Nx(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),v=a.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(v||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));var p=void 0;$(i)?p=XM[i]:X(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,p,KM))}}}}}function qM(r){r.registerChartView(ZM),r.registerSeriesModel(MM),r.registerLayout(Ji("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Nx("line"))}var Ox=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return yr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(t)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Pt);Pt.registerClass(Ox);const Cs=Ox;var jM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return yr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Wr(Cs.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Cs);const JM=jM;var QM=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}(),tI=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new QM},e.prototype.buildPath=function(t,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,v=a.endAngle,f=a.clockwise,h=Math.PI*2,p=f?v-c<h:c-v<h;p||(c=v-(f?h:-h));var d=Math.cos(c),g=Math.sin(c),y=Math.cos(v),m=Math.sin(v);p?(t.moveTo(d*o+n,g*o+i),t.arc(d*u+n,g*u+i,l,-Math.PI+c,c,!f)):t.moveTo(d*s+n,g*s+i),t.arc(n,i,s,c,v,!f),t.arc(y*u+n,m*u+i,l,v-Math.PI*2,v-Math.PI,!f),o!==0&&t.arc(n,i,o,v,c,f)},e}(Tt);const Ds=tI;function eI(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return nc(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,v=u.cy,f=u.r,h=u.r0,p=(f+h)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(f-h)/2:0,S=Math.cos,x=Math.sin,b=c+f*S(d),_=v+f*x(d),A="left",T="top";switch(s){case"startArc":b=c+(h-l)*S(y),_=v+(h-l)*x(y),A="center",T="top";break;case"insideStartArc":b=c+(h+l)*S(y),_=v+(h+l)*x(y),A="center",T="bottom";break;case"startAngle":b=c+p*S(d)+wo(d,l+m,!1),_=v+p*x(d)+Ao(d,l+m,!1),A="right",T="middle";break;case"insideStartAngle":b=c+p*S(d)+wo(d,-l+m,!1),_=v+p*x(d)+Ao(d,-l+m,!1),A="left",T="middle";break;case"middle":b=c+p*S(y),_=v+p*x(y),A="center",T="middle";break;case"endArc":b=c+(f+l)*S(y),_=v+(f+l)*x(y),A="center",T="bottom";break;case"insideEndArc":b=c+(f-l)*S(y),_=v+(f-l)*x(y),A="center",T="top";break;case"endAngle":b=c+p*S(g)+wo(g,l+m,!0),_=v+p*x(g)+Ao(g,l+m,!0),A="left",T="middle";break;case"insideEndAngle":b=c+p*S(g)+wo(g,-l+m,!0),_=v+p*x(g)+Ao(g,-l+m,!0),A="right",T="middle";break;default:return nc(a,n,i)}return a=a||{},a.x=b,a.y=_,a.align=A,a.verticalAlign=T,a}}function rI(r,e,t,a){if(pt(a)){r.setTextConfig({rotation:a});return}else if(O(e)){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=t(e);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 wo(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Ao(r,e,t){return e*Math.cos(r)*(t?1:-1)}var Ql=Math.max,tu=Math.min;function aI(r,e){var t=r.getArea&&r.getArea();if(Da(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var nI=function(r){E(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Hr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),v;u.type==="cartesian2d"?v=c.isHorizontal():u.type==="polar"&&(v=c.dim==="angle");var f=t.isAnimationEnabled()?t:null,h=iI(t,u);h&&this._enableRealtimeSort(h,s,n);var p=t.get("clip",!0)||h,d=aI(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),S=m.get("borderRadius")||0,x=[],b=this._backgroundEls,_=i&&i.isInitSort,A=i&&i.type==="changeAxisOrder";function T(D){var I=To[u.type](s,D),L=fI(u,v,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",S),x[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=To[u.type](s,D,I);if(y&&T(D),!(!s.hasValue(D)||!jp[u.type](L))){var P=!1;p&&(P=Zp[u.type](d,L));var R=Xp[u.type](t,s,D,L,v,f,c.model,!1,g);h&&(R.forceLabelAnimation=!0),Jp(R,s,D,I,L,t,v,u.type==="polar"),_?R.attr({shape:L}):h?Kp(h,f,R,L,D,v,!1,!1):It(R,{shape:L},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=To[u.type](s,D,L);if(y){var R=void 0;b.length===0?R=T(I):(R=b[I],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&R.setShape("r",S),x[D]=R);var k=To[u.type](s,D),B=Bx(v,k,u);lt(R,{shape:B},f,D)}var N=l.getItemGraphicEl(I);if(!s.hasValue(D)||!jp[u.type](P)){o.remove(N);return}var V=!1;if(p&&(V=Zp[u.type](d,P),V&&o.remove |