1import{_ as O}from"./tslib-BDyQ-Jie.js";import{i as X,r as Zn,m as U,a as G,b as ie,c as K,e as T,d as ge,f as we,g as fv,h as Pt,j as Ye,k as KT,l as H,n as Q,o as oi,p as at,P as Ne,q as Kp,s as ne,Z as Kt,t as qT,u as jT,v as Ba,w as $,x as oe,T as Vn,y as Er,z as mt,A as Uf,B as Oo,C as Se,D as jS,E as rr,F as Yf,G as JT,H as te,I as QT,J as on,K as JS,S as Et,R as jl,L as Nt,M as Dt,N as ye,O as ut,Q as Jl,U as Zf,V as Xf,W as J,X as eC,Y as Bo,_ as QS,$ as me,a0 as tC,a1 as _e,a2 as si,a3 as $f,a4 as Fr,a5 as he,a6 as ft,a7 as Lt,a8 as se,a9 as na,aa as Ot,ab as De,ac as Z,ad as ul,ae as co,af as Mt,ag as hv,ah as rC,ai as aC,aj as cl,ak as nC,al as li,am as qp,an as Tu,ao as iC,ap as oC,aq as sC,ar as Xn,as as Tt,at as Ea,au as e_,av as t_,aw as Ql,ax as Va,ay as Cu,az as r_,aA as lC,aB as uC,aC as Mr,aD as cC,aE as vC,aF as jp,aG as Jp,aH as fC,aI as Kf,aJ as ui,aK as yt,aL as Qp,aM as sn,aN as ed,aO as ca,aP as hC,aQ as pC,aR as dC,aS as $a,aT as bt,aU as qf,aV as a_,aW as Ka,aX as gC,aY as n_,aZ as $s,a_ as Au,a$ as vl,b0 as ia,b1 as Vo,b2 as yC,b3 as mC,b4 as zn,b5 as td,b6 as jf,b7 as pv,b8 as SC,b9 as i_,ba as _C,bb as xC,bc as bC,bd as rd,be as wC,bf as TC,bg as vo,bh as CC,bi as dv,bj as ad,bk as AC,bl as DC,bm as MC,bn as IC,bo as LC,bp as PC,bq as kC,br as RC,bs as EC}from"./zrender-B4ySFyXH.js";var nd=1e-4,o_=20;function NC(r){return r.replace(/^\s+|\s+$/g,"")}var Rt=Math.min,$e=Math.max,fr=Math.abs;function Te(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var Y=OC;function OC(r,t,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 fl(r,t,e)}function fl(r,t,e){return X(r)?NC(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Je(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),o_),r=(+r).toFixed(t),e?r:+r}function Zt(r){return r.sort(function(t,e){return t-e}),r}function hr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return BC(r)}function BC(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function s_(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(fr(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function VC(r,t){var e=Zn(r,function(h,p){return h+(isNaN(p)?0:p)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=U(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=U(n,function(h){return Math.floor(h)}),s=Zn(o,function(h,p){return h+p},0),l=U(n,function(h,p){return h-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,v=0,f=l.length;v<f;++v)l[v]>u&&(u=l[v],c=v);++o[c],l[c]=0,++s}return U(o,function(h){return h/a})}function zC(r,t){var e=Math.max(hr(r),hr(t)),a=r+t;return e>o_?a:Je(a,e)}var id=9007199254740991;function l_(r){var t=Math.PI*2;return(r%t+t)%t}function fo(r){return r>-nd&&r<nd}var GC=/^(?:(\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 ln(r){if(r instanceof Date)return r;if(X(r)){var t=GC.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function FC(r){return Math.pow(10,Jf(r))}function Jf(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function u_(r,t){var e=Jf(r),a=Math.pow(10,e),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Du(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function od(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Nr(r){var t=parseFloat(r);return t==r&&(t!==0||!X(r)||r.indexOf("x")<=0)?t:NaN}
1function c_(r){return!isNaN(Nr(r))}function v_(){return Math.round(Math.random()*9)}function f_(r,t){return t===0?r:f_(t,r%t)}function sd(r,t){return r==null?t:t==null?r:r*t/f_(r,t)}var HC="[ECharts] ",WC=typeof console<"u"&&console.warn&&console.log;function UC(r,t,e){WC&&console[r](HC+t)}function h_(r,t){UC("error",r)}function be(r){throw new Error(r)}function ld(r,t,e){return(t-r)*e+r}var p_="series\0",d_="\0_ec_\0";function Le(r){return r instanceof Array?r:r==null?[]:[r]}function qa(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var ud=["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 ci(r){return ie(r)&&!G(r)&&!(r instanceof Date)?r.value:r}function YC(r){return ie(r)&&!(r instanceof Array)}function g_(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=K();T(t,function(l,u){if(!ie(l)){t[u]=null;return}});var s=ZC(r,o,e);return(a||n)&&XC(s,r,o,t),a&&$C(s,t),a||n?KC(s,t,n):i&&qC(s,t),jC(s),s}function ZC(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||ho(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function XC(r,t,e,a){T(a,function(n,i){if(!(!n||n.id==null)){var o=ao(n.id),s=e.get(o);if(s!=null){var l=r[s];Pt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function $C(r,t){T(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!ho(e)&&!ho(i)&&y_("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function KC(r,t,e){T(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||ho(n.existing)||n.existing&&a.id!=null&&!y_("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function qC(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function jC(r){var t=K();T(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),T(r,function(e){var a=e.newOption;Pt(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),T(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(ie(i)){if(o.name=i.name!=null?ao(i.name):n?n.name:p_+a,n)o.id=ao(n.id);else if(i.id!=null)o.id=ao(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function y_(r,t,e){var a=it(t[r],null),n=it(e[r],null);return a!=null&&n!=null&&a===n}function ao(r){return it(r,"")}function it(r,t){return r==null?t:X(r)?r:we(r)||fv(r)?r+"":t}function Qf(r){var t=r.name;return!!(t&&t.indexOf(p_))}function ho(r){return r&&r.id!=null&&ao(r.id).indexOf(d_)===0}function JC(r){return d_+r}function QC(r,t,e){T(r,function(a){var n=a.newOption;ie(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=eA(t,n,a.existing,e))})}function eA(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function tA(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var v=it(o[u].seriesId,null);if(v==null)return;for(var f=Le(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 ja(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return G(t.dataIndex)?U(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return G(t.name)?U(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ve(){var r="__ec_inner_"+rA++;return function(t){return t[r]||(t[r]={})}}var rA=v_();function Hn(r,t,e){var a=eh(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,c){var v=vi(r,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=v.models,s[c+"Model"]=v.models[0]}),s}function eh(r,t){var e;if(X(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=K(),i={},o=!1;return T(e,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||t&&t.includeMainTypes&&ge(t.includeMainTypes,c)<0)){o=o||!!c;var f=n.get(c)||n.set(c,{});f[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ue={useDefault:!0,enableAll:!1,enableNone:!1},aA={useDefault:!1,enableAll:!0,enableNone:!0};function vi(r,t,e,a){a=a||Ue;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s}function m_(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function nA(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function iA(r){return r==="auto"?Ye.domSupported?"html":"richText":r||"html"}
1function gv(r,t){var e=K(),a=[];return T(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function S_(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(we(a)){var o=ld(e||0,a,n);return Je(o,i?Math.max(hr(e||0),hr(a)):t)}else{if(X(a))return n<1?e:a;for(var s=[],l=e,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=ld(h,p,n);s[v]=Je(o,i?Math.max(hr(h),hr(p)):t)}}return s}}var oa=function(){function r(){}return r.prototype.reset=function(t,e,a,n){return this._list=t,this._step=n=n||1,this._idx=e,this._end=a??(n>0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function Mu(r){r.option=r.parentModel=r.ecModel=null}var oA=".",_a="___EC__COMPONENT__CONTAINER___",__="___EC__EXTENDED_CLASS___";function pr(r){var t={main:"",sub:""};if(r){var e=r.split(oA);t.main=e[0]||"",t.sub=e[1]||""}return t}function sA(r){Pt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function lA(r){return!!(r&&r[__])}function th(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return uA(a)?n=function(i){O(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},KT(n,this)),H(n.prototype,e),n[__]=!0,n.extend=this.extend,n.superCall=fA,n.superApply=hA,n.superClass=a,n}}function uA(r){return Q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function x_(r,t){r.extend=t.extend}var cA=Math.round(Math.random()*10);function vA(r){var t=["__\0is_clz",cA++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function fA(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function hA(r,t,e){return this.superClass.prototype[t].apply(r,e)}function eu(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){sA(n),a.prototype.type=n;var i=pr(n);if(!i.sub)t[i.main]=a;else if(i.sub!==_a){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[_a]&&(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=pr(a),i=[],o=t[n.main];return o&&o[_a]?T(o,function(s,l){l!==_a&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=pr(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return T(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=pr(a),i=t[n.main];return i&&i[_a]};function e(a){var n=t[a.main];return(!n||!n[_a])&&(n=t[a.main]={},n[_a]=!0),n}}function Ja(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ge(n,l)>=0||i&&ge(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var pA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dA=Ja(pA),gA=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return dA(this,t,e)},r}(),ee=ve(),yv=function(r,t,e,a){if(a){var n=ee(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=ee(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},cd=1,vd={},b_=ve(),rh=ve(),ah=0,zo=1,tu=2,It=["emphasis","blur","select"],po=["normal","emphasis","blur","select"],fi=10,yA=9,Ha="highlight",Ks="downplay",hl="select",mv="unselect",pl="toggleSelect",nh="selectchanged";function yn(r){return r!=null&&r!=="none"}function ru(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function w_(r){ru(r,"emphasis",tu)}function T_(r){r.hoverState===tu&&ru(r,"normal",ah)}function ih(r){ru(r,"blur",zo)}function C_(r){r.hoverState===zo&&ru(r,"normal",ah)}function mA(r){r.selected=!0}function SA(r){r.selected=!1}function fd(r,t,e){t(r,e)}function Hr(r,t,e){fd(r,t,e),r.isGroup&&r.traverse(function(a){fd(a,t,e)})}function dl(r,t){switch(t){case"emphasis":r.hoverState=tu;break;case"normal":r.hoverState=ah;break;case"blur":r.hoverState=zo;break;case"select":r.selected=!0}}function _A(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function xA(r,t,e,a){var n=e&&ge(e,"select")>=0,i=!1;if(r instanceof Ne){var o=b_(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(yn(s)||yn(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=H({},a),u=H({},u),u.fill=s):!yn(u.fill)&&yn(s)?(i=!0,a=H({},a),u=H({},u),u.fill=Kp(s)):!yn(u.stroke)&&yn(l)&&(i||(a=H({},a),u=H({},u)),u.stroke=Kp(l)),a.style=u}}if(a&&a.z2==null){i||(a=H({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??fi)}return a}function bA(r,t,e){if(e&&e.z2==null){e=H({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??yA)}return e}function wA(r,t,e){var a=ge(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:_A(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=H({},e),o=H({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Iu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return xA(this,r,t,e);if(r==="blur")return wA(this,r,e);if(r==="select")return bA(this,r,e)}return e}function Qa(r){r.stateProxy=Iu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Iu),e&&(e.stateProxy=Iu)}function hd(r,t){!I_(r,t)&&!r.__highByOuter&&Hr(r,w_)}function pd(r,t){!I_(r,t)&&!r.__highByOuter&&Hr(r,T_)}function Or(r,t){r.__highByOuter|=1<<(t||0),Hr(r,w_)}function Br(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Hr(r,T_)}function A_(r){Hr(r,ih)}function oh(r){Hr(r,C_)}function D_(r){Hr(r,mA)}function M_(r){Hr(r,SA)}function I_(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function L_(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=rh(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){C_(u)}),s&&e.push(i)),o.isBlured=!1}
1),T(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Sv(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,c){for(var v=0;v<c.length;v++){var f=u.getItemGraphicEl(c[v]);f&&oh(f)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var c=o===u,v=u.coordinateSystem;v&&v.master&&(v=v.master);var f=v&&s?v===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!f||t==="series"&&c)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||ih(g)}),oi(t))i(u.getData(),t);else if(ie(t))for(var p=at(t),d=0;d<p.length;d++)i(u.getData(p[d]),t[p[d]]);l.push(u),rh(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 _v(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){rh(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){ih(i)})}}}function TA(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=ja(n,t);i=(G(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ee(o);Sv(a,u.focus,u.blurScope,e)}
1else{var c=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);c!=null&&Sv(a,c,v,e)}}}function sh(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ee(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function CA(r,t,e){var a=ee(r),n=sh(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&_v(a.componentMainType,a.componentIndex,e),T(i,function(s){return hd(s,t)})):(Sv(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&_v(a.componentMainType,a.componentIndex,e),hd(r,t))}function AA(r,t,e){L_(e);var a=ee(r),n=sh(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?T(n,function(i){return pd(i,t)}):pd(r,t)}function DA(r,t,e){if(bv(t)){var a=t.dataType,n=r.getData(a),i=ja(n,t);G(i)||(i=[i]),r[t.type===pl?"toggleSelect":t.type===hl?"select":"unselect"](i,a)}}function dd(r){var t=r.getAllData();T(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?D_(i):M_(i)})})}function MA(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();T(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Wa(r,t,e){za(r,!0),Hr(r,Qa),xv(r,t,e)}function IA(r){za(r,!1)}function Ge(r,t,e,a){a?IA(r):Wa(r,t,e)}function xv(r,t,e){var a=ee(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var gd=["emphasis","blur","select"],LA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ot(r,t,e,a){e=e||"itemStyle";for(var n=0;n<gd.length;n++){var i=gd[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[LA[e]]()}}function za(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function go(r){return!!(r&&r.__highDownDispatcher)}function PA(r,t,e){var a=ee(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function kA(r){var t=vd[r];return t==null&&cd<=32&&(t=vd[r]=cd++),t}function bv(r){var t=r.type;return t===hl||t===mv||t===pl}function yd(r){var t=r.type;return t===Ha||t===Ks}function RA(r){var t=b_(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var P_=ve();function hi(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,v=void 0;a?(u=ne(a.duration,200),c=ne(a.easing,"cubicOut"),v=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),v=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(v=i.delay)),Q(v)&&(v=v(e,n)),Q(u)&&(u=u(e));var f={duration:u||0,delay:v,easing:c};return f}else return null}function lh(r,t,e,a,n,i,o){var s=!1,l;Q(n)?(o=i,i=n,n=null):ie(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var c=hi(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,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?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function xe(r,t,e,a,n,i){lh("update",r,t,e,a,n,i)}function Be(r,t,e,a,n,i){lh("enter",r,t,e,a,n,i)}function Wn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function va(r,t,e,a,n,i){Wn(r)||lh("leave",r,t,e,a,n,i)}function md(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),va(r,{style:{opacity:0}
1},t,e,a)}function Lr(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||md(n,t,e,a)}):md(r,t,e,a)}function $t(r){P_(r).oldStyle=r.style}function EA(r){return P_(r).oldStyle}var wv={},ae=["x","y"],et=["width","height"];function NA(r){return Ne.extend(r)}var OA=QT;function BA(r,t){return OA(r,t)}function nr(r,t){wv[r]=t}function gl(r){if(wv.hasOwnProperty(r))return wv[r]}function yo(r,t,e,a){var n=qT(r,t);return e&&(a==="center"&&(e=R_(e,n.getBoundingRect())),E_(n,e)),n}function k_(r,t,e){var a=new Kt({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(R_(t,i))}}});return a}function R_(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Ut=jT;function E_(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function $n(r,t){return Yf(r,r,{lineWidth:t}),r}function VA(r,t){return JT(r,r,t),r}var qs=Ba;function Ua(r,t){for(var e=Uf([]);r&&r!==t;)Oo(e,r.getLocalTransform(),e),r=r.parent;return e}function er(r,t,e){return t&&!oi(t)&&(t=Vn.getLocalTransform(t)),e&&(t=Er([],t)),mt([],r,t)}function au(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:fr(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:fr(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=er(i,t,e),fr(i[0])>fr(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Sd(r){return!r.isGroup}function zA(r){return r.shape!=null}function Go(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Sd(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return zA(o)&&(s.shape=te(o.shape)),s}var i=a(r);t.traverse(function(o){if(Sd(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),xe(o,l,e,ee(o).dataIndex)}}})}function N_(r,t){return U(r,function(e){var a=e[0];a=$e(a,t.x),a=Rt(a,t.x+t.width);var n=e[1];return n=$e(n,t.y),n=Rt(n,t.y+t.height),[a,n]})}function GA(r,t){var e=$e(r.x,t.x),a=Rt(r.x+r.width,t.x+t.width),n=$e(r.y,t.y),i=Rt(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Fo(r,t,e){var a=H({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),oe(n,e),new Kt(a)):yo(r.replace("path://",""),a,e,"center")}function Ki(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(O_(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function O_(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,c=o-n,v=s-i,f=Lu(c,v,l,u);if(FA(f))return!1;var h=r-n,p=t-i,d=Lu(h,p,l,u)/f;if(d<0||d>1)return!1;var g=Lu(h,p,c,v)/f;return!(g<0||g>1)}function Lu(r,t,e,a){return r*a-e*t}function FA(r){return r<=1e-6&&r>=-1e-6}function en(r,t,e,a,n){return t==null||(we(t)?We[0]=We[1]=We[2]=We[3]=t:(We[0]=t[0],We[1]=t[1],We[2]=t[2],We[3]=t[3]),a&&(We[0]=$e(0,We[0]),We[1]=$e(0,We[1]),We[2]=$e(0,We[2]),We[3]=$e(0,We[3])),e&&(We[0]=-We[0],We[1]=-We[1],We[2]=-We[2],We[3]=-We[3]),_d(r,We,"x","width",3,1,n&&n[0]||0),_d(r,We,"y","height",0,2,n&&n[1]||0)),r}var We=[0,0,0,0];function _d(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=$e(0,Rt(o,l)),r[a]<o?(r[a]=o,r[e]+=t[n]>=0?-t[n]:t[i]>=0?l+t[i]:fr(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function Wr(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=X(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&T(at(l),function(c){$(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ee(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:oe({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Tv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ya(r,t){if(r)if(G(r))for(var e=0;e<r.length;e++)Tv(r[e],t);else Tv(r,t)}function uh(r){return!r||fr(r[1])<ts&&fr(r[2])<ts||fr(r[0])<ts&&fr(r[3])<ts}var ts=1e-5;function mo(r,t){return r?Se.copy(r,t):t.clone()}function ch(r,t){return t?jS(r||rr(),t):void 0}
1function tn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function B_(r){var t=-1/0,e=1/0;Tv(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function nu(r,t,e){V_(r,t,e,-1/0)}function V_(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=$e(V_(s[l],t,e,a),a);else r.z=t,r.zlevel=e,a=$e(r.z2||0,a);if(n&&(n.z=t,n.zlevel=e,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}nr("circle",on);nr("ellipse",JS);nr("sector",Et);nr("ring",jl);nr("polygon",Nt);nr("polyline",Dt);nr("rect",ye);nr("line",ut);nr("bezierCurve",Jl);nr("arc",Zf);const un=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zf,BezierCurve:Jl,BoundingRect:Se,Circle:on,CompoundPath:Xf,Ellipse:JS,Group:J,Image:Kt,IncrementalDisplayable:eC,Line:ut,LinearGradient:Bo,OrientedBoundingRect:QS,Path:Ne,Point:me,Polygon:Nt,Polyline:Dt,RadialGradient:tC,Rect:ye,Ring:jl,Sector:Et,Text:_e,WH:et,XY:ae,applyTransform:er,calcZ2Range:B_,clipPointsByRect:N_,clipRectByRect:GA,createIcon:Fo,ensureCopyRect:mo,ensureCopyTransform:ch,expandOrShrinkRect:en,extendPath:BA,extendShape:NA,getShapeClass:gl,getTransform:Ua,groupTransition:Go,initProps:Be,isBoundingRectAxisAligned:uh,isElementRemoved:Wn,lineLineIntersect:O_,linePolygonIntersect:Ki,makeImage:k_,makePath:yo,mergePath:Ut,registerShape:nr,removeElement:va,removeElementWithFadeOut:Lr,resizePath:E_,retrieveZInfo:tn,setTooltipConfig:Wr,subPixelOptimize:qs,subPixelOptimizeLine:$n,subPixelOptimizeRect:VA,transformDirection:au,traverseElements:ya,traverseUpdateZ:nu,updateProps:xe},Symbol.toStringTag,{value:"Module"}));var iu={};function z_(r,t){for(var e=0;e<It.length;e++){var a=It[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Cv(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=Q(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<It.length;u++){var c=It[u],v=t[c];l[c]=ne(a?a.getFormattedLabel(n,c,null,i,v&&v.get("formatter")):null,s)}return l}function vt(r,t,e,a){e=e||iu;for(var n=r instanceof _e,i=!1,o=0;o<po.length;o++){var s=t[po[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new _e,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Cv(e,t),c=t.normal,v=!!c.getShallow("show"),f=Pe(c,a&&a.normal,e,!1,!n);f.text=u.normal,n||r.setTextConfig(yl(c,e,!1));for(var o=0;o<It.length;o++){var h=It[o],s=t[h];if(s){var p=l.ensureState(h),d=!!ne(s.getShallow("show"),v);if(d!==v&&(p.ignore=!d),p.style=Pe(s,a&&a[h],e,!0,!n),p.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=yl(s,e,!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(),e.enableTextSetter&&(pi(l).setLabelText=function(y){var m=Cv(e,t,y);z_(l,m)})}else l&&(l.ignore=!0);r.dirty()}function st(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<It.length;a++){var n=It[a];e[n]=r.getModel([n,t])}return e}function Pe(r,t,e,a,n){var i={};return HA(i,r,e,a,n),t&&H(i,t),i}function yl(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=ne(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(a.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(a.layoutRect=t.layoutRect),a}function HA(r,t,e,a,n){e=e||iu;var i=t.ecModel,o=i&&i.option.textStyle,s=WA(t),l;if(s){l={};var u="richInheritPlainLabel",c=ne(t.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var f=t.getModel(["rich",v]);Td(l[v]={},f,o,t,c,e,a,n,!1,!0)}}
1l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var p=t.get("lineOverflow");p&&(r.lineOverflow=p);var d=r,g=t.get("minMargin");if(g!=null)g=we(g)?g/2:0,d.margin=[g,g,g,g],d.__marginType=Gn.minMargin;else{var y=t.get("textMargin");y!=null&&(d.margin=$f(y),d.__marginType=Gn.textMargin)}Td(r,t,o,null,null,e,a,n,!0,!1)}function WA(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||iu).rich;if(e){t=t||{};for(var a=at(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var xd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bd=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Td(r,t,e,a,n,i,o,s,l,u){e=!o&&e||iu;var c=i&&i.inheritColor,v=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=ne(t.getShallow("opacity"),e.opacity);(v==="inherit"||v==="auto")&&(c?v=c:v=null),(f==="inherit"||f==="auto")&&(c?f=c:f=null),s||(v=v||e.color,f=f||e.textBorderColor),v!=null&&(r.fill=v),f!=null&&(r.stroke=f);var p=ne(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(r.lineWidth=p);var d=ne(t.getShallow("textBorderType"),e.textBorderType);d!=null&&(r.lineDash=d);var g=ne(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<xd.length;y++){var m=xd[y],S=n!==!1&&a?Fr(t.getShallow(m),a.getShallow(m),e[m]):ne(t.getShallow(m),e[m]);S!=null&&(r[m]=S)}for(var y=0;y<bd.length;y++){var m=bd[y],S=t.getShallow(m);S!=null&&(r[m]=S)}if(r.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(r.verticalAlign=_)}if(!l||!i.disableBox){for(var y=0;y<wd.length;y++){var m=wd[y],S=t.getShallow(m);S!=null&&(r[m]=S)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&c&&(r.backgroundColor=c),(r.borderColor==="auto"||r.borderColor==="inherit")&&c&&(r.borderColor=c)}}function vh(r,t){var e=t&&t.getModel("textStyle");return si([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var pi=ve();function G_(r,t,e,a){if(r){var n=pi(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function F_(r,t,e,a,n){var i=pi(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ne(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var v=S_(e,i.precision,s,l,c);i.interpolatedValue=c===1?null:v;var f=Cv({labelDataIndex:t,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);z_(r,f)}r.percent=0,(i.prevValue==null?Be:xe)(r,{percent:1},a,t,null,u)}var Gn={minMargin:1,textMargin:2},UA=["textStyle","color"],Pu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ku=new _e,YA=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(UA):null)},r.prototype.getFont=function(){return vh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Pu.length;a++)e[Pu[a]]=this.getShallow(Pu[a]);return ku.useStyle(e),ku.update(),ku.getBoundingRect()},r}(),H_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ZA=Ja(H_),XA=function(){function r(){}return r.prototype.getLineStyle=function(t){return ZA(this,t)},r}(),W_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],$A=Ja(W_),KA=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return $A(this,t,e)},r}(),de=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){he(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(te(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!Ye.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();th(de);vA(de);ft(de,XA);ft(de,KA);ft(de,gA);ft(de,YA);var qA=Math.round(Math.random()*10);function di(r){return[r||"",qA++].join("_")}function jA(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=pr(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=pr(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function JA(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),c=u.graph,v=u.noEntryList,f={};for(T(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]),T(p.successor,d?y:g)}T(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 e(i){var o={},s=[];return T(i,function(l){var u=a(o,l),c=u.originalDeps=t(l),v=n(c,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),T(v,function(f){ge(u.predecessor,f)<0&&u.predecessor.push(f);var h=a(o,f);
1ge(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 T(i,function(l){ge(o,l)>=0&&s.push(l)}),s}}function ma(r,t){return he(he({},r,!0),t,!0)}const QA={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},eD={time:{month:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"],monthAbbr:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],dayOfWeek:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayOfWeekAbbr:["æ¥","ä¸","äº","ä¸","å","äº","å
"]},legend:{selector:{all:"å
¨é",inverse:"åé"}},toolbox:{brush:{title:{rect:"ç©å½¢éæ©",polygon:"åé",lineX:"横åéæ©",lineY:"纵åéæ©",keep:"ä¿æéæ©",clear:"æ¸
é¤éæ©"}},dataView:{title:"æ°æ®è§å¾",lang:["æ°æ®è§å¾","å
³é","å·æ°"]},dataZoom:{title:{zoom:"åºå缩æ¾",back:"åºå缩æ¾è¿å"}},magicType:{title:{line:"åæ¢ä¸ºæçº¿å¾",bar:"åæ¢ä¸ºæ±ç¶å¾",stack:"åæ¢ä¸ºå å ",tiled:"åæ¢ä¸ºå¹³éº"}},restore:{title:"è¿å"},saveAsImage:{title:"ä¿å为å¾ç",lang:["å³é®å¦å为å¾ç"]}},series:{typeNames:{pie:"饼å¾",bar:"æ±ç¶å¾",line:"æçº¿å¾",scatter:"æ£ç¹å¾",effectScatter:"æ¶æ¼ªæ£ç¹å¾",radar:"é·è¾¾å¾",tree:"æ å¾",treemap:"ç©å½¢æ å¾",boxplot:"ç®±åå¾",candlestick:"K线å¾",k:"K线å¾",heatmap:"çåå¾",map:"å°å¾",parallel:"å¹³è¡åæ å¾",lines:"线å¾",graph:"å
³ç³»å¾",sankey:"æ¡åºå¾",funnel:"æ¼æå¾",gauge:"仪表çå¾",pictorialBar:"象形æ±å¾",themeRiver:"䏻颿²³æµå¾",sunburst:"ææ¥å¾",custom:"èªå®ä¹å¾è¡¨",chart:"å¾è¡¨"}},aria:{general:{withTitle:"è¿æ¯ä¸ä¸ªå
³äºâ{title}âçå¾è¡¨ã",withoutTitle:"è¿æ¯ä¸ä¸ªå¾è¡¨ï¼"},series:{single:{prefix:"",withName:"å¾è¡¨ç±»åæ¯{seriesType}ï¼è¡¨ç¤º{seriesName}ã",withoutName:"å¾è¡¨ç±»åæ¯{seriesType}ã"},multiple:{prefix:"å®ç±{seriesCount}个å¾è¡¨ç³»åç»æã",withName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ªè¡¨ç¤º{seriesName}ç{seriesType}
1ï¼",withoutName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ª{seriesType}ï¼",separator:{middle:"ï¼",end:"ã"}}},data:{allData:"å
¶æ°æ®æ¯ââ",partialData:"å
¶ä¸ï¼å{displayCnt}项æ¯ââ",withName:"{name}çæ°æ®æ¯{value}",withoutName:"{value}",separator:{middle:"ï¼",end:""}}}};var ml="ZH",fh="EN",Un=fh,js={},hh={},U_=Ye.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Un).toUpperCase();return r.indexOf(ml)>-1?ml:Un}():Un;function Y_(r,t){r=r.toUpperCase(),hh[r]=new de(t),js[r]=t}function tD(r){if(X(r)){var t=js[r.toUpperCase()]||{};return r===ml||r===fh?te(t):he(te(t),te(js[Un]),!1)}else return he(te(r),te(js[Un]),!1)}function Av(r){return hh[r]}function rD(){return hh[Un]}Y_(fh,QA);Y_(ml,eD);var Dv=null;function aD(r){Dv||(Dv=r)}function Qe(){return Dv}var ph=1e3,dh=ph*60,no=dh*60,Yt=no*24,Cd=Yt*365,nD={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Js={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},iD="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",rs="{yyyy}-{MM}-{dd}",Ad={year:"{yyyy}",month:"{yyyy}-{MM}",day:rs,hour:rs+" "+Js.hour,minute:rs+" "+Js.minute,second:rs+" "+Js.second,millisecond:iD},kt=["year","month","day","hour","minute","second","millisecond"],oD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sD(r){return!X(r)&&!Q(r)?lD(r):r}function lD(r){r=r||{};var t={},e=!0;return T(kt,function(a){e&&(e=r[a]==null)}),T(kt,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=kt[s],u=ie(i)&&!G(i)?i[l]:i,c=void 0;G(u)?(c=u.slice(),o=c[0]||""):X(u)?(o=u,c=[o]):(o==null?o=Js[a]:nD[l].test(o)||(o=t[l][l][0]+" "+o),c=[o],e&&(c[1]="{primary|"+o+"}")),t[a][l]=c}}),t}function Zr(r,t){return r+="","0000".substr(0,t-r.length)+r}function io(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 uD(r){return r===io(r)}function cD(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ou(r,t,e,a){var n=ln(r),i=n[Z_(e)](),o=n[gh(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[yh(e)](),u=n["get"+(e?"UTC":"")+"Day"](),c=n[mh(e)](),v=(c-1)%12+1,f=n[Sh(e)](),h=n[_h(e)](),p=n[xh(e)](),d=c>=12?"pm":"am",g=d.toUpperCase(),y=a instanceof de?a:Av(a||U_)||rD(),m=y.getModel("time"),S=m.get("month"),_=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Zr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Zr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Zr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Zr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Zr(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,Zr(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Zr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Zr(p,3)).replace(/{S}/g,p+"")}function vD(r,t,e,a,n){var i=null;if(X(e))i=e;else if(Q(e)){var o={time:r.time,level:r.time.level},s=Qe();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var c=Fn(r.value,n);i=e[c][c][0]}}return ou(new Date(r.value),i,n,a)}function Fn(r,t){var e=ln(r),a=e[gh(t)]()+1,n=e[yh(t)](),i=e[mh(t)](),o=e[Sh(t)](),s=e[_h(t)](),l=e[xh(t)](),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 Mv(r,t,e){switch(t){case"year":r[X_(e)](0);case"month":r[$_(e)](1);case"day":r[K_(e)](0);case"hour":r[q_(e)](0);case"minute":r[j_(e)](0);case"second":r[J_(e)](0)}return r}function Z_(r){return r?"getUTCFullYear":"getFullYear"}function gh(r){return r?"getUTCMonth":"getMonth"}function yh(r){return r?"getUTCDate":"getDate"}function mh(r){return r?"getUTCHours":"getHours"}function Sh(r){return r?"getUTCMinutes":"getMinutes"}function _h(r){return r?"getUTCSeconds":"getSeconds"}function xh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function fD(r){return r?"setUTCFullYear":"setFullYear"}function X_(r){return r?"setUTCMonth":"setMonth"}function $_(r){return r?"setUTCDate":"setDate"}function K_(r){return r?"setUTCHours":"setHours"}function q_(r){return r?"setUTCMinutes":"setMinutes"}function j_(r){return r?"setUTCSeconds":"setSeconds"}function J_(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Q_(r){if(!c_(r))return X(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ex(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ho=$f;function Iv(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&si(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ln(r):r;if(isNaN(+l)){if(s)return"-"}else return ou(l,a,e)}if(t==="ordinal")return fv(r)?n(r):we(r)&&i(r)?r+"":"-";var u=Nr(r);return i(u)?Q_(u):fv(r)?n(r):typeof r=="boolean"?r+"":"-"}var Dd=["a","b","c","d","e","f","g"],Ru=function(r,t){return"{"+r+(t??"")+"}"};function tx(r,t,e){G(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=Dd[i];r=r.replace(Ru(o),Ru(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Ru(Dd[l],s),e?Lt(u):u)}return r}function hD(r,t,e){return T(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function pD(r,t){var e=X(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Lt(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Lt(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function rn(r,t){return t=t||"transparent",X(r)?r:ie(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Sl(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Qs={},Eu={},Wo=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Qs),this._normalMasterList=a(Eu);function a(n,i){var o=[];return T(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){T(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Qs[t]=e;return}Eu[t]=e},r.get=function(t){return Eu[t]||Qs[t]},r}();function dD(r){return!!Qs[r]}var Lv={coord:1,coord2:2};function gD(r){rx.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var rx=K();function yD(r){var t=r.getShallow("coord",!0),e=Lv.coord;
1if(t==null){var a=rx.get(r.type);a&&a.getCoord2&&(e=Lv.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var cr={none:0,dataCoordSys:1,boxCoordSys:2};function ax(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=cr.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=cr.dataCoordSys,i||(n=cr.none)):a==="box"&&(n=cr.boxCoordSys,!i&&!dD(e)&&(n=cr.none))}return{coordSysType:e,kind:n}}function Uo(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=ax(t),o=i.kind,s=i.coordSysType;if(n&&o!==cr.dataCoordSys&&(o=cr.dataCoordSys,s=e),o===cr.none||s!==e)return!1;var l=a(e,t);return l?(o===cr.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var nx=function(r,t){var e=t.getReferringComponents(r,Ue).models[0];return e&&e.coordinateSystem},el=T,ix=["left","right","top","bottom","width","height"],Ga=[["width","left","right"],["height","top","bottom"]];function bh(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),v=t.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+e,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+e,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+e:o=p+e)})}var Ya=bh;se(bh,"vertical");se(bh,"horizontal");function ox(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function mD(r,t){var e=lt(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===qi.point)i=e.refPoint,n=Fe(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=G(o)?o:[o,o];n=Fe(a,e.refContainer),i=e.boxCoordFrom===Lv.coord2?e.refPoint:[Y(s[0],n.width)+n.x,Y(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function sx(r,t){var e=mD(r,t),a=e.viewRect,n=e.center,i=r.get("radius");G(i)||(i=[0,i]);var o=Y(a.width,t.getWidth()),s=Y(a.height,t.getHeight()),l=Math.min(o,s),u=Y(i[0],l/2),c=Y(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:c,viewRect:a}}function Fe(r,t,e){e=Ho(e||0);var a=t.width,n=t.height,i=Y(r.left,a),o=Y(r.top,n),s=Y(r.right,a),l=Y(r.bottom,n),u=Y(r.width,a),c=Y(r.height,n),v=e[2]+e[0],f=e[1]+e[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-e[3];break;case"right":i=a-u-f;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[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 Se((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,c);return p.margin=e,p}function lx(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n<e&&l?(s.width=t.height*e,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Fe(s,t)}var qi={rect:1,point:2};function lt(r,t,e){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=yD(r),u=l.coord,c=l.from;if(o.dataToLayout){i=qi.rect,s=c;var v=o.dataToLayout(u);a=v.contentRect||v.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=qi.point,s=c,n=o.dataToPoint(u))}return i==null&&(i=qi.rect),i===qi.rect&&(a||(a={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function su(r,t,e,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 Se(0,0,+t.width||0,+t.height||0):r.getBoundingRect
1();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var v=Fe(oe({width:u.width,height:u.height},t),e,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 SD(r,t){return r[Ga[t][0]]!=null||r[Ga[t][1]]!=null&&r[Ga[t][2]]!=null}function So(r){var t=r.layoutMode||r.constructor.layoutMode;return ie(t)?t:t?{type:t}:null}function mr(r,t,e){var a=e&&e.ignoreSize;!G(a)&&(a=[a,a]);var n=o(Ga[0],0),i=o(Ga[1],1);l(Ga[0],r,n),l(Ga[1],r,i);function o(u,c){var v={},f=0,h={},p=0,d=2;if(el(u,function(m){h[m]=r[m]}),el(u,function(m){$(t,m)&&(v[m]=h[m]=t[m]),s(v,m)&&f++,s(h,m)&&p++}),a[c])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(p===d||!f)return h;if(f>=d)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!$(v,y)&&$(r,y)){v[y]=r[y];break}}return v}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,v){el(u,function(f){c[f]=v[f]})}}function cn(r){return ux({},r)}function ux(r,t){return t&&r&&el(ix,function(e){$(t,e)&&(r[e]=t[e])}),r}var _D=ve(),pe=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=di("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=So(this),i=n?cn(e):{},o=a.getTheme();he(e,o.get(this.mainType)),he(e,this.getDefaultOption()),n&&mr(e,i,n)},t.prototype.mergeOption=function(e,a){he(this.option,e,!0);var n=So(this);
1n&&mr(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!lA(e))return e.defaultOption;var a=_D(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=he(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return vi(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return ox(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(de);x_(pe,de);eu(pe);jA(pe);JA(pe,xD);function xD(r){var t=[];return T(pe.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=U(t,function(e){return pr(e).main}),r!=="dataset"&&ge(t,"dataset")<=0&&t.unshift("dataset"),t}var N={color:{},darkColor:{},size:{}},Ze=N.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};H(Ze,{primary:Ze.neutral80,secondary:Ze.neutral70,tertiary:Ze.neutral60,quaternary:Ze.neutral50,disabled:Ze.neutral20,border:Ze.neutral30,borderTint:Ze.neutral20,borderShade:Ze.neutral40,background:Ze.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ze.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ze.neutral70,axisLineTint:Ze.neutral40,axisTick:Ze.neutral70,axisTickMinor:Ze.neutral60,axisLabel:Ze.neutral70,axisSplitLine:Ze.neutral15,axisMinorSplitLine:Ze.neutral05});for(var xa in Ze)if(Ze.hasOwnProperty(xa)){var Md=Ze[xa];xa==="theme"?N.darkColor.theme=Ze.theme.slice():xa==="highlight"?N.darkColor.highlight="rgba(255,231,130,0.4)":xa.indexOf("accent")===0?N.darkColor[xa]=na(Md,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):N.darkColor[xa]=na(Md,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}N.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var cx="";typeof navigator<"u"&&(cx=navigator.platform||"");var mn="rgba(0, 0, 0, 0.2)",vx=N.color.theme[0],bD=na(vx,null,null,.9);const wD={darkMode:"auto",colorBy:"series",color:N.color.theme,gradientColor:[bD,vx],aria:{decal:{decals:[{color:mn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cx.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};
1var fx=K(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Bt="original",pt="arrayRows",Vt="objectRows",ir="keyedColumns",sa="typedArray",hx="unknown",tr="column",vn="row",dt={Must:1,Might:2,Not:3},px=ve();function TD(r){px(r).datasetMap=K()}function dx(r,t,e){var a={},n=Th(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=px(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,c,v;r=r.slice(),T(r,function(d,g){var y=ie(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});T(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 wh(r,t,e){var a={},n=Th(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Vt||i===ir)&&T(o,function(c,v){(ie(c)?c.name:c)==="name"&&(s=v)});var l=function(){for(var c={},v={},f=[],h=0,p=Math.min(5,e);h<p;h++){var d=yx(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);f.push(d);var g=d===dt.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&f[c.n]===dt.Not)&&(c.n=h),y(c)&&f[c.n]!==dt.Not)return c;g||(d===dt.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??l.n;a.itemName=[u],a.seriesName=[u]}return a}function Th(r){var t=r.get("data",!0);if(!t)return vi(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ue).models[0]}function CD(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:vi(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ue).models}function gx(r,t){return yx(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function yx(r,t,e,a,n,i){var o,s=5;if(Ot(r))return dt.Not;var l,u;if(a){var c=a[i];ie(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?dt.Must:dt.Not;if(t===pt){var v=r;if(e===vn){for(var f=v[i],h=0;h<(f||[]).length&&h<s;h++)if((o=_(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=_(p[i]))!=null)return o}}else if(t===Vt){var d=r;if(!l)return dt.Not;for(var h=0;h<d.length&&h<s;h++){var g=d[h];if(g&&(o=_(g[l]))!=null)return o}}else if(t===ir){var y=r;if(!l)return dt.Not;var f=y[l];if(!f||Ot(f))return dt.Not;for(var h=0;h<f.length&&h<s;h++)if((o=_(f[h]))!=null)return o}else if(t===Bt)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],S=ci(g);if(!G(S))return dt.Not;if((o=_(S[i]))!=null)return o}function _(x){var b=X(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return b?dt.Might:dt.Not;if(b&&x!=="-")return dt.Must}return dt.Not}var Pv=K();function AD(r,t){Pt(Pv.get(r)==null&&t),Pv.set(r,t)}function DD(r,t,e){var a=Pv.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Id=ve(),MD=ve(),Ch=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Le(this.get("color",!0)),i=this.get("colorLayer",!0);return mx(this,Id,n,i,t,e,a)},r.prototype.clearColorPalette=function(){LD(this,Id)},r}();function kv(r,t,e,a){var n=Le(r.get(["aria","decal","decals"]));return mx(r,MD,n,null,t,e,a)}function ID(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function mx(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?e:ID(a,o);if(c=c||e,!(!c||!c.length)){var v=c[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%c.length,v}}function LD(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var as,wi,Ld,Pd="\0_ec_inner",PD=1,Ah=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new de(i),this._locale=new de(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=Ed(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Ed(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Ld(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=a&&a.replaceMergeMainTypeMap;TD(this),T(e,function(v,f){v!=null&&(pe.hasClass(f)?f&&(s.push(f),l.set(f,!0)):n[f]=n[f]==null?te(v):he(n[f],v,!0))}),u&&u.each(function(v,f){pe.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),pe.topologicalTravel(s,pe.getAllClassMainTypes(),c,this);function c(v){var f=DD(this,v,Le(e[v])),h=i.get(v),p=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",d=g_(h,f,p);QC(d,v,pe),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,S;T(d,function(_,x){var b=_.existing,w=_.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=v==="series",A=pe.getClass(v,_.keyInfo.subType,!C);if(!A)return;if(v==="tooltip"){if(S)return;S=!0}if(b&&b.constructor===A)b.name=_.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var D=H({componentIndex:x},_.keyInfo);b=new A(w,this,this,D),H(b,D),_.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&as(this)}this._seriesIndices||as(this)},t.prototype.getOption=function(){var e=te(this.option);return T(e,function(a,n){if(pe.hasClass(n)){for(var i=Le(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ho(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Pd],e},t.prototype.setTheme=function(e){this._theme=new de(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(Le(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=kd("id",i,s):o!=null?l=kd("name",o,s):l=De(s,function(u){return!!u}),Rd(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):De(this._componentsMap.get(n),function(u){return!!u});return l(Rd(o,e));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 e.filter?De(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(Q(e)){var o=a,s=e;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=X(e)?i.get(e):ie(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=it(e,null);return De(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return De(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return De(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){wi(this),T(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){T(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){wi(this),T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return T(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return wi(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){wi(this);var n=[];T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){as(this);var a=this._componentsMap,n=[];a.each(function(i,o){pe.hasClass(o)&&n.push(o)}),pe.topologicalTravel(n,pe.getAllClassMainTypes(),function(i){T(a.get(i),function(o){o&&(i!=="series"||!kD(o,e))&&o.restoreData()})})},t.internalField=function(){as=function(e){var a=e._seriesIndices=[];T(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=K(a)},wi=function(e){},Ld=function(e,a){e.option={},e.option[Pd]=PD,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=a.aria;ie(n)&&n.enabled==null&&(n.enabled=!0),RD(a,e._theme.option),he(a,wD,!1),e._mergeOption(a,null)}}(),t}(de);function kD(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function RD(r,t){var e=r.color&&!r.colorLayer;T(t,function(a,n){n==="colorLayer"&&e||n==="color"&&r.color||pe.hasClass(n)||(typeof a=="object"?r[n]=r[n]?he(r[n],a,!1):te(a):r[n]==null&&(r[n]=a))})}function kd(r,t,e){if(G(t)){var a=K();return T(t,function(i){if(i!=null){var o=it(i,null);o!=null&&a.set(i,!0)}}),De(e,function(i){return i&&a.get(i[r])})}else{var n=it(t,null);return De(e,function(i){return i&&n!=null&&i[r]===n})}}function Rd(r,t){return t.hasOwnProperty("subType")?De(r,function(e){return e&&e.subType===t.subType}):r}function Ed(r){var t=K();return r&&T(Le(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ft(Ah,Ch);var ED=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],S
1x=function(){function r(t){T(ED,function(e){this[e]=Z(t[e],t)},this)}return r}(),ND=/^(min|max)?(.+)$/,OD=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(T(Le(t.series),function(o){o&&o.data&&Ot(o.data)&&ul(o.data)}),T(Le(t.dataset),function(o){o&&o.source&&Ot(o.source)&&ul(o.source)})),t=te(t);var n=this._optionBackup,i=BD(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],te(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=te(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)VD(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!GD(o,this._currentMediaIndices)&&(s=U(o,function(c){return te(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,s},r}();function BD(r,t,e){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&&G(u)&&T(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),f(i),T(l,function(h){return f(h)}),T(a,function(h){return f(h.option)});function f(h){T(t,function(p){p(h,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function VD(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return T(r,function(i,o){var s=o.match(ND);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();zD(a[u],i,l)||(n=!1)}}),n}function zD(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function GD(r,t){return r.join(",")===t.join(",")}var qt=T,_o=ie,Nd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nu(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=Nd.length;e<a;e++){var n=Nd[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?he(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?he(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function St(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,oe(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function ji(r){St(r,"itemStyle"),St(r,"lineStyle"),St(r,"areaStyle"),St(r,"label"),St(r,"labelLine"),St(r,"upperLabel"),St(r,"edgeLabel")}function je(r,t){var e=_o(r)&&r[t],a=_o(e)&&e.textStyle;if(a)for(var n=0,i=ud.length;n<i;n++){var o=ud[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Ft(r){r&&(ji(r),je(r,"label"),r.emphasis&&je(r.emphasis,"label"))}function FD(r){if(_o(r)){Nu(r),ji(r),je(r,"label"),je(r,"upperLabel"),je(r,"edgeLabel"),r.emphasis&&(je(r.emphasis,"label"),je(r.emphasis,"upperLabel"),je(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Nu(t),Ft(t));var e=r.markLine;e&&(Nu(e),Ft(e));var a=r.markArea;a&&Ft(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Ot(i))for(var o=0;o<i.length;o++)Ft(i[o]);T(r.categories,function(u){ji(u)})}if(n&&!Ot(n))for(var o=0;o<n.length;o++)Ft(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ft(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)G(l[o])?(Ft(l[o][0]),Ft(l[o][1])):Ft(l[o]);r.type==="gauge"?(je(r,"axisLabel"),je(r,"title"),je(r,"detail")):r.type==="treemap"?(St(r.breadcrumb,"itemStyle"),T(r.levels,function(u){ji(u)})):r.type==="tree"&&ji(r.leaves)}}function wr(r){return G(r)?r:r?[r]:[]}function Od(r){return(G(r)?r[0]:r)||{}}function HD(r,t){qt(wr(r.series),function(a){_o(a)&&FD(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),qt(e,function(a){qt(wr(r[a]),function(n){n&&(je(n,"axisLabel"),je(n.axisPointer,"label"))})}),qt(wr(r.parallel),function(a){var n=a&&a.parallelAxisDefault;je(n,"axisLabel"),je(n&&n.axisPointer,"label")}),qt(wr(r.calendar),function(a){St(a,"itemStyle"),je(a,"dayLabel"),je(a,"monthLabel"),je(a,"yearLabel")}),qt(wr(r.radar),function(a){je(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)}),qt(wr(r.geo),function(a){_o(a)&&(Ft(a),qt(wr(a.regions),function(n){Ft(n)}))}),qt(wr(r.timeline),function(a){Ft(a),St(a,"label"),St(a,"itemStyle"),St(a,"controlStyle",!0);var n=a.data;G(n)&&T(n,function(i){ie(i)&&(St(i,"label"),St(i,"itemStyle"))})}),qt(wr(r.toolbox),function(a){St(a,"iconStyle"),qt(a.feature,function(n){St(n,"iconStyle")}
1)}),je(Od(r.axisPointer),"label"),je(Od(r.tooltip).axisPointer,"label")}function WD(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function UD(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function Bd(r){r&&T(YD,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var YD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ZD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ou=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ti(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Ou.length;e++){var a=Ou[e][1],n=Ou[e][0];t[a]!=null&&(t[n]=t[a])}}function Vd(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function zd(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function XD(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function _x(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&_x(r[e].children,t)}function xx(r,t){HD(r,t),r.series=Le(r.series),T(r.series,function(e){if(ie(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Vd(e.label);var n=e.data;if(n&&!Ot(n))for(var i=0;i<n.length;i++)Vd(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=WD(e,"pointer.color");o!=null&&UD(e,"itemStyle.color",o)}else if(a==="bar"){Ti(e),Ti(e.backgroundStyle),Ti(e.emphasis);var n=e.data;if(n&&!Ot(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Ti(n[i]),Ti(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),zd(e),_x(e.data,zd)}else a==="graph"||a==="sankey"?XD(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&oe(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Bd(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(ZD,function(e){var a=r[e];a&&(G(a)||(a=[a]),T(a,function(n){Bd(n)}))})}function $D(r){var t=K();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var a=e[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),T(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),KD(e)}})}function KD(r){T(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,v){var f=o.get(t.stackedDimension,v);if(isNaN(f))return n;var h,p;s?p=o.getRawIndex(v):h=o.get(t.stackedByDimension,v);for(var d=NaN,g=e-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=zC(f,m),d=m;break}}}return a[0]=f,a[1]=d,a})})}var lu=function(){function r(t){this.data=t.data||(t.sourceFormat===ir?{}:[]),this.sourceFormat=t.sourceFormat||hx,this.seriesLayoutBy=t.seriesLayoutBy||tr,this.startIndex=t.startIndex||
10,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&gx(this,a)===dt.Must&&(n.type="ordinal")}}return r}();function Dh(r){return r instanceof lu}function Rv(r,t,e){e=e||bx(r);var a=t.seriesLayoutBy,n=jD(r,e,a,t.sourceHeader,t.dimensions),i=new lu({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:te(t)});return i}function Mh(r){return new lu({data:r,sourceFormat:Ot(r)?sa:Bt})}function qD(r){return new lu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:te(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function bx(r){var t=hx;if(Ot(r))t=sa;else if(G(r)){r.length===0&&(t=pt);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(G(n)||Ot(n)){t=pt;break}else if(ie(n)){t=Vt;break}}}}else if(ie(r)){for(var i in r)if($(r,i)&&oi(r[i])){t=ir;break}}return t}function jD(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Gd(n),startIndex:o,dimensionsDetectedCount:i};if(t===pt){var s=r;a==="auto"||a==null?Fd(function(u){u!=null&&u!=="-"&&(X(u)?o==null&&(o=1):o=0)}
1,e,s,10):o=we(a)?a:a?1:0,!n&&o===1&&(n=[],Fd(function(u,c){n[c]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===vn?s.length:s[0]?s[0].length:null}else if(t===Vt)n||(n=JD(r));else if(t===ir)n||(n=[],T(r,function(u,c){n.push(c)}));else if(t===Bt){var l=ci(r[0]);i=G(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Gd(n),dimensionsDetectedCount:i}}function JD(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return at(e)}function Gd(r){if(r){var t=K();return U(r,function(e,a){e=ie(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Fd(r,t,e,a){if(t===vn)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function wx(r){var t=r.sourceFormat;return t===Vt||t===ir}var ba,wa,Ta,Ca,Hd,Wd,Tx=function(){function r(t,e){var a=Dh(t)?t:Mh(t);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===sa&&(this._offset=0,this._dimSize=e,this._data=n),Wd(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Wd=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,v=l.startIndex,f=l.dimensionsDefine,h=Hd[Ih(u,c)];if(H(o,h),u===sa)o.getItem=e,o.count=n,o.fillStorage=a;else{var p=Cx(u,c);o.getItem=Z(p,null,s,v,f);var d=Ax(u,c);o.count=Z(d,null,s,v,f)}};var e=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};Hd=(t={},t[pt+"_"+tr]={pure:!0,appendData:i},t[pt+"_"+vn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Vt]={pure:!0,appendData:i},t[ir]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var c=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)c.push(l[v])})}},t[Bt]={appendData:i},t[sa]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),ns=function(r){G(r)||h_("series.data or dataset.source must be an array.")};ba={},ba[pt+"_"+tr]=ns,ba[pt+"_"+vn]=ns,ba[Vt]=ns,ba[ir]=function(r,t){for(var e=0;e<t.length;e++){var a=t[e].name;a==null&&h_("dimension name must not be null/undefined.")}},ba[Bt]=ns;var Ud=function(r,t,e,a){return r[a]},QD=(wa={},wa[pt+"_"+tr]=function(r,t,e,a){return r[a+t]},wa[pt+"_"+vn]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},wa[Vt]=Ud,wa[ir]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},wa[Bt]=Ud,wa);function Cx(r,t){var e=QD[Ih(r,t)];return e}var Yd=function(r,t,e){return r.length},eM=(Ta={},Ta[pt+"_"+tr]=function(r,t,e){return Math.max(0,r.length-t)},Ta[pt+"_"+vn]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},Ta[Vt]=Yd,Ta[ir]=function(r,t,e){var a=e[0].name,n=a!=null?r[a]:null;return n?n.length:0},Ta[Bt]=Yd,Ta);function Ax(r,t){var e=eM[Ih(r,t)];return e}var Bu=function(r,t,e){return r[t]},tM=(Ca={},Ca[pt]=Bu,Ca[Vt]=function(r,t,e){return r[e]},Ca[ir]=Bu,Ca[Bt]=function(r,t,e){var a=ci(r);return a instanceof Array?a[t]:a},Ca[sa]=Bu,Ca);function Dx(r){var t=tM[r];return t}function Ih(r,t){return r===pt?r+"_"+t:r}function Kn(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Dx(i)(a,o,s)}else{var l=a;return i===Bt&&(l=ci(a)),l}}}}var rM=/\{@(.+?)\}/g,uu=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,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,
1seriesName:f?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&G(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Q(i))return l.status=e,l.dimensionIndex=n,i(l);if(X(i)){var c=tx(i,l);return c.replace(rM,function(v,f){var h=f.length,p=f;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var d=Kn(s,t,p);if(o&&G(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Kn(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function Zd(r){var t,e;return ie(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function oo(r){return new aM(r)}var aM=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(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=t&&t.step;if(e?this._dueEnd=e._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(G(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(t,e,a,n,i){Xd.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Xd.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),G(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Xd=function(){var r,t,e,a,n,i={reset:function(l,u,c,v){t=l,r=u,e=c,a=v,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function la(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!we(r)&&r!=null&&r!=="-"&&(r=+ln(r)),r==null||r===""?NaN:Number(r))}var nM=K({number:function(r){return parseFloat(r)},time:function(r){return+ln(r)},trim:function(r){return X(r)?si(r):r}});function Mx(r){return nM.get(r)}var Ix={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},iM=function(){function r(t,e){if(!we(e)){var a="";be(a)}this._opFn=Ix[t],this._rvalFloat=Nr(e)}return r.prototype.evaluate=function(t){return we(t)?this._opFn(t,this._rvalFloat):this._opFn(Nr(t),this._rvalFloat)},r}(),Lx=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=we(t)?t:Nr(t),n=we(e)?e:Nr(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=X(t),l=X(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),oM=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Nr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=Nr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function sM(r,t){return r==="eq"||r==="ne"?new oM(r==="eq",t):$(Ix,r)?new iM(r,t):null}var lM=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return la(t,e)},r}();function uM(r,t){var e=new lM,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==tr&&be(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var S="";$(l,y)&&be(S),l[y]=m}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var v=Cx(n,tr);t.__isBuiltIn&&(e.getRawDataItem=function(d){return v(a,i,s,d)},e.getRawData=Z(cM,null,r)),e.cloneRawData=Z(vM,null,r);var f=Ax(n,tr);e.count=Z(f,null,a,i,s);var h=Dx(n);e.retrieveValue=function(d,g){var y=v(a,i,s,d);return p(y,g)};var p=e.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return h(d,g,y.name)}};return e.getDimensionInfo=Z(fM,null,s,l),e.cloneAllDimensionInfo=Z(
1hM,null,s),e}function cM(r){var t=r.sourceFormat;if(!Lh(t)){var e="";be(e)}return r.data}function vM(r){var t=r.sourceFormat,e=r.data;if(!Lh(t)){var a="";be(a)}if(t===pt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===Vt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(H({},e[i]));return n}}function fM(r,t,e){if(e!=null){if(we(e)||!isNaN(e)&&!$(t,e))return r[e];if($(t,e))return t[e]}}function hM(r){return te(r)}var Px=K();function pM(r){r=te(r);var t=r.type,e="";t||be(e);var a=t.split(":");a.length!==2&&be(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,Px.set(t,r)}function dM(r,t,e){var a=Le(r),n=a.length,i="";n||be(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=gM(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function gM(r,t,e,a){var n="";t.length||be(n),ie(r)||be(n);var i=r.type,o=Px.get(i);o||be(n);var s=U(t,function(u){return uM(u,o)}),l=Le(o.transform({upstream:s[0],upstreamList:s,config:te(r.config)}));return U(l,function(u,c){var v="";ie(u)||be(v),u.data||be(v);var f=bx(u.data);Lh(f)||be(v);var h,p=t[0];if(p&&c===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),h={seriesLayoutBy:tr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:tr,sourceHeader:0,dimensions:u.dimensions};return Rv(u.data,h,null)})}function Lh(r){return r===pt||r===Vt}var cu="undefined",yM=typeof Uint32Array===cu?Array:Uint32Array,mM=typeof Uint16Array===cu?Array:Uint16Array,kx=typeof Int32Array===cu?Array:Int32Array,$d=typeof Float64Array===cu?Array:Float64Array,Rx={float:$d,int:kx,ordinal:Array,number:Array,time:$d},Vu;function Sn(r){return r>65535?yM:mM}function _n(){return[1/0,-1/0]}function SM(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Kd(r,t,e,a,n){var i=Rx[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var Ev=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Vu[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],wx(n),this._dimensions=U(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new Rx[e||"float"](this._rawCount),this._rawExtent[i]=_n(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=_n());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];Kd(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=Vu.arrayRows.call(this,t[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(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(m){return m.property}),c=0;c<s;c++){var v=o[c];l[c]||(l[c]=_n()),Kd(i,c,v.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var f=[],h=t;h<e;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=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Sn(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Sn(a._rawCount),o=new i(n),s=[],l=t.length,u=0,c=t[0],v=a._chunks,f=0;f<n;f++){var h=void 0,p=a.getRawIndex(f);if(l===0)h=e(f);else if(l===1){var d=v[c][p];h=e(d,f)}else{for(var g=0;g<l;g++)s[g]=v[t[g]][p];s[g]=f,h=e.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(t){var e=this.clone(),a=e._count;if(!a)return this;var n=at(t),i=n.length;if(!i)return this;var o=e.count(),s=Sn(e._rawCount),l=new s(o),u=0,c=n[0],v=t[c][0],f=t[c][1],h=e._chunks,p=!1;if(!e._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]],_=t[n[1]][0],x=t[n[1]][1],y=0;y<a;y++){var m=g[y],b=S[y];(m>=v&&m<=f||isNaN(m))&&(b>=_&&b<=x||isNaN(b))&&(l[u++]=d),d++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=h[n[0]][w];(m>=v&&m<=f||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var C=!0,w=e.getRawIndex(y),A=0;A<i;A++){var D=n[A],m=h[D][w];(m<t[D][0]||m>t[D][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}
1return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=_n();for(var v=0;v<s;v++){for(var f=t.getRawIndex(v),h=0;h<o;h++)l[h]=n[e[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=e[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(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,v,f,h=new(Sn(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 _=this.getRawIndex(S),x=i[_];isNaN(x)||(m+=x)}m/=g-d;var b=p,w=Math.min(p+l,o),C=p-1,A=i[u];c=-1,f=b;for(var D=-1,M=0,S=b;S<w;S++){var _=this.getRawIndex(S),x=i[_];if(isNaN(x)){M++,D<0&&(D=_);continue}v=Math.abs((C-y)*(x-A)-(C-S)*(m-A)),v>c&&(c=v,f=_)}M>0&&M<w-b&&(h[s++]=Math.min(D,f),f=Math.max(D,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.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(Sn(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var v=c,f=o[this.getRawIndex(v)],h=c,p=o[this.getRawIndex(h)],d=i;c+i>s&&(d=s-c);for(var g=0;g<d;g++){var y=this.getRawIndex(c+g),m=o[y];m<f&&(f=m,v=c+g),m>p&&(p=m,h=c+g)}var S=this.getRawIndex(v),_=this.getRawIndex(h);v<h?(l[u++]=S,l[u++]=_):(l[u++]=_,l[u++]=S)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),v=i._rawExtent[t]=_n(),f=new(Sn(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(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=_n();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),v=e[c];v<s&&(s=v),v>l&&(l=v)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&Zn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?SM(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=te(this._extent),t._rawExtent=te(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return la(e[i],this._dimensions[i])}Vu={arrayRows:t,objectRows:function(e,a,n,i){return la(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return la(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),Ex=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(is(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Ot(s)?sa:Bt,i=[];var v=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=ne(v.seriesLayoutBy,f.seriesLayoutBy)||null,p=ne(v.sourceHeader,f.sourceHeader),d=ne(v.dimensions,f.dimensions),g=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||d;n=g?[Rv(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:d},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var S=y.get("source",!0);n=[Rv(S,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&jd(i)}var o,s=[],l=[];return T(t,function(u){u.prepareSource();var c=u.getSource(n||0),v="";n!=null&&!c&&jd(v),s.push(c),l.push(u._getVersionSign())}),a?o=dM(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[qD(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];is(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Ev,s.initData(new Tx(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(is(t)){var e=Th(t);return e?[e.getSourceManager()]:[]}else return U(CD(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(is(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function qd(r){var t=r.option.transform;t&&ul(r.option.transform)}function is(r){return r.mainType==="series"}
1function jd(r){throw new Error(r)}var _M="line-height:1";function Nx(r){var t=r.lineHeight;return t==null?_M:"line-height:"+Lt(t+"")+"px"}function Ox(r,t){var e=r.color||N.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||N.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Lt(a+"")+"px;color:"+Lt(e)+";font-weight:"+Lt(n+""),valueStyle:"font-size:"+Lt(o+"")+"px;color:"+Lt(i)+";font-weight:"+Lt(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var xM=[0,10,20,30],bM=["",` 2`,` 3 4`,` 5 6 7`];function tt(r,t){return t.type=r,t}function Nv(r){return r.type==="section"}function Bx(r){return Nv(r)?wM:TM}function Vx(r){if(Nv(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return T(r.blocks,function(n){var i=Vx(n);i>=t&&(t=i+ +(a&&(!i||Nv(n)&&!n.noHeader)))}),t}return 0}function wM(r,t,e,a){var n=t.noHeader,i=CM(Vx(t)),o=[],s=t.blocks||[];Pt(!s||G(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if($(u,l)){var c=new Lx(u[l],null);s.sort(function(d,g){return c.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,g){var y=t.valueFormatter,m=Bx(d)(y?H(H({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):Ov(a,o.join(""),n?e:i.html);if(n)return v;var f=Iv(t.header,"ordinal",r.useUTC),h=Ox(a,r.renderMode).nameStyle,p=Nx(a);return r.renderMode==="richText"?zx(r,f,h)+i.richText+v:Ov(a,'<div style="'+h+";"+p+';">'+Lt(f)+"</div>"+v,e)}function TM(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(_){return _=G(_)?_:[_],U(_,function(x,b){return Iv(x,G(h)?h[b]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||N.color.secondary,n),f=i?"":Iv(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),d=!s||!i,g=!s&&i,y=Ox(a,n),m=y.nameStyle,S=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":zx(r,f,m))+(o?"":MM(r,p,d,g,S)):Ov(a,(s?"":v)+(i?"":AM(f,!s,m))+(o?"":DM(p,d,g,S)),e)}}function Jd(r,t,e,a,n,i){if(r){var o=Bx(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function CM(r){return{html:xM[r],richText:bM[r]}}function Ov(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=Nx(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function AM(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Lt(r)+"</span>"}function DM(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=G(r)?r:[r],'<span style="'+i+";"+a+'">'+U(r,function(o){return Lt(o)}).join(" ")+"</span>"}function zx(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function MM(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(" "):t,i)}function Gx(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return rn(a)}function Fx(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var zu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=v_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=pD({color:e,type:t,renderMode:a,markerId:n});return X(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};G(e)?T(e,function(i){return H(a,i)}):H(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function Hx(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=G(s),u=Gx(t,e),c,v,f,h;if(o>1||l&&!o){var p=IM(s,t,e,i,u);c=p.inlineValues,v=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);
7h=c=Kn(n,e,i[0]),v=d.type}else h=c=l?s[0]:s;var g=Qf(t),y=g&&t.name||"",m=n.getName(e),S=a?y:m;return tt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[tt("nameValue",{markerType:"item",markerColor:u,name:S,noName:!si(S),value:c,valueType:v,dataIndex:e})].concat(f||[])})}function IM(r,t,e,a,n){var i=t.getData(),o=Zn(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?T(a,function(v){c(Kn(i,e,v),v)}):T(r,c);function c(v,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(tt("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 Xr=ve();function os(r,t){return r.getName(t)||r.getId(t)}var tl="__universalTransitionEnabled",ke=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=oo({count:PM,reset:kM}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Xr(this).sourceManager=new Ex(this);i.prepareSource();var o=this.getInitialData(e,n);eg(o,this),this.dataTask.context.data=o,Xr(this).dataBeforeProcessed=o,Qd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=So(this),i=n?cn(e):{},o=this.subType;pe.hasClass(o)&&(o+="Series"),he(e,a.getTheme().get(this.subType)),he(e,this.getDefaultOption()),qa(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&mr(e,i,n)},t.prototype.mergeOption=function(e,a){e=he(this.option,e,!0),this.fillDataTextStyle(e.data);var n=So(this);
7n&&mr(this.option,e,n);var i=Xr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);eg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Xr(this).dataBeforeProcessed=o,Qd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ot(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&qa(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Bv(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Xr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Bv(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Xr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Xr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Xr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var c=[],v=1/0,f=-1,h=0;return o.each(a,function(p,d){var g=l.dataToCoord(p),y=u-g,m=Math.abs(y);m<=i&&((m<v||m===v&&y>=0&&f<0)&&(v=m,f=y,h=0),y===f&&(c[h++]=d))}),c.length=h,c},t.prototype.formatTooltip=function(e,a,n){return Hx({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ye.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=Ch.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=os(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=at(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[os(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[tl])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ie(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var v=a[c],f=os(e,v);u[f]=!0,this._selectedDataIndicesMap[f]=e.getRawIndex(v)}}else if(s==="single"||s===!0){var h=a[l-1],f=os(e,h);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(i={},i[f]=e.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return pe.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(pe);ft(ke,uu);ft(ke,Ch);x_(ke,pe);function Qd(r){var t=r.name;Qf(r)||(r.name=LM(r)||t)}function LM(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return T(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function PM(r){return r.model.getRawData().count()}function kM(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),RM}function RM(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function eg(r,t){T(co(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,se(EM,t))})}function EM(r,t){var e=Bv(r);return e&&e.setOutputEnd((t||this).count()),t}function Bv(r){var t=(r.ecModel||{}
7).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var Ve=function(){function r(){this.group=new J,this.uid=di("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();th(Ve);eu(Ve);function gi(){var r=ve();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Wx=ve(),NM=gi(),Ie=function(){function r(){this.group=new J,this.uid=di("viewChart"),this.renderTask=oo({plan:OM,reset:BM}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&rg(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&rg(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){ya(this.group,t)},r.markUpdateMethod=function(t,e){Wx(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function tg(r,t,e){r&&go(r)&&(t==="emphasis"?Or:Br)(r,e)}function rg(r,t,e){var a=ja(r,t),n=t&&t.highlightKey!=null?kA(t.highlightKey):null;a!=null?T(Le(a),function(i){tg(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){tg(i,e,n)})}th(Ie);eu(Ie);function OM(r){return NM(r.model)}function BM(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&Wx(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),VM[l]}var VM={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},_l="\0__throttleOriginMethod",ag="\0__throttleRate",ng="\0__throttleType";function Ph(r,t,e){var a,n=0,i=0,o=null,s,l,u,c;t=t||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||t,g=c||e;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 yi(r,t,e,a){var n=r[t];if(n){var i=n[_l]||n,o=n[ng],s=n[ag];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=Ph(i,e,a==="debounce"),n[_l]=i,n[ng]=a,n[ag]=e}return n}}function xo(r,t){var e=r[t];e&&e[_l]&&(e.clear&&e.clear(),r[t]=e[_l])}var ig=ve(),og={itemStyle:Ja(W_,!0),lineStyle:Ja(H_,!0)},zM={lineStyle:"stroke",itemStyle:"fill"};function Ux(r,t){var e=r.visualStyleMapper||og[t];return e||(console.warn("Unknown style type '"+t+"'."),og.itemStyle)}function Yx(r,t){var e=r.visualDrawType||zM[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var GM={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Ux(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Yx(r,a),u=o[l],c=Q(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||v){var f=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=f,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?f:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var d=r.getDataParams(p),g=H({},o);g[l]=c(d),h.setItemVisual(p,"style",g)}}}},Ci=new de,FM={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Ux(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Ci.option=l[a];var u=n(Ci),c=o.ensureUniqueItemVisual(s,"style");H(c,u),Ci.option.decal&&(o.setItemVisual(s,"decal",Ci.option.decal),Ci.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},HM={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),ig(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=ig(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Yx(e,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");
7if(v){var f=i.ensureUniqueItemVisual(c,"style"),h=a.getName(u)||u+"",p=a.count();f[l]=e.getColorFromPalette(h,o,p)}})}})}},ss=Math.PI;function WM(r,t){t=t||{},oe(t,{text:"loading",textColor:N.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:N.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new J,a=new ye({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new _e({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ye({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Zf({shape:{startAngle:-ss/2,endAngle:-ss/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ss*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ss*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Zx=function(){function r(t,e,a,n){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=K();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;T(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";Pt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;T(t,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&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});
7function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),l=t.seriesType,u=t.getTargetSeries;t.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)||oo({plan:$M,reset:KM,count:jM}));h.context={model:v,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||oo({reset:UM});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=t.seriesType,c=t.getTargetSeries,v=!0,f=!1,h="";Pt(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,p):c?c(a,n).each(p):(v=!1,T(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(f=!0,oo({reset:YM,onDirty:XM})));y.context={model:d,overallProgress:v},y.agent=o,y.__block=v,i._pipe(d,y)}f&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Q(t)&&(t={overallReset:t,seriesType:JM(t)}),t.uid=di("stageHandler"),e&&(t.visualType=e),t},r}();function UM(r){r.overallReset(r.ecModel,r.api,r.payload)}function YM(r){return r.overallProgress&&ZM}function ZM(){this.agent.dirty(),this.getDownstream().dirty()}function XM(){this.agent&&this.agent.dirty()}function $M(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function KM(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Le(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?U(t,function(e,a){return Xx(a)}):qM}var qM=Xx(0);function Xx(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function jM(r){return r.data.count()}function JM(r){xl=null;try{r(bo,$x)}catch{}return xl}var bo={},$x={},xl;Kx(bo,Ah);Kx($x,Sx);bo.eachSeriesByType=bo.eachRawSeriesByType=function(r){xl=r};bo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(xl=r.subType)};function Kx(r,t){for(var e in t.prototype)r[e]=Mt}
7var j=N.darkColor,QM=j.background,Ai=function(){return{axisLine:{lineStyle:{color:j.axisLine}},splitLine:{lineStyle:{color:j.axisSplitLine}},splitArea:{areaStyle:{color:[j.backgroundTint,j.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:j.axisMinorSplitLine}},axisLabel:{color:j.axisLabel},axisName:{}}},sg={label:{color:j.secondary},itemStyle:{borderColor:j.borderTint},dividerLineStyle:{color:j.border}},qx={darkMode:!0,color:j.theme,backgroundColor:QM,axisPointer:{lineStyle:{color:j.border},crossStyle:{color:j.borderShade},label:{color:j.tertiary}},legend:{textStyle:{color:j.secondary},pageTextStyle:{color:j.tertiary}},textStyle:{color:j.secondary},title:{textStyle:{color:j.primary},subtextStyle:{color:j.quaternary}},toolbox:{iconStyle:{borderColor:j.accent50}},tooltip:{backgroundColor:j.neutral20,defaultBorderColor:j.border,textStyle:{color:j.tertiary}},dataZoom:{borderColor:j.accent10,textStyle:{color:j.tertiary},brushStyle:{color:j.backgroundTint},handleStyle:{color:j.neutral00,borderColor:j.accent20},moveHandleStyle:{color:j.accent40},emphasis:{handleStyle:{borderColor:j.accent50}},dataBackground:{lineStyle:{color:j.accent30},areaStyle:{color:j.accent20}},selectedDataBackground:{lineStyle:{color:j.accent50},areaStyle:{color:j.accent30}}},visualMap:{textStyle:{color:j.secondary},handleStyle:{borderColor:j.neutral30}},timeline:{lineStyle:{color:j.accent10},label:{color:j.tertiary},controlStyle:{color:j.accent30,borderColor:j.accent30}},calendar:{itemStyle:{color:j.neutral00,borderColor:j.neutral20},dayLabel:{color:j.tertiary},monthLabel:{color:j.secondary},yearLabel:{color:j.secondary}},matrix:{x:sg,y:sg,backgroundColor:{borderColor:j.axisLine},body:{itemStyle:{borderColor:j.borderTint}}},timeAxis:Ai(),logAxis:Ai(),valueAxis:Ai(),categoryAxis:Ai(),line:{symbol:"circle"},graph:{color:j.theme},gauge:{title:{color:j.secondary},axisLine:{lineStyle:{color:[[1,j.neutral05]]}},axisLabel:{color:j.axisLabel},detail:{color:j.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:j.background}},radar:function(){var r=Ai();return r.axisName={color:j.axisLabel},r.axisLine.lineStyle.color=j.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:j.neutral20,textStyle:{color:j.secondary}},emphasis:{itemStyle:{color:j.neutral30}}}},sunburst:{itemStyle:{borderColor:j.background}},map:{itemStyle:{borderColor:j.border,areaColor:j.neutral10},label:{color:j.tertiary},emphasis:{label:{color:j.primary},itemStyle:{areaColor:j.highlight}},select:{label:{color:j.primary},itemStyle:{areaColor:j.highlight}}},geo:{itemStyle:{borderColor:j.border,areaColor:j.neutral10},emphasis:{label:{color:j.primary},itemStyle:{areaColor:j.highlight}},select:{label:{color:j.primary},itemStyle:{color:j.highlight}}}};qx.categoryAxis.splitLine.show=!1;var eI=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(X(t)){var i=pr(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,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"&&(e.mainType=p,e[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(a[u]=l,c=!0),c||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function c(v,f,h,p){return v[h]==null||f[p||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Vv=["symbol","symbolSize","symbolRotate","symbolOffset"],lg=Vv.concat(["symbolKeepAspect"]),tI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Vv.length;o++){var s=Vv[o],l=r.get(s);Q(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(H({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=at(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}}},rI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<lg.length;s++){var l=lg[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function kh(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Yo(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function jx(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function Jx(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:e(i,n)}))})})}function xn(r,t,e,a,n){var i=r+t;e.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=ja(v,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:G(f)?v.getName(f[0]):v.getName(f),selected:X(l)?l:H({},l)})}})}function aI(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(xn("map","selectchanged",t,n,a),xn("pie","selectchanged",t,n,a)):a.fromAction==="select"?(xn("map","selected",t,n,a),xn("pie","selected",t,n,a)):a.fromAction==="unselect"&&(xn("map","unselected",t,n,a),xn("pie","unselected",t,n,a))})}function Fa(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var nI=Ne.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),iI=Ne.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),oI=Ne.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,v=Math.sin(u),f=Math.cos(u),h=o*.6,p=o*.7;r.moveTo(e-c,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+c-v*h,l+s+f*h,e,a-p,e,a),r.bezierCurveTo(e,a-p,e-c+v*h,l+s+f*h,e-c,l+s),r.closePath()}}),sI=Ne.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}
7),lI={line:ut,rect:ye,roundRect:ye,square:ye,circle:on,diamond:iI,pin:oI,arrow:sI,triangle:nI},uI={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},bl={};T(lI,function(r,t){bl[t]=new r});var cI=Ne.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=hv(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=bl[a];n||(a="rect",n=bl[a]),uI[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function vI(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||N.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function rt(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=k_(r.slice(8),new Se(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=yo(r.slice(7),{},new Se(t,e,a,n),o?"center":"cover"):l=new cI({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=vI,i&&l.setColor(i),l}function mi(r){return G(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function fn(r,t){if(r!=null)return G(r)||(r=[r,r]),[Y(r[0],t[0])||0,Y(ne(r[1],r[0]),t[1])||0]}var Gu=new rC,ug=new aC(100),cg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function qn(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Gu.delete(r);var i=Gu.get(r);if(i)return i;var o=oe(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Gu.set(r,s),r.dirty=!1,s;function l(u){for(var c=[e],v=!0,f=0;f<cg.length;++f){var h=o[cg[f]];if(h!=null&&!G(h)&&!X(h)&&!we(h)&&typeof h!="boolean"){v=!1;break}c.push(h)}var p;if(v){p=c.join(",")+(n?"-svg":"");var d=ug.get(p);d&&(n?u.svgElement=d:u.image=d)}var g=eb(o.dashArrayX),y=fI(o.dashArrayY),m=Qx(o.symbol),S=hI(g),_=tb(y),x=!n&&cl.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=A(),C;x&&(x.width=w.width*e,x.height=w.height*e,C=x.getContext("2d")),D(),v&&ug.put(p,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function A(){for(var M=1,L=0,I=S.length;L<I;++L)M=sd(M,S[L]);for(var R=1,L=0,I=m.length;L<I;++L)R=sd(R,m[L].length);M*=R;var k=_*S.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var M=0,L=0;L<y.length;++L)M+=y[L];if(M<=0)return;for(var I=-_,R=0,k=0,P=0;I<w.height;){if(R%2===0){for(var B=k/2%m.length,E=0,V=0,z=0;E<w.width*2;){for(var F=0,L=0;L<g[P].length;++L)F+=g[P][L];if(F<=0)break;if(V%2===0){var W=(1-o.symbolSize)*.5,q=E+g[P][V]*W,re=I+y[R]*W,ce=g[P][V]*o.symbolSize,Oe=y[R]*o.symbolSize,Ke=z/2%m[B].length;fe(q,re,ce,Oe,m[B][Ke])}E+=g[P][V],++z,++V,V===g[P].length&&(V=0)}++P,P===g.length&&(P=0)}I+=y[R],++k,++R,R===y.length&&(R=0)}function fe(le,Ce,Ae,Re,qe){var ze=n?1:e,Me=rt(qe,le*ze,Ce*ze,Ae*ze,Re*ze,o.color,o.symbolKeepAspect);if(n){var He=a.painter.renderOneToVNode(Me);He&&b.children.push(He)}else nC(C,Me)}}}}function Qx(r){if(!r||r.length===0)return[["rect"]];if(X(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!X(r[e])){t=!1;break}if(t)return Qx([r]);for(var a=[],e=0;e<r.length;++e)X(r[e])?a.push([r[e]]):a.push(r[e]);return a}function eb(r){if(!r||r.length===0)return[[0,0]];if(we(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!we(r[a])){e=!1;break}if(e)return eb([r]);for(var n=[],a=0;a<r.length;++a)if(we(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=U(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function fI(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(we(r)){var t=Math.ceil(r);return[t,t]}var e=U(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function hI(r){return U(r,function(t){return tb(t)})}function tb(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function pI(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=qn(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=qn(n,t)}}})}var jt=new li,rb={};function dI(r,t){rb[r]=t}function gI(r){return rb[r]}var ab={};function yI(r,t){ab[r]=t}function mI(r){return ab[r]}var SI=1,_I=800,xI=900,bI=1e3,wI=2e3,TI=5e3,nb=1e3,CI=1100,Rh=2e3,ib=3e3,AI=4e3,vu=4500,DI=4600,MI=5e3,II=6e3,ob=7e3,LI={PROCESSOR:{FILTER:bI,SERIES_FILTER:_I,STATISTIC:TI},VISUAL:{LAYOUT:nb,PROGRESSIVE_LAYOUT:CI,GLOBAL:Rh,CHART:ib,POST_CHART_LAYOUT:DI,COMPONENT:AI,BRUSH:MI,CHART_ITEM:vu,ARIA:II,DECAL:ob}},nt="__flagInMainProcess",ls="__mainProcessVersion",ht="__pendingUpdate",Fu="__needsUpdateStatus",vg=/^[a-zA-Z0-9_]+$/,Hu="__connectUpdateStatus",fg=0,PI=1,kI=2;
7function sb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return ub(this,r,t)}}function lb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ub(this,r,t)}}function ub(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),li.prototype[t].apply(r,e)}var cb=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(li),vb=cb.prototype;vb.on=lb("on");vb.off=lb("off");var Aa,Wu,us,Tr,cs,Uu,Yu,bn,wn,hg,pg,Zu,dg,vs,gg,fb,zt,yg,Tn,hb=function(r){O(t,r);function t(e,a,n){var i=r.call(this,new eI)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=e;var o="canvas",s="auto",l=!1;i[ls]=1,n.ssr&&iC(function(f){var h=ee(f),p=h.dataIndex;if(p!=null){var d=K();return d.set("series_index",h.seriesIndex),d.set("data_index",p),h.ssrType&&d.set("ssr_type",h.ssrType),d}});var u=i._zr=qp(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ne(n.useDirtyRect,l),useCoarsePointer:ne(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Ph(Z(u.flush,u),17),i._updateTheme(a),i._locale=tD(n.locale||U_),i._coordSysMgr=new Wo;var c=i._api=gg(i);function v(f,h){return f.__prio-h.__prio}
7return Tu(Tl,v),Tu(Fv,v),i._scheduler=new Zx(i,c,Fv,Tl),i._messageCenter=new cb,i._initEvents(),i.resize=Z(i.resize,i),u.animation.on("frame",i._onframe,i),hg(u,i),pg(u,i),ul(i),i}return t.prototype._onframe=function(){if(!this._disposed){yg(this);var e=this._scheduler;if(this[ht]){var a=this[ht].silent;this[nt]=!0,Tn(this);try{Aa(this),Tr.update.call(this,null,this[ht].updateParams)}catch(l){throw this[nt]=!1,this[ht]=null,l}this._zr.flush(),this[nt]=!1,this[ht]=null,bn.call(this,a),wn.call(this,a)}else if(e.unfinished){var n=SI,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Uu(this,i),e.performVisualTasks(i),vs(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[nt]){if(this._disposed){this.id;return}var i,o,s;if(ie(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[nt]=!0,Tn(this),!this._model||a){var l=new OD(this._api),u=this._theme,c=this._model=new Ah;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Hv);var v={seriesTransition:s,optionChanged:!0};if(n)this[ht]={silent:i,updateParams:v},this[nt]=!1,this.getZr().wakeUp();else{try{Aa(this),Tr.update.call(this,null,v)}catch(f){throw this[ht]=null,this[nt]=!1,f}this._ssr||this._zr.flush(),this[ht]=null,this[nt]=!1,bn.call(this,i),wn.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[nt]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[ht]&&(i==null&&(i=this[ht].silent),o=this[ht].updateParams,this[ht]=null),this[nt]=!0,Tn(this);try{this._updateTheme(e),n.setTheme(this._theme),Aa(this),Tr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[nt]=!1,s}this[nt]=!1,bn.call(this,i),wn.call(this,i)}}},t.prototype._updateTheme=function(e){X(e)&&(e=pb[e]),e&&(e=te(e),e&&xx(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ye.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return T(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;T(a,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(mg[n]){var l=s,u=s,c=-s,v=-s,f=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();T(so,function(S,_){if(S.group===n){var x=a?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(te(e)),b=S.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),c=o(b.right,c),v=o(b.bottom,v),f.push({dom:x,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,v*=h;var p=c-l,d=v-u,g=cl.createCanvas(),y=qp(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return T(f,function(S){var _=S.left-l,x=S.top-u;m+='<g transform="translate('+_+","+x+')">'+S.dom+"</g>"}
7),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new ye({shape:{x:0,y:0,width:p,height:d},style:{fill:e.connectedBackgroundColor}})),T(f,function(S){var _=new Kt({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});y.add(_)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return cs(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return cs(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return cs(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Hn(n,e);return T(o,function(s,l){l.indexOf("Models")>=0&&T(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},t.prototype.getVisual=function(e,a){var n=this._model,i=Hn(n,e,{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?kh(s,l,a):Yo(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(RI,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,c=n==="globalout";if(c?u={}:l&&Fa(l,function(d){var g=ee(d);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=H({},g.eventData),!0},!0),u){var v=u.componentType,f=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",f=u.seriesIndex);var h=v&&f!=null&&s.getComponent(v,f),p=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:p},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;T(Gv,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),aI(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&m_(this.getDom(),Nh,"");var a=this,n=a._api,i=a._model;T(a._componentsViews,function(o){o.dispose(i,n)}),T(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
7=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete so[a.id]},t.prototype.resize=function(e){if(!this[nt]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[ht]&&(i==null&&(i=this[ht].silent),n=!0,this[ht]=null),this[nt]=!0,Tn(this);try{n&&Aa(this),Tr.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[nt]=!1,o}this[nt]=!1,bn.call(this,i),wn.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(ie(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!Wv[e]){var n=Wv[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=H({},e);return a.type=zv[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(ie(a)||(a={silent:!!a}),!!wl[e.type]&&this._model){if(this[nt]){this._pendingActions.push(e);return}var n=a.silent;Yu.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ye.browser.weChat&&this._throttledZrFlush(),bn.call(this,n),wn.call(this,n)}},t.prototype.updateLabelLayout=function(){jt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Aa=function(v){var f=v._scheduler;f.restorePipelines(v._model),f.prepareStageTasks(),Wu(v,!0),Wu(v,!1),f.plan()},Wu=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(b,w){b!=="series"&&_(w)}):h.eachSeries(_);function _(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,A=!w&&g[C];if(!A){var D=pr(b.type),M=f?Ve.getClass(D.main,D.sub):Ie.getClass(D.sub);A=new M,A.init(h,m),g[C]=A,d.push(A),y.add(A.group)}b.__viewId=A.__id=C,A.__alive=!0,A.__model=b,A.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!f&&p.prepareView(A,b,h,m)}for(var S=0;S<d.length;){var x=d[S];x.__alive?S++:(!f&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),d.splice(S,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},us=function(v,f,h,p,d){var g=v._model;if(g.setUpdatePayload(h),!p){T([].concat(v._componentsViews).concat(v._chartsViews),x);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,_;S!=null&&(_=K(),T(Le(S),function(b){var w=it(b,null);w!=null&&_.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(yd(h))if(b instanceof ke)h.type===Ha&&!h.notBlur&&!b.get(["emphasis","disabled"])&&TA(b,h,v._api);else{var C=sh(b.mainType,b.componentIndex,h.name,v._api),A=C.focusSelf,D=C.dispatchers;h.type===Ha&&A&&!h.notBlur&&_v(b.mainType,b.componentIndex,v._api),D&&T(D,function(M){h.type===Ha?Or(M):Br(M)})}else bv(h)&&b instanceof ke&&(DA(b,h,v._api),dd(b),zt(v))},v),g&&g.eachComponent(m,function(b){var w=_&&_.get(b.id)!=null;w||x(v[p==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},v);function x(b){b&&b.__alive&&b[f]&&b[f](b.__model,g,v._api,h)}},Tr={prepareAndUpdate:function(v){Aa(this),Tr.update.call(this,v,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),Uu(this,h),g.update(h,p),a(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";d.setBackgroundColor(m);var S=h.get("darkMode");S!=null&&S!=="auto"&&d.setDarkMode(S),Zu(this,h,p,v,f),jt.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 _=S.updateTransform(m,h,p,v);_&&_.update&&d.push(S)}else d.push(S)}});var g=K();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)}),a(h),this._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),vs(this,h,p,v,{},g),jt.trigger("afterupdate",h,p)}},updateView:function(v){var f=this._model;f&&(f.setUpdatePayload(v),Ie.markUpdateMethod(v,"updateView"),a(f),this._scheduler.performVisualTasks(f,v,{setDirty:!0}),Zu(this,f,this._api,v,{}),jt.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()}),Ie.markUpdateMethod(v,"updateVisual"),a(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)}),jt.trigger("afterupdate",h,this._api))},updateLayout:function(v){Tr.update.call(this,v)}};function e(v,f,h,p,d){if(v._disposed){v.id;return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,S=Hn(g,h),_=0;_<y.length;_++){var x=y[_];if(x[f]&&(m=x[f](g,S,p,d))!=null)return m}}cs=e,Uu=function(v,f){var h=v._chartsMap,p=v._scheduler;f.eachSeries(function(d){p.updateStreamModes(d,h[d.__viewId])})},Yu=function(v,f){var h=this,p=this.getModel(),d=v.type,g=v.escapeConnect,y=wl[d],m=(y.update||"update").split(":"),S=m.pop(),_=m[0]!=null&&pr(m[0]);this[nt]=!0,Tn(this);var x=[v],b=!1;v.batch&&(b=!0,x=U(v.batch,function(P){return P=oe(H({},P),v),P.batch=null,P}));var w=[],C,A=[],D=y.nonRefinedEventType,M=bv(v),L=yd(v);if(L&&L_(this._api),T(x,function(P){var B=y.action(P,p,h._api);if(y.refineEvent?A.push(B):C=B,C=C||H({},P),C.type=D,w.push(C),L){var E=eh(v),V=E.queryOptionMap,z=E.mainTypeSpecified,F=z?V.keys()[0]:"series";us(h,S,P,F),zt(h)}else M?(us(h,S,P,"series"),zt(h)):_&&us(h,S,P,_.main,_.sub)}),S!=="none"&&!L&&!M&&!_)try{this[ht]?(Aa(this),Tr.update.call(this,v),this[ht]=null):Tr[S].call(this,v)}catch(P){throw this[nt]=!1,P}if(b?C={type:D,escapeConnect:g,batch:w}:C=w[0],this[nt]=!1,!f){var I=void 0;if(y.refineEvent){var R=y.refineEvent(A,v,p,this._api).eventContent;Pt(ie(R)),I=oe({type:y.refinedEventType},R),I.fromAction=v.type,I.fromActionPayload=v,I.escapeConnect=!0}var k=this._messageCenter;k.trigger(C.type,C),I&&k.trigger(I.type,I)}}
7,bn=function(v){for(var f=this._pendingActions;f.length;){var h=f.shift();Yu.call(this,h,v)}},wn=function(v){!v&&this.trigger("updated")},hg=function(v,f){v.on("rendered",function(h){f.trigger("rendered",h),v.animation.isFinished()&&!f[ht]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},pg=function(v,f){v.on("mouseover",function(h){var p=h.target,d=Fa(p,go);d&&(CA(d,h,f._api),zt(f))}).on("mouseout",function(h){var p=h.target,d=Fa(p,go);d&&(AA(d,h,f._api),zt(f))}).on("click",function(h){var p=h.target,d=Fa(p,function(m){return ee(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=ee(d);f._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function a(v){v.clearColorPalette(),v.eachSeries(function(f){f.clearColorPalette()})}function n(v){var f=[],h=[],p=!1;if(v.eachComponent(function(m,S){var _=S.get("zlevel")||0,x=S.get("z")||0,b=S.getZLevelKey();p=p||!!b,(m==="series"?h:f).push({zlevel:_,z:x,idx:S.componentIndex,type:m,key:b})}),p){var d=f.concat(h),g,y;Tu(d,function(m,S){return m.zlevel===S.zlevel?m.z-S.z:m.zlevel-S.zlevel}),T(d,function(m){var S=v.getComponent(m.type,m.idx),_=m.zlevel,x=m.key;g!=null&&(_=Math.max(g,_)),x?(_===g&&x!==y&&_++,y=x):y&&(_===g&&_++,y=""),g=_,S.setZLevel(_)})}}Zu=function(v,f,h,p,d){n(f),dg(v,f,h,p,d),T(v._chartsViews,function(g){g.__alive=!1}),vs(v,f,h,p,d),T(v._chartsViews,function(g){g.__alive||g.remove(f,h)})},dg=function(v,f,h,p,d,g){T(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,f,h,p),l(m,y),c(m,y)})},vs=function(v,f,h,p,d,g){var y=v._scheduler;d=H(d||{},{updatedSeries:f.getSeries()}),jt.trigger("series:beforeupdate",f,h,d);var m=!1;f.eachSeries(function(S){var _=v._chartsMap[S.__viewId];_.__alive=!0;var x=_.renderTask;y.updatePayload(x,p),u(S,_),g&&g.get(S.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),_.group.silent=!!S.get("silent"),s(S,_),dd(S)}),y.unfinished=m||y.unfinished,jt.trigger("series:layoutlabels",f,h,d),jt.trigger("series:transition",f,h,d),f.eachSeries(function(S){var _=v._chartsMap[S.__viewId];l(S,_),c(S,_)}),o(v,f),jt.trigger("series:afterupdate",f,h,d)},zt=function(v){v[Fu]=!0,v.getZr().wakeUp()},Tn=function(v){v[ls]=(v[ls]+1)%1e3},yg=function(v){v[Fu]&&(v.getZr().storage.traverse(function(f){Wn(f)||i(f)}),v[Fu]=!1)};function i(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===tu&&v.states.emphasis?f.push("emphasis"):v.hoverState===zo&&v.states.blur&&f.push("blur"),v.useStates(f)}function o(v,f){var h=v._zr,p=h.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>f.get("hoverLayerThreshold")&&!Ye.node&&!Ye.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 s(v,f){var h=v.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function l(v,f){if(!v.preventAutoZ){var h=tn(v);f.eachRendered(function(p){return nu(p,h.z,h.zlevel),!0})}}function u(v,f){f.eachRendered(function(h){if(!Wn(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(Wn(y))return;if(y instanceof Ne&&RA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var S=y.getTextContent(),_=y.getTextGuideLine();S&&(S.stateTransition=g),_&&(_.stateTransition=g)}y.__dirty&&i(y)}})}gg=function(v){return new(function(f){O(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){Or(p,d),zt(v)},h.prototype.leaveEmphasis=function(p,d){Br(p,d),zt(v)},h.prototype.enterBlur=function(p){A_(p),zt(v)},h.prototype.leaveBlur=function(p){oh(p),zt(v)},h.prototype.enterSelect=function(p){D_(p),zt(v)},h.prototype.leaveSelect=function(p){M_(p),zt(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.prototype.getMainProcessVersion=function(){return v[ls]},h}(Sx))(v)},fb=function(v){function f(h,p){for(var d=0;d<h.length;d++){var g=h[d];g[Hu]=p}}T(zv,function(h,p){v._messageCenter.on(p,function(d){if(mg[v.group]&&v[Hu]!==fg){if(d&&d.escapeConnect)return;var g=v.makeActionFromEvent(d),y=[];T(so,function(m){m!==v&&m.group===v.group&&y.push(m)}),f(y,fg),T(y,function(m){m[Hu]!==PI&&m.dispatchAction(g)}),f(y,kI)}})})}}(),t}(li),Eh=hb.prototype;Eh.on=sb("on");Eh.off=sb("off");Eh.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var RI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var wl={},zv={},Gv={},Fv=[],Hv=[],Tl=[],pb={},Wv={},so={},mg={},EI=+new Date-0,Nh="_echarts_instance_";function iH(r,t,e){{var a=NI(r);if(a)return a}var n=new hb(r,t,e);return n.id="ec_"+EI++,so[n.id]=n,m_(r,Nh,n.id),fb(n),jt.trigger("afterinit",n),n}function NI(r){return so[nA(r,Nh)]}function db(r,t){pb[r]=t}function gb(r){ge(Hv,r)<0&&Hv.push(r)}function yb(r,t){Bh(Fv,r,t,wI)}function OI(r){Oh("afterinit",r)}function BI(r){Oh("afterupdate",r)}function Oh(r,t){jt.on(r,t)}function xr(r,t,e){var a,n,i,o,s;Q(t)&&(e=t,t=""),ie(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRef
7inedEvent,e||(e=r.action),i=r.refineEvent):(a=r,n=t);function l(c){return c.toLowerCase()}n=l(n||a);var u=i?l(a):n;wl[a]||(Pt(vg.test(a)&&vg.test(n)),i&&Pt(n!==a),wl[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:i},Gv[n]=1,i&&s&&(Gv[u]=1),zv[u]=a)}function VI(r,t){Wo.register(r,t)}function zI(r,t){Bh(Tl,r,t,nb,"layout")}function hn(r,t){Bh(Tl,r,t,ib,"visual")}var Sg=[];function Bh(r,t,e,a,n){if((Q(t)||ie(t))&&(e=t,t=a),!(ge(Sg,e)>=0)){Sg.push(e);var i=Zx.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function mb(r,t){Wv[r]=t}function GI(r,t,e){var a=gI("registerMap");a&&a(r,t,e)}var FI=pM;hn(Rh,GM);hn(vu,FM);hn(vu,HM);hn(Rh,tI);hn(vu,rI);hn(ob,pI);gb(xx);yb(xI,$D);mb("default",WM);xr({type:Ha,event:Ha,update:Ha},Mt);xr({type:Ks,event:Ks,update:Ks},Mt);xr({type:hl,event:nh,update:hl,action:Mt,refineEvent:Vh,publishNonRefinedEvent:!0});xr({type:mv,event:nh,update:mv,action:Mt,refineEvent:Vh,publishNonRefinedEvent:!0});xr({type:pl,event:nh,update:pl,action:Mt,refineEvent:Vh,publishNonRefinedEvent:!0});function Vh(r,t,e,a){return{eventContent:{selected:MA(e),isFromClick:t.isFromClick||!1}}}db("default",{});db("dark",qx);var _g=[],HI={registerPreprocessor:gb,registerProcessor:yb,registerPostInit:OI,registerPostUpdate:BI,registerUpdateLifecycle:Oh,registerAction:xr,registerCoordinateSystem:VI,registerLayout:zI,registerVisual:hn,registerTransform:FI,registerLoading:mb,registerMap:GI,registerImpl:dI,PRIORITY:LI,ComponentModel:pe,ComponentView:Ve,SeriesModel:ke,ChartView:Ie,registerComponentModel:function(r){pe.registerClass(r)},registerComponentView:function(r){Ve.registerClass(r)},registerSeriesModel:function(r){ke.registerClass(r)},registerChartView:function(r){Ie.registerClass(r)},registerCustomSeries:function(r,t){yI(r,t)},registerSubTypeDefaulter:function(r,t){pe.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){oC(r,t)}};function ue(r){if(G(r)){T(r,function(t){ue(t)});return}ge(_g,r)>=0||(_g.push(r),Q(r)&&(r={install:r}),r.install(HI))}function Di(r){return r==null?0:r.length||1}function xg(r){return r}var Vr=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||xg,this._newKeyGetter=n||xg,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Di(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],c=n[l],v=Di(u),f=Di(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(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Di(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Di(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),WI=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function UI(r,t){var e={},a=e.encode={},n=K(),i=[],o=[],s={};T(r.dimensions,function(f){var h=r.getDimensionInfo(f),p=h.coordDim;if(p){var d=h.coordDimIndex;Xu(a,p)[d]=f,h.isExtraCoord||(n.set(p,1),YI(h.type)&&(i[0]=f),Xu(s,p)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(f)}fx.each(function(g,y){var m=Xu(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)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=U(l,function(f){return r.getDimensionInfo(f).storeDimIndex}),e.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,e.userOutput=new WI(s,t),e}function Xu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Cl(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function YI(r){return!(r==="ordinal"||r==="time")}var rl=function(){function r(t){this.otherDims={},t!=null&&H(this,t)}return r}(),ZI=ve(),XI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Sb=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=bb(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ne(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=wx(this.source),a=!wb(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=e?v.name:null,u=v.type,c=v.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=e?f.name:null,u=f.type)}i.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=XI[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 t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function _b(r){return r instanceof Sb}function xb(r){for(var t=K(),e=0;e<(r||[]).length;
7e++){var a=r[e],n=ie(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function bb(r){var t=ZI(r);return t.dimNameMap||(t.dimNameMap=xb(r.dimensionsDefine))}function wb(r){return r>30}var Mi=ie,$r=U,$I=typeof Int32Array>"u"?Array:Int32Array,KI="e\0\0",bg=-1,qI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],jI=["_approximateExtent"],wg,fs,Ii,Li,$u,Pi,Ku,Ct=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;_b(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var v=a[c],f=X(v)?new rl({name:v}):v instanceof rl?v:new rl(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]=[]);var d=c;we(f.storeDimIndex)&&(d=f.storeDimIndex),p.itemName===0&&(this._nameDimIdx=d),p.itemId===0&&(this._idDimIdx=d),n&&(f.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=K();T(o,function(y){g.set(i[y].storeDimIndex,y)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(we(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Ev&&(i=t),!i){var o=this.dimensions,s=Dh(t)||oi(t)?new Tx(t,o.length):t;i=new Ev;var l=$r(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=UI(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&Ku(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==sa&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>
7=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Bt;if(l&&!n.pure)for(var u=[],c=t;c<e;c++){var v=n.getItem(c,u);if(!this.hasItemOption&&YC(v)&&(this.hasItemOption=!0),v){var f=v.name;i[c]==null&&f!=null&&(i[c]=it(f,null));var h=v.id;o[c]==null&&h!=null&&(o[c]=it(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)Ku(this,c);wg(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Mi(t)?H(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Ii(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return fs(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return G(t)?n.getValues($r(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?bg:n},r.prototype.each=function(t,e,a){Q(t)&&(a=e,e=t,t=[]);var n=a||this,i=$r(Li(t),this._getStoreDimIndex,this);this._store.each(i,n?Z(e,n):e)},r.prototype.filterSelf=function(t,e,a){Q(t)&&(a=e,e=t,t=[]);var n=a||this,i=$r(Li(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Z(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=at(t);return T(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){Q(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=$r(Li(t),this._getStoreDimIndex,this),s=Pi(this);return s._store=this._store.map(o,i?Z(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=$r(Li(t),this._getStoreDimIndex,this);this._store.modify(o,i?Z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Pi(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=Pi(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=Pi(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new de(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;
7return new Vr(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return fs(t,a)},function(a){return fs(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Mi(t)?H(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),G(i)?i=i.slice():Mi(i)&&(i=H({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Mi(e)?H(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Mi(t)?H(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?H(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;yv(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:$r(this.dimensions,this._getDimInfo,this),this.hostModel)),$u(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];Q(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(sC(arguments)))})},r.internalField=function(){wg=function(t){var e=t._invertedIndicesMap;T(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new $I(o.categories.length);for(var l=0;l<a.length;l++)a[l]=bg;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Ii=function(t,e,a){return it(t._getCategory(e,a),null)},fs=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Ii(t,t._idDimIdx,e)),a==null&&(a=KI+e),a},Li=function(t){return G(t)||(t=t!=null?[t]:[]),t},Pi=function(t){var e=new r(t._schema?t._schema:$r(t.dimensions,t._getDimInfo,t),t.hostModel);return $u(e,t),e},$u=function(t,e){T(qI.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,T(jI,function(a){t[a]=te(e[a])}),t._calculationInfo=H({},e._calculationInfo)},Ku=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=Ii(t,i,e)),l==null&&o!=null&&(n[e]=l=Ii(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),n[e]=l}}}(),r}();function Zo(r,t){Dh(r)||(r=Mh(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=K(),i=[],o=QI(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&wb(o),l=a===r.dimensionsDefine,u=l?bb(r):xb(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var v=K(c),f=new kx(o),h=0;h<f.length;h++)f[h]=-1;function p(A){var D=f[A];if(D<0){var M=a[A],L=ie(M)?M:{name:M},I=new rl,R=L.name;R!=null&&u.get(R)!=null&&(I.name=I.displayName=R),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var k=i.length;return f[A]=k,I.storeDimIndex=A,i.push(I),I}return i[D]}if(!s)for(var h=0;h<o;h++)p(h);v.each(function(A,D){var M=Le(A).slice();if(M.length===1&&!X(M[0])&&M[0]<0){v.set(D,!1);return}var L=v.set(D,[]);T(M,function(I,R){var k=X(I)?u.get(I):I;k!=null&&k<o&&(L[R]=k,g(p(k),D,R))})});var d=0;T(e,function(A){var D,M,L,I;if(X(A))D=A,I={};else{I=A,D=I.name;var R=I.ordinalMeta;I.ordinalMeta=null,I=H({},I),I.ordinalMeta=R,M=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var k=v.get(D);if(k!==!1){if(k=Le(k),!k.length)for(var P=0;P<(M&&M.length||1);P++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&k.push(d++)}T(k,function(B,E){var V=p(B);if(l&&I.type!=null&&(V.type=I.type),g(oe(V,I),D,E),V.name==null&&M){var z=M[E];!ie(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}L&&oe(V.otherDims,L)})}});function g(A,D,M){fx.get(D)!=null?A.otherDims[D]=M:(A.coordDim=D,A.coordDimIndex=M,n.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,S=m!=null;m=y?m||1:0;var _=y||"value";
7function x(A){A.name==null&&(A.name=A.coordDim)}if(s)T(i,function(A){x(A)}),i.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var w=p(b),C=w.coordDim;C==null&&(w.coordDim=eL(_,n,S),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(gx(r,b)===dt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return JI(i),new Sb({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function JI(r){for(var t=K(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function QI(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return T(t,function(i){var o;ie(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function eL(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var tL=function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r}();function rL(r){var t=r.get("coordinateSystem"),e=new tL(t),a=aL[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var aL={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ue).models[0],i=r.getReferringComponents("yAxis",Ue).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Cn(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Cn(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ue).models[0];t.coordSysDims=["single"],e.set("single",n),Cn(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ue).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Cn(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Cn(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Cn(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",Ue).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function Cn(r){return r.get("type")==="category"}function nL(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;iL(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,v,f;if(T(i,function(m,S){X(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;T(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 iL(r){return!_b(r.schema)}function fa(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Tb(r,t){return fa(r,t)?r.getCalculationInfo("stackResultDimension"):t}function oL(r,t){var e=r.get("coordinateSystem"),a=Wo.get(e),n;return t&&t.coordSysDims&&(n=U(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Cl(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function sL(r,t,e){var a,n;return e&&T(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function Ur(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=Mh(r)):(n=a.getSource(),i=n.sourceFormat===Bt);var o=rL(t),s=oL(t,o),l=e.useEncodeDefaulter,u=Q(l)?l:l?se(dx,s,t):null,c={co
7ordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Zo(n,c),f=sL(v.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),p=nL(t,{schema:v,store:h}),d=new Ct(v,t);d.setCalculationInfo(p);var g=f!=null&&lL(n)?function(y,m,S,_){return _===f?S:this.defaultDimValueGetter(y,m,S,_)}:null;return d.hasItemOption=!1,d.initData(i?n:h,null,g),d}function lL(r){if(r.sourceFormat===Bt){var t=uL(r.data||[]);return!G(ci(t))}}function uL(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function Uv(r){return r.type==="interval"||r.type==="log"}function cL(r,t,e,a,n){var i={},o=i.interval=u_(t/e);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=wo(o),l=i.niceTickExtent=[Je(Math.ceil(r[0]/o)*o,s),Je(Math.floor(r[1]/o)*o,s)];return vL(l,r),i}function qu(r){var t=Math.pow(10,Jf(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Je(e*t)}function wo(r){return hr(r)+2}function Tg(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function vL(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Tg(r,0,t),Tg(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function zh(r,t){return r>=t[0]&&r<=t[1]}var fL=function(){function r(){this.normalize=Cg,this.scale=Ag}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Z(t.normalize,t),this.scale=Z(t.scale,t)):(this.normalize=Cg,this.scale=Ag)},r}();function Cg(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ag(r,t){return r*(t[1]-t[0])+t[0]}function Yv(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var Sa=function(){function r(t){this._calculator=new fL,this._setting=t||{},this._extent=[1/0,-1/0];var e=Qe();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=Qe();e&&this._innerSetBreak(e.parseAxisBreakOption(t,Z(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();eu(Sa);var hL=0,To=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++hL,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&U(a,pL);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!X(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function pL(r){return ie(r)&&r.value!=null?r.value:r+""}var jn=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new To({})),G(n)&&(n=new To({categories:U(n,function(i){return ie(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:X(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return zh(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Sa);Sa.registerClass(jn);var Kr=Je,zr=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return zh(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=wo(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Qe(),l=[];
7if(!a)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]<i[0]&&(e.expandToNicedExtent?l.push({value:Kr(i[0]-a,o)}):l.push({value:n[0]}));for(var c=function(p,d){return Math.round((d-p)/a)},v=i[0];v<=i[1];){if(l.push({value:v}),v=Kr(v+a,o),this._brkCtx){var f=this._brkCtx.calcNiceTickMultiple(v,c);f>=0&&(v=Kr(v+f*a,o))}if(l.length>0&&v===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(e.expandToNicedExtent?l.push({value:Kr(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(p){return p.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,c=[],v=s.value-l.value,f=v/e,h=wo(f);u<e-1;){var p=Kr(l.value+(u+1)*f,h);p>i[0]&&p<i[1]&&c.push(p),u++}var d=Qe();d&&d.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(g){return g},this._interval,i),n.push(c)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=hr(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Kr(e.value,n,!0);return Q_(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=cL(i,o,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(a[0]=Kr(Math.floor(a[0]/o)*o,s)),e.fixMax||(a[1]=Kr(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(Sa);Sa.registerClass(zr);var Cb=typeof Float32Array<"u",dL=Cb?Float32Array:Array;function dr(r){return G(r)?Cb?new Float32Array(r):r:new dL(r)}var Zv="__ec_stack_";function Ab(r){return r.get("stack")||Zv+r.seriesIndex}function Gh(r){return r.dim+r.index}function gL(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(oe({bandWidth:n,axisKey:a,stackId:Zv+i},r));for(var o=Ib(t),s=[],i=0;i<r.count;i++){var l=o[a][Zv+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Db(r,t){var e=[];return t.eachSeriesByType(r,function(a){kb(a)&&e.push(a)}),e}function yL(r){var t={};T(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);t[f]?t[f].push(y):t[f]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function Mb(r){var t=yL(r),e=[];return T(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),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=Y(a.get("barWidth"),s),d=Y(a.get("barMaxWidth"),s),g=Y(a.get("barMinWidth")||(Rb(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),S=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:S,axisKey:Gh(i),stackId:Ab(a)})}),Ib(e)}function Ib(r){var t={};T(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var 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 e={};return T(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=at(i).length;s=Math.max(35-l*4,15)+"%"}var u=Y(s,o),c=Y(a.gap,1),v=a.remainedWidth,f=a.autoWidthCount,h=(v-u)/(f+(f-1)*c);h=Math.max(h,0),T(i,function(y){var m=y.maxWidth,S=y.minWidth;
7if(y.width){var _=y.width;m&&(_=Math.min(_,m)),S&&(_=Math.max(_,S)),y.width=_,v-=_+c*_,f--}else{var _=h;m&&m<_&&(_=Math.min(m,v)),S&&S>_&&(_=S),_!==h&&(y.width=_,v-=_+c*_,f--)}}),h=(v-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,d;T(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;T(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),e}function mL(r,t,e){if(r&&t){var a=r[Gh(t)];return a}}function Lb(r,t){var e=Db(r,t),a=Mb(e);T(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Ab(n),u=a[Gh(s)][l],c=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:v})})}function Pb(r){return{seriesType:r,plan:gi(),reset:function(t){if(kb(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),v=fa(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=SL(n,i),p=Rb(t),d=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(S,_){for(var x=S.count,b=p&&dr(x*3),w=p&&l&&dr(x*3),C=p&&dr(x),A=a.master.getRect(),D=f?A.width:A.height,M,L=_.getStore(),I=0;(M=S.next())!=null;){var R=L.get(v?g:o,M),k=L.get(s,M),P=h,B=void 0;v&&(B=+R-L.get(o,M));var E=void 0,V=void 0,z=void 0,F=void 0;if(f){var W=a.dataToPoint([R,k]);if(v){var q=a.dataToPoint([B,k]);P=q[0]}E=P,V=W[1]+m,z=W[0]-P,F=y,Math.abs(z)<d&&(z=(z<0?-1:1)*d)}else{var W=a.dataToPoint([k,R]);if(v){var q=a.dataToPoint([k,B]);P=q[1]}E=W[0]+m,V=P,z=y,F=W[1]-P,Math.abs(F)<d&&(F=(F<=0?-1:1)*d)}p?(b[I]=E,b[I+1]=V,b[I+2]=f?z:F,w&&(w[I]=f?A.x:E,w[I+1]=f?V:A.y,w[I+2]=D),C[M]=M):_.setItemLayout(M,{x:E,y:V,width:z,height:F}),I+=3}p&&_.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:f})}}}}}}function kb(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Rb(r){return r.pipelineContext&&r.pipelineContext.large}function SL(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var _L=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;
7r[n][1]<t?e=n+1:a=n}return e},Fh=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return ou(e.value,Ad[cD(io(this._minLevelUnit))]||Ad.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return vD(e,a,n,o,i)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=Qe(),o=[];if(!a)return o;var s=this.getSetting("useUTC");if(i&&e.breakTicks==="only_break")return Qe().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var l=Fn(n[1],s);o.push({value:n[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=DL(this._minLevelUnit,this._approxInterval,s,n,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var c=Fn(n[1],s);o.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var v=this.getSetting("useUTC"),f=kt.length-1,h=0;return T(o,function(p){f=Math.min(f,ge(kt,p.time.upperTimeUnit)),h=Math.max(h,p.time.level)}),i&&Qe().pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(p){return p.value},this._approxInterval,this._extent),i&&e.breakTicks!=="none"&&Qe().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(p){for(var d=Math.max(ge(kt,Fn(p.vmin,v)),ge(kt,Fn(p.vmax,v))),g=0,y=0;y<kt.length;y++)if(!Eb(kt[y],p.vmin,p.vmax,v)){g=y;break}var m=Math.min(g,f),S=Math.max(m,d);return{level:h,lowerTimeUnit:kt[S],upperTimeUnit:kt[m]}}),o},t.prototype.calcNiceExtent=function(e){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=Yt,a[1]+=Yt),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]-Yt}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=hs.length,s=Math.min(_L(hs,this._approxInterval,0,o),o-1);this._interval=hs[s][1],this._intervalPrecision=wo(this._interval),this._minLevelUnit=hs[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return we(e)?e:+ln(e)},t.prototype.contain=function(e){return zh(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(zr),hs=[["second",ph],["minute",dh],["hour",no],["quarter-day",no*6],["half-day",no*12],["day",Yt*1.2],["half-week",Yt*3.5],["week",Yt*7],["month",Yt*31],["quarter",Yt*95],["half-year",Cd/2],["year",Cd]];function Eb(r,t,e,a){return Mv(new Date(t),r,a).getTime()===Mv(new Date(e),r,a).getTime()}function xL(r,t){return r/=Yt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function bL(r){var t=30*Yt;return r/=t,r>6?6:r>3?3:r>2?2:1}function wL(r){return r/=no,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Dg(r,t){return r/=t?dh:ph,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function TL(r){return u_(r)}function CL(r,t,e){var a=Math.max(0,ge(kt,t)-1);return Mv(new Date(r),kt[a],e).getTime()}function AL(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function DL(r,t,e,a,n,i){var o=1e4,s=oD,l=0;function u(I,R,k,P,B,E,V){for(var z=AL(B,I),F=R,W=new Date(F);F<k&&F<=a[1]&&(V.push({value:F}),!(l++>o));)if(W[B](W[P]()+I),F=W.getTime(),i){var q=i.calcNiceTickMultiple(F,z);q>0&&(W[B](W[P]()+q*I),F=W.getTime())}V.push({value:F,notAdd:!0})}function c(I,R,k){var P=[],B=!R.length;if(!Eb(io(I),a[0],a[1],e)){B&&(R=[{value:CL(a[0],I,e)},{value:a[1]}]);for(var E=0;E<R.length-1;E++){var V=R[E].value,z=R[E+1].value;if(V!==z){var F=void 0,W=void 0,q=void 0,re=!1;switch(I){case"year":F=Math.max(1,Math.round(t/Yt/365)),W=Z_(e),q=fD(e);break;case"half-year":case"quarter":case"month":F=bL(t),W=gh(e),q=X_(e);break;case"week":case"half-week":case"day":F=xL(t),W=yh(e),q=$_(e),re=!0;break;case"half-day":case"quarter-day":case"hour":F=wL(t),W=mh(e),q=K_(e);break;case"minute":F=Dg(t,!0),W=Sh(e),q=q_(e);break;case"second":F=Dg(t,!1),W=_h(e),q=j_(e);break;case"millisecond":F=TL(t),W=xh(e),q=J_(e);break}z>=a[0]&&V<=a[1]&&u(F,V,z,W,q,re,P),I==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-F})}}for(var E=0;E<P.length;E++)k.push(P[E])}}for(var v=[],f=[],h=0,p=0,d=0;d<s.length;++d){var g=io(s[d]);
7if(uD(s[d])){c(s[d],v[v.length-1]||[],f);var y=s[d+1]?io(s[d+1]):null;if(g!==y){if(f.length){p=h,f.sort(function(I,R){return I.value-R.value});for(var m=[],S=0;S<f.length;++S){var _=f[S].value;(S===0||f[S-1].value!==_)&&(m.push(f[S]),_>=a[0]&&_<=a[1]&&h++)}var x=n/t;if(h>x*1.5&&p>x/1.5||(v.push(m),h>x||r===s[d]))break}f=[]}}}for(var b=De(U(v,function(I){return De(I,function(R){return R.value>=a[0]&&R.value<=a[1]&&!R.notAdd})}),function(I){return I.length>0}),w=[],C=b.length-1,d=0;d<b.length;++d)for(var A=b[d],D=0;D<A.length;++D){var M=Fn(A[D].value,e);w.push({value:A[D].value,time:{level:C-d,upperTimeUnit:M,lowerTimeUnit:M}})}w.sort(function(I,R){return I.value-R.value});for(var L=[],d=0;d<w.length;++d)(d===0||w[d].value!==w[d-1].value)&&L.push(w[d]);return L}Sa.registerClass(Fh);var Xv=Je,ML=Math.floor,IL=Math.ceil,ps=Math.pow,ds=Math.log,Nb=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new zr,e}return t.prototype.getTicks=function(e){e=e||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,e),o=this.base,s=this._originalScale._innerGetBreaks(),l=Qe();return U(i,function(u){var c=u.value,v=null,f=ps(o,c);c===a[0]&&this._fixMin?v=n[0]:c===a[1]&&this._fixMax&&(v=n[1]);var h;if(l){var p=l.getTicksLogTransformBreak(u,o,s,gs);h=p.vBreak,v==null&&(v=p.brkRoundingCriterion)}return v!=null&&(f=gs(f,v)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,a){this._originalScale.setExtent(e,a);var n=Yv(this.base,[e,a]);r.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,a=r.prototype.getExtent.call(this);a[0]=ps(e,a[0]),a[1]=ps(e,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=gs(a[0],n[0])),this._fixMax&&(a[1]=gs(a[1],n[1])),a},t.prototype.unionExtentFromData=function(e,a){this._originalScale.unionExtentFromData(e,a);var n=Yv(this.base,e.getApproximateExtent(a),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=FC(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Xv(IL(a[0]/i)*i),Xv(ML(a[1]/i)*i)];this._interval=i,this._intervalPrecision=wo(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=ds(e)/ds(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=ds(e)/ds(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),ps(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=Qe();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,Z(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(zr);function gs(r,t){return Xv(r,hr(t))}Sa.registerClass(Nb);var LL=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;Q(o)?this._modelMinNum=ys(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=ys(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(Q(s)?this._modelMaxNum=ys(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=ys(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=G(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Xn(u[0],1),Xn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var v=Tt(s)||Tt(l)||t&&!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(t,e){this[kL[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=PL[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),PL={min:"_determinedMin",max:"_determinedMax"},kL={min:"_dataMin",max:"_dataMax"};function Ob(r,t,e){var a=r.rawExtentInfo;return a||(a=new LL(r,t,e),r.rawExtentInfo=a,a)}function ys(r,t){return t==null?null:Tt(t)?NaN:r.parse(t)}
7function Bb(r,t){var e=r.type,a=Ob(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=Db("bar",o),l=!1;if(T(s,function(v){l=l||v.getBaseAxis()===t.axis}),l){var u=Mb(s),c=RL(n,i,t,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function RL(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=mL(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;T(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-r,v=1-(s+l)/i,f=c/v-c;return t+=f*(l/u),r-=f*(s/u),{min:r,max:t}}function Jn(r,t){var e=t,a=Bb(r,e),n=a.extent,i=e.get("splitNumber");r instanceof Nb&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(zb(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function fu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new jn({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Fh({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Sa.getClass(t)||zr)}}function EL(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Si(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=sD(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(X(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(Q(t)){if(r.type==="category")return function(n,i){return t(Al(r,n),n.value-r.scale.getExtent()[0],null)};var a=Qe();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(Al(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function Al(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Hh(r){var t=r.get("interval");return t??"auto"}function Vb(r){return r.type==="category"&&Hh(r.getLabelModel())===0}function Dl(r,t){var e={};return T(r.mapDimensionsAll(t),function(a){e[Tb(r,a)]=!0}),at(e)}function NL(r,t,e){t&&T(Dl(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}function Qn(r){return r==="middle"||r==="center"}function Co(r){return r.getShallow("show")}function zb(r){var t=r.get("breaks",!0);if(t!=null)return!Qe()||!OL(r.axis)?void 0:t}function OL(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Xo=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),BL=[];function ju(r,t){for(var e=0;e<r.length;e++)mt(r[e],r[e],t)}function Mg(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(e_(t,t,i),t_(e,e,i))}}function VL(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;t+=c,e+=(i+l)*c,a+=(o+u)*c,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Gb=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Ig=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Lg=function(){function r(t){this.type="linestring",this.points=t}return r}(),Fb=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return VL(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Mg(s.exterior,n,i,e):T(s.points,function(l){Mg(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new Se(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a}
7,t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ea(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if(Ea(u[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new Se(e,a,n,i),u=o.calculateTransform(l),c=this.geometries,v=0;v<c.length;v++){var f=c[v];f.type==="polygon"?(ju(f.exterior,u),T(f.interiors,function(h){ju(h,u)})):T(f.points,function(h){ju(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(Gb),zL=function(r){O(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Uf(BL),o=e;o&&!o.isGeoSVGGraphicRoot;)Oo(i,o.getLocalTransform(),i),o=o.parent;return Er(i,i),mt(n,n,i),n},t}(Gb);function GL(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return T(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Hb(s,o,e);break;case"Polygon":Ju(s,o,e);break;case"MultiLineString":Ju(s,o,e);break;case"MultiPolygon":T(s,function(l,u){return Ju(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Ju(r,t,e){for(var a=0;a<r.length;a++)r[a]=Hb(r[a],t[a],e)}function Hb(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function FL(r,t){return r=GL(r),U(De(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Ig(o[0],o.slice(1)));break;case"MultiPolygon":T(n.coordinates,function(l){l[0]&&i.push(new Ig(l[0],l.slice(1)))});break;case"LineString":i.push(new Lg([n.coordinates]));break;case"MultiLineString":i.push(new Lg(n.coordinates))}var s=new Fb(a[t||"name"],i,a.cp);return s.properties=a,s})}var HL=ve(),lo=ve(),ar={estimate:1,determine:2};function Ml(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function Wb(r,t){var e=U(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function WL(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Si(r),n=r.scale.getExtent(),i=Wb(r,e),o=De(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:U(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?YL(r,t):XL(r)}function UL(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=Wb(r,a);return{ticks:De(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?ZL(r,t):{ticks:U(r.scale.getTicks(e),function(o){return o.value})}}function YL(r,t){var e=r.getLabelModel(),a=Ub(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function Ub(r,t,e){var a=KL(r),n=Hh(t),i=e.kind===ar.estimate;if(!i){var o=Zb(a,n);if(o)return o}var s,l;Q(n)?s=Kb(r,n):(l=n==="auto"?qL(r,e):n,s=$b(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return $v(a,n,u),!0}):$v(a,n,u),u}function ZL(r,t){var e=$L(r),a=Hh(t),n=Zb(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Q(a))i=Kb(r,a,!0);else if(a==="auto"){var s=Ub(r,r.getLabelModel(),Ml(ar.determine));o=s.labelCategoryInterval,i=U(s.labels,function(l){return l.tickValue})}else o=a,i=$b(r,o,!0);return $v(e,a,{ticks:i,tickCategoryInterval:o})}function XL(r){var t=r.scale.getTicks(),e=Si(r);return{labels:U(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var $L=Yb("axisTick"),KL=Yb("axisLabel");function Yb(r){return function(e){return lo(e)[r]||(lo(e)[r]={list:[]})}}function Zb(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function $v(r,t,e){return r.list.push({key:t,value:e}),e}function qL(r,t){if(t.kind===ar.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return lo(r).autoInterval=e,!0}),e}var a=lo(r).autoInterval;return a??(lo(r).autoInterval=r.calculateCategoryInterval(t))}function jL(r,t){var e=t.kind,a=QL(r),n=Si(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var v=s[0],f=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(f*Math.cos(i)),p=Math.abs(f*Math.sin(i)),d=0,g=0;v<=s[1];v+=u){var y=0,m=0,S=Ql(n({value:v}),a.font,"center","top");y=S.width*1.3,m=S.height*1.3,d=Math.max(d,y,7),g=Math.max(g,m,7)}var _=d/h,x=g/p;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(_,x)));if(e===ar.estimate)return t.out.noPxChangeTryDetermine.push(Z(JL,null,r,b,l)),b;var w=Xb(r,b,l);return w??b}function JL(r,t,e){return Xb(r,t,e)==null}function Xb(r,t,e){var a=HL(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function QL(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function $b(r,t,e){var a=Si(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=n.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var v=Vb(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};
7s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function Kb(r,t,e){var a=r.scale,n=Si(r),i=[];return T(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Pg=[0,1],or=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return s_(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),kg(a,n.count())),Te(t,Pg,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),kg(a,n.count()));var i=Te(t,a,Pg,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=UL(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=U(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return e2(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=U(a,function(i){return U(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||Ml(ar.determine),WL(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||Ml(ar.determine),jL(this,t)},r}();function kg(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function e2(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;T(t,function(h){h.coord-=u/2,h.onBand=!0});var c=r.scale.getExtent();s=1+c[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:c[1]+1,onBand:!0},t.push(o)}var v=i[0]>i[1];f(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&f(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),f(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&f(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function f(h,p){return h=Je(h),p=Je(p),v?h>p:h<p}}var ki=Math.PI*2,Da=r_.CMD,t2=["top","right","bottom","left"];function r2(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function a2(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+r,v=s*e+t;if(Math.abs(a-n)%ki<1e-4)return l[0]=c,l[1]=v,u-e;if(i){var f=a;a=Mr(n),n=Mr(f)}else a=Mr(a),n=Mr(n);a>n&&(n+=ki);var h=Math.atan2(s,o);if(h<0&&(h+=ki),h>=a&&h<=n||h+ki>=a&&h+ki<=n)return l[0]=c,l[1]=v,u-e;var p=e*Math.cos(a)+r,d=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,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 Il(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,c=e-r,v=a-t,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]=t+p*v;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function qb(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var Jt=[];function n2(r,t,e){var a=qb(t.x,t.y,t.width,t.height,r.x,r.y,Jt);return e.set(Jt[0],Jt[1]),a}function i2(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,c=t.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 Da.M:i=c[h++],o=c[h++],a=i,n=o;break;case Da.L:d=Il(a,n,c[h],c[h+1],v,f,Jt,!0),a=c[h++],n=c[h++];break;case Da.C:d=uC(a,n,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],v,f,Jt),a=c[h++],n=c[h++];break;case Da.Q:d=lC(a,n,c[h++],c[h++],c[h],c[h+1],v,f,Jt),a=c[h++],n=c[h++];break;case Da.A:var g=c[h++],y=c[h++],m=c[h++],S=c[h++],_=c[h++],x=c[h++];h+=1;var b=!!(1-c[h++]);s=Math.cos(_)*m+g,l=Math.sin(_)*S+y,h<=1&&(i=s,o=l);var w=(v-g)*S/m+g;d=a2(g,y,S,_,_+x,b,w,f,Jt),a=Math.cos(_+x)*m+g,n=Math.sin(_+x)*S+y;break;case Da.R:i=a=c[h++],o=n=c[h++];var C=c[h++],A=c[h++];d=qb(i,o,C,A,v,f,Jt);break;case Da.Z:d=Il(a,n,i,o,v,f,Jt,!0),a=i,n=o;break}d<u&&(u=d,e.set(Jt[0],Jt[1]))}return u}var Qt=new me,Ee=new me,Xe=new me,gr=new me,vr=new me;function Rg(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{}
7,i=[[0,0],[0,0],[0,0]],o=n.candidates||t2,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),v=c&&Er([],c),f=t.get("length2")||0;u&&Xe.copy(u);for(var h=0;h<o.length;h++){var p=o[h];r2(p,0,s,Qt,gr),me.scaleAndAdd(Ee,Qt,gr,f),Ee.transform(v);var d=r.getBoundingRect(),g=u?u.distance(Ee):r instanceof Ne?i2(Ee,r.path,Xe):n2(Ee,d,Xe);g<l&&(l=g,Ee.transform(c),Xe.transform(c),Xe.toArray(i[0]),Ee.toArray(i[1]),Qt.toArray(i[2]))}jb(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Ll=[],wt=new me;function jb(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Qt.fromArray(r[0]),Ee.fromArray(r[1]),Xe.fromArray(r[2]),me.sub(gr,Qt,Ee),me.sub(vr,Xe,Ee);var e=gr.len(),a=vr.len();if(!(e<.001||a<.001)){gr.scale(1/e),vr.scale(1/a);var n=gr.dot(vr),i=Math.cos(t);if(i<n){var o=Il(Ee.x,Ee.y,Xe.x,Xe.y,Qt.x,Qt.y,Ll,!1);wt.fromArray(Ll),wt.scaleAndAdd(vr,o/Math.tan(Math.PI-t));var s=Xe.x!==Ee.x?(wt.x-Ee.x)/(Xe.x-Ee.x):(wt.y-Ee.y)/(Xe.y-Ee.y);if(isNaN(s))return;s<0?me.copy(wt,Ee):s>1&&me.copy(wt,Xe),wt.toArray(r[1])}}}}function o2(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Qt.fromArray(r[0]),Ee.fromArray(r[1]),Xe.fromArray(r[2]),me.sub(gr,Ee,Qt),me.sub(vr,Xe,Ee);var a=gr.len(),n=vr.len();if(!(a<.001||n<.001)){gr.scale(1/a),vr.scale(1/n);var i=gr.dot(t),o=Math.cos(e);if(i<o){var s=Il(Ee.x,Ee.y,Xe.x,Xe.y,Qt.x,Qt.y,Ll,!1);wt.fromArray(Ll);var l=Math.PI/2,u=Math.acos(vr.dot(t)),c=l+u-e;if(c>=l)me.copy(wt,Xe);else{wt.scaleAndAdd(vr,s/Math.tan(Math.PI/2-c));var v=Xe.x!==Ee.x?(wt.x-Ee.x)/(Xe.x-Ee.x):(wt.y-Ee.y)/(Xe.y-Ee.y);if(isNaN(v))return;v<0?me.copy(wt,Ee):v>1&&me.copy(wt,Xe)}wt.toArray(r[1])}}}}function Qu(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function s2(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=Va(a[0],a[1]),i=Va(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=Cu([],a[1],a[0],o/n),l=Cu([],a[1],a[2],o/i),u=Cu([],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 Wh(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<po.length;l++){var u=po[l],c=t[u],v=u==="normal";if(c){var f=c.get("show"),h=v?s:ne(n.states[u]&&n.states[u].ignore,s);if(h||!ne(f,o)){var p=v?a:a&&a.states[u];p&&(p.ignore=!0),a&&Qu(a,!0,u,c);continue}a||(a=new Dt,r.setTextGuideLine(a),!v&&(s||!o)&&Qu(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Qu(a,!1,u,c)}}if(a){oe(a.style,e),a.style.fill=null;var d=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,a.buildPath=s2}}function Uh(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<It.length;a++){var n=It[a];e[n]=r.getModel([n,t])}return e}var Eg=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],l2=1,Pl=2,Jb=l2|Pl;function kl(r,t,e){e=e||Jb,t?r.dirty|=e:r.dirty&=~e}function Qb(r,t){return t=t||Jb,r.dirty==null||!!(r.dirty&t)}function Sr(r){if(r)return Qb(r)&&e1(r,r.label,r),r}function e1(r,t,e){var a=t.getComputedTransform();r.transform=ch(r.transform,a);var n=r.localRect=mo(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,c=i.__marginType;c==null&&u&&(o=u,c=Gn.textMargin);for(var v=0;v<4;v++)ec[v]=c===Gn.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;c===Gn.textMargin&&en(n,ec,!1,!1);var f=r.rect=mo(r.rect,n);return a&&f.applyTransform(a),c===Gn.minMargin&&en(f,ec,!1,!1),r.axisAligned=uh(a),(r.label=r.label||{}).ignore=t.ignore,kl(r,!1),kl(r,!0,Pl),r}var ec=[0,0,0,0];function u2(r,t,e){return r.transform=ch(r.transform,e),r.localRect=mo(r.localRect,t),r.rect=mo(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=uh(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Kv(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var n=r.obb;
7n&&n.fromBoundingRect(r.localRect,e)}}function qv(r,t){for(var e=0;e<Eg.length;e++){var a=Eg[e];r[a]==null&&(r[a]=t[a])}return Sr(r)}function Ng(r){var t=r.obb;return(!t||Qb(r,Pl))&&(r.obb=t=t||new QS,t.fromBoundingRect(r.localRect,r.transform),kl(r,!1,Pl)),t}function jv(r,t,e,a,n){var i=r.length,o=ae[t],s=et[t];if(i<2)return!1;r.sort(function(w,C){return w.rect[o]-C.rect[o]});for(var l=0,u,c=!1,v=0;v<i;v++){var f=r[v],h=f.rect;u=h[o]-l,u<0&&(h[o]-=u,f.label[o]-=u,c=!0),l=h[o]+h[s]}var p=r[0],d=r[i-1],g,y;m(),g<0&&x(-g,.8),y<0&&x(y,.8),m(),S(g,y,1),S(y,g,-1),m(),g<0&&b(-g),y<0&&b(y);function m(){g=p.rect[o]-e,y=a-d.rect[o]-d.rect[s]}function S(w,C,A){if(w<0){var D=Math.min(C,-w);if(D>0){_(D*A,0,i);var M=D+w;M<0&&x(-M*A,1)}else x(-w*A,1)}}function _(w,C,A){w!==0&&(c=!0);for(var D=C;D<A;D++){var M=r[D],L=M.rect;L[o]+=w,M.label[o]+=w}}function x(w,C){for(var A=[],D=0,M=1;M<i;M++){var L=r[M-1].rect,I=Math.max(r[M].rect[o]-L[o]-L[s],0);A.push(I),D+=I}if(D){var R=Math.min(Math.abs(w)/D,C);if(w>0)for(var M=0;M<i-1;M++){var k=A[M]*R;_(k,0,M+1)}else for(var M=i-1;M>0;M--){var k=A[M-1]*R;_(-k,M,i)}}}function b(w){var C=w<0?-1:1;w=Math.abs(w);for(var A=Math.ceil(w/(i-1)),D=0;D<i-1;D++)if(C>0?_(A,0,D+1):_(-A,i-D-1,i),w-=A,w<=0)return}return c}function c2(r){for(var t=0;t<r.length;t++){var e=r[t],a=e.defaultAttr,n=e.labelLine;e.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function t1(r){var t=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function e(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=Sr(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(hu(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(n)}}}function hu(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:Ng(r).intersect(Ng(t),e,a)}function v2(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function f2(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:v2(a&&a.shape.points)}}var Og=["align","verticalAlign","width","height","fontSize"],xt=new Vn,tc=ve(),h2=ve();function ms(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Ss=["x","y","rotation"],p2=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();Se.applyTransform(c,c,u),u?xt.setLocalTransform(u):(xt.x=xt.y=xt.rotation=xt.originX=xt.originY=0,xt.scaleX=xt.scaleY=1),xt.rotation=Mr(xt.rotation);var v=n.__hostTarget,f;if(v){f=v.getBoundingRect().plain();var h=v.getComputedTransform();Se.applyTransform(f,f,h)}var p=f&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:a,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:xt.x,y:xt.y,scaleX:xt.scaleX,scaleY:xt.scaleY,rotation:xt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(Q(n)||at(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ee(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(S,_){return function(){Rg(S,_)}}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;Q(o.layoutOptionOrCb)?c=o.layoutOptionOrCb(f2(o,l)):c=o.layoutOptionOrCb,c=c||{},o.layoutOption=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||
70]});var f=!1;if(c.x!=null?(s.x=Y(c.x,e),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Y(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=tc(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<Og.length;d++){var g=Og[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(t){var e=t.getWidth(),a=t.getHeight(),n=[];T(this._labelList,function(l){l.defaultAttr.ignore||n.push(qv({},l))});var i=De(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=De(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});jv(i,0,0,e),jv(o,1,0,a);var s=De(n,function(l){return l.layoutOption.hideOverlap});c2(s),t1(s)},r.prototype.processLabelsOverall=function(){var t=this;T(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=tc(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=ee(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var v=s.getModel("labelLine");Wh(t,Uh(s),l),Rg(t,v)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Wn(t))){var i=tc(a),o=i.oldLayout,s=ee(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=e.getData(s.dataType);if(o){a.attr(o);var f=t.prevStates;f&&(ge(f,"select")>=0&&a.attr(i.oldLayoutSelect),ge(f,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),xe(a,u,e,l)}else if(a.attr(u),!pi(a).valueAnimation){var v=ne(a.style.opacity,1);a.style.opacity=0,Be(a,{style:{opacity:v}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};ms(h,u,Ss),ms(h,a.states.select,Ss)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};ms(p,u,Ss),ms(p,a.states.emphasis,Ss)}F_(a,l,c,e,e)}if(n&&!n.ignore&&!n.invisible){var i=h2(n),o=i.oldLayout,d={points:n.shape.points};o?(n.attr({shape:o}),xe(n,{shape:d},e)):(n.setShape(d),n.style.strokePercent=0,Be(n,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),rc=ve();function d2(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=rc(e).labelManager;n||(n=rc(e).labelManager=new p2),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=rc(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function g2(r){r.registerPainter("svg",cC)}function y2(r){r.registerPainter("canvas",vC)}var m2=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Ur(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new J,n=rt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=rt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=N.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ke);function ei(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Kn(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Kn(r,t,e[o]));return i.join(" ")}}function r1(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!G(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var $o=function(r){O(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=rt(e,-1,-1,2,2,null,s);l.attr({z2:ne(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=S2,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Or(this.childAt(0))},t.prototype.downplay=function(){Br(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),c=o!==this._symbolType,v=i&&i.disableAnimation;if(c){var f=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,f)}else{var h=this.childAt(0);h.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(p):xe(h,p,s,a),$t(h)}if(this._updateCommon(e,a,l,n,i),c){var h=this.childAt(0);if(!v){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Be(h,p,s,a)}}v&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.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||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.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=st(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var _=e.getItemVisual(a,"symbolRotate");
7s.attr("rotation",(_||0)*Math.PI/180||0);var x=fn(e.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof Kt){var C=s.style;s.useStyle(H({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(H({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(a,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;vt(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(k){return M?e.getName(k):ei(e,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=c;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*R,I.scaleY=this._sizeY*R,this.setSymbolScale(1),Ge(this,f,h,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=ee(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&va(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();va(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return mi(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(J);function S2(r,t){this.parent.drift(r,t)}function ac(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Bg(r){return r!=null&&!ie(r)&&(r={isIgnore:r}),r||{}}function Vg(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:st(t),cursorStyle:t.get("cursor")}}var Ko=function(){function r(t){this.group=new J,this._SymbolCtor=t||$o}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Bg(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Vg(t),u={disableAnimation:s},c=e.getSymbolPoint||function(v){return t.getItemLayout(v)};i||a.removeAll(),t.diff(i).add(function(v){var f=c(v);if(ac(t,f,v,e)){var h=new o(t,v,l,u);h.setPosition(f),t.setItemGraphicEl(v,h),a.add(h)}}).update(function(v,f){var h=i.getItemGraphicEl(f),p=c(v);if(!ac(t,p,v,e)){a.remove(h);return}var d=t.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==d)a.remove(h),h=new o(t,v,l,u),h.setPosition(p);else{h.updateData(t,v,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):xe(h,y,n)}a.add(h),t.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=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Vg(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Bg(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(ac(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){ya(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();function a1(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=_2(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,v=U(r.dimensions,function(p){return t.mapDimension(p)}),f=!1,h=t.getCalculationInfo("stackResultDimension");return fa(t,v[0])&&(f=!0,v[0]=h),fa(t,v[1])&&(f=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function _2(r,t){var e=0,a=r.scale.getExtent();
7return t==="start"?e=a[0]:t==="end"?e=a[1]:we(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function n1(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function x2(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function b2(r,t,e,a,n,i,o,s){for(var l=x2(r,t),u=[],c=[],v=[],f=[],h=[],p=[],d=[],g=a1(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],S=0;S<l.length;S++){var _=l[S],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=_.idx*2,w=_.idx1*2;var C=y[b],A=y[b+1],D=m[w],M=m[w+1];(isNaN(C)||isNaN(A))&&(C=D,A=M),u.push(C,A),c.push(D,M),v.push(e[b],e[b+1]),f.push(a[w],a[w+1]),d.push(t.getRawIndex(_.idx1));break;case"+":var L=_.idx,I=g.dataDimsForPoint,R=n.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);w=L*2,u.push(R[0],R[1]),c.push(m[w],m[w+1]);var k=n1(g,n,t,L);v.push(k[0],k[1]),f.push(a[w],a[w+1]),d.push(t.getRawIndex(L));break;case"-":x=!1}x&&(h.push(_),p.push(p.length))}p.sort(function(ce,Oe){return d[ce]-d[Oe]});for(var P=u.length,B=dr(P),E=dr(P),V=dr(P),z=dr(P),F=[],S=0;S<p.length;S++){var W=p[S],q=S*2,re=W*2;B[q]=u[re],B[q+1]=u[re+1],E[q]=c[re],E[q+1]=c[re+1],V[q]=v[re],V[q+1]=v[re+1],z[q]=f[re],z[q+1]=f[re+1],F[S]=h[W]}return{current:B,next:E,stackedOnCurrent:V,stackedOnNext:z,status:F}}var qr=Math.min,jr=Math.max;function Za(r,t){return isNaN(r)||isNaN(t)}function Jv(r,t,e,a,n,i,o,s,l){for(var u,c,v,f,h,p,d=e,g=0;g<a;g++){var y=t[d*2],m=t[d*2+1];if(d>=n||d<0)break;if(Za(y,m)){if(l){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](y,m),v=y,f=m;else{var S=y-u,_=m-c;if(S*S+_*_<.5){d+=i;continue}if(o>0){for(var x=d+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<a;)g++,x+=i,d+=i,b=t[x*2],w=t[x*2+1],y=t[d*2],m=t[d*2+1],S=y-u,_=m-c;var C=g+1;if(l)for(;Za(b,w)&&C<a;)C++,x+=i,b=t[x*2],w=t[x*2+1];var A=.5,D=0,M=0,L=void 0,I=void 0;if(C>=a||Za(b,w))h=y,p=m;else{D=b-u,M=w-c;var R=y-u,k=b-y,P=m-c,B=w-m,E=void 0,V=void 0;if(s==="x"){E=Math.abs(R),V=Math.abs(k);var z=D>0?1:-1;h=y-z*E*o,p=m,L=y+z*V*o,I=m}else if(s==="y"){E=Math.abs(P),V=Math.abs(B);var F=M>0?1:-1;h=y,p=m-F*E*o,L=y,I=m+F*V*o}else E=Math.sqrt(R*R+P*P),V=Math.sqrt(k*k+B*B),A=V/(V+E),h=y-D*o*(1-A),p=m-M*o*(1-A),L=y+D*o*A,I=m+M*o*A,L=qr(L,jr(b,y)),I=qr(I,jr(w,m)),L=jr(L,qr(b,y)),I=jr(I,qr(w,m)),D=L-y,M=I-m,h=y-D*E/V,p=m-M*E/V,h=qr(h,jr(u,y)),p=qr(p,jr(c,m)),h=jr(h,qr(u,y)),p=jr(p,qr(c,m)),D=y-h,M=m-p,L=y+D*V/E,I=m+M*V/E}r.bezierCurveTo(v,f,h,p,y,m),v=L,f=I}else r.lineTo(y,m)}u=y,c=m,d+=i}return g}var i1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),w2=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new i1},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Za(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Za(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Jv(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=r_.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?(e-s)/(h-s):(e-l)/(p-l),S<=1&&S>=0){var _=u?(p-l)*S+l:(h-s)*S+s;return u?[e,_]:[_,e]}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 x=u?jp(s,h,d,y,e,c):jp(l,p,g,m,e,c);if(x>0)for(var b=0;b<x;b++){var w=c[b];if(w<=1&&w>=0){var _=u?Jp(l,p,g,m,w):Jp(s,h,d,y,w);return u?[e,_]:[_,e]}}s=y,l=m;break}}},t}(Ne),T2=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(i1),o1=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new T2},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Za(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Za(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Jv(e,n,o,s,s,1,a.smooth,l,a.connectNulls);Jv(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Ne);function s1(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=e.get(["lineStyle","width"])||0;
7o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new ye({shape:{x:o,y:s,width:l,height:u}});if(t){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=Q(n)?function(g){n(g,v)}:null;Be(v,{shape:{width:l,height:u,x:o,y:s}},e,null,a,d)}return v}function l1(r,t,e){var a=r.getArea(),n=Je(a.r0,1),i=Je(a.r,1),o=new Et({shape:{cx:Je(r.cx,1),cy:Je(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Be(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function qo(r,t,e,a,n){if(r){if(r.type==="polar")return l1(r,t,e);if(r.type==="cartesian2d")return s1(r,t,e,a,n)}else return null;return null}function ha(r,t){return r.type===t}function zg(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Gg(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function Fg(r,t){var e=Gg(r),a=e[0],n=e[1],i=Gg(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Hg(r){return we(r)?r:r?.5:0}function C2(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=dr(a*2),i=0;i<a;i++){var o=n1(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Jr(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],v=[],f=[];if(n){for(l=0;l<r.length;l+=2){var h=t||r;!isNaN(h[l])&&!isNaN(h[l+1])&&f.push(r[l],r[l+1])}r=f}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=v[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var p=(c[o]+v[o])/2,d=[];u[o]=d[o]=p,u[1-o]=c[1-o],d[1-o]=v[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=c[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function A2(r,t){var e=[],a=r.length,n,i;function o(c,v,f){var h=c.coord,p=(f-h)/(v.coord-h),d=fC(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>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function D2(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.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=t.getAxis(n),u=U(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=A2(u,n==="x"?e.getWidth():e.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";T(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 Bo(0,0,0,0,f,!0);return m[n]=d,m[n+"2"]=g,m}}}function M2(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&I2(i,t))){var o=t.mapDimension(i.dim),s={};return T(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function I2(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if($o.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function L2(r,t){return isNaN(r)||isNaN(t)}function P2(r){for(var t=r.length/2;t>0&&L2(r[t*2-2],r[t*2-1]);t--);return t-1}function Wg(r,t){return[r[t*2],r[t*2+1]]}function k2(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function u1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<It.length;t++)if(r.get([It[t],"endLabel","show"]))return!0;return!1}function nc(r,t,e,a){if(ha(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=u1(a)?function(h,p){r._endLabelOnDuring(h,p,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),c=s1(t,e,a,function(){var h=r._endLabel;h&&e&&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 l1(t,e,a)}function R2(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var E2=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new J,a=new Ko;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=Z(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.getLayout("points")||[],v=i.type==="polar",f=this._coordSys,h=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!a.ssr&&e.get("animation"),m=!u.isEmpty(),S=u.get("origin"),_=a1(i,s,S),x=m&&C2(i,s,_),b=e.get("showSymbol"),w=e.get("
7connectNulls"),C=b&&!v&&M2(e,s,i),A=this._data;A&&A.eachItemGraphicEl(function(ce,Oe){ce.__temp&&(o.remove(ce),A.setItemGraphicEl(Oe,null))}),b||h.remove(),o.add(g);var D=v?!1:e.get("step"),M;i&&i.getArea&&e.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var L=D2(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&f.type===i.type&&D===this._step))b&&h.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(ce){return[c[ce*2],c[ce*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,M),D&&(x&&(x=Jr(x,c,i,D,w)),c=Jr(c,null,i,D,w)),p=this._newPolyline(c),m?d=this._newPolygon(c,x):d&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,rn(L)),g.setClipPath(nc(this,i,!0,e));else{m&&!d?d=this._newPolygon(c,x):d&&!m&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,rn(L));var I=g.getClipPath();if(I){var R=nc(this,i,!1,e);Be(I,{shape:R.shape},e)}else g.setClipPath(nc(this,i,!0,e));b&&h.updateData(s,{isIgnore:C,clipShape:M,disableAnimation:!0,getSymbolPoint:function(ce){return[c[ce*2],c[ce*2+1]]}}),(!zg(this._stackedOnPoints,x)||!zg(this._points,c))&&(y?this._doUpdateAnimation(s,x,i,n,D,S,w):(D&&(x&&(x=Jr(x,c,i,D,w)),c=Jr(c,null,i,D,w)),p.setShape({points:c}),d&&d.setShape({points:c,stackedOnPoints:x})))}var k=e.getModel("emphasis"),P=k.get("focus"),B=k.get("blurScope"),E=k.get("disabled");if(p.useStyle(oe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),ot(p,e,"lineStyle"),p.style.lineWidth>
70&&e.get(["emphasis","lineStyle","width"])==="bolder"){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}ee(p).seriesIndex=e.seriesIndex,Ge(p,P,B,E);var z=Hg(e.get("smooth")),F=e.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:F,connectNulls:w}),d){var W=s.getCalculationInfo("stackedOnSeries"),q=0;d.useStyle(oe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(q=Hg(W.get("smooth"))),d.setShape({smooth:z,stackedOnSmooth:q,smoothMonotone:F,connectNulls:w}),ot(d,e,"areaStyle"),ee(d).seriesIndex=e.seriesIndex,Ge(d,P,B,E)}var re=this._changePolyState;s.eachItemGraphicEl(function(ce){ce&&(ce.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=c,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),d&&this.packEventData(e,d))},t.prototype.packEventData=function(e,a){ee(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=ja(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=e.get("zlevel")||0,h=e.get("z")||0;u=new $o(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 Ie.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=ja(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 Ie.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;dl(this._polyline,e),a&&dl(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new w2({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new o1({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");Q(c)&&(c=c(null));var v=u.get("animationDelay")||0,f=Q(v)?v(null):v;e.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 _=n,x=a.pointToCoord(g);i?(y=_.startAngle,m=_.endAngle,S=-x[1]/180*Math.PI):(y=_.r0,m=_.r,S=x[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,S=h.x):(y=b.y+b.height,m=b.y,S=h.y)}var w=m===y?0:(S-y)/(m-y);l&&(w=1-w);var C=Q(v)?v(p):c*w+f,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(u1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new _e({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=P2(l);c>=0&&(vt(s,st(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(v,f,h){return h!=null?r1(o,h):ei(o,v)},enableTextSetter:!0},R2(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var 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,_=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,x=(y?d:0)*(m?-1:1),b=(y?0:-d)*(m?-1:1),w=y?"x":"y",C=k2(v,_,w),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!h){var L=Wg(v,A[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(M=f.getRawValue(A[0]))}else{var L=c.getPointOn(_,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=f.getRawValue(A[0]),R=f.getRawValue(A[1]);o&&(M=S_(n,p,I,R,C.t))}i.lastFrameIndex=A[0]}else{var k=e===1||i.lastFrameIndex>0?A[0]:0,L=Wg(v,k);o&&(M=f.getRawValue(k)),u.attr({x:L[0]+x,y:L[1]+b})}if(o){var P=pi(u);typeof P.setLabelText=="function"&&P.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,c=this._polygon,v=e.hostModel,f=b2(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,d=f.next,g=f.stackedOnNext;if(o&&(p=Jr(f.stackedOnCurrent,f.current,n,o,l),h=Jr(f.current,null,n,o,l),g=Jr(f.stackedOnNext,f.next,n,o,l),d=Jr(f.next,null,n,o,l)),Fg(h,d)>3e3||c&&Fg(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(),xe(u,y,v),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),xe(c,{shape:{stackedOnPoints:g}},v),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=f.status,_=0;_<S.length;_++){var x=S[_].cmd;if(x==="="){var b=e.getItemGraphicEl(S[_].idx1);b&&m.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,C=0;C<m.length;C++){var A=m[C].el,D=m[C].ptIdx*2;A.x=w[D],A.y=w[D+1],A.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Ie);function jo(r,t){return{seriesType:r,plan:gi(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=U(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");fa(a,s[0])&&(s[0]=u),fa(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&&dr(d*l),y=[],m=[],S=h.start,_=0;S<h.end;S++){var x=void 0;if(l===1){var b=c.get(v,S);x=n.dataToPoint(b,null,m)}else y[0]=c.get(v,S),y[1]=c.get(f,S),x=n.dataToPoint(y,null,m);o?(g[_++]=x[0],g[_++]=x[1]):p.setItemLayout(S,x.slice())}o&&p.setLayout("points",g)}}}}}}var N2={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},O2=function(r){return Math.round(r.length/2)};function c1(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),v=a.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(v||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var p=void 0;X(i)?p=N2[i]:Q(i)&&(p=i),p&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,p,O2))}}}}}function B2(r){r.registerChartView(E2),r.registerSeriesModel(m2),r.registerLayout(jo("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,c1("line"))}var Ao=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Ur(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)T(i.getAxes(),function(f,h){if(f.type==="category"&&a!=null){var p=f.getTicksCoords(),d=f.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[y?1:0]);return}for(var m=void 0,S=void 0,_=1,x=0;x<p.length;x++){var b=p[x].coord,w=x===p.length-1?p[x-1].tickValue+_:p[x].tickValue;if(w===g){S=b;break}else if(w<g)m=b;else if(m!=null&&w>g){S=(b+m)/2;break}x===1&&(_=w-p[0].tickValue)}
7S==null&&(m?m&&(S=p[p.length-1].coord):S=p[0].coord),s[h]=f.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t}(ke);ke.registerClass(Ao);var V2=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ur(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ma(Ao.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:N.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Ao),z2=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}(),Rl=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new z2},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,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?(e.moveTo(d*o+n,g*o+i),e.arc(d*u+n,g*u+i,l,-Math.PI+c,c,!f)):e.moveTo(d*s+n,g*s+i),e.arc(n,i,s,c,v,!f),e.arc(y*u+n,m*u+i,l,v-Math.PI*2,v-Math.PI,!f),o!==0&&e.arc(n,i,o,v,c,f)},t}(Ne);function G2(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return hv(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=e?Math.abs(f-h)/2:0,S=Math.cos,_=Math.sin,x=c+f*S(d),b=v+f*_(d),w="left",C="top";switch(s){case"startArc":x=c+(h-l)*S(y),b=v+(h-l)*_(y),w="center",C="top";break;case"insideStartArc":x=c+(h+l)*S(y),b=v+(h+l)*_(y),w="center",C="bottom";break;case"startAngle":x=c+p*S(d)+_s(d,l+m,!1),b=v+p*_(d)+xs(d,l+m,!1),w="right",C="middle";break;case"insideStartAngle":x=c+p*S(d)+_s(d,-l+m,!1),b=v+p*_(d)+xs(d,-l+m,!1),w="left",C="middle";break;case"middle":x=c+p*S(y),b=v+p*_(y),w="center",C="middle";break;case"endArc":x=c+(f+l)*S(y),b=v+(f+l)*_(y),w="center",C="bottom";break;case"insideEndArc":x=c+(f-l)*S(y),b=v+(f-l)*_(y),w="center",C="top";break;case"endAngle":x=c+p*S(g)+_s(g,l+m,!0),b=v+p*_(g)+xs(g,l+m,!0),w="left",C="middle";break;case"insideEndAngle":x=c+p*S(g)+_s(g,-l+m,!0),b=v+p*_(g)+xs(g,-l+m,!0),w="right",C="middle";break;default:return hv(a,n,i)}return a=a||{},a.x=x,a.y=b,a.align=w,a.verticalAlign=C,a}}function F2(r,t,e,a){if(we(a)){r.setTextConfig({rotation:a});return}else if(G(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function _s(r,t,e){return t*Math.sin(r)*(e?-1:1)}function xs(r,t,e){return t*Math.cos(r)*(e?1:-1)}function yr(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;G(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:U(a,function(i){return Xn(i,n)})}}var ic=Math.max,oc=Math.min;function H2(r,t){var e=r.getArea&&r.getArea();if(ha(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var W2=function(r){O(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);
7var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){ya(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),v;u.type==="cartesian2d"?v=c.isHorizontal():u.type==="polar"&&(v=c.dim==="angle");var f=e.isAnimationEnabled()?e:null,h=U2(e,u);h&&this._enableRealtimeSort(h,s,n);var p=e.get("clip",!0)||h,d=H2(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),S=m.get("borderRadius")||0,_=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(M){var L=bs[u.type](s,M);if(!L)return null;var I=j2(u,v,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",S):I.setShape("cornerRadius",S),_[M]=I,I}s.diff(l).add(function(M){var L=s.getItemModel(M),I=bs[u.type](s,M,L);if(I&&(y&&C(M),!(!s.hasValue(M)||!$g[u.type](I)))){var R=!1;p&&(R=Ug[u.type](d,I));var k=Yg[u.type](e,s,M,I,v,f,c.model,!1,g);h&&(k.forceLabelAnimation=!0),Kg(k,s,M,L,I,e,v,u.type==="polar"),b?k.attr({shape:I}):h?Zg(h,f,k,I,M,v,!1,!1):Be(k,{shape:I},e,M),s.setItemGraphicEl(M,k),o.add(k),k.ignore=R}}).update(function(M,L){var I=s.getItemModel(M),R=bs[u.type](s,M,I);if(R){if(y){var k=void 0;x.length===0?k=C(L):(k=x[L],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",S):k.setShape("cornerRadius",S),_[M]=k);var P=bs[u.type](s,M),B=f1(v,P,u);xe(k,{shape:B},f,M)}var E=l.getItemGraphicEl(L);if(!s.hasValue(M)||!$g[u.type](R)){o.remove(E);return}var V=!1;p&&(V=Ug[u.type](d,R),V&&o.remove(E));var z=E&&(E.type==="sector"&&g||E.type==="sausage"&&!g);if(z&&(E&&Lr(E,e,L),E=null),E?$t(E):E=Yg[u.type](e,s,M,R,v,f,c.model,!0,g),h&&(E.forceLabelAnimation=!0),w){var F=E.getTextContent();if(F){var W=pi(F);W.prevValue!=null&&(W.prevValue=W.value)}}else Kg(E,s,M,I,R,e,v,u.type==="polar");b?E.attr({shape:R}):h?Zg(h,f,E,R,M,v,!0,w):xe(E,{shape:R},e,M,null),s.setItemGraphicEl(M,E),E.ignore=V,o.add(E)}}).remove(function(M){var L=l.getItemGraphicEl(M);L&&Lr(L,e,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new J);A.removeAll();for(var D=0;D<_.length;++D)A.add(_[D]);o.add(A),this._backgroundEls=_,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),jg(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),jg(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&qo(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(v>s)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;
7e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Lr(i,e,ee(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ie),Ug={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=ic(t.x,r.x),s=oc(t.x+t.width,n),l=ic(t.y,r.y),u=oc(t.y+t.height,i),c=s<o,v=u<l;return t.x=c&&o>n?s:o,t.y=v&&l>i?u:l,t.width=c?0:s-o,t.height=v?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||v},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=oc(t.r,r.r),i=ic(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},Yg={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new ye({shape:H({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var c=u.shape,v=n?"height":"width";c[v]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Rl:Et,c=new u({shape:a,z2:1});c.name="item";var v=v1(n);if(c.calculateTextPosition=G2(v,{isRoundCap:u===Rl}),i){var f=c.shape,h=n?"r":"endAngle",p={};f[h]=n?a.r0:a.startAngle,p[h]=a[h],(s?xe:Be)(c,{shape:p},i)}return c}};function U2(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function Zg(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?xe:Be)(e,{shape:l},t,n,null);var c=t?r.baseAxis.model:null;(o?xe:Be)(e,{shape:u},c,n)}function Xg(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var Y2=["x","y","width","height"],Z2=["cx","cy","r","startAngle","endAngle"],$g={cartesian2d:function(r){return!Xg(r,Y2)},polar:function(r){return!Xg(r,Z2)}},bs={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var n=e?$2(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function X2(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function v1(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function Kg(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var c=r.shape,v=yr(a.getModel("itemStyle"),c,!0);H(c,v),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var f=a.getShallow("cursor");f&&r.attr("cursor",f);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=st(a);vt(r,p,{labelFetcher:i,labelDataIndex:e,defaultText:ei(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,F2(r,g==="outside"?h:g,v1(o),a.get(["label","rotate"]))}G_(d,p,i.getRawValue(e),function(m){return r1(t,m)});var y=a.getModel(["emphasis"]);Ge(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),ot(r,a),X2(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function $2(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var K2=function(){function r(){}return r}(),qg=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new K2},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<n.length;c+=3)l[i]=u,l[o]=n[c+2],s[i]=n[c+i],s[o]=n[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(Ne);function jg(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroun
7dPoints");if(u){var c=new qg({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var v=new qg({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(n.getVisual("style")),v.style.stroke=null,ee(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",Jg),v.on("mousemove",Jg)),e&&e.push(v)}var Jg=Ph(function(r){var t=this,e=q2(t,r.offsetX,r.offsetY);ee(t).dataIndex=e>=0?e:null},30,!1);function q2(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,v=i.length/3;c<v;c++){var f=c*3;if(l[a]=u,l[n]=i[f+2],s[a]=i[f+a],s[n]=i[f+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function f1(r,t,e){if(ha(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function j2(r,t,e){var a=r.type==="polar"?Et:ye;return new a({shape:f1(t,e,r),silent:!0,z2:0})}function J2(r){r.registerChartView(W2),r.registerSeriesModel(V2),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,se(Lb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Pb("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,c1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var Qg=Math.PI*2,ws=Math.PI/180;function Q2(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=sx(a,e),s=o.cx,l=o.cy,u=o.r,c=o.r0,v=o.viewRect,f=-a.get("startAngle")*ws,h=a.get("endAngle"),p=a.get("padAngle")*ws;h=h==="auto"?f-Qg:-h*ws;var d=a.get("minAngle")*ws,g=d+p,y=0;n.each(i,function(B){!isNaN(B)&&y++});var m=n.getSum(i),S=Math.PI/(m||y)*2,_=a.get("clockwise"),x=a.get("roseType"),b=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var C=_?1:-1,A=[f,h],D=C*p/2;Kf(A,!_),f=A[0],h=A[1];var M=h1(a);M.startAngle=f,M.endAngle=h,M.clockwise=_,M.cx=s,M.cy=l,M.r=u,M.r0=c;var L=Math.abs(h-f),I=L,R=0,k=f;if(n.setLayout({viewRect:v,r:u}),n.each(i,function(B,E){var V;if(isNaN(B)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:s,cy:l,r0:c,r:x?NaN:u});return}x!=="area"?V=m===0&&b?S:B*S:V=L/y,V<g?(V=g,I-=g):R+=B;var z=k+C*V,F=0,W=0;p>V?(F=k+C*V/2,W=F):(F=k+D,W=z-D),n.setItemLayout(E,{angle:V,startAngle:F,endAngle:W,clockwise:_,cx:s,cy:l,r0:c,r:x?Te(B,w,[c,u]):u}),k=z}),I<Qg&&y)if(I<=.001){var P=L/y;n.each(i,function(B,E){if(!isNaN(B)){var V=n.getItemLayout(E);V.angle=P;var z=0,F=0;P<p?(z=f+C*(E+1/2)*P,F=z):(z=f+C*E*P+D,F=f+C*(E+1)*P-D),V.startAngle=z,V.endAngle=F}})}else S=I/R,k=f,n.each(i,function(B,E){if(!isNaN(B)){var V=n.getItemLayout(E),z=V.angle===g?g:B*S,F=0,W=0;z<p?(F=k+C*z/2,W=F):(F=k+D,W=k+C*z-D),V.startAngle=F,V.endAngle=W,k+=C*z}})})}var h1=ve();function _i(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var eP=Math.PI/180;function ey(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function c(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var S=d.list[m],_=Math.abs(S.label.y-e),x=a+S.len,b=x*x,w=Math.sqrt(Math.abs((1-_*_/y)*b)),C=t+(w+S.len2)*n,A=C-S.label.x,D=S.targetTextWidth-A*n;p1(S,D,!0),S.label.x=C}}function v(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var S=d[m],_=S.label.y>e?y:g,x=Math.abs(S.label.y-e);if(x>=_.maxY){var b=S.label.x-t-S.len2*n,w=a+S.len,C=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;_.rB=C,_.maxY=x}_.list.push(S)}c(g),c(y)}for(var f=r.length,h=0;h<f;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var p=r[h].label.x-u;r[h].linePoints[1][0]+=p,r[h].label.x=u}jv(r,1,l,l+o)&&v(r)}function tP(r,t,e,a,n,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,v=-Number.MAX_VALUE,f=0;f<r.length;f++){var h=r[f].label;sc(r[f])||(h.x<t?(c=Math.min(c,h.x),l.push(r[f])):(v=Math.max(v,h.x),u.push(r[f])))}for(var f=0;f<r.length;f++){var p=r[f];if(!sc(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<t?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+n-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?g=c-o-p.bleedMargin:g=o+n-v-p.bleedMargin:h.x<t?g=h.x-o-p.bleedMargin:g=o+n-h.x-p.bleedMargin,p.targetTextWidth=g,p1(p,g,!1)}}
7ey(u,t,e,a,1,n,i,o,s,v),ey(l,t,e,a,-1,n,i,o,s,c);for(var f=0;f<r.length;f++){var p=r[f];if(!sc(p)&&p.linePoints){var h=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=h.style.padding,S=m?m[1]+m[3]:0,_=h.style.backgroundColor?0:S,x=p.rect.width+_,b=d[1][0]-d[2][0];y?h.x<t?d[2][0]=o+p.edgeDistance+x+p.labelDistance:d[2][0]=o+n-p.edgeDistance-x-p.labelDistance:(h.x<t?d[2][0]=h.x+p.labelDistance:d[2][0]=h.x-p.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=h.y}}}function p1(r,t,e){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,c=i.width+(o?0:l);if(t<c||e){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var f=t-l,h=t<c?f:e?f>r.unconstrainedWidth?null:f:null;a.setStyle("width",h)}d1(i,a)}}}function d1(r,t){ty.rect=r,e1(ty,t,rP)}var rP={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},ty={};function sc(r){return r.position==="center"}function aP(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*eP,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,v=s.y,f=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),D=w.getTextGuideLine(),M=t.getItemModel(b),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),R=L.get("distanceToLabelLine"),k=L.get("alignTo"),P=Y(L.get("edgeDistance"),u),B=L.get("bleedMargin");B==null&&(B=Math.min(u,f)>200?10:2);var E=M.getModel("labelLine"),V=E.get("length");V=Y(V,u);var z=E.get("length2");if(z=Y(z,u),Math.abs(C.endAngle-C.startAngle)<o){T(A.states,h),A.ignore=!0,D&&(T(D.states,h),D.ignore=!0);return}if(p(A)){var F=(C.startAngle+C.endAngle)/2,W=Math.cos(F),q=Math.sin(F),re,ce,Oe,Ke;a=C.cx,n=C.cy;var fe=I==="inside"||I==="inner";if(I==="center")re=C.cx,ce=C.cy,Ke="center";else{var le=(fe?(C.r+C.r0)/2*W:C.r*W)+a,Ce=(fe?(C.r+C.r0)/2*q:C.r*q)+n;if(re=le+W*3,ce=Ce+q*3,!fe){var Ae=le+W*(V+l-C.r),Re=Ce+q*(V+l-C.r),qe=Ae+(W<0?-1:1)*z,ze=Re;k==="edge"?re=W<0?c+P:c+u-P:re=qe+(W<0?-R:R),ce=ze,Oe=[[le,Ce],[Ae,Re],[qe,ze]]}Ke=fe?"center":k==="edge"?W>0?"right":"left":W>0?"left":"right"}var Me=Math.PI,He=0,_t=L.get("rotate");if(we(_t))He=_t*(Me/180);else if(I==="center")He=0;else if(_t==="radial"||_t===!0){var Yr=W<0?-F+Me:-F;He=Yr}else if(_t==="tangential"&&I!=="outside"&&I!=="outer"){var br=Math.atan2(W,q);br<0&&(br=Me*2+br);var es=q>0;es&&(br=Me+br),He=br-Me}if(i=!!He,A.x=re,A.y=ce,A.rotation=He,A.setStyle({verticalAlign:"middle"}),fe){A.setStyle({align:Ke});var wu=A.states.select;wu&&(wu.x+=A.x,wu.y+=A.y)}else{var bu=new Se(0,0,0,0);d1(bu,A),e.push({label:A,labelLine:D,position:I,len:V,len2:z,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new me(W,q),linePoints:Oe,textAlign:Ke,labelDistance:R,labelAlignTo:k,edgeDistance:P,bleedMargin:B,rect:bu,unconstrainedWidth:bu.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:fe})}}),!i&&r.get("avoidLabelOverlap")&&tP(e,a,n,l,u,f,c,v);for(var d=0;d<e.length;d++){var g=e[d],y=g.label,m=g.labelLine,S=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),S&&(T(y.states,h),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(m){var x=g.linePoints;S||!x?(T(m.states,h),m.ignore=!0):(jb(x,g.minTurnAngle),o2(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new me(x[0][0],x[0][1])})}}}var nP=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new _e;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),c=e.getItemLayout(a),v=H(yr(l.getModel("itemStyle"),c,!0),c);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var f=s.getShallow("animationType");s.ecModel.ssr?(Be(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):f==="scale"?(o.shape.r=c.r0,Be(o,{shape:{r:c.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Be(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,a)):(o.shape.endAngle=c.startAngle,xe(o,{shape:{endAngle:c.endAngle}},s,a))}else $t(o),xe(o,{shape:v},s,a);
7o.useStyle(e.getItemVisual(a,"style")),ot(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=H({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},yr(u.getModel("itemStyle"),c)),H(o.ensureState("select"),{x:d,y:g,shape:yr(l.getModel(["select","itemStyle"]),c)}),H(o.ensureState("blur"),{shape:yr(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),S=o.getTextContent();m&&H(m.ensureState("select"),{x:d,y:g}),H(S.ensureState("select"),{x:d,y:g}),Ge(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;vt(i,st(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var f=o.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Dt,this.setTextGuideLine(h)),Wh(this,Uh(o),{stroke:u,opacity:Fr(s.get(["lineStyle","opacity"]),c,1)})}},t}(Et),iP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),v=1;isNaN(c&&c.startAngle)&&v<o.count();++v)c=o.getItemLayout(v);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var f=h1(e),h=new Et({shape:te(f)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(p){var d=new nP(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Lr(d,e,p)}).execute(),aP(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Ie);function xi(r,t,e){t=G(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Zo(a,t).dimensions,i=new Ct(n,r);return i.initData(a,e),i}var bi=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}(),oP=ve(),g1=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bi(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return xi(this,{coordDimensions:["value"],encodeDefaulter:se(wh,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=oP(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=VC(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){qa(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,
7stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ke);gD({fullType:g1.type,getCoord2:function(r){return r.getShallow("center")}});function sP(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(we(o)&&!isNaN(o)&&o<0)})}}}function lP(r){r.registerChartView(iP),r.registerSeriesModel(g1),Jx("pie",r.registerAction),r.registerLayout(se(Q2,"pie")),r.registerProcessor(_i("pie")),r.registerProcessor(sP("pie"))}var uP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return Ur(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:N.color.primary}},universalTransition:{divideShape:"clone"}},t}(ke),y1=4,cP=function(){function r(){}return r}(),vP=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new cP},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<y1,c=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<n.length;){var f=n[v++],h=n[v++];isNaN(f)||isNaN(h)||c&&!c.contain(f,h)||(s.x=f-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,v=i[c]-s/2,f=i[c+1]-l/2;if(e>=v&&a>=f&&e<=v+s&&a<=f+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,v=-1/0,f=0;f<n.length;){var h=n[f++],p=n[f++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(p,u),v=Math.max(p,v)}e=this._rect=new Se(l-o/2,u-s/2,c-l+o,v-u+s)}return e},t}(Ne),fP=function(){function r(){this.group=new J}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");
7this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new vP({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=rt(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<y1;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=ee(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var v=t.hoverDataIdx;v>
7=0&&(u.dataIndex=v+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),hP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=jo("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new fP:new Ko,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ie),m1={left:0,right:0,top:0,bottom:0},El=["25%","25%"],pP=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=cn(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&mr(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&mr(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:m1,outerBoundsContain:"all",outerBoundsClampWidth:El[0],outerBoundsClampHeight:El[1],backgroundColor:N.color.transparent,borderWidth:1,borderColor:N.color.neutral30},t}(pe),Qv=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ue).models[0]},t.type="cartesian2dAxis",t}(pe);ft(Qv,Xo);var S1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:N.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:N.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:N.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[N.color.backgroundTint,N.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:N.color.neutral00,borderColor:N.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},dP=he({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},S1),Yh=he({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:N.color.axisMinorSplitLine,width:1}}},S1),gP=he({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Yh),yP=oe({logBase:10},Yh);const _1={category:dP,value:Yh,time:gP,log:yP};var mP={value:1,category:1,time:1,log:1},ef=null;function SP(r){ef||(ef=r)}function Jo(){return ef}function ti(r,t,e,a){T(mP,function(n,i){var o=he(he({},_1[i],!0),a,!0),s=function(l){O(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,v){var f=So(this),h=f?cn(c):{},p=v.getTheme();he(c,p.get(i+"Axis")),he(c,this.getDefaultOption()),c.type=ry(c),f&&mr(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=To.createByAxisModel(this))},u.prototype.getCategories=function(c){var v=this.option;if(v.type==="category")return c?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var v=Jo();return v?v.updateModelAxisBreak(this,c):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",ry)}function ry(r){return r.type||(r.data?"category":"value")}var _P=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return U(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),De(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),tf=["x","y"];function ay(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var xP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=tf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!ay(e)||!ay(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,v=(s[1]-o[1])/u,f=o[0]-n[0]*c,h=o[1]-i[0]*v,p=this._transform=[c,0,0,v,f,h];this._invTransform=Er([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Se(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return mt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return mt(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Se(i,o,s,l)},t}(_P),x1=function(r){O(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)}
7,t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(or),pu="expandAxisBreak",b1="collapseAxisBreak",w1="toggleAxisBreak",Zh="axisbreakchanged",bP={type:pu,event:Zh,update:"update",refineEvent:Xh},wP={type:b1,event:Zh,update:"update",refineEvent:Xh},TP={type:w1,event:Zh,update:"update",refineEvent:Xh};function Xh(r,t,e,a){var n=[];return T(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function CP(r){r.registerAction(bP,t),r.registerAction(wP,t),r.registerAction(TP,t);function t(e,a){var n=[],i=Hn(a,e);function o(s,l){T(i[s],function(u){var c=u.updateAxisBreaks(e);T(c.breaks,function(v){var f;n.push(oe((f={},f[l]=u.componentIndex,f),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var ta=Math.PI,AP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],DP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ri=ve(),T1=ve(),C1=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function MP(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=$h(r.axisName)&&Qn(r.nameLocation);T(a,function(p){var d=Sr(p);if(!(!d||d.label.ignore)){o.push(d);var g=i.transGroup;l&&(g.transform?Er(Ri,g.transform):Uf(Ri),d.transform&&Oo(Ri,Ri,d.transform),Se.copy(Ts,d.localRect),Ts.applyTransform(Ri),s?s.union(Ts):Se.copy(s=new Se(0,0,0,0),Ts))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",c=i.transGroup[u];if(o.sort(function(p,d){return Math.abs(p.label[u]-c)-Math.abs(d.label[u]-c)}),l&&s){var v=n.getExtent(),f=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-f;s.union(new Se(f,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Ri=rr(),Ts=new Se(0,0,0,0),A1=function(r,t,e,a,n,i){if(Qn(r.nameLocation)){var o=i.stOccupiedRect;o&&D1(u2({},o,i.transGroup.transform),a,n)}else M1(i.labelInfoList,i.dirVec,a,n)};function D1(r,t,e){var a=new me;hu(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Kv(t,a)}function M1(r,t,e,a){for(var n=me.dot(a,t)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||D1(s,e,a)}}var At=function(){function r(t,e,a,n){this.group=new J,this._axisModel=t,this._api=e,this._local={},this._shared=n||new C1(A1),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},n=ne(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=ne(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ne(t.nameDirection,1),tickDirection:ne(t.tickDirection,1),labelDirection:ne(t.labelDirection,1),labelOffset:ne(t.labelOffset,0),silent:ne(t.silent,!0),axisName:n,nameLocation:Fr(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:$h(n)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new J({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new me(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(IP,function(n){t[n]&&LP[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var n=l_(e-t),i,o;return fo(n)?(o=a>0?"top":"bottom",i="center"):fo(n-ta)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<ta?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),IP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],LP={axisLine
7:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,c=[l[0],0],v=[l[1],0],f=c[0]>v[0];u&&(mt(c,c,u),mt(v,v,u));var h=H({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())Jo().buildAxisBreakLine(a,n,i,p);else{var d=new ut(H({shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]}},p));$n(d.shape,d.style.lineWidth),d.anid="line",n.add(d)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);X(g)&&(g=[g,g]),(X(y)||we(y))&&(y=[y,y]);var m=fn(a.get(["axisLine","symbolOffset"])||0,y),S=y[0],_=y[1];T([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-v[0])*(c[0]-v[0])+(c[1]-v[1])*(c[1]-v[1]))}],function(x,b){if(g[b]!=="none"&&g[b]!=null){var w=rt(g[b],-S/2,-_/2,S,_,h.stroke,!0),C=x.r+x.offset,A=f?v:c;w.attr({rotation:x.rotate,x:A[0]+C*Math.cos(r.rotation),y:A[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=iy(t,n,s);l&&ny(r,t,e,a,n,i,o,ar.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=iy(t,n,s);l&&ny(r,t,e,a,n,i,o,ar.determine);var u=EP(r,n,i,a);RP(r,t.labelLayoutList,u),NP(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if($h(u)){var c=r.nameLocation,v=r.nameDirection,f=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,p=a.axis.getExtent(),d=a.axis.inverse?-1:1,g=new me(0,0),y=new me(0,0);c==="start"?(g.x=p[0]-d*h,y.x=-d):c==="end"?(g.x=p[1]+d*h,y.x=d):(g.x=(p[0]+p[1])/2,g.y=r.labelOffset+v*h,y.y=v);var m=rr();y.transform(ui(m,m,r.rotation));var S=a.get("nameRotate");S!=null&&(S=S*ta/180);var _,x;Qn(c)?_=At.innerTextLayout(r.rotation,S??r.rotation,v):(_=PP(r.rotation,c,S||0,p),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var b=f.getFont(),w=a.get("nameTruncate",!0)||{},C=w.ellipsis,A=yt(r.raw.nameTruncateMaxWidth,w.maxWidth,x),D=s.nameMarginLevel||0,M=new _e({x:g.x,y:g.y,rotation:_.rotation,silent:At.isLabelSilent(a),style:Pe(f,{text:u,font:b,overflow:"truncate",width:A,ellipsis:C,fill:f.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:f.get("align")||_.textAlign,verticalAlign:f.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(Wr({el:M,componentModel:a,itemName:u}),M.__fullText=u,M.anid="name",a.get("triggerEvent")){var L=At.makeAxisEventDataBase(a);L.targetType="axisName",L.name=u,ee(M).eventData=L}i.add(M),M.updateTransform(),t.nameEl=M;var I=l.nameLayout=Sr({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:Qn(c)?AP[D]:DP[D]});if(l.nameLocation=c,n.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&I){var R=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,I,y,R)}}}};function ny(r,t,e,a,n,i,o,s){L1(t)||OP(r,t,n,s,a,o);var l=t.labelLayoutList;BP(r,a,l,i),GP(a,r.rotation,l);var u=r.optionHideOverlap;kP(a,l,u),u&&t1(De(l,function(c){return c&&!c.label.ignore})),MP(r,e,a,l)}function PP(r,t,e,a){var n=l_(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return fo(n-ta/2)?(o=l?"bottom":"top",i="center"):fo(n-ta*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<ta*1.5&&n>ta/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function kP(r,t,e){if(Vb(r.axis))return;function a(s,l,u){var c=Sr(t[l]),v=Sr(t[u]);if(!(!c||!v)){if(s===!1||c.suggestIgnore){Ji(c.label);return}if(v.suggestIgnore){Ji(v.label);return}var f=.1;if(!e){var h=[0,0,0,0];c=qv({marginForce:h},c),v=qv({marginForce:h},v)}hu(c,v,null,{touchThreshold:f})&&Ji(s?v.label:c.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function RP(r,t,e){r.showMinorTicks||T(t,function(a){if(a&&a.label.ignore)for(var n=0;n<e.length;n++){var i=e[n],o=T1(i),s=ri(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Ji(i);return}}})}function Ji(r){r&&(r.ignore=!0)}function I1(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;
7o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(mt(o,o,t),mt(s,s,t));var c=new ut({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});$n(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,i.push(c);var v=T1(c);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function EP(r,t,e,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),c=I1(u,e.transform,l,oe(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<c.length;v++)t.add(c[v]);return c}function NP(r,t,e,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),c=oe(l.getLineStyle(),oe(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var f=I1(s[v],e.transform,u,c,"minorticks_"+v),h=0;h<f.length;h++)t.add(f[h])}}function iy(r,t,e){if(L1(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(t.remove(r.labelGroup),rf(r,null,null,null))}return!0}function OP(r,t,e,a,n,i){var o=n.axis,s=yt(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new J;e.add(l);var u=Ml(a);if(!s||o.scale.isBlank()){rf(t,[],l,u);return}var c=n.getModel("axisLabel"),v=o.getViewLabels(u),f=(yt(r.raw.labelRotate,c.get("rotate"))||0)*ta/180,h=At.innerTextLayout(r.rotation,f,r.labelDirection),p=n.getCategories&&n.getCategories(!0),d=[],g=n.get("triggerEvent"),y=1/0,m=-1/0;T(v,function(_,x){var b,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(_.tickValue):_.tickValue,C=_.formattedLabel,A=_.rawLabel,D=c;if(p&&p[w]){var M=p[w];ie(M)&&M.textStyle&&(D=new de(M.textStyle,c,n.ecModel))}var L=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),I=D.getShallow("align",!0)||h.textAlign,R=ne(D.getShallow("alignMinLabel",!0),I),k=ne(D.getShallow("alignMaxLabel",!0),I),P=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||h.textVerticalAlign,B=ne(D.getShallow("verticalAlignMinLabel",!0),P),E=ne(D.getShallow("verticalAlignMaxLabel",!0),P),V=10+(((b=_.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,V),m=Math.max(m,V);var z=new _e({x:0,y:0,rotation:0,silent:At.isLabelSilent(n),z2:V,style:Pe(D,{text:C,align:x===0?R:x===v.length-1?k:I,verticalAlign:x===0?B:x===v.length-1?E:P,fill:Q(L)?L(o.type==="category"?A:o.type==="value"?w+"":w,x):L})});z.anid="label_"+w;var F=ri(z);if(F.break=_.break,F.tickValue=w,F.layoutRotation=h.rotation,Wr({el:z,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:A,tickIndex:x}}),g){var W=At.makeAxisEventDataBase(n);W.targetType="axisLabel",W.value=A,W.tickIndex=x,_.break&&(W.break={start:_.break.parsedBreak.vmin,end:_.break.parsedBreak.vmax}),o.type==="category"&&(W.dataIndex=w),ee(z).eventData=W,_.break&&zP(n,i,z,_.break)}d.push(z),l.add(z)});var S=U(d,function(_){return{label:_,priority:ri(_).break?_.z2+(m-y+1):_.z2,defaultAttr:{ignore:_.ignore}}});rf(t,S,l,u)}function L1(r){return!!r.labelLayoutList}function rf(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function BP(r,t,e,a){var n=t.get(["axisLabel","margin"]);T(e,function(i,o){var s=Sr(i);if(s){var l=s.label,u=ri(l);s.suggestIgnore=l.ignore,l.ignore=!1,Qp(Cr,VP),Cr.x=t.axis.dataToCoord(u.tickValue),Cr.y=r.labelOffset+r.labelDirection*n,Cr.rotation=u.layoutRotation,a.add(Cr),Cr.updateTransform(),a.remove(Cr),Cr.decomposeTransform(),Qp(l,Cr),l.markRedraw(),kl(s,!0),Sr(s)}})}var Cr=new ye,VP=new ye;function $h(r){return!!r}function zP(r,t,e,a){e.on("click",function(n){var i={type:pu,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function GP(r,t,e){var a=Qe();if(a){var n=a.retrieveAxisBreakPairs(e,function(o){return o&&ri(o.label).break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);
7(i===!0||i==="auto")&&T(n,function(o){Jo().adjustBreakLabelPair(r.axis.inverse,t,[Sr(e[o[0]]),Sr(e[o[1]])])})}}function Nl(r,t,e){e=e||{};var a=t.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,f=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));f[c.onZero]=Math.max(Math.min(h,f[1]),f[0])}n.position=[l==="y"?f[c[s]]:u[0],l==="x"?f[c[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=p[o],n.labelOffset=i?f[c[o]]-f[c.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),yt(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function FP(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function oy(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ue).models[0];t[a]=i}),t}function HP(r,t,e,a,n,i){for(var o=Nl(r,e),s=!1,l=!1,u=0;u<t.length;u++)Uv(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new At(e,a,o,n)}function WP(r,t,e){var a=Nl(t,e);r.updateCfg(a)}function P1(r,t,e){var a=zr.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(e),l=Bb(r,t),u=l.extent,c=l.fixMin,v=l.fixMax;r.type==="log"&&(u=Yv(r.base,u,!0)),r.setBreaksFromOption(zb(t)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:v});var f=a.getExtent.call(r);c&&(u[0]=f[0]),v&&(u[1]=f[1]);var h=a.getInterval.call(r),p=u[0],d=u[1];if(c&&v)h=(d-p)/o;else if(c)for(d=u[0]+h*o;d<u[1]&&isFinite(d)&&isFinite(u[1]);
7)h=qu(h),d=u[0]+h*o;else if(v)for(p=u[1]-h*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)h=qu(h),p=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=qu(h));var y=h*o;d=Math.ceil(u[1]/h)*h,p=Je(d-y),p<0&&u[0]>=0?(p=0,d=Je(y)):d>0&&u[1]<=0&&(d=0,p=-Je(y))}var m=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+h*m,d+h*S),a.setInterval.call(r,h),(m||S)&&a.setNiceExtent.call(r,p+h,d-h)}var sy=[[3,1],[0,2]],UP=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tf,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=at(o),u=l.length;if(u){for(var c=[],v=u-1;v>=0;v--){var f=+l[v],h=o[f],p=h.model,d=h.scale;Uv(d)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Jn(d,p),Uv(d)&&(s=h))}c.length&&(s||(s=c.pop(),Jn(s.scale,s.model)),T(c,function(g){P1(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};T(a.x,function(o){ly(a,"y",o,i)}),T(a.y,function(o){ly(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=lt(t,e),i=this._rect=Fe(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(af(o,i),!a){var u=XP(i,s,o,l,e),c=void 0;if(l)nf?(nf(this._axesList,i),af(o,i)):c=vy(i.clone(),"axisLabel",null,i,o,u,n);else{var v=$P(t,i,n),f=v.outerBoundsRect,h=v.parsedOuterBoundsContain,p=v.outerBoundsClamp;f&&(c=vy(f,h,p,i,o,u,n))}k1(i,o,ar.determine,null,c,n)}T(this._coordsList,function(d){d.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}ie(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ue).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ue).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ge(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(c,v){T(s.y,function(f,h){var p="x"+v+"y"+h,d=new xP(p);d.master=n,d.model=t,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(c),d.addAxis(f)})});function u(c){return function(v,f){if(lc(v,t)){var h=v.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new x1(c,fu(v),[0,0],v.get("type"),h),d=p.type==="category";p.onBand=d&&v.get("boundaryGap"),p.inverse=v.get("inverse"),v.axis=p,p.model=v,p.grid=i,p.index=f,i._axesList.push(p),s[c][f]=p,l[c]++}}}},r.prototype._updateScale=function(t,e){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(FP(n)){var i=oy(n),o=i.xAxisModel,s=i.yAxisModel;if(!lc(o,e)||!lc(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),c=l.getAxis("x"),v=l.getAxis("y");a(u,c),a(u,v)}},this);function a(n,i){T(Dl(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return T(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ge(e,i)<0&&e.push(i),ge(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){Uo({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=oy(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=tf,r}();function lc(r,t){return r.getCoordSysModel()===t}function ly(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)uy(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&uy(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(v){return v.dim+"_"+v.index}}function uy(r){return r&&r.type!=="category"&&r.type!=="time"&&EL(r)}function YP(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}function af(r,t){T(r.x,function(e){return cy(e,t.x,t.width)}),T(r.y,function(e){return cy(e,t.y,t.height)})}function cy(r,t,e){var a=[0,e],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),YP(r,t)}var nf;function ZP(r){nf=r}function vy(r,t,e,a,n,i,o){k1(a,n,ar.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),c(a,0,NaN),c(a,1,NaN);var l=sn(s,function(f){return f>0})==null;return en(a,s,!0,!0,e),af(n,a),l;function u(f){T(n[ae[f]],function(h){if(Co(h.model)){var p=i.ensureRecord(h.model),d=p.labelInfoList;if(d)for(var g=0;g<d.length;g++){var y=d[g],m=h.scale.normalize(ri(y.label).tickValue);m=f===1?1-m:m,c(y.rect,f,m),c(y.rect,1-f,NaN)}var S=p.nameLayout;if(S){var m=Qn(p.nameLocation)?.5:NaN;c(S.rect,f,m),c(S.rect,1-f,NaN)}}})}function c(f,h,p){var d=r[ae[h]]-f[ae[h]],g=f[et[h]]+f[ae[h]]-(r[et[h]]+r[ae[h]]);d=v(d,1-p),g=v(g,p);var y=sy[h][0],m=sy[h][1];s[y]=$e(s[y],d),s[m]=$e(s[m],g)}function v(f,h){return f>0&&!Tt(h)&&h>1e-4&&(f/=h),f}}function XP(r,t,e,a,n){var i=new C1(KP);return T(e,function(o){return T(o,function(s){if(Co(s.model)){var l=!a;s.axisBuilder=HP(r,t,s.model,n,i,l)}})}),i}function k1(r,t,e,a,n,i){var o=e===ar.determine;T(t,function(u){return T(u,function(c){Co(c.model)&&(WP(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ae[1-u]]=r[et[u]]<=i.refContainer[et[u]]*.5?0:1-u===1?2:1}T(t,function(u,c){return T(u,function(v){Co(v.model)&&((a==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}
7),o&&v.axisBuilder.build({axisLine:!0}))})})}function $P(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=Fe(r.get("outerBounds",!0)||m1,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ge(["all","axisLabel"],i)<0?o="all":o=i;var s=[fl(ne(r.get("outerBoundsClampWidth",!0),El[0]),t.width),fl(ne(r.get("outerBoundsClampHeight",!0),El[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var KP=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";A1(r,t,e,a,n,i),Qn(r.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&M1(s.labelInfoList,s.dirVec,a,n)})};function qP(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return jP(e,r,t),e.seriesInvolved&&QP(e,r),e}function jP(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];T(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Do(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,v=c.getModel("tooltip",a);if(T(s.getAxes(),se(d,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var f=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(v.get(["axisPointer","axis"]));(f||h)&&T(p.baseAxes,se(d,h?"cross":!0,f)),h&&T(p.otherAxes,se(d,"cross",!1))}function d(g,y,m){var S=m.model.getModel("axisPointer",n),_=S.get("show");if(!(!_||_==="auto"&&!g&&!of(S))){y==null&&(y=S.get("triggerTooltip")),S=g?JP(m,v,n,t,g,y):S;var x=S.get("snap"),b=S.get("triggerEmphasis"),w=Do(m.model),C=y||x||m.type==="category",A=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:b,involveSeries:C,snap:x,useHandle:of(S),seriesModels:[],linkGroup:null};u[w]=A,r.seriesInvolved=r.seriesInvolved||C;var D=ek(i,m);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[w]=A,M.mapper=i[D].mapper,A.linkGroup=M}}}})}function JP(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(f){l[f]=te(o.get(f))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&oe(u,v.textStyle)}}return r.model.getModel("axisPointer",new de(l,e,a))}function QP(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[Do(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function ek(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(uc(i[a+"AxisId"],e.id)||uc(i[a+"AxisIndex"],e.componentIndex)||uc(i[a+"AxisName"],e.name))return n}}function uc(r,t){return r==="all"||G(r)&&ge(r,t)>=0||r===t}function tk(r){var t=Kh(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=of(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Kh(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Do(r)]}function rk(r){var t=Kh(r);return t&&t.axisPointerModel}function of(r){return!!r.get(["handle","show"])}function Do(r){return r.type+"||"+r.id}var fy={},pn=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&tk(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)}
7,t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=rk(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){fy[e]=a},t.getAxisPointerClass=function(e){return e&&fy[e]},t.type="axis",t}(Ve),sf=ve();function R1(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,v=sf(r).splitAreaColors,f=K(),h=0;if(v)for(var p=0;p<u.length;p++){var d=v.get(u[p].tickValue);if(d!=null){h=(d+(c-1)*p)%c;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=G(s)?s:[s];for(var p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),S=void 0,_=void 0,x=void 0,b=void 0;n.isHorizontal()?(S=g,_=l.y,x=m-S,b=l.height,g=S+x):(S=l.x,_=g,x=l.width,b=m-_,g=_+b);var w=u[p-1].tickValue;w!=null&&f.set(w,h),t.add(new ye({anid:w!=null?"area_"+w:null,shape:{x:S,y:_,width:x,height:b},style:oe({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}sf(r).splitAreaColors=f}}}function E1(r){sf(r).splitAreaColors=null}var ak=["splitArea","splitLine","minorSplitLine","breakArea"],N1=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new J,this.group.add(this._axisGroup),!!Co(e)){this._axisGroup.add(e.axis.axisBuilder.group),T(ak,function(l){e.get([l,"show"])&&nk[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Go(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){E1(this)},t.type="cartesianAxis",t}(pn),nk={splitLine:function(r,t,e,a,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=G(l)?l:[l];for(var v=a.coordinateSystem.getRect(),f=i.isHorizontal(),h=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=s.getLineStyle(),m=0;m<p.length;m++){var S=i.toGlobalCoord(p[m].coord);if(!(m===0&&!u||m===p.length-1&&!c)){var _=p[m].tickValue;f?(d[0]=S,d[1]=v.y,g[0]=S,g[1]=v.y+v.height):(d[0]=v.x,d[1]=S,g[0]=v.x+v.width,g[1]=S);var x=h++%l.length,b=new ut({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:oe({stroke:l[x]},y),silent:!0});$n(b.shape,y.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,a,n){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var v=[],f=[],h=s.getLineStyle(),p=0;p<c.length;p++)for(var d=0;d<c[p].length;d++){var g=i.toGlobalCoord(c[p][d].coord);u?(v[0]=g,v[1]=l.y,f[0]=g,f[1]=l.y+l.height):(v[0]=l.x,v[1]=g,f[0]=l.x+l.width,f[1]=g);var y=new ut({anid:"minor_line_"+c[p][d].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:f[0],y2:f[1]},style:h,silent:!0});$n(y.shape,h.lineWidth),t.add(y)}},splitArea:function(r,t,e,a,n){R1(r,t,e,a)},breakArea:function(r,t,e,a,n){var i=Jo(),o=e.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,e,a.coordinateSystem.getRect(),n)}},O1=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(N1),ik=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=O1.type,e}return t.type="yAxis",t}(N1),ok=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new ye({shape:e.coordinateSystem.getRect(),style:oe({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}
7))},t.type="grid",t}(Ve),hy={offset:0};function B1(r){r.registerComponentView(ok),r.registerComponentModel(pP),r.registerCoordinateSystem("cartesian2d",UP),ti(r,"x",Qv,hy),ti(r,"y",Qv,hy),r.registerComponentView(O1),r.registerComponentView(ik),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function sk(r,t){var e=r.coordinateSystem,a=e&&e.type,n=e&&e.getBaseAxis&&e.getBaseAxis(),i=n&&n.scale&&n.scale.type,o=a==="cartesian2d"&&i==="ordinal"||a==="single",s=t.model.get("jitter")>0;return o&&s}var lk=ve();function py(r,t,e,a){if(r instanceof x1){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?V1(e,o,u,a):uk(r,t,e,a,o,l):e}function V1(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function uk(r,t,e,a,n,i){var o=lk(r);o.items||(o.items=[]);var s=o.items,l=dy(s,t,e,a,n,i,1),u=dy(s,t,e,a,n,i,-1),c=Math.abs(l-e)<Math.abs(u-e)?l:u,v=r.scale.type==="ordinal"?r.getBandWidth():null,f=Math.abs(c-e);return f>n/2||v&&f>v/2-a?V1(e,n,v,a):(s.push({fixedCoord:t,floatCoord:c,r:a}),c)}function dy(r,t,e,a,n,i,o){for(var s=e,l=0;l<r.length;l++){var u=r[l],c=t-u.fixedCoord,v=s-u.floatCoord,f=c*c+v*v,h=a+u.r+i;if(f<h*h){var p=u.floatCoord+Math.sqrt(h*h-c*c)*o;if(Math.abs(p-e)>n/2)return Number.MAX_VALUE;if(o===1&&p>s||o===-1&&p<s){s=p,l=-1;continue}}}return s}function ck(r){r.eachSeriesByType("scatter",function(t){var e=t.coordinateSystem;if(e&&(e.type==="cartesian2d"||e.type==="single")){var a=e.getBaseAxis?e.getBaseAxis():null,n=a&&sk(t,a);if(n){var i=t.getData();i.each(function(o){var s=a.dim,l=a.orient,u=l==="horizontal"&&a.type!=="category"||l==="vertical"&&a.type==="category",c=i.getItemLayout(o),v=i.getItemVisual(o,"symbolSize"),f=v instanceof Array?(v[1]+v[0])/2:v;if(s==="y"||s==="single"&&u){var h=py(a,c[0],c[1],f/2);i.setItemLayout(o,[c[0],h])}else if(s==="x"||s==="single"&&!u){var h=py(a,c[1],c[0],f/2);i.setItemLayout(o,[h,c[1]])}})}}})}function vk(r){ue(B1),r.registerSeriesModel(uP),r.registerChartView(hP),r.registerLayout(jo("scatter"))}function fk(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,ck)}function hk(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();T(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var c=n.dataToPoint(l,s);a[u][s]=gy(c)?c:yy(n)})}),e.each(function(o){var s=sn(a[o],function(l){return gy(l)})||yy(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function gy(r){return!isNaN(r[0])&&!isNaN(r[1])}function yy(r){return[r.cx,r.cy]}function pk(r){var t=r.polar;if(t){G(t)||(t=[t]);var e=[];T(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],G(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}T(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var dk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(f,h){var p=f.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var d=mi(f.getItemVisual(h,"symbolSize")),g=rt(p,-1,-1,2,2),y=f.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function c(f,h,p,d,g,y){p.removeAll();for(var m=0;m<h.length-1;m++){var S=u(d,g);S&&(S.__dimIdx=m,f[m]?(S.setPosition(f[m]),un[y?"initProps":"updateProps"](S,{x:h[m][0],y:h[m][1]},e,g)):S.setPosition(h[m]),p.add(S))}}function v(f){return U(f,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(f){var h=s.getItemLayout(f);if(h){var p=new Nt,d=new Dt,g={shape:{points:h}};p.shape.points=v(h),d.shape.points=v(h),Be(p,g,e,f),Be(d,g,e,f);var y=new J,m=new J;y.add(d),y.add(p),y.add(m),c(d.shape.points,h,m,s,f,!0),s.setItemGraphicEl(f,y)}}).update(function(f,h){var p=l.getItemGraphicEl(h),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(f)}};m.shape.points&&(c(d.shape.points,m.shape.points,y,s,f,!1),$t(g),$t(d),xe(d,m,e),xe(g,m,e),s.setItemGraphicEl(f,p))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var p=s.getItemModel(h),d=f.childAt(0),g=f.childAt(1),y=f.childAt(2),m=s.getItemVisual(h,"style"),S=m.fill;o.add(f),d.useStyle(oe(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),ot(d,p,"lineStyle"),ot(g,p,"areaStyle");var _=p.getModel("areaStyle"),x=_.isEmpty()&&_.parentModel.isEmpty();g.ignore=x,T(["emphasis","select","blur"],function(w){var C=p.getModel([w,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(w).ignore=A&&x;var D=p.getModel([w,"lineStyle"]).getLineStyle();d.ensureState(w).style=D;var M=C.getAreaStyle();g.ensureState(w).style=M;var L=p.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(I){I.ensureState(w).style=te(L)})}),g.useStyle(oe(p.getModel("areaStyle").getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis");y.eachChild(function(w){if(w instanceof Kt){var C=w.style;w.useStyle(H({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else w.useStyle(m),w.setColor(S),w.style.strokeNoScale=!0;var A=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(A==null||isNaN(A))&&(A=""),vt(w,st(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:A,inheritColor:S,defaultOpacity:m.opacity})}),Ge(f,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Ie),gk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}
7return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bi(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return xi(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=Gx(this,e);return tt("section",{header:u,sortBlocks:!0,blocks:U(s,function(v){var f=i.get(i.mapDimension(v.dim),e);return tt("nameValue",{markerType:"subItem",markerColor:c,name:v.name,value:f,sortParam:f})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(U(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(ke),Ei=_1.value;function Cs(r,t){return oe({show:t},r)}var yk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),f=this.get("triggerEvent"),h=U(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=oe({color:p.color},l));var g=he(te(p),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:d,triggerEvent:f},!1);if(X(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else Q(c)&&(g.name=c(g.name,g));var m=new de(g,null,this.ecModel);return ft(m,Xo.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:N.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:he({lineStyle:{color:N.color.neutral20}},Ei.axisLine),axisLabel:Cs(Ei.axisLabel,!1),axisTick:Cs(Ei.axisTick,!1),splitLine:Cs(Ei.splitLine,!0),splitArea:Cs(Ei.splitArea,!0),indicator:[]},t}(pe),mk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=U(i,function(s){var l=s.model.get("showName")?s.name:"",u=new At(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});T(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),v=s.get("show"),f=l.get("color"),h=u.get("color"),p=G(f)?f:[f],d=G(h)?h:[h],g=[],y=[];function m(k,P,B){var E=B%P.length;return k[E]=k[E]||[],E}if(i==="circle")for(var S=n[0].getTicksCoords(),_=a.cx,x=a.cy,b=0;b<S.length;b++){if(c){var w=m(g,p,b);g[w].push(new on({shape:{cx:_,cy:x,r:S[b].coord}}))}if(v&&b<S.length-1){var w=m(y,d,b);y[w].push(new jl({shape:{cx:_,cy:x,r0:S[b].coord,r:S[b+1].coord}}))}}else for(var C,A=U(n,function(k,P){var B=k.getTicksCoords();return C=C==null?B.length-1:Math.min(B.length-1,C),U(B,function(E){return a.coordToPoint(E.coord,P)})}),D=[],b=0;b<=C;b++){for(var M=[],L=0;L<n.length;L++)M.push(A[L][b]);if(M[0]&&M.push(M[0].slice()),c){var w=m(g,p,b);g[w].push(new Dt({shape:{points:M}}))}if(v&&D){var w=m(y,d,b-1);y[w].push(new Nt({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var I=l.getLineStyle(),R=u.getAreaStyle();T(y,function(k,P){this.group.add(Ut(k,{style:oe({stroke:"none",fill:d[P%d.length]},R),silent:!0}))},this),T(g,function(k,P){this.group.add(Ut(k,{style:oe({fill:"none",stroke:p[P%p.length]},I),silent:!0}))},this)},t.type="radar",t}(Ve),Sk=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(or),_k=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=U(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new Sk(o,new zr);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],v=Math.abs(i-c.angle);
7v<o&&(s=c,l=u,o=v)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=lt(t,e).refContainer,n=t.get("center"),i=Math.min(a.width,a.height)/2;this.cx=Y(n[0],a.width)+a.x,this.cy=Y(n[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(X(o)||we(o))&&(o=[0,o]),this.r0=Y(o[0],i),this.r=Y(o[1],i),T(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;T(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();T(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new zr;o.setExtent(0,i),o.setInterval(1),T(a,function(s,l){P1(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();function xk(r){r.registerCoordinateSystem("radar",_k),r.registerComponentModel(yk),r.registerComponentView(mk),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function bk(r){ue(xk),r.registerChartView(dk),r.registerSeriesModel(gk),r.registerLayout(hk),r.registerProcessor(_i("radar")),r.registerPreprocessor(pk)}var qh=ve();function wk(r,t,e){qh(r)[t]=e}function Tk(r,t,e){var a=qh(r),n=a[t];n===e&&(a[t]=null)}function my(r,t){return!!qh(r)[t]}xr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Mt);var Ck={axisPointer:1,tooltip:1,brush:1};function z1(r,t,e){var a=t.getComponentByElement(r.topTarget);if(!a||a===e||Ck.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===e)return!1;var i=tn(a),o=tn(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var dn=function(r){O(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=Z(a._mousedownHandler,a),i=Z(a._mousemoveHandler,a),o=Z(a._mouseupHandler,a),s=Z(a._mousewheelHandler,a),l=Z(a._pinchHandler,a);return a.enable=function(u,c){var v=c.zInfo,f=tn(v.component),h=f.z,p=f.zlevel,d={component:v.component,z:h,zlevel:p,z2:ne(v.z2,-1/0)},g=H({},c.triggerInfo);this._opt=oe(H({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Oi(e,"mousedown",n,d),Oi(e,"mousemove",i,d),Oi(e,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(Oi(e,"mousewheel",s,d),Oi(e,"pinch",l,d)))},a.disable=function(){this._enabled=!1,Bi(e,"mousedown",n),Bi(e,"mousemove",i),Bi(e,"mouseup",o),Bi(e,"mousewheel",s),Bi(e,"pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,a,n){var i=this._opt,o=i.zInfoParsed;
7if(z1(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,a,n)),u&&s.isInClip&&!s.isInClip(e,a,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,a,n,i){var o=e.target;if(!o&&this._checkPointer(e,a,n))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(ed(e)||Ni(e))){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this._checkPointer(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var a=this._zr;if(!(e.gestureEvent==="pinch"||my(a,"globalPan")||Ni(e))){var n=e.offsetX,i=e.offsetY;if(!this._dragging||!al("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,c=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&ca(e.event),e.__ecRoamConsumed=!0,Sy(this,"pan","moveOnMouseMove",e,{dx:u,dy:c,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Ni(e)){var a=this._zr;if(!ed(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&a.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Ni(e)){var a=al("zoomOnMouseWheel",e,this._opt),n=al("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),f=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(my(this._zr,"globalPan")||Ni(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(ca(i.event),i.__ecRoamConsumed=!0,Sy(e,a,n,i,o))},t}(li);function Ni(r){return r.__ecRoamConsumed}var Ak=ve();function du(r){var t=Ak(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Oi(r,t,e,a){for(var n=du(r),i=n.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;
7if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:a}),Dk(r,t)}function Bi(r,t,e){for(var a=du(r),n=a.roam[t]||[],i=0;i<n.length;i++)if(n[i].listener===e){n.splice(i,1),n.length||Mk(r,t);return}}function Dk(r,t){var e=du(r);e.uniform[t]||r.on(t,e.uniform[t]=function(a){var n=e.roam[t];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function Mk(r,t){var e=du(r),a=e.uniform;a[t]&&(r.off(t,a[t]),a[t]=null)}function Sy(r,t,e,a,n){n.isAvailableBehavior=Z(al,null,e,a),r.trigger(t,n)}function al(r,t,e){var a=e[r];return!r||a&&(!X(a)||t.event[a+"Key"])}function jh(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function Jh(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=t,o=Qh(o,i);var s=o/r.zoom;r.zoom=o,F1(n,e,a,s),n.dirty()}function G1(r,t,e,a,n,i){var o=new Se(0,0,0,0);a.enable(r.get("roam"),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(u,c,v){return o.copy(e.getBoundingRect()),o.applyTransform(e.getComputedTransform()),o.contain(c,v)},isInClip:function(u,c,v){return!i||i.contain(c,v)}}}),n.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;n.zoom=s?s.getZoom():1;var l=r.subType+"Roam";a.off("pan").off("zoom").on("pan",function(u){jh(n,u.dx,u.dy),t.dispatchAction({seriesId:r.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){Jh(n,u.scale,u.originX,u.originY),t.dispatchAction({seriesId:r.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),t.updateLabelLayout()})}function _y(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function gu(r,t,e){var a=r.getZoom(),n=r.getCenter(),i=t.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,r.setCenter(_y(r,o))),i!=null&&(i=Qh(a*i,e)/a,F1(r,t.originX,t.originY,i),r.updateTransform(),r.setCenter(_y(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function F1(r,t,e,a){r.x-=(t-r.x)*(a-1),r.y-=(e-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function Qh(r,t){if(t){var e=t.min||0,a=t.max||1/0;r=Math.max(Math.min(a,r),e)}return r}var Ik=K(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Lk=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=t,this._parsedXML=hC(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=kk(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&pC(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,Pt(a!=null)}catch(g){throw new Error(`Invalid svg format 8`+g.message)}var n=new J;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,v=void 0,f=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(c=0,f=o):s&&(c=s.y,f=s.height),u==null||c==null){var h=a.getBoundingRect();u==null&&(u=h.x,v=h.width),c==null&&(c=h.y,f=h.height)}l=this._boundingRect=new Se(u,c,v,f)}if(s){var p=dC(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new ye({shape:l.plain()}));var d=[];return T(e.named,function(g){Ik.get(g.svgNodeTagLower)!=null&&(d.push(g),Pk(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function Pk(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function kk(r){var t=[],e=K();return T(r,function(a){if(a.namedFrom==null){var n=new zL(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var lf=[126,25],xy="åæµ·è¯¸å²",Ia=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,
80],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Ma=0;Ma<Ia.length;Ma++)for(var An=0;An<Ia[Ma].length;An++)Ia[Ma][An][0]/=10.5,Ia[Ma][An][1]/=-10.5/.75,Ia[Ma][An][0]+=lf[0],Ia[Ma][An][1]+=lf[1];function Rk(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===xy)return;t.push(new Fb(xy,U(Ia,function(a){return{type:"polygon",exterior:a}}),lf))}}var Ek={åæµ·è¯¸å²:[32,80],广ä¸:[0,-10],馿¸¯:[10,5],æ¾³é¨:[-10,10],天津:[5,5]};function Nk(r,t){if(r==="china"){var e=Ek[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var Ok=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Bk(r,t){r==="china"&&t.name==="å°æ¹¾"&&t.geometries.push({type:"polygon",exterior:Ok[0]})}var Vk="name",zk=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=K(),this._mapName=t,this._specialAreas=a,this._geoJSON=Fk(e)}return r.prototype.load=function(t,e){e=e||Vk;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:Gk(n)})}var i=K(),o=[];return T(a.regions,function(s){var l=s.name;t&&$(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new Se(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?FL(a,t):[]}catch(i){throw new Error(`Invalid geoJson format 9`+i.message)}return Rk(e,n),T(n,function(i){var o=i.name;Nk(e,i),Bk(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function Gk(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function Fk(r){return X(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Vi=K();const Gr={registerMap:function(r,t,e){if(t.svg){var a=new Lk(r,t.svg);Vi.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new zk(r,n,e);Vi.set(r,a)}},getGeoResource:function(r){return Vi.get(r)},getMapForUser:function(r){var t=Vi.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Vi.get(r);if(a)return a.load(t,e)}};var ep=["rect","circle","line","ellipse","polygon","polyline","path"],Hk=K(ep),Wk=K(ep.concat(["g"])),Uk=K(ep.concat(["g"])),H1=ve();function As(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function by(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var W1=function(){function r(t){var e=this.group=new J,a=this._transformGroup=new J;e.add(a),this.uid=di("ec_map_draw"),this._controller=new dn(t.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new J),a.add(this._svgGroup=new J)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(S){!s&&S.getHostGeoModel()===t&&(s=S.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this._transformGroup,v=l.getTransformInfo(),f=v.raw,h=v.roam,p=!u.childAt(0)||i,d=t.getShallow("clip",!0),g;d?(g=l.getViewRect().clone(),this.group.setClipPath(new ye({shape:g.clone()}))):this.group.removeClipPath(),p?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):xe(c,h,t);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=K(),a=K(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function v(h){for(var p=[],d=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],d);y&&p.push(y)}return p}function f(h){return{shape:{points:v(h)}}}n.removeAll(),T(t.geo.regions,function(h){var p=h.name,d=e.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=e.set(p,new J),n.add(d),y=s?s.indexOfName(p):null,m=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var S=m.get("silent",!0);S!=null&&(d.silent=S),a.set(p,{dataIdx:y,regionModel:m})}var _=[],x=[];T(h.geometries,function(C){if(C.type==="polygon"){var A=[C.exterior].concat(C.interiors||[]);u&&(A=My(A,u)),T(A,function(M){_.push(new Nt(f(M)))})}else{var D=C.points;u&&(D=My(D,u,!0)),T(D,function(M){x.push(new Dt(f(M)))})}});var b=c(h.getCenter(),l&&l.project);function w(C,A){if(C.length){var D=new Xf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});d.add(D),wy(t,D,y,m),Ty(t,D,p,m,o,y,b),A&&(by(D),T(D.states,by))}}w(_),w(x,!0)}),e.each(function(h,p){var d=a.get(p),g=d.dataIdx,y=d.regionModel;Cy(t,h,p,y,o,g),Ay(t,h,p,y,o),Dy(t,h,p,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=K(),i=!1;T(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,v=o.el,f=u?u.indexOfName(s):null,h=l.getRegionModel(s);Hk.get(c)!=null&&v instanceof $a&&wy(t,v,f,h),v instanceof $a&&(v.culling=!0);var p=h.get("silent",!0);if(p!=null&&(v.silent=p),v.z2EmphasisLift=0,!o.namedFrom&&(Uk.get(c)!=null&&Ty(t,v,s,h,l,f,null),Cy(t,v,s,h,l,f),Ay(t,v,s,h,l),Wk.get(c)!=null)){var d=Dy(t,v,s,h,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(v)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Qa(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=Gr.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Gr.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a,n){var i=t.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(t.get("roam")||!1,{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(c,v,f){return i.containPoint([v,f])}
9,isInClip:function(c,v,f){return!e||e.contain(v,f)}}});var l=t.mainType;function u(){var c={type:"geoRoam",componentType:l};return c[l+"Id"]=t.id,c}o.off("pan").on("pan",function(c){this._mouseDownFlag=!1,jh(s,c.dx,c.dy),n.dispatchAction(H(u(),{dx:c.dx,dy:c.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(c){this._mouseDownFlag=!1,Jh(s,c.scale,c.originX,c.originY),n.dispatchAction(H(u(),{totalZoom:s.zoom,zoom:c.scale,originX:c.originX,originY:c.originY,animation:{duration:0}}))},this)},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=H1(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function wy(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=As(n),u=As(i),c=As(s),v=As(o),f=r.data;if(f){var h=f.getItemVisual(e,"style"),p=f.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=qn(p,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=v,Qa(t)}function Ty(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var v=l?e:i,f=void 0;(!s||i>=0)&&(f=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;vt(t,st(a),{labelFetcher:f,labelDataIndex:v,defaultText:e},h);var p=t.getTextContent();if(p&&(H1(p).ignore=p.ignore,t.textConfig&&o)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Cy(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):ee(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Ay(r,t,e,a,n){r.data||Wr({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Dy(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ge(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&PA(t,n,e),o}function My(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),T(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}var Yk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new W1(n);o.add(s.group),s.draw(e,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,v=u.offset,f=new on({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+v*9,cy:c[1],r:3},silent:!0,z2:8+(v?0:fi+1)});if(!v){var h=e.mainSeries.getData(),p=i.getName(l),d=h.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(d);vt(f,st(g),{labelFetcher:{getFormattedLabel:function(S,_){return e.getFormattedLabel(d,_)}},defaultText:p}),f.disableLabelAnimation=!0,y.get("position")||f.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){dl(f,S)}}o.add(f)}}})},t.type="map",t}(Ie),Zk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if
9(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=xi(this,{coordDimensions:["value"],encodeDefaulter:se(wh,this)}),n=K(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=Gr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(c){var v=c.name,f=n.get(v),h=c.properties&&c.properties.echartsStyle,p;f==null?(p={name:v},i.push(p)):p=a.getRawDataItem(f),h&&he(p,h)}),a.appendData(i),a},t.prototype.getHostGeoModel=function(){if(ax(this).kind!==cr.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var v=l[c].originalData.indexOfName(s),f=i.mapDimension("value");isNaN(l[c].originalData.get(f,v))||u.push(l[c].name)}return tt("section",{header:u.join(", "),noHeader:!u.length,blocks:[tt("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=rt(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=N.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border,areaColor:N.color.background},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{areaColor:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},nameProperty:"name"},t}(ke);function Xk(r,t){var e={};return T(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,c=0;c<u;c++)s=Math.min(s,e[i][c]),l=Math.max(l,e[i][c]),o+=e[i][c];var v;return t==="min"?v=s:t==="max"?v=l:t==="average"?v=o/u:v=o,u===0?NaN:v})}function $k(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),T(t,function(e,a){for(var n=Xk(U(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function Kk(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};T(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var v=l.getName(c),f=s.getRegion(v);if(!(!f||isNaN(u))){var h=n[v]||0,p=s.dataToPoint(f.getCenter());n[v]=h+1,l.setItemLayout(c,{point:p,offset:h})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var Iy=mt,gn=function(r){O(t,r);function t(e,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Vn,n._rawTransformable=new Vn,n.name=e,n._opt=a,n}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new Se(e,a,n,i),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=ne
9w Se(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Se(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&e&&(e=[Y(e[0],a.api.getWidth()),Y(e[1],a.api.getWidth())]),this._centerOption=te(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=Qh(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,a=this._rect;e&&a&&(this._center=[Y(e[0],a.width,a.x),Y(e[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=mt([],s,n),o=mt([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),jS(this.transform||(this.transform=[]),a.transform||rr()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Er(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new Vn;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Iy(n,e,i):bt(n,e)},t.prototype.pointToData=function(e,a,n){n=n||[];var i=this.invTransform;return i?Iy(n,e,i):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,a,n){var i=Ly(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Ly(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Vn);function Ly(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var qk={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},U1=["lng","lat"],uf=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e,{api:n.api,ecModel:n.ecModel})||this;i.dimensions=U1,i.type="geo",i._nameCoordMap=K(),i.map=a;var o=n.projection,s=Gr.load(a,n.nameMap,n.nameProperty),l=Gr.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=qk[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var f=0;f<u.length;f++){var h=u[f].getBoundingRect(o);v=v||h.clone(),v.union(h)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:ne(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Se(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(X(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e,a,n){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.pointToProjected(e,n)},t.prototype.pointToProjected=function(e,a){return r.prototype.pointToData.call(this,e,0,a)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=Py(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Py(a);return i===this?i.pointToData(n):null},t}(gn);ft(uf,gn);function Py(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Ue).models[0]||{}).coordinateSystem:null}function ky(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(x,b,w,C){for(var A=w-x,D=C-b,M=0;M<=100;M++){var L=M/100,I=i.project([x+A*L,b+D*L]);
9e_(a,a,I),t_(n,n,I)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var v=this.getBoundingRect(),f=r.get("layoutCenter"),h=r.get("layoutSize"),p=lt(r,t).refContainer,d=v.width/v.height*this.aspectScale,g=!1,y,m;f&&h&&(y=[Y(f[0],p.width)+p.x,Y(f[1],p.height)+p.y],m=Y(h,Math.min(p.width,p.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(m)&&(g=!0));var S;if(g)S={},d>1?(S.width=m,S.height=m/d):(S.height=m,S.width=m*d),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var _=r.getBoxLayoutParams();_.aspect=d,S=Fe(_,p),S=lx(r,S,d)}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function jk(r,t){T(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var Jk=function(){function r(){this.dimensions=U1}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new uf(l+s,l,H({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=ky,u.resize(o,e)}),t.eachSeries(function(o){Uo({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",Ue).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),T(i,function(o,s){var l=U(o,function(c){return c.get("nameMap")}),u=new uf(s,s,H({nameMap:qf(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=yt.apply(null,U(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=ky,u.resize(o[0],e),T(o,function(c){c.coordinateSystem=u,jk(u,c)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=K(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Gr.load(e,a,n);return T(l.regions,function(u){var c=u.name,v=o.get(c),f=u.properties&&u.properties.echartsStyle;v||(v={name:c},i.push(v)),f&&he(v,f)}),i},r}(),Y1=new Jk,Qk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n);var i=Gr.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color=e.defaultItemStyleColor||N.color.backgroundTint)}qa(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=Y1.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Zn(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new de(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},K()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new de(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(Q(i))return o.status=a,i(o);if(X(i))return i.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},regions:[]},t}(pe),eR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new W1(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;Fa(e.target,function(n){return(a=ee(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ee(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ve);function tR(r,t,e){Gr.registerMap(r,t,e)}function Z1(r){r.registerCoordinateSystem("geo",Y1),r.registerComponentModel(Qk),r.registerComponentView(eR),r.registerImpl("registerMap",tR),r.registerImpl("getMap",function(e){return Gr.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);
9var u=l.coordinateSystem;T(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var c=[];T(o,function(v,f){o[f]&&c.push(f)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType;i||(e.geoId!=null?i="geo":e.seriesId!=null&&(i="series")),i||(i="series"),a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=gu(s,e,o.get("scaleLimit"));o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&T(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function rR(r){ue(Z1),r.registerChartView(Yk),r.registerSeriesModel(Zk),r.registerLayout(Kk),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,$k),Jx("map",r.registerAction)}function aR(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function nR(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hier
9Node.i?a[r.hierNode.i-1]:null;if(e.length){oR(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=sR(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function iR(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function Ry(r){return arguments.length?r:cR}function Qi(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function oR(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function sR(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,v=s.hierNode.modifier;s=cc(s),i=vc(i),s&&i;){n=cc(n),o=vc(o),n.hierNode.ancestor=r;var f=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);f>0&&(uR(lR(s,r,e),r,f),u+=f,l+=f),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}s&&!cc(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!vc(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,e=r)}return e}function cc(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function vc(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function lR(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function uR(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function cR(r,t){return r.parentNode===t.parentNode?1:2}var vR=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),fR=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new vR},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,v=1-c,f=Y(a.forkPosition,1),h=[];h[c]=o[c],h[v]=o[v]+(l[v]-o[v])*f,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[c]=s[c],e.lineTo(h[0],h[1]),h[c]=l[c],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];e.moveTo(d[0],d[1]),h[c]=d[c],e.lineTo(h[0],h[1])}},t}(Ne),hR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new J,e}return t.prototype.init=function(e,a){this._controller=new dn(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,null,a,n);var u=this._data;i.diff(u).add(function(c){Ey(i,c)&&Ny(i,c,null,s,e)}).update(function(c,v){var f=u.getItemGraphicEl(v);if(!Ey(i,c)){f&&By(u,v,f,s,e);return}Ny(i,c,f,s,e)}).remove(function(c){var v=u.getItemGraphicEl(c);v&&By(u,c,v,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,v){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:v})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,a){var n=e.getData(),i=[];n.each(function(v){var f=n.getItemLayout(v);f&&!isNaN(f.x)&&!isNaN(f.y)&&i.push([+f.x,+f.y])});var o=[],s=[];a_(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=new gn(null,{api:a,ecModel:e.ecModel});c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center")),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,n,i){var o=this;G1(e,i,this.group,this._controller,this._controllerHost,a),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(e)})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Ie);function Ey(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function Ny(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:N.color.neutral00,c=r.tree.root,v=o.parentNode===c?o:o.parentNode||o,f=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),p=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:h,d=o.getLayout();i?(e=new $o(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=p.x,e.y=p.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=d.rawX,e.__radialRawY=d.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,xe(e,{x:d.x,y:d.y},n);var g=e.getSymbolPath();if(n.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),S=y.children.length,_=void 0,x=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};_=Math.atan2(b.y-m.y,b.x-m.x),_<0&&(_=Math.PI*2+_),x=b.x<m.x,x&&(_=_-Math.PI)}else _=Math.atan2(d.y-m.y,d.x-m.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=d.x<m.x,x&&(_=_-Math.PI)):(x=d.x>m.x,x||(_=_-Math.PI));var w=x?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}
9var L=s.get(["emphasis","focus"]),I=L==="relative"?co(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(ee(e).focus=I),pR(n,o,c,e,p,h,d,a),e.__edge&&(e.onHoverStateChange=function(R){if(R!=="blur"){var k=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===zo||dl(e.__edge,R)}})}function pR(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),c=r.get("layout"),v=r.getOrient(),f=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=a.__edge=new Jl({shape:cf(c,v,f,n,n)})),xe(d,{shape:cf(c,v,f,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}d||(d=a.__edge=new fR({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),xe(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&!(u==="polyline"&&!t.isExpand)&&(d.useStyle(oe({strokeNoScale:!0,fill:null},p)),ot(d,l,"lineStyle"),Qa(d),s.add(d))}function Oy(r,t,e,a,n){var i=t.tree.root,o=X1(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),v=c.__edge,f=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),h=a.get("edgeShape"),p=a.get("layout"),d=a.get("orient"),g=a.get(["lineStyle","curveness"]);f&&(h==="curve"?va(f,{shape:cf(p,d,g,l,l),style:{opacity:0}},a,{cb:function(){e.remove(f)},removeOpt:n}):h==="polyline"&&a.get("layout")==="orthogonal"&&va(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(f)},removeOpt:n}))}}function X1(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function By(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=X1(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};va(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){Oy(u,r,a,n,l)}),Oy(i,r,a,n,l)}function cf(r,t,e,a,n){var i,o,s,l,u,c,v,f;if(r==="radial"){u=a.rawX,v=a.rawY,c=n.rawX,f=n.rawY;var h=Qi(u,v),p=Qi(u,v+(f-v)*e),d=Qi(c,f+(v-f)*e),g=Qi(c,f);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=a.x,v=a.y,c=n.x,f=n.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*e,o=v,s=c+(u-c)*e,l=f),(t==="TB"||t==="BT")&&(i=u,o=v+(f-v)*e,s=c,l=f+(v-f)*e);return{x1:u,y1:v,x2:c,y2:f,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Xt=ve();function $1(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,K1(t,e,r),T(e,function(a){T(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,se(dR,r))})}),t.wrapMethod("cloneShallow",se(yR,r)),T(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,se(gR,r))}),Pt(e[t.dataType]===t)}function dR(r,t){if(_R(this)){var e=H({},Xt(this).datas);e[this.dataType]=t,K1(t,e,r)}else tp(t,this.dataType,Xt(this).mainData,r);return t}function gR(r,t){return r.struct&&r.struct.update(),t}function yR(r,t){return T(Xt(t).datas,function(e,a){e!==t&&tp(e.cloneShallow(),a,t,r)}),t}function mR(r){var t=Xt(this).mainData;return r==null||t==null?t:Xt(t).datas[r]}function SR(){var r=Xt(this).mainData;return r==null?[{data:r}]:U(at(Xt(r).datas),function(t){return{type:t,data:Xt(r).datas[t]}})}function _R(r){return Xt(r).mainData===r}function K1(r,t,e){Xt(r).datas={},T(t,function(a,n){tp(a,n,r,e)})}function tp(r,t,e,a){Xt(e).datas[t]=r,Xt(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=mR,r.getLinkedDataAll=SR}var xR=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){Q(t)&&(a=e,e=t,t=null),t=t||{},X(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),rp=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(c,v){var f=c.value;o=Math.max(o,G(f)?f.length:1),i.push(c);var h=new xR(it(c.name,""),n);v?bR(h,v):n.root=h,n._nodes.push(h);var p=c.children;if(p)for(var d=0;d<p.length;d++)s(p[d],h)}n.root.updateDepthAndHeight(0);var l=Zo(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Ct(l,e);return u.initData(i),a&&a(u),$1({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function bR(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Mo(r,t,e){if(r&&ge(t,r.type)>=0){var a=e.getData().tree.root,n=r.targetNode;if(X(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function q1(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function ap(r,t){var e=q1(r);return ge(e,t)>=0}function yu(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var wR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{}
9,i=new de(n,this,this.ecModel),o=rp.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var f=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=f&&f.collapsed!=null?!f.collapsed:v.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return tt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=yu(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:N.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ke);function TR(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)t(i,e)}function zi(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function CR(r,t){r.eachSeriesByType("tree",function(e){AR(e,t)})}function AR(r,t){var e=lt(r,t).refContainer,a=Fe(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=Ry(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(i=a.width,o=a.height,s=Ry());var l=r.getData().tree.root,u=l.children[0];if(u){aR(l),TR(u,nR,s),l.hierNode.modifier=-u.hierNode.prelim,zi(u,iR);var c=u,v=u,f=u;zi(u,function(_){var x=_.getLayout().x;x<c.getLayout().x&&(c=_),x>v.getLayout().x&&(v=_),_.depth>f.depth&&(f=_)});var h=c===v?1:s(c,v)/2,p=h-c.getLayout().x,d=0,g=0,y=0,m=0;if(n==="radial")d=i/(v.getLayout().x+h+p),g=o/(f.depth-1||1),zi(u,function(_){y=(_.getLayout().x+p)*d,m=(_.depth-1)*g;var x=Qi(y,m);_.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var S=r.getOrient();S==="RL"||S==="LR"?(g=o/(v.getLayout().x+h+p),d=i/(f.depth-1||1),zi(u,function(_){m=(_.getLayout().x+p)*g,y=S==="LR"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:y,y:m},!0)})):(S==="TB"||S==="BT")&&(d=i/(v.getLayout().x+h+p),g=o/(f.depth-1||1),zi(u,function(_){y=(_.getLayout().x+p)*d,m=S==="TB"?(_.depth-1)*g:o-(_.depth-1)*g,_.setLayout({x:y,y:m},!0)}))}}}function DR(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");H(s,o)})})}function MR(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=gu(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function IR(r){r.registerChartView(hR),r.registerSeriesModel(wR),r.registerLayout(CR),r.registerVisual(DR),MR(r)}var Vy=["treemapZoomToNode","treemapRender","treemapMove"];function LR(r){for(var t=0;t<Vy.length;t++)r.registerAction({type:Vy[t],update:"updateView"},Mt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Mo(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=ap(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function j1(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(n){for(var i=n;i&&i.depth>
91;)i=i.parentNode;var o=kv(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var PR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};J1(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new de({itemStyle:o},this,a);i=e.levels=kR(i,a);var l=U(i||[],function(v){return new de(v,s,a)},this),u=rp.createTree(n,this,c);function c(v){v.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),d=p?l[p.depth]:null;return f.parentModel=d||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return tt("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=yu(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=K(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){j1(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:N.size.l,top:N.size.xxxl,right:N.size.l,bottom:N.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"â¶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:N.size.m,emptyItemWidth:25,itemStyle:{color:N.color.backgroundShade,textStyle:{color:N.color.secondary}},emphasis:{itemStyle:{color:N.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:N.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:N.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ke);function J1(r){var t=0;T(r.children,function(a){J1(a);var n=a.value;G(n)&&(n=n[0]),t+=n});var e=r.value;G(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),G(r.value)?r.value[0]=e:r.value=e}function kR(r,t){var e=Le(t.get("color")),a=Le(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;T(r,function(s){var l=new de(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var RR=8,zy=8,fc=5,ER=function(){function r(t){this.group=new J,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),v=lt(t,e).refContainer,f={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=Fe(f,v);this._prepare(a,h,u),this._renderContent(t,h,p,s,l,u,c,n),su(o,f,v)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=it(n.getModel().get("name"),""),o=a.getTextRect
9(i),s=Math.max(o.width+RR*2,e.emptyItemWidth);e.totalWidth+=s+zy,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,c=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),f=e.totalWidth,h=e.renderList,p=i.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var g=h[d],y=g.node,m=g.width,S=g.text;f>a.width&&(f-=m-c,m=c,S=null);var _=new Nt({shape:{points:NR(u,0,m,v,d===h.length-1,d===0)},style:oe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new _e({style:Pe(o,{text:S})}),textConfig:{position:"inside"},z2:fi*1e4,onclick:se(l,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Pe(s,{text:S}),_.ensureState("emphasis").style=p,Ge(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),OR(_,t,y),u+=m+zy}},r.prototype.remove=function(){this.group.removeAll()},r}();function NR(r,t,e,a,n,i){var o=[[n?r:r-fc,t],[r+e,t],[r+e,t+a],[n?r:r-fc,t+a]];return!i&&o.splice(2,0,[r+e+fc,t+a/2]),!n&&o.push([r,t+a/2]),o}function OR(r,t,e){ee(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&yu(e,t)}}var BR=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}();function VR(){return new BR}var vf=J,Gy=ye,Fy=3,Hy="label",Wy="upperLabel",zR=fi*10,GR=fi*2,FR=fi*3,La=Ja([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Uy=function(r){var t=La(r);return t.stroke=t.fill=t.lineWidth=null,t},Ol=ve(),HR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Gi(),e}return t.prototype.render=function(e,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(ge(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Mo(i,s,e),u=i&&i.type,c=e.layoutInfo,v=!this._oldTree,f=this._storage,h=u==="treemapRootToNode"&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),d=e.get("animation"),g=this._doRender(p,e,h);d&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,e,h):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new vf,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,n){var i=a.getData().tree,o=this._oldTree,s=Gi(),l=Gi(),u=this._storage,c=[];function v(m,S,_,x){return WR(a,l,u,n,s,c,m,S,_,x)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var f=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===h.width&&p.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:f,renderFinally:y};function d(m,S,_,x,b){x?(S=m,T(m,function(A,D){!A.isRemoved()&&C(D,D)})):new Vr(S,m,w,w).add(C).update(C).remove(se(C,null)).execute();function w(A){return A.getId()}function C(A,D){var M=A!=null?m[A]:null,L=D!=null?S[D]:null,I=v(M,L,_,b);I&&d(M&&M.viewChildren||[],L&&L.viewChildren||[],I,x,b+1)}}function g(m){var S=Gi();return m&&T(m,function(_,x){var b=S[x];
9T(_,function(w){w&&(b.push(w),Ol(w).willDelete=!0)})}),S}function y(){T(f,function(m){T(m,function(S){S.parent&&S.parent.remove(S)})}),T(c,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(Q(o)?0:o)||0,u=(Q(s)?null:s)||"cubicOut",c=VR();T(a.willDeleteEls,function(v,f){T(v,function(h,p){if(!h.invisible){var d=h.parent,g,y=Ol(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=f==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),T(this._storage,function(v,f){T(v,function(h,p){var d=a.lastsForAnimation[f][p],g={};d&&(h instanceof J?d.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=d.oldX,h.y=d.oldY):(d.oldShape&&(g.shape=H({},h.shape),h.setShape(d.oldShape)),d.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(Z(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this,n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;n||(n=this._controller=new dn(e.getZr()),n.on("pan",Z(this._onPan,this)),n.on("zoom",Z(this._onZoom,this))),n.enable(o.get("roam"),{api:e,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,l,u){var c=a._containerGroup;return c?c.getBoundingRect().contain(l-c.x,u-c.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>Fy||Math.abs(e.dy)>Fy)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Se(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var v=c.zoom=c.zoom||1;if(v*=i,u){var f=u.min||0,h=u.max||1/0;v=Math.max(Math.min(h,v),f)}var p=v/c.zoom;c.zoom=v;var d=this.seriesModel.layoutInfo;a-=d.x,n-=d.y;var g=rr();Ka(g,g,[-a,-n]),gC(g,g,[p,p]),Ka(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Sl(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ER(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(ap(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gi(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Ie);function Gi(){return{nodeGroup:[],background:[],content:[]}}function WR(r,t,e,a,n,i,o,s,l,u){if(!o)return;
9var c=o.getLayout(),v=r.getData(),f=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,d=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,_=c.upperHeight,x=S&&S.length,b=f.getModel("itemStyle"),w=f.getModel(["emphasis","itemStyle"]),C=f.getModel(["blur","itemStyle"]),A=f.getModel(["select","itemStyle"]),D=b.get("borderRadius")||0,M=ce("nodeGroup",vf);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),Ol(M).nodeWidth=h,Ol(M).nodeHeight=p,c.isAboveViewRoot)return M;var L=ce("background",Gy,u,GR);L&&z(M,L,x&&c.upperLabelHeight);var I=f.getModel("emphasis"),R=I.get("focus"),k=I.get("blurScope"),P=I.get("disabled"),B=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(x)go(M)&&za(M,!1),L&&(za(L,!P),v.setItemGraphicEl(o.dataIndex,L),xv(L,B,k));else{var E=ce("content",Gy,u,FR);E&&F(M,E),L.disableMorphing=!0,L&&go(L)&&za(L,!1),za(M,!P),v.setItemGraphicEl(o.dataIndex,M);var V=f.getShallow("cursor");V&&E.attr("cursor",V),xv(M,B,k)}return M;function z(fe,le,Ce){var Ae=ee(le);if(Ae.dataIndex=o.dataIndex,Ae.seriesIndex=r.seriesIndex,le.setShape({x:0,y:0,width:h,height:p,r:D}),g)W(le);else{le.invisible=!1;var Re=o.getVisual("style"),qe=Re.stroke,ze=Uy(b);ze.fill=qe;var Me=La(w);Me.fill=w.get("borderColor");var He=La(C);He.fill=C.get("borderColor");var _t=La(A);if(_t.fill=A.get("borderColor"),Ce){var Yr=h-2*d;q(le,qe,Re.opacity,{x:d,y:0,width:Yr,height:_})}else le.removeTextContent();le.setStyle(ze),le.ensureState("emphasis").style=Me,le.ensureState("blur").style=He,le.ensureState("select").style=_t,Qa(le)}fe.add(le)}function F(fe,le){var Ce=ee(le);Ce.dataIndex=o.dataIndex,Ce.seriesIndex=r.seriesIndex;var Ae=Math.max(h-2*d,0),Re=Math.max(p-2*d,0);if(le.culling=!0,le.setShape({x:d,y:d,width:Ae,height:Re,r:D}),g)W(le);else{le.invisible=!1;var qe=o.getVisual("style"),ze=qe.fill,Me=Uy(b);Me.fill=ze,Me.decal=qe.decal;var He=La(w),_t=La(C),Yr=La(A);q(le,ze,qe.opacity,null),le.setStyle(Me),le.ensureState("emphasis").style=He,le.ensureState("blur").style=_t,le.ensureState("select").style=Yr,Qa(le)}fe.add(le)}function W(fe){!fe.invisible&&i.push(fe)}function q(fe,le,Ce,Ae){var Re=f.getModel(Ae?Wy:Hy),qe=it(f.get("name"),null),ze=Re.getShallow("show");vt(fe,st(f,Ae?Wy:Hy),{defaultText:ze?qe:null,inheritColor:le,defaultOpacity:Ce,labelFetcher:r,labelDataIndex:o.dataIndex});var Me=fe.getTextContent();if(Me){var He=Me.style,_t=$f(He.padding||0);Ae&&(fe.setTextConfig({layoutRect:Ae}),Me.disableLabelLayout=!0),Me.beforeUpdate=function(){var br=Math.max((Ae?Ae.width:fe.shape.width)-_t[1]-_t[3],0),es=Math.max((Ae?Ae.height:fe.shape.height)-_t[0]-_t[2],0);(He.width!==br||He.height!==es)&&Me.setStyle({width:br,height:es})},He.truncateMinChar=2,He.lineOverflow="truncate",re(He,Ae,c);var Yr=Me.getState("emphasis");re(Yr?Yr.style:null,Ae,c)}}function re(fe,le,Ce){var Ae=fe?fe.text:null;if(!le&&Ce.isLeafRoot&&Ae!=null){var Re=r.get("drillDownIcon",!0);fe.text=Re?Re+" "+Ae:Ae}}function ce(fe,le,Ce,Ae){var Re=m!=null&&e[fe][m],qe=n[fe];return Re?(e[fe][m]=null,Oe(qe,Re)):g||(Re=new le,Re instanceof $a&&(Re.z2=UR(Ce,Ae)),Ke(qe,Re)),t[fe][y]=Re}function Oe(fe,le){var Ce=fe[y]={};le instanceof vf?(Ce.oldX=le.x,Ce.oldY=le.y):Ce.oldShape=H({},le.shape)}function Ke(fe,le){var Ce=fe[y]={},Ae=o.parentNode,Re=le instanceof J;if(Ae&&(!a||a.direction==="drillDown")){var qe=0,ze=0,Me=n.background[Ae.getRawIndex()];!a&&Me&&Me.oldShape&&(qe=Me.oldShape.width,ze=Me.oldShape.height),Re?(Ce.oldX=0,Ce.oldY=ze):Ce.oldShape={x:qe,y:ze,width:0,height:0}}Ce.fadein=!Re}}function UR(r,t){return r*zR+t}var Io=T,YR=ie,Bl=-1,ct=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=te(t);this.type=a,this.mappingMethod=e,this._normalizeData=$R[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(hc(n),ZR(n)):e==="category"?n.categories?XR(n):hc(n,!0):(Pt(e!=="linear"||n.dataExtent),hc(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},r.listVisualTypes=function(){return at(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){ie(t)?T(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=G(t)?[]:ie(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Io(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(G(t))t=t.slice();else if(YR(t)){var e=[];Io(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||X(l)&&l===t+"")return o;a&&f(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,v=u.close;if(c){if(c[0]===-1/0){if(Ms(v[1],t,c[1]))return o}else if(c[1]===1/0){if(Ms(v[0],c[0],t))return o}else if(Ms(v[0],c[0],t)&&Ms(v[1],t,c[1]))return o;a&&f(c[0],o),a&&f(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function f(h,p){var d=Math.abs(h-t);d<i&&(i=d,n=p)}},r.visualHandlers={color:{applyVisual:Fi("color"),getColorMapper:function(){var t=this.option;return Z(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),eo.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Au(e,t.parsedVisual,n),i?n:$s(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return $s(Au(t,this.option.parsedVisual),"rgba")},category:eo,piecewise:function(t,e){var a=hf.call(this,e);return a==null&&(a=$s(Au(t,this.option.parsedVisual),"rgba")),a},fixed:Pa}},colorHue:Ds(function(t,e){return na(t,e)}),colorSaturation:Ds(function(t,e){return na(t,null,e)}),colorLightness:Ds(function(t,e){return na(t,null,null,e)}),colorAlpha:Ds(function(t,e){return vl(t,e)}),decal:{applyVisual:Fi("decal"),_normalizedToVisual:{linear:null,category:eo,piecewise:null,fixed:null}},opacity:{applyVisual:Fi("opacity"),_normalizedToVisual:ff([0,1])},liftZ:{applyVisual:Fi("liftZ"),_normalizedToVisual:{linear:Pa,category:Pa,piecewise:Pa,fixed:Pa}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:Yy,category:eo,piecewise:function(t,e){var a=hf.call(this,e);return a==null&&(a=Yy.call(this,t)),a},fixed:Pa}},symbolSize:{applyVisual:Fi("symbolSize"),_normalizedToVisual:ff([0,1])}},r}();function ZR(r){var t=r.pieceList;r.hasSpecialVisual=!1,T(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function XR(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Io(t,function(o,s){e[o]=s}),!G(a)){var n=[];ie(a)?Io(a,function(o,s){var l=e[s];n[l??Bl]=o}):n[Bl]=a,a=Q1(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function hc(r,t){var e=r.visual,a=[];ie(e)?Io(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),Q1(r,a)}function Ds(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:ff([0,1])}}function Yy(r){var t=this.option.visual;return t[Math.round(Te(r,[0,1],[0,t.length-1],!0))]||{}}function Fi(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function eo(r){var t=this.option.visual;return t[this.option.loop&&r!==Bl?r%t.length:r]}function Pa(){return this.option.visual[0]}function ff(r){return{linear:function(t){return Te(t,r,this.option.visual,!0)},category:eo,piecewise:function(t,e){var a=hf.call(this,e);return a==null&&(a=Te(t,r,this.option.visual,!0)),a},fixed:Pa}}function hf(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=ct.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function Q1(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=U(t,function(e){var a=n_(e);return a||[0,0,0,1]})),t}var $R={linear:function(r){return Te(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=ct.findPieceIndex(r,t,!0);if(e!=null)return Te(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Bl},fixed:Mt};function Ms(r,t,e){return r?t<=e:t<e}var KR="itemStyle",ew=ve();const qR={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||tw(e,{},r.getViewRoot().getAncestors(),r)}};function tw(r,t,e,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(KR),l=jR(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),v=s.get("borderColorSaturation"),f;v!=null&&(f=Zy(l),c=JR(v,f)),u.stroke=c;var h=r.viewChildren;if(!h||!h.length)f=Zy(l),u.fill=f;else{var p=QR(r,n,i,s,l,h);T(h,function(d,g){if(d.depth>=e.length||d===e[d.depth]){var y=eE(n,l,d,g,p,a);tw(d,y,e,a)}})}}}function jR(r,t,e){var a=H({},t),n=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function Zy(r){var t=pc(r,"color");
9if(t){var e=pc(r,"colorAlpha"),a=pc(r,"colorSaturation");return a&&(t=na(t,null,null,a)),e&&(t=vl(t,e)),t}}function JR(r,t){return t!=null?na(t,null,null,r):null}function pc(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function QR(r,t,e,a,n,i){if(!(!i||!i.length)){var o=dc(t,"color")||n.color!=null&&n.color!=="none"&&(dc(t,"colorAlpha")||dc(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(c==="index"||c==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var f=new ct(v);return ew(f).drColorMappingBy=c,f}}}function dc(r,t){var e=r.get(t);return G(e)&&e.length?{name:t,range:e}:null}function eE(r,t,e,a,n,i){var o=H({},t);if(n){var s=n.type,l=s==="color"&&ew(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Lo=Math.max,Vl=Math.min,Xy=yt,np=T,rw=["itemStyle","borderWidth"],tE=["itemStyle","gapWidth"],rE=["upperLabel","show"],aE=["upperLabel","height"];const nE={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=lt(r,e).refContainer,o=Fe(r.getBoxLayoutParams(),i),s=n.size||[],l=Y(Xy(o.width,s[0]),i.width),u=Y(Xy(o.height,s[1]),i.height),c=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],f=Mo(a,v,r),h=c==="treemapRender"||c==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),d=q1(p);if(c!=="treemapMove"){var g=c==="treemapZoomToNode"?cE(r,f,p,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};p.setLayout(S),aw(p,m,!1,0),S=p.getLayout(),np(d,function(x,b){var w=(d[b+1]||p).getValue();x.setLayout(H({dataExtent:[w,w],borderWidth:0,upperHeight:0},S))})}var _=r.getData().tree.root;_.setLayout(vE(o,h,f),!0),r.setLayoutInfo(o),nw(_,new Se(-o.x,-o.y,e.getWidth(),e.getHeight()),d,p,0)}};function aw(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(rw),u=s.get(tE)/2,c=iw(s),v=Math.max(l,c),f=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:c},!0),n=Lo(n-2*f,0),i=Lo(i-f-h,0);var p=n*i,d=iE(r,s,p,t,e,a);if(d.length){var g={x:f,y:h,width:n,height:i},y=Vl(n,i),m=1/0,S=[];S.area=0;for(var _=0,x=d.length;_<x;){var b=d[_];S.push(b),S.area+=b.getLayout().area;var w=uE(S,y,t.squareRatio);w<=m?(_++,m=w):(S.area-=S.pop().getLayout().area,$y(S,y,g,u,!1),y=Vl(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&$y(S,y,g,u,!0),!e){var C=s.get("childrenVisibleMin");C!=null&&p<C&&(e=!0)}for(var _=0,x=d.length;_<x;_++)aw(d[_],t,e,a+1)}}}function iE(r,t,e,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=De(o,function(h){return!h.isRemoved()}),sE(o,s);var u=lE(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=oE(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,v=o.length;c<v;c++){var f=o[c].getValue()/u.sum*e;o[c].setLayout({area:f})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function oE(r,t,e,a,n){if(!a)return e;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),e}function sE(r,t){return t&&r.sort(function(e,a){var n=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return n===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}),r}function lE(r,t,e){for(var a=0,n=0,i=t.length;n<i;n++)a+=t[n].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],np(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function uE(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Lo(u*a/l,l/(u*n)):1/0}function $y(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],c=t?r.area/t:0;(n||c>e[l[o]])&&(c=e[l[o]]);for(var v=0,f=r.length;v<f;v++){var h=r[v],p={},d=c?h.getLayout().area/c:0,g=p[l[o]]=Lo(c-2*a,0),y=e[s[i]]+e[l[i]]-u,m=v===f-1||y<d?y:d,S=p[l[i]]=Lo(m-2*a,0);p[s[o]]=e[s[o]]+Vl(a,g/2),p[s[i]]=u+Vl(a,S/2),u+=m,h.setLayout(p,!0)}e[s[o]]+=c,e[l[o]]-=c}function cE(r,t,e,a,n){var i=(t||{}).node,o=[a,n];if(!i||i===e)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,v=s.children,f=0,h=v.length;f<h;f++)c+=v[f].getValue();var p=i.getValue();if(p===0)return o;u*=c/p;var d=s.getModel(),g=d.get(rw),y=Math.max(g,iw(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>id&&(u=id),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,n*m]}function vE(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var n=e.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function nw(r,t,e,a,n){var i=r.getLayout(),o=e[n],s=o&&o===r;if(!(o&&!s||n===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Se(t.x-i.x,t.y-i.y,t.width,t.height);np(r.viewChildren||[],function(u){nw(u,l,e,a,n+1)})}}function iw(r){return r.get(rE)?r.get(aE):0}function fE(r){r.registerSeriesModel(PR),r.registerChartView(HR),r.registerVisual(qR),r.registerLayout(nE),LR(r)}function hE(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){we(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function pE(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],v=0;v<c.length;v++){var f=l.getShallow(c[v],!0);f!=null&&a.setItemVisual(o,c[v],f)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){X(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");H(c,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],f=0;f<v.length;f++)n.setItemVisual(o,v[f],a.getItemVisual(l,v[f]))}})})}function Is(r){return r instanceof Array||(r=[r,r]),r}function dE(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Is(t.get("edgeSymbol")),i=Is(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Is(s.getShallow("symbol",!0)),c=Is(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),f=a.ensureUniqueItemVisual(o,"style");switch(H(f,v),f.stroke){case"source":{var h=l.node1.getVisual("style");f.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");f.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var pf="-->",mu=function(r){return r.get("autoCurveness")||null},ow=function(r,t){var e=mu(r),a=20,n=[];if(we(e))a=e;else if(G(e)){r.__curvenessList=e;return}t>a&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Po=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(pf)},sw=function(r){var t=r.split(pf);return[t[0],t[2],t[1]].join(pf)}
9,gE=function(r,t){var e=Po(r.node1,r.node2,t);return t.__edgeMap[e]},yE=function(r,t){var e=df(Po(r.node1,r.node2,t),t),a=df(Po(r.node2,r.node1,t),t);return e+a},df=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function mE(r){mu(r)&&(r.__curvenessList=[],r.__edgeMap={},ow(r))}function SE(r,t,e,a){if(mu(e)){var n=Po(r,t,e),i=e.__edgeMap,o=i[sw(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function ip(r,t,e,a){var n=mu(t),i=G(n);if(!n)return null;var o=gE(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=yE(r,t);ow(t,u),r.lineStyle=r.lineStyle||{};var c=Po(r.node1,r.node2,t),v=t.__curvenessList,f=i||u%2?0:1;if(o.isForward)return v[f+s];var h=sw(c),p=df(h,t),d=v[s+p+f];return a?i?n&&n[0]===0?(p+f)%2?d:-d:((p%2?0:1)+f)%2?d:-d:(p+f)%2?d:-d:v[s+p+f]}function lw(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),op(e,r)}}function op(r,t){r.eachEdge(function(e,a){var n=Fr(e.getModel().get(["lineStyle","curveness"]),-ip(e,t,a,!0),0),i=ia(e.node1.getLayout()),o=ia(e.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),e.setLayout(s)})}function _E(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.getData(),o=[];T(n.dimensions,function(f){o=o.concat(i.mapDimensionsAll(f))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var v=i.get(o[c],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}op(i.graph,e)}else(!a||a==="none")&&lw(e)})}function to(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,n=t.getZoom(),i=(n-1)*e+1;return i/a}function ro(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Ky=Math.PI,gc=[];function sp(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(e){var f=n.pointToData(a),h=f[0],p=f[1],d=[h-l,p-u];Vo(d,d),yC(d,d,c),e.setLayout([l+d[0],u+d[1]],!0);var g=r.get(["circular","rotateLabel"]);uw(e,g,l,u)}xE[t](r,s,o,c,l,u,v),s.eachEdge(function(y,m){var S=Fr(y.getModel().get(["lineStyle","curveness"]),ip(y,r,m),0),_=ia(y.node1.getLayout()),x=ia(y.node2.getLayout()),b,w=(_[0]+x[0])/2,C=(_[1]+x[1])/2;+S&&(S*=3,b=[l*S+w*(1-S),u*S+C*(1-S)]),y.setLayout([_,x,b])})}}}var xE={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var v=c.getValue("value"),f=u*(l?v:1)/2;s+=f,c.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=f})},symbolSize:function(r,t,e,a,n,i,o){var s=0;gc.length=o;var l=to(r);t.eachNode(function(v){var f=ro(v);isNaN(f)&&(f=2),f<0&&(f=0),f*=l;var h=Math.asin(f/2/a);isNaN(h)&&(h=Ky/2),gc[v.dataIndex]=h,s+=h*2});var u=(2*Ky-s)/o/2,c=0;t.eachNode(function(v){var f=u+gc[v.dataIndex];c+=f,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=f})}};function uw(r,t,e,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var c=l[0]<e;c&&(u=u-Math.PI);var v=c?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var f=s.ensureState("emphasis");H(f.textConfig||(f.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function bE(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&sp(t,"symbolSize")})}var Dn=pv;function wE(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,c=0;c<a.length;c++){var v=a[c];v.p||(v.p=mC(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=ia(v.p),v.edges=null}var f=e.friction==null?.6:e.friction,h=f,p,d;return{warmUp:function(){h=f*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(a,n);for(var y=[],m=a.length,S=0;S<n.length;S++){var _=n[S];if(!_.ignoreForceLayout){var x=_.n1,b=_.n2;zn(y,b.p,x.p);var w=td(y)-_.d,C=b.w/(x.w+b.w);isNaN(C)&&(C=0),Vo(y,y),!x.fixed&&Dn(x.p,x.p,y,C*w*h),!b.fixed&&Dn(b.p,b.p,y,-(1-C)*w*h)}}for(var S=0;S<m;S++){var A=a[S];A.fixed||(zn(y,l,A.p),Dn(A.p,A.p,y,u*h))}for(var S=0;S<m;S++)for(var x=a[S],D=S+1;D<m;D++){var b=a[D];zn(y,b.p,x.p);var w=td(y);w===0&&(jf(y,Math.random()-.5,Math.random()-.5),w=1);var M=(x.rep+b.rep)/w/w;!x.fixed&&Dn(x.pp,x.pp,y,M),!b.fixed&&Dn(b.pp,b.pp,y,-M)}for(var L=[],S=0;S<m;S++){var A=a[S];A.fixed||(zn(L,A.p,A.pp),Dn(A.p,A.p,L,h),bt(A.pp,A.p))}h=h*.992;var I=h<.01;d&&d(a,n,I),g&&g(I)}}}function TE(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(S){var _=i.getId(S);i.setItemLayout(S,a[_]||[NaN,NaN])}):!l||l==="none"?lw(t):l==="circular"&&sp(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),v=s.get("repulsion"),f=s.get("edgeLength"),h=G(v)?v:[v,v],p=G(f)?f:[f,f];p=[p[1],p[0]];var d=i.mapArray("value",function(S,_){var x=i.getItemLayout(_),b=Te(S,u,h);return isNaN(b)&&(b=(h[0]+h[1])/2),{w:b,rep:b,fixed:i.getItemModel(_).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(S,_){var x=n.getEdgeByIndex(_),b=Te(S,c,p);
9isNaN(b)&&(b=(p[0]+p[1])/2);var w=x.getModel(),C=Fr(x.getModel().get(["lineStyle","curveness"]),-ip(x,t,_,!0),0);return{n1:d[x.node1.dataIndex],n2:d[x.node2.dataIndex],d:b,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=wE(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,_){for(var x=0,b=S.length;x<b;x++)S[x].fixed&&bt(S[x].p,n.getNodeByIndex(x).getLayout())}),m.afterStep(function(S,_,x){for(var b=0,w=S.length;b<w;b++)S[b].fixed||n.getNodeByIndex(b).setLayout(S[b].p),a[i.getId(b)]=S[b].p;for(var b=0,w=_.length;b<w;b++){var C=_[b],A=n.getEdgeByIndex(b),D=C.n1.p,M=C.n2.p,L=A.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],bt(L[0],D),bt(L[1],M),+C.curveness&&(L[2]=[(D[0]+M[0])/2-(D[1]-M[1])*C.curveness,(D[1]+M[1])/2-(M[0]-D[0])*C.curveness]),A.setLayout(L)}}),t.forceLayout=m,t.preservedPoints=a,m.step()}else t.forceLayout=null})}function CE(r,t,e){var a=lt(r,t),n=H(r.getBoxLayoutParams(),{aspect:e}),i=Fe(n,a.refContainer);return lx(r,i,e)}function AE(r,t){var e=[];return r.eachSeriesByType("graph",function(a){Uo({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(p){var d=i.getItemModel(p);return[+d.get("x"),+d.get("y")]}),s=[],l=[];a_(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=CE(a,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var v=l[0]-s[0],f=l[1]-s[1],h=new gn(null,{api:t,ecModel:r});return h.zoomLimit=a.get("scaleLimit"),h.setBoundingRect(s[0],s[1],v,f),h.setViewRect(c.x,c.y,c.width,c.height),h.setCenter(a.get("center")),h.setZoom(a.get("zoom")),e.push(h),h}}),e}var qy=ut.prototype,yc=Jl.prototype,cw=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(cw);function mc(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var vw=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new cw},t.prototype.buildPath=function(e,a){mc(a)?qy.buildPath.call(this,e,a):yc.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return mc(this.shape)?qy.pointAt.call(this,e):yc.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=mc(a)?[a.x2-a.x1,a.y2-a.y1]:yc.tangentAt.call(this,e);return Vo(n,n)},t}(Ne),Sc=["fromSymbol","toSymbol"];function jy(r){return"_"+r+"Type"}function Jy(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=mi(n),u=fn(o||0,l);return a+l+u+(i||"")+(s||"")}function Qy(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=mi(n),u=fn(o||0,l),c=rt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function DE(r){var t=new vw({name:"line",subPixelOptimize:!0});return gf(t.shape,r),t}function gf(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var lp=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=e.getItemVisual(a,"z2"),l=DE(o);l.shape.percent=0,Be(l,{z2:ne(s,0),shape:{percent:1}},i,a),this.add(l),T(Sc,function(u){var c=Qy(u,e,a);this.add(c),this[jy(u)]=Jy(u,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};gf(l.shape,s),xe(o,l,i,a),T(Sc,function(u){var c=Jy(u,e,a),v=jy(u);if(this[v]!==c){this.remove(this.childOfName(u));var f=Qy(u,e,a);this.add(f)}this[v]=c},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,v=n&&n.emphasisDisabled,f=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(a),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),v=d.get("disabled"),f=d.get("focus"),h=d.get("blurScope"),c=st(p)}var g=e.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(Sc,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var C=0;C<It.length;C++){var A=It[C],D=o.getState(A);if(D){var M=D.style||{},L=w.ensureState(A),I=L.style||(L.style={});M.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(I.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);vt(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,
9w,e.dataType)}},inheritColor:y||N.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(a):isFinite(m)?Je(m):m)+""});var S=this.getTextContent();if(S){var _=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=_.get("position")||"middle";var x=_.get("distance");G(x)||(x=[x,x]),S.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Ge(this,f,h,v)},t.prototype.highlight=function(){Or(this)},t.prototype.downplay=function(){Br(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");gf(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),v=l.pointAt(u),f=zn([],v,c);Vo(f,f);function h(D,M){var L=D.__specifiedRotation;if(L==null){var I=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else D.attr("rotation",L)}if(a&&(a.setPosition(c),h(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(v),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,_=l.tangentAt(S),x=[_[1],-_[0]],b=l.pointAt(S);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=_[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(_[1],_[0]);v[0]<c[0]&&(C=Math.PI+C),i.rotation=C}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=m,d="top";break;default:A=0,d="middle"}switch(i.__position){case"end":i.x=f[0]*y+v[0],i.y=f[1]*m+v[1],p=f[0]>.8?"left":f[0]<-.8?"right":"center",d=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*m+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",d=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+c[0],i.y=c[1]+A,p=_[0]<0?"right":"left",i.originX=-y*w,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+A,p="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+A,p=_[0]>=0?"right":"left",i.originX=y*w,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},t}(J),up=function(){function r(t){this.group=new J,this._LineCtor=t||lp}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=em(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=em(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!ME(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(_c(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){ya(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(_c(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!_c(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function ME(r){return r.animators&&r.animators.length>0}function em(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:st(t)}}function tm(r){return isNaN(r[0])||isNaN(r[1])}function _c(r){return r&&!tm(r[0])&&!tm(r[1])}var xc=[],bc=[],wc=[],Mn=i_,Tc=_C,rm=Math.abs;function am(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,c=.1;c<=.9;c+=.1){xc[0]=Mn(a[0],n[0],i[0],c),xc[1]=Mn(a[1],n[1],i[1],c);var v=rm(Tc(xc,t)-l);v<o&&(o=v,s=c)}for(var f=0;f<32;f++){var h=s+u;bc[0]=Mn(a[0],n[0],i[0],s),bc[1]=Mn(a[1],n[1],i[1],s),wc[0]=Mn(a[0],n[0],i[0],h),wc[1]=Mn(a[1],n[1],i[1],h);var v=Tc(bc,t)-l;if(rm(v)<.01)break;var p=Tc(wc,t)-l;u/=2,v<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Cc(r,t){var e=[],a=SC,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[ia(u[0]),ia(u[1])],u[2]&&u.__original.push(ia(u[2])));var f=u.__original;if(u[2]!=null){if(bt(n[0],f[0]),bt(n[1],f[2]),bt(n[2],f[1]),c&&c!=="none"){var h=ro(s.node1),p=am(n,f[0],h*t);a(n[0][0],n[1][0],n[2][0],p,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],p,e),n[0][1]=e[3],n[1][1]=e[4]}if(v&&v!=="none"){var h=ro(s.node2),p=am(n,f[1],h*t);a(n[0][0],n[1][0],n[2][0],p,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],p,e),n[1][1]=e[1],n[2][1]=e[2]}bt(u[0],n[0]),bt(u[1],n[2]),bt(u[2],n[1])}else{if(bt(i[0],f[0]),bt(i[1],f[1]),zn(o,i[1],i[0]),Vo(o,o),c&&c!=="none"){var h=ro(s.node1);pv(i[0],i[0],o,h*t)}if(v&&v!=="none"){var h=ro(s.node2);pv(i[1],i[1],o,-h*t)}bt(u[0],i[0]),bt(u[1],i[1])}})}var fw=ve();function IE(r){if(r)return fw(r).bridge}function nm(r,t){r&&(fw(r).bridge=t)}function im(r){return r.type==="view"}var LE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Ko,i=new up,o=this.group,s=new J;this._controller=new dn(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRen
9der=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,c=this._lineDraw;if(im(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(v):xe(this._mainGroup,v,e)}Cc(e.getGraph(),to(e));var f=e.getData();u.updateData(f);var h=e.getEdgeData();c.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,d=e.get(["force","layoutAnimation"]);p&&(s=!0,this._startForceLayoutIteration(p,n,d));var g=e.get("layout");f.graph.eachNode(function(_){var x=_.dataIndex,b=_.getGraphicEl(),w=_.getModel();if(b){b.off("drag").off("dragend");var C=w.get("draggable");C&&b.on("drag",function(D){switch(g){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,n,d),p.setFixed(x),f.setItemLayout(x,[b.x,b.y]);break;case"circular":f.setItemLayout(x,[b.x,b.y]),_.setLayout({fixed:!0},!0),sp(e,"symbolSize",_,[D.offsetX,D.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(x,[b.x,b.y]),op(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){p&&p.setUnfixed(x)}),b.setDraggable(C,!!w.get("cursor"));var A=w.get(["emphasis","focus"]);A==="adjacency"&&(ee(b).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var x=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(ee(x).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(_){uw(_,y,m,S)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;
9(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!im(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,c){return s.containPoint([u,c])},isInClip:function(l,u,c){return!e||e.contain(u,c)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(jh(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(Jh(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Cc(e.getGraph(),to(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=to(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Cc(e.getGraph(),to(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=IE(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new J,l=n.group.children(),u=i.group.children(),c=new J,v=new J;s.add(v),s.add(c);for(var f=0;f<l.length;f++){var h=l[f],p=h.children()[0],d=h.x,g=h.y,y=te(p.shape),m=H(y,{width:p.scaleX,height:p.scaleY,x:d-p.scaleX/2,y:g-p.scaleY/2}),S=te(p.style),_=new p.constructor({shape:m,style:S,z2:151});v.add(_)}for(var f=0;f<u.length;f++){var h=u[f],x=h.children()[0],S=te(x.style),m=te(x.shape),b=new vw({style:S,shape:m,z2:151});c.add(b)}o.bridge.renderContent({api:a,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},t.type="graph",t}(Ie);function In(r){return"_EC_"+r}var PE=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[In(t)]){var n=new ka(t,e);return n.hostGraph=this,this.nodes.push(n),a[In(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[In(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(we(t)&&(t=this.nodes[t]),we(e)&&(e=this.nodes[e]),t instanceof ka||(t=n[In(t)]),e instanceof ka||(e=n[In(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new hw(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof ka&&(t=t.id),e instanceof ka&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof ka||(e=this._nodesMap[In(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],v=c.node1===l?c.node2:c.node1;if(!v.__visited){if(t.call(n,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),ka=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=K(),e=K(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var c=u.inEdges,v=0,f=c.length,h=void 0,p=void 0;v<f;v++)h=c[v],p=h.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),o.push(h.node1))}for(l=0;l<s.length;){var d=s[l];l++,e.set(d.dataIndex,!0);for(var g=d.outEdges,v=0,y=g.length,m=void 0,S=void 0;v<y;v++)m=g[v],S=m.dataIndex,S>=0&&!t.hasKey(S)&&(t.set(S,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),hw=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=K(),e=K();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,c=void 0,v=void 0;l<u;l++)c=o.inEdges[l],v=c.dataIndex,v>=0&&!t.hasKey(v)&&(t.set(v,!0),a.push(c.node1))}for(i=0;i<n.length;){var f=n[i];i++,e.set(f.dataIndex,!0);for(var h=f.outEdges,l=0,u=h.length,p=void 0,d=void 0;l<u;l++)p=f.outEdges[l],d=p.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),n.push(p.node2))}return{edge:t.keys(),node:e.keys()}},r}();function pw(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}ft(ka,pw("hostGraph","data"));ft(hw,pw("hostGraph","edgeData"));function cp(r,t,e,a,n){for(var i=new PE(a),o=0;o<r.length;o++)i.addNode(yt(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],v=c.source,f=c.target;i.addEdge(v,f,u)&&(l.push(c),s.push(yt(it(c.id,null),v+" > "+f)),u++)}
9var h=e.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar"||h==="matrix")p=Ur(r,e);else{var d=Wo.get(h),g=d?d.dimensions||[]:[];ge(g,"value")<0&&g.concat(["value"]);var y=Zo(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;p=new Ct(y,e),p.initData(r)}var m=new Ct(["value"],e);return m.initData(l,s),n&&n(p,m),$1({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var kE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new bi(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),qa(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){mE(this);var s=cp(i,n,this,!0,l);return T(s.edges,function(u){SE(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var v=de.prototype.getModel;function f(p,d){var g=v.call(this,p,d);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),tt("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var v=Hx({series:this,dataIndex:e,multipleSeries:a});return v},t.prototype._updateCategoriesData=function(){var e=U(this.option.categories||[],function(n){return n.value!=null?n:H({value:0},n)}),a=new Ct(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:N.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},t}(ke);function RE(r){r.registerChartView(LE),r.registerSeriesModel(kE),r.registerProcessor(hE),r.registerVisual(pE),r.registerVisual(dE),r.registerLayout(_E),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,bE),r.registerLayout(TE),r.registerCoordinateSystem("graphView",{dimensions:gn.dimensions,create:AE}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Mt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Mt),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=gu(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var om=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;ee(i).dataType="node",i.z2=2;var o=new _e;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),c=u.getModel("emphasis"),v=e.getItemLayout(a),f=H(yr(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(f.startAngle)){h.setShape(f);return}i?h.setShape(f):xe(h,{shape:f},l,a);
9var p=H(yr(u.getModel("itemStyle"),v,!0),v);o.setShape(p),o.useStyle(e.getItemVisual(a,"style")),ot(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),ot(h,u,"itemStyle");var d=c.get("focus");Ge(this,d==="adjacency"?s.getAdjacentDataIndices():d,c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=a.getModel("label");i.ignore=!c.get("show");var v=st(a),f=n.getVisual("style");vt(i,v,{labelFetcher:{getFormattedLabel:function(m,S,_,x,b,w){return e.getFormattedLabel(m,S,"node",x,Fr(b,v.normal&&v.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:"startArc"});var h=c.get("position")||"outside",p=c.get("distance")||0,d;h==="outside"?d=o.r+p:d=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?c.get("align")||"center":l>0?"left":"right",y=h!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*d+o.cx,y:u*d+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Et),EE=function(r){O(t,r);function t(e,a,n,i){var o=r.call(this)||this;return ee(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),c=l.node1.getModel(),v=a.getItemModel(l.dataIndex),f=v.getModel("lineStyle"),h=v.getModel("emphasis"),p=h.get("focus"),d=H(yr(c.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(d.sStartAngle)||isNaN(d.tStartAngle)){g.setShape(d);return}o?(g.setShape(d),sm(g,l,e,f)):($t(g),sm(g,l,e,f),xe(g,{shape:d},s,n)),Ge(this,p==="adjacency"?l.getAdjacentDataIndices():p,h.get("blurScope"),h.get("disabled")),ot(g,v,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Ne);function sm(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(X(l)&&X(u)){var c=r.shape,v=(c.s1[0]+c.s2[0])/2,f=(c.s1[1]+c.s2[1])/2,h=(c.t1[0]+c.t2[0])/2,p=(c.t1[1]+c.t2[1])/2;o.fill=new Bo(v,f,h,p,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var NE=Math.PI/180,OE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*NE;if(i.diff(o).add(function(c){var v=i.getItemLayout(c);if(v){var f=new om(i,c,l);ee(f).dataIndex=c,s.add(f)}}).update(function(c,v){var f=o.getItemGraphicEl(v),h=i.getItemLayout(c);if(!h){f&&Lr(f,e,v);return}f?f.updateData(i,c,l):f=new om(i,c,l),s.add(f)}).remove(function(c){var v=o.getItemGraphicEl(c);v&&Lr(v,e,c)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Y(u[0],n.getWidth()),this.group.originY=Y(u[1],n.getHeight()),Be(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new EE(n,i,l,a);ee(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(n,i,l,a),s.add(c)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Lr(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Ie),BE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}
9return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new bi(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=cp(i,n,this,!0,s);return o.data}function s(l,u){var c=de.prototype.getModel;function v(h,p){var d=c.call(this,h,p);return d.resolveParentPath=f,d}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=f,h.getModel=v,h});function f(h){if(h&&(h[0]==="label"||h[1]==="label")){var p=h.slice();return h[0]==="label"?p[0]="edgeLabel":h[1]==="label"&&(p[1]="edgeLabel"),p}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),tt("nameValue",{name:c.join(" > "),value:i.value,noValue:i.value==null})}return tt("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(ke),Ac=Math.PI/180;function VE(r,t){r.eachSeriesByType("chord",function(e){zE(e,t)})}function zE(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=sx(r,t),s=o.cx,l=o.cy,u=o.r,c=o.r0,v=Math.max((r.get("padAngle")||0)*Ac,0),f=Math.max((r.get("minAngle")||0)*Ac,0),h=-r.get("startAngle")*Ac,p=h+Math.PI*2,d=r.get("clockwise"),g=d?1:-1,y=[h,p];Kf(y,!d);var m=y[0],S=y[1],_=S-m,x=e.getSum("value")===0&&n.getSum("value")===0,b=[],w=0;a.eachEdge(function(E){var V=x?1:E.getValue("value");x&&(V>0||f)&&(w+=2);var z=E.node1.dataIndex,F=E.node2.dataIndex;b[z]=(b[z]||0)+V,b[F]=(b[F]||0)+V});var C=0;if(a.eachNode(function(E){var V=E.getValue("value");isNaN(V)||(b[E.dataIndex]=Math.max(V,b[E.dataIndex]||0)),!x&&(b[E.dataIndex]>0||f)&&w++,C+=b[E.dataIndex]||0}),!(w===0||C===0)){v*w>=Math.abs(_)&&(v=Math.max(0,(Math.abs(_)-f*w)/w)),(v+f)*w>=Math.abs(_)&&(f=(Math.abs(_)-v*w)/w);var A=(_-v*w*g)/C,D=0,M=0,L=0;a.eachNode(function(E){var V=b[E.dataIndex]||0,z=A*(C?V:1)*g;Math.abs(z)<f?D+=f-Math.abs(z):(M+=Math.abs(z)-f,L+=Math.abs(z)),E.setLayout({angle:z,value:V})});var I=!1;if(D>M){var R=D/M;a.eachNode(function(E){var V=E.getLayout().angle;Math.abs(V)>=f?E.setLayout({angle:V*R,ratio:R},!0):E.setLayout({angle:f,ratio:f===0?1:V/f},!0)})}else a.eachNode(function(E){if(!I){var V=E.getLayout().angle,z=Math.min(V/L,1),F=z*D;V-F<f&&(I=!0)}});var k=D;a.eachNode(function(E){if(!(k<=0)){var V=E.getLayout().angle;if(V>f&&f>0){var z=I?1:Math.min(V/L,1),F=V-f,W=Math.min(F,Math.min(k,D*z));k-=W,E.setLayout({angle:V-W,ratio:(V-W)/V},!0)}else f>0&&E.setLayout({angle:f,ratio:V===0?1:f/V},!0)}});var P=m,B=[];a.eachNode(function(E){var V=Math.max(E.getLayout().angle,f);E.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:P,endAngle:P+V*g,clockwise:d},!0),B[E.dataIndex]=P,P+=(V+v)*g}),a.eachEdge(function(E){var V=x?1:E.getValue("value"),z=A*(C?V:1)*g,F=E.node1.dataIndex,W=B[F]||0,q=Math.abs((E.node1.getLayout().ratio||1)*z),re=W+q*g,ce=[s+c*Math.cos(W),l+c*Math.sin(W)],Oe=[s+c*Math.cos(re),l+c*Math.sin(re)],Ke=E.node2.dataIndex,fe=B[Ke]||0,le=Math.abs((E.node2.getLayout().ratio||1)*z),Ce=fe+le*g,Ae=[s+c*Math.cos(fe),l+c*Math.sin(fe)],Re=[s+c*Math.cos(Ce),l+c*Math.sin(Ce)];
9E.setLayout({s1:ce,s2:Oe,sStartAngle:W,sEndAngle:re,t1:Ae,t2:Re,tStartAngle:fe,tEndAngle:Ce,cx:s,cy:l,r:c,value:V,clockwise:d}),B[F]=re,B[Ke]=Ce})}}}function GE(r){r.registerChartView(OE),r.registerSeriesModel(BE),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,VE),r.registerProcessor(_i("chord"))}var FE=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),HE=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new FE},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),c=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,c)},t}(Ne);function WE(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=Y(e[0],t.getWidth()),s=Y(e[1],t.getHeight()),l=Y(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ls(r,t){var e=r==null?"":r+"";return t&&(X(t)?e=t.replace("{value}",e):Q(t)&&(e=t(r))),e}var UE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();
9var i=e.get(["axisLine","lineStyle","color"]),o=WE(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,v=e.getModel("axisLine"),f=v.get("roundCap"),h=f?Rl:Et,p=v.get("show"),d=v.getModel("lineStyle"),g=d.get("width"),y=[u,c];Kf(y,!l),u=y[0],c=y[1];for(var m=c-u,S=u,_=[],x=0;p&&x<i.length;x++){var b=Math.min(Math.max(i[x][0],0),1);c=u+m*b;var w=new h({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[x][1]}),w.setStyle(d.getLineStyle(["color","width"])),_.push(w),S=c}_.reverse(),T(_,function(A){return s.add(A)});var C=function(A){if(A<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=A&&(D===0?0:i[D-1][0])<A)return i[D][1];return i[D-1][1]};this._renderTicks(e,a,n,C,o,u,c,l,g),this._renderTitleAndDetail(e,a,n,C,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,C,o,u,c,l,g)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,c){for(var v=this.group,f=o.cx,h=o.cy,p=o.r,d=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),S=e.getModel("axisLabel"),_=e.get("splitNumber"),x=m.get("splitNumber"),b=Y(y.get("length"),p),w=Y(m.get("length"),p),C=s,A=(l-s)/_,D=A/x,M=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),R,k,P=0;P<=_;P++){if(R=Math.cos(C),k=Math.sin(C),y.get("show")){var B=I?I+c:c,E=new ut({shape:{x1:R*(p-B)+f,y1:k*(p-B)+h,x2:R*(p-b-B)+f,y2:k*(p-b-B)+h},style:M,silent:!0});M.stroke==="auto"&&E.setStyle({stroke:i(P/_)}),v.add(E)}if(S.get("show")){var B=S.get("distance")+I,V=Ls(Je(P/_*(g-d)+d),S.get("formatter")),z=i(P/_),F=R*(p-b-B)+f,W=k*(p-b-B)+h,q=S.get("rotate"),re=0;q==="radial"?(re=-C+2*Math.PI,re>Math.PI/2&&(re+=Math.PI)):q==="tangential"?re=-C-Math.PI/2:we(q)&&(re=q*Math.PI/180),re===0?v.add(new _e({style:Pe(S,{text:V,x:F,y:W,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:z}),silent:!0})):v.add(new _e({style:Pe(S,{text:V,x:F,y:W,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:F,originY:W,rotation:re}))}if(m.get("show")&&P!==_){var B=m.get("distance");B=B?B+c:c;for(var ce=0;ce<=x;ce++){R=Math.cos(C),k=Math.sin(C);var Oe=new ut({shape:{x1:R*(p-B)+f,y1:k*(p-B)+h,x2:R*(p-w-B)+f,y2:k*(p-w-B)+h},silent:!0,style:L});L.stroke==="auto"&&Oe.setStyle({stroke:i((P+ce/x)/_)}),v.add(Oe),C+=D}C-=D}else C+=A}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,c){var v=this.group,f=this._data,h=this._progressEls,p=[],d=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),S=m.mapDimension("value"),_=+e.get("min"),x=+e.get("max"),b=[_,x],w=[s,l];function C(D,M){var L=m.getItemModel(D),I=L.getModel("pointer"),R=Y(I.get("width"),o.r),k=Y(I.get("length"),o.r),P=e.get(["pointer","icon"]),B=I.get("offsetCenter"),E=Y(B[0],o.r),V=Y(B[1],o.r),z=I.get("keepAspect"),F;return P?F=rt(P,E-R/2,V-k,R,k,null,z):F=new HE({shape:{angle:-Math.PI/2,width:R,r:k,x:E,y:V}}),F.rotation=-(M+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function A(D,M){var L=g.get("roundCap"),I=L?Rl:Et,R=g.get("overlap"),k=R?g.get("width"):c/m.count(),P=R?o.r-k:o.r-(D+1)*k,B=R?o.r:o.r-D*k,E=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:B}});return R&&(E.z2=Te(m.get(S,D),[_,x],[100,0],!0)),E}(y||d)&&(m.diff(f).add(function(D){var M=m.get(S,D);if(d){var L=C(D,s);Be(L,{rotation:-((isNaN(+M)?w[0]:Te(M,b,w,!0))+Math.PI/2)},e),v.add(L),m.setItemGraphicEl(D,L)}if(y){var I=A(D,s),R=g.get("clip");Be(I,{shape:{endAngle:Te(M,b,w,R)}},e),v.add(I),yv(e.seriesIndex,m.dataType,D,I),p[D]=I}}).update(function(D,M){var L=m.get(S,D);if(d){var I=f.getItemGraphicEl(M),R=I?I.rotation:s,k=C(D,R);k.rotation=R,xe(k,{rotation:-((isNaN(+L)?w[0]:Te(L,b,w,!0))+Math.PI/2)},e),v.add(k),m.setItemGraphicEl(D,k)}if(y){var P=h[M],B=P?P.shape.endAngle:s,E=A(D,B),V=g.get("clip");xe(E,{shape:{endAngle:Te(L,b,w,V)}},e),v.add(E),yv(e.seriesIndex,m.dataType,D,E),p[D]=E}}).execute(),m.each(function(D){var M=m.getItemModel(D),L=M.getModel("emphasis"),I=L.get("focus"),R=L.get("blurScope"),k=L.get("disabled");if(d){var P=m.getItemGraphicEl(D),B=m.getItemVisual(D,"style"),E=B.fill;if(P instanceof Kt){var V=P.style;P.useStyle(H({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},B))}else P.useStyle(B),P.type!=="pointer"&&P.setColor(E);P.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(Te(m.get(S,D),b,[0,1],!0))),P.z2EmphasisLift=0,ot(P,M),Ge(P,I,R,k)}if(y){var z=p[D];z.useStyle(m.getItemVisual(D,"style")),z.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,ot(z,M),Ge(z,I,R,k)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=rt(s,a.cx-o/2+Y(l[0],a.r),a.cy-o/2+Y(l[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),v=+e.get("max"),f=new J,h=[],p=[],d=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new _e({silent:!0}),p[y]=new _e({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),_=new J,x=i(Te(S,[c,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+Y(w[0],o.r),A=o.cy+Y(w[1],o.r),D=h[y];D.attr({z2:g?0:2,style:Pe(b,{x:C,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),_.add(D)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+Y(L[0],o.r),R=o.cy+Y(L[1],o.r),k=Y(M.get("width"),o.r),P=Y(M.get("height"),o.r),B=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,D=p[y],E=M.get("formatter");D.attr({z2:g?0:2,style:Pe(M,{x:I,y:R,text:Ls(S,E),width:isNaN(k)?null:k,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:B})}),G_(D,{normal:M},S,function(z){return Ls(z,E)}),d&&F_(D,y,l,e,{getFormattedLabel:function(z,F,W,q,re,ce){return Ls(ce?ce.interpolatedValue:S,E)}}),_.add(D)}f.add(_)}),this.group.add(f),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Ie),YE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return xi(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine
9:{show:!0,roundCap:!1,lineStyle:{color:[[1,N.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:N.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:N.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:N.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:N.color.neutral00,borderWidth:0,borderColor:N.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:N.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:N.color.transparent,borderWidth:0,borderColor:N.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:N.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ke);function ZE(r){r.registerChartView(UE),r.registerSeriesModel(YE)}var XE=["itemStyle","opacity"],$E=function(r){O(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Dt,s=new _e;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),c=s.get(XE);c=c??1,n||$t(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Be(i,{style:{opacity:c}},o,a)):xe(i,{style:{opacity:c},shape:{points:l.points}},o,a),ot(i,s),this._updateLabel(e,a),Ge(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),c=u.label,v=e.getItemVisual(a,"style"),f=v.fill;vt(o,st(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:e.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var h=l.getModel("label"),p=h.get("color"),d=p==="inherit"?f:null;n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var g=c.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new me(g[0][0],g[0][1]):null},xe(o,{style:{x:c.x,y:c.y}},s,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Wh(n,Uh(l),{stroke:f})},t}(Nt),KE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new $E(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Lr(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ie),qE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bi(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return xi(this,{coordDimensions:["value"],encodeDefaulter:se(wh,this)})},t.prototype._defaultLabelLine=function(e){qa(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:N.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},t}(ke);function jE(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return Q(t)?n.sort(t):t!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function JE(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,f,h,p;if(c)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,v="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),p=[[f,h],[f,h]];else{var d=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");
9o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-S,f=y-5,v="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+S,f=y+5,v="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,h=m-5,v="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,h=m+5,v="center"):o==="rightTop"?(d=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=g-S,h=m-5,v="center"):(y=d+S,f=y+5,v="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],e==="horizontal"?(m=g+S,h=m+5,v="center"):(y=d+S,f=y+5,v="bottom")):o==="leftTop"?(d=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-S,h=m-5,v="center"):(y=d-S,f=y-5,v="right")):o==="leftBottom"?(d=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=g+S,h=m+5,v="center"):(y=d-S,f=y-5,v="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=g+S,h=m+5,v="center"):(y=d+S,f=y+5,v="left")),e==="horizontal"?(y=d,f=y):(m=g,h=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:f,y:h,verticalAlign:"middle",textAlign:v,inside:c}})}function QE(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),o=lt(e,t),s=Fe(e.getBoxLayoutParams(),o.refContainer),l=e.get("orient"),u=s.width,c=s.height,v=jE(a,i),f=s.x,h=s.y,p=l==="horizontal"?[Y(e.get("minSize"),c),Y(e.get("maxSize"),c)]:[Y(e.get("minSize"),u),Y(e.get("maxSize"),u)],d=a.getDataExtent(n),g=e.get("min"),y=e.get("max");g==null&&(g=Math.min(d[0],0)),y==null&&(y=d[1]);var m=e.get("funnelAlign"),S=e.get("gap"),_=l==="horizontal"?u:c,x=(_-S*(a.count()-1))/a.count(),b=function(k,P){if(l==="horizontal"){var B=a.get(n,k)||0,E=Te(B,[g,y],p,!0),V=void 0;switch(m){case"top":V=h;break;case"center":V=h+(c-E)/2;break;case"bottom":V=h+(c-E);break}return[[P,V],[P,V+E]]}var z=a.get(n,k)||0,F=Te(z,[g,y],p,!0),W;switch(m){case"left":W=f;break;case"center":W=f+(u-F)/2;break;case"right":W=f+u-F;break}return[[W,P],[W+F,P]]};i==="ascending"&&(x=-x,S=-S,l==="horizontal"?f+=u:h+=c,v=v.reverse());for(var w=0;w<v.length;w++){var C=v[w],A=v[w+1],D=a.getItemModel(C);if(l==="horizontal"){var M=D.get(["itemStyle","width"]);M==null?M=x:(M=Y(M,u),i==="ascending"&&(M=-M));var L=b(C,f),I=b(A,f+M);f+=M+S,a.setItemLayout(C,{points:L.concat(I.slice().reverse())})}else{var R=D.get(["itemStyle","height"]);R==null?R=x:(R=Y(R,c),i==="ascending"&&(R=-R));var L=b(C,h),I=b(A,h+R);h+=R+S,a.setItemLayout(C,{points:L.concat(I.slice().reverse())})}}JE(a)})}function eN(r){r.registerChartView(KE),r.registerSeriesModel(qE),r.registerLayout(QE),r.registerProcessor(_i("funnel"))}var tN=.3,rN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new J,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,v=um(e);s.diff(l).add(f).update(h).remove(p).execute();function f(g){var y=lm(s,o,g,c,u);Dc(y,s,g,v)}function h(g,y){var m=l.getItemGraphicEl(y),S=dw(s,g,c,u);s.setItemGraphicEl(g,m),xe(m,{shape:{points:S}},e,g),$t(m),Dc(m,s,g,v)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=aN(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=um(a),u=this._progressiveEls=[],c=e.start;c<e.end;c++){var v=lm(i,this._dataGroup,c,s,o);v.incremental=!0,Dc(v,i,c,l),u.push(v)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Ie);function aN(r,t,e){var a=r.model,n=r.getRect(),i=new ye({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Be(i,{shape:{width:n.width,height:n.height}},t,e),i}function dw(r,t,e,a){for(var n=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);nN(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function lm(r,t,e,a,n){var i=dw(r,e,a,n),o=new Dt({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function um(r){var t=r.get("smooth",!0);return t===!0&&(t=tN),t=Nr(t),Tt(t)&&(t=0),{smooth:t}}function Dc(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=t.getItemModel(e),i=n.getModel("emphasis");ot(r,n,"lineStyle"),Ge(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function nN(r,t){return t==="category"?r==null:r==null||isNaN(r)}var iN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return Ur(null,this,{useEncodeDefaulter:Z(oN,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){e===o&&i.push(n.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(ke);function oN(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return T(t.dimensions,function(a){var n=sN(a);e[a]=n}),e}}function sN(r){return+r.replace("dim","")}var lN=["lineStyle","opacity"],uN={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){e.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(lN,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}};function cN(r){vN(r),fN(r)}function vN(r){if(!r.parallel){var t=!1;T(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function fN(r){var t=Le(r.parallelAxis);T(t,function(e){if(ie(e)){var a=e.parallelIndex||0,n=Le(r.parallel)[a];n&&n.parallelAxisDefault&&he(e,n.parallelAxisDefault,!1)}})}var hN=5,pN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},T(dN,function(i,o){n.getZr().on(o,this._handlers[o]=Z(i,this))},this)),yi(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){xo(this,"_throttledDispatchExpand"),T(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(H({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ve),dN={mousedown:function(r){Mc(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Mc(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>hN)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Mc(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function Mc(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var gN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}
9return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&he(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=De(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);T(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(pe),yN=function(r){O(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(or);function pa(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Ln(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Ln(s,[0,o]),n=i=Ln(s,[n,i]),a=0}t[0]=Ln(t[0],e),t[1]=Ln(t[1],e);var l=Ic(t,a);t[a]+=r;var u=n||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[a]=Ln(t[a],c);var v;return v=Ic(t,a),n!=null&&(v.sign!==l.sign||v.span<n)&&(t[1-a]=t[a]+l.sign*n),v=Ic(t,a),i!=null&&v.span>i&&(t[1-a]=t[a]+v.sign*i),t}function Ic(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Ln(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Lc=T,gw=Math.min,yw=Math.max,cm=Math.floor,mN=Math.ceil,vm=Je,SN=Math.PI,_N=function(){function r(t,e,a){this.type="parallel",this._axesMap=K(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;Lc(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new yN(o,fu(u),[0,0],u.get("type"),l)),v=c.type==="category";c.onBand=v&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();Lc(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Jn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=lt(t,e).refContainer;this._rect=Fe(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,c=Ps(t.get("axisExpandWidth"),l),v=Ps(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>v&&v>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=Ps(h[1]-h[0],l),h[1]=h[0]+p;else{p=Ps(c*(v-1),l);var d=t.get("axisExpandCenter")||cm(u/2);h=[c*d-p/2],h[1]=h[0]+p}var g=(s-p)/(u-v);g<3&&(g=0);var y=[cm(vm(h[0]/c,1))+1,mN(vm(h[1]/c,1))-1],m=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Lc(a,function(o,s){var l=(n.axisExpandable?bN:xN)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:SN/2,vertical:0},v=[u[i].x+t.x,u[i].y+t.y],f=c[i],h=rr();ui(h,h,f),Ka(h,h,v),this._axesLayout[o]={position:v,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var v=void 0;if(!u)v="normal";else{v="active";for(var f=t.getValues(s,c),h=0,p=o.length;h<p;h++){var d=l[h].getActiveState(f[h]);if(d==="inactive"){v="inactive";break}}}e(v,c)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return er([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return te(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),f=v[0]!=null;if(c)f&&c&&s<i*v[0]?(u="jump",l=s-i*v[2]):f&&c&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?pa(l,n,o,"all"):u="none";else{var h=n[1]-n[0],p=o[1]*s/h;n=[yw(0,p-h/2)],n[1]=gw(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function Ps(r,t){return gw(yw(r,t[0]),t[1])}function xN(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function bN(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,
9c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function wN(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new _N(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",Ue).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var TN={create:wN},yf=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return Ja([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=te(e);if(a)for(var n=a.length-1;n>=0;n--)Zt(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t}(pe);ft(yf,Xo);var an=!0,ko=Math.min,ai=Math.max,CN=Math.pow,AN=1e4,DN=6,MN=6,fm="globalPan",IN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},LN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},hm={brushStyle:{lineWidth:2,stroke:N.color.backgroundTint,fill:N.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},PN=0,vp=function(r){O(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new J,a._uid="brushController_"+PN++,T(VN,function(n,i){this._handlers[i]=Z(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||wk(a,fm,this._uid),T(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=he(te(hm),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Tk(e,fm,this._uid),T(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};T(e,function(n){a[n.panelId]=te(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=U(e,function(f){return he(te(hm),f,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Vr(n,e,u,l).add(c).update(c).remove(v).execute(),this;function l(f,h){return(f.id!=null?f.id:a+h)+"-"+f.brushType}function u(f,h){return l(f.__brushOption,h)}function c(f,h){var p=e[f];if(h!=null&&n[h]===s)i[f]=n[h];else{var d=i[f]=h!=null?(n[h].__brushOption=p,n[h]):Sw(o,mw(o,p));fp(o,d)}}function v(f){n[f]!==s&&o.group.remove(n[f])}},t.prototype.unmount=function(){return this.enableBrush(!1),mf(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(li);function mw(r,t){var e=Su[t.brushType].createCover(r,t);return e.__brushOption=t,xw(e,t),r.group.add(e),e}function Sw(r,t){var e=hp(t);return e.endCreating&&(e.endCreating(r,t),xw(t,t.__brushOption)),t}function _w(r,t){var e=t.__brushOption;hp(t).updateCoverShape(r,t,e.range,e)}function xw(r,t){var e=t.z;e==null&&(e=AN),r.traverse(function(a){a.z=e,a.z2=e})}function fp(r,t){hp(t).updateCommon(r,t),_w(r,t)}function hp(r){return Su[r.__brushOption.brushType]}function pp(r,t,e){var a=r._panels;if(!a)return an;var n,i=r._transform;return T(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function bw(r,t){var e=r._panels;if(!e)return an;var a=t.__brushOption.panelId;return a!=null?e[a]:an}function mf(r){var t=r._covers,e=t.length;return T(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function nn(r,t){var e=U(r._covers,function(a){var n=a.__brushOption,i=te(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function kN(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=CN(n*n+i*i,.5);return o>DN}function ww(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Tw(r,t,e,a){var n=new J;return n.add(new ye({name:"main",style:dp(e),silent:!0,draggable:!0,cursor:"move",drift:se(pm,r,t,n,["n","s","w","e"]),ondragend:se(nn,t,{isEnd:!0})})),T(a,function(i){n.add(new ye({name:i.join(""),style:{opacity:0}
9,draggable:!0,silent:!0,invisible:!0,drift:se(pm,r,t,n,i),ondragend:se(nn,t,{isEnd:!0})}))}),n}function Cw(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=ai(n,MN),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,c=e[0][1],v=e[1][1],f=c-i+n/2,h=v-i+n/2,p=c-o,d=v-s,g=p+n,y=d+n;Ar(r,t,"main",o,s,p,d),a.transformable&&(Ar(r,t,"w",l,u,i,y),Ar(r,t,"e",f,u,i,y),Ar(r,t,"n",l,u,g,i),Ar(r,t,"s",l,h,g,i),Ar(r,t,"nw",l,u,i,i),Ar(r,t,"ne",f,u,i,i),Ar(r,t,"sw",l,h,i,i),Ar(r,t,"se",f,h,i,i))}function Sf(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(dp(e)),n.attr({silent:!a,cursor:a?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?_f(r,i[0]):EN(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?LN[s]+"-resize":null})})}function Ar(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(ON(gp(r,t,[[a,n],[a+i,n+o]])))}function dp(r){return oe({strokeNoScale:!0},r.brushStyle)}function Aw(r,t,e,a){var n=[ko(r,e),ko(t,a)],i=[ai(r,e),ai(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function RN(r){return Ua(r.group)}function _f(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=au(e[t],RN(r));return a[n]}function EN(r,t){var e=[_f(r,t[0]),_f(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function pm(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=Dw(t,n,i);T(a,function(u){var c=IN[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(Aw(s[0][0],s[1][0],s[0][1],s[1][1])),fp(t,e),nn(t,{isEnd:!1})}function NN(r,t,e,a){var n=t.__brushOption.range,i=Dw(r,e,a);T(n,function(o){o[0]+=i[0],o[1]+=i[1]}),fp(r,t),nn(r,{isEnd:!1})}function Dw(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function gp(r,t,e){var a=bw(r,t);return a&&a!==an?a.clipPath(e,r._transform):te(e)}function ON(r){var t=ko(r[0][0],r[1][0]),e=ko(r[0][1],r[1][1]),a=ai(r[0][0],r[1][0]),n=ai(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function BN(r,t,e){if(!(!r._brushType||zN(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=pp(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===an||s.panelId===i.panelId)&&Su[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function xf(r){var t=r.event;t.preventDefault&&t.preventDefault()}function bf(r,t,e){return r.childOfName("main").contain(t,e)}function Mw(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),kN(r)||n){if(i&&!n){o.brushMode==="single"&&mf(r);var l=te(o);l.brushType=dm(l.brushType,i),l.panelId=i===an?null:i.panelId,n=r._creatingCover=mw(r,l),r._covers.push(n)}if(n){var u=Su[dm(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(gp(r,n,r._track)),a&&(Sw(r,n),u.updateCommon(r,n)),_w(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&pp(r,t,e)&&mf(r)&&(s={isEnd:a,removeOnClick:!0});return s}function dm(r,t){return r==="auto"?t.defaultBrushType:r}var VN={mousedown:function(r){if(this._dragging)gm(this,r);else if(!r.target||!r.target.draggable){xf(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=pp(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(BN(this,r,a),this._dragging){xf(r);var n=Mw(this,r,a,!1);n&&nn(this,n)}},mouseup:function(r){gm(this,r)}};function gm(r,t){if(r._dragging){xf(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=Mw(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&nn(r,i)}}function zN(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var Su={lineX:ym(0),lineY:ym(1),rect:{createCover:function(r,t){function e(a){return a}return Tw({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=ww(r);return Aw(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){Cw(r,t,e,a)},updateCommon:Sf,contain:bf},polygon:{createCover:function(r,t){var e=new J;return e.add(new Dt({name:"main",style:dp(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Nt({name:"main",draggable:!0,drift:se(NN,r,t),ondragend:se(nn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:gp(r,t,e)})},updateCommon:Sf,contain:bf}};function ym(r){return{createCover:function(t,e){return Tw({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=ww(t),a=ko(e[0][r],e[1][r]),n=ai(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=bw(t,e);if(o!==an&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),Cw(t,e,l,n)},updateCommon:Sf,contain:bf}}function Iw(r){return r=yp(r),function(t){return N_(t,r)}}function Lw(r,t){return r=yp(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function Pw(r,t,e){var a=yp(r);return function(n,i){return a.contain(i[0],i[1])&&!z1(n,t,e)}}function yp(r){return Se.create(r)}var GN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}
9return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new vp(a.getZr())).on("brush",Z(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!FN(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new J,this.group.add(this._axisGroup),!!e.get("show")){var s=WN(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,v=e.axis.dim,f=l.getAxisLayout(v),h=H({strokeContainThreshold:c},f),p=new At(e,n,h);p.build(),this._axisGroup.add(p.group),this._refreshBrushController(h,u,e,s,c,n),Go(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),v=Se.create({x:l[0],y:-o/2,width:u,height:o});v.x-=c,v.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Iw(v),isTargetByCursor:Pw(v,s,i),getLinearBrushOtherExtent:Lw(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(HN(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=U(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ve);function FN(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function HN(r){var t=r.axis;return U(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function WN(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var UN={type:"axisAreaSelect",event:"axisAreaSelected"};function YN(r){r.registerAction(UN,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var ZN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function kw(r){r.registerComponentView(pN),r.registerComponentModel(gN),r.registerCoordinateSystem("parallel",TN),r.registerPreprocessor(cN),r.registerComponentModel(yf),r.registerComponentView(GN),ti(r,"parallel",yf,ZN),YN(r)}function XN(r){ue(kw),r.registerChartView(rN),r.registerSeriesModel(iN),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,uN)}var $N=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),KN=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $N},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){Or(this)},t.prototype.downplay=function(){Br(this)},t}(Ne),qN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new J,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new dn(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this._mainGroup,l=e.layoutInfo,u=l.width,c=l.height,v=e.getData(),f=e.getData("edge"),h=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(e,n),G1(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(p){var d=new KN,g=ee(d);g.dataIndex=p.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";
9var y=p.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),_=p.node1.getLayout(),x=p.node1.getModel(),b=x.get("localX"),w=x.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),D=A.get("localX"),M=A.get("localY"),L=p.getLayout(),I,R,k,P,B,E,V,z;d.shape.extent=Math.max(1,L.dy),d.shape.orient=h,h==="vertical"?(I=(b!=null?b*u:_.x)+L.sy,R=(w!=null?w*c:_.y)+_.dy,k=(D!=null?D*u:C.x)+L.ty,P=M!=null?M*c:C.y,B=I,E=R*(1-S)+P*S,V=k,z=R*S+P*(1-S)):(I=(b!=null?b*u:_.x)+_.dx,R=(w!=null?w*c:_.y)+L.sy,k=D!=null?D*u:C.x,P=(M!=null?M*c:C.y)+L.ty,B=I*(1-S)+k*S,E=R,V=I*S+k*(1-S),z=P),d.setShape({x1:I,y1:R,x2:k,y2:P,cpx1:B,cpy1:E,cpx2:V,cpy2:z}),d.useStyle(m.getItemStyle()),mm(d.style,h,p);var F=""+y.get("value"),W=st(y,"edgeLabel");vt(d,W,{labelFetcher:{getFormattedLabel:function(ce,Oe,Ke,fe,le,Ce){return e.getFormattedLabel(ce,Oe,"edge",fe,Fr(le,W.normal&&W.normal.get("formatter"),F),Ce)}},labelDataIndex:p.dataIndex,defaultText:F}),d.setTextConfig({position:"inside"});var q=y.getModel("emphasis");ot(d,y,"lineStyle",function(ce){var Oe=ce.getItemStyle();return mm(Oe,h,p),Oe}),s.add(d),f.setItemGraphicEl(p.dataIndex,d);var re=q.get("focus");Ge(d,re==="adjacency"?p.getAdjacentDataIndices():re==="trajectory"?p.getTrajectoryDataIndices():re,q.get("blurScope"),q.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),_=g.get(["itemStyle","borderRadius"])||0,x=new ye({shape:{x:y!=null?y*u:d.x,y:m!=null?m*c:d.y,width:d.dx,height:d.dy,r:_},style:g.getModel("itemStyle").getItemStyle(),z2:10});vt(x,st(g),{labelFetcher:{getFormattedLabel:function(w,C){return e.getFormattedLabel(w,C,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),x.disableLabelAnimation=!0,x.setStyle("fill",p.getVisual("color")),x.setStyle("decal",p.getVisual("style").decal),ot(x,g),s.add(x),v.setItemGraphicEl(p.dataIndex,x),ee(x).dataType="node";var b=S.get("focus");Ge(x,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,S.get("blurScope"),S.get("disabled"))}),v.eachItemGraphicEl(function(p,d){var g=v.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:v.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(jN(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,s=e.coordinateSystem=new gn(null,{api:a,ecModel:e.ecModel});s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Ie);function mm(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");X(a)&&X(n)&&(r.fill=new Bo(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function jN(r,t,e){var a=new ye({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Be(a,{shape:{width:r.width+20}},t,e),a}var JN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new de(o[l],this,a));var u=cp(i,n,this,!0,c);return u.data;function c(v,f){v.wrapMethod("getItemModel",function(h,p){var d=h.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h}),f.wrapMethod("getItemModel",function(h,p){var d=h.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,S=d.levelModels[m];S&&(h.parentModel=S)}return h})}}
9,t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return tt("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(e),v=c.getLayout().value,f=this.getDataParams(e,n).data.name;return tt("nameValue",{name:f!=null?f+"":null,value:v,noValue:i(v)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:N.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:N.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(ke);function QN(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=lt(e,t).refContainer,o=Fe(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),c=u.nodes,v=u.edges;tO(c);var f=De(c,function(g){return g.getLayout().value===0}),h=f.length!==0?0:e.get("layoutIterations"),p=e.get("orient"),d=e.get("nodeAlign");eO(c,v,a,n,s,l,h,p,d)})}function eO(r,t,e,a,n,i,o,s,l){rO(r,t,e,n,i,s,l),oO(r,t,i,n,a,o,s),dO(r,s)}function tO(r){T(r,function(t){var e=ua(t.outEdges,zl),a=ua(t.inEdges,zl),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function rO(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],c=[],v=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<r.length;f++)l[f]=r[f].inEdges.length,l[f]===0&&u.push(r[f]);for(var h=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),d.setLayout({depth:y?g.depth:v},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var m=0;m<d.outEdges.length;m++){var S=d.outEdges[m],_=t.indexOf(S);s[_]=0;var x=S.node2,b=r.indexOf(x);--l[b]===0&&c.indexOf(x)<0&&c.push(x)}}++v,u=c,c=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>v-1?h:v-1;o&&o!=="left"&&aO(r,o,i,w);var C=i==="vertical"?(n-e)/w:(a-e)/w;
9iO(r,C,i)}function Rw(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function aO(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}T(r,function(v){Rw(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else t==="justify"&&nO(r,a)}function nO(r,t){T(r,function(e){!Rw(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function iO(r,t,e){T(r,function(a){var n=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function oO(r,t,e,a,n,i,o){var s=sO(r,o);lO(s,t,e,a,n,o),Pc(s,n,e,a,o);for(var l=1;i>0;i--)l*=.99,uO(s,l,o),Pc(s,n,e,a,o),pO(s,l,o),Pc(s,n,e,a,o)}function sO(r,t){var e=[],a=t==="vertical"?"y":"x",n=gv(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),T(n.keys,function(i){e.push(n.buckets.get(i))}),e}function lO(r,t,e,a,n,i){var o=1/0;T(r,function(s){var l=s.length,u=0;T(s,function(v){u+=v.getLayout().value});var c=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;c<o&&(o=c)}),T(r,function(s){T(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),T(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Pc(r,t,e,a,n){var i=n==="vertical"?"x":"y";T(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,v=o.length,f=n==="vertical"?"dx":"dy",h=0;h<v;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+t;var p=n==="vertical"?a:e;if(u=c-t-p,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+t-c,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function uO(r,t,e){T(r.slice().reverse(),function(a){T(a,function(n){if(n.outEdges.length){var i=ua(n.outEdges,cO,e)/ua(n.outEdges,zl);if(isNaN(i)){var o=n.outEdges.length;i=o?ua(n.outEdges,vO,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-da(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-da(n,e))*t;n.setLayout({y:l},!0)}}})})}function cO(r,t){return da(r.node2,t)*r.getValue()}function vO(r,t){return da(r.node2,t)}function fO(r,t){return da(r.node1,t)*r.getValue()}function hO(r,t){return da(r.node1,t)}function da(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function zl(r){return r.getValue()}function ua(r,t,e){for(var a=0,n=r.length,i=-1;++i<n;){var o=+t(r[i],e);isNaN(o)||(a+=o)}return a}function pO(r,t,e){T(r,function(a){T(a,function(n){if(n.inEdges.length){var i=ua(n.inEdges,fO,e)/ua(n.inEdges,zl);if(isNaN(i)){var o=n.inEdges.length;i=o?ua(n.inEdges,hO,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-da(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-da(n,e))*t;n.setLayout({y:l},!0)}}})})}function dO(r,t){var e=t==="vertical"?"x":"y";T(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[e]-i.node2.getLayout()[e]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[e]-i.node1.getLayout()[e]})}),T(r,function(a){var n=0,i=0;T(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),T(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function gO(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),a=e.nodes,n=e.edges;if(a.length){var i=1/0,o=-1/0;T(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),T(a,function(s){var l=new ct({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&T(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function yO(r){r.registerChartView(qN),r.registerSeriesModel(JN),r.registerLayout(QN),r.registerVisual(gO),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=gu(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var Ew=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;
9o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,v=this._baseAxisDim=u[c],f=u[1-c],h=[n,i],p=h[c].get("type"),d=h[1-c].get("type"),g=t.data;if(g&&l){var y=[];T(g,function(_,x){var b;G(_)?(b=_.slice(),_.unshift(x)):G(_.value)?(b=H({},_),b.value=b.value.slice(),_.value.unshift(x)):b=_,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,S=[{name:v,type:Cl(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Cl(d),dimsDef:m.slice()}];return xi(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:se(dx,S,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),Nw=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:N.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}},animationDuration:800},t}(ke);ft(Nw,Ew,!0);var mO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),v=Sm(c,i,u,l,!0);i.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,c){var v=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(v);return}var f=i.getItemLayout(u);v?($t(v),Ow(f,v,i,u)):v=Sm(f,i,u,l),o.add(v),i.setItemGraphicEl(u,v)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Ie),SO=function(){function r(){}return r}(),_O=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new SO},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Ne);function Sm(r,t,e,a,n){var i=r.ends,o=new _O({shape:{points:n?xO(i,a,r):i}});return Ow(r,o,t,e,n),o}function Ow(r,t,e,a,n){var i=e.hostModel,o=un[n?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");ot(t,s),Ge(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function xO(r,t,e){return U(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}var uo=T;function bO(r){var t=wO(r);uo(t,function(e){var a=e.seriesModels;a.length&&(TO(e),uo(a,function(n,i){CO(n,e.boxOffsetList[i],e.boxWidthList[i])}))})}function wO(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=ge(e,n);i<0&&(i=e.length,e[i]=n,t[i]={axis:n,seriesModels:[]}),t[i].seriesModels.push(a)}),t}function TO(r){var t=r.axis,e=r.seriesModels,a=e.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;uo(e,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}uo(e,function(p){var d=p.get("boxWidth");G(d)||(d=[d,d]),o.push([Y(d[0],s)||0,Y(d[1],s)||0])});var c=s*.8-2,v=c/a*.3,f=(c-v*(a-1))/a,h=f/2-c/2;uo(e,function(p,d){i.push(h),h+=v+f,n.push(Math.min(Math.max(f,o[d][0]),o[d][1]))})}function CO(r,t,e){var a=r.coordinateSystem,n=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var v=0;v<n.count();v++){var f=n.get(u,v),h=S(f,c[2],v),p=S(f,c[0],v),d=S(f,c[1],v),g=S(f,c[3],v),y=S(f,c[4],v),m=[];_(m,d,!1),_(m,g,!0),m.push(p,d,y,g),x(m,p),x(m,y),x(m,h),n.setItemLayout(v,{initBaseline:h[s],ends:m})}function S(b,w,C){var A=n.get(w,C),D=[];D[o]=b,D[s]=A;var M;
9return isNaN(b)||isNaN(A)?M=[NaN,NaN]:(M=a.dataToPoint(D),M[o]+=t),M}function _(b,w,C){var A=w.slice(),D=w.slice();A[o]+=i,D[o]-=i,C?b.push(A,D):b.push(D,A)}function x(b,w){var C=w.slice(),A=w.slice();C[o]-=i,A[o]+=i,b.push(C,A)}}function AO(r,t){t=t||{};for(var e=[],a=[],n=t.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Zt(r[o].slice()),l=Du(s,.25),u=Du(s,.5),c=Du(s,.75),v=s[0],f=s[s.length-1],h=(n??1.5)*(c-l),p=i?v:Math.max(v,l-h),d=i?f:Math.min(f,c+h),g=t.itemNameFormatter,y=Q(g)?g({value:o}):X(g)?g.replace("{value}",o+""):o+"";e.push([y,p,l,u,c,d]);for(var m=0;m<s.length;m++){var S=s[m];if(S<p||S>d){var _=[y,S];a.push(_)}}}return{boxData:e,outliers:a}}var DO={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==pt){var a="";be(a)}var n=AO(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function MO(r){r.registerSeriesModel(Nw),r.registerChartView(mO),r.registerLayout(bO),r.registerTransform(DO)}var IO=["itemStyle","borderColor"],LO=["itemStyle","borderColor0"],PO=["itemStyle","borderColorDoji"],kO=["itemStyle","color"],RO=["itemStyle","color0"];function mp(r,t){return t.get(r>0?kO:RO)}function Sp(r,t){return t.get(r===0?PO:r>0?IO:LO)}var EO={seriesType:"candlestick",plan:gi(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=mp(s,o),l.stroke=Sp(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");H(u,l)}}}}}},NO=["color","borderColor"],OO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){ya(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var v=a.getItemLayout(c);if(s&&_m(u,v))return;var f=kc(v,c,!0);Be(f,{shape:{points:v.ends}},e,c),Rc(f,a,c,o),i.add(f),a.setItemGraphicEl(c,f)}}).update(function(c,v){var f=n.getItemGraphicEl(v);if(!a.hasValue(c)){i.remove(f);return}var h=a.getItemLayout(c);if(s&&_m(u,h)){i.remove(f);return}f?(xe(f,{shape:{points:h.ends}},e,c),$t(f)):f=kc(h),Rc(f,a,c,o),i.add(f),a.setItemGraphicEl(c,f)}).remove(function(c){var v=n.getItemGraphicEl(c);v&&i.remove(v)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),xm(e,this.group);var a=e.get("clip",!0)?qo(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=kc(s);Rc(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){xm(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ie),BO=function(){function r(){}return r}(),VO=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new BO},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Ne);function kc(r,t,e){var a=r.ends;return new VO({shape:{points:e?zO(a,r):a},z2:100})}function _m(r,t){for(var e=!0,a=0;a<t.ends.length;a++)if(r.contain(t.ends[a][0],t.ends[a][1])){e=!1;break}return e}function Rc(r,t,e,a){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,ot(r,n);var i=t.getItemLayout(e).sign;T(r.states,function(s,l){var u=n.getModel(l),c=mp(i,u),v=Sp(i,u)||c,f=s.style||(s.style={});
9c&&(f.fill=c),v&&(f.stroke=v)});var o=n.getModel("emphasis");Ge(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function zO(r,t){return U(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var GO=function(){function r(){}return r}(),Ec=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new GO},t.prototype.buildPath=function(e,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}(Ne);function xm(r,t,e,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new Ec({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Ec({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Ec({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Nc(1,o,r),Nc(-1,s,r),Nc(0,l,r),a&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Nc(r,t,e,a){var n=Sp(r,e)||mp(r,e),i=e.getModel("itemStyle").getItemStyle(NO);t.useStyle(i),t.style.fill=null,t.style.stroke=n}var Bw=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,n){var i=a.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ke);ft(Bw,Ew,!0);function FO(r){!r||!G(r.series)||T(r.series,function(t){ie(t)&&t.type==="k"&&(t.type="candlestick")})}var HO={seriesType:"candlestick",plan:gi(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=WO(r,e),n=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=U(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],c=l[1],v=l[2],f=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:h};function h(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var S=m.get(s,y),_=m.get(u,y),x=m.get(c,y),b=m.get(v,y),w=m.get(f,y),C=Math.min(_,x),A=Math.max(_,x),D=B(C,S),M=B(A,S),L=B(b,S),I=B(w,S),R=[];E(R,M,0),E(R,D,1),R.push(z(I),z(M),z(L),z(D));var k=g.getItemModel(y),P=!!k.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:bm(m,y,_,x,c,P),initBaseline:_>x?M[i]:D[i],ends:R,brushRect:V(b,w,S)})}function B(F,W){var q=[];return q[n]=W,q[i]=F,isNaN(W)||isNaN(F)?[NaN,NaN]:t.dataToPoint(q)}function E(F,W,q){var re=W.slice(),ce=W.slice();re[n]=qs(re[n]+a/2,1,!1),ce[n]=qs(ce[n]-a/2,1,!0),q?F.push(re,ce):F.push(ce,re)}function V(F,W,q){var re=B(F,q),ce=B(W,q);return re[n]-=a/2,ce[n]-=a/2,{x:re[0],y:re[1],width:a,height:ce[1]-re[1]}}function z(F){return F[n]=qs(F[n],1),F}}function p(d,g){for(var y=dr(d.count*4),m=0,S,_=[],x=[],b,w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var A=w.get(s,b),D=w.get(u,b),M=w.get(c,b),L=w.get(v,b),I=w.get(f,b);if(isNaN(A)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=bm(w,b,D,M,c,C),_[n]=A,_[i]=L,S=t.dataToPoint(_,null,x),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,_[i]=I,S=t.dataToPoint(_,null,x),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function bm(r,t,e,a,n,i){var o;return e>a?o=-1:e<a?o=1:o=i?0:t>0?r.get(n,t-1)<=a?1:-1:1,o}function WO(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=Y(ne(r.get("barMaxWidth"),n),n),o=Y(ne(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?Y(s,n):Math.max(Math.min(n/2,i),o)}function UO(r){r.registerChartView(OO),r.registerSeriesModel(Bw),r.registerPreprocessor(FO),r.registerVisual(EO),r.registerLayout(HO)}function wm(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var YO=function(r){O(t,r);function t(e,a){var n=r.call(this)||this,i=new $o(e,a),o=new J;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,
9i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=rt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}wm(o,e)},t.prototype.updateEffectAnimation=function(e){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}wm(n,e)},t.prototype.highlight=function(){Or(this)},t.prototype.downplay=function(){Br(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var n=this,i=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=mi(e.getItemVisual(a,"symbolSize")),c=e.getItemVisual(a,"style"),v=c&&c.fill,f=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var h=fn(e.getItemVisual(a,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=e.getItemVisual(a,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=a/e.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=v,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&n.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=d,Ge(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(J),ZO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new Ko(YO)},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,a,n){var i=e.getData();this.group.dirty();var o=jo("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=xC(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Ie),XO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return Ur(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(ke);function $O(r){r.registerChartView(ZO),r.registerSeriesModel(XO),r.registerLayout(jo("effectScatter"))}var Vw=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new lp(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");G(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=rt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),v=yt(a.get("delay"),function(h){return h/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;Q(v)?f=v(n):f=v,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Va(e.__p1,e.__cp1)+Va(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=i_,c=bC;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=e.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),f=e.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(f,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Va(l,s)*1.
905,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*Va(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t}(J),zw=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new Dt({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};xe(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),c=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var f=i.ensureState("emphasis");f.style=s,Ge(this,l,u,c)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.setShape("points",e.getItemLayout(a))},t}(J),KO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new zw(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=Va(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var c=(a-i[l])/(i[l+1]-i[l]),v=n[l],f=n[l+1];e.x=v[0]*(1-c)+c*f[0],e.y=v[1]*(1-c)+c*f[1];var h=e.__t<1?f[0]-v[0]:v[0]-f[0],p=e.__t<1?f[1]-v[1]:v[1]-f[1];e.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(Vw),qO=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),jO=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new qO},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],v=n[o++],f=n[o++];if(e.moveTo(u,c),i>0){var h=(u+v)/2-(c-f)*i,p=(c+f)/2-(v-u)*i;e.quadraticCurveTo(h,p,v,f)}else e.lineTo(v,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var v=i[u++],f=i[u++],h=1;h<c;h++){var p=i[u++],d=i[u++];if(rd(v,f,p,d,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],f=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(v+p)/2-(f-d)*o,y=(f+d)/2-(p-v)*o;if(wC(v,f,g,y,p,d,s,e,a))return l}else if(rd(v,f,p,d,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var c=n[u++],v=n[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(v,o),l=Math.max(v,l)}e=this._rect=new Se(i,o,s,l)}return e},t}(Ne),JO=function(){function r(){this.group=new J}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new jO({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=ee(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),Gw={seriesType:"lines",plan:gi(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,f=[],c=n.start;c<n.end;c++){var h=r.getLineCoords(c,o);e&&(s[v++]=h);for(var p=0;p<h;p++)f=t.dataToPoint(o[p],!1,f),s[v++]=f[0],s[v++]=f[1]}i.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var d=i.getItemModel(c),h=r.getLineCoords(c,o),g=[];if(e)for(var y=0;
9y<h;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(c,g)}}}}}},QO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var v=e.get("clip",!0)&&qo(e.coordinateSystem,!1,e);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Gw.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new JO:new up(o?i?KO:zw:i?Vw:lp),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Ie),eB=typeof Uint32Array>"u"?Array:Uint32Array,tB=typeof Float64Array>"u"?Array:Float64Array;function Tm(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=U(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),qf([n,e[0],e[1]])}))}var rB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Tm(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Tm(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=co(this._flatCoords,a.flatCoords),this._flatCoordsOffset=co(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;
9o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),we(e[0])){for(var n=e.length,i=new eB(n),o=new tB(n),s=0,l=0,u=0,c=0;c<n;){u++;var v=e[c++];i[l++]=s+a,i[l++]=v;for(var f=0;f<v;f++){var h=e[c++],p=e[c++];o[s++]=h,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new Ct(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),tt("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ke);function ks(r){return r instanceof Array||(r=[r,r]),r}var aB={seriesType:"lines",reset:function(r){var t=ks(r.get("symbol")),e=ks(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=ks(s.getShallow("symbol",!0)),u=ks(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function nB(r){r.registerChartView(QO),r.registerSeriesModel(rB),r.registerLayout(Gw),r.registerVisual(aB)}var iB=256,oB=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=cl.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,v=this.canvas,f=v.getContext("2d"),h=t.length;v.width=e,v.height=a;for(var p=0;p<h;++p){var d=t[p],g=d[0],y=d[1],m=d[2],S=n(m);f.globalAlpha=S,f.drawImage(s,g-c,y-c)}if(!v.width||!v.height)return v;for(var _=f.getImageData(0,0,v.width,v.height),x=_.data,b=0,w=x.length,C=this.minOpacity,A=this.maxOpacity,D=A-C;b<w;){var S=x[b+3]/256,M=Math.floor(S*(iB-1))*4;if(S>0){var L=o(S)?l:u;S>0&&(S=S*D+C),x[b++]=L[M],x[b++]=L[M+1],x[b++]=L[M+2],x[b++]=L[M+3]*S*256}else b+=4}return f.putImageData(_,0,0),v},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=cl.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=N.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();function sB(r,t,e){var a=r[1]-r[0];t=U(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function lB(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function Cm(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var uB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):Cm(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(Cm(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ya(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=ha(s,"cartesian2d"),u=ha(s,"matrix"),c,v,f,h;if(l){var p=s.getAxis("x"),d=s.getAxis("y");c=p.getBandWidth()+.5,v=d.getBandWidth()+.5,f=p.scale.getExtent(),h=d.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),S=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),b=st(e),w=e.getModel("emphasis"),C=w.get("focus"),A=w.get("blurScope"),D=w.get("disabled"),M=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=n;L<i;L++){var I=void 0,R=y.getItemVisual(L,"style");if(l){var k=y.get(M[0],L),P=y.get(M[1],L);if(isNaN(y.get(M[2],L))||isNaN(k)||isNaN(P)||k<f[0]||k>f[1]||P<h[0]||P>h[1])continue;var B=s.dataToPoint([k,P]);I=new ye({shape:{x:B[0]-c/2,y:B[1]-v/2,width:c,height:v},style:R})}else if(u){var E=s.dataToLayout([y.get(M[0],L),y.get(M[1],L)]).rect;if(Tt(E.x))continue;I=new ye({z2:1,shape:E,style:R})}else{if(isNaN(y.get(M[1],L)))continue;var V=s.dataToLayout([y.get(M[0],L)]),E=V.contentRect||V.rect;if(Tt(E.x)||Tt(E.y))continue;I=new ye({z2:1,shape:E,style:R})}if(y.hasItemOption){var z=y.getItemModel(L),F=z.getModel("emphasis");m=F.getModel("itemStyle").getItemStyle(),S=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),C=F.get("focus"),A=F.get("blurScope"),D=F.get("disabled"),b=st(z)}I.shape.r=x;var W=e.getRawValue(L),q="-";W&&W[2]!=null&&(q=W[2]+""),vt(I,b,{labelFetcher:e,labelDataIndex:L,defaultOpacity:R.opacity,defaultText:q}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=S,I.ensureState("select").style=_,Ge(I,C,A,D),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new oB;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=e.getViewRect().clone(),v=e.getRoamTransform();c.applyTransform(v);
9var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),d=Math.min(c.height+c.y,i.getHeight()),g=p-f,y=d-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(w,C,A){var D=e.dataToPoint([w,C]);return D[0]-=f,D[1]-=h,D.push(A),D}),_=n.getExtent(),x=n.type==="visualMap.continuous"?lB(_,n.option.range):sB(_,n.getPieceList(),n.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Kt({style:{width:g,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Ie),cB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return Ur(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Wo.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:N.color.primary}}},t}(ke);function vB(r){r.registerChartView(uB),r.registerSeriesModel(cB)}var fB=["itemStyle","borderWidth"],Am=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Oc=new on,hB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),v=l.master.getRect(),f={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:c,valueDim:Am[+c],categoryDim:Am[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=Mm(o,p),g=Dm(o,p,d,f),y=Im(o,f,g);o.setItemGraphicEl(p,y),i.add(y),Pm(y,f,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){i.remove(g);return}var y=Mm(o,p),m=Dm(o,p,y,f),S=Zw(o,m);g&&S!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?_B(g,f,m):g=Im(o,f,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),Pm(g,f,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&Lm(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?qo(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Lm(i,ee(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Ie);function Dm(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),f={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:v?e:null,hoverScale:v&&e.get(["emp
9hasis","scale"]),z2:e.getShallow("z",!0)||0};pB(e,i,n,a,f),dB(r,t,n,i,o,f.boundingLength,f.pxSign,c,a,f),gB(e,f.symbolScale,u,a,f);var h=f.symbolSize,p=fn(e.get("symbolOffset"),h);return yB(e,h,n,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,a,f),f}function pB(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),c;if(G(o)){var v=[Bc(s,o[0])-l,Bc(s,o[1])-l];v[1]<v[0]&&v.reverse(),c=v[u]}else o!=null?c=Bc(s,o)-l:t?c=a.coordSysExtent[i.index][u]-l:c=e[i.wh];n.boundingLength=c,t&&(n.repeatCutLength=e[i.wh]);var f=i.xy==="x",h=s.inverse;n.pxSign=f&&!h||!f&&h?c>=0?1:-1:c>0?1:-1}function Bc(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function dB(r,t,e,a,n,i,o,s,l,u){var c=l.valueDim,v=l.categoryDim,f=Math.abs(e[v.wh]),h=r.getItemVisual(t,"symbolSize"),p;G(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[v.index]=Y(p[v.index],f),p[c.index]=Y(p[c.index],a?f:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[c.index]*=(l.isHorizontal?-1:1)*o}function gB(r,t,e,a,n){var i=r.get(fB)||0;i&&(Oc.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Oc.updateTransform(),i/=Oc.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function yB(r,t,e,a,n,i,o,s,l,u,c,v){var f=c.categoryDim,h=c.valueDim,p=v.pxSign,d=Math.max(t[h.index]+s,0),g=d;if(a){var y=Math.abs(l),m=yt(r.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var _=Y(m,t[h.index]),x=Math.max(d+_*2,0),b=S?0:_*2,w=c_(a),C=w?a:km((y+b)/x),A=y-C*d;_=A/2/(S?C:Math.max(C-1,1)),x=d+_*2,b=S?0:_*2,!w&&a!=="fixed"&&(C=u?km((Math.abs(u)+b)/x):0),g=C*x-b,v.repeatTimes=C,v.symbolMargin=_}var D=p*(g/2),M=v.pathPosition=[];M[f.index]=e[f.wh]/2,M[h.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=v.bundlePosition=[];L[f.index]=e[f.xy],L[h.index]=e[h.xy];var I=v.barRectShape=H({},e);I[h.wh]=p*Math.max(Math.abs(e[h.wh]),Math.abs(M[h.index]+D)),I[f.wh]=e[f.wh];var R=v.clipShape={};R[f.xy]=-e[f.xy],R[f.wh]=c.ecSize[f.wh],R[h.xy]=0,R[h.wh]=e[h.wh]}function Fw(r){var t=r.symbolPatternSize,e=rt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Hw(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,v=i[t.valueDim.index]+o+e.symbolMargin*2;for(_p(r,function(d){d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,c<u?Yn(d,null,p(c),e,a):Yn(d,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(d)}),c++});c<u;c++){var f=Fw(e);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,n.add(f);var h=p(c);Yn(f,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},e,a)}function p(d){var g=s.slice(),y=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?y>
90:y<0)&&(m=u-1-d),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Ww(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Yn(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=Fw(e),n.add(i),Yn(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function Uw(r,t,e){var a=H({},t.barRectShape),n=r.__pictorialBarRect;n?Yn(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new ye({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Yw(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=H({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)xe(n,{shape:i},s,l);else{i[o.wh]=0,n=new ye({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],un[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function Mm(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=mB,e.isAnimationEnabled=SB,e}function mB(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function SB(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Im(r,t,e,a){var n=new J,i=new J;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?Hw(n,t,e):Ww(n,t,e),Uw(n,e,a),Yw(n,t,e,a),n.__pictorialShapeStr=Zw(r,e),n.__pictorialSymbolMeta=e,n}function _B(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;xe(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?Hw(r,t,e,!0):Ww(r,t,e,!0),Uw(r,e,!0),Yw(r,t,e,!0)}function Lm(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];_p(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),T(i,function(o){va(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function Zw(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function _p(r,t,e){T(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function Yn(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&un[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function Pm(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),v=i.get("blurScope"),f=i.get("scale");_p(r,function(d){if(d instanceof Kt){var g=d.style;d.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,f&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,vt(p,st(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:ei(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),Ge(r,c,v,i.get("disabled"))}function km(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var xB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ma(Ao.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:N.color.primary}}}),t}(Ao);function bB(r){r.registerChartView(hB),r.registerSeriesModel(xB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,se(Lb,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Pb("pictorialBar"))}var wB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,v=u.boundaryGap;s.x=0,s.y=c.y+v[0];function f(g){return g.name}var h=new Vr(this._layersSeries||[],l,f,f),p=[];h.add(Z(d,this,"add")).update(Z(d,this,"update")).remove(Z(d,this,"remove")).execute();function d(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var _=[],x=[],b,w=l[y].indices,C=0;C<w.length;C++){var A=i.getItemLayout(w[C]),D=A.x,M=A.y0,L=A.y;_.push(D,M),x.push(D,M+L),b=i.getItemVisual(w[C],"style")}var I,R=i.getItemLayout(w[0]),k=e.getModel("label"),P=k.get("margin"),B=e.getModel("emphasis");if(g==="add"){var E=p[y]=new J;I=new o1({shape:{points:_,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),E.add(I),s.add(E),e.isAnimationEnabled()&&I.setClipPath(TB(I.getBoundingRect
9(),e,function(){I.removeClipPath()}))}else{var E=S[m];I=E.childAt(0),s.add(E),p[y]=E,xe(I,{shape:{points:_,stackedOnPoints:x}},e),$t(I)}vt(I,st(e),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var V=I.getTextContent();V&&(V.x=R.x-P,V.y=R.y0+R.y/2),I.useStyle(b),i.setItemGraphicEl(y,I),ot(I,e),Ge(I,B.get("focus"),B.get("blurScope"),B.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(Ie);function TB(r,t,e){var a=new ye({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Be(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}var Vc=2,CB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new bi(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,n={},i=gv(e,function(f){return n.hasOwnProperty(f[0]+"")||(n[f[0]+""]=-1),f[2]}),o=[];i.buckets.each(function(f,h){o.push({name:h,dataList:f})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var v=o[l].dataList[c][0]+"";n[v]=l}for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,e[a]=[v,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var n=this.getReferringComponents("singleAxis",Ue).models[0],i=n.get("type"),o=De(e.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=K(),c=0,v=0;v<s.length;++v)l.push(s[v][Vc]),u.get(s[v][Vc])||(u.set(s[v][Vc],c),c++);var f=Zo(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Cl(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Ct(f,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),n=[],i=0;i<a;++i)n[i]=i;var o=e.mapDimension("single"),s=gv(n,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(v,f){return e.get(o,v)-e.get(o,f)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,n){G(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var v=Number.MAX_VALUE,f=-1,h=o[c].indices.length,p=0;p<h;++p){var d=i.get(e[0],o[c].indices[p]),g=Math.abs(d-a);g<=v&&(u=d,v=g,f=o[c].indices[p])}s.push(f)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return tt("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(ke);function AB(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Y(s[0],o.height),s[1]=Y(s[1],o.height);var u=o.height-s[0]-s[1];Rm(a,e,u)}else{s[0]=Y(s[0],o.width),s[1]=Y(s[1],o.width);var c=o.width-s[0]-s[1];Rm(a,e,c)}a.setLayout("layoutInfo",i)})}function Rm(r,t,e){if(r.count())for(var a=t.coordinateSystem,n=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=U(n,function(g){return U(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=DB(s),u=l.y0,c=e/l.max,v=n.length,f=n[0].indices.length,h,p=0;p<f;++p){h=u[p]*c,r.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h,y:s[0][p][1]*c});for(var d=1;d<v;++d)h+=s[d-1][p][1]*c,r.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:h,y:s[d][p][1]*c})}}function DB(r){for(var t=r.length,e=r[0].length,a=[],n=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<e;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<e;++c){var v=a[c]+n[c];v>i&&(i=v)}return{y0:n,max:i}}function MB(r){r.registerChartView(wB),r.registerSeriesModel(CB),r.registerLayout(AB),r.registerProcessor(_i("themeRiver"))}var IB=2,LB=4,Em=function(r){O(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=IB,o.textConfig={inside:!0},ee(o).seriesIndex=a.seriesIndex;var s=new _e({z2:LB,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ee(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),c=a.getLayout(),v=H({},c);v.label=null;var f=a.getVisual("style");f.lineJoin="bevel";var h=a.getVisual("decal");h&&(f.decal=qn(h,o));
9var p=yr(l.getModel("itemStyle"),v,!0);H(v,p),T(It,function(m){var S=s.ensureState(m),_=l.getModel([m,"itemStyle"]);S.style=_.getItemStyle();var x=yr(_,v);x&&(S.shape=x)}),e?(s.setShape(v),s.shape.r=c.r0,Be(s,{shape:{r:c.r}},n,a.dataIndex)):(xe(s,{shape:v},n),$t(s)),s.useStyle(f),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?co(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Ge(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),v=this,f=v.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);f.ignore=!d,T(po,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),S=y==="normal",_=S?f:f.ensureState(y),x=e.getFormattedLabel(h,y);S&&(x=x||a.node.name),_.style=Pe(m,{},null,y!=="normal",!0),x&&(_.style.text=x);var b=m.get("show");b!=null&&!S&&(_.ignore=!b);var w=g(m,"position"),C=S?v:v.states[y],A=C.style.fill;C.textConfig={outsideFill:m.get("color")==="inherit"?A:null,inside:w!=="outside"};var D,M=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),R=Math.PI*.5,k=Math.PI*1.5,P=Mr(I==="tangential"?Math.PI/2-l:l),B=P>R&&!fo(P-R)&&P<k;w==="outside"?(D=o.r+M,L=B?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,L="center"):L==="left"?(D=o.r0+M,L=B?"right":"left"):L==="right"&&(D=o.r-M,L=B?"left":"right"),_.style.align=L,_.style.verticalAlign=g(m,"verticalAlign")||"middle",_.x=D*u+o.cx,_.y=D*c+o.cy;var E=0;I==="radial"?E=Mr(-l)+(B?Math.PI:0):I==="tangential"?E=Mr(Math.PI/2-l)+(B?Math.PI:0):we(I)&&(E=I*Math.PI/180),_.rotation=Mr(E)});function g(y,m){var S=y.get(m);return S??i.get(m)}f.dirtyStyle()},t}(Et),wf="sunburstRootToNode",Nm="sunburstHighlight",PB="sunburstUnhighlight";function kB(r){r.registerAction({type:wf,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=Mo(t,[wf],n);if(o){var s=n.getViewRoot();s&&(t.direction=ap(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:Nm,update:"none"},function(t,e,a){t=H({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=Mo(t,[Nm],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(H(t,{type:"highlight"}))}),r.registerAction({type:PB,update:"updateView"},function(t,e,a){t=H({},t),a.dispatchAction(H(t,{type:"downplay"}))})}var RB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,v=e.get("renderLabelForZeroData"),f=[];u.eachNode(function(m){f.push(m)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(m,S){if(m.length===0&&S.length===0)return;new Vr(S,m,_,_).add(x).update(x).remove(se(x,null)).execute();function _(b){return b.getId()}function x(b,w){var C=b==null?null:m[b],A=w==null?null:S[w];d(C,A)}}function d(m,S){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,e,a,n),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var _=new Em(m,e,a,n);c.add(_),s.setItemGraphicEl(m.dataIndex,_)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new Em(m,e,a,n),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(S.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();
9i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Sl(u,c)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:wf,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Ie),EB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};Xw(n);var i=this._levelModels=U(e.levels||[],function(l){return new de(l,this,a)},this),o=rp.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var v=o.getNodeByDataIndex(c),f=i[v.depth];return f&&(u.parentModel=f),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=yu(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){j1(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ke);function Xw(r){var t=0;T(r.children,function(a){Xw(a);var n=a.value;G(n)&&(n=n[0]),t+=n});var e=r.value;G(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),G(r.value)?r.value[0]=e:r.value=e}var Om=Math.PI/180;function NB(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");G(i)||(i=[0,i]),G(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=Y(n[0],o),c=Y(n[1],s),v=Y(i[0],l/2),f=Y(i[1],l/2),h=-a.get("startAngle")*Om,p=a.get("minAngle")*Om,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&$w(g,m);var S=0;T(g.children,function(P){!isNaN(P.getValue())&&S++});var _=g.getValue(),x=Math.PI/(_||S)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(f-v)/(w||1),A=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=A?1:-1,L=function(P,B){if(P){var E=B;if(P!==d){var V=P.getValue(),z=_===0&&D?x:V*x;z<p&&(z=p),E=B+M*z;var F=P.depth-y-(b?-1:1),W=v+C*F,q=v+C*(F+1),re=a.getLevelModel(P);if(re){var ce=re.get("r0",!0),Oe=re.get("r",!0),Ke=re.get("radius",!0);Ke!=null&&(ce=Ke[0],Oe=Ke[1]),ce!=null&&(W=Y(ce,l/2)),Oe!=null&&(q=Y(Oe,l/2))}P.setLayout({angle:z,startAngle:B,endAngle:E,clockwise:A,cx:u,cy:c,r0:W,r:q})}if(P.children&&P.children.length){var fe=0;T(P.children,function(le){fe+=L(le,B+fe)})}return E-B}};if(b){var I=v,R=v+C,k=Math.PI*2;d.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:A,cx:u,cy:c,r0:I,r:R})}L(g,h)})}function $w(r,t){var e=r.children||[];r.children=OB(e,t),e.length&&T(r.children,function(a){$w(a,t)})}function OB(r,t){if(Q(t)){var e=U(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(n,i){return t(n.params,i.params)}),U(e,function(n){return r[n.index]})}else{var a=t==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function BB(r){var t={};function e(a,n,i){if(a.depth===0)return N.color.neutral50;for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&X(s)&&(s=TC(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function VB(r){r.registerChartView(RB),r.registerSeriesModel(EB),r.registerLayout(se(NB,"sunburst")),r.registerProcessor(se(_i,"sunburst")),r.registerVisual(BB),kB(r)}var Bm={color:"fill",borderColor:"stroke"}
9,zB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Pr=ve(),GB=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return Ur(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Pr(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ke);function FB(r,t){return t=t||[0,0],U(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function HB(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(FB,r)}}}function WB(r,t){return t=t||[0,0],U([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function UB(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Z(WB,r)}}}function YB(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function ZB(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(YB,r)}}}function XB(r,t){return t=t||[0,0],U(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function $B(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Z(XB,r)}}}function KB(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function qB(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function Kw(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||$(r,"text")))}function qw(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},$(a,"text")&&(o.text=a.text),$(a,"rich")&&(o.rich=a.rich),$(a,"textFill")&&(o.fill=a.textFill),$(a,"textStroke")&&(o.stroke=a.textStroke),$(a,"fontFamily")&&(o.fontFamily=a.fontFamily),$(a,"fontSize")&&(o.fontSize=a.fontSize),$(a,"fontStyle")&&(o.fontStyle=a.fontStyle),$(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=$(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),$(a,"textPosition")&&(n.position=a.textPosition),$(a,"textOffset")&&(n.offset=a.textOffset),$(a,"textRotation")&&(n.rotation=a.textRotation),$(a,"textDistance")&&(n.distance=a.textDistance)}return Vm(o,r),T(o.rich,function(l){Vm(l,l)}),{textConfig:n,textContent:i}}function Vm(r,t){t&&(t.font=t.textFont||t.font,$(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),$(t,"textAlign")&&(r.align=t.textAlign),$(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),$(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),$(t,"textWidth")&&(r.width=t.textWidth),$(t,"textHeight")&&(r.height=t.textHeight),$(t,"textBackgroun
9dColor")&&(r.backgroundColor=t.textBackgroundColor),$(t,"textPadding")&&(r.padding=t.textPadding),$(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),$(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),$(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),$(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),$(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),$(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),$(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function zm(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||N.color.neutral99;Gm(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||N.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||N.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,T(t.rich,function(s){Gm(s,s)}),a}function Gm(r,t){t&&($(t,"fill")&&(r.textFill=t.fill),$(t,"stroke")&&(r.textStroke=t.fill),$(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),$(t,"font")&&(r.font=t.font),$(t,"fontStyle")&&(r.fontStyle=t.fontStyle),$(t,"fontWeight")&&(r.fontWeight=t.fontWeight),$(t,"fontSize")&&(r.fontSize=t.fontSize),$(t,"fontFamily")&&(r.fontFamily=t.fontFamily),$(t,"align")&&(r.textAlign=t.align),$(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),$(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),$(t,"width")&&(r.textWidth=t.width),$(t,"height")&&(r.textHeight=t.height),$(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),$(t,"padding")&&(r.textPadding=t.padding),$(t,"borderColor")&&(r.textBorderColor=t.borderColor),$(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),$(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),$(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),$(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),$(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),$(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),$(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),$(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),$(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),$(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var jw={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Fm=at(jw);Zn(vo,function(r,t){return r[t]=1,r},{});vo.join(", ");var Gl=["","style","shape","extra"],ni=ve();function xp(r,t,e,a,n){var i=r+"Animation",o=hi(r,a,n)||{},s=ni(t).userDuring;return o.duration>0&&(o.during=s?Z(tV,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function nl(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=ni(r),u=t.style;l.userDuring=t.during;var c={},v={};if(aV(r,t,v),r.type==="compound")for(var f=r.shape.paths,h=t.shape.paths,p=0;p<h.length;p++){var d=h[p];zc("shape",d,f[p])}else zc("shape",t,v),zc("extra",t,v);if(!i&&s&&(rV(r,t,c),Hm("shape",r,t,c),Hm("extra",r,t,c),nV(r,t,u,c)),v.style=u,jB(r,v,o),QB(r,t),s)if(i){var g={};T(Gl,function(m){var S=m?t[m]:t;S&&S.enterFrom&&(m&&(g[m]=g[m]||{}),H(m?g[m]:g,S.enterFrom))});var y=xp("enter",r,t,e,n);y.duration>0&&r.animateFrom(g,y)}else JB(r,t,n||0,e,c);Jw(r,t),u?r.dirty():r.markRedraw()}function Jw(r,t){for(var e=ni(r).leaveToProps,a=0;a<Gl.length;a++){var n=Gl[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=ni(r).leaveToProps={}),n&&(e[n]=e[n]||{}),H(n?e[n]:e,i.leaveTo))}}function _u(r,t,e,a){if(r){var n=r.parent,i=ni(r).leaveToProps;if(i){var o=xp("update",r,t,e,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function Xa(r){return r==="all"}function jB(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function JB(r,t,e,a,n){if(n){var i=xp("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function QB(r,t){$(t,"silent")&&(r.silent=t.silent),$(t,"ignore")&&(r.ignore=t.ignore),r instanceof $a&&$(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ne&&$(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var lr={},eV={setTransform:function(r,t){return lr.el[r]=t,this},getTransform:function(r){return lr.el[r]},setShape:function(r,t){var e=lr.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=lr.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=lr.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=lr.el.style;if(t)return t[r]},setExtra:function(r,t){var e=lr.el.extra||(lr.el.extra={});return e[r]=t,this},getExtra:function(r){var t=lr.el.extra;if(t)return t[r]}};function tV(){var r=this,t=r.el;if(t){var e=ni(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}lr.el=t,a(eV)}}function Hm(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),Xa(l))H(o,i);else for(var u=Le(l),c=0;c<u.length;c++){var v=u[c],f=i[v];o[v]=f}else if(Xa(s)||ge(s,r)>=0){!o&&(o=a[r]={});for(var h=at(i),c=0;c<h.length;c++){var v=h[c],f=i[v];iV(n[v],f)&&(o[v]=f)}}}}}function zc(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=at(a),o=0;o<i.length;o++){var s=i[o];n[s]=CC(a[s])}}function rV(r,t,e){for(var a=t.transition,n=Xa(a)?vo:Le(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function aV(r,t,e){for(var a=0;a<Fm.length;a++){var n=Fm[a],i=jw[n],o=t[n];
9o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<vo.length;a++){var s=vo[a];t[s]!=null&&(e[s]=t[s])}}function nV(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!Xa(o)){var l=Le(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var c=l[u],v=n[c];i[c]=v}}else if(r.getAnimationStyleProps&&(Xa(s)||Xa(o)||ge(s,"style")>=0)){var f=r.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=a.style={});for(var p=at(e),u=0;u<p.length;u++){var c=p[u];if(h[c]){var v=n[c];i[c]=v}}}}}}}function iV(r,t){return oi(r)?r!==t:r!=null&&isFinite(r)}var Qw=ve(),oV=["percent","easing","shape","style","extra"];function eT(r){r.stopAnimation("keyframe"),r.attr(Qw(r))}function Fl(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(G(t)){T(t,function(s){Fl(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=hi("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Qw(r);T(Gl,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,c){return u.percent-c.percent}),T(a,function(u){var c=r.animators,v=s?u[s]:u;if(v){var f=at(v);if(s||(f=De(f,function(d){return ge(oV,d)<0})),!!f.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(f);s&&(o[s]=o[s]||{});var p=s?o[s]:o;T(f,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(n*u.percent,v,f,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var kr="emphasis",ra="normal",bp="blur",wp="select",ga=[ra,kr,bp,wp],Gc={normal:["itemStyle"],emphasis:[kr,"itemStyle"],blur:[bp,"itemStyle"],select:[wp,"itemStyle"]},Fc={normal:["label"],emphasis:[kr,"label"],blur:[bp,"label"],select:[wp,"label"]},sV=["x","y"],lV="e\0\0",Gt={normal:{},emphasis:{},blur:{},select:{}},uV={cartesian2d:HB,geo:UB,single:ZB,polar:$B,calendar:KB,matrix:qB};function Tf(r){return r instanceof Ne}function Cf(r){return r instanceof $a}function cV(r,t){t.copyTransform(r),Cf(t)&&Cf(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,Tf(t)&&Tf(r)&&t.setShape(r.shape))}var vV=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=Wm(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){Hc(n,null,v,u(v,i),e,l,s)}).remove(function(v){var f=o.getItemGraphicEl(v);f&&_u(f,Pr(f).option,e)}).update(function(v,f){var h=o.getItemGraphicEl(f);Hc(n,h,v,u(v,i),e,l,s)}).execute();var c=e.get("clip",!0)?qo(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=Wm(a,s,n,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var v=e.start;v<e.end;v++){var f=Hc(null,null,v,l(v,o),a,this.group,s);f&&(f.traverse(c),u.push(f))}},t.prototype.eachRendered=function(e){ya(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(Ie);function Tp(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=aT(a);e=yo(i,null,n,a.layout||"center"),Pr(e).customPathData=i}else if(t==="image")e=new Kt({}),Pr(e).customImagePath=r.style.image;else if(t==="text")e=new _e({});else if(t==="group")e=new J;else if(t==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";be(o)}var s=U(a.paths,function(c){if(c.type==="path")return yo(c.shape.pathData,c,null);var v=gl(c.type);if(!v){var f="";be(f)}return new v});e=new Xf({shape:{paths:s}})}else{var l=gl(t);if(!l){var o="";be(o)}e=new l}return Pr(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Cp(r,t,e,a,n,i,o){eT(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=sV);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;$(u,"textFill")&&(u.fill=u.textFill),$(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,v=Tf(t)?l.decal:null;r&&v&&(v.dirty=!0,c=qn(v,r)),l.__decalPattern=c}if(Cf(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}nl(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Fl(t,a.keyframeAnimation,i)}function tT(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Qa(i)}}function fV(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<ga.length;s++)hV(a,t,ga[s])}}function hV(r,t,e){var a=e===ra,n=a?t:Hl(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function Wm(r,t,e,a){var n=r.get("renderItem");if(typeof n=="string"){var i=mI(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):uV[o.type](o));for(var l=oe({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:x,style:w,ordinalRawValue:b,styleEmphasis:C,visual:M,barLayout:L,currentSeriesIndices:I,font:R},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:pV(r.getData()),itemPayload:r.get("itemPayload")||{}},c,v,f={},h={},p={},d={},g=0;g<ga.length;g++){var y=ga[g];p[y]=r.getModel(Gc[y]),d[y]=r.getModel(Fc[y])}function m(k){return k===c?v||(v=t.getItemModel(k)):t.getItemModel(k)}function S(k,P){return t.hasItemOption?k===c?f[P]||(f[P]=m(k).getModel(Gc[P])):m(k).getModel(Gc[P]):p[P]}function _(k,P){return t.hasItemOption?k===c?h[P]||(h[P]=m(k).getModel(Fc[P])):m(k).getModel(Fc[P]):d[P]}return function(k,P){return c=k,v=null,f={},h={},n&&n(oe({dataIndexInside:k,dataIndex:t.getRawIndex(k),actionType:P?P.type:null},u),l)};function x(k,P){return P==null&&(P=c),t.getStore().get(t.getDimensionIndex(k||0),P)}function b(k,P){P==null&&(P=c),k=k||0;var B=t.getDimensionInfo(k);if(!B){var E=t.getDimensionIndex(k);return E>=0?t.getStore().get(E,P):void 0}var V=t.get(B.name,P),z=B&&B.ordinalMeta;return z?z.categories[V]:V}function w(k,P){P==null&&(P=c);var B=t.getItemVisual(P,"style"),E=B&&B.fill,V=B&&B.opacity,z=S(P,ra).getItemStyle();E!=null&&(z.fill=E),V!=null&&(z.opacity=V);var F={inheritColor:X(E)?E:N.color.neutral99},W=_(P,ra),q=Pe(W,null,F,!1,!0);q.text=W.getShallow("show")?ne(r.getFormattedLabel(P,ra),ei(t,P)):null;var re=yl(W,F,!1);return D(k,z),z=zm(z,q,re),k&&A(z,k),z.legacy=!0,z}function C(k,P){P==null&&(P=c);
9var B=S(P,kr).getItemStyle(),E=_(P,kr),V=Pe(E,null,null,!0,!0);V.text=E.getShallow("show")?Fr(r.getFormattedLabel(P,kr),r.getFormattedLabel(P,ra),ei(t,P)):null;var z=yl(E,null,!0);return D(k,B),B=zm(B,V,z),k&&A(B,k),B.legacy=!0,B}function A(k,P){for(var B in P)$(P,B)&&(k[B]=P[B])}function D(k,P){k&&(k.textFill&&(P.textFill=k.textFill),k.textPosition&&(P.textPosition=k.textPosition))}function M(k,P){if(P==null&&(P=c),$(Bm,k)){var B=t.getItemVisual(P,"style");return B?B[Bm[k]]:null}if($(zB,k))return t.getItemVisual(P,k)}function L(k){if(o.type==="cartesian2d"){var P=o.getBaseAxis();return gL(oe({axis:P},k))}}function I(){return e.getCurrentSeriesIndices()}function R(k){return vh(k,e)}}function pV(r){var t={};return T(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Hc(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=Ap(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Ge(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Ap(r,t,e,a,n,i){var o=-1,s=t;t&&rT(t,a,n)&&(o=ge(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Tp(a),s&&cV(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Gt.normal.cfg=Gt.normal.conOpt=Gt.emphasis.cfg=Gt.emphasis.conOpt=Gt.blur.cfg=Gt.blur.conOpt=Gt.select.cfg=Gt.select.conOpt=null,Gt.isLegacy=!1,gV(u,e,a,n,l,Gt),dV(u,e,a,n,l),Cp(r,u,e,a,Gt,n,l),$(a,"info")&&(Pr(u).info=a.info);for(var c=0;c<ga.length;c++){var v=ga[c];if(v!==ra){var f=Hl(a,v),h=Dp(a,f,v);tT(v,u,f,h,Gt)}}return fV(u,a,n),a.type==="group"&&yV(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function rT(r,t,e){var a=Pr(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&xV(i)&&aT(i)!==a.customPathData||n==="image"&&$(o,"image")&&o.image!==a.customImagePath}function dV(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&rT(o,i,a)&&(o=null),o||(o=Tp(i),r.setClipPath(o)),Cp(null,o,t,i,null,a,n)}}function gV(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){Um(e,null,i),Um(e,kr,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=Tp(o),r.setTextContent(c)),Cp(null,c,t,o,null,a,n);for(var v=o&&o.style,f=0;f<ga.length;f++){var h=ga[f];if(h!==ra){var p=i[h].conOpt;tT(h,c,p,Dp(o,p,h),null)}}v?c.dirty():c.markRedraw()}}}}function Um(r,t,e){var a=t?Hl(r,t):r,n=t?Dp(r,a,kr):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?Hl(s,t):s:null;if(n&&(e.isLegacy||Kw(n,i,!!o,!!l))){e.isLegacy=!0;var u=qw(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var v=t?e[t]:e.normal;v.cfg=o,v.conOpt=l}function Hl(r,t){return t?r?r[t]:null:r}function Dp(r,t,e){var a=t&&t.style;return a==null&&e===kr&&r&&(a=r.styleEmphasis),a}function yV(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){SV({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var v=i[c],f=t.childAt(c);v?(v.ignore==null&&(v.ignore=!1),Ap(r,f,e,v,n,t)):f.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);mV(t,p,n)}}}function mV(r,t,e){t&&_u(t,Pr(r).option,e)}function SV(r){new Vr(r.oldChildren,r.newChildren,Ym,Ym,r).add(Zm).update(Zm).remove(_V).execute()}function Ym(r,t){var e=r&&r.name;return e??lV+t}function Zm(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;Ap(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function _V(r){var t=this.context,e=t.oldChildren[r];e&&_u(e,Pr(e).option,t.seriesModel)}function aT(r){return r&&(r.pathData||r.d)}function xV(r){return r&&($(r,"pathData")||$(r,"d"))}function bV(r){r.registerChartView(vV),r.registerSeriesModel(GB)}var Na=ve(),Xm=te,Wc=Z,Mp=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var v=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new J,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var f=se($m,e,v);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,e)}qm(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;
9if(o){var l=Kh(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Na(t).pointerEl=new un[i.type](Xm(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Na(t).labelEl=new _e(Xm(e.label));t.add(i),Km(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Na(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Na(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),Km(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Fo(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ca(u.event)},onmousedown:Wc(this._onHandleDragMove,this,0,0),drift:Wc(this._onHandleDragMove,this),ondragend:Wc(this._onHandleDragEnd,this)}),a.add(n)),qm(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");G(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,yi(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){$m(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Uc(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Uc(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Uc(n)),Na(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),xo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function $m(r,t,e,a){nT(Na(e).lastProp,a)||(Na(e).lastProp=a,t?xe(e,a,r):(e.stopAnimation(),e.attr(a)))}function nT(r,t){if(ie(r)&&ie(t)){var e=!0;return T(t,function(a,n){e=e&&nT(r[n],a)}),!!e}else return r===t}function Km(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Uc(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function qm(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function Ip(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function iT(r,t,e,a,n){var i=e.get("value"),o=oT(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ho(s.get("padding")||0),u=s.getFont(),c=Ql(o,u),v=n.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=n.align;p==="right"&&(v[0]-=f),p==="center"&&(v[0]-=f/2);var d=n.verticalAlign;d==="bottom"&&(v[1]-=h),d==="middle"&&(v[1]-=h/2),wV(v,f,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:Pe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function wV(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function oT(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Al(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,v=u&&u.getDataParams(c);v&&s.seriesData.push(v)}),X(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function Lp(r,t,e){var a=rr();return ui(a,a,e.rotation),Ka(a,a,e.position),er([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function sT(r,t,e,a,n,i){var o=At.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),iT(t,a,n,i,{position:Lp(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Pp(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function lT(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function jm(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var TV=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),c=Jm(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var f=Ip(i),h=CV[u](s,v,c);h.style=f,e.graphicKey=h.type,e.pointer=h}var p=Nl(l.getRect(),n);sT(a,e,p,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Nl(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Lp(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Jm(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,v=[e.x,e.y];v[c]+=a[c],v[c]=Math.min(l[1],v[c]),v[c]=Math.max(l[0],v[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=v[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(Mp);function Jm(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var CV={line:function(r,t,e){var a=Pp([t,e[0]],[t,e[1]],Qm(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:lT([t-a/2,e[0]],[a,n],Qm(r))}}};function Qm(r){return r.dim==="x"?0:1}var AV=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:N.color.border,width:1,type:"dashed"},shadowStyle:{color:N.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:N.color.neutral00,padding:[5,7,5,7],backgroundColor:N.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:N.color.accent40,throttle:40}},t}(pe),Ir=ve(),DV=T;function uT(r,t,e){if(!Ye.node){var a=t.getZr();Ir(a).records||(Ir(a).records={}),MV(a,t);var n=Ir(a).records[r]||(Ir(a).records[r]={});n.handler=e}}function MV(r,t){if(Ir(r).initialized)return;
9Ir(r).initialized=!0,e("click",se(e0,"click")),e("mousemove",se(e0,"mousemove")),e("globalout",LV);function e(a,n){r.on(a,function(i){var o=PV(t);DV(Ir(r).records,function(s){s&&n(s,i,o.dispatchAction)}),IV(o.pendings,t)})}}function IV(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function LV(r,t,e){r.handler("leave",null,e)}function e0(r,t,e,a){t.handler(r,e,a)}function PV(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Af(r,t){if(!Ye.node){var e=t.getZr(),a=(Ir(e).records||{})[r];a&&(Ir(e).records[r]=null)}}var kV=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";uT("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Af("axisPointer",a)},t.prototype.dispose=function(e,a){Af("axisPointer",a)},t.type="axisPointer",t}(Ve);function cT(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ja(i,r);if(o==null||o<0||G(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),v=c.dim,f=u.dim,h=v==="x"||v==="radius"?1:0,p=i.mapDimension(f),d=[];d[h]=i.get(p,o),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}else e=l.dataToPoint(i.getValues(U(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var t0=ve();function RV(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Z(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){il(n)&&(n=cT({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=il(n),u=i.axesInfo,c=s.axesInfo,v=a==="leave"||il(n),f={},h={},p={list:[],map:{}},d={showPointer:se(NV,h),showTooltip:se(OV,p)};
9T(s.coordSysMap,function(y,m){var S=l||y.containPoint(n);T(s.coordSysAxesInfo[m],function(_,x){var b=_.axis,w=GV(u,_);if(!v&&S&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(n)),C!=null&&r0(_,C,d,!1,f)}})});var g={};return T(c,function(y,m){var S=y.linkGroup;S&&!h[m]&&T(S.axesInfo,function(_,x){var b=h[x];if(_!==y&&b){var w=b.value;S.mapper&&(w=y.axis.scale.parse(S.mapper(w,a0(_),a0(y)))),g[y.key]=w}})}),T(g,function(y,m){r0(c[m],y,d,!0,f)}),BV(h,c,f),VV(p,n,r,o),zV(c,o,e),f}}function r0(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=EV(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function EV(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),v,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,r,e);f=h.dataIndices,v=h.nestestValue}else{if(f=l.indicesOfNearest(a,c[0],r,e.type==="category"?.5:null),!f.length)return;v=l.getData().get(c[0],f[0])}if(!(v==null||!isFinite(v))){var p=r-v,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=v,i.length=0),T(f,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}
9))}}),{payloadBatch:i,snapToValue:n}}function NV(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function OV(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Do(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function BV(r,t,e){var a=e.axesInfo=[];T(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function VV(r,t,e,a){if(il(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function zV(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=t0(a)[n]||{},o=t0(a)[n]={};T(r,function(u,c){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&T(v.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];T(i,function(u,c){!o[c]&&l.push(u)}),T(o,function(u,c){!i[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function GV(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function a0(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function il(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Qo(r){pn.registerAxisPointerClass("CartesianAxisPointer",TV),r.registerComponentModel(AV),r.registerComponentView(kV),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=qP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},RV)}function FV(r){ue(B1),ue(Qo)}var HV=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),v=s.dataToCoord(a),f=i.get("type");if(f&&f!=="none"){var h=Ip(i),p=UV[f](s,l,v,c);p.style=h,e.graphicKey=p.type,e.pointer=p}var d=i.get(["label","margin"]),g=WV(a,n,i,l,d);iT(e,n,i,o,g)},t}(Mp);function WV(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,c,v;if(i.dim==="radius"){var f=rr();ui(f,f,s),Ka(f,f,[a.cx,a.cy]),u=er([o,-n],f);var h=t.getModel("axisLabel").get("rotate")||0,p=At.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,v=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;c=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:v}}var UV={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:Pp(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:jm(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:jm(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},YV=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(pe),kp=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ue).models[0]},t.type="polarAxis",t}(pe);ft(kp,Xo);var ZV=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(kp),XV=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(kp),Rp=function(r){O(t,r);
9function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(or);Rp.prototype.dataToRadius=or.prototype.dataToCoord;Rp.prototype.radiusToData=or.prototype.coordToData;var $V=ve(),Ep=function(r){O(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=Ql(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(c.height,7),f=v/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=$V(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-h)<=1&&Math.abs(g-o)<=1&&d>h?h=d:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(or);Ep.prototype.dataToAngle=or.prototype.dataToCoord;Ep.prototype.angleToData=or.prototype.coordToData;var vT=["radius","angle"],KV=function(){function r(t){this.dimensions=vT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Rp,this._angleAxis=new Ep,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,v=u*u+c*c,f=this.r,h=this.r0;return f!==h&&v-o<=f*f&&v+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=n0(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=n0(e);return n===this?this.pointToData(a):null},r}();function n0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function qV(r,t,e){var a=t.get("center"),n=lt(t,e).refContainer;r.cx=Y(a[0],n.width)+n.x,r.cy=Y(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:G(s)||(s=[0,s]);var l=[Y(s[0],o),Y(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function jV(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();T(Dl(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),T(Dl(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Jn(a.scale,a.model),Jn(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function JV(r){return r.mainType==="angleAxis"}function i0(r,t){var e;if(r.type=t.get("type"),r.scale=fu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),JV(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var QV={dimensions:vT,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new KV(n+"");i.update=jV;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");i0(o,l),i0(s,u),qV(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}
9),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Ue).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},ez=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Rs(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Es(r){var t=r.getRadiusAxis();return t.inverse?0:1}function o0(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var tz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=U(n.getViewLabels(),function(c){c=te(c);var v=n.scale,f=v.type==="ordinal"?v.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(f),c});o0(u),o0(s),T(ez,function(c){e.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&rz[c](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}
9(pn),rz={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Es(e),v=c?0:1,f,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?f=new un[h]({shape:{cx:e.cx,cy:e.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new jl({shape:{cx:e.cx,cy:e.cy,r:i[c],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,r.add(f)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Es(e)],u=U(a,function(c){return new ut({shape:Rs(e,[l,l+s],c.coord)})});r.add(Ut(u,{style:oe(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Es(e)],c=[],v=0;v<n.length;v++)for(var f=0;f<n[v].length;f++)c.push(new ut({shape:Rs(e,[u,u+l],n[v][f].coord)}));r.add(Ut(c,{style:oe(s.getModel("lineStyle").getLineStyle(),oe(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");T(o,function(v,f){var h=l,p=v.tickValue,d=i[Es(e)],g=e.coordToPoint([d+u,v.coord]),y=e.cx,m=e.cy,S=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",_=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var x=s[p];ie(x)&&x.textStyle&&(h=new de(x.textStyle,l,l.ecModel))}var b=new _e({silent:At.isLabelSilent(t),style:Pe(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:S,verticalAlign:_})});if(r.add(b),Wr({el:b,componentModel:t,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:v.rawLabel,tickIndex:f}}),c){var w=At.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=v.rawLabel,ee(b).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],v=0;v<a.length;v++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new ut({shape:Rs(e,i,a[v].coord)}))}for(var v=0;v<c.length;v++)r.add(Ut(c[v],{style:oe({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new ut({shape:Rs(e,i,n[u][c].coord)}));r.add(Ut(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],v=Math.PI/180,f=-a[0].coord*v,h=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=t.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new Et({shape:{cx:e.cx,cy:e.cy,r0:h,r:p,startAngle:f,endAngle:-m*v,clockwise:d},silent:!0})),f=-m*v}for(var g=0;g<c.length;g++)r.add(Ut(c[g],{style:oe({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},az=["splitLine","splitArea","minorSplitLine"],nz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,o=this._axisGroup=new J;this.group.add(o);var s=e.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),v=s.getMinorTicksCoords(),f=u.getExtent()[0],h=s.getExtent(),p=oz(l,e,f),d=new At(e,n,p);d.build(),o.add(d.group),Go(i,o,e),T(az,function(g){e.get([g,"show"])&&!s.scale.isBlank()&&iz[g](this.group,e,l,f,h,c,v)},this)}},t.type="radiusAxis",t}(pn),iz={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),v=Math.PI/180,f=c.getExtent(),h=Math.abs(f[1]-f[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new un[h]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[d].coord,0),startAngle:-f[0]*v,endAngle:-f[1]*v,clockwise:c.inverse}}))}for(var d=0;d<p.length;d++)r.add(Ut(p[d],{style:oe({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var v=0;v<o[c].length;v++)u.push(new on({shape:{cx:e.cx,cy:e.cy,r:o[c][v].coord}}));r.add(Ut(u,{style:oe({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],v=i[0].coord,f=1;f<i.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Et({shape:{cx:e.cx,cy:e.cy,r0:v,r:i[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[f].coord}for(var f=0;f<c.length;f++)r.add(Ut(c[f],{style:oe({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function oz(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function fT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function hT(r,t){return t.dim+r.model.componentIndex}function sz(r,t,e){var a={},n=lz(De(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=hT(s,l),
9c=fT(i),v=n[u][c],f=v.offset,h=v.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var S=o.mapDimension(p.dim),_=o.mapDimension(l.dim),x=fa(o,S),b=l.dim!=="radius"||!i.get("roundCap",!0),w=p.model,C=w.get("startValue"),A=p.dataToCoord(C||0),D=0,M=o.count();D<M;D++){var L=o.get(S,D),I=o.get(_,D),R=L>=0?"p":"n",k=A;x&&(a[c][I]||(a[c][I]={p:A,n:A}),k=a[c][I][R]);var P=void 0,B=void 0,E=void 0,V=void 0;if(p.dim==="radius"){var z=p.dataToCoord(L)-A,F=l.dataToCoord(I);Math.abs(z)<y&&(z=(z<0?-1:1)*y),P=k,B=k+z,E=F-f,V=E-h,x&&(a[c][I][R]=B)}else{var W=p.dataToCoord(L,b)-A,q=l.dataToCoord(I);Math.abs(W)<m&&(W=(W<0?-1:1)*m),P=q+f,B=P+h,E=k,V=k+W,x&&(a[c][I][R]=V)}o.setItemLayout(D,{cx:d,cy:g,r0:P,r:B,startAngle:-E*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:E>=V})}}})}function lz(r){var t={};T(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=hT(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),v=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=v.stacks;t[l]=v;var h=fT(a);f[h]||v.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=Y(a.get("barWidth"),c),d=Y(a.get("barMaxWidth"),c),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(v.remainedWidth,p),f[h].width=p,v.remainedWidth-=p),d&&(f[h].maxWidth=d),g!=null&&(v.gap=g),y!=null&&(v.categoryGap=y)});var e={};return T(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=Y(a.categoryGap,o),l=Y(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,v=(u-s)/(c+(c-1)*l);v=Math.max(v,0),T(i,function(d,g){var y=d.maxWidth;y&&y<v&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,c--)}),v=(u-s)/(c+(c-1)*l),v=Math.max(v,0);var f=0,h;T(i,function(d,g){d.width||(d.width=v),h=d,f+=d.width*(1+l)}),h&&(f-=h.width*l);var p=-f/2;T(i,function(d,g){e[n][g]=e[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),e}var uz={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},cz={splitNumber:5},vz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Ve);function fz(r){ue(Qo),pn.registerAxisPointerClass("PolarAxisPointer",HV),r.registerCoordinateSystem("polar",QV),r.registerComponentModel(YV),r.registerComponentView(vz),ti(r,"angle",ZV,uz),ti(r,"radius",XV,cz),r.registerComponentView(tz),r.registerComponentView(nz),r.registerLayout(se(sz,"bar"))}function Df(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var v={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=v[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),yt(t.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var f=r.get(["axisLabel","rotate"]);return n.labelRotate=i==="top"?-f:f,n.z2=1,n}var hz=["splitArea","splitLine","breakArea"],pz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new J;var l=Df(e),u=new At(e,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),T(hz,function(c){e.get([c,"show"])&&dz[c](this,this.group,this._axisGroup,e,n)},this),Go(s,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)},t.prototype.remove=function(){E1(this)},t.type="singleAxis",t}(pn),dz={splitLine:function(r,t,e,a,n){var i=a.axis;if(!i.scale.isBlank()){var o=a.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=a.coordinateSystem.getRect(),v=i.isHorizontal(),f=[],h=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=0;y<p.length;++y){var m=i.toGlobalCoord(p[y].coord);v?(d[0]=m,d[1]=c.y,g[0]=m,g[1]=c.y+c.height):(d[0]=c.x,d[1]=m,g[0]=c.x+c.width,g[1]=m);var S=new ut({shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},silent:!0});$n(S.shape,u);var _=h++%l.length;f[_]=f[_]||[],f[_].push(S)}for(var x=s.getLineStyle(["color"]),y=0;y<f.length;++y)t.add(Ut(f[y],{style:oe({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,t,e,a,n){R1(r,e,a,a)},breakArea:function(r,t,e,a,n){var i=Jo(),o=a.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,a,a.coordinateSystem.getRect(),n)}},ol=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine
9:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(pe);ft(ol,Xo.prototype);var gz=function(r){O(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t}(or),pT=["single"],yz=function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=pT,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=this.dimension,i=new gz(n,fu(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();T(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),Jn(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){var a=lt(t,e).refContainer;this._rect=Fe(t.getBoxLayoutParams(),a),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return n-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return n-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=s0(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=s0(e);return n===this?this.pointToData(a):null},r}();function s0(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function mz(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new yz(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",Ue).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var Sz={create:mz,dimensions:pT},l0=["x","y"],_z=["width","height"],xz=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Yc(l,1-Wl(s)),c=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var f=Ip(i),h=bz[v](s,c,u);h.style=f,e.graphicKey=h.type,e.pointer=h}var p=Df(n);sT(a,e,p,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Df(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Lp(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Wl(o),u=Yc(s,l),c=[e.x,e.y];c[l]+=a[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var v=Yc(s,1-l),f=(v[1]+v[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Mp),bz={line:function(r,t,e){var a=Pp([t,e[0]],[t,e[1]],Wl(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:lT([t-a/2,e[0]],[a,n],Wl(r))}}};function Wl(r){return r.isHorizontal()?0:1}function Yc(r,t){var e=r.getRect();return[e[l0[t]],e[l0[t]]+e[_z[t]]]}var wz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Ve);function Tz(r){ue(Qo),pn.registerAxisPointerClass("SingleAxisPointer",xz),r.registerComponentView(wz),r.registerComponentView(
9pz),r.registerComponentModel(ol),ti(r,"single",ol,ol.defaultOption),r.registerCoordinateSystem("single",Sz)}var Cz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=cn(e);r.prototype.init.apply(this,arguments),u0(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),u0(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:N.color.axisLine,width:1,type:"solid"}},itemStyle:{color:N.color.neutral00,borderWidth:1,borderColor:N.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:N.size.s,color:N.color.secondary},monthLabel:{show:!0,position:"start",margin:N.size.s,align:"center",formatter:null,color:N.color.secondary},yearLabel:{show:!0,position:null,margin:N.size.xl,formatter:null,color:N.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(pe);function u0(r,t){var e=r.cellSize,a;G(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=U([0,1],function(i){return SD(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});mr(r,t,{type:"box",ignoreSize:n})}var Az=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToCalendarLayout([u],!1).tl,v=new ye({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,f=0;v.time<=a.end.time;f++){p(v.formatedDate),f===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Dt({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return X(e)&&e?hD(e,a):Q(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,f=n==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],v],right:[u[f][0],v]},p=a.start.y;+a.end.y>
9+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new _e({z2:30,style:Pe(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],c=e[1];return n==="horizontal"?(c=c+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||X(s))&&(s&&(a=Av(s)||a),s=a.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",d=o.get("silent"),g=0;g<v[f].length-1;g++){var y=v[f][g].slice(),m=this._firstDayOfMonth[g];if(p){var S=this._firstDayPoints[g];y[h]=(S[h]+v[0][g+1][h])/2}var _=o.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(_,b),C=new _e({z2:30,style:H(Pe(o,{text:w}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});i.add(C)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],c=e[1],v=n==="start";return a==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(c=c+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),v=s.get("margin"),f=l.getFirstDayOfWeek();if(!c||X(c)){c&&(a=Av(c)||a);var h=a.get(["time","dayOfWeekShort"]);c=h||U(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];v=Y(v,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),S=l.dataToCalendarLayout([m.time],!1).center,_=y;_=Math.abs((y+f)%7);var x=new _e({z2:30,style:H(Pe(s,{text:c[_]}),this._weekTextPositionControl(S,i,u,v,d)),silent:g});o.add(x)}}},t.type="calendar",t}(Ve),Zc=864e5,Dz=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=ln(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];T([0,1],function(v){c(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=Fe(o,l);T([0,1],function(v){c(i,v)||(i[v]=u[n[v]]/s[v])});function c(v,f){return v[f]!=null&&v[f]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,a){a=a||[],G(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Zc))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(t,e);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Se.copy(i,n),en(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(t,e){var a=this.dataToPoint(t,e);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=Xc(e);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(t,e,a){var n=Xc(e);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Xc(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(G(t)&&t.length===1&&(t=t[0]),G(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Zc)-Math.floor(e[0].time/Zc)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var c=Math.floor((n+e[0].day+6)/7),v=a?-c+1:c-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:v,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Uo({targetModel:i,coordSysType:"calendar",coordSysProvider:nx})}),a},r.dimensions=["time","value"],r}();function Xc(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function Mz(r){r.registerComponentModel(Cz),r.registerComponentView(Az),r.registerCoordinateSystem("calendar",Dz)}var Dr={level:1,leaf:2,nonLeaf:3},Rr={none:0,all:1,body:2,corner:3};function Mf(r,t,e){var a=t[ae[e]].getCell(r);return!a&&we(r)&&r<0&&(a=t[ae[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function dT(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function gT(r,t,e,a,n){c0(r[0],t,n,e,a,0),c0(r[1],t,n,e,a,1)}function c0(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=G(o)?o:[o],l=s.length,u=!!e;if(l>=1?(v0(r,t,s,u,n,i,0),l>1&&v0(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var c=-n[ae[1-i]].getLocatorCount(i),v=n[ae[i]].getLocatorCount(i)-1;e===Rr.body?c=$e(0,c):e===Rr.corner&&(v=Rt(-1,v)),v<c&&(c=v=NaN),Tt(r[0])&&(r[0]=c),Tt(r[1])&&(r[1]=v),r[0]=$e(Rt(r[0],v),c),r[1]=$e(Rt(r[1],v),c)}}function v0(r,t,e,a,n,i,o){var s=Mf(e[o],n,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[ae[i]],u=l,c=kz(s);c&&(u+=c.span[ae[i]]-1),r[0]=Rt(r[0],l,u),r[1]=$e(r[1],l,u)}function Ns(r,t){return Tt(r[t][0])||Tt(r[t][1])}function f0(r,t,e,a){t=t||Iz;for(var n=0;n<a;n++)t[n]=!1;for(;;){for(var i=!1,n=0;n<a;n++){var o=e[n];!t[n]&&o.cellMergeOwner&&Lz(r,o.locatorRange)&&(t[n]=!0,i=!0)}if(!i)break}}var Iz=[];function Lz(r,t){return!h0(r[0],t[0])||!h0(r[1],t[1])?!1:(r[0][0]=Rt(r[0][0],t[0][0]),r[0][1]=$e(r[0][1],t[0][1]),r[1][0]=Rt(r[1][0],t[1][0]),r[1][1]=$e(r[1][1],t[1][1]),!0)}function h0(r,t){return r[1]>=t[0]&&r[0]<=t[1]}function p0(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function Pz(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function d0(r,t,e,a){var n=Mf(t[a][0],e,a),i=Mf(t[a][1],e,a);r[ae[a]]=r[et[a]]=NaN,n&&i&&(r[ae[a]]=n.xy,r[et[a]]=i.xy+i.wh-n.xy)}function Hi(r,t,e,a){return r[ae[t]]=e,r[ae[1-t]]=a,r}function kz(r){return r&&(r.type===Dr.leaf||r.type===Dr.nonLeaf)?r:null}function Ul(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var g0=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=Rz(t);var a=e.get("data",!0);a!=null&&!G(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesD
9ata()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,c,v){var f=0;return u&&T(u,function(h,p){var d;X(h)?d={value:h}:ie(h)?(d=h,h.value!=null&&!X(h.value)&&(d={value:null})):d={value:null};var g={type:Dr.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:c,id:new me,span:Hi(new me,e.dimIdx,1,1),option:d,xy:NaN,wh:NaN,dim:e,rect:Ul()};o++,(i[c]||(i[c]=[])).push(g),n[v]||(n[v]={type:Dr.level,xy:NaN,wh:NaN,option:null,id:new me,dim:e});var y=s(d.children,c,v+1),m=Math.max(1,y);g.span[ae[e.dimIdx]]=m,f+=m,c+=m}),f}function l(){for(var u=[];a.length<o;)for(var c=0;c<i.length;c++){var v=i[c].pop();if(v){v.ordinal=u.length;var f=v.option.value;u.push(f),a.push(v),e._uniqueValueGen.calcDupBase(f)}}e._uniqueValueGen.ensureValueUnique(u,a);var h=e._ordinalMeta=new To({categories:u,needCollect:!1,deduplication:!1});e._scale=new jn({ordinalMeta:h});for(var p=0;p<e._leavesCount;p++){var d=e._cells[p];d.type=Dr.leaf,d.span[ae[1-e.dimIdx]]=e._levels.length-d.level}e._initCellsId(),e._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:Dr.level,xy:NaN,wh:NaN,option:null,id:new me,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new To({needCollect:!0,deduplication:!0,onCollect:function(a,n){var i=t._cells[n]={type:Dr.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new me,span:Hi(new me,t.dimIdx,1,1),option:{value:a+""},xy:NaN,wh:NaN,dim:t,rect:Ul()};t._leavesCount++,t._setCellId(i)}});t._scale=new jn({ordinalMeta:e})},r.prototype._setCellId=function(t){var e=this._levels.length,a=this.dimIdx;Hi(t.id,a,t.firstLeafLocator,t.level-e)},r.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;T(this._cells,function(a){Hi(a.id,e,a.firstLeafLocator,a.level-t)})},r.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,a=this._model.get("levels",!0);a=G(a)?a:[],T(this._levels,function(n,i){Hi(n.id,e,0,i-t),n.option=a[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(t,e,a,n){if(t=t||new oa,e===this.dimIdx){var i=this._leavesCount,o=a!=null?Math.max(0,a):0;n=n!=null?Math.min(n,i):i,t.reset(this._cells,o,o+n)}else{var i=this._levels.length,o=a!=null?Math.max(0,a+i):0;n=n!=null?Math.min(n,i):i,t.reset(this._levels,o,o+n)}return t},r.prototype.resetCellIterator=function(t){return(t||new oa).reset(this._cells,0)},r.prototype.resetLevelIterator=function(t){return(t||new oa).reset(this._levels,0)},r.prototype.getLayout=function(t,e,a){var n=this.getUnitLayoutInfo(e,a);t[ae[e]]=n?n.xy:NaN,t[et[e]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},r.prototype.getCell=function(t){var e=this._scale.parse(t);return Tt(e)?void 0:this._cells[e]},r.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}();function Rz(r){var t=r.toUpperCase(),e=new RegExp("^"+t+"([0-9]+)$"),a=0;function n(s){var l;s!=null&&(l=s.match(e))&&(a=$e(a,+l[1]+1))}function i(){return""+t+a++}function o(s,l){for(var u=K(),c=0;c<s.length;c++){var v=s[c];(v==null||u.get(v)!=null)&&(s[c]=v=i(),l[c].option=oe({value:v},l[c].option)),u.set(v,!0)}}return{calcDupBase:n,ensureValueUnique:o}}var y0=function(){function r(t,e,a){this._model=e,this._dims=a,this._kind=t,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=K(),a()),e;function a(){var i=[],o=t._model.getShallow("data");o&&!G(o)&&(o=null),T(o,function(p,d){if(!(!ie(p)||!G(p.coord))){var g=dT([]),y=null;if(gT(g,y,p.coord,t._dims,p.coordClamp?Rr[t._kind]:Rr.none),!(Ns(g,0)||Ns(g,1))){var m=p&&p.mergeCells,S={id:new me,span:new me,locatorRange:g,option:p,cellMergeOwner:m};p0(S,g),i.push(S)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var c=u.locatorRange;f0(c,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(c[0][0]!==u.id.x||c[1][0]!==u.id.y){u.cellMergeOwner=!1;var f=H({},u.option);f.coord=null;
9var h={id:new me,span:new me,locatorRange:c,option:f,cellMergeOwner:!0};p0(h,c),i.push(h)}}}T(i,function(p){var d=n(p.id.x,p.id.y);if(p.cellMergeOwner&&(d.cellMergeOwner=!0,d.span=p.span,d.locatorRange=p.locatorRange,d.spanRect=Ul(),t._cellMergeOwnerList.push(d)),!(!p.cellMergeOwner&&!p.option))for(var g=0;g<p.span.y;g++)for(var y=0;y<p.span.x;y++){var m=n(p.id.x+y,p.id.y+g);m.option=p.option,p.cellMergeOwner&&(m.inSpanOf=d)}})}function n(i,o){var s=m0(i,o),l=e.get(s);return l||(l=e.set(s,{id:new me(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(t){return this._ensureCellMap().get(m0(t[0],t[1]))},r.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},r.prototype.expandRangeByCellMerge=function(t){if(!Ns(t,0)&&!Ns(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){$c[0]=t[0][0],$c[1]=t[1][0];var e=this.getCell($c),a=e&&e.inSpanOf;if(a){Pz(t,a.locatorRange);return}}var n=this._cellMergeOwnerList;f0(t,null,n,n.length)},r}(),$c=[];function m0(r,t){return r+"|"+t}var Np={show:!0,color:N.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function Op(r){return{color:"none",borderWidth:1,borderColor:r?"none":N.color.borderTint}}var S0={show:!0,label:Np,itemStyle:Op(!1),silent:void 0,dividerLineStyle:{width:1,color:N.color.border}},Ez={label:Np,itemStyle:Op(!1),silent:void 0},Nz={label:Np,itemStyle:Op(!0),silent:void 0},Oz={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:S0,y:S0,body:Ez,corner:Nz,backgroundStyle:{color:"none",borderColor:N.color.axisLine,borderWidth:1}},Bz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new _0(this.get("x",!0)||{}),y:new _0(this.get("y",!0)||{})};e.x.option.type=e.y.option.type="category";var a=e.x.dim=new g0("x",e.x),n=e.y.dim=new g0("y",e.y),i={x:a,y:n};this._body=new y0("body",new de(this.getShallow("body")),i),this._corner=new y0("corner",new de(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=Oz,t}(pe),_0=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(de),Os=Math.round,Vz=0,zz=99,Gz={normal:25,special:100},Fz={normal:50,special:125},Hz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a){this.group.removeAll();var n=this.group,i=e.coordinateSystem,o=i.getRect(),s=e.getDimensionModel("x"),l=e.getDimensionModel("y"),u=s.dim,c=l.dim;Wz(n,e,a),Uz(n,e,u,c,a);var v=e.getShallow("borderZ2",!0),f=ne(v,zz),h=f-1,p=e.getModel("backgroundStyle").getItemStyle(["borderWidth"]);p.lineWidth=0;var d=e.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);d.fill="none";var g=If(o.clone(),p,Vz),y=If(o.clone(),d,f);g.silent=!0,y.silent=!0,n.add(g),n.add(y);var m=u.getUnitLayoutInfo(0,0),S=c.getUnitLayoutInfo(1,0);m&&S&&(u.shouldShow()&&n.add(x0({x1:o.x,y1:S.xy,x2:o.x+o.width,y2:S.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),c.shouldShow()&&n.add(x0({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t}(Ve);function Wz(r,t,e){a(0),a(1);function a(n){var i=t.getDimensionModel(ae[n]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),c=[],v=o.resetCellIterator();v.next();){var f=v.item,h={};Se.copy(h,f.rect),jf(c,f.id.x,f.id.y),yT(c,t,r,e,f.option,s,l,i,h,f.option.value,Fz,u)}}}function Uz(r,t,e,a,n){i("body",t.getBody(),e,a),e.shouldShow()&&a.shouldShow()&&i("corner",t.getCorner(),a,e);function i(o,s,l,u){var c=new de(t.getShallow(o,!0)),v=c.getModel("itemStyle"),f=c.getModel("label"),h=new oa,p=new oa,d=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(p,1);p.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=p.item;jf(d,y.id.x,m.id.y);var S=s.getCell(d);if(!(S&&S.inSpanOf&&S.inSpanOf!==S)){var _={};S&&S.span?Se.copy(_,S.spanRect):(y.dim.getLayout(_,0,d[0]),m.dim.getLayout(_,1,d[1]));var x=S?S.option:null;yT(d,t,r,n,x,v,f,c,_,x?x.value:null,Gz,g)}}}}function yT(r,t,e,a,n,i,o,s,l,u,c,v){var f;Bs.option=n?n.itemStyle:null,Bs.parentModel=i,Pn.option=n,Pn.parentModel=s;var h=ne(Pn.getShallow("z2"),n&&n.itemStyle?c.special:c.normal),p=v&&v.show,d=If(l,Bs.getItemStyle(),h);e.add(d);var g=Pn.get("cursor");g!=null&&d.attr("cursor",g);var y;if(u!=null){var m=u+"";if(kn.option=n?n.label:null,kn.parentModel=o,kn.ecModel=a,vt(d,{normal:kn},{defaultText:m,autoOverflowArea:!0,layoutRect:te(d.shape)}),y=d.getTextContent(),y){y.z2=h+1;var S=y.style;if(S&&S.overflow&&S.overflow!=="none"&&S.lineOverflow){var _={};Se.copy(_,l),en(_,(((f=d.style)===null||f===void 0?void 0:f.lineWidth)||0)/2,!0,!0),d.updateInnerText(),y.getLocalTransform(Vs),Er(Vs,Vs),Se.applyTransform(_,_,Vs),y.setClipPath(new ye({shape:_}))}}Wr({el:d,componentModel:t,itemName:m,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}if(y){var x=kn.get("silent");x==null&&(x=!p),y.silent=x,y.ignoreHostSilent=!0}var b=Pn.get("silent");b==null&&(b=!d.style||d.style.fill==="none"||!d.style.fill),d.silent=b,Mu(Pn),Mu(Bs),Mu(kn)}var Pn=new de,Bs=new de,kn=new de,Vs=[];function If(r,t,e){var a=t.lineWidth;if(a){var n=r.x+r.width,i=r.y+r.height;r.x=Ba(r.x,a,!0),r.y=Ba(r.y,a,!0),r.width=Ba(n,a,!0)-r.x,r.height=Ba(i,a,!0)-r.y}return new ye({shape:r,style:t,z2:e})}function x0(r,t,e){var a=t.lineWidth;return a&&(Os(r.x1*2)===Os(r.x2*2)&&(r.x1=r.x2=Ba(r.x1,a,!0)),Os(r.y1*2)===Os(r.y2*2)&&(r.y1=r.y2=Ba(r.y1,a,!0))),new ut({shape:r,style:t,silent:!0,z2:e})}var Yz=function(){function r(t,e,a){this.dimensions=r.dimensions,this.type="matrix",this._model=t;var n=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(t,a)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(t,e){var a=[];return t.eachComponent("matrix",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Uo({targetModel:i,coordSysType:"matrix",coordSysProvider:nx})}),a},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(t,e){var a=this._dims,n=this._dimModels,i=this._rect=Fe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});b0(n,a,i,0),b0(n,a,i,1),w0(0,a),w0(1,a),T0(this._model.getBody(),a),T0(this._model.getCorner(),a)},r.prototype.dataToPoint=function(t,e,a){return a=a||[],this.dataToLayout(t,e,Wi),a[0]=Wi.rect.x+Wi.rect.width/2,a[1]=Wi.rect.y+Wi.rect.height/2,a},r.prototype.dataToLayout=function(t,e,a){var n=this._dims;a=a||{};var i=a.rect=a.rect||{};i.x=i.y=i.width=i.height=NaN;var o=a.matrixXYLocatorRange=dT(a.matrixXYLocatorRange);return G(t)&&(gT(o,null,t,n,ne(e&&e.clamp,Rr.none)),(!e||!e.ignoreMergeCells)&&((!e||e.clamp!==Rr.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!e||e.clamp!==Rr.body)&&this._model.getCorner().expandRangeByCellMerge(o)),d0(i,o,n,0),d0(i,o,n,1)),a},r.prototype.pointToData=function(t,e,a){var n=this._dims;return C0(sr,0,n,t,e&&e.clamp),C0(sr,1,n,t,e&&e.clamp),a=a||[],a[0]=a[1]=NaN,sr.y===gt.inCorner&&sr.x===gt.inBody?A
90(sr,a,0,n):sr.x===gt.inCorner&&sr.y===gt.inBody?A0(sr,a,1,n):(D0(sr,a,0,n),D0(sr,a,1,n)),a},r.prototype.convertToPixel=function(t,e,a,n){var i=qc(e);return i===this?i.dataToPoint(a,n):void 0},r.prototype.convertToLayout=function(t,e,a,n){var i=qc(e);return i===this?i.dataToLayout(a,n):void 0},r.prototype.convertFromPixel=function(t,e,a,n){var i=qc(e);return i===this?i.pointToData(a,n):void 0},r.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},r.dimensions=["x","y","value"],r}(),Wi={rect:Ul()},zs=new oa,Kc=new oa;function b0(r,t,e,a){for(var n=1-a,i=t[ae[a]],o=t[ae[n]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,a);u.next();)u.item.wh=u.item.xy=NaN;for(var c=e[et[a]],v=i.getLocatorCount(a)+o.getLocatorCount(a),f=new de,h=o.resetLevelIterator();h.next();)f.option=h.item.option,f.parentModel=r[ae[n]],g(h.item,s?f.get("levelSize"):0);for(var p=new de,d=i.resetCellIterator();d.next();)d.item.type===Dr.leaf&&(p.option=d.item.option,p.parentModel=void 0,g(d.item,p.get("size")));function g(w,C){var A=Zz(C,a,e);Tt(A)||(w.wh=Lf(A,c),c=Lf(c-w.wh),v--)}var y=v?c/v:0,m=!v&&c>=1,S=e[ae[a]],_=i.getLocatorCount(a)-1,x=new oa;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){Tt(w.wh)&&(w.wh=y),w.xy=S,w.id[ae[a]]===_&&!m&&(w.wh=e[ae[a]]+e[et[a]]-w.xy),S+=w.wh}}function w0(r,t){for(var e=t[ae[r]].resetCellIterator();e.next();){var a=e.item;Yl(a.rect,r,a.id,a.span,t),Yl(a.rect,1-r,a.id,a.span,t),a.type===Dr.nonLeaf&&(a.xy=a.rect[ae[r]],a.wh=a.rect[et[r]])}}function T0(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Yl(n,0,i,a,t),Yl(n,1,i,a,t)}})}function Yl(r,t,e,a,n){r[et[t]]=0;var i=e[ae[t]],o=i<0?n[ae[1-t]]:n[ae[t]],s=o.getUnitLayoutInfo(t,e[ae[t]]);if(r[ae[t]]=s.xy,r[et[t]]=s.wh,a[ae[t]]>1){var l=o.getUnitLayoutInfo(t,e[ae[t]]+a[ae[t]]-1);r[et[t]]=l.xy+l.wh-s.xy}}function Zz(r,t,e){var a=fl(r,e[et[t]]);return Lf(a,e[et[t]])}function Lf(r,t){return Math.max(Math.min(r,ne(t,1/0)),0)}function qc(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var gt={inBody:1,inCorner:2,outside:3},sr={x:null,y:null,point:[]};function C0(r,t,e,a,n){var i=e[ae[t]],o=e[ae[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),c=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,v=r.point[t]=a[t];if(!l&&!c){r[ae[t]]=gt.outside;return}if(n===Rr.body){l?(r[ae[t]]=gt.inBody,v=Rt(s.xy+s.wh,$e(l.xy,v)),r.point[t]=v):r[ae[t]]=gt.outside;return}else if(n===Rr.corner){c?(r[ae[t]]=gt.inCorner,v=Rt(c.xy+c.wh,$e(u.xy,v)),r.point[t]=v):r[ae[t]]=gt.outside;return}var f=l?l.xy:c?c.xy+c.wh:NaN,h=u?u.xy:f,p=s?s.xy+s.wh:f;if(v<h){if(!n){r[ae[t]]=gt.outside;return}v=h}else if(v>p){if(!n){r[ae[t]]=gt.outside;return}v=p}r.point[t]=v,r[ae[t]]=f<=v&&v<=p?gt.inBody:h<=v&&v<=f?gt.inCorner:gt.outside}function A0(r,t,e,a){var n=1-e;if(r[ae[e]]!==gt.outside)for(a[ae[e]].resetCellIterator(Kc);Kc.next();){var i=Kc.item;if(M0(r.point[e],i.rect,e)&&M0(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[ae[n]];return}}}function D0(r,t,e,a){if(r[ae[e]]!==gt.outside){var n=r[ae[e]]===gt.inCorner?a[ae[1-e]]:a[ae[e]];for(n.resetLayoutIterator(zs,e);zs.next();)if(Xz(r.point[e],zs.item)){t[e]=zs.item.id[ae[e]];return}}}function Xz(r,t){return t.xy<=r&&r<=t.xy+t.wh}function M0(r,t,e){return t[ae[e]]<=r&&r<=t[ae[e]]+t[et[e]]}function $z(r){r.registerComponentModel(Bz),r.registerComponentView(Hz),r.registerCoordinateSystem("matrix",Yz)}function Kz(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function I0(r,t){var e;return T(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function qz(r,t,e){var a=H({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(he(n,a,!0),mr(n,a,{ignoreSize:!0}),ux(e,n),Gs(e,n),Gs(e,n,"shape"),Gs(e,n,"style"),Gs(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var mT=["transition","enterFrom","leaveTo"],jz=mT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Gs(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?mT:jz,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function Jz(r,t){if(r&&(r.hv=t.hv=[I0(t,["left","right"]),I0(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var Qz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=g_(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];T(l,function(c,v){var f=c.newOption;f&&(u.push(f),Kz(c,f),qz(o,v,f),Jz(o[v],f))},this),n.elements=De(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,a,n){T(e,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(pe),L0={path:null,compoundPath:null,group:J,image:Kt,text:_e},Ht=ve(),eG=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=K()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");T(a,function(l){var u=it(l.id,null),c=u!=null?n.get(u):null,v=it(l.parentId,null),f=v!=null?n.get(v):i,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&Kw(p,h,!!g,!!d)){var y=qw(p,h,!0);
9!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=tG(l),S=l.$action||"merge",_=S==="merge",x=S==="replace";if(_){var b=!c,w=c;b?w=P0(u,f,l.type,n):(w&&(Ht(w).isNew=!1),eT(w)),w&&(nl(w,m,e,{isInit:b}),k0(w,l,o,s))}else if(x){sl(c,l,n,e);var C=P0(u,f,l.type,n);C&&(nl(C,m,e,{isInit:!0}),k0(C,l,o,s))}else S==="remove"&&(Jw(c,l),sl(c,l,n,e));var A=n.get(u);if(A&&d)if(_){var D=A.getTextContent();D?D.attr(d):A.setTextContent(new _e(d))}else x&&A.setTextContent(new _e(d));if(A){var M=l.clipPath;if(M){var L=M.type,I=void 0,b=!1;if(_){var R=A.getClipPath();b=!R||Ht(R).type!==L,I=b?Pf(L):R}else x&&(b=!0,I=Pf(L));A.setClipPath(I),nl(I,M,e,{isInit:b}),Fl(I,M.keyframeAnimation,e)}var k=Ht(A);A.setTextConfig(g),k.option=l,rG(A,e,l),Wr({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),Fl(A,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var v=n[c],f=it(v.id,null),h=f!=null?o.get(f):null;if(!(!h||!h.isGroup)){var p=h.parent,d=p===i,g=Ht(h),y=Ht(p);g.width=Y(g.option.width,d?s:y.width)||0,g.height=Y(g.option.height,d?l:y.height)||0}}for(var c=n.length-1;c>=0;c--){var v=n[c],f=it(v.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=Ht(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},S={},_=su(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},S);if(!Ht(h).isNew&&_){for(var x=v.transition,b={},w=0;w<u.length;w++){var C=u[w],A=S[C];x&&(Xa(x)||ge(x,C)>=0)?b[C]=A:h[C]=A}xe(h,b,e,0)}else h.attr(S)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){sl(n,Ht(n).option,a,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ve);function Pf(r){var t=$(L0,r)?L0[r]:gl(r),e=new t({});return Ht(e).type=r,e}function P0(r,t,e,a){var n=Pf(e);return t.add(n),a.set(r,n),Ht(n).id=r,Ht(n).isNew=!0,n}function sl(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){sl(i,t,e,a)}),_u(r,t,a),e.removeKey(Ht(r).id))}function k0(r,t,e,a){r.isGroup||T([["cursor",$a.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];$(t,i)?r[i]=ne(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),T(at(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=Q(i)?i:null}}),$(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function tG(r){return r=H({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ix),function(t){delete r[t]}),r}function rG(r,t,e){var a=ee(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ee(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function aG(r){r.registerComponentModel(Qz),r.registerComponentView(eG),r.registerPreprocessor(function(t){var e=t.graphic;G(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var R0=["x","y","radius","angle","single"],nG=["cartesian2d","polar","singleAxis"];function iG(r){var t=r.get("coordinateSystem");return ge(nG,t)>=0}function aa(r){return r+"Axis"}function oG(r,t){var e=K(),a=[],n=K();r.eachComponent({mainType:"dataZoom",query:t},function(c){n.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){n.set(c.uid,!0),a.push(c),u(c)}function l(c){var v=!1;return c.eachTargetAxis(function(f,h){var p=e.get(f);
9p&&p[h]&&(v=!0)}),v}function u(c){c.eachTargetAxis(function(v,f){(e.get(v)||e.set(v,[]))[f]=!0})}return a}function ST(r){var t=r.ecModel,e={infoList:[],infoMap:K()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(aa(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var jc=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Ro=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=E0(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=E0(e);he(this.option,e,!0),he(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=K(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return T(R0,function(n){var i=this.getReferringComponents(aa(n),aA);if(i.specified){a=!0;var o=new jc;T(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});l(s,"single")}function l(u,c){var v=u[0];if(v){var f=new jc;if(f.add(v.componentIndex),e.set(c,f),i=!1,c==="x"||c==="y"){var h=v.getReferringComponents("grid",Ue).models[0];h&&T(u,function(p){v.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",Ue).models[0]&&f.add(p.componentIndex)})}}}i&&T(R0,function(u){if(i){var c=n.findComponents({mainType:aa(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var v=new jc;v.add(c[0].componentIndex),e.set(u,v),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(aa(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){T(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(aa(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;T(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(pe);function E0(r){var t={};return T(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var sG=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Ro),Bp=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(Ve),lG=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Bp),On=T,N0=Zt,uG=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(iG(e)){var a=aa(this._dimName),n=e.getReferringComponents(a,Ue).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return te(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;On(["start","end"],function(f,h){var p=t[f],d=t[f+"Value"];
9i[h]==="percent"?(p==null&&(p=o[h]),d=n.parse(Te(p,o,e))):(u=!0,d=d==null?e[h]:n.parse(d),p=Te(d,e,o)),l[h]=d==null||isNaN(d)?e[h]:d,s[h]=p==null||isNaN(p)?o[h]:p}),N0(l),N0(s);var c=this._minMaxSpan;u?v(l,s,e,o,!1):v(s,l,o,e,!0);function v(f,h,p,d,g){var y=g?"Span":"ValueSpan";pa(0,f,p,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)h[m]=Te(f[m],p,d,!0),g&&(h[m]=n.parse(h[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=cG(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;On(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var v=u.getStore(),f=U(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,d,g,y=0;y<c.length;y++){var m=v.get(f[y],h),S=!isNaN(m),_=m<o[0],x=m>o[1];if(S&&!_&&!x)return!0;S&&(g=!0),_&&(p=!0),x&&(d=!0)}return g&&p&&d})}else On(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});On(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;On(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Te(a[0]+o,a,[0,100],!0):i!=null&&(o=Te(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=s_(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function cG(r,t,e){var a=[1/0,-1/0];On(e,function(o){NL(a,o.getData(),t)});var n=r.getAxisModel(),i=Ob(n.axis.scale,n,a).calculate();return[i.min,i.max]}var vG={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(aa(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new uG(n,i,s,r),e.push(o.__dzAxisProxy))});var a=K();return T(e,function(n){T(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function fG(r){r.registerAction("dataZoom",function(t,e){var a=oG(e,t);T(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var O0=!1;function Vp(r){O0||(O0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,vG),fG(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function hG(r){r.registerComponentModel(sG),r.registerComponentView(lG),Vp(r)}var Wt=function(){function r(){}return r}(),_T={};function Bn(r,t){_T[r]=t}function xT(r){return _T[r]}var pG=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(a,n){var i=xT(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),he(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:N.size.m,itemSize:15,itemGap:N.size.s,showTitle:!0,iconStyle:{borderColor:N.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:N.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(pe);function bT(r,t){var e=Ho(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new ye({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}
9);return n}var dG=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),v=[];T(u,function(m,S){v.push(S)}),new Vr(this._featureNames||[],v).add(f).update(f).remove(se(f,null)).execute(),this._featureNames=v;function f(m,S){var _=v[m],x=v[S],b=u[_],w=new de(b,e,e.ecModel),C;if(i&&i.newTitle!=null&&i.featureName===_&&(b.title=i.newTitle),_&&!x){if(gG(_))C={onclick:w.option.onclick,featureName:_};else{var A=xT(_);if(!A)return;C=new A}c[_]=C}else if(C=c[x],!C)return;C.uid=di("toolbox-feature"),C.model=w,C.ecModel=a,C.api=n;var D=C instanceof Wt;if(!_&&x){D&&C.dispose&&C.dispose(a,n);return}if(!w.get("show")||D&&C.unusable){D&&C.remove&&C.remove(a,n);return}h(w,C,_),w.setIconStatus=function(M,L){var I=this.option,R=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[M]=L,R[M]&&(L==="emphasis"?Or:Br)(R[M])},C instanceof Wt&&C.render&&C.render(w,a,n,i)}function h(m,S,_){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=S instanceof Wt&&S.getIcons?S.getIcons():m.get("icon"),C=m.get("title")||{},A,D;X(w)?(A={},A[_]=w):A=w,X(C)?(D={},D[_]=C):D=C;var M=m.iconPaths={};T(A,function(L,I){var R=Fo(L,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(x.getItemStyle());var k=R.ensureState("emphasis");k.style=b.getItemStyle();var P=new _e({style:{text:D[I],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:vh({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});R.setTextContent(P),Wr({el:R,componentModel:e,itemName:I,formatterParamsExtra:{title:D[I]}}),R.__title=D[I],R.on("mouseover",function(){var B=b.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:b.get("textFill")||B.fill||B.stroke||N.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),R.setTextConfig({position:b.get("textPosition")||E}),P.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&n.leaveEmphasis(this),P.hide()}),(m.get(["iconStatus",I])==="emphasis"?Or:Br)(R),o.add(R),R.on("click",Z(S.onclick,S,a,n,I)),M[I]=R})}var p=lt(e,n).refContainer,d=e.getBoxLayoutParams(),g=e.get("padding"),y=Fe(d,p,g);Ya(e.get("orient"),o,e.get("itemGap"),y.width,y.height),su(o,d,p,g),o.add(bT(o.getBoundingRect(),e)),l||o.eachChild(function(m){var S=m.__title,_=m.ensureState("emphasis"),x=_.textConfig||(_.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!Q(w)&&S){var C=w.style||(w.style={}),A=Ql(S,_e.makeFont(C)),D=m.x+o.x,M=m.y+o.y+s,L=!1;M+A.height>n.getHeight()&&(x.position="top",L=!0);var I=L?-5-A.height:s+10;D+A.width/2>n.getWidth()?(x.position=["100%",I],C.align="right"):D-A.width/2<0&&(x.position=[0,I],C.align="left")}})},t.prototype.updateView=function(e,a,n,i){T(this._features,function(o){o instanceof Wt&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){T(this._features,function(n){n instanceof Wt&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){T(this._features,function(n){n instanceof Wt&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(Ve);function gG(r){return r.indexOf("my")===0}var yG=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||N.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Ye.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var d=i+"."+s;
9if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var S=document.createElement("iframe");document.body.appendChild(S);var _=S.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),_.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(S)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:N.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Wt),B0="__ec_magicType_stack__",mG=[["line","bar"],["stack"]],SG=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return T(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(V0[n]){var s={series:[]},l=function(v){var f=v.subType,h=v.id,p=V0[n](f,h,v,i);p&&(oe(p,v.option),s.series.push(p));var d=v.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=v.getReferringComponents(m,Ue).models[0],_=S.componentIndex;s[m]=s[m]||[];for(var x=0;x<=_;x++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=n==="bar"}}};T(mG,function(v){ge(v,n)>=0&&T(v,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;n==="stack"&&(u=he({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Wt),V0={line:function(r,t,e,a){if(r==="bar")return he({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return he({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===B0;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),he({id:t,stack:n?"":B0},a.get(["option","stack"])||{},!0)}};xr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var xu=new Array(60).join("-"),ii=" ";function _G(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function xG(r){var t=[];return T(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(U(e.series,function(h){return h.name})),l=[n.model.getCategories()];T(e.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(ii)],c=0;c<l[0].length;c++){for(var v=[],f=0;f<l.length;f++)v.push(l[f][c]);u.push(v.join(ii))}t.push(u.join(` 10`))}),t.join(` 11 12`+xu+` 13 14`)}function bG(r){return U(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+ii:"")+n.join(ii))}),a.join(` 15`)}).join(` 16 17`+xu+` 18 19`)}function wG(r){var t=_G(r);return{value:De([xG(t.seriesGroupByCategoryAxis),bG(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(` 20 21`+xu+` 22 23`),meta:t.meta}}function Zl(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function TG(r){var t=r.slice(0,r.indexOf(` 24`));if(t.indexOf(ii)>=0)return!0}var kf=new RegExp("["+ii+"]+","g");function CG(r){for(var t=r.split(/\n+/g),e=Zl(t.shift()).split(kf),a=[],n=U(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Zl(t[i]).split(kf);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function AG(r){for(var t=r.split(/\n+/g),e=Zl(t.shift()),a=[],n=0;n<t.length;n++){var i=Zl(t[n]);if(i){var o=i.split(kf),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;
24c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function DG(r,t){var e=r.split(new RegExp(` 25*`+xu+` 26*`,"g")),a={series:[]};return T(e,function(n,i){if(TG(n)){var o=CG(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=AG(n);a.series.push(o)}}),a}var MG=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||N.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),f=i.get("contentToOption"),h=wG(e);if(Q(v)){var p=v(a.getOption());X(p)?u.innerHTML=p:dv(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var d=c.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(o),x._dom=null}ad(S,"click",b),ad(_,"click",function(){if(f==null&&v!=null||f!=null&&v==null){b();return}var w;try{Q(f)?w=f(u,a.getOption()):w=DG(c.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),b()}),S.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=S.style.cssText=m,!i.get("readOnly")&&y.appendChild(_),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:N.color.background,textColor:N.color.primary,textareaColor:N.color.background,textareaBorderColor:N.color.border,buttonColor:N.color.accent50,buttonTextColor:N.color.neutral00};return a},t}(Wt);function IG(r,t){return U(r,function(e,a){var n=t&&t[a];if(ie(n)&&!G(n)){var i=ie(e)&&!G(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=oe(e,n),o&&delete e.name,e}else return e})}xr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];T(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(H({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:IG(a.data,i)})}}),t.mergeOption(oe({series:e},r.newOption))});var wT=T,TT=ve();function LG(r,t){var e=zp(r);wT(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function PG(r){var t=zp(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return wT(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function kG(r){TT(r).snapshots=null}function RG(r){return zp(r).length}function zp(r){var t=TT(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var EG=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){kG(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Wt);xr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var NG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Gp=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=z0(e,t);
26T(OG,function(o,s){(!a||!a.include||ge(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Jc[a.brushType](0,i,n);a.__rangeOffset={offset:W0[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){T(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&T(i.coordSyses,function(o){var s=Jc[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Jc[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?W0[a.brushType](i.values,o.offset,BG(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return U(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:Iw(n),isTargetByCursor:Pw(n,t,a.coordSysModel),getLinearBrushOtherExtent:Lw(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&ge(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=z0(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<G0.length;l++)if(G0[l](n,o))return o}return!0},r}();function Rf(r){return r[0]>r[1]&&r.reverse(),r}function z0(r,t){return Hn(r,t,{includeMainTypes:NG})}var OG={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=K(),o={},s={};!e&&!a&&!n||(T(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),T(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),T(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];T(u.getCartesians(),function(v,f){(ge(e,v.getAxis("x").model)>=0||ge(a,v.getAxis("y").model)>=0)&&c.push(v)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:F0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:F0.geo})})}},G0=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],F0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ua(r)),t}},Jc={lineX:se(H0,0),lineY:se(H0,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Rf([n[0],i[0]]),Rf([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=U(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function H0(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Rf(U([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var W0={lineX:se(U0,0),lineY:se(U0,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return U(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function U0(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function BG(r,t){var e=Y0(r),a=Y0(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Y0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Ef=T,VG=JC("toolbox-dataZoom_"),zG=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new vp(n.getZr()),this._brushController.on("brush",Z(this._onBrush,this)).mount()),HG(e,a,this,i,n),FG(e,a)},t.prototype.onclick=function(e,a,n){GG[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;
26if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Gp(Fp(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,v){if(v.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",v,c[0]),s("y",v,c[1])):s({lineX:"x",lineY:"y"}[f],v,c)}}),LG(i,n),this._dispatchZoomAction(n);function s(u,c,v){var f=c.getAxis(u),h=f.model,p=l(u,h,i),d=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(v=pa(0,v.slice(),f.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:v[0],endValue:v[1]})}function l(u,c,v){var f;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},t.prototype._dispatchZoomAction=function(e){var a=[];Ef(e,function(n,i){a.push(te(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:N.color.backgroundTint}};return a},t}(Wt),GG={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(PG(this.ecModel))}};function Fp(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function FG(r,t){r.setIconStatus("back",RG(t)>1?"emphasis":"normal")}function HG(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Gp(Fp(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}AD("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=Fp(a),o=Hn(r,i);Ef(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Ef(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var v=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:VG+u+v};f[c]=v,n.push(f)}return n});function WG(r){r.registerComponentModel(pG),r.registerComponentView(dG),Bn("saveAsImage",yG),Bn("magicType",SG),Bn("dataView",MG),Bn("dataZoom",zG),Bn("restore",EG),ue(hG)}var UG=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:N.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:N.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:N.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:N.color.tertiary,fontSize:14}},t}(pe);function CT(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function AT(r){if(Ye.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var DT=AT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),YG=AT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function MT(r,t){if(!r)return t;t=ex(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function ZG(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var XG=MT(YG,"transition"),Hp=MT(DT,"transform"),$G="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ye.transform3dSupported?"will-change:transform;":"");
26function KG(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function qG(r,t,e){if(!X(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=rn(t);var i=KG(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Hp+":",u;ge(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,v=o+n,f=v*Math.abs(Math.cos(c))+v*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*n)/2+Math.SQRT2*n-(f-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=t+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"];return'<div style="'+d.join("")+'"></div>'}function jG(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Ye.transformSupported?""+Hp+n:",left"+n+",top"+n)),XG+":"+i}function Z0(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Ye.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ye.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Hp+":"+o+";":[["top",0],["left",0],[DT,o]]}function JG(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=ne(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),T(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function QG(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),v=r.getModel("textStyle"),f=Fx(r,"html"),h=u+"px "+c+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(jG(i,e,a)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(p){var d="border-"+p,g=ex(d),y=r.get(g);y!=null&&n.push(d+":"+y+(p==="color"?"":"px"))}),n.push(JG(v)),f!=null&&n.push("padding:"+Ho(f).join("px ")+"px"),n.join(";")+";"}function X0(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&DC(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var e5=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ye.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(X(i)?document.querySelector(i):dv(i)?i:Q(i)&&i(t.getDom()));X0(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();AC(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=ZG(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=$G+QG(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Z0(i[0],i[1],!0)+("border-color:"+rn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(X(i)&&a.get("trigger")==="item"&&!CT(a)&&(s=qG(a,n,i)),X(t))o.innerHTML=t+s;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var l=0;l<t.length;l++)dv(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(X0(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Z0(a[0],a[1]);T(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Ye.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;MC(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r}(),t5=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),K0(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;ie(t)&&be(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new _e({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:Fx(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect
26(),a=$0(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;K0(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Qr(i.borderWidth||0),s=$0(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Qr(r){return Math.max(0,r)}function $0(r){var t=Qr(r.shadowBlur||0),e=Qr(r.shadowOffsetX||0),a=Qr(r.shadowOffsetY||0);return{left:Qr(t-e),right:Qr(t+e),top:Qr(t-a),bottom:Qr(t+a)}}function K0(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var r5=new ye({shape:{x:-1,y:-1,width:2,height:2}}),a5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(Ye.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=iA(n.get("renderMode"));this._tooltipContent=i==="richText"?new t5(a):new e5(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(Ye.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?yi(this,"_updatePosition",50,"fixRate"):xo(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");uT("itemTooltip",this._api,Z(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Ye.node||!n.getDom())){var o=q0(i,n);this._ticket="";var s=i.dataByCoordSys,l=s5(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=r5;c.x=i.x,c.y=i.y,c.update(),ee(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var v=cT(i,a),f=v.point[0],h=v.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(q0(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),v=Ui([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=ee(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Fa(n,function(c){if(c.tooltipDisabled)return l=u=null,!0;
26l||u||(ee(c).dataIndex!=null?l=c:ee(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Z(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Ui([a.tooltipOption],i),l=this._renderMode,u=[],c=tt("section",{blocks:[],noHeader:!0}),v=[],f=new zu;T(e,function(m){T(m.dataByAxis,function(S){var _=n.getComponent(S.axisDim+"Axis",S.axisIndex),x=S.value;if(!(!_||x==null)){var b=oT(x,_.axis,n,S.seriesDataIndices,S.valueLabelOpt),w=tt("section",{header:b,noHeader:!si(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),T(S.seriesDataIndices,function(C){var A=n.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=S.axisDim,M.axisIndex=S.axisIndex,M.axisType=S.axisType,M.axisId=S.axisId,M.axisValue=Al(_.axis,{value:x}),M.axisValueLabel=b,M.marker=f.makeTooltipMarker("item",rn(M.color),l);var L=Zd(A.formatTooltip(D,!0,null)),I=L.frag;if(I){var R=Ui([A],i).get("valueFormatter");w.blocks.push(R?H({valueFormatter:R},I):I)}L.text&&v.push(L.text),u.push(M)}})}})}),c.blocks.reverse(),v.reverse();var h=a.position,p=s.get("order"),d=Jd(c,f,l,p,n.get("useUTC"),s.get("textStyle"));d&&v.unshift(d);var g=l==="richText"?` 27 28`:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=ee(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,v=o.dataType,f=u.getData(v),h=this._renderMode,p=e.positionDefault,d=Ui([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,v),m=new zu;y.marker=m.makeTooltipMarker("item",rn(y.color),h);var S=Zd(u.formatTooltip(c,!1,v)),_=d.get("order"),x=d.get("valueFormatter"),b=S.frag,w=b?Jd(x?H({valueFormatter:x},b):b,m,h,_,i.get("useUTC"),d.get("textStyle")):S.text,C="item_"+u.name+"_"+c;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=ee(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(X(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=te(l),l.content=Lt(l.content));var v=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&v.push(f),v.push({formatter:l.content});var h=e.positionDefault,p=Ui(v,this._tooltipModel,h?{position:h}:null),d=p.get("content"),g=Math.random()+"",y=new zu;this._showOrMove(p,function(){var m=te(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var v=this._tooltipContent;v.setEnterable(e.get("enterable"));var f=e.get("formatter");l=l||e.get("position");var h=a,p=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),d=p.color;if(f)if(X(f)){var g=e.ecModel.get("useUTC"),y=G(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,m&&(h=ou(y.axisValue,h,g)),h=tx(h,n,!0)}else if(Q(f)){var S=Z(function(_,x){_===this._ticket&&(v.setContent(x,c,e,d,l),this._updatePosition(e,l,o,s,v,n,u))},this);this._ticket=i,h=f(n,i,S)}else h=f;v.setContent(h,c,e,d,l),v.show(e,d),this._updatePosition(e,l,o,s,v,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||G(a))return{color:i||o};if(!G(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var v=o.getSize(),f=e.get("align"),h=e.get("verticalAlign"),p=l&&l.getBoundingRect
28().clone();if(l&&p.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,c],contentSize:v.slice()})),G(a))n=Y(a[0],u),i=Y(a[1],c);else if(ie(a)){var d=a;d.width=v[0],d.height=v[1];var g=Fe(d,{width:u,height:c});n=g.x,i=g.y,f=null,h=null}else if(X(a)&&l){var y=o5(a,p,v,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=n5(n,i,o,u,c,f?null:20,h?null:20);n=y[0],i=y[1]}if(f&&(n-=j0(f)?v[0]/2:f==="right"?v[0]:0),h&&(i-=j0(h)?v[1]/2:h==="bottom"?v[1]:0),CT(e)){var y=i5(n,i,o,u,c);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},v=c.dataByAxis||[];o=o&&u.length===v.length,o&&T(u,function(f,h){var p=v[h]||{},d=f.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&d.length===g.length,o&&T(d,function(y,m){var S=g[m];o=o&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),i&&T(f.seriesDataIndices,function(y){var m=y.seriesIndex,S=a[m],_=i[m];S&&_&&_.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Ye.node||!a.getDom()||(xo(this,"_updatePosition"),this._tooltipContent.dispose(),Af("itemTooltip",a))},t.type="tooltip",t}(Ve);function Ui(r,t,e){var a=t.ecModel,n;e?(n=new de(e,a,a),n=new de(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof de&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(n=new de(o,n,a)))}return n}function q0(r,t){return r.dispatchAction||Z(t.dispatchAction,t)}function n5(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function i5(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function o5(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+c+o;break;case"left":s=t.x-n-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function j0(r){return r==="center"||r==="middle"}function s5(r,t,e){var a=eh(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=vi(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ee(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function l5(r){ue(Qo),r.registerComponentModel(UG),r.registerComponentView(a5),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mt)}var u5=["rect","polygon","keep","clear"];function c5(r,t){var e=Le(r?r.brush:[]);if(e.length){var a=[];T(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;G(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),v5(s),t&&!s.length&&s.push.apply(s,u5)}}function v5(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,a){r.push(a)})}var J0=T;function Q0(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Nf(r,t,e){var a={};return J0(t,function(i){var o=a[i]=n();J0(r[i],function(s,l){if(ct.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new ct(u),l==="opacity"&&(u=te(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ct(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function IT(r,t,e){var a;T(e,function(n){t.hasOwnProperty(n)&&Q0(t[n])&&(a=!0)}),a&&T(e,function(n){t.hasOwnProperty(n)&&Q0(t[n])?r[n]=te(t[n]):delete r[n]})}function f5(r,t,e,a,n,i){var o={};T(r,function(v){var f=ct.prepareVisualTypes(t[v]);o[v]=f});var s;function l(v){return kh(e,s,v)}function u(v,f){jx(e,s,v,f)}e.each(c);function c(v,f){s=v;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=a.call(n,v),d=t[p],g=o[p],y=0,m=g.length;y<m;y++){var S=g[y];d[S]&&d[S].applyVisual(v,l,u)}}}function h5(r,t,e,a){var n={};return T(r,function(i){var o=ct.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(x){return kh(s,v,x)}function c(x,b){jx(s,v,x,b)}for(var v,f=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var p=a!=null?f.get(l,v):v,d=e(p),g=t[d],y=n[d],m=0,S=y.length;m<S;m++){var _=y[m];g[_]&&g[_].applyVisual(p,u,c)}}}}}function p5(r){var t=r.brushType,e={point:function(a){return eS[t].point(a,e,r)},rect:function(a){return eS[t].rect(a,e,r)}};return e}var eS={lineX:tS(0),lineY:tS(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&Ea(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Ea(a,n,i)||Ea(a,n+o,i)||Ea(a,n,i+s)||Ea(a,n+o,i+s)||Se.create(r).contain(l[0],l[1])||Ki(n,i,n+o,i,a)||Ki(n,i,n,i+s,a)||Ki(n+o,i,n+o,i+s,a)||Ki(n,i+s,n+o,i+s,a))return!0}}};function tS(r){var t=["x","y"],e=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return Yi(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),Yi(s[0],o)||Yi(s[1],o)||Yi(o[0],s)||Yi(o[1],s)}}}}function Yi(r,t){return t[0]<=r&&r<=t[1]}var rS=["inBrush","outOfBrush"],Qc="__ecBrushSelect",Of="__ecInBrushSelectEvent";function LT(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new Gp(t.option,r);e.setInputRanges(t.areas,r)})}function d5(r,t,e){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),LT(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:te(o.areas),selected:[]};a.push(l);var u=o.option,c=u.brushLink,v=[],f=[],h=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=U(o.areas,function(x){var b=S5[x.brushType],w=oe({boundingRect:b?b(x):void 0},x);return w.selectors=p5(w),w}),g=Nf(o.option,rS,function(x){x.mappingMethod="fixed"});G(c)&&T(c,function(x){v[x]=1});function y(x){return c==="all"||!!v[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=h[b]=[];x.subType==="parallel"?S(x,b):_(x,b,w)});function S(x,b){var w=x.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(C,A){C==="active"&&(f[A]=1)})}function _(x,b,w){if(!(!x.brushSelector||m5(o,b))&&(T(d,function(A){o.brushTargetManager.controlSeries(A,x,r)&&w.push(A),p=p||m(w)}),y(b)&&m(w))){var C=x.getData();C.each(function(A){aS(x,w,C,A)&&(f[A]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);
28var C=h[b],A=x.getData(),D=y(b)?function(M){return f[M]?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return aS(x,C,A,M)?(w.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(b)?p:m(C))&&f5(rS,g,A,D)})}),g5(t,n,i,a,e)}function g5(r,t,e,a,n){if(n){var i=r.getZr();if(!i[Of]){i[Qc]||(i[Qc]=y5);var o=yi(i,Qc,e,t);o(r,a)}}}function y5(r,t){if(!r.isDisposed()){var e=r.getZr();e[Of]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[Of]=!1}}function aS(r,t,e,a){for(var n=0,i=t.length;n<i;n++){var o=t[n];if(r.brushSelector(a,e,o.selectors,o))return!0}}function m5(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(G(e)?ge(e,t)<0:t!==e)}var S5={rect:function(r){return nS(r.range)},polygon:function(r){for(var t,e=r.range,a=0,n=e.length;a<n;a++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[a];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&nS(t)}};function nS(r){return new Se(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var _5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new vp(a.getZr())).on("brush",Z(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){LT(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:te(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:te(n),$from:a})},t.type="brush",t}(Ve),x5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&IT(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=U(e,function(a){return iS(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=iS(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:N.color.backgroundTint,borderColor:N.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:N.color.disabled},t}(pe);function iS(r,t){return he({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new de(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var b5=["rect","polygon","lineX","lineY","keep","clear"],w5=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,T(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return T(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brush
28Mode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:b5.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Wt);function T5(r){r.registerComponentView(_5),r.registerComponentModel(x5),r.registerPreprocessor(c5),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,d5),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Mt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Mt),Bn("brush",w5)}var C5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:N.size.m,backgroundColor:N.color.transparent,borderColor:N.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:N.color.primary},subtextStyle:{fontSize:12,color:N.color.quaternary}},t}(pe),A5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ne(e.get("textBaseline"),e.get("textVerticalAlign")),c=new _e({style:Pe(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=c.getBoundingRect(),f=e.get("subtext"),h=new _e({style:Pe(s,{text:f,fill:s.getTextColor(),y:v.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!d&&!g,p&&c.on("click",function(){Sl(p,"_"+e.get("target"))}),d&&h.on("click",function(){Sl(d,"_"+e.get("subtarget"))}),ee(c).eventData=ee(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var S=lt(e,n),_=Fe(m,S.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var x={align:l,verticalAlign:u};
28c.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=_.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var C=new ye({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(Ve);function D5(r){r.registerComponentModel(C5),r.registerComponentView(A5)}var oS=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],T(a,function(u,c){var v=it(ci(u),""),f;ie(u)?(f=te(u),f.value=c):f=c,o.push(f),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Ct([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:N.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:N.color.secondary},data:[]},t}(pe),PT=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=ma(oS.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:N.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:N.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:N.color.tertiary},itemStyle:{color:N.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:N.color.accent60},itemStyle:{color:N.color.accent60,borderColor:N.color.accent60},controlStyle:{color:N.color.accent70,borderColor:N.color.accent70}},progress:{lineStyle:{color:N.color.accent30},itemStyle:{color:N.color.accent40}},data:[]}),t}(oS);ft(PT,uu.prototype);var M5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Ve),I5=function(r){O(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(or),ev=Math.PI,sS=ve(),L5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return tt("nameValue",{noName:!0,value:c})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=k5(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":X(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:ev/2},v=i==="vertical"?o.height:o.width,f=e.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,d=h?f.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*ev/180;var m,S,_,x=f.get("position",!0),b=h&&f.get("showPlayBtn",!0),w=h&&f.get("showPrevBtn",!0),C=h&&f.get("showNextBtn",!0),A=0,D=v;x==="left"||x==="bottom"?(b&&(m=[0,0],A+=g),w&&(S=[A,0],A+=g),C&&(_=[D-p,0],D-=g)):(b&&(m=[D-p,0],D-=g),w&&(S=[0,0],A+=g),C&&(_=[D-p,0],D-=g));var M=[A,D];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:S,nextBtnPosition:_,axisExtent:M,controlSize:p,controlGa
28p:d}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=rr(),l=o.x,u=o.y+o.height;Ka(s,s,[-l,-u]),ui(s,s,-ev/2),Ka(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),v=m(n.getBoundingRect()),f=m(i.getBoundingRect()),h=[n.x,n.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var d=e.labelPosOpt;if(d==null||X(d)){var g=d==="+"?0:1;S(h,v,c,1,g),S(p,f,c,1,1-g)}else{var g=d>=0?0:1;S(h,v,c,1,g),p[1]=h[1]+d}n.setPosition(h),i.setPosition(p),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function S(_,x,b,w,C){_[w]+=b[w][C]-x[w][C]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=P5(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new I5("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new J;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new ut({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ut({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:oe({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],T(l,function(u){var c=n.dataToCoord(u.value),v=s.getItemModel(u.value),f=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),p=v.getModel(["progress","itemStyle"]),d={x:c,y:0,onclick:Z(o._changeTimeline,o,u.value)},g=lS(v,f,a,d);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Wa(g);var y=ee(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],T(u,function(c){var v=c.tickValue,f=l.getItemModel(v),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),d=f.getModel(["progress","label"]),g=n.dataToCoord(c.tickValue),y=new _e({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:Z(o._changeTimeline,o,v),silent:!1,style:Pe(h,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Pe(p),y.ensureState("progress").style=Pe(d),a.add(y),Wa(y),sS(y).dataIndex=v,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),v=i.get("inverse",!0);f(e.nextBtnPosition,"next",Z(this._changeTimeline,this,v?"-":"+")),f(e.prevBtnPosition,"prev",Z(this._changeTimeline,this,v?"+":"-")),f(e.playPosition,c?"stop":"play",Z(this._handlePlayClick,this,!c),!0);function f(h,p,d,g){if(h){var y=Xn(ne(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=R5(i,p+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});S.ensureState("emphasis").style=u,a.add(S),Wa(S)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(v){v.draggable=!0,v.drift=Z(u._handlePointerDrag,u),v.ondragend=Z(u._handlePointerDragend,u),uS(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){uS(v,u._progressLine,s,n,i)}};this._currentPointer=lS(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Zt(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getL
28ocalTransform();return er(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<n&&(n=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",sS(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(M5);function P5(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new jn({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Fh({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new zr}}function k5(r,t){return Fe(r.getBoxLayoutParams(),lt(r,t).refContainer,r.get("padding"))}function R5(r,t,e,a){var n=a.style,i=Fo(r.get(["controlStyle",t]),a||{},new Se(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function lS(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=rt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=he({rectHover:!0,z2:100},a,!0);var u=mi(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=fn(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function uS(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function E5(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),oe({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function N5(r){var t=r&&r.timeline;G(t)||(t=t?[t]:[]),T(t,function(e){e&&O5(e)})}function O5(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),cS(r),Oa(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Oa(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Oa(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}T(r.data||[],function(n){ie(n)&&!G(n)&&(!Oa(n,"value")&&Oa(n,"name")&&(n.value=n.name),cS(n))})}function cS(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};T(a,function(o,s){!i[s]&&!Oa(n,s)&&(n[s]=o)}),e.label&&!Oa(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function Oa(r,t){return r.hasOwnProperty(t)}function B5(r){r.registerComponentModel(PT),r.registerComponentView(L5),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),E5(r),r.registerPreprocessor(N5)}function Wp(r,t){if(!r)return!1;for(var e=G(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function Fs(r){qa(r,"label",["show"])}var Hs=ve(),_r=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ye.node)return!1;var e=this.__hostSeries;
28return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Hs(s)[o];if(!l||!l.data){Hs(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&Fs(l),T(l.data,function(c){c instanceof Array?(Fs(c[0]),Fs(c[1])):Fs(c)}),u=this.createMarkerModelFromSeries(l,this,a),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Hs(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return tt("section",{header:this.name,blocks:[tt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var n=uu.prototype.getDataParams.call(this,e,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,a){return Hs(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(pe);ft(_r,uu.prototype);var V5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(_r);function Bf(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function z5(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Ws(r,t,e,a,n,i,o){var s=[],l=fa(t,n),u=l?t.getCalculationInfo("stackResultDimension"):n,c=Xl(t,u,r),v=t.hostModel,f=v.indicesOfNearest(e,u,c)[0];s[i]=t.get(a,f),s[o]=t.get(u,f);var h=t.get(n,f),p=hr(t.get(n,f));return p=Math.min(p,20),p>=0&&(s[o]=+s[o].toFixed(p)),[s,h]}var Us={min:se(Ws,"min"),max:se(Ws,"max"),average:se(Ws,"average"),median:se(Ws,"median")};function Eo(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!z5(t)&&!G(t.coord)&&G(n)){var i=kT(t,e,a,r);if(t=te(t),t.type&&Us[t.type]&&i.baseAxis&&i.valueAxis){var o=ge(n,i.baseAxis.dim),s=ge(n,i.valueAxis.dim),l=Us[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!G(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&Us[t.type]){var c=a.getOtherAxis(u);c&&(t.value=Xl(e,e.mapDimension(c.dim),t.type))}}else for(var v=t.coord,f=0;f<2;f++)Us[v[f]]&&(v[f]=Xl(e,e.mapDimension(n[f]),v[f]));return t}}function kT(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(G5(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function G5(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function No(r,t){return r&&r.containData&&t.coord&&!Bf(t)?r.containData(t.coord):!0}function F5(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Bf(t)&&!Bf(e)?r.containZone(t.coord,e.coord):!0}function RT(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return la(o,t[i])}:function(e,a,n,i){return la(e.value,t[i])}}function Xl(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var tv=ve(),Up=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=K()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){tv(s).keep=!1}),a.eachSeries(function(s){var l=_r.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!tv(s).keep&&i.group.remove(s.group)}),H5(a,o,this.type)},t.prototype.markKeep=function(e){tv(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;T(e,function(i){var o=_r.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?A_(l):oh(l))})}})},t.type="marker",t}(Ve);function H5(r,t,e){r.eachSeries(function(a){var n=_r.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=tn(n),s=o.z,l=o.zlevel;nu(i.group,s,l)}})}function vS(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",c=u?o?o.width:0:n,v=u?o?o.height:0:i,f=u&&o?o.x:0,h=u&&o?o.y:0,p,d=Y(l.get("x"),
28c)+f,g=Y(l.get("y"),v)+h;if(!isNaN(d)&&!isNaN(g))p=[d,g];else if(t.getMarkerPosition)p=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);p=a.dataToPoint([y,m])}isNaN(d)||(p[0]=d),isNaN(g)||(p[1]=g),r.setItemLayout(s,p)})}var W5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=_r.getMarkerModelFromSeries(i,"markPoint");o&&(vS(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Ko),v=U5(o,e,a);a.setData(v),vS(a.getData(),e,i),v.each(function(f){var h=v.getItemModel(f),p=h.getShallow("symbol"),d=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(Q(p)||Q(d)||Q(g)||Q(y)){var S=a.getRawValue(f),_=a.getDataParams(f);Q(p)&&(p=p(S,_)),Q(d)&&(d=d(S,_)),Q(g)&&(g=g(S,_)),Q(y)&&(y=y(S,_))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Yo(l,"color");x.fill||(x.fill=w),v.setItemVisual(f,{z2:ne(b,0),symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),c.updateData(v),this.group.add(c.group),v.eachItemGraphicEl(function(f){f.traverse(function(h){ee(h).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(Up);function U5(r,t,e){var a;r?a=U(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ct(a,e),i=U(e.get("data"),se(Eo,t));r&&(i=De(i,se(No,r)));var o=RT(!!r,a);return n.initData(i,null,o),n}function Y5(r){r.registerComponentModel(V5),r.registerComponentView(W5),r.registerPreprocessor(function(t){Wp(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Z5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(_r),Ys=ve(),X5=function(r,t,e,a){var n=r.getData(),i;if(G(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=yt(a.yAxis,a.xAxis);else{var u=kT(a,n,t,r);s=u.valueAxis;var c=Tb(n,u.valueDataDim);l=Xl(n,c,o)}var v=s.dim==="x"?0:1,f=1-v,h=te(a),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var d=e.get("precision");d>=0&&we(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[v]=p.coord[v]=l,i=[h,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Eo(r,i[0]),Eo(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,he(g[2],g[0]),he(g[2],g[1]),g};function $l(r){return!isNaN(r)&&!isFinite(r)}function fS(r,t,e,a){var n=1-r,i=a.dimensions[r];
28return $l(t[n])&&$l(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function $5(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(fS(1,e,a,r)||fS(0,e,a,r)))return!0}return No(r,t[0])&&No(r,t[1])}function rv(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=Y(o.get("x"),n.getWidth()),u=Y(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=i.dimensions,v=r.get(c[0],t),f=r.get(c[1],t);s=i.dataToPoint([v,f])}if(ha(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;$l(r.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):$l(r.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var K5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=_r.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ys(o).from,u=Ys(o).to;l.each(function(c){rv(l,c,!0,i,n),rv(u,c,!1,i,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new up);this.group.add(c.group);var v=q5(o,e,a),f=v.from,h=v.to,p=v.line;Ys(a).from=f,Ys(a).to=h,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");G(d)||(d=[d,d]),G(g)||(g=[g,g]),G(y)||(y=[y,y]),G(m)||(m=[m,m]),v.from.each(function(_){S(f,_,!0),S(h,_,!1)}),p.each(function(_){var x=p.getItemModel(_),b=x.getModel("lineStyle").getLineStyle();p.setItemLayout(_,[f.getItemLayout(_),h.getItemLayout(_)]);var w=x.get("z2");b.stroke==null&&(b.stroke=f.getItemVisual(_,"style").fill),p.setItemVisual(_,{z2:ne(w,0),fromSymbolKeepAspect:f.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(_,"symbolOffset"),fromSymbolRotate:f.getItemVisual(_,"symbolRotate"),fromSymbolSize:f.getItemVisual(_,"symbolSize"),fromSymbol:f.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:b})}),c.updateData(p),v.line.eachItemGraphicEl(function(_){ee(_).dataModel=a,_.traverse(function(x){ee(x).dataModel=a})});function S(_,x,b){var w=_.getItemModel(x);rv(_,x,b,e,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Yo(l,"color")),_.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ne(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:ne(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:ne(w.get("symbolSize"),g[b?0:1]),symbol:ne(w.get("symbol",!0),d[b?0:1]),style:C})}this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(Up);function q5(r,t,e){var a;r?a=U(r&&r.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ct(a,e),i=new Ct(a,e),o=new Ct([],e),s=U(e.get("data"),se(X5,t,r,e));r&&(s=De(s,se($5,r)));var l=RT(!!r,a);return n.initData(U(s,function(u){return u[0]}),null,l),i.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function j5(r){r.registerComponentModel(Z5),r.registerComponentView(K5),r.registerPreprocessor(function(t){Wp(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var J5=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(_r),Zs=ve(),Q5=function(r,t,e,a){var n=a[0],i=a[1];
28if(!(!n||!i)){var o=Eo(r,n),s=Eo(r,i),l=o.coord,u=s.coord;l[0]=yt(l[0],-1/0),l[1]=yt(l[1],-1/0),u[0]=yt(u[0],1/0),u[1]=yt(u[1],1/0);var c=qf([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Kl(r){return!isNaN(r)&&!isFinite(r)}function hS(r,t,e,a){var n=1-r;return Kl(t[n])&&Kl(e[n])}function e3(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return ha(r,"cartesian2d")?e&&a&&(hS(1,e,a)||hS(0,e,a))?!0:F5(r,n,i):No(r,n)||No(r,i)}function pS(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=Y(o.get(e[0]),n.getWidth()),u=Y(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],t),v=r.getValues(["x1","y1"],t),f=i.clampData(c),h=i.clampData(v),p=[];e[0]==="x0"?p[0]=f[0]>h[0]?v[0]:c[0]:p[0]=f[0]>h[0]?c[0]:v[0],e[1]==="y0"?p[1]=f[1]>h[1]?v[1]:c[1]:p[1]=f[1]>h[1]?c[1]:v[1],s=a.getMarkerPosition(p,e,!0)}else{var d=r.get(e[0],t),g=r.get(e[1],t),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ha(i,"cartesian2d")){var m=i.getAxis("x"),S=i.getAxis("y"),d=r.get(e[0],t),g=r.get(e[1],t);Kl(d)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Kl(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var dS=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],t3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=_r.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(dS,function(v){return pS(s,l,v,i,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new J});this.group.add(c.group),this.markKeep(c);var v=r3(o,e,a);a.setData(v),v.each(function(f){var h=U(dS,function(D){return pS(v,f,D,e,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(v.get("x0",f)),p.parse(v.get("x1",f))],S=[d.parse(v.get("y0",f)),d.parse(v.get("y1",f))];Zt(m),Zt(S);var _=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),x=!_;v.setItemLayout(f,{points:h,allClipped:x});var b=v.getItemModel(f),w=b.getModel("itemStyle").getItemStyle(),C=b.get("z2"),A=Yo(l,"color");w.fill||(w.fill=A,X(w.fill)&&(w.fill=vl(w.fill,.4))),w.stroke||(w.stroke=A),v.setItemVisual(f,"style",w),v.setItemVisual(f,"z2",ne(C,0))}),v.diff(Zs(c).data).add(function(f){var h=v.getItemLayout(f),p=v.getItemVisual(f,"z2");if(!h.allClipped){var d=new Nt({z2:ne(p,0),shape:{points:h.points}});v.setItemGraphicEl(f,d),c.group.add(d)}}).update(function(f,h){var p=Zs(c).data.getItemGraphicEl(h),d=v.getItemLayout(f),g=v.getItemVisual(f,"z2");d.allClipped?p&&c.group.remove(p):(p?xe(p,{z2:ne(g,0),shape:{points:d.points}},a,f):p=new Nt({shape:{points:d.points}}),v.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=Zs(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),v.eachItemGraphicEl(function(f,h){var p=v.getItemModel(h),d=v.getItemVisual(h,"style");f.useStyle(v.getItemVisual(h,"style")),vt(f,st(p),{labelFetcher:a,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:X(d.fill)?vl(d.fill,1):N.color.neutral99}),ot(f,p),Ge(f,null,null,p.get(["emphasis","disabled"])),ee(f).dataModel=a}),Zs(c).data=v,c.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(Up);function r3(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var c=t.getData(),v=c.getDimensionInfo(c.mapDimension(u))||{};return H(H({},v),{name:u,ordinalMeta:null})});n=U(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new Ct(n,e)}else n=[{name:"value",type:"float"}],a=new Ct(n,e);var s=U(e.get("data"),se(Q5,t,r,e));r&&(s=De(s,se(e3,r)));var l=r?function(u,c,v,f){var h=u.coord[Math.floor(f/2)][f%2];return la(h,n[f])}:function(u,c,v,f){return la(u.value,n[f])};return a.initData(s,null,l),a.hasItemOption=!0,a}function a3(r){r.registerComponentModel(J5),r.registerComponentView(t3),r.registerPreprocessor(function(t){Wp(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var n3=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Vf=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),G(a)&&T(a,function(i,o){X(i)&&(i={type:i}),a[o]=he(i,n3(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var v=l.legendVisualProvider,f=v.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(f)),f.length?a=a.concat(f):c=!0}else c=!0;c&&Qf(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=K(),s=U(i,function(l){return(X(l)||we(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new de(l,this,this.ecModel))},this);this._data=De(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;T(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;T(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;T(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ge(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:N.size.m,align:"auto",backgroundColor:N.color.transparent,borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:N.color.disabled,inactiveBorderColor:N.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:N.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
28Limit:"inherit"},textStyle:{color:N.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:N.color.tertiary,borderWidth:1,borderColor:N.color.border},emphasis:{selectorLabel:{show:!0,color:N.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(pe),Rn=se,zf=T,Xs=J,ET=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Xs),this.group.add(this._selectorGroup=new Xs),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var c=lt(e,n).refContainer,v=e.getBoxLayoutParams(),f=e.get("padding"),h=Fe(v,c,f),p=this.layoutInner(e,o,h,i,l,u),d=Fe(oe({width:p.width,height:p.height},v),c,f);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bT(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),c=K(),v=a.get("selectedMode"),f=a.get("triggerEvent"),h=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&h.push(p.id)}),zf(a.getData(),function(p,d){var g=this,y=p.get("name");if(!this.newlineDisabled&&(y===""||y===` 29`)){var m=new Xs;m.newline=!0,u.add(m);return}var S=n.getSeriesByName(y)[0];if(!c.get(y))if(S){var _=S.getData(),x=_.getVisual("legendLineStyle")||{},b=_.getVisual("legendIcon"),w=_.getVisual("style"),C=this._createItem(S,y,d,p,a,e,x,w,b,v,i);C.on("click",Rn(gS,y,null,i,h)).on("mouseover",Rn(Gf,S.name,null,i,h)).on("mouseout",Rn(Ff,S.name,null,i,h)),n.ssr&&C.eachChild(function(A){var D=ee(A);D.seriesIndex=S.seriesIndex,D.dataIndex=d,D.ssrType="legend"}),f&&C.eachChild(function(A){g.packEventData(A,a,S,d,y)}),c.set(y,!0)}else n.eachRawSeries(function(A){var D=this;if(!c.get(y)&&A.legendVisualProvider){var M=A.legendVisualProvider;if(!M.containName(y))return;var L=M.indexOfName(y),I=M.getItemVisual(L,"style"),R=M.getItemVisual(L,"legendIcon"),k=n_(I.fill);k&&k[3]===0&&(k[3]=.2,I=H(H({},I),{fill:$s(k,"rgba")}));var P=this._createItem(A,y,d,p,a,e,{},I,R,v,i);P.on("click",Rn(gS,null,y,i,h)).on("mouseover",Rn(Gf,null,y,i,h)).on("mouseout",Rn(Ff,null,y,i,h)),n.ssr&&P.eachChild(function(B){var E=ee(B);E.seriesIndex=A.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),f&&P.eachChild(function(B){D.packEventData(B,a,A,d,y)}),c.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ee(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();zf(e,function(u){var c=u.type,v=new _e({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var f=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);vt(v,{normal:f,emphasis:h},{defaultText:u.title}),Wa(v)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,v,f){var h=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),S=i.get("icon");c=S||c||"roundRect";var _=i3(c,i,l,u,h,g,f),x=new Xs,b=i.getModel("textStyle");if(Q(e.getLegendIcon)&&(!S||S==="inherit"))x.add(e.getLegendIcon({itemWidth:p,itemHeight:d,icon:c,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var w=S==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(o3({itemWidth:p,itemHeight:d,icon:c,iconRotate:w,itemStyle:_.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,A=s,D=o.get("formatter"),M=a;X(D)&&D?M=D.replace("{name}",a??""):Q(D)&&(M=D(a));var L=g?b.getTextColor():i.get("inactiveColor");x.add(new _e({style:Pe(b,{text:M,x:C,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));
29var I=new ye({shape:x.getBoundingRect(),style:{fill:"transparent"}}),R=i.getModel("tooltip");return R.get("show")&&Wr({el:I,componentModel:o,itemName:a,itemTooltipOption:R.option}),x.add(I),x.eachChild(function(k){k.silent=!0}),I.silent=!v,this.getContentGroup().add(x),Wa(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ya(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),v=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ya("horizontal",u,e.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?h[d]+=c[g]+p:v[d]+=f[g]+p,h[1-d]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var S={x:0,y:0};return S[g]=c[g]+p+f[g],S[y]=Math.max(c[y],f[y]),S[m]=Math.min(0,f[m]+h[1-d]),S}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ve);function i3(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),zf(g,function(m,S){g[S]==="inherit"&&(g[S]=y[S])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:qn(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var p=t.get("inactiveBorderWidth"),d=u[c];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function o3(r){var t=r.icon||"roundRect",e=rt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=N.color.neutral00,e.style.lineWidth=2),e}function gS(r,t,e,a){Ff(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Gf(r,t,e,a)}function NT(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function Gf(r,t,e,a){NT(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Ff(r,t,e,a){NT(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function s3(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Zi(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),yS(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),yS(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function yS(r,t){var e=t||{};return T(r.getData(),function(a){var n=a.get("name");if(!(n===` 30`||n==="")){var i=r.isSelected(n);$(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function l3(r){r.registerAction("legendToggleSelect","legendselectchanged",se(Zi,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",se(Zi,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",se(Zi,"inverseSelect")),r.registerAction("legendSelect","legendselected",se(Zi,"select")),r.registerAction("legendUnSelect","legendunselected",se(Zi,"unSelect"))}function OT(r){r.registerComponentModel(Vf),r.registerComponentView(ET),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,s3),r.registerSubTypeDefaulter("legend",function(){return"plain"}),l3(r)}var u3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=cn(e);r.prototype.init.call(this,e,a,n),mS(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),mS(this,this.option,e)},t.type="legend.scroll",t.defaultOption=ma(Vf.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:N.color.accent50,pageIconInactiveColor:N.color.accent10,pageIconSize:15,pageTextStyle:{color:N.color.tert
30iary},animationDurationUpdate:800}),t}(Vf);function mS(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,mr(t,e,{type:"box",ignoreSize:!!n})}var SS=J,av=["width","height"],nv=["x","y"],c3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new SS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new SS)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,v=a.get("pageIconSize",!0),f=G(v)?v:[v,v];p("pagePrev",0);var h=a.getModel("pageTextStyle");c.add(new _e({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Fo(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Z(u._pageGo,u,y,a,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});m.name=d,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=av[u],v=nv[u],f=av[1-u],h=nv[1-u];o&&Ya("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=te(n);o&&(y[c]=n[c]-d[c]-p);var m=this._layoutContentAndController(e,i,y,u,c,f,h,v);if(o){if(s==="end")g[u]+=m[c]+p;else{var S=d[c]+p;g[u]-=S,m[v]-=S}m[c]+=d[c]+p,g[1-u]+=m[h]+m[f]/2-d[f]/2,m[f]=Math.max(m[f],d[f]),m[h]=Math.min(m[h],d[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),v=this._containerGroup,f=this._controllerGroup;Ya(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Ya("horizontal",f,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=f.getBoundingRect(),d=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=c[u]);var y=[0,0],m=[-p.x,-p.y],S=ne(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var _=e.get("pageButtonPosition",!0);_==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+S}m[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),v.setPosition(y),f.setPosition(m);var x={x:0,y:0};if(x[o]=d?n[o]:h[o],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),v.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-S,0),b[s]=x[s],v.setClipPath(new ye({shape:b})),v.__rectSize=b[o]}else f.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&xe(c,{x:w.contentPosition[0],y:w.contentPosition[1]},d?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(c){var v=c+"DataIndex",f=a[v]!=null,h=n.childOfName(c);h&&(h.setStyle("fill",f?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=av[o],l=nv[o],u=this._findTargetItemIndex(a),c=n.children(),v=c[u],f=c.length,h=f?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return p;var d=_(v);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,S=null;g<=f;++g)S=_(c[g]),(!S&&m.e>y.s+i||S&&!x(S,y.s))&&(m.i>y.i?y=m:y=S,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=S;for(var g=u-1,y=d,m=d,S=null;g>=-1;--g)S=_(c[g]),(!S||!x(m,S.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=S;return p;
30function _(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(ET);function v3(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function f3(r){ue(OT),r.registerComponentModel(u3),r.registerComponentView(c3),v3(r)}function h3(r){ue(OT),ue(f3)}var p3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ma(Ro.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ro),Yp=ve();function d3(r,t,e){Yp(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function g3(r,t){for(var e=Yp(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||BT(e,o))}}}function BT(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function y3(r,t){var e={model:t,containsPoint:se(S3,t),dispatchAction:se(m3,r),dataZoomInfoMap:null,controller:null},a=e.controller=new dn(r.getZr());return T(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function m3(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function S3(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function _3(r,t,e){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function x3(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=Yp(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=K());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ST(i);T(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,y3(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){BT(n,i);return}var c=_3(l,i,e);o.enable(c.controlType,c.opt),yi(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var b3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),d3(n,e,{pan:Z(iv.pan,this),zoom:Z(iv.zoom,this),scrollMove:Z(iv.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){g3(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Bp),iv={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=ov[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
30if(pa(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:_S(function(r,t,e,a,n,i){var o=ov[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:_S(function(r,t,e,a,n,i){var o=ov[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function _S(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(pa(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var ov={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function VT(r){Vp(r),r.registerComponentModel(p3),r.registerComponentView(b3),x3(r)}var w3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ma(Ro.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:N.color.accent10,borderRadius:0,backgroundColor:N.color.transparent,dataBackground:{lineStyle:{color:N.color.accent30,width:.5},areaStyle:{color:N.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:N.color.accent40,width:.5},areaStyle:{color:N.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:N.color.neutral00,borderColor:N.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:N.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:N.color.tertiary},brushSelect:!0,brushStyle:{color:N.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:N.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Ro),Xi=ye,T3=1,sv=30,C3=7,$i="horizontal",xS="vertical",A3=5,D3=["line","bar","candlestick","scatter"],M3={easing:"cubicOut",duration:100,delay:0},I3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),yi(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xo(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new J;
30this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?C3:0,o=lt(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===$i?{right:o.width-s.x-s.width,top:o.height-sv-l-i,width:s.width,height:sv}:{right:l,top:s.y,width:sv,height:s.height},c=cn(e.option);T(["right","top","width","height"],function(f){c[f]==="ph"&&(c[f]=u[f])});var v=Fe(c,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===xS&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===$i&&!o?{scaleY:l?1:-1,scaleX:1}:n===$i&&o?{scaleY:l?1:-1,scaleX:-1}:n===xS&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Xi({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Xi({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(e.thisDim),f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var p=[0,a[1]],d=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=d[1]/Math.max(1,o.count()-1),S=a[0]/(v[1]-v[0]),_=e.thisAxis.type==="time",x=-m,b=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(L,I,R){if(b>0&&R%b){_||(x+=m);return}x=_?(+L-v[0])*S:x+m;var k=I==null||isNaN(I)||I==="",P=k?0:Te(I,f,p,!0);k&&!w&&R?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!k&&w&&(g.push([x,0]),y.push([x,0])),k||(g.push([x,P]),y.push([x,P])),w=k}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var C=this.dataZoomModel;function A(L){var I=C.getModel(L?"selectedDataBackground":"dataBackground"),R=new J,k=new Nt({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Dt({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(k),R.add(P),R}for(var D=0;D<3;D++){var M=A(D===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!n&&!(a!==!0&&ge(D3,u.get("type"))<0)){var c=i.getComponent(aa(o),s).axis,v=L3(o),f,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),v=u.getData().mapDimension(v);var p=u.getData().mapDimension(o);n={thisAxis:c,series:u,thisDim:p,otherDim:v,otherAxisInverse:f}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,v=l.get("brushSelect"),f=a.filler=new Xi({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new Xi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c}
30,style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:T3,fill:N.color.transparent}})),T([0,1],function(S){var _=l.get("handleIcon");!bl[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var x=rt(_,-1,0,2,2,null,!0);x.attr({cursor:P3(this._orient),draggable:!0,drift:Z(this._onDragMove,this,S),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Y(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Wa(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(n[S]=x);var A=l.getModel("textStyle"),D=l.get("handleLabel")||{},M=D.show||!1;e.add(i[S]=new _e({silent:!0,invisible:!M,style:Pe(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=f;if(v){var p=Y(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new ye({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=rt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,N.color.neutral00,!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));h=a.moveZone=new ye({invisible:!0,shape:{y:s[1]-m,height:p+m}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Te(e[0],[0,100],a,!0),Te(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];pa(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Te(s.minSpan,l,o,!0):null,s.maxSpan!=null?Te(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Zt([Te(i[0],o,l,!0),Te(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Zt(n.slice()),o=this._size;T([0,1],function(h){var p=a.handles[h],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[h]+(h?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var v=l[c],f=v.getClipPath();f||(f=new ye,v.setClipPath(f)),f.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,v=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var f=Zt(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var d=Ua(n.handles[p].parent,this.group),g=au(p===0?"right":"left",d),y=this._handleWidth/2+A3,m=er([f[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===$i?"middle":g,align:o===$i?g:"center",text:s[p]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Q(i)?i(e,s):X(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,ca(i.event);
30var o=this._displayables.sliderGroup.getLocalTransform(),s=er([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new me(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();pa(0,l,o,0,u.minSpan!=null?Te(u.minSpan,s,o,!0):null,u.maxSpan!=null?Te(u.maxSpan,s,o,!0):null),this._range=Zt([Te(l[0],o,s,!0),Te(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ca(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Xi({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),c=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:v[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?M3:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=ST(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Bp);function L3(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function P3(r){return r==="vertical"?"ns-resize":"ew-resize"}function zT(r){r.registerComponentModel(w3),r.registerComponentView(I3),Vp(r)}function k3(r){ue(VT),ue(zT)}var GT={get:function(r,t,e){var a=te((R3[r]||{})[t]);return e&&G(a)?a[a.length-1]:a}},R3={color:{active:["#006edd","#e0ffff"],inactive:[N.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},bS=ct.mapVisual,E3=ct.eachVisual,N3=G,wS=T,O3=Zt,B3=Te,ql=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&IT(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Z(e,this),this.controllerVisuals=Nf(this.option.controller,a,e),this.targetVisuals=Nf(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=vi(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){T(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],G(e)&&(e=e.slice(),u=!0);var c=a?e:u?[v(e[0]),v(e[1])]:v(e);if(X(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Q(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+c[1]:e[1]===s[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function v(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=O3([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});he(i,n),he(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(v){N3(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:e.get("gradientColor")}}function u(v,f,h){var p=v[f],d=v[h];p&&!d&&(d=v[h]={},wS(p,function(g,y){if(ct.isValidType(y)){var m=GT.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function c(v){var f=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";wS(this.stateList,function(y){var m=this.itemSize,S=v[y];S||(S=v[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=f&&te(f)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=h&&te(h)||(s?m[0]:[m[0],m[0]])),S.symbol=bS(S.symbol,function(b){return b==="none"?g:b});var _=S.symbolSize;if(_!=null){var x=-1/0;E3(_,function(b){b>x&&(x=b)}),S.symbolSize=bS(_,function(b){return B3(b,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:N.color.transparent,borderColor:N.color.borderTint,contentColor:N.color.theme[0],inactiveColor:N.color.disabled,borderWidth:0,padding:N.size.m,textGap:10,precision:0,textStyle:{color:N.color.secondary}},t}(pe),TS=[20,140],V3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=TS[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=TS[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;
30!a||a.auto?(e.auto=1,this.option.range=e):G(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Zt((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent(),i=ne(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=e)&&(i&&a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=CS(this,"outOfRange",this.getExtent()),n=CS(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:e(h,p)})}for(var s=0,l=0,u=n.length,c=a.length;l<c&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<c;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var f=i.length;return{stops:i,outerColors:[f?i[0].color:"transparent",f?i[f-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ma(ql.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:N.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:N.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}}),t}(ql);function CS(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var FT=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Ho(a.get("padding")||0),i=e.getBoundingRect();e.add(new ye({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var v=o.controllerVisuals[i||o.getValueState(e)],f=ct.prepareVisualTypes(v);return T(f,function(h){var p=v[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=v.__alphaForOpacity),ct.dependsOn(h,a)&&p&&p.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api,i=lt(a,n).refContainer;su(e,a.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Ve),AS=[["left","right","width"],["top","bottom","height"]];function HT(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=AS[o],l=[0,null,10],u={},c=0;c<3;c++)u[AS[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var v=[["x","width",3],["y","height",0]][o],f=Fe(u,i,a.padding);return s[(f.margin[v[2]]||0)+f[v[0]]+f[v[1]]*.5<i[v[1]]*.5?0:1]}function ll(r,t){return T(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var ur=Te,z3=T,DS=Math.min,lv=Math.max,G3=12,F3=6,H3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=Z(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Z(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");
vendor: 5,119 bytes, line 30
30this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),f=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new _e({style:Pe(h,{x:c[0],y:c[1],verticalAlign:h.get("verticalAlign")||(f==="horizontal"?"middle":v),align:h.get("align")||(f==="horizontal"?v:"center"),text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=HT(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),c=new J;u.add(c),c.add(n.outOfRange=MS()),c.add(n.inRange=MS(null,s?LS(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),c.setClipPath(new ye({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("å½"),f=lv(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,f,o),this._createHandle(a,u,1,i,f,o)),this._createIndicator(a,u,i,f,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=Z(this._dragHandle,this,n,!1),u=Z(this._dragHandle,this,n,!0),c=Xn(e.get("handleSize"),i[0]),v=rt(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),f=LS(this._orient);v.attr({cursor:f,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ca(y.event)}}),v.x=i[0]/2,v.useStyle(e.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),za(v,!0),a.add(v);var h=this.visualMapModel.textStyleModel,p=new _e({cursor:f,draggable:!0,drift:l,onmousemove:function(y){ca(y.event)},ondragend:u,style:Pe(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[c,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},t.prototype._createIndicator=function(e,a,n,i,o){var s=Xn(e.get("indicatorSize"),n[0]),l=rt(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Kt){var c=l.style;l.useStyle(H({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,f=new _e({silent:!0,invisible:!0,style:Pe(v,{x:0,y:0,text:""})});this.group.add(f);var h=[(o==="horizontal"?i/2:F3)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=f,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():IS(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[ur(a[0],n,i,!0),ur(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];pa(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[ur(i[0],o,s,!0),ur(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Bo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");
30return new J(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);z3([0,1],function(v){var f=o[v];f.setStyle("fill",a.handlesColor[v]),f.y=e[v];var h=ur(e[v],[0,l[1]],u,!0),p=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=p/l[0],f.x=l[0]-p/2;var d=er(n.handleLabelPoints[v],Ua(f,this.group));if(this._orient==="horizontal"){var g=c==="left"||c==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[v].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,v=c.indicator;if(v){v.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",f),p=this.getControllerVisual(e,"symbolSize"),d=ur(e,s,u,!0),g=l[0]-p/2,y={x:v.x,y:v.y};v.y=d,v.x=g;var m=er(c.indicatorLabelPoint,Ua(v,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),x=this._orient,b=x==="horizontal";S.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?_:"middle",align:b?"center":_});var w={x:g,y:d,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,A),S.animateTo(C,A)}else v.attr(w),S.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=DS(lv(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=DS(lv(o[0],e),o[1]);var l=W3(n,s,o),u=[e-l,e+l],c=ur(e,o,s,!0),v=[ur(u[0],o,s,!0),ur(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(c,v[1],"< ",l):v[1]===1/0?this._showIndicator(c,v[0],"> ",l):this._showIndicator(c,c,"â ",l));var f=this._hoverLinkDataIndices,h=[];(a||IS(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var p=tA(f,h);this._dispatchHighDown("downplay",ll(p[0],n)),this._dispatchHighDown("highlight",ll(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Fa(e.target,function(l){var u=ee(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ll(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Ua(a,i?null:this.group);return G(e)?er(e,o,n):au(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(FT);function MS(r,t,e,a){return new Nt({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){ca(n.event)},ondragend:a})}function W3(r,t,e){var a=G3/2,n=r.get("hoverLinkDataSize");return n&&(a=ur(n,t,e,!0)/2),a}function IS(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function LS(r){return r==="vertical"?"ns-resize":"ew-resize"}var U3={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Y3=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Z3=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(h5(a.stateList,a.targetVisuals,Z(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Z(X3,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function X3(r,t,e,a){for(var n=t.targetVisuals[a],i=ct.prepareVisualTypes(n),o={color:Yo(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,v,f)}return o.color;function v(h){return o[h]}function f(h,p){o[h]=p}}var PS=T;function $3(r){var t=r&&r.visualMap;G(t)||(t=t?[t]:[]),PS(t,function(e){if(e){En(e,"splitList")&&!En(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&G(a)&&PS(a,function(n){ie(n)&&(En(n,"start")&&!En(n,"min")&&(n.min=n.start),En(n,"end")&&!En(n,"max")&&(n.max=n.end))})}})}function En(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var kS=!1;function WT(r){kS||(kS=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(U3,Y3),T(Z3,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor($3))}function UT(r){r.registerComponentModel(V3),r.registerComponentView(H3),WT(r)}var K3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],q3[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=te(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=U(this._pieceList,function(l){return l=te(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=ct.listVisualTypes(),i=this.isCategory();T(e.pieces,function(s){T(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),T(a,function(s,l){var u=!1;T(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&T(this.stateList,function(c){(e[c]||(e[c]={}))[l]=GT.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,T(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var s=!1;T(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=te(e)},t.prototype.getValueState=function(e){var a=ct.findPieceIndex(e,this._pieceList);
30return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=ct.findPieceIndex(l,n);c===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,v){var f=i.getRepresentValue({interval:c});v||(v=i.getValueState(f));var h=e(f,v);c[0]===-1/0?n[0]=h:c[1]===1/0?n[1]=h:a.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(c){var v=c.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=ma(ql.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(ql),q3={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),od(r),T(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;T(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),RS(t,r)},pieces:function(r){var t=this.option;T(t.pieces,function(e,a){ie(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],v=0;v<2;v++){for(var f=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=e[f[h]],s[v]=l[h],c[v]=h===2;o[v]==null&&(o[v]=u[v])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ct.retrieveVisuals(e),r.push(n)},this),RS(t,r),od(r),T(r,function(e){var a=e.close,n=[["<","â¤"][a[1]],[">","â¥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function RS(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var j3=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,c=yt(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,o),T(l.viewPieceList,function(f){var h=f.piece,p=new J;p.onclick=Z(this._onItemClick,this,h),this._enableHoverLink(p,f.indexInModelPieceList);var d=a.getRepresentValue(h);if(this._createItemSymbol(p,d,[0,0,s[0],s[1]],v),c){var g=this.visualMapModel.getValueState(d),y=i.get("align")||o;p.add(new _e({style:Pe(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:ne(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}e.add(p)},this),u&&this._renderEndsText(e,u[1],s,c,o),Ya(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:ll(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return HT(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new J,l=this.visualMapModel.textStyleModel;s.add(new _e({style:Pe(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=U(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=rt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=te(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(FT);function YT(r){r.registerComponentModel(K3),r.registerComponentView(j3),WT(r)}function J3(r){ue(UT),ue(YT)}var Q3=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:B_(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),eF=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new Q3(this);if(this._target=null,this.ecModel.eachSeries(function(n){nm(n,null)}),this.shouldShow()){var a=this.getTarget();
30nm(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:N.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:N.color.neutral30,borderColor:N.color.neutral40,opacity:.3},z:10},t}(pe),tF=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new gn),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||N.color.neutral00);var l=lt(e,n).refContainer,u=Fe(ox(e,!0),l),c=s.lineWidth||0,v=this._contentRect=en(u.clone(),c/2,!0,!0),f=new J;i.add(f),f.setClipPath(new ye({shape:v.plain()}));var h=this._targetGroup=new J;f.add(h);var p=u.plain();p.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new ye({style:s,shape:p,silent:!1,cursor:"grab"}));var d=e.getModel("windowStyle"),g=d.getShallow("borderRadius",!0);f.add(this._windowRect=new ye({shape:{x:0,y:0,width:0,height:0,r:g},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),NS(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),NS(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=Fe({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Er([],e.targetTrans),n=Oo([],this._coordSys.transform,a);this._transThisToTarget=Er([],n);var i=e.viewportRect;i?i=i.clone():i=new Se(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(oe({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new dn(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",Z(this._onPan,this)).on("zoom",Z(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=mt([],[e.oldX,e.oldY],a),i=mt([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(ES(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=mt([],[e.originX,e.originY],a);this._api.dispatchAction(ES(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(Ve);function ES(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,H(a,t),a}function NS(r,t){var e=tn(r);nu(t.group,e.z,e.zlevel)}function rF(r){r.registerComponentModel(eF),r.registerComponentView(tF)}var aF={label:{enabled:!0},decal:{show:!1}},OS=ve(),nF={};function iF(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=te(aF);he(a.label,r.getLocaleModel().get("aria"),!1),he(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),c=u.get("show");if(c){var v=K();r.eachSeries(function(f){if(!f.isColorBySeries()){var h=v.get(f.type);h||(h={},v.set(f.type,h)),OS(f).scope=h}}),r.eachRawSeries(function(f){if(r.isSeriesFiltered(f))return;if(Q(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var m=kv(f.ecModel,f.name,nF,r.getSeriesCount()),S=h.getVisual("decal");h.setVisual("decal",_(S,m))}else{var p=f.getRawData(),d={},g=OS(f).scope;h.each(function(x){var b=h.getRawIndex(x);d[b]=x});var y=p.count();
30p.each(function(x){var b=d[x],w=p.getName(x)||x+"",C=kv(f.ecModel,w,g,y),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",_(A,C))})}function _(x,b){var w=x?H(H({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),v=e.getModel("label");if(v.option=oe(v.option,c),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var f=r.getSeriesCount(),h=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,d=Math.min(f,p),g;if(!(f<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var S=[],_=f>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(_,{seriesCount:f}),r.eachSeries(function(C,A){if(A<d){var D=void 0,M=C.get("name"),L=M?"withName":"withoutName";D=f>1?v.get(["series","multiple",L]):v.get(["series","single",L]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var R=v.get(["data","partialData"]);D+=o(R,{displayCnt:h})}else D+=v.get(["data","allData"]);for(var k=v.get(["data","separator","middle"]),P=v.get(["data","separator","end"]),B=v.get(["data","excludeDimensionId"]),E=[],V=0;V<I.count();V++)if(V<h){var z=I.getName(V),F=B?De(I.getValues(V),function(q,re){return ge(B,re)===-1}):I.getValues(V),W=v.get(["data",z?"withName":"withoutName"]);E.push(o(W,{name:z,value:F.join(k)}))}D+=E.join(k)+P,S.push(D)}});var x=v.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=S.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!X(u))return u;var v=u;return T(c,function(f,h){v=v.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),f)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function oF(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},T(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function sF(r){r.registerPreprocessor(oF),r.registerVisual(r.PRIORITY.VISUAL.ARIA,iF)}var BS={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},lF=function(){function r(t){var e=this._condVal=X(t)?new RegExp(t):IC(t)?t:null;if(e==null){var a="";be(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return X(e)?this._condVal.test(t):we(e)?this._condVal.test(t+""):!1},r}(),uF=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),cF=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),vF=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),fF=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),hF=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r}();function Zp(r,t){if(r===!0||r===!1){var e=new uF;return e.value=r,e}var a="";return ZT(r)||be(a),r.and?VS("and",r,t):r.or?VS("or",r,t):r.not?pF(r,t):dF(r,t)}function VS(r,t,e){var a=t[r],n="";G(a)||be(n),a.length||be(n);var i=r==="and"?new cF:new vF;return i.children=U(a,function(o){return Zp(o,e)}),i.children.length||be(n),i}function pF(r,t){var e=r.not,a="";ZT(e)||be(a);var n=new fF;return n.child=Zp(e,t),n.child||be(a),n}function dF(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=at(r),o=r.parser,s=o?Mx(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=$(BS,u)?BS[u]:u,v=r[u],f=s?s(v):v,h=sM(c,f)||c==="reg"&&new lF(f);h||be(e),n.push(h)}}n.length||be(e);var p=new hF;return p.valueGetterParam=a,p.valueParser=s,p.getValue=t.getValue,p.subCondList=n,p}function ZT(r){return ie(r)&&!oi(r)}var gF=function(){function r(t,e){this._cond=Zp(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function yF(r,t){return new gF(r,t)}var mF={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=yF(r.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;$(s,"dimension")||be(l);var c=t.getDimensionInfo(u);return c||be(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},SF={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=Le(e);n.length||be(a);var i=[];T(n,function(c){var v=c.dimension,f=c.order,h=c.parser,p=c.incomparable;if(v==null&&be(a),f!=="asc"&&f!=="desc"&&be(a),p&&p!=="min"&&p!=="max"){var d="";
30be(d)}if(f!=="asc"&&f!=="desc"){var g="";be(g)}var y=t.getDimensionInfo(v);y||be(a);var m=h?Mx(h):null;h&&!m&&be(a),i.push({dimIdx:y.index,parser:m,comparator:new Lx(f,p)})});var o=t.sourceFormat;o!==pt&&o!==Vt&&be(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,v){for(var f=0;f<i.length;f++){var h=i[f],p=t.retrieveValueFromItem(c,h.dimIdx),d=t.retrieveValueFromItem(v,h.dimIdx);h.parser&&(p=h.parser(p),d=h.parser(d));var g=h.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function _F(r){r.registerTransform(mF),r.registerTransform(SF)}var xF=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new Ex(this),qd(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),qd(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:tr},t}(pe),bF=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Ve);function wF(r){r.registerComponentModel(xF),r.registerComponentView(bF)}function zS(r){return G(r[0])}function GS(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var TF={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=EC(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function uv(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=hi("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;zS(r)&&(u=r,c=t),zS(t)&&(u=t,c=r);function v(y,m,S,_,x){var b=y.many,w=y.one;if(b.length===1&&!x){var C=m?b[0]:w,A=m?w:b[0];if(LC(C))v({many:[C],one:A},!0,S,_,!0);else{var D=s?oe({delay:s(S,_)},l):l;PC(C,A,D),i(C,A,C,A,D)}}else for(var M=oe({dividePath:TF[e],individualDelay:s&&function(B,E,V,z){return s(B+S,_)}},l),L=m?kC(b,w,M):RC(w,b,M),I=L.fromIndividuals,R=L.toIndividuals,k=I.length,P=0;P<k;P++){var D=s?oe({delay:s(P,k)},l):l;i(I[P],R[P],m?b[P]:y.one,m?y.one:b[P],D)}}for(var f=u?u===r:r.length>t.length,h=u?GS(c,u):GS(f?t:r,[f?r:t]),p=0,d=0;d<h.length;d++)p+=h[d].many.length;for(var g=0,d=0;d<h.length;d++)v(h[d],f,g,p),g+=h[d].many.length}function Ra(r){if(!r)return[];if(G(r)){for(var t=[],e=0;e<r.length;e++)t.push(Ra(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof Ne&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var XT=1e4,CF=0,FS=1,HS=2,AF=ve();function DF(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function MF(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function WS(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=DF(r,n);if(i){var o=MF(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function US(r){var t=[];return T(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>XT))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:WS(a,o,n,!1),childGroupId:WS(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function cv(r,t,e){r.traverse(function(a){a instanceof Ne&&Be(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function vv(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Nn(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function IF(r,t,e){var a=hi("update",e,t);a&&r.traverse(function(n){if(n instanceof $a){var i=EA(n);i&&n.animateFrom({style:i},a)}})}function LF(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function $T(r,t,e){var a=US(r),n=US(t);function i(S,_,x,b,w){(x||S)&&_.animateFrom({style:x&&x!==S?H(H({},x.style),S.style):S.style},w)}var o=!1,s=CF,l=K(),u=K();a.forEach(function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var c=0;c<n.length;c++){var v=n[c].groupId;if(u.get(v)){s=FS;break}var f=n[c].childGroupId;if(f&&l.get(f)){s=HS;break}}function h(S,_){return function(x){var b=x.data,w=x.dataIndex;return _?b.getId(w):S?s===FS?x.childGroupId:x.groupId:s===HS?x.childGroupId:x.groupId}}var p=LF(a,n),d={};if(!p)for(var c=0;c<n.length;c++){var g=n[c],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(S,_){var x=a[_],b=n[S],w=b.data.hostModel,C=x.data.getItemGraphicEl(x.dataIndex),A=b.data.getItemGraphicEl(b.dataIndex);if(C===A){A&&IF(A,b.dataIndex,w);return}C&&d[C.id]||A&&(Nn(A),C?(Nn(C),vv(C),o=!0,uv(Ra(C),Ra(A),b.divide,w,S,i)):cv(A,w,S))}new Vr(a,n,h(!0,p),h(!1,p),null,"multiple").update(m).updateManyToOne(function(S,_){var x=n[S],b=x.data,w=b.hostModel,C=b.getItemGraphicEl(x.dataIndex),A=De(U(_,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==C&&!d[D.id]});C&&(Nn(C),A.length?(T(A,function(D){Nn(D),vv(D)}),o=!0,uv(Ra(A),Ra(C),x.divide,w,S,i)):cv(C,w,x.dataIndex))}).updateOneToMany(function(S,_){var x=a[_],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&d[b.id])){var w=De(U(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==b}),C=n[S[0]].data.hostModel;w.length&&(T(w,function(A){return Nn(A)}),b?(Nn(b),vv(b),o=!0,uv(Ra(b),Ra(w),x.divide,C,S[0],i)):T(w,function(A){return cv(A,C,S[0])}))}}
30).updateManyToMany(function(S,_){new Vr(_,S,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(S[x],_[b])}).execute()}).execute(),o&&T(t,function(S){var _=S.data,x=_.hostModel,b=x&&e.getViewOfSeriesModel(x),w=hi("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof Ne&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function YS(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function ZS(r){return G(r)?r.sort().join(","):r}function ea(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function PF(r,t){var e=K(),a=K(),n=K();return T(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=YS(i),c=ZS(u);a.set(c,{dataGroupId:s,data:l}),G(u)&&T(u,function(v){n.set(v,{key:c,dataGroupId:s,data:l})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YS(i),u=ZS(l),c=a.get(u);if(c)e.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:ea(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:ea(s),data:s}]});else if(G(l)){var v=[];T(l,function(p){var d=a.get(p);d.data&&v.push({dataGroupId:d.dataGroupId,divide:ea(d.data),data:d.data})}),v.length&&e.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:ea(s)}]})}else{var f=n.get(l);if(f){var h=e.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:ea(f.data)}],newSeries:[]},e.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:ea(s)})}}}}),e}function XS(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function kF(r,t,e,a){var n=[],i=[];T(Le(r.from),function(o){var s=XS(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:ea(t.oldData[s]),groupIdDim:o.dimension})}),T(Le(r.to),function(o){var s=XS(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:ea(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&$T(n,i,a)}function RF(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){T(Le(a.seriesTransition),function(n){T(Le(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][tl]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=AF(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)T(Le(i),function(h){kF(h,n,a,e)});else{var o=PF(n,a);T(o.keys(),function(h){var p=o.get(h);$T(p.oldSeries,p.newSeries,e)})}T(a.updatedSeries,function(h){h[tl]&&(h[tl]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],v=0;v<s.length;v++){var f=s[v].getData();f.count()<XT&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),c.push(f))}})}var EF=function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(t){this.breaks=t.breaks},r.prototype.update=function(t){OF(this,t);var e=this._elapsedExtent;e[0]=this.elapse(t[0]),e[1]=this.elapse(t[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(t,e){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<t&&t<n.vmax){var i=e(t,n.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(t){var e=this._elapsedExtent[1]-this._elapsedExtent[0];return e===0?.5:(this.elapse(t)-this._elapsedExtent[0])/e},r.prototype.scale=function(t){return this.unelapse(t*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(t){for(var e=$S,a=KS,n=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(t<=o.vmax){t>o.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=$S,a=KS,n=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=e+s.vmin-a,u=l+s.gapReal;if(t<=u){t>l?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=a+t-e,a=s.vmax,n=!1;break}e=u,a=s.vmax}return n&&(i=a+t-e),i},r}();function NF(){return new EF}var $S=0,KS=0;function OF(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}}
30,i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};T(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=Xp(s,t);if(u){var c=u.vmin!==s.vmin,v=u.vmax!==s.vmax,f=u.vmax-u.vmin;if(!(c&&v))if(c||v){var h=c?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=f,i[h][l.type].inExtFrac=f/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=f,a[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));T(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?Math.max(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function BF(r,t,e,a,n,i){r!=="no"&&T(e,function(o){var s=Xp(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],c=a(u),v=n*3/4;c>s.vmin-v&&c<s.vmax+v&&(r!=="preserve_extent_bound"||c!==i[0]&&c!==i[1])&&t.splice(l,1)}})}function VF(r,t,e,a){T(t,function(n){var i=Xp(n,e);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),t.length&&r.sort(function(n,i){return n.value-i.value})}function Xp(r,t){var e=Math.max(r.vmin,t[0]),a=Math.min(r.vmax,t[1]);return e<a||e===a&&e>t[0]&&e<t[1]?{vmin:e,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function Hf(r,t,e){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5}T(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:te(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(X(o.gap)){var u=si(o.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;n(c)||(c=0),s.gapParsed.type="tpPrct",s.gapParsed.val=c,l=!0}}if(!l){var v=t(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&T(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var f=s.vmax;s.vmax=s.vmin,s.vmin=f}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return T(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function $p(r,t){return Wf(t)===Wf(r)}function Wf(r){return r.start+"_\0_"+r.end}function zF(r,t,e){var a=[];T(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),T(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=sn(a,function(u){return $p(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return T(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function GF(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=sn(e,function(v){return $p(v.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(t,o.vmin),s.vmin),u=a(Math.pow(t,o.vmax),s.vmax),c={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?Je(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:c,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function FF(r,t,e){var a={noNegative:!0},n=Hf(r,e,a),i=Hf(r,e,a),o=Math.log(t);return i.breaks=U(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var HF={vmin:"start",vmax:"end"};function WF(r,t){return t&&(r=r||{},r.break={type:HF[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function UF(){aD({createScaleBreakContext:NF,pruneTicksByBreak:BF,addBreaksToTicks:VF,parseAxisBreakOption:Hf,identifyAxisBreak:$p,serializeAxisBreakIdentifier:Wf,retrieveAxisBreakPairs:zF,getTicksLogTransformBreak:GF,logarithmicParseBreaksFromOption:FF,makeAxisLabelFormatterParamBreak:WF})}var qS=ve();function YF(r,t){var e=sn(r,function(a){return Qe().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function ZF(r){T(r,function(t){return t.shouldRemove=!0})}function XF(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function $F(r,t,e,a,n){var i=e.axis;
30if(i.scale.isBlank()||!Qe())return;var o=Qe().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(A){return A.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var v=s.get("expandOnClick"),f=s.get("zigzagZ"),h=s.getModel("itemStyle"),p=h.getItemStyle(),d=p.stroke,g=p.lineWidth,y=p.lineDash,m=p.fill,S=new J({ignoreModelZ:!0}),_=i.isHorizontal(),x=qS(t).visualList||(qS(t).visualList=[]);ZF(x);for(var b=function(A){var D=o[A][0].break.parsedBreak,M=[];M[0]=i.toGlobalCoord(i.dataToCoord(D.vmin,!0)),M[1]=i.toGlobalCoord(i.dataToCoord(D.vmax,!0)),M[1]<M[0]&&M.reverse();var L=YF(x,D);L.shouldRemove=!1;var I=new J;C(L.zigzagRandomList,I,M[0],M[1],_,D),v&&I.on("click",function(){var R={type:pu,breaks:[{start:D.breakOption.start,end:D.breakOption.end}]};R[i.dim+"AxisIndex"]=e.componentIndex,n.dispatchAction(R)}),I.silent=!v,S.add(I)},w=0;w<o.length;w++)b(w);r.add(S),XF(x);function C(A,D,M,L,I,R){var k={stroke:d,lineWidth:g,lineDash:y,fill:"none"},P=I?0:1,B=1-P,E=a[ae[B]]+a[et[B]];function V(qe){var ze=[],Me=[];ze[P]=Me[P]=qe,ze[B]=a[ae[B]],Me[B]=E;var He={x1:ze[0],y1:ze[1],x2:Me[0],y2:Me[1]};return Yf(He,He,{lineWidth:1}),ze[0]=He.x1,ze[1]=He.y1,ze[P]}M=V(M),L=V(L);for(var z=[],F=[],W=!0,q=a[ae[B]],re=0;;re++){var ce=q===a[ae[B]],Oe=q>=E;Oe&&(q=E);var Ke=[],fe=[];Ke[P]=M,fe[P]=L,!ce&&!Oe&&(Ke[P]+=W?-l:l,fe[P]-=W?l:-l),Ke[B]=q,fe[B]=q,z.push(Ke),F.push(fe);var le=void 0;if(re<A.length?le=A[re]:(le=Math.random(),A.push(le)),q+=le*(c-u)+u,W=!W,Oe)break}var Ce=Qe().serializeAxisBreakIdentifier(R.breakOption);if(D.add(new Dt({anid:"break_a_"+Ce,shape:{points:z},style:k,z:f})),R.gapReal!==0){D.add(new Dt({anid:"break_b_"+Ce,shape:{points:F},style:k,z:f}));var Ae=F.slice();Ae.reverse();var Re=z.concat(Ae);D.add(new Nt({anid:"break_c_"+Ce,shape:{points:Re},style:{fill:m,opacity:p.opacity},z:f}))}}}function KF(r,t,e,a){var n=r.axis,i=e.transform;Pt(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=Qe().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=U(s,function(g){var y=g[0].break.parsedBreak,m=[n.dataToCoord(y.vmin,!0),n.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:Qe().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],c=null,v=0;v<l.length;v++){var f=l[v],h=Math.max(f.coordPair[0],o[0]),p=Math.min(f.coordPair[1],o[1]);u<=h&&d(u,h,c,f),u=p,c=f}u<=o[1]&&d(u,o[1],c,null);function d(g,y,m,S){function _(M,L){i&&(mt(M,M,i),mt(L,L,i))}function x(M,L){var I={x1:M[0],y1:M[1],x2:L[0],y2:L[1]};Yf(I,I,a.style),M[0]=I.x1,M[1]=I.y1,L[0]=I.x2,L[1]=I.y2}var b=[g,0],w=[y,0],C=[g,5],A=[y,5];_(b,C),x(b,C),_(w,A),x(w,A),x(b,w);var D=new ut(H({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},a));t.add(D),D.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(S?S.brkId:"\0")}}function qF(r,t,e){if(sn(e,function(m){return!m}))return;var a=new me;if(!hu(e[0],e[1],a,{direction:-(r?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var n=rr();ui(n,n,-t);var i=U(e,function(m){return m.transform?Oo(rr(),n,m.transform):n});function o(m){var S=e[0].localRect,_=new me(S[et[m]]*i[0][0],S[et[m]]*i[0][1]);return Math.abs(_.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=U(e,function(m,S){var _=m.localRect.clone();return _.applyTransform(i[S]),_}),u=new me;u.copy(e[0].label).add(e[1].label).scale(.5),u.transform(n);var c=a.clone().transform(n),v=l[0].x+l[1].x+(c.x>=0?l[0].width:l[1].width),f=(v+c.x)/2-u.x,h=Math.min(f,f-c.x),p=Math.max(f,f-c.x),d=p<0?p:h>0?h:0;s=(f-d)/c.x}var g=new me,y=new me;me.scale(g,a,-s),me.scale(y,a,1-s),Kv(e[0],g),Kv(e[1],y)}function jF(r,t){var e={breaks:[]};return T(t.breaks,function(a){if(a){var n=sn(r.get("breaks",!0),function(s){return Qe().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===pu?!0:i===b1?!1:i===w1?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function JF(){SP({adjustBreakLabelPair:qF,buildAxisBreakLine:KF,rectCoordBuildBreakAxis:$F,updateModelAxisBreak:jF})}function QF(r){CP(r),UF(),JF()}function eH(){ZP(tH)}function tH(r,t){T(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=rH(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function rH(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof jn?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Si(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}
30,f=s(v,c),h=o.getTextRect(f),p=d(h,o.get("rotate")||0);l?l.union(p):l=p}return l;function d(g,y){var m=y*Math.PI/180,S=g.width,_=g.height,x=S*Math.abs(Math.cos(m))+Math.abs(_*Math.sin(m)),b=S*Math.abs(Math.sin(m))+Math.abs(_*Math.cos(m)),w=new Se(g.x,g.y,x,b);return w}}ue([y2]);ue([g2]);ue([B2,J2,lP,vk,bk,rR,IR,fE,RE,GE,ZE,eN,XN,yO,MO,UO,$O,nB,vB,bB,MB,VB,bV]);ue(FV);ue(fz);ue(Z1);ue(Tz);ue(kw);ue(Mz);ue($z);ue(aG);ue(WG);ue(l5);ue(Qo);ue(T5);ue(D5);ue(B5);ue(Y5);ue(j5);ue(a3);ue(h3);ue(k3);ue(VT);ue(zT);ue(J3);ue(UT);ue(YT);ue(rF);ue(sF);ue(_F);ue(wF);ue(RF);ue(d2);ue(QF);ue(eH);ue(fk);export{iH as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.